@arkade-os/swap 0.1.8 → 0.1.10

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 (45) hide show
  1. package/dist/advanced.cjs +1125 -554
  2. package/dist/advanced.d.cts +19 -21
  3. package/dist/advanced.d.ts +19 -21
  4. package/dist/advanced.js +40 -34
  5. package/dist/{chunk-ISWLKKSS.js → chunk-2HQZLIVX.js} +106 -39
  6. package/dist/{chunk-5QPJWOCN.js → chunk-6RJVT65W.js} +2 -0
  7. package/dist/chunk-AUJDREZN.js +445 -0
  8. package/dist/{chunk-ZBJGLLYV.js → chunk-FWRDAL73.js} +157 -477
  9. package/dist/{chunk-PDNVKH5L.js → chunk-LCO6AJOS.js} +453 -70
  10. package/dist/index.cjs +1110 -542
  11. package/dist/index.d.cts +5 -6
  12. package/dist/index.d.ts +5 -6
  13. package/dist/index.js +24 -22
  14. package/dist/{lockupContract-DguuT7NK.d.cts → lockupContract-BTTRVwOt.d.cts} +1 -1
  15. package/dist/{lockupContract-BUOsghl1.d.ts → lockupContract-aFarhlxj.d.ts} +1 -1
  16. package/dist/node/index.d.cts +97 -67
  17. package/dist/node/index.d.ts +97 -67
  18. package/dist/nostr.cjs +925 -516
  19. package/dist/nostr.d.cts +1 -1
  20. package/dist/nostr.d.ts +1 -1
  21. package/dist/nostr.js +3 -2
  22. package/dist/{offerFillPlan-_AOLo6kh.d.ts → offerFillPlan-CJC5tnEd.d.ts} +10 -42
  23. package/dist/{offerFillPlan-Bp6-z6dS.d.cts → offerFillPlan-FmyaQoYT.d.cts} +10 -42
  24. package/dist/protocol.cjs +1082 -188
  25. package/dist/protocol.d.cts +42 -23
  26. package/dist/protocol.d.ts +42 -23
  27. package/dist/protocol.js +20 -7
  28. package/dist/repositories/realm/index.d.cts +3 -2
  29. package/dist/repositories/realm/index.d.ts +3 -2
  30. package/dist/repositories/sqlite/index.d.cts +3 -2
  31. package/dist/repositories/sqlite/index.d.ts +3 -2
  32. package/dist/{repository-CkKK0dGO.d.ts → repository-CwwhIAEd.d.cts} +406 -74
  33. package/dist/{repository--pfikw2R.d.cts → repository-DO6QKxBx.d.ts} +406 -74
  34. package/dist/{rfq-IzhOCG02.d.ts → rfq-CYxOyniL.d.ts} +52 -11
  35. package/dist/rfq-contract.cjs +3 -0
  36. package/dist/rfq-contract.d.cts +3 -1
  37. package/dist/rfq-contract.d.ts +3 -1
  38. package/dist/rfq-contract.js +3 -1
  39. package/dist/{rfq-BRpo5uWU.d.cts → rfq-nMGywkqI.d.cts} +52 -11
  40. package/dist/verify-ENO36VPK.js +33 -0
  41. package/dist/{watch-pvTVFp6-.d.cts → watch-DpDSP2tu.d.cts} +4 -3
  42. package/dist/{watch-DDNycuUa.d.ts → watch-_fZSgx_l.d.ts} +4 -3
  43. package/package.json +2 -2
  44. package/dist/offer-BhonWuKR.d.ts +0 -274
  45. package/dist/offer-D_qHpWo2.d.cts +0 -274
@@ -1,14 +1,13 @@
1
- import { A as AssetAliasTable, C as CorridorFactory, a as ArkadeCorridorDeps, L as LightningCorridorDeps, O as OnchainCorridorDeps, b as CorridorSet, D as DiscoveryIndex, S as SwapPolicy, c as DiscoveryLeg, M as MarketCandidate, d as DiscoverySnapshot } from './offerFillPlan-Bp6-z6dS.cjs';
2
- export { e as AcceptConflict, f as AcceptInput, g as AcceptOptions, h as AmbiguousDestination, i as AmountEncodingUnsupported, j as AmountMismatch, k as AssetRfqPreparation, l as AttestingRfqTransport, B as BuildOfferFillPlanOpts, m as CORRIDOR_FACTORIES, n as CancelInput, o as CancelOutcome, p as ClaimedDestination, q as ClientDisposed, r as CorridorBase, s as CorridorClaim, t as CorridorCovenant, u as CorridorDeadline, v as CorridorDeps, w as CorridorDepsByCorridor, x as CorridorDrive, y as CorridorLockup, z as CorridorModule, E as CorridorOverrides, F as CorridorPass, G as CorridorRfqPreparation, H as DEFAULT_MAX_REFUND_WINDOW_SECONDS, I as DiscoveryConfig, J as DiscoveryIndexInput, K as DiscoverySnapshotUnavailable, N as DriveMode, P as DriveRefusal, Q as ExchangeOptions, R as FEED_TTL_MS, T as FeeCeiling, U as FeedFetch, V as FeedQuoteInput, W as FillSponsor, X as FillSponsorFare, Y as INDEXED_NETWORKS, Z as InconsistentRoute, _ as InsufficientFunds, $ as JointGraph, a0 as LockupOwner, a1 as Market, a2 as MarketLeg, a3 as MaxFeeExceeded, a4 as MissingCorridorDep, a5 as NotCancellable, a6 as OFFER_FILL_OWNERS, a7 as OFFER_FILL_TEMPLATE, a8 as ONCHAIN_CLAIM_FEE_RATE_SATVB, a9 as ObservationSeam, aa as OfferPreparation, ab as OnchainClaim, ac as OnchainRefund, ad as OperatorUnreachable, ae as ParsedRfqQuote, af as PayOptions, ag as PayResult, ah as QuoteCheck, ai as QuoteExpired, aj as QuotePreparation, ak as QuoteVerificationFailed, al as REGISTRY_URL, am as ReceiveArtifact, an as ReceiveOptions, ao as ReceiveRequest, ap as RecoveryResult, aq as RegisteredAsset, ar as RfqAuctionPolicy, as as RfqPreparation, at as RfqQuoteInput, au as RfqRendezvous, av as RfqTransportFactory, aw as RouteSide, ax as SWAP_ERROR_NAMES, ay as SwapClient, az as SwapClientConfig, aA as SwapDrive, aB as SwapDriveConfig, aC as SwapDriveRefusedError, aD as SwapError, aE as SwapErrorName, aF as SwapFilter, aG as UnsupportedRoute, aH as VerbDeps, aI as acceptQuote, aJ as attesting, aK as buildOfferFillPlan, aL as cancelSwap, aM as canonicalAssetId, aN as cardMarketOf, aO as chooseMarket, aP as conflictingFields, aQ as corridorSet, aR as createNostrTransportFactory, aS as createSwapClient, aT as createSwapDrive, aU as deepFreeze, aV as digestJointGraph, aW as discoveryIndex, aX as eligibleMarkets, aY as enforceFeeCeiling, aZ as exchange, a_ as feedFetch, a$ as feedSpread, b0 as isAddressable, b1 as isCardMarket, b2 as isIndexedNetwork, b3 as isSwapError, b4 as isUsableCard, b5 as liveArkadeInfo, b6 as liveOperatorInfo, b7 as marketBackendOf, b8 as marketKeyOf, b9 as marketOf, ba as marketRefOf, bb as nostrTransportFactory, bc as parseRfqQuote, bd as pay, be as quoteFromFeed, bf as quoteViaRfq, bg as readableRecord, bh as receive, bi as resolveCorridorBase, bj as resolveCorridorDeps, bk as rfqLeg, bl as rfqPairFor, bm as swapRecordOf, bn as toDiscoveryLeg, bo as unsignedPsbtBytes, bp as usableMarkets, bq as verifyJointGraph, br as verifyOfferFillPlan, bs as verifyPlanLegs, bt as withCanonicalAmount } from './offerFillPlan-Bp6-z6dS.cjs';
1
+ import { A as AssetAliasTable, C as CorridorFactory, a as ArkadeCorridorDeps, L as LightningCorridorDeps, O as OnchainCorridorDeps, b as CorridorSet, D as DiscoveryIndex, S as SwapPolicy, c as DiscoveryLeg, M as MarketCandidate, d as DiscoverySnapshot } from './offerFillPlan-FmyaQoYT.cjs';
2
+ export { e as AcceptConflict, f as AcceptInput, g as AcceptOptions, h as AmbiguousDestination, i as AmountEncodingUnsupported, j as AmountMismatch, k as AssetRfqPreparation, B as BuildOfferFillPlanOpts, l as CORRIDOR_FACTORIES, m as CancelInput, n as CancelOutcome, o as ClaimedDestination, p as ClientDisposed, q as CorridorBase, r as CorridorClaim, s as CorridorCovenant, t as CorridorDeadline, u as CorridorDeps, v as CorridorDepsByCorridor, w as CorridorDrive, x as CorridorLockup, y as CorridorModule, z as CorridorOverrides, E as CorridorPass, F as CorridorRfqPreparation, G as DEFAULT_MAX_REFUND_WINDOW_SECONDS, H as DiscoveryConfig, I as DiscoveryIndexInput, J as DiscoverySnapshotUnavailable, K as DriveMode, N as DriveRefusal, P as ExchangeOptions, Q as FEED_TTL_MS, R as FeeCeiling, T as FeedFetch, U as FeedQuoteInput, V as FillSponsor, W as FillSponsorFare, X as INDEXED_NETWORKS, Y as InconsistentRoute, Z as InsufficientFunds, _ as JointGraph, $ as LockupOwner, a0 as Market, a1 as MarketLeg, a2 as MaxFeeExceeded, a3 as MissingCorridorDep, a4 as NotCancellable, a5 as OFFER_FILL_OWNERS, a6 as OFFER_FILL_TEMPLATE, a7 as ONCHAIN_CLAIM_FEE_RATE_SATVB, a8 as ObservationSeam, a9 as OfferPreparation, aa as OnchainClaim, ab as OnchainRefund, ac as OperatorUnreachable, ad as ParsedRfqQuote, ae as PayOptions, af as PayResult, ag as QuoteCheck, ah as QuoteExpired, ai as QuotePreparation, aj as QuoteVerificationFailed, ak as REGISTRY_URL, al as ReceiveArtifact, am as ReceiveOptions, an as ReceiveRequest, ao as RecoveryResult, ap as RegisteredAsset, aq as RfqAuctionPolicy, ar as RfqPreparation, as as RfqQuoteInput, at as RouteSide, au as SWAP_ERROR_NAMES, av as SwapClient, aw as SwapClientConfig, ax as SwapDrive, ay as SwapDriveConfig, az as SwapDriveRefusedError, aA as SwapError, aB as SwapErrorName, aC as SwapFilter, aD as UnsupportedRoute, aE as VerbDeps, aF as acceptQuote, aG as buildOfferFillPlan, aH as cancelSwap, aI as canonicalAssetId, aJ as cardMarketOf, aK as chooseMarket, aL as conflictingFields, aM as corridorSet, aN as createSwapClient, aO as createSwapDrive, aP as deepFreeze, aQ as digestJointGraph, aR as discoveryIndex, aS as eligibleMarkets, aT as enforceFeeCeiling, aU as exchange, aV as feedFetch, aW as feedSpread, aX as isAddressable, aY as isCardMarket, aZ as isIndexedNetwork, a_ as isSwapError, a$ as isUsableCard, b0 as liveArkadeInfo, b1 as liveOperatorInfo, b2 as marketBackendOf, b3 as marketKeyOf, b4 as marketOf, b5 as marketRefOf, b6 as parseRfqQuote, b7 as pay, b8 as quoteFromFeed, b9 as quoteViaRfq, ba as readableRecord, bb as receive, bc as resolveCorridorBase, bd as resolveCorridorDeps, be as rfqLeg, bf as rfqPairFor, bg as swapRecordOf, bh as toDiscoveryLeg, bi as unsignedPsbtBytes, bj as usableMarkets, bk as verifyJointGraph, bl as verifyOfferFillPlan, bm as verifyPlanLegs, bn as withCanonicalAmount } from './offerFillPlan-FmyaQoYT.cjs';
3
3
  import { DiscoveredMarket, Side } from '@arkade-os/solver-discovery';
4
- import { N as NetworkRef, A as AssetId, C as Corridor, R as Rail, a as RfqSwapRecordStore, b as CorridorSwapRecord, Q as QuoteId, c as AssetSwapStatus, S as SwapRecord, O as OfferSwapRecord, d as AssetSwapRepository, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, h as AssetSwap, L as LockupSpendIndexer, i as RouteResolution, j as ResolvedEndpoint, P as PinnedAmount, I as Instrument, k as Route, l as QuoteInput, m as Pubkey } from './repository--pfikw2R.cjs';
5
- export { n as ACTIVITY_TOKEN, o as ARKADE_ASSET_NAMESPACE, p as Amount, q as AmountFormatError, r as AmountOn, s as AmountRefusal, t as ArkadeCarrierChoice, u as Artifact, v as AssetIdError, w as AssetIdRefusal, x as AssetNamespace, y as AssetOn, z as AssetPart, B as AssetPaymentInput, D as AssetPaymentTerms, E as AssetRef, F as AssetScale, G as AssetSwapId, H as AtomicDecimal, J as AuctionMarketRef, K as AuctionProvenance, M as BITCOIN_RAILS, T as BTC_ASSET_PART, U as BitcoinRail, V as CORRIDORS, W as CORRIDOR_PASS, X as CardMarketRef, Y as CorridorId, Z as CorridorKind, _ as DepositArtifact, $ as DisplayDecimal, a0 as Endpoint, a1 as Ep, a2 as Hex, a3 as LOCKUP_OWNER, a4 as MarketBackend, a5 as MarketRef, a6 as OFFER_SWAP_ID_PREFIX, a7 as Outcome, a8 as ParsedAssetId, a9 as Quote, aa as QuoteLeg, ab as RAILS, ac as RFQ_SWAP_ID_PREFIX, ad as RailOf, ae as RankedBid, af as RawState, ag as ReceiverPaidCarrierQuote, ah as RecordedArtifact, ai as RecordedAssetPayment, aj as RecordedEndpoint, ak as RecordedInstrument, al as RecordedLeg, am as RestoredMarketRef, an as RfqAmountSide, ao as SnapshotRef, ap as Swap, aq as SwapFamily, ar as SwapRecordCommon, as as SwapUpdate, at as TaxiIdentity, au as Unsubscribe, av as VerifiedCarrierTerms, aw as arkadeAsset, ax as artifactOf, ay as assetPartOf, az as assetSwapIdOf, aA as bitcoinNetworkOf, aB as btcAssetPart, aC as btcOn, aD as corridorOfRail, aE as corridorOutcome, aF as decodeRfqAmount, aG as encodeRfqAmount, aH as familyOfSwapId, aI as formatAssetId, aJ as fromAtomicDecimal, aK as fromRfqAmountSide, aL as fundingWasNotSubmitted, aM as fundsFromWallet, aN as instrumentOf, aO as isAssetId, aP as isAtomicDecimal, aQ as isBtcAsset, aR as isBtcAssetLenient, aS as isNetworkRef, aT as issuanceOf, aU as legOf, aV as offerOutcome, aW as parseAssetId, aX as quoteIdOfSwapId, aY as railOf, aZ as railOfCorridor, a_ as readsChain, a$ as recordArtifact, b0 as recordEndpoint, b1 as recordInstrument, b2 as recordLeg, b3 as recordOutcome, b4 as sameAsset, b5 as swapOf, b6 as toAtomicDecimal, b7 as toRfqAmountSide, b8 as toSafeNumber } from './repository--pfikw2R.cjs';
6
- import { I as InvoiceFacts, C as ChainSource, R as RfqQuote } from './rfq-BRpo5uWU.cjs';
7
- export { S as SwapRefusal } from './rfq-BRpo5uWU.cjs';
4
+ import { N as NetworkRef, A as AssetId, C as Corridor, R as Rail, a as RfqSwapRecordStore, b as CorridorSwapRecord, Q as QuoteId, c as AssetSwapStatus, S as SwapRecord, O as OfferSwapRecord, d as AssetSwapRepository, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, h as AssetSwap, L as LockupSpendIndexer, i as RouteResolution, j as ResolvedEndpoint, P as PinnedAmount, I as Instrument, k as Route, l as QuoteInput } from './repository-CwwhIAEd.cjs';
5
+ export { m as ACTIVITY_TOKEN, n as ARKADE_ASSET_NAMESPACE, o as Amount, p as AmountFormatError, q as AmountOn, r as AmountRefusal, s as ArkadeCarrierChoice, t as Artifact, u as AssetIdError, v as AssetIdRefusal, w as AssetNamespace, x as AssetOn, y as AssetPart, z as AssetPaymentInput, B as AssetPaymentTerms, D as AssetRef, E as AssetScale, F as AssetSwapId, G as AtomicDecimal, H as AuctionMarketRef, J as AuctionProvenance, K as BITCOIN_RAILS, M as BTC_ASSET_PART, T as BitcoinRail, U as CORRIDORS, V as CORRIDOR_PASS, W as CardMarketRef, X as CorridorId, Y as CorridorKind, Z as DepositArtifact, _ as DisplayDecimal, $ as Endpoint, a0 as Ep, a1 as LOCKUP_OWNER, a2 as MarketBackend, a3 as MarketRef, a4 as OFFER_SWAP_ID_PREFIX, a5 as Outcome, a6 as ParsedAssetId, a7 as Quote, a8 as QuoteLeg, a9 as RAILS, aa as RFQ_SWAP_ID_PREFIX, ab as RailOf, ac as RankedBid, ad as RawState, ae as ReceiverPaidCarrierQuote, af as RecordedArtifact, ag as RecordedAssetPayment, ah as RecordedEndpoint, ai as RecordedInstrument, aj as RecordedLeg, ak as RestoredMarketRef, al as RfqAmountSide, am as SnapshotRef, an as Swap, ao as SwapFamily, ap as SwapRecordCommon, aq as SwapUpdate, ar as TaxiIdentity, as as Unsubscribe, at as VerifiedCarrierTerms, au as arkadeAsset, av as artifactOf, aw as assetPartOf, ax as assetSwapIdOf, ay as bitcoinNetworkOf, az as btcAssetPart, aA as btcOn, aB as corridorOfRail, aC as corridorOutcome, aD as decodeRfqAmount, aE as encodeRfqAmount, aF as familyOfSwapId, aG as formatAssetId, aH as fromAtomicDecimal, aI as fromRfqAmountSide, aJ as fundingWasNotSubmitted, aK as fundsFromWallet, aL as instrumentOf, aM as isAssetId, aN as isAtomicDecimal, aO as isBtcAsset, aP as isBtcAssetLenient, aQ as isNetworkRef, aR as issuanceOf, aS as legOf, aT as offerOutcome, aU as parseAssetId, aV as quoteIdOfSwapId, aW as railOf, aX as railOfCorridor, aY as readsChain, aZ as recordArtifact, a_ as recordEndpoint, a$ as recordInstrument, b0 as recordLeg, b1 as recordOutcome, b2 as sameAsset, b3 as swapOf, b4 as toAtomicDecimal, b5 as toRfqAmountSide, b6 as toSafeNumber } from './repository-CwwhIAEd.cjs';
6
+ import { I as InvoiceFacts, C as ChainSource, R as RfqQuote, P as Pubkey } from './rfq-nMGywkqI.cjs';
7
+ export { A as AttestingRfqTransport, H as Hex, a as RfqRendezvous, b as RfqTransportFactory, S as SwapRefusal, c as attesting, d as createNostrTransportFactory, n as nostrTransportFactory } from './rfq-nMGywkqI.cjs';
8
8
  import * as btc from '@scure/btc-signer';
9
9
  import { OnchainProvider, NetworkName, PageRequest, PageResult, IWallet, VHTLC } from '@arkade-os/sdk';
10
- import { O as OfferSpendChanges, a as OfferSwapFacts, b as OfferSwapSource } from './watch-pvTVFp6-.cjs';
11
- import './offer-D_qHpWo2.cjs';
10
+ import { O as OfferSpendChanges, a as OfferSwapFacts, b as OfferSwapSource } from './watch-DpDSP2tu.cjs';
12
11
  import './rfq-contract.cjs';
13
12
  import 'nostr-tools';
14
13
 
@@ -383,6 +382,8 @@ declare const fateMoved: (record: OfferSwapRecord, fate: DepositFate) => boolean
383
382
  * deadline, hence `market.kind: "restored"` and a zero fee.
384
383
  */
385
384
  declare const restoredOfferRecord: (swap: AssetSwap, network: NetworkRef, now: number) => OfferSwapRecord;
385
+ /** A funded record as the restore scan's `reopen` reads it: its deposit and covenant, re-asked. */
386
+ declare const reopenedDeposit: (record: OfferSwapRecord, fundingTxid: string) => AssetSwap;
386
387
  /**
387
388
  * A corridor record for a v1 `rfqSwaps` row. v1 kept one display `amount` and no quote, invoice or
388
389
  * solver key, so both legs carry that amount, the fee is zero, Lightning legs stand in as
@@ -459,18 +460,6 @@ declare const resolveRoute: (input: QuoteInput, deps: ResolveDeps) => Promise<Re
459
460
  /** A `number` of sats from atomic units, or {@link AmountEncodingUnsupported}. */
460
461
  declare const satsOf: (value: bigint, field: string) => number;
461
462
 
462
- /**
463
- * Quote verification as one invariant: every check runs once, on both backends, before any quote
464
- * is returned, and every failure is one error class naming the check.
465
- *
466
- * The gates themselves stay `rfq.ts`'s (audited, and carrying the covenant-mirroring timing
467
- * constants); this only maps a gate's stable `reason` to a {@link QuoteCheck}.
468
- *
469
- * Two failures are deliberately NOT verification failures: a solver declining is `SwapRefusal`,
470
- * and an expired or expiring quote is `QuoteExpired` (the remedy is a fresh quote, not a
471
- * different solver).
472
- */
473
-
474
463
  /**
475
464
  * The fifth check: who answered.
476
465
  *
@@ -488,6 +477,15 @@ declare const verifyResponder: (input: {
488
477
  /** Whether `expected` came from a source that can be trusted to name it. */
489
478
  readonly pinnable: boolean;
490
479
  }) => void;
480
+ /**
481
+ * A directed covenant binds `solver_pubkey` into `fulfill`, so it must be the key the transport
482
+ * proved answered: a key nobody behind this quote holds would strand the deposit until cancelled.
483
+ * Folded into the `responder` check. Returns the key, decoded.
484
+ */
485
+ declare const verifyTaker: (input: {
486
+ readonly attested?: Pubkey;
487
+ readonly solverPubkey: unknown;
488
+ }) => Uint8Array;
491
489
  /**
492
490
  * The pair check, run here as well as in the transport's `expectQuote`, so a transport that skips
493
491
  * it (or one a caller injected) cannot make the quote path skip it too.
@@ -700,4 +698,4 @@ declare function revealClaimPacket(client: CovclaimdClient, input: {
700
698
  ciphertext: string;
701
699
  }>;
702
700
 
703
- export { type AddressParams, ArkadeCorridorDeps, AssetAliasTable, AssetId, type ChainSourceBackend, Corridor, CorridorFactory, type CorridorRecordStore, CorridorSet, CorridorSwapRecord, type CovclaimdClient, type CovclaimdInfo, CovclaimdRevealError, DEFAULT_INVOICE_EXPIRY_SECONDS, type DepositFate, DiscoveryIndex, DiscoveryLeg, DiscoverySnapshot, EVM_CHAIN, type EvmReceiveQuote, type EvmReceiveQuoteProfile, type EvmRfqQuote, type EvmSendQuote, type EvmSendQuoteProfile, INVOICE_HRPS, Instrument, type L1Tip, LIGHTNING_DRIVE, LightningCorridorDeps, MarketCandidate, NetworkRef, ONCHAIN_DRIVE, OfferSwapRecord, OnchainCorridorDeps, PinnedAmount, Pubkey, QuoteId, QuoteInput, Rail, type RecordSink, type ResolveDeps, ResolvedEndpoint, type ResolvedRoute, type RevealParams, Route, RouteResolution, SwapPolicy, SwapRecord, aliasTableFrom, applyOfferSpend, arkadeCorridor, assembleRoute, cardLegAssetId, chainSourceOver, corridorRecordStore, covclaimdClient, decodeBolt11, esploraChainSource, esploraTip, evmAmountFromWire, evmAmountToWire, evmDirectionOf, evmQuoteSats, evmQuoteTokenAmount, evmReceivePair, evmReceiveRequest, evmSendPair, evmSendRequest, evmTokenLeg, evmTokenOf, fateMoved, lightningCorridor, networksOfInvoiceHrp, offerFactsOf, offerRecordSource, onchainCorridor, pageRfqRecords, publicAssetId, readEvmReceiveQuote, readEvmSendQuote, resolveRoute, restoredCorridorRecord, restoredOfferRecord, revealClaimPacket, revealFieldsFromScript, rfqRecordOf, satsOf, scopedToRail, splitRecords, verifiedCarrierSats, verifyCrossAssetAmount, verifyPair, verifyQuoteTtl, verifyQuotedAmount, verifyReceiveInvoiceFacts, verifyReceiveWindow, verifyRefundWindow, verifyResponder, verifySendInvoice, verifySendWindow, verifyingDerivation, walletLockupIndexer, withDepositFate, withRfqState };
701
+ export { type AddressParams, ArkadeCorridorDeps, AssetAliasTable, AssetId, type ChainSourceBackend, Corridor, CorridorFactory, type CorridorRecordStore, CorridorSet, CorridorSwapRecord, type CovclaimdClient, type CovclaimdInfo, CovclaimdRevealError, DEFAULT_INVOICE_EXPIRY_SECONDS, type DepositFate, DiscoveryIndex, DiscoveryLeg, DiscoverySnapshot, EVM_CHAIN, type EvmReceiveQuote, type EvmReceiveQuoteProfile, type EvmRfqQuote, type EvmSendQuote, type EvmSendQuoteProfile, INVOICE_HRPS, Instrument, type L1Tip, LIGHTNING_DRIVE, LightningCorridorDeps, MarketCandidate, NetworkRef, ONCHAIN_DRIVE, OfferSwapRecord, OnchainCorridorDeps, PinnedAmount, Pubkey, QuoteId, QuoteInput, Rail, type RecordSink, type ResolveDeps, ResolvedEndpoint, type ResolvedRoute, type RevealParams, Route, RouteResolution, SwapPolicy, SwapRecord, aliasTableFrom, applyOfferSpend, arkadeCorridor, assembleRoute, cardLegAssetId, chainSourceOver, corridorRecordStore, covclaimdClient, decodeBolt11, esploraChainSource, esploraTip, evmAmountFromWire, evmAmountToWire, evmDirectionOf, evmQuoteSats, evmQuoteTokenAmount, evmReceivePair, evmReceiveRequest, evmSendPair, evmSendRequest, evmTokenLeg, evmTokenOf, fateMoved, lightningCorridor, networksOfInvoiceHrp, offerFactsOf, offerRecordSource, onchainCorridor, pageRfqRecords, publicAssetId, readEvmReceiveQuote, readEvmSendQuote, reopenedDeposit, resolveRoute, restoredCorridorRecord, restoredOfferRecord, revealClaimPacket, revealFieldsFromScript, rfqRecordOf, satsOf, scopedToRail, splitRecords, verifiedCarrierSats, verifyCrossAssetAmount, verifyPair, verifyQuoteTtl, verifyQuotedAmount, verifyReceiveInvoiceFacts, verifyReceiveWindow, verifyRefundWindow, verifyResponder, verifySendInvoice, verifySendWindow, verifyTaker, verifyingDerivation, walletLockupIndexer, withDepositFate, withRfqState };
@@ -1,14 +1,13 @@
1
- import { A as AssetAliasTable, C as CorridorFactory, a as ArkadeCorridorDeps, L as LightningCorridorDeps, O as OnchainCorridorDeps, b as CorridorSet, D as DiscoveryIndex, S as SwapPolicy, c as DiscoveryLeg, M as MarketCandidate, d as DiscoverySnapshot } from './offerFillPlan-_AOLo6kh.js';
2
- export { e as AcceptConflict, f as AcceptInput, g as AcceptOptions, h as AmbiguousDestination, i as AmountEncodingUnsupported, j as AmountMismatch, k as AssetRfqPreparation, l as AttestingRfqTransport, B as BuildOfferFillPlanOpts, m as CORRIDOR_FACTORIES, n as CancelInput, o as CancelOutcome, p as ClaimedDestination, q as ClientDisposed, r as CorridorBase, s as CorridorClaim, t as CorridorCovenant, u as CorridorDeadline, v as CorridorDeps, w as CorridorDepsByCorridor, x as CorridorDrive, y as CorridorLockup, z as CorridorModule, E as CorridorOverrides, F as CorridorPass, G as CorridorRfqPreparation, H as DEFAULT_MAX_REFUND_WINDOW_SECONDS, I as DiscoveryConfig, J as DiscoveryIndexInput, K as DiscoverySnapshotUnavailable, N as DriveMode, P as DriveRefusal, Q as ExchangeOptions, R as FEED_TTL_MS, T as FeeCeiling, U as FeedFetch, V as FeedQuoteInput, W as FillSponsor, X as FillSponsorFare, Y as INDEXED_NETWORKS, Z as InconsistentRoute, _ as InsufficientFunds, $ as JointGraph, a0 as LockupOwner, a1 as Market, a2 as MarketLeg, a3 as MaxFeeExceeded, a4 as MissingCorridorDep, a5 as NotCancellable, a6 as OFFER_FILL_OWNERS, a7 as OFFER_FILL_TEMPLATE, a8 as ONCHAIN_CLAIM_FEE_RATE_SATVB, a9 as ObservationSeam, aa as OfferPreparation, ab as OnchainClaim, ac as OnchainRefund, ad as OperatorUnreachable, ae as ParsedRfqQuote, af as PayOptions, ag as PayResult, ah as QuoteCheck, ai as QuoteExpired, aj as QuotePreparation, ak as QuoteVerificationFailed, al as REGISTRY_URL, am as ReceiveArtifact, an as ReceiveOptions, ao as ReceiveRequest, ap as RecoveryResult, aq as RegisteredAsset, ar as RfqAuctionPolicy, as as RfqPreparation, at as RfqQuoteInput, au as RfqRendezvous, av as RfqTransportFactory, aw as RouteSide, ax as SWAP_ERROR_NAMES, ay as SwapClient, az as SwapClientConfig, aA as SwapDrive, aB as SwapDriveConfig, aC as SwapDriveRefusedError, aD as SwapError, aE as SwapErrorName, aF as SwapFilter, aG as UnsupportedRoute, aH as VerbDeps, aI as acceptQuote, aJ as attesting, aK as buildOfferFillPlan, aL as cancelSwap, aM as canonicalAssetId, aN as cardMarketOf, aO as chooseMarket, aP as conflictingFields, aQ as corridorSet, aR as createNostrTransportFactory, aS as createSwapClient, aT as createSwapDrive, aU as deepFreeze, aV as digestJointGraph, aW as discoveryIndex, aX as eligibleMarkets, aY as enforceFeeCeiling, aZ as exchange, a_ as feedFetch, a$ as feedSpread, b0 as isAddressable, b1 as isCardMarket, b2 as isIndexedNetwork, b3 as isSwapError, b4 as isUsableCard, b5 as liveArkadeInfo, b6 as liveOperatorInfo, b7 as marketBackendOf, b8 as marketKeyOf, b9 as marketOf, ba as marketRefOf, bb as nostrTransportFactory, bc as parseRfqQuote, bd as pay, be as quoteFromFeed, bf as quoteViaRfq, bg as readableRecord, bh as receive, bi as resolveCorridorBase, bj as resolveCorridorDeps, bk as rfqLeg, bl as rfqPairFor, bm as swapRecordOf, bn as toDiscoveryLeg, bo as unsignedPsbtBytes, bp as usableMarkets, bq as verifyJointGraph, br as verifyOfferFillPlan, bs as verifyPlanLegs, bt as withCanonicalAmount } from './offerFillPlan-_AOLo6kh.js';
1
+ import { A as AssetAliasTable, C as CorridorFactory, a as ArkadeCorridorDeps, L as LightningCorridorDeps, O as OnchainCorridorDeps, b as CorridorSet, D as DiscoveryIndex, S as SwapPolicy, c as DiscoveryLeg, M as MarketCandidate, d as DiscoverySnapshot } from './offerFillPlan-CJC5tnEd.js';
2
+ export { e as AcceptConflict, f as AcceptInput, g as AcceptOptions, h as AmbiguousDestination, i as AmountEncodingUnsupported, j as AmountMismatch, k as AssetRfqPreparation, B as BuildOfferFillPlanOpts, l as CORRIDOR_FACTORIES, m as CancelInput, n as CancelOutcome, o as ClaimedDestination, p as ClientDisposed, q as CorridorBase, r as CorridorClaim, s as CorridorCovenant, t as CorridorDeadline, u as CorridorDeps, v as CorridorDepsByCorridor, w as CorridorDrive, x as CorridorLockup, y as CorridorModule, z as CorridorOverrides, E as CorridorPass, F as CorridorRfqPreparation, G as DEFAULT_MAX_REFUND_WINDOW_SECONDS, H as DiscoveryConfig, I as DiscoveryIndexInput, J as DiscoverySnapshotUnavailable, K as DriveMode, N as DriveRefusal, P as ExchangeOptions, Q as FEED_TTL_MS, R as FeeCeiling, T as FeedFetch, U as FeedQuoteInput, V as FillSponsor, W as FillSponsorFare, X as INDEXED_NETWORKS, Y as InconsistentRoute, Z as InsufficientFunds, _ as JointGraph, $ as LockupOwner, a0 as Market, a1 as MarketLeg, a2 as MaxFeeExceeded, a3 as MissingCorridorDep, a4 as NotCancellable, a5 as OFFER_FILL_OWNERS, a6 as OFFER_FILL_TEMPLATE, a7 as ONCHAIN_CLAIM_FEE_RATE_SATVB, a8 as ObservationSeam, a9 as OfferPreparation, aa as OnchainClaim, ab as OnchainRefund, ac as OperatorUnreachable, ad as ParsedRfqQuote, ae as PayOptions, af as PayResult, ag as QuoteCheck, ah as QuoteExpired, ai as QuotePreparation, aj as QuoteVerificationFailed, ak as REGISTRY_URL, al as ReceiveArtifact, am as ReceiveOptions, an as ReceiveRequest, ao as RecoveryResult, ap as RegisteredAsset, aq as RfqAuctionPolicy, ar as RfqPreparation, as as RfqQuoteInput, at as RouteSide, au as SWAP_ERROR_NAMES, av as SwapClient, aw as SwapClientConfig, ax as SwapDrive, ay as SwapDriveConfig, az as SwapDriveRefusedError, aA as SwapError, aB as SwapErrorName, aC as SwapFilter, aD as UnsupportedRoute, aE as VerbDeps, aF as acceptQuote, aG as buildOfferFillPlan, aH as cancelSwap, aI as canonicalAssetId, aJ as cardMarketOf, aK as chooseMarket, aL as conflictingFields, aM as corridorSet, aN as createSwapClient, aO as createSwapDrive, aP as deepFreeze, aQ as digestJointGraph, aR as discoveryIndex, aS as eligibleMarkets, aT as enforceFeeCeiling, aU as exchange, aV as feedFetch, aW as feedSpread, aX as isAddressable, aY as isCardMarket, aZ as isIndexedNetwork, a_ as isSwapError, a$ as isUsableCard, b0 as liveArkadeInfo, b1 as liveOperatorInfo, b2 as marketBackendOf, b3 as marketKeyOf, b4 as marketOf, b5 as marketRefOf, b6 as parseRfqQuote, b7 as pay, b8 as quoteFromFeed, b9 as quoteViaRfq, ba as readableRecord, bb as receive, bc as resolveCorridorBase, bd as resolveCorridorDeps, be as rfqLeg, bf as rfqPairFor, bg as swapRecordOf, bh as toDiscoveryLeg, bi as unsignedPsbtBytes, bj as usableMarkets, bk as verifyJointGraph, bl as verifyOfferFillPlan, bm as verifyPlanLegs, bn as withCanonicalAmount } from './offerFillPlan-CJC5tnEd.js';
3
3
  import { DiscoveredMarket, Side } from '@arkade-os/solver-discovery';
4
- import { N as NetworkRef, A as AssetId, C as Corridor, R as Rail, a as RfqSwapRecordStore, b as CorridorSwapRecord, Q as QuoteId, c as AssetSwapStatus, S as SwapRecord, O as OfferSwapRecord, d as AssetSwapRepository, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, h as AssetSwap, L as LockupSpendIndexer, i as RouteResolution, j as ResolvedEndpoint, P as PinnedAmount, I as Instrument, k as Route, l as QuoteInput, m as Pubkey } from './repository-CkKK0dGO.js';
5
- export { n as ACTIVITY_TOKEN, o as ARKADE_ASSET_NAMESPACE, p as Amount, q as AmountFormatError, r as AmountOn, s as AmountRefusal, t as ArkadeCarrierChoice, u as Artifact, v as AssetIdError, w as AssetIdRefusal, x as AssetNamespace, y as AssetOn, z as AssetPart, B as AssetPaymentInput, D as AssetPaymentTerms, E as AssetRef, F as AssetScale, G as AssetSwapId, H as AtomicDecimal, J as AuctionMarketRef, K as AuctionProvenance, M as BITCOIN_RAILS, T as BTC_ASSET_PART, U as BitcoinRail, V as CORRIDORS, W as CORRIDOR_PASS, X as CardMarketRef, Y as CorridorId, Z as CorridorKind, _ as DepositArtifact, $ as DisplayDecimal, a0 as Endpoint, a1 as Ep, a2 as Hex, a3 as LOCKUP_OWNER, a4 as MarketBackend, a5 as MarketRef, a6 as OFFER_SWAP_ID_PREFIX, a7 as Outcome, a8 as ParsedAssetId, a9 as Quote, aa as QuoteLeg, ab as RAILS, ac as RFQ_SWAP_ID_PREFIX, ad as RailOf, ae as RankedBid, af as RawState, ag as ReceiverPaidCarrierQuote, ah as RecordedArtifact, ai as RecordedAssetPayment, aj as RecordedEndpoint, ak as RecordedInstrument, al as RecordedLeg, am as RestoredMarketRef, an as RfqAmountSide, ao as SnapshotRef, ap as Swap, aq as SwapFamily, ar as SwapRecordCommon, as as SwapUpdate, at as TaxiIdentity, au as Unsubscribe, av as VerifiedCarrierTerms, aw as arkadeAsset, ax as artifactOf, ay as assetPartOf, az as assetSwapIdOf, aA as bitcoinNetworkOf, aB as btcAssetPart, aC as btcOn, aD as corridorOfRail, aE as corridorOutcome, aF as decodeRfqAmount, aG as encodeRfqAmount, aH as familyOfSwapId, aI as formatAssetId, aJ as fromAtomicDecimal, aK as fromRfqAmountSide, aL as fundingWasNotSubmitted, aM as fundsFromWallet, aN as instrumentOf, aO as isAssetId, aP as isAtomicDecimal, aQ as isBtcAsset, aR as isBtcAssetLenient, aS as isNetworkRef, aT as issuanceOf, aU as legOf, aV as offerOutcome, aW as parseAssetId, aX as quoteIdOfSwapId, aY as railOf, aZ as railOfCorridor, a_ as readsChain, a$ as recordArtifact, b0 as recordEndpoint, b1 as recordInstrument, b2 as recordLeg, b3 as recordOutcome, b4 as sameAsset, b5 as swapOf, b6 as toAtomicDecimal, b7 as toRfqAmountSide, b8 as toSafeNumber } from './repository-CkKK0dGO.js';
6
- import { I as InvoiceFacts, C as ChainSource, R as RfqQuote } from './rfq-IzhOCG02.js';
7
- export { S as SwapRefusal } from './rfq-IzhOCG02.js';
4
+ import { N as NetworkRef, A as AssetId, C as Corridor, R as Rail, a as RfqSwapRecordStore, b as CorridorSwapRecord, Q as QuoteId, c as AssetSwapStatus, S as SwapRecord, O as OfferSwapRecord, d as AssetSwapRepository, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, h as AssetSwap, L as LockupSpendIndexer, i as RouteResolution, j as ResolvedEndpoint, P as PinnedAmount, I as Instrument, k as Route, l as QuoteInput } from './repository-DO6QKxBx.js';
5
+ export { m as ACTIVITY_TOKEN, n as ARKADE_ASSET_NAMESPACE, o as Amount, p as AmountFormatError, q as AmountOn, r as AmountRefusal, s as ArkadeCarrierChoice, t as Artifact, u as AssetIdError, v as AssetIdRefusal, w as AssetNamespace, x as AssetOn, y as AssetPart, z as AssetPaymentInput, B as AssetPaymentTerms, D as AssetRef, E as AssetScale, F as AssetSwapId, G as AtomicDecimal, H as AuctionMarketRef, J as AuctionProvenance, K as BITCOIN_RAILS, M as BTC_ASSET_PART, T as BitcoinRail, U as CORRIDORS, V as CORRIDOR_PASS, W as CardMarketRef, X as CorridorId, Y as CorridorKind, Z as DepositArtifact, _ as DisplayDecimal, $ as Endpoint, a0 as Ep, a1 as LOCKUP_OWNER, a2 as MarketBackend, a3 as MarketRef, a4 as OFFER_SWAP_ID_PREFIX, a5 as Outcome, a6 as ParsedAssetId, a7 as Quote, a8 as QuoteLeg, a9 as RAILS, aa as RFQ_SWAP_ID_PREFIX, ab as RailOf, ac as RankedBid, ad as RawState, ae as ReceiverPaidCarrierQuote, af as RecordedArtifact, ag as RecordedAssetPayment, ah as RecordedEndpoint, ai as RecordedInstrument, aj as RecordedLeg, ak as RestoredMarketRef, al as RfqAmountSide, am as SnapshotRef, an as Swap, ao as SwapFamily, ap as SwapRecordCommon, aq as SwapUpdate, ar as TaxiIdentity, as as Unsubscribe, at as VerifiedCarrierTerms, au as arkadeAsset, av as artifactOf, aw as assetPartOf, ax as assetSwapIdOf, ay as bitcoinNetworkOf, az as btcAssetPart, aA as btcOn, aB as corridorOfRail, aC as corridorOutcome, aD as decodeRfqAmount, aE as encodeRfqAmount, aF as familyOfSwapId, aG as formatAssetId, aH as fromAtomicDecimal, aI as fromRfqAmountSide, aJ as fundingWasNotSubmitted, aK as fundsFromWallet, aL as instrumentOf, aM as isAssetId, aN as isAtomicDecimal, aO as isBtcAsset, aP as isBtcAssetLenient, aQ as isNetworkRef, aR as issuanceOf, aS as legOf, aT as offerOutcome, aU as parseAssetId, aV as quoteIdOfSwapId, aW as railOf, aX as railOfCorridor, aY as readsChain, aZ as recordArtifact, a_ as recordEndpoint, a$ as recordInstrument, b0 as recordLeg, b1 as recordOutcome, b2 as sameAsset, b3 as swapOf, b4 as toAtomicDecimal, b5 as toRfqAmountSide, b6 as toSafeNumber } from './repository-DO6QKxBx.js';
6
+ import { I as InvoiceFacts, C as ChainSource, R as RfqQuote, P as Pubkey } from './rfq-CYxOyniL.js';
7
+ export { A as AttestingRfqTransport, H as Hex, a as RfqRendezvous, b as RfqTransportFactory, S as SwapRefusal, c as attesting, d as createNostrTransportFactory, n as nostrTransportFactory } from './rfq-CYxOyniL.js';
8
8
  import * as btc from '@scure/btc-signer';
9
9
  import { OnchainProvider, NetworkName, PageRequest, PageResult, IWallet, VHTLC } from '@arkade-os/sdk';
10
- import { O as OfferSpendChanges, a as OfferSwapFacts, b as OfferSwapSource } from './watch-DDNycuUa.js';
11
- import './offer-BhonWuKR.js';
10
+ import { O as OfferSpendChanges, a as OfferSwapFacts, b as OfferSwapSource } from './watch-_fZSgx_l.js';
12
11
  import './rfq-contract.js';
13
12
  import 'nostr-tools';
14
13
 
@@ -383,6 +382,8 @@ declare const fateMoved: (record: OfferSwapRecord, fate: DepositFate) => boolean
383
382
  * deadline, hence `market.kind: "restored"` and a zero fee.
384
383
  */
385
384
  declare const restoredOfferRecord: (swap: AssetSwap, network: NetworkRef, now: number) => OfferSwapRecord;
385
+ /** A funded record as the restore scan's `reopen` reads it: its deposit and covenant, re-asked. */
386
+ declare const reopenedDeposit: (record: OfferSwapRecord, fundingTxid: string) => AssetSwap;
386
387
  /**
387
388
  * A corridor record for a v1 `rfqSwaps` row. v1 kept one display `amount` and no quote, invoice or
388
389
  * solver key, so both legs carry that amount, the fee is zero, Lightning legs stand in as
@@ -459,18 +460,6 @@ declare const resolveRoute: (input: QuoteInput, deps: ResolveDeps) => Promise<Re
459
460
  /** A `number` of sats from atomic units, or {@link AmountEncodingUnsupported}. */
460
461
  declare const satsOf: (value: bigint, field: string) => number;
461
462
 
462
- /**
463
- * Quote verification as one invariant: every check runs once, on both backends, before any quote
464
- * is returned, and every failure is one error class naming the check.
465
- *
466
- * The gates themselves stay `rfq.ts`'s (audited, and carrying the covenant-mirroring timing
467
- * constants); this only maps a gate's stable `reason` to a {@link QuoteCheck}.
468
- *
469
- * Two failures are deliberately NOT verification failures: a solver declining is `SwapRefusal`,
470
- * and an expired or expiring quote is `QuoteExpired` (the remedy is a fresh quote, not a
471
- * different solver).
472
- */
473
-
474
463
  /**
475
464
  * The fifth check: who answered.
476
465
  *
@@ -488,6 +477,15 @@ declare const verifyResponder: (input: {
488
477
  /** Whether `expected` came from a source that can be trusted to name it. */
489
478
  readonly pinnable: boolean;
490
479
  }) => void;
480
+ /**
481
+ * A directed covenant binds `solver_pubkey` into `fulfill`, so it must be the key the transport
482
+ * proved answered: a key nobody behind this quote holds would strand the deposit until cancelled.
483
+ * Folded into the `responder` check. Returns the key, decoded.
484
+ */
485
+ declare const verifyTaker: (input: {
486
+ readonly attested?: Pubkey;
487
+ readonly solverPubkey: unknown;
488
+ }) => Uint8Array;
491
489
  /**
492
490
  * The pair check, run here as well as in the transport's `expectQuote`, so a transport that skips
493
491
  * it (or one a caller injected) cannot make the quote path skip it too.
@@ -700,4 +698,4 @@ declare function revealClaimPacket(client: CovclaimdClient, input: {
700
698
  ciphertext: string;
701
699
  }>;
702
700
 
703
- export { type AddressParams, ArkadeCorridorDeps, AssetAliasTable, AssetId, type ChainSourceBackend, Corridor, CorridorFactory, type CorridorRecordStore, CorridorSet, CorridorSwapRecord, type CovclaimdClient, type CovclaimdInfo, CovclaimdRevealError, DEFAULT_INVOICE_EXPIRY_SECONDS, type DepositFate, DiscoveryIndex, DiscoveryLeg, DiscoverySnapshot, EVM_CHAIN, type EvmReceiveQuote, type EvmReceiveQuoteProfile, type EvmRfqQuote, type EvmSendQuote, type EvmSendQuoteProfile, INVOICE_HRPS, Instrument, type L1Tip, LIGHTNING_DRIVE, LightningCorridorDeps, MarketCandidate, NetworkRef, ONCHAIN_DRIVE, OfferSwapRecord, OnchainCorridorDeps, PinnedAmount, Pubkey, QuoteId, QuoteInput, Rail, type RecordSink, type ResolveDeps, ResolvedEndpoint, type ResolvedRoute, type RevealParams, Route, RouteResolution, SwapPolicy, SwapRecord, aliasTableFrom, applyOfferSpend, arkadeCorridor, assembleRoute, cardLegAssetId, chainSourceOver, corridorRecordStore, covclaimdClient, decodeBolt11, esploraChainSource, esploraTip, evmAmountFromWire, evmAmountToWire, evmDirectionOf, evmQuoteSats, evmQuoteTokenAmount, evmReceivePair, evmReceiveRequest, evmSendPair, evmSendRequest, evmTokenLeg, evmTokenOf, fateMoved, lightningCorridor, networksOfInvoiceHrp, offerFactsOf, offerRecordSource, onchainCorridor, pageRfqRecords, publicAssetId, readEvmReceiveQuote, readEvmSendQuote, resolveRoute, restoredCorridorRecord, restoredOfferRecord, revealClaimPacket, revealFieldsFromScript, rfqRecordOf, satsOf, scopedToRail, splitRecords, verifiedCarrierSats, verifyCrossAssetAmount, verifyPair, verifyQuoteTtl, verifyQuotedAmount, verifyReceiveInvoiceFacts, verifyReceiveWindow, verifyRefundWindow, verifyResponder, verifySendInvoice, verifySendWindow, verifyingDerivation, walletLockupIndexer, withDepositFate, withRfqState };
701
+ export { type AddressParams, ArkadeCorridorDeps, AssetAliasTable, AssetId, type ChainSourceBackend, Corridor, CorridorFactory, type CorridorRecordStore, CorridorSet, CorridorSwapRecord, type CovclaimdClient, type CovclaimdInfo, CovclaimdRevealError, DEFAULT_INVOICE_EXPIRY_SECONDS, type DepositFate, DiscoveryIndex, DiscoveryLeg, DiscoverySnapshot, EVM_CHAIN, type EvmReceiveQuote, type EvmReceiveQuoteProfile, type EvmRfqQuote, type EvmSendQuote, type EvmSendQuoteProfile, INVOICE_HRPS, Instrument, type L1Tip, LIGHTNING_DRIVE, LightningCorridorDeps, MarketCandidate, NetworkRef, ONCHAIN_DRIVE, OfferSwapRecord, OnchainCorridorDeps, PinnedAmount, Pubkey, QuoteId, QuoteInput, Rail, type RecordSink, type ResolveDeps, ResolvedEndpoint, type ResolvedRoute, type RevealParams, Route, RouteResolution, SwapPolicy, SwapRecord, aliasTableFrom, applyOfferSpend, arkadeCorridor, assembleRoute, cardLegAssetId, chainSourceOver, corridorRecordStore, covclaimdClient, decodeBolt11, esploraChainSource, esploraTip, evmAmountFromWire, evmAmountToWire, evmDirectionOf, evmQuoteSats, evmQuoteTokenAmount, evmReceivePair, evmReceiveRequest, evmSendPair, evmSendRequest, evmTokenLeg, evmTokenOf, fateMoved, lightningCorridor, networksOfInvoiceHrp, offerFactsOf, offerRecordSource, onchainCorridor, pageRfqRecords, publicAssetId, readEvmReceiveQuote, readEvmSendQuote, reopenedDeposit, resolveRoute, restoredCorridorRecord, restoredOfferRecord, revealClaimPacket, revealFieldsFromScript, rfqRecordOf, satsOf, scopedToRail, splitRecords, verifiedCarrierSats, verifyCrossAssetAmount, verifyPair, verifyQuoteTtl, verifyQuotedAmount, verifyReceiveInvoiceFacts, verifyReceiveWindow, verifyRefundWindow, verifyResponder, verifySendInvoice, verifySendWindow, verifyTaker, verifyingDerivation, walletLockupIndexer, withDepositFate, withRfqState };
package/dist/advanced.js CHANGED
@@ -1,36 +1,19 @@
1
1
  import {
2
2
  ARKADE_ASSET_NAMESPACE,
3
- AcceptConflict,
4
- AmbiguousDestination,
5
- AmountEncodingUnsupported,
6
- AmountMismatch,
7
3
  AssetIdError,
8
4
  BITCOIN_RAILS,
9
5
  BTC_ASSET_PART,
10
6
  CORRIDORS,
11
7
  CORRIDOR_FACTORIES,
12
- ClientDisposed,
13
8
  DEFAULT_INVOICE_EXPIRY_SECONDS,
14
- DEFAULT_MAX_REFUND_WINDOW_SECONDS,
15
- DiscoverySnapshotUnavailable,
16
9
  FEED_TTL_MS,
17
10
  INDEXED_NETWORKS,
18
- InconsistentRoute,
19
- InsufficientFunds,
20
- MaxFeeExceeded,
21
- MissingCorridorDep,
22
- NotCancellable,
23
11
  OFFER_FILL_OWNERS,
24
12
  OFFER_FILL_TEMPLATE,
25
13
  ONCHAIN_CLAIM_FEE_RATE_SATVB,
26
- OperatorUnreachable,
27
- QuoteExpired,
28
- QuoteVerificationFailed,
29
14
  RAILS,
30
15
  REGISTRY_URL,
31
- SWAP_ERROR_NAMES,
32
16
  SwapDriveRefusedError,
33
- UnsupportedRoute,
34
17
  acceptQuote,
35
18
  aliasTableFrom,
36
19
  applyOfferSpend,
@@ -79,7 +62,6 @@ import {
79
62
  isCardMarket,
80
63
  isIndexedNetwork,
81
64
  isNetworkRef,
82
- isSwapError,
83
65
  isUsableCard,
84
66
  issuanceOf,
85
67
  liveArkadeInfo,
@@ -102,6 +84,7 @@ import {
102
84
  railOfCorridor,
103
85
  readableRecord,
104
86
  receive,
87
+ reopenedDeposit,
105
88
  resolveCorridorBase,
106
89
  resolveCorridorDeps,
107
90
  resolveRoute,
@@ -120,26 +103,14 @@ import {
120
103
  toSafeNumber,
121
104
  unsignedPsbtBytes,
122
105
  usableMarkets,
123
- verifiedCarrierSats,
124
- verifyCrossAssetAmount,
125
106
  verifyJointGraph,
126
107
  verifyOfferFillPlan,
127
- verifyPair,
128
108
  verifyPlanLegs,
129
- verifyQuoteTtl,
130
- verifyQuotedAmount,
131
- verifyReceiveInvoiceFacts,
132
- verifyReceiveWindow,
133
- verifyRefundWindow,
134
- verifyResponder,
135
- verifySendInvoice,
136
- verifySendWindow,
137
- verifyingDerivation,
138
109
  walletLockupIndexer,
139
110
  withCanonicalAmount,
140
111
  withDepositFate,
141
112
  withRfqState
142
- } from "./chunk-ZBJGLLYV.js";
113
+ } from "./chunk-FWRDAL73.js";
143
114
  import {
144
115
  ACTIVITY_TOKEN,
145
116
  Amount,
@@ -174,7 +145,40 @@ import {
174
145
  recordOutcome,
175
146
  swapOf,
176
147
  toAtomicDecimal
177
- } from "./chunk-ISWLKKSS.js";
148
+ } from "./chunk-2HQZLIVX.js";
149
+ import {
150
+ AcceptConflict,
151
+ AmbiguousDestination,
152
+ AmountEncodingUnsupported,
153
+ AmountMismatch,
154
+ ClientDisposed,
155
+ DEFAULT_MAX_REFUND_WINDOW_SECONDS,
156
+ DiscoverySnapshotUnavailable,
157
+ InconsistentRoute,
158
+ InsufficientFunds,
159
+ MaxFeeExceeded,
160
+ MissingCorridorDep,
161
+ NotCancellable,
162
+ OperatorUnreachable,
163
+ QuoteExpired,
164
+ QuoteVerificationFailed,
165
+ SWAP_ERROR_NAMES,
166
+ UnsupportedRoute,
167
+ isSwapError,
168
+ verifiedCarrierSats,
169
+ verifyCrossAssetAmount,
170
+ verifyPair,
171
+ verifyQuoteTtl,
172
+ verifyQuotedAmount,
173
+ verifyReceiveInvoiceFacts,
174
+ verifyReceiveWindow,
175
+ verifyRefundWindow,
176
+ verifyResponder,
177
+ verifySendInvoice,
178
+ verifySendWindow,
179
+ verifyTaker,
180
+ verifyingDerivation
181
+ } from "./chunk-AUJDREZN.js";
178
182
  import {
179
183
  ARKADE_BTC,
180
184
  SwapRefusal,
@@ -183,8 +187,8 @@ import {
183
187
  bindsClaimAmount,
184
188
  rfqPair,
185
189
  sealClaimPacket
186
- } from "./chunk-PDNVKH5L.js";
187
- import "./chunk-5QPJWOCN.js";
190
+ } from "./chunk-LCO6AJOS.js";
191
+ import "./chunk-6RJVT65W.js";
188
192
  import "./chunk-A3SHHRX4.js";
189
193
 
190
194
  // src/reveal.ts
@@ -703,6 +707,7 @@ export {
703
707
  recordInstrument,
704
708
  recordLeg,
705
709
  recordOutcome,
710
+ reopenedDeposit,
706
711
  resolveCorridorBase,
707
712
  resolveCorridorDeps,
708
713
  resolveRoute,
@@ -739,6 +744,7 @@ export {
739
744
  verifyResponder,
740
745
  verifySendInvoice,
741
746
  verifySendWindow,
747
+ verifyTaker,
742
748
  verifyingDerivation,
743
749
  walletLockupIndexer,
744
750
  withCanonicalAmount,