UNPKG

core-artifacts

Version:

Consist artifacts of the maple protocol

72 lines (71 loc) 7.13 kB
{ "_format": "hh-sol-artifact-1", "contractName": "CollateralLocker", "sourceName": "contracts/core/collateral-locker/v1/CollateralLockerFactory.sol", "abi": [ { "inputs": [ { "internalType": "address", "name": "_collateralAsset", "type": "address" }, { "internalType": "address", "name": "_loan", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "collateralAsset", "outputs": [ { "internalType": "contract IERC20", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "loan", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "dst", "type": "address" }, { "internalType": "uint256", "name": "amt", "type": "uint256" } ], "name": "pull", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x60c060405234801561001057600080fd5b506040516105c03803806105c08339818101604052604081101561003357600080fd5b5080516020909101516001600160601b0319606092831b8116608052911b1660a05260805160601c60a05160601c61053b6100856000398060c6528060f352508060a2528061015d525061053b6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063aabaecd614610046578063d285b7b41461006a578063f2d5d56b14610072575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b61004e6100c4565b61009e6004803603604081101561008857600080fd5b506001600160a01b0381351690602001356100e8565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610150576040805162461bcd60e51b815260206004820152600860248201526710d30e9393d517d360c21b604482015290519081900360640190fd5b61018a6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016838363ffffffff61018e16565b5050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526101e09084906101e5565b505050565b606061023a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166102969092919063ffffffff16565b8051909150156101e05780806020019051602081101561025957600080fd5b50516101e05760405162461bcd60e51b815260040180806020018281038252602a8152602001806104dc602a913960400191505060405180910390fd5b60606102a584846000856102af565b90505b9392505050565b6060824710156102f05760405162461bcd60e51b81526004018080602001828103825260268152602001806104b66026913960400191505060405180910390fd5b6102f98561040b565b61034a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106103895780518252601f19909201916020918201910161036a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146103eb576040519150601f19603f3d011682016040523d82523d6000602084013e6103f0565b606091505b5091509150610400828286610411565b979650505050505050565b3b151590565b606083156104205750816102a8565b8251156104305782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561047a578181015183820152602001610462565b50505050905090810190601f1680156104a75780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220bfb0e020f1f1162bfb7c59278bb898b2f8c828eb7090120db44a6cb1e592594064736f6c634300060b0033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063aabaecd614610046578063d285b7b41461006a578063f2d5d56b14610072575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b61004e6100c4565b61009e6004803603604081101561008857600080fd5b506001600160a01b0381351690602001356100e8565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610150576040805162461bcd60e51b815260206004820152600860248201526710d30e9393d517d360c21b604482015290519081900360640190fd5b61018a6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016838363ffffffff61018e16565b5050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526101e09084906101e5565b505050565b606061023a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166102969092919063ffffffff16565b8051909150156101e05780806020019051602081101561025957600080fd5b50516101e05760405162461bcd60e51b815260040180806020018281038252602a8152602001806104dc602a913960400191505060405180910390fd5b60606102a584846000856102af565b90505b9392505050565b6060824710156102f05760405162461bcd60e51b81526004018080602001828103825260268152602001806104b66026913960400191505060405180910390fd5b6102f98561040b565b61034a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106103895780518252601f19909201916020918201910161036a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146103eb576040519150601f19603f3d011682016040523d82523d6000602084013e6103f0565b606091505b5091509150610400828286610411565b979650505050505050565b3b151590565b606083156104205750816102a8565b8251156104305782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561047a578181015183820152602001610462565b50505050905090810190601f1680156104a75780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220bfb0e020f1f1162bfb7c59278bb898b2f8c828eb7090120db44a6cb1e592594064736f6c634300060b0033", "linkReferences": {}, "deployedLinkReferences": {} }