compound-dsa-managers/schema.graphql
2022-09-05 00:11:45 +05:30

51 lines
1.0 KiB
GraphQL

type Owner @entity {
# address of the owner.
id: ID!
# address of the owner.
address: Bytes!
# lists of all enabled and disabled managers.
manager: [Manager!]! @derivedFrom(field: "owner")
}
type Manager @entity {
# manager address + "#" + owner address.
id: ID!
# address of the manager.
address: Bytes!
# owner of the manager.
owner: Owner!
# whether the manager is enabled or disabled by the owner.
isAllowed: Boolean!
# whether the manager is DSA or not.
isDSA: Boolean!
# transction details of the transaction when manager enabled or disabled.
transactionData: TransactionData!
}
type TransactionData @entity {
# transaction hash
id: ID!
# transaction index
txnIndex: BigInt!
# transaction log index
txnLogIndex: BigInt!
# from
from: Bytes!
# to
to: Bytes
# input
input: Bytes!
# block number
blockNumber: BigInt!
# timestamp
timestamp: BigInt!
# gas
blockGasUsed: BigInt!
#gas price
gasPrice: BigInt!
# gas limit
gasLimit: BigInt!
#value
value: BigInt!
}