UNPKG

@descent-protocol/sdk

Version:

A Typescript library for interacting with the Descent Protocol

116 lines (98 loc) 3.17 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod, } from "./common"; export declare namespace MultiStaticcall { export type StaticcallStruct = { target: AddressLike; callData: BytesLike }; export type StaticcallStructOutput = [target: string, callData: string] & { target: string; callData: string; }; export type ReturnDatumStruct = { returnDatum: BytesLike; success: boolean }; export type ReturnDatumStructOutput = [ returnDatum: string, success: boolean ] & { returnDatum: string; success: boolean }; } export interface MultiStaticcallInterface extends Interface { getFunction(nameOrSignature: "multiStaticcall"): FunctionFragment; encodeFunctionData( functionFragment: "multiStaticcall", values: [MultiStaticcall.StaticcallStruct[]] ): string; decodeFunctionResult( functionFragment: "multiStaticcall", data: BytesLike ): Result; } export interface MultiStaticcall extends BaseContract { connect(runner?: ContractRunner | null): MultiStaticcall; waitForDeployment(): Promise<this>; interface: MultiStaticcallInterface; queryFilter<TCEvent extends TypedContractEvent>( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise<Array<TypedEventLog<TCEvent>>>; queryFilter<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise<Array<TypedEventLog<TCEvent>>>; on<TCEvent extends TypedContractEvent>( event: TCEvent, listener: TypedListener<TCEvent> ): Promise<this>; on<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent> ): Promise<this>; once<TCEvent extends TypedContractEvent>( event: TCEvent, listener: TypedListener<TCEvent> ): Promise<this>; once<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent> ): Promise<this>; listeners<TCEvent extends TypedContractEvent>( event: TCEvent ): Promise<Array<TypedListener<TCEvent>>>; listeners(eventName?: string): Promise<Array<Listener>>; removeAllListeners<TCEvent extends TypedContractEvent>( event?: TCEvent ): Promise<this>; multiStaticcall: TypedContractMethod< [staticcalls: MultiStaticcall.StaticcallStruct[]], [MultiStaticcall.ReturnDatumStructOutput[]], "view" >; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "multiStaticcall" ): TypedContractMethod< [staticcalls: MultiStaticcall.StaticcallStruct[]], [MultiStaticcall.ReturnDatumStructOutput[]], "view" >; filters: {}; }