@etherspot/contracts
Version:
Etherspot Solidity contracts
140 lines (120 loc) • 3.67 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
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 type FacetCutStruct = {
facetAddress: string;
action: BigNumberish;
functionSelectors: BytesLike[];
};
export type FacetCutStructOutput = [string, number, string[]] & {
facetAddress: string;
action: number;
functionSelectors: string[];
};
export interface IDiamondCutInterface 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 type DiamondCutEvent = TypedEvent<
[FacetCutStructOutput[], string, string],
{ _diamondCut: FacetCutStructOutput[]; _init: string; _calldata: string }
>;
export type DiamondCutEventFilter = TypedEventFilter<DiamondCutEvent>;
export interface IDiamondCut extends BaseContract {
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
interface: IDiamondCutInterface;
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>;
};
}