import { BigNumberish, Overrides } from "ethers"; import { HandlerOptions } from "@sentio/sdk"; import { BindOptions, BaseProcessor, BaseProcessorTemplate, BoundContractView, ContractContext, ContractView, EthChainId, TypedCallTrace, EthContext, EthFetchConfig, PreprocessResult } from "@sentio/sdk/eth"; import { EthCallParam, EthCallContext, PreparedData } from "@sentio/protos"; import { EACAggregatorProxy, AnswerUpdatedEvent, AnswerUpdatedEventFilter, NewRoundEvent, NewRoundEventFilter, OwnershipTransferRequestedEvent, OwnershipTransferRequestedEventFilter, OwnershipTransferredEvent, OwnershipTransferredEventFilter } from "./EACAggregatorProxy.js"; export interface AcceptOwnershipCallObject { } export type AcceptOwnershipCallTrace = TypedCallTrace<[ ], AcceptOwnershipCallObject>; export interface AccessControllerCallObject { } export type AccessControllerCallTrace = TypedCallTrace<[ ], AccessControllerCallObject>; export interface AggregatorCallObject { } export type AggregatorCallTrace = TypedCallTrace<[], AggregatorCallObject>; export interface ConfirmAggregatorCallObject { _aggregator: string; } export type ConfirmAggregatorCallTrace = TypedCallTrace<[ string ], ConfirmAggregatorCallObject>; export interface DecimalsCallObject { } export type DecimalsCallTrace = TypedCallTrace<[], DecimalsCallObject>; export interface DescriptionCallObject { } export type DescriptionCallTrace = TypedCallTrace<[], DescriptionCallObject>; export interface GetAnswerCallObject { _roundId: bigint; } export type GetAnswerCallTrace = TypedCallTrace<[bigint], GetAnswerCallObject>; export interface GetRoundDataCallObject { _roundId: bigint; } export type GetRoundDataCallTrace = TypedCallTrace<[ bigint ], GetRoundDataCallObject>; export interface GetTimestampCallObject { _roundId: bigint; } export type GetTimestampCallTrace = TypedCallTrace<[ bigint ], GetTimestampCallObject>; export interface LatestAnswerCallObject { } export type LatestAnswerCallTrace = TypedCallTrace<[], LatestAnswerCallObject>; export interface LatestRoundCallObject { } export type LatestRoundCallTrace = TypedCallTrace<[], LatestRoundCallObject>; export interface LatestRoundDataCallObject { } export type LatestRoundDataCallTrace = TypedCallTrace<[ ], LatestRoundDataCallObject>; export interface LatestTimestampCallObject { } export type LatestTimestampCallTrace = TypedCallTrace<[ ], LatestTimestampCallObject>; export interface OwnerCallObject { } export type OwnerCallTrace = TypedCallTrace<[], OwnerCallObject>; export interface PhaseAggregatorsCallObject { } export type PhaseAggregatorsCallTrace = TypedCallTrace<[ bigint ], PhaseAggregatorsCallObject>; export interface PhaseIdCallObject { } export type PhaseIdCallTrace = TypedCallTrace<[], PhaseIdCallObject>; export interface ProposeAggregatorCallObject { _aggregator: string; } export type ProposeAggregatorCallTrace = TypedCallTrace<[ string ], ProposeAggregatorCallObject>; export interface ProposedAggregatorCallObject { } export type ProposedAggregatorCallTrace = TypedCallTrace<[ ], ProposedAggregatorCallObject>; export interface ProposedGetRoundDataCallObject { _roundId: bigint; } export type ProposedGetRoundDataCallTrace = TypedCallTrace<[ bigint ], ProposedGetRoundDataCallObject>; export interface ProposedLatestRoundDataCallObject { } export type ProposedLatestRoundDataCallTrace = TypedCallTrace<[ ], ProposedLatestRoundDataCallObject>; export interface SetControllerCallObject { _accessController: string; } export type SetControllerCallTrace = TypedCallTrace<[ string ], SetControllerCallObject>; export interface TransferOwnershipCallObject { _to: string; } export type TransferOwnershipCallTrace = TypedCallTrace<[ string ], TransferOwnershipCallObject>; export interface VersionCallObject { } export type VersionCallTrace = TypedCallTrace<[], VersionCallObject>; export declare class EACAggregatorProxyContractView extends ContractView { constructor(contract: EACAggregatorProxy); accessController(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; aggregator(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; decimals(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; description(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; getAnswer(_roundId: BigNumberish, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; getRoundData(_roundId: BigNumberish, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise<[ bigint, bigint, bigint, bigint, bigint ] & { roundId: bigint; answer: bigint; startedAt: bigint; updatedAt: bigint; answeredInRound: bigint; }>; getTimestamp(_roundId: BigNumberish, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; latestAnswer(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; latestRound(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; latestRoundData(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise<[ bigint, bigint, bigint, bigint, bigint ] & { roundId: bigint; answer: bigint; startedAt: bigint; updatedAt: bigint; answeredInRound: bigint; }>; latestTimestamp(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; owner(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; phaseAggregators(arg0: BigNumberish, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; phaseId(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; proposedAggregator(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; proposedGetRoundData(_roundId: BigNumberish, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise<[ bigint, bigint, bigint, bigint, bigint ] & { roundId: bigint; answer: bigint; startedAt: bigint; updatedAt: bigint; answeredInRound: bigint; }>; proposedLatestRoundData(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise<[ bigint, bigint, bigint, bigint, bigint ] & { roundId: bigint; answer: bigint; startedAt: bigint; updatedAt: bigint; answeredInRound: bigint; }>; version(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; callStatic: { contract: EACAggregatorProxy; acceptOwnership(overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; confirmAggregator(_aggregator: string, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; proposeAggregator(_aggregator: string, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; setController(_accessController: string, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; transferOwnership(_to: string, overrides?: Overrides, preparedData?: PreparedData, ethCallContext?: EthCallContext): Promise; }; encodeCall: { acceptOwnership(callContext: EthCallContext): EthCallParam; accessController(callContext: EthCallContext): EthCallParam; aggregator(callContext: EthCallContext): EthCallParam; confirmAggregator(_aggregator: string, callContext: EthCallContext): EthCallParam; decimals(callContext: EthCallContext): EthCallParam; description(callContext: EthCallContext): EthCallParam; getAnswer(_roundId: BigNumberish, callContext: EthCallContext): EthCallParam; getRoundData(_roundId: BigNumberish, callContext: EthCallContext): EthCallParam; getTimestamp(_roundId: BigNumberish, callContext: EthCallContext): EthCallParam; latestAnswer(callContext: EthCallContext): EthCallParam; latestRound(callContext: EthCallContext): EthCallParam; latestRoundData(callContext: EthCallContext): EthCallParam; latestTimestamp(callContext: EthCallContext): EthCallParam; owner(callContext: EthCallContext): EthCallParam; phaseAggregators(arg0: BigNumberish, callContext: EthCallContext): EthCallParam; phaseId(callContext: EthCallContext): EthCallParam; proposeAggregator(_aggregator: string, callContext: EthCallContext): EthCallParam; proposedAggregator(callContext: EthCallContext): EthCallParam; proposedGetRoundData(_roundId: BigNumberish, callContext: EthCallContext): EthCallParam; proposedLatestRoundData(callContext: EthCallContext): EthCallParam; setController(_accessController: string, callContext: EthCallContext): EthCallParam; transferOwnership(_to: string, callContext: EthCallContext): EthCallParam; version(callContext: EthCallContext): EthCallParam; }; } export declare class EACAggregatorProxyBoundContractView extends BoundContractView { accessController(overrides?: Overrides): Promise; aggregator(overrides?: Overrides): Promise; decimals(overrides?: Overrides): Promise; description(overrides?: Overrides): Promise; getAnswer(_roundId: BigNumberish, overrides?: Overrides): Promise; getRoundData(_roundId: BigNumberish, overrides?: Overrides): Promise<[ bigint, bigint, bigint, bigint, bigint ] & { roundId: bigint; answer: bigint; startedAt: bigint; updatedAt: bigint; answeredInRound: bigint; }>; getTimestamp(_roundId: BigNumberish, overrides?: Overrides): Promise; latestAnswer(overrides?: Overrides): Promise; latestRound(overrides?: Overrides): Promise; latestRoundData(overrides?: Overrides): Promise<[ bigint, bigint, bigint, bigint, bigint ] & { roundId: bigint; answer: bigint; startedAt: bigint; updatedAt: bigint; answeredInRound: bigint; }>; latestTimestamp(overrides?: Overrides): Promise; owner(overrides?: Overrides): Promise; phaseAggregators(arg0: BigNumberish, overrides?: Overrides): Promise; phaseId(overrides?: Overrides): Promise; proposedAggregator(overrides?: Overrides): Promise; proposedGetRoundData(_roundId: BigNumberish, overrides?: Overrides): Promise<[ bigint, bigint, bigint, bigint, bigint ] & { roundId: bigint; answer: bigint; startedAt: bigint; updatedAt: bigint; answeredInRound: bigint; }>; proposedLatestRoundData(overrides?: Overrides): Promise<[ bigint, bigint, bigint, bigint, bigint ] & { roundId: bigint; answer: bigint; startedAt: bigint; updatedAt: bigint; answeredInRound: bigint; }>; version(overrides?: Overrides): Promise; callStatic: { view: EACAggregatorProxyContractView; context: EthContext; acceptOwnership(overrides?: Overrides): Promise; confirmAggregator(_aggregator: string, overrides?: Overrides): Promise; proposeAggregator(_aggregator: string, overrides?: Overrides): Promise; setController(_accessController: string, overrides?: Overrides): Promise; transferOwnership(_to: string, overrides?: Overrides): Promise; }; encodeCall: { view: EACAggregatorProxyContractView; context: EthContext; acceptOwnership(overrides?: Overrides): EthCallParam; accessController(overrides?: Overrides): EthCallParam; aggregator(overrides?: Overrides): EthCallParam; confirmAggregator(_aggregator: string, overrides?: Overrides): EthCallParam; decimals(overrides?: Overrides): EthCallParam; description(overrides?: Overrides): EthCallParam; getAnswer(_roundId: BigNumberish, overrides?: Overrides): EthCallParam; getRoundData(_roundId: BigNumberish, overrides?: Overrides): EthCallParam; getTimestamp(_roundId: BigNumberish, overrides?: Overrides): EthCallParam; latestAnswer(overrides?: Overrides): EthCallParam; latestRound(overrides?: Overrides): EthCallParam; latestRoundData(overrides?: Overrides): EthCallParam; latestTimestamp(overrides?: Overrides): EthCallParam; owner(overrides?: Overrides): EthCallParam; phaseAggregators(arg0: BigNumberish, overrides?: Overrides): EthCallParam; phaseId(overrides?: Overrides): EthCallParam; proposeAggregator(_aggregator: string, overrides?: Overrides): EthCallParam; proposedAggregator(overrides?: Overrides): EthCallParam; proposedGetRoundData(_roundId: BigNumberish, overrides?: Overrides): EthCallParam; proposedLatestRoundData(overrides?: Overrides): EthCallParam; setController(_accessController: string, overrides?: Overrides): EthCallParam; transferOwnership(_to: string, overrides?: Overrides): EthCallParam; version(overrides?: Overrides): EthCallParam; }; } export type EACAggregatorProxyContext = ContractContext; export declare class EACAggregatorProxyProcessor extends BaseProcessor { onEventAnswerUpdated(handler: (event: AnswerUpdatedEvent, ctx: EACAggregatorProxyContext) => void, filter?: AnswerUpdatedEventFilter | AnswerUpdatedEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: AnswerUpdatedEvent, ctx: EACAggregatorProxyContext, preprocessStore: { [k: string]: any; }) => Promise): this; onEventNewRound(handler: (event: NewRoundEvent, ctx: EACAggregatorProxyContext) => void, filter?: NewRoundEventFilter | NewRoundEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: NewRoundEvent, ctx: EACAggregatorProxyContext, preprocessStore: { [k: string]: any; }) => Promise): this; onEventOwnershipTransferRequested(handler: (event: OwnershipTransferRequestedEvent, ctx: EACAggregatorProxyContext) => void, filter?: OwnershipTransferRequestedEventFilter | OwnershipTransferRequestedEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: OwnershipTransferRequestedEvent, ctx: EACAggregatorProxyContext, preprocessStore: { [k: string]: any; }) => Promise): this; onEventOwnershipTransferred(handler: (event: OwnershipTransferredEvent, ctx: EACAggregatorProxyContext) => void, filter?: OwnershipTransferredEventFilter | OwnershipTransferredEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: OwnershipTransferredEvent, ctx: EACAggregatorProxyContext, preprocessStore: { [k: string]: any; }) => Promise): this; onCallAcceptOwnership(handler: (call: AcceptOwnershipCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: AcceptOwnershipCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallAccessController(handler: (call: AccessControllerCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: AccessControllerCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallAggregator(handler: (call: AggregatorCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: AggregatorCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallConfirmAggregator(handler: (call: ConfirmAggregatorCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: ConfirmAggregatorCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallDecimals(handler: (call: DecimalsCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: DecimalsCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallDescription(handler: (call: DescriptionCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: DescriptionCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallGetAnswer(handler: (call: GetAnswerCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: GetAnswerCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallGetRoundData(handler: (call: GetRoundDataCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: GetRoundDataCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallGetTimestamp(handler: (call: GetTimestampCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: GetTimestampCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallLatestAnswer(handler: (call: LatestAnswerCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: LatestAnswerCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallLatestRound(handler: (call: LatestRoundCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: LatestRoundCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallLatestRoundData(handler: (call: LatestRoundDataCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: LatestRoundDataCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallLatestTimestamp(handler: (call: LatestTimestampCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: LatestTimestampCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallOwner(handler: (call: OwnerCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: OwnerCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallPhaseAggregators(handler: (call: PhaseAggregatorsCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: PhaseAggregatorsCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallPhaseId(handler: (call: PhaseIdCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: PhaseIdCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallProposeAggregator(handler: (call: ProposeAggregatorCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: ProposeAggregatorCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallProposedAggregator(handler: (call: ProposedAggregatorCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: ProposedAggregatorCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallProposedGetRoundData(handler: (call: ProposedGetRoundDataCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: ProposedGetRoundDataCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallProposedLatestRoundData(handler: (call: ProposedLatestRoundDataCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: ProposedLatestRoundDataCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallSetController(handler: (call: SetControllerCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: SetControllerCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallTransferOwnership(handler: (call: TransferOwnershipCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: TransferOwnershipCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; onCallVersion(handler: (call: VersionCallTrace, ctx: EACAggregatorProxyContext) => void, handlerOptions?: HandlerOptions, preprocessHandler?: (call: VersionCallTrace, ctx: EACAggregatorProxyContext) => Promise): this; static filters: { AnswerUpdated(current?: BigNumberish | null, roundId?: BigNumberish | null, updatedAt?: null): AnswerUpdatedEventFilter; NewRound(roundId?: BigNumberish | null, startedBy?: string | null, startedAt?: null): NewRoundEventFilter; OwnershipTransferRequested(from?: string | null, to?: string | null): OwnershipTransferRequestedEventFilter; OwnershipTransferred(from?: string | null, to?: string | null): OwnershipTransferredEventFilter; }; protected CreateBoundContractView(): EACAggregatorProxyBoundContractView; static bind(options: BindOptions): EACAggregatorProxyProcessor; } export declare class EACAggregatorProxyProcessorTemplate extends BaseProcessorTemplate { bindInternal(options: BindOptions): EACAggregatorProxyProcessor; onEventAnswerUpdated(handler: (event: AnswerUpdatedEvent, ctx: EACAggregatorProxyContext) => void, filter?: AnswerUpdatedEventFilter | AnswerUpdatedEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: AnswerUpdatedEvent, ctx: EACAggregatorProxyContext, preprocessStore: { [k: string]: any; }) => Promise): this; onEventNewRound(handler: (event: NewRoundEvent, ctx: EACAggregatorProxyContext) => void, filter?: NewRoundEventFilter | NewRoundEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: NewRoundEvent, ctx: EACAggregatorProxyContext, preprocessStore: { [k: string]: any; }) => Promise): this; onEventOwnershipTransferRequested(handler: (event: OwnershipTransferRequestedEvent, ctx: EACAggregatorProxyContext) => void, filter?: OwnershipTransferRequestedEventFilter | OwnershipTransferRequestedEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: OwnershipTransferRequestedEvent, ctx: EACAggregatorProxyContext, preprocessStore: { [k: string]: any; }) => Promise): this; onEventOwnershipTransferred(handler: (event: OwnershipTransferredEvent, ctx: EACAggregatorProxyContext) => void, filter?: OwnershipTransferredEventFilter | OwnershipTransferredEventFilter[], handlerOptions?: HandlerOptions, preprocessHandler?: (event: OwnershipTransferredEvent, ctx: EACAggregatorProxyContext, preprocessStore: { [k: string]: any; }) => Promise): this; } export declare function getEACAggregatorProxyContract(chainId: EthChainId, address: string): EACAggregatorProxyContractView; export declare function getEACAggregatorProxyContractOnContext(context: EthContext, address: string): EACAggregatorProxyBoundContractView; //# sourceMappingURL=eacaggregatorproxy-processor.d.ts.map