@console-wallet/dapp-sdk 1.0.1 → 1.1.1

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.
Files changed (71) hide show
  1. package/CHANGELOG.md +71 -1
  2. package/README.md +21 -16
  3. package/dist/cjs/api/client.api.d.ts +32 -2
  4. package/dist/cjs/api/generated-wallet-api.d.ts +684 -5
  5. package/dist/cjs/api/generated-wallet-api.js +146 -2
  6. package/dist/cjs/api/generated-wallet-api.js.map +1 -1
  7. package/dist/cjs/helpers/handleResponce.helper.d.ts +1 -1
  8. package/dist/cjs/index.d.ts +5 -0
  9. package/dist/cjs/requests/getCoinsBalance.d.ts +15 -0
  10. package/dist/cjs/requests/getCoinsBalance.js +37 -0
  11. package/dist/cjs/requests/getCoinsBalance.js.map +1 -0
  12. package/dist/cjs/requests/getNodeOffers.d.ts +13 -0
  13. package/dist/cjs/requests/getNodeOffers.js +35 -0
  14. package/dist/cjs/requests/getNodeOffers.js.map +1 -0
  15. package/dist/cjs/requests/getNodeTransfer.d.ts +13 -0
  16. package/dist/cjs/requests/getNodeTransfer.js +35 -0
  17. package/dist/cjs/requests/getNodeTransfer.js.map +1 -0
  18. package/dist/cjs/requests/getNodeTransfers.d.ts +15 -0
  19. package/dist/cjs/requests/getNodeTransfers.js +37 -0
  20. package/dist/cjs/requests/getNodeTransfers.js.map +1 -0
  21. package/dist/cjs/requests/index.d.ts +5 -0
  22. package/dist/cjs/requests/index.js +5 -0
  23. package/dist/cjs/requests/index.js.map +1 -1
  24. package/dist/cjs/requests/singBatch.d.ts +13 -0
  25. package/dist/cjs/requests/singBatch.js +35 -0
  26. package/dist/cjs/requests/singBatch.js.map +1 -0
  27. package/dist/cjs/types/communication.types.d.ts +6 -1
  28. package/dist/cjs/types/communication.types.js +5 -0
  29. package/dist/cjs/types/communication.types.js.map +1 -1
  30. package/dist/cjs/types/history.types.d.ts +24 -0
  31. package/dist/cjs/types/signed.type.d.ts +53 -12
  32. package/dist/cjs/types/signed.type.js +19 -3
  33. package/dist/cjs/types/signed.type.js.map +1 -1
  34. package/dist/cjs/types/token.types.d.ts +21 -2
  35. package/dist/cjs/types/token.types.js +13 -1
  36. package/dist/cjs/types/token.types.js.map +1 -1
  37. package/dist/esm/api/client.api.d.ts +32 -2
  38. package/dist/esm/api/generated-wallet-api.d.ts +684 -5
  39. package/dist/esm/api/generated-wallet-api.js +146 -2
  40. package/dist/esm/api/generated-wallet-api.js.map +1 -1
  41. package/dist/esm/helpers/handleResponce.helper.d.ts +1 -1
  42. package/dist/esm/index.d.ts +5 -0
  43. package/dist/esm/requests/getCoinsBalance.d.ts +15 -0
  44. package/dist/esm/requests/getCoinsBalance.js +33 -0
  45. package/dist/esm/requests/getCoinsBalance.js.map +1 -0
  46. package/dist/esm/requests/getNodeOffers.d.ts +13 -0
  47. package/dist/esm/requests/getNodeOffers.js +31 -0
  48. package/dist/esm/requests/getNodeOffers.js.map +1 -0
  49. package/dist/esm/requests/getNodeTransfer.d.ts +13 -0
  50. package/dist/esm/requests/getNodeTransfer.js +31 -0
  51. package/dist/esm/requests/getNodeTransfer.js.map +1 -0
  52. package/dist/esm/requests/getNodeTransfers.d.ts +15 -0
  53. package/dist/esm/requests/getNodeTransfers.js +33 -0
  54. package/dist/esm/requests/getNodeTransfers.js.map +1 -0
  55. package/dist/esm/requests/index.d.ts +5 -0
  56. package/dist/esm/requests/index.js +5 -0
  57. package/dist/esm/requests/index.js.map +1 -1
  58. package/dist/esm/requests/singBatch.d.ts +13 -0
  59. package/dist/esm/requests/singBatch.js +31 -0
  60. package/dist/esm/requests/singBatch.js.map +1 -0
  61. package/dist/esm/types/communication.types.d.ts +6 -1
  62. package/dist/esm/types/communication.types.js +5 -0
  63. package/dist/esm/types/communication.types.js.map +1 -1
  64. package/dist/esm/types/history.types.d.ts +24 -0
  65. package/dist/esm/types/signed.type.d.ts +53 -12
  66. package/dist/esm/types/signed.type.js +18 -2
  67. package/dist/esm/types/signed.type.js.map +1 -1
  68. package/dist/esm/types/token.types.d.ts +21 -2
  69. package/dist/esm/types/token.types.js +12 -0
  70. package/dist/esm/types/token.types.js.map +1 -1
  71. package/package.json +1 -1
@@ -25,6 +25,17 @@ export interface BalanceDTO {
25
25
  total_locked_coin: string;
26
26
  total_unlocked_coin: string;
27
27
  }
28
+ export interface BatchTransferReceiverItemDTO {
29
+ amount: string;
30
+ receiver: string;
31
+ }
32
+ export interface CoinBalanceResponseDTO {
33
+ balance: string;
34
+ coin: "CC" | "CBTC" | "USDCx";
35
+ }
36
+ export interface CoinsBalancesResponseDTO {
37
+ balances: CoinBalanceResponseDTO[];
38
+ }
28
39
  export interface CreateSettingBodyDTO {
29
40
  key: string;
30
41
  value: string;
@@ -43,10 +54,186 @@ export interface CreateTapDTO {
43
54
  partyId: string;
44
55
  privateKey: string;
45
56
  }
57
+ export interface CryptoAPIProxyBodyDTO {
58
+ /** A stringified body for POST / PUT requests */
59
+ body?: string;
60
+ /** Method to send a request. */
61
+ method: "GET" | "POST" | "PUT" | "DELETE";
62
+ /** An stringified object with query and url parameters */
63
+ urlAndQueryParams?: string;
64
+ /** An endpoint schema from swagger price api */
65
+ urlSchema: string;
66
+ }
67
+ export interface GetAnsContextListEntryDTO {
68
+ /**
69
+ * Daml contract ID encoded as a 138-character lowercase hexadecimal string
70
+ * @pattern ^00[a-f0-9]{136}$
71
+ * @example "001dbd4eac6d06371a1dc850d3cc3d1039688403fe2f9ab98985e8e8d0701f211fca111220b859db866c3cf320cf3dda548cca9a43d7770b6a5a5937a926b771a222674385"
72
+ */
73
+ contract_id: string;
74
+ description: string;
75
+ /**
76
+ * Party ID in format `hint::hash`
77
+ *
78
+ * - `hint` - human-readable prefix (optional, for debugging)
79
+ *
80
+ * - `hash` - cryptographic identifier (the real identity)
81
+ * @pattern ^[a-zA-Z0-9][a-zA-Z0-9._-]*::1220[a-f0-9]{64}$
82
+ * @example "dev_test::122035334a67f4de9d2aecdd5b83485cbaee20682e3f0491bdf12b0a32d81cc93c90"
83
+ */
84
+ dso_party_id: string;
85
+ /**
86
+ * Daml event ID format: `update_id:number`.\n- `update_id`: 64-character hexadecimal string\n- `number`: **uint64**, event index within the update
87
+ * @pattern ^1220[a-f0-9]{64}:\d+$
88
+ * @example "1220f66d301e0049af910c57e04f87697d0377c6086290bf8d6f89a64fad54ad7de3:46"
89
+ */
90
+ event_id: string;
91
+ name: string;
92
+ record_time: string;
93
+ /**
94
+ * Daml contract ID encoded as a 138-character lowercase hexadecimal string
95
+ * @pattern ^00[a-f0-9]{136}$
96
+ * @example "001dbd4eac6d06371a1dc850d3cc3d1039688403fe2f9ab98985e8e8d0701f211fca111220b859db866c3cf320cf3dda548cca9a43d7770b6a5a5937a926b771a222674385"
97
+ */
98
+ reference: string;
99
+ /** @example "pending" */
100
+ status: "pending" | "accepted" | "rejected";
101
+ url: string;
102
+ /**
103
+ * Party ID in format `hint::hash`
104
+ *
105
+ * - `hint` - human-readable prefix (optional, for debugging)
106
+ *
107
+ * - `hash` - cryptographic identifier (the real identity)
108
+ * @pattern ^[a-zA-Z0-9][a-zA-Z0-9._-]*::1220[a-f0-9]{64}$
109
+ * @example "dev_test::122035334a67f4de9d2aecdd5b83485cbaee20682e3f0491bdf12b0a32d81cc93c90"
110
+ */
111
+ user_party_id: string;
112
+ }
113
+ export interface GetAnsEntryAggregateResponseDTO {
114
+ /**
115
+ * The total available balance of Amulet tokens associated with this ANS entry.
116
+ * @format decimal
117
+ * @min 0
118
+ * @example "0.154"
119
+ */
120
+ amulet_balance: string;
121
+ /**
122
+ * Daml contract ID encoded as a 138-character lowercase hexadecimal string
123
+ * @pattern ^00[a-f0-9]{136}$
124
+ * @example "001dbd4eac6d06371a1dc850d3cc3d1039688403fe2f9ab98985e8e8d0701f211fca111220b859db866c3cf320cf3dda548cca9a43d7770b6a5a5937a926b771a222674385"
125
+ */
126
+ contract_id: string;
127
+ /**
128
+ * Daml event ID format: `update_id:number`.\n- `update_id`: 64-character hexadecimal string\n- `number`: **uint64**, event index within the update
129
+ * @pattern ^1220[a-f0-9]{64}:\d+$
130
+ * @example "1220f66d301e0049af910c57e04f87697d0377c6086290bf8d6f89a64fad54ad7de3:46"
131
+ */
132
+ event_id: string;
133
+ /**
134
+ * The exact date and time (in UTC) when the ANS registration expires.
135
+ * @format date-time
136
+ * @example "2025-12-31T23:59:59Z"
137
+ */
138
+ expires_at: string;
139
+ /**
140
+ * The amount of Amulet tokens currently locked
141
+ * @format decimal
142
+ * @min 0
143
+ * @example "0.154"
144
+ */
145
+ locked_amulet_balance: string;
146
+ /** The ANS of the party */
147
+ name: string;
148
+ /**
149
+ * The date and time (in UTC) when this aggregate record was last stored or updated in the database.
150
+ * @format date-time
151
+ * @example "2025-12-31T23:59:59Z"
152
+ */
153
+ record_time: string;
154
+ /**
155
+ * The unique identifier of the Daml party (user) who owns this ANS entry.
156
+ * @pattern ^[a-zA-Z0-9][a-zA-Z0-9._-]*::1220[a-f0-9]{64}$
157
+ * @example "dev_test::122035334a67f4de9d2aecdd5b83485cbaee20682e3f0491bdf12b0a32d81cc93c90"
158
+ */
159
+ user_party_id: string;
160
+ }
161
+ export interface GetAnsListEntryDTO {
162
+ description: string | null;
163
+ /**
164
+ * Expiration of ANS
165
+ * @example "2025-12-12T13:42:10.547868426Z"
166
+ */
167
+ expires_at: string;
168
+ /** ANS name. */
169
+ name: string;
170
+ url: string | null;
171
+ }
172
+ export interface GetCounterpartyVolumeResponseDTO {
173
+ /**
174
+ * Party ID in format `hint::hash`
175
+ *
176
+ * - `hint` - human-readable prefix (optional, for debugging)
177
+ *
178
+ * - `hash` - cryptographic identifier (the real identity)
179
+ * @pattern ^[a-zA-Z0-9][a-zA-Z0-9._-]*::1220[a-f0-9]{64}$
180
+ * @example "dev_test::122035334a67f4de9d2aecdd5b83485cbaee20682e3f0491bdf12b0a32d81cc93c90"
181
+ */
182
+ party_id: string;
183
+ /**
184
+ * Total token volume exchanged with this counterparty.
185
+ *
186
+ * Represents the sum of all transfer amounts between the primary party and this counterparty.
187
+ * @format decimal
188
+ * @min 0
189
+ * @example "912.468"
190
+ */
191
+ volume: string;
192
+ }
193
+ export interface GetGeneralSearchResultResponseDTO {
194
+ ans: GetPagedListAnsEntryAggregateResponseDTO;
195
+ parties: GetPagedBoolPartyEntryAggregateResponseDTO;
196
+ updates: GetPagedBoolUpdateEntryAggregateResponseDTO;
197
+ }
198
+ export interface GetMergeUtxosStatusResponseDTO {
199
+ isMergeUtxosEnabled: boolean;
200
+ }
46
201
  export interface GetOffersSearchResponseDTO {
47
202
  data: OfferDTO[];
48
203
  next_cursor?: string | null;
49
204
  }
205
+ export interface GetPagedBoolPartyEntryAggregateResponseDTO {
206
+ has_more: boolean;
207
+ items: GetPartyInfoResponseDTO[];
208
+ }
209
+ export interface GetPagedBoolUpdateEntryAggregateResponseDTO {
210
+ has_more: boolean;
211
+ items: GetUpdateHistoryResponseDTO[];
212
+ }
213
+ export interface GetPagedListAnsEntryAggregateResponseDTO {
214
+ has_more: boolean;
215
+ items: GetAnsEntryAggregateResponseDTO[];
216
+ }
217
+ export interface GetPartyAmuletNameResponseDTO {
218
+ /**
219
+ * Daml contract ID encoded as a 138-character lowercase hexadecimal string
220
+ * @pattern ^00[a-f0-9]{136}$
221
+ * @example "001dbd4eac6d06371a1dc850d3cc3d1039688403fe2f9ab98985e8e8d0701f211fca111220b859db866c3cf320cf3dda548cca9a43d7770b6a5a5937a926b771a222674385"
222
+ */
223
+ contract_id: string;
224
+ /**
225
+ * Daml event ID format: `update_id:number`.\n- `update_id`: 64-character hexadecimal string\n- `number`: **uint64**, event index within the update
226
+ * @pattern ^1220[a-f0-9]{64}:\d+$
227
+ * @example "1220f66d301e0049af910c57e04f87697d0377c6086290bf8d6f89a64fad54ad7de3:46"
228
+ */
229
+ event_id: string;
230
+ /** @format date-time */
231
+ expires_at: string;
232
+ is_expired: boolean;
233
+ name: string;
234
+ /** @format date-time */
235
+ record_time: string;
236
+ }
50
237
  export interface GetPartyDetailsResponseDTO {
51
238
  amulets: AmuletDTO;
52
239
  balance: BalanceDTO;
@@ -70,9 +257,225 @@ export interface GetPartyDetailsResponseDTO {
70
257
  total_transfers_count: number;
71
258
  validator_license: ValidatorLicenseDTO;
72
259
  }
73
- export interface GetPendingTransactionsResponseDTO {
260
+ export interface GetPartyInfoAmuletBalanceResponseDTO {
261
+ /**
262
+ * @format decimal
263
+ * @min 0
264
+ * @example "15.00200"
265
+ */
266
+ amulet_balance: string;
267
+ /**
268
+ * @format decimal
269
+ * @min 0
270
+ * @example "1235.000123"
271
+ */
272
+ locked_amulet_balance: string;
273
+ }
274
+ export interface GetPartyInfoBalanceResponseDTO {
275
+ /**
276
+ * @format int64
277
+ * @example "7825"
278
+ */
279
+ computed_as_of_round: number;
280
+ /**
281
+ * The time as of which the balance was computed
282
+ *
283
+ * This field contains the timestamp indicating when the round was performed.
284
+ * The value represents the exact moment in UTC when the computation occurred.
285
+ * @format date-time
286
+ */
287
+ computed_as_of_time: string;
288
+ /**
289
+ * Party ID in format `hint::hash`
290
+ *
291
+ * - `hint` - human-readable prefix (optional, for debugging)
292
+ *
293
+ * - `hash` - cryptographic identifier (the real identity)
294
+ * @pattern ^[a-zA-Z0-9][a-zA-Z0-9._-]*::1220[a-f0-9]{64}$
295
+ * @example "dev_test::122035334a67f4de9d2aecdd5b83485cbaee20682e3f0491bdf12b0a32d81cc93c90"
296
+ */
297
+ party_id: string;
298
+ /**
299
+ * @format decimal
300
+ * @min 0
301
+ */
302
+ total_available_coin: string;
303
+ /**
304
+ * @format decimal
305
+ * @min 0
306
+ * @example "166.4525238620"
307
+ */
308
+ total_coin_holdings: string;
309
+ /**
310
+ * @format decimal
311
+ * @min 0
312
+ * @example "0.0000000000"
313
+ */
314
+ total_locked_coin: string;
315
+ /**
316
+ * @format decimal
317
+ * @min 0
318
+ * @example "166.4525238620"
319
+ */
320
+ total_unlocked_coin: string;
321
+ }
322
+ export interface GetPartyInfoResponseDTO {
323
+ /** Top 3 counterparties by total transfer volume with this party.\n\nContains the three parties with the highest accumulated transfer volumes\nwith this party, ordered by volume descending. Each entry includes\nthe counterparty's party ID and their total transfer volume. */
324
+ top3_counterparties_volume: GetCounterpartyVolumeResponseDTO[];
325
+ /**
326
+ * Additional ans names details
327
+ *
328
+ * This field contains data about the amulet names.
329
+ * The field is null if the specified party doesn't have names.
330
+ */
331
+ amulet_names: GetPartyAmuletNameResponseDTO | null;
332
+ /** The current balance of AMULET tokens held by the party.\nIncludes both available and locked tokens. */
333
+ amulets: GetPartyInfoAmuletBalanceResponseDTO;
334
+ balance: GetPartyInfoBalanceResponseDTO;
335
+ /**
336
+ * Party ID in format `hint::hash`
337
+ *
338
+ * - `hint` - human-readable prefix (optional, for debugging)
339
+ *
340
+ * - `hash` - cryptographic identifier (the real identity)
341
+ * @pattern ^[a-zA-Z0-9][a-zA-Z0-9._-]*::1220[a-f0-9]{64}$
342
+ * @example "dev_test::122035334a67f4de9d2aecdd5b83485cbaee20682e3f0491bdf12b0a32d81cc93c90"
343
+ */
344
+ first_transfer_party: string | null;
345
+ /**
346
+ * The timestamp of the party's first transfer transaction.
347
+ *
348
+ * This represents the exact date and time when this party performed
349
+ * their first transfer on the network. Useful for analyzing when
350
+ * the party became active and for chronological analysis of network growth.
351
+ * @format date-time
352
+ */
353
+ first_transfer_record_time: string;
354
+ /**
355
+ * Additional super validator details
356
+ *
357
+ * This field contains data about the super validator if the specified party is a super validator.
358
+ * The field is null if the specified party is not a validator.
359
+ */
360
+ is_sv: boolean;
361
+ /**
362
+ * This field contains data about the validator if the specified party is a validator.
363
+ *
364
+ * The field is null if the specified party is not a validator.
365
+ */
366
+ is_validator: boolean;
367
+ /**
368
+ * Party ID in format `hint::hash`
369
+ *
370
+ * - `hint` - human-readable prefix (optional, for debugging)
371
+ *
372
+ * - `hash` - cryptographic identifier (the real identity)
373
+ * @pattern ^[a-zA-Z0-9][a-zA-Z0-9._-]*::1220[a-f0-9]{64}$
374
+ * @example "dev_test::122035334a67f4de9d2aecdd5b83485cbaee20682e3f0491bdf12b0a32d81cc93c90"
375
+ */
376
+ party_id: string;
377
+ /**
378
+ * Party ID in format `hint::hash`
379
+ *
380
+ * - `hint` - human-readable prefix (optional, for debugging)
381
+ *
382
+ * - `hash` - cryptographic identifier (the real identity)
383
+ * @pattern ^[a-zA-Z0-9][a-zA-Z0-9._-]*::1220[a-f0-9]{64}$
384
+ * @example "dev_test::122035334a67f4de9d2aecdd5b83485cbaee20682e3f0491bdf12b0a32d81cc93c90"
385
+ */
386
+ provider_id: string;
387
+ /**
388
+ * @format int64
389
+ * @min 0
390
+ */
391
+ total_counterparties_count: number;
392
+ /** Total accumulated transfer volume across all counterparties.\n\nRepresents the sum of all transfer volumes this party has been involved in,\nproviding a comprehensive measure of the party's total transaction activity\nand economic engagement on the network. */
393
+ total_counterparties_volume: string;
394
+ /**
395
+ * Total burn fees paid by this party for merge/split operations.
396
+ *
397
+ * Represents the cumulative cost of all merge/split operations.
398
+ */
399
+ total_merge_split_burn_fee: string;
400
+ /**
401
+ * Total number of merge/split operations performed by this party.\n\nMerge/split operations combine or divide token UTXOs for better management.
402
+ * @format int64
403
+ */
404
+ total_merge_split_count: number;
405
+ /**
406
+ * Total number of transfer allocations created by this party.\n\nTransfer allocations represent reserved amounts for pending transfers.
407
+ * @format int64
408
+ */
409
+ total_transfer_allocation_count: number;
410
+ /**
411
+ * Number of transfer allocations where this party was the receiver.\n\nIndicates how many transfer reservations have been made targeting this party.
412
+ * @format int64
413
+ */
414
+ total_transfer_allocation_count_as_receiver: number;
415
+ /** Total burn fees paid by this party for transfer transactions.\n\nRepresents the cumulative cost of all transfer operations in terms of burned tokens. */
416
+ total_transfer_burn_fee: string;
417
+ /**
418
+ * Total number of transfer commands executed by this party.\n\nTransfer commands represent finalized transfer operations with on-chain execution.
419
+ * @format int64
420
+ */
421
+ total_transfer_command_count: number;
422
+ /**
423
+ * Number of transfer commands where this party was the receiver.\n\nIndicates successful receipt of tokens through finalized transfers.
424
+ * @format int64
425
+ */
426
+ total_transfer_command_count_as_receiver: number;
427
+ /**
428
+ * Number of transfer commands where this party was the sender.\n\nIndicates successful sending of tokens through finalized transfers.
429
+ * @format int64
430
+ */
431
+ total_transfer_command_count_as_sender: number;
432
+ /**
433
+ * Number of completed transfers where this party was the receiver.\n\nIndicates how many times tokens have been successfully received.
434
+ * @format int64
435
+ */
436
+ total_transfer_count_as_receiver: number;
437
+ /**
438
+ * Number of completed transfers where this party was the sender.\n\nIndicates how many times tokens have been successfully sent.
439
+ * @format int64
440
+ */
441
+ total_transfer_count_as_sender: number;
442
+ /**
443
+ * Total number of transfer instructions processed by this party.\n\nTransfer instructions represent individual steps in multi-step transfer processes.
444
+ * @format int64
445
+ */
446
+ total_transfer_instruction_count: number;
447
+ /**
448
+ * Number of transfer instructions where this party was the receiver.\n\nIndicates participation as a receiver in complex transfer workflows.
449
+ * @format int64
450
+ */
451
+ total_transfer_instruction_count_as_receiver: number;
452
+ /**
453
+ * Number of transfer instructions where this party was the sender.\n\nIndicates initiation of complex transfer workflows.
454
+ * @format int64
455
+ */
456
+ total_transfer_instruction_count_as_sender: number;
457
+ /**
458
+ * Total number of completed transfer transactions this party has been involved in.\n\nCounts both incoming and outgoing transfers across all types.\nUseful for activity scoring or reputation systems.
459
+ * @format int64
460
+ */
461
+ total_transfers_count: number;
462
+ /**
463
+ * Total number of updates this party has been involved in.
464
+ * @format int64
465
+ */
466
+ total_updates_count: number;
467
+ }
468
+ export interface GetPendingTransactionsFullResponseDTO {
74
469
  items: object[];
75
470
  }
471
+ export interface GetPendingTransactionsResponseDTO {
472
+ items: PendingTransfersResponseDTO[];
473
+ totalAmount: number;
474
+ }
475
+ export interface GetPricesProxyResponseDTO {
476
+ prices: GetPricesResponseDTO;
477
+ ucid: number;
478
+ }
76
479
  export interface GetPricesResponseDTO {
77
480
  current?: string | null;
78
481
  one_day_ago?: string | null;
@@ -99,6 +502,76 @@ export interface GetTransferPreApprovalResponseDTO {
99
502
  receiverId: string;
100
503
  templateId: string;
101
504
  }
505
+ export interface GetTransfersHistoryResponseDTO {
506
+ items: TransferResponseDTO[];
507
+ totalAmount: number;
508
+ }
509
+ export interface GetUpdateHistoryResponseDTO {
510
+ /**
511
+ * List of small subset parties (e.g. 3) that participated in this update.
512
+ * @example "dev_test::122035334a67f4de9d2aecdd5b83485cbaee20682e3f0491bdf12b0a32d81cc93c90"
513
+ */
514
+ acting_parties: string[];
515
+ /**
516
+ * Number of contracts archived in this update.\n\nRepresents the count of contracts that were permanently removed\nfrom the active state. This typically occurs through consuming\nexercises or explicit archiving.
517
+ * @format integer
518
+ * @min 0
519
+ * @example 2
520
+ */
521
+ archived_events: number;
522
+ /**
523
+ * Number of contracts created in this update.\n\nRepresents the count of `CreatedEvent` instances where new contracts\nwere instantiated as part of this transaction.
524
+ * @format integer
525
+ * @min 0
526
+ * @example 1
527
+ */
528
+ created_events: number;
529
+ /**
530
+ * Number of contract exercises performed in this update.\n\nRepresents the count of `ExercisedEvent` instances where contract\nchoices were executed. This includes both consuming and non-consuming\nexercises.
531
+ * @format integer
532
+ * @min 0
533
+ * @example 3
534
+ */
535
+ exercised_events: number;
536
+ /**
537
+ * Identifier for the template migration associated with this update.\n\nIf this update is part of a template migration process, this field\ncontains the migration identifier. A value of 0 typically indicates\nno migration was involved.
538
+ * @format integer
539
+ * @min 0
540
+ * @example 8947
541
+ */
542
+ migration_id: number;
543
+ /**
544
+ * Number of distinct parties involved in this update.\n\nThis count includes all parties that are signatories, observers,\nor otherwise participate in the transaction.
545
+ * @format integer
546
+ * @min 0
547
+ * @example 5
548
+ */
549
+ parties_count: number;
550
+ /**
551
+ * The ledger time when this update was recorded.\n\nThis timestamp represents when the transaction was committed to\nthe ledger, using UTC timezone. It provides the definitive ordering\nof updates within the ledger sequence.
552
+ * @format date-time
553
+ */
554
+ record_time: string;
555
+ /**
556
+ * UpdateId
557
+ * Unique identifier for this update.\n\nThis ID is generated by the Daml ledger and provides a unique\nreference for this specific transaction update.
558
+ * @format byte
559
+ * @pattern ^1220[a-f0-9]{64}$
560
+ * @example "122050503ac262ae61001e430f2ba3ff9b1854b74f78a1a1da1f8f9948640088591f"
561
+ */
562
+ update_id: string;
563
+ /**
564
+ * The **estimated size** of the underlying Daml transaction in **bytes**.
565
+ *
566
+ * This value represents the total byte size of the transaction's payload
567
+ * as stored on the ledger, providing a metric for the complexity
568
+ * and resource consumption of the update.
569
+ * @format integer
570
+ * @min 0
571
+ * @example 9847
572
+ */
573
+ update_size: number;
574
+ }
102
575
  export interface InstructionSummaryDTO {
103
576
  amount: string;
104
577
  contract_id?: string | null;
@@ -135,6 +608,33 @@ export interface PayloadResponseDTO {
135
608
  name: string;
136
609
  subcategory: string;
137
610
  }
611
+ export interface PendingTransfersResponseDTO {
612
+ amount: string;
613
+ coin: "CC" | "CBTC" | "USDCx";
614
+ /** @format date-time */
615
+ createdAt: string;
616
+ /** @format date-time */
617
+ expiredAt: string;
618
+ receiver: string;
619
+ sender: string;
620
+ status: "Pending" | "Accepted" | "Rejected";
621
+ transferCid: string;
622
+ }
623
+ export interface PrepareBatchTransferBodyDTO {
624
+ coin?: "CC" | "CBTC" | "USDCx";
625
+ /** @format date-time */
626
+ expiryDate?: string;
627
+ memo?: string;
628
+ receivers: BatchTransferReceiverItemDTO[];
629
+ sender: string;
630
+ }
631
+ export interface PrepareBatchTransferResponseDTO {
632
+ hashingDetails: string;
633
+ hashingSchemeVersion: string;
634
+ preparedTransaction: string;
635
+ preparedTransactionHash: string;
636
+ submissionId: string;
637
+ }
138
638
  export interface PrepareCancelTransferPreapprovalBodyDTO {
139
639
  contractId: string;
140
640
  partyId: string;
@@ -158,8 +658,16 @@ export interface PrepareExternalPartyBodyDTO {
158
658
  export interface PrepareExternalPartyResponseDTO {
159
659
  preparedParty: PreparedExternalPartyResponseDTO;
160
660
  }
661
+ export interface PrepareMergeDelegationBodyDTO {
662
+ partyId: string;
663
+ }
664
+ export interface PrepareMergeDelegationResponseDTO {
665
+ preparedSubmission: PreparedSubmissionResponseDTO;
666
+ submissionId: string;
667
+ }
161
668
  export interface PrepareResolveTransferBodyDTO {
162
669
  choice: "Accept" | "Reject" | "Withdraw";
670
+ coin?: "CC" | "CBTC" | "USDCx";
163
671
  partyId: string;
164
672
  transferCid: string;
165
673
  }
@@ -169,6 +677,7 @@ export interface PrepareResolveTransferResponseDTO {
169
677
  }
170
678
  export interface PrepareTransferBodyDTO {
171
679
  amount: string;
680
+ coin?: "CC" | "CBTC" | "USDCx";
172
681
  /** @format date-time */
173
682
  expiryDate?: string;
174
683
  memo?: string;
@@ -210,7 +719,12 @@ export interface ProxyBodyDTO {
210
719
  siteName: string;
211
720
  }
212
721
  export interface ProxyIndexerResponseDTO {
722
+ ans_context_list_by_name?: GetAnsContextListEntryDTO[] | null;
723
+ ans_context_list_by_party_id?: GetAnsContextListEntryDTO[] | null;
724
+ ans_list_by_party_id?: GetAnsListEntryDTO[] | null;
213
725
  explore_prices?: GetPricesResponseDTO | null;
726
+ explore_prices_proxy?: GetPricesProxyResponseDTO | null;
727
+ general_search?: GetGeneralSearchResultResponseDTO | null;
214
728
  offers_search?: GetOffersSearchResponseDTO | null;
215
729
  party_details?: GetPartyDetailsResponseDTO | null;
216
730
  token_transfers_by_party?: GetTokenTransfersByPartyResponseDTO | null;
@@ -219,7 +733,7 @@ export interface ProxyIndexerResponseDTO {
219
733
  export interface ProxyRequestDTO {
220
734
  method: "GET" | "POST" | "PUT" | "DELETE";
221
735
  path: string;
222
- pathTemplate: "/explore/prices" | "/offers/search" | "/parties/{party_id}" | "/token-transfers/by-party" | "/api/v1/token-transfers/{event_id}";
736
+ pathTemplate: "/explore/prices" | "/explore/prices-proxy" | "/offers/search" | "/parties/{party_id}" | "/token-transfers/by-party" | "/api/v1/token-transfers/{event_id}" | "/ans/context/list-by-name/{ans}" | "/ans/context/list-by-party/{party_id}" | "/ans/list/{party_id}" | "/general-search";
223
737
  payload?: string;
224
738
  version?: "v1" | "v2";
225
739
  }
@@ -260,6 +774,15 @@ export interface SpentReceiverItemDTO {
260
774
  amount: string;
261
775
  receiver: string;
262
776
  }
777
+ export interface SubmitBatchTransferBodyDTO {
778
+ partyId?: string;
779
+ preparedTransfer: PrepareTransferResponseDTO;
780
+ publicKey: string;
781
+ signature: string;
782
+ }
783
+ export interface SubmitBatchTransferResponseDTO {
784
+ ledgerEnd: number;
785
+ }
263
786
  export interface SubmitCancelTransferPreapprovalBodyDTO {
264
787
  partyId: string;
265
788
  preparedSubmission: PreparedSubmissionBodyDTO;
@@ -289,16 +812,30 @@ export interface SubmitExternalPartyBodyDTO {
289
812
  export interface SubmitExternalPartyResponseDTO {
290
813
  partyId: string;
291
814
  }
815
+ export interface SubmitMergeDelegationBodyDTO {
816
+ partyId: string;
817
+ preparedSubmission: PreparedSubmissionBodyDTO;
818
+ publicKey: string;
819
+ signature: string;
820
+ submissionId: string;
821
+ }
822
+ export interface SubmitMergeDelegationResponseDTO {
823
+ ledgerEnd: number;
824
+ }
292
825
  export interface SubmitResolveTransferBodyDTO {
826
+ choice?: "Accept" | "Reject" | "Withdraw";
827
+ partyId?: string;
293
828
  preparedSubmission: PreparedSubmissionBodyDTO;
294
829
  publicKey: string;
295
830
  signature: string;
296
831
  submissionId: string;
832
+ transferCid?: string;
297
833
  }
298
834
  export interface SubmitResolveTransferResponseDTO {
299
835
  ledgerEnd: number;
300
836
  }
301
837
  export interface SubmitTransferBodyDTO {
838
+ partyId?: string;
302
839
  preparedTransfer: PrepareTransferResponseDTO;
303
840
  publicKey: string;
304
841
  signature: string;
@@ -359,6 +896,21 @@ export interface TransferPreApprovedInstructionDTO {
359
896
  spent: SpentDTO;
360
897
  summary: InstructionSummaryDTO;
361
898
  }
899
+ export interface TransferResponseDTO {
900
+ amount: string;
901
+ coin: "CC" | "CBTC" | "USDCx";
902
+ contractId?: string | null;
903
+ /** @format date-time */
904
+ createdAt: string;
905
+ holdingFee: string;
906
+ id: number;
907
+ outputFee: string;
908
+ receiver: string;
909
+ sender: string;
910
+ senderFee: string;
911
+ status: "Pending" | "Accepted" | "Rejected";
912
+ type: "Instruction" | "Transfer";
913
+ }
362
914
  export interface TransferStepDTO {
363
915
  event_id: string;
364
916
  record_time: string;
@@ -488,6 +1040,32 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
488
1040
  * @request POST:/api/v1/invitations/verification
489
1041
  */
490
1042
  invitationsControllerVerifyInvitation: (data: VerifyInvitationBodyDTO, params?: RequestParams) => Promise<VerifyInvitationResponseDTO>;
1043
+ /**
1044
+ * No description
1045
+ *
1046
+ * @tags token-standard/merge-delegation
1047
+ * @name MergeDelegationControllerGetMergeUtxosStatus
1048
+ * @request GET:/api/v1/token-standard/merge-delegation/status
1049
+ */
1050
+ mergeDelegationControllerGetMergeUtxosStatus: (query: {
1051
+ partyId: string;
1052
+ }, params?: RequestParams) => Promise<GetMergeUtxosStatusResponseDTO>;
1053
+ /**
1054
+ * No description
1055
+ *
1056
+ * @tags token-standard/merge-delegation
1057
+ * @name MergeDelegationControllerPrepareMergeDelegation
1058
+ * @request POST:/api/v1/token-standard/merge-delegation/prepare
1059
+ */
1060
+ mergeDelegationControllerPrepareMergeDelegation: (data: PrepareMergeDelegationBodyDTO, params?: RequestParams) => Promise<PrepareMergeDelegationResponseDTO>;
1061
+ /**
1062
+ * No description
1063
+ *
1064
+ * @tags token-standard/merge-delegation
1065
+ * @name MergeDelegationControllerSubmitMergeDelegation
1066
+ * @request POST:/api/v1/token-standard/merge-delegation/submit
1067
+ */
1068
+ mergeDelegationControllerSubmitMergeDelegation: (data: SubmitMergeDelegationBodyDTO, params?: RequestParams) => Promise<SubmitMergeDelegationResponseDTO>;
491
1069
  /**
492
1070
  * No description
493
1071
  *
@@ -495,7 +1073,7 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
495
1073
  * @name ProxyIndexerControllerProxyLegacy
496
1074
  * @request POST:/api/v1/proxy/indexer
497
1075
  */
498
- proxyIndexerControllerProxyLegacy: (data: ProxyRequestDTO, params?: RequestParams) => Promise<GetOffersSearchResponseDTO | GetPartyDetailsResponseDTO | GetPricesResponseDTO | GetTokenTransfersByPartyResponseDTO | GetTransferDetailsResponseDTO>;
1076
+ proxyIndexerControllerProxyLegacy: (data: ProxyRequestDTO, params?: RequestParams) => Promise<GetAnsContextListEntryDTO | GetAnsListEntryDTO | GetGeneralSearchResultResponseDTO | GetOffersSearchResponseDTO | GetPartyDetailsResponseDTO | GetPricesProxyResponseDTO | GetPricesResponseDTO | GetTokenTransfersByPartyResponseDTO | GetTransferDetailsResponseDTO>;
499
1077
  /**
500
1078
  * No description
501
1079
  *
@@ -504,6 +1082,14 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
504
1082
  * @request POST:/api/v1/proxy/indexer/mapped
505
1083
  */
506
1084
  proxyIndexerControllerProxyMapped: (data: ProxyRequestDTO, params?: RequestParams) => Promise<ProxyIndexerResponseDTO>;
1085
+ /**
1086
+ * No description
1087
+ *
1088
+ * @tags proxy
1089
+ * @name ProxyPriceApiControllerProxy
1090
+ * @request POST:/api/v1/proxy/price
1091
+ */
1092
+ proxyPriceApiControllerProxy: (data: CryptoAPIProxyBodyDTO, params?: RequestParams) => Promise<any>;
507
1093
  /**
508
1094
  * No description
509
1095
  *
@@ -552,6 +1138,16 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
552
1138
  * @request POST:/api/v1/token-standard/tap
553
1139
  */
554
1140
  tokenStandardControllerCreateTap: (data: CreateTapDTO, params?: RequestParams) => Promise<void>;
1141
+ /**
1142
+ * No description
1143
+ *
1144
+ * @tags token-standard
1145
+ * @name TokenStandardControllerGetBalances
1146
+ * @request GET:/api/v1/token-standard/balances
1147
+ */
1148
+ tokenStandardControllerGetBalances: (query: {
1149
+ partyId: string;
1150
+ }, params?: RequestParams) => Promise<CoinsBalancesResponseDTO>;
555
1151
  /**
556
1152
  * No description
557
1153
  *
@@ -560,8 +1156,38 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
560
1156
  * @request GET:/api/v1/token-standard/transactions/pending
561
1157
  */
562
1158
  tokenStandardControllerGetPendingTransactions: (query: {
1159
+ /**
1160
+ * @min 0
1161
+ * @example 10
1162
+ */
1163
+ limit?: number;
1164
+ /**
1165
+ * @min 0
1166
+ * @example 0
1167
+ */
1168
+ offset?: number;
563
1169
  partyId: string;
564
1170
  }, params?: RequestParams) => Promise<GetPendingTransactionsResponseDTO>;
1171
+ /**
1172
+ * No description
1173
+ *
1174
+ * @tags token-standard
1175
+ * @name TokenStandardControllerGetPendingTransactionsFull
1176
+ * @request GET:/api/v1/token-standard/transactions/pending/full
1177
+ */
1178
+ tokenStandardControllerGetPendingTransactionsFull: (query: {
1179
+ /**
1180
+ * @min 0
1181
+ * @example 10
1182
+ */
1183
+ limit?: number;
1184
+ /**
1185
+ * @min 0
1186
+ * @example 0
1187
+ */
1188
+ offset?: number;
1189
+ partyId: string;
1190
+ }, params?: RequestParams) => Promise<GetPendingTransactionsFullResponseDTO>;
565
1191
  /**
566
1192
  * No description
567
1193
  *
@@ -576,12 +1202,20 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
576
1202
  * No description
577
1203
  *
578
1204
  * @tags token-standard/transfer
579
- * @name TransferControllerGetTransferPreApproval
1205
+ * @name TransferControllerGetTransferPreApprovalOrFail
580
1206
  * @request GET:/api/v1/token-standard/transfer/pre-approval
581
1207
  */
582
- transferControllerGetTransferPreApproval: (query: {
1208
+ transferControllerGetTransferPreApprovalOrFail: (query: {
583
1209
  partyId: string;
584
1210
  }, params?: RequestParams) => Promise<GetTransferPreApprovalResponseDTO>;
1211
+ /**
1212
+ * No description
1213
+ *
1214
+ * @tags token-standard/transfer
1215
+ * @name TransferControllerPrepareBatchTransfer
1216
+ * @request POST:/api/v1/token-standard/transfer/batch/prepare
1217
+ */
1218
+ transferControllerPrepareBatchTransfer: (data: PrepareBatchTransferBodyDTO, params?: RequestParams) => Promise<PrepareBatchTransferResponseDTO>;
585
1219
  /**
586
1220
  * No description
587
1221
  *
@@ -598,6 +1232,14 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
598
1232
  * @request POST:/api/v1/token-standard/transfer/prepare
599
1233
  */
600
1234
  transferControllerPrepareTransfer: (data: PrepareTransferBodyDTO, params?: RequestParams) => Promise<PrepareTransferResponseDTO>;
1235
+ /**
1236
+ * No description
1237
+ *
1238
+ * @tags token-standard/transfer
1239
+ * @name TransferControllerSubmitBatchTransfer
1240
+ * @request POST:/api/v1/token-standard/transfer/batch/submit
1241
+ */
1242
+ transferControllerSubmitBatchTransfer: (data: SubmitBatchTransferBodyDTO, params?: RequestParams) => Promise<SubmitBatchTransferResponseDTO>;
601
1243
  /**
602
1244
  * No description
603
1245
  *
@@ -626,6 +1268,43 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
626
1268
  ledgerEnd: number;
627
1269
  partyId: string;
628
1270
  }, params?: RequestParams) => Promise<WaitForTxCompletionResponseDTO>;
1271
+ /**
1272
+ * No description
1273
+ *
1274
+ * @tags token-standard/transfer
1275
+ * @name TransferHistoryControllerGetTransfer
1276
+ * @request GET:/api/v1/token-standard/transfer/history/{id}
1277
+ */
1278
+ transferHistoryControllerGetTransfer: (id: number, params?: RequestParams) => Promise<TransferResponseDTO>;
1279
+ /**
1280
+ * No description
1281
+ *
1282
+ * @tags token-standard/transfer
1283
+ * @name TransferHistoryControllerGetTransfers
1284
+ * @request GET:/api/v1/token-standard/transfer/history
1285
+ */
1286
+ transferHistoryControllerGetTransfers: (query: {
1287
+ /** @example "CC" */
1288
+ coin?: "CC" | "CBTC" | "USDCx";
1289
+ filter?: "ALL" | "Pending" | "Accepted" | "Rejected";
1290
+ /**
1291
+ * @min 0
1292
+ * @example 10
1293
+ */
1294
+ limit?: number;
1295
+ /**
1296
+ * @min 0
1297
+ * @example 0
1298
+ */
1299
+ offset?: number;
1300
+ partyId: string;
1301
+ /** A party id of a receiver to filter transactions. Optional */
1302
+ receiver?: string;
1303
+ /** A party id of the sender to filter transactions. Optional */
1304
+ sender?: string;
1305
+ sortBy?: "createdAt";
1306
+ sortDirection?: "ASC" | "DESC";
1307
+ }, params?: RequestParams) => Promise<GetTransfersHistoryResponseDTO>;
629
1308
  /**
630
1309
  * No description
631
1310
  *