2020-06-03 10:23:21 +00:00
|
|
|
/* 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 {
|
2020-06-20 23:40:03 +00:00
|
|
|
constructor(
|
|
|
|
linkLibraryAddresses: LendingPoolLiquidationManagerLibraryAddresses,
|
|
|
|
signer?: Signer
|
|
|
|
) {
|
|
|
|
super(
|
|
|
|
_abi,
|
|
|
|
LendingPoolLiquidationManagerFactory.linkBytecode(linkLibraryAddresses),
|
|
|
|
signer
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
static linkBytecode(
|
|
|
|
linkLibraryAddresses: LendingPoolLiquidationManagerLibraryAddresses
|
|
|
|
): string {
|
|
|
|
let linkedBytecode = _bytecode;
|
|
|
|
|
|
|
|
linkedBytecode = linkedBytecode.replace(
|
|
|
|
new RegExp("__\\$7347ff53b2b46c21e26a37164ae7f6739f\\$__", "g"),
|
|
|
|
linkLibraryAddresses["__$7347ff53b2b46c21e26a37164ae7f6739f$__"]
|
|
|
|
.replace(/^0x/, "")
|
|
|
|
.toLowerCase()
|
|
|
|
);
|
|
|
|
|
|
|
|
return linkedBytecode;
|
2020-06-03 10:23:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
deploy(
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<LendingPoolLiquidationManager> {
|
|
|
|
return super.deploy(overrides) as Promise<LendingPoolLiquidationManager>;
|
|
|
|
}
|
|
|
|
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"
|
2020-06-20 23:40:03 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
inputs: [
|
|
|
|
{
|
|
|
|
internalType: "uint256",
|
|
|
|
name: "",
|
|
|
|
type: "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
name: "reservesList",
|
|
|
|
outputs: [
|
|
|
|
{
|
|
|
|
internalType: "address",
|
|
|
|
name: "",
|
|
|
|
type: "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
stateMutability: "view",
|
|
|
|
type: "function"
|
2020-06-03 10:23:21 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
const _bytecode =
|
2020-07-08 15:26:50 +00:00
|
|
|
"0x6080604052600060015534801561001557600080fd5b506001600055611bc28061002a6000396000f3fe6080604052600436106100335760003560e01c8062a718a9146100385780634fe7a6e5146100fb578063c72c4d1014610141575b600080fd5b61007c600480360360a081101561004e57600080fd5b506001600160a01b038135811691602081013582169160408201351690606081013590608001351515610156565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156100bf5781810151838201526020016100a7565b50505050905090810190601f1680156100ec5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b34801561010757600080fd5b506101256004803603602081101561011e57600080fd5b5035610a4e565b604080516001600160a01b039092168252519081900360200190f35b34801561014d57600080fd5b50610125610a75565b6001600160a01b0380851660009081526037602090815260408083208985168085528285209589168552603884528285209085529092528220919260609261019c611986565b73__$7347ff53b2b46c21e26a37164ae7f6739f$__63901d71148a603760386039603560009054906101000a90046001600160a01b03166001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b15801561020b57600080fd5b505afa15801561021f573d6000803e3d6000fd5b505050506040513d602081101561023557600080fd5b50516040516001600160e01b031960e088901b1681526001600160a01b03808716600483019081526024830187905260448301869052908316608483015260a060648301908152845460a484018190529192909160c490910190859080156102c657602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116102a8575b5050965050505050505060c06040518083038186803b1580156102e857600080fd5b505af41580156102fc573d6000803e3d6000fd5b505050506040513d60c081101561031257600080fd5b5060a001516101c082019081526040805180820190915260138152724865616c746820666163746f7220697320257360681b602082015290516103559190610a84565b670de0b6b3a7640000816101c0015110610391576004604051806060016040528060288152602001611b3b602891399550955050505050610a44565b6009830154604080516370a0823160e01b81526001600160a01b038c81166004830152915191909216916370a08231916024808301926020929190829003018186803b1580156103e057600080fd5b505afa1580156103f4573d6000803e3d6000fd5b505050506040513d602081101561040a57600080fd5b5051815260408051808201909152601881527f636f6c6c61746572616c2062616c616e636520697320257300000000000000006020820152815161044e9190610a84565b80516104995760016040518060400160405280601f81526020017f496e76616c696420636f6c6c61746572616c20746f206c6971756964617465008152509550955050505050610a44565b600c830154600160d01b900460ff1680156104b55750815460ff165b151561020082018190526104eb5760026040518060600160405280602a8152602001611ae7602a91399550955050505050610a44565b61052f6040518060400160405280601981526020017f436f6c6c61746572616c20697320656e61626c65643a20257300000000000000815250826102000151610bd9565b6105398985610cc4565b604080840191825260208085019384528151808301909252601682527543757272656e7420646562742069733a20257320257360501b9082015291519051610582929190610dc7565b602081015115801561059657506040810151155b156105c35760036040518060600160405280602a8152602001611b63602a91399550955050505050610a44565b61060060646105f460326105e885604001518660200151610f2690919063ffffffff16565b9063ffffffff610f8916565b9063ffffffff610fe216565b6060820181905288116106135787610619565b80606001515b60808201819052815161063491859187918f918f9190611024565b6101a083018190526101808301919091526080820151111561065c576101a081015160808201525b866106b657600061067c6001600160a01b038d163063ffffffff61129516565b90508161018001518110156106b4576005604051806060016040528060338152602001611ab460339139965096505050505050610a44565b505b806080015181604001511061073f57600b840154608082015160408051632770a7eb60e21b81526001600160a01b038d81166004830152602482019390935290519190921691639dc29fac91604480830192600092919082900301818387803b15801561072257600080fd5b505af1158015610736573d6000803e3d6000fd5b50505050610846565b600b8401546040808301518151632770a7eb60e21b81526001600160a01b038d8116600483015260248201929092529151921691639dc29fac9160448082019260009290919082900301818387803b15801561079a57600080fd5b505af11580156107ae573d6000803e3d6000fd5b50505050600a840154604082015160808301516001600160a01b0390921691639dc29fac
|
2020-06-20 23:40:03 +00:00
|
|
|
|
|
|
|
export interface LendingPoolLiquidationManagerLibraryAddresses {
|
|
|
|
["__$7347ff53b2b46c21e26a37164ae7f6739f$__"]: string;
|
|
|
|
}
|