2022-09-04 18:32:08 +00:00
|
|
|
type Owner @entity {
|
2022-09-04 18:41:45 +00:00
|
|
|
# address of the owner.
|
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 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 18:41:45 +00:00
|
|
|
# manager address + "#" + owner 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 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 {
|
|
|
|
# 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!
|
2022-09-04 16:54:41 +00:00
|
|
|
}
|