@satora/swap 1.11.1 → 1.13.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 (116) hide show
  1. package/dist/bitcoin-reader-electrum-2N4LJCGD.cjs +9 -0
  2. package/dist/{bitcoin-reader-electrum-VCQ5TQ44.cjs.map → bitcoin-reader-electrum-2N4LJCGD.cjs.map} +1 -1
  3. package/dist/bitcoin-reader-electrum-VLYRII3T.js +9 -0
  4. package/dist/bitcoin-reader-esplora-CAR4P52J.cjs +16 -0
  5. package/dist/bitcoin-reader-esplora-CAR4P52J.cjs.map +1 -0
  6. package/dist/{bitcoin-reader-esplora-CGPF4H5Y.js → bitcoin-reader-esplora-LC673MQT.js} +4 -2
  7. package/dist/{chunk-WQMAL2VD.js → chunk-34OYIFOU.js} +764 -141
  8. package/dist/chunk-34OYIFOU.js.map +1 -0
  9. package/dist/{chunk-4NVWIR74.cjs → chunk-3633KDTW.cjs} +1128 -505
  10. package/dist/chunk-3633KDTW.cjs.map +1 -0
  11. package/dist/{chunk-LSCRTQOS.js → chunk-CUYLQTRF.js} +15 -20
  12. package/dist/chunk-CUYLQTRF.js.map +1 -0
  13. package/dist/{chunk-INHFP222.cjs → chunk-CY5M5X6S.cjs} +28 -30
  14. package/dist/chunk-CY5M5X6S.cjs.map +1 -0
  15. package/dist/{chunk-JZTF4JNH.cjs → chunk-EI5ILLQ3.cjs} +2 -2
  16. package/dist/{chunk-JZTF4JNH.cjs.map → chunk-EI5ILLQ3.cjs.map} +1 -1
  17. package/dist/{chunk-5DQHR3RO.cjs → chunk-FJS6RGUR.cjs} +16 -21
  18. package/dist/chunk-FJS6RGUR.cjs.map +1 -0
  19. package/dist/{chunk-3ZMSZSAV.js → chunk-I2NF63VZ.js} +27 -29
  20. package/dist/chunk-I2NF63VZ.js.map +1 -0
  21. package/dist/{chunk-JHZHRY7S.js → chunk-K2Q4JWB6.js} +2 -2
  22. package/dist/{chunk-JHZHRY7S.js.map → chunk-K2Q4JWB6.js.map} +1 -1
  23. package/dist/{chunk-TT3J2OOS.js → chunk-KMBGRQS7.js} +5 -5
  24. package/dist/{chunk-TT3J2OOS.js.map → chunk-KMBGRQS7.js.map} +1 -1
  25. package/dist/{chunk-Q4TOBBAN.cjs → chunk-LZQZYSOZ.cjs} +5 -5
  26. package/dist/{chunk-Q4TOBBAN.cjs.map → chunk-LZQZYSOZ.cjs.map} +1 -1
  27. package/dist/delegate.cjs +2 -2
  28. package/dist/delegate.js +1 -1
  29. package/dist/{dist-SHY7I6SH.js → dist-3N76II5O.js} +16 -4
  30. package/dist/dist-KQINAMDC.cjs +406 -0
  31. package/dist/{dist-MHRQ5FFV.cjs.map → dist-KQINAMDC.cjs.map} +1 -1
  32. package/dist/{fundSwap-UBCHMUP4-BEMQNSFQ.cjs → fundSwap-2D4IPYU4-4NELKB3Q.cjs} +7 -7
  33. package/dist/{fundSwap-UBCHMUP4-BEMQNSFQ.cjs.map → fundSwap-2D4IPYU4-4NELKB3Q.cjs.map} +1 -1
  34. package/dist/{fundSwap-UBCHMUP4-WBLYE6MC.js → fundSwap-2D4IPYU4-CDM3WRUF.js} +3 -3
  35. package/dist/index.cjs +41 -23
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.js +29 -11
  38. package/dist/index.js.map +1 -1
  39. package/dist/node.cjs +26 -5
  40. package/dist/node.cjs.map +1 -1
  41. package/dist/node.js +26 -5
  42. package/dist/node.js.map +1 -1
  43. package/dist/types/cjs/pure/api/client.d.cts +1 -0
  44. package/dist/types/cjs/pure/client.d.cts +44 -12
  45. package/dist/types/cjs/pure/compose-quote.d.cts +14 -1
  46. package/dist/types/cjs/pure/create/bitcoin-payout.d.cts +17 -0
  47. package/dist/types/cjs/pure/create/evm-to-arkade.d.cts +0 -5
  48. package/dist/types/cjs/pure/create/evm-to-lightning.d.cts +0 -8
  49. package/dist/types/cjs/pure/create/funding-terms.d.cts +2 -1
  50. package/dist/types/cjs/pure/create/index.d.cts +2 -1
  51. package/dist/types/cjs/pure/create/payment-safety.d.cts +2 -0
  52. package/dist/types/cjs/pure/create/payout-slippage.d.cts +29 -0
  53. package/dist/types/cjs/pure/create/spark-to-evm.d.cts +7 -0
  54. package/dist/types/cjs/pure/create/types.d.cts +102 -3
  55. package/dist/types/cjs/pure/esplora.d.cts +2 -0
  56. package/dist/types/cjs/pure/evm/funding-pins.d.cts +2 -0
  57. package/dist/types/cjs/pure/generated/api.d.cts +352 -2
  58. package/dist/types/cjs/pure/index.d.cts +6 -4
  59. package/dist/types/cjs/pure/refund/onchain.d.cts +4 -0
  60. package/dist/types/cjs/pure/storage/index.d.cts +1 -1
  61. package/dist/types/cjs/pure/storage/types.d.cts +22 -0
  62. package/dist/types/cjs/pure/swap-verification.d.cts +3 -1
  63. package/dist/types/cjs/pure/tokens.d.cts +5 -0
  64. package/dist/types/cjs/pure/types/chain.d.cts +2 -2
  65. package/dist/types/cjs/pure/types/index.d.cts +1 -0
  66. package/dist/types/cjs/pure/types/promo-code.d.cts +15 -0
  67. package/dist/types/cjs/pure/types/quote.d.cts +7 -0
  68. package/dist/types/cjs/pure/types/referral-fee.d.cts +8 -0
  69. package/dist/types/cjs/pure/version.d.cts +4 -4
  70. package/dist/types/cjs/swap/client.d.cts +2 -0
  71. package/dist/types/cjs/swap/contracts/bitcoin-reader-esplora.d.cts +5 -0
  72. package/dist/types/esm/pure/api/client.d.ts +1 -0
  73. package/dist/types/esm/pure/client.d.ts +44 -12
  74. package/dist/types/esm/pure/compose-quote.d.ts +14 -1
  75. package/dist/types/esm/pure/create/bitcoin-payout.d.ts +17 -0
  76. package/dist/types/esm/pure/create/evm-to-arkade.d.ts +0 -5
  77. package/dist/types/esm/pure/create/evm-to-lightning.d.ts +0 -8
  78. package/dist/types/esm/pure/create/funding-terms.d.ts +2 -1
  79. package/dist/types/esm/pure/create/index.d.ts +2 -1
  80. package/dist/types/esm/pure/create/payment-safety.d.ts +2 -0
  81. package/dist/types/esm/pure/create/payout-slippage.d.ts +29 -0
  82. package/dist/types/esm/pure/create/spark-to-evm.d.ts +7 -0
  83. package/dist/types/esm/pure/create/types.d.ts +102 -3
  84. package/dist/types/esm/pure/esplora.d.ts +2 -0
  85. package/dist/types/esm/pure/evm/funding-pins.d.ts +2 -0
  86. package/dist/types/esm/pure/generated/api.d.ts +352 -2
  87. package/dist/types/esm/pure/index.d.ts +6 -4
  88. package/dist/types/esm/pure/refund/onchain.d.ts +4 -0
  89. package/dist/types/esm/pure/storage/index.d.ts +1 -1
  90. package/dist/types/esm/pure/storage/types.d.ts +22 -0
  91. package/dist/types/esm/pure/swap-verification.d.ts +3 -1
  92. package/dist/types/esm/pure/tokens.d.ts +5 -0
  93. package/dist/types/esm/pure/types/chain.d.ts +2 -2
  94. package/dist/types/esm/pure/types/index.d.ts +1 -0
  95. package/dist/types/esm/pure/types/promo-code.d.ts +15 -0
  96. package/dist/types/esm/pure/types/quote.d.ts +7 -0
  97. package/dist/types/esm/pure/types/referral-fee.d.ts +8 -0
  98. package/dist/types/esm/pure/version.d.ts +4 -4
  99. package/dist/types/esm/swap/client.d.ts +2 -0
  100. package/dist/types/esm/swap/contracts/bitcoin-reader-esplora.d.ts +5 -0
  101. package/package.json +2 -2
  102. package/dist/bitcoin-reader-electrum-4PNSDHIA.js +0 -9
  103. package/dist/bitcoin-reader-electrum-VCQ5TQ44.cjs +0 -9
  104. package/dist/bitcoin-reader-esplora-6RH7S4BR.cjs +0 -14
  105. package/dist/bitcoin-reader-esplora-6RH7S4BR.cjs.map +0 -1
  106. package/dist/chunk-3ZMSZSAV.js.map +0 -1
  107. package/dist/chunk-4NVWIR74.cjs.map +0 -1
  108. package/dist/chunk-5DQHR3RO.cjs.map +0 -1
  109. package/dist/chunk-INHFP222.cjs.map +0 -1
  110. package/dist/chunk-LSCRTQOS.js.map +0 -1
  111. package/dist/chunk-WQMAL2VD.js.map +0 -1
  112. package/dist/dist-MHRQ5FFV.cjs +0 -394
  113. /package/dist/{bitcoin-reader-electrum-4PNSDHIA.js.map → bitcoin-reader-electrum-VLYRII3T.js.map} +0 -0
  114. /package/dist/{bitcoin-reader-esplora-CGPF4H5Y.js.map → bitcoin-reader-esplora-LC673MQT.js.map} +0 -0
  115. /package/dist/{dist-SHY7I6SH.js.map → dist-3N76II5O.js.map} +0 -0
  116. /package/dist/{fundSwap-UBCHMUP4-WBLYE6MC.js.map → fundSwap-2D4IPYU4-CDM3WRUF.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Types for swap creation operations.
3
3
  */
4
- import type { BitcoinToEvmSwapResponse as ApiBitcoinToEvmSwapResponse, ApiClient, EvmToBitcoinSwapResponse as ApiEvmToBitcoinSwapResponse, LightningToEvmSwapResponse as ApiLightningToEvmSwapResponse, ArkadeToEvmSwapResponse, ArkadeToLightningSwapResponse, BitcoinToLightningSwapResponse, BtcToArkadeSwapResponse, EvmToArkadeSwapResponse, EvmToLightningSwapResponse, LightningToArkadeSwapResponse, LightningToBitcoinSwapResponse, TokenId, TokenInfo } from "../api/client.cjs";
4
+ import type { BitcoinToEvmSwapResponse as ApiBitcoinToEvmSwapResponse, ApiClient, EvmToBitcoinSwapResponse as ApiEvmToBitcoinSwapResponse, LightningToEvmSwapResponse as ApiLightningToEvmSwapResponse, SparkToEvmSwapResponse as ApiSparkToEvmSwapResponse, ArkadeToEvmSwapResponse, ArkadeToLightningSwapResponse, BitcoinToLightningSwapResponse, BtcToArkadeSwapResponse, EvmToArkadeSwapResponse, EvmToLightningSwapResponse, LightningToArkadeSwapResponse, LightningToBitcoinSwapResponse, TokenId, TokenInfo } from "../api/client.cjs";
5
5
  import type { EvmFundingTerms } from "../evm/funding-pins.cjs";
6
6
  import type { Logger, LogLevel } from "../logging.cjs";
7
7
  import type { SwapParams } from "../signer/index.cjs";
@@ -69,6 +69,13 @@ export interface BtcToEvmSwapOptions {
69
69
  referralCode?: string;
70
70
  /** Optional per-swap fee surcharge in basis points (0..=max_extra_fee_bps configured on the matching developer key). */
71
71
  extraFees?: number;
72
+ /**
73
+ * Optional promo code. Its rate replaces the base fee, and
74
+ * its cap may lift the route maximum. Pass it identically on the quote
75
+ * and the create. Rejected (400) when unknown, expired, used up, or the
76
+ * swap is larger than it allows.
77
+ */
78
+ promoCode?: string;
72
79
  }
73
80
  /** Options for creating a Bitcoin (on-chain) to EVM swap via the generic endpoint */
74
81
  export interface BitcoinToEvmSwapOptions {
@@ -86,6 +93,13 @@ export interface BitcoinToEvmSwapOptions {
86
93
  referralCode?: string;
87
94
  /** Optional per-swap fee surcharge in basis points (0..=max_extra_fee_bps configured on the matching developer key). */
88
95
  extraFees?: number;
96
+ /**
97
+ * Optional promo code. Its rate replaces the base fee, and
98
+ * its cap may lift the route maximum. Pass it identically on the quote
99
+ * and the create. Rejected (400) when unknown, expired, used up, or the
100
+ * swap is larger than it allows.
101
+ */
102
+ promoCode?: string;
89
103
  /** Whether the server should execute the DEX swap on behalf of the user (gasless claim). Defaults to true. */
90
104
  gasless?: boolean;
91
105
  /** Optional: when set, USDC is bridged via CCTP to the destination chain after the DEX swap. */
@@ -113,6 +127,13 @@ export interface LightningToEvmSwapOptions {
113
127
  referralCode?: string;
114
128
  /** Optional per-swap fee surcharge in basis points (0..=max_extra_fee_bps configured on the matching developer key). */
115
129
  extraFees?: number;
130
+ /**
131
+ * Optional promo code. Its rate replaces the base fee, and
132
+ * its cap may lift the route maximum. Pass it identically on the quote
133
+ * and the create. Rejected (400) when unknown, expired, used up, or the
134
+ * swap is larger than it allows.
135
+ */
136
+ promoCode?: string;
116
137
  /** Whether the server should execute the DEX swap on behalf of the user (gasless claim). Defaults to true. */
117
138
  gasless?: boolean;
118
139
  /** Optional: when set, the DEX output is bridged to the destination chain after the claim. */
@@ -142,6 +163,13 @@ export interface BitcoinToArkadeSwapOptions {
142
163
  referralCode?: string;
143
164
  /** Optional per-swap fee surcharge in basis points (0..=max_extra_fee_bps configured on the matching developer key). */
144
165
  extraFees?: number;
166
+ /**
167
+ * Optional promo code. Its rate replaces the base fee, and
168
+ * its cap may lift the route maximum. Pass it identically on the quote
169
+ * and the create. Rejected (400) when unknown, expired, used up, or the
170
+ * swap is larger than it allows.
171
+ */
172
+ promoCode?: string;
145
173
  }
146
174
  /** Result of creating a Bitcoin (on-chain) to Arkade swap */
147
175
  export interface BitcoinToArkadeSwapResult {
@@ -166,6 +194,13 @@ export interface EvmToArkadeSwapOptions {
166
194
  referralCode?: string;
167
195
  /** Optional per-swap fee surcharge in basis points (0..=max_extra_fee_bps configured on the matching developer key). */
168
196
  extraFees?: number;
197
+ /**
198
+ * Optional promo code. Its rate replaces the base fee, and
199
+ * its cap may lift the route maximum. Pass it identically on the quote
200
+ * and the create. Rejected (400) when unknown, expired, used up, or the
201
+ * swap is larger than it allows.
202
+ */
203
+ promoCode?: string;
169
204
  }
170
205
  /** Result of creating an EVM to Arkade swap */
171
206
  export interface EvmToArkadeSwapResult {
@@ -192,6 +227,13 @@ export interface EvmToArkadeSwapGenericOptions {
192
227
  referralCode?: string;
193
228
  /** Optional per-swap fee surcharge in basis points (0..=max_extra_fee_bps configured on the matching developer key). */
194
229
  extraFees?: number;
230
+ /**
231
+ * Optional promo code. Its rate replaces the base fee, and
232
+ * its cap may lift the route maximum. Pass it identically on the quote
233
+ * and the create. Rejected (400) when unknown, expired, used up, or the
234
+ * swap is larger than it allows.
235
+ */
236
+ promoCode?: string;
195
237
  /** Use gasless relay. When true, userAddress is auto-derived from the SDK EVM key. */
196
238
  gasless?: boolean;
197
239
  /** Optional: when set, source USDC originates on another CCTP chain and hops to Arbitrum via CCTPv2. */
@@ -206,6 +248,10 @@ export interface EvmToArkadeSwapGenericResult {
206
248
  }
207
249
  /** Options for creating an EVM-to-Bitcoin (on-chain) swap via the generic endpoint */
208
250
  export interface EvmToBitcoinSwapOptions {
251
+ /** Operator-supplied relay floor for explorers without a relay-policy endpoint. */
252
+ minimumRelayFeeRateSatPerVb?: number;
253
+ /** Pay several Bitcoin recipients from this swap; amounts are nominal, see {@link BitcoinPaymentRequest}. */
254
+ bitcoinPayout?: import("./payout-slippage.cjs").BitcoinPaymentRequest;
209
255
  /** ERC-20 contract address of the source token on the EVM chain */
210
256
  tokenAddress: string;
211
257
  /** Numeric EVM chain ID: 1 (Ethereum), 137 (Polygon), 42161 (Arbitrum) */
@@ -222,6 +268,13 @@ export interface EvmToBitcoinSwapOptions {
222
268
  referralCode?: string;
223
269
  /** Optional per-swap fee surcharge in basis points (0..=max_extra_fee_bps configured on the matching developer key). */
224
270
  extraFees?: number;
271
+ /**
272
+ * Optional promo code. Its rate replaces the base fee, and
273
+ * its cap may lift the route maximum. Pass it identically on the quote
274
+ * and the create. Rejected (400) when unknown, expired, used up, or the
275
+ * swap is larger than it allows.
276
+ */
277
+ promoCode?: string;
225
278
  /** Use gasless relay. When true, userAddress is auto-derived from the SDK EVM key. */
226
279
  gasless?: boolean;
227
280
  /** Optional: when set, source USDC originates on another CCTP chain and hops to Arbitrum via CCTPv2. */
@@ -253,6 +306,13 @@ export interface ArkadeToEvmSwapOptions {
253
306
  referralCode?: string;
254
307
  /** Optional per-swap fee surcharge in basis points (0..=max_extra_fee_bps configured on the matching developer key). */
255
308
  extraFees?: number;
309
+ /**
310
+ * Optional promo code. Its rate replaces the base fee, and
311
+ * its cap may lift the route maximum. Pass it identically on the quote
312
+ * and the create. Rejected (400) when unknown, expired, used up, or the
313
+ * swap is larger than it allows.
314
+ */
315
+ promoCode?: string;
256
316
  /** Whether the server should execute the DEX swap on behalf of the user (gasless claim). Defaults to true. */
257
317
  gasless?: boolean;
258
318
  /** Optional: when set, USDC is bridged via CCTP to the destination chain after the DEX swap. */
@@ -291,6 +351,9 @@ export interface ArkadeToEvmSwapResult {
291
351
  * ```
292
352
  */
293
353
  export interface CreateSwapOptions {
354
+ minimumRelayFeeRateSatPerVb?: number;
355
+ /** Pay several Bitcoin recipients (EVM to Bitcoin only); amounts are nominal. */
356
+ bitcoinPayout?: import("./payout-slippage.cjs").BitcoinPaymentRequest;
294
357
  /** Source asset (preferred). Takes priority over `sourceAsset`. */
295
358
  source?: Asset;
296
359
  /** Target asset (preferred). Takes priority over `targetAsset`. */
@@ -308,6 +371,13 @@ export interface CreateSwapOptions {
308
371
  referralCode?: string;
309
372
  /** Optional per-swap fee surcharge in basis points (0..=max_extra_fee_bps configured on the matching developer key). */
310
373
  extraFees?: number;
374
+ /**
375
+ * Optional promo code. Its rate replaces the base fee, and
376
+ * its cap may lift the route maximum. Pass it identically on the quote
377
+ * and the create. Rejected (400) when unknown, expired, used up, or the
378
+ * swap is larger than it allows.
379
+ */
380
+ promoCode?: string;
311
381
  /** Whether to use gasless relay for EVM funding (no wallet needed). When true, the SDK-derived EVM address is used as the depositor. */
312
382
  gasless?: boolean;
313
383
  /** Optional: when set, USDC is bridged via CCTP to the destination chain after the DEX swap. */
@@ -343,6 +413,13 @@ export type LightningToArkadeSwapOptions = {
343
413
  referralCode?: string;
344
414
  /** Optional per-swap fee surcharge in basis points (0..=max_extra_fee_bps configured on the matching developer key). */
345
415
  extraFees?: number;
416
+ /**
417
+ * Optional promo code. Its rate replaces the base fee, and
418
+ * its cap may lift the route maximum. Pass it identically on the quote
419
+ * and the create. Rejected (400) when unknown, expired, used up, or the
420
+ * swap is larger than it allows.
421
+ */
422
+ promoCode?: string;
346
423
  /**
347
424
  * Optional description shown in the payer's wallet when they open the Lightning
348
425
  * invoice. When omitted, the server uses a default. An empty string is honored
@@ -379,6 +456,13 @@ export type ArkadeToLightningSwapOptions = {
379
456
  referralCode?: string;
380
457
  /** Optional per-swap fee surcharge in basis points (0..=max_extra_fee_bps configured on the matching developer key). */
381
458
  extraFees?: number;
459
+ /**
460
+ * Optional promo code. Its rate replaces the base fee, and
461
+ * its cap may lift the route maximum. Pass it identically on the quote
462
+ * and the create. Rejected (400) when unknown, expired, used up, or the
463
+ * swap is larger than it allows.
464
+ */
465
+ promoCode?: string;
382
466
  } & ({
383
467
  /**
384
468
  * BOLT11 invoice to pay. Its amount pins the payout; an optional
@@ -435,6 +519,13 @@ export type EvmToLightningSwapOptions = {
435
519
  referralCode?: string;
436
520
  /** Optional per-swap fee surcharge in basis points (0..=max_extra_fee_bps configured on the matching developer key). */
437
521
  extraFees?: number;
522
+ /**
523
+ * Optional promo code. Its rate replaces the base fee, and
524
+ * its cap may lift the route maximum. Pass it identically on the quote
525
+ * and the create. Rejected (400) when unknown, expired, used up, or the
526
+ * swap is larger than it allows.
527
+ */
528
+ promoCode?: string;
438
529
  /** Use gasless relay. When true, userAddress is auto-derived from the SDK EVM key. */
439
530
  gasless?: boolean;
440
531
  /** Optional: when set, source USDC originates on another CCTP chain and hops to Arbitrum via CCTPv2. */
@@ -497,7 +588,7 @@ export interface LightningToArkadeSwapResult {
497
588
  swapParams: SwapParams;
498
589
  }
499
590
  /** Union of all swap creation results returned by `createSwap`. */
500
- export type CreateSwapResult = ArkadeToEvmSwapResult | ArkadeToLightningSwapResult | BitcoinToEvmSwapResult | BitcoinToLightningSwapResult | BitcoinToArkadeSwapResult | LightningToArkadeSwapResult | LightningToBitcoinSwapResult | LightningToEvmSwapResult | EvmToArkadeSwapGenericResult | EvmToBitcoinSwapResult | EvmToLightningSwapResult;
591
+ export type CreateSwapResult = ArkadeToEvmSwapResult | ArkadeToLightningSwapResult | BitcoinToEvmSwapResult | BitcoinToLightningSwapResult | BitcoinToArkadeSwapResult | LightningToArkadeSwapResult | LightningToBitcoinSwapResult | LightningToEvmSwapResult | SparkToEvmSwapResult | EvmToArkadeSwapGenericResult | EvmToBitcoinSwapResult | EvmToLightningSwapResult;
501
592
  /**
502
593
  * Context passed to swap creation functions.
503
594
  * Contains the dependencies needed from the client.
@@ -509,7 +600,7 @@ export interface CreateSwapContext {
509
600
  baseUrl: string;
510
601
  /** Function to derive swap parameters (auto-increments key index) */
511
602
  deriveSwapParams: () => Promise<SwapParams>;
512
- /** Deterministic EVM address derived from the SDK key, reused across all swaps for Permit2 efficiency. */
603
+ /** Legacy wallet-level EVM address; new gasless deposits use the derived swap key. */
513
604
  evmAddress: string;
514
605
  /** Jump the key index forward by `n` (used to skip past reused indices). */
515
606
  skipKeyIndices?: (n: number) => Promise<void>;
@@ -530,6 +621,14 @@ export interface CreateSwapContext {
530
621
  }, commitments?: {
531
622
  lightningPaymentHash?: LightningPaymentHash;
532
623
  evmFundingTerms?: EvmFundingTerms;
624
+ bitcoinPayout?: import("../storage/types.cjs").BitcoinPayout;
533
625
  }) => Promise<void>;
534
626
  }
627
+ /** Native Spark BTC funding; invoice descriptions do not apply. */
628
+ export type SparkToEvmSwapOptions = Omit<LightningToEvmSwapOptions, "invoiceDescription">;
629
+ export type SparkToEvmSwapResponse = ApiSparkToEvmSwapResponse;
630
+ export interface SparkToEvmSwapResult {
631
+ response: SparkToEvmSwapResponse;
632
+ swapParams: SwapParams;
633
+ }
535
634
  export {};
@@ -102,3 +102,5 @@ export declare function broadcastTransaction(esploraUrls: EsploraUrls, txHex: st
102
102
  * @returns The transaction ID on success
103
103
  */
104
104
  export declare function broadcastTransactionWithRetry(esploraUrls: EsploraUrls, txHex: string, retries?: number): Promise<string>;
105
+ /** Mempool-compatible explorers expose current relay policy separately from confirmation estimates. */
106
+ export declare function fetchMinimumRelayFeeRate(esploraUrls: EsploraUrls): Promise<number | undefined>;
@@ -16,6 +16,8 @@
16
16
  * response and never updated from a later server answer.
17
17
  */
18
18
  export interface EvmFundingTerms {
19
+ /** Depositor requested locally and verified at creation; never refreshed. */
20
+ depositor?: string;
19
21
  chainId: number;
20
22
  /** The coordinator: the Permit2 spender. */
21
23
  coordinator: string;