2020-06-03 10:23:21 +00:00
|
|
|
/* Generated by ts-generator ver. 0.0.8 */
|
|
|
|
/* tslint:disable */
|
|
|
|
|
2020-08-19 12:23:41 +00:00
|
|
|
import { Signer } from "ethers";
|
|
|
|
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
|
|
import { Contract, ContractFactory, Overrides } from "@ethersproject/contracts";
|
2020-06-03 10:23:21 +00:00
|
|
|
|
2020-08-17 19:28:50 +00:00
|
|
|
import { LendingPoolLiquidationManager } from "./LendingPoolLiquidationManager";
|
2020-06-03 10:23:21 +00:00
|
|
|
|
|
|
|
export class LendingPoolLiquidationManagerFactory extends ContractFactory {
|
2020-08-08 17:21:23 +00:00
|
|
|
constructor(signer?: Signer) {
|
|
|
|
super(_abi, _bytecode, signer);
|
2020-06-03 10:23:21 +00:00
|
|
|
}
|
|
|
|
|
2020-08-19 12:23:41 +00:00
|
|
|
deploy(overrides?: Overrides): Promise<LendingPoolLiquidationManager> {
|
|
|
|
return super.deploy(overrides || {}) as Promise<
|
|
|
|
LendingPoolLiquidationManager
|
|
|
|
>;
|
2020-06-03 10:23:21 +00:00
|
|
|
}
|
2020-08-19 12:23:41 +00:00
|
|
|
getDeployTransaction(overrides?: Overrides): TransactionRequest {
|
|
|
|
return super.getDeployTransaction(overrides || {});
|
2020-06-03 10:23:21 +00:00
|
|
|
}
|
|
|
|
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 {
|
2020-08-17 19:28:50 +00:00
|
|
|
return new Contract(
|
|
|
|
address,
|
|
|
|
_abi,
|
|
|
|
signerOrProvider
|
|
|
|
) as LendingPoolLiquidationManager;
|
2020-06-03 10:23:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const _abi = [
|
|
|
|
{
|
|
|
|
anonymous: false,
|
|
|
|
inputs: [
|
|
|
|
{
|
|
|
|
indexed: true,
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "address",
|
|
|
|
name: "_collateral",
|
|
|
|
type: "address"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: true,
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "address",
|
|
|
|
name: "_reserve",
|
|
|
|
type: "address"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: true,
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "address",
|
|
|
|
name: "_user",
|
|
|
|
type: "address"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "uint256",
|
|
|
|
name: "_purchaseAmount",
|
|
|
|
type: "uint256"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "uint256",
|
|
|
|
name: "_liquidatedCollateralAmount",
|
|
|
|
type: "uint256"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "address",
|
|
|
|
name: "_liquidator",
|
|
|
|
type: "address"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "bool",
|
|
|
|
name: "_receiveAToken",
|
|
|
|
type: "bool"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "uint256",
|
|
|
|
name: "_timestamp",
|
|
|
|
type: "uint256"
|
|
|
|
}
|
2020-06-03 10:23:21 +00:00
|
|
|
],
|
2020-08-17 19:28:50 +00:00
|
|
|
name: "LiquidationCall",
|
|
|
|
type: "event"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
inputs: [],
|
2020-08-17 19:28:50 +00:00
|
|
|
name: "addressesProvider",
|
2020-06-03 10:23:21 +00:00
|
|
|
outputs: [
|
|
|
|
{
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "contract LendingPoolAddressesProvider",
|
|
|
|
name: "",
|
|
|
|
type: "address"
|
|
|
|
}
|
2020-06-03 10:23:21 +00:00
|
|
|
],
|
2020-08-17 19:28:50 +00:00
|
|
|
stateMutability: "view",
|
|
|
|
type: "function"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
inputs: [
|
|
|
|
{
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "address",
|
|
|
|
name: "_collateral",
|
|
|
|
type: "address"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "address",
|
|
|
|
name: "_reserve",
|
|
|
|
type: "address"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "address",
|
|
|
|
name: "_user",
|
|
|
|
type: "address"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "uint256",
|
|
|
|
name: "_purchaseAmount",
|
|
|
|
type: "uint256"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "bool",
|
|
|
|
name: "_receiveAToken",
|
|
|
|
type: "bool"
|
|
|
|
}
|
2020-06-03 10:23:21 +00:00
|
|
|
],
|
2020-08-17 19:28:50 +00:00
|
|
|
name: "liquidationCall",
|
2020-06-03 10:23:21 +00:00
|
|
|
outputs: [
|
|
|
|
{
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "uint256",
|
|
|
|
name: "",
|
|
|
|
type: "uint256"
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "string",
|
|
|
|
name: "",
|
|
|
|
type: "string"
|
|
|
|
}
|
2020-06-03 10:23:21 +00:00
|
|
|
],
|
2020-08-17 19:28:50 +00:00
|
|
|
stateMutability: "payable",
|
|
|
|
type: "function"
|
2020-06-20 23:40:03 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
inputs: [
|
|
|
|
{
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "uint256",
|
|
|
|
name: "",
|
|
|
|
type: "uint256"
|
|
|
|
}
|
2020-06-20 23:40:03 +00:00
|
|
|
],
|
2020-08-17 19:28:50 +00:00
|
|
|
name: "reservesList",
|
2020-06-20 23:40:03 +00:00
|
|
|
outputs: [
|
|
|
|
{
|
2020-08-17 19:28:50 +00:00
|
|
|
internalType: "address",
|
|
|
|
name: "",
|
|
|
|
type: "address"
|
|
|
|
}
|
2020-06-20 23:40:03 +00:00
|
|
|
],
|
2020-08-17 19:28:50 +00:00
|
|
|
stateMutability: "view",
|
|
|
|
type: "function"
|
|
|
|
}
|
2020-06-03 10:23:21 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
const _bytecode =
|
2020-08-19 12:53:00 +00:00
|
|
|
"0x6080604052600060015534801561001557600080fd5b5060016000556121d38061002a6000396000f3fe6080604052600436106100335760003560e01c8062a718a9146100385780634fe7a6e5146100fb578063c72c4d1014610141575b600080fd5b61007c600480360360a081101561004e57600080fd5b506001600160a01b038135811691602081013582169160408201351690606081013590608001351515610156565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156100bf5781810151838201526020016100a7565b50505050905090810190601f1680156100ec5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b34801561010757600080fd5b506101256004803603602081101561011e57600080fd5b5035610929565b604080516001600160a01b039092168252519081900360200190f35b34801561014d57600080fd5b50610125610950565b6001600160a01b03808516600090815260376020908152604080832089851684528184209488168452603890925282209192606092610193611f2b565b6001600160a01b03891660009081526038602090815260409182902082518083018452905481526039805484518185028101850190955280855261028c948e946037949391929083018282801561021357602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116101f5575b505060355460408051631f94a27560e31b815290516001600160a01b03909216945063fca513a893506004808201935060209291829003018186803b15801561025b57600080fd5b505afa15801561026f573d6000803e3d6000fd5b505050506040513d602081101561028557600080fd5b505161095f565b6101c08601819052670de0b6b3a76400001193506102d09250505057600460405180606001604052806028815260200161214c60289139955095505050505061091f565b6006830154604080516370a0823160e01b81526001600160a01b038c81166004830152915191909216916370a08231916024808301926020929190829003018186803b15801561031f57600080fd5b505afa158015610333573d6000803e3d6000fd5b505050506040513d602081101561034957600080fd5b50518152600061035b60058501610e3c565b11801561038a5750600983015460408051602081019091528354815261038a91600160d01b900460ff16610e51565b151561020082018190526103c05760026040518060600160405280602a81526020016120f8602a9139955095505050505061091f565b6103ca8985610e69565b6040830152602082018190521580156103e557506040810151155b156104125760036040518060600160405280602a8152602001612174602a9139955095505050505061091f565b61043f61138861043383604001518460200151610f6c90919063ffffffff16565b9063ffffffff610fcd16565b6060820181905288116104525787610458565b80606001515b60808201819052815161047391859187918f918f9190610ffb565b6101a083018190526101808301919091526080820151111561049b576101a081015160808201525b60068301546001600160a01b03166101e0820152866105785760008b6001600160a01b03166370a08231836101e001516040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561051157600080fd5b505afa158015610525573d6000803e3d6000fd5b505050506040513d602081101561053b57600080fd5b50516101808301519091508110156105765760056040518060600160405280603381526020016120c56033913996509650505050505061091f565b505b61058184611286565b608081015161059b9085908c90600063ffffffff61133e16565b8060800151816040015110610624576008840154608082015160408051632770a7eb60e21b81526001600160a01b038d81166004830152602482019390935290519190921691639dc29fac91604480830192600092919082900301818387803b15801561060757600080fd5b505af115801561061b573d6000803e3d6000fd5b5050505061072b565b60088401546040808301518151632770a7eb60e21b81526001600160a01b038d8116600483015260248201929092529151921691639dc29fac9160448082019260009290919082900301818387803b15801561067f57600080fd5b505af1158015610693573d6000803e3d6000fd5b505050506007840154604082015160808301516001600160a01b0390921691639dc29fac918c916106c391611685565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561071257600080fd5b505af1158015610726573d6000803e3d6000fd5b505050505b86156107b3576101e08101516101808201516040805163f866c31960e01b81526001600160a01b038d8116600483015233602483015260448201939093529051919092169163f866c31991606480830192600092919082900301818387803b15801561079657600080fd5b505af11580156107aa573d6000803e3d6000fd5b50505050610856565b6107bc83611286565b6101808101516107d89084908d9060009063ffffffff
|