ERC-20-Token-Allowance/schema.graphql

31 lines
535 B
GraphQL
Raw Permalink Normal View History

2022-08-15 17:33:06 +00:00
type Account @entity {
2022-08-15 15:27:05 +00:00
id: ID!
2022-08-15 17:33:06 +00:00
version: BigInt!
accountID: BigInt!
# Smart account address
address: Bytes!
# Address of the DSA creator
creator: Bytes!
# Total transactions of the DSA
transactionsCount: BigInt!
# Cast event data
approvals: [ApprovalEvent!]!
}
type ApprovalEvent @entity {
id: ID!
token: Token!
from: Bytes!
# to or the spender address
to: Bytes!
# value approved or transaferred
value: BigInt!
}
type Token @entity {
id: ID!
name: String
symbol: String
decimals: BigInt
2022-08-15 15:27:05 +00:00
}