@arkade-os/swap 0.1.2 → 0.1.4

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 (40) hide show
  1. package/README.md +1 -1
  2. package/dist/advanced.cjs +31 -38
  3. package/dist/advanced.d.cts +8 -8
  4. package/dist/advanced.d.ts +8 -8
  5. package/dist/advanced.js +5 -3
  6. package/dist/{chunk-ICSREL7N.js → chunk-7BBQ74BG.js} +15 -14
  7. package/dist/{chunk-BLECLU5Q.js → chunk-GJKGPE3S.js} +19 -33
  8. package/dist/{chunk-J2PMAQP2.js → chunk-HDCC3JZR.js} +14 -11
  9. package/dist/index.cjs +28 -38
  10. package/dist/index.d.cts +6 -6
  11. package/dist/index.d.ts +6 -6
  12. package/dist/index.js +3 -3
  13. package/dist/{lockupContract-CIXkJPxV.d.ts → lockupContract-CdXh9yIr.d.ts} +1 -1
  14. package/dist/{lockupContract-CkhWMKCo.d.cts → lockupContract-QfbsjyXG.d.cts} +1 -1
  15. package/dist/node/index.cjs +37 -37
  16. package/dist/node/index.js +37 -37
  17. package/dist/nostr.d.cts +1 -1
  18. package/dist/nostr.d.ts +1 -1
  19. package/dist/nostr.js +1 -1
  20. package/dist/{offer-Diff5Flc.d.cts → offer-BxzPQ6zh.d.cts} +11 -11
  21. package/dist/{offer-BPD2ortO.d.ts → offer-Q1lVhrVX.d.ts} +11 -11
  22. package/dist/{offerFillPlan-B-5ae_gQ.d.cts → offerFillPlan-CvKlB246.d.cts} +16 -11
  23. package/dist/{offerFillPlan-CJzneX6F.d.ts → offerFillPlan-_PhFt4B1.d.ts} +16 -11
  24. package/dist/protocol.cjs +27 -38
  25. package/dist/protocol.d.cts +9 -8
  26. package/dist/protocol.d.ts +9 -8
  27. package/dist/protocol.js +2 -2
  28. package/dist/repositories/realm/index.d.cts +2 -2
  29. package/dist/repositories/realm/index.d.ts +2 -2
  30. package/dist/repositories/sqlite/index.cjs +37 -37
  31. package/dist/repositories/sqlite/index.d.cts +3 -3
  32. package/dist/repositories/sqlite/index.d.ts +3 -3
  33. package/dist/repositories/sqlite/index.js +37 -37
  34. package/dist/{repository-BBVRh9ez.d.ts → repository-BOQ1qYoj.d.ts} +8 -7
  35. package/dist/{repository-C4pvymhs.d.cts → repository-Cut4eEkm.d.cts} +8 -7
  36. package/dist/{rfq-C0tHOvn6.d.cts → rfq-CP-P0PSL.d.cts} +7 -7
  37. package/dist/{rfq-C0tHOvn6.d.ts → rfq-CP-P0PSL.d.ts} +7 -7
  38. package/dist/{watch-7BiRa4oB.d.ts → watch-D15U0QpD.d.ts} +1 -1
  39. package/dist/{watch-Bxq-lx_6.d.cts → watch-D4PeBZ3H.d.cts} +1 -1
  40. package/package.json +2 -2
@@ -86,46 +86,46 @@ var SQLiteAssetSwapRepository = class {
86
86
  * while `initPromise` stayed resolved and every later statement failed with
87
87
  * `no such table`. */
88
88
  async init() {
89
- await this.withTx(async () => {
90
- await this.db.run(`CREATE TABLE IF NOT EXISTS ${this.swaps} (
89
+ await this.withTx(async (tx) => {
90
+ await tx.run(`CREATE TABLE IF NOT EXISTS ${this.swaps} (
91
91
  id TEXT PRIMARY KEY,
92
92
  status TEXT NOT NULL,
93
93
  created_at INTEGER NOT NULL,
94
94
  data TEXT NOT NULL
95
95
  )`);
96
- await this.db.run(
96
+ await tx.run(
97
97
  `CREATE INDEX IF NOT EXISTS idx_${this.prefix}asset_swaps_status ON ${this.swaps} (status)`
98
98
  );
99
- await this.db.run(
99
+ await tx.run(
100
100
  `CREATE INDEX IF NOT EXISTS idx_${this.prefix}asset_swaps_created_at ON ${this.swaps} (created_at)`
101
101
  );
102
- await this.db.run(`CREATE TABLE IF NOT EXISTS ${this.rfqSwaps} (
102
+ await tx.run(`CREATE TABLE IF NOT EXISTS ${this.rfqSwaps} (
103
103
  rfq_id TEXT PRIMARY KEY,
104
104
  state TEXT NOT NULL,
105
105
  updated_at INTEGER NOT NULL,
106
106
  data TEXT NOT NULL
107
107
  )`);
108
- await this.db.run(
108
+ await tx.run(
109
109
  `CREATE INDEX IF NOT EXISTS idx_${this.prefix}rfq_updated ON ${this.rfqSwaps} (updated_at, rfq_id)`
110
110
  );
111
- await this.db.run(
111
+ await tx.run(
112
112
  `CREATE INDEX IF NOT EXISTS idx_${this.prefix}rfq_swaps_history ON ${this.rfqSwaps} (state, updated_at, rfq_id)`
113
113
  );
114
- await this.db.run(`DROP INDEX IF EXISTS idx_${this.prefix}rfq_swaps_page`);
115
- await this.db.run(
114
+ await tx.run(`DROP INDEX IF EXISTS idx_${this.prefix}rfq_swaps_page`);
115
+ await tx.run(
116
116
  `CREATE INDEX IF NOT EXISTS idx_${this.prefix}rfq_swaps_state ON ${this.rfqSwaps} (state)`
117
117
  );
118
- await this.db.run(`CREATE TABLE IF NOT EXISTS ${this.swapRecords} (
118
+ await tx.run(`CREATE TABLE IF NOT EXISTS ${this.swapRecords} (
119
119
  id TEXT PRIMARY KEY,
120
120
  family TEXT NOT NULL,
121
121
  updated_at INTEGER NOT NULL,
122
122
  data TEXT NOT NULL
123
123
  )`);
124
- await this.db.run(
124
+ await tx.run(
125
125
  `CREATE INDEX IF NOT EXISTS idx_${this.prefix}swap_records_family ON ${this.swapRecords} (family)`
126
126
  );
127
- await this.db.run(`CREATE TABLE IF NOT EXISTS ${this.scanned} (txid TEXT PRIMARY KEY)`);
128
- await this.db.run(
127
+ await tx.run(`CREATE TABLE IF NOT EXISTS ${this.scanned} (txid TEXT PRIMARY KEY)`);
128
+ await tx.run(
129
129
  `CREATE TABLE IF NOT EXISTS ${this.markets} (cache_key TEXT PRIMARY KEY, data TEXT NOT NULL)`
130
130
  );
131
131
  });
@@ -133,7 +133,7 @@ var SQLiteAssetSwapRepository = class {
133
133
  /** Every write, including the single-statement ones. The chain serializes
134
134
  * transaction *blocks*, not bare statements: one issued between a
135
135
  * neighbour's BEGIN IMMEDIATE and its COMMIT becomes part of that
136
- * transaction and dies with it. `fn` must issue only raw db calls — no
136
+ * transaction and dies with it. `fn` must use its supplied raw executor — no
137
137
  * repository method, no `ensureInit` — since `runInTransaction` cannot
138
138
  * nest. */
139
139
  withTx(fn) {
@@ -141,8 +141,8 @@ var SQLiteAssetSwapRepository = class {
141
141
  }
142
142
  async saveSwap(swap) {
143
143
  await this.ensureInit();
144
- await this.withTx(async () => {
145
- await this.db.run(
144
+ await this.withTx(async (tx) => {
145
+ await tx.run(
146
146
  `INSERT OR REPLACE INTO ${this.swaps} (id, status, created_at, data)
147
147
  VALUES (?, ?, ?, ?)`,
148
148
  [swap.id, swap.status, swap.createdAt, JSON.stringify(swap)]
@@ -154,8 +154,8 @@ var SQLiteAssetSwapRepository = class {
154
154
  }
155
155
  async saveRfqSwap(record) {
156
156
  await this.ensureInit();
157
- await this.withTx(async () => {
158
- await this.db.run(
157
+ await this.withTx(async (tx) => {
158
+ await tx.run(
159
159
  `INSERT OR REPLACE INTO ${this.rfqSwaps} (rfq_id, state, updated_at, data)
160
160
  VALUES (?, ?, ?, ?)`,
161
161
  [record.rfqId, record.state, record.updatedAt, JSON.stringify(record)]
@@ -205,14 +205,14 @@ var SQLiteAssetSwapRepository = class {
205
205
  }
206
206
  async removeRfqSwap(rfqId) {
207
207
  await this.ensureInit();
208
- await this.withTx(async () => {
209
- await this.db.run(`DELETE FROM ${this.rfqSwaps} WHERE rfq_id = ?`, [rfqId]);
208
+ await this.withTx(async (tx) => {
209
+ await tx.run(`DELETE FROM ${this.rfqSwaps} WHERE rfq_id = ?`, [rfqId]);
210
210
  });
211
211
  }
212
212
  async saveSwapRecord(record) {
213
213
  await this.ensureInit();
214
- await this.withTx(async () => {
215
- await this.db.run(
214
+ await this.withTx(async (tx) => {
215
+ await tx.run(
216
216
  `INSERT OR REPLACE INTO ${this.swapRecords} (id, family, updated_at, data)
217
217
  VALUES (?, ?, ?, ?)`,
218
218
  [record.id, record.family, record.updatedAt, JSON.stringify(record)]
@@ -245,8 +245,8 @@ var SQLiteAssetSwapRepository = class {
245
245
  }
246
246
  async removeSwapRecord(id) {
247
247
  await this.ensureInit();
248
- await this.withTx(async () => {
249
- await this.db.run(`DELETE FROM ${this.swapRecords} WHERE id = ?`, [id]);
248
+ await this.withTx(async (tx) => {
249
+ await tx.run(`DELETE FROM ${this.swapRecords} WHERE id = ?`, [id]);
250
250
  });
251
251
  }
252
252
  async getScannedTxids() {
@@ -258,10 +258,10 @@ var SQLiteAssetSwapRepository = class {
258
258
  await this.ensureInit();
259
259
  const all = [...txids];
260
260
  if (all.length === 0) return;
261
- await this.withTx(async () => {
261
+ await this.withTx(async (tx) => {
262
262
  for (let i = 0; i < all.length; i += INSERT_CHUNK) {
263
263
  const chunk = all.slice(i, i + INSERT_CHUNK);
264
- await this.db.run(
264
+ await tx.run(
265
265
  `INSERT OR IGNORE INTO ${this.scanned} (txid) VALUES ${chunk.map(() => "(?)").join(", ")}`,
266
266
  chunk
267
267
  );
@@ -278,11 +278,11 @@ var SQLiteAssetSwapRepository = class {
278
278
  }
279
279
  async saveCachedMarkets(network, registry, entry) {
280
280
  await this.ensureInit();
281
- await this.withTx(async () => {
282
- await this.db.run(
283
- `INSERT OR REPLACE INTO ${this.markets} (cache_key, data) VALUES (?, ?)`,
284
- [marketsCacheKey(network, registry), JSON.stringify(entry)]
285
- );
281
+ await this.withTx(async (tx) => {
282
+ await tx.run(`INSERT OR REPLACE INTO ${this.markets} (cache_key, data) VALUES (?, ?)`, [
283
+ marketsCacheKey(network, registry),
284
+ JSON.stringify(entry)
285
+ ]);
286
286
  });
287
287
  }
288
288
  /** Every table in one transaction: clearing swaps but keeping scanned txids
@@ -290,12 +290,12 @@ var SQLiteAssetSwapRepository = class {
290
290
  * partial clear must not be observable. */
291
291
  async clear() {
292
292
  await this.ensureInit();
293
- await this.withTx(async () => {
294
- await this.db.run(`DELETE FROM ${this.swaps}`);
295
- await this.db.run(`DELETE FROM ${this.rfqSwaps}`);
296
- await this.db.run(`DELETE FROM ${this.swapRecords}`);
297
- await this.db.run(`DELETE FROM ${this.scanned}`);
298
- await this.db.run(`DELETE FROM ${this.markets}`);
293
+ await this.withTx(async (tx) => {
294
+ await tx.run(`DELETE FROM ${this.swaps}`);
295
+ await tx.run(`DELETE FROM ${this.rfqSwaps}`);
296
+ await tx.run(`DELETE FROM ${this.swapRecords}`);
297
+ await tx.run(`DELETE FROM ${this.scanned}`);
298
+ await tx.run(`DELETE FROM ${this.markets}`);
299
299
  });
300
300
  }
301
301
  async [Symbol.asyncDispose]() {
package/dist/nostr.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { TransportCardFetcher } from '@arkade-os/solver-discovery';
2
- import { e as RfqTransport } from './rfq-C0tHOvn6.cjs';
2
+ import { e as RfqTransport } from './rfq-CP-P0PSL.cjs';
3
3
  import { SimplePool } from 'nostr-tools';
4
4
  import '@arkade-os/sdk';
5
5
 
package/dist/nostr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { TransportCardFetcher } from '@arkade-os/solver-discovery';
2
- import { e as RfqTransport } from './rfq-C0tHOvn6.js';
2
+ import { e as RfqTransport } from './rfq-CP-P0PSL.js';
3
3
  import { SimplePool } from 'nostr-tools';
4
4
  import '@arkade-os/sdk';
5
5
 
package/dist/nostr.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  expectQuote,
3
3
  pairOf
4
- } from "./chunk-ICSREL7N.js";
4
+ } from "./chunk-7BBQ74BG.js";
5
5
  import "./chunk-A3SHHRX4.js";
6
6
 
7
7
  // src/nostr.ts
@@ -1,5 +1,5 @@
1
- import { asset, RelativeTimelock, ArkadeInfo, ArkTxInput, Outpoint, IWallet, EmulatorProvider, arkade } from '@arkade-os/sdk';
2
- import { d as AssetSwapRepository } from './repository-C4pvymhs.cjs';
1
+ import { asset, RelativeTimelock, OperatorInfo, ArkTxInput, Outpoint, IWallet, EmulatorProvider, arkade } from '@arkade-os/sdk';
2
+ import { d as AssetSwapRepository } from './repository-Cut4eEkm.cjs';
3
3
 
4
4
  /**
5
5
  * Coverage: whether an offer's script is in the wallet's watched set. `createOffer` promotes; the
@@ -43,7 +43,7 @@ interface Offer {
43
43
  makerPkScript: Uint8Array;
44
44
  /** Maker's x-only key (32 bytes) — the cancel path's `user` signer. */
45
45
  makerPublicKey: Uint8Array;
46
- /** Covenant co-signer (emulator) x-only key (32 bytes). */
46
+ /** X-only key (32 bytes) of the operator's cosigner that emulates Arkade Script. */
47
47
  emulatorPubkey: Uint8Array;
48
48
  /** Partial-fill numerator. Reserved wire space in V1: carried through the
49
49
  * codec so an offer that sets it decodes, never interpreted here. */
@@ -90,8 +90,8 @@ declare function decodeOffer(data: Uint8Array): Offer;
90
90
  *
91
91
  * Broadcasts nothing, but registers the covenant before returning the address: a failure now is
92
92
  * retryable, whereas after `wallet.send` it would leave a funded deposit unwatched. The unilateral
93
- * exit closure is built by default (server's `unilateralExitDelay`, as solverd does); without it only
94
- * the server-co-signed `cancel` gets the deposit out, and an offer never expires.
93
+ * exit closure is built by default (operator's `unilateralExitDelay`, as solverd does); without it only
94
+ * the operator-cosigned `cancel` gets the deposit out, and an offer never expires.
95
95
  *
96
96
  * @deprecated Internal to `accept()`; no replacement. Moved off the package root to `@arkade-os/swap/protocol`.
97
97
  */
@@ -119,11 +119,11 @@ interface OfferParams {
119
119
  /** Co-signer key override (33-byte compressed hex); see
120
120
  * {@link resolveEmulatorPubkey}. */
121
121
  emulatorPubkey?: string;
122
- /** Override the exit closure's delay. Defaults to the server's own
122
+ /** Override the exit closure's delay. Defaults to the operator's own
123
123
  * `unilateralExitDelay`, which is the delay solverd uses too. */
124
124
  exitDelay?: RelativeTimelock;
125
125
  /** Publish without the exit closure, leaving `cancel` — which needs the
126
- * server — as the only way back out. See the note on {@link createOffer}. */
126
+ * operator — as the only way back out. See the note on {@link createOffer}. */
127
127
  noExit?: boolean;
128
128
  /**
129
129
  * A live `getArkadeInfo` the caller already made.
@@ -133,7 +133,7 @@ interface OfferParams {
133
133
  * live for the reason {@link createOffer} reads live — the info's
134
134
  * `signerPubkey` ends up in a covenant leaf.
135
135
  */
136
- info?: ArkadeInfo;
136
+ info?: OperatorInfo;
137
137
  /**
138
138
  * The maker position, when the caller already read it.
139
139
  *
@@ -166,15 +166,15 @@ interface DerivedOffer {
166
166
  /** The covenant's parameters — {@link registerDerivedOffer}'s only input. */
167
167
  readonly binding: Readonly<Omit<Offer, "swapPkScript">>;
168
168
  /** The live info this covenant is bound to. */
169
- readonly info: ArkadeInfo;
169
+ readonly info: OperatorInfo;
170
170
  readonly operatorPubkey: Uint8Array;
171
171
  }
172
172
  /**
173
173
  * Cancel an offer: spend the swap VTXO back to the user. Returns the ark txid. No path is on a
174
174
  * deadline, so an unfilled deposit stays at the swap address until the user cancels.
175
175
  *
176
- * Routes out: `fulfill` (server alone, but constrained to pay `makerWP` at least `wantAmount`),
177
- * `cancel` (user+server 2-of-2, no solver involved), `exit` (user alone after a CSV unless `noExit`;
176
+ * Routes out: `fulfill` (operator alone, but constrained to pay `makerWP` at least `wantAmount`),
177
+ * `cancel` (user+operator 2-of-2, no solver involved), `exit` (user alone after a CSV unless `noExit`;
178
178
  * reached by unrolling onchain, not here).
179
179
  *
180
180
  * Cancel races a fill: if `fulfill` spent first this throws "no spendable VTXO at the swap address",
@@ -1,5 +1,5 @@
1
- import { asset, RelativeTimelock, ArkadeInfo, ArkTxInput, Outpoint, IWallet, EmulatorProvider, arkade } from '@arkade-os/sdk';
2
- import { d as AssetSwapRepository } from './repository-BBVRh9ez.js';
1
+ import { asset, RelativeTimelock, OperatorInfo, ArkTxInput, Outpoint, IWallet, EmulatorProvider, arkade } from '@arkade-os/sdk';
2
+ import { d as AssetSwapRepository } from './repository-BOQ1qYoj.js';
3
3
 
4
4
  /**
5
5
  * Coverage: whether an offer's script is in the wallet's watched set. `createOffer` promotes; the
@@ -43,7 +43,7 @@ interface Offer {
43
43
  makerPkScript: Uint8Array;
44
44
  /** Maker's x-only key (32 bytes) — the cancel path's `user` signer. */
45
45
  makerPublicKey: Uint8Array;
46
- /** Covenant co-signer (emulator) x-only key (32 bytes). */
46
+ /** X-only key (32 bytes) of the operator's cosigner that emulates Arkade Script. */
47
47
  emulatorPubkey: Uint8Array;
48
48
  /** Partial-fill numerator. Reserved wire space in V1: carried through the
49
49
  * codec so an offer that sets it decodes, never interpreted here. */
@@ -90,8 +90,8 @@ declare function decodeOffer(data: Uint8Array): Offer;
90
90
  *
91
91
  * Broadcasts nothing, but registers the covenant before returning the address: a failure now is
92
92
  * retryable, whereas after `wallet.send` it would leave a funded deposit unwatched. The unilateral
93
- * exit closure is built by default (server's `unilateralExitDelay`, as solverd does); without it only
94
- * the server-co-signed `cancel` gets the deposit out, and an offer never expires.
93
+ * exit closure is built by default (operator's `unilateralExitDelay`, as solverd does); without it only
94
+ * the operator-cosigned `cancel` gets the deposit out, and an offer never expires.
95
95
  *
96
96
  * @deprecated Internal to `accept()`; no replacement. Moved off the package root to `@arkade-os/swap/protocol`.
97
97
  */
@@ -119,11 +119,11 @@ interface OfferParams {
119
119
  /** Co-signer key override (33-byte compressed hex); see
120
120
  * {@link resolveEmulatorPubkey}. */
121
121
  emulatorPubkey?: string;
122
- /** Override the exit closure's delay. Defaults to the server's own
122
+ /** Override the exit closure's delay. Defaults to the operator's own
123
123
  * `unilateralExitDelay`, which is the delay solverd uses too. */
124
124
  exitDelay?: RelativeTimelock;
125
125
  /** Publish without the exit closure, leaving `cancel` — which needs the
126
- * server — as the only way back out. See the note on {@link createOffer}. */
126
+ * operator — as the only way back out. See the note on {@link createOffer}. */
127
127
  noExit?: boolean;
128
128
  /**
129
129
  * A live `getArkadeInfo` the caller already made.
@@ -133,7 +133,7 @@ interface OfferParams {
133
133
  * live for the reason {@link createOffer} reads live — the info's
134
134
  * `signerPubkey` ends up in a covenant leaf.
135
135
  */
136
- info?: ArkadeInfo;
136
+ info?: OperatorInfo;
137
137
  /**
138
138
  * The maker position, when the caller already read it.
139
139
  *
@@ -166,15 +166,15 @@ interface DerivedOffer {
166
166
  /** The covenant's parameters — {@link registerDerivedOffer}'s only input. */
167
167
  readonly binding: Readonly<Omit<Offer, "swapPkScript">>;
168
168
  /** The live info this covenant is bound to. */
169
- readonly info: ArkadeInfo;
169
+ readonly info: OperatorInfo;
170
170
  readonly operatorPubkey: Uint8Array;
171
171
  }
172
172
  /**
173
173
  * Cancel an offer: spend the swap VTXO back to the user. Returns the ark txid. No path is on a
174
174
  * deadline, so an unfilled deposit stays at the swap address until the user cancels.
175
175
  *
176
- * Routes out: `fulfill` (server alone, but constrained to pay `makerWP` at least `wantAmount`),
177
- * `cancel` (user+server 2-of-2, no solver involved), `exit` (user alone after a CSV unless `noExit`;
176
+ * Routes out: `fulfill` (operator alone, but constrained to pay `makerWP` at least `wantAmount`),
177
+ * `cancel` (user+operator 2-of-2, no solver involved), `exit` (user alone after a CSV unless `noExit`;
178
178
  * reached by unrolling onchain, not here).
179
179
  *
180
180
  * Cancel races a fill: if `fulfill` spent first this throws "no spendable VTXO at the swap address",
@@ -1,8 +1,8 @@
1
- import { IWallet, NetworkName, Network, SignerSet, OnchainProvider, ArkadeInfo, VHTLC, ProvisionedKey, ProvisionedClaimSecret, Transaction } from '@arkade-os/sdk';
2
- import { bd as SwapOperator, d as AssetSwapRepository, m as Pubkey, bf as RfqSwapManagerCallbacks, C as Corridor, I as Instrument, bg as RfqSwapActionName, N as NetworkRef, A as AssetId, ao as SnapshotRef, a4 as MarketBackend, X as CardMarketRef, a5 as MarketRef, E as AssetRef, r as AmountOn, ap as Swap, Y as CorridorId, _ as DepositArtifact, l as QuoteInput, a9 as Quote, ae as RankedBid, as as SwapUpdate, au as Unsubscribe, S as SwapRecord, Q as QuoteId, a7 as Outcome, L as LockupSpendIndexer, bc as SwapContractRegistry, j as ResolvedEndpoint, P as PinnedAmount, D as AssetPaymentTerms, B as AssetPaymentInput, O as OfferSwapRecord, G as AssetSwapId, aq as SwapFamily, i as RouteResolution } from './repository-C4pvymhs.cjs';
3
- import { I as InvoiceFacts, C as ChainSource, R as RfqQuote, e as RfqTransport, L as LightningSendContractParams, f as LightningReceiveContractParams, O as OnchainHtlc, g as OnchainHtlcParams, h as OnchainNetwork, S as SwapRefusal } from './rfq-C0tHOvn6.cjs';
1
+ import { IWallet, NetworkName, Network, SignerSet, OnchainProvider, OperatorInfo, VHTLC, ProvisionedKey, ProvisionedClaimSecret, Transaction } from '@arkade-os/sdk';
2
+ import { bd as SwapOperator, d as AssetSwapRepository, m as Pubkey, bf as RfqSwapManagerCallbacks, C as Corridor, I as Instrument, bg as RfqSwapActionName, N as NetworkRef, A as AssetId, ao as SnapshotRef, a4 as MarketBackend, X as CardMarketRef, a5 as MarketRef, E as AssetRef, r as AmountOn, ap as Swap, Y as CorridorId, _ as DepositArtifact, l as QuoteInput, a9 as Quote, ae as RankedBid, as as SwapUpdate, au as Unsubscribe, S as SwapRecord, Q as QuoteId, a7 as Outcome, L as LockupSpendIndexer, bc as SwapContractRegistry, j as ResolvedEndpoint, P as PinnedAmount, D as AssetPaymentTerms, B as AssetPaymentInput, O as OfferSwapRecord, G as AssetSwapId, aq as SwapFamily, i as RouteResolution } from './repository-Cut4eEkm.cjs';
3
+ import { I as InvoiceFacts, C as ChainSource, R as RfqQuote, e as RfqTransport, L as LightningSendContractParams, f as LightningReceiveContractParams, O as OnchainHtlc, g as OnchainHtlcParams, h as OnchainNetwork, S as SwapRefusal } from './rfq-CP-P0PSL.cjs';
4
4
  import { Network as Network$1, LocalCardInput, TransportCardFetcher, DiscoveredMarket, Side, OfferPlan } from '@arkade-os/solver-discovery';
5
- import { D as DerivedOffer, F as FillFunding, a as FillOutpoint, b as FillInputOwner } from './offer-Diff5Flc.cjs';
5
+ import { D as DerivedOffer, F as FillFunding, a as FillOutpoint, b as FillInputOwner } from './offer-BxzPQ6zh.cjs';
6
6
  import * as nostr_tools from 'nostr-tools';
7
7
 
8
8
  /**
@@ -29,8 +29,8 @@ interface CorridorBase {
29
29
  readonly network: Network;
30
30
  /** The operator's signer set, for the rotation-aware recipient check. */
31
31
  readonly signerSet: SignerSet;
32
- /** Covenant co-signer override, 33-byte compressed hex. Required on `testnet` and `signet`, which
33
- * `EMULATOR_PUBKEYS` does not pin. */
32
+ /** Override for the key of the operator's cosigner that emulates Arkade Script, 33-byte
33
+ * compressed hex. Required on `testnet` and `signet`, which `EMULATOR_PUBKEYS` does not pin. */
34
34
  readonly emulatorPubkey?: string;
35
35
  /** For hosts without a global `fetch`, and for tests. */
36
36
  readonly fetchImpl?: typeof fetch;
@@ -160,9 +160,13 @@ declare function resolveCorridorDeps<C extends Corridor>(corridor: C, overrides:
160
160
  * service-worker boundary is a bare `Error`). Covenant derivations read live, since a snapshot can
161
161
  * bind a signer key the operator no longer co-signs for; `resolve()` takes the offline fallback.
162
162
  */
163
+ declare const liveOperatorInfo: (wallet: IWallet, opts?: {
164
+ requireLive?: boolean;
165
+ }) => Promise<OperatorInfo>;
166
+ /** @deprecated Use {@link liveOperatorInfo}. */
163
167
  declare const liveArkadeInfo: (wallet: IWallet, opts?: {
164
168
  requireLive?: boolean;
165
- }) => Promise<ArkadeInfo>;
169
+ }) => Promise<OperatorInfo>;
166
170
  /**
167
171
  * The one operator read, made once for all three corridors. `getNetwork` stays fail-closed: an
168
172
  * unknown network name is not "unreachable", and resolving it to mainnet params is what it prevents.
@@ -174,7 +178,7 @@ declare const resolveCorridorBase: (input: {
174
178
  fetchImpl?: typeof fetch;
175
179
  /** The client's storage, threaded so the arkade dep can default to it. */
176
180
  repository?: AssetSwapRepository;
177
- /** Defaults to `true` — see {@link liveArkadeInfo}. */
181
+ /** Defaults to `true` — see {@link liveOperatorInfo}. */
178
182
  requireLive?: boolean;
179
183
  }) => Promise<CorridorBase>;
180
184
 
@@ -1154,7 +1158,7 @@ interface RfqQuoteInput {
1154
1158
  readonly amount?: PinnedAmount;
1155
1159
  readonly wallet: IWallet;
1156
1160
  /** Live, per section 6: a snapshot binds a covenant to a key that may have rotated. */
1157
- readonly info: ArkadeInfo;
1161
+ readonly info: OperatorInfo;
1158
1162
  /**
1159
1163
  * The corridor modules, unresolved: resolution refuses a dep overridden to nothing, so each
1160
1164
  * route resolves only the corridors it uses.
@@ -1250,7 +1254,8 @@ interface SwapClientConfig {
1250
1254
  /** Dependency overrides only: they never enable a route or pick a solver. */
1251
1255
  readonly corridors?: CorridorOverrides;
1252
1256
  readonly policy?: SwapPolicy;
1253
- /** Covenant co-signer override, 33-byte compressed hex. */
1257
+ /** Override for the key of the operator's cosigner that emulates Arkade Script, 33-byte
1258
+ * compressed hex. */
1254
1259
  readonly emulatorPubkey?: string;
1255
1260
  /** Overrides the wallet's own connection; for tests and a second operator. */
1256
1261
  readonly operator?: SwapOperator;
@@ -1668,4 +1673,4 @@ interface BuildOfferFillPlanOpts {
1668
1673
  declare function buildOfferFillPlan(wallet: IWallet, arkServerUrl: string, offerHex: string, opts: BuildOfferFillPlanOpts): Promise<JointGraph>;
1669
1674
  declare function verifyOfferFillPlan(plan: JointGraph): boolean;
1670
1675
 
1671
- export { type JointGraph as $, type AssetAliasTable as A, type BuildOfferFillPlanOpts as B, type CorridorFactory as C, type DiscoveryIndex as D, type CorridorOverrides as E, type CorridorPass as F, type CorridorRfqPreparation as G, DEFAULT_MAX_REFUND_WINDOW_SECONDS as H, type DiscoveryConfig as I, type DiscoveryIndexInput as J, DiscoverySnapshotUnavailable as K, type LightningCorridorDeps as L, type MarketCandidate as M, type DriveMode as N, type OnchainCorridorDeps as O, type DriveRefusal as P, type ExchangeOptions as Q, FEED_TTL_MS as R, type SwapPolicy as S, type FeeCeiling as T, type FeedFetch as U, type FeedQuoteInput as V, type FillSponsor as W, type FillSponsorFare as X, INDEXED_NETWORKS as Y, InconsistentRoute as Z, InsufficientFunds as _, type ArkadeCorridorDeps as a, feedSpread as a$, type LockupOwner as a0, type Market as a1, type MarketLeg as a2, MaxFeeExceeded as a3, MissingCorridorDep as a4, NotCancellable as a5, OFFER_FILL_OWNERS as a6, OFFER_FILL_TEMPLATE as a7, ONCHAIN_CLAIM_FEE_RATE_SATVB as a8, type ObservationSeam as a9, type SwapDrive as aA, type SwapDriveConfig as aB, SwapDriveRefusedError as aC, type SwapError as aD, type SwapErrorName as aE, type SwapFilter as aF, UnsupportedRoute as aG, type VerbDeps as aH, acceptQuote as aI, attesting as aJ, buildOfferFillPlan as aK, cancelSwap as aL, canonicalAssetId as aM, cardMarketOf as aN, chooseMarket as aO, conflictingFields as aP, corridorSet as aQ, createNostrTransportFactory as aR, createSwapClient as aS, createSwapDrive as aT, deepFreeze as aU, digestJointGraph as aV, discoveryIndex as aW, eligibleMarkets as aX, enforceFeeCeiling as aY, exchange as aZ, feedFetch as a_, type OfferPreparation as aa, type OnchainClaim as ab, type OnchainRefund as ac, OperatorUnreachable as ad, type ParsedRfqQuote as ae, type PayOptions as af, type PayResult as ag, type QuoteCheck as ah, QuoteExpired as ai, type QuotePreparation as aj, QuoteVerificationFailed as ak, REGISTRY_URL as al, type ReceiveArtifact as am, type ReceiveOptions as an, type ReceiveRequest as ao, type RecoveryResult as ap, type RegisteredAsset as aq, type RfqAuctionPolicy as ar, type RfqPreparation as as, type RfqQuoteInput as at, type RfqRendezvous as au, type RfqTransportFactory as av, type RouteSide as aw, SWAP_ERROR_NAMES as ax, type SwapClient as ay, type SwapClientConfig as az, type CorridorSet as b, isAddressable as b0, isCardMarket as b1, isIndexedNetwork as b2, isSwapError as b3, isUsableCard as b4, liveArkadeInfo as b5, marketBackendOf as b6, marketKeyOf as b7, marketOf as b8, marketRefOf as b9, nostrTransportFactory as ba, parseRfqQuote as bb, pay as bc, quoteFromFeed as bd, quoteViaRfq as be, readableRecord as bf, receive as bg, resolveCorridorBase as bh, resolveCorridorDeps as bi, rfqLeg as bj, rfqPairFor as bk, swapRecordOf as bl, toDiscoveryLeg as bm, unsignedPsbtBytes as bn, usableMarkets as bo, verifyJointGraph as bp, verifyOfferFillPlan as bq, verifyPlanLegs as br, withCanonicalAmount as bs, type DiscoveryLeg as c, type DiscoverySnapshot as d, AcceptConflict as e, type AcceptInput as f, type AcceptOptions as g, AmbiguousDestination as h, AmountEncodingUnsupported as i, AmountMismatch as j, type AssetRfqPreparation as k, type AttestingRfqTransport as l, CORRIDOR_FACTORIES as m, type CancelInput as n, type CancelOutcome as o, type ClaimedDestination as p, ClientDisposed as q, type CorridorBase as r, type CorridorClaim as s, type CorridorCovenant as t, type CorridorDeadline as u, type CorridorDeps as v, type CorridorDepsByCorridor as w, type CorridorDrive as x, type CorridorLockup as y, type CorridorModule as z };
1676
+ export { type JointGraph as $, type AssetAliasTable as A, type BuildOfferFillPlanOpts as B, type CorridorFactory as C, type DiscoveryIndex as D, type CorridorOverrides as E, type CorridorPass as F, type CorridorRfqPreparation as G, DEFAULT_MAX_REFUND_WINDOW_SECONDS as H, type DiscoveryConfig as I, type DiscoveryIndexInput as J, DiscoverySnapshotUnavailable as K, type LightningCorridorDeps as L, type MarketCandidate as M, type DriveMode as N, type OnchainCorridorDeps as O, type DriveRefusal as P, type ExchangeOptions as Q, FEED_TTL_MS as R, type SwapPolicy as S, type FeeCeiling as T, type FeedFetch as U, type FeedQuoteInput as V, type FillSponsor as W, type FillSponsorFare as X, INDEXED_NETWORKS as Y, InconsistentRoute as Z, InsufficientFunds as _, type ArkadeCorridorDeps as a, feedSpread as a$, type LockupOwner as a0, type Market as a1, type MarketLeg as a2, MaxFeeExceeded as a3, MissingCorridorDep as a4, NotCancellable as a5, OFFER_FILL_OWNERS as a6, OFFER_FILL_TEMPLATE as a7, ONCHAIN_CLAIM_FEE_RATE_SATVB as a8, type ObservationSeam as a9, type SwapDrive as aA, type SwapDriveConfig as aB, SwapDriveRefusedError as aC, type SwapError as aD, type SwapErrorName as aE, type SwapFilter as aF, UnsupportedRoute as aG, type VerbDeps as aH, acceptQuote as aI, attesting as aJ, buildOfferFillPlan as aK, cancelSwap as aL, canonicalAssetId as aM, cardMarketOf as aN, chooseMarket as aO, conflictingFields as aP, corridorSet as aQ, createNostrTransportFactory as aR, createSwapClient as aS, createSwapDrive as aT, deepFreeze as aU, digestJointGraph as aV, discoveryIndex as aW, eligibleMarkets as aX, enforceFeeCeiling as aY, exchange as aZ, feedFetch as a_, type OfferPreparation as aa, type OnchainClaim as ab, type OnchainRefund as ac, OperatorUnreachable as ad, type ParsedRfqQuote as ae, type PayOptions as af, type PayResult as ag, type QuoteCheck as ah, QuoteExpired as ai, type QuotePreparation as aj, QuoteVerificationFailed as ak, REGISTRY_URL as al, type ReceiveArtifact as am, type ReceiveOptions as an, type ReceiveRequest as ao, type RecoveryResult as ap, type RegisteredAsset as aq, type RfqAuctionPolicy as ar, type RfqPreparation as as, type RfqQuoteInput as at, type RfqRendezvous as au, type RfqTransportFactory as av, type RouteSide as aw, SWAP_ERROR_NAMES as ax, type SwapClient as ay, type SwapClientConfig as az, type CorridorSet as b, isAddressable as b0, isCardMarket as b1, isIndexedNetwork as b2, isSwapError as b3, isUsableCard as b4, liveArkadeInfo as b5, liveOperatorInfo as b6, marketBackendOf as b7, marketKeyOf as b8, marketOf as b9, marketRefOf as ba, nostrTransportFactory as bb, parseRfqQuote as bc, pay as bd, quoteFromFeed as be, quoteViaRfq as bf, readableRecord as bg, receive as bh, resolveCorridorBase as bi, resolveCorridorDeps as bj, rfqLeg as bk, rfqPairFor as bl, swapRecordOf as bm, toDiscoveryLeg as bn, unsignedPsbtBytes as bo, usableMarkets as bp, verifyJointGraph as bq, verifyOfferFillPlan as br, verifyPlanLegs as bs, withCanonicalAmount as bt, type DiscoveryLeg as c, type DiscoverySnapshot as d, AcceptConflict as e, type AcceptInput as f, type AcceptOptions as g, AmbiguousDestination as h, AmountEncodingUnsupported as i, AmountMismatch as j, type AssetRfqPreparation as k, type AttestingRfqTransport as l, CORRIDOR_FACTORIES as m, type CancelInput as n, type CancelOutcome as o, type ClaimedDestination as p, ClientDisposed as q, type CorridorBase as r, type CorridorClaim as s, type CorridorCovenant as t, type CorridorDeadline as u, type CorridorDeps as v, type CorridorDepsByCorridor as w, type CorridorDrive as x, type CorridorLockup as y, type CorridorModule as z };
@@ -1,8 +1,8 @@
1
- import { IWallet, NetworkName, Network, SignerSet, OnchainProvider, ArkadeInfo, VHTLC, ProvisionedKey, ProvisionedClaimSecret, Transaction } from '@arkade-os/sdk';
2
- import { bd as SwapOperator, d as AssetSwapRepository, m as Pubkey, bf as RfqSwapManagerCallbacks, C as Corridor, I as Instrument, bg as RfqSwapActionName, N as NetworkRef, A as AssetId, ao as SnapshotRef, a4 as MarketBackend, X as CardMarketRef, a5 as MarketRef, E as AssetRef, r as AmountOn, ap as Swap, Y as CorridorId, _ as DepositArtifact, l as QuoteInput, a9 as Quote, ae as RankedBid, as as SwapUpdate, au as Unsubscribe, S as SwapRecord, Q as QuoteId, a7 as Outcome, L as LockupSpendIndexer, bc as SwapContractRegistry, j as ResolvedEndpoint, P as PinnedAmount, D as AssetPaymentTerms, B as AssetPaymentInput, O as OfferSwapRecord, G as AssetSwapId, aq as SwapFamily, i as RouteResolution } from './repository-BBVRh9ez.js';
3
- import { I as InvoiceFacts, C as ChainSource, R as RfqQuote, e as RfqTransport, L as LightningSendContractParams, f as LightningReceiveContractParams, O as OnchainHtlc, g as OnchainHtlcParams, h as OnchainNetwork, S as SwapRefusal } from './rfq-C0tHOvn6.js';
1
+ import { IWallet, NetworkName, Network, SignerSet, OnchainProvider, OperatorInfo, VHTLC, ProvisionedKey, ProvisionedClaimSecret, Transaction } from '@arkade-os/sdk';
2
+ import { bd as SwapOperator, d as AssetSwapRepository, m as Pubkey, bf as RfqSwapManagerCallbacks, C as Corridor, I as Instrument, bg as RfqSwapActionName, N as NetworkRef, A as AssetId, ao as SnapshotRef, a4 as MarketBackend, X as CardMarketRef, a5 as MarketRef, E as AssetRef, r as AmountOn, ap as Swap, Y as CorridorId, _ as DepositArtifact, l as QuoteInput, a9 as Quote, ae as RankedBid, as as SwapUpdate, au as Unsubscribe, S as SwapRecord, Q as QuoteId, a7 as Outcome, L as LockupSpendIndexer, bc as SwapContractRegistry, j as ResolvedEndpoint, P as PinnedAmount, D as AssetPaymentTerms, B as AssetPaymentInput, O as OfferSwapRecord, G as AssetSwapId, aq as SwapFamily, i as RouteResolution } from './repository-BOQ1qYoj.js';
3
+ import { I as InvoiceFacts, C as ChainSource, R as RfqQuote, e as RfqTransport, L as LightningSendContractParams, f as LightningReceiveContractParams, O as OnchainHtlc, g as OnchainHtlcParams, h as OnchainNetwork, S as SwapRefusal } from './rfq-CP-P0PSL.js';
4
4
  import { Network as Network$1, LocalCardInput, TransportCardFetcher, DiscoveredMarket, Side, OfferPlan } from '@arkade-os/solver-discovery';
5
- import { D as DerivedOffer, F as FillFunding, a as FillOutpoint, b as FillInputOwner } from './offer-BPD2ortO.js';
5
+ import { D as DerivedOffer, F as FillFunding, a as FillOutpoint, b as FillInputOwner } from './offer-Q1lVhrVX.js';
6
6
  import * as nostr_tools from 'nostr-tools';
7
7
 
8
8
  /**
@@ -29,8 +29,8 @@ interface CorridorBase {
29
29
  readonly network: Network;
30
30
  /** The operator's signer set, for the rotation-aware recipient check. */
31
31
  readonly signerSet: SignerSet;
32
- /** Covenant co-signer override, 33-byte compressed hex. Required on `testnet` and `signet`, which
33
- * `EMULATOR_PUBKEYS` does not pin. */
32
+ /** Override for the key of the operator's cosigner that emulates Arkade Script, 33-byte
33
+ * compressed hex. Required on `testnet` and `signet`, which `EMULATOR_PUBKEYS` does not pin. */
34
34
  readonly emulatorPubkey?: string;
35
35
  /** For hosts without a global `fetch`, and for tests. */
36
36
  readonly fetchImpl?: typeof fetch;
@@ -160,9 +160,13 @@ declare function resolveCorridorDeps<C extends Corridor>(corridor: C, overrides:
160
160
  * service-worker boundary is a bare `Error`). Covenant derivations read live, since a snapshot can
161
161
  * bind a signer key the operator no longer co-signs for; `resolve()` takes the offline fallback.
162
162
  */
163
+ declare const liveOperatorInfo: (wallet: IWallet, opts?: {
164
+ requireLive?: boolean;
165
+ }) => Promise<OperatorInfo>;
166
+ /** @deprecated Use {@link liveOperatorInfo}. */
163
167
  declare const liveArkadeInfo: (wallet: IWallet, opts?: {
164
168
  requireLive?: boolean;
165
- }) => Promise<ArkadeInfo>;
169
+ }) => Promise<OperatorInfo>;
166
170
  /**
167
171
  * The one operator read, made once for all three corridors. `getNetwork` stays fail-closed: an
168
172
  * unknown network name is not "unreachable", and resolving it to mainnet params is what it prevents.
@@ -174,7 +178,7 @@ declare const resolveCorridorBase: (input: {
174
178
  fetchImpl?: typeof fetch;
175
179
  /** The client's storage, threaded so the arkade dep can default to it. */
176
180
  repository?: AssetSwapRepository;
177
- /** Defaults to `true` — see {@link liveArkadeInfo}. */
181
+ /** Defaults to `true` — see {@link liveOperatorInfo}. */
178
182
  requireLive?: boolean;
179
183
  }) => Promise<CorridorBase>;
180
184
 
@@ -1154,7 +1158,7 @@ interface RfqQuoteInput {
1154
1158
  readonly amount?: PinnedAmount;
1155
1159
  readonly wallet: IWallet;
1156
1160
  /** Live, per section 6: a snapshot binds a covenant to a key that may have rotated. */
1157
- readonly info: ArkadeInfo;
1161
+ readonly info: OperatorInfo;
1158
1162
  /**
1159
1163
  * The corridor modules, unresolved: resolution refuses a dep overridden to nothing, so each
1160
1164
  * route resolves only the corridors it uses.
@@ -1250,7 +1254,8 @@ interface SwapClientConfig {
1250
1254
  /** Dependency overrides only: they never enable a route or pick a solver. */
1251
1255
  readonly corridors?: CorridorOverrides;
1252
1256
  readonly policy?: SwapPolicy;
1253
- /** Covenant co-signer override, 33-byte compressed hex. */
1257
+ /** Override for the key of the operator's cosigner that emulates Arkade Script, 33-byte
1258
+ * compressed hex. */
1254
1259
  readonly emulatorPubkey?: string;
1255
1260
  /** Overrides the wallet's own connection; for tests and a second operator. */
1256
1261
  readonly operator?: SwapOperator;
@@ -1668,4 +1673,4 @@ interface BuildOfferFillPlanOpts {
1668
1673
  declare function buildOfferFillPlan(wallet: IWallet, arkServerUrl: string, offerHex: string, opts: BuildOfferFillPlanOpts): Promise<JointGraph>;
1669
1674
  declare function verifyOfferFillPlan(plan: JointGraph): boolean;
1670
1675
 
1671
- export { type JointGraph as $, type AssetAliasTable as A, type BuildOfferFillPlanOpts as B, type CorridorFactory as C, type DiscoveryIndex as D, type CorridorOverrides as E, type CorridorPass as F, type CorridorRfqPreparation as G, DEFAULT_MAX_REFUND_WINDOW_SECONDS as H, type DiscoveryConfig as I, type DiscoveryIndexInput as J, DiscoverySnapshotUnavailable as K, type LightningCorridorDeps as L, type MarketCandidate as M, type DriveMode as N, type OnchainCorridorDeps as O, type DriveRefusal as P, type ExchangeOptions as Q, FEED_TTL_MS as R, type SwapPolicy as S, type FeeCeiling as T, type FeedFetch as U, type FeedQuoteInput as V, type FillSponsor as W, type FillSponsorFare as X, INDEXED_NETWORKS as Y, InconsistentRoute as Z, InsufficientFunds as _, type ArkadeCorridorDeps as a, feedSpread as a$, type LockupOwner as a0, type Market as a1, type MarketLeg as a2, MaxFeeExceeded as a3, MissingCorridorDep as a4, NotCancellable as a5, OFFER_FILL_OWNERS as a6, OFFER_FILL_TEMPLATE as a7, ONCHAIN_CLAIM_FEE_RATE_SATVB as a8, type ObservationSeam as a9, type SwapDrive as aA, type SwapDriveConfig as aB, SwapDriveRefusedError as aC, type SwapError as aD, type SwapErrorName as aE, type SwapFilter as aF, UnsupportedRoute as aG, type VerbDeps as aH, acceptQuote as aI, attesting as aJ, buildOfferFillPlan as aK, cancelSwap as aL, canonicalAssetId as aM, cardMarketOf as aN, chooseMarket as aO, conflictingFields as aP, corridorSet as aQ, createNostrTransportFactory as aR, createSwapClient as aS, createSwapDrive as aT, deepFreeze as aU, digestJointGraph as aV, discoveryIndex as aW, eligibleMarkets as aX, enforceFeeCeiling as aY, exchange as aZ, feedFetch as a_, type OfferPreparation as aa, type OnchainClaim as ab, type OnchainRefund as ac, OperatorUnreachable as ad, type ParsedRfqQuote as ae, type PayOptions as af, type PayResult as ag, type QuoteCheck as ah, QuoteExpired as ai, type QuotePreparation as aj, QuoteVerificationFailed as ak, REGISTRY_URL as al, type ReceiveArtifact as am, type ReceiveOptions as an, type ReceiveRequest as ao, type RecoveryResult as ap, type RegisteredAsset as aq, type RfqAuctionPolicy as ar, type RfqPreparation as as, type RfqQuoteInput as at, type RfqRendezvous as au, type RfqTransportFactory as av, type RouteSide as aw, SWAP_ERROR_NAMES as ax, type SwapClient as ay, type SwapClientConfig as az, type CorridorSet as b, isAddressable as b0, isCardMarket as b1, isIndexedNetwork as b2, isSwapError as b3, isUsableCard as b4, liveArkadeInfo as b5, marketBackendOf as b6, marketKeyOf as b7, marketOf as b8, marketRefOf as b9, nostrTransportFactory as ba, parseRfqQuote as bb, pay as bc, quoteFromFeed as bd, quoteViaRfq as be, readableRecord as bf, receive as bg, resolveCorridorBase as bh, resolveCorridorDeps as bi, rfqLeg as bj, rfqPairFor as bk, swapRecordOf as bl, toDiscoveryLeg as bm, unsignedPsbtBytes as bn, usableMarkets as bo, verifyJointGraph as bp, verifyOfferFillPlan as bq, verifyPlanLegs as br, withCanonicalAmount as bs, type DiscoveryLeg as c, type DiscoverySnapshot as d, AcceptConflict as e, type AcceptInput as f, type AcceptOptions as g, AmbiguousDestination as h, AmountEncodingUnsupported as i, AmountMismatch as j, type AssetRfqPreparation as k, type AttestingRfqTransport as l, CORRIDOR_FACTORIES as m, type CancelInput as n, type CancelOutcome as o, type ClaimedDestination as p, ClientDisposed as q, type CorridorBase as r, type CorridorClaim as s, type CorridorCovenant as t, type CorridorDeadline as u, type CorridorDeps as v, type CorridorDepsByCorridor as w, type CorridorDrive as x, type CorridorLockup as y, type CorridorModule as z };
1676
+ export { type JointGraph as $, type AssetAliasTable as A, type BuildOfferFillPlanOpts as B, type CorridorFactory as C, type DiscoveryIndex as D, type CorridorOverrides as E, type CorridorPass as F, type CorridorRfqPreparation as G, DEFAULT_MAX_REFUND_WINDOW_SECONDS as H, type DiscoveryConfig as I, type DiscoveryIndexInput as J, DiscoverySnapshotUnavailable as K, type LightningCorridorDeps as L, type MarketCandidate as M, type DriveMode as N, type OnchainCorridorDeps as O, type DriveRefusal as P, type ExchangeOptions as Q, FEED_TTL_MS as R, type SwapPolicy as S, type FeeCeiling as T, type FeedFetch as U, type FeedQuoteInput as V, type FillSponsor as W, type FillSponsorFare as X, INDEXED_NETWORKS as Y, InconsistentRoute as Z, InsufficientFunds as _, type ArkadeCorridorDeps as a, feedSpread as a$, type LockupOwner as a0, type Market as a1, type MarketLeg as a2, MaxFeeExceeded as a3, MissingCorridorDep as a4, NotCancellable as a5, OFFER_FILL_OWNERS as a6, OFFER_FILL_TEMPLATE as a7, ONCHAIN_CLAIM_FEE_RATE_SATVB as a8, type ObservationSeam as a9, type SwapDrive as aA, type SwapDriveConfig as aB, SwapDriveRefusedError as aC, type SwapError as aD, type SwapErrorName as aE, type SwapFilter as aF, UnsupportedRoute as aG, type VerbDeps as aH, acceptQuote as aI, attesting as aJ, buildOfferFillPlan as aK, cancelSwap as aL, canonicalAssetId as aM, cardMarketOf as aN, chooseMarket as aO, conflictingFields as aP, corridorSet as aQ, createNostrTransportFactory as aR, createSwapClient as aS, createSwapDrive as aT, deepFreeze as aU, digestJointGraph as aV, discoveryIndex as aW, eligibleMarkets as aX, enforceFeeCeiling as aY, exchange as aZ, feedFetch as a_, type OfferPreparation as aa, type OnchainClaim as ab, type OnchainRefund as ac, OperatorUnreachable as ad, type ParsedRfqQuote as ae, type PayOptions as af, type PayResult as ag, type QuoteCheck as ah, QuoteExpired as ai, type QuotePreparation as aj, QuoteVerificationFailed as ak, REGISTRY_URL as al, type ReceiveArtifact as am, type ReceiveOptions as an, type ReceiveRequest as ao, type RecoveryResult as ap, type RegisteredAsset as aq, type RfqAuctionPolicy as ar, type RfqPreparation as as, type RfqQuoteInput as at, type RfqRendezvous as au, type RfqTransportFactory as av, type RouteSide as aw, SWAP_ERROR_NAMES as ax, type SwapClient as ay, type SwapClientConfig as az, type CorridorSet as b, isAddressable as b0, isCardMarket as b1, isIndexedNetwork as b2, isSwapError as b3, isUsableCard as b4, liveArkadeInfo as b5, liveOperatorInfo as b6, marketBackendOf as b7, marketKeyOf as b8, marketOf as b9, marketRefOf as ba, nostrTransportFactory as bb, parseRfqQuote as bc, pay as bd, quoteFromFeed as be, quoteViaRfq as bf, readableRecord as bg, receive as bh, resolveCorridorBase as bi, resolveCorridorDeps as bj, rfqLeg as bk, rfqPairFor as bl, swapRecordOf as bm, toDiscoveryLeg as bn, unsignedPsbtBytes as bo, usableMarkets as bp, verifyJointGraph as bq, verifyOfferFillPlan as br, verifyPlanLegs as bs, withCanonicalAmount as bt, type DiscoveryLeg as c, type DiscoverySnapshot as d, AcceptConflict as e, type AcceptInput as f, type AcceptOptions as g, AmbiguousDestination as h, AmountEncodingUnsupported as i, AmountMismatch as j, type AssetRfqPreparation as k, type AttestingRfqTransport as l, CORRIDOR_FACTORIES as m, type CancelInput as n, type CancelOutcome as o, type ClaimedDestination as p, ClientDisposed as q, type CorridorBase as r, type CorridorClaim as s, type CorridorCovenant as t, type CorridorDeadline as u, type CorridorDeps as v, type CorridorDepsByCorridor as w, type CorridorDrive as x, type CorridorLockup as y, type CorridorModule as z };