@buildonspark/spark-sdk 0.5.0 → 0.5.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 (81) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/bare/index.cjs +1608 -3635
  3. package/dist/bare/index.d.cts +27 -435
  4. package/dist/bare/index.d.ts +27 -435
  5. package/dist/bare/index.js +1608 -3634
  6. package/dist/{chunk-RU434ZAE.js → chunk-F3BFSHVR.js} +357 -391
  7. package/dist/{chunk-UYEB2VPG.js → chunk-IOIEBLMK.js} +7 -1
  8. package/dist/{chunk-EU3I7GFB.js → chunk-STB6WMU7.js} +1 -1
  9. package/dist/{chunk-JE3MXMPW.js → chunk-UTECVGQQ.js} +93 -202
  10. package/dist/{chunk-ZP6Z6DFX.js → chunk-YFVVYZCS.js} +37 -5
  11. package/dist/{client-D1dLzWu0.d.ts → client-C9kc4cog.d.cts} +9 -3
  12. package/dist/{client-CVn0R_eM.d.cts → client-eyjf4knu.d.ts} +9 -3
  13. package/dist/graphql/objects/index.cjs +7 -1
  14. package/dist/graphql/objects/index.d.cts +3 -3
  15. package/dist/graphql/objects/index.d.ts +3 -3
  16. package/dist/graphql/objects/index.js +1 -1
  17. package/dist/index.browser.d.ts +27 -435
  18. package/dist/index.browser.js +1613 -3639
  19. package/dist/index.node.cjs +1613 -3640
  20. package/dist/index.node.d.cts +7 -8
  21. package/dist/index.node.d.ts +7 -8
  22. package/dist/index.node.js +5 -7
  23. package/dist/native/index.react-native.cjs +1613 -3640
  24. package/dist/native/index.react-native.d.cts +27 -435
  25. package/dist/native/index.react-native.d.ts +27 -435
  26. package/dist/native/index.react-native.js +1613 -3639
  27. package/dist/proto/spark.cjs +93 -202
  28. package/dist/proto/spark.d.cts +1 -1
  29. package/dist/proto/spark.d.ts +1 -1
  30. package/dist/proto/spark.js +1 -1
  31. package/dist/proto/spark_token.cjs +36 -4
  32. package/dist/proto/spark_token.d.cts +4 -1
  33. package/dist/proto/spark_token.d.ts +4 -1
  34. package/dist/proto/spark_token.js +2 -2
  35. package/dist/{spark-2Fxnvl8K.d.cts → spark-d6w3BLGZ.d.cts} +10 -328
  36. package/dist/{spark-2Fxnvl8K.d.ts → spark-d6w3BLGZ.d.ts} +10 -328
  37. package/dist/{spark-wallet.node-DlhZiDgY.d.ts → spark-wallet.node-MReThHBY.d.ts} +6 -7
  38. package/dist/{spark-wallet.node-xKJXzAEd.d.cts → spark-wallet.node-eR0svGws.d.cts} +6 -7
  39. package/dist/tests/test-utils.cjs +409 -2429
  40. package/dist/tests/test-utils.d.cts +3 -3
  41. package/dist/tests/test-utils.d.ts +3 -3
  42. package/dist/tests/test-utils.js +5 -5
  43. package/dist/types/index.cjs +100 -203
  44. package/dist/types/index.d.cts +2 -2
  45. package/dist/types/index.d.ts +2 -2
  46. package/dist/types/index.js +3 -3
  47. package/package.json +3 -3
  48. package/src/graphql/client.ts +36 -1
  49. package/src/graphql/objects/LightningSendRequestStatus.ts +25 -13
  50. package/src/proto/common.ts +1 -1
  51. package/src/proto/google/protobuf/descriptor.ts +1 -1
  52. package/src/proto/google/protobuf/duration.ts +1 -1
  53. package/src/proto/google/protobuf/empty.ts +1 -1
  54. package/src/proto/google/protobuf/timestamp.ts +1 -1
  55. package/src/proto/mock.ts +1 -1
  56. package/src/proto/spark.ts +113 -446
  57. package/src/proto/spark_authn.ts +1 -1
  58. package/src/proto/spark_token.ts +41 -2
  59. package/src/proto/validate/validate.ts +1 -1
  60. package/src/services/connection/connection.ts +23 -60
  61. package/src/services/coop-exit.ts +3 -5
  62. package/src/services/deposit.ts +1 -1
  63. package/src/services/lightning.ts +1 -1
  64. package/src/services/signing.ts +5 -6
  65. package/src/services/transfer.ts +250 -240
  66. package/src/services/wallet-config.ts +22 -5
  67. package/src/spark-wallet/proto-descriptors.ts +1 -1
  68. package/src/spark-wallet/proto-reflection.ts +0 -2
  69. package/src/spark-wallet/spark-wallet.ts +2 -2
  70. package/src/spark_descriptors.pb +0 -0
  71. package/src/tests/bufbuild-reflection.test.ts +2 -3
  72. package/src/tests/integration/coop-exit.test.ts +6 -1
  73. package/src/tests/integration/htlc.test.ts +5 -0
  74. package/src/tests/integration/lightning.test.ts +24 -4
  75. package/src/tests/integration/time-sync.test.ts +18 -0
  76. package/src/tests/integration/transfer.test.ts +42 -7
  77. package/src/tests/ssp-client-retry.test.ts +161 -0
  78. package/src/tests/token-hashing.test.ts +92 -0
  79. package/src/utils/token-hashing.ts +4 -51
  80. package/src/utils/transaction.ts +1 -2
  81. package/src/utils/unilateral-exit.ts +139 -142
@@ -155,13 +155,7 @@ declare enum PreimageRequestStatus {
155
155
  declare enum PreimageRequestRole {
156
156
  PREIMAGE_REQUEST_ROLE_RECEIVER = 0,
157
157
  PREIMAGE_REQUEST_ROLE_SENDER = 1,
158
- UNRECOGNIZED = -1
159
- }
160
- /** Static deposit address flow messages */
161
- declare enum UtxoSwapRequestType {
162
- Fixed = 0,
163
- MaxFee = 1,
164
- Refund = 2,
158
+ PREIMAGE_REQUEST_ROLE_RECEIVER_AND_SENDER = 2,
165
159
  UNRECOGNIZED = -1
166
160
  }
167
161
  declare enum InvoiceStatus {
@@ -182,6 +176,7 @@ declare enum TreeNodeStatus {
182
176
  TREE_NODE_STATUS_ON_CHAIN = 7,
183
177
  TREE_NODE_STATUS_AGGREGATE_LOCK = 8,
184
178
  TREE_NODE_STATUS_EXITED = 9,
179
+ TREE_NODE_STATUS_RENEW_LOCKED = 10,
185
180
  UNRECOGNIZED = -1
186
181
  }
187
182
  declare enum InitiatePreimageSwapRequest_Reason {
@@ -530,32 +525,6 @@ interface NodeSignatures {
530
525
  directFromCpfpRefundTxSignature: Uint8Array;
531
526
  }
532
527
  declare const NodeSignatures: MessageFns$2<NodeSignatures>;
533
- /** StartTreeCreationRequest is the request to start the tree creation for a tree root node. */
534
- interface StartTreeCreationRequest {
535
- /** The identity public key of the user. */
536
- identityPublicKey: Uint8Array;
537
- /** The on-chain utxo to be used to be spent by the root node. */
538
- onChainUtxo: UTXO | undefined;
539
- /** The signing job for the root node's cpfp transaction. */
540
- rootTxSigningJob: SigningJob | undefined;
541
- /** The signing job for the root node's cpfp refund transaction. */
542
- refundTxSigningJob: SigningJob | undefined;
543
- /** The signing job for the root node's direct transaction. */
544
- directRootTxSigningJob: SigningJob | undefined;
545
- /** The signing job for the root node's direct refund transaction */
546
- directRefundTxSigningJob: SigningJob | undefined;
547
- /** The signing job for the root node's direct refund transaction */
548
- directFromCpfpRefundTxSigningJob: SigningJob | undefined;
549
- }
550
- declare const StartTreeCreationRequest: MessageFns$2<StartTreeCreationRequest>;
551
- /** StartTreeCreationResponse is the response to the request to start the tree creation for a tree root node. */
552
- interface StartTreeCreationResponse {
553
- /** The id of the tree. */
554
- treeId: string;
555
- /** The signature shares for the root node. */
556
- rootNodeSignatureShares: NodeSignatureShares | undefined;
557
- }
558
- declare const StartTreeCreationResponse: MessageFns$2<StartTreeCreationResponse>;
559
528
  /** StartDepositTreeCreationRequest is the request to start the tree creation for a tree root node. */
560
529
  interface StartDepositTreeCreationRequest {
561
530
  /** The identity public key of the user. */
@@ -732,27 +701,6 @@ interface TransferPackage {
732
701
  directFromCpfpLeavesToSend: UserSignedTxSigningJob[];
733
702
  }
734
703
  declare const TransferPackage: MessageFns$2<TransferPackage>;
735
- interface SendLeafKeyTweak {
736
- leafId: string;
737
- secretShareTweak: SecretShare$1 | undefined;
738
- pubkeySharesTweak: {
739
- [key: string]: Uint8Array;
740
- };
741
- secretCipher: Uint8Array;
742
- /** Signature over Sha256(leaf_id||transfer_id||secret_cipher) */
743
- signature: Uint8Array;
744
- refundSignature: Uint8Array;
745
- directRefundSignature: Uint8Array;
746
- directFromCpfpRefundSignature: Uint8Array;
747
- }
748
- declare const SendLeafKeyTweak: MessageFns$2<SendLeafKeyTweak>;
749
- interface FinalizeTransferRequest {
750
- transferId: string;
751
- ownerIdentityPublicKey: Uint8Array;
752
- leavesToSend: SendLeafKeyTweak[];
753
- sparkPaymentIntent: string;
754
- }
755
- declare const FinalizeTransferRequest: MessageFns$2<FinalizeTransferRequest>;
756
704
  interface FinalizeTransferWithTransferPackageRequest {
757
705
  transferId: string;
758
706
  ownerIdentityPublicKey: Uint8Array;
@@ -926,59 +874,6 @@ interface CooperativeExitResponse {
926
874
  signingResults: LeafRefundTxSigningResult[];
927
875
  }
928
876
  declare const CooperativeExitResponse: MessageFns$2<CooperativeExitResponse>;
929
- interface CounterLeafSwapRequest {
930
- transfer: StartTransferRequest | undefined;
931
- swapId: string;
932
- adaptorPublicKey: Uint8Array;
933
- directAdaptorPublicKey: Uint8Array;
934
- directFromCpfpAdaptorPublicKey: Uint8Array;
935
- }
936
- declare const CounterLeafSwapRequest: MessageFns$2<CounterLeafSwapRequest>;
937
- interface CounterLeafSwapResponse {
938
- transfer: Transfer$1 | undefined;
939
- signingResults: LeafRefundTxSigningResult[];
940
- }
941
- declare const CounterLeafSwapResponse: MessageFns$2<CounterLeafSwapResponse>;
942
- interface RefreshTimelockRequest {
943
- leafId: string;
944
- ownerIdentityPublicKey: Uint8Array;
945
- signingJobs: SigningJob[];
946
- }
947
- declare const RefreshTimelockRequest: MessageFns$2<RefreshTimelockRequest>;
948
- interface RefreshTimelockSigningResult {
949
- signingResult: SigningResult | undefined;
950
- /** Should maybe just be a part of SigningResult? */
951
- verifyingKey: Uint8Array;
952
- }
953
- declare const RefreshTimelockSigningResult: MessageFns$2<RefreshTimelockSigningResult>;
954
- interface RefreshTimelockResponse {
955
- signingResults: RefreshTimelockSigningResult[];
956
- }
957
- declare const RefreshTimelockResponse: MessageFns$2<RefreshTimelockResponse>;
958
- interface ExtendLeafRequest {
959
- leafId: string;
960
- ownerIdentityPublicKey: Uint8Array;
961
- nodeTxSigningJob: SigningJob | undefined;
962
- refundTxSigningJob: SigningJob | undefined;
963
- directNodeTxSigningJob: SigningJob | undefined;
964
- directRefundTxSigningJob: SigningJob | undefined;
965
- directFromCpfpRefundTxSigningJob: SigningJob | undefined;
966
- }
967
- declare const ExtendLeafRequest: MessageFns$2<ExtendLeafRequest>;
968
- interface ExtendLeafSigningResult {
969
- signingResult: SigningResult | undefined;
970
- verifyingKey: Uint8Array;
971
- }
972
- declare const ExtendLeafSigningResult: MessageFns$2<ExtendLeafSigningResult>;
973
- interface ExtendLeafResponse {
974
- leafId: string;
975
- nodeTxSigningResult: ExtendLeafSigningResult | undefined;
976
- refundTxSigningResult: ExtendLeafSigningResult | undefined;
977
- directNodeTxSigningResult: ExtendLeafSigningResult | undefined;
978
- directRefundTxSigningResult: ExtendLeafSigningResult | undefined;
979
- directFromCpfpRefundTxSigningResult: ExtendLeafSigningResult | undefined;
980
- }
981
- declare const ExtendLeafResponse: MessageFns$2<ExtendLeafResponse>;
982
877
  interface SigningOperatorInfo {
983
878
  index: number;
984
879
  identifier: string;
@@ -1072,15 +967,6 @@ interface QueryNodesResponse {
1072
967
  offset: number;
1073
968
  }
1074
969
  declare const QueryNodesResponse: MessageFns$2<QueryNodesResponse>;
1075
- interface CancelTransferRequest {
1076
- transferId: string;
1077
- senderIdentityPublicKey: Uint8Array;
1078
- }
1079
- declare const CancelTransferRequest: MessageFns$2<CancelTransferRequest>;
1080
- interface CancelTransferResponse {
1081
- transfer: Transfer$1 | undefined;
1082
- }
1083
- declare const CancelTransferResponse: MessageFns$2<CancelTransferResponse>;
1084
970
  /**
1085
971
  * Returns a list of addresses that can be used in express deposit flow.
1086
972
  * Excludes static deposit addresses.
@@ -1194,28 +1080,6 @@ interface InitiateStaticDepositUtxoRefundResponse {
1194
1080
  depositAddress: DepositAddressQueryResult | undefined;
1195
1081
  }
1196
1082
  declare const InitiateStaticDepositUtxoRefundResponse: MessageFns$2<InitiateStaticDepositUtxoRefundResponse>;
1197
- interface InitiateUtxoSwapRequest {
1198
- onChainUtxo: UTXO | undefined;
1199
- requestType: UtxoSwapRequestType;
1200
- amount?: {
1201
- $case: "creditAmountSats";
1202
- creditAmountSats: number;
1203
- } | {
1204
- $case: "maxFeeSats";
1205
- maxFeeSats: number;
1206
- } | undefined;
1207
- sspSignature: Uint8Array;
1208
- userSignature: Uint8Array;
1209
- transfer: StartTransferRequest | undefined;
1210
- spendTxSigningJob: SigningJob | undefined;
1211
- }
1212
- declare const InitiateUtxoSwapRequest: MessageFns$2<InitiateUtxoSwapRequest>;
1213
- interface InitiateUtxoSwapResponse {
1214
- spendTxSigningResult: SigningResult | undefined;
1215
- transfer: Transfer$1 | undefined;
1216
- depositAddress: DepositAddressQueryResult | undefined;
1217
- }
1218
- declare const InitiateUtxoSwapResponse: MessageFns$2<InitiateUtxoSwapResponse>;
1219
1083
  interface ExitingTree {
1220
1084
  treeId: string;
1221
1085
  userSigningCommitment: SigningCommitment$1 | undefined;
@@ -1244,30 +1108,6 @@ interface ExitSingleNodeTreesResponse {
1244
1108
  signingResults: ExitSingleNodeTreeSigningResult[];
1245
1109
  }
1246
1110
  declare const ExitSingleNodeTreesResponse: MessageFns$2<ExitSingleNodeTreesResponse>;
1247
- interface QueryNodesDistributionRequest {
1248
- ownerIdentityPublicKey: Uint8Array;
1249
- }
1250
- declare const QueryNodesDistributionRequest: MessageFns$2<QueryNodesDistributionRequest>;
1251
- interface QueryNodesDistributionResponse {
1252
- nodeDistribution: {
1253
- [key: number]: number;
1254
- };
1255
- }
1256
- declare const QueryNodesDistributionResponse: MessageFns$2<QueryNodesDistributionResponse>;
1257
- interface QueryNodesByValueRequest {
1258
- ownerIdentityPublicKey: Uint8Array;
1259
- value: number;
1260
- offset: number;
1261
- limit: number;
1262
- }
1263
- declare const QueryNodesByValueRequest: MessageFns$2<QueryNodesByValueRequest>;
1264
- interface QueryNodesByValueResponse {
1265
- nodes: {
1266
- [key: string]: TreeNode;
1267
- };
1268
- offset: number;
1269
- }
1270
- declare const QueryNodesByValueResponse: MessageFns$2<QueryNodesByValueResponse>;
1271
1111
  interface GetUtxosForAddressRequest {
1272
1112
  address: string;
1273
1113
  offset: number;
@@ -1343,10 +1183,18 @@ declare const AdaptorPublicKeyPackage: MessageFns$2<AdaptorPublicKeyPackage>;
1343
1183
  interface WalletSetting {
1344
1184
  ownerIdentityPublicKey: Uint8Array;
1345
1185
  privateEnabled: boolean;
1186
+ masterIdentityPublicKey?: Uint8Array | undefined;
1346
1187
  }
1347
1188
  declare const WalletSetting: MessageFns$2<WalletSetting>;
1348
1189
  interface UpdateWalletSettingRequest {
1349
1190
  privateEnabled?: boolean | undefined;
1191
+ masterIdentityPublicKey?: {
1192
+ $case: "setMasterIdentityPublicKey";
1193
+ setMasterIdentityPublicKey: Uint8Array;
1194
+ } | {
1195
+ $case: "clearMasterIdentityPublicKey";
1196
+ clearMasterIdentityPublicKey: boolean;
1197
+ } | undefined;
1350
1198
  }
1351
1199
  declare const UpdateWalletSettingRequest: MessageFns$2<UpdateWalletSettingRequest>;
1352
1200
  interface UpdateWalletSettingResponse {
@@ -1390,50 +1238,6 @@ declare const SparkServiceDefinition: {
1390
1238
  readonly responseStream: false;
1391
1239
  readonly options: {};
1392
1240
  };
1393
- /**
1394
- * This is deprecated, please use start_deposit_tree_creation instead.
1395
- *
1396
- * @deprecated
1397
- */
1398
- readonly start_tree_creation: {
1399
- readonly name: "start_tree_creation";
1400
- readonly requestType: MessageFns$2<StartTreeCreationRequest>;
1401
- readonly requestStream: false;
1402
- readonly responseType: MessageFns$2<StartTreeCreationResponse>;
1403
- readonly responseStream: false;
1404
- readonly options: {};
1405
- };
1406
- /** @deprecated */
1407
- readonly finalize_node_signatures: {
1408
- readonly name: "finalize_node_signatures";
1409
- readonly requestType: MessageFns$2<FinalizeNodeSignaturesRequest>;
1410
- readonly requestStream: false;
1411
- readonly responseType: MessageFns$2<FinalizeNodeSignaturesResponse>;
1412
- readonly responseStream: false;
1413
- readonly options: {};
1414
- };
1415
- /** @deprecated */
1416
- readonly start_transfer: {
1417
- readonly name: "start_transfer";
1418
- readonly requestType: MessageFns$2<StartTransferRequest>;
1419
- readonly requestStream: false;
1420
- readonly responseType: MessageFns$2<StartTransferResponse>;
1421
- readonly responseStream: false;
1422
- readonly options: {};
1423
- };
1424
- /**
1425
- * This is deprecated, please use finalize_transfer_with_transfer_package instead.
1426
- *
1427
- * @deprecated
1428
- */
1429
- readonly finalize_transfer: {
1430
- readonly name: "finalize_transfer";
1431
- readonly requestType: MessageFns$2<FinalizeTransferRequest>;
1432
- readonly requestStream: false;
1433
- readonly responseType: MessageFns$2<FinalizeTransferResponse>;
1434
- readonly responseStream: false;
1435
- readonly options: {};
1436
- };
1437
1241
  readonly finalize_transfer_with_transfer_package: {
1438
1242
  readonly name: "finalize_transfer_with_transfer_package";
1439
1243
  readonly requestType: MessageFns$2<FinalizeTransferWithTransferPackageRequest>;
@@ -1442,15 +1246,6 @@ declare const SparkServiceDefinition: {
1442
1246
  readonly responseStream: false;
1443
1247
  readonly options: {};
1444
1248
  };
1445
- /** @deprecated */
1446
- readonly cancel_transfer: {
1447
- readonly name: "cancel_transfer";
1448
- readonly requestType: MessageFns$2<CancelTransferRequest>;
1449
- readonly requestStream: false;
1450
- readonly responseType: MessageFns$2<CancelTransferResponse>;
1451
- readonly responseStream: false;
1452
- readonly options: {};
1453
- };
1454
1249
  readonly query_pending_transfers: {
1455
1250
  readonly name: "query_pending_transfers";
1456
1251
  readonly requestType: MessageFns$2<TransferFilter>;
@@ -1475,15 +1270,6 @@ declare const SparkServiceDefinition: {
1475
1270
  readonly responseStream: false;
1476
1271
  readonly options: {};
1477
1272
  };
1478
- /** @deprecated */
1479
- readonly claim_transfer_sign_refunds: {
1480
- readonly name: "claim_transfer_sign_refunds";
1481
- readonly requestType: MessageFns$2<ClaimTransferSignRefundsRequest>;
1482
- readonly requestStream: false;
1483
- readonly responseType: MessageFns$2<ClaimTransferSignRefundsResponse>;
1484
- readonly responseStream: false;
1485
- readonly options: {};
1486
- };
1487
1273
  readonly store_preimage_share: {
1488
1274
  readonly name: "store_preimage_share";
1489
1275
  readonly requestType: MessageFns$2<StorePreimageShareRequest>;
@@ -1504,24 +1290,6 @@ declare const SparkServiceDefinition: {
1504
1290
  readonly responseStream: false;
1505
1291
  readonly options: {};
1506
1292
  };
1507
- /** @deprecated */
1508
- readonly cooperative_exit: {
1509
- readonly name: "cooperative_exit";
1510
- readonly requestType: MessageFns$2<CooperativeExitRequest>;
1511
- readonly requestStream: false;
1512
- readonly responseType: MessageFns$2<CooperativeExitResponse>;
1513
- readonly responseStream: false;
1514
- readonly options: {};
1515
- };
1516
- /** @deprecated */
1517
- readonly initiate_preimage_swap: {
1518
- readonly name: "initiate_preimage_swap";
1519
- readonly requestType: MessageFns$2<InitiatePreimageSwapRequest>;
1520
- readonly requestStream: false;
1521
- readonly responseType: MessageFns$2<InitiatePreimageSwapResponse>;
1522
- readonly responseStream: false;
1523
- readonly options: {};
1524
- };
1525
1293
  readonly provide_preimage: {
1526
1294
  readonly name: "provide_preimage";
1527
1295
  readonly requestType: MessageFns$2<ProvidePreimageRequest>;
@@ -1538,63 +1306,6 @@ declare const SparkServiceDefinition: {
1538
1306
  readonly responseStream: false;
1539
1307
  readonly options: {};
1540
1308
  };
1541
- /**
1542
- * This is the exact same as start_transfer, but expresses to the SO
1543
- * this transfer is specifically for a leaf swap.
1544
- */
1545
- readonly start_leaf_swap: {
1546
- readonly name: "start_leaf_swap";
1547
- readonly requestType: MessageFns$2<StartTransferRequest>;
1548
- readonly requestStream: false;
1549
- readonly responseType: MessageFns$2<StartTransferResponse>;
1550
- readonly responseStream: false;
1551
- readonly options: {};
1552
- };
1553
- /**
1554
- * This is deprecated, please use counter_leaf_swap instead.
1555
- *
1556
- * @deprecated
1557
- */
1558
- readonly leaf_swap: {
1559
- readonly name: "leaf_swap";
1560
- readonly requestType: MessageFns$2<CounterLeafSwapRequest>;
1561
- readonly requestStream: false;
1562
- readonly responseType: MessageFns$2<CounterLeafSwapResponse>;
1563
- readonly responseStream: false;
1564
- readonly options: {};
1565
- };
1566
- /**
1567
- * This is the exact same as start_leaf_swap, but signs with
1568
- * an adaptor public key after a counterparty has begun the swap via start_leaf_swap.
1569
- *
1570
- * @deprecated
1571
- */
1572
- readonly counter_leaf_swap: {
1573
- readonly name: "counter_leaf_swap";
1574
- readonly requestType: MessageFns$2<CounterLeafSwapRequest>;
1575
- readonly requestStream: false;
1576
- readonly responseType: MessageFns$2<CounterLeafSwapResponse>;
1577
- readonly responseStream: false;
1578
- readonly options: {};
1579
- };
1580
- /** @deprecated */
1581
- readonly refresh_timelock: {
1582
- readonly name: "refresh_timelock";
1583
- readonly requestType: MessageFns$2<RefreshTimelockRequest>;
1584
- readonly requestStream: false;
1585
- readonly responseType: MessageFns$2<RefreshTimelockResponse>;
1586
- readonly responseStream: false;
1587
- readonly options: {};
1588
- };
1589
- /** @deprecated */
1590
- readonly extend_leaf: {
1591
- readonly name: "extend_leaf";
1592
- readonly requestType: MessageFns$2<ExtendLeafRequest>;
1593
- readonly requestStream: false;
1594
- readonly responseType: MessageFns$2<ExtendLeafResponse>;
1595
- readonly responseStream: false;
1596
- readonly options: {};
1597
- };
1598
1309
  /**
1599
1310
  * Resets the timelocks for a leaf's transactions. Can be used to reset the
1600
1311
  * refund transaction timelock for a leaf (when the node transaction
@@ -1626,24 +1337,6 @@ declare const SparkServiceDefinition: {
1626
1337
  readonly responseStream: false;
1627
1338
  readonly options: {};
1628
1339
  };
1629
- /** @deprecated */
1630
- readonly query_nodes_distribution: {
1631
- readonly name: "query_nodes_distribution";
1632
- readonly requestType: MessageFns$2<QueryNodesDistributionRequest>;
1633
- readonly requestStream: false;
1634
- readonly responseType: MessageFns$2<QueryNodesDistributionResponse>;
1635
- readonly responseStream: false;
1636
- readonly options: {};
1637
- };
1638
- /** @deprecated */
1639
- readonly query_nodes_by_value: {
1640
- readonly name: "query_nodes_by_value";
1641
- readonly requestType: MessageFns$2<QueryNodesByValueRequest>;
1642
- readonly requestStream: false;
1643
- readonly responseType: MessageFns$2<QueryNodesByValueResponse>;
1644
- readonly responseStream: false;
1645
- readonly options: {};
1646
- };
1647
1340
  readonly query_balance: {
1648
1341
  readonly name: "query_balance";
1649
1342
  readonly requestType: MessageFns$2<QueryBalanceRequest>;
@@ -1698,22 +1391,6 @@ declare const SparkServiceDefinition: {
1698
1391
  readonly responseStream: false;
1699
1392
  readonly options: {};
1700
1393
  };
1701
- /**
1702
- * DEPRECATED: This unified method is being split for better clarity and type safety
1703
- *
1704
- * For swap operations: Use spark_ssp_internal.initiate_static_deposit_utxo_swap()
1705
- * For refund operations: Use initiate_static_deposit_utxo_refund()
1706
- *
1707
- * @deprecated
1708
- */
1709
- readonly initiate_utxo_swap: {
1710
- readonly name: "initiate_utxo_swap";
1711
- readonly requestType: MessageFns$2<InitiateUtxoSwapRequest>;
1712
- readonly requestStream: false;
1713
- readonly responseType: MessageFns$2<InitiateUtxoSwapResponse>;
1714
- readonly responseStream: false;
1715
- readonly options: {};
1716
- };
1717
1394
  readonly exit_single_node_trees: {
1718
1395
  readonly name: "exit_single_node_trees";
1719
1396
  readonly requestType: MessageFns$2<ExitSingleNodeTreesRequest>;
@@ -1734,15 +1411,6 @@ declare const SparkServiceDefinition: {
1734
1411
  readonly responseStream: false;
1735
1412
  readonly options: {};
1736
1413
  };
1737
- /** @deprecated */
1738
- readonly extend_leaf_v2: {
1739
- readonly name: "extend_leaf_v2";
1740
- readonly requestType: MessageFns$2<ExtendLeafRequest>;
1741
- readonly requestStream: false;
1742
- readonly responseType: MessageFns$2<ExtendLeafResponse>;
1743
- readonly responseStream: false;
1744
- readonly options: {};
1745
- };
1746
1414
  readonly claim_transfer_sign_refunds_v2: {
1747
1415
  readonly name: "claim_transfer_sign_refunds_v2";
1748
1416
  readonly requestType: MessageFns$2<ClaimTransferSignRefundsRequest>;
@@ -1783,15 +1451,6 @@ declare const SparkServiceDefinition: {
1783
1451
  readonly responseStream: false;
1784
1452
  readonly options: {};
1785
1453
  };
1786
- /** @deprecated */
1787
- readonly counter_leaf_swap_v2: {
1788
- readonly name: "counter_leaf_swap_v2";
1789
- readonly requestType: MessageFns$2<CounterLeafSwapRequest>;
1790
- readonly requestStream: false;
1791
- readonly responseType: MessageFns$2<CounterLeafSwapResponse>;
1792
- readonly responseStream: false;
1793
- readonly options: {};
1794
- };
1795
1454
  readonly start_transfer_v2: {
1796
1455
  readonly name: "start_transfer_v2";
1797
1456
  readonly requestType: MessageFns$2<StartTransferRequest>;
@@ -1800,15 +1459,6 @@ declare const SparkServiceDefinition: {
1800
1459
  readonly responseStream: false;
1801
1460
  readonly options: {};
1802
1461
  };
1803
- /** @deprecated */
1804
- readonly refresh_timelock_v2: {
1805
- readonly name: "refresh_timelock_v2";
1806
- readonly requestType: MessageFns$2<RefreshTimelockRequest>;
1807
- readonly requestStream: false;
1808
- readonly responseType: MessageFns$2<RefreshTimelockResponse>;
1809
- readonly responseStream: false;
1810
- readonly options: {};
1811
- };
1812
1462
  readonly get_utxos_for_address: {
1813
1463
  readonly name: "get_utxos_for_address";
1814
1464
  readonly requestType: MessageFns$2<GetUtxosForAddressRequest>;
@@ -1861,64 +1511,18 @@ interface SparkServiceClient<CallOptionsExt = {}> {
1861
1511
  /** Generates a new static deposit address of the user or returns the existing one for the specified network. */
1862
1512
  generate_static_deposit_address(request: DeepPartial$2<GenerateStaticDepositAddressRequest>, options?: CallOptions & CallOptionsExt): Promise<GenerateStaticDepositAddressResponse>;
1863
1513
  start_deposit_tree_creation(request: DeepPartial$2<StartDepositTreeCreationRequest>, options?: CallOptions & CallOptionsExt): Promise<StartDepositTreeCreationResponse>;
1864
- /**
1865
- * This is deprecated, please use start_deposit_tree_creation instead.
1866
- *
1867
- * @deprecated
1868
- */
1869
- start_tree_creation(request: DeepPartial$2<StartTreeCreationRequest>, options?: CallOptions & CallOptionsExt): Promise<StartTreeCreationResponse>;
1870
- /** @deprecated */
1871
- finalize_node_signatures(request: DeepPartial$2<FinalizeNodeSignaturesRequest>, options?: CallOptions & CallOptionsExt): Promise<FinalizeNodeSignaturesResponse>;
1872
- /** @deprecated */
1873
- start_transfer(request: DeepPartial$2<StartTransferRequest>, options?: CallOptions & CallOptionsExt): Promise<StartTransferResponse>;
1874
- /**
1875
- * This is deprecated, please use finalize_transfer_with_transfer_package instead.
1876
- *
1877
- * @deprecated
1878
- */
1879
- finalize_transfer(request: DeepPartial$2<FinalizeTransferRequest>, options?: CallOptions & CallOptionsExt): Promise<FinalizeTransferResponse>;
1880
1514
  finalize_transfer_with_transfer_package(request: DeepPartial$2<FinalizeTransferWithTransferPackageRequest>, options?: CallOptions & CallOptionsExt): Promise<FinalizeTransferResponse>;
1881
- /** @deprecated */
1882
- cancel_transfer(request: DeepPartial$2<CancelTransferRequest>, options?: CallOptions & CallOptionsExt): Promise<CancelTransferResponse>;
1883
1515
  query_pending_transfers(request: DeepPartial$2<TransferFilter>, options?: CallOptions & CallOptionsExt): Promise<QueryTransfersResponse>;
1884
1516
  query_all_transfers(request: DeepPartial$2<TransferFilter>, options?: CallOptions & CallOptionsExt): Promise<QueryTransfersResponse>;
1885
1517
  claim_transfer_tweak_keys(request: DeepPartial$2<ClaimTransferTweakKeysRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
1886
- /** @deprecated */
1887
- claim_transfer_sign_refunds(request: DeepPartial$2<ClaimTransferSignRefundsRequest>, options?: CallOptions & CallOptionsExt): Promise<ClaimTransferSignRefundsResponse>;
1888
1518
  store_preimage_share(request: DeepPartial$2<StorePreimageShareRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
1889
1519
  /**
1890
1520
  * Gets a specified number of signing commmitments for a set of nodes, which can be used as
1891
1521
  * part of a transfer package.
1892
1522
  */
1893
1523
  get_signing_commitments(request: DeepPartial$2<GetSigningCommitmentsRequest>, options?: CallOptions & CallOptionsExt): Promise<GetSigningCommitmentsResponse>;
1894
- /** @deprecated */
1895
- cooperative_exit(request: DeepPartial$2<CooperativeExitRequest>, options?: CallOptions & CallOptionsExt): Promise<CooperativeExitResponse>;
1896
- /** @deprecated */
1897
- initiate_preimage_swap(request: DeepPartial$2<InitiatePreimageSwapRequest>, options?: CallOptions & CallOptionsExt): Promise<InitiatePreimageSwapResponse>;
1898
1524
  provide_preimage(request: DeepPartial$2<ProvidePreimageRequest>, options?: CallOptions & CallOptionsExt): Promise<ProvidePreimageResponse>;
1899
1525
  query_htlc(request: DeepPartial$2<QueryHtlcRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryHtlcResponse>;
1900
- /**
1901
- * This is the exact same as start_transfer, but expresses to the SO
1902
- * this transfer is specifically for a leaf swap.
1903
- */
1904
- start_leaf_swap(request: DeepPartial$2<StartTransferRequest>, options?: CallOptions & CallOptionsExt): Promise<StartTransferResponse>;
1905
- /**
1906
- * This is deprecated, please use counter_leaf_swap instead.
1907
- *
1908
- * @deprecated
1909
- */
1910
- leaf_swap(request: DeepPartial$2<CounterLeafSwapRequest>, options?: CallOptions & CallOptionsExt): Promise<CounterLeafSwapResponse>;
1911
- /**
1912
- * This is the exact same as start_leaf_swap, but signs with
1913
- * an adaptor public key after a counterparty has begun the swap via start_leaf_swap.
1914
- *
1915
- * @deprecated
1916
- */
1917
- counter_leaf_swap(request: DeepPartial$2<CounterLeafSwapRequest>, options?: CallOptions & CallOptionsExt): Promise<CounterLeafSwapResponse>;
1918
- /** @deprecated */
1919
- refresh_timelock(request: DeepPartial$2<RefreshTimelockRequest>, options?: CallOptions & CallOptionsExt): Promise<RefreshTimelockResponse>;
1920
- /** @deprecated */
1921
- extend_leaf(request: DeepPartial$2<ExtendLeafRequest>, options?: CallOptions & CallOptionsExt): Promise<ExtendLeafResponse>;
1922
1526
  /**
1923
1527
  * Resets the timelocks for a leaf's transactions. Can be used to reset the
1924
1528
  * refund transaction timelock for a leaf (when the node transaction
@@ -1929,10 +1533,6 @@ interface SparkServiceClient<CallOptionsExt = {}> {
1929
1533
  renew_leaf(request: DeepPartial$2<RenewLeafRequest>, options?: CallOptions & CallOptionsExt): Promise<RenewLeafResponse>;
1930
1534
  get_signing_operator_list(request: DeepPartial$2<Empty>, options?: CallOptions & CallOptionsExt): Promise<GetSigningOperatorListResponse>;
1931
1535
  query_nodes(request: DeepPartial$2<QueryNodesRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryNodesResponse>;
1932
- /** @deprecated */
1933
- query_nodes_distribution(request: DeepPartial$2<QueryNodesDistributionRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryNodesDistributionResponse>;
1934
- /** @deprecated */
1935
- query_nodes_by_value(request: DeepPartial$2<QueryNodesByValueRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryNodesByValueResponse>;
1936
1536
  query_balance(request: DeepPartial$2<QueryBalanceRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryBalanceResponse>;
1937
1537
  query_user_signed_refunds(request: DeepPartial$2<QueryUserSignedRefundsRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryUserSignedRefundsResponse>;
1938
1538
  query_unused_deposit_addresses(request: DeepPartial$2<QueryUnusedDepositAddressesRequest>, options?: CallOptions & CallOptionsExt): Promise<QueryUnusedDepositAddressesResponse>;
@@ -1945,33 +1545,18 @@ interface SparkServiceClient<CallOptionsExt = {}> {
1945
1545
  * the funds. Returns an error if the UTXO has already been claimed.
1946
1546
  */
1947
1547
  initiate_static_deposit_utxo_refund(request: DeepPartial$2<InitiateStaticDepositUtxoRefundRequest>, options?: CallOptions & CallOptionsExt): Promise<InitiateStaticDepositUtxoRefundResponse>;
1948
- /**
1949
- * DEPRECATED: This unified method is being split for better clarity and type safety
1950
- *
1951
- * For swap operations: Use spark_ssp_internal.initiate_static_deposit_utxo_swap()
1952
- * For refund operations: Use initiate_static_deposit_utxo_refund()
1953
- *
1954
- * @deprecated
1955
- */
1956
- initiate_utxo_swap(request: DeepPartial$2<InitiateUtxoSwapRequest>, options?: CallOptions & CallOptionsExt): Promise<InitiateUtxoSwapResponse>;
1957
1548
  exit_single_node_trees(request: DeepPartial$2<ExitSingleNodeTreesRequest>, options?: CallOptions & CallOptionsExt): Promise<ExitSingleNodeTreesResponse>;
1958
1549
  /**
1959
1550
  * The following endpoints enforce inclusion of Direct Transactions used
1960
1551
  * for unilateral exits
1961
1552
  */
1962
1553
  cooperative_exit_v2(request: DeepPartial$2<CooperativeExitRequest>, options?: CallOptions & CallOptionsExt): Promise<CooperativeExitResponse>;
1963
- /** @deprecated */
1964
- extend_leaf_v2(request: DeepPartial$2<ExtendLeafRequest>, options?: CallOptions & CallOptionsExt): Promise<ExtendLeafResponse>;
1965
1554
  claim_transfer_sign_refunds_v2(request: DeepPartial$2<ClaimTransferSignRefundsRequest>, options?: CallOptions & CallOptionsExt): Promise<ClaimTransferSignRefundsResponse>;
1966
1555
  finalize_node_signatures_v2(request: DeepPartial$2<FinalizeNodeSignaturesRequest>, options?: CallOptions & CallOptionsExt): Promise<FinalizeNodeSignaturesResponse>;
1967
1556
  initiate_preimage_swap_v2(request: DeepPartial$2<InitiatePreimageSwapRequest>, options?: CallOptions & CallOptionsExt): Promise<InitiatePreimageSwapResponse>;
1968
1557
  initiate_preimage_swap_v3(request: DeepPartial$2<InitiatePreimageSwapRequest>, options?: CallOptions & CallOptionsExt): Promise<InitiatePreimageSwapResponse>;
1969
1558
  start_leaf_swap_v2(request: DeepPartial$2<StartTransferRequest>, options?: CallOptions & CallOptionsExt): Promise<StartTransferResponse>;
1970
- /** @deprecated */
1971
- counter_leaf_swap_v2(request: DeepPartial$2<CounterLeafSwapRequest>, options?: CallOptions & CallOptionsExt): Promise<CounterLeafSwapResponse>;
1972
1559
  start_transfer_v2(request: DeepPartial$2<StartTransferRequest>, options?: CallOptions & CallOptionsExt): Promise<StartTransferResponse>;
1973
- /** @deprecated */
1974
- refresh_timelock_v2(request: DeepPartial$2<RefreshTimelockRequest>, options?: CallOptions & CallOptionsExt): Promise<RefreshTimelockResponse>;
1975
1560
  get_utxos_for_address(request: DeepPartial$2<GetUtxosForAddressRequest>, options?: CallOptions & CallOptionsExt): Promise<GetUtxosForAddressResponse>;
1976
1561
  query_spark_invoices(request: DeepPartial$2<QuerySparkInvoicesRequest>, options?: CallOptions & CallOptionsExt): Promise<QuerySparkInvoicesResponse>;
1977
1562
  /**
@@ -2143,6 +1728,8 @@ interface TokenCreateInput {
2143
1728
  maxSupply: Uint8Array;
2144
1729
  isFreezable: boolean;
2145
1730
  creationEntityPublicKey?: Uint8Array | undefined;
1731
+ /** If any of the fields below are provided, use protohash to generate the token_identifier */
1732
+ extraMetadata?: Uint8Array | undefined;
2146
1733
  }
2147
1734
  declare const TokenCreateInput: MessageFns<TokenCreateInput>;
2148
1735
  /**
@@ -2372,6 +1959,7 @@ interface TokenMetadata {
2372
1959
  isFreezable: boolean;
2373
1960
  creationEntityPublicKey?: Uint8Array | undefined;
2374
1961
  tokenIdentifier: Uint8Array;
1962
+ extraMetadata?: Uint8Array | undefined;
2375
1963
  }
2376
1964
  declare const TokenMetadata: MessageFns<TokenMetadata>;
2377
1965
  interface QueryTokenMetadataResponse {
@@ -3213,12 +2801,18 @@ declare enum LightningSendRequestStatus {
3213
2801
  */
3214
2802
  FUTURE_VALUE = "FUTURE_VALUE",
3215
2803
  CREATED = "CREATED",
3216
- REQUEST_VALIDATED = "REQUEST_VALIDATED",
2804
+ USER_TRANSFER_VALIDATION_FAILED = "USER_TRANSFER_VALIDATION_FAILED",
3217
2805
  LIGHTNING_PAYMENT_INITIATED = "LIGHTNING_PAYMENT_INITIATED",
3218
2806
  LIGHTNING_PAYMENT_FAILED = "LIGHTNING_PAYMENT_FAILED",
3219
2807
  LIGHTNING_PAYMENT_SUCCEEDED = "LIGHTNING_PAYMENT_SUCCEEDED",
3220
2808
  PREIMAGE_PROVIDED = "PREIMAGE_PROVIDED",
3221
- TRANSFER_COMPLETED = "TRANSFER_COMPLETED"
2809
+ PREIMAGE_PROVIDING_FAILED = "PREIMAGE_PROVIDING_FAILED",
2810
+ TRANSFER_COMPLETED = "TRANSFER_COMPLETED",
2811
+ TRANSFER_FAILED = "TRANSFER_FAILED",
2812
+ PENDING_USER_SWAP_RETURN = "PENDING_USER_SWAP_RETURN",
2813
+ USER_SWAP_RETURNED = "USER_SWAP_RETURNED",
2814
+ USER_SWAP_RETURN_FAILED = "USER_SWAP_RETURN_FAILED",
2815
+ REQUEST_VALIDATED = "REQUEST_VALIDATED"
3222
2816
  }
3223
2817
 
3224
2818
  interface LightningSendRequest {
@@ -3927,6 +3521,7 @@ declare abstract class ConnectionManager {
3927
3521
  private identityPublicKeyHex?;
3928
3522
  constructor(config: WalletConfigService);
3929
3523
  getCurrentServerTime(): Date;
3524
+ isTimeSynced(): boolean;
3930
3525
  protected getMonotonicTime(): number;
3931
3526
  createClients(): Promise<void>;
3932
3527
  closeConnections(): Promise<void>;
@@ -3948,8 +3543,6 @@ declare abstract class ConnectionManager {
3948
3543
  protected authenticate(address: string): Promise<string>;
3949
3544
  private createSparkAuthnGrpcConnection;
3950
3545
  protected prepareMetadata(metadata: Metadata): Metadata;
3951
- protected recordTimeSync(dateHeader: string, serverProcessingTimeMs: number, sendTime: number, receiveTime: number): void;
3952
- private processResponseForTimeSync;
3953
3546
  protected createAuthnMiddleware(): <Req, Res>(call: ClientMiddlewareCall<Req, Res>, options: SparkCallOptions) => AsyncGenerator<Res, Res | void, undefined>;
3954
3547
  protected createMiddleware(address: Address): <Req, Res>(call: ClientMiddlewareCall<Req, Res>, options: SparkCallOptions) => AsyncGenerator<Res, Res | void, undefined>;
3955
3548
  protected handleMiddlewareError<Req, Res>(error: unknown, address: string, call: ClientMiddlewareCall<Req, Res>, metadata: Metadata, options: SparkCallOptions): AsyncGenerator<Awaited<Res>, void | Awaited<Res>, undefined>;
@@ -4031,10 +3624,10 @@ declare class TransferService extends BaseTransferService {
4031
3624
  signingResults: LeafRefundTxSigningResult[];
4032
3625
  }>;
4033
3626
  private prepareRefundSoSigningJobs;
4034
- claimTransferTweakKeys(transfer: Transfer$1, leaves: LeafKeyTweak[]): Promise<Map<string, Uint8Array[]>>;
3627
+ claimTransferTweakKeys(transfer: Transfer$1, leaves: LeafKeyTweak[]): Promise<void>;
4035
3628
  private prepareClaimLeavesKeyTweaks;
4036
3629
  private prepareClaimLeafKeyTweaks;
4037
- claimTransferSignRefunds(transfer: Transfer$1, leafKeys: LeafKeyTweak[], proofMap?: Map<string, Uint8Array[]>): Promise<NodeSignatures[]>;
3630
+ claimTransferSignRefunds(transfer: Transfer$1, leafKeys: LeafKeyTweak[]): Promise<NodeSignatures[]>;
4038
3631
  private finalizeNodeSignatures;
4039
3632
  queryPendingTransfersBySender(operatorAddress: string): Promise<QueryTransfersResponse>;
4040
3633
  renewRefundTxn(node: TreeNode, parentNode: TreeNode): Promise<TreeNode>;
@@ -4801,7 +4394,7 @@ declare abstract class SparkWallet extends EventEmitter<SparkWalletEvents> {
4801
4394
  * @param tokenIdentifiers - Optional array of token identifiers to filter by
4802
4395
  * @param outputIds - Optional array of output IDs to filter by
4803
4396
  * @param order - Optional order for results ("ASCENDING" or "DESCENDING", defaults to "DESCENDING")
4804
- * @param pageSize - Optional page size (defaults to 100)
4397
+ * @param pageSize - Optional page size (defaults to 50)
4805
4398
  * @param offset - Optional offset for pagination (defaults to 0)
4806
4399
  * @returns Promise resolving to array of token transactions with their current status
4807
4400
  */
@@ -5093,13 +4686,12 @@ interface BroadcastResult {
5093
4686
  broadcastedPackages?: number;
5094
4687
  }
5095
4688
  declare function isEphemeralAnchorOutput(script?: Uint8Array, amount?: bigint): boolean;
5096
- declare function constructUnilateralExitTxs(nodeHexStrings: string[], sparkClient?: SparkServiceClient, network?: any): Promise<TxChain[]>;
5097
4689
  declare function constructUnilateralExitFeeBumpPackages(nodeHexStrings: string[], utxos: Utxo[], feeRate: FeeRate, electrsUrl: string, sparkClient?: SparkServiceClient, network?: any): Promise<FeeBumpTxChain[]>;
5098
4690
  declare function hash160(data: Uint8Array): Uint8Array;
5099
4691
  declare function constructFeeBumpTx(txHex: string, utxos: Utxo[], feeRate: FeeRate, previousFeeBumpTx?: string): {
5100
4692
  feeBumpPsbt: string;
5101
4693
  usedUtxos: Utxo[];
5102
- correctedParentTx?: string;
4694
+ parentTx?: string;
5103
4695
  };
5104
4696
 
5105
4697
  declare function getSparkAddressFromTaproot(taprootAddress: string): SparkAddressFormat;
@@ -5129,4 +4721,4 @@ declare abstract class SparkFrostBase {
5129
4721
  declare function setSparkFrostOnce(sparkFrostParam: SparkFrostBase): void;
5130
4722
  declare function getSparkFrost(): SparkFrostBase;
5131
4723
 
5132
- export { type AggregateFrostBindingParams, type AggregateFrostParams, AuthenticationError, type Bech32mTokenIdentifier, type Bech32mTokenIdentifierData, type BroadcastConfig, type BroadcastResult, ConfigurationError, DEFAULT_FEE_SATS, DIRECT_HTLC_TIMELOCK_OFFSET, DIRECT_TIMELOCK_OFFSET, type DecodedSparkAddressData, DefaultSparkSigner, type FeeBumpTxChain, type FeeBumpTxPackage, type FeeRate, HTLC_TIMELOCK_OFFSET, type IKeyPackage, INITIAL_SEQUENCE, InternalValidationError, LOGGER_NAMES, type LeafInfo, type LegacySparkAddressFormat, type LoggerName, Network, NetworkError, NetworkToProto, type NetworkType, RPCError, type SignFrostBindingParams, type SignFrostParams, type SparkAddressData, type SparkAddressFormat, SparkAuthenticationError, SparkError, type SparkErrorContextArg, SparkFrostBase, SparkRequestError, SparkSdkError, SparkSdkLogger, type SparkSigner, SparkValidationError, SparkWalletBare as SparkWallet, TEST_UNILATERAL_DIRECT_SEQUENCE, TEST_UNILATERAL_SEQUENCE, TIME_LOCK_INTERVAL, type TxChain, UnsafeStatelessSparkSigner, type Utxo, ValidationError, type VerifiableSecretShare, addPrivateKeys, addPublicKeys, applyAdaptorToSignature, applyAdditiveTweakToPublicKey, assertBech32, bech32mDecode, bigIntToPrivateKey, checkIfSelectedOutputsAreAvailable, checkIfValidSequence, collectResponses, computeTaprootKeyNoScript, computerLagrangeCoefficients, constructFeeBumpTx, constructUnilateralExitFeeBumpPackages, constructUnilateralExitTxs, createConnectorRefundTxs, createCurrentTimelockRefundTxs, createDecrementedTimelockNodeTx, createDecrementedTimelockRefundTxs, createInitialTimelockNodeTx, createInitialTimelockRefundTxs, createRootNodeTx, createSigningCommitment, createSigningNonce, createTestUnilateralRefundTxs, createTestUnilateralTimelockNodeTx, createZeroTimelockNodeTx, decodeBech32mTokenIdentifier, decodeBytesToSigningCommitment, decodeBytesToSigningNonce, decodeSparkAddress, doesLeafNeedRefresh, doesTxnNeedRenewed, encodeBech32mTokenIdentifier, encodeSigningCommitmentToBytes, encodeSigningNonceToBytes, encodeSparkAddress, encodeSparkAddressWithSignature, evaluatePolynomial, fieldDiv, filterTokenBalanceForTokenIdentifier, generateAdaptorFromSignature, generatePolynomialForSecretSharing, generateSignatureFromExistingAdaptor, getCurrentTimelock, getEphemeralAnchorOutput, getLatestDepositTxId, getNetwork, getNetworkFromAddress, getNetworkFromBech32mTokenIdentifier, getNetworkFromSparkAddress, getNetworkFromString, getNextHTLCTransactionSequence, getNextTransactionSequence, getP2TRAddressFromPkScript, getP2TRAddressFromPublicKey, getP2TRScriptFromPublicKey, getP2WPKHAddressFromPublicKey, getRandomBigInt, getRandomSigningNonce, getSigHashFromTx, getSigningCommitmentFromNonce, getSparkAddressFromTaproot, getSparkFrost, getTransactionSequence, getTransferPackageSigningPayload, getTxEstimatedVbytesSizeByNumberOfInputsOutputs, getTxFromRawTxBytes, getTxFromRawTxHex, getTxId, getTxIdNoReverse, hash160, isEphemeralAnchorOutput, isLegacySparkAddress, isSafeForNumber, isTxBroadcast, isValidPublicKey, isValidSparkAddress, isZeroTimelock, lastKeyWithTarget, maybeApplyFee, modInverse, proofOfPossessionMessageHashForDepositAddress, protoToNetwork, recoverSecret, setSparkFrostOnce, splitSecret, splitSecretWithProofs, subtractPrivateKeys, subtractPublicKeys, sumAvailableTokens, sumOfPrivateKeys, toProtoTimestamp, validateOutboundAdaptorSignature, validateShare, validateSparkInvoiceFields, validateSparkInvoiceSignature };
4724
+ export { type AggregateFrostBindingParams, type AggregateFrostParams, AuthenticationError, type Bech32mTokenIdentifier, type Bech32mTokenIdentifierData, type BroadcastConfig, type BroadcastResult, ConfigurationError, DEFAULT_FEE_SATS, DIRECT_HTLC_TIMELOCK_OFFSET, DIRECT_TIMELOCK_OFFSET, type DecodedSparkAddressData, DefaultSparkSigner, type FeeBumpTxChain, type FeeBumpTxPackage, type FeeRate, HTLC_TIMELOCK_OFFSET, type IKeyPackage, INITIAL_SEQUENCE, InternalValidationError, LOGGER_NAMES, type LeafInfo, type LegacySparkAddressFormat, type LoggerName, Network, NetworkError, NetworkToProto, type NetworkType, RPCError, type SignFrostBindingParams, type SignFrostParams, type SparkAddressData, type SparkAddressFormat, SparkAuthenticationError, SparkError, type SparkErrorContextArg, SparkFrostBase, SparkRequestError, SparkSdkError, SparkSdkLogger, type SparkSigner, SparkValidationError, SparkWalletBare as SparkWallet, TEST_UNILATERAL_DIRECT_SEQUENCE, TEST_UNILATERAL_SEQUENCE, TIME_LOCK_INTERVAL, type TxChain, UnsafeStatelessSparkSigner, type Utxo, ValidationError, type VerifiableSecretShare, addPrivateKeys, addPublicKeys, applyAdaptorToSignature, applyAdditiveTweakToPublicKey, assertBech32, bech32mDecode, bigIntToPrivateKey, checkIfSelectedOutputsAreAvailable, checkIfValidSequence, collectResponses, computeTaprootKeyNoScript, computerLagrangeCoefficients, constructFeeBumpTx, constructUnilateralExitFeeBumpPackages, createConnectorRefundTxs, createCurrentTimelockRefundTxs, createDecrementedTimelockNodeTx, createDecrementedTimelockRefundTxs, createInitialTimelockNodeTx, createInitialTimelockRefundTxs, createRootNodeTx, createSigningCommitment, createSigningNonce, createTestUnilateralRefundTxs, createTestUnilateralTimelockNodeTx, createZeroTimelockNodeTx, decodeBech32mTokenIdentifier, decodeBytesToSigningCommitment, decodeBytesToSigningNonce, decodeSparkAddress, doesLeafNeedRefresh, doesTxnNeedRenewed, encodeBech32mTokenIdentifier, encodeSigningCommitmentToBytes, encodeSigningNonceToBytes, encodeSparkAddress, encodeSparkAddressWithSignature, evaluatePolynomial, fieldDiv, filterTokenBalanceForTokenIdentifier, generateAdaptorFromSignature, generatePolynomialForSecretSharing, generateSignatureFromExistingAdaptor, getCurrentTimelock, getEphemeralAnchorOutput, getLatestDepositTxId, getNetwork, getNetworkFromAddress, getNetworkFromBech32mTokenIdentifier, getNetworkFromSparkAddress, getNetworkFromString, getNextHTLCTransactionSequence, getNextTransactionSequence, getP2TRAddressFromPkScript, getP2TRAddressFromPublicKey, getP2TRScriptFromPublicKey, getP2WPKHAddressFromPublicKey, getRandomBigInt, getRandomSigningNonce, getSigHashFromTx, getSigningCommitmentFromNonce, getSparkAddressFromTaproot, getSparkFrost, getTransactionSequence, getTransferPackageSigningPayload, getTxEstimatedVbytesSizeByNumberOfInputsOutputs, getTxFromRawTxBytes, getTxFromRawTxHex, getTxId, getTxIdNoReverse, hash160, isEphemeralAnchorOutput, isLegacySparkAddress, isSafeForNumber, isTxBroadcast, isValidPublicKey, isValidSparkAddress, isZeroTimelock, lastKeyWithTarget, maybeApplyFee, modInverse, proofOfPossessionMessageHashForDepositAddress, protoToNetwork, recoverSecret, setSparkFrostOnce, splitSecret, splitSecretWithProofs, subtractPrivateKeys, subtractPublicKeys, sumAvailableTokens, sumOfPrivateKeys, toProtoTimestamp, validateOutboundAdaptorSignature, validateShare, validateSparkInvoiceFields, validateSparkInvoiceSignature };