aave-automation-subgraph/abis/InstaAutomation.json

666 lines
16 KiB
JSON
Raw Normal View History

2022-08-04 04:55:00 +00:00
[
{
"inputs": [
2022-08-04 12:59:39 +00:00
{
"internalType": "address",
"name": "aavePoolAddressesProvider_",
"type": "address"
},
{ "internalType": "address", "name": "instaList_", "type": "address" }
2022-08-04 04:55:00 +00:00
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
2022-08-04 12:59:39 +00:00
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": true,
"internalType": "uint32",
"name": "id",
"type": "uint32"
},
{
"indexed": true,
"internalType": "uint32",
"name": "nonce",
"type": "uint32"
}
],
"name": "LogCancelledAutomation",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": true,
"internalType": "uint32",
"name": "id",
"type": "uint32"
},
{
"indexed": true,
"internalType": "uint32",
"name": "nonce",
"type": "uint32"
},
{
"indexed": false,
"internalType": "bool",
"name": "isSafe",
"type": "bool"
},
2022-08-04 04:55:00 +00:00
{
"indexed": false,
2022-08-04 12:59:39 +00:00
"internalType": "bytes",
"name": "metadata",
"type": "bytes"
}
],
"name": "LogExecutedAutomation",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
2022-08-04 04:55:00 +00:00
"internalType": "address",
2022-08-04 12:59:39 +00:00
"name": "user",
2022-08-04 04:55:00 +00:00
"type": "address"
},
2022-08-04 12:59:39 +00:00
{
"indexed": true,
"internalType": "uint32",
"name": "id",
"type": "uint32"
},
{
"indexed": true,
"internalType": "uint32",
"name": "nonce",
"type": "uint32"
},
2022-08-04 04:55:00 +00:00
{
"indexed": false,
2022-08-04 12:59:39 +00:00
"internalType": "uint128",
"name": "finalHf",
"type": "uint128"
},
{
"indexed": false,
"internalType": "uint128",
"name": "initialHf",
"type": "uint128"
},
{
"indexed": false,
"internalType": "uint16",
"name": "automationFee",
"type": "uint16"
},
{
"components": [
{
"internalType": "address",
"name": "collateralToken",
"type": "address"
},
{ "internalType": "address", "name": "debtToken", "type": "address" },
{
"internalType": "uint256",
"name": "collateralAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "debtAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralAmountWithTotalFee",
"type": "uint256"
},
{
"components": [
{
"internalType": "address",
"name": "buyToken",
"type": "address"
},
{
"internalType": "address",
"name": "sellToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "sellAmt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "unitAmt",
"type": "uint256"
},
{ "internalType": "bytes", "name": "callData", "type": "bytes" }
],
"internalType": "struct Structs.Swap",
"name": "swap",
"type": "tuple"
},
{ "internalType": "uint256", "name": "route", "type": "uint256" },
{ "internalType": "uint256", "name": "rateMode", "type": "uint256" }
],
"indexed": false,
"internalType": "struct Structs.ExecutionParams",
"name": "params",
"type": "tuple"
},
{
"components": [
{
"internalType": "string[]",
"name": "_targets",
"type": "string[]"
},
{ "internalType": "bytes[]", "name": "_datas", "type": "bytes[]" }
],
"indexed": false,
"internalType": "struct Structs.Spell",
"name": "spells",
"type": "tuple"
}
],
"name": "LogExecutedAutomationParams",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
2022-08-04 04:55:00 +00:00
"internalType": "address",
2022-08-04 12:59:39 +00:00
"name": "recipient_",
2022-08-04 04:55:00 +00:00
"type": "address"
2022-08-04 12:59:39 +00:00
},
{
"indexed": false,
"internalType": "address[]",
"name": "tokens",
"type": "address[]"
},
{
"indexed": false,
"internalType": "uint256[]",
"name": "amount",
"type": "uint256[]"
2022-08-04 04:55:00 +00:00
}
],
2022-08-04 12:59:39 +00:00
"name": "LogFeeTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address[]",
"name": "executors",
"type": "address[]"
},
{
"indexed": false,
"internalType": "bool[]",
"name": "status",
"type": "bool[]"
}
],
"name": "LogFlippedExecutors",
2022-08-04 04:55:00 +00:00
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
2022-08-04 12:59:39 +00:00
"name": "user",
2022-08-04 04:55:00 +00:00
"type": "address"
2022-08-04 12:59:39 +00:00
},
{
"indexed": true,
"internalType": "uint32",
"name": "id",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint128",
"name": "safeHF",
"type": "uint128"
},
{
"indexed": false,
"internalType": "uint128",
"name": "thresholdHF",
"type": "uint128"
},
{
"indexed": false,
"internalType": "uint128",
"name": "currentHf",
"type": "uint128"
2022-08-04 04:55:00 +00:00
}
],
2022-08-04 12:59:39 +00:00
"name": "LogSubmittedAutomation",
2022-08-04 04:55:00 +00:00
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
2022-08-04 12:59:39 +00:00
"name": "user",
2022-08-04 04:55:00 +00:00
"type": "address"
2022-08-04 12:59:39 +00:00
},
{
"indexed": true,
"internalType": "uint32",
"name": "id",
"type": "uint32"
},
{
"indexed": true,
"internalType": "uint32",
"name": "nonce",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint8",
"name": "errorCode",
"type": "uint8"
2022-08-04 04:55:00 +00:00
}
],
2022-08-04 12:59:39 +00:00
"name": "LogSystemCancelledAutomation",
2022-08-04 04:55:00 +00:00
"type": "event"
},
2022-08-04 12:59:39 +00:00
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint16",
"name": "oldAutomationFee",
"type": "uint16"
},
{
"indexed": false,
"internalType": "uint16",
"name": "newAutomationFee",
"type": "uint16"
}
],
"name": "LogUpdatedAutomationFee",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint128",
"name": "oldBufferHf",
"type": "uint128"
},
{
"indexed": false,
"internalType": "uint128",
"name": "newBufferHf",
"type": "uint128"
}
],
"name": "LogUpdatedBufferHf",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint128",
"name": "oldMinHf",
"type": "uint128"
},
{
"indexed": false,
"internalType": "uint128",
"name": "newMinHf",
"type": "uint128"
}
],
"name": "LogUpdatedMinHf",
"type": "event"
},
{
"inputs": [],
"name": "_automationFee",
"outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_bufferHf",
"outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "", "type": "address" }],
"name": "_executors",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_id",
"outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_minimumThresholdHf",
"outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
"stateMutability": "view",
"type": "function"
},
2022-08-04 04:55:00 +00:00
{
"inputs": [],
2022-08-04 12:59:39 +00:00
"name": "_owner",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_status",
"outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }],
"name": "_userAutomationConfigs",
2022-08-04 04:55:00 +00:00
"outputs": [
2022-08-04 12:59:39 +00:00
{ "internalType": "address", "name": "user", "type": "address" },
{
"internalType": "enum Structs.Status",
"name": "status",
"type": "uint8"
},
{ "internalType": "uint32", "name": "nonce", "type": "uint32" },
{ "internalType": "uint128", "name": "safeHF", "type": "uint128" },
{ "internalType": "uint128", "name": "thresholdHF", "type": "uint128" }
2022-08-04 04:55:00 +00:00
],
2022-08-04 12:59:39 +00:00
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "", "type": "address" }],
"name": "_userLatestId",
"outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "cancelAutomationRequest",
"outputs": [],
2022-08-04 04:55:00 +00:00
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
2022-08-04 12:59:39 +00:00
{
"internalType": "contract AccountInterface",
"name": "dsa",
"type": "address"
},
{
"components": [
{
"internalType": "string[]",
"name": "_targets",
"type": "string[]"
},
{ "internalType": "bytes[]", "name": "_datas", "type": "bytes[]" }
],
"internalType": "struct Structs.Spell",
"name": "spells",
"type": "tuple"
}
],
"name": "cast",
"outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "user_", "type": "address" },
{ "internalType": "uint32", "name": "id_", "type": "uint32" },
{ "internalType": "uint32", "name": "nonce_", "type": "uint32" },
{
"components": [
{
"internalType": "address",
"name": "collateralToken",
"type": "address"
},
{ "internalType": "address", "name": "debtToken", "type": "address" },
{
"internalType": "uint256",
"name": "collateralAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "debtAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralAmountWithTotalFee",
"type": "uint256"
},
{
"components": [
{
"internalType": "address",
"name": "buyToken",
"type": "address"
},
{
"internalType": "address",
"name": "sellToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "sellAmt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "unitAmt",
"type": "uint256"
},
{ "internalType": "bytes", "name": "callData", "type": "bytes" }
],
"internalType": "struct Structs.Swap",
"name": "swap",
"type": "tuple"
},
{ "internalType": "uint256", "name": "route", "type": "uint256" },
{ "internalType": "uint256", "name": "rateMode", "type": "uint256" }
],
"internalType": "struct Structs.ExecutionParams",
"name": "params",
"type": "tuple"
},
{ "internalType": "bytes", "name": "metadata_", "type": "bytes" }
2022-08-04 04:55:00 +00:00
],
2022-08-04 12:59:39 +00:00
"name": "executeAutomation",
2022-08-04 04:55:00 +00:00
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
2022-08-04 12:59:39 +00:00
"inputs": [
{ "internalType": "address[]", "name": "executor_", "type": "address[]" },
{ "internalType": "bool[]", "name": "status_", "type": "bool[]" }
],
"name": "flipExecutor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "user", "type": "address" }
],
"name": "getHealthFactor",
2022-08-04 04:55:00 +00:00
"outputs": [
2022-08-04 12:59:39 +00:00
{ "internalType": "uint256", "name": "healthFactor", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "owner_", "type": "address" },
{ "internalType": "uint16", "name": "automationFee_", "type": "uint16" },
2022-08-04 04:55:00 +00:00
{
2022-08-04 12:59:39 +00:00
"internalType": "uint128",
"name": "minimumThresholdHf_",
"type": "uint128"
},
{ "internalType": "uint128", "name": "bufferHf_", "type": "uint128" }
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "safeHealthFactor_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "thresholdHealthFactor_",
"type": "uint256"
2022-08-04 04:55:00 +00:00
}
],
2022-08-04 12:59:39 +00:00
"name": "submitAutomationRequest",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "user_", "type": "address" },
{ "internalType": "uint32", "name": "id_", "type": "uint32" },
{ "internalType": "uint8", "name": "errorCode_", "type": "uint8" }
],
"name": "systemCancel",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address[]", "name": "tokens_", "type": "address[]" },
{ "internalType": "address", "name": "recipient_", "type": "address" }
],
"name": "transferFee",
"outputs": [],
2022-08-04 04:55:00 +00:00
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
2022-08-04 12:59:39 +00:00
"internalType": "uint16",
"name": "newAutomationFee_",
"type": "uint16"
2022-08-04 04:55:00 +00:00
}
],
2022-08-04 12:59:39 +00:00
"name": "updateAutomationFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint128", "name": "newBufferHf_", "type": "uint128" }
],
"name": "updateBufferHf",
2022-08-04 04:55:00 +00:00
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
2022-08-04 12:59:39 +00:00
"internalType": "uint128",
"name": "newMinimumThresholdHf_",
"type": "uint128"
}
2022-08-04 04:55:00 +00:00
],
2022-08-04 12:59:39 +00:00
"name": "updateMinimunHf",
2022-08-04 04:55:00 +00:00
"outputs": [],
2022-08-04 12:59:39 +00:00
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
2022-08-04 04:55:00 +00:00
"type": "function"
},
2022-08-04 12:59:39 +00:00
{
"stateMutability": "payable",
"type": "receive"
}
2022-08-04 04:55:00 +00:00
]