UNPKG

@skalenetwork/fair-manager-types

Version:

TypeScript typings for SKALE Fair Manager smart contracts

250 lines (224 loc) 7.34 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod, } from "../common"; export interface RewardWalletInterface extends Interface { getFunction( nameOrSignature: | "authority" | "flush" | "initialize" | "isConsumingScheduledOp" | "nodes" | "ownerNode" | "setAuthority" | "staking" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: "AuthorityUpdated" | "Initialized" ): EventFragment; encodeFunctionData(functionFragment: "authority", values?: undefined): string; encodeFunctionData(functionFragment: "flush", values?: undefined): string; encodeFunctionData( functionFragment: "initialize", values: [AddressLike, AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "isConsumingScheduledOp", values?: undefined ): string; encodeFunctionData(functionFragment: "nodes", values?: undefined): string; encodeFunctionData(functionFragment: "ownerNode", values?: undefined): string; encodeFunctionData( functionFragment: "setAuthority", values: [AddressLike] ): string; encodeFunctionData(functionFragment: "staking", values?: undefined): string; decodeFunctionResult(functionFragment: "authority", data: BytesLike): Result; decodeFunctionResult(functionFragment: "flush", data: BytesLike): Result; decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; decodeFunctionResult( functionFragment: "isConsumingScheduledOp", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "nodes", data: BytesLike): Result; decodeFunctionResult(functionFragment: "ownerNode", data: BytesLike): Result; decodeFunctionResult( functionFragment: "setAuthority", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "staking", data: BytesLike): Result; } export namespace AuthorityUpdatedEvent { export type InputTuple = [authority: AddressLike]; export type OutputTuple = [authority: string]; export interface OutputObject { authority: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace InitializedEvent { export type InputTuple = [version: BigNumberish]; export type OutputTuple = [version: bigint]; export interface OutputObject { version: 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 RewardWallet extends BaseContract { connect(runner?: ContractRunner | null): RewardWallet; waitForDeployment(): Promise<this>; interface: RewardWalletInterface; 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>; authority: TypedContractMethod<[], [string], "view">; flush: TypedContractMethod<[], [void], "nonpayable">; initialize: TypedContractMethod< [ initialAuthority: AddressLike, staking_: AddressLike, nodes_: AddressLike, ownerNode_: BigNumberish ], [void], "nonpayable" >; isConsumingScheduledOp: TypedContractMethod<[], [string], "view">; nodes: TypedContractMethod<[], [string], "view">; ownerNode: TypedContractMethod<[], [bigint], "view">; setAuthority: TypedContractMethod< [newAuthority: AddressLike], [void], "nonpayable" >; staking: TypedContractMethod<[], [string], "view">; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "authority" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "flush" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "initialize" ): TypedContractMethod< [ initialAuthority: AddressLike, staking_: AddressLike, nodes_: AddressLike, ownerNode_: BigNumberish ], [void], "nonpayable" >; getFunction( nameOrSignature: "isConsumingScheduledOp" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "nodes" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "ownerNode" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "setAuthority" ): TypedContractMethod<[newAuthority: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "staking" ): TypedContractMethod<[], [string], "view">; getEvent( key: "AuthorityUpdated" ): TypedContractEvent< AuthorityUpdatedEvent.InputTuple, AuthorityUpdatedEvent.OutputTuple, AuthorityUpdatedEvent.OutputObject >; getEvent( key: "Initialized" ): TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; filters: { "AuthorityUpdated(address)": TypedContractEvent< AuthorityUpdatedEvent.InputTuple, AuthorityUpdatedEvent.OutputTuple, AuthorityUpdatedEvent.OutputObject >; AuthorityUpdated: TypedContractEvent< AuthorityUpdatedEvent.InputTuple, AuthorityUpdatedEvent.OutputTuple, AuthorityUpdatedEvent.OutputObject >; "Initialized(uint64)": TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; Initialized: TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; }; }