mirror of
https://github.com/Instadapp/Gelato-automations.git
synced 2024-07-29 22:28:07 +00:00
170 lines
16 KiB
JSON
170 lines
16 KiB
JSON
{
|
|
"contractName": "ConnectBasic",
|
|
"abi": [
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "erc20",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "tokenAmt",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "getId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "setId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "LogDeposit",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "erc20",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "tokenAmt",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "getId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "uint256",
|
|
"name": "setId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "LogWithdraw",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "connectorID",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "model",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "id",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "erc20",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "tokenAmt",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "getId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "setId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "deposit",
|
|
"outputs": [],
|
|
"stateMutability": "payable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "name",
|
|
"outputs": [
|
|
{
|
|
"internalType": "string",
|
|
"name": "",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "erc20",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "tokenAmt",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address payable",
|
|
"name": "to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "getId",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "setId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "withdraw",
|
|
"outputs": [],
|
|
"stateMutability": "payable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"bytecode": "0x608060405234801561001057600080fd5b50610c30806100206000396000f3fe60806040526004361061003f5760003560e01c806306fdde03146100445780634bd3ab82146100ce578063ce88b43914610110578063eb15f78114610148575b600080fd5b34801561005057600080fd5b50610059610176565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561009357818101518382015260200161007b565b50505050905090810190601f1680156100c05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61010e600480360360a08110156100e457600080fd5b506001600160a01b038135811691602081013591604082013516906060810135906080013561019c565b005b61010e6004803603608081101561012657600080fd5b506001600160a01b038135169060208101359060408101359060600135610440565b34801561015457600080fd5b5061015d61062d565b6040805192835260208301919091528051918290030190f35b6040518060400160405280600a81526020016942617369632d76312e3160b01b81525081565b60408051632520e7ff60e01b81526001600160a01b038516600482015290513091632520e7ff916024808301926020929190829003018186803b1580156101e257600080fd5b505afa1580156101f6573d6000803e3d6000fd5b505050506040513d602081101561020c57600080fd5b5051610254576040805162461bcd60e51b8152602060048201526012602482015271696e76616c69642d746f2d6164647265737360701b604482015290519081900360640190fd5b60006102608386610634565b905061026a6106c3565b6001600160a01b0316866001600160a01b031614156102d35760001981146102925780610294565b475b6040519091506001600160a01b0385169082156108fc029083906000818181858888f193505050501580156102cd573d6000803e3d6000fd5b5061036e565b8560001982146102e35781610356565b604080516370a0823160e01b815230600482015290516001600160a01b038316916370a08231916024808301926020929190829003018186803b15801561032957600080fd5b505afa15801561033d573d6000803e3d6000fd5b505050506040513d602081101561035357600080fd5b50515b915061036c6001600160a01b03821686846106db565b505b6103788282610732565b604080518281526020810185905280820184905290516001600160a01b0380871692908916917fbda29dc1242153445159457be3dc12cdc3b4ca777000c536f8a42078b029672d9181900360600190a3604080516001600160a01b038089166020830152818301849052861660608201526080810185905260a08082018590528251808303909101815260c09091019091527fbda29dc1242153445159457be3dc12cdc3b4ca777000c536f8a42078b029672d9061043682826107aa565b5050505050505050565b600061044c8385610634565b90506104566106c3565b6001600160a01b0316856001600160a01b03161461050e5784600019821461047e57816104f1565b604080516370a0823160e01b815233600482015290516001600160a01b038316916370a08231916024808301926020929190829003018186803b1580156104c457600080fd5b505afa1580156104d8573d6000803e3d6000fd5b505050506040513d60208110156104ee57600080fd5b50515b91506105086001600160a01b038216333085610894565b50610568565b8034148061051d575060001981145b610565576040805162461bcd60e51b81526020600482015260146024820152731a5b9d985b1a590b595d1a195c8b585b5bdd5b9d60621b604482015290519081900360640190fd5b50345b6105728282610732565b604080518281526020810185905280820184905290516001600160a01b038716917f4b2bcb0ca50531683faa51870e1018aa0d7272c7f2acc5399389b0c0493865d9919081900360600190a2604080516001600160a01b03871660208201528082018390526060810185905260808082018590528251808303909101815260a09091019091527f4b2bcb0ca50531683faa51870e1018aa0d7272c7f2acc5399389b0c0493865d99061062482826107aa565b50505050505050565b6000908190565b600082156106ba576106446108f4565b6001600160a01b031663a9c70eaa846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561068957600080fd5b505af115801561069d573d6000803e3d6000fd5b505050506040513d60208110156106b357600080fd5b50516106bc565b815b9392505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261072d90849061090c565b505050565b81156107a6576107406108f4565b6001600160a01b03166361e3c94483836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561078d57600080fd5b505af11580156107a1573d6000803e3d6000fd5b505050505b5050565b6000806107b561062d565b915091506107c16109bd565b6001600160a01b031663e14d4fb1838387876040518563ffffffff1660e01b81526004018085815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610831578181015183820152602001610819565b50505050905090810190601f16801561085e5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561088057600080fd5b505af1158015610436573d6000803e3d6000fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108ee90859061090c565b50505050565b738a5419cfc711b2343c17a6abf4b2bafabb06957f90565b6060610961826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109d59092919063ffffffff16565b80519091501561072d5780806020019051602081101561098057600080fd5b505161072d5760405162461bcd60e51b815260040180806020018281038252602a815260200180610bd1602a913960400191505060405180910390fd5b732af7ea6cb911035f3eb1ed895cb6692c39ecba9790565b60606109e484846000856109ec565b949350505050565b60606109f785610b97565b610a48576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610a875780518252601f199092019160209182019101610a68565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610ae9576040519150601f19603f3d011682016040523d82523d6000602084013e610aee565b606091505b50915091508115610b025791506109e49050565b805115610b125780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b5c578181015183820152602001610b44565b50505050905090810190601f168015610b895780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906109e457505015159291505056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220548f6fdde99dbd63ec174e3c1bbbbe4f5f4a2229d96d0229d8913c47991f122464736f6c634300060c0033",
|
|
"deployedBytecode": "0x60806040526004361061003f5760003560e01c806306fdde03146100445780634bd3ab82146100ce578063ce88b43914610110578063eb15f78114610148575b600080fd5b34801561005057600080fd5b50610059610176565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561009357818101518382015260200161007b565b50505050905090810190601f1680156100c05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61010e600480360360a08110156100e457600080fd5b506001600160a01b038135811691602081013591604082013516906060810135906080013561019c565b005b61010e6004803603608081101561012657600080fd5b506001600160a01b038135169060208101359060408101359060600135610440565b34801561015457600080fd5b5061015d61062d565b6040805192835260208301919091528051918290030190f35b6040518060400160405280600a81526020016942617369632d76312e3160b01b81525081565b60408051632520e7ff60e01b81526001600160a01b038516600482015290513091632520e7ff916024808301926020929190829003018186803b1580156101e257600080fd5b505afa1580156101f6573d6000803e3d6000fd5b505050506040513d602081101561020c57600080fd5b5051610254576040805162461bcd60e51b8152602060048201526012602482015271696e76616c69642d746f2d6164647265737360701b604482015290519081900360640190fd5b60006102608386610634565b905061026a6106c3565b6001600160a01b0316866001600160a01b031614156102d35760001981146102925780610294565b475b6040519091506001600160a01b0385169082156108fc029083906000818181858888f193505050501580156102cd573d6000803e3d6000fd5b5061036e565b8560001982146102e35781610356565b604080516370a0823160e01b815230600482015290516001600160a01b038316916370a08231916024808301926020929190829003018186803b15801561032957600080fd5b505afa15801561033d573d6000803e3d6000fd5b505050506040513d602081101561035357600080fd5b50515b915061036c6001600160a01b03821686846106db565b505b6103788282610732565b604080518281526020810185905280820184905290516001600160a01b0380871692908916917fbda29dc1242153445159457be3dc12cdc3b4ca777000c536f8a42078b029672d9181900360600190a3604080516001600160a01b038089166020830152818301849052861660608201526080810185905260a08082018590528251808303909101815260c09091019091527fbda29dc1242153445159457be3dc12cdc3b4ca777000c536f8a42078b029672d9061043682826107aa565b5050505050505050565b600061044c8385610634565b90506104566106c3565b6001600160a01b0316856001600160a01b03161461050e5784600019821461047e57816104f1565b604080516370a0823160e01b815233600482015290516001600160a01b038316916370a08231916024808301926020929190829003018186803b1580156104c457600080fd5b505afa1580156104d8573d6000803e3d6000fd5b505050506040513d60208110156104ee57600080fd5b50515b91506105086001600160a01b038216333085610894565b50610568565b8034148061051d575060001981145b610565576040805162461bcd60e51b81526020600482015260146024820152731a5b9d985b1a590b595d1a195c8b585b5bdd5b9d60621b604482015290519081900360640190fd5b50345b6105728282610732565b604080518281526020810185905280820184905290516001600160a01b038716917f4b2bcb0ca50531683faa51870e1018aa0d7272c7f2acc5399389b0c0493865d9919081900360600190a2604080516001600160a01b03871660208201528082018390526060810185905260808082018590528251808303909101815260a09091019091527f4b2bcb0ca50531683faa51870e1018aa0d7272c7f2acc5399389b0c0493865d99061062482826107aa565b50505050505050565b6000908190565b600082156106ba576106446108f4565b6001600160a01b031663a9c70eaa846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561068957600080fd5b505af115801561069d573d6000803e3d6000fd5b505050506040513d60208110156106b357600080fd5b50516106bc565b815b9392505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261072d90849061090c565b505050565b81156107a6576107406108f4565b6001600160a01b03166361e3c94483836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561078d57600080fd5b505af11580156107a1573d6000803e3d6000fd5b505050505b5050565b6000806107b561062d565b915091506107c16109bd565b6001600160a01b031663e14d4fb1838387876040518563ffffffff1660e01b81526004018085815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610831578181015183820152602001610819565b50505050905090810190601f16801561085e5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15801561088057600080fd5b505af1158015610436573d6000803e3d6000fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108ee90859061090c565b50505050565b738a5419cfc711b2343c17a6abf4b2bafabb06957f90565b6060610961826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109d59092919063ffffffff16565b80519091501561072d5780806020019051602081101561098057600080fd5b505161072d5760405162461bcd60e51b815260040180806020018281038252602a815260200180610bd1602a913960400191505060405180910390fd5b732af7ea6cb911035f3eb1ed895cb6692c39ecba9790565b60606109e484846000856109ec565b949350505050565b60606109f785610b97565b610a48576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610a875780518252601f199092019160209182019101610a68565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610ae9576040519150601f19603f3d011682016040523d82523d6000602084013e610aee565b606091505b50915091508115610b025791506109e49050565b805115610b125780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b5c578181015183820152602001610b44565b50505050905090810190601f168015610b895780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906109e457505015159291505056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220548f6fdde99dbd63ec174e3c1bbbbe4f5f4a2229d96d0229d8913c47991f122464736f6c634300060c0033",
|
|
"linkReferences": {},
|
|
"deployedLinkReferences": {}
|
|
}
|