import { BaseContract, BigNumber, 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 interface FROSTKeygenInterface extends utils.Interface { contractName: "FROSTKeygen"; functions: { "owner()": FunctionFragment; "renounceOwnership()": FunctionFragment; "transferOwnership(address)": FunctionFragment; "startFROSTKeygen()": FunctionFragment; "endFROSTKeygen()": FunctionFragment; }; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string; encodeFunctionData(functionFragment: "transferOwnership", values: [string]): string; encodeFunctionData(functionFragment: "startFROSTKeygen", values?: undefined): string; encodeFunctionData(functionFragment: "endFROSTKeygen", values?: undefined): string; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result; decodeFunctionResult(functionFragment: "startFROSTKeygen", data: BytesLike): Result; decodeFunctionResult(functionFragment: "endFROSTKeygen", data: BytesLike): Result; events: { "EndedFROSTKeygen()": EventFragment; "OwnershipTransferred(address,address)": EventFragment; "StartedFROSTKeygen()": EventFragment; }; getEvent(nameOrSignatureOrTopic: "EndedFROSTKeygen"): EventFragment; getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; getEvent(nameOrSignatureOrTopic: "StartedFROSTKeygen"): EventFragment; } export declare type EndedFROSTKeygenEvent = TypedEvent<[], {}>; export declare type EndedFROSTKeygenEventFilter = TypedEventFilter; export declare type OwnershipTransferredEvent = TypedEvent<[ string, string ], { previousOwner: string; newOwner: string; }>; export declare type OwnershipTransferredEventFilter = TypedEventFilter; export declare type StartedFROSTKeygenEvent = TypedEvent<[], {}>; export declare type StartedFROSTKeygenEventFilter = TypedEventFilter; export interface FROSTKeygen extends BaseContract { contractName: "FROSTKeygen"; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: FROSTKeygenInterface; queryFilter(event: TypedEventFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>; listeners(eventFilter?: TypedEventFilter): Array>; listeners(eventName?: string): Array; removeAllListeners(eventFilter: TypedEventFilter): this; removeAllListeners(eventName?: string): this; off: OnEvent; on: OnEvent; once: OnEvent; removeListener: OnEvent; functions: { /** * Returns the address of the current owner. */ owner(overrides?: CallOverrides): Promise<[string]>; /** * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. */ renounceOwnership(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. */ transferOwnership(newOwner: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Emits {StartedFROSTKeygen} event */ startFROSTKeygen(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Blocks further calls for starting keygen. */ endFROSTKeygen(overrides?: Overrides & { from?: string | Promise; }): Promise; }; /** * Returns the address of the current owner. */ owner(overrides?: CallOverrides): Promise; /** * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. */ renounceOwnership(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. */ transferOwnership(newOwner: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Emits {StartedFROSTKeygen} event */ startFROSTKeygen(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Blocks further calls for starting keygen. */ endFROSTKeygen(overrides?: Overrides & { from?: string | Promise; }): Promise; callStatic: { /** * Returns the address of the current owner. */ owner(overrides?: CallOverrides): Promise; /** * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. */ renounceOwnership(overrides?: CallOverrides): Promise; /** * Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. */ transferOwnership(newOwner: string, overrides?: CallOverrides): Promise; /** * Emits {StartedFROSTKeygen} event */ startFROSTKeygen(overrides?: CallOverrides): Promise; /** * Blocks further calls for starting keygen. */ endFROSTKeygen(overrides?: CallOverrides): Promise; }; filters: { "EndedFROSTKeygen()"(): EndedFROSTKeygenEventFilter; EndedFROSTKeygen(): EndedFROSTKeygenEventFilter; "OwnershipTransferred(address,address)"(previousOwner?: string | null, newOwner?: string | null): OwnershipTransferredEventFilter; OwnershipTransferred(previousOwner?: string | null, newOwner?: string | null): OwnershipTransferredEventFilter; "StartedFROSTKeygen()"(): StartedFROSTKeygenEventFilter; StartedFROSTKeygen(): StartedFROSTKeygenEventFilter; }; estimateGas: { /** * Returns the address of the current owner. */ owner(overrides?: CallOverrides): Promise; /** * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. */ renounceOwnership(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. */ transferOwnership(newOwner: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Emits {StartedFROSTKeygen} event */ startFROSTKeygen(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Blocks further calls for starting keygen. */ endFROSTKeygen(overrides?: Overrides & { from?: string | Promise; }): Promise; }; populateTransaction: { /** * Returns the address of the current owner. */ owner(overrides?: CallOverrides): Promise; /** * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. */ renounceOwnership(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. */ transferOwnership(newOwner: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Emits {StartedFROSTKeygen} event */ startFROSTKeygen(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Blocks further calls for starting keygen. */ endFROSTKeygen(overrides?: Overrides & { from?: string | Promise; }): Promise; }; }