interface EACAggregatorProxy {
    [internal]: any;
    fallback: null | WrappedFallback;
    filters: Record<string, ContractEvent<any[]>>;
    interface: EACAggregatorProxyInterface;
    runner: null | ContractRunner;
    target: string | Addressable;
    addListener(event: ContractEventName, listener: Listener): Promise<EACAggregatorProxy>;
    attach(target: string | Addressable): BaseContract;
    connect(runner: null | ContractRunner): this;
    deploymentTransaction(): null | ContractTransactionResponse;
    emit(event: ContractEventName, ...args: any[]): Promise<boolean>;
    getAddress(): Promise<string>;
    getDeployedCode(): Promise<null | string>;
    getEvent(key: string | EventFragment): ContractEvent<any[]>;
    getFunction<T>(key: string | FunctionFragment): T;
    listenerCount(event?: ContractEventName): Promise<number>;
    listeners(event?: ContractEventName): Promise<Listener[]>;
    off(event: ContractEventName, listener?: Listener): Promise<EACAggregatorProxy>;
    on(event: ContractEventName, listener: Listener): Promise<EACAggregatorProxy>;
    once(event: ContractEventName, listener: Listener): Promise<EACAggregatorProxy>;
    queryFilter(event: ContractEventName, fromBlock?: BlockTag, toBlock?: BlockTag): Promise<(Log | EventLog)[]>;
    queryTransaction(hash: string): Promise<EventLog[]>;
    removeAllListeners(event?: ContractEventName): Promise<EACAggregatorProxy>;
    removeListener(event: ContractEventName, listener: Listener): Promise<EACAggregatorProxy>;
    waitForDeployment(): Promise<EACAggregatorProxy>;
}

Hierarchy

  • BaseContract
    • EACAggregatorProxy

Properties

[internal]: any

@_ignore:

fallback: null | WrappedFallback

The fallback or receive function if any.

filters: Record<string, ContractEvent<any[]>>

All the Events available on this contract.

The contract Interface.

runner: null | ContractRunner

The connected runner. This is generally a [[Provider]] or a [[Signer]], which dictates what operations are supported.

For example, a Contract connected to a [[Provider]] may only execute read-only operations.

target: string | Addressable

The target to connect to.

This can be an address, ENS name or any [[Addressable]], such as another contract. To get the resovled address, use the getAddress method.

Methods

  • Alias for [on].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<EACAggregatorProxy>

  • Return a new Contract instance with the same ABI and runner, but a different %%target%%.

    Parameters

    • target: string | Addressable

    Returns BaseContract

  • Return a new Contract instance with the same target and ABI, but a different %%runner%%.

    Parameters

    • runner: null | ContractRunner

    Returns this

  • Return the transaction used to deploy this contract.

    This is only available if this instance was returned from a [[ContractFactory]].

    Returns null | ContractTransactionResponse

  • Emit an %%event%% calling all listeners with %%args%%.

    Resolves to true if any listeners were called.

    Parameters

    • event: ContractEventName
    • Rest...args: any[]

    Returns Promise<boolean>

  • Return the resolved address of this Contract.

    Returns Promise<string>

  • Return the deployed bytecode or null if no bytecode is found.

    Returns Promise<null | string>

  • Return the event for a given name. This is useful when a contract event name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

    Parameters

    • key: string | EventFragment

    Returns ContractEvent<any[]>

  • Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

    Type Parameters

    • T extends ContractMethod<any[], any, any> = ContractMethod<any[], any, any>

    Parameters

    • key: string | FunctionFragment

    Returns T

  • Resolves to the number of listeners of %%event%% or the total number of listeners if unspecified.

    Parameters

    • Optionalevent: ContractEventName

    Returns Promise<number>

  • Resolves to the listeners subscribed to %%event%% or all listeners if unspecified.

    Parameters

    • Optionalevent: ContractEventName

    Returns Promise<Listener[]>

  • Remove the %%listener%% from the listeners for %%event%% or remove all listeners if unspecified.

    Parameters

    • event: ContractEventName
    • Optionallistener: Listener

    Returns Promise<EACAggregatorProxy>

  • Add an event %%listener%% for the %%event%%.

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<EACAggregatorProxy>

  • Add an event %%listener%% for the %%event%%, but remove the listener after it is fired once.

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<EACAggregatorProxy>

  • Provide historic access to event data for %%event%% in the range %%fromBlock%% (default: 0) to %%toBlock%% (default: "latest") inclusive.

    Parameters

    • event: ContractEventName
    • OptionalfromBlock: BlockTag
    • OptionaltoBlock: BlockTag

    Returns Promise<(Log | EventLog)[]>

  • @_ignore:

    Parameters

    • hash: string

    Returns Promise<EventLog[]>

  • Remove all the listeners for %%event%% or remove all listeners if unspecified.

    Parameters

    • Optionalevent: ContractEventName

    Returns Promise<EACAggregatorProxy>

  • Alias for [off].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<EACAggregatorProxy>

  • Resolve to this Contract once the bytecode has been deployed, or resolve immediately if already deployed.

    Returns Promise<EACAggregatorProxy>