aave-automation-subgraph/README.md

187 lines
3.1 KiB
Markdown
Raw Normal View History

2022-08-04 13:05:36 +00:00
# AAVE Automation Subgraph
Tracks the data related to Submit, Execute and Cancel automation.
Subgraph deployment:
2022-08-04 13:06:49 +00:00
2022-08-04 13:05:36 +00:00
- Polygon: [https://thegraph.com/hosted-service/subgraph/richa-iitr/aave-automation-polygon?selected=playground](https://thegraph.com/hosted-service/subgraph/richa-iitr/aave-automation-polygon?selected=playground)
2022-08-04 15:58:01 +00:00
- Avalanche: [https://thegraph.com/hosted-service/subgraph/richa-iitr/aave-automation-avalanche?selected=playground](https://thegraph.com/hosted-service/subgraph/richa-iitr/aave-automation-avalanche?selected=playground)
2022-08-04 13:05:36 +00:00
Query Structure
<pre>
{
accounts{
id
2022-08-06 05:01:29 +00:00
user
2022-08-04 13:05:36 +00:00
submitAutomation{
id
user
userId
safeHF
thresholdHF
currentHf
2022-08-06 05:01:29 +00:00
transactionDetail{
id
blockNumber
timeStamp
transactionHash
transactionLogIndex
logIndex
}
2022-08-04 13:05:36 +00:00
}
executeAutomation{
id
2022-08-06 05:01:29 +00:00
user
userId
nonce
2022-08-04 13:05:36 +00:00
finalHf
initialHf
automationFee
2022-08-06 05:01:29 +00:00
isSafe
metaData
2022-08-04 13:05:36 +00:00
params{
id
collateralToken
2022-08-04 13:08:26 +00:00
collateralAmount
2022-08-06 05:01:29 +00:00
debtToken
2022-08-04 13:08:26 +00:00
debtAmount
collateralAmountWithTotalFee
swap{
2022-08-04 13:05:36 +00:00
id
sellToken
2022-08-06 05:01:29 +00:00
buyToken
2022-08-04 13:05:36 +00:00
sellAmt
unitAmt
callData
}
2022-08-04 13:08:26 +00:00
route
rateMode
2022-08-04 13:05:36 +00:00
}
2022-08-06 05:01:29 +00:00
transactionDetail{
2022-08-04 13:05:36 +00:00
id
2022-08-06 05:01:29 +00:00
blockNumber
timeStamp
transactionHash
transactionLogIndex
logIndex
2022-08-04 13:05:36 +00:00
}
}
cancelData{
id
user
userId
nonce
2022-08-06 05:01:29 +00:00
transactionDetail{
id
blockNumber
timeStamp
transactionHash
transactionLogIndex
logIndex
}
2022-08-04 13:05:36 +00:00
}
systemCancelData{
id
user
2022-08-06 05:01:29 +00:00
userId
2022-08-04 13:05:36 +00:00
nonce
errorCode
2022-08-06 05:01:29 +00:00
transactionDetail{
id
blockNumber
timeStamp
transactionHash
transactionLogIndex
logIndex
}
}
}
feeTransferDatas{
id
recipient
from
tokens
amount
transactionDetail{
id
blockNumber
timeStamp
transactionHash
transactionLogIndex
logIndex
2022-08-04 13:05:36 +00:00
}
}
2022-08-06 05:01:29 +00:00
updateMinHfDatas{
2022-08-04 14:49:50 +00:00
id
2022-08-06 05:01:29 +00:00
oldMinHf
newMinHf
transactionDetail{
id
blockNumber
timeStamp
transactionHash
transactionLogIndex
logIndex
}
}
updateBufferHfDatas{
id
oldBuffer
newBuffer
transactionDetail{
id
blockNumber
timeStamp
transactionHash
transactionLogIndex
logIndex
}
}
updateAutomationFeeDatas{
id
oldAutomationFee
newAutomationFee
transactionDetail{
id
blockNumber
timeStamp
transactionHash
transactionLogIndex
logIndex
}
}
changedOwners{
id
oldOwner
newOwner
transactionDetail{
id
blockNumber
timeStamp
transactionHash
transactionLogIndex
logIndex
}
}
systemCallDatas{
id
sender
actionId
metaData
transactionDetail{
id
blockNumber
timeStamp
transactionHash
transactionLogIndex
logIndex
}
2022-08-04 14:49:50 +00:00
}
2022-08-06 05:09:20 +00:00
executors{
id
executors
}
2022-08-04 13:05:36 +00:00
}
</pre>