mirror of
https://github.com/Instadapp/Gelato-automations.git
synced 2024-07-29 22:28:07 +00:00
172 lines
59 KiB
JSON
172 lines
59 KiB
JSON
|
{
|
||
|
"address": "0x071E71b22d2442C8556c7317F1944b5Bb63a6750",
|
||
|
"abi": [
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "_dsa",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_fromVaultId",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_destVaultId",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "string",
|
||
|
"name": "_destColType",
|
||
|
"type": "string"
|
||
|
}
|
||
|
],
|
||
|
"name": "destVaultWillBeSafe",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "string",
|
||
|
"name": "",
|
||
|
"type": "string"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_vaultId",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_wDaiToBorrow",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_wColToDeposit",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "string",
|
||
|
"name": "_colType",
|
||
|
"type": "string"
|
||
|
}
|
||
|
],
|
||
|
"name": "destVaultWillBeSafeExplicit",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bool",
|
||
|
"name": "",
|
||
|
"type": "bool"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "_dsa",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_fromVaultId",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_destVaultId",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "string",
|
||
|
"name": "_destColType",
|
||
|
"type": "string"
|
||
|
}
|
||
|
],
|
||
|
"name": "getConditionData",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bytes",
|
||
|
"name": "",
|
||
|
"type": "bytes"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "pure",
|
||
|
"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": "0xffc2a41fa1abbd7a044f9228c8737a39e1785ff37ea97e4b1af20ae44d90d862",
|
||
|
"receipt": {
|
||
|
"to": null,
|
||
|
"from": "0x5B753BF02a42bC73B5846dfd16a8F2e082b99a6a",
|
||
|
"contractAddress": "0x071E71b22d2442C8556c7317F1944b5Bb63a6750",
|
||
|
"transactionIndex": 120,
|
||
|
"gasUsed": "1452357",
|
||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||
|
"blockHash": "0x596b5e6ec622a8f22e28094355f032e608825d1a6eb270900900f00da7c6e45b",
|
||
|
"transactionHash": "0xffc2a41fa1abbd7a044f9228c8737a39e1785ff37ea97e4b1af20ae44d90d862",
|
||
|
"logs": [],
|
||
|
"blockNumber": 11348203,
|
||
|
"cumulativeGasUsed": "12093406",
|
||
|
"status": 1,
|
||
|
"byzantium": true
|
||
|
},
|
||
|
"args": [],
|
||
|
"solcInputHash": "bf7cd3f181208953a3fd533c358cf962",
|
||
|
"metadata": "{\"compiler\":{\"version\":\"0.7.4+commit.3f05b770\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_dsa\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_fromVaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_destVaultId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_destColType\",\"type\":\"string\"}],\"name\":\"destVaultWillBeSafe\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_wDaiToBorrow\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_wColToDeposit\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_colType\",\"type\":\"string\"}],\"name\":\"destVaultWillBeSafeExplicit\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_dsa\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_fromVaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_destVaultId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_destColType\",\"type\":\"string\"}],\"name\":\"getConditionData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"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\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/contracts/gelato/conditions/ConditionDestVaultWillBeSafe.sol\":\"ConditionDestVaultWillBeSafe\"},\"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\\\"\\npragma solidity >=0.6.10;\\npragma experimental ABIEncoderV2;\\n\\n/// @title IGelatoCondition - solidity interface of GelatoConditionsStandard\\n/// @notice all the APIs of GelatoConditionsStandard\\n/// @dev all the APIs are implemented inside GelatoConditionsStandard\\ninterface IGelatoCondition {\\n\\n /// @notice GelatoCore calls this to verify securely the specified Condition securely\\n /// @dev Be careful only to encode a Task's condition.data as is and not with the\\n /// \\\"ok\\\" selector or _taskReceiptId, since those two things are handled by GelatoCore.\\n /// @param _taskReceiptId This is passed by GelatoCore so we can rely on it as a secure\\n /// source of Task identification.\\n /// @param _conditionData This is the Condition.data field developers must encode their\\n /// Condition's specific parameters in.\\n /// @param _cycleId For Tasks that are executed as part of a cycle.\\n function ok(uint256 _taskReceiptId, bytes calldata _conditionData, uint256 _cycleId)\\n external\\n view\\n returns(string memory);\\n}\",\"keccak256\":\"0xd07607af93227ec5
|
||
|
"bytecode": "0x608060405234801561001057600080fd5b50611952806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806361d10bf0146100515780636e08865b1461007a578063a99891c51461009a578063cdcd5858146100ad575b600080fd5b61006461005f366004611545565b6100c0565b6040516100719190611753565b60405180910390f35b61008d61008836600461165d565b610120565b6040516100719190611748565b6100646100a836600461160c565b61014c565b6100646100bb3660046114e4565b61018e565b606063cdcd585860e01b86868686866040516024016100e39594939291906116fc565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905095945050505050565b600084156101385761013385858561026e565b610143565b610143828585610629565b95945050505050565b60606000808083610160876004818b611811565b81019061016d91906114e4565b93509350935093506101818484848461018e565b9998505050505050505050565b606061019a838661086f565b6101a55760006101a7565b825b925060006101bc6101b786610a79565b610cde565b905060006102016101cc87610cf2565b6101fc6101f788156101f2736b175474e89094c44da98b954eedeac495271d0f88610e13565b610f1f565b610f7f565b610f92565b905061020f85838387610120565b6102475760405180604001604052806016815260200175446573745661756c7457696c6c4e6f7442655361666560501b815250610263565b604051806040016040528060028152602001614f4b60f01b8152505b979650505050505050565b6000836102ac5760405162461bcd60e51b81526004018080602001828103825260238152602001806118fa6023913960400191505060405180910390fd5b735ef30b9986345249bc32d8928b7ee64de9435e396000806102ce8388610fe2565b91509150600073e81f70cc7c0d46e12d70efc60607f16bbd617e886001600160a01b0316634445d799846040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561032c57600080fd5b505afa158015610340573d6000803e3d6000fd5b505050506040513d602081101561035657600080fd5b5051604080516336569e7760e01b815290519192506000916001600160a01b038716916336569e77916004808301926020929190829003018186803b15801561039e57600080fd5b505afa1580156103b2573d6000803e3d6000fd5b505050506040513d60208110156103c857600080fd5b505160408051636cb1c69b60e11b815260048101879052905191925060009182916001600160a01b0385169163d9638d369160248082019260a092909190829003018186803b15801561041a57600080fd5b505afa15801561042e573d6000803e3d6000fd5b505050506040513d60a081101561044457600080fd5b50602081015160409182015182516309092f9760e21b8152600481018a90526001600160a01b0389811660248301528451939650919450600093849392881692632424be5c926044808201939291829003018186803b1580156104a657600080fd5b505afa1580156104ba573d6000803e3d6000fd5b505050506040513d60408110156104d057600080fd5b50805160209182015160408051633612d9a360e11b81526001600160a01b038c81166004830152915193965091945060009390891692636c25b346926024808201939291829003018186803b15801561052857600080fd5b505afa15801561053c573d6000803e3d6000fd5b505050506040513d602081101561055257600080fd5b5051604080516359de7d4160e11b815290519192506000916105d1916001600160a01b038b169163b3bcfa8291600480820192602092909190829003018186803b15801561059f57600080fd5b505afa1580156105b3573d6000803e3d6000fd5b505050506040513d60208110156105c957600080fd5b50518e6110d7565b905060006105e08f84896110e9565b90506105ec858361114d565b94506105f8848261114d565b93506000610606888661119c565b9050610612868861119c565b10159c505050505050505050505050509392505050565b600080735ef30b9986345249bc32d8928b7ee64de9435e3990506000816001600160a01b03166336569e776040518163ffffffff1660e01b815260040160206040518083038186803b15801561067e57600080fd5b505afa158015610692573d6000803e3d6000fd5b505050506040513d60208110156106a857600080fd5b5051905060006106b7876111ff565b9050600080836001600160a01b031663d9638d36846040518263ffffffff1660e01b81526004018082815260200191505060a06040518083038186803b15801561070057600080fd5b505afa158015610714573d6000803e3d6000fd5b505050506040513d60a081101561072a57600080fd5b506020808201516040928301518351634445d79960e01b8152600481018890529351919550935060009273e81f70cc7c0d46e12d70efc60607f16bbd617e8892634445d79992602480840193829003018186803b15801561078a57600080fd5b505afa15801561079e573d6000803e3d6000fd5b505050506040513d60208110156107b457600080fd5b5051604080516359de7d4160e11b81529051919250600091610833916001600160a0
|
||
|
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806361d10bf0146100515780636e08865b1461007a578063a99891c51461009a578063cdcd5858146100ad575b600080fd5b61006461005f366004611545565b6100c0565b6040516100719190611753565b60405180910390f35b61008d61008836600461165d565b610120565b6040516100719190611748565b6100646100a836600461160c565b61014c565b6100646100bb3660046114e4565b61018e565b606063cdcd585860e01b86868686866040516024016100e39594939291906116fc565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905095945050505050565b600084156101385761013385858561026e565b610143565b610143828585610629565b95945050505050565b60606000808083610160876004818b611811565b81019061016d91906114e4565b93509350935093506101818484848461018e565b9998505050505050505050565b606061019a838661086f565b6101a55760006101a7565b825b925060006101bc6101b786610a79565b610cde565b905060006102016101cc87610cf2565b6101fc6101f788156101f2736b175474e89094c44da98b954eedeac495271d0f88610e13565b610f1f565b610f7f565b610f92565b905061020f85838387610120565b6102475760405180604001604052806016815260200175446573745661756c7457696c6c4e6f7442655361666560501b815250610263565b604051806040016040528060028152602001614f4b60f01b8152505b979650505050505050565b6000836102ac5760405162461bcd60e51b81526004018080602001828103825260238152602001806118fa6023913960400191505060405180910390fd5b735ef30b9986345249bc32d8928b7ee64de9435e396000806102ce8388610fe2565b91509150600073e81f70cc7c0d46e12d70efc60607f16bbd617e886001600160a01b0316634445d799846040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561032c57600080fd5b505afa158015610340573d6000803e3d6000fd5b505050506040513d602081101561035657600080fd5b5051604080516336569e7760e01b815290519192506000916001600160a01b038716916336569e77916004808301926020929190829003018186803b15801561039e57600080fd5b505afa1580156103b2573d6000803e3d6000fd5b505050506040513d60208110156103c857600080fd5b505160408051636cb1c69b60e11b815260048101879052905191925060009182916001600160a01b0385169163d9638d369160248082019260a092909190829003018186803b15801561041a57600080fd5b505afa15801561042e573d6000803e3d6000fd5b505050506040513d60a081101561044457600080fd5b50602081015160409182015182516309092f9760e21b8152600481018a90526001600160a01b0389811660248301528451939650919450600093849392881692632424be5c926044808201939291829003018186803b1580156104a657600080fd5b505afa1580156104ba573d6000803e3d6000fd5b505050506040513d60408110156104d057600080fd5b50805160209182015160408051633612d9a360e11b81526001600160a01b038c81166004830152915193965091945060009390891692636c25b346926024808201939291829003018186803b15801561052857600080fd5b505afa15801561053c573d6000803e3d6000fd5b505050506040513d602081101561055257600080fd5b5051604080516359de7d4160e11b815290519192506000916105d1916001600160a01b038b169163b3bcfa8291600480820192602092909190829003018186803b15801561059f57600080fd5b505afa1580156105b3573d6000803e3d6000fd5b505050506040513d60208110156105c957600080fd5b50518e6110d7565b905060006105e08f84896110e9565b90506105ec858361114d565b94506105f8848261114d565b93506000610606888661119c565b9050610612868861119c565b10159c505050505050505050505050509392505050565b600080735ef30b9986345249bc32d8928b7ee64de9435e3990506000816001600160a01b03166336569e776040518163ffffffff1660e01b815260040160206040518083038186803b15801561067e57600080fd5b505afa158015610692573d6000803e3d6000fd5b505050506040513d60208110156106a857600080fd5b5051905060006106b7876111ff565b9050600080836001600160a01b031663d9638d36846040518263ffffffff1660e01b81526004018082815260200191505060a06040518083038186803b15801561070057600080fd5b505afa158015610714573d6000803e3d6000fd5b505050506040513d60a081101561072a57600080fd5b506020808201516040928301518351634445d79960e01b8152600481018890529351919550935060009273e81f70cc7c0d46e12d70efc60607f16bbd617e8892634445d79992602480840193829003018186803b15801561078a57600080fd5b505afa15801561079e573d6000803e3d6000fd5b505050506040513d60208110156107b457600080fd5b5051604080516359de7d4160e11b81529051919250600091610833916001600160a01b0385169163b3bcfa82916004808201926020929091908290030181
|
||
|
"devdoc": {
|
||
|
"kind": "dev",
|
||
|
"methods": {},
|
||
|
"version": 1
|
||
|
},
|
||
|
"userdoc": {
|
||
|
"kind": "user",
|
||
|
"methods": {},
|
||
|
"version": 1
|
||
|
},
|
||
|
"storageLayout": {
|
||
|
"storage": [],
|
||
|
"types": null
|
||
|
}
|
||
|
}
|