2020-06-08 12:03:40 +00:00
|
|
|
/* Generated by ts-generator ver. 0.0.8 */
|
|
|
|
/* tslint:disable */
|
|
|
|
|
2020-08-07 17:29:13 +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-08 12:03:40 +00:00
|
|
|
|
|
|
|
interface MockAggregatorInterface extends Interface {
|
|
|
|
functions: {
|
2020-08-07 17:29:13 +00:00
|
|
|
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
|
2020-06-08 12:03:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
events: {
|
|
|
|
AnswerUpdated: TypedEventDescription<{
|
|
|
|
encodeTopics([current, roundId, timestamp]: [
|
|
|
|
BigNumberish | null,
|
|
|
|
BigNumberish | null,
|
|
|
|
null
|
|
|
|
]): string[];
|
|
|
|
}>;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export class MockAggregator extends Contract {
|
|
|
|
connect(signerOrProvider: Signer | Provider | string): MockAggregator;
|
|
|
|
attach(addressOrName: string): MockAggregator;
|
|
|
|
deployed(): Promise<MockAggregator>;
|
|
|
|
|
|
|
|
on(event: EventFilter | string, listener: Listener): MockAggregator;
|
|
|
|
once(event: EventFilter | string, listener: Listener): MockAggregator;
|
2020-08-07 17:29:13 +00:00
|
|
|
addListener(
|
|
|
|
eventName: EventFilter | string,
|
|
|
|
listener: Listener
|
|
|
|
): MockAggregator;
|
2020-06-08 12:03:40 +00:00
|
|
|
removeAllListeners(eventName: EventFilter | string): MockAggregator;
|
|
|
|
removeListener(eventName: any, listener: Listener): MockAggregator;
|
|
|
|
|
|
|
|
interface: MockAggregatorInterface;
|
|
|
|
|
|
|
|
functions: {
|
|
|
|
latestAnswer(): Promise<BigNumber>;
|
|
|
|
};
|
|
|
|
|
|
|
|
latestAnswer(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
filters: {
|
|
|
|
AnswerUpdated(
|
|
|
|
current: BigNumberish | null,
|
|
|
|
roundId: BigNumberish | null,
|
|
|
|
timestamp: null
|
|
|
|
): EventFilter;
|
|
|
|
};
|
|
|
|
|
|
|
|
estimate: {
|
|
|
|
latestAnswer(): Promise<BigNumber>;
|
|
|
|
};
|
|
|
|
}
|