@buildonspark/spark-sdk 0.1.46 → 0.2.0

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 (171) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/{chunk-BGGEVUJK.js → chunk-2ENZX6LT.js} +241 -7
  3. package/dist/{chunk-LHRD2WT6.js → chunk-4JD4HIAN.js} +23 -3
  4. package/dist/{chunk-I54FARY2.js → chunk-CDLETEDT.js} +11 -3
  5. package/dist/{chunk-OBFKIEMP.js → chunk-TM6CHQXC.js} +1 -1
  6. package/dist/chunk-UDK3EBE5.js +13514 -0
  7. package/dist/chunk-XYTKKLCV.js +7 -0
  8. package/dist/{RequestLightningSendInput-2cSh_In4.d.cts → client-DKbwpcnl.d.ts} +434 -212
  9. package/dist/{RequestLightningSendInput-CN6BNg_g.d.ts → client-Drs5Lapg.d.cts} +434 -212
  10. package/dist/{services/config.cjs → debug.cjs} +31007 -1003
  11. package/dist/debug.d.cts +126 -0
  12. package/dist/debug.d.ts +126 -0
  13. package/dist/debug.js +21 -0
  14. package/dist/graphql/objects/index.d.cts +4 -11
  15. package/dist/graphql/objects/index.d.ts +4 -11
  16. package/dist/graphql/objects/index.js +2 -4
  17. package/dist/index.cjs +18219 -20818
  18. package/dist/index.d.cts +15 -768
  19. package/dist/index.d.ts +15 -768
  20. package/dist/index.js +82 -76
  21. package/dist/index.node.cjs +23831 -26538
  22. package/dist/index.node.d.cts +191 -33
  23. package/dist/index.node.d.ts +191 -33
  24. package/dist/index.node.js +87 -181
  25. package/dist/native/index.cjs +17835 -20519
  26. package/dist/native/index.d.cts +1466 -1546
  27. package/dist/native/index.d.ts +1466 -1546
  28. package/dist/native/index.js +22605 -25286
  29. package/dist/proto/lrc20.d.cts +2 -2
  30. package/dist/proto/lrc20.d.ts +2 -2
  31. package/dist/proto/lrc20.js +3098 -46
  32. package/dist/proto/spark.cjs +241 -7
  33. package/dist/proto/spark.d.cts +1 -1
  34. package/dist/proto/spark.d.ts +1 -1
  35. package/dist/proto/spark.js +5 -1
  36. package/dist/proto/spark_token.cjs +22 -2
  37. package/dist/proto/spark_token.d.cts +8 -1
  38. package/dist/proto/spark_token.d.ts +8 -1
  39. package/dist/proto/spark_token.js +2 -2
  40. package/dist/{sdk-types-CKBsylfW.d.ts → sdk-types-DCIVdKUT.d.ts} +1 -1
  41. package/dist/{sdk-types-Ct8xmN7l.d.cts → sdk-types-DJ2ve9YY.d.cts} +1 -1
  42. package/dist/{spark-DbzGfse6.d.ts → spark-BUOx3U7Q.d.cts} +103 -5
  43. package/dist/{spark-DbzGfse6.d.cts → spark-BUOx3U7Q.d.ts} +103 -5
  44. package/dist/spark-wallet-CF8Oxjqs.d.ts +935 -0
  45. package/dist/spark-wallet-DOLSa3oF.d.cts +935 -0
  46. package/dist/spark_bindings/native/index.d.cts +1 -1
  47. package/dist/spark_bindings/native/index.d.ts +1 -1
  48. package/dist/spark_bindings/wasm/index.d.cts +1 -1
  49. package/dist/spark_bindings/wasm/index.d.ts +1 -1
  50. package/dist/{services/index.cjs → tests/test-utils.cjs} +9788 -10263
  51. package/dist/tests/test-utils.d.cts +79 -0
  52. package/dist/tests/test-utils.d.ts +79 -0
  53. package/dist/tests/test-utils.js +93 -0
  54. package/dist/types/index.cjs +239 -7
  55. package/dist/types/index.d.cts +5 -9
  56. package/dist/types/index.d.ts +5 -9
  57. package/dist/types/index.js +4 -6
  58. package/dist/{types-C-Rp0Oo7.d.ts → types-BADxR3bm.d.cts} +1 -1
  59. package/dist/{types-C-Rp0Oo7.d.cts → types-BADxR3bm.d.ts} +1 -1
  60. package/dist/{index-COm59SPw.d.ts → xchain-address-C2xMs9nz.d.cts} +6 -94
  61. package/dist/{index-CKL5DodV.d.cts → xchain-address-Ckto9oEz.d.ts} +6 -94
  62. package/package.json +9 -33
  63. package/src/debug.ts +13 -0
  64. package/src/graphql/client.ts +59 -20
  65. package/src/index.node.ts +28 -2
  66. package/src/index.ts +31 -1
  67. package/src/native/index.ts +16 -2
  68. package/src/proto/mock.ts +76 -0
  69. package/src/proto/spark.ts +354 -6
  70. package/src/proto/spark_token.ts +34 -2
  71. package/src/services/config.ts +4 -6
  72. package/src/services/connection.ts +131 -64
  73. package/src/services/coop-exit.ts +6 -3
  74. package/src/services/deposit.ts +9 -8
  75. package/src/services/lightning.ts +4 -3
  76. package/src/services/signing.ts +10 -6
  77. package/src/services/token-transactions.ts +100 -85
  78. package/src/services/transfer.ts +88 -60
  79. package/src/services/tree-creation.ts +17 -9
  80. package/src/services/wallet-config.ts +17 -9
  81. package/src/signer/signer.react-native.ts +5 -10
  82. package/src/signer/signer.ts +269 -339
  83. package/src/signer/types.ts +63 -0
  84. package/src/spark-wallet/spark-wallet.ts +226 -149
  85. package/src/spark-wallet/types.ts +22 -8
  86. package/src/tests/integration/adaptor-signature.test.ts +8 -9
  87. package/src/tests/integration/coop-exit.test.ts +214 -202
  88. package/src/tests/integration/lightning.test.ts +128 -103
  89. package/src/tests/integration/swap.test.ts +116 -84
  90. package/src/tests/integration/transfer.test.ts +291 -214
  91. package/src/tests/integration/tree-creation.test.ts +0 -5
  92. package/src/tests/integration/wallet.test.ts +1 -0
  93. package/src/tests/isHermeticTest.ts +3 -24
  94. package/src/tests/{test-util.ts → test-utils.ts} +13 -11
  95. package/src/tests/token-identifier.test.ts +6 -6
  96. package/src/tests/wrapWithOtelSpan.test.ts +1 -1
  97. package/src/{address → utils}/address.ts +1 -1
  98. package/src/utils/crypto.ts +19 -9
  99. package/src/utils/index.ts +2 -0
  100. package/src/utils/network.ts +17 -0
  101. package/src/utils/secret-sharing.ts +1 -2
  102. package/src/utils/signing.ts +1 -1
  103. package/src/utils/token-identifier.ts +27 -21
  104. package/src/utils/token-transaction-validation.ts +34 -0
  105. package/src/utils/token-transactions.ts +12 -8
  106. package/src/utils/unilateral-exit.ts +32 -0
  107. package/src/utils/xchain-address.ts +1 -1
  108. package/dist/BitcoinNetwork-TnABML0T.d.cts +0 -18
  109. package/dist/BitcoinNetwork-TnABML0T.d.ts +0 -18
  110. package/dist/LightningSendFeeEstimateInput-BgOhEAI-.d.cts +0 -10
  111. package/dist/LightningSendFeeEstimateInput-BgOhEAI-.d.ts +0 -10
  112. package/dist/address/index.cjs +0 -458
  113. package/dist/address/index.d.cts +0 -32
  114. package/dist/address/index.d.ts +0 -32
  115. package/dist/address/index.js +0 -17
  116. package/dist/chunk-4EMV7HHW.js +0 -277
  117. package/dist/chunk-C2S227QR.js +0 -2336
  118. package/dist/chunk-DXR2PXJU.js +0 -1122
  119. package/dist/chunk-GSI4OLXZ.js +0 -117
  120. package/dist/chunk-HHNQ3ZHC.js +0 -170
  121. package/dist/chunk-HMLOC6TE.js +0 -14
  122. package/dist/chunk-HSCLBJEL.js +0 -113
  123. package/dist/chunk-HWJWKEIU.js +0 -75
  124. package/dist/chunk-JB64OQES.js +0 -7095
  125. package/dist/chunk-KMUMFYFX.js +0 -137
  126. package/dist/chunk-N5VZVCGJ.js +0 -622
  127. package/dist/chunk-NSJF5F5O.js +0 -325
  128. package/dist/chunk-NTFKFRQ2.js +0 -3146
  129. package/dist/chunk-OFCJFZ4I.js +0 -24
  130. package/dist/chunk-QNNSEJ4P.js +0 -232
  131. package/dist/chunk-UXDODSDT.js +0 -838
  132. package/dist/chunk-VTUGIIWI.js +0 -0
  133. package/dist/chunk-Z5HIAYFT.js +0 -84
  134. package/dist/network-Css46DAz.d.cts +0 -46
  135. package/dist/network-hynb7iTZ.d.ts +0 -46
  136. package/dist/services/config.d.cts +0 -42
  137. package/dist/services/config.d.ts +0 -42
  138. package/dist/services/config.js +0 -17
  139. package/dist/services/connection.cjs +0 -17691
  140. package/dist/services/connection.d.cts +0 -95
  141. package/dist/services/connection.d.ts +0 -95
  142. package/dist/services/connection.js +0 -11
  143. package/dist/services/index.d.cts +0 -21
  144. package/dist/services/index.d.ts +0 -21
  145. package/dist/services/index.js +0 -58
  146. package/dist/services/lrc-connection.cjs +0 -4713
  147. package/dist/services/lrc-connection.d.cts +0 -34
  148. package/dist/services/lrc-connection.d.ts +0 -34
  149. package/dist/services/lrc-connection.js +0 -11
  150. package/dist/services/token-transactions.cjs +0 -2877
  151. package/dist/services/token-transactions.d.cts +0 -75
  152. package/dist/services/token-transactions.d.ts +0 -75
  153. package/dist/services/token-transactions.js +0 -15
  154. package/dist/services/wallet-config.cjs +0 -340
  155. package/dist/services/wallet-config.d.cts +0 -56
  156. package/dist/services/wallet-config.d.ts +0 -56
  157. package/dist/services/wallet-config.js +0 -33
  158. package/dist/signer/signer.cjs +0 -2004
  159. package/dist/signer/signer.d.cts +0 -10
  160. package/dist/signer/signer.d.ts +0 -10
  161. package/dist/signer/signer.js +0 -24
  162. package/dist/signer-BP6F__oR.d.cts +0 -187
  163. package/dist/signer-BVZJXcq7.d.ts +0 -187
  164. package/dist/utils/index.cjs +0 -2947
  165. package/dist/utils/index.d.cts +0 -18
  166. package/dist/utils/index.d.ts +0 -18
  167. package/dist/utils/index.js +0 -157
  168. package/ios/spark_frost.kt +0 -1900
  169. package/src/address/index.ts +0 -1
  170. package/src/services/lrc-connection.ts +0 -215
  171. /package/dist/{chunk-L3EHBOUX.js → chunk-BYXBJQAS.js} +0 -0
@@ -0,0 +1,79 @@
1
+ import { Q as QueryTransfersResponse, f as Transfer, d as TreeNode } from '../spark-BUOx3U7Q.cjs';
2
+ import { o as SparkWallet$1, I as InitWalletResponse, C as ConfigOptions, q as SparkWalletProps } from '../spark-wallet-DOLSa3oF.cjs';
3
+ import { a1 as SparkSigner } from '../client-Drs5Lapg.cjs';
4
+ import { Transaction } from '@scure/btc-signer';
5
+ import { TransactionInput, TransactionOutput } from '@scure/btc-signer/psbt';
6
+ import '@bufbuild/protobuf/wire';
7
+ import 'nice-grpc-common';
8
+ import '@buildonspark/lrc20-sdk';
9
+ import 'bitcoinjs-lib';
10
+ import 'nice-grpc';
11
+ import 'nice-grpc-web';
12
+ import '../proto/spark_token.cjs';
13
+ import 'eventemitter3';
14
+ import '../sdk-types-DJ2ve9YY.cjs';
15
+ import '@lightsparkdev/core';
16
+ import '@scure/bip32';
17
+ import '../types-BADxR3bm.cjs';
18
+
19
+ declare class SparkWallet extends SparkWallet$1 {
20
+ private tracer;
21
+ protected wrapWithOtelSpan<T>(name: string, fn: (...args: any[]) => Promise<T>): (...args: any[]) => Promise<T>;
22
+ protected initializeTracer(tracerName: string): Promise<void>;
23
+ private wrapSparkWalletWithTracing;
24
+ protected initWallet(mnemonicOrSeed?: Uint8Array | string, accountNumber?: number): Promise<InitWalletResponse | undefined>;
25
+ }
26
+
27
+ interface ISparkWalletTesting extends SparkWallet {
28
+ getSigner(): SparkSigner;
29
+ queryPendingTransfers(): Promise<QueryTransfersResponse>;
30
+ verifyPendingTransfer(transfer: Transfer): Promise<Map<string, Uint8Array>>;
31
+ }
32
+ declare class SparkWalletTesting extends SparkWallet implements ISparkWalletTesting {
33
+ private disableEvents;
34
+ constructor(options?: ConfigOptions, signer?: SparkSigner, disableEvents?: boolean);
35
+ static initialize(props: SparkWalletProps, disableEvents?: boolean): Promise<{
36
+ wallet: SparkWalletTesting;
37
+ mnemonic: string | undefined;
38
+ }>;
39
+ protected setupBackgroundStream(): Promise<void>;
40
+ getSigner(): SparkSigner;
41
+ queryPendingTransfers(): Promise<QueryTransfersResponse>;
42
+ verifyPendingTransfer(transfer: Transfer): Promise<Map<string, Uint8Array>>;
43
+ }
44
+
45
+ type FaucetCoin = {
46
+ key: Uint8Array;
47
+ outpoint: TransactionInput;
48
+ txout: TransactionOutput;
49
+ };
50
+ declare class BitcoinFaucet {
51
+ private url;
52
+ private username;
53
+ private password;
54
+ private coins;
55
+ private static instance;
56
+ private miningAddress;
57
+ private lock;
58
+ private constructor();
59
+ static getInstance(url?: string, username?: string, password?: string): BitcoinFaucet;
60
+ private withLock;
61
+ fund(): Promise<FaucetCoin>;
62
+ private refill;
63
+ sendFaucetCoinToP2WPKHAddress(pubKey: Uint8Array): Promise<void>;
64
+ signFaucetCoin(unsignedTx: Transaction, fundingTxOut: TransactionOutput, key: Uint8Array): Promise<Transaction>;
65
+ mineBlocks(numBlocks: number): Promise<any>;
66
+ private call;
67
+ generateToAddress(numBlocks: number, address: string): Promise<any>;
68
+ getBlock(blockHash: string): Promise<any>;
69
+ broadcastTx(txHex: string): Promise<any>;
70
+ getNewAddress(): Promise<string>;
71
+ sendToAddress(address: string, amount: bigint): Promise<Transaction>;
72
+ getRawTransaction(txid: string): Promise<any>;
73
+ }
74
+
75
+ declare function getTestWalletConfig(): ConfigOptions;
76
+ declare function getTestWalletConfigWithIdentityKey(identityPrivateKey: Uint8Array): ConfigOptions;
77
+ declare function createNewTree(wallet: SparkWalletTesting, leafId: string, faucet: BitcoinFaucet, amountSats?: bigint): Promise<TreeNode>;
78
+
79
+ export { BitcoinFaucet, createNewTree, getTestWalletConfig, getTestWalletConfigWithIdentityKey };
@@ -0,0 +1,79 @@
1
+ import { Q as QueryTransfersResponse, f as Transfer, d as TreeNode } from '../spark-BUOx3U7Q.js';
2
+ import { o as SparkWallet$1, I as InitWalletResponse, C as ConfigOptions, q as SparkWalletProps } from '../spark-wallet-CF8Oxjqs.js';
3
+ import { a1 as SparkSigner } from '../client-DKbwpcnl.js';
4
+ import { Transaction } from '@scure/btc-signer';
5
+ import { TransactionInput, TransactionOutput } from '@scure/btc-signer/psbt';
6
+ import '@bufbuild/protobuf/wire';
7
+ import 'nice-grpc-common';
8
+ import '@buildonspark/lrc20-sdk';
9
+ import 'bitcoinjs-lib';
10
+ import 'nice-grpc';
11
+ import 'nice-grpc-web';
12
+ import '../proto/spark_token.js';
13
+ import 'eventemitter3';
14
+ import '../sdk-types-DCIVdKUT.js';
15
+ import '@lightsparkdev/core';
16
+ import '@scure/bip32';
17
+ import '../types-BADxR3bm.js';
18
+
19
+ declare class SparkWallet extends SparkWallet$1 {
20
+ private tracer;
21
+ protected wrapWithOtelSpan<T>(name: string, fn: (...args: any[]) => Promise<T>): (...args: any[]) => Promise<T>;
22
+ protected initializeTracer(tracerName: string): Promise<void>;
23
+ private wrapSparkWalletWithTracing;
24
+ protected initWallet(mnemonicOrSeed?: Uint8Array | string, accountNumber?: number): Promise<InitWalletResponse | undefined>;
25
+ }
26
+
27
+ interface ISparkWalletTesting extends SparkWallet {
28
+ getSigner(): SparkSigner;
29
+ queryPendingTransfers(): Promise<QueryTransfersResponse>;
30
+ verifyPendingTransfer(transfer: Transfer): Promise<Map<string, Uint8Array>>;
31
+ }
32
+ declare class SparkWalletTesting extends SparkWallet implements ISparkWalletTesting {
33
+ private disableEvents;
34
+ constructor(options?: ConfigOptions, signer?: SparkSigner, disableEvents?: boolean);
35
+ static initialize(props: SparkWalletProps, disableEvents?: boolean): Promise<{
36
+ wallet: SparkWalletTesting;
37
+ mnemonic: string | undefined;
38
+ }>;
39
+ protected setupBackgroundStream(): Promise<void>;
40
+ getSigner(): SparkSigner;
41
+ queryPendingTransfers(): Promise<QueryTransfersResponse>;
42
+ verifyPendingTransfer(transfer: Transfer): Promise<Map<string, Uint8Array>>;
43
+ }
44
+
45
+ type FaucetCoin = {
46
+ key: Uint8Array;
47
+ outpoint: TransactionInput;
48
+ txout: TransactionOutput;
49
+ };
50
+ declare class BitcoinFaucet {
51
+ private url;
52
+ private username;
53
+ private password;
54
+ private coins;
55
+ private static instance;
56
+ private miningAddress;
57
+ private lock;
58
+ private constructor();
59
+ static getInstance(url?: string, username?: string, password?: string): BitcoinFaucet;
60
+ private withLock;
61
+ fund(): Promise<FaucetCoin>;
62
+ private refill;
63
+ sendFaucetCoinToP2WPKHAddress(pubKey: Uint8Array): Promise<void>;
64
+ signFaucetCoin(unsignedTx: Transaction, fundingTxOut: TransactionOutput, key: Uint8Array): Promise<Transaction>;
65
+ mineBlocks(numBlocks: number): Promise<any>;
66
+ private call;
67
+ generateToAddress(numBlocks: number, address: string): Promise<any>;
68
+ getBlock(blockHash: string): Promise<any>;
69
+ broadcastTx(txHex: string): Promise<any>;
70
+ getNewAddress(): Promise<string>;
71
+ sendToAddress(address: string, amount: bigint): Promise<Transaction>;
72
+ getRawTransaction(txid: string): Promise<any>;
73
+ }
74
+
75
+ declare function getTestWalletConfig(): ConfigOptions;
76
+ declare function getTestWalletConfigWithIdentityKey(identityPrivateKey: Uint8Array): ConfigOptions;
77
+ declare function createNewTree(wallet: SparkWalletTesting, leafId: string, faucet: BitcoinFaucet, amountSats?: bigint): Promise<TreeNode>;
78
+
79
+ export { BitcoinFaucet, createNewTree, getTestWalletConfig, getTestWalletConfigWithIdentityKey };
@@ -0,0 +1,93 @@
1
+ import "../chunk-XYTKKLCV.js";
2
+ import "../chunk-BYXBJQAS.js";
3
+ import {
4
+ BitcoinFaucet,
5
+ ConnectionManager,
6
+ DepositService,
7
+ RPCError,
8
+ WalletConfig,
9
+ WalletConfigService,
10
+ getNetwork,
11
+ getP2TRAddressFromPublicKey
12
+ } from "../chunk-UDK3EBE5.js";
13
+ import "../chunk-4JD4HIAN.js";
14
+ import "../chunk-TM6CHQXC.js";
15
+ import "../chunk-CDLETEDT.js";
16
+ import "../chunk-2ENZX6LT.js";
17
+ import "../chunk-MVRQ5US7.js";
18
+
19
+ // src/tests/test-utils.ts
20
+ import { secp256k1 } from "@noble/curves/secp256k1";
21
+ import { Address, OutScript, Transaction } from "@scure/btc-signer";
22
+ function getTestWalletConfig() {
23
+ const identityPrivateKey = secp256k1.utils.randomPrivateKey();
24
+ return getTestWalletConfigWithIdentityKey(identityPrivateKey);
25
+ }
26
+ function getTestWalletConfigWithIdentityKey(identityPrivateKey) {
27
+ return {
28
+ ...WalletConfig.LOCAL,
29
+ identityPrivateKey
30
+ };
31
+ }
32
+ async function createNewTree(wallet, leafId, faucet, amountSats = 100000n) {
33
+ const faucetCoin = await faucet.fund();
34
+ const configService = new WalletConfigService(
35
+ {
36
+ network: "LOCAL"
37
+ },
38
+ wallet.getSigner()
39
+ );
40
+ const connectionManager = new ConnectionManager(configService);
41
+ const depositService = new DepositService(configService, connectionManager);
42
+ const pubKey = await wallet.getSigner().getPublicKeyFromDerivation({
43
+ type: "leaf" /* LEAF */,
44
+ path: leafId
45
+ });
46
+ const depositResp = await depositService.generateDepositAddress({
47
+ signingPubkey: pubKey,
48
+ leafId
49
+ });
50
+ if (!depositResp.depositAddress) {
51
+ throw new RPCError("Deposit address not found", {
52
+ method: "generateDepositAddress",
53
+ params: { signingPubkey: pubKey, leafId }
54
+ });
55
+ }
56
+ const depositTx = new Transaction();
57
+ depositTx.addInput(faucetCoin.outpoint);
58
+ const addr = Address(getNetwork(4 /* LOCAL */)).decode(
59
+ depositResp.depositAddress.address
60
+ );
61
+ const script = OutScript.encode(addr);
62
+ depositTx.addOutput({ script, amount: amountSats });
63
+ const treeResp = await depositService.createTreeRoot({
64
+ keyDerivation: {
65
+ type: "leaf" /* LEAF */,
66
+ path: leafId
67
+ },
68
+ verifyingKey: depositResp.depositAddress.verifyingKey,
69
+ depositTx,
70
+ vout: 0
71
+ });
72
+ const signedDepositTx = await faucet.signFaucetCoin(
73
+ depositTx,
74
+ faucetCoin.txout,
75
+ faucetCoin.key
76
+ );
77
+ await faucet.broadcastTx(signedDepositTx.hex);
78
+ const randomKey = secp256k1.utils.randomPrivateKey();
79
+ const randomPubKey = secp256k1.getPublicKey(randomKey);
80
+ const randomAddress = getP2TRAddressFromPublicKey(
81
+ randomPubKey,
82
+ 4 /* LOCAL */
83
+ );
84
+ await faucet.generateToAddress(1, randomAddress);
85
+ await new Promise((resolve) => setTimeout(resolve, 100));
86
+ return treeResp.nodes[0];
87
+ }
88
+ export {
89
+ BitcoinFaucet,
90
+ createNewTree,
91
+ getTestWalletConfig,
92
+ getTestWalletConfigWithIdentityKey
93
+ };
@@ -1920,6 +1920,8 @@ __export(spark_exports, {
1920
1920
  InitiatePreimageSwapRequest: () => InitiatePreimageSwapRequest,
1921
1921
  InitiatePreimageSwapRequest_Reason: () => InitiatePreimageSwapRequest_Reason,
1922
1922
  InitiatePreimageSwapResponse: () => InitiatePreimageSwapResponse,
1923
+ InitiateStaticDepositUtxoRefundRequest: () => InitiateStaticDepositUtxoRefundRequest,
1924
+ InitiateStaticDepositUtxoRefundResponse: () => InitiateStaticDepositUtxoRefundResponse,
1923
1925
  InitiateUtxoSwapRequest: () => InitiateUtxoSwapRequest,
1924
1926
  InitiateUtxoSwapResponse: () => InitiateUtxoSwapResponse,
1925
1927
  InvestigateLeavesRequest: () => InvestigateLeavesRequest,
@@ -5537,7 +5539,12 @@ var TokenTransactionConfirmationMetadata = {
5537
5539
  }
5538
5540
  };
5539
5541
  function createBaseTokenTransactionWithStatus() {
5540
- return { tokenTransaction: void 0, status: 0, confirmationMetadata: void 0 };
5542
+ return {
5543
+ tokenTransaction: void 0,
5544
+ status: 0,
5545
+ confirmationMetadata: void 0,
5546
+ tokenTransactionHash: new Uint8Array(0)
5547
+ };
5541
5548
  }
5542
5549
  var TokenTransactionWithStatus = {
5543
5550
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -5550,6 +5557,9 @@ var TokenTransactionWithStatus = {
5550
5557
  if (message.confirmationMetadata !== void 0) {
5551
5558
  TokenTransactionConfirmationMetadata.encode(message.confirmationMetadata, writer.uint32(26).fork()).join();
5552
5559
  }
5560
+ if (message.tokenTransactionHash.length !== 0) {
5561
+ writer.uint32(34).bytes(message.tokenTransactionHash);
5562
+ }
5553
5563
  return writer;
5554
5564
  },
5555
5565
  decode(input, length) {
@@ -5580,6 +5590,13 @@ var TokenTransactionWithStatus = {
5580
5590
  message.confirmationMetadata = TokenTransactionConfirmationMetadata.decode(reader, reader.uint32());
5581
5591
  continue;
5582
5592
  }
5593
+ case 4: {
5594
+ if (tag !== 34) {
5595
+ break;
5596
+ }
5597
+ message.tokenTransactionHash = reader.bytes();
5598
+ continue;
5599
+ }
5583
5600
  }
5584
5601
  if ((tag & 7) === 4 || tag === 0) {
5585
5602
  break;
@@ -5592,7 +5609,8 @@ var TokenTransactionWithStatus = {
5592
5609
  return {
5593
5610
  tokenTransaction: isSet3(object.tokenTransaction) ? TokenTransaction.fromJSON(object.tokenTransaction) : void 0,
5594
5611
  status: isSet3(object.status) ? tokenTransactionStatusFromJSON(object.status) : 0,
5595
- confirmationMetadata: isSet3(object.confirmationMetadata) ? TokenTransactionConfirmationMetadata.fromJSON(object.confirmationMetadata) : void 0
5612
+ confirmationMetadata: isSet3(object.confirmationMetadata) ? TokenTransactionConfirmationMetadata.fromJSON(object.confirmationMetadata) : void 0,
5613
+ tokenTransactionHash: isSet3(object.tokenTransactionHash) ? bytesFromBase642(object.tokenTransactionHash) : new Uint8Array(0)
5596
5614
  };
5597
5615
  },
5598
5616
  toJSON(message) {
@@ -5606,6 +5624,9 @@ var TokenTransactionWithStatus = {
5606
5624
  if (message.confirmationMetadata !== void 0) {
5607
5625
  obj.confirmationMetadata = TokenTransactionConfirmationMetadata.toJSON(message.confirmationMetadata);
5608
5626
  }
5627
+ if (message.tokenTransactionHash.length !== 0) {
5628
+ obj.tokenTransactionHash = base64FromBytes2(message.tokenTransactionHash);
5629
+ }
5609
5630
  return obj;
5610
5631
  },
5611
5632
  create(base) {
@@ -5616,6 +5637,7 @@ var TokenTransactionWithStatus = {
5616
5637
  message.tokenTransaction = object.tokenTransaction !== void 0 && object.tokenTransaction !== null ? TokenTransaction.fromPartial(object.tokenTransaction) : void 0;
5617
5638
  message.status = object.status ?? 0;
5618
5639
  message.confirmationMetadata = object.confirmationMetadata !== void 0 && object.confirmationMetadata !== null ? TokenTransactionConfirmationMetadata.fromPartial(object.confirmationMetadata) : void 0;
5640
+ message.tokenTransactionHash = object.tokenTransactionHash ?? new Uint8Array(0);
5619
5641
  return message;
5620
5642
  }
5621
5643
  };
@@ -10490,13 +10512,16 @@ var RequestedSigningCommitments_SigningNonceCommitmentsEntry = {
10490
10512
  }
10491
10513
  };
10492
10514
  function createBaseGetSigningCommitmentsRequest() {
10493
- return { nodeIds: [] };
10515
+ return { nodeIds: [], count: 0 };
10494
10516
  }
10495
10517
  var GetSigningCommitmentsRequest = {
10496
10518
  encode(message, writer = new import_wire4.BinaryWriter()) {
10497
10519
  for (const v of message.nodeIds) {
10498
10520
  writer.uint32(10).string(v);
10499
10521
  }
10522
+ if (message.count !== 0) {
10523
+ writer.uint32(16).uint32(message.count);
10524
+ }
10500
10525
  return writer;
10501
10526
  },
10502
10527
  decode(input, length) {
@@ -10513,6 +10538,13 @@ var GetSigningCommitmentsRequest = {
10513
10538
  message.nodeIds.push(reader.string());
10514
10539
  continue;
10515
10540
  }
10541
+ case 2: {
10542
+ if (tag !== 16) {
10543
+ break;
10544
+ }
10545
+ message.count = reader.uint32();
10546
+ continue;
10547
+ }
10516
10548
  }
10517
10549
  if ((tag & 7) === 4 || tag === 0) {
10518
10550
  break;
@@ -10523,7 +10555,8 @@ var GetSigningCommitmentsRequest = {
10523
10555
  },
10524
10556
  fromJSON(object) {
10525
10557
  return {
10526
- nodeIds: globalThis.Array.isArray(object?.nodeIds) ? object.nodeIds.map((e) => globalThis.String(e)) : []
10558
+ nodeIds: globalThis.Array.isArray(object?.nodeIds) ? object.nodeIds.map((e) => globalThis.String(e)) : [],
10559
+ count: isSet3(object.count) ? globalThis.Number(object.count) : 0
10527
10560
  };
10528
10561
  },
10529
10562
  toJSON(message) {
@@ -10531,6 +10564,9 @@ var GetSigningCommitmentsRequest = {
10531
10564
  if (message.nodeIds?.length) {
10532
10565
  obj.nodeIds = message.nodeIds;
10533
10566
  }
10567
+ if (message.count !== 0) {
10568
+ obj.count = Math.round(message.count);
10569
+ }
10534
10570
  return obj;
10535
10571
  },
10536
10572
  create(base) {
@@ -10539,6 +10575,7 @@ var GetSigningCommitmentsRequest = {
10539
10575
  fromPartial(object) {
10540
10576
  const message = createBaseGetSigningCommitmentsRequest();
10541
10577
  message.nodeIds = object.nodeIds?.map((e) => e) || [];
10578
+ message.count = object.count ?? 0;
10542
10579
  return message;
10543
10580
  }
10544
10581
  };
@@ -14035,7 +14072,7 @@ var QueryUnusedDepositAddressesRequest = {
14035
14072
  }
14036
14073
  };
14037
14074
  function createBaseQueryStaticDepositAddressesRequest() {
14038
- return { identityPublicKey: new Uint8Array(0), network: 0, limit: 0, offset: 0 };
14075
+ return { identityPublicKey: new Uint8Array(0), network: 0, limit: 0, offset: 0, depositAddress: void 0 };
14039
14076
  }
14040
14077
  var QueryStaticDepositAddressesRequest = {
14041
14078
  encode(message, writer = new import_wire4.BinaryWriter()) {
@@ -14051,6 +14088,9 @@ var QueryStaticDepositAddressesRequest = {
14051
14088
  if (message.offset !== 0) {
14052
14089
  writer.uint32(40).int64(message.offset);
14053
14090
  }
14091
+ if (message.depositAddress !== void 0) {
14092
+ writer.uint32(50).string(message.depositAddress);
14093
+ }
14054
14094
  return writer;
14055
14095
  },
14056
14096
  decode(input, length) {
@@ -14088,6 +14128,13 @@ var QueryStaticDepositAddressesRequest = {
14088
14128
  message.offset = longToNumber2(reader.int64());
14089
14129
  continue;
14090
14130
  }
14131
+ case 6: {
14132
+ if (tag !== 50) {
14133
+ break;
14134
+ }
14135
+ message.depositAddress = reader.string();
14136
+ continue;
14137
+ }
14091
14138
  }
14092
14139
  if ((tag & 7) === 4 || tag === 0) {
14093
14140
  break;
@@ -14101,7 +14148,8 @@ var QueryStaticDepositAddressesRequest = {
14101
14148
  identityPublicKey: isSet3(object.identityPublicKey) ? bytesFromBase642(object.identityPublicKey) : new Uint8Array(0),
14102
14149
  network: isSet3(object.network) ? networkFromJSON(object.network) : 0,
14103
14150
  limit: isSet3(object.limit) ? globalThis.Number(object.limit) : 0,
14104
- offset: isSet3(object.offset) ? globalThis.Number(object.offset) : 0
14151
+ offset: isSet3(object.offset) ? globalThis.Number(object.offset) : 0,
14152
+ depositAddress: isSet3(object.depositAddress) ? globalThis.String(object.depositAddress) : void 0
14105
14153
  };
14106
14154
  },
14107
14155
  toJSON(message) {
@@ -14118,6 +14166,9 @@ var QueryStaticDepositAddressesRequest = {
14118
14166
  if (message.offset !== 0) {
14119
14167
  obj.offset = Math.round(message.offset);
14120
14168
  }
14169
+ if (message.depositAddress !== void 0) {
14170
+ obj.depositAddress = message.depositAddress;
14171
+ }
14121
14172
  return obj;
14122
14173
  },
14123
14174
  create(base) {
@@ -14129,6 +14180,7 @@ var QueryStaticDepositAddressesRequest = {
14129
14180
  message.network = object.network ?? 0;
14130
14181
  message.limit = object.limit ?? 0;
14131
14182
  message.offset = object.offset ?? 0;
14183
+ message.depositAddress = object.depositAddress ?? void 0;
14132
14184
  return message;
14133
14185
  }
14134
14186
  };
@@ -14746,6 +14798,157 @@ var PaymentIntentFields = {
14746
14798
  return message;
14747
14799
  }
14748
14800
  };
14801
+ function createBaseInitiateStaticDepositUtxoRefundRequest() {
14802
+ return { onChainUtxo: void 0, refundTxSigningJob: void 0, userSignature: new Uint8Array(0) };
14803
+ }
14804
+ var InitiateStaticDepositUtxoRefundRequest = {
14805
+ encode(message, writer = new import_wire4.BinaryWriter()) {
14806
+ if (message.onChainUtxo !== void 0) {
14807
+ UTXO.encode(message.onChainUtxo, writer.uint32(10).fork()).join();
14808
+ }
14809
+ if (message.refundTxSigningJob !== void 0) {
14810
+ SigningJob.encode(message.refundTxSigningJob, writer.uint32(26).fork()).join();
14811
+ }
14812
+ if (message.userSignature.length !== 0) {
14813
+ writer.uint32(34).bytes(message.userSignature);
14814
+ }
14815
+ return writer;
14816
+ },
14817
+ decode(input, length) {
14818
+ const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
14819
+ const end = length === void 0 ? reader.len : reader.pos + length;
14820
+ const message = createBaseInitiateStaticDepositUtxoRefundRequest();
14821
+ while (reader.pos < end) {
14822
+ const tag = reader.uint32();
14823
+ switch (tag >>> 3) {
14824
+ case 1: {
14825
+ if (tag !== 10) {
14826
+ break;
14827
+ }
14828
+ message.onChainUtxo = UTXO.decode(reader, reader.uint32());
14829
+ continue;
14830
+ }
14831
+ case 3: {
14832
+ if (tag !== 26) {
14833
+ break;
14834
+ }
14835
+ message.refundTxSigningJob = SigningJob.decode(reader, reader.uint32());
14836
+ continue;
14837
+ }
14838
+ case 4: {
14839
+ if (tag !== 34) {
14840
+ break;
14841
+ }
14842
+ message.userSignature = reader.bytes();
14843
+ continue;
14844
+ }
14845
+ }
14846
+ if ((tag & 7) === 4 || tag === 0) {
14847
+ break;
14848
+ }
14849
+ reader.skip(tag & 7);
14850
+ }
14851
+ return message;
14852
+ },
14853
+ fromJSON(object) {
14854
+ return {
14855
+ onChainUtxo: isSet3(object.onChainUtxo) ? UTXO.fromJSON(object.onChainUtxo) : void 0,
14856
+ refundTxSigningJob: isSet3(object.refundTxSigningJob) ? SigningJob.fromJSON(object.refundTxSigningJob) : void 0,
14857
+ userSignature: isSet3(object.userSignature) ? bytesFromBase642(object.userSignature) : new Uint8Array(0)
14858
+ };
14859
+ },
14860
+ toJSON(message) {
14861
+ const obj = {};
14862
+ if (message.onChainUtxo !== void 0) {
14863
+ obj.onChainUtxo = UTXO.toJSON(message.onChainUtxo);
14864
+ }
14865
+ if (message.refundTxSigningJob !== void 0) {
14866
+ obj.refundTxSigningJob = SigningJob.toJSON(message.refundTxSigningJob);
14867
+ }
14868
+ if (message.userSignature.length !== 0) {
14869
+ obj.userSignature = base64FromBytes2(message.userSignature);
14870
+ }
14871
+ return obj;
14872
+ },
14873
+ create(base) {
14874
+ return InitiateStaticDepositUtxoRefundRequest.fromPartial(base ?? {});
14875
+ },
14876
+ fromPartial(object) {
14877
+ const message = createBaseInitiateStaticDepositUtxoRefundRequest();
14878
+ message.onChainUtxo = object.onChainUtxo !== void 0 && object.onChainUtxo !== null ? UTXO.fromPartial(object.onChainUtxo) : void 0;
14879
+ message.refundTxSigningJob = object.refundTxSigningJob !== void 0 && object.refundTxSigningJob !== null ? SigningJob.fromPartial(object.refundTxSigningJob) : void 0;
14880
+ message.userSignature = object.userSignature ?? new Uint8Array(0);
14881
+ return message;
14882
+ }
14883
+ };
14884
+ function createBaseInitiateStaticDepositUtxoRefundResponse() {
14885
+ return { refundTxSigningResult: void 0, depositAddress: void 0 };
14886
+ }
14887
+ var InitiateStaticDepositUtxoRefundResponse = {
14888
+ encode(message, writer = new import_wire4.BinaryWriter()) {
14889
+ if (message.refundTxSigningResult !== void 0) {
14890
+ SigningResult2.encode(message.refundTxSigningResult, writer.uint32(10).fork()).join();
14891
+ }
14892
+ if (message.depositAddress !== void 0) {
14893
+ DepositAddressQueryResult.encode(message.depositAddress, writer.uint32(18).fork()).join();
14894
+ }
14895
+ return writer;
14896
+ },
14897
+ decode(input, length) {
14898
+ const reader = input instanceof import_wire4.BinaryReader ? input : new import_wire4.BinaryReader(input);
14899
+ const end = length === void 0 ? reader.len : reader.pos + length;
14900
+ const message = createBaseInitiateStaticDepositUtxoRefundResponse();
14901
+ while (reader.pos < end) {
14902
+ const tag = reader.uint32();
14903
+ switch (tag >>> 3) {
14904
+ case 1: {
14905
+ if (tag !== 10) {
14906
+ break;
14907
+ }
14908
+ message.refundTxSigningResult = SigningResult2.decode(reader, reader.uint32());
14909
+ continue;
14910
+ }
14911
+ case 2: {
14912
+ if (tag !== 18) {
14913
+ break;
14914
+ }
14915
+ message.depositAddress = DepositAddressQueryResult.decode(reader, reader.uint32());
14916
+ continue;
14917
+ }
14918
+ }
14919
+ if ((tag & 7) === 4 || tag === 0) {
14920
+ break;
14921
+ }
14922
+ reader.skip(tag & 7);
14923
+ }
14924
+ return message;
14925
+ },
14926
+ fromJSON(object) {
14927
+ return {
14928
+ refundTxSigningResult: isSet3(object.refundTxSigningResult) ? SigningResult2.fromJSON(object.refundTxSigningResult) : void 0,
14929
+ depositAddress: isSet3(object.depositAddress) ? DepositAddressQueryResult.fromJSON(object.depositAddress) : void 0
14930
+ };
14931
+ },
14932
+ toJSON(message) {
14933
+ const obj = {};
14934
+ if (message.refundTxSigningResult !== void 0) {
14935
+ obj.refundTxSigningResult = SigningResult2.toJSON(message.refundTxSigningResult);
14936
+ }
14937
+ if (message.depositAddress !== void 0) {
14938
+ obj.depositAddress = DepositAddressQueryResult.toJSON(message.depositAddress);
14939
+ }
14940
+ return obj;
14941
+ },
14942
+ create(base) {
14943
+ return InitiateStaticDepositUtxoRefundResponse.fromPartial(base ?? {});
14944
+ },
14945
+ fromPartial(object) {
14946
+ const message = createBaseInitiateStaticDepositUtxoRefundResponse();
14947
+ message.refundTxSigningResult = object.refundTxSigningResult !== void 0 && object.refundTxSigningResult !== null ? SigningResult2.fromPartial(object.refundTxSigningResult) : void 0;
14948
+ message.depositAddress = object.depositAddress !== void 0 && object.depositAddress !== null ? DepositAddressQueryResult.fromPartial(object.depositAddress) : void 0;
14949
+ return message;
14950
+ }
14951
+ };
14749
14952
  function createBaseInitiateUtxoSwapRequest() {
14750
14953
  return {
14751
14954
  onChainUtxo: void 0,
@@ -16139,6 +16342,14 @@ var SparkServiceDefinition = {
16139
16342
  responseStream: false,
16140
16343
  options: {}
16141
16344
  },
16345
+ create_tree_v2: {
16346
+ name: "create_tree_v2",
16347
+ requestType: CreateTreeRequest,
16348
+ requestStream: false,
16349
+ responseType: CreateTreeResponse,
16350
+ responseStream: false,
16351
+ options: {}
16352
+ },
16142
16353
  get_signing_operator_list: {
16143
16354
  name: "get_signing_operator_list",
16144
16355
  requestType: Empty,
@@ -16268,7 +16479,28 @@ var SparkServiceDefinition = {
16268
16479
  responseStream: true,
16269
16480
  options: {}
16270
16481
  },
16271
- /** Claim a deposit to a static address from SSP side */
16482
+ /**
16483
+ * Signs the provided refund transaction which spends the UTXO from a static
16484
+ * deposit address. If successful, the UTXO will no longer be available to claim on
16485
+ * the Spark network, and the refund transaction must be broadcasted on L1 to claim
16486
+ * the funds. Returns an error if the UTXO has already been claimed.
16487
+ */
16488
+ initiate_static_deposit_utxo_refund: {
16489
+ name: "initiate_static_deposit_utxo_refund",
16490
+ requestType: InitiateStaticDepositUtxoRefundRequest,
16491
+ requestStream: false,
16492
+ responseType: InitiateStaticDepositUtxoRefundResponse,
16493
+ responseStream: false,
16494
+ options: {}
16495
+ },
16496
+ /**
16497
+ * DEPRECATED: This unified method is being split for better clarity and type safety
16498
+ *
16499
+ * For swap operations: Use spark_ssp_internal.initiate_static_deposit_utxo_swap()
16500
+ * For refund operations: Use initiate_static_deposit_utxo_refund()
16501
+ *
16502
+ * @deprecated
16503
+ */
16272
16504
  initiate_utxo_swap: {
16273
16505
  name: "initiate_utxo_swap",
16274
16506
  requestType: InitiateUtxoSwapRequest,
@@ -1,16 +1,12 @@
1
- export { B as BitcoinNetwork } from '../BitcoinNetwork-TnABML0T.cjs';
1
+ export { B as BitcoinNetwork, C as ClaimStaticDepositOutput, a as CompleteCoopExitInput, b as CompleteLeavesSwapInput, c as CoopExitFeeEstimate, d as CoopExitFeeEstimatesInput, e as CoopExitFeeEstimatesOutput, f as CoopExitFeeQuote, h as CoopExitFeeQuoteInput, i as CoopExitRequest, k as CurrencyAmount, l as CurrencyUnit, E as ExitSpeed, G as GetChallengeOutput, I as Invoice, L as Leaf, m as LeavesSwapFeeEstimateOutput, o as LeavesSwapRequest, q as LightningReceiveRequest, r as LightningReceiveRequestStatus, s as LightningSendFeeEstimateInput, t as LightningSendFeeEstimateOutput, v as LightningSendRequest, w as LightningSendRequestStatus, P as PageInfo, R as RequestCoopExitInput, x as RequestLeavesSwapInput, y as RequestLightningReceiveInput, z as RequestLightningSendInput, S as SparkCoopExitRequestStatus, A as SparkLeavesSwapRequestStatus, D as SparkTransferToLeavesConnection, F as StaticDepositQuoteInput, H as StaticDepositQuoteOutput, J as SwapLeaf, T as Transfer, U as UserLeafInput, V as VerifyChallengeOutput, g as getCoopExitFeeQuoteQuery, j as getCoopExitRequestQuery, n as getLeavesSwapRequestQuery, p as getLightningReceiveRequestQuery, u as getLightningSendRequestQuery } from '../client-Drs5Lapg.cjs';
2
2
  export { ClaimStaticDeposit, ClaimStaticDepositInput, ClaimStaticDepositRequestType, ClaimStaticDepositStatus, CompleteCoopExitOutput, CompleteLeavesSwapOutput, CompleteSeedReleaseInput, CompleteSeedReleaseOutput, Connection, CoopExitFeeQuoteOutput, Entity, GetChallengeInput, LeavesSwapFeeEstimateInput, NotifyReceiverTransferInput, Provider, RequestCoopExitOutput, RequestLeavesSwapOutput, RequestLightningReceiveOutput, RequestLightningSendOutput, SparkUserRequestStatus, SparkUserRequestType, SparkWalletUser, SparkWalletUserToUserRequestsConnection, StartSeedReleaseInput, UserRequest, VerifyChallengeInput, WalletUserIdentityPublicKeyInput, WalletUserIdentityPublicKeyOutput, getClaimStaticDepositQuery, getUserRequestQuery } from '../graphql/objects/index.cjs';
3
- export { C as ClaimStaticDepositOutput, a as CompleteCoopExitInput, b as CompleteLeavesSwapInput, c as CoopExitFeeEstimate, d as CoopExitFeeEstimatesInput, e as CoopExitFeeEstimatesOutput, f as CoopExitFeeQuote, h as CoopExitFeeQuoteInput, i as CoopExitRequest, k as CurrencyAmount, l as CurrencyUnit, E as ExitSpeed, G as GetChallengeOutput, I as Invoice, L as Leaf, m as LeavesSwapFeeEstimateOutput, o as LeavesSwapRequest, q as LightningReceiveRequest, r as LightningReceiveRequestStatus, s as LightningSendFeeEstimateOutput, u as LightningSendRequest, v as LightningSendRequestStatus, P as PageInfo, R as RequestCoopExitInput, w as RequestLeavesSwapInput, x as RequestLightningReceiveInput, y as RequestLightningSendInput, S as SparkCoopExitRequestStatus, z as SparkLeavesSwapRequestStatus, A as SparkTransferToLeavesConnection, B as StaticDepositQuoteInput, D as StaticDepositQuoteOutput, F as SwapLeaf, T as Transfer, U as UserLeafInput, V as VerifyChallengeOutput, g as getCoopExitFeeQuoteQuery, j as getCoopExitRequestQuery, n as getLeavesSwapRequestQuery, p as getLightningReceiveRequestQuery, t as getLightningSendRequestQuery } from '../RequestLightningSendInput-2cSh_In4.cjs';
4
- export { L as LightningSendFeeEstimateInput } from '../LightningSendFeeEstimateInput-BgOhEAI-.cjs';
5
- export { c as CommonProto, s as SparkProto } from '../spark-DbzGfse6.cjs';
6
- export { T as TransferDirection, W as WalletLeaf, a as WalletTransfer, b as WalletTransferLeaf, c as mapTransferLeafToWalletTransferLeaf, d as mapTransferToWalletTransfer, m as mapTreeNodeToWalletLeaf } from '../sdk-types-Ct8xmN7l.cjs';
3
+ export { c as CommonProto, s as SparkProto } from '../spark-BUOx3U7Q.cjs';
4
+ export { T as TransferDirection, W as WalletLeaf, a as WalletTransfer, b as WalletTransferLeaf, c as mapTransferLeafToWalletTransferLeaf, d as mapTransferToWalletTransfer, m as mapTreeNodeToWalletLeaf } from '../sdk-types-DJ2ve9YY.cjs';
7
5
  import '@lightsparkdev/core';
8
- import '../signer-BP6F__oR.cjs';
9
- import '@scure/bip32';
10
- import '../types-C-Rp0Oo7.cjs';
11
6
  import '@buildonspark/lrc20-sdk';
12
7
  import '@scure/btc-signer';
13
8
  import 'bitcoinjs-lib';
14
- import '@buildonspark/lrc20-sdk/lrc/types';
9
+ import '@scure/bip32';
10
+ import '../types-BADxR3bm.cjs';
15
11
  import '@bufbuild/protobuf/wire';
16
12
  import 'nice-grpc-common';