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": "0x608060405234801561001057600080fd5b50610c30806100206000396000f3fe60806040526004361061003f5760003560e01c806306fdde03146100445780634bd3ab82146100ce578063ce88b43914610110578063eb15f78114610148575b600080fd5b34801561005057600080fd5b50610059610176565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561009357818101518382015260200161007b565b50505050905090810190601f1680156100c05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61010e600480360360a08110156100e457600080fd5b506001600160a01b038135811691602081013591604082013516906060810135906080013561019c565b005b61010e6004803603608081101561012657600080fd5b506001600160a01b038135169060208101359060408101359060600135610440565b34801561015457600080fd5b5061015d61062d565b6040805192835260208301919091528051918290030190f35b6040518060400160405280600a81526020016942617369632d76312e3160b01b81525081565b60408051632520e7ff60e01b81526001600160a01b038516600482015290513091632520e7ff916024808301926020929190829003018186803b1580156101e257600080fd5b505afa1580156101f6573d6000803e3d6000fd5b505050506040513d602081101561020c57600080fd5b5051610254576040805162461bcd60e51b8152602060048201526012602482015271696e76616c69642d746f2d6164647265737360701b604482015290519081900360640190fd5b60006102608386610634565b905061026a6106c3565b6001600160a01b0316866001600160a01b031614156102d35760001981146102925780610294565b475b6040519091506001600160a01b0385169082156108fc029083906000818181858888f193505050501580156102cd573d6000803e3d6000fd5b5061036e565b8560001982146102e35781610356565b604080516370a0823160e01b815230600482015290516001600160a01b038316916370a08231916024808301926020929190829003018186803b15801561032957600080fd5b505afa15801561033d573d6000803e3d6000fd5b505050506040513d602081101561035357600080fd5b50515b915061036c6001600160a01b03821686846106db565b505b6103788282610732565b604080518281526020810185905280820184905290516001600160a01b0380871692908916917fbda29dc1242153445159457be3dc12cdc3b4ca777000c536f8a42078b029672d9181900360600190a3604080516001600160a01b038089166020830152818301849052861660608201526080810185905260a08082018590528251808303909101815260c09091019091527fbda29dc1242153445159457be3dc12cdc3b4ca777000c536f8a42078b029672d9061043682826107aa565b5050505050505050565b600061044c8385610634565b90506104566106c3565b6001600160a01b0316856001600160a01b03161461050e5784600019821461047e57816104f1565b604080516370a0823160e01b815233600482015290516001600160a01b038316916370a08231916024808301926020929190829003018186803b1580156104c457600080fd5b505afa1580156104d8573d6000803e3d6000fd5b505050506040513d60208110156104ee57600080fd5b50515b91506105086001600160a01b038216333085610894565b50610568565b8034148061051d575060001981145b610565576040805162461bcd60e51b81526020600482015260146024820152731a5b9d985b1a590b595d1a195c8b585b5bdd5b9d60621b604482015290519081900360640190fd5b50345b6105728282610732565b604080518281526020810185905280820184905290516001600160a01b038716917f4b2bcb0ca50531683faa51870e1018aa0d7272c7f2acc5399389b0c0493865d9919081900360600190a2604080516001600160a01b03871660208201528082018390526060810185905260808082018590528251808303909101815260a09091019091527f4b2bcb0ca50531683faa51870e1018aa0d7272c7f2acc5399389b0c0493865d99061062482826107aa565b50505050505050565b6000908190565b600082156106ba576106446108f4565b6001600160a01b031663a9c70eaa846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561068957600080fd5b505af115801561069d573d6000803e3d6000fd5b505050506040513d60208110156106b357600080fd5b50516106bc565b815b9392505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261072d90849061090c565b505050565b81156107a6576107406108f4565b6001600160a01b03166361e3c94483836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561078d57600080fd5b505af11580156107a1573d6000803e3d6000fd5b505050505b5050565b6000806107b561062d565b915091506107c16109bd565b6001600160a01b031663e14d4fb183838787604051
|
||
|
"deployedBytecode": "0x60806040526004361061003f5760003560e01c806306fdde03146100445780634bd3ab82146100ce578063ce88b43914610110578063eb15f78114610148575b600080fd5b34801561005057600080fd5b50610059610176565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561009357818101518382015260200161007b565b50505050905090810190601f1680156100c05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61010e600480360360a08110156100e457600080fd5b506001600160a01b038135811691602081013591604082013516906060810135906080013561019c565b005b61010e6004803603608081101561012657600080fd5b506001600160a01b038135169060208101359060408101359060600135610440565b34801561015457600080fd5b5061015d61062d565b6040805192835260208301919091528051918290030190f35b6040518060400160405280600a81526020016942617369632d76312e3160b01b81525081565b60408051632520e7ff60e01b81526001600160a01b038516600482015290513091632520e7ff916024808301926020929190829003018186803b1580156101e257600080fd5b505afa1580156101f6573d6000803e3d6000fd5b505050506040513d602081101561020c57600080fd5b5051610254576040805162461bcd60e51b8152602060048201526012602482015271696e76616c69642d746f2d6164647265737360701b604482015290519081900360640190fd5b60006102608386610634565b905061026a6106c3565b6001600160a01b0316866001600160a01b031614156102d35760001981146102925780610294565b475b6040519091506001600160a01b0385169082156108fc029083906000818181858888f193505050501580156102cd573d6000803e3d6000fd5b5061036e565b8560001982146102e35781610356565b604080516370a0823160e01b815230600482015290516001600160a01b038316916370a08231916024808301926020929190829003018186803b15801561032957600080fd5b505afa15801561033d573d6000803e3d6000fd5b505050506040513d602081101561035357600080fd5b50515b915061036c6001600160a01b03821686846106db565b505b6103788282610732565b604080518281526020810185905280820184905290516001600160a01b0380871692908916917fbda29dc1242153445159457be3dc12cdc3b4ca777000c536f8a42078b029672d9181900360600190a3604080516001600160a01b038089166020830152818301849052861660608201526080810185905260a08082018590528251808303909101815260c09091019091527fbda29dc1242153445159457be3dc12cdc3b4ca777000c536f8a42078b029672d9061043682826107aa565b5050505050505050565b600061044c8385610634565b90506104566106c3565b6001600160a01b0316856001600160a01b03161461050e5784600019821461047e57816104f1565b604080516370a0823160e01b815233600482015290516001600160a01b038316916370a08231916024808301926020929190829003018186803b1580156104c457600080fd5b505afa1580156104d8573d6000803e3d6000fd5b505050506040513d60208110156104ee57600080fd5b50515b91506105086001600160a01b038216333085610894565b50610568565b8034148061051d575060001981145b610565576040805162461bcd60e51b81526020600482015260146024820152731a5b9d985b1a590b595d1a195c8b585b5bdd5b9d60621b604482015290519081900360640190fd5b50345b6105728282610732565b604080518281526020810185905280820184905290516001600160a01b038716917f4b2bcb0ca50531683faa51870e1018aa0d7272c7f2acc5399389b0c0493865d9919081900360600190a2604080516001600160a01b03871660208201528082018390526060810185905260808082018590528251808303909101815260a09091019091527f4b2bcb0ca50531683faa51870e1018aa0d7272c7f2acc5399389b0c0493865d99061062482826107aa565b50505050505050565b6000908190565b600082156106ba576106446108f4565b6001600160a01b031663a9c70eaa846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561068957600080fd5b505af115801561069d573d6000803e3d6000fd5b505050506040513d60208110156106b357600080fd5b50516106bc565b815b9392505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261072d90849061090c565b505050565b81156107a6576107406108f4565b6001600160a01b03166361e3c94483836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561078d57600080fd5b505af11580156107a1573d6000803e3d6000fd5b505050505b5050565b6000806107b561062d565b915091506107c16109bd565b6001600160a01b031663e14d4fb1838387876040518563ffffffff1660e01b815260040180858152602001848152602001
|
||
|
"linkReferences": {},
|
||
|
"deployedLinkReferences": {}
|
||
|
}
|