@vechain/vebetterdao-contracts
Version:
Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.
111 lines (96 loc) • 3.02 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumberish,
BytesLike,
FunctionFragment,
Result,
Interface,
ContractRunner,
ContractMethod,
Listener,
} from "ethers";
import type {
TypedContractEvent,
TypedDeferredTopicFilter,
TypedEventLog,
TypedListener,
TypedContractMethod,
} from "../../../common";
export interface RoundFinalizationUtilsInterface extends Interface {
getFunction(
nameOrSignature: "isFinalized" | "latestSucceededRoundId"
): FunctionFragment;
encodeFunctionData(
functionFragment: "isFinalized",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "latestSucceededRoundId",
values: [BigNumberish]
): string;
decodeFunctionResult(
functionFragment: "isFinalized",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "latestSucceededRoundId",
data: BytesLike
): Result;
}
export interface RoundFinalizationUtils extends BaseContract {
connect(runner?: ContractRunner | null): RoundFinalizationUtils;
waitForDeployment(): Promise<this>;
interface: RoundFinalizationUtilsInterface;
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>;
isFinalized: TypedContractMethod<[roundId: BigNumberish], [boolean], "view">;
latestSucceededRoundId: TypedContractMethod<
[roundId: BigNumberish],
[bigint],
"view"
>;
getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment
): T;
getFunction(
nameOrSignature: "isFinalized"
): TypedContractMethod<[roundId: BigNumberish], [boolean], "view">;
getFunction(
nameOrSignature: "latestSucceededRoundId"
): TypedContractMethod<[roundId: BigNumberish], [bigint], "view">;
filters: {};
}