aave-protocol-v2/types/LendingPoolLiquidationManagerFactory.ts

208 lines
15 KiB
TypeScript
Raw Normal View History

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 {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
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: "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 =
"0x6080604052600060015534801561001557600080fd5b506000805460ff1916600117905561145f806100326000396000f3fe6080604052600436106100285760003560e01c8062a718a91461002d578063c72c4d10146100f0575b600080fd5b610071600480360360a081101561004357600080fd5b506001600160a01b038135811691602081013582169160408201351690606081013590608001351515610121565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156100b457818101518382015260200161009c565b50505050905090810190601f1680156100e15780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b3480156100fc57600080fd5b50610105610cd4565b604080516001600160a01b039092168252519081900360200190f35b6000606061012d6112a2565b60375460408051632c6d0e9b60e01b81526001600160a01b03898116600483015291519190921691632c6d0e9b91602480830192610100929190829003018186803b15801561017b57600080fd5b505afa15801561018f573d6000803e3d6000fd5b505050506040513d6101008110156101a657600080fd5b5060e0015115156101a082018190526101de5760046040518060600160405280602881526020016113d8602891399250925050610cca565b60365460408051630c526de560e11b81526001600160a01b038b811660048301528981166024830152915191909216916318a4dbca916044808301926020929190829003018186803b15801561023357600080fd5b505afa158015610247573d6000803e3d6000fd5b505050506040513d602081101561025d57600080fd5b50518082526102a557505060408051808201909152601f81527f496e76616c696420636f6c6c61746572616c20746f206c697175696461746500602082015260019150610cca565b60365460408051630c7cddd760e11b81526001600160a01b038b81166004830152915191909216916318f9bbae916024808301926020929190829003018186803b1580156102f257600080fd5b505afa158015610306573d6000803e3d6000fd5b505050506040513d602081101561031c57600080fd5b505180156103a7575060365460408051639e3c4f3b60e01b81526001600160a01b038b81166004830152898116602483015291519190921691639e3c4f3b916044808301926020929190829003018186803b15801561037a57600080fd5b505afa15801561038e573d6000803e3d6000fd5b505050506040513d60208110156103a457600080fd5b50515b151561018082018190526103da5760026040518060600160405280602a81526020016113ae602a91399250925050610cca565b60365460408051639fb8afcd60e01b81526001600160a01b038a81166004830152898116602483015291519190921691639fb8afcd916044808301926060929190829003018186803b15801561042f57600080fd5b505afa158015610443573d6000803e3d6000fd5b505050506040513d606081101561045957600080fd5b5060208082015160409283015192840192909252820181905261049b5760036040518060600160405280602a8152602001611400602a91399250925050610cca565b6104c460646104b860328460200151610ce390919063ffffffff16565b9063ffffffff610d4516565b6060820181905285116104d757846104dd565b80606001515b60808201819052815160009182916104f9918c918c9190610d87565b60365460408051633faacc6b60e21b81526001600160a01b038e811660048301528d811660248301529151949650929450169163feab31ac91604480820192602092909190829003018186803b15801561055257600080fd5b505afa158015610566573d6000803e3d6000fd5b505050506040513d602081101561057c57600080fd5b505160e08401819052156105bd576105b08a8a8560e001516105ab86886000015161116490919063ffffffff16565b610d87565b6101008501526101208401525b82608001518110156105d157608083018190525b85610687576036546040805163e240301960e01b81526001600160a01b038d811660048301529151600093929092169163e240301991602480820192602092909190829003018186803b15801561062757600080fd5b505afa15801561063b573d6000803e3d6000fd5b505050506040513d602081101561065157600080fd5b505190508281101561068557600560405180606001604052806033815260200161137b603391399550955050505050610cca565b505b603660009054906101000a90046001600160a01b03166001600160a01b03166368beb4d68a8c8b8760800151878961010001518a61012001518b604001518f6040518a63ffffffff1660e01b8152600401808a6001600160a01b03166001600160a01b03168152602001896001600160a01b03166001600160a01b03168152602001886001600160a01b03166001600160a01b03168152602001878152602001868152602001858152602001848152602001838152602001821515151581526020019950505050505050505050600060405180830381600087803b15801561076e57600080fd5b505af1158015610782573d6000803e3d6000fd5b505060365460408051631a59df7760e11b81526001600160a01b038f811660048301529151600095509190921692506334b3beee9160248082019260209290919082900301818680