@buildonspark/spark-sdk 0.1.43 → 0.1.44

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 (112) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/{RequestLightningSendInput-Na1mHdWg.d.cts → RequestLightningSendInput-BxbCtwpV.d.cts} +43 -4
  3. package/dist/{RequestLightningSendInput-D7fZdT4A.d.ts → RequestLightningSendInput-RGel43ks.d.ts} +43 -4
  4. package/dist/address/index.d.cts +2 -2
  5. package/dist/address/index.d.ts +2 -2
  6. package/dist/address/index.js +2 -2
  7. package/dist/{chunk-M6A4KFIG.js → chunk-4Q2ZDYYU.js} +332 -221
  8. package/dist/{chunk-WWOTVNPP.js → chunk-A2ZLMH6I.js} +323 -142
  9. package/dist/{chunk-VA7MV4MZ.js → chunk-B3AMIGJG.js} +1 -1
  10. package/dist/{chunk-DQYKQJRZ.js → chunk-CIZNCBKE.js} +29 -9
  11. package/dist/{chunk-BUTZWYBW.js → chunk-DAXGVPVM.js} +2 -2
  12. package/dist/{chunk-DOA6QXYQ.js → chunk-EKFD62HN.js} +2 -1
  13. package/dist/{chunk-TIUBYNN5.js → chunk-HTMXTJRK.js} +1 -1
  14. package/dist/{chunk-TOSP3INR.js → chunk-I54FARY2.js} +4 -2
  15. package/dist/{chunk-MIVX3GHD.js → chunk-K4BJARWM.js} +1 -1
  16. package/dist/{chunk-O4RYNJNB.js → chunk-KEKGSH7B.js} +1 -1
  17. package/dist/{chunk-GYQR4B4P.js → chunk-NBCNYDWJ.js} +2 -2
  18. package/dist/{chunk-ABZA6R5S.js → chunk-SQKXGAIR.js} +1 -1
  19. package/dist/{chunk-VFJQNBFX.js → chunk-UBT6EDVJ.js} +5 -2
  20. package/dist/{chunk-HRQRRDSS.js → chunk-WPTRVD2V.js} +3 -3
  21. package/dist/{chunk-IRW5TWMH.js → chunk-XX4RRWOX.js} +5 -5
  22. package/dist/graphql/objects/index.d.cts +5 -43
  23. package/dist/graphql/objects/index.d.ts +5 -43
  24. package/dist/graphql/objects/index.js +1 -1
  25. package/dist/{index-BJOc8Ur-.d.cts → index-CZmDdSts.d.cts} +24 -10
  26. package/dist/{index-7RYRH5wc.d.ts → index-ClIRO_3y.d.ts} +24 -10
  27. package/dist/index.cjs +827 -414
  28. package/dist/index.d.cts +6 -6
  29. package/dist/index.d.ts +6 -6
  30. package/dist/index.js +15 -15
  31. package/dist/index.node.cjs +830 -417
  32. package/dist/index.node.d.cts +7 -7
  33. package/dist/index.node.d.ts +7 -7
  34. package/dist/index.node.js +18 -18
  35. package/dist/native/index.cjs +827 -414
  36. package/dist/native/index.d.cts +88 -23
  37. package/dist/native/index.d.ts +88 -23
  38. package/dist/native/index.js +819 -407
  39. package/dist/{network-D5lKssVl.d.cts → network-CfxLnaot.d.cts} +1 -1
  40. package/dist/{network-xkBSpaTn.d.ts → network-CroCOQ0B.d.ts} +1 -1
  41. package/dist/proto/lrc20.d.cts +1 -1
  42. package/dist/proto/lrc20.d.ts +1 -1
  43. package/dist/proto/lrc20.js +2 -2
  44. package/dist/proto/spark.cjs +332 -221
  45. package/dist/proto/spark.d.cts +1 -1
  46. package/dist/proto/spark.d.ts +1 -1
  47. package/dist/proto/spark.js +3 -5
  48. package/dist/proto/spark_token.cjs +149 -9
  49. package/dist/proto/spark_token.d.cts +1 -1
  50. package/dist/proto/spark_token.d.ts +1 -1
  51. package/dist/proto/spark_token.js +2 -2
  52. package/dist/{sdk-types-B-q9py_P.d.cts → sdk-types-BeCBoozO.d.cts} +1 -1
  53. package/dist/{sdk-types-BPoPgzda.d.ts → sdk-types-CTbTdDbE.d.ts} +1 -1
  54. package/dist/services/config.cjs +7 -3
  55. package/dist/services/config.d.cts +4 -4
  56. package/dist/services/config.d.ts +4 -4
  57. package/dist/services/config.js +5 -5
  58. package/dist/services/connection.cjs +334 -218
  59. package/dist/services/connection.d.cts +4 -4
  60. package/dist/services/connection.d.ts +4 -4
  61. package/dist/services/connection.js +4 -4
  62. package/dist/services/index.cjs +364 -227
  63. package/dist/services/index.d.cts +4 -4
  64. package/dist/services/index.d.ts +4 -4
  65. package/dist/services/index.js +9 -9
  66. package/dist/services/lrc-connection.cjs +5 -2
  67. package/dist/services/lrc-connection.d.cts +4 -4
  68. package/dist/services/lrc-connection.d.ts +4 -4
  69. package/dist/services/lrc-connection.js +4 -4
  70. package/dist/services/token-transactions.cjs +28 -8
  71. package/dist/services/token-transactions.d.cts +4 -4
  72. package/dist/services/token-transactions.d.ts +4 -4
  73. package/dist/services/token-transactions.js +3 -3
  74. package/dist/services/wallet-config.cjs +2 -1
  75. package/dist/services/wallet-config.d.cts +4 -4
  76. package/dist/services/wallet-config.d.ts +4 -4
  77. package/dist/services/wallet-config.js +1 -1
  78. package/dist/signer/signer.cjs +5 -2
  79. package/dist/signer/signer.d.cts +2 -2
  80. package/dist/signer/signer.d.ts +2 -2
  81. package/dist/signer/signer.js +2 -2
  82. package/dist/{signer-wqesWifN.d.ts → signer-D7vfYik9.d.ts} +1 -1
  83. package/dist/{signer-IO3oMRNj.d.cts → signer-DaY8c60s.d.cts} +1 -1
  84. package/dist/{spark-CDm4gqS6.d.ts → spark-C4ZrsgjC.d.cts} +47 -29
  85. package/dist/{spark-CDm4gqS6.d.cts → spark-C4ZrsgjC.d.ts} +47 -29
  86. package/dist/types/index.cjs +331 -219
  87. package/dist/types/index.d.cts +5 -5
  88. package/dist/types/index.d.ts +5 -5
  89. package/dist/types/index.js +3 -3
  90. package/dist/utils/index.cjs +298 -28
  91. package/dist/utils/index.d.cts +5 -5
  92. package/dist/utils/index.d.ts +5 -5
  93. package/dist/utils/index.js +6 -6
  94. package/package.json +1 -1
  95. package/src/constants.ts +5 -1
  96. package/src/graphql/client.ts +28 -0
  97. package/src/graphql/mutations/RequestCoopExit.ts +6 -0
  98. package/src/graphql/mutations/RequestSwapLeaves.ts +2 -0
  99. package/src/graphql/queries/GetCoopExitFeeQuote.ts +20 -0
  100. package/src/proto/spark.ts +454 -322
  101. package/src/services/token-transactions.ts +12 -0
  102. package/src/services/transfer.ts +0 -3
  103. package/src/services/wallet-config.ts +1 -0
  104. package/src/spark-wallet/spark-wallet.node.ts +3 -3
  105. package/src/spark-wallet/spark-wallet.ts +301 -125
  106. package/src/tests/integration/deposit.test.ts +16 -0
  107. package/src/tests/integration/ssp/coop-exit.test.ts +85 -21
  108. package/src/tests/integration/ssp/swap.test.ts +47 -0
  109. package/src/tests/tokens.test.ts +3 -2
  110. package/src/utils/token-hashing.ts +28 -10
  111. package/src/utils/transaction.ts +2 -2
  112. package/src/logger.ts +0 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @buildonspark/spark-sdk
2
2
 
3
+ ## 0.1.44
4
+
5
+ ### Patch Changes
6
+
7
+ - Add fee estimate quote for coop exit requests
8
+ - Allow coop exit fees to be taken from wallet balance instead of withdrawal amount if specified
9
+
3
10
  ## 0.1.43
4
11
 
5
12
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import { Query } from '@lightsparkdev/core';
2
2
  import { B as BitcoinNetwork } from './BitcoinNetwork-TnABML0T.cjs';
3
- import { S as SparkSigner } from './signer-IO3oMRNj.cjs';
3
+ import { S as SparkSigner } from './signer-DaY8c60s.cjs';
4
4
 
5
5
  /** This enum identifies the unit of currency associated with a CurrencyAmount. **/
6
6
  declare enum CurrencyUnit {
@@ -90,6 +90,44 @@ interface CoopExitFeeEstimatesOutput {
90
90
  speedSlow?: CoopExitFeeEstimate | undefined;
91
91
  }
92
92
 
93
+ interface CoopExitFeeQuote {
94
+ /**
95
+ * The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque
96
+ * string.
97
+ **/
98
+ id: string;
99
+ /** The date and time when the entity was first created. **/
100
+ createdAt: string;
101
+ /** The date and time when the entity was last updated. **/
102
+ updatedAt: string;
103
+ /** The network the coop exit fee quote is on. **/
104
+ network: BitcoinNetwork;
105
+ /** The total currency amount of all the nodes user swapped for the coop exit quote. **/
106
+ totalAmount: CurrencyAmount;
107
+ /** The fee user pays for the coop exit not including the L1 broadcast fee when exit speed is fast. **/
108
+ userFeeFast: CurrencyAmount;
109
+ /** The fee user pays for the coop exit not including the L1 broadcast fee when exit speed is medium. **/
110
+ userFeeMedium: CurrencyAmount;
111
+ /** The fee user pays for the coop exit not including the L1 broadcast fee when exit speed is slow. **/
112
+ userFeeSlow: CurrencyAmount;
113
+ /** The L1 broadcast fee user pays for the coop exit when exit speed is fast. **/
114
+ l1BroadcastFeeFast: CurrencyAmount;
115
+ /** The L1 broadcast fee user pays for the coop exit when exit speed is medium. **/
116
+ l1BroadcastFeeMedium: CurrencyAmount;
117
+ /** The L1 broadcast fee user pays for the coop exit when exit speed is slow. **/
118
+ l1BroadcastFeeSlow: CurrencyAmount;
119
+ /** The time when the coop exit fee quote expires. **/
120
+ expiresAt: string;
121
+ /** The typename of the object **/
122
+ typename: string;
123
+ }
124
+ declare const getCoopExitFeeQuoteQuery: (id: string) => Query<CoopExitFeeQuote>;
125
+
126
+ interface CoopExitFeeQuoteInput {
127
+ leafExternalIds: string[];
128
+ withdrawalAddress: string;
129
+ }
130
+
93
131
  declare enum ExitSpeed {
94
132
  /**
95
133
  * This is an enum value that represents values that could be added in the future.
@@ -282,10 +320,10 @@ declare class SspClient {
282
320
  getCoopExitFeeEstimate({ leafExternalIds, withdrawalAddress, }: CoopExitFeeEstimatesInput): Promise<CoopExitFeeEstimatesOutput | null>;
283
321
  getCurrentUser(): Promise<void>;
284
322
  completeCoopExit({ userOutboundTransferExternalId, coopExitRequestId, }: CompleteCoopExitInput): Promise<CoopExitRequest | null>;
285
- requestCoopExit({ leafExternalIds, withdrawalAddress, idempotencyKey, exitSpeed, }: RequestCoopExitInput): Promise<CoopExitRequest | null>;
323
+ requestCoopExit({ leafExternalIds, withdrawalAddress, idempotencyKey, exitSpeed, feeLeafExternalIds, feeQuoteId, withdrawAll, }: RequestCoopExitInput): Promise<CoopExitRequest | null>;
286
324
  requestLightningReceive({ amountSats, network, paymentHash, expirySecs, memo, includeSparkAddress, receiverIdentityPubkey, descriptionHash, }: RequestLightningReceiveInput): Promise<LightningReceiveRequest | null>;
287
325
  requestLightningSend({ encodedInvoice, idempotencyKey, amountSats, }: RequestLightningSendInput): Promise<LightningSendRequest | null>;
288
- requestLeaveSwap({ adaptorPubkey, totalAmountSats, targetAmountSats, feeSats, userLeaves, idempotencyKey, }: RequestLeavesSwapInput): Promise<LeavesSwapRequest | null>;
326
+ requestLeaveSwap({ adaptorPubkey, totalAmountSats, targetAmountSats, feeSats, userLeaves, idempotencyKey, targetAmountSatsList, }: RequestLeavesSwapInput): Promise<LeavesSwapRequest | null>;
289
327
  completeLeaveSwap({ adaptorSecretKey, userOutboundTransferExternalId, leavesSwapRequestId, }: CompleteLeavesSwapInput): Promise<LeavesSwapRequest | null>;
290
328
  getLightningReceiveRequest(id: string): Promise<LightningReceiveRequest | null>;
291
329
  getLightningSendRequest(id: string): Promise<LightningSendRequest | null>;
@@ -305,6 +343,7 @@ declare class SspClient {
305
343
  getChallenge(): Promise<GetChallengeOutput | null>;
306
344
  verifyChallenge(signature: string, protectedChallenge: string): Promise<VerifyChallengeOutput | null>;
307
345
  authenticate(): Promise<void>;
346
+ getCoopExitFeeQuote({ leafExternalIds, withdrawalAddress, }: CoopExitFeeQuoteInput): Promise<CoopExitFeeQuote | null>;
308
347
  }
309
348
 
310
349
  interface Leaf {
@@ -512,4 +551,4 @@ interface RequestLightningSendInput {
512
551
  amountSats?: number | undefined;
513
552
  }
514
553
 
515
- export { type SwapLeaf as A, type SspClientOptions as B, type ClaimStaticDepositOutput as C, SspClient as D, ExitSpeed as E, type GetChallengeOutput as G, type HasSspClientOptions as H, type Invoice as I, type Leaf as L, type MayHaveSspClientOptions as M, type PageInfo as P, type RequestCoopExitInput as R, SparkCoopExitRequestStatus as S, Transfer as T, type UserLeafInput as U, type VerifyChallengeOutput as V, type CompleteCoopExitInput as a, type CompleteLeavesSwapInput as b, type CoopExitFeeEstimate as c, type CoopExitFeeEstimatesInput as d, type CoopExitFeeEstimatesOutput as e, type CoopExitRequest as f, getCoopExitRequestQuery as g, type CurrencyAmount as h, CurrencyUnit as i, type LeavesSwapFeeEstimateOutput as j, getLeavesSwapRequestQuery as k, type LeavesSwapRequest as l, getLightningReceiveRequestQuery as m, type LightningReceiveRequest as n, LightningReceiveRequestStatus as o, type LightningSendFeeEstimateOutput as p, getLightningSendRequestQuery as q, type LightningSendRequest as r, LightningSendRequestStatus as s, type RequestLeavesSwapInput as t, type RequestLightningReceiveInput as u, type RequestLightningSendInput as v, SparkLeavesSwapRequestStatus as w, type SparkTransferToLeavesConnection as x, type StaticDepositQuoteInput as y, type StaticDepositQuoteOutput as z };
554
+ export { type SparkTransferToLeavesConnection as A, type StaticDepositQuoteInput as B, type ClaimStaticDepositOutput as C, type StaticDepositQuoteOutput as D, ExitSpeed as E, type SwapLeaf as F, type GetChallengeOutput as G, type HasSspClientOptions as H, type Invoice as I, type SspClientOptions as J, SspClient as K, type Leaf as L, type MayHaveSspClientOptions as M, type PageInfo as P, type RequestCoopExitInput as R, SparkCoopExitRequestStatus as S, Transfer as T, type UserLeafInput as U, type VerifyChallengeOutput as V, type CompleteCoopExitInput as a, type CompleteLeavesSwapInput as b, type CoopExitFeeEstimate as c, type CoopExitFeeEstimatesInput as d, type CoopExitFeeEstimatesOutput as e, type CoopExitFeeQuote as f, getCoopExitFeeQuoteQuery as g, type CoopExitFeeQuoteInput as h, type CoopExitRequest as i, getCoopExitRequestQuery as j, type CurrencyAmount as k, CurrencyUnit as l, type LeavesSwapFeeEstimateOutput as m, getLeavesSwapRequestQuery as n, type LeavesSwapRequest as o, getLightningReceiveRequestQuery as p, type LightningReceiveRequest as q, LightningReceiveRequestStatus as r, type LightningSendFeeEstimateOutput as s, getLightningSendRequestQuery as t, type LightningSendRequest as u, LightningSendRequestStatus as v, type RequestLeavesSwapInput as w, type RequestLightningReceiveInput as x, type RequestLightningSendInput as y, SparkLeavesSwapRequestStatus as z };
@@ -1,6 +1,6 @@
1
1
  import { Query } from '@lightsparkdev/core';
2
2
  import { B as BitcoinNetwork } from './BitcoinNetwork-TnABML0T.js';
3
- import { S as SparkSigner } from './signer-wqesWifN.js';
3
+ import { S as SparkSigner } from './signer-D7vfYik9.js';
4
4
 
5
5
  /** This enum identifies the unit of currency associated with a CurrencyAmount. **/
6
6
  declare enum CurrencyUnit {
@@ -90,6 +90,44 @@ interface CoopExitFeeEstimatesOutput {
90
90
  speedSlow?: CoopExitFeeEstimate | undefined;
91
91
  }
92
92
 
93
+ interface CoopExitFeeQuote {
94
+ /**
95
+ * The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque
96
+ * string.
97
+ **/
98
+ id: string;
99
+ /** The date and time when the entity was first created. **/
100
+ createdAt: string;
101
+ /** The date and time when the entity was last updated. **/
102
+ updatedAt: string;
103
+ /** The network the coop exit fee quote is on. **/
104
+ network: BitcoinNetwork;
105
+ /** The total currency amount of all the nodes user swapped for the coop exit quote. **/
106
+ totalAmount: CurrencyAmount;
107
+ /** The fee user pays for the coop exit not including the L1 broadcast fee when exit speed is fast. **/
108
+ userFeeFast: CurrencyAmount;
109
+ /** The fee user pays for the coop exit not including the L1 broadcast fee when exit speed is medium. **/
110
+ userFeeMedium: CurrencyAmount;
111
+ /** The fee user pays for the coop exit not including the L1 broadcast fee when exit speed is slow. **/
112
+ userFeeSlow: CurrencyAmount;
113
+ /** The L1 broadcast fee user pays for the coop exit when exit speed is fast. **/
114
+ l1BroadcastFeeFast: CurrencyAmount;
115
+ /** The L1 broadcast fee user pays for the coop exit when exit speed is medium. **/
116
+ l1BroadcastFeeMedium: CurrencyAmount;
117
+ /** The L1 broadcast fee user pays for the coop exit when exit speed is slow. **/
118
+ l1BroadcastFeeSlow: CurrencyAmount;
119
+ /** The time when the coop exit fee quote expires. **/
120
+ expiresAt: string;
121
+ /** The typename of the object **/
122
+ typename: string;
123
+ }
124
+ declare const getCoopExitFeeQuoteQuery: (id: string) => Query<CoopExitFeeQuote>;
125
+
126
+ interface CoopExitFeeQuoteInput {
127
+ leafExternalIds: string[];
128
+ withdrawalAddress: string;
129
+ }
130
+
93
131
  declare enum ExitSpeed {
94
132
  /**
95
133
  * This is an enum value that represents values that could be added in the future.
@@ -282,10 +320,10 @@ declare class SspClient {
282
320
  getCoopExitFeeEstimate({ leafExternalIds, withdrawalAddress, }: CoopExitFeeEstimatesInput): Promise<CoopExitFeeEstimatesOutput | null>;
283
321
  getCurrentUser(): Promise<void>;
284
322
  completeCoopExit({ userOutboundTransferExternalId, coopExitRequestId, }: CompleteCoopExitInput): Promise<CoopExitRequest | null>;
285
- requestCoopExit({ leafExternalIds, withdrawalAddress, idempotencyKey, exitSpeed, }: RequestCoopExitInput): Promise<CoopExitRequest | null>;
323
+ requestCoopExit({ leafExternalIds, withdrawalAddress, idempotencyKey, exitSpeed, feeLeafExternalIds, feeQuoteId, withdrawAll, }: RequestCoopExitInput): Promise<CoopExitRequest | null>;
286
324
  requestLightningReceive({ amountSats, network, paymentHash, expirySecs, memo, includeSparkAddress, receiverIdentityPubkey, descriptionHash, }: RequestLightningReceiveInput): Promise<LightningReceiveRequest | null>;
287
325
  requestLightningSend({ encodedInvoice, idempotencyKey, amountSats, }: RequestLightningSendInput): Promise<LightningSendRequest | null>;
288
- requestLeaveSwap({ adaptorPubkey, totalAmountSats, targetAmountSats, feeSats, userLeaves, idempotencyKey, }: RequestLeavesSwapInput): Promise<LeavesSwapRequest | null>;
326
+ requestLeaveSwap({ adaptorPubkey, totalAmountSats, targetAmountSats, feeSats, userLeaves, idempotencyKey, targetAmountSatsList, }: RequestLeavesSwapInput): Promise<LeavesSwapRequest | null>;
289
327
  completeLeaveSwap({ adaptorSecretKey, userOutboundTransferExternalId, leavesSwapRequestId, }: CompleteLeavesSwapInput): Promise<LeavesSwapRequest | null>;
290
328
  getLightningReceiveRequest(id: string): Promise<LightningReceiveRequest | null>;
291
329
  getLightningSendRequest(id: string): Promise<LightningSendRequest | null>;
@@ -305,6 +343,7 @@ declare class SspClient {
305
343
  getChallenge(): Promise<GetChallengeOutput | null>;
306
344
  verifyChallenge(signature: string, protectedChallenge: string): Promise<VerifyChallengeOutput | null>;
307
345
  authenticate(): Promise<void>;
346
+ getCoopExitFeeQuote({ leafExternalIds, withdrawalAddress, }: CoopExitFeeQuoteInput): Promise<CoopExitFeeQuote | null>;
308
347
  }
309
348
 
310
349
  interface Leaf {
@@ -512,4 +551,4 @@ interface RequestLightningSendInput {
512
551
  amountSats?: number | undefined;
513
552
  }
514
553
 
515
- export { type SwapLeaf as A, type SspClientOptions as B, type ClaimStaticDepositOutput as C, SspClient as D, ExitSpeed as E, type GetChallengeOutput as G, type HasSspClientOptions as H, type Invoice as I, type Leaf as L, type MayHaveSspClientOptions as M, type PageInfo as P, type RequestCoopExitInput as R, SparkCoopExitRequestStatus as S, Transfer as T, type UserLeafInput as U, type VerifyChallengeOutput as V, type CompleteCoopExitInput as a, type CompleteLeavesSwapInput as b, type CoopExitFeeEstimate as c, type CoopExitFeeEstimatesInput as d, type CoopExitFeeEstimatesOutput as e, type CoopExitRequest as f, getCoopExitRequestQuery as g, type CurrencyAmount as h, CurrencyUnit as i, type LeavesSwapFeeEstimateOutput as j, getLeavesSwapRequestQuery as k, type LeavesSwapRequest as l, getLightningReceiveRequestQuery as m, type LightningReceiveRequest as n, LightningReceiveRequestStatus as o, type LightningSendFeeEstimateOutput as p, getLightningSendRequestQuery as q, type LightningSendRequest as r, LightningSendRequestStatus as s, type RequestLeavesSwapInput as t, type RequestLightningReceiveInput as u, type RequestLightningSendInput as v, SparkLeavesSwapRequestStatus as w, type SparkTransferToLeavesConnection as x, type StaticDepositQuoteInput as y, type StaticDepositQuoteOutput as z };
554
+ export { type SparkTransferToLeavesConnection as A, type StaticDepositQuoteInput as B, type ClaimStaticDepositOutput as C, type StaticDepositQuoteOutput as D, ExitSpeed as E, type SwapLeaf as F, type GetChallengeOutput as G, type HasSspClientOptions as H, type Invoice as I, type SspClientOptions as J, SspClient as K, type Leaf as L, type MayHaveSspClientOptions as M, type PageInfo as P, type RequestCoopExitInput as R, SparkCoopExitRequestStatus as S, Transfer as T, type UserLeafInput as U, type VerifyChallengeOutput as V, type CompleteCoopExitInput as a, type CompleteLeavesSwapInput as b, type CoopExitFeeEstimate as c, type CoopExitFeeEstimatesInput as d, type CoopExitFeeEstimatesOutput as e, type CoopExitFeeQuote as f, getCoopExitFeeQuoteQuery as g, type CoopExitFeeQuoteInput as h, type CoopExitRequest as i, getCoopExitRequestQuery as j, type CurrencyAmount as k, CurrencyUnit as l, type LeavesSwapFeeEstimateOutput as m, getLeavesSwapRequestQuery as n, type LeavesSwapRequest as o, getLightningReceiveRequestQuery as p, type LightningReceiveRequest as q, LightningReceiveRequestStatus as r, type LightningSendFeeEstimateOutput as s, getLightningSendRequestQuery as t, type LightningSendRequest as u, LightningSendRequestStatus as v, type RequestLeavesSwapInput as w, type RequestLightningReceiveInput as x, type RequestLightningSendInput as y, SparkLeavesSwapRequestStatus as z };
@@ -1,5 +1,5 @@
1
- import { P as PaymentIntentFields } from '../spark-CDm4gqS6.cjs';
2
- import { a as NetworkType } from '../network-D5lKssVl.cjs';
1
+ import { P as PaymentIntentFields } from '../spark-C4ZrsgjC.cjs';
2
+ import { a as NetworkType } from '../network-CfxLnaot.cjs';
3
3
  import '@bufbuild/protobuf/wire';
4
4
  import 'nice-grpc-common';
5
5
  import '@buildonspark/lrc20-sdk';
@@ -1,5 +1,5 @@
1
- import { P as PaymentIntentFields } from '../spark-CDm4gqS6.js';
2
- import { a as NetworkType } from '../network-xkBSpaTn.js';
1
+ import { P as PaymentIntentFields } from '../spark-C4ZrsgjC.js';
2
+ import { a as NetworkType } from '../network-CroCOQ0B.js';
3
3
  import '@bufbuild/protobuf/wire';
4
4
  import 'nice-grpc-common';
5
5
  import '@buildonspark/lrc20-sdk';
@@ -4,8 +4,8 @@ import {
4
4
  encodeSparkAddress,
5
5
  isValidPublicKey,
6
6
  isValidSparkAddress
7
- } from "../chunk-O4RYNJNB.js";
8
- import "../chunk-M6A4KFIG.js";
7
+ } from "../chunk-KEKGSH7B.js";
8
+ import "../chunk-4Q2ZDYYU.js";
9
9
  import "../chunk-VTUGIIWI.js";
10
10
  import "../chunk-GSI4OLXZ.js";
11
11
  import "../chunk-MVRQ5US7.js";