-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers"; | ||
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "./common"; | ||
export interface Contract2FactoryInterface extends Interface { | ||
getFunction(nameOrSignature: "create2" | "create2Account"): FunctionFragment; | ||
encodeFunctionData(functionFragment: "create2", values: [BytesLike, BytesLike, BytesLike]): string; | ||
encodeFunctionData(functionFragment: "create2Account", values: [BytesLike, BytesLike, BytesLike, BigNumberish]): string; | ||
decodeFunctionResult(functionFragment: "create2", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "create2Account", data: BytesLike): Result; | ||
} | ||
export interface Contract2Factory extends BaseContract { | ||
connect(runner?: ContractRunner | null): Contract2Factory; | ||
waitForDeployment(): Promise<this>; | ||
interface: Contract2FactoryInterface; | ||
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>; | ||
create2: TypedContractMethod<[ | ||
arg0: BytesLike, | ||
arg1: BytesLike, | ||
arg2: BytesLike | ||
], [ | ||
string | ||
], "payable">; | ||
create2Account: TypedContractMethod<[ | ||
arg0: BytesLike, | ||
arg1: BytesLike, | ||
arg2: BytesLike, | ||
arg3: BigNumberish | ||
], [ | ||
string | ||
], "payable">; | ||
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T; | ||
getFunction(nameOrSignature: "create2"): TypedContractMethod<[ | ||
arg0: BytesLike, | ||
arg1: BytesLike, | ||
arg2: BytesLike | ||
], [ | ||
string | ||
], "payable">; | ||
getFunction(nameOrSignature: "create2Account"): TypedContractMethod<[ | ||
arg0: BytesLike, | ||
arg1: BytesLike, | ||
arg2: BytesLike, | ||
arg3: BigNumberish | ||
], [ | ||
string | ||
], "payable">; | ||
filters: {}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { type ContractRunner } from "ethers"; | ||
import type { Contract2Factory, Contract2FactoryInterface } from "../Contract2Factory"; | ||
export declare class Contract2Factory__factory { | ||
static readonly abi: readonly [{ | ||
readonly inputs: readonly [{ | ||
readonly internalType: "bytes32"; | ||
readonly name: ""; | ||
readonly type: "bytes32"; | ||
}, { | ||
readonly internalType: "bytes32"; | ||
readonly name: ""; | ||
readonly type: "bytes32"; | ||
}, { | ||
readonly internalType: "bytes"; | ||
readonly name: ""; | ||
readonly type: "bytes"; | ||
}]; | ||
readonly name: "create2"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: ""; | ||
readonly type: "address"; | ||
}]; | ||
readonly stateMutability: "payable"; | ||
readonly type: "function"; | ||
}, { | ||
readonly inputs: readonly [{ | ||
readonly internalType: "bytes32"; | ||
readonly name: ""; | ||
readonly type: "bytes32"; | ||
}, { | ||
readonly internalType: "bytes32"; | ||
readonly name: ""; | ||
readonly type: "bytes32"; | ||
}, { | ||
readonly internalType: "bytes"; | ||
readonly name: ""; | ||
readonly type: "bytes"; | ||
}, { | ||
readonly internalType: "enum IContractDeployer.AccountAbstractionVersion"; | ||
readonly name: ""; | ||
readonly type: "uint8"; | ||
}]; | ||
readonly name: "create2Account"; | ||
readonly outputs: readonly [{ | ||
readonly internalType: "address"; | ||
readonly name: ""; | ||
readonly type: "address"; | ||
}]; | ||
readonly stateMutability: "payable"; | ||
readonly type: "function"; | ||
}]; | ||
static createInterface(): Contract2FactoryInterface; | ||
static connect(address: string, runner?: ContractRunner | null): Contract2Factory; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.