/* 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: "uint256", name: "_accruedBorrowInterest", 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" }, { 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: "_feeLiquidated", type: "uint256" }, { indexed: false, internalType: "uint256", name: "_liquidatedCollateralForFee", type: "uint256" }, { indexed: false, internalType: "uint256", name: "_timestamp", type: "uint256" } ], name: "OriginationFeeLiquidated", 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" } ]; const _bytecode = "0x6080604052600060015534801561001557600080fd5b5060016000806101000a81548160ff021916908315150217905550611fda8061003f6000396000f3fe6080604052600436106100285760003560e01c8062a718a91461002d578063c72c4d1014610147575b600080fd5b6100c5600480360360a081101561004357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080351515906020019092919050505061019e565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561010b5780820151818401526020810190506100f0565b50505050905090810190601f1680156101385780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b34801561015357600080fd5b5061015c611523565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600060606101aa611e19565b603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632c6d0e9b876040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019150506101006040518083038186803b15801561024a57600080fd5b505afa15801561025e573d6000803e3d6000fd5b505050506040513d61010081101561027557600080fd5b8101908080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291905050509091929394959650909192939495509091929394509091929350909192509091509050816101a001811515151581525050806101a00151610337576004600581111561031457fe5b604051806060016040528060288152602001611f53602891399250925050611519565b603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318a4dbca89886040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561040a57600080fd5b505afa15801561041e573d6000803e3d6000fd5b505050506040513d602081101561043457600080fd5b81019080805190602001909291905050508160000181815250506000816000015114156104a8576001600581111561046857fe5b6040518060400160405280601f81526020017f496e76616c696420636f6c6c61746572616c20746f206c6971756964617465008152509250925050611519565b603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318f9bbae896040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561054757600080fd5b505afa15801561055b573d6000803e3d6000fd5b505050506040513d602081101561057157600080fd5b810190808051906020019092919050505080156106985750603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639e3c4f3b89886040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561065c57600080fd5b505afa158015610670573d6000803e3d6000fd5b505050506040513d602081101561068657600080fd5b81019080805190602001909291905050505b816101800190151590811515815250508061018001516106e257600260058111156106bf57fe5b6040518060600160405280602a8152602001611f29602a91399250925050611519565b603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639fb8afcd88886040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060606040518083038186803b1580156107b557600080fd5b505afa1580156107c9573d6000803e3d6000fd5b505050506040513d60608110156107df57600080fd5b81019080805190602001909291908051906020019092919080519060200190929190505050909150826020018360400182815250828152505050600081602001511415610856576003600581111561083357fe5b6040518060600160405280602a8152602001611f7b602a91399250925050611519565b61088160646108736032846020015161154990919063ffffffff16565b6115cf90919063ffffffff16565b8160600181815250508060600151851161089b57846108a1565b80606001515b8160800181815250506000806108c18a8a85608001518660000151611619565b91509150603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feab31ac8a8a6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561099857600080fd5b505afa1580156109ac573d6000803e3d6000fd5b505050506040513d60208110156109c257600080fd5b81019080805190602001909291905050508360e001818152505060008360e001511115610a2457610a0f8a8a8560e00151610a0a868860000151611c4990919063ffffffff16565b611619565b84610120018561010001828152508281525050505b8260800151811015610a3b57808360800181815250505b85610b5a576000603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e24030198c6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610ae157600080fd5b505afa158015610af5573d6000803e3d6000fd5b505050506040513d6020811015610b0b57600080fd5b8101908080519060200190929190505050905082811015610b5857600580811115610b3257fe5b604051806060016040528060338152602001611ef6603391399550955050505050611519565b505b603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166368beb4d68a8c8b8760800151878961010001518a61012001518b604001518f6040518a63ffffffff1660e01b8152600401808a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001878152602001868152602001858152602001848152602001838152602001821515151581526020019950505050505050505050600060405180830381600087803b158015610ca957600080fd5b505af1158015610cbd573d6000803e3d6000fd5b505050506000603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166334b3beee8c6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610d6257600080fd5b505afa158015610d76573d6000803e3d6000fd5b505050506040513d6020811015610d8c57600080fd5b810190808051906020019092919050505090508615610e7d578073ffffffffffffffffffffffffffffffffffffffff1663f866c3198a33866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050600060405180830381600087803b158015610e6057600080fd5b505af1158015610e74573d6000803e3d6000fd5b50505050611012565b8073ffffffffffffffffffffffffffffffffffffffff16633edb7cb88a856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015610f0457600080fd5b505af1158015610f18573d6000803e3d6000fd5b50505050603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fa93b2a58c33866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050600060405180830381600087803b158015610ff957600080fd5b505af115801561100d573d6000803e3d6000fd5b505050505b603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166328fcf4d3348c3388608001516040518563ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200193505050506000604051808303818588803b1580156110f357600080fd5b505af1158015611107573d6000803e3d6000fd5b5050505050600084610100015111156113f1578073ffffffffffffffffffffffffffffffffffffffff16633edb7cb88a8661012001516040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b1580156111a657600080fd5b505af11580156111ba573d6000803e3d6000fd5b50505050603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638f385c228c866101200151603560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ee8912966040518163ffffffff1660e01b815260040160206040518083038186803b15801561126b57600080fd5b505afa15801561127f573d6000803e3d6000fd5b505050506040513d602081101561129557600080fd5b81019080805190602001909291905050506040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019350505050600060405180830381600087803b15801561134257600080fd5b505af1158015611356573d6000803e3d6000fd5b505050508873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff167f36ca8b16d61dc13b1062adff83e3778ab92d14f9e35bfe9fd1283e02b13fb0a18761010001518861012001514260405180848152602001838152602001828152602001935050505060405180910390a45b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff167f56864757fd5b1fc9f38f5f3a981cd8ae512ce41b902cf73fc506ee369c6bc2378760800151878960400151338e42604051808781526020018681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183151515158152602001828152602001965050505050505060405180910390a4600060058111156114da57fe5b6040518060400160405280600981526020017f4e6f206572726f7273000000000000000000000000000000000000000000000081525095509550505050505b9550959350505050565b603560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008083141561155c57600090506115c9565b600082840290508284828161156d57fe5b04146115c4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611ed56021913960400191505060405180910390fd5b809150505b92915050565b600061161183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611c93565b905092915050565b60008060009150600090506000603560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b15801561168e57600080fd5b505afa1580156116a2573d6000803e3d6000fd5b505050506040513d60208110156116b857600080fd5b810190808051906020019092919050505090506116d3611e97565b8173ffffffffffffffffffffffffffffffffffffffff1663b3596f07896040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561175057600080fd5b505afa158015611764573d6000803e3d6000fd5b505050506040513d602081101561177a57600080fd5b81019080805190602001909291905050508160400181815250508173ffffffffffffffffffffffffffffffffffffffff1663b3596f07886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561181157600080fd5b505afa158015611825573d6000803e3d6000fd5b505050506040513d602081101561183b57600080fd5b8101908080519060200190929190505050816060018181525050603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c76a6c9c896040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156118f457600080fd5b505afa158015611908573d6000803e3d6000fd5b505050506040513d602081101561191e57600080fd5b8101908080519060200190929190505050816020018181525050603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a2353fdc886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156119d757600080fd5b505afa1580156119eb573d6000803e3d6000fd5b505050506040513d6020811015611a0157600080fd5b81019080805190602001909291905050508160a0018181525050603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a2353fdc896040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611aba57600080fd5b505afa158015611ace573d6000803e3d6000fd5b505050506040513d6020811015611ae457600080fd5b81019080805190602001909291905050508160c0018181525050611b866064611b788360200151611b6a611b2c8660a00151600a0a876040015161154990919063ffffffff16565b611b5c8760c00151600a0a611b4e8e8a6060015161154990919063ffffffff16565b61154990919063ffffffff16565b6115cf90919063ffffffff16565b61154990919063ffffffff16565b6115cf90919063ffffffff16565b8160800181815250508481608001511115611c2d57849350611c268160200151611c186064611c0a611bcc8660c00151600a0a876060015161154990919063ffffffff16565b611bfc8760a00151600a0a611bee8c8a6040015161154990919063ffffffff16565b61154990919063ffffffff16565b6115cf90919063ffffffff16565b61154990919063ffffffff16565b6115cf90919063ffffffff16565b9250611c38565b806080015193508592505b838393509350505094509492505050565b6000611c8b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611d59565b905092915050565b60008083118290611d3f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d04578082015181840152602081019050611ce9565b50505050905090810190601f168015611d315780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611d4b57fe5b049050809150509392505050565b6000838311158290611e06576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611dcb578082015181840152602081019050611db0565b50505050905090810190601f168015611df85780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b604051806101c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160006002811115611e7857fe5b8152602001600081526020016000151581526020016000151581525090565b6040518060e0016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152509056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7754686572652069736e277420656e6f756768206c697175696469747920617661696c61626c6520746f206c697175696461746554686520636f6c6c61746572616c2063686f73656e2063616e6e6f74206265206c6971756964617465644865616c746820666163746f72206973206e6f742062656c6f7720746865207468726573686f6c645573657220646964206e6f7420626f72726f7720746865207370656369666965642063757272656e6379a264697066735822122009fb8b6bd34094fb0bb5e47fb1a8e11abdf1e3f7f3461fcd7ddd1dad6b00b1f164736f6c63430006080033";