Gelato-automations/pre-compiles/ConnectMaker.json

640 lines
80 KiB
JSON
Raw Normal View History

2020-08-17 10:17:04 +00:00
{
"contractName": "ConnectMaker",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "vault",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "ilk",
"type": "bytes32"
},
{
"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": true,
"internalType": "uint256",
"name": "vault",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "ilk",
"type": "bytes32"
}
],
"name": "LogClose",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "vault",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "ilk",
"type": "bytes32"
},
{
"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": false,
"internalType": "uint256",
"name": "tokenAmt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "getId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "LogDepositDai",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "vault",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "ilk",
"type": "bytes32"
},
{
"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": "LogExitDai",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "vault",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "ilk",
"type": "bytes32"
}
],
"name": "LogOpen",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "vault",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "ilk",
"type": "bytes32"
},
{
"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": "uint256",
"name": "vault",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "ilk",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "LogTransfer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "vault",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "ilk",
"type": "bytes32"
},
{
"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": false,
"internalType": "uint256",
"name": "tokenAmt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "getId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "LogWithdrawDai",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "vault",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "ilk",
"type": "bytes32"
},
{
"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": "LogWithdrawLiquidated",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "vault",
"type": "uint256"
},
{
"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": [
{
"internalType": "uint256",
"name": "vault",
"type": "uint256"
}
],
"name": "close",
"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": "uint256",
"name": "vault",
"type": "uint256"
},
{
"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": "uint256",
"name": "amt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "getId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "depositDai",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "vault",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "getId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "exitDai",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "colType",
"type": "string"
}
],
"name": "open",
"outputs": [
{
"internalType": "uint256",
"name": "vault",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "vault",
"type": "uint256"
},
{
"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": "uint256",
"name": "vault",
"type": "uint256"
},
{
"internalType": "address",
"name": "nextOwner",
"type": "address"
}
],
"name": "transfer",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "vault",
"type": "uint256"
},
{
"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": "uint256",
"name": "amt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "getId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "withdrawDai",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "vault",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "getId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "setId",
"type": "uint256"
}
],
"name": "withdrawLiquidated",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50614269806100206000396000f3fe6080604052600436106100c25760003560e01c8063674fb1b41161007f578063d5e0da3611610059578063d5e0da36146102b0578063d6eac95d146102df578063e4dcb06b14610308578063eb15f7811461038a576100c2565b8063674fb1b414610226578063b7760c8f14610255578063c9fd076e14610281576100c2565b806306fdde03146100c75780630aebeb4e146101515780630faee32414610170578063111d94821461019f5780632505c3d9146101ce578063369fb4a9146101fd575b600080fd5b3480156100d357600080fd5b506100dc6103b8565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61016e6004803603602081101561016757600080fd5b50356103e1565b005b61016e6004803603608081101561018657600080fd5b50803590602081013590604081013590606001356107ec565b61016e600480360360808110156101b557600080fd5b5080359060208101359060408101359060600135610ca3565b61016e600480360360808110156101e457600080fd5b508035906020810135906040810135906060013561104c565b61016e6004803603606081101561021357600080fd5b508035906020810135906040013561167f565b61016e6004803603608081101561023c57600080fd5b5080359060208101359060408101359060600135611cac565b61016e6004803603604081101561026b57600080fd5b50803590602001356001600160a01b031661237a565b61016e6004803603608081101561029757600080fd5b508035906020810135906040810135906060013561271f565b61016e600480360360808110156102c657600080fd5b5080359060208101359060408101359060600135612c0a565b61016e600480360360608110156102f557600080fd5b5080359060208101359060400135613015565b6103786004803603602081101561031e57600080fd5b81019060208101813564010000000081111561033957600080fd5b82018360208201111561034b57600080fd5b8035906020019184600183028401116401000000008311171561036d57600080fd5b5090925090506134e1565b60408051918252519081900360200190f35b34801561039657600080fd5b5061039f6137e2565b6040805192835260208301919091528051918290030190f35b6040518060400160405280600d81526020016c26b0b5b2b92230b796bb18971960991b81525081565b60006103eb6137ea565b905060006103f98284613802565b9050600080610408848461394a565b91509150600080856001600160a01b03166336569e776040518163ffffffff1660e01b815260040160206040518083038186803b15801561044857600080fd5b505afa15801561045c573d6000803e3d6000fd5b505050506040513d602081101561047257600080fd5b5051604080516309092f9760e21b8152600481018790526001600160a01b0386811660248301528251931692632424be5c92604480840193919291829003018186803b1580156104c157600080fd5b505afa1580156104d5573d6000803e3d6000fd5b505050506040513d60408110156104eb57600080fd5b508051602090910151909250905081158015610505575080155b610549576040805162461bcd60e51b815260206004820152601060248201526f7661756c742d6861732d61737365747360801b604482015290519081900360640190fd5b306001600160a01b0316866001600160a01b0316638161b120876040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561059757600080fd5b505afa1580156105ab573d6000803e3d6000fd5b505050506040513d60208110156105c157600080fd5b50516001600160a01b03161461060a576040805162461bcd60e51b81526020600482015260096024820152683737ba16b7bbb732b960b91b604482015290519081900360640190fd5b856001600160a01b031663fcafcc6886610622613a3f565b6040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b15801561066857600080fd5b505af115801561067c573d6000803e3d6000fd5b50506040518692508791507f2fd908dec911588d995135dbfe9257f33b2da24f12e8ddec0feabdfa3d372b8090600090a3604080516020810187905280820186905281518082038301815260609091019091527f2fd908dec911588d995135dbfe9257f33b2da24f12e8ddec0feabdfa3d372b80906000806106fc6137e2565b91509150610708613a57565b6001600160a01b031663e14d4fb1838387876040518563ffffffff1660e01b81526004018085815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610778578181015183820152602001610760565b50505050905090810190601f1680156107a55780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156107c757600080fd5b505af11580156107db573d6000803e
"deployedBytecode": "0x6080604052600436106100c25760003560e01c8063674fb1b41161007f578063d5e0da3611610059578063d5e0da36146102b0578063d6eac95d146102df578063e4dcb06b14610308578063eb15f7811461038a576100c2565b8063674fb1b414610226578063b7760c8f14610255578063c9fd076e14610281576100c2565b806306fdde03146100c75780630aebeb4e146101515780630faee32414610170578063111d94821461019f5780632505c3d9146101ce578063369fb4a9146101fd575b600080fd5b3480156100d357600080fd5b506100dc6103b8565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101165781810151838201526020016100fe565b50505050905090810190601f1680156101435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61016e6004803603602081101561016757600080fd5b50356103e1565b005b61016e6004803603608081101561018657600080fd5b50803590602081013590604081013590606001356107ec565b61016e600480360360808110156101b557600080fd5b5080359060208101359060408101359060600135610ca3565b61016e600480360360808110156101e457600080fd5b508035906020810135906040810135906060013561104c565b61016e6004803603606081101561021357600080fd5b508035906020810135906040013561167f565b61016e6004803603608081101561023c57600080fd5b5080359060208101359060408101359060600135611cac565b61016e6004803603604081101561026b57600080fd5b50803590602001356001600160a01b031661237a565b61016e6004803603608081101561029757600080fd5b508035906020810135906040810135906060013561271f565b61016e600480360360808110156102c657600080fd5b5080359060208101359060408101359060600135612c0a565b61016e600480360360608110156102f557600080fd5b5080359060208101359060400135613015565b6103786004803603602081101561031e57600080fd5b81019060208101813564010000000081111561033957600080fd5b82018360208201111561034b57600080fd5b8035906020019184600183028401116401000000008311171561036d57600080fd5b5090925090506134e1565b60408051918252519081900360200190f35b34801561039657600080fd5b5061039f6137e2565b6040805192835260208301919091528051918290030190f35b6040518060400160405280600d81526020016c26b0b5b2b92230b796bb18971960991b81525081565b60006103eb6137ea565b905060006103f98284613802565b9050600080610408848461394a565b91509150600080856001600160a01b03166336569e776040518163ffffffff1660e01b815260040160206040518083038186803b15801561044857600080fd5b505afa15801561045c573d6000803e3d6000fd5b505050506040513d602081101561047257600080fd5b5051604080516309092f9760e21b8152600481018790526001600160a01b0386811660248301528251931692632424be5c92604480840193919291829003018186803b1580156104c157600080fd5b505afa1580156104d5573d6000803e3d6000fd5b505050506040513d60408110156104eb57600080fd5b508051602090910151909250905081158015610505575080155b610549576040805162461bcd60e51b815260206004820152601060248201526f7661756c742d6861732d61737365747360801b604482015290519081900360640190fd5b306001600160a01b0316866001600160a01b0316638161b120876040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561059757600080fd5b505afa1580156105ab573d6000803e3d6000fd5b505050506040513d60208110156105c157600080fd5b50516001600160a01b03161461060a576040805162461bcd60e51b81526020600482015260096024820152683737ba16b7bbb732b960b91b604482015290519081900360640190fd5b856001600160a01b031663fcafcc6886610622613a3f565b6040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b15801561066857600080fd5b505af115801561067c573d6000803e3d6000fd5b50506040518692508791507f2fd908dec911588d995135dbfe9257f33b2da24f12e8ddec0feabdfa3d372b8090600090a3604080516020810187905280820186905281518082038301815260609091019091527f2fd908dec911588d995135dbfe9257f33b2da24f12e8ddec0feabdfa3d372b80906000806106fc6137e2565b91509150610708613a57565b6001600160a01b031663e14d4fb1838387876040518563ffffffff1660e01b81526004018085815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610778578181015183820152602001610760565b50505050905090810190601f1680156107a55780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156107c757600080fd5b505af11580156107db573d6000803e3d6000fd5b505050505050505050505050505050565b60006107f661
"linkReferences": {},
"deployedLinkReferences": {}
}