Gelato-automations/pre-compiles/ConnectInstaPool.json

444 lines
45 KiB
JSON
Raw Normal View History

{
"contractName": "ConnectInstaPool",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token",
"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": "LogDepositLiquidity",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token",
"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": "LogFlashBorrow",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenAmt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "feeCollected",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "getId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "LogFlashPayback",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "origin",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenAmt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "originFeeAmt",
"type": "uint256"
}
],
"name": "LogOriginFeeCollected",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token",
"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": "LogWithdrawLiquidity",
"type": "event"
},
{
"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": "addFeeAmount",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "connectorID",
"outputs": [
{
"internalType": "uint256",
"name": "_type",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_id",
"type": "uint256"
}
],
"stateMutability": "pure",
"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": "deposit",
"outputs": [],
"stateMutability": "payable",
"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": "flashBorrow",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "tokens",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "amts",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "getId",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "setId",
"type": "uint256[]"
}
],
"name": "flashMultiBorrow",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "tokens",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "getId",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "setId",
"type": "uint256[]"
}
],
"name": "flashMultiPayback",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "origin",
"type": "address"
},
{
"internalType": "address[]",
"name": "tokens",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "getId",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "setId",
"type": "uint256[]"
}
],
"name": "flashMultiPaybackOrigin",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "getId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "flashPayback",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "origin",
"type": "address"
},
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "getId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "flashPaybackOrigin",
"outputs": [],
"stateMutability": "payable",
"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": "withdraw",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}
],
"bytecode": "0x60c0604052600e60808190526d496e737461506f6f6c2d76322e3160901b60a090815262000031916000919062000046565b503480156200003f57600080fd5b50620000e2565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200008957805160ff1916838001178555620000b9565b82800160010185558215620000b9579182015b82811115620000b95782518255916020019190600101906200009c565b50620000c7929150620000cb565b5090565b5b80821115620000c75760008155600101620000cc565b61231680620000f26000396000f3fe60806040526004361061009c5760003560e01c80635aedbd68116100645780635aedbd681461011a57806362c587ef1461012d578063b737f01b14610140578063ce88b43914610153578063eaef2b7614610166578063eb15f781146101795761009c565b806306fdde03146100a15780630f65e079146100cc5780631690991c146100e15780632925a4f5146100f45780634532d77614610107575b600080fd5b3480156100ad57600080fd5b506100b661019c565b6040516100c391906120d2565b60405180910390f35b6100df6100da366004611cb1565b61022a565b005b6100df6100ef366004611db5565b6103ba565b6100df610102366004611ce5565b610575565b6100df610115366004611ce5565b6105c9565b6100df610128366004611ce5565b61075f565b6100df61013b366004611bc3565b61087c565b6100df61014e366004611d1f565b610a41565b6100df610161366004611ce5565b610c33565b6100df610174366004611c08565b610f21565b34801561018557600080fd5b5061018e611107565b6040516100c3929190612238565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102225780601f106101f757610100808354040283529160200191610222565b820191906000526020600020905b81548152906001019060200180831161020557829003601f168201915b505050505081565b600061023461110f565b90506000816001600160a01b03166384a0e58f866040518263ffffffff1660e01b81526004016102649190611fa3565b60206040518083038186803b15801561027c57600080fd5b505afa158015610290573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102b49190611e94565b9050846000806102c48385611127565b604080516001808252818301909252929450909250606091906020808301908036833701905050905088816000815181106102fb57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505061032686858761129c565b60405163030ecdeb60e21b81526001600160a01b03871690630c3b37ac90610352908490600401612091565b600060405180830381600087803b15801561036c57600080fd5b505af1158015610380573d6000803e3d6000fd5b5050505060008211156103985761039883858461129c565b6103a28786611312565b6103af8986848b8b61137f565b505050505050505050565b8660608167ffffffffffffffff811180156103d457600080fd5b506040519080825280602002602001820160405280156103fe578160200160208202803683370190505b50905060005b828110156104595761043a87878381811061041b57fe5b905060200201358a8a8481811061042e57fe5b90506020020135611404565b82828151811061044657fe5b6020908102919091010152600101610404565b5061046261110f565b6001600160a01b0316632a9dcb068b8b846040518463ffffffff1660e01b815260040161049193929190612061565b600060405180830381600087803b1580156104ab57600080fd5b505af11580156104bf573d6000803e3d6000fd5b5050505060005b82811015610568576104fd8585838181106104dd57fe5b905060200201358383815181106104f057fe5b6020026020010151611312565b6105608b8b8381811061050c57fe5b90506020020160208101906105219190611b8b565b83838151811061052d57fe5b602002602001015189898581811061054157fe5b9050602002013588888681811061055457fe5b9050602002013561149f565b6001016104c6565b5050505050505050505050565b60006105818385611404565b9050806105a95760405162461bcd60e51b81526004016105a090612113565b60405180910390fd5b60006105b58683611579565b90506105c18382611312565b505050505050565b60006105d58385611404565b90506105df61110f565b6001600160a01b031663f3fef3a386836040518363ffffffff1660e01b815260040161060c929190611fe0565b600060405180830381600087803b15801561062657600080fd5b505af115801561063a573d6000803e3d6000fd5b505050506106488282611312565b846001600160a01b03167f9ff4cb7f3b4986a113dbb55a03744331895ce0f50a84928bd60a323e213a82ab8285856040516106859392919061226b565b60405180910390a26040517f9ff4cb7f3b4986a113dbb55a03744331895ce0f50a84928bd60a323e213a82ab906060906106c9908890859088908890602001611ff9565b60405160208183030381529060405290506000806106e5611107565b915091506106f16116ae565b6001600160a01b031663e14d4fb18383878760
"deployedBytecode": "0x60806040526004361061009c5760003560e01c80635aedbd68116100645780635aedbd681461011a57806362c587ef1461012d578063b737f01b14610140578063ce88b43914610153578063eaef2b7614610166578063eb15f781146101795761009c565b806306fdde03146100a15780630f65e079146100cc5780631690991c146100e15780632925a4f5146100f45780634532d77614610107575b600080fd5b3480156100ad57600080fd5b506100b661019c565b6040516100c391906120d2565b60405180910390f35b6100df6100da366004611cb1565b61022a565b005b6100df6100ef366004611db5565b6103ba565b6100df610102366004611ce5565b610575565b6100df610115366004611ce5565b6105c9565b6100df610128366004611ce5565b61075f565b6100df61013b366004611bc3565b61087c565b6100df61014e366004611d1f565b610a41565b6100df610161366004611ce5565b610c33565b6100df610174366004611c08565b610f21565b34801561018557600080fd5b5061018e611107565b6040516100c3929190612238565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102225780601f106101f757610100808354040283529160200191610222565b820191906000526020600020905b81548152906001019060200180831161020557829003601f168201915b505050505081565b600061023461110f565b90506000816001600160a01b03166384a0e58f866040518263ffffffff1660e01b81526004016102649190611fa3565b60206040518083038186803b15801561027c57600080fd5b505afa158015610290573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102b49190611e94565b9050846000806102c48385611127565b604080516001808252818301909252929450909250606091906020808301908036833701905050905088816000815181106102fb57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505061032686858761129c565b60405163030ecdeb60e21b81526001600160a01b03871690630c3b37ac90610352908490600401612091565b600060405180830381600087803b15801561036c57600080fd5b505af1158015610380573d6000803e3d6000fd5b5050505060008211156103985761039883858461129c565b6103a28786611312565b6103af8986848b8b61137f565b505050505050505050565b8660608167ffffffffffffffff811180156103d457600080fd5b506040519080825280602002602001820160405280156103fe578160200160208202803683370190505b50905060005b828110156104595761043a87878381811061041b57fe5b905060200201358a8a8481811061042e57fe5b90506020020135611404565b82828151811061044657fe5b6020908102919091010152600101610404565b5061046261110f565b6001600160a01b0316632a9dcb068b8b846040518463ffffffff1660e01b815260040161049193929190612061565b600060405180830381600087803b1580156104ab57600080fd5b505af11580156104bf573d6000803e3d6000fd5b5050505060005b82811015610568576104fd8585838181106104dd57fe5b905060200201358383815181106104f057fe5b6020026020010151611312565b6105608b8b8381811061050c57fe5b90506020020160208101906105219190611b8b565b83838151811061052d57fe5b602002602001015189898581811061054157fe5b9050602002013588888681811061055457fe5b9050602002013561149f565b6001016104c6565b5050505050505050505050565b60006105818385611404565b9050806105a95760405162461bcd60e51b81526004016105a090612113565b60405180910390fd5b60006105b58683611579565b90506105c18382611312565b505050505050565b60006105d58385611404565b90506105df61110f565b6001600160a01b031663f3fef3a386836040518363ffffffff1660e01b815260040161060c929190611fe0565b600060405180830381600087803b15801561062657600080fd5b505af115801561063a573d6000803e3d6000fd5b505050506106488282611312565b846001600160a01b03167f9ff4cb7f3b4986a113dbb55a03744331895ce0f50a84928bd60a323e213a82ab8285856040516106859392919061226b565b60405180910390a26040517f9ff4cb7f3b4986a113dbb55a03744331895ce0f50a84928bd60a323e213a82ab906060906106c9908890859088908890602001611ff9565b60405160208183030381529060405290506000806106e5611107565b915091506106f16116ae565b6001600160a01b031663e14d4fb1838387876040518563ffffffff1660e01b81526004016107229493929190612246565b600060405180830381600087803b15801561073c57600080fd5b505af1158015610750573d6000803e3d6000fd5b50505050505050505050505050565b600061076b8385611404565b6040805160018082528183019092529192506060919060208083019080368337019050509050858160008151811061079f57fe5b6001600160a01b03929092166020928302919091019091015260408051600180825281830190925260609181602001602082028036833701905050905082816000815181106107ea57fe5b6020026020010181
"linkReferences": {},
"deployedLinkReferences": {}
}