From 167b0d5d01d9d4c828289cc30752667179aa7b13 Mon Sep 17 00:00:00 2001 From: "k.ikemizu" Date: Sat, 18 Jan 2025 13:48:15 +0900 Subject: [PATCH] Add FractionTokenBalance entity and import types --- pkgs/subgraph/schema.graphql | 11 +++++++++++ pkgs/subgraph/src/mapping.ts | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pkgs/subgraph/schema.graphql b/pkgs/subgraph/schema.graphql index 9381afb..a3e5853 100644 --- a/pkgs/subgraph/schema.graphql +++ b/pkgs/subgraph/schema.graphql @@ -30,3 +30,14 @@ type TransferFractionToken @entity { blockTimestamp: BigInt! blockNumber: BigInt! } + +type FractionTokenBalance @entity { + id: ID! + workspaceId: ID! + holderAddress: String! + hatId: BigInt! + wearer: String! + tokenId: BigInt! + balance: BigInt! + updatedAt: BigInt! +} diff --git a/pkgs/subgraph/src/mapping.ts b/pkgs/subgraph/src/mapping.ts index d480010..4b44e92 100644 --- a/pkgs/subgraph/src/mapping.ts +++ b/pkgs/subgraph/src/mapping.ts @@ -1,6 +1,6 @@ import { BigInt as GraphBigInt } from "@graphprotocol/graph-ts"; -import type { Executed } from "../generated/BigBang/BigBang"; -import type { +import { Executed } from "../generated/BigBang/BigBang"; +import { InitialMint, TransferSingle, } from "../generated/FractionToken/FractionToken";