aave-protocol-v2/types/LendingPoolAddressesProviderFactory.ts

462 lines
21 KiB
TypeScript
Raw Normal View History

2020-06-03 10:23:21 +00:00
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
2020-08-17 19:28:50 +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-17 19:28:50 +00:00
import { TransactionOverrides } from ".";
import { LendingPoolAddressesProvider } from "./LendingPoolAddressesProvider";
2020-06-03 10:23:21 +00:00
export class LendingPoolAddressesProviderFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
2020-08-17 19:28:50 +00:00
deploy(
overrides?: TransactionOverrides
): Promise<LendingPoolAddressesProvider> {
2020-06-03 10:23:21 +00:00
return super.deploy(overrides) as Promise<LendingPoolAddressesProvider>;
}
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
return super.getDeployTransaction(overrides);
}
attach(address: string): LendingPoolAddressesProvider {
return super.attach(address) as LendingPoolAddressesProvider;
}
connect(signer: Signer): LendingPoolAddressesProviderFactory {
return super.connect(signer) as LendingPoolAddressesProviderFactory;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): LendingPoolAddressesProvider {
2020-08-17 19:28:50 +00:00
return new Contract(
address,
_abi,
signerOrProvider
) as LendingPoolAddressesProvider;
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: "newAddress",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "EthereumAddressUpdated",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "newAddress",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "FeeProviderUpdated",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "newAddress",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "LendingPoolConfiguratorUpdated",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "newAddress",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "LendingPoolLiquidationManagerUpdated",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "newAddress",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "LendingPoolManagerUpdated",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "newAddress",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "LendingPoolUpdated",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "newAddress",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "LendingRateOracleUpdated",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "previousOwner",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "newOwner",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "OwnershipTransferred",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "newAddress",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "PriceOracleUpdated",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: false,
2020-08-17 19:28:50 +00:00
internalType: "bytes32",
name: "id",
type: "bytes32"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "newAddress",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "ProxyCreated",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "newAddress",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "TokenDistributorUpdated",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "bytes32",
name: "_key",
type: "bytes32"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "getAddress",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
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
name: "getFeeProvider",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
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
name: "getLendingPool",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
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
name: "getLendingPoolConfigurator",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
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
name: "getLendingPoolLiquidationManager",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
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
name: "getLendingPoolManager",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
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
name: "getLendingRateOracle",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
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
name: "getPriceOracle",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
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
name: "getTokenDistributor",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
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
name: "owner",
2020-06-03 10:23:21 +00:00
outputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
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
name: "renounceOwnership",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_feeProvider",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "setFeeProviderImpl",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_configurator",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "setLendingPoolConfiguratorImpl",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_pool",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "setLendingPoolImpl",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_manager",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "setLendingPoolLiquidationManager",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_lendingPoolManager",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "setLendingPoolManager",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_lendingRateOracle",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "setLendingRateOracle",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_priceOracle",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "setPriceOracle",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "_tokenDistributor",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "setTokenDistributor",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
2020-06-03 10:23:21 +00:00
},
{
inputs: [
{
2020-08-17 19:28:50 +00:00
internalType: "address",
name: "newOwner",
type: "address"
}
2020-06-03 10:23:21 +00:00
],
2020-08-17 19:28:50 +00:00
name: "transferOwnership",
2020-06-03 10:23:21 +00:00
outputs: [],
2020-08-17 19:28:50 +00:00
stateMutability: "nonpayable",
type: "function"
}
2020-06-03 10:23:21 +00:00
];
const _bytecode =
2020-08-17 19:28:50 +00:00
"0x608060405234801561001057600080fd5b5060006100246001600160e01b0361007316565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610077565b3390565b61186a806100866000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80635aef021f116100ad578063c12542df11610071578063c12542df146102ae578063ee891296146102d4578063f2fde38b146102dc578063fbeefc3c14610302578063fca513a81461030a5761012c565b80635aef021f1461024a578063715018a614610270578063820d12741461027857806385c858b11461029e5780638da5cb5b146102a65761012c565b806338280e6b116100f457806338280e6b146101aa57806340fdcadc146101d057806344ce375b146101f6578063530e784f1461021c5780635834eb9a146102425761012c565b80630261bf8b1461013157806321f8a721146101555780632a62c6361461017257806333128d591461019a5780633618abba146101a2575b600080fd5b610139610312565b604080516001600160a01b039092168252519081900360200190f35b6101396004803603602081101561016b57600080fd5b5035610331565b6101986004803603602081101561018857600080fd5b50356001600160a01b031661034c565b005b6101396103f4565b610139610416565b610198600480360360208110156101c057600080fd5b50356001600160a01b0316610437565b610198600480360360208110156101e657600080fd5b50356001600160a01b03166104e4565b6101986004803603602081101561020c57600080fd5b50356001600160a01b0316610594565b6101986004803603602081101561023257600080fd5b50356001600160a01b0316610643565b6101396106eb565b6101986004803603602081101561026057600080fd5b50356001600160a01b031661070c565b6101986107b4565b6101986004803603602081101561028e57600080fd5b50356001600160a01b0316610856565b610139610905565b61013961092c565b610198600480360360208110156102c457600080fd5b50356001600160a01b031661093b565b6101396109f0565b610198600480360360208110156102f257600080fd5b50356001600160a01b0316610a0f565b610139610b07565b610139610b21565b600061032c6b13115391125391d7d413d3d360a21b610331565b905090565b6000908152600160205260409020546001600160a01b031690565b610354610b3b565b6000546001600160a01b039081169116146103a4576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6103bd6b2322a2afa82927ab24a222a960a11b82610b3f565b6040516001600160a01b038216907f18e1a55b8eff9c93921eecfa1462d6a8cbb80b3988db3eb14c039e43fdb2266190600090a250565b600061032c732622a72224a723afa827a7a62fa6a0a720a3a2a960611b610331565b600061032c724c454e44494e475f524154455f4f5241434c4560681b610331565b61043f610b3b565b6000546001600160a01b0390811691161461048f576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6104ad702a27a5a2a72fa224a9aa2924a12aaa27a960791b82610dd8565b6040516001600160a01b038216907fa8b48a56ec01f81c3615a21ec43e16b925c26293e0801cf6330427f2a687f05390600090a250565b6104ec610b3b565b6000546001600160a01b0390811691161461053c576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b61055d732622a72224a723afa827a7a62fa6a0a720a3a2a960611b82610dd8565b6040516001600160a01b038216907fd5280c51185a38d36f7a0f5e56cac6248312bb70d0974782fa5a595127e0e08e90600090a250565b61059c610b3b565b6000546001600160a01b039081169116146105ec576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b61060c722624a8aaa4a220aa24a7a72fa6a0a720a3a2a960691b82610dd8565b6040516001600160a01b038216907f1a76cb769b814bc038223da86932b099b20aae03473683e6d98f5c3554e2606490600090a250565b61064b610b3b565b6000546001600160a01b0390811691161461069b576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b6106b46b50524943455f4f5241434c4560a01b82610dd8565b6040516001600160a01b038216907fefe8ab924ca486283a79dc604baa67add51afb82af1db8ac386ebbba643cdffd90600090a250565b600061032c722624a8aaa4a220aa24a7a72fa6a0a720a3a2a960691b610331565b610714610b3b565b6000546001600160a01b03908116911614610764576040805162461bcd60e51b81526020600482018190526024820152600080516020611815833981519152604482015290519081900360640190fd5b61077d6b13115391125391d7d413d3d360a2