UNPKG

@etherspot/contracts

Version:

Etherspot Solidity contracts

76 lines (75 loc) 3.56 kB
import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; import { Listener, Provider } from "@ethersproject/providers"; import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; export declare type FacetCutStruct = { facetAddress: string; action: BigNumberish; functionSelectors: BytesLike[]; }; export declare type FacetCutStructOutput = [string, number, string[]] & { facetAddress: string; action: number; functionSelectors: string[]; }; export interface DiamondCutFacetInterface extends utils.Interface { functions: { "diamondCut((address,uint8,bytes4[])[],address,bytes)": FunctionFragment; }; encodeFunctionData(functionFragment: "diamondCut", values: [FacetCutStruct[], string, BytesLike]): string; decodeFunctionResult(functionFragment: "diamondCut", data: BytesLike): Result; events: { "DiamondCut(tuple[],address,bytes)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "DiamondCut"): EventFragment; } export declare type DiamondCutEvent = TypedEvent<[ FacetCutStructOutput[], string, string ], { _diamondCut: FacetCutStructOutput[]; _init: string; _calldata: string; }>; export declare type DiamondCutEventFilter = TypedEventFilter<DiamondCutEvent>; export interface DiamondCutFacet extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise<this>; interface: DiamondCutFacetInterface; 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: { diamondCut(_diamondCut: FacetCutStruct[], _init: string, _calldata: BytesLike, overrides?: Overrides & { from?: string | Promise<string>; }): Promise<ContractTransaction>; }; diamondCut(_diamondCut: FacetCutStruct[], _init: string, _calldata: BytesLike, overrides?: Overrides & { from?: string | Promise<string>; }): Promise<ContractTransaction>; callStatic: { diamondCut(_diamondCut: FacetCutStruct[], _init: string, _calldata: BytesLike, overrides?: CallOverrides): Promise<void>; }; filters: { "DiamondCut(tuple[],address,bytes)"(_diamondCut?: null, _init?: null, _calldata?: null): DiamondCutEventFilter; DiamondCut(_diamondCut?: null, _init?: null, _calldata?: null): DiamondCutEventFilter; }; estimateGas: { diamondCut(_diamondCut: FacetCutStruct[], _init: string, _calldata: BytesLike, overrides?: Overrides & { from?: string | Promise<string>; }): Promise<BigNumber>; }; populateTransaction: { diamondCut(_diamondCut: FacetCutStruct[], _init: string, _calldata: BytesLike, overrides?: Overrides & { from?: string | Promise<string>; }): Promise<PopulatedTransaction>; }; }