Gelato-automations/pre-compiles/ConnectCompound.json

550 lines
56 KiB
JSON
Raw Permalink Normal View History

2020-08-17 10:17:04 +00:00
{
"contractName": "ConnectCompound",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "cToken",
"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": "LogBorrow",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "compAmt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "LogClaimedComp",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "cToken",
"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": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "cToken",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenAmt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "cTokenAmt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "getId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "LogDepositCToken",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "borrower",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenToPay",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenInReturn",
"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": "LogLiquidate",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "cToken",
"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": "LogPayback",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "cToken",
"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": "LogWithdraw",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "cToken",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "cTokenAmt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "getId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "LogWithdrawCToken",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "ClaimComp",
"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": "borrow",
"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": "depositCToken",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "borrower",
"type": "address"
},
{
"internalType": "address",
"name": "tokenToPay",
"type": "address"
},
{
"internalType": "address",
"name": "tokenInReturn",
"type": "address"
},
{
"internalType": "uint256",
"name": "amt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "getId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "liquidate",
"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": "payback",
"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": "withdraw",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "cTokenAmt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "getId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "withdrawCToken",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}
],
"bytecode": "0x60c0604052600d60808190526c21b7b6b837bab73216bb18971960991b60a090815262000030916000919062000045565b503480156200003e57600080fd5b50620000e1565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200008857805160ff1916838001178555620000b8565b82800160010185558215620000b8579182015b82811115620000b85782518255916020019190600101906200009b565b50620000c6929150620000ca565b5090565b5b80821115620000c65760008155600101620000cb565b612bf980620000f16000396000f3fe6080604052600436106100915760003560e01c8063a33d406f11610059578063a33d406f146101e7578063b6528b791461021f578063c3233d6114610257578063ce88b4391461029f578063eb15f781146102d757610091565b806306fdde03146100965780632cee00f41461012057806338baa4c21461015a5780634532d77614610192578063943e45a7146101ca575b600080fd5b3480156100a257600080fd5b506100ab610305565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101586004803603608081101561013657600080fd5b506001600160a01b038135169060208101359060408101359060600135610393565b005b6101586004803603608081101561017057600080fd5b506001600160a01b03813516906020810135906040810135906060013561071c565b610158600480360360808110156101a857600080fd5b506001600160a01b038135169060208101359060408101359060600135610a28565b610158600480360360208110156101e057600080fd5b5035610ecc565b610158600480360360808110156101fd57600080fd5b506001600160a01b0381351690602081013590604081013590606001356111d0565b6101586004803603608081101561023557600080fd5b506001600160a01b038135169060208101359060408101359060600135611658565b610158600480360360c081101561026d57600080fd5b506001600160a01b03813581169160208101358216916040820135169060608101359060808101359060a00135611bfb565b610158600480360360808110156102b557600080fd5b506001600160a01b03813516906020810135906040810135906060013561232a565b3480156102e357600080fd5b506102ec6126c6565b6040805192835260208301919091528051918290030190f35b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561038b5780601f106103605761010080835404028352916020019161038b565b820191906000526020600020905b81548152906001019060200180831161036e57829003601f168201915b505050505081565b600061039f83856126ce565b905060006103ab61275d565b6001600160a01b031663104b29e9876040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156103f757600080fd5b505afa15801561040b573d6000803e3d6000fd5b505050506040513d602081101561042157600080fd5b5051905080600019831461043557826104a8565b604080516370a0823160e01b815230600482015290516001600160a01b038316916370a08231916024808301926020929190829003018186803b15801561047b57600080fd5b505afa15801561048f573d6000803e3d6000fd5b505050506040513d60208110156104a557600080fd5b50515b9250806001600160a01b031663db006a75846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156104f057600080fd5b505af1158015610504573d6000803e3d6000fd5b505050506040513d602081101561051a57600080fd5b50511561055e576040805162461bcd60e51b815260206004820152600d60248201526c1c995919595b4b59985a5b1959609a1b604482015290519081900360640190fd5b6105688484612775565b604080516001600160a01b03848116825260208201869052818301889052606082018790529151918916917f076dc1c4fe408b88a32238ee59e09b899084b3ee14bd7f9d0a287a335149070c9181900360800190a2604080516001600160a01b03808a166020830152841681830152606081018590526080810187905260a08082018790528251808303909101815260c09091019091527f076dc1c4fe408b88a32238ee59e09b899084b3ee14bd7f9d0a287a335149070c9060008061062c6126c6565b915091506106386127ed565b6001600160a01b031663e14d4fb1838387876040518563ffffffff1660e01b81526004018085815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156106a8578181015183820152602001610690565b50505050905090810190601f1680156106d55780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156106f757600080fd5b505af115801561070b573d600080
"deployedBytecode": "0x6080604052600436106100915760003560e01c8063a33d406f11610059578063a33d406f146101e7578063b6528b791461021f578063c3233d6114610257578063ce88b4391461029f578063eb15f781146102d757610091565b806306fdde03146100965780632cee00f41461012057806338baa4c21461015a5780634532d77614610192578063943e45a7146101ca575b600080fd5b3480156100a257600080fd5b506100ab610305565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101586004803603608081101561013657600080fd5b506001600160a01b038135169060208101359060408101359060600135610393565b005b6101586004803603608081101561017057600080fd5b506001600160a01b03813516906020810135906040810135906060013561071c565b610158600480360360808110156101a857600080fd5b506001600160a01b038135169060208101359060408101359060600135610a28565b610158600480360360208110156101e057600080fd5b5035610ecc565b610158600480360360808110156101fd57600080fd5b506001600160a01b0381351690602081013590604081013590606001356111d0565b6101586004803603608081101561023557600080fd5b506001600160a01b038135169060208101359060408101359060600135611658565b610158600480360360c081101561026d57600080fd5b506001600160a01b03813581169160208101358216916040820135169060608101359060808101359060a00135611bfb565b610158600480360360808110156102b557600080fd5b506001600160a01b03813516906020810135906040810135906060013561232a565b3480156102e357600080fd5b506102ec6126c6565b6040805192835260208301919091528051918290030190f35b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561038b5780601f106103605761010080835404028352916020019161038b565b820191906000526020600020905b81548152906001019060200180831161036e57829003601f168201915b505050505081565b600061039f83856126ce565b905060006103ab61275d565b6001600160a01b031663104b29e9876040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156103f757600080fd5b505afa15801561040b573d6000803e3d6000fd5b505050506040513d602081101561042157600080fd5b5051905080600019831461043557826104a8565b604080516370a0823160e01b815230600482015290516001600160a01b038316916370a08231916024808301926020929190829003018186803b15801561047b57600080fd5b505afa15801561048f573d6000803e3d6000fd5b505050506040513d60208110156104a557600080fd5b50515b9250806001600160a01b031663db006a75846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156104f057600080fd5b505af1158015610504573d6000803e3d6000fd5b505050506040513d602081101561051a57600080fd5b50511561055e576040805162461bcd60e51b815260206004820152600d60248201526c1c995919595b4b59985a5b1959609a1b604482015290519081900360640190fd5b6105688484612775565b604080516001600160a01b03848116825260208201869052818301889052606082018790529151918916917f076dc1c4fe408b88a32238ee59e09b899084b3ee14bd7f9d0a287a335149070c9181900360800190a2604080516001600160a01b03808a166020830152841681830152606081018590526080810187905260a08082018790528251808303909101815260c09091019091527f076dc1c4fe408b88a32238ee59e09b899084b3ee14bd7f9d0a287a335149070c9060008061062c6126c6565b915091506106386127ed565b6001600160a01b031663e14d4fb1838387876040518563ffffffff1660e01b81526004018085815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156106a8578181015183820152602001610690565b50505050905090810190601f1680156106d55780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156106f757600080fd5b505af115801561070b573d6000803e3d6000fd5b505050505050505050505050505050565b600061072883856126ce565b9050600061073461275d565b6001600160a01b031663104b29e9876040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561078057600080fd5b505afa158015610794573d6000803e3d6000fd5b505050506040513d60208110156107aa57600080fd5b505190506107b781612805565b806001600160a01b031663c5ebeaec836040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15
"linkReferences": {},
"deployedLinkReferences": {}
}