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 PriceOracleInterface extends Interface {
|
|
|
|
functions: {
|
|
|
|
getAssetPrice: TypedFunctionDescription<{
|
|
|
|
encode([_asset]: [string]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
getEthUsdPrice: TypedFunctionDescription<{encode([]: []): string}>;
|
2020-06-03 10:23:21 +00:00
|
|
|
|
|
|
|
setAssetPrice: TypedFunctionDescription<{
|
|
|
|
encode([_asset, _price]: [string, BigNumberish]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
setEthUsdPrice: TypedFunctionDescription<{
|
|
|
|
encode([_price]: [BigNumberish]): string;
|
|
|
|
}>;
|
|
|
|
};
|
|
|
|
|
|
|
|
events: {
|
|
|
|
AssetPriceUpdated: TypedEventDescription<{
|
|
|
|
encodeTopics([_asset, _price, timestamp]: [null, null, null]): string[];
|
|
|
|
}>;
|
|
|
|
|
|
|
|
EthPriceUpdated: TypedEventDescription<{
|
|
|
|
encodeTopics([_price, timestamp]: [null, null]): string[];
|
|
|
|
}>;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export class PriceOracle extends Contract {
|
|
|
|
connect(signerOrProvider: Signer | Provider | string): PriceOracle;
|
|
|
|
attach(addressOrName: string): PriceOracle;
|
|
|
|
deployed(): Promise<PriceOracle>;
|
|
|
|
|
|
|
|
on(event: EventFilter | string, listener: Listener): PriceOracle;
|
|
|
|
once(event: EventFilter | string, listener: Listener): PriceOracle;
|
|
|
|
addListener(eventName: EventFilter | string, listener: Listener): PriceOracle;
|
|
|
|
removeAllListeners(eventName: EventFilter | string): PriceOracle;
|
|
|
|
removeListener(eventName: any, listener: Listener): PriceOracle;
|
|
|
|
|
|
|
|
interface: PriceOracleInterface;
|
|
|
|
|
|
|
|
functions: {
|
|
|
|
getAssetPrice(_asset: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
getEthUsdPrice(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
setAssetPrice(
|
|
|
|
_asset: string,
|
|
|
|
_price: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
setEthUsdPrice(
|
|
|
|
_price: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
};
|
|
|
|
|
|
|
|
getAssetPrice(_asset: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
getEthUsdPrice(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
setAssetPrice(
|
|
|
|
_asset: string,
|
|
|
|
_price: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
setEthUsdPrice(
|
|
|
|
_price: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
filters: {
|
|
|
|
AssetPriceUpdated(_asset: null, _price: null, timestamp: null): EventFilter;
|
|
|
|
|
|
|
|
EthPriceUpdated(_price: null, timestamp: null): EventFilter;
|
|
|
|
};
|
|
|
|
|
|
|
|
estimate: {
|
|
|
|
getAssetPrice(_asset: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
getEthUsdPrice(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
setAssetPrice(_asset: string, _price: BigNumberish): Promise<BigNumber>;
|
|
|
|
|
|
|
|
setEthUsdPrice(_price: BigNumberish): Promise<BigNumber>;
|
|
|
|
};
|
|
|
|
}
|