Gelato-automations/deployments/mainnet/ConnectGelatoDataFullRefinanceMaker.json

161 lines
78 KiB
JSON
Raw Normal View History

2020-11-16 16:55:04 +00:00
{
"address": "0xbBC0D2f339FA222e42d56BA8918125743fDcE072",
2020-11-16 16:55:04 +00:00
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "address",
"name": "connectGelatoProviderPayment",
"type": "address"
}
],
"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": [
{
"internalType": "uint256",
"name": "_vaultId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_colToken",
"type": "address"
}
],
"name": "getDataAndCastMakerToCompound",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_vaultAId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_vaultBId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_colToken",
"type": "address"
},
{
"internalType": "string",
"name": "_colType",
"type": "string"
}
],
"name": "getDataAndCastMakerToMaker",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}
],
"transactionHash": "0x5e479484f328bfca1abebd07bb64dd1a8ad33729114d7c864d9a77b6f7c7926c",
2020-11-16 16:55:04 +00:00
"receipt": {
"to": null,
"from": "0xe1F076849B781b1395Fd332dC1758Dbc129be6EC",
"contractAddress": "0xbBC0D2f339FA222e42d56BA8918125743fDcE072",
"transactionIndex": 181,
2020-11-16 16:55:04 +00:00
"gasUsed": "1951563",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0xdf0f59000003e7ff6daafd5e1a4a9d52d529cc14b268f7b91a91b2f4d5d9912a",
"transactionHash": "0x5e479484f328bfca1abebd07bb64dd1a8ad33729114d7c864d9a77b6f7c7926c",
2020-11-16 16:55:04 +00:00
"logs": [],
"blockNumber": 11274058,
"cumulativeGasUsed": "12064603",
2020-11-16 16:55:04 +00:00
"status": 1,
"byzantium": true
},
"args": [53, "0xc65C7f3cb264b181810D3E86291639F0811Acf1E"],
"solcInputHash": "d1d4184366927728b52537856ecb8f22",
"metadata": "{\"compiler\":{\"version\":\"0.7.4+commit.3f05b770\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"connectGelatoProviderPayment\",\"type\":\"address\"}],\"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\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_colToken\",\"type\":\"address\"}],\"name\":\"getDataAndCastMakerToCompound\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultAId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_vaultBId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_colToken\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_colType\",\"type\":\"string\"}],\"name\":\"getDataAndCastMakerToMaker\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"connectorID()\":{\"details\":\"Connector Details\"},\"getDataAndCastMakerToCompound(uint256,address)\":{\"details\":\"payable to be compatible in conjunction with DSA.cast payable target\",\"params\":{\"_colToken\":\"vault's col token address .\",\"_vaultId\":\"Id of the unsafe vault of the client.\"}},\"getDataAndCastMakerToMaker(uint256,uint256,address,string)\":{\"details\":\"payable to be compatible in conjunction with DSA.cast payable target\",\"params\":{\"_colToken\":\"vault's col token address .\",\"_colType\":\"colType of the new vault. example : ETH-B, ETH-A.\",\"_vaultAId\":\"Id of the unsafe vault of the client of Vault A Collateral.\",\"_vaultBId\":\"Id of the vault B Collateral of the client.\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"getDataAndCastMakerToCompound(uint256,address)\":{\"notice\":\"Entry Point for DSA.cast DebtBridge from Maker to Compound\"},\"getDataAndCastMakerToMaker(uint256,uint256,address,string)\":{\"notice\":\"Entry Point for DSA.cast DebtBridge from e.g ETH-A to ETH-B\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/contracts/connectors/ConnectGelatoDataFullRefinanceMaker.sol\":\"ConnectGelatoDataFullRefinanceMaker\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/constants/CDebtBridge.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\npragma solidity 0.7.4;\\n\\nfunction GAS_COSTS_FOR_FULL_REFINANCE() pure returns (uint256[4] memory) {\\n return [uint256(2519000), 3140500, 3971000, 4345000];\\n}\\n\",\"keccak256\":\"0x4c1d06084af7595096eab19ea6598ff8b795c024f682912fbdc97590a2840e78\",\"license\":\"UNLICENSED\"},\"contracts/constants/CGelato.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\npragma solidity 0.7.4;\\n\\nimport {\\n IGelatoGasPriceOracle\\n} from \\\"../interfaces/gelato/IGelatoGasPriceOracle.sol\\\";\\n\\nIGelatoGasPriceOracle constant GELATO_GAS_PRICE_ORACLE = IGelatoGasPriceOracle(\\n 0x169E633A2D1E6c10dD91238Ba11c4A708dfEF37C\\n);\\n\",\"keccak256\":\"0xc74081014a09fb9211119b434c31dc97a3a937b13b45de9f9abcebfb56c7e9ba\",\"license\":\"UNLICENSED\"},\"contracts/constants/CInstaDapp.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\npragma solidity 0.7.4;\\n\\n// InstaDapp\\naddress constant INSTA_MEMORY = 0x8a5419CfC711B2343c17a6ABf4B2bAFaBb06957F;\\n\\n// Connectors\\naddress constant CONNECT_MAKER = 0xac02030d8a8F49eD04b2f52C394D3F901A10F8A9;\\naddress co
"bytecode": "0x60c060405234801561001057600080fd5b5060405162002306380380620023068339810160408190526100319161004c565b60809190915260601b6001600160601b03191660a052610087565b6000806040838503121561005e578182fd5b825160208401519092506001600160a01b038116811461007c578182fd5b809150509250929050565b60805160a05160601c61224e620000b8600039806105e95280610edb528061120e525080610123525061224e6000f3fe60806040526004361061003f5760003560e01c806306fdde031461004457806345c4b9b51461006f578063e588576e14610084578063eb15f78114610097575b600080fd5b34801561005057600080fd5b506100596100ba565b60405161006691906120ce565b60405180910390f35b61008261007d366004611ea7565b6100d6565b005b610082610092366004611e7c565b6100fd565b3480156100a357600080fd5b506100ac61011e565b60405161006692919061218c565b6040518060600160405280602881526020016121c76028913981565b6060806100e68787878787610145565b915091506100f48282610316565b50505050505050565b60608061010a84846103fa565b915091506101188282610316565b50505050565b6001907f000000000000000000000000000000000000000000000000000000000000000090565b60408051600180825281830190925260609182919060208083019080368337019050509150733150e5a805577366816a1ddc7330c6ea17070c058260008151811061018c57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505060006101bf6101ba8961088e565b610af3565b905060006101cc89610b0f565b905060006101ee736b175474e89094c44da98b954eedeac495271d0f84610c30565b905060006101fd8a1583610d42565b9050600061020a82610d98565b90506060808c15610228576102238e8e8e8a8a88610dab565b610237565b6102378e8d8d8d8b8b8961109b565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081610251579050509750638d0a9b1b60e01b736b175474e89094c44da98b954eedeac495271d0f8887858560405160200161029a929190612062565b60408051601f19818403018152908290526102ba9493929160240161202b565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050886000815181106102fa57fe5b6020026020010181905250505050505050509550959350505050565b606063e0e90acf60e01b83833360405160240161033593929190612090565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050905060006060306001600160a01b0316836040516103869190611ffb565b600060405180830381855af49150503d80600081146103c1576040519150601f19603f3d011682016040523d82523d6000602084013e6103c6565b606091505b5091509150816103f3576103f36040518060600160405280602a81526020016121ef602a91398290611420565b5050505050565b60408051600180825281830190925260609182919060208083019080368337019050509150733150e5a805577366816a1ddc7330c6ea17070c058260008151811061044157fe5b60200260200101906001600160a01b031690816001600160a01b031681525050600061046f6101ba8661088e565b9050600061047c86610b0f565b9050600061049e736b175474e89094c44da98b954eedeac495271d0f84610c30565b905060006104ab8261170f565b905060006104b882610d98565b60408051600680825260e08201909252919250606091906020820160c08036833701905050905073ac02030d8a8f49ed04b2f52c394d3f901a10f8a98160008151811061050157fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073ac02030d8a8f49ed04b2f52c394d3f901a10f8a98160018151811061054357fe5b60200260200101906001600160a01b031690816001600160a01b0316815250507307f81230d73a78f63f0c2a3403ad281b067d28f88160028151811061058557fe5b60200260200101906001600160a01b031690816001600160a01b0316815250507307f81230d73a78f63f0c2a3403ad281b067d28f8816003815181106105c757fe5b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000008160048151811061061557fe5b60200260200101906001600160a01b031690816001600160a01b031681525050733150e5a805577366816a1ddc7330c6ea17070c058160058151811061065757fe5b6001600160a01b03929092166020928302919091019091015260408051600680825260e08201909252606091816020015b60608152602001906001900390816106885790505090506106b08b6000196000610258611738565b816000815181106106bd57fe5b60200260200101819052506106d78b60001960008061178d565b816001815181106106e457fe5b60200260200101819052506107058a6106fd88866117e2565b600080611832565b8160028151811061071257fe5b6020026020010181905250610741736b175474e89094c44da98b954eedeac495271d0f600061025860006118
"deployedBytecode": "0x60806040526004361061003f5760003560e01c806306fdde031461004457806345c4b9b51461006f578063e588576e14610084578063eb15f78114610097575b600080fd5b34801561005057600080fd5b506100596100ba565b60405161006691906120ce565b60405180910390f35b61008261007d366004611ea7565b6100d6565b005b610082610092366004611e7c565b6100fd565b3480156100a357600080fd5b506100ac61011e565b60405161006692919061218c565b6040518060600160405280602881526020016121c76028913981565b6060806100e68787878787610145565b915091506100f48282610316565b50505050505050565b60608061010a84846103fa565b915091506101188282610316565b50505050565b6001907f000000000000000000000000000000000000000000000000000000000000000090565b60408051600180825281830190925260609182919060208083019080368337019050509150733150e5a805577366816a1ddc7330c6ea17070c058260008151811061018c57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505060006101bf6101ba8961088e565b610af3565b905060006101cc89610b0f565b905060006101ee736b175474e89094c44da98b954eedeac495271d0f84610c30565b905060006101fd8a1583610d42565b9050600061020a82610d98565b90506060808c15610228576102238e8e8e8a8a88610dab565b610237565b6102378e8d8d8d8b8b8961109b565b604080516001808252818301909252929450909250816020015b6060815260200190600190039081610251579050509750638d0a9b1b60e01b736b175474e89094c44da98b954eedeac495271d0f8887858560405160200161029a929190612062565b60408051601f19818403018152908290526102ba9493929160240161202b565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050886000815181106102fa57fe5b6020026020010181905250505050505050509550959350505050565b606063e0e90acf60e01b83833360405160240161033593929190612090565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050905060006060306001600160a01b0316836040516103869190611ffb565b600060405180830381855af49150503d80600081146103c1576040519150601f19603f3d011682016040523d82523d6000602084013e6103c6565b606091505b5091509150816103f3576103f36040518060600160405280602a81526020016121ef602a91398290611420565b5050505050565b60408051600180825281830190925260609182919060208083019080368337019050509150733150e5a805577366816a1ddc7330c6ea17070c058260008151811061044157fe5b60200260200101906001600160a01b031690816001600160a01b031681525050600061046f6101ba8661088e565b9050600061047c86610b0f565b9050600061049e736b175474e89094c44da98b954eedeac495271d0f84610c30565b905060006104ab8261170f565b905060006104b882610d98565b60408051600680825260e08201909252919250606091906020820160c08036833701905050905073ac02030d8a8f49ed04b2f52c394d3f901a10f8a98160008151811061050157fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073ac02030d8a8f49ed04b2f52c394d3f901a10f8a98160018151811061054357fe5b60200260200101906001600160a01b031690816001600160a01b0316815250507307f81230d73a78f63f0c2a3403ad281b067d28f88160028151811061058557fe5b60200260200101906001600160a01b031690816001600160a01b0316815250507307f81230d73a78f63f0c2a3403ad281b067d28f8816003815181106105c757fe5b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000008160048151811061061557fe5b60200260200101906001600160a01b031690816001600160a01b031681525050733150e5a805577366816a1ddc7330c6ea17070c058160058151811061065757fe5b6001600160a01b03929092166020928302919091019091015260408051600680825260e08201909252606091816020015b60608152602001906001900390816106885790505090506106b08b6000196000610258611738565b816000815181106106bd57fe5b60200260200101819052506106d78b60001960008061178d565b816001815181106106e457fe5b60200260200101819052506107058a6106fd88866117e2565b600080611832565b8160028151811061071257fe5b6020026020010181905250610741736b175474e89094c44da98b954eedeac495271d0f6000610258600061188f565b8160038151811061074e57fe5b60200260200101819052506107668a846000806118ec565b8160048151811061077357fe5b602002602001018190525061079f736b175474e89094c44da98b954eedeac495271d0f88600080611949565b816005815181106107ac57fe5b602090810291909101015260408051600180825281830190925290816020015b60608152602001906001900390816107cc579050509750638d0a9b1b60e01b736b175474e890
2020-11-16 16:55:04 +00:00
"devdoc": {
"kind": "dev",
"methods": {
"connectorID()": {
"details": "Connector Details"
},
"getDataAndCastMakerToCompound(uint256,address)": {
"details": "payable to be compatible in conjunction with DSA.cast payable target",
"params": {
"_colToken": "vault's col token address .",
"_vaultId": "Id of the unsafe vault of the client."
}
},
"getDataAndCastMakerToMaker(uint256,uint256,address,string)": {
"details": "payable to be compatible in conjunction with DSA.cast payable target",
"params": {
"_colToken": "vault's col token address .",
"_colType": "colType of the new vault. example : ETH-B, ETH-A.",
"_vaultAId": "Id of the unsafe vault of the client of Vault A Collateral.",
"_vaultBId": "Id of the vault B Collateral of the client."
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"getDataAndCastMakerToCompound(uint256,address)": {
"notice": "Entry Point for DSA.cast DebtBridge from Maker to Compound"
},
"getDataAndCastMakerToMaker(uint256,uint256,address,string)": {
"notice": "Entry Point for DSA.cast DebtBridge from e.g ETH-A to ETH-B"
}
},
"version": 1
},
"storageLayout": {
"storage": [],
"types": null
}
}