@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.
@@ -243,38 +243,45 @@ export type CreateApprovalDecisionResponse = {
243
243
  amount: string;
244
244
  memo?: string | undefined;
245
245
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
246
+ externalId?: string | undefined;
246
247
  } | {
247
248
  kind: "Erc20";
248
249
  contract: string;
249
250
  to: string;
250
251
  amount: string;
251
252
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
253
+ externalId?: string | undefined;
252
254
  } | {
253
255
  kind: "Erc721";
254
256
  contract: string;
255
257
  to: string;
256
258
  tokenId: string;
257
259
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
260
+ externalId?: string | undefined;
258
261
  } | {
259
262
  kind: "Trc10";
260
263
  tokenId: string;
261
264
  to: string;
262
265
  amount: string;
266
+ externalId?: string | undefined;
263
267
  } | {
264
268
  kind: "Trc20";
265
269
  contract: string;
266
270
  to: string;
267
271
  amount: string;
272
+ externalId?: string | undefined;
268
273
  } | {
269
274
  kind: "Trc721";
270
275
  contract: string;
271
276
  to: string;
272
277
  tokenId: string;
278
+ externalId?: string | undefined;
273
279
  } | {
274
280
  kind: "Asa";
275
281
  assetId: string;
276
282
  to: string;
277
283
  amount: string;
284
+ externalId?: string | undefined;
278
285
  } | {
279
286
  kind: "Sep41";
280
287
  issuer: string;
@@ -282,18 +289,21 @@ export type CreateApprovalDecisionResponse = {
282
289
  to: string;
283
290
  amount: string;
284
291
  memo?: string | undefined;
292
+ externalId?: string | undefined;
285
293
  } | {
286
294
  kind: "Spl" | "Spl2022";
287
295
  to: string;
288
296
  amount: string;
289
297
  mint: string;
290
298
  createDestinationAccount?: boolean | undefined;
299
+ externalId?: string | undefined;
291
300
  } | {
292
301
  kind: "Tep74";
293
302
  to: string;
294
303
  master: string;
295
304
  amount: string;
296
305
  memo?: string | undefined;
306
+ externalId?: string | undefined;
297
307
  };
298
308
  metadata: {
299
309
  asset: {
@@ -314,6 +324,7 @@ export type CreateApprovalDecisionResponse = {
314
324
  dateBroadcasted?: string | undefined;
315
325
  dateConfirmed?: string | undefined;
316
326
  approvalId?: string | undefined;
327
+ externalId?: string | undefined;
317
328
  } | undefined;
318
329
  transactionRequest?: {
319
330
  id: string;
@@ -327,6 +338,7 @@ export type CreateApprovalDecisionResponse = {
327
338
  requestBody: {
328
339
  kind: "Transaction";
329
340
  transaction: string;
341
+ externalId?: string | undefined;
330
342
  } | {
331
343
  kind: "Evm";
332
344
  to?: string | undefined;
@@ -334,6 +346,7 @@ export type CreateApprovalDecisionResponse = {
334
346
  data?: string | undefined;
335
347
  nonce?: (number | string | string) | undefined;
336
348
  gasLimit?: (string | string) | undefined;
349
+ externalId?: string | undefined;
337
350
  } | {
338
351
  kind: "Eip1559";
339
352
  to?: string | undefined;
@@ -343,6 +356,7 @@ export type CreateApprovalDecisionResponse = {
343
356
  gasLimit?: (string | string) | undefined;
344
357
  maxFeePerGas?: (string | string) | undefined;
345
358
  maxPriorityFeePerGas?: (string | string) | undefined;
359
+ externalId?: string | undefined;
346
360
  } | {
347
361
  kind: "EvmLegacy";
348
362
  to?: string | undefined;
@@ -351,9 +365,11 @@ export type CreateApprovalDecisionResponse = {
351
365
  nonce?: (number | string | string) | undefined;
352
366
  gasLimit?: (string | string) | undefined;
353
367
  gasPrice?: (string | string) | undefined;
368
+ externalId?: string | undefined;
354
369
  } | {
355
370
  kind: "Psbt";
356
371
  psbt: string;
372
+ externalId?: string | undefined;
357
373
  };
358
374
  status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
359
375
  reason?: string | undefined;
@@ -364,6 +380,7 @@ export type CreateApprovalDecisionResponse = {
364
380
  datePolicyResolved?: string | undefined;
365
381
  dateBroadcasted?: string | undefined;
366
382
  dateConfirmed?: string | undefined;
383
+ externalId?: string | undefined;
367
384
  } | undefined;
368
385
  signatureRequest?: {
369
386
  id: string;
@@ -377,12 +394,15 @@ export type CreateApprovalDecisionResponse = {
377
394
  requestBody: {
378
395
  kind: "Hash";
379
396
  hash: string;
397
+ externalId?: string | undefined;
380
398
  } | {
381
399
  kind: "Message";
382
400
  message: string;
401
+ externalId?: string | undefined;
383
402
  } | {
384
403
  kind: "Transaction";
385
404
  transaction: string;
405
+ externalId?: string | undefined;
386
406
  } | {
387
407
  kind: "Eip712";
388
408
  types: {
@@ -401,9 +421,11 @@ export type CreateApprovalDecisionResponse = {
401
421
  message: {
402
422
  [x: string]: unknown;
403
423
  };
424
+ externalId?: string | undefined;
404
425
  } | {
405
426
  kind: "Psbt";
406
427
  psbt: string;
428
+ externalId?: string | undefined;
407
429
  };
408
430
  status: "Pending" | "Executing" | "Signed" | "Confirmed" | "Failed" | "Rejected";
409
431
  reason?: string | undefined;
@@ -427,6 +449,7 @@ export type CreateApprovalDecisionResponse = {
427
449
  datePolicyResolved?: string | undefined;
428
450
  dateSigned?: string | undefined;
429
451
  dateConfirmed?: string | undefined;
452
+ externalId?: string | undefined;
430
453
  } | undefined;
431
454
  } | {
432
455
  kind: "Wallets:IncomingTransaction";
@@ -1541,38 +1564,45 @@ export type GetApprovalResponse = {
1541
1564
  amount: string;
1542
1565
  memo?: string | undefined;
1543
1566
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
1567
+ externalId?: string | undefined;
1544
1568
  } | {
1545
1569
  kind: "Erc20";
1546
1570
  contract: string;
1547
1571
  to: string;
1548
1572
  amount: string;
1549
1573
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
1574
+ externalId?: string | undefined;
1550
1575
  } | {
1551
1576
  kind: "Erc721";
1552
1577
  contract: string;
1553
1578
  to: string;
1554
1579
  tokenId: string;
1555
1580
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
1581
+ externalId?: string | undefined;
1556
1582
  } | {
1557
1583
  kind: "Trc10";
1558
1584
  tokenId: string;
1559
1585
  to: string;
1560
1586
  amount: string;
1587
+ externalId?: string | undefined;
1561
1588
  } | {
1562
1589
  kind: "Trc20";
1563
1590
  contract: string;
1564
1591
  to: string;
1565
1592
  amount: string;
1593
+ externalId?: string | undefined;
1566
1594
  } | {
1567
1595
  kind: "Trc721";
1568
1596
  contract: string;
1569
1597
  to: string;
1570
1598
  tokenId: string;
1599
+ externalId?: string | undefined;
1571
1600
  } | {
1572
1601
  kind: "Asa";
1573
1602
  assetId: string;
1574
1603
  to: string;
1575
1604
  amount: string;
1605
+ externalId?: string | undefined;
1576
1606
  } | {
1577
1607
  kind: "Sep41";
1578
1608
  issuer: string;
@@ -1580,18 +1610,21 @@ export type GetApprovalResponse = {
1580
1610
  to: string;
1581
1611
  amount: string;
1582
1612
  memo?: string | undefined;
1613
+ externalId?: string | undefined;
1583
1614
  } | {
1584
1615
  kind: "Spl" | "Spl2022";
1585
1616
  to: string;
1586
1617
  amount: string;
1587
1618
  mint: string;
1588
1619
  createDestinationAccount?: boolean | undefined;
1620
+ externalId?: string | undefined;
1589
1621
  } | {
1590
1622
  kind: "Tep74";
1591
1623
  to: string;
1592
1624
  master: string;
1593
1625
  amount: string;
1594
1626
  memo?: string | undefined;
1627
+ externalId?: string | undefined;
1595
1628
  };
1596
1629
  metadata: {
1597
1630
  asset: {
@@ -1612,6 +1645,7 @@ export type GetApprovalResponse = {
1612
1645
  dateBroadcasted?: string | undefined;
1613
1646
  dateConfirmed?: string | undefined;
1614
1647
  approvalId?: string | undefined;
1648
+ externalId?: string | undefined;
1615
1649
  } | undefined;
1616
1650
  transactionRequest?: {
1617
1651
  id: string;
@@ -1625,6 +1659,7 @@ export type GetApprovalResponse = {
1625
1659
  requestBody: {
1626
1660
  kind: "Transaction";
1627
1661
  transaction: string;
1662
+ externalId?: string | undefined;
1628
1663
  } | {
1629
1664
  kind: "Evm";
1630
1665
  to?: string | undefined;
@@ -1632,6 +1667,7 @@ export type GetApprovalResponse = {
1632
1667
  data?: string | undefined;
1633
1668
  nonce?: (number | string | string) | undefined;
1634
1669
  gasLimit?: (string | string) | undefined;
1670
+ externalId?: string | undefined;
1635
1671
  } | {
1636
1672
  kind: "Eip1559";
1637
1673
  to?: string | undefined;
@@ -1641,6 +1677,7 @@ export type GetApprovalResponse = {
1641
1677
  gasLimit?: (string | string) | undefined;
1642
1678
  maxFeePerGas?: (string | string) | undefined;
1643
1679
  maxPriorityFeePerGas?: (string | string) | undefined;
1680
+ externalId?: string | undefined;
1644
1681
  } | {
1645
1682
  kind: "EvmLegacy";
1646
1683
  to?: string | undefined;
@@ -1649,9 +1686,11 @@ export type GetApprovalResponse = {
1649
1686
  nonce?: (number | string | string) | undefined;
1650
1687
  gasLimit?: (string | string) | undefined;
1651
1688
  gasPrice?: (string | string) | undefined;
1689
+ externalId?: string | undefined;
1652
1690
  } | {
1653
1691
  kind: "Psbt";
1654
1692
  psbt: string;
1693
+ externalId?: string | undefined;
1655
1694
  };
1656
1695
  status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
1657
1696
  reason?: string | undefined;
@@ -1662,6 +1701,7 @@ export type GetApprovalResponse = {
1662
1701
  datePolicyResolved?: string | undefined;
1663
1702
  dateBroadcasted?: string | undefined;
1664
1703
  dateConfirmed?: string | undefined;
1704
+ externalId?: string | undefined;
1665
1705
  } | undefined;
1666
1706
  signatureRequest?: {
1667
1707
  id: string;
@@ -1675,12 +1715,15 @@ export type GetApprovalResponse = {
1675
1715
  requestBody: {
1676
1716
  kind: "Hash";
1677
1717
  hash: string;
1718
+ externalId?: string | undefined;
1678
1719
  } | {
1679
1720
  kind: "Message";
1680
1721
  message: string;
1722
+ externalId?: string | undefined;
1681
1723
  } | {
1682
1724
  kind: "Transaction";
1683
1725
  transaction: string;
1726
+ externalId?: string | undefined;
1684
1727
  } | {
1685
1728
  kind: "Eip712";
1686
1729
  types: {
@@ -1699,9 +1742,11 @@ export type GetApprovalResponse = {
1699
1742
  message: {
1700
1743
  [x: string]: unknown;
1701
1744
  };
1745
+ externalId?: string | undefined;
1702
1746
  } | {
1703
1747
  kind: "Psbt";
1704
1748
  psbt: string;
1749
+ externalId?: string | undefined;
1705
1750
  };
1706
1751
  status: "Pending" | "Executing" | "Signed" | "Confirmed" | "Failed" | "Rejected";
1707
1752
  reason?: string | undefined;
@@ -1725,6 +1770,7 @@ export type GetApprovalResponse = {
1725
1770
  datePolicyResolved?: string | undefined;
1726
1771
  dateSigned?: string | undefined;
1727
1772
  dateConfirmed?: string | undefined;
1773
+ externalId?: string | undefined;
1728
1774
  } | undefined;
1729
1775
  } | {
1730
1776
  kind: "Wallets:IncomingTransaction";
@@ -2879,38 +2925,45 @@ export type ListApprovalsResponse = {
2879
2925
  amount: string;
2880
2926
  memo?: string | undefined;
2881
2927
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
2928
+ externalId?: string | undefined;
2882
2929
  } | {
2883
2930
  kind: "Erc20";
2884
2931
  contract: string;
2885
2932
  to: string;
2886
2933
  amount: string;
2887
2934
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
2935
+ externalId?: string | undefined;
2888
2936
  } | {
2889
2937
  kind: "Erc721";
2890
2938
  contract: string;
2891
2939
  to: string;
2892
2940
  tokenId: string;
2893
2941
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
2942
+ externalId?: string | undefined;
2894
2943
  } | {
2895
2944
  kind: "Trc10";
2896
2945
  tokenId: string;
2897
2946
  to: string;
2898
2947
  amount: string;
2948
+ externalId?: string | undefined;
2899
2949
  } | {
2900
2950
  kind: "Trc20";
2901
2951
  contract: string;
2902
2952
  to: string;
2903
2953
  amount: string;
2954
+ externalId?: string | undefined;
2904
2955
  } | {
2905
2956
  kind: "Trc721";
2906
2957
  contract: string;
2907
2958
  to: string;
2908
2959
  tokenId: string;
2960
+ externalId?: string | undefined;
2909
2961
  } | {
2910
2962
  kind: "Asa";
2911
2963
  assetId: string;
2912
2964
  to: string;
2913
2965
  amount: string;
2966
+ externalId?: string | undefined;
2914
2967
  } | {
2915
2968
  kind: "Sep41";
2916
2969
  issuer: string;
@@ -2918,18 +2971,21 @@ export type ListApprovalsResponse = {
2918
2971
  to: string;
2919
2972
  amount: string;
2920
2973
  memo?: string | undefined;
2974
+ externalId?: string | undefined;
2921
2975
  } | {
2922
2976
  kind: "Spl" | "Spl2022";
2923
2977
  to: string;
2924
2978
  amount: string;
2925
2979
  mint: string;
2926
2980
  createDestinationAccount?: boolean | undefined;
2981
+ externalId?: string | undefined;
2927
2982
  } | {
2928
2983
  kind: "Tep74";
2929
2984
  to: string;
2930
2985
  master: string;
2931
2986
  amount: string;
2932
2987
  memo?: string | undefined;
2988
+ externalId?: string | undefined;
2933
2989
  };
2934
2990
  metadata: {
2935
2991
  asset: {
@@ -2950,6 +3006,7 @@ export type ListApprovalsResponse = {
2950
3006
  dateBroadcasted?: string | undefined;
2951
3007
  dateConfirmed?: string | undefined;
2952
3008
  approvalId?: string | undefined;
3009
+ externalId?: string | undefined;
2953
3010
  } | undefined;
2954
3011
  transactionRequest?: {
2955
3012
  id: string;
@@ -2963,6 +3020,7 @@ export type ListApprovalsResponse = {
2963
3020
  requestBody: {
2964
3021
  kind: "Transaction";
2965
3022
  transaction: string;
3023
+ externalId?: string | undefined;
2966
3024
  } | {
2967
3025
  kind: "Evm";
2968
3026
  to?: string | undefined;
@@ -2970,6 +3028,7 @@ export type ListApprovalsResponse = {
2970
3028
  data?: string | undefined;
2971
3029
  nonce?: (number | string | string) | undefined;
2972
3030
  gasLimit?: (string | string) | undefined;
3031
+ externalId?: string | undefined;
2973
3032
  } | {
2974
3033
  kind: "Eip1559";
2975
3034
  to?: string | undefined;
@@ -2979,6 +3038,7 @@ export type ListApprovalsResponse = {
2979
3038
  gasLimit?: (string | string) | undefined;
2980
3039
  maxFeePerGas?: (string | string) | undefined;
2981
3040
  maxPriorityFeePerGas?: (string | string) | undefined;
3041
+ externalId?: string | undefined;
2982
3042
  } | {
2983
3043
  kind: "EvmLegacy";
2984
3044
  to?: string | undefined;
@@ -2987,9 +3047,11 @@ export type ListApprovalsResponse = {
2987
3047
  nonce?: (number | string | string) | undefined;
2988
3048
  gasLimit?: (string | string) | undefined;
2989
3049
  gasPrice?: (string | string) | undefined;
3050
+ externalId?: string | undefined;
2990
3051
  } | {
2991
3052
  kind: "Psbt";
2992
3053
  psbt: string;
3054
+ externalId?: string | undefined;
2993
3055
  };
2994
3056
  status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
2995
3057
  reason?: string | undefined;
@@ -3000,6 +3062,7 @@ export type ListApprovalsResponse = {
3000
3062
  datePolicyResolved?: string | undefined;
3001
3063
  dateBroadcasted?: string | undefined;
3002
3064
  dateConfirmed?: string | undefined;
3065
+ externalId?: string | undefined;
3003
3066
  } | undefined;
3004
3067
  signatureRequest?: {
3005
3068
  id: string;
@@ -3013,12 +3076,15 @@ export type ListApprovalsResponse = {
3013
3076
  requestBody: {
3014
3077
  kind: "Hash";
3015
3078
  hash: string;
3079
+ externalId?: string | undefined;
3016
3080
  } | {
3017
3081
  kind: "Message";
3018
3082
  message: string;
3083
+ externalId?: string | undefined;
3019
3084
  } | {
3020
3085
  kind: "Transaction";
3021
3086
  transaction: string;
3087
+ externalId?: string | undefined;
3022
3088
  } | {
3023
3089
  kind: "Eip712";
3024
3090
  types: {
@@ -3037,9 +3103,11 @@ export type ListApprovalsResponse = {
3037
3103
  message: {
3038
3104
  [x: string]: unknown;
3039
3105
  };
3106
+ externalId?: string | undefined;
3040
3107
  } | {
3041
3108
  kind: "Psbt";
3042
3109
  psbt: string;
3110
+ externalId?: string | undefined;
3043
3111
  };
3044
3112
  status: "Pending" | "Executing" | "Signed" | "Confirmed" | "Failed" | "Rejected";
3045
3113
  reason?: string | undefined;
@@ -3063,6 +3131,7 @@ export type ListApprovalsResponse = {
3063
3131
  datePolicyResolved?: string | undefined;
3064
3132
  dateSigned?: string | undefined;
3065
3133
  dateConfirmed?: string | undefined;
3134
+ externalId?: string | undefined;
3066
3135
  } | undefined;
3067
3136
  } | {
3068
3137
  kind: "Wallets:IncomingTransaction";