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";