mirror of
https://github.com/Instadapp/Gelato-automations.git
synced 2024-07-29 22:28:07 +00:00
179 lines
33 KiB
JSON
179 lines
33 KiB
JSON
|
{
|
||
|
"address": "0x23c3017b7ff8a244E72F148e1714ABe16991c8ca",
|
||
|
"abi": [
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_vaultId",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "_priceOracle",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes",
|
||
|
"name": "_oraclePayload",
|
||
|
"type": "bytes"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_minColRatio",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "getConditionData",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bytes",
|
||
|
"name": "",
|
||
|
"type": "bytes"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "pure",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_vaultId",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "_priceOracle",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes",
|
||
|
"name": "_oraclePayload",
|
||
|
"type": "bytes"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_minColRatio",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "isVaultUnsafe",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "string",
|
||
|
"name": "",
|
||
|
"type": "string"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes",
|
||
|
"name": "_conditionData",
|
||
|
"type": "bytes"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "ok",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "string",
|
||
|
"name": "",
|
||
|
"type": "string"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"transactionHash": "0xd96f97d2320896fa55fa2333bba9e93382dbf33d7a3b957bffb0700878b3b862",
|
||
|
"receipt": {
|
||
|
"to": null,
|
||
|
"from": "0xe1F076849B781b1395Fd332dC1758Dbc129be6EC",
|
||
|
"contractAddress": "0x23c3017b7ff8a244E72F148e1714ABe16991c8ca",
|
||
|
"transactionIndex": 155,
|
||
|
"gasUsed": "713689",
|
||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||
|
"blockHash": "0xb7288219beaefcbdc9bc40e1bbd9c186c047ee24bcac4acc73c57abd3878b6b6",
|
||
|
"transactionHash": "0xd96f97d2320896fa55fa2333bba9e93382dbf33d7a3b957bffb0700878b3b862",
|
||
|
"logs": [],
|
||
|
"blockNumber": 11270006,
|
||
|
"cumulativeGasUsed": "9716065",
|
||
|
"status": 1,
|
||
|
"byzantium": true
|
||
|
},
|
||
|
"args": [],
|
||
|
"solcInputHash": "89383a6e8e4256890d851f32690baa57",
|
||
|
"metadata": "{\"compiler\":{\"version\":\"0.7.4+commit.3f05b770\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_priceOracle\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_oraclePayload\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_minColRatio\",\"type\":\"uint256\"}],\"name\":\"getConditionData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_priceOracle\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_oraclePayload\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_minColRatio\",\"type\":\"uint256\"}],\"name\":\"isVaultUnsafe\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_conditionData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"ok\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Gelato Team\",\"kind\":\"dev\",\"methods\":{\"getConditionData(uint256,address,bytes,uint256)\":{\"details\":\"Use the return for your Task's Condition.data field off-chain.\",\"returns\":{\"_0\":\"The encoded payload for your Task's Condition.data field.\"}},\"isVaultUnsafe(uint256,address,bytes,uint256)\":{\"details\":\"The price oracle must return a uint256 WAD (10**18) value.\",\"params\":{\"_minColRatio\":\"The minimum collateral ratio measured in the price of the collateral as specified by the _priceOracle.\",\"_oraclePayload\":\"The data for making the staticcall to the oracle's read method e.g. the selector for MakerOracle's read fn.\",\"_priceOracle\":\"The price oracle contract to supply the collateral price e.g. Maker's ETH/USD oracle for ETH collateral pricing.\",\"_vaultId\":\"The id of the Maker vault\"},\"returns\":{\"_0\":\"OK if the Maker Vault is unsafe, otherwise some error message.\"}},\"ok(uint256,bytes,uint256)\":{\"details\":\"A standard interface for GelatoCore to read Conditions\",\"params\":{\"_conditionData\":\"The data you get from `getConditionData()`\"},\"returns\":{\"_0\":\"OK if the Condition is there, else some error message.\"}}},\"title\":\"ConditionMakerVaultUnsafe\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"getConditionData(uint256,address,bytes,uint256)\":{\"notice\":\"Convenience function for off-chain _conditionData encoding\"},\"isVaultUnsafe(uint256,address,bytes,uint256)\":{\"notice\":\"Specific implementation of this Condition's ok function\"},\"ok(uint256,bytes,uint256)\":{\"notice\":\"Standard GelatoCore system function\"}},\"notice\":\"Condition tracking Maker vault collateralization safety requirements.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/contracts/gelato/conditions/ConditionMakerVaultUnsafe.sol\":\"ConditionMakerVaultUnsafe\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@gelatonetwork/core/contracts/conditions/GelatoConditionsStandard.sol\":{\"content\":\"// \\\"SPDX-License-Identifier: UNLICENSED\\\"\\npragma solidity >=0.6.10;\\n\\nimport \\\"./IGelatoCondition.sol\\\";\\n\\nabstract contract GelatoConditionsStandard is IGelatoCondition {\\n string internal constant OK = \\\"OK\\\";\\n}\\n\",\"keccak256\":\"0xa3d9ee5c4398914bbc0fe75fe54e57b73b8a4367caf9a40d9e5fd1ba9d4adb89\",\"license\":\"UNLICENSED\"},\"@gelatonetwork/core/contracts/conditions/IGelatoCondition.sol\":{\"content\":\"// \\\"SPDX-License-Identifier: UNLICENSED\\\"\\npra
|
||
|
"bytecode": "0x608060405234801561001057600080fd5b50610bf3806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80635d392c301461004657806377301f811461006f578063a99891c514610082575b600080fd5b6100596100543660046109df565b610095565b6040516100669190610a8d565b60405180910390f35b61005961007d36600461097d565b61024e565b6100596100903660046109f4565b610283565b606060006060856001600160a01b0316856040516100b39190610a71565b600060405180830381855afa9150503d80600081146100ee576040519150601f19603f3d011682016040523d82523d6000602084013e6100f3565b606091505b509150915081610120576101206040518060600160405280602f8152602001610b8f602f913982906102b7565b6000818060200190518101906101369190610906565b90506101406106b7565b604051634a3843bb60e11b8152730a7008b38e7015f8c36a49eebc32513eca8801e590639470877690610177908c90600401610aa7565b60006040518083038186803b15801561018f57600080fd5b505afa1580156101a3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101cb919081019061081a565b905060006101ea6101e08360600151856105a6565b8360a001516105df565b905086811061022457604051806040016040528060138152602001724d616b65725661756c744e6f74556e7361666560681b815250610240565b604051806040016040528060028152602001614f4b60f01b8152505b9a9950505050505050505050565b60608585858585604051602001610269959493929190610ab0565b604051602081830303815290604052905095945050505050565b606060008082816102968789018961091e565b93509350935093506102aa84848484610095565b9998505050505050505050565b60208251816102c257fe5b06600414156104df57602082015162461bcd60e51b6001600160e01b03198216141561041d5760448301925081836040516020018083805190602001908083835b602083106103225780518252601f199092019160209182019101610303565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b6020831061036a5780518252601f19909201916020918201910161034b565b51815160209384036101000a60001901801990921691161790526040805192909401828103601f190183529384905262461bcd60e51b84526004840181815282516024860152825192975095508594506044909301928601915080838360005b838110156103e25781810151838201526020016103ca565b50505050905090810190601f16801561040f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b816040516020018082805190602001908083835b602083106104505780518252601f199092019160209182019101610431565b51815160001960209485036101000a0190811690199091161790526e2737a2b93937b929b2b632b1ba37b960891b9390910192835260408051601019818603018152600f85019182905262461bcd60e51b9091526013840182815281516033860152815191965094508493605301925090850190808383600083156103e25781810151838201526020016103ca565b806040516020018082805190602001908083835b602083106105125780518252601f1990920191602091820191016104f3565b51815160001960209485036101000a01908116901990911617905273556e657870656374656452657475726e6461746160601b9390910192835260408051600b19818603018152601485019182905262461bcd60e51b9091526018840182815281516038860152815191965094508493605801925090850190808383600083156103e25781810151838201526020016103ca565b6000670de0b6b3a76400006105d06105be85856105ff565b6002670de0b6b3a76400005b04610668565b816105d757fe5b049392505050565b6000816105d06105f785670de0b6b3a76400006105ff565b6002856105ca565b600081158061061a5750508082028282828161061757fe5b04145b610662576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b92915050565b80820182811015610662576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6040518061016001604052806000815260200160006001600160a01b03168152602001606081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b805161072e81610b76565b919050565b60008083601f840112610744578182fd5b50813567ffffffffffffffff81111561075b578182fd5b60208301915083602082850101111561077357600080fd5b9250929050565b600082601f83011261078a578081fd5b813561079d61079882610b24565b610b00565b91508082528360208285010111156107b457600080fd5b8060208401602084013760009082016020015292915050565b600082601f83011261
|
||
|
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80635d392c301461004657806377301f811461006f578063a99891c514610082575b600080fd5b6100596100543660046109df565b610095565b6040516100669190610a8d565b60405180910390f35b61005961007d36600461097d565b61024e565b6100596100903660046109f4565b610283565b606060006060856001600160a01b0316856040516100b39190610a71565b600060405180830381855afa9150503d80600081146100ee576040519150601f19603f3d011682016040523d82523d6000602084013e6100f3565b606091505b509150915081610120576101206040518060600160405280602f8152602001610b8f602f913982906102b7565b6000818060200190518101906101369190610906565b90506101406106b7565b604051634a3843bb60e11b8152730a7008b38e7015f8c36a49eebc32513eca8801e590639470877690610177908c90600401610aa7565b60006040518083038186803b15801561018f57600080fd5b505afa1580156101a3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101cb919081019061081a565b905060006101ea6101e08360600151856105a6565b8360a001516105df565b905086811061022457604051806040016040528060138152602001724d616b65725661756c744e6f74556e7361666560681b815250610240565b604051806040016040528060028152602001614f4b60f01b8152505b9a9950505050505050505050565b60608585858585604051602001610269959493929190610ab0565b604051602081830303815290604052905095945050505050565b606060008082816102968789018961091e565b93509350935093506102aa84848484610095565b9998505050505050505050565b60208251816102c257fe5b06600414156104df57602082015162461bcd60e51b6001600160e01b03198216141561041d5760448301925081836040516020018083805190602001908083835b602083106103225780518252601f199092019160209182019101610303565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b6020831061036a5780518252601f19909201916020918201910161034b565b51815160209384036101000a60001901801990921691161790526040805192909401828103601f190183529384905262461bcd60e51b84526004840181815282516024860152825192975095508594506044909301928601915080838360005b838110156103e25781810151838201526020016103ca565b50505050905090810190601f16801561040f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b816040516020018082805190602001908083835b602083106104505780518252601f199092019160209182019101610431565b51815160001960209485036101000a0190811690199091161790526e2737a2b93937b929b2b632b1ba37b960891b9390910192835260408051601019818603018152600f85019182905262461bcd60e51b9091526013840182815281516033860152815191965094508493605301925090850190808383600083156103e25781810151838201526020016103ca565b806040516020018082805190602001908083835b602083106105125780518252601f1990920191602091820191016104f3565b51815160001960209485036101000a01908116901990911617905273556e657870656374656452657475726e6461746160601b9390910192835260408051600b19818603018152601485019182905262461bcd60e51b9091526018840182815281516038860152815191965094508493605801925090850190808383600083156103e25781810151838201526020016103ca565b6000670de0b6b3a76400006105d06105be85856105ff565b6002670de0b6b3a76400005b04610668565b816105d757fe5b049392505050565b6000816105d06105f785670de0b6b3a76400006105ff565b6002856105ca565b600081158061061a5750508082028282828161061757fe5b04145b610662576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b92915050565b80820182811015610662576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6040518061016001604052806000815260200160006001600160a01b03168152602001606081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b805161072e81610b76565b919050565b60008083601f840112610744578182fd5b50813567ffffffffffffffff81111561075b578182fd5b60208301915083602082850101111561077357600080fd5b9250929050565b600082601f83011261078a578081fd5b813561079d61079882610b24565b610b00565b91508082528360208285010111156107b457600080fd5b8060208401602084013760009082016020015292915050565b600082601f8301126107dd578081fd5b81516107eb61079882610b24565b91508082528360
|
||
|
"devdoc": {
|
||
|
"author": "Gelato Team",
|
||
|
"kind": "dev",
|
||
|
"methods": {
|
||
|
"getConditionData(uint256,address,bytes,uint256)": {
|
||
|
"details": "Use the return for your Task's Condition.data field off-chain.",
|
||
|
"returns": {
|
||
|
"_0": "The encoded payload for your Task's Condition.data field."
|
||
|
}
|
||
|
},
|
||
|
"isVaultUnsafe(uint256,address,bytes,uint256)": {
|
||
|
"details": "The price oracle must return a uint256 WAD (10**18) value.",
|
||
|
"params": {
|
||
|
"_minColRatio": "The minimum collateral ratio measured in the price of the collateral as specified by the _priceOracle.",
|
||
|
"_oraclePayload": "The data for making the staticcall to the oracle's read method e.g. the selector for MakerOracle's read fn.",
|
||
|
"_priceOracle": "The price oracle contract to supply the collateral price e.g. Maker's ETH/USD oracle for ETH collateral pricing.",
|
||
|
"_vaultId": "The id of the Maker vault"
|
||
|
},
|
||
|
"returns": {
|
||
|
"_0": "OK if the Maker Vault is unsafe, otherwise some error message."
|
||
|
}
|
||
|
},
|
||
|
"ok(uint256,bytes,uint256)": {
|
||
|
"details": "A standard interface for GelatoCore to read Conditions",
|
||
|
"params": {
|
||
|
"_conditionData": "The data you get from `getConditionData()`"
|
||
|
},
|
||
|
"returns": {
|
||
|
"_0": "OK if the Condition is there, else some error message."
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"title": "ConditionMakerVaultUnsafe",
|
||
|
"version": 1
|
||
|
},
|
||
|
"userdoc": {
|
||
|
"kind": "user",
|
||
|
"methods": {
|
||
|
"getConditionData(uint256,address,bytes,uint256)": {
|
||
|
"notice": "Convenience function for off-chain _conditionData encoding"
|
||
|
},
|
||
|
"isVaultUnsafe(uint256,address,bytes,uint256)": {
|
||
|
"notice": "Specific implementation of this Condition's ok function"
|
||
|
},
|
||
|
"ok(uint256,bytes,uint256)": {
|
||
|
"notice": "Standard GelatoCore system function"
|
||
|
}
|
||
|
},
|
||
|
"notice": "Condition tracking Maker vault collateralization safety requirements.",
|
||
|
"version": 1
|
||
|
},
|
||
|
"storageLayout": {
|
||
|
"storage": [],
|
||
|
"types": null
|
||
|
}
|
||
|
}
|