@skalenetwork/fair-manager-types
Version:
TypeScript typings for SKALE Fair Manager smart contracts
608 lines (560 loc) • 18.5 kB
text/typescript
/* 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 StatusInterface extends Interface {
getFunction(
nameOrSignature:
| "alive"
| "authority"
| "committee"
| "getWhitelistedNodes"
| "heartbeatInterval"
| "initialize"
| "isConsumingScheduledOp"
| "isHealthy"
| "isWhitelisted"
| "lastHeartbeatTimestamp"
| "nodeRemoved"
| "nodes"
| "removeNodeFromWhitelist"
| "setAuthority"
| "setHeartbeatInterval"
| "whitelistNode"
): FunctionFragment;
getEvent(
nameOrSignatureOrTopic:
| "AuthorityUpdated"
| "HeartbeatIntervalChanged"
| "HeartbeatIntervalUpdated"
| "HeartbeatReceived"
| "HeartbeatSignal"
| "Initialized"
| "NodeDataRemoved"
| "NodeRemovedFromWhitelist"
| "NodeWhitelisted"
): EventFragment;
encodeFunctionData(functionFragment: "alive", values?: undefined): string;
encodeFunctionData(functionFragment: "authority", values?: undefined): string;
encodeFunctionData(functionFragment: "committee", values?: undefined): string;
encodeFunctionData(
functionFragment: "getWhitelistedNodes",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "heartbeatInterval",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "initialize",
values: [AddressLike, AddressLike, AddressLike]
): string;
encodeFunctionData(
functionFragment: "isConsumingScheduledOp",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "isHealthy",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "isWhitelisted",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "lastHeartbeatTimestamp",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "nodeRemoved",
values: [BigNumberish]
): string;
encodeFunctionData(functionFragment: "nodes", values?: undefined): string;
encodeFunctionData(
functionFragment: "removeNodeFromWhitelist",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "setAuthority",
values: [AddressLike]
): string;
encodeFunctionData(
functionFragment: "setHeartbeatInterval",
values: [BigNumberish]
): string;
encodeFunctionData(
functionFragment: "whitelistNode",
values: [BigNumberish]
): string;
decodeFunctionResult(functionFragment: "alive", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "authority", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "committee", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "getWhitelistedNodes",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "heartbeatInterval",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "isConsumingScheduledOp",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "isHealthy", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "isWhitelisted",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "lastHeartbeatTimestamp",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "nodeRemoved",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "nodes", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "removeNodeFromWhitelist",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setAuthority",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "setHeartbeatInterval",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "whitelistNode",
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 HeartbeatIntervalChangedEvent {
export type InputTuple = [interval: BigNumberish];
export type OutputTuple = [interval: bigint];
export interface OutputObject {
interval: 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 HeartbeatIntervalUpdatedEvent {
export type InputTuple = [
oldInterval: BigNumberish,
newInterval: BigNumberish
];
export type OutputTuple = [oldInterval: bigint, newInterval: bigint];
export interface OutputObject {
oldInterval: bigint;
newInterval: 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 HeartbeatReceivedEvent {
export type InputTuple = [nodeId: BigNumberish, timestamp: BigNumberish];
export type OutputTuple = [nodeId: bigint, timestamp: bigint];
export interface OutputObject {
nodeId: bigint;
timestamp: 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 HeartbeatSignalEvent {
export type InputTuple = [nodeId: BigNumberish, timestamp: BigNumberish];
export type OutputTuple = [nodeId: bigint, timestamp: bigint];
export interface OutputObject {
nodeId: bigint;
timestamp: 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 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 namespace NodeDataRemovedEvent {
export type InputTuple = [nodeId: BigNumberish];
export type OutputTuple = [nodeId: bigint];
export interface OutputObject {
nodeId: 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 NodeRemovedFromWhitelistEvent {
export type InputTuple = [nodeId: BigNumberish];
export type OutputTuple = [nodeId: bigint];
export interface OutputObject {
nodeId: 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 NodeWhitelistedEvent {
export type InputTuple = [nodeId: BigNumberish];
export type OutputTuple = [nodeId: bigint];
export interface OutputObject {
nodeId: 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 Status extends BaseContract {
connect(runner?: ContractRunner | null): Status;
waitForDeployment(): Promise<this>;
interface: StatusInterface;
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>;
alive: TypedContractMethod<[], [void], "nonpayable">;
authority: TypedContractMethod<[], [string], "view">;
committee: TypedContractMethod<[], [string], "view">;
getWhitelistedNodes: TypedContractMethod<[], [bigint[]], "view">;
heartbeatInterval: TypedContractMethod<[], [bigint], "view">;
initialize: TypedContractMethod<
[
initialAuthority: AddressLike,
nodesAddress: AddressLike,
committeeAddress: AddressLike
],
[void],
"nonpayable"
>;
isConsumingScheduledOp: TypedContractMethod<[], [string], "view">;
isHealthy: TypedContractMethod<[nodeId: BigNumberish], [boolean], "view">;
isWhitelisted: TypedContractMethod<[nodeId: BigNumberish], [boolean], "view">;
lastHeartbeatTimestamp: TypedContractMethod<
[id: BigNumberish],
[bigint],
"view"
>;
nodeRemoved: TypedContractMethod<
[nodeId: BigNumberish],
[void],
"nonpayable"
>;
nodes: TypedContractMethod<[], [string], "view">;
removeNodeFromWhitelist: TypedContractMethod<
[nodeId: BigNumberish],
[void],
"nonpayable"
>;
setAuthority: TypedContractMethod<
[newAuthority: AddressLike],
[void],
"nonpayable"
>;
setHeartbeatInterval: TypedContractMethod<
[interval: BigNumberish],
[void],
"nonpayable"
>;
whitelistNode: TypedContractMethod<
[nodeId: BigNumberish],
[void],
"nonpayable"
>;
getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment
): T;
getFunction(
nameOrSignature: "alive"
): TypedContractMethod<[], [void], "nonpayable">;
getFunction(
nameOrSignature: "authority"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "committee"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "getWhitelistedNodes"
): TypedContractMethod<[], [bigint[]], "view">;
getFunction(
nameOrSignature: "heartbeatInterval"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "initialize"
): TypedContractMethod<
[
initialAuthority: AddressLike,
nodesAddress: AddressLike,
committeeAddress: AddressLike
],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "isConsumingScheduledOp"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "isHealthy"
): TypedContractMethod<[nodeId: BigNumberish], [boolean], "view">;
getFunction(
nameOrSignature: "isWhitelisted"
): TypedContractMethod<[nodeId: BigNumberish], [boolean], "view">;
getFunction(
nameOrSignature: "lastHeartbeatTimestamp"
): TypedContractMethod<[id: BigNumberish], [bigint], "view">;
getFunction(
nameOrSignature: "nodeRemoved"
): TypedContractMethod<[nodeId: BigNumberish], [void], "nonpayable">;
getFunction(
nameOrSignature: "nodes"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "removeNodeFromWhitelist"
): TypedContractMethod<[nodeId: BigNumberish], [void], "nonpayable">;
getFunction(
nameOrSignature: "setAuthority"
): TypedContractMethod<[newAuthority: AddressLike], [void], "nonpayable">;
getFunction(
nameOrSignature: "setHeartbeatInterval"
): TypedContractMethod<[interval: BigNumberish], [void], "nonpayable">;
getFunction(
nameOrSignature: "whitelistNode"
): TypedContractMethod<[nodeId: BigNumberish], [void], "nonpayable">;
getEvent(
key: "AuthorityUpdated"
): TypedContractEvent<
AuthorityUpdatedEvent.InputTuple,
AuthorityUpdatedEvent.OutputTuple,
AuthorityUpdatedEvent.OutputObject
>;
getEvent(
key: "HeartbeatIntervalChanged"
): TypedContractEvent<
HeartbeatIntervalChangedEvent.InputTuple,
HeartbeatIntervalChangedEvent.OutputTuple,
HeartbeatIntervalChangedEvent.OutputObject
>;
getEvent(
key: "HeartbeatIntervalUpdated"
): TypedContractEvent<
HeartbeatIntervalUpdatedEvent.InputTuple,
HeartbeatIntervalUpdatedEvent.OutputTuple,
HeartbeatIntervalUpdatedEvent.OutputObject
>;
getEvent(
key: "HeartbeatReceived"
): TypedContractEvent<
HeartbeatReceivedEvent.InputTuple,
HeartbeatReceivedEvent.OutputTuple,
HeartbeatReceivedEvent.OutputObject
>;
getEvent(
key: "HeartbeatSignal"
): TypedContractEvent<
HeartbeatSignalEvent.InputTuple,
HeartbeatSignalEvent.OutputTuple,
HeartbeatSignalEvent.OutputObject
>;
getEvent(
key: "Initialized"
): TypedContractEvent<
InitializedEvent.InputTuple,
InitializedEvent.OutputTuple,
InitializedEvent.OutputObject
>;
getEvent(
key: "NodeDataRemoved"
): TypedContractEvent<
NodeDataRemovedEvent.InputTuple,
NodeDataRemovedEvent.OutputTuple,
NodeDataRemovedEvent.OutputObject
>;
getEvent(
key: "NodeRemovedFromWhitelist"
): TypedContractEvent<
NodeRemovedFromWhitelistEvent.InputTuple,
NodeRemovedFromWhitelistEvent.OutputTuple,
NodeRemovedFromWhitelistEvent.OutputObject
>;
getEvent(
key: "NodeWhitelisted"
): TypedContractEvent<
NodeWhitelistedEvent.InputTuple,
NodeWhitelistedEvent.OutputTuple,
NodeWhitelistedEvent.OutputObject
>;
filters: {
"AuthorityUpdated(address)": TypedContractEvent<
AuthorityUpdatedEvent.InputTuple,
AuthorityUpdatedEvent.OutputTuple,
AuthorityUpdatedEvent.OutputObject
>;
AuthorityUpdated: TypedContractEvent<
AuthorityUpdatedEvent.InputTuple,
AuthorityUpdatedEvent.OutputTuple,
AuthorityUpdatedEvent.OutputObject
>;
"HeartbeatIntervalChanged(uint256)": TypedContractEvent<
HeartbeatIntervalChangedEvent.InputTuple,
HeartbeatIntervalChangedEvent.OutputTuple,
HeartbeatIntervalChangedEvent.OutputObject
>;
HeartbeatIntervalChanged: TypedContractEvent<
HeartbeatIntervalChangedEvent.InputTuple,
HeartbeatIntervalChangedEvent.OutputTuple,
HeartbeatIntervalChangedEvent.OutputObject
>;
"HeartbeatIntervalUpdated(uint256,uint256)": TypedContractEvent<
HeartbeatIntervalUpdatedEvent.InputTuple,
HeartbeatIntervalUpdatedEvent.OutputTuple,
HeartbeatIntervalUpdatedEvent.OutputObject
>;
HeartbeatIntervalUpdated: TypedContractEvent<
HeartbeatIntervalUpdatedEvent.InputTuple,
HeartbeatIntervalUpdatedEvent.OutputTuple,
HeartbeatIntervalUpdatedEvent.OutputObject
>;
"HeartbeatReceived(uint256,uint256)": TypedContractEvent<
HeartbeatReceivedEvent.InputTuple,
HeartbeatReceivedEvent.OutputTuple,
HeartbeatReceivedEvent.OutputObject
>;
HeartbeatReceived: TypedContractEvent<
HeartbeatReceivedEvent.InputTuple,
HeartbeatReceivedEvent.OutputTuple,
HeartbeatReceivedEvent.OutputObject
>;
"HeartbeatSignal(uint256,uint256)": TypedContractEvent<
HeartbeatSignalEvent.InputTuple,
HeartbeatSignalEvent.OutputTuple,
HeartbeatSignalEvent.OutputObject
>;
HeartbeatSignal: TypedContractEvent<
HeartbeatSignalEvent.InputTuple,
HeartbeatSignalEvent.OutputTuple,
HeartbeatSignalEvent.OutputObject
>;
"Initialized(uint64)": TypedContractEvent<
InitializedEvent.InputTuple,
InitializedEvent.OutputTuple,
InitializedEvent.OutputObject
>;
Initialized: TypedContractEvent<
InitializedEvent.InputTuple,
InitializedEvent.OutputTuple,
InitializedEvent.OutputObject
>;
"NodeDataRemoved(uint256)": TypedContractEvent<
NodeDataRemovedEvent.InputTuple,
NodeDataRemovedEvent.OutputTuple,
NodeDataRemovedEvent.OutputObject
>;
NodeDataRemoved: TypedContractEvent<
NodeDataRemovedEvent.InputTuple,
NodeDataRemovedEvent.OutputTuple,
NodeDataRemovedEvent.OutputObject
>;
"NodeRemovedFromWhitelist(uint256)": TypedContractEvent<
NodeRemovedFromWhitelistEvent.InputTuple,
NodeRemovedFromWhitelistEvent.OutputTuple,
NodeRemovedFromWhitelistEvent.OutputObject
>;
NodeRemovedFromWhitelist: TypedContractEvent<
NodeRemovedFromWhitelistEvent.InputTuple,
NodeRemovedFromWhitelistEvent.OutputTuple,
NodeRemovedFromWhitelistEvent.OutputObject
>;
"NodeWhitelisted(uint256)": TypedContractEvent<
NodeWhitelistedEvent.InputTuple,
NodeWhitelistedEvent.OutputTuple,
NodeWhitelistedEvent.OutputObject
>;
NodeWhitelisted: TypedContractEvent<
NodeWhitelistedEvent.InputTuple,
NodeWhitelistedEvent.OutputTuple,
NodeWhitelistedEvent.OutputObject
>;
};
}