aave-protocol-v2/types/LendingPoolConfigurator.d.ts
2020-08-10 20:20:08 +02:00

508 lines
15 KiB
TypeScript

/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
import {Listener, Provider} from 'ethers/providers';
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
interface LendingPoolConfiguratorInterface extends Interface {
functions: {
CONFIGURATOR_REVISION: TypedFunctionDescription<{encode([]: []): string}>;
activateReserve: TypedFunctionDescription<{
encode([_reserve]: [string]): string;
}>;
deactivateReserve: TypedFunctionDescription<{
encode([_reserve]: [string]): string;
}>;
disableBorrowingOnReserve: TypedFunctionDescription<{
encode([_reserve]: [string]): string;
}>;
disableReserveAsCollateral: TypedFunctionDescription<{
encode([_reserve]: [string]): string;
}>;
disableReserveStableRate: TypedFunctionDescription<{
encode([_reserve]: [string]): string;
}>;
enableBorrowingOnReserve: TypedFunctionDescription<{
encode([_reserve, _stableBorrowRateEnabled]: [string, boolean]): string;
}>;
enableReserveAsCollateral: TypedFunctionDescription<{
encode([_reserve, _baseLTVasCollateral, _liquidationThreshold, _liquidationBonus]: [
string,
BigNumberish,
BigNumberish,
BigNumberish
]): string;
}>;
enableReserveStableRate: TypedFunctionDescription<{
encode([_reserve]: [string]): string;
}>;
freezeReserve: TypedFunctionDescription<{
encode([_reserve]: [string]): string;
}>;
initReserve: TypedFunctionDescription<{
encode([
_reserve,
_aTokenInstance,
_stableDebtTokenAddress,
_variableDebtTokenAddress,
_underlyingAssetDecimals,
_interestRateStrategyAddress,
]: [string, string, string, string, BigNumberish, string]): string;
}>;
initialize: TypedFunctionDescription<{
encode([_poolAddressesProvider]: [string]): string;
}>;
pool: TypedFunctionDescription<{encode([]: []): string}>;
poolAddressesProvider: TypedFunctionDescription<{encode([]: []): string}>;
setLiquidationBonus: TypedFunctionDescription<{
encode([_reserve, _bonus]: [string, BigNumberish]): string;
}>;
setLiquidationThreshold: TypedFunctionDescription<{
encode([_reserve, _threshold]: [string, BigNumberish]): string;
}>;
setLtv: TypedFunctionDescription<{
encode([_reserve, _ltv]: [string, BigNumberish]): string;
}>;
setReserveDecimals: TypedFunctionDescription<{
encode([_reserve, _decimals]: [string, BigNumberish]): string;
}>;
setReserveInterestRateStrategyAddress: TypedFunctionDescription<{
encode([_reserve, _rateStrategyAddress]: [string, string]): string;
}>;
unfreezeReserve: TypedFunctionDescription<{
encode([_reserve]: [string]): string;
}>;
updateAToken: TypedFunctionDescription<{
encode([_reserve, _implementation]: [string, string]): string;
}>;
};
events: {
BorrowingDisabledOnReserve: TypedEventDescription<{
encodeTopics([_reserve]: [string | null]): string[];
}>;
BorrowingEnabledOnReserve: TypedEventDescription<{
encodeTopics([_reserve, _stableRateEnabled]: [null, null]): string[];
}>;
ReserveActivated: TypedEventDescription<{
encodeTopics([_reserve]: [string | null]): string[];
}>;
ReserveBaseLtvChanged: TypedEventDescription<{
encodeTopics([_reserve, _ltv]: [null, null]): string[];
}>;
ReserveDeactivated: TypedEventDescription<{
encodeTopics([_reserve]: [string | null]): string[];
}>;
ReserveDecimalsChanged: TypedEventDescription<{
encodeTopics([_reserve, _decimals]: [null, null]): string[];
}>;
ReserveDisabledAsCollateral: TypedEventDescription<{
encodeTopics([_reserve]: [string | null]): string[];
}>;
ReserveEnabledAsCollateral: TypedEventDescription<{
encodeTopics([_reserve, _ltv, _liquidationThreshold, _liquidationBonus]: [
string | null,
null,
null,
null
]): string[];
}>;
ReserveFreezed: TypedEventDescription<{
encodeTopics([_reserve]: [string | null]): string[];
}>;
ReserveInitialized: TypedEventDescription<{
encodeTopics([_reserve, _aToken, _interestRateStrategyAddress]: [
string | null,
string | null,
null
]): string[];
}>;
ReserveInterestRateStrategyChanged: TypedEventDescription<{
encodeTopics([_reserve, _strategy]: [null, null]): string[];
}>;
ReserveLiquidationBonusChanged: TypedEventDescription<{
encodeTopics([_reserve, _bonus]: [null, null]): string[];
}>;
ReserveLiquidationThresholdChanged: TypedEventDescription<{
encodeTopics([_reserve, _threshold]: [null, null]): string[];
}>;
ReserveUnfreezed: TypedEventDescription<{
encodeTopics([_reserve]: [string | null]): string[];
}>;
StableRateDisabledOnReserve: TypedEventDescription<{
encodeTopics([_reserve]: [string | null]): string[];
}>;
StableRateEnabledOnReserve: TypedEventDescription<{
encodeTopics([_reserve]: [string | null]): string[];
}>;
};
}
export class LendingPoolConfigurator extends Contract {
connect(signerOrProvider: Signer | Provider | string): LendingPoolConfigurator;
attach(addressOrName: string): LendingPoolConfigurator;
deployed(): Promise<LendingPoolConfigurator>;
on(event: EventFilter | string, listener: Listener): LendingPoolConfigurator;
once(event: EventFilter | string, listener: Listener): LendingPoolConfigurator;
addListener(eventName: EventFilter | string, listener: Listener): LendingPoolConfigurator;
removeAllListeners(eventName: EventFilter | string): LendingPoolConfigurator;
removeListener(eventName: any, listener: Listener): LendingPoolConfigurator;
interface: LendingPoolConfiguratorInterface;
functions: {
CONFIGURATOR_REVISION(): Promise<BigNumber>;
activateReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
deactivateReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
disableBorrowingOnReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
disableReserveAsCollateral(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
disableReserveStableRate(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
enableBorrowingOnReserve(
_reserve: string,
_stableBorrowRateEnabled: boolean,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
enableReserveAsCollateral(
_reserve: string,
_baseLTVasCollateral: BigNumberish,
_liquidationThreshold: BigNumberish,
_liquidationBonus: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
enableReserveStableRate(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
freezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
initReserve(
_reserve: string,
_aTokenInstance: string,
_stableDebtTokenAddress: string,
_variableDebtTokenAddress: string,
_underlyingAssetDecimals: BigNumberish,
_interestRateStrategyAddress: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
initialize(
_poolAddressesProvider: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
pool(): Promise<string>;
poolAddressesProvider(): Promise<string>;
setLiquidationBonus(
_reserve: string,
_bonus: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setLiquidationThreshold(
_reserve: string,
_threshold: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setLtv(
_reserve: string,
_ltv: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setReserveDecimals(
_reserve: string,
_decimals: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setReserveInterestRateStrategyAddress(
_reserve: string,
_rateStrategyAddress: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
unfreezeReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
updateAToken(
_reserve: string,
_implementation: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
CONFIGURATOR_REVISION(): Promise<BigNumber>;
activateReserve(_reserve: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
deactivateReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
disableBorrowingOnReserve(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
disableReserveAsCollateral(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
disableReserveStableRate(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
enableBorrowingOnReserve(
_reserve: string,
_stableBorrowRateEnabled: boolean,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
enableReserveAsCollateral(
_reserve: string,
_baseLTVasCollateral: BigNumberish,
_liquidationThreshold: BigNumberish,
_liquidationBonus: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
enableReserveStableRate(
_reserve: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
freezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
initReserve(
_reserve: string,
_aTokenInstance: string,
_stableDebtTokenAddress: string,
_variableDebtTokenAddress: string,
_underlyingAssetDecimals: BigNumberish,
_interestRateStrategyAddress: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
initialize(
_poolAddressesProvider: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
pool(): Promise<string>;
poolAddressesProvider(): Promise<string>;
setLiquidationBonus(
_reserve: string,
_bonus: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setLiquidationThreshold(
_reserve: string,
_threshold: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setLtv(
_reserve: string,
_ltv: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setReserveDecimals(
_reserve: string,
_decimals: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setReserveInterestRateStrategyAddress(
_reserve: string,
_rateStrategyAddress: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
unfreezeReserve(_reserve: string, overrides?: TransactionOverrides): Promise<ContractTransaction>;
updateAToken(
_reserve: string,
_implementation: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {
BorrowingDisabledOnReserve(_reserve: string | null): EventFilter;
BorrowingEnabledOnReserve(_reserve: null, _stableRateEnabled: null): EventFilter;
ReserveActivated(_reserve: string | null): EventFilter;
ReserveBaseLtvChanged(_reserve: null, _ltv: null): EventFilter;
ReserveDeactivated(_reserve: string | null): EventFilter;
ReserveDecimalsChanged(_reserve: null, _decimals: null): EventFilter;
ReserveDisabledAsCollateral(_reserve: string | null): EventFilter;
ReserveEnabledAsCollateral(
_reserve: string | null,
_ltv: null,
_liquidationThreshold: null,
_liquidationBonus: null
): EventFilter;
ReserveFreezed(_reserve: string | null): EventFilter;
ReserveInitialized(
_reserve: string | null,
_aToken: string | null,
_interestRateStrategyAddress: null
): EventFilter;
ReserveInterestRateStrategyChanged(_reserve: null, _strategy: null): EventFilter;
ReserveLiquidationBonusChanged(_reserve: null, _bonus: null): EventFilter;
ReserveLiquidationThresholdChanged(_reserve: null, _threshold: null): EventFilter;
ReserveUnfreezed(_reserve: string | null): EventFilter;
StableRateDisabledOnReserve(_reserve: string | null): EventFilter;
StableRateEnabledOnReserve(_reserve: string | null): EventFilter;
};
estimate: {
CONFIGURATOR_REVISION(): Promise<BigNumber>;
activateReserve(_reserve: string): Promise<BigNumber>;
deactivateReserve(_reserve: string): Promise<BigNumber>;
disableBorrowingOnReserve(_reserve: string): Promise<BigNumber>;
disableReserveAsCollateral(_reserve: string): Promise<BigNumber>;
disableReserveStableRate(_reserve: string): Promise<BigNumber>;
enableBorrowingOnReserve(
_reserve: string,
_stableBorrowRateEnabled: boolean
): Promise<BigNumber>;
enableReserveAsCollateral(
_reserve: string,
_baseLTVasCollateral: BigNumberish,
_liquidationThreshold: BigNumberish,
_liquidationBonus: BigNumberish
): Promise<BigNumber>;
enableReserveStableRate(_reserve: string): Promise<BigNumber>;
freezeReserve(_reserve: string): Promise<BigNumber>;
initReserve(
_reserve: string,
_aTokenInstance: string,
_stableDebtTokenAddress: string,
_variableDebtTokenAddress: string,
_underlyingAssetDecimals: BigNumberish,
_interestRateStrategyAddress: string
): Promise<BigNumber>;
initialize(_poolAddressesProvider: string): Promise<BigNumber>;
pool(): Promise<BigNumber>;
poolAddressesProvider(): Promise<BigNumber>;
setLiquidationBonus(_reserve: string, _bonus: BigNumberish): Promise<BigNumber>;
setLiquidationThreshold(_reserve: string, _threshold: BigNumberish): Promise<BigNumber>;
setLtv(_reserve: string, _ltv: BigNumberish): Promise<BigNumber>;
setReserveDecimals(_reserve: string, _decimals: BigNumberish): Promise<BigNumber>;
setReserveInterestRateStrategyAddress(
_reserve: string,
_rateStrategyAddress: string
): Promise<BigNumber>;
unfreezeReserve(_reserve: string): Promise<BigNumber>;
updateAToken(_reserve: string, _implementation: string): Promise<BigNumber>;
};
}