compound-dsa-managers/schema.graphql

55 lines
1.2 KiB
GraphQL
Raw Normal View History

2022-09-04 18:32:08 +00:00
type Owner @entity {
2022-09-04 20:10:42 +00:00
# address of the owner + "#" + market Address.
2022-09-04 16:54:41 +00:00
id: ID!
2022-09-04 18:41:45 +00:00
# address of the owner.
2022-09-04 18:32:08 +00:00
address: Bytes!
2022-09-04 20:10:42 +00:00
# compound market address
market: Bytes!
2022-09-04 18:41:45 +00:00
# lists of all enabled and disabled managers.
2022-09-04 18:32:08 +00:00
manager: [Manager!]! @derivedFrom(field: "owner")
}
type Manager @entity {
2022-09-04 20:10:42 +00:00
# manager address + "#" + owner address + "#" + market address.
2022-09-04 18:32:08 +00:00
id: ID!
2022-09-04 18:41:45 +00:00
# address of the manager.
2022-09-04 18:32:08 +00:00
address: Bytes!
2022-09-04 18:41:45 +00:00
# owner of the manager.
2022-09-04 18:32:08 +00:00
owner: Owner!
2022-09-04 18:41:45 +00:00
# whether the manager is enabled or disabled by the owner.
2022-09-04 18:32:08 +00:00
isAllowed: Boolean!
2022-09-04 18:41:45 +00:00
# whether the manager is DSA or not.
2022-09-04 18:32:08 +00:00
isDSA: Boolean!
2022-09-04 20:10:42 +00:00
# compound market address
market: Bytes!
2022-09-04 18:41:45 +00:00
# transction details of the transaction when manager enabled or disabled.
2022-09-04 18:32:08 +00:00
transactionData: TransactionData!
}
type TransactionData @entity {
2022-09-04 20:10:42 +00:00
# transaction hash + "#" + log index
2022-09-04 18:32:08 +00:00
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!
2022-09-04 16:54:41 +00:00
}