UNPKG

@thirdweb-dev/contracts-js

Version:
74 lines 3.69 kB
import type { BaseContract, BigNumber, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; import type { Listener, Provider } from "@ethersproject/providers"; import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; export interface ContractMetadataImplInterface extends utils.Interface { functions: { "contractURI()": FunctionFragment; "setContractURI(string)": FunctionFragment; }; getFunction(nameOrSignatureOrTopic: "contractURI" | "setContractURI"): FunctionFragment; encodeFunctionData(functionFragment: "contractURI", values?: undefined): string; encodeFunctionData(functionFragment: "setContractURI", values: [string]): string; decodeFunctionResult(functionFragment: "contractURI", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setContractURI", data: BytesLike): Result; events: { "ContractURIUpdated(string,string)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "ContractURIUpdated"): EventFragment; } export interface ContractURIUpdatedEventObject { prevURI: string; newURI: string; } export type ContractURIUpdatedEvent = TypedEvent<[ string, string ], ContractURIUpdatedEventObject>; export type ContractURIUpdatedEventFilter = TypedEventFilter<ContractURIUpdatedEvent>; export interface ContractMetadataImpl extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise<this>; interface: ContractMetadataImplInterface; queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>; listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>; listeners(eventName?: string): Array<Listener>; removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this; removeAllListeners(eventName?: string): this; off: OnEvent<this>; on: OnEvent<this>; once: OnEvent<this>; removeListener: OnEvent<this>; functions: { contractURI(overrides?: CallOverrides): Promise<[string]>; setContractURI(_uri: string, overrides?: Overrides & { from?: string | Promise<string>; }): Promise<ContractTransaction>; }; contractURI(overrides?: CallOverrides): Promise<string>; setContractURI(_uri: string, overrides?: Overrides & { from?: string | Promise<string>; }): Promise<ContractTransaction>; callStatic: { contractURI(overrides?: CallOverrides): Promise<string>; setContractURI(_uri: string, overrides?: CallOverrides): Promise<void>; }; filters: { "ContractURIUpdated(string,string)"(prevURI?: null, newURI?: null): ContractURIUpdatedEventFilter; ContractURIUpdated(prevURI?: null, newURI?: null): ContractURIUpdatedEventFilter; }; estimateGas: { contractURI(overrides?: CallOverrides): Promise<BigNumber>; setContractURI(_uri: string, overrides?: Overrides & { from?: string | Promise<string>; }): Promise<BigNumber>; }; populateTransaction: { contractURI(overrides?: CallOverrides): Promise<PopulatedTransaction>; setContractURI(_uri: string, overrides?: Overrides & { from?: string | Promise<string>; }): Promise<PopulatedTransaction>; }; } //# sourceMappingURL=ContractMetadataImpl.d.ts.map