@arbiwallet/contracts 1.0.228 → 1.0.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gen/exchange_core.ts +0 -15
- package/gen/exchange_rates.ts +10 -20
- package/package.json +1 -1
- package/proto/exchange_core.proto +0 -6
- package/proto/exchange_rates.proto +7 -12
package/gen/exchange_core.ts
CHANGED
|
@@ -272,11 +272,6 @@ export interface GetPaymentsSummaryResponse {
|
|
|
272
272
|
items: PaymentsSummaryItem[];
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
export interface GetExchangeDealsCountsResponse {
|
|
276
|
-
withExchangeCount: number;
|
|
277
|
-
completedCount: number;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
275
|
export const EXCHANGE_CORE_PACKAGE_NAME = "exchange_core";
|
|
281
276
|
|
|
282
277
|
wrappers[".google.protobuf.Struct"] = { fromObject: Struct.wrap, toObject: Struct.unwrap } as any;
|
|
@@ -303,8 +298,6 @@ export interface ExchangeCoreServiceClient {
|
|
|
303
298
|
getTransactionsSummary(request: GetTransactionsSummaryRequest): Observable<GetTransactionsSummaryResponse>;
|
|
304
299
|
|
|
305
300
|
getPaymentsSummary(request: ExchangeCalculationsFiltersRequest): Observable<GetPaymentsSummaryResponse>;
|
|
306
|
-
|
|
307
|
-
getExchangeDealsCounts(request: ExchangeCalculationsFiltersRequest): Observable<GetExchangeDealsCountsResponse>;
|
|
308
301
|
}
|
|
309
302
|
|
|
310
303
|
/**
|
|
@@ -348,13 +341,6 @@ export interface ExchangeCoreServiceController {
|
|
|
348
341
|
getPaymentsSummary(
|
|
349
342
|
request: ExchangeCalculationsFiltersRequest,
|
|
350
343
|
): Promise<GetPaymentsSummaryResponse> | Observable<GetPaymentsSummaryResponse> | GetPaymentsSummaryResponse;
|
|
351
|
-
|
|
352
|
-
getExchangeDealsCounts(
|
|
353
|
-
request: ExchangeCalculationsFiltersRequest,
|
|
354
|
-
):
|
|
355
|
-
| Promise<GetExchangeDealsCountsResponse>
|
|
356
|
-
| Observable<GetExchangeDealsCountsResponse>
|
|
357
|
-
| GetExchangeDealsCountsResponse;
|
|
358
344
|
}
|
|
359
345
|
|
|
360
346
|
export function ExchangeCoreServiceControllerMethods() {
|
|
@@ -368,7 +354,6 @@ export function ExchangeCoreServiceControllerMethods() {
|
|
|
368
354
|
"getTransactions",
|
|
369
355
|
"getTransactionsSummary",
|
|
370
356
|
"getPaymentsSummary",
|
|
371
|
-
"getExchangeDealsCounts",
|
|
372
357
|
];
|
|
373
358
|
for (const method of grpcMethods) {
|
|
374
359
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/gen/exchange_rates.ts
CHANGED
|
@@ -364,11 +364,6 @@ export interface GetExchangeCalculationHistoryResponse {
|
|
|
364
364
|
pagination?: ExchangeCalculationHistoryPagination | undefined;
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
-
export interface GetCalculationCountsResponse {
|
|
368
|
-
totalCount: number;
|
|
369
|
-
uniqueCustomers: number;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
367
|
export interface CalculationsInputCurrencySummaryItem {
|
|
373
368
|
currency: string;
|
|
374
369
|
total: number;
|
|
@@ -376,7 +371,9 @@ export interface CalculationsInputCurrencySummaryItem {
|
|
|
376
371
|
inProgress: number;
|
|
377
372
|
}
|
|
378
373
|
|
|
379
|
-
export interface
|
|
374
|
+
export interface GetExchangeCalculationStatsResponse {
|
|
375
|
+
totalCount: number;
|
|
376
|
+
uniqueCustomers: number;
|
|
380
377
|
withExchangeCount: number;
|
|
381
378
|
completedCount: number;
|
|
382
379
|
items: CalculationsInputCurrencySummaryItem[];
|
|
@@ -423,11 +420,9 @@ export interface ExchangeRatesServiceClient {
|
|
|
423
420
|
request: GetExchangeCalculationHistoryRequest,
|
|
424
421
|
): Observable<GetExchangeCalculationHistoryResponse>;
|
|
425
422
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
getCalculationsInputCurrencySummary(
|
|
423
|
+
getExchangeCalculationStats(
|
|
429
424
|
request: ExchangeCalculationFiltersRequest,
|
|
430
|
-
): Observable<
|
|
425
|
+
): Observable<GetExchangeCalculationStatsResponse>;
|
|
431
426
|
}
|
|
432
427
|
|
|
433
428
|
export interface ExchangeRatesServiceController {
|
|
@@ -505,16 +500,12 @@ export interface ExchangeRatesServiceController {
|
|
|
505
500
|
| Observable<GetExchangeCalculationHistoryResponse>
|
|
506
501
|
| GetExchangeCalculationHistoryResponse;
|
|
507
502
|
|
|
508
|
-
|
|
509
|
-
request: ExchangeCalculationFiltersRequest,
|
|
510
|
-
): Promise<GetCalculationCountsResponse> | Observable<GetCalculationCountsResponse> | GetCalculationCountsResponse;
|
|
511
|
-
|
|
512
|
-
getCalculationsInputCurrencySummary(
|
|
503
|
+
getExchangeCalculationStats(
|
|
513
504
|
request: ExchangeCalculationFiltersRequest,
|
|
514
505
|
):
|
|
515
|
-
| Promise<
|
|
516
|
-
| Observable<
|
|
517
|
-
|
|
|
506
|
+
| Promise<GetExchangeCalculationStatsResponse>
|
|
507
|
+
| Observable<GetExchangeCalculationStatsResponse>
|
|
508
|
+
| GetExchangeCalculationStatsResponse;
|
|
518
509
|
}
|
|
519
510
|
|
|
520
511
|
export function ExchangeRatesServiceControllerMethods() {
|
|
@@ -537,8 +528,7 @@ export function ExchangeRatesServiceControllerMethods() {
|
|
|
537
528
|
"calculateExchange",
|
|
538
529
|
"getExchangeCalculation",
|
|
539
530
|
"getExchangeCalculationHistory",
|
|
540
|
-
"
|
|
541
|
-
"getCalculationsInputCurrencySummary",
|
|
531
|
+
"getExchangeCalculationStats",
|
|
542
532
|
];
|
|
543
533
|
for (const method of grpcMethods) {
|
|
544
534
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbiwallet/contracts",
|
|
3
3
|
"descriptions": "Generate and manage smart contracts for ArbiWallet",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.229",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -23,7 +23,6 @@ service ExchangeCoreService {
|
|
|
23
23
|
rpc GetTransactionsSummary(GetTransactionsSummaryRequest) returns (GetTransactionsSummaryResponse);
|
|
24
24
|
|
|
25
25
|
rpc GetPaymentsSummary(ExchangeCalculationsFiltersRequest) returns (GetPaymentsSummaryResponse);
|
|
26
|
-
rpc GetExchangeDealsCounts(ExchangeCalculationsFiltersRequest) returns (GetExchangeDealsCountsResponse);
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
// message CreateExchangePaymentRequest {
|
|
@@ -359,8 +358,3 @@ message GetPaymentsSummaryResponse {
|
|
|
359
358
|
int32 with_payment_count = 1;
|
|
360
359
|
repeated PaymentsSummaryItem items = 2;
|
|
361
360
|
}
|
|
362
|
-
|
|
363
|
-
message GetExchangeDealsCountsResponse {
|
|
364
|
-
int32 with_exchange_count = 1;
|
|
365
|
-
int32 completed_count = 2;
|
|
366
|
-
}
|
|
@@ -32,9 +32,7 @@ service ExchangeRatesService {
|
|
|
32
32
|
rpc CalculateExchange(CalculateExchangeRequest) returns (CalculateExchangeResponse);
|
|
33
33
|
rpc GetExchangeCalculation(GetExchangeCalculationRequest) returns (GetExchangeCalculationResponse);
|
|
34
34
|
rpc GetExchangeCalculationHistory(GetExchangeCalculationHistoryRequest) returns (GetExchangeCalculationHistoryResponse);
|
|
35
|
-
|
|
36
|
-
rpc GetCalculationCounts(ExchangeCalculationFiltersRequest) returns (GetCalculationCountsResponse);
|
|
37
|
-
rpc GetCalculationsInputCurrencySummary(ExchangeCalculationFiltersRequest) returns (GetCalculationsInputCurrencySummaryResponse);
|
|
35
|
+
rpc GetExchangeCalculationStats(ExchangeCalculationFiltersRequest) returns (GetExchangeCalculationStatsResponse);
|
|
38
36
|
}
|
|
39
37
|
|
|
40
38
|
message CurrencySetting {
|
|
@@ -376,11 +374,6 @@ message GetExchangeCalculationHistoryResponse {
|
|
|
376
374
|
optional ExchangeCalculationHistoryPagination pagination = 5;
|
|
377
375
|
}
|
|
378
376
|
|
|
379
|
-
message GetCalculationCountsResponse {
|
|
380
|
-
int32 total_count = 1;
|
|
381
|
-
int32 unique_customers = 2;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
377
|
message CalculationsInputCurrencySummaryItem {
|
|
385
378
|
string currency = 1;
|
|
386
379
|
double total = 2;
|
|
@@ -388,8 +381,10 @@ message CalculationsInputCurrencySummaryItem {
|
|
|
388
381
|
double in_progress = 4;
|
|
389
382
|
}
|
|
390
383
|
|
|
391
|
-
message
|
|
392
|
-
int32
|
|
393
|
-
int32
|
|
394
|
-
|
|
384
|
+
message GetExchangeCalculationStatsResponse {
|
|
385
|
+
int32 total_count = 1;
|
|
386
|
+
int32 unique_customers = 2;
|
|
387
|
+
int32 with_exchange_count = 3;
|
|
388
|
+
int32 completed_count = 4;
|
|
389
|
+
repeated CalculationsInputCurrencySummaryItem items = 5;
|
|
395
390
|
}
|