UNPKG

@vechain/vebetterdao-contracts

Version:

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

269 lines (245 loc) 7.64 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod, } from "../../common"; export interface IDynamicBaseAllocationPoolInterface extends Interface { getFunction( nameOrSignature: | "canDistributeDBARewards" | "dbaRoundRewardsForApp" | "distributeDBARewards" | "distributionStartRound" | "fundsForRound" | "isDBARewardsDistributed" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "FundsDistributedToApp" | "FundsDistributedToTreasury" ): EventFragment; encodeFunctionData( functionFragment: "canDistributeDBARewards", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "dbaRoundRewardsForApp", values: [BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "distributeDBARewards", values: [BigNumberish, BytesLike[]] ): string; encodeFunctionData( functionFragment: "distributionStartRound", values?: undefined ): string; encodeFunctionData( functionFragment: "fundsForRound", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "isDBARewardsDistributed", values: [BigNumberish] ): string; decodeFunctionResult( functionFragment: "canDistributeDBARewards", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "dbaRoundRewardsForApp", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "distributeDBARewards", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "distributionStartRound", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "fundsForRound", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isDBARewardsDistributed", data: BytesLike ): Result; } export namespace FundsDistributedToAppEvent { export type InputTuple = [ appId: BytesLike, amount: BigNumberish, roundId: BigNumberish ]; export type OutputTuple = [appId: string, amount: bigint, roundId: bigint]; export interface OutputObject { appId: string; amount: bigint; roundId: bigint; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace FundsDistributedToTreasuryEvent { export type InputTuple = [amount: BigNumberish, roundId: BigNumberish]; export type OutputTuple = [amount: bigint, roundId: bigint]; export interface OutputObject { amount: bigint; roundId: 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 IDynamicBaseAllocationPool extends BaseContract { connect(runner?: ContractRunner | null): IDynamicBaseAllocationPool; waitForDeployment(): Promise<this>; interface: IDynamicBaseAllocationPoolInterface; 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>; canDistributeDBARewards: TypedContractMethod< [_roundId: BigNumberish], [boolean], "view" >; dbaRoundRewardsForApp: TypedContractMethod< [_roundId: BigNumberish, _appId: BytesLike], [bigint], "view" >; distributeDBARewards: TypedContractMethod< [_roundId: BigNumberish, _appIds: BytesLike[]], [void], "nonpayable" >; distributionStartRound: TypedContractMethod<[], [bigint], "view">; fundsForRound: TypedContractMethod< [_roundId: BigNumberish], [bigint], "view" >; isDBARewardsDistributed: TypedContractMethod< [_roundId: BigNumberish], [boolean], "view" >; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "canDistributeDBARewards" ): TypedContractMethod<[_roundId: BigNumberish], [boolean], "view">; getFunction( nameOrSignature: "dbaRoundRewardsForApp" ): TypedContractMethod< [_roundId: BigNumberish, _appId: BytesLike], [bigint], "view" >; getFunction( nameOrSignature: "distributeDBARewards" ): TypedContractMethod< [_roundId: BigNumberish, _appIds: BytesLike[]], [void], "nonpayable" >; getFunction( nameOrSignature: "distributionStartRound" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "fundsForRound" ): TypedContractMethod<[_roundId: BigNumberish], [bigint], "view">; getFunction( nameOrSignature: "isDBARewardsDistributed" ): TypedContractMethod<[_roundId: BigNumberish], [boolean], "view">; getEvent( key: "FundsDistributedToApp" ): TypedContractEvent< FundsDistributedToAppEvent.InputTuple, FundsDistributedToAppEvent.OutputTuple, FundsDistributedToAppEvent.OutputObject >; getEvent( key: "FundsDistributedToTreasury" ): TypedContractEvent< FundsDistributedToTreasuryEvent.InputTuple, FundsDistributedToTreasuryEvent.OutputTuple, FundsDistributedToTreasuryEvent.OutputObject >; filters: { "FundsDistributedToApp(bytes32,uint256,uint256)": TypedContractEvent< FundsDistributedToAppEvent.InputTuple, FundsDistributedToAppEvent.OutputTuple, FundsDistributedToAppEvent.OutputObject >; FundsDistributedToApp: TypedContractEvent< FundsDistributedToAppEvent.InputTuple, FundsDistributedToAppEvent.OutputTuple, FundsDistributedToAppEvent.OutputObject >; "FundsDistributedToTreasury(uint256,uint256)": TypedContractEvent< FundsDistributedToTreasuryEvent.InputTuple, FundsDistributedToTreasuryEvent.OutputTuple, FundsDistributedToTreasuryEvent.OutputObject >; FundsDistributedToTreasury: TypedContractEvent< FundsDistributedToTreasuryEvent.InputTuple, FundsDistributedToTreasuryEvent.OutputTuple, FundsDistributedToTreasuryEvent.OutputObject >; }; }