@arbiwallet/contracts 1.0.215 → 1.0.216
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 +32 -0
- package/package.json +1 -1
- package/proto/exchange_core.proto +19 -0
package/gen/exchange_core.ts
CHANGED
|
@@ -258,6 +258,26 @@ export interface GetTransactionsResponse {
|
|
|
258
258
|
summary: GetTransactionsSummaryItem[];
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
+
export interface GetExchangeDealHistoryStatisticsRequest {
|
|
262
|
+
dateFrom?: string | undefined;
|
|
263
|
+
dateTo?: string | undefined;
|
|
264
|
+
amountFrom?: number | undefined;
|
|
265
|
+
amountTo?: number | undefined;
|
|
266
|
+
inputCurrency?: string | undefined;
|
|
267
|
+
outputCurrency?:
|
|
268
|
+
| string
|
|
269
|
+
| undefined;
|
|
270
|
+
/** no_payment | with_payment | with_exchange | completed */
|
|
271
|
+
status?: string | undefined;
|
|
272
|
+
search?: string | undefined;
|
|
273
|
+
page?: number | undefined;
|
|
274
|
+
pageSize?: number | undefined;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export interface GetExchangeDealHistoryStatisticsResponse {
|
|
278
|
+
items: ExchangeDealStateByCalculation[];
|
|
279
|
+
}
|
|
280
|
+
|
|
261
281
|
export interface GetExchangePaymentRefsByCalculationIdsRequest {
|
|
262
282
|
calculationIds: string[];
|
|
263
283
|
}
|
|
@@ -326,6 +346,10 @@ export interface ExchangeCoreServiceClient {
|
|
|
326
346
|
|
|
327
347
|
getTransactions(request: GetTransactionsRequest): Observable<GetTransactionsResponse>;
|
|
328
348
|
|
|
349
|
+
getExchangeDealHistoryStatistics(
|
|
350
|
+
request: GetExchangeDealHistoryStatisticsRequest,
|
|
351
|
+
): Observable<GetExchangeDealHistoryStatisticsResponse>;
|
|
352
|
+
|
|
329
353
|
getExchangePaymentRefsByCalculationIds(
|
|
330
354
|
request: GetExchangePaymentRefsByCalculationIdsRequest,
|
|
331
355
|
): Observable<GetExchangePaymentRefsByCalculationIdsResponse>;
|
|
@@ -370,6 +394,13 @@ export interface ExchangeCoreServiceController {
|
|
|
370
394
|
request: GetTransactionsRequest,
|
|
371
395
|
): Promise<GetTransactionsResponse> | Observable<GetTransactionsResponse> | GetTransactionsResponse;
|
|
372
396
|
|
|
397
|
+
getExchangeDealHistoryStatistics(
|
|
398
|
+
request: GetExchangeDealHistoryStatisticsRequest,
|
|
399
|
+
):
|
|
400
|
+
| Promise<GetExchangeDealHistoryStatisticsResponse>
|
|
401
|
+
| Observable<GetExchangeDealHistoryStatisticsResponse>
|
|
402
|
+
| GetExchangeDealHistoryStatisticsResponse;
|
|
403
|
+
|
|
373
404
|
getExchangePaymentRefsByCalculationIds(
|
|
374
405
|
request: GetExchangePaymentRefsByCalculationIdsRequest,
|
|
375
406
|
):
|
|
@@ -401,6 +432,7 @@ export function ExchangeCoreServiceControllerMethods() {
|
|
|
401
432
|
"completeExchangeDeal",
|
|
402
433
|
"cancelExchangeDeal",
|
|
403
434
|
"getTransactions",
|
|
435
|
+
"getExchangeDealHistoryStatistics",
|
|
404
436
|
"getExchangePaymentRefsByCalculationIds",
|
|
405
437
|
"getExchangeDealRefsByCalculationIds",
|
|
406
438
|
"getExchangeDealStatesByCalculationIds",
|
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.216",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -21,6 +21,8 @@ service ExchangeCoreService {
|
|
|
21
21
|
|
|
22
22
|
rpc GetTransactions(GetTransactionsRequest) returns (GetTransactionsResponse);
|
|
23
23
|
|
|
24
|
+
rpc GetExchangeDealHistoryStatistics(GetExchangeDealHistoryStatisticsRequest) returns (GetExchangeDealHistoryStatisticsResponse);
|
|
25
|
+
|
|
24
26
|
|
|
25
27
|
rpc GetExchangePaymentRefsByCalculationIds(GetExchangePaymentRefsByCalculationIdsRequest) returns (GetExchangePaymentRefsByCalculationIdsResponse);
|
|
26
28
|
rpc GetExchangeDealRefsByCalculationIds(GetExchangeDealRefsByCalculationIdsRequest) returns (GetExchangeDealRefsByCalculationIdsResponse);
|
|
@@ -324,6 +326,23 @@ message GetTransactionsResponse {
|
|
|
324
326
|
repeated GetTransactionsSummaryItem summary = 5;
|
|
325
327
|
}
|
|
326
328
|
|
|
329
|
+
message GetExchangeDealHistoryStatisticsRequest {
|
|
330
|
+
optional string date_from = 1;
|
|
331
|
+
optional string date_to = 2;
|
|
332
|
+
optional double amount_from = 3;
|
|
333
|
+
optional double amount_to = 4;
|
|
334
|
+
optional string input_currency = 5;
|
|
335
|
+
optional string output_currency = 6;
|
|
336
|
+
optional string status = 7; // no_payment | with_payment | with_exchange | completed
|
|
337
|
+
optional string search = 8;
|
|
338
|
+
optional int32 page = 9;
|
|
339
|
+
optional int32 page_size = 10;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
message GetExchangeDealHistoryStatisticsResponse {
|
|
343
|
+
repeated ExchangeDealStateByCalculation items = 1;
|
|
344
|
+
}
|
|
345
|
+
|
|
327
346
|
message GetExchangePaymentRefsByCalculationIdsRequest {
|
|
328
347
|
repeated string calculation_ids = 1;
|
|
329
348
|
}
|