2020-06-03 10:23:21 +00:00
|
|
|
/* Generated by ts-generator ver. 0.0.8 */
|
|
|
|
/* tslint:disable */
|
|
|
|
|
2020-08-10 18:20:08 +00:00
|
|
|
import {Contract, ContractFactory, Signer} from 'ethers';
|
|
|
|
import {Provider} from 'ethers/providers';
|
|
|
|
import {UnsignedTransaction} from 'ethers/utils/transaction';
|
2020-06-03 10:23:21 +00:00
|
|
|
|
2020-08-10 18:20:08 +00:00
|
|
|
import {TransactionOverrides} from '.';
|
|
|
|
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-10 18:20:08 +00:00
|
|
|
deploy(overrides?: TransactionOverrides): Promise<LendingPoolLiquidationManager> {
|
2020-06-03 10:23:21 +00:00
|
|
|
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 {
|
2020-08-10 18:20:08 +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-10 18:20:08 +00:00
|
|
|
internalType: 'address',
|
|
|
|
name: '_collateral',
|
|
|
|
type: 'address',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: true,
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'address',
|
|
|
|
name: '_reserve',
|
|
|
|
type: 'address',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: true,
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'address',
|
|
|
|
name: '_user',
|
|
|
|
type: 'address',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_purchaseAmount',
|
|
|
|
type: 'uint256',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_liquidatedCollateralAmount',
|
|
|
|
type: 'uint256',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'address',
|
|
|
|
name: '_liquidator',
|
|
|
|
type: 'address',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'bool',
|
|
|
|
name: '_receiveAToken',
|
|
|
|
type: 'bool',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
indexed: false,
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_timestamp',
|
|
|
|
type: 'uint256',
|
|
|
|
},
|
2020-06-03 10:23:21 +00:00
|
|
|
],
|
2020-08-10 18:20:08 +00:00
|
|
|
name: 'LiquidationCall',
|
|
|
|
type: 'event',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
inputs: [],
|
2020-08-10 18:20:08 +00:00
|
|
|
name: 'addressesProvider',
|
2020-06-03 10:23:21 +00:00
|
|
|
outputs: [
|
|
|
|
{
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'contract LendingPoolAddressesProvider',
|
|
|
|
name: '',
|
|
|
|
type: 'address',
|
|
|
|
},
|
2020-06-03 10:23:21 +00:00
|
|
|
],
|
2020-08-10 18:20:08 +00:00
|
|
|
stateMutability: 'view',
|
|
|
|
type: 'function',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
inputs: [
|
|
|
|
{
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'address',
|
|
|
|
name: '_collateral',
|
|
|
|
type: 'address',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'address',
|
|
|
|
name: '_reserve',
|
|
|
|
type: 'address',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'address',
|
|
|
|
name: '_user',
|
|
|
|
type: 'address',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '_purchaseAmount',
|
|
|
|
type: 'uint256',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'bool',
|
|
|
|
name: '_receiveAToken',
|
|
|
|
type: 'bool',
|
|
|
|
},
|
2020-06-03 10:23:21 +00:00
|
|
|
],
|
2020-08-10 18:20:08 +00:00
|
|
|
name: 'liquidationCall',
|
2020-06-03 10:23:21 +00:00
|
|
|
outputs: [
|
|
|
|
{
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '',
|
|
|
|
type: 'uint256',
|
2020-06-03 10:23:21 +00:00
|
|
|
},
|
|
|
|
{
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'string',
|
|
|
|
name: '',
|
|
|
|
type: 'string',
|
|
|
|
},
|
2020-06-03 10:23:21 +00:00
|
|
|
],
|
2020-08-10 18:20:08 +00:00
|
|
|
stateMutability: 'payable',
|
|
|
|
type: 'function',
|
2020-06-20 23:40:03 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
inputs: [
|
|
|
|
{
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'uint256',
|
|
|
|
name: '',
|
|
|
|
type: 'uint256',
|
|
|
|
},
|
2020-06-20 23:40:03 +00:00
|
|
|
],
|
2020-08-10 18:20:08 +00:00
|
|
|
name: 'reservesList',
|
2020-06-20 23:40:03 +00:00
|
|
|
outputs: [
|
|
|
|
{
|
2020-08-10 18:20:08 +00:00
|
|
|
internalType: 'address',
|
|
|
|
name: '',
|
|
|
|
type: 'address',
|
|
|
|
},
|
2020-06-20 23:40:03 +00:00
|
|
|
],
|
2020-08-10 18:20:08 +00:00
|
|
|
stateMutability: 'view',
|
|
|
|
type: 'function',
|
|
|
|
},
|
2020-06-03 10:23:21 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
const _bytecode =
|
2020-08-10 18:20:08 +00:00
|
|
|
'0x6080604052600060015534801561001557600080fd5b5060016000556124208061002a6000396000f3fe6080604052600436106100335760003560e01c8062a718a9146100385780634fe7a6e5146100fb578063c72c4d1014610141575b600080fd5b61007c600480360360a081101561004e57600080fd5b506001600160a01b038135811691602081013582169160408201351690606081013590608001351515610156565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156100bf5781810151838201526020016100a7565b50505050905090810190601f1680156100ec5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b34801561010757600080fd5b506101256004803603602081101561011e57600080fd5b5035610951565b604080516001600160a01b039092168252519081900360200190f35b34801561014d57600080fd5b50610125610978565b6001600160a01b0380851660009081526037602090815260408083208985168452818420948816845260389092528220919260609261019361214e565b6001600160a01b03891660009081526038602090815260409182902082518083018452905481526039805484518185028101850190955280855261028c948e946037949391929083018282801561021357602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116101f5575b505060355460408051631f94a27560e31b815290516001600160a01b03909216945063fca513a893506004808201935060209291829003018186803b15801561025b57600080fd5b505afa15801561026f573d6000803e3d6000fd5b505050506040513d602081101561028557600080fd5b5051610987565b6101c08601819052670de0b6b3a76400001193506102d092505050576004604051806060016040528060288152602001612399602891399550955050505050610947565b6006830154604080516370a0823160e01b81526001600160a01b038c81166004830152915191909216916370a08231916024808301926020929190829003018186803b15801561031f57600080fd5b505afa158015610333573d6000803e3d6000fd5b505050506040513d602081101561034957600080fd5b50518152600061035b60058501610e64565b11801561038a5750600983015460408051602081019091528354815261038a91600160d01b900460ff16610e79565b151561020082018190526103c05760026040518060600160405280602a815260200161231b602a91399550955050505050610947565b6103ca8985610e91565b6040830152602082018190521580156103e557506040810151155b156104125760036040518060600160405280602a81526020016123c1602a91399550955050505050610947565b61043f61138861043383604001518460200151610f9490919063ffffffff16565b9063ffffffff610ff516565b6060820181905288116104525787610458565b80606001515b60808201819052815161047391859187918f918f9190611023565b6101a083018190526101808301919091526080820151111561049b576101a081015160808201525b60068301546001600160a01b03166101e0820152866105115760006104d7826101e001518d6001600160a01b03166112ae90919063ffffffff16565b905081610180015181101561050f5760056040518060600160405280603381526020016122e860339139965096505050505050610947565b505b61051a84611358565b60808101516105349085908c90600063ffffffff61141016565b80608001518160400151106105bd576008840154608082015160408051632770a7eb60e21b81526001600160a01b038d81166004830152602482019390935290519190921691639dc29fac91604480830192600092919082900301818387803b1580156105a057600080fd5b505af11580156105b4573d6000803e3d6000fd5b505050506106c4565b60088401546040808301518151632770a7eb60e21b81526001600160a01b038d8116600483015260248201929092529151921691639dc29fac9160448082019260009290919082900301818387803b15801561061857600080fd5b505af115801561062c573d6000803e3d6000fd5b505050506007840154604082015160808301516001600160a01b0390921691639dc29fac918c9161065c916116fd565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156106ab57600080fd5b505af11580156106bf573d6000803e3d6000fd5b505050505b861561074c576101e08101516101808201516040805163f866c31960e01b81526001600160a01b038d8116600483015233602483015260448201939093529051919092169163f866c31991606480830192600092919082900301818387803b15801561072f57600080fd5b505af1158015610743573d6000803e3d6000fd5b5050505061087c565b61075583611358565b6101808101516107719084908d9060009063ffffffff61141016565b806101e001516001600160a01b0316633edb7cb88a8361018001516040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015
|