UNPKG

@vechain/vebetterdao-contracts

Version:

Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.

124 lines (112 loc) 3.62 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, } from "../../../common"; export interface FreshnessUtilsInterface extends Interface { getEvent(nameOrSignatureOrTopic: "FreshnessMultiplierApplied"): EventFragment; } export namespace FreshnessMultiplierAppliedEvent { export type InputTuple = [ voter: AddressLike, roundId: BigNumberish, fingerprint: BytesLike, lastChangedRound: BigNumberish, multiplier: BigNumberish ]; export type OutputTuple = [ voter: string, roundId: bigint, fingerprint: string, lastChangedRound: bigint, multiplier: bigint ]; export interface OutputObject { voter: string; roundId: bigint; fingerprint: string; lastChangedRound: bigint; multiplier: bigint; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export interface FreshnessUtils extends BaseContract { connect(runner?: ContractRunner | null): FreshnessUtils; waitForDeployment(): Promise<this>; interface: FreshnessUtilsInterface; 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>; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getEvent( key: "FreshnessMultiplierApplied" ): TypedContractEvent< FreshnessMultiplierAppliedEvent.InputTuple, FreshnessMultiplierAppliedEvent.OutputTuple, FreshnessMultiplierAppliedEvent.OutputObject >; filters: { "FreshnessMultiplierApplied(address,uint256,bytes32,uint256,uint256)": TypedContractEvent< FreshnessMultiplierAppliedEvent.InputTuple, FreshnessMultiplierAppliedEvent.OutputTuple, FreshnessMultiplierAppliedEvent.OutputObject >; FreshnessMultiplierApplied: TypedContractEvent< FreshnessMultiplierAppliedEvent.InputTuple, FreshnessMultiplierAppliedEvent.OutputTuple, FreshnessMultiplierAppliedEvent.OutputObject >; }; }