aave-protocol-v2/types/ILendingRateOracle.d.ts

62 lines
1.9 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-07-13 08:54:08 +00:00
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 '.';
2020-06-03 10:23:21 +00:00
interface ILendingRateOracleInterface extends Interface {
functions: {
getMarketBorrowRate: TypedFunctionDescription<{
encode([_asset]: [string]): string;
}>;
setMarketBorrowRate: TypedFunctionDescription<{
encode([_asset, _rate]: [string, BigNumberish]): string;
}>;
};
events: {};
}
export class ILendingRateOracle extends Contract {
connect(signerOrProvider: Signer | Provider | string): ILendingRateOracle;
attach(addressOrName: string): ILendingRateOracle;
deployed(): Promise<ILendingRateOracle>;
on(event: EventFilter | string, listener: Listener): ILendingRateOracle;
once(event: EventFilter | string, listener: Listener): ILendingRateOracle;
2020-07-13 08:54:08 +00:00
addListener(eventName: EventFilter | string, listener: Listener): ILendingRateOracle;
2020-06-03 10:23:21 +00:00
removeAllListeners(eventName: EventFilter | string): ILendingRateOracle;
removeListener(eventName: any, listener: Listener): ILendingRateOracle;
interface: ILendingRateOracleInterface;
functions: {
getMarketBorrowRate(_asset: string): Promise<BigNumber>;
setMarketBorrowRate(
_asset: string,
_rate: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
getMarketBorrowRate(_asset: string): Promise<BigNumber>;
setMarketBorrowRate(
_asset: string,
_rate: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {};
estimate: {
getMarketBorrowRate(_asset: string): Promise<BigNumber>;
2020-07-13 08:54:08 +00:00
setMarketBorrowRate(_asset: string, _rate: BigNumberish): Promise<BigNumber>;
2020-06-03 10:23:21 +00:00
};
}