mirror of
https://github.com/Instadapp/Gelato-automations.git
synced 2024-07-29 22:28:07 +00:00
131 lines
40 KiB
JSON
131 lines
40 KiB
JSON
|
{
|
||
|
"address": "0x5A6bC81908Df5EC5DC4ad3Bd59AEabA1B86Fc126",
|
||
|
"abi": [
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "id",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "constructor"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "connectorID",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_type",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "id",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "name",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "string",
|
||
|
"name": "",
|
||
|
"type": "string"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "_token",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_amt",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_getId",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "_setId",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "payExecutor",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "payable",
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"transactionHash": "0x75264929dc0c3d302391dd1d46bd1997b18877d3f5fcf017afc31f8999e003f0",
|
||
|
"receipt": {
|
||
|
"to": null,
|
||
|
"from": "0x5B753BF02a42bC73B5846dfd16a8F2e082b99a6a",
|
||
|
"contractAddress": "0x5A6bC81908Df5EC5DC4ad3Bd59AEabA1B86Fc126",
|
||
|
"transactionIndex": 170,
|
||
|
"gasUsed": "486782",
|
||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||
|
"blockHash": "0x175cbb155d9aae984bcb52f67895b6ae1472f06499e1636a2079d719b7490d3e",
|
||
|
"transactionHash": "0x75264929dc0c3d302391dd1d46bd1997b18877d3f5fcf017afc31f8999e003f0",
|
||
|
"logs": [],
|
||
|
"blockNumber": 11348260,
|
||
|
"cumulativeGasUsed": "12380152",
|
||
|
"status": 1,
|
||
|
"byzantium": true
|
||
|
},
|
||
|
"args": [58],
|
||
|
"solcInputHash": "bf7cd3f181208953a3fd533c358cf962",
|
||
|
"metadata": "{\"compiler\":{\"version\":\"0.7.4+commit.3f05b770\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"connectorID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_type\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_getId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_setId\",\"type\":\"uint256\"}],\"name\":\"payExecutor\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Gelato Team\",\"kind\":\"dev\",\"methods\":{\"connectorID()\":{\"details\":\"Connector Details\"},\"payExecutor(address,uint256,uint256,uint256)\":{\"details\":\"Gelato Executor risks: - _getId does not match actual InstaMemory executor payment slot - _token balance not in DSA - worthless _token risk payable to be compatible in conjunction with DSA.cast payable target\",\"params\":{\"_amt\":\"The amount of _token to pay the Gelato Executor.\",\"_getId\":\"The InstaMemory slot at which the payment amount was stored.\",\"_setId\":\"The InstaMemory slot to save the executor payout amound in.\",\"_token\":\"The token used to pay the Executor.\"}}},\"title\":\"ConnectGelatoExecutorPayment\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"payExecutor(address,uint256,uint256,uint256)\":{\"notice\":\"Transfers automation gas fees to Gelato Executor\"}},\"notice\":\"InstaDapp Connector to compensate Gelato Executors for automation-gas.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/contracts/connectors/ConnectGelatoExecutorPayment.sol\":\"ConnectGelatoExecutorPayment\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\\n * checks.\\n *\\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\\n * in bugs, because programmers usually assume that an overflow raises an\\n * error, which is the standard behavior in high level programming languages.\\n * `SafeMath` restores this intuition by reverting the transaction when an\\n * operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n *\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a, \\\"SafeMath: addition overflow\\\");\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n return sub(a, b, \\\"SafeMath: subtraction overflow\\\");\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigne
|
||
|
"bytecode": "0x60a060405234801561001057600080fd5b506040516108263803806108268339818101604052602081101561003357600080fd5b50516080526080516107d4610052600039806101b352506107d46000f3fe6080604052600436106100345760003560e01c806306fdde03146100395780631911336f146100c3578063eb15f781146100fd575b600080fd5b34801561004557600080fd5b5061004e61012b565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610088578181015183820152602001610070565b50505050905090810190601f1680156100b55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100fb600480360360808110156100d957600080fd5b506001600160a01b038135169060208101359060408101359060600135610147565b005b34801561010957600080fd5b506101126101ae565b6040805192835260208301919091528051918290030190f35b6040518060600160405280602181526020016107546021913981565b600061015383856101d5565b905061015f8282610271565b6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156101935761018e32826102ee565b6101a7565b6101a76001600160a01b03861632836103d8565b5050505050565b6001907f000000000000000000000000000000000000000000000000000000000000000090565b6000821561026857738a5419cfc711b2343c17a6abf4b2bafabb06957f6001600160a01b031663a9c70eaa846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561023757600080fd5b505af115801561024b573d6000803e3d6000fd5b505050506040513d602081101561026157600080fd5b505161026a565b815b9392505050565b81156102ea5760408051631878f25160e21b815260048101849052602481018390529051738a5419cfc711b2343c17a6abf4b2bafabb06957f916361e3c94491604480830192600092919082900301818387803b1580156102d157600080fd5b505af11580156102e5573d6000803e3d6000fd5b505050505b5050565b80471015610343576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d806000811461038e576040519150601f19603f3d011682016040523d82523d6000602084013e610393565b606091505b50509050806103d35760405162461bcd60e51b815260040180806020018281038252603a8152602001806106f4603a913960400191505060405180910390fd5b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526103d3908490606061047a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166104d69092919063ffffffff16565b8051909150156103d35780806020019051602081101561049957600080fd5b50516103d35760405162461bcd60e51b815260040180806020018281038252602a815260200180610775602a913960400191505060405180910390fd5b60606104e584846000856104ed565b949350505050565b60608247101561052e5760405162461bcd60e51b815260040180806020018281038252602681526020018061072e6026913960400191505060405180910390fd5b61053785610649565b610588576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106105c75780518252601f1990920191602091820191016105a8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610629576040519150601f19603f3d011682016040523d82523d6000602084013e61062e565b606091505b509150915061063e82828661064f565b979650505050505050565b3b151590565b6060831561065e57508161026a565b82511561066e5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156106b85781810151838201526020016106a0565b50505050905090810190601f1680156106e55780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c436f6e6e65637447656c61746f4578656375746f725061796d656e742d76312e305361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673
|
||
|
"deployedBytecode": "0x6080604052600436106100345760003560e01c806306fdde03146100395780631911336f146100c3578063eb15f781146100fd575b600080fd5b34801561004557600080fd5b5061004e61012b565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610088578181015183820152602001610070565b50505050905090810190601f1680156100b55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100fb600480360360808110156100d957600080fd5b506001600160a01b038135169060208101359060408101359060600135610147565b005b34801561010957600080fd5b506101126101ae565b6040805192835260208301919091528051918290030190f35b6040518060600160405280602181526020016107546021913981565b600061015383856101d5565b905061015f8282610271565b6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156101935761018e32826102ee565b6101a7565b6101a76001600160a01b03861632836103d8565b5050505050565b6001907f000000000000000000000000000000000000000000000000000000000000000090565b6000821561026857738a5419cfc711b2343c17a6abf4b2bafabb06957f6001600160a01b031663a9c70eaa846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561023757600080fd5b505af115801561024b573d6000803e3d6000fd5b505050506040513d602081101561026157600080fd5b505161026a565b815b9392505050565b81156102ea5760408051631878f25160e21b815260048101849052602481018390529051738a5419cfc711b2343c17a6abf4b2bafabb06957f916361e3c94491604480830192600092919082900301818387803b1580156102d157600080fd5b505af11580156102e5573d6000803e3d6000fd5b505050505b5050565b80471015610343576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d806000811461038e576040519150601f19603f3d011682016040523d82523d6000602084013e610393565b606091505b50509050806103d35760405162461bcd60e51b815260040180806020018281038252603a8152602001806106f4603a913960400191505060405180910390fd5b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526103d3908490606061047a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166104d69092919063ffffffff16565b8051909150156103d35780806020019051602081101561049957600080fd5b50516103d35760405162461bcd60e51b815260040180806020018281038252602a815260200180610775602a913960400191505060405180910390fd5b60606104e584846000856104ed565b949350505050565b60608247101561052e5760405162461bcd60e51b815260040180806020018281038252602681526020018061072e6026913960400191505060405180910390fd5b61053785610649565b610588576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106105c75780518252601f1990920191602091820191016105a8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610629576040519150601f19603f3d011682016040523d82523d6000602084013e61062e565b606091505b509150915061063e82828661064f565b979650505050505050565b3b151590565b6060831561065e57508161026a565b82511561066e5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156106b85781810151838201526020016106a0565b50505050905090810190601f1680156106e55780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c436f6e6e65637447656c61746f4578656375746f725061796d656e742d76312e305361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220205da12e5d793a53eacba7e6c59ab4af0b2d1e3c1ba2f163f7042ddb23aa92b664736f6c63430007040033",
|
||
|
"devdoc": {
|
||
|
"author": "Gelato Team",
|
||
|
"kind": "dev",
|
||
|
"methods": {
|
||
|
"connectorID()": {
|
||
|
"details": "Connector Details"
|
||
|
},
|
||
|
"payExecutor(address,uint256,uint256,uint256)": {
|
||
|
"details": "Gelato Executor risks: - _getId does not match actual InstaMemory executor payment slot - _token balance not in DSA - worthless _token risk payable to be compatible in conjunction with DSA.cast payable target",
|
||
|
"params": {
|
||
|
"_amt": "The amount of _token to pay the Gelato Executor.",
|
||
|
"_getId": "The InstaMemory slot at which the payment amount was stored.",
|
||
|
"_setId": "The InstaMemory slot to save the executor payout amound in.",
|
||
|
"_token": "The token used to pay the Executor."
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"title": "ConnectGelatoExecutorPayment",
|
||
|
"version": 1
|
||
|
},
|
||
|
"userdoc": {
|
||
|
"kind": "user",
|
||
|
"methods": {
|
||
|
"payExecutor(address,uint256,uint256,uint256)": {
|
||
|
"notice": "Transfers automation gas fees to Gelato Executor"
|
||
|
}
|
||
|
},
|
||
|
"notice": "InstaDapp Connector to compensate Gelato Executors for automation-gas.",
|
||
|
"version": 1
|
||
|
},
|
||
|
"storageLayout": {
|
||
|
"storage": [],
|
||
|
"types": null
|
||
|
}
|
||
|
}
|