2024-04-29 18:55:15 +03:00
|
|
|
import { Config, NetIdType } from '../networkConfig';
|
2024-09-30 13:55:24 +03:00
|
|
|
import { addressSchemaType, bnSchemaType } from '.';
|
2024-10-16 17:19:49 +03:00
|
|
|
export interface statusInstanceType {
|
2024-04-29 18:55:15 +03:00
|
|
|
type: string;
|
|
|
|
properties: {
|
|
|
|
instanceAddress: {
|
|
|
|
type: string;
|
|
|
|
properties: {
|
2024-09-30 13:55:24 +03:00
|
|
|
[key in string]: typeof addressSchemaType;
|
2024-04-29 18:55:15 +03:00
|
|
|
};
|
|
|
|
required: string[];
|
|
|
|
};
|
2024-09-30 13:55:24 +03:00
|
|
|
tokenAddress?: typeof addressSchemaType;
|
2024-04-29 18:55:15 +03:00
|
|
|
symbol?: {
|
|
|
|
enum: string[];
|
|
|
|
};
|
|
|
|
decimals: {
|
|
|
|
enum: number[];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
required: string[];
|
2024-10-16 17:19:49 +03:00
|
|
|
}
|
|
|
|
export interface statusInstancesType {
|
2024-04-29 18:55:15 +03:00
|
|
|
type: string;
|
|
|
|
properties: {
|
|
|
|
[key in string]: statusInstanceType;
|
|
|
|
};
|
|
|
|
required: string[];
|
2024-10-16 17:19:49 +03:00
|
|
|
}
|
|
|
|
export interface statusEthPricesType {
|
2024-04-29 18:55:15 +03:00
|
|
|
type: string;
|
|
|
|
properties: {
|
2024-09-30 13:55:24 +03:00
|
|
|
[key in string]: typeof bnSchemaType;
|
2024-04-29 18:55:15 +03:00
|
|
|
};
|
|
|
|
required?: string[];
|
2024-10-16 17:19:49 +03:00
|
|
|
}
|
|
|
|
export interface statusSchema {
|
2024-04-29 18:55:15 +03:00
|
|
|
type: string;
|
|
|
|
properties: {
|
2024-09-30 13:55:24 +03:00
|
|
|
rewardAccount: typeof addressSchemaType;
|
2024-04-29 18:55:15 +03:00
|
|
|
instances?: statusInstancesType;
|
|
|
|
gasPrices: {
|
|
|
|
type: string;
|
|
|
|
properties: {
|
|
|
|
[key in string]: {
|
|
|
|
type: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
required: string[];
|
|
|
|
};
|
|
|
|
netId: {
|
|
|
|
type: string;
|
|
|
|
};
|
|
|
|
ethPrices?: statusEthPricesType;
|
|
|
|
tornadoServiceFee?: {
|
|
|
|
type: string;
|
|
|
|
maximum: number;
|
|
|
|
minimum: number;
|
|
|
|
};
|
2024-09-30 09:22:40 +03:00
|
|
|
latestBlock: {
|
2024-04-29 18:55:15 +03:00
|
|
|
type: string;
|
|
|
|
};
|
2024-09-30 09:22:40 +03:00
|
|
|
latestBalance: {
|
|
|
|
type: string;
|
|
|
|
BN: boolean;
|
|
|
|
};
|
2024-04-29 18:55:15 +03:00
|
|
|
version: {
|
|
|
|
type: string;
|
|
|
|
};
|
|
|
|
health: {
|
|
|
|
type: string;
|
|
|
|
properties: {
|
|
|
|
status: {
|
|
|
|
const: string;
|
|
|
|
};
|
|
|
|
error: {
|
|
|
|
type: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
required: string[];
|
|
|
|
};
|
2024-09-29 14:24:36 +03:00
|
|
|
syncStatus: {
|
|
|
|
type: string;
|
|
|
|
properties: {
|
|
|
|
events: {
|
|
|
|
type: string;
|
|
|
|
};
|
|
|
|
tokenPrice: {
|
|
|
|
type: string;
|
|
|
|
};
|
|
|
|
gasPrice: {
|
|
|
|
type: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
required: string[];
|
|
|
|
};
|
|
|
|
onSyncEvents: {
|
|
|
|
type: string;
|
|
|
|
};
|
2024-04-29 18:55:15 +03:00
|
|
|
currentQueue: {
|
|
|
|
type: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
required: string[];
|
2024-10-16 17:19:49 +03:00
|
|
|
}
|
2024-09-29 14:24:36 +03:00
|
|
|
export declare function getStatusSchema(netId: NetIdType, config: Config, tovarish: boolean): statusSchema;
|