aave-automation-subgraph/schema.graphql

153 lines
2.8 KiB
GraphQL
Raw Normal View History

2022-08-29 18:57:47 +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-29 18:57:47 +00:00
submitAutomation: [SubmitData!]! @derivedFrom(field: "account")
executeAutomation: [ExecuteData!]! @derivedFrom(field: "account")
cancelData: [CancelData!]! @derivedFrom(field: "account")
systemCancelData: [SystemCancelData!]! @derivedFrom(field: "account")
failedExecutionData: [FailedExecution!]! @derivedFrom(field: "account")
2022-08-04 12:59:39 +00:00
}
type SubmitData @entity {
id: ID!
user: Bytes!
userId: BigInt!
safeHF: BigInt!
thresholdHF: BigInt!
currentHf: BigInt!
account: Account!
2022-08-29 18:57:47 +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-29 18:57:47 +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-29 18:57:47 +00:00
transactionDetail: TransactionData!
2022-08-06 05:11:40 +00:00
}
type ChangedOwner @entity {
id: ID!
oldOwner: Bytes!
newOwner: Bytes!
2022-08-29 18:57:47 +00:00
transactionDetail: TransactionData!
2022-08-06 05:11:40 +00:00
}
type FeeTransferData @entity {
id: ID!
recipient: Bytes!
tokens: [Bytes!]!
amount: [BigInt!]!
from: Bytes!
2022-08-29 18:57:47 +00:00
transactionDetail: TransactionData!
2022-08-06 05:11:40 +00:00
}
type SystemCallData @entity {
id: ID!
sender: Bytes!
actionId: String!
metaData: Bytes!
2022-08-29 18:57:47 +00:00
transactionDetail: TransactionData!
2022-08-06 05:11:40 +00:00
}
type UpdateAutomationFeeData @entity {
id: ID!
oldAutomationFee: Int!
newAutomationFee: Int!
2022-08-29 18:57:47 +00:00
transactionDetail: TransactionData!
2022-08-06 05:11:40 +00:00
}
type UpdateBufferHfData @entity {
id: ID!
oldBuffer: BigInt!
newBuffer: BigInt!
transactionDetail: TransactionData!
}
type UpdateMinHfData @entity {
id: ID!
oldMinHf: BigInt!
newMinHf: BigInt!
2022-08-29 18:57:47 +00:00
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!]!
2022-08-29 18:57:47 +00:00
}
type FailedExecution @entity {
id: ID!
user: Bytes!
account: Account!
userId: BigInt!
nonce: BigInt!
params: ExecutionParams!
metadata: Bytes!
initialHf: BigInt!
transactionDetail: TransactionData!
}