interface CatalystLens {
    [internal]: any;
    aggregate: TypedContractMethod<[calls: CallStruct[]], [[bigint, string[]] & {
        blockNumber: bigint;
        returnData: string[];
    }], "nonpayable">;
    blockAndAggregate: TypedContractMethod<[calls: CallStruct[]], [[bigint, string, ResultStructOutput[]] & {
        blockHash: string;
        blockNumber: bigint;
        returnData: ResultStructOutput[];
    }], "nonpayable">;
    fallback: null | WrappedFallback;
    fetchAccountBalances: TypedContractMethod<[owner: AddressLike, tokens: AddressLike[]], [AccountBalanceStructOutput], "view">;
    fetchTokenAllowances: TypedContractMethod<[owner: AddressLike, spender: AddressLike, tokens: AddressLike[]], [TokenBalanceStructOutput[]], "view">;
    fetchTokenBalances: TypedContractMethod<[owner: AddressLike, tokens: AddressLike[]], [TokenBalanceStructOutput[]], "view">;
    fetchTokenInformation: TypedContractMethod<[token: AddressLike], [TokenInformationStructOutput], "view">;
    fetchTokenInformations: TypedContractMethod<[tokens: AddressLike[]], [TokenInformationStructOutput[]], "view">;
    filters: {};
    getBlockHash: TypedContractMethod<[blockNumber: BigNumberish], [string], "view">;
    getBlockNumber: TypedContractMethod<[], [bigint], "view">;
    getCurrentBlockCoinbase: TypedContractMethod<[], [string], "view">;
    getCurrentBlockDifficulty: TypedContractMethod<[], [bigint], "view">;
    getCurrentBlockGasLimit: TypedContractMethod<[], [bigint], "view">;
    getCurrentBlockTimestamp: TypedContractMethod<[], [bigint], "view">;
    getEthBalance: TypedContractMethod<[addr: AddressLike], [bigint], "view">;
    getLastBlockHash: TypedContractMethod<[], [string], "view">;
    interface: CatalystLensInterface;
    runner: null | ContractRunner;
    target: string | Addressable;
    tryAggregate: TypedContractMethod<[requireSuccess: boolean, calls: CallStruct[]], [ResultStructOutput[]], "nonpayable">;
    tryBlockAndAggregate: TypedContractMethod<[requireSuccess: boolean, calls: CallStruct[]], [[bigint, string, ResultStructOutput[]] & {
        blockHash: string;
        blockNumber: bigint;
        returnData: ResultStructOutput[];
    }], "nonpayable">;
    addListener(event, listener): Promise<CatalystLens>;
    attach(target): BaseContract;
    connect(runner?): CatalystLens;
    deploymentTransaction(): null | ContractTransactionResponse;
    emit(event, ...args): Promise<boolean>;
    getAddress(): Promise<string>;
    getDeployedCode(): Promise<null | string>;
    getEvent(key): ContractEvent<any[]>;
    getFunction<T>(key): T;
    getFunction(nameOrSignature): TypedContractMethod<[calls: CallStruct[]], [[bigint, string[]] & {
        blockNumber: bigint;
        returnData: string[];
    }], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[calls: CallStruct[]], [[bigint, string, ResultStructOutput[]] & {
        blockHash: string;
        blockNumber: bigint;
        returnData: ResultStructOutput[];
    }], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[owner: AddressLike, tokens: AddressLike[]], [AccountBalanceStructOutput], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[owner: AddressLike, spender: AddressLike, tokens: AddressLike[]], [TokenBalanceStructOutput[]], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[owner: AddressLike, tokens: AddressLike[]], [TokenBalanceStructOutput[]], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[token: AddressLike], [TokenInformationStructOutput], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[tokens: AddressLike[]], [TokenInformationStructOutput[]], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[blockNumber: BigNumberish], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[addr: AddressLike], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[requireSuccess: boolean, calls: CallStruct[]], [ResultStructOutput[]], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[requireSuccess: boolean, calls: CallStruct[]], [[bigint, string, ResultStructOutput[]] & {
        blockHash: string;
        blockNumber: bigint;
        returnData: ResultStructOutput[];
    }], "nonpayable">;
    listenerCount(event?): Promise<number>;
    listeners<TCEvent>(event): Promise<TypedListener<TCEvent>[]>;
    listeners(eventName?): Promise<Listener[]>;
    off(event, listener?): Promise<CatalystLens>;
    on<TCEvent>(event, listener): Promise<CatalystLens>;
    on<TCEvent>(filter, listener): Promise<CatalystLens>;
    once<TCEvent>(event, listener): Promise<CatalystLens>;
    once<TCEvent>(filter, listener): Promise<CatalystLens>;
    queryFilter<TCEvent>(event, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>;
    queryFilter<TCEvent>(filter, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>;
    queryTransaction(hash): Promise<EventLog[]>;
    removeAllListeners<TCEvent>(event?): Promise<CatalystLens>;
    removeListener(event, listener): Promise<CatalystLens>;
    waitForDeployment(): Promise<CatalystLens>;
}

Hierarchy

  • BaseContract
    • CatalystLens

Properties

[internal]: any

@_ignore:

aggregate: TypedContractMethod<[calls: CallStruct[]], [[bigint, string[]] & {
    blockNumber: bigint;
    returnData: string[];
}], "nonpayable">
blockAndAggregate: TypedContractMethod<[calls: CallStruct[]], [[bigint, string, ResultStructOutput[]] & {
    blockHash: string;
    blockNumber: bigint;
    returnData: ResultStructOutput[];
}], "nonpayable">
fallback: null | WrappedFallback

The fallback or receive function if any.

fetchAccountBalances: TypedContractMethod<[owner: AddressLike, tokens: AddressLike[]], [AccountBalanceStructOutput], "view">
fetchTokenAllowances: TypedContractMethod<[owner: AddressLike, spender: AddressLike, tokens: AddressLike[]], [TokenBalanceStructOutput[]], "view">
fetchTokenBalances: TypedContractMethod<[owner: AddressLike, tokens: AddressLike[]], [TokenBalanceStructOutput[]], "view">
fetchTokenInformation: TypedContractMethod<[token: AddressLike], [TokenInformationStructOutput], "view">
fetchTokenInformations: TypedContractMethod<[tokens: AddressLike[]], [TokenInformationStructOutput[]], "view">
filters: {}

Type declaration

    getBlockHash: TypedContractMethod<[blockNumber: BigNumberish], [string], "view">
    getBlockNumber: TypedContractMethod<[], [bigint], "view">
    getCurrentBlockCoinbase: TypedContractMethod<[], [string], "view">
    getCurrentBlockDifficulty: TypedContractMethod<[], [bigint], "view">
    getCurrentBlockGasLimit: TypedContractMethod<[], [bigint], "view">
    getCurrentBlockTimestamp: TypedContractMethod<[], [bigint], "view">
    getEthBalance: TypedContractMethod<[addr: AddressLike], [bigint], "view">
    getLastBlockHash: TypedContractMethod<[], [string], "view">
    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.

    tryAggregate: TypedContractMethod<[requireSuccess: boolean, calls: CallStruct[]], [ResultStructOutput[]], "nonpayable">
    tryBlockAndAggregate: TypedContractMethod<[requireSuccess: boolean, calls: CallStruct[]], [[bigint, string, ResultStructOutput[]] & {
        blockHash: string;
        blockNumber: bigint;
        returnData: ResultStructOutput[];
    }], "nonpayable">

    Methods

    • Alias for [on].

      Parameters

      • event: ContractEventName
      • listener: Listener

      Returns Promise<CatalystLens>

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

      Parameters

      • target: string | Addressable

      Returns BaseContract

    • 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[]>

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

      Parameters

      • Optional event: ContractEventName

      Returns Promise<number>

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

      Parameters

      • event: ContractEventName
      • Optional listener: Listener

      Returns Promise<CatalystLens>

    • @_ignore:

      Parameters

      • hash: string

      Returns Promise<EventLog[]>

    • Alias for [off].

      Parameters

      • event: ContractEventName
      • listener: Listener

      Returns Promise<CatalystLens>