/* Generated by ts-generator ver. 0.0.8 */ /* tslint:disable */ import {Contract, ContractFactory, Signer} from 'ethers'; import {Provider} from 'ethers/providers'; import {UnsignedTransaction} from 'ethers/utils/transaction'; import {TransactionOverrides} from '.'; import {LendingPoolLiquidationManager} from './LendingPoolLiquidationManager'; export class LendingPoolLiquidationManagerFactory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } deploy(overrides?: TransactionOverrides): Promise { return super.deploy(overrides) as Promise; } getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction { return super.getDeployTransaction(overrides); } attach(address: string): LendingPoolLiquidationManager { return super.attach(address) as LendingPoolLiquidationManager; } connect(signer: Signer): LendingPoolLiquidationManagerFactory { return super.connect(signer) as LendingPoolLiquidationManagerFactory; } static connect( address: string, signerOrProvider: Signer | Provider ): LendingPoolLiquidationManager { return new Contract(address, _abi, signerOrProvider) as LendingPoolLiquidationManager; } } const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: '_collateral', type: 'address', }, { indexed: true, internalType: 'address', name: '_reserve', type: 'address', }, { indexed: true, internalType: 'address', name: '_user', type: 'address', }, { indexed: false, internalType: 'uint256', name: '_purchaseAmount', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: '_liquidatedCollateralAmount', type: 'uint256', }, { indexed: false, internalType: 'address', name: '_liquidator', type: 'address', }, { indexed: false, internalType: 'bool', name: '_receiveAToken', type: 'bool', }, { indexed: false, internalType: 'uint256', name: '_timestamp', type: 'uint256', }, ], name: 'LiquidationCall', type: 'event', }, { inputs: [], name: 'addressesProvider', outputs: [ { internalType: 'contract LendingPoolAddressesProvider', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: '_collateral', type: 'address', }, { internalType: 'address', name: '_reserve', type: 'address', }, { internalType: 'address', name: '_user', type: 'address', }, { internalType: 'uint256', name: '_purchaseAmount', type: 'uint256', }, { internalType: 'bool', name: '_receiveAToken', type: 'bool', }, ], name: 'liquidationCall', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, { internalType: 'string', name: '', type: 'string', }, ], stateMutability: 'payable', type: 'function', }, { inputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], name: 'reservesList', outputs: [ { internalType: 'address', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, ]; const _bytecode = '0x6080604052600060015534801561001557600080fd5b5060016000556124208061002a6000396000f3fe6080604052600436106100335760003560e01c8062a718a9146100385780634fe7a6e5146100fb578063c72c4d1014610141575b600080fd5b61007c600480360360a081101561004e57600080fd5b506001600160a01b038135811691602081013582169160408201351690606081013590608001351515610156565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156100bf5781810151838201526020016100a7565b50505050905090810190601f1680156100ec5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b34801561010757600080fd5b506101256004803603602081101561011e57600080fd5b5035610951565b604080516001600160a01b039092168252519081900360200190f35b34801561014d57600080fd5b50610125610978565b6001600160a01b0380851660009081526037602090815260408083208985168452818420948816845260389092528220919260609261019361214e565b6001600160a01b03891660009081526038602090815260409182902082518083018452905481526039805484518185028101850190955280855261028c948e946037949391929083018282801561021357602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116101f5575b505060355460408051631f94a27560e31b815290516001600160a01b03909216945063fca513a893506004808201935060209291829003018186803b15801561025b57600080fd5b505afa15801561026f573d6000803e3d6000fd5b505050506040513d602081101561028557600080fd5b5051610987565b6101c08601819052670de0b6b3a76400001193506102d092505050576004604051806060016040528060288152602001612399602891399550955050505050610947565b6006830154604080516370a0823160e01b81526001600160a01b038c81166004830152915191909216916370a08231916024808301926020929190829003018186803b15801561031f57600080fd5b505afa158015610333573d6000803e3d6000fd5b505050506040513d602081101561034957600080fd5b50518152600061035b60058501610e64565b11801561038a5750600983015460408051602081019091528354815261038a91600160d01b900460ff16610e79565b151561020082018190526103c05760026040518060600160405280602a815260200161231b602a91399550955050505050610947565b6103ca8985610e91565b6040830152602082018190521580156103e557506040810151155b156104125760036040518060600160405280602a81526020016123c1602a91399550955050505050610947565b61043f61138861043383604001518460200151610f9490919063ffffffff16565b9063ffffffff610ff516565b6060820181905288116104525787610458565b80606001515b60808201819052815161047391859187918f918f9190611023565b6101a083018190526101808301919091526080820151111561049b576101a081015160808201525b60068301546001600160a01b03166101e0820152866105115760006104d7826101e001518d6001600160a01b03166112ae90919063ffffffff16565b905081610180015181101561050f5760056040518060600160405280603381526020016122e860339139965096505050505050610947565b505b61051a84611358565b60808101516105349085908c90600063ffffffff61141016565b80608001518160400151106105bd576008840154608082015160408051632770a7eb60e21b81526001600160a01b038d81166004830152602482019390935290519190921691639dc29fac91604480830192600092919082900301818387803b1580156105a057600080fd5b505af11580156105b4573d6000803e3d6000fd5b505050506106c4565b60088401546040808301518151632770a7eb60e21b81526001600160a01b038d8116600483015260248201929092529151921691639dc29fac9160448082019260009290919082900301818387803b15801561061857600080fd5b505af115801561062c573d6000803e3d6000fd5b505050506007840154604082015160808301516001600160a01b0390921691639dc29fac918c9161065c916116fd565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156106ab57600080fd5b505af11580156106bf573d6000803e3d6000fd5b505050505b861561074c576101e08101516101808201516040805163f866c31960e01b81526001600160a01b038d8116600483015233602483015260448201939093529051919092169163f866c31991606480830192600092919082900301818387803b15801561072f57600080fd5b505af1158015610743573d6000803e3d6000fd5b5050505061087c565b61075583611358565b6101808101516107719084908d9060009063ffffffff61141016565b806101e001516001600160a01b0316633edb7cb88a8361018001516040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156107db57600080fd5b505af11580156107ef573d6000803e3d6000fd5b5050506101e082015161018083015160408051634efecaa560e01b81523360048201526024810192909252516001600160a01b039092169250634efecaa59160448083019260209291908290030181600087803b15801561084f57600080fd5b505af1158015610863573d6000803e3d6000fd5b505050506040513d602081101561087957600080fd5b50505b600684015460808201516108aa916001600160a01b038d81169233929190911690600163ffffffff61173f16565b60808082015161018083015160408051928352602083019190915233828201528915156060830152429282019290925290516001600160a01b03808c16928d821692918f16917f54343dd5791108d018f6fb8def2c14d746f777c51e9924962237813a527528709181900360a00190a46000604051806040016040528060098152602001684e6f206572726f727360b81b81525095509550505050505b9550959350505050565b6039818154811061095e57fe5b6000918252602090912001546001600160a01b0316905081565b6035546001600160a01b031681565b60008060008060006109976121e8565b6109a089611932565b156109bd5750600094508493508392508291506000199050610e57565b600060e08201525b87518160e001511015610daa5760e08101516109e8908a9063ffffffff61193716565b6109f157610d9a565b878160e0015181518110610a0157fe5b6020908102919091018101516001600160a01b031661020083018190526000908152908b905260409020610a3760058201611947565b6080860181905260c08601929092525060a0840191909152600a0a6020808401919091526102008301516040805163b3596f0760e01b81526001600160a01b0392831660048201529051918b169263b3596f0792602480840193829003018186803b158015610aa557600080fd5b505afa158015610ab9573d6000803e3d6000fd5b505050506040513d6020811015610acf57600080fd5b5051825260a082015115801590610af7575060e0820151610af7908b9063ffffffff610e7916565b15610c2d576006810154604080516370a0823160e01b81526001600160a01b038f81166004830152915191909216916370a08231916024808301926020929190829003018186803b158015610b4b57600080fd5b505afa158015610b5f573d6000803e3d6000fd5b505050506040513d6020811015610b7557600080fd5b50516040830181905260208301518351600092610ba89291610b9c9163ffffffff61198e16565b9063ffffffff6119e716565b610120840151909150610bc1908263ffffffff610f9416565b61012084015260a0830151610bf390610be190839063ffffffff61198e16565b6101808501519063ffffffff610f9416565b61018084015260c0830151610c2590610c1390839063ffffffff61198e16565b6101a08501519063ffffffff610f9416565b6101a0840152505b60e0820151610c43908b9063ffffffff611a2916565b15610d98576007810154604080516370a0823160e01b81526001600160a01b038f81166004830152915191909216916370a08231916024808301926020929190829003018186803b158015610c9757600080fd5b505afa158015610cab573d6000803e3d6000fd5b505050506040513d6020811015610cc157600080fd5b505160608301526008810154604080516370a0823160e01b81526001600160a01b038f811660048301529151610d599392909216916370a0823191602480820192602092909190829003018186803b158015610d1c57600080fd5b505afa158015610d30573d6000803e3d6000fd5b505050506040513d6020811015610d4657600080fd5b505160608401519063ffffffff610f9416565b6060830181905260208301518351610d9192610d7f9291610b9c9163ffffffff61198e16565b6101408401519063ffffffff610f9416565b6101408301525b505b60e08101805160010190526109c5565b600081610120015111610dbe576000610dd9565b610120810151610180820151610dd99163ffffffff6119e716565b610180820152610120810151610df0576000610e0b565b6101208101516101a0820151610e0b9163ffffffff6119e716565b6101a08201819052610120820151610140830151610e2892611a39565b61010082018190526101208201516101408301516101808401516101a090940151919850965091945090925090505b9550955095509550959050565b5460101c650fffffff0001600160f01b031690565b815160016002830281019190911c1615155b92915050565b6007810154604080516370a0823160e01b81526001600160a01b0385811660048301529151600093849316916370a08231916024808301926020929190829003018186803b158015610ee257600080fd5b505afa158015610ef6573d6000803e3d6000fd5b505050506040513d6020811015610f0c57600080fd5b50516008840154604080516370a0823160e01b81526001600160a01b038881166004830152915191909216916370a08231916024808301926020929190829003018186803b158015610f5d57600080fd5b505afa158015610f71573d6000803e3d6000fd5b505050506040513d6020811015610f8757600080fd5b5051909590945092505050565b600082820183811015610fee576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000610fee612710610b9c611010868663ffffffff61198e16565b60026127105b049063ffffffff610f9416565b60355460408051631f94a27560e31b81529051600092839283926001600160a01b039092169163fca513a891600480820192602092909190829003018186803b15801561106f57600080fd5b505afa158015611083573d6000803e3d6000fd5b505050506040513d602081101561109957600080fd5b505190506110a5612289565b816001600160a01b031663b3596f07896040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156110fb57600080fd5b505afa15801561110f573d6000803e3d6000fd5b505050506040513d602081101561112557600080fd5b5051604080830191909152805163b3596f0760e01b81526001600160a01b03898116600483015291519184169163b3596f0791602480820192602092909190829003018186803b15801561117857600080fd5b505afa15801561118c573d6000803e3d6000fd5b505050506040513d60208110156111a257600080fd5b505160608201526111b560058b01611947565b60c08501526020840152506111ce905060058a01611a71565b60a082018190526020820151604083015161122792610433916111f991600a0a63ffffffff61198e16565b610b9c8560c00151600a0a61121b8c886060015161198e90919063ffffffff16565b9063ffffffff61198e16565b608082018190528510156112965784935061128f81602001516112836112618460c00151600a0a856060015161198e90919063ffffffff16565b610b9c8560a00151600a0a61121b8a886040015161198e90919063ffffffff16565b9063ffffffff611a8216565b92506112a1565b806080015193508592505b5050965096945050505050565b60006112b983611aa8565b156112cf57506001600160a01b03811631610e8b565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561132557600080fd5b505afa158015611339573d6000803e3d6000fd5b505050506040513d602081101561134f57600080fd5b50519050610e8b565b600061136382611acd565b905080156113ec576001820154600983015460009161138f91600160a01b900464ffffffffff16611bcd565b83549091506113a590829063ffffffff611c4216565b8355600283015460098401546000916113cb91600160a01b900464ffffffffff16611c7b565b90506113e4846004015482611c4290919063ffffffff16565b600485015550505b50600901805464ffffffffff60a01b1916600160a01b4264ffffffffff1602179055565b60078401546040805163487b7e7960e11b815290516000926001600160a01b0316916390f6fcf2916004808301926020929190829003018186803b15801561145757600080fd5b505afa15801561146b573d6000803e3d6000fd5b505050506040513d602081101561148157600080fd5b505160068601549091506000906114aa906001600160a01b03878116911663ffffffff6112ae16565b6009870154909150600090819081906001600160a01b03166357e37af0896114e8896114dc898d63ffffffff610f9416565b9063ffffffff6116fd16565b8c60070160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561153857600080fd5b505afa15801561154c573d6000803e3d6000fd5b505050506040513d602081101561156257600080fd5b505160088e0154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b1580156115ab57600080fd5b505afa1580156115bf573d6000803e3d6000fd5b505050506040513d60208110156115d557600080fd5b5051604080516001600160e01b031960e088901b1681526001600160a01b039095166004860152602485019390935260448401919091526064830152608482018990525160a4808301926060929190829003018186803b15801561163857600080fd5b505afa15801561164c573d6000803e3d6000fd5b505050506040513d606081101561166257600080fd5b50805160208083015160409384015160018e0184905560038e0182905560028e018190558d5460048f015486518681529485018490528487018c905260608501839052608085019190915260a0840152935192965094509192506001600160a01b038a16917f131cf1f61e39fd78f61f07d78533f5b6c13629c80ef6965983e92c72efbaa4a4919081900360c00190a2505050505050505050565b6000610fee83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611cca565b816117495761192b565b61175285611aa8565b1561191057813410156117965760405162461bcd60e51b815260040180806020018281038252602a815260200180612345602a913960400191505060405180910390fd5b6001600160a01b0383163014611849576040516000906001600160a01b0385169061c35090859084818181858888f193505050503d80600081146117f6576040519150601f19603f3d011682016040523d82523d6000602084013e6117fb565b606091505b5050905080611847576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b505b80801561185557508134115b1561190b5760006001600160a01b038516611876348563ffffffff6116fd16565b60405161c35091906000818181858888f193505050503d80600081146118b8576040519150601f19603f3d011682016040523d82523d6000602084013e6118bd565b606091505b5050905080611909576040805162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015290519081900360640190fd5b505b61192b565b61192b6001600160a01b03861685858563ffffffff611d6116565b5050505050565b511590565b9051600360029092021c16151590565b54670fffffffffff000019811691601082901c650fffffff0001600160f01b031691602081901c630fff0001600160e01b03169160309190911c610f01600160d01b031690565b60008261199d57506000610e8b565b828202828482816119aa57fe5b0414610fee5760405162461bcd60e51b81526004018080602001828103825260218152602001806122c76021913960400191505060405180910390fd5b6000610fee83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611dc1565b9051600160029092021c16151590565b600082611a495750600019610fee565b611a6983611a5d868563ffffffff610ff516565b9063ffffffff611e2616565b949350505050565b5460301c610f01600160d01b031690565b600060028204611a6983610b9c611a9b8761271061198e565b849063ffffffff610f9416565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14919050565b6000610e8b8260080160009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611b2257600080fd5b505afa158015611b36573d6000803e3d6000fd5b505050506040513d6020811015611b4c57600080fd5b50516007840154604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b158015611b9557600080fd5b505afa158015611ba9573d6000803e3d6000fd5b505050506040513d6020811015611bbf57600080fd5b50519063ffffffff610f9416565b600080611be74264ffffffffff851663ffffffff6116fd16565b90506000611c10611bfb6301e13380611e45565b611c0484611e45565b9063ffffffff611e5b16565b9050611c39611c1d611e7e565b611c2d878463ffffffff611c4216565b9063ffffffff610f9416565b95945050505050565b6000610fee6b033b2e3c9fd0803ce8000000610b9c611c67868663ffffffff61198e16565b60026b033b2e3c9fd0803ce8000000611016565b600080611c954264ffffffffff851663ffffffff6116fd16565b90506000611cad856301e1338063ffffffff6119e716565b9050611c3982611cbe611a9b611e7e565b9063ffffffff611e8e16565b60008184841115611d595760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d1e578181015183820152602001611d06565b50505050905090810190601f168015611d4b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611dbb908590611ee8565b50505050565b60008183611e105760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611d1e578181015183820152602001611d06565b506000838581611e1c57fe5b0495945050505050565b600060028204611a6983610b9c611a9b87670de0b6b3a764000061198e565b6000610e8b82633b9aca0063ffffffff61198e16565b600060028204611a6983610b9c611a9b876b033b2e3c9fd0803ce800000061198e565b6b033b2e3c9fd0803ce800000090565b600060028206611eaa576b033b2e3c9fd0803ce8000000611eac565b825b90506002820491505b8115610e8b57611ec58384611c42565b92506002820615611edd57611eda8184611c42565b90505b600282049150611eb5565b6060611f3d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611f9e9092919063ffffffff16565b805190915015611f9957808060200190516020811015611f5c57600080fd5b5051611f995760405162461bcd60e51b815260040180806020018281038252602a81526020018061236f602a913960400191505060405180910390fd5b505050565b6060611a6984846000856060611fb385612115565b612004576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106120435780518252601f199092019160209182019101612024565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146120a5576040519150601f19603f3d011682016040523d82523d6000602084013e6120aa565b606091505b509150915081156120be579150611a699050565b8051156120ce5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611d1e578181015183820152602001611d06565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611a69575050151592915050565b60405180610220016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600060028111156121ad57fe5b81526020016000815260200160008152602001600081526020016000815260200160006001600160a01b031681526020016000151581525090565b60405180610260016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160006001600160a01b031681526020016000151581526020016000151581525090565b6040518060e0016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152509056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7754686572652069736e277420656e6f756768206c697175696469747920617661696c61626c6520746f206c697175696461746554686520636f6c6c61746572616c2063686f73656e2063616e6e6f74206265206c69717569646174656457726f6e67207573616765206f66204554482e756e6976657273616c5472616e7366657246726f6d28295361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644865616c746820666163746f72206973206e6f742062656c6f7720746865207468726573686f6c645573657220646964206e6f7420626f72726f7720746865207370656369666965642063757272656e6379a264697066735822122041cc6ab040cd2e97aff608e219344c08b0236dbb51ef726f0d541c9a6798975064736f6c63430006080033';