mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
436 lines
22 KiB
TypeScript
436 lines
22 KiB
TypeScript
![]() |
/* Generated by ts-generator ver. 0.0.8 */
|
||
|
/* tslint:disable */
|
||
|
|
||
|
import {Signer} from 'ethers';
|
||
|
import {Provider, TransactionRequest} from '@ethersproject/providers';
|
||
|
import {Contract, ContractFactory, Overrides} from '@ethersproject/contracts';
|
||
|
|
||
|
import {LendingPoolAddressesProvider} from './LendingPoolAddressesProvider';
|
||
|
|
||
|
export class LendingPoolAddressesProviderFactory extends ContractFactory {
|
||
|
constructor(signer?: Signer) {
|
||
|
super(_abi, _bytecode, signer);
|
||
|
}
|
||
|
|
||
|
deploy(overrides?: Overrides): Promise<LendingPoolAddressesProvider> {
|
||
|
return super.deploy(overrides || {}) as Promise<LendingPoolAddressesProvider>;
|
||
|
}
|
||
|
getDeployTransaction(overrides?: Overrides): TransactionRequest {
|
||
|
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 {
|
||
|
return new Contract(address, _abi, signerOrProvider) as LendingPoolAddressesProvider;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const _abi = [
|
||
|
{
|
||
|
anonymous: false,
|
||
|
inputs: [
|
||
|
{
|
||
|
indexed: true,
|
||
|
internalType: 'address',
|
||
|
name: 'newAddress',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'EthereumAddressUpdated',
|
||
|
type: 'event',
|
||
|
},
|
||
|
{
|
||
|
anonymous: false,
|
||
|
inputs: [
|
||
|
{
|
||
|
indexed: true,
|
||
|
internalType: 'address',
|
||
|
name: 'newAddress',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'FeeProviderUpdated',
|
||
|
type: 'event',
|
||
|
},
|
||
|
{
|
||
|
anonymous: false,
|
||
|
inputs: [
|
||
|
{
|
||
|
indexed: true,
|
||
|
internalType: 'address',
|
||
|
name: 'newAddress',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'LendingPoolConfiguratorUpdated',
|
||
|
type: 'event',
|
||
|
},
|
||
|
{
|
||
|
anonymous: false,
|
||
|
inputs: [
|
||
|
{
|
||
|
indexed: true,
|
||
|
internalType: 'address',
|
||
|
name: 'newAddress',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'LendingPoolLiquidationManagerUpdated',
|
||
|
type: 'event',
|
||
|
},
|
||
|
{
|
||
|
anonymous: false,
|
||
|
inputs: [
|
||
|
{
|
||
|
indexed: true,
|
||
|
internalType: 'address',
|
||
|
name: 'newAddress',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'LendingPoolManagerUpdated',
|
||
|
type: 'event',
|
||
|
},
|
||
|
{
|
||
|
anonymous: false,
|
||
|
inputs: [
|
||
|
{
|
||
|
indexed: true,
|
||
|
internalType: 'address',
|
||
|
name: 'newAddress',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'LendingPoolUpdated',
|
||
|
type: 'event',
|
||
|
},
|
||
|
{
|
||
|
anonymous: false,
|
||
|
inputs: [
|
||
|
{
|
||
|
indexed: true,
|
||
|
internalType: 'address',
|
||
|
name: 'newAddress',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'LendingRateOracleUpdated',
|
||
|
type: 'event',
|
||
|
},
|
||
|
{
|
||
|
anonymous: false,
|
||
|
inputs: [
|
||
|
{
|
||
|
indexed: true,
|
||
|
internalType: 'address',
|
||
|
name: 'previousOwner',
|
||
|
type: 'address',
|
||
|
},
|
||
|
{
|
||
|
indexed: true,
|
||
|
internalType: 'address',
|
||
|
name: 'newOwner',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'OwnershipTransferred',
|
||
|
type: 'event',
|
||
|
},
|
||
|
{
|
||
|
anonymous: false,
|
||
|
inputs: [
|
||
|
{
|
||
|
indexed: true,
|
||
|
internalType: 'address',
|
||
|
name: 'newAddress',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'PriceOracleUpdated',
|
||
|
type: 'event',
|
||
|
},
|
||
|
{
|
||
|
anonymous: false,
|
||
|
inputs: [
|
||
|
{
|
||
|
indexed: false,
|
||
|
internalType: 'bytes32',
|
||
|
name: 'id',
|
||
|
type: 'bytes32',
|
||
|
},
|
||
|
{
|
||
|
indexed: true,
|
||
|
internalType: 'address',
|
||
|
name: 'newAddress',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'ProxyCreated',
|
||
|
type: 'event',
|
||
|
},
|
||
|
{
|
||
|
anonymous: false,
|
||
|
inputs: [
|
||
|
{
|
||
|
indexed: true,
|
||
|
internalType: 'address',
|
||
|
name: 'newAddress',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'TokenDistributorUpdated',
|
||
|
type: 'event',
|
||
|
},
|
||
|
{
|
||
|
inputs: [],
|
||
|
name: 'getFeeProvider',
|
||
|
outputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: '',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
stateMutability: 'view',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [],
|
||
|
name: 'getLendingPool',
|
||
|
outputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: '',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
stateMutability: 'view',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [],
|
||
|
name: 'getLendingPoolConfigurator',
|
||
|
outputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: '',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
stateMutability: 'view',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [],
|
||
|
name: 'getLendingPoolLiquidationManager',
|
||
|
outputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: '',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
stateMutability: 'view',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [],
|
||
|
name: 'getLendingPoolManager',
|
||
|
outputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: '',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
stateMutability: 'view',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [],
|
||
|
name: 'getLendingRateOracle',
|
||
|
outputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: '',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
stateMutability: 'view',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [],
|
||
|
name: 'getPriceOracle',
|
||
|
outputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: '',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
stateMutability: 'view',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [],
|
||
|
name: 'getTokenDistributor',
|
||
|
outputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: '',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
stateMutability: 'view',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [],
|
||
|
name: 'owner',
|
||
|
outputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: '',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
stateMutability: 'view',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [],
|
||
|
name: 'renounceOwnership',
|
||
|
outputs: [],
|
||
|
stateMutability: 'nonpayable',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: 'feeProvider',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'setFeeProviderImpl',
|
||
|
outputs: [],
|
||
|
stateMutability: 'nonpayable',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: 'configurator',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'setLendingPoolConfiguratorImpl',
|
||
|
outputs: [],
|
||
|
stateMutability: 'nonpayable',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: 'pool',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'setLendingPoolImpl',
|
||
|
outputs: [],
|
||
|
stateMutability: 'nonpayable',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: 'manager',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'setLendingPoolLiquidationManager',
|
||
|
outputs: [],
|
||
|
stateMutability: 'nonpayable',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: 'lendingPoolManager',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'setLendingPoolManager',
|
||
|
outputs: [],
|
||
|
stateMutability: 'nonpayable',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: 'lendingRateOracle',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'setLendingRateOracle',
|
||
|
outputs: [],
|
||
|
stateMutability: 'nonpayable',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: 'priceOracle',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'setPriceOracle',
|
||
|
outputs: [],
|
||
|
stateMutability: 'nonpayable',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: 'tokenDistributor',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'setTokenDistributor',
|
||
|
outputs: [],
|
||
|
stateMutability: 'nonpayable',
|
||
|
type: 'function',
|
||
|
},
|
||
|
{
|
||
|
inputs: [
|
||
|
{
|
||
|
internalType: 'address',
|
||
|
name: 'newOwner',
|
||
|
type: 'address',
|
||
|
},
|
||
|
],
|
||
|
name: 'transferOwnership',
|
||
|
outputs: [],
|
||
|
stateMutability: 'nonpayable',
|
||
|
type: 'function',
|
||
|
},
|
||
|
];
|
||
|
|
||
|
const _bytecode =
|
||
|
'0x608060405234801561001057600080fd5b5060006100246001600160e01b0361007316565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610077565b3390565b611a69806100866000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80635aef021f116100ad578063c12542df11610071578063c12542df14610286578063ee891296146102ac578063f2fde38b146102b4578063fbeefc3c146102da578063fca513a8146102e257610121565b80635aef021f14610222578063715018a614610248578063820d12741461025057806385c858b1146102765780638da5cb5b1461027e57610121565b806338280e6b116100f457806338280e6b1461018257806340fdcadc146101a857806344ce375b146101ce578063530e784f146101f45780635834eb9a1461021a57610121565b80630261bf8b146101265780632a62c6361461014a57806333128d59146101725780633618abba1461017a575b600080fd5b61012e6102ea565b604080516001600160a01b039092168252519081900360200190f35b6101706004803603602081101561016057600080fd5b50356001600160a01b0316610330565b005b61012e6103d8565b61012e610426565b6101706004803603602081101561019857600080fd5b50356001600160a01b0316610473565b610170600480360360208110156101be57600080fd5b50356001600160a01b0316610552565b610170600480360360208110156101e457600080fd5b50356001600160a01b0316610634565b6101706004803603602081101561020a57600080fd5b50356001600160a01b0316610715565b61012e6107ef565b6101706004803603602081101561023857600080fd5b50356001600160a01b031661083c565b6101706108e4565b6101706004803603602081101561026657600080fd5b50356001600160a01b0316610986565b61012e610a67565b61012e610aba565b6101706004803603602081101561029c57600080fd5b50356001600160a01b0316610ac9565b61012e610b7e565b610170600480360360208110156102ca57600080fd5b50356001600160a01b0316610bc9565b61012e610cc1565b61012e610d07565b6b13115391125391d7d413d3d360a21b60005260016020527f80b1f352aaaa810cd26c3b708a78da0b7c1d2417fd1de3442a764a21d12298f9546001600160a01b031690565b610338610d4d565b6000546001600160a01b03908116911614610388576040805162461bcd60e51b81526020600482018190526024820152600080516020611a14833981519152604482015290519081900360640190fd5b6103a16b2322a2afa82927ab24a222a960a11b82610d51565b6040516001600160a01b038216907f18e1a55b8eff9c93921eecfa1462d6a8cbb80b3988db3eb14c039e43fdb2266190600090a250565b732622a72224a723afa827a7a62fa6a0a720a3a2a960611b60005260016020527fe4b97ed315792b429a3d5cf60e4d11da6f59fb7fffa7d351d111667fac9418b5546001600160a01b031690565b724c454e44494e475f524154455f4f5241434c4560681b60005260016020527fcb40a4ed28bcd13050fc5a5521ee1e9fbbff654480b0b1e986483de2a9653344546001600160a01b031690565b61047b610d4d565b6000546001600160a01b039081169116146104cb576040805162461bcd60e51b81526020600482018190526024820152600080516020611a14833981519152604482015290519081900360640190fd5b702a27a5a2a72fa224a9aa2924a12aaa27a960791b600090815260016020527f23a11b120c13a5edd7ba07f9826150ca274bafcad6a819a9cabfde56f14b0f2780546001600160a01b0319166001600160a01b03841690811790915560405190917fa8b48a56ec01f81c3615a21ec43e16b925c26293e0801cf6330427f2a687f05391a250565b61055a610d4d565b6000546001600160a01b039081169116146105aa576040805162461bcd60e51b81526020600482018190526024820152600080516020611a14833981519152604482015290519081900360640190fd5b732622a72224a723afa827a7a62fa6a0a720a3a2a960611b600090815260016020527fe4b97ed315792b429a3d5cf60e4d11da6f59fb7fffa7d351d111667fac9418b580546001600160a01b0319166001600160a01b03841690811790915560405190917fd5280c51185a38d36f7a0f5e56cac6248312bb70d0974782fa5a595127e0e08e91a250565b61063c610d4d565b6000546001600160a01b0390811691161461068c576040805162461bcd60e51b81526020600482018190526024820152600080516020611a14833981519152604482015290519081900360640190fd5b722624a8aaa4a220aa24a7a72fa6a0a720a3a2a960691b600090815260016020527f0c2c596851b4651a8e6f929110f58021f1ce980da957db0b05c6345f3381e7d580546001600160a01b0319166001600160a01b03841690811790915560405190917f1a76cb769b814bc038223da86932b099b20aae03473683e6d98f5c3554e2606491a250565b61071d610d4d565b6000546001600160a01b0390811691161461076d576040805162461bcd60e51b81526020600482018190526024820152600080516020611a14833981519152604482015290519081900360640190fd5b6b50524943455f4f52
|