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

156 lines
4.6 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 ChainlinkProxyPriceProviderInterface extends Interface {
functions: {
getAssetPrice: TypedFunctionDescription<{
encode([_asset]: [string]): string;
}>;
getAssetsPrices: TypedFunctionDescription<{
encode([_assets]: [string[]]): string;
}>;
2020-07-13 08:54:08 +00:00
getFallbackOracle: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
getSourceOfAsset: TypedFunctionDescription<{
encode([_asset]: [string]): string;
}>;
2020-07-13 08:54:08 +00:00
owner: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
2020-07-13 08:54:08 +00:00
renounceOwnership: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-03 10:23:21 +00:00
setAssetSources: TypedFunctionDescription<{
encode([_assets, _sources]: [string[], string[]]): string;
}>;
setFallbackOracle: TypedFunctionDescription<{
encode([_fallbackOracle]: [string]): string;
}>;
transferOwnership: TypedFunctionDescription<{
encode([newOwner]: [string]): string;
}>;
};
events: {
AssetSourceUpdated: TypedEventDescription<{
encodeTopics([asset, source]: [string | null, string | null]): string[];
}>;
FallbackOracleUpdated: TypedEventDescription<{
encodeTopics([fallbackOracle]: [string | null]): string[];
}>;
OwnershipTransferred: TypedEventDescription<{
2020-07-13 08:54:08 +00:00
encodeTopics([previousOwner, newOwner]: [string | null, string | null]): string[];
2020-06-03 10:23:21 +00:00
}>;
};
}
export class ChainlinkProxyPriceProvider extends Contract {
2020-07-13 08:54:08 +00:00
connect(signerOrProvider: Signer | Provider | string): ChainlinkProxyPriceProvider;
2020-06-03 10:23:21 +00:00
attach(addressOrName: string): ChainlinkProxyPriceProvider;
deployed(): Promise<ChainlinkProxyPriceProvider>;
2020-07-13 08:54:08 +00:00
on(event: EventFilter | string, listener: Listener): ChainlinkProxyPriceProvider;
once(event: EventFilter | string, listener: Listener): ChainlinkProxyPriceProvider;
addListener(eventName: EventFilter | string, listener: Listener): ChainlinkProxyPriceProvider;
removeAllListeners(eventName: EventFilter | string): ChainlinkProxyPriceProvider;
removeListener(eventName: any, listener: Listener): ChainlinkProxyPriceProvider;
2020-06-03 10:23:21 +00:00
interface: ChainlinkProxyPriceProviderInterface;
functions: {
getAssetPrice(_asset: string): Promise<BigNumber>;
getAssetsPrices(_assets: string[]): Promise<BigNumber[]>;
getFallbackOracle(): Promise<string>;
getSourceOfAsset(_asset: string): Promise<string>;
owner(): Promise<string>;
2020-07-13 08:54:08 +00:00
renounceOwnership(overrides?: TransactionOverrides): Promise<ContractTransaction>;
2020-06-03 10:23:21 +00:00
setAssetSources(
_assets: string[],
_sources: string[],
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setFallbackOracle(
_fallbackOracle: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
transferOwnership(
newOwner: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
getAssetPrice(_asset: string): Promise<BigNumber>;
getAssetsPrices(_assets: string[]): Promise<BigNumber[]>;
getFallbackOracle(): Promise<string>;
getSourceOfAsset(_asset: string): Promise<string>;
owner(): Promise<string>;
2020-07-13 08:54:08 +00:00
renounceOwnership(overrides?: TransactionOverrides): Promise<ContractTransaction>;
2020-06-03 10:23:21 +00:00
setAssetSources(
_assets: string[],
_sources: string[],
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
setFallbackOracle(
_fallbackOracle: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
transferOwnership(
newOwner: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {
2020-07-13 08:54:08 +00:00
AssetSourceUpdated(asset: string | null, source: string | null): EventFilter;
2020-06-03 10:23:21 +00:00
FallbackOracleUpdated(fallbackOracle: string | null): EventFilter;
2020-07-13 08:54:08 +00:00
OwnershipTransferred(previousOwner: string | null, newOwner: string | null): EventFilter;
2020-06-03 10:23:21 +00:00
};
estimate: {
getAssetPrice(_asset: string): Promise<BigNumber>;
getAssetsPrices(_assets: string[]): Promise<BigNumber>;
getFallbackOracle(): Promise<BigNumber>;
getSourceOfAsset(_asset: string): Promise<BigNumber>;
owner(): Promise<BigNumber>;
renounceOwnership(): Promise<BigNumber>;
setAssetSources(_assets: string[], _sources: string[]): Promise<BigNumber>;
setFallbackOracle(_fallbackOracle: string): Promise<BigNumber>;
transferOwnership(newOwner: string): Promise<BigNumber>;
};
}