Skip to content

Commit

Permalink
Add FractionTokenBalance entity and import types
Browse files Browse the repository at this point in the history
  • Loading branch information
k.ikemizu committed Jan 18, 2025
1 parent 11c6e01 commit 167b0d5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions pkgs/subgraph/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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!
}
4 changes: 2 additions & 2 deletions pkgs/subgraph/src/mapping.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 167b0d5

Please sign in to comment.