@arbiwallet/contracts 1.0.37 → 1.0.39

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/ledger.ts CHANGED
@@ -356,16 +356,22 @@ export interface InternalTransferRequest {
356
356
  fromUserId: string;
357
357
  toUserId: string;
358
358
  asset: string;
359
+ /** Необязательно: если пусто — сумма делится поровну между всеми сетями, где у отправителя есть available по активу. */
359
360
  network: string;
360
361
  /** Десятичная строка; списание с available отправителя. */
361
362
  amount: string;
362
363
  idempotencyKey: string;
364
+ /** Как задан получатель на стороне Gateway: user_id | uid | email | phone | telegram */
365
+ recipientKind: string;
366
+ /** Введённое пользователем значение */
367
+ recipientValue: string;
363
368
  }
364
369
 
365
370
  export interface InternalTransferResponse {
366
371
  transferId: string;
367
372
  senderLedgerOperationId: string;
368
373
  receiverLedgerOperationId: string;
374
+ /** Агрегат по всем сетям для актива (после перевода), не только по одной сети. */
369
375
  senderAvailable: string;
370
376
  senderReserved: string;
371
377
  senderTotal: string;
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.37",
4
+ "version": "1.0.39",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -326,15 +326,21 @@ message InternalTransferRequest {
326
326
  string from_user_id = 1;
327
327
  string to_user_id = 2;
328
328
  string asset = 3;
329
+ // Необязательно: если пусто — сумма делится поровну между всеми сетями, где у отправителя есть available по активу.
329
330
  string network = 4;
330
331
  string amount = 5; // Десятичная строка; списание с available отправителя.
331
332
  string idempotency_key = 6;
333
+ // Как задан получатель на стороне Gateway: user_id | uid | email | phone | telegram
334
+ string recipient_kind = 7;
335
+ // Введённое пользователем значение
336
+ string recipient_value = 8;
332
337
  }
333
338
 
334
339
  message InternalTransferResponse {
335
340
  string transfer_id = 1;
336
341
  string sender_ledger_operation_id = 2;
337
342
  string receiver_ledger_operation_id = 3;
343
+ // Агрегат по всем сетям для актива (после перевода), не только по одной сети.
338
344
  string sender_available = 4;
339
345
  string sender_reserved = 5;
340
346
  string sender_total = 6;