@dfns/sdk 0.5.6 → 0.5.7
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/generated/auth/types.d.ts +28 -1
- package/generated/exchanges/client.d.ts +1 -0
- package/generated/exchanges/client.js +11 -0
- package/generated/exchanges/delegatedClient.d.ts +1 -0
- package/generated/exchanges/delegatedClient.js +11 -0
- package/generated/exchanges/types.d.ts +67 -29
- package/generated/policies/types.d.ts +69 -0
- package/generated/wallets/types.d.ts +91 -2
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type BroadcastTransactionBody = {
|
|
2
2
|
kind: "Transaction";
|
|
3
3
|
transaction: string;
|
|
4
|
+
externalId?: string | undefined;
|
|
4
5
|
} | {
|
|
5
6
|
kind: "Evm";
|
|
6
7
|
to?: string | undefined;
|
|
@@ -8,6 +9,7 @@ export type BroadcastTransactionBody = {
|
|
|
8
9
|
data?: string | undefined;
|
|
9
10
|
nonce?: (number | string | string) | undefined;
|
|
10
11
|
gasLimit?: (string | string) | undefined;
|
|
12
|
+
externalId?: string | undefined;
|
|
11
13
|
} | {
|
|
12
14
|
kind: "Eip1559";
|
|
13
15
|
to?: string | undefined;
|
|
@@ -17,6 +19,7 @@ export type BroadcastTransactionBody = {
|
|
|
17
19
|
gasLimit?: (string | string) | undefined;
|
|
18
20
|
maxFeePerGas?: (string | string) | undefined;
|
|
19
21
|
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
22
|
+
externalId?: string | undefined;
|
|
20
23
|
} | {
|
|
21
24
|
kind: "EvmLegacy";
|
|
22
25
|
to?: string | undefined;
|
|
@@ -25,9 +28,11 @@ export type BroadcastTransactionBody = {
|
|
|
25
28
|
nonce?: (number | string | string) | undefined;
|
|
26
29
|
gasLimit?: (string | string) | undefined;
|
|
27
30
|
gasPrice?: (string | string) | undefined;
|
|
31
|
+
externalId?: string | undefined;
|
|
28
32
|
} | {
|
|
29
33
|
kind: "Psbt";
|
|
30
34
|
psbt: string;
|
|
35
|
+
externalId?: string | undefined;
|
|
31
36
|
};
|
|
32
37
|
export type BroadcastTransactionParams = {
|
|
33
38
|
walletId: string;
|
|
@@ -44,6 +49,7 @@ export type BroadcastTransactionResponse = {
|
|
|
44
49
|
requestBody: {
|
|
45
50
|
kind: "Transaction";
|
|
46
51
|
transaction: string;
|
|
52
|
+
externalId?: string | undefined;
|
|
47
53
|
} | {
|
|
48
54
|
kind: "Evm";
|
|
49
55
|
to?: string | undefined;
|
|
@@ -51,6 +57,7 @@ export type BroadcastTransactionResponse = {
|
|
|
51
57
|
data?: string | undefined;
|
|
52
58
|
nonce?: (number | string | string) | undefined;
|
|
53
59
|
gasLimit?: (string | string) | undefined;
|
|
60
|
+
externalId?: string | undefined;
|
|
54
61
|
} | {
|
|
55
62
|
kind: "Eip1559";
|
|
56
63
|
to?: string | undefined;
|
|
@@ -60,6 +67,7 @@ export type BroadcastTransactionResponse = {
|
|
|
60
67
|
gasLimit?: (string | string) | undefined;
|
|
61
68
|
maxFeePerGas?: (string | string) | undefined;
|
|
62
69
|
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
70
|
+
externalId?: string | undefined;
|
|
63
71
|
} | {
|
|
64
72
|
kind: "EvmLegacy";
|
|
65
73
|
to?: string | undefined;
|
|
@@ -68,9 +76,11 @@ export type BroadcastTransactionResponse = {
|
|
|
68
76
|
nonce?: (number | string | string) | undefined;
|
|
69
77
|
gasLimit?: (string | string) | undefined;
|
|
70
78
|
gasPrice?: (string | string) | undefined;
|
|
79
|
+
externalId?: string | undefined;
|
|
71
80
|
} | {
|
|
72
81
|
kind: "Psbt";
|
|
73
82
|
psbt: string;
|
|
83
|
+
externalId?: string | undefined;
|
|
74
84
|
};
|
|
75
85
|
status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
|
|
76
86
|
reason?: string | undefined;
|
|
@@ -81,12 +91,13 @@ export type BroadcastTransactionResponse = {
|
|
|
81
91
|
datePolicyResolved?: string | undefined;
|
|
82
92
|
dateBroadcasted?: string | undefined;
|
|
83
93
|
dateConfirmed?: string | undefined;
|
|
94
|
+
externalId?: string | undefined;
|
|
84
95
|
};
|
|
85
96
|
export type BroadcastTransactionRequest = BroadcastTransactionParams & {
|
|
86
97
|
body: BroadcastTransactionBody;
|
|
87
98
|
};
|
|
88
99
|
export type CreateWalletBody = {
|
|
89
|
-
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "
|
|
100
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kaspa" | "KaspaTestnet11" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
90
101
|
name?: string | undefined;
|
|
91
102
|
delegateTo?: string | undefined;
|
|
92
103
|
delayDelegation?: boolean | undefined;
|
|
@@ -158,12 +169,15 @@ export type ExportWalletRequest = ExportWalletParams & {
|
|
|
158
169
|
export type GenerateSignatureBody = {
|
|
159
170
|
kind: "Hash";
|
|
160
171
|
hash: string;
|
|
172
|
+
externalId?: string | undefined;
|
|
161
173
|
} | {
|
|
162
174
|
kind: "Message";
|
|
163
175
|
message: string;
|
|
176
|
+
externalId?: string | undefined;
|
|
164
177
|
} | {
|
|
165
178
|
kind: "Transaction";
|
|
166
179
|
transaction: string;
|
|
180
|
+
externalId?: string | undefined;
|
|
167
181
|
} | {
|
|
168
182
|
kind: "Eip712";
|
|
169
183
|
types: {
|
|
@@ -182,9 +196,11 @@ export type GenerateSignatureBody = {
|
|
|
182
196
|
message: {
|
|
183
197
|
[x: string]: unknown;
|
|
184
198
|
};
|
|
199
|
+
externalId?: string | undefined;
|
|
185
200
|
} | {
|
|
186
201
|
kind: "Psbt";
|
|
187
202
|
psbt: string;
|
|
203
|
+
externalId?: string | undefined;
|
|
188
204
|
};
|
|
189
205
|
export type GenerateSignatureParams = {
|
|
190
206
|
walletId: string;
|
|
@@ -201,12 +217,15 @@ export type GenerateSignatureResponse = {
|
|
|
201
217
|
requestBody: {
|
|
202
218
|
kind: "Hash";
|
|
203
219
|
hash: string;
|
|
220
|
+
externalId?: string | undefined;
|
|
204
221
|
} | {
|
|
205
222
|
kind: "Message";
|
|
206
223
|
message: string;
|
|
224
|
+
externalId?: string | undefined;
|
|
207
225
|
} | {
|
|
208
226
|
kind: "Transaction";
|
|
209
227
|
transaction: string;
|
|
228
|
+
externalId?: string | undefined;
|
|
210
229
|
} | {
|
|
211
230
|
kind: "Eip712";
|
|
212
231
|
types: {
|
|
@@ -225,9 +244,11 @@ export type GenerateSignatureResponse = {
|
|
|
225
244
|
message: {
|
|
226
245
|
[x: string]: unknown;
|
|
227
246
|
};
|
|
247
|
+
externalId?: string | undefined;
|
|
228
248
|
} | {
|
|
229
249
|
kind: "Psbt";
|
|
230
250
|
psbt: string;
|
|
251
|
+
externalId?: string | undefined;
|
|
231
252
|
};
|
|
232
253
|
status: "Pending" | "Executing" | "Signed" | "Confirmed" | "Failed" | "Rejected";
|
|
233
254
|
reason?: string | undefined;
|
|
@@ -251,6 +272,7 @@ export type GenerateSignatureResponse = {
|
|
|
251
272
|
datePolicyResolved?: string | undefined;
|
|
252
273
|
dateSigned?: string | undefined;
|
|
253
274
|
dateConfirmed?: string | undefined;
|
|
275
|
+
externalId?: string | undefined;
|
|
254
276
|
};
|
|
255
277
|
export type GenerateSignatureRequest = GenerateSignatureParams & {
|
|
256
278
|
body: GenerateSignatureBody;
|
|
@@ -271,12 +293,15 @@ export type GetSignatureResponse = {
|
|
|
271
293
|
requestBody: {
|
|
272
294
|
kind: "Hash";
|
|
273
295
|
hash: string;
|
|
296
|
+
externalId?: string | undefined;
|
|
274
297
|
} | {
|
|
275
298
|
kind: "Message";
|
|
276
299
|
message: string;
|
|
300
|
+
externalId?: string | undefined;
|
|
277
301
|
} | {
|
|
278
302
|
kind: "Transaction";
|
|
279
303
|
transaction: string;
|
|
304
|
+
externalId?: string | undefined;
|
|
280
305
|
} | {
|
|
281
306
|
kind: "Eip712";
|
|
282
307
|
types: {
|
|
@@ -295,9 +320,11 @@ export type GetSignatureResponse = {
|
|
|
295
320
|
message: {
|
|
296
321
|
[x: string]: unknown;
|
|
297
322
|
};
|
|
323
|
+
externalId?: string | undefined;
|
|
298
324
|
} | {
|
|
299
325
|
kind: "Psbt";
|
|
300
326
|
psbt: string;
|
|
327
|
+
externalId?: string | undefined;
|
|
301
328
|
};
|
|
302
329
|
status: "Pending" | "Executing" | "Signed" | "Confirmed" | "Failed" | "Rejected";
|
|
303
330
|
reason?: string | undefined;
|
|
@@ -321,6 +348,7 @@ export type GetSignatureResponse = {
|
|
|
321
348
|
datePolicyResolved?: string | undefined;
|
|
322
349
|
dateSigned?: string | undefined;
|
|
323
350
|
dateConfirmed?: string | undefined;
|
|
351
|
+
externalId?: string | undefined;
|
|
324
352
|
};
|
|
325
353
|
export type GetSignatureRequest = GetSignatureParams;
|
|
326
354
|
export type GetTransactionParams = {
|
|
@@ -339,6 +367,7 @@ export type GetTransactionResponse = {
|
|
|
339
367
|
requestBody: {
|
|
340
368
|
kind: "Transaction";
|
|
341
369
|
transaction: string;
|
|
370
|
+
externalId?: string | undefined;
|
|
342
371
|
} | {
|
|
343
372
|
kind: "Evm";
|
|
344
373
|
to?: string | undefined;
|
|
@@ -346,6 +375,7 @@ export type GetTransactionResponse = {
|
|
|
346
375
|
data?: string | undefined;
|
|
347
376
|
nonce?: (number | string | string) | undefined;
|
|
348
377
|
gasLimit?: (string | string) | undefined;
|
|
378
|
+
externalId?: string | undefined;
|
|
349
379
|
} | {
|
|
350
380
|
kind: "Eip1559";
|
|
351
381
|
to?: string | undefined;
|
|
@@ -355,6 +385,7 @@ export type GetTransactionResponse = {
|
|
|
355
385
|
gasLimit?: (string | string) | undefined;
|
|
356
386
|
maxFeePerGas?: (string | string) | undefined;
|
|
357
387
|
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
388
|
+
externalId?: string | undefined;
|
|
358
389
|
} | {
|
|
359
390
|
kind: "EvmLegacy";
|
|
360
391
|
to?: string | undefined;
|
|
@@ -363,9 +394,11 @@ export type GetTransactionResponse = {
|
|
|
363
394
|
nonce?: (number | string | string) | undefined;
|
|
364
395
|
gasLimit?: (string | string) | undefined;
|
|
365
396
|
gasPrice?: (string | string) | undefined;
|
|
397
|
+
externalId?: string | undefined;
|
|
366
398
|
} | {
|
|
367
399
|
kind: "Psbt";
|
|
368
400
|
psbt: string;
|
|
401
|
+
externalId?: string | undefined;
|
|
369
402
|
};
|
|
370
403
|
status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
|
|
371
404
|
reason?: string | undefined;
|
|
@@ -376,6 +409,7 @@ export type GetTransactionResponse = {
|
|
|
376
409
|
datePolicyResolved?: string | undefined;
|
|
377
410
|
dateBroadcasted?: string | undefined;
|
|
378
411
|
dateConfirmed?: string | undefined;
|
|
412
|
+
externalId?: string | undefined;
|
|
379
413
|
};
|
|
380
414
|
export type GetTransactionRequest = GetTransactionParams;
|
|
381
415
|
export type GetTransferParams = {
|
|
@@ -397,38 +431,45 @@ export type GetTransferResponse = {
|
|
|
397
431
|
amount: string;
|
|
398
432
|
memo?: string | undefined;
|
|
399
433
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
434
|
+
externalId?: string | undefined;
|
|
400
435
|
} | {
|
|
401
436
|
kind: "Erc20";
|
|
402
437
|
contract: string;
|
|
403
438
|
to: string;
|
|
404
439
|
amount: string;
|
|
405
440
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
441
|
+
externalId?: string | undefined;
|
|
406
442
|
} | {
|
|
407
443
|
kind: "Erc721";
|
|
408
444
|
contract: string;
|
|
409
445
|
to: string;
|
|
410
446
|
tokenId: string;
|
|
411
447
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
448
|
+
externalId?: string | undefined;
|
|
412
449
|
} | {
|
|
413
450
|
kind: "Trc10";
|
|
414
451
|
tokenId: string;
|
|
415
452
|
to: string;
|
|
416
453
|
amount: string;
|
|
454
|
+
externalId?: string | undefined;
|
|
417
455
|
} | {
|
|
418
456
|
kind: "Trc20";
|
|
419
457
|
contract: string;
|
|
420
458
|
to: string;
|
|
421
459
|
amount: string;
|
|
460
|
+
externalId?: string | undefined;
|
|
422
461
|
} | {
|
|
423
462
|
kind: "Trc721";
|
|
424
463
|
contract: string;
|
|
425
464
|
to: string;
|
|
426
465
|
tokenId: string;
|
|
466
|
+
externalId?: string | undefined;
|
|
427
467
|
} | {
|
|
428
468
|
kind: "Asa";
|
|
429
469
|
assetId: string;
|
|
430
470
|
to: string;
|
|
431
471
|
amount: string;
|
|
472
|
+
externalId?: string | undefined;
|
|
432
473
|
} | {
|
|
433
474
|
kind: "Sep41";
|
|
434
475
|
issuer: string;
|
|
@@ -436,18 +477,21 @@ export type GetTransferResponse = {
|
|
|
436
477
|
to: string;
|
|
437
478
|
amount: string;
|
|
438
479
|
memo?: string | undefined;
|
|
480
|
+
externalId?: string | undefined;
|
|
439
481
|
} | {
|
|
440
482
|
kind: "Spl" | "Spl2022";
|
|
441
483
|
to: string;
|
|
442
484
|
amount: string;
|
|
443
485
|
mint: string;
|
|
444
486
|
createDestinationAccount?: boolean | undefined;
|
|
487
|
+
externalId?: string | undefined;
|
|
445
488
|
} | {
|
|
446
489
|
kind: "Tep74";
|
|
447
490
|
to: string;
|
|
448
491
|
master: string;
|
|
449
492
|
amount: string;
|
|
450
493
|
memo?: string | undefined;
|
|
494
|
+
externalId?: string | undefined;
|
|
451
495
|
};
|
|
452
496
|
metadata: {
|
|
453
497
|
asset: {
|
|
@@ -468,6 +512,7 @@ export type GetTransferResponse = {
|
|
|
468
512
|
dateBroadcasted?: string | undefined;
|
|
469
513
|
dateConfirmed?: string | undefined;
|
|
470
514
|
approvalId?: string | undefined;
|
|
515
|
+
externalId?: string | undefined;
|
|
471
516
|
};
|
|
472
517
|
export type GetTransferRequest = GetTransferParams;
|
|
473
518
|
export type GetWalletParams = {
|
|
@@ -944,7 +989,7 @@ export type GetWalletNftsResponse = {
|
|
|
944
989
|
};
|
|
945
990
|
export type GetWalletNftsRequest = GetWalletNftsParams;
|
|
946
991
|
export type ImportWalletBody = {
|
|
947
|
-
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "
|
|
992
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kaspa" | "KaspaTestnet11" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
948
993
|
name?: string | undefined;
|
|
949
994
|
externalId?: string | undefined;
|
|
950
995
|
curve: "ed25519" | "secp256k1" | "stark";
|
|
@@ -998,12 +1043,15 @@ export type ListSignaturesResponse = {
|
|
|
998
1043
|
requestBody: {
|
|
999
1044
|
kind: "Hash";
|
|
1000
1045
|
hash: string;
|
|
1046
|
+
externalId?: string | undefined;
|
|
1001
1047
|
} | {
|
|
1002
1048
|
kind: "Message";
|
|
1003
1049
|
message: string;
|
|
1050
|
+
externalId?: string | undefined;
|
|
1004
1051
|
} | {
|
|
1005
1052
|
kind: "Transaction";
|
|
1006
1053
|
transaction: string;
|
|
1054
|
+
externalId?: string | undefined;
|
|
1007
1055
|
} | {
|
|
1008
1056
|
kind: "Eip712";
|
|
1009
1057
|
types: {
|
|
@@ -1022,9 +1070,11 @@ export type ListSignaturesResponse = {
|
|
|
1022
1070
|
message: {
|
|
1023
1071
|
[x: string]: unknown;
|
|
1024
1072
|
};
|
|
1073
|
+
externalId?: string | undefined;
|
|
1025
1074
|
} | {
|
|
1026
1075
|
kind: "Psbt";
|
|
1027
1076
|
psbt: string;
|
|
1077
|
+
externalId?: string | undefined;
|
|
1028
1078
|
};
|
|
1029
1079
|
status: "Pending" | "Executing" | "Signed" | "Confirmed" | "Failed" | "Rejected";
|
|
1030
1080
|
reason?: string | undefined;
|
|
@@ -1048,6 +1098,7 @@ export type ListSignaturesResponse = {
|
|
|
1048
1098
|
datePolicyResolved?: string | undefined;
|
|
1049
1099
|
dateSigned?: string | undefined;
|
|
1050
1100
|
dateConfirmed?: string | undefined;
|
|
1101
|
+
externalId?: string | undefined;
|
|
1051
1102
|
}[];
|
|
1052
1103
|
nextPageToken?: string | undefined;
|
|
1053
1104
|
};
|
|
@@ -1075,6 +1126,7 @@ export type ListTransactionsResponse = {
|
|
|
1075
1126
|
requestBody: {
|
|
1076
1127
|
kind: "Transaction";
|
|
1077
1128
|
transaction: string;
|
|
1129
|
+
externalId?: string | undefined;
|
|
1078
1130
|
} | {
|
|
1079
1131
|
kind: "Evm";
|
|
1080
1132
|
to?: string | undefined;
|
|
@@ -1082,6 +1134,7 @@ export type ListTransactionsResponse = {
|
|
|
1082
1134
|
data?: string | undefined;
|
|
1083
1135
|
nonce?: (number | string | string) | undefined;
|
|
1084
1136
|
gasLimit?: (string | string) | undefined;
|
|
1137
|
+
externalId?: string | undefined;
|
|
1085
1138
|
} | {
|
|
1086
1139
|
kind: "Eip1559";
|
|
1087
1140
|
to?: string | undefined;
|
|
@@ -1091,6 +1144,7 @@ export type ListTransactionsResponse = {
|
|
|
1091
1144
|
gasLimit?: (string | string) | undefined;
|
|
1092
1145
|
maxFeePerGas?: (string | string) | undefined;
|
|
1093
1146
|
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
1147
|
+
externalId?: string | undefined;
|
|
1094
1148
|
} | {
|
|
1095
1149
|
kind: "EvmLegacy";
|
|
1096
1150
|
to?: string | undefined;
|
|
@@ -1099,9 +1153,11 @@ export type ListTransactionsResponse = {
|
|
|
1099
1153
|
nonce?: (number | string | string) | undefined;
|
|
1100
1154
|
gasLimit?: (string | string) | undefined;
|
|
1101
1155
|
gasPrice?: (string | string) | undefined;
|
|
1156
|
+
externalId?: string | undefined;
|
|
1102
1157
|
} | {
|
|
1103
1158
|
kind: "Psbt";
|
|
1104
1159
|
psbt: string;
|
|
1160
|
+
externalId?: string | undefined;
|
|
1105
1161
|
};
|
|
1106
1162
|
status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
|
|
1107
1163
|
reason?: string | undefined;
|
|
@@ -1112,6 +1168,7 @@ export type ListTransactionsResponse = {
|
|
|
1112
1168
|
datePolicyResolved?: string | undefined;
|
|
1113
1169
|
dateBroadcasted?: string | undefined;
|
|
1114
1170
|
dateConfirmed?: string | undefined;
|
|
1171
|
+
externalId?: string | undefined;
|
|
1115
1172
|
}[];
|
|
1116
1173
|
nextPageToken?: string | undefined;
|
|
1117
1174
|
};
|
|
@@ -1142,38 +1199,45 @@ export type ListTransfersResponse = {
|
|
|
1142
1199
|
amount: string;
|
|
1143
1200
|
memo?: string | undefined;
|
|
1144
1201
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
1202
|
+
externalId?: string | undefined;
|
|
1145
1203
|
} | {
|
|
1146
1204
|
kind: "Erc20";
|
|
1147
1205
|
contract: string;
|
|
1148
1206
|
to: string;
|
|
1149
1207
|
amount: string;
|
|
1150
1208
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
1209
|
+
externalId?: string | undefined;
|
|
1151
1210
|
} | {
|
|
1152
1211
|
kind: "Erc721";
|
|
1153
1212
|
contract: string;
|
|
1154
1213
|
to: string;
|
|
1155
1214
|
tokenId: string;
|
|
1156
1215
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
1216
|
+
externalId?: string | undefined;
|
|
1157
1217
|
} | {
|
|
1158
1218
|
kind: "Trc10";
|
|
1159
1219
|
tokenId: string;
|
|
1160
1220
|
to: string;
|
|
1161
1221
|
amount: string;
|
|
1222
|
+
externalId?: string | undefined;
|
|
1162
1223
|
} | {
|
|
1163
1224
|
kind: "Trc20";
|
|
1164
1225
|
contract: string;
|
|
1165
1226
|
to: string;
|
|
1166
1227
|
amount: string;
|
|
1228
|
+
externalId?: string | undefined;
|
|
1167
1229
|
} | {
|
|
1168
1230
|
kind: "Trc721";
|
|
1169
1231
|
contract: string;
|
|
1170
1232
|
to: string;
|
|
1171
1233
|
tokenId: string;
|
|
1234
|
+
externalId?: string | undefined;
|
|
1172
1235
|
} | {
|
|
1173
1236
|
kind: "Asa";
|
|
1174
1237
|
assetId: string;
|
|
1175
1238
|
to: string;
|
|
1176
1239
|
amount: string;
|
|
1240
|
+
externalId?: string | undefined;
|
|
1177
1241
|
} | {
|
|
1178
1242
|
kind: "Sep41";
|
|
1179
1243
|
issuer: string;
|
|
@@ -1181,18 +1245,21 @@ export type ListTransfersResponse = {
|
|
|
1181
1245
|
to: string;
|
|
1182
1246
|
amount: string;
|
|
1183
1247
|
memo?: string | undefined;
|
|
1248
|
+
externalId?: string | undefined;
|
|
1184
1249
|
} | {
|
|
1185
1250
|
kind: "Spl" | "Spl2022";
|
|
1186
1251
|
to: string;
|
|
1187
1252
|
amount: string;
|
|
1188
1253
|
mint: string;
|
|
1189
1254
|
createDestinationAccount?: boolean | undefined;
|
|
1255
|
+
externalId?: string | undefined;
|
|
1190
1256
|
} | {
|
|
1191
1257
|
kind: "Tep74";
|
|
1192
1258
|
to: string;
|
|
1193
1259
|
master: string;
|
|
1194
1260
|
amount: string;
|
|
1195
1261
|
memo?: string | undefined;
|
|
1262
|
+
externalId?: string | undefined;
|
|
1196
1263
|
};
|
|
1197
1264
|
metadata: {
|
|
1198
1265
|
asset: {
|
|
@@ -1213,6 +1280,7 @@ export type ListTransfersResponse = {
|
|
|
1213
1280
|
dateBroadcasted?: string | undefined;
|
|
1214
1281
|
dateConfirmed?: string | undefined;
|
|
1215
1282
|
approvalId?: string | undefined;
|
|
1283
|
+
externalId?: string | undefined;
|
|
1216
1284
|
}[];
|
|
1217
1285
|
nextPageToken?: string | undefined;
|
|
1218
1286
|
};
|
|
@@ -1266,38 +1334,45 @@ export type TransferAssetBody = {
|
|
|
1266
1334
|
amount: string;
|
|
1267
1335
|
memo?: string | undefined;
|
|
1268
1336
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
1337
|
+
externalId?: string | undefined;
|
|
1269
1338
|
} | {
|
|
1270
1339
|
kind: "Erc20";
|
|
1271
1340
|
contract: string;
|
|
1272
1341
|
to: string;
|
|
1273
1342
|
amount: string;
|
|
1274
1343
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
1344
|
+
externalId?: string | undefined;
|
|
1275
1345
|
} | {
|
|
1276
1346
|
kind: "Erc721";
|
|
1277
1347
|
contract: string;
|
|
1278
1348
|
to: string;
|
|
1279
1349
|
tokenId: string;
|
|
1280
1350
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
1351
|
+
externalId?: string | undefined;
|
|
1281
1352
|
} | {
|
|
1282
1353
|
kind: "Trc10";
|
|
1283
1354
|
tokenId: string;
|
|
1284
1355
|
to: string;
|
|
1285
1356
|
amount: string;
|
|
1357
|
+
externalId?: string | undefined;
|
|
1286
1358
|
} | {
|
|
1287
1359
|
kind: "Trc20";
|
|
1288
1360
|
contract: string;
|
|
1289
1361
|
to: string;
|
|
1290
1362
|
amount: string;
|
|
1363
|
+
externalId?: string | undefined;
|
|
1291
1364
|
} | {
|
|
1292
1365
|
kind: "Trc721";
|
|
1293
1366
|
contract: string;
|
|
1294
1367
|
to: string;
|
|
1295
1368
|
tokenId: string;
|
|
1369
|
+
externalId?: string | undefined;
|
|
1296
1370
|
} | {
|
|
1297
1371
|
kind: "Asa";
|
|
1298
1372
|
assetId: string;
|
|
1299
1373
|
to: string;
|
|
1300
1374
|
amount: string;
|
|
1375
|
+
externalId?: string | undefined;
|
|
1301
1376
|
} | {
|
|
1302
1377
|
kind: "Sep41";
|
|
1303
1378
|
issuer: string;
|
|
@@ -1305,18 +1380,21 @@ export type TransferAssetBody = {
|
|
|
1305
1380
|
to: string;
|
|
1306
1381
|
amount: string;
|
|
1307
1382
|
memo?: string | undefined;
|
|
1383
|
+
externalId?: string | undefined;
|
|
1308
1384
|
} | {
|
|
1309
1385
|
kind: "Spl" | "Spl2022";
|
|
1310
1386
|
to: string;
|
|
1311
1387
|
amount: string;
|
|
1312
1388
|
mint: string;
|
|
1313
1389
|
createDestinationAccount?: boolean | undefined;
|
|
1390
|
+
externalId?: string | undefined;
|
|
1314
1391
|
} | {
|
|
1315
1392
|
kind: "Tep74";
|
|
1316
1393
|
to: string;
|
|
1317
1394
|
master: string;
|
|
1318
1395
|
amount: string;
|
|
1319
1396
|
memo?: string | undefined;
|
|
1397
|
+
externalId?: string | undefined;
|
|
1320
1398
|
};
|
|
1321
1399
|
export type TransferAssetParams = {
|
|
1322
1400
|
walletId: string;
|
|
@@ -1336,38 +1414,45 @@ export type TransferAssetResponse = {
|
|
|
1336
1414
|
amount: string;
|
|
1337
1415
|
memo?: string | undefined;
|
|
1338
1416
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
1417
|
+
externalId?: string | undefined;
|
|
1339
1418
|
} | {
|
|
1340
1419
|
kind: "Erc20";
|
|
1341
1420
|
contract: string;
|
|
1342
1421
|
to: string;
|
|
1343
1422
|
amount: string;
|
|
1344
1423
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
1424
|
+
externalId?: string | undefined;
|
|
1345
1425
|
} | {
|
|
1346
1426
|
kind: "Erc721";
|
|
1347
1427
|
contract: string;
|
|
1348
1428
|
to: string;
|
|
1349
1429
|
tokenId: string;
|
|
1350
1430
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
1431
|
+
externalId?: string | undefined;
|
|
1351
1432
|
} | {
|
|
1352
1433
|
kind: "Trc10";
|
|
1353
1434
|
tokenId: string;
|
|
1354
1435
|
to: string;
|
|
1355
1436
|
amount: string;
|
|
1437
|
+
externalId?: string | undefined;
|
|
1356
1438
|
} | {
|
|
1357
1439
|
kind: "Trc20";
|
|
1358
1440
|
contract: string;
|
|
1359
1441
|
to: string;
|
|
1360
1442
|
amount: string;
|
|
1443
|
+
externalId?: string | undefined;
|
|
1361
1444
|
} | {
|
|
1362
1445
|
kind: "Trc721";
|
|
1363
1446
|
contract: string;
|
|
1364
1447
|
to: string;
|
|
1365
1448
|
tokenId: string;
|
|
1449
|
+
externalId?: string | undefined;
|
|
1366
1450
|
} | {
|
|
1367
1451
|
kind: "Asa";
|
|
1368
1452
|
assetId: string;
|
|
1369
1453
|
to: string;
|
|
1370
1454
|
amount: string;
|
|
1455
|
+
externalId?: string | undefined;
|
|
1371
1456
|
} | {
|
|
1372
1457
|
kind: "Sep41";
|
|
1373
1458
|
issuer: string;
|
|
@@ -1375,18 +1460,21 @@ export type TransferAssetResponse = {
|
|
|
1375
1460
|
to: string;
|
|
1376
1461
|
amount: string;
|
|
1377
1462
|
memo?: string | undefined;
|
|
1463
|
+
externalId?: string | undefined;
|
|
1378
1464
|
} | {
|
|
1379
1465
|
kind: "Spl" | "Spl2022";
|
|
1380
1466
|
to: string;
|
|
1381
1467
|
amount: string;
|
|
1382
1468
|
mint: string;
|
|
1383
1469
|
createDestinationAccount?: boolean | undefined;
|
|
1470
|
+
externalId?: string | undefined;
|
|
1384
1471
|
} | {
|
|
1385
1472
|
kind: "Tep74";
|
|
1386
1473
|
to: string;
|
|
1387
1474
|
master: string;
|
|
1388
1475
|
amount: string;
|
|
1389
1476
|
memo?: string | undefined;
|
|
1477
|
+
externalId?: string | undefined;
|
|
1390
1478
|
};
|
|
1391
1479
|
metadata: {
|
|
1392
1480
|
asset: {
|
|
@@ -1407,6 +1495,7 @@ export type TransferAssetResponse = {
|
|
|
1407
1495
|
dateBroadcasted?: string | undefined;
|
|
1408
1496
|
dateConfirmed?: string | undefined;
|
|
1409
1497
|
approvalId?: string | undefined;
|
|
1498
|
+
externalId?: string | undefined;
|
|
1410
1499
|
};
|
|
1411
1500
|
export type TransferAssetRequest = TransferAssetParams & {
|
|
1412
1501
|
body: TransferAssetBody;
|