@console-wallet/dapp-sdk 1.1.0 → 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.
- package/CHANGELOG.md +237 -1
- package/README.md +1 -0
- package/dist/cjs/api/client.api.d.ts +10 -3
- package/dist/cjs/api/generated-wallet-api.d.ts +497 -6
- package/dist/cjs/api/generated-wallet-api.js +17 -2
- package/dist/cjs/api/generated-wallet-api.js.map +1 -1
- package/dist/cjs/helpers/handleResponce.helper.d.ts +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/requests/index.d.ts +1 -0
- package/dist/cjs/requests/index.js +1 -0
- package/dist/cjs/requests/index.js.map +1 -1
- package/dist/cjs/requests/singBatch.d.ts +13 -0
- package/dist/cjs/requests/singBatch.js +35 -0
- package/dist/cjs/requests/singBatch.js.map +1 -0
- package/dist/cjs/types/communication.types.d.ts +1 -0
- package/dist/cjs/types/communication.types.js +1 -0
- package/dist/cjs/types/communication.types.js.map +1 -1
- package/dist/cjs/types/signed.type.d.ts +53 -12
- package/dist/cjs/types/signed.type.js +19 -3
- package/dist/cjs/types/signed.type.js.map +1 -1
- package/dist/esm/api/client.api.d.ts +10 -3
- package/dist/esm/api/generated-wallet-api.d.ts +497 -6
- package/dist/esm/api/generated-wallet-api.js +17 -2
- package/dist/esm/api/generated-wallet-api.js.map +1 -1
- package/dist/esm/helpers/handleResponce.helper.d.ts +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/requests/index.d.ts +1 -0
- package/dist/esm/requests/index.js +1 -0
- package/dist/esm/requests/index.js.map +1 -1
- package/dist/esm/requests/singBatch.d.ts +13 -0
- package/dist/esm/requests/singBatch.js +31 -0
- package/dist/esm/requests/singBatch.js.map +1 -0
- package/dist/esm/types/communication.types.d.ts +1 -0
- package/dist/esm/types/communication.types.js +1 -0
- package/dist/esm/types/communication.types.js.map +1 -1
- package/dist/esm/types/signed.type.d.ts +53 -12
- package/dist/esm/types/signed.type.js +18 -2
- package/dist/esm/types/signed.type.js.map +1 -1
- package/package.json +1 -1
|
@@ -54,6 +54,147 @@ export interface CreateTapDTO {
|
|
|
54
54
|
partyId: string;
|
|
55
55
|
privateKey: string;
|
|
56
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
|
+
}
|
|
57
198
|
export interface GetMergeUtxosStatusResponseDTO {
|
|
58
199
|
isMergeUtxosEnabled: boolean;
|
|
59
200
|
}
|
|
@@ -61,6 +202,38 @@ export interface GetOffersSearchResponseDTO {
|
|
|
61
202
|
data: OfferDTO[];
|
|
62
203
|
next_cursor?: string | null;
|
|
63
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
|
+
}
|
|
64
237
|
export interface GetPartyDetailsResponseDTO {
|
|
65
238
|
amulets: AmuletDTO;
|
|
66
239
|
balance: BalanceDTO;
|
|
@@ -84,11 +257,224 @@ export interface GetPartyDetailsResponseDTO {
|
|
|
84
257
|
total_transfers_count: number;
|
|
85
258
|
validator_license: ValidatorLicenseDTO;
|
|
86
259
|
}
|
|
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
|
+
}
|
|
87
468
|
export interface GetPendingTransactionsFullResponseDTO {
|
|
88
469
|
items: object[];
|
|
89
470
|
}
|
|
90
471
|
export interface GetPendingTransactionsResponseDTO {
|
|
91
472
|
items: PendingTransfersResponseDTO[];
|
|
473
|
+
totalAmount: number;
|
|
474
|
+
}
|
|
475
|
+
export interface GetPricesProxyResponseDTO {
|
|
476
|
+
prices: GetPricesResponseDTO;
|
|
477
|
+
ucid: number;
|
|
92
478
|
}
|
|
93
479
|
export interface GetPricesResponseDTO {
|
|
94
480
|
current?: string | null;
|
|
@@ -120,6 +506,72 @@ export interface GetTransfersHistoryResponseDTO {
|
|
|
120
506
|
items: TransferResponseDTO[];
|
|
121
507
|
totalAmount: number;
|
|
122
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
|
+
}
|
|
123
575
|
export interface InstructionSummaryDTO {
|
|
124
576
|
amount: string;
|
|
125
577
|
contract_id?: string | null;
|
|
@@ -169,6 +621,7 @@ export interface PendingTransfersResponseDTO {
|
|
|
169
621
|
transferCid: string;
|
|
170
622
|
}
|
|
171
623
|
export interface PrepareBatchTransferBodyDTO {
|
|
624
|
+
coin?: "CC" | "CBTC" | "USDCx";
|
|
172
625
|
/** @format date-time */
|
|
173
626
|
expiryDate?: string;
|
|
174
627
|
memo?: string;
|
|
@@ -266,7 +719,12 @@ export interface ProxyBodyDTO {
|
|
|
266
719
|
siteName: string;
|
|
267
720
|
}
|
|
268
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;
|
|
269
725
|
explore_prices?: GetPricesResponseDTO | null;
|
|
726
|
+
explore_prices_proxy?: GetPricesProxyResponseDTO | null;
|
|
727
|
+
general_search?: GetGeneralSearchResultResponseDTO | null;
|
|
270
728
|
offers_search?: GetOffersSearchResponseDTO | null;
|
|
271
729
|
party_details?: GetPartyDetailsResponseDTO | null;
|
|
272
730
|
token_transfers_by_party?: GetTokenTransfersByPartyResponseDTO | null;
|
|
@@ -275,7 +733,7 @@ export interface ProxyIndexerResponseDTO {
|
|
|
275
733
|
export interface ProxyRequestDTO {
|
|
276
734
|
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
277
735
|
path: string;
|
|
278
|
-
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";
|
|
279
737
|
payload?: string;
|
|
280
738
|
version?: "v1" | "v2";
|
|
281
739
|
}
|
|
@@ -317,6 +775,7 @@ export interface SpentReceiverItemDTO {
|
|
|
317
775
|
receiver: string;
|
|
318
776
|
}
|
|
319
777
|
export interface SubmitBatchTransferBodyDTO {
|
|
778
|
+
partyId?: string;
|
|
320
779
|
preparedTransfer: PrepareTransferResponseDTO;
|
|
321
780
|
publicKey: string;
|
|
322
781
|
signature: string;
|
|
@@ -440,7 +899,7 @@ export interface TransferPreApprovedInstructionDTO {
|
|
|
440
899
|
export interface TransferResponseDTO {
|
|
441
900
|
amount: string;
|
|
442
901
|
coin: "CC" | "CBTC" | "USDCx";
|
|
443
|
-
contractId
|
|
902
|
+
contractId?: string | null;
|
|
444
903
|
/** @format date-time */
|
|
445
904
|
createdAt: string;
|
|
446
905
|
holdingFee: string;
|
|
@@ -614,7 +1073,7 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
|
|
|
614
1073
|
* @name ProxyIndexerControllerProxyLegacy
|
|
615
1074
|
* @request POST:/api/v1/proxy/indexer
|
|
616
1075
|
*/
|
|
617
|
-
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>;
|
|
618
1077
|
/**
|
|
619
1078
|
* No description
|
|
620
1079
|
*
|
|
@@ -623,6 +1082,14 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
|
|
|
623
1082
|
* @request POST:/api/v1/proxy/indexer/mapped
|
|
624
1083
|
*/
|
|
625
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>;
|
|
626
1093
|
/**
|
|
627
1094
|
* No description
|
|
628
1095
|
*
|
|
@@ -689,6 +1156,16 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
|
|
|
689
1156
|
* @request GET:/api/v1/token-standard/transactions/pending
|
|
690
1157
|
*/
|
|
691
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;
|
|
692
1169
|
partyId: string;
|
|
693
1170
|
}, params?: RequestParams) => Promise<GetPendingTransactionsResponseDTO>;
|
|
694
1171
|
/**
|
|
@@ -699,6 +1176,16 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
|
|
|
699
1176
|
* @request GET:/api/v1/token-standard/transactions/pending/full
|
|
700
1177
|
*/
|
|
701
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;
|
|
702
1189
|
partyId: string;
|
|
703
1190
|
}, params?: RequestParams) => Promise<GetPendingTransactionsFullResponseDTO>;
|
|
704
1191
|
/**
|
|
@@ -715,10 +1202,10 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
|
|
|
715
1202
|
* No description
|
|
716
1203
|
*
|
|
717
1204
|
* @tags token-standard/transfer
|
|
718
|
-
* @name
|
|
1205
|
+
* @name TransferControllerGetTransferPreApprovalOrFail
|
|
719
1206
|
* @request GET:/api/v1/token-standard/transfer/pre-approval
|
|
720
1207
|
*/
|
|
721
|
-
|
|
1208
|
+
transferControllerGetTransferPreApprovalOrFail: (query: {
|
|
722
1209
|
partyId: string;
|
|
723
1210
|
}, params?: RequestParams) => Promise<GetTransferPreApprovalResponseDTO>;
|
|
724
1211
|
/**
|
|
@@ -798,7 +1285,7 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
|
|
|
798
1285
|
*/
|
|
799
1286
|
transferHistoryControllerGetTransfers: (query: {
|
|
800
1287
|
/** @example "CC" */
|
|
801
|
-
coin
|
|
1288
|
+
coin?: "CC" | "CBTC" | "USDCx";
|
|
802
1289
|
filter?: "ALL" | "Pending" | "Accepted" | "Rejected";
|
|
803
1290
|
/**
|
|
804
1291
|
* @min 0
|
|
@@ -811,6 +1298,10 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
|
|
|
811
1298
|
*/
|
|
812
1299
|
offset?: number;
|
|
813
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;
|
|
814
1305
|
sortBy?: "createdAt";
|
|
815
1306
|
sortDirection?: "ASC" | "DESC";
|
|
816
1307
|
}, params?: RequestParams) => Promise<GetTransfersHistoryResponseDTO>;
|
|
@@ -253,6 +253,21 @@ class WalletApi extends HttpClient {
|
|
|
253
253
|
format: "json",
|
|
254
254
|
...params,
|
|
255
255
|
}),
|
|
256
|
+
/**
|
|
257
|
+
* No description
|
|
258
|
+
*
|
|
259
|
+
* @tags proxy
|
|
260
|
+
* @name ProxyPriceApiControllerProxy
|
|
261
|
+
* @request POST:/api/v1/proxy/price
|
|
262
|
+
*/
|
|
263
|
+
proxyPriceApiControllerProxy: (data, params = {}) => this.request({
|
|
264
|
+
path: `/api/v1/proxy/price`,
|
|
265
|
+
method: "POST",
|
|
266
|
+
body: data,
|
|
267
|
+
type: ContentType.Json,
|
|
268
|
+
format: "json",
|
|
269
|
+
...params,
|
|
270
|
+
}),
|
|
256
271
|
/**
|
|
257
272
|
* No description
|
|
258
273
|
*
|
|
@@ -397,10 +412,10 @@ class WalletApi extends HttpClient {
|
|
|
397
412
|
* No description
|
|
398
413
|
*
|
|
399
414
|
* @tags token-standard/transfer
|
|
400
|
-
* @name
|
|
415
|
+
* @name TransferControllerGetTransferPreApprovalOrFail
|
|
401
416
|
* @request GET:/api/v1/token-standard/transfer/pre-approval
|
|
402
417
|
*/
|
|
403
|
-
|
|
418
|
+
transferControllerGetTransferPreApprovalOrFail: (query, params = {}) => this.request({
|
|
404
419
|
path: `/api/v1/token-standard/transfer/pre-approval`,
|
|
405
420
|
method: "GET",
|
|
406
421
|
query: query,
|