aave-automation-subgraph/schema.graphql

139 lines
2.5 KiB
GraphQL
Raw Normal View History

2022-08-04 12:59:39 +00:00
type ExecutionParams @entity{
2022-08-04 04:55:00 +00:00
id: ID!
2022-08-04 12:59:39 +00:00
collateralToken: Bytes!
debtToken: Bytes!
collateralAmount: BigInt!
debtAmount: BigInt!
collateralAmountWithTotalFee: BigInt!
swap: Swap!
route: BigInt!
rateMode: BigInt!
2022-08-04 04:55:00 +00:00
}
2022-08-04 12:59:39 +00:00
type Swap @entity {
id: ID!
buyToken: Bytes!
sellToken: Bytes!
sellAmt: BigInt!
unitAmt: BigInt!
callData: Bytes!
}
type Spell @entity {
id: ID!
_targets: [String!]!
_datas: [Bytes!]!
}
2022-08-06 05:11:40 +00:00
type TransactionData @entity {
id: ID!
blockNumber: BigInt!
timeStamp: BigInt!
logIndex: BigInt!
transactionHash: Bytes!
transactionLogIndex: BigInt!
}
2022-08-04 12:59:39 +00:00
type Account @entity {
id: ID!
2022-08-06 05:11:40 +00:00
user: Bytes!
2022-08-04 12:59:39 +00:00
submitAutomation: [SubmitData!]! @derivedFrom (field: "account")
executeAutomation: [ExecuteData!]! @derivedFrom (field: "account")
cancelData: [CancelData!]! @derivedFrom (field: "account")
systemCancelData: [SystemCancelData!]! @derivedFrom (field: "account")
}
type SubmitData @entity {
id: ID!
user: Bytes!
userId: BigInt!
safeHF: BigInt!
thresholdHF: BigInt!
currentHf: BigInt!
account: Account!
2022-08-06 05:11:40 +00:00
transactionDetail: TransactionData!
2022-08-04 12:59:39 +00:00
}
type ExecuteData @entity {
id: ID!
user: Bytes!
userId: BigInt!
nonce: BigInt!
finalHf: BigInt!
initialHf: BigInt!
automationFee: Int!
params: ExecutionParams!
isSafe: Boolean!
2022-08-06 05:11:40 +00:00
metaData: Bytes!
2022-08-04 12:59:39 +00:00
account: Account!
2022-08-06 05:11:40 +00:00
transactionDetail: TransactionData!
2022-08-04 12:59:39 +00:00
}
type CancelData @entity {
id: ID!
user: Bytes!
userId: BigInt!
nonce: BigInt!
account: Account!
2022-08-06 05:11:40 +00:00
transactionDetail: TransactionData!
2022-08-04 12:59:39 +00:00
}
type SystemCancelData @entity {
id: ID!
user: Bytes!
userId: BigInt!
nonce: BigInt!
errorCode: Int!
account: Account!
2022-08-06 05:11:40 +00:00
transactionDetail: TransactionData!
}
type ChangedOwner @entity {
id: ID!
oldOwner: Bytes!
newOwner: Bytes!
transactionDetail: TransactionData!
}
type FeeTransferData @entity {
id: ID!
recipient: Bytes!
tokens: [Bytes!]!
amount: [BigInt!]!
from: Bytes!
transactionDetail: TransactionData!
}
type SystemCallData @entity {
id: ID!
sender: Bytes!
actionId: String!
metaData: Bytes!
transactionDetail: TransactionData!
}
type UpdateAutomationFeeData @entity {
id: ID!
oldAutomationFee: Int!
newAutomationFee: Int!
transactionDetail: TransactionData!
}
type UpdateBufferHfData @entity {
id: ID!
oldBuffer: BigInt!
newBuffer: BigInt!
transactionDetail: TransactionData!
}
type UpdateMinHfData @entity {
id: ID!
oldMinHf: BigInt!
newMinHf: BigInt!
transactionDetail: TransactionData!
2022-08-04 12:59:39 +00:00
}
2022-08-04 14:49:16 +00:00
type Executor @entity {
2022-08-04 12:59:39 +00:00
id: ID!
executors: [Bytes!]!
}