Compare commits

..

1 Commits

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

4
dist/index.js vendored
View File

@ -2840,7 +2840,7 @@ class BaseEventsService {
return this.type || "";
}
getTovarishType() {
return String(this.type || "").toLowerCase();
return String(this.getType() || "").toLowerCase();
}
getGraphMethod() {
return "";
@ -3139,6 +3139,8 @@ class BaseTornadoService extends BaseEventsService {
if ((_a = this.tovarishClient) == null ? void 0 : _a.selectedRelayer) {
const { events, lastSyncBlock: lastBlock } = yield this.tovarishClient.getEvents({
type: this.getTovarishType(),
currency: this.currency,
amount: this.amount,
fromBlock
});
return {

4
dist/index.mjs vendored
View File

@ -2819,7 +2819,7 @@ class BaseEventsService {
return this.type || "";
}
getTovarishType() {
return String(this.type || "").toLowerCase();
return String(this.getType() || "").toLowerCase();
}
getGraphMethod() {
return "";
@ -3118,6 +3118,8 @@ class BaseTornadoService extends BaseEventsService {
if ((_a = this.tovarishClient) == null ? void 0 : _a.selectedRelayer) {
const { events, lastSyncBlock: lastBlock } = yield this.tovarishClient.getEvents({
type: this.getTovarishType(),
currency: this.currency,
amount: this.amount,
fromBlock
});
return {

4
dist/tornado.umd.js vendored
View File

@ -59161,7 +59161,7 @@ class BaseEventsService {
return this.type || "";
}
getTovarishType() {
return String(this.type || "").toLowerCase();
return String(this.getType() || "").toLowerCase();
}
getGraphMethod() {
return "";
@ -59460,6 +59460,8 @@ class BaseTornadoService extends BaseEventsService {
if ((_a = this.tovarishClient) == null ? void 0 : _a.selectedRelayer) {
const { events, lastSyncBlock: lastBlock } = yield this.tovarishClient.getEvents({
type: this.getTovarishType(),
currency: this.currency,
amount: this.amount,
fromBlock
});
return {

File diff suppressed because one or more lines are too long

View File

@ -137,7 +137,7 @@ export class BaseEventsService<EventType extends MinimalEvents> {
}
getTovarishType(): string {
return String(this.type || '').toLowerCase();
return String(this.getType() || '').toLowerCase();
}
getGraphMethod(): string {
@ -505,6 +505,8 @@ export class BaseTornadoService extends BaseEventsService<DepositsEvents | Withd
DepositsEvents | WithdrawalsEvents
>({
type: this.getTovarishType(),
currency: this.currency,
amount: this.amount,
fromBlock,
});