Compare commits

..

1 Commits

Author SHA1 Message Date
688700affd
Initial client for Tovarish Relayer 2024-09-29 12:54:33 +00:00
6 changed files with 9 additions and 9 deletions

2
dist/index.js vendored
View File

@ -6802,7 +6802,7 @@ class TovarishClient extends RelayerClient {
latestBlock: Number(status.latestBlock),
version: status.version,
events: status.events,
syncStatus: status.syncStatus
syncStats: status.syncStats
};
} catch (err) {
return {

2
dist/index.mjs vendored
View File

@ -6781,7 +6781,7 @@ class TovarishClient extends RelayerClient {
latestBlock: Number(status.latestBlock),
version: status.version,
events: status.events,
syncStatus: status.syncStatus
syncStats: status.syncStats
};
} catch (err) {
return {

2
dist/tornado.umd.js vendored
View File

@ -72176,7 +72176,7 @@ class TovarishClient extends _relayerClient__WEBPACK_IMPORTED_MODULE_0__/* .Rela
latestBlock: Number(status.latestBlock),
version: status.version,
events: status.events,
syncStatus: status.syncStatus
syncStats: status.syncStats
};
} catch (err) {
return {

File diff suppressed because one or more lines are too long

View File

@ -32,14 +32,14 @@ export interface TovarishSyncStatus {
}
export interface TovarishStatus extends RelayerStatus {
events: TovarishEventsStatus;
syncStatus: TovarishSyncStatus;
syncStats: TovarishSyncStatus;
onSyncEvents: boolean;
}
export interface TovarishInfo extends RelayerInfo {
latestBlock: number;
version: string;
events: TovarishEventsStatus;
syncStatus: TovarishSyncStatus;
syncStats: TovarishSyncStatus;
}
export interface TovarishEventsQuery {
type: string;

View File

@ -51,7 +51,7 @@ export interface TovarishSyncStatus {
// Expected response from /status endpoint
export interface TovarishStatus extends RelayerStatus {
events: TovarishEventsStatus;
syncStatus: TovarishSyncStatus;
syncStats: TovarishSyncStatus;
onSyncEvents: boolean;
}
@ -60,7 +60,7 @@ export interface TovarishInfo extends RelayerInfo {
latestBlock: number;
version: string;
events: TovarishEventsStatus;
syncStatus: TovarishSyncStatus;
syncStats: TovarishSyncStatus;
}
// Query input for TovarishEvents
@ -132,7 +132,7 @@ export class TovarishClient extends RelayerClient {
latestBlock: Number(status.latestBlock),
version: status.version,
events: status.events,
syncStatus: status.syncStatus,
syncStats: status.syncStats,
} as TovarishInfo;
// eslint-disable-next-line @typescript-eslint/no-explicit-any