compound-dsa-managers/schema.graphql
2022-09-05 00:02:08 +05:30

42 lines
674 B
GraphQL

type Owner @entity {
id: ID!
address: Bytes!
manager: [Manager!]! @derivedFrom(field: "owner")
}
type Manager @entity {
id: ID!
address: Bytes!
owner: Owner!
isAllowed: Boolean!
isDSA: Boolean!
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!
}