@arkade-os/swap 0.1.0-rc.28 → 0.1.0-rc.29
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.
- package/dist/advanced.cjs +5 -1
- package/dist/advanced.d.cts +8 -8
- package/dist/advanced.d.ts +8 -8
- package/dist/advanced.js +3 -3
- package/dist/{chunk-4X56MN56.js → chunk-AEYSMVWU.js} +1 -0
- package/dist/{chunk-ZF57EAJQ.js → chunk-E7EF65MO.js} +2 -1
- package/dist/{chunk-DGHBRLCF.js → chunk-PTAJYT2M.js} +7 -3
- package/dist/index.cjs +5 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +3 -3
- package/dist/{lockupContract-CYSMMrv4.d.ts → lockupContract-D7NyiHpE.d.ts} +1 -1
- package/dist/{lockupContract-BE_tSx8i.d.cts → lockupContract-VzLVZPcw.d.cts} +1 -1
- package/dist/nostr.d.cts +1 -1
- package/dist/nostr.d.ts +1 -1
- package/dist/nostr.js +1 -1
- package/dist/{offer-C_rgJU7J.d.cts → offer-CSMhR5sj.d.cts} +1 -1
- package/dist/{offer-Cr7AaLt-.d.ts → offer-CVnYFj7r.d.ts} +1 -1
- package/dist/{offerFillPlan-DFMl7D3Q.d.ts → offerFillPlan-CgvrM3fS.d.ts} +3 -3
- package/dist/{offerFillPlan-B88PzcLr.d.cts → offerFillPlan-qBRemU32.d.cts} +3 -3
- package/dist/protocol.cjs +4 -0
- package/dist/protocol.d.cts +8 -8
- package/dist/protocol.d.ts +8 -8
- package/dist/protocol.js +6 -2
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/{repository-Cs60kDRs.d.cts → repository-DRlPgbU8.d.cts} +8 -2
- package/dist/{repository-CFNZUy2y.d.ts → repository-rbPbJplG.d.ts} +8 -2
- package/dist/{rfq-CRiAHBBH.d.cts → rfq-BJ8SC_Gp.d.cts} +6 -1
- package/dist/{rfq-CRiAHBBH.d.ts → rfq-BJ8SC_Gp.d.ts} +6 -1
- package/dist/{watch-BEgoHfHu.d.cts → watch-CeVD4WnY.d.cts} +1 -1
- package/dist/{watch-C7zGV8zh.d.ts → watch-CrVtt1pC.d.ts} +1 -1
- package/package.json +2 -2
package/dist/advanced.cjs
CHANGED
|
@@ -6023,7 +6023,11 @@ var withDepositFate = (record, fate, now) => ({
|
|
|
6023
6023
|
...fate.completedAt === void 0 ? {} : { completedAt: Math.floor(fate.completedAt / 1e3) },
|
|
6024
6024
|
updatedAt: now
|
|
6025
6025
|
});
|
|
6026
|
-
var
|
|
6026
|
+
var DEPOSIT_SPENT = (status) => status === "cancelled" || status === "fulfilled";
|
|
6027
|
+
var fateMoved = (record, fate) => {
|
|
6028
|
+
if (DEPOSIT_SPENT(record.status) && !DEPOSIT_SPENT(fate.status)) return false;
|
|
6029
|
+
return record.status !== fate.status || fate.spentTxid !== void 0 && record.spentTxid !== fate.spentTxid || fate.completedAt !== void 0 && record.completedAt !== Math.floor(fate.completedAt / 1e3);
|
|
6030
|
+
};
|
|
6027
6031
|
var restoredOfferRecord = (swap, network, now) => {
|
|
6028
6032
|
const give = restoredAssetId(network, swap.fromAsset);
|
|
6029
6033
|
const take = restoredAssetId(network, swap.toAsset);
|
package/dist/advanced.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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-
|
|
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 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 RfqRendezvous, au as RfqTransportFactory, av as RouteSide, aw as SWAP_ERROR_NAMES, ax as SwapClient, ay as SwapClientConfig, az as SwapDrive, aA as SwapDriveConfig, aB as SwapDriveRefusedError, aC as SwapError, aD as SwapErrorName, aE as SwapFilter, aF as UnsupportedRoute, aG as VerbDeps, aH as acceptQuote, aI as attesting, aJ as buildOfferFillPlan, aK as cancelSwap, aL as canonicalAssetId, aM as cardMarketOf, aN as chooseMarket, aO as conflictingFields, aP as corridorSet, aQ as createNostrTransportFactory, aR as createSwapClient, aS as createSwapDrive, aT as deepFreeze, aU as digestJointGraph, aV as discoveryIndex, aW as eligibleMarkets, aX as enforceFeeCeiling, aY as exchange, aZ as feedFetch, a_ as feedSpread, a$ as isAddressable, b0 as isCardMarket, b1 as isIndexedNetwork, b2 as isSwapError, b3 as isUsableCard, b4 as liveArkadeInfo, b5 as marketBackendOf, b6 as marketKeyOf, b7 as marketRefOf, b8 as nostrTransportFactory, b9 as parseRfqQuote, ba as pay, bb as quoteFromFeed, bc as quoteViaRfq, bd as readableRecord, be as receive, bf as resolveCorridorBase, bg as resolveCorridorDeps, bh as rfqLeg, bi as rfqPairFor, bj as swapRecordOf, bk as toDiscoveryLeg, bl as unsignedPsbtBytes, bm as usableMarkets, bn as verifyJointGraph, bo as verifyOfferFillPlan, bp as verifyPlanLegs, bq as withCanonicalAmount } from './offerFillPlan-
|
|
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-qBRemU32.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 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 RfqRendezvous, au as RfqTransportFactory, av as RouteSide, aw as SWAP_ERROR_NAMES, ax as SwapClient, ay as SwapClientConfig, az as SwapDrive, aA as SwapDriveConfig, aB as SwapDriveRefusedError, aC as SwapError, aD as SwapErrorName, aE as SwapFilter, aF as UnsupportedRoute, aG as VerbDeps, aH as acceptQuote, aI as attesting, aJ as buildOfferFillPlan, aK as cancelSwap, aL as canonicalAssetId, aM as cardMarketOf, aN as chooseMarket, aO as conflictingFields, aP as corridorSet, aQ as createNostrTransportFactory, aR as createSwapClient, aS as createSwapDrive, aT as deepFreeze, aU as digestJointGraph, aV as discoveryIndex, aW as eligibleMarkets, aX as enforceFeeCeiling, aY as exchange, aZ as feedFetch, a_ as feedSpread, a$ as isAddressable, b0 as isCardMarket, b1 as isIndexedNetwork, b2 as isSwapError, b3 as isUsableCard, b4 as liveArkadeInfo, b5 as marketBackendOf, b6 as marketKeyOf, b7 as marketRefOf, b8 as nostrTransportFactory, b9 as parseRfqQuote, ba as pay, bb as quoteFromFeed, bc as quoteViaRfq, bd as readableRecord, be as receive, bf as resolveCorridorBase, bg as resolveCorridorDeps, bh as rfqLeg, bi as rfqPairFor, bj as swapRecordOf, bk as toDiscoveryLeg, bl as unsignedPsbtBytes, bm as usableMarkets, bn as verifyJointGraph, bo as verifyOfferFillPlan, bp as verifyPlanLegs, bq as withCanonicalAmount } from './offerFillPlan-qBRemU32.cjs';
|
|
3
3
|
import { DiscoveredMarket } from '@arkade-os/solver-discovery';
|
|
4
|
-
import { N as NetworkRef, C as Corridor, A as AssetId, 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-
|
|
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-
|
|
6
|
-
import { I as InvoiceFacts, C as ChainSource, R as RfqQuote } from './rfq-
|
|
7
|
-
export { S as SwapRefusal } from './rfq-
|
|
4
|
+
import { N as NetworkRef, C as Corridor, A as AssetId, 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-DRlPgbU8.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-DRlPgbU8.cjs';
|
|
6
|
+
import { I as InvoiceFacts, C as ChainSource, R as RfqQuote } from './rfq-BJ8SC_Gp.cjs';
|
|
7
|
+
export { S as SwapRefusal } from './rfq-BJ8SC_Gp.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-
|
|
11
|
-
import './offer-
|
|
10
|
+
import { O as OfferSpendChanges, a as OfferSwapFacts, b as OfferSwapSource } from './watch-CeVD4WnY.cjs';
|
|
11
|
+
import './offer-CSMhR5sj.cjs';
|
|
12
12
|
import 'nostr-tools';
|
|
13
13
|
|
|
14
14
|
/** The EVM leg's namespace. Which chain is the quote's `evm_chain_id`, not the pair. */
|
package/dist/advanced.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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-
|
|
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 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 RfqRendezvous, au as RfqTransportFactory, av as RouteSide, aw as SWAP_ERROR_NAMES, ax as SwapClient, ay as SwapClientConfig, az as SwapDrive, aA as SwapDriveConfig, aB as SwapDriveRefusedError, aC as SwapError, aD as SwapErrorName, aE as SwapFilter, aF as UnsupportedRoute, aG as VerbDeps, aH as acceptQuote, aI as attesting, aJ as buildOfferFillPlan, aK as cancelSwap, aL as canonicalAssetId, aM as cardMarketOf, aN as chooseMarket, aO as conflictingFields, aP as corridorSet, aQ as createNostrTransportFactory, aR as createSwapClient, aS as createSwapDrive, aT as deepFreeze, aU as digestJointGraph, aV as discoveryIndex, aW as eligibleMarkets, aX as enforceFeeCeiling, aY as exchange, aZ as feedFetch, a_ as feedSpread, a$ as isAddressable, b0 as isCardMarket, b1 as isIndexedNetwork, b2 as isSwapError, b3 as isUsableCard, b4 as liveArkadeInfo, b5 as marketBackendOf, b6 as marketKeyOf, b7 as marketRefOf, b8 as nostrTransportFactory, b9 as parseRfqQuote, ba as pay, bb as quoteFromFeed, bc as quoteViaRfq, bd as readableRecord, be as receive, bf as resolveCorridorBase, bg as resolveCorridorDeps, bh as rfqLeg, bi as rfqPairFor, bj as swapRecordOf, bk as toDiscoveryLeg, bl as unsignedPsbtBytes, bm as usableMarkets, bn as verifyJointGraph, bo as verifyOfferFillPlan, bp as verifyPlanLegs, bq as withCanonicalAmount } from './offerFillPlan-
|
|
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-CgvrM3fS.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 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 RfqRendezvous, au as RfqTransportFactory, av as RouteSide, aw as SWAP_ERROR_NAMES, ax as SwapClient, ay as SwapClientConfig, az as SwapDrive, aA as SwapDriveConfig, aB as SwapDriveRefusedError, aC as SwapError, aD as SwapErrorName, aE as SwapFilter, aF as UnsupportedRoute, aG as VerbDeps, aH as acceptQuote, aI as attesting, aJ as buildOfferFillPlan, aK as cancelSwap, aL as canonicalAssetId, aM as cardMarketOf, aN as chooseMarket, aO as conflictingFields, aP as corridorSet, aQ as createNostrTransportFactory, aR as createSwapClient, aS as createSwapDrive, aT as deepFreeze, aU as digestJointGraph, aV as discoveryIndex, aW as eligibleMarkets, aX as enforceFeeCeiling, aY as exchange, aZ as feedFetch, a_ as feedSpread, a$ as isAddressable, b0 as isCardMarket, b1 as isIndexedNetwork, b2 as isSwapError, b3 as isUsableCard, b4 as liveArkadeInfo, b5 as marketBackendOf, b6 as marketKeyOf, b7 as marketRefOf, b8 as nostrTransportFactory, b9 as parseRfqQuote, ba as pay, bb as quoteFromFeed, bc as quoteViaRfq, bd as readableRecord, be as receive, bf as resolveCorridorBase, bg as resolveCorridorDeps, bh as rfqLeg, bi as rfqPairFor, bj as swapRecordOf, bk as toDiscoveryLeg, bl as unsignedPsbtBytes, bm as usableMarkets, bn as verifyJointGraph, bo as verifyOfferFillPlan, bp as verifyPlanLegs, bq as withCanonicalAmount } from './offerFillPlan-CgvrM3fS.js';
|
|
3
3
|
import { DiscoveredMarket } from '@arkade-os/solver-discovery';
|
|
4
|
-
import { N as NetworkRef, C as Corridor, A as AssetId, 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-
|
|
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-
|
|
6
|
-
import { I as InvoiceFacts, C as ChainSource, R as RfqQuote } from './rfq-
|
|
7
|
-
export { S as SwapRefusal } from './rfq-
|
|
4
|
+
import { N as NetworkRef, C as Corridor, A as AssetId, 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-rbPbJplG.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-rbPbJplG.js';
|
|
6
|
+
import { I as InvoiceFacts, C as ChainSource, R as RfqQuote } from './rfq-BJ8SC_Gp.js';
|
|
7
|
+
export { S as SwapRefusal } from './rfq-BJ8SC_Gp.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-
|
|
11
|
-
import './offer-
|
|
10
|
+
import { O as OfferSpendChanges, a as OfferSwapFacts, b as OfferSwapSource } from './watch-CrVtt1pC.js';
|
|
11
|
+
import './offer-CVnYFj7r.js';
|
|
12
12
|
import 'nostr-tools';
|
|
13
13
|
|
|
14
14
|
/** The EVM leg's namespace. Which chain is the quote's `evm_chain_id`, not the pair. */
|
package/dist/advanced.js
CHANGED
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
withCanonicalAmount,
|
|
137
137
|
withDepositFate,
|
|
138
138
|
withRfqState
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-PTAJYT2M.js";
|
|
140
140
|
import {
|
|
141
141
|
ACTIVITY_TOKEN,
|
|
142
142
|
Amount,
|
|
@@ -171,7 +171,7 @@ import {
|
|
|
171
171
|
recordOutcome,
|
|
172
172
|
swapOf,
|
|
173
173
|
toAtomicDecimal
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-E7EF65MO.js";
|
|
175
175
|
import {
|
|
176
176
|
ARKADE_BTC,
|
|
177
177
|
SwapRefusal,
|
|
@@ -179,7 +179,7 @@ import {
|
|
|
179
179
|
assertPreimageMatches,
|
|
180
180
|
rfqPair,
|
|
181
181
|
sealClaimPacket
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-AEYSMVWU.js";
|
|
183
183
|
import "./chunk-A3SHHRX4.js";
|
|
184
184
|
|
|
185
185
|
// src/reveal.ts
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
rfqCorridorHandlers,
|
|
25
25
|
rfqSignerOf,
|
|
26
26
|
updateAssetSwapBestEffort
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AEYSMVWU.js";
|
|
28
28
|
import {
|
|
29
29
|
collectRfqSwaps
|
|
30
30
|
} from "./chunk-A3SHHRX4.js";
|
|
@@ -3293,6 +3293,7 @@ export {
|
|
|
3293
3293
|
findLockupVtxos,
|
|
3294
3294
|
readLockupFate,
|
|
3295
3295
|
pushRefundWithoutReceiver,
|
|
3296
|
+
REFUND_MTP_LAG_SECONDS,
|
|
3296
3297
|
QUOTE_OPTIONS,
|
|
3297
3298
|
makeCachedFeedFetch,
|
|
3298
3299
|
MARKETS_CACHE_TTL_MS,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
undeliveredCarry,
|
|
58
58
|
walletOperator,
|
|
59
59
|
watchOfferSwaps
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-E7EF65MO.js";
|
|
61
61
|
import {
|
|
62
62
|
ARKADE_BTC,
|
|
63
63
|
ASSET_CARRIER_SATS,
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
sealClaimPacket,
|
|
119
119
|
unilateralClaimDelay,
|
|
120
120
|
verifyOfferAddress
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-AEYSMVWU.js";
|
|
122
122
|
import {
|
|
123
123
|
assertRfqSwapPageFilter,
|
|
124
124
|
collectAssetSwaps,
|
|
@@ -1648,7 +1648,11 @@ var withDepositFate = (record, fate, now) => ({
|
|
|
1648
1648
|
...fate.completedAt === void 0 ? {} : { completedAt: Math.floor(fate.completedAt / 1e3) },
|
|
1649
1649
|
updatedAt: now
|
|
1650
1650
|
});
|
|
1651
|
-
var
|
|
1651
|
+
var DEPOSIT_SPENT = (status) => status === "cancelled" || status === "fulfilled";
|
|
1652
|
+
var fateMoved = (record, fate) => {
|
|
1653
|
+
if (DEPOSIT_SPENT(record.status) && !DEPOSIT_SPENT(fate.status)) return false;
|
|
1654
|
+
return record.status !== fate.status || fate.spentTxid !== void 0 && record.spentTxid !== fate.spentTxid || fate.completedAt !== void 0 && record.completedAt !== Math.floor(fate.completedAt / 1e3);
|
|
1655
|
+
};
|
|
1652
1656
|
var restoredOfferRecord = (swap, network, now) => {
|
|
1653
1657
|
const give = restoredAssetId(network, swap.fromAsset);
|
|
1654
1658
|
const take = restoredAssetId(network, swap.toAsset);
|
package/dist/index.cjs
CHANGED
|
@@ -5998,7 +5998,11 @@ var withDepositFate = (record, fate, now) => ({
|
|
|
5998
5998
|
...fate.completedAt === void 0 ? {} : { completedAt: Math.floor(fate.completedAt / 1e3) },
|
|
5999
5999
|
updatedAt: now
|
|
6000
6000
|
});
|
|
6001
|
-
var
|
|
6001
|
+
var DEPOSIT_SPENT = (status) => status === "cancelled" || status === "fulfilled";
|
|
6002
|
+
var fateMoved = (record, fate) => {
|
|
6003
|
+
if (DEPOSIT_SPENT(record.status) && !DEPOSIT_SPENT(fate.status)) return false;
|
|
6004
|
+
return record.status !== fate.status || fate.spentTxid !== void 0 && record.spentTxid !== fate.spentTxid || fate.completedAt !== void 0 && record.completedAt !== Math.floor(fate.completedAt / 1e3);
|
|
6005
|
+
};
|
|
6002
6006
|
var restoredOfferRecord = (swap, network, now) => {
|
|
6003
6007
|
const give = restoredAssetId(network, swap.fromAsset);
|
|
6004
6008
|
const take = restoredAssetId(network, swap.toAsset);
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { e as AcceptConflict, g as AcceptOptions, h as AmbiguousDestination, i as AmountEncodingUnsupported, j as AmountMismatch, A as AssetAliasTable, B as BuildOfferFillPlanOpts, o as CancelOutcome, q as ClientDisposed, E as CorridorOverrides, H as DEFAULT_MAX_REFUND_WINDOW_SECONDS, I as DiscoveryConfig, d as DiscoverySnapshot, K as DiscoverySnapshotUnavailable, N as DriveMode, Q as ExchangeOptions, T as FeeCeiling, W as FillSponsor, X as FillSponsorFare, Z as InconsistentRoute, _ as InsufficientFunds, $ as JointGraph, a1 as Market, a2 as MaxFeeExceeded, a3 as MissingCorridorDep, a4 as NotCancellable, a5 as OFFER_FILL_OWNERS, a6 as OFFER_FILL_TEMPLATE, ac as OperatorUnreachable, ae as PayOptions, af as PayResult, ag as QuoteCheck, ah as QuoteExpired, 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, au as RfqTransportFactory, aw as SWAP_ERROR_NAMES, ax as SwapClient, ay as SwapClientConfig, aB as SwapDriveRefusedError, aC as SwapError, aD as SwapErrorName, aE as SwapFilter, S as SwapPolicy, aF as UnsupportedRoute, aG as VerbDeps, aJ as buildOfferFillPlan, aL as canonicalAssetId, aR as createSwapClient, aT as deepFreeze, aU as digestJointGraph, aY as exchange, b2 as isSwapError, ba as pay, be as receive, bl as unsignedPsbtBytes, bn as verifyJointGraph, bo as verifyOfferFillPlan } from './offerFillPlan-
|
|
2
|
-
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b9 as MarketsCacheEntry, a7 as Outcome, ap as Swap, l as QuoteInput, i as RouteResolution, a9 as Quote, as as SwapUpdate, au as Unsubscribe } from './repository-
|
|
3
|
-
export { o as ARKADE_ASSET_NAMESPACE, p as Amount, q as AmountFormatError, s as AmountRefusal, t as ArkadeCarrierChoice, u as Artifact, A as AssetId, 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, X as CardMarketRef, Y as CorridorId, Z as CorridorKind, b as CorridorSwapRecord, _ as DepositArtifact, $ as DisplayDecimal, a0 as Endpoint, a1 as Ep, ba as InMemoryAssetSwapRepository, I as Instrument, L as LockupSpendIndexer, a4 as MarketBackend, a5 as MarketRef, N as NetworkRef, O as OfferSwapRecord, a8 as ParsedAssetId, P as PinnedAmount, Q as QuoteId, aa as QuoteLeg, ab as RAILS, R as Rail, ae as RankedBid, af as RawState, ag as ReceiverPaidCarrierQuote, ah as RecordedArtifact, ai as RecordedAssetPayment, aj as RecordedEndpoint, ak as RecordedInstrument, al as RecordedLeg, j as ResolvedEndpoint, am as RestoredMarketRef, bb as RfqSwapState, k as Route, ao as SnapshotRef, bc as SwapContractRegistry, aq as SwapFamily, bd as SwapOperator, ar as SwapRecordCommon, at as TaxiIdentity, av as VerifiedCarrierTerms, aw as arkadeAsset, ay as assetPartOf, az as assetSwapIdOf, aA as bitcoinNetworkOf, aB as btcAssetPart, aC as btcOn, aH as familyOfSwapId, aI as formatAssetId, aJ as fromAtomicDecimal, aO as isAssetId, aP as isAtomicDecimal, aQ as isBtcAsset, aR as isBtcAssetLenient, aS as isNetworkRef, be as isRfqSwapTerminal, aT as issuanceOf, aW as parseAssetId, aX as quoteIdOfSwapId, aY as railOf, b4 as sameAsset, b6 as toAtomicDecimal } from './repository-
|
|
4
|
-
export { C as ChainSource, I as InvoiceFacts, a as RFQ_REFUSAL_ERROR_CODES, b as RfqRefusalDetail, c as RfqRefusalErrorCode, d as RfqRefusalUnit, S as SwapRefusal, T as TxStatus, i as isRfqRefusalErrorCode } from './rfq-
|
|
1
|
+
export { e as AcceptConflict, g as AcceptOptions, h as AmbiguousDestination, i as AmountEncodingUnsupported, j as AmountMismatch, A as AssetAliasTable, B as BuildOfferFillPlanOpts, o as CancelOutcome, q as ClientDisposed, E as CorridorOverrides, H as DEFAULT_MAX_REFUND_WINDOW_SECONDS, I as DiscoveryConfig, d as DiscoverySnapshot, K as DiscoverySnapshotUnavailable, N as DriveMode, Q as ExchangeOptions, T as FeeCeiling, W as FillSponsor, X as FillSponsorFare, Z as InconsistentRoute, _ as InsufficientFunds, $ as JointGraph, a1 as Market, a2 as MaxFeeExceeded, a3 as MissingCorridorDep, a4 as NotCancellable, a5 as OFFER_FILL_OWNERS, a6 as OFFER_FILL_TEMPLATE, ac as OperatorUnreachable, ae as PayOptions, af as PayResult, ag as QuoteCheck, ah as QuoteExpired, 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, au as RfqTransportFactory, aw as SWAP_ERROR_NAMES, ax as SwapClient, ay as SwapClientConfig, aB as SwapDriveRefusedError, aC as SwapError, aD as SwapErrorName, aE as SwapFilter, S as SwapPolicy, aF as UnsupportedRoute, aG as VerbDeps, aJ as buildOfferFillPlan, aL as canonicalAssetId, aR as createSwapClient, aT as deepFreeze, aU as digestJointGraph, aY as exchange, b2 as isSwapError, ba as pay, be as receive, bl as unsignedPsbtBytes, bn as verifyJointGraph, bo as verifyOfferFillPlan } from './offerFillPlan-qBRemU32.cjs';
|
|
2
|
+
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b9 as MarketsCacheEntry, a7 as Outcome, ap as Swap, l as QuoteInput, i as RouteResolution, a9 as Quote, as as SwapUpdate, au as Unsubscribe } from './repository-DRlPgbU8.cjs';
|
|
3
|
+
export { o as ARKADE_ASSET_NAMESPACE, p as Amount, q as AmountFormatError, s as AmountRefusal, t as ArkadeCarrierChoice, u as Artifact, A as AssetId, 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, X as CardMarketRef, Y as CorridorId, Z as CorridorKind, b as CorridorSwapRecord, _ as DepositArtifact, $ as DisplayDecimal, a0 as Endpoint, a1 as Ep, ba as InMemoryAssetSwapRepository, I as Instrument, L as LockupSpendIndexer, a4 as MarketBackend, a5 as MarketRef, N as NetworkRef, O as OfferSwapRecord, a8 as ParsedAssetId, P as PinnedAmount, Q as QuoteId, aa as QuoteLeg, ab as RAILS, R as Rail, ae as RankedBid, af as RawState, ag as ReceiverPaidCarrierQuote, ah as RecordedArtifact, ai as RecordedAssetPayment, aj as RecordedEndpoint, ak as RecordedInstrument, al as RecordedLeg, j as ResolvedEndpoint, am as RestoredMarketRef, bb as RfqSwapState, k as Route, ao as SnapshotRef, bc as SwapContractRegistry, aq as SwapFamily, bd as SwapOperator, ar as SwapRecordCommon, at as TaxiIdentity, av as VerifiedCarrierTerms, aw as arkadeAsset, ay as assetPartOf, az as assetSwapIdOf, aA as bitcoinNetworkOf, aB as btcAssetPart, aC as btcOn, aH as familyOfSwapId, aI as formatAssetId, aJ as fromAtomicDecimal, aO as isAssetId, aP as isAtomicDecimal, aQ as isBtcAsset, aR as isBtcAssetLenient, aS as isNetworkRef, be as isRfqSwapTerminal, aT as issuanceOf, aW as parseAssetId, aX as quoteIdOfSwapId, aY as railOf, b4 as sameAsset, b6 as toAtomicDecimal } from './repository-DRlPgbU8.cjs';
|
|
4
|
+
export { C as ChainSource, I as InvoiceFacts, a as RFQ_REFUSAL_ERROR_CODES, b as RfqRefusalDetail, c as RfqRefusalErrorCode, d as RfqRefusalUnit, S as SwapRefusal, T as TxStatus, i as isRfqRefusalErrorCode } from './rfq-BJ8SC_Gp.cjs';
|
|
5
5
|
import { PageRequest, PageResult, PaymentHandle, PaymentRail, RouterPreferences, Wallet, PaymentRouter, PaymentStatus } from '@arkade-os/sdk';
|
|
6
|
-
export { C as CLAIM_PACKET_TYPE, a as ClaimPacketShape, L as LockupRegistrationFailed, S as SEALED_CIPHERTEXT_LENGTH, b as appendArkadeScript, c as claimPacketShape } from './lockupContract-
|
|
6
|
+
export { C as CLAIM_PACKET_TYPE, a as ClaimPacketShape, L as LockupRegistrationFailed, S as SEALED_CIPHERTEXT_LENGTH, b as appendArkadeScript, c as claimPacketShape } from './lockupContract-VzLVZPcw.cjs';
|
|
7
7
|
import '@arkade-os/solver-discovery';
|
|
8
|
-
import './offer-
|
|
8
|
+
import './offer-CSMhR5sj.cjs';
|
|
9
9
|
import 'nostr-tools';
|
|
10
10
|
|
|
11
11
|
/** Browser backend over the SDK's shared IndexedDB manager. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { e as AcceptConflict, g as AcceptOptions, h as AmbiguousDestination, i as AmountEncodingUnsupported, j as AmountMismatch, A as AssetAliasTable, B as BuildOfferFillPlanOpts, o as CancelOutcome, q as ClientDisposed, E as CorridorOverrides, H as DEFAULT_MAX_REFUND_WINDOW_SECONDS, I as DiscoveryConfig, d as DiscoverySnapshot, K as DiscoverySnapshotUnavailable, N as DriveMode, Q as ExchangeOptions, T as FeeCeiling, W as FillSponsor, X as FillSponsorFare, Z as InconsistentRoute, _ as InsufficientFunds, $ as JointGraph, a1 as Market, a2 as MaxFeeExceeded, a3 as MissingCorridorDep, a4 as NotCancellable, a5 as OFFER_FILL_OWNERS, a6 as OFFER_FILL_TEMPLATE, ac as OperatorUnreachable, ae as PayOptions, af as PayResult, ag as QuoteCheck, ah as QuoteExpired, 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, au as RfqTransportFactory, aw as SWAP_ERROR_NAMES, ax as SwapClient, ay as SwapClientConfig, aB as SwapDriveRefusedError, aC as SwapError, aD as SwapErrorName, aE as SwapFilter, S as SwapPolicy, aF as UnsupportedRoute, aG as VerbDeps, aJ as buildOfferFillPlan, aL as canonicalAssetId, aR as createSwapClient, aT as deepFreeze, aU as digestJointGraph, aY as exchange, b2 as isSwapError, ba as pay, be as receive, bl as unsignedPsbtBytes, bn as verifyJointGraph, bo as verifyOfferFillPlan } from './offerFillPlan-
|
|
2
|
-
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b9 as MarketsCacheEntry, a7 as Outcome, ap as Swap, l as QuoteInput, i as RouteResolution, a9 as Quote, as as SwapUpdate, au as Unsubscribe } from './repository-
|
|
3
|
-
export { o as ARKADE_ASSET_NAMESPACE, p as Amount, q as AmountFormatError, s as AmountRefusal, t as ArkadeCarrierChoice, u as Artifact, A as AssetId, 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, X as CardMarketRef, Y as CorridorId, Z as CorridorKind, b as CorridorSwapRecord, _ as DepositArtifact, $ as DisplayDecimal, a0 as Endpoint, a1 as Ep, ba as InMemoryAssetSwapRepository, I as Instrument, L as LockupSpendIndexer, a4 as MarketBackend, a5 as MarketRef, N as NetworkRef, O as OfferSwapRecord, a8 as ParsedAssetId, P as PinnedAmount, Q as QuoteId, aa as QuoteLeg, ab as RAILS, R as Rail, ae as RankedBid, af as RawState, ag as ReceiverPaidCarrierQuote, ah as RecordedArtifact, ai as RecordedAssetPayment, aj as RecordedEndpoint, ak as RecordedInstrument, al as RecordedLeg, j as ResolvedEndpoint, am as RestoredMarketRef, bb as RfqSwapState, k as Route, ao as SnapshotRef, bc as SwapContractRegistry, aq as SwapFamily, bd as SwapOperator, ar as SwapRecordCommon, at as TaxiIdentity, av as VerifiedCarrierTerms, aw as arkadeAsset, ay as assetPartOf, az as assetSwapIdOf, aA as bitcoinNetworkOf, aB as btcAssetPart, aC as btcOn, aH as familyOfSwapId, aI as formatAssetId, aJ as fromAtomicDecimal, aO as isAssetId, aP as isAtomicDecimal, aQ as isBtcAsset, aR as isBtcAssetLenient, aS as isNetworkRef, be as isRfqSwapTerminal, aT as issuanceOf, aW as parseAssetId, aX as quoteIdOfSwapId, aY as railOf, b4 as sameAsset, b6 as toAtomicDecimal } from './repository-
|
|
4
|
-
export { C as ChainSource, I as InvoiceFacts, a as RFQ_REFUSAL_ERROR_CODES, b as RfqRefusalDetail, c as RfqRefusalErrorCode, d as RfqRefusalUnit, S as SwapRefusal, T as TxStatus, i as isRfqRefusalErrorCode } from './rfq-
|
|
1
|
+
export { e as AcceptConflict, g as AcceptOptions, h as AmbiguousDestination, i as AmountEncodingUnsupported, j as AmountMismatch, A as AssetAliasTable, B as BuildOfferFillPlanOpts, o as CancelOutcome, q as ClientDisposed, E as CorridorOverrides, H as DEFAULT_MAX_REFUND_WINDOW_SECONDS, I as DiscoveryConfig, d as DiscoverySnapshot, K as DiscoverySnapshotUnavailable, N as DriveMode, Q as ExchangeOptions, T as FeeCeiling, W as FillSponsor, X as FillSponsorFare, Z as InconsistentRoute, _ as InsufficientFunds, $ as JointGraph, a1 as Market, a2 as MaxFeeExceeded, a3 as MissingCorridorDep, a4 as NotCancellable, a5 as OFFER_FILL_OWNERS, a6 as OFFER_FILL_TEMPLATE, ac as OperatorUnreachable, ae as PayOptions, af as PayResult, ag as QuoteCheck, ah as QuoteExpired, 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, au as RfqTransportFactory, aw as SWAP_ERROR_NAMES, ax as SwapClient, ay as SwapClientConfig, aB as SwapDriveRefusedError, aC as SwapError, aD as SwapErrorName, aE as SwapFilter, S as SwapPolicy, aF as UnsupportedRoute, aG as VerbDeps, aJ as buildOfferFillPlan, aL as canonicalAssetId, aR as createSwapClient, aT as deepFreeze, aU as digestJointGraph, aY as exchange, b2 as isSwapError, ba as pay, be as receive, bl as unsignedPsbtBytes, bn as verifyJointGraph, bo as verifyOfferFillPlan } from './offerFillPlan-CgvrM3fS.js';
|
|
2
|
+
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b9 as MarketsCacheEntry, a7 as Outcome, ap as Swap, l as QuoteInput, i as RouteResolution, a9 as Quote, as as SwapUpdate, au as Unsubscribe } from './repository-rbPbJplG.js';
|
|
3
|
+
export { o as ARKADE_ASSET_NAMESPACE, p as Amount, q as AmountFormatError, s as AmountRefusal, t as ArkadeCarrierChoice, u as Artifact, A as AssetId, 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, X as CardMarketRef, Y as CorridorId, Z as CorridorKind, b as CorridorSwapRecord, _ as DepositArtifact, $ as DisplayDecimal, a0 as Endpoint, a1 as Ep, ba as InMemoryAssetSwapRepository, I as Instrument, L as LockupSpendIndexer, a4 as MarketBackend, a5 as MarketRef, N as NetworkRef, O as OfferSwapRecord, a8 as ParsedAssetId, P as PinnedAmount, Q as QuoteId, aa as QuoteLeg, ab as RAILS, R as Rail, ae as RankedBid, af as RawState, ag as ReceiverPaidCarrierQuote, ah as RecordedArtifact, ai as RecordedAssetPayment, aj as RecordedEndpoint, ak as RecordedInstrument, al as RecordedLeg, j as ResolvedEndpoint, am as RestoredMarketRef, bb as RfqSwapState, k as Route, ao as SnapshotRef, bc as SwapContractRegistry, aq as SwapFamily, bd as SwapOperator, ar as SwapRecordCommon, at as TaxiIdentity, av as VerifiedCarrierTerms, aw as arkadeAsset, ay as assetPartOf, az as assetSwapIdOf, aA as bitcoinNetworkOf, aB as btcAssetPart, aC as btcOn, aH as familyOfSwapId, aI as formatAssetId, aJ as fromAtomicDecimal, aO as isAssetId, aP as isAtomicDecimal, aQ as isBtcAsset, aR as isBtcAssetLenient, aS as isNetworkRef, be as isRfqSwapTerminal, aT as issuanceOf, aW as parseAssetId, aX as quoteIdOfSwapId, aY as railOf, b4 as sameAsset, b6 as toAtomicDecimal } from './repository-rbPbJplG.js';
|
|
4
|
+
export { C as ChainSource, I as InvoiceFacts, a as RFQ_REFUSAL_ERROR_CODES, b as RfqRefusalDetail, c as RfqRefusalErrorCode, d as RfqRefusalUnit, S as SwapRefusal, T as TxStatus, i as isRfqRefusalErrorCode } from './rfq-BJ8SC_Gp.js';
|
|
5
5
|
import { PageRequest, PageResult, PaymentHandle, PaymentRail, RouterPreferences, Wallet, PaymentRouter, PaymentStatus } from '@arkade-os/sdk';
|
|
6
|
-
export { C as CLAIM_PACKET_TYPE, a as ClaimPacketShape, L as LockupRegistrationFailed, S as SEALED_CIPHERTEXT_LENGTH, b as appendArkadeScript, c as claimPacketShape } from './lockupContract-
|
|
6
|
+
export { C as CLAIM_PACKET_TYPE, a as ClaimPacketShape, L as LockupRegistrationFailed, S as SEALED_CIPHERTEXT_LENGTH, b as appendArkadeScript, c as claimPacketShape } from './lockupContract-D7NyiHpE.js';
|
|
7
7
|
import '@arkade-os/solver-discovery';
|
|
8
|
-
import './offer-
|
|
8
|
+
import './offer-CVnYFj7r.js';
|
|
9
9
|
import 'nostr-tools';
|
|
10
10
|
|
|
11
11
|
/** Browser backend over the SDK's shared IndexedDB manager. */
|
package/dist/index.js
CHANGED
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
unsignedPsbtBytes,
|
|
63
63
|
verifyJointGraph,
|
|
64
64
|
verifyOfferFillPlan
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-PTAJYT2M.js";
|
|
66
66
|
import {
|
|
67
67
|
Amount,
|
|
68
68
|
AmountFormatError,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
isRfqSwapTerminal,
|
|
74
74
|
quoteIdOfSwapId,
|
|
75
75
|
toAtomicDecimal
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-E7EF65MO.js";
|
|
77
77
|
import {
|
|
78
78
|
CLAIM_PACKET_TYPE,
|
|
79
79
|
LockupRegistrationFailed,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
appendArkadeScript,
|
|
84
84
|
claimPacketShape,
|
|
85
85
|
isRfqRefusalErrorCode
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-AEYSMVWU.js";
|
|
87
87
|
import {
|
|
88
88
|
InMemoryAssetSwapRepository,
|
|
89
89
|
assertRfqSwapPageFilter,
|
package/dist/nostr.d.cts
CHANGED
package/dist/nostr.d.ts
CHANGED
package/dist/nostr.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { asset, RelativeTimelock, ArkadeInfo, ArkTxInput, Outpoint, IWallet, EmulatorProvider, arkade } from '@arkade-os/sdk';
|
|
2
|
-
import { d as AssetSwapRepository } from './repository-
|
|
2
|
+
import { d as AssetSwapRepository } from './repository-DRlPgbU8.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Coverage: whether an offer's script is in the wallet's watched set. `createOffer` promotes; the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { asset, RelativeTimelock, ArkadeInfo, ArkTxInput, Outpoint, IWallet, EmulatorProvider, arkade } from '@arkade-os/sdk';
|
|
2
|
-
import { d as AssetSwapRepository } from './repository-
|
|
2
|
+
import { d as AssetSwapRepository } from './repository-rbPbJplG.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Coverage: whether an offer's script is in the wallet's watched set. `createOffer` promotes; the
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IWallet, NetworkName, Network, SignerSet, 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-
|
|
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-
|
|
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-rbPbJplG.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-BJ8SC_Gp.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-
|
|
5
|
+
import { D as DerivedOffer, F as FillFunding, a as FillOutpoint, b as FillInputOwner } from './offer-CVnYFj7r.js';
|
|
6
6
|
import * as nostr_tools from 'nostr-tools';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IWallet, NetworkName, Network, SignerSet, 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-
|
|
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-
|
|
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-DRlPgbU8.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-BJ8SC_Gp.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-
|
|
5
|
+
import { D as DerivedOffer, F as FillFunding, a as FillOutpoint, b as FillInputOwner } from './offer-CSMhR5sj.cjs';
|
|
6
6
|
import * as nostr_tools from 'nostr-tools';
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/protocol.cjs
CHANGED
|
@@ -3253,6 +3253,7 @@ __export(protocol_exports, {
|
|
|
3253
3253
|
LockupContractMissing: () => LockupContractMissing,
|
|
3254
3254
|
LockupNeedsRecoveryError: () => LockupNeedsRecoveryError,
|
|
3255
3255
|
MAX_MIN_CONFIRMATIONS: () => MAX_MIN_CONFIRMATIONS,
|
|
3256
|
+
MIN_CLAIM_WINDOW_SECONDS: () => MIN_CLAIM_WINDOW_SECONDS,
|
|
3256
3257
|
NoSpendableDepositError: () => NoSpendableDepositError,
|
|
3257
3258
|
OFFER_PACKET_TYPE: () => OFFER_PACKET_TYPE,
|
|
3258
3259
|
ONCHAIN_BTC: () => ONCHAIN_BTC,
|
|
@@ -3266,6 +3267,7 @@ __export(protocol_exports, {
|
|
|
3266
3267
|
OnchainReceiveNeedsChainSource: () => OnchainReceiveNeedsChainSource,
|
|
3267
3268
|
PreimageNotRecoverableError: () => PreimageNotRecoverableError,
|
|
3268
3269
|
QUOTE_OPTIONS: () => QUOTE_OPTIONS,
|
|
3270
|
+
REFUND_MTP_LAG_SECONDS: () => REFUND_MTP_LAG_SECONDS,
|
|
3269
3271
|
RFQ_SWAP_RETENTION_SECONDS: () => RFQ_SWAP_RETENTION_SECONDS,
|
|
3270
3272
|
RefundNotLocallyPossibleError: () => RefundNotLocallyPossibleError,
|
|
3271
3273
|
RfqSwapManager: () => RfqSwapManager,
|
|
@@ -6573,6 +6575,7 @@ async function watchOfferSwaps({
|
|
|
6573
6575
|
LockupContractMissing,
|
|
6574
6576
|
LockupNeedsRecoveryError,
|
|
6575
6577
|
MAX_MIN_CONFIRMATIONS,
|
|
6578
|
+
MIN_CLAIM_WINDOW_SECONDS,
|
|
6576
6579
|
NoSpendableDepositError,
|
|
6577
6580
|
OFFER_PACKET_TYPE,
|
|
6578
6581
|
ONCHAIN_BTC,
|
|
@@ -6586,6 +6589,7 @@ async function watchOfferSwaps({
|
|
|
6586
6589
|
OnchainReceiveNeedsChainSource,
|
|
6587
6590
|
PreimageNotRecoverableError,
|
|
6588
6591
|
QUOTE_OPTIONS,
|
|
6592
|
+
REFUND_MTP_LAG_SECONDS,
|
|
6589
6593
|
RFQ_SWAP_RETENTION_SECONDS,
|
|
6590
6594
|
RefundNotLocallyPossibleError,
|
|
6591
6595
|
RfqSwapManager,
|
package/dist/protocol.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ProvisionedKey, ProvisionedClaimSecret, RestIndexerProvider, Transaction, ActivityResolver, IWallet, Network, OnchainProvider, VHTLC, Identity, Asset, PaymentRail } from '@arkade-os/sdk';
|
|
2
|
-
import { bh as SwapSecretsProjection, e as RfqSwapRecord, h as AssetSwap, d as AssetSwapRepository, L as LockupSpendIndexer, bb as RfqSwapState, bd as SwapOperator, bi as LockupContractSource, bj as RfqSwap, bk as ArkadeRefundResult, bl as LockupVtxo } from './repository-
|
|
3
|
-
export { c as AssetSwapStatus, bm as AvailableRfqSwapManagerCallbacks, bn as BTC_ASSET_ID, bo as LightningReceiveSwap, bp as LightningSendSwap, bq as LockupFate, br as LockupNeedsRecoveryError, bs as LockupParams, bt as LockupSpend, bu as OnchainReceiveAction, bv as OnchainReceiveNeedsChainSource, bw as OnchainReceiveSwap, bx as OnchainSendAction, by as OnchainSendSwap, bz as PersistableRfqSwap, bA as PreimageBlockedReason, bB as PreimageNotRecoverableError, bC as
|
|
4
|
-
import { h as OnchainNetwork, O as OnchainHtlc, g as OnchainHtlcParams, C as ChainSource, I as InvoiceFacts, e as RfqTransport, r as requestLightningSend, j as requestOnchainSend } from './rfq-
|
|
5
|
-
export { A as ARKADE_BTC, k as AddressMismatch, l as ChainUtxo, H as HtlcUtxo, m as LIGHTNING_BTC, n as LIGHTNING_RECEIVE_PAIR, o as LIGHTNING_SEND_PAIR, p as LOCKTIME_THRESHOLD, f as LightningReceiveContractParams, L as LightningSendContractParams, M as MAX_MIN_CONFIRMATIONS, q as
|
|
6
|
-
export { d as ClaimPacketInput, e as LockupContractMissing, f as LockupContractReader, g as LockupContractWriter, h as SWAP_LOCKUP_CONTRACT_KIND, i as SWAP_LOCKUP_CONTRACT_LABEL, j as SWAP_LOCKUP_CONTRACT_TYPE, k as SealedClaimPacket, l as lockupContractParams, r as registerLockupContract, s as sealClaimPacket } from './lockupContract-
|
|
2
|
+
import { bh as SwapSecretsProjection, e as RfqSwapRecord, h as AssetSwap, d as AssetSwapRepository, L as LockupSpendIndexer, bb as RfqSwapState, bd as SwapOperator, bi as LockupContractSource, bj as RfqSwap, bk as ArkadeRefundResult, bl as LockupVtxo } from './repository-DRlPgbU8.cjs';
|
|
3
|
+
export { c as AssetSwapStatus, bm as AvailableRfqSwapManagerCallbacks, bn as BTC_ASSET_ID, bo as LightningReceiveSwap, bp as LightningSendSwap, bq as LockupFate, br as LockupNeedsRecoveryError, bs as LockupParams, bt as LockupSpend, bu as OnchainReceiveAction, bv as OnchainReceiveNeedsChainSource, bw as OnchainReceiveSwap, bx as OnchainSendAction, by as OnchainSendSwap, bz as PersistableRfqSwap, bA as PreimageBlockedReason, bB as PreimageNotRecoverableError, bC as REFUND_MTP_LAG_SECONDS, bD as RFQ_SWAP_RETENTION_SECONDS, bE as ReceiveLockupSwap, bF as RfqRestoreFailure, bG as RfqRestoreOptions, bH as RfqRestoreResult, bg as RfqSwapActionName, bI as RfqSwapLockup, bJ as RfqSwapManager, bf as RfqSwapManagerCallbacks, bK as RfqSwapManagerConfig, bL as RfqSwapManagerDeps, bM as RfqSwapManagerEvents, bN as RfqSwapOrigin, bO as RfqSwapOriginRequired, bP as RfqSwapOutcome, a as RfqSwapRecordStore, bQ as addAssetSwap, bR as awaitRfqResolution, bS as createRfqSwapRecord, bT as findLockupVtxos, bU as getAssetSwaps, bV as isRfqTerminal, bW as nextOnchainAction, bX as nextOnchainReceiveAction, bY as normalizeRfqSwapRecord, bZ as preimageForSwapRecord, b_ as pushRefundWithoutReceiver, b$ as readLockupFate, c0 as rebuildRfqSwap, c1 as rfqSwapOriginOf, c2 as shouldRetainRfqSwap, c3 as swapSecretsToRecord, c4 as updateAssetSwap, c5 as updateRfqSwapRecord } from './repository-DRlPgbU8.cjs';
|
|
4
|
+
import { h as OnchainNetwork, O as OnchainHtlc, g as OnchainHtlcParams, C as ChainSource, I as InvoiceFacts, e as RfqTransport, r as requestLightningSend, j as requestOnchainSend } from './rfq-BJ8SC_Gp.cjs';
|
|
5
|
+
export { A as ARKADE_BTC, k as AddressMismatch, l as ChainUtxo, H as HtlcUtxo, m as LIGHTNING_BTC, n as LIGHTNING_RECEIVE_PAIR, o as LIGHTNING_SEND_PAIR, p as LOCKTIME_THRESHOLD, f as LightningReceiveContractParams, L as LightningSendContractParams, M as MAX_MIN_CONFIRMATIONS, q as MIN_CLAIM_WINDOW_SECONDS, s as ONCHAIN_BTC, t as ONCHAIN_CLAIM_MARGIN_SECONDS, u as ONCHAIN_DUST_SATS, v as ONCHAIN_ORDER_MARGIN_SECONDS, w as ONCHAIN_RECEIVE_PAIR, x as ONCHAIN_SECONDS_PER_BLOCK, y as ONCHAIN_SEND_PAIR, z as OnchainHtlcPhase, B as RelaySocket, R as RfqQuote, D as RfqRefusalReason, E as RfqStatus, F as arkadeAssetLeg, G as arkadeSwapRequest, J as assertArkadeFundable, K as awaitOnchainFill, N as buildHtlcClaim, P as buildHtlcRefund, Q as canonicalAssetAmount, U as claimOnchainFill, V as classifyOnchainHtlc, W as deriveLightningReceive, X as deriveOnchainReceive, Y as deriveOnchainSend, Z as extractPreimage, _ as httpTransport, $ as l1ScriptForAddress, a0 as lightningReceiveContract, a1 as lightningReceiveRequest, a2 as lightningSendContract, a3 as lightningSendRequest, a4 as newPreimage, a5 as normalizeMakerPkScript, a6 as normalizeMakerPublicKey, a7 as onchainHtlcScript, a8 as onchainReceiveRequest, a9 as onchainSendRequest, aa as paymentHashOf, ab as relayTransport, ac as requestArkadeSwap, ad as requestLightningReceive, ae as requestOnchainReceive, af as unilateralClaimDelay, ag as unilateralRefundDelay, ah as unilateralRefundWithoutReceiverDelay, ai as verifyLockupAddress, aj as verifyOfferAddress, ak as verifyReceiveInvoice } from './rfq-BJ8SC_Gp.cjs';
|
|
6
|
+
export { d as ClaimPacketInput, e as LockupContractMissing, f as LockupContractReader, g as LockupContractWriter, h as SWAP_LOCKUP_CONTRACT_KIND, i as SWAP_LOCKUP_CONTRACT_LABEL, j as SWAP_LOCKUP_CONTRACT_TYPE, k as SealedClaimPacket, l as lockupContractParams, r as registerLockupContract, s as sealClaimPacket } from './lockupContract-VzLVZPcw.cjs';
|
|
7
7
|
import { Network as Network$1, LocalCardInput, TransportCardFetcher, DiscoveredMarket, Side, OfferPlan } from '@arkade-os/solver-discovery';
|
|
8
|
-
import { O as Offer } from './offer-
|
|
9
|
-
export { A as ASSET_CARRIER_SATS, F as FillFunding, a as FillOutpoint, N as NoSpendableDepositError, c as OFFER_PACKET_TYPE, d as OfferCovenantMismatchError, e as cancelOffer, f as createOffer, g as decodeOffer, h as encodeOffer, i as fillOffer, o as offerContract, j as offerVtxoScript, s as swapPrograms } from './offer-
|
|
10
|
-
export { c as OfferSwapWatcher, W as WatchOfferSwapsParams, w as watchOfferSwaps } from './watch-
|
|
8
|
+
import { O as Offer } from './offer-CSMhR5sj.cjs';
|
|
9
|
+
export { A as ASSET_CARRIER_SATS, F as FillFunding, a as FillOutpoint, N as NoSpendableDepositError, c as OFFER_PACKET_TYPE, d as OfferCovenantMismatchError, e as cancelOffer, f as createOffer, g as decodeOffer, h as encodeOffer, i as fillOffer, o as offerContract, j as offerVtxoScript, s as swapPrograms } from './offer-CSMhR5sj.cjs';
|
|
10
|
+
export { c as OfferSwapWatcher, W as WatchOfferSwapsParams, w as watchOfferSwaps } from './watch-CeVD4WnY.cjs';
|
|
11
11
|
|
|
12
12
|
/** Which wallet key signs this leg, at `profile.signer`. Omitted entirely (not blank) by a corridor
|
|
13
13
|
* whose leg this wallet never signs. */
|
package/dist/protocol.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ProvisionedKey, ProvisionedClaimSecret, RestIndexerProvider, Transaction, ActivityResolver, IWallet, Network, OnchainProvider, VHTLC, Identity, Asset, PaymentRail } from '@arkade-os/sdk';
|
|
2
|
-
import { bh as SwapSecretsProjection, e as RfqSwapRecord, h as AssetSwap, d as AssetSwapRepository, L as LockupSpendIndexer, bb as RfqSwapState, bd as SwapOperator, bi as LockupContractSource, bj as RfqSwap, bk as ArkadeRefundResult, bl as LockupVtxo } from './repository-
|
|
3
|
-
export { c as AssetSwapStatus, bm as AvailableRfqSwapManagerCallbacks, bn as BTC_ASSET_ID, bo as LightningReceiveSwap, bp as LightningSendSwap, bq as LockupFate, br as LockupNeedsRecoveryError, bs as LockupParams, bt as LockupSpend, bu as OnchainReceiveAction, bv as OnchainReceiveNeedsChainSource, bw as OnchainReceiveSwap, bx as OnchainSendAction, by as OnchainSendSwap, bz as PersistableRfqSwap, bA as PreimageBlockedReason, bB as PreimageNotRecoverableError, bC as
|
|
4
|
-
import { h as OnchainNetwork, O as OnchainHtlc, g as OnchainHtlcParams, C as ChainSource, I as InvoiceFacts, e as RfqTransport, r as requestLightningSend, j as requestOnchainSend } from './rfq-
|
|
5
|
-
export { A as ARKADE_BTC, k as AddressMismatch, l as ChainUtxo, H as HtlcUtxo, m as LIGHTNING_BTC, n as LIGHTNING_RECEIVE_PAIR, o as LIGHTNING_SEND_PAIR, p as LOCKTIME_THRESHOLD, f as LightningReceiveContractParams, L as LightningSendContractParams, M as MAX_MIN_CONFIRMATIONS, q as
|
|
6
|
-
export { d as ClaimPacketInput, e as LockupContractMissing, f as LockupContractReader, g as LockupContractWriter, h as SWAP_LOCKUP_CONTRACT_KIND, i as SWAP_LOCKUP_CONTRACT_LABEL, j as SWAP_LOCKUP_CONTRACT_TYPE, k as SealedClaimPacket, l as lockupContractParams, r as registerLockupContract, s as sealClaimPacket } from './lockupContract-
|
|
2
|
+
import { bh as SwapSecretsProjection, e as RfqSwapRecord, h as AssetSwap, d as AssetSwapRepository, L as LockupSpendIndexer, bb as RfqSwapState, bd as SwapOperator, bi as LockupContractSource, bj as RfqSwap, bk as ArkadeRefundResult, bl as LockupVtxo } from './repository-rbPbJplG.js';
|
|
3
|
+
export { c as AssetSwapStatus, bm as AvailableRfqSwapManagerCallbacks, bn as BTC_ASSET_ID, bo as LightningReceiveSwap, bp as LightningSendSwap, bq as LockupFate, br as LockupNeedsRecoveryError, bs as LockupParams, bt as LockupSpend, bu as OnchainReceiveAction, bv as OnchainReceiveNeedsChainSource, bw as OnchainReceiveSwap, bx as OnchainSendAction, by as OnchainSendSwap, bz as PersistableRfqSwap, bA as PreimageBlockedReason, bB as PreimageNotRecoverableError, bC as REFUND_MTP_LAG_SECONDS, bD as RFQ_SWAP_RETENTION_SECONDS, bE as ReceiveLockupSwap, bF as RfqRestoreFailure, bG as RfqRestoreOptions, bH as RfqRestoreResult, bg as RfqSwapActionName, bI as RfqSwapLockup, bJ as RfqSwapManager, bf as RfqSwapManagerCallbacks, bK as RfqSwapManagerConfig, bL as RfqSwapManagerDeps, bM as RfqSwapManagerEvents, bN as RfqSwapOrigin, bO as RfqSwapOriginRequired, bP as RfqSwapOutcome, a as RfqSwapRecordStore, bQ as addAssetSwap, bR as awaitRfqResolution, bS as createRfqSwapRecord, bT as findLockupVtxos, bU as getAssetSwaps, bV as isRfqTerminal, bW as nextOnchainAction, bX as nextOnchainReceiveAction, bY as normalizeRfqSwapRecord, bZ as preimageForSwapRecord, b_ as pushRefundWithoutReceiver, b$ as readLockupFate, c0 as rebuildRfqSwap, c1 as rfqSwapOriginOf, c2 as shouldRetainRfqSwap, c3 as swapSecretsToRecord, c4 as updateAssetSwap, c5 as updateRfqSwapRecord } from './repository-rbPbJplG.js';
|
|
4
|
+
import { h as OnchainNetwork, O as OnchainHtlc, g as OnchainHtlcParams, C as ChainSource, I as InvoiceFacts, e as RfqTransport, r as requestLightningSend, j as requestOnchainSend } from './rfq-BJ8SC_Gp.js';
|
|
5
|
+
export { A as ARKADE_BTC, k as AddressMismatch, l as ChainUtxo, H as HtlcUtxo, m as LIGHTNING_BTC, n as LIGHTNING_RECEIVE_PAIR, o as LIGHTNING_SEND_PAIR, p as LOCKTIME_THRESHOLD, f as LightningReceiveContractParams, L as LightningSendContractParams, M as MAX_MIN_CONFIRMATIONS, q as MIN_CLAIM_WINDOW_SECONDS, s as ONCHAIN_BTC, t as ONCHAIN_CLAIM_MARGIN_SECONDS, u as ONCHAIN_DUST_SATS, v as ONCHAIN_ORDER_MARGIN_SECONDS, w as ONCHAIN_RECEIVE_PAIR, x as ONCHAIN_SECONDS_PER_BLOCK, y as ONCHAIN_SEND_PAIR, z as OnchainHtlcPhase, B as RelaySocket, R as RfqQuote, D as RfqRefusalReason, E as RfqStatus, F as arkadeAssetLeg, G as arkadeSwapRequest, J as assertArkadeFundable, K as awaitOnchainFill, N as buildHtlcClaim, P as buildHtlcRefund, Q as canonicalAssetAmount, U as claimOnchainFill, V as classifyOnchainHtlc, W as deriveLightningReceive, X as deriveOnchainReceive, Y as deriveOnchainSend, Z as extractPreimage, _ as httpTransport, $ as l1ScriptForAddress, a0 as lightningReceiveContract, a1 as lightningReceiveRequest, a2 as lightningSendContract, a3 as lightningSendRequest, a4 as newPreimage, a5 as normalizeMakerPkScript, a6 as normalizeMakerPublicKey, a7 as onchainHtlcScript, a8 as onchainReceiveRequest, a9 as onchainSendRequest, aa as paymentHashOf, ab as relayTransport, ac as requestArkadeSwap, ad as requestLightningReceive, ae as requestOnchainReceive, af as unilateralClaimDelay, ag as unilateralRefundDelay, ah as unilateralRefundWithoutReceiverDelay, ai as verifyLockupAddress, aj as verifyOfferAddress, ak as verifyReceiveInvoice } from './rfq-BJ8SC_Gp.js';
|
|
6
|
+
export { d as ClaimPacketInput, e as LockupContractMissing, f as LockupContractReader, g as LockupContractWriter, h as SWAP_LOCKUP_CONTRACT_KIND, i as SWAP_LOCKUP_CONTRACT_LABEL, j as SWAP_LOCKUP_CONTRACT_TYPE, k as SealedClaimPacket, l as lockupContractParams, r as registerLockupContract, s as sealClaimPacket } from './lockupContract-D7NyiHpE.js';
|
|
7
7
|
import { Network as Network$1, LocalCardInput, TransportCardFetcher, DiscoveredMarket, Side, OfferPlan } from '@arkade-os/solver-discovery';
|
|
8
|
-
import { O as Offer } from './offer-
|
|
9
|
-
export { A as ASSET_CARRIER_SATS, F as FillFunding, a as FillOutpoint, N as NoSpendableDepositError, c as OFFER_PACKET_TYPE, d as OfferCovenantMismatchError, e as cancelOffer, f as createOffer, g as decodeOffer, h as encodeOffer, i as fillOffer, o as offerContract, j as offerVtxoScript, s as swapPrograms } from './offer-
|
|
10
|
-
export { c as OfferSwapWatcher, W as WatchOfferSwapsParams, w as watchOfferSwaps } from './watch-
|
|
8
|
+
import { O as Offer } from './offer-CVnYFj7r.js';
|
|
9
|
+
export { A as ASSET_CARRIER_SATS, F as FillFunding, a as FillOutpoint, N as NoSpendableDepositError, c as OFFER_PACKET_TYPE, d as OfferCovenantMismatchError, e as cancelOffer, f as createOffer, g as decodeOffer, h as encodeOffer, i as fillOffer, o as offerContract, j as offerVtxoScript, s as swapPrograms } from './offer-CVnYFj7r.js';
|
|
10
|
+
export { c as OfferSwapWatcher, W as WatchOfferSwapsParams, w as watchOfferSwaps } from './watch-CrVtt1pC.js';
|
|
11
11
|
|
|
12
12
|
/** Which wallet key signs this leg, at `profile.signer`. Omitted entirely (not blank) by a corridor
|
|
13
13
|
* whose leg this wallet never signs. */
|
package/dist/protocol.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
LockupNeedsRecoveryError,
|
|
5
5
|
OnchainReceiveNeedsChainSource,
|
|
6
6
|
QUOTE_OPTIONS,
|
|
7
|
+
REFUND_MTP_LAG_SECONDS,
|
|
7
8
|
RFQ_SWAP_RETENTION_SECONDS,
|
|
8
9
|
RefundNotLocallyPossibleError,
|
|
9
10
|
RfqSwapManager,
|
|
@@ -40,7 +41,7 @@ import {
|
|
|
40
41
|
validatePlan,
|
|
41
42
|
watchMarkets,
|
|
42
43
|
watchOfferSwaps
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-E7EF65MO.js";
|
|
44
45
|
import {
|
|
45
46
|
ARKADE_BTC,
|
|
46
47
|
ASSET_CARRIER_SATS,
|
|
@@ -53,6 +54,7 @@ import {
|
|
|
53
54
|
LOCKTIME_THRESHOLD,
|
|
54
55
|
LockupContractMissing,
|
|
55
56
|
MAX_MIN_CONFIRMATIONS,
|
|
57
|
+
MIN_CLAIM_WINDOW_SECONDS,
|
|
56
58
|
NoSpendableDepositError,
|
|
57
59
|
OFFER_PACKET_TYPE,
|
|
58
60
|
ONCHAIN_BTC,
|
|
@@ -126,7 +128,7 @@ import {
|
|
|
126
128
|
verifyLockupAddress,
|
|
127
129
|
verifyOfferAddress,
|
|
128
130
|
verifyReceiveInvoice
|
|
129
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-AEYSMVWU.js";
|
|
130
132
|
import {
|
|
131
133
|
collectRfqSwaps
|
|
132
134
|
} from "./chunk-A3SHHRX4.js";
|
|
@@ -661,6 +663,7 @@ export {
|
|
|
661
663
|
LockupContractMissing,
|
|
662
664
|
LockupNeedsRecoveryError,
|
|
663
665
|
MAX_MIN_CONFIRMATIONS,
|
|
666
|
+
MIN_CLAIM_WINDOW_SECONDS,
|
|
664
667
|
NoSpendableDepositError,
|
|
665
668
|
OFFER_PACKET_TYPE,
|
|
666
669
|
ONCHAIN_BTC,
|
|
@@ -674,6 +677,7 @@ export {
|
|
|
674
677
|
OnchainReceiveNeedsChainSource,
|
|
675
678
|
PreimageNotRecoverableError,
|
|
676
679
|
QUOTE_OPTIONS,
|
|
680
|
+
REFUND_MTP_LAG_SECONDS,
|
|
677
681
|
RFQ_SWAP_RETENTION_SECONDS,
|
|
678
682
|
RefundNotLocallyPossibleError,
|
|
679
683
|
RfqSwapManager,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RealmLike } from '@arkade-os/sdk/repositories/realm';
|
|
2
2
|
import { PageRequest, PageResult } from '@arkade-os/sdk';
|
|
3
|
-
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b9 as MarketsCacheEntry } from '../../repository-
|
|
3
|
+
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b9 as MarketsCacheEntry } from '../../repository-DRlPgbU8.cjs';
|
|
4
4
|
import '@arkade-os/solver-discovery';
|
|
5
|
-
import '../../rfq-
|
|
5
|
+
import '../../rfq-BJ8SC_Gp.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Realm backend for React Native.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RealmLike } from '@arkade-os/sdk/repositories/realm';
|
|
2
2
|
import { PageRequest, PageResult } from '@arkade-os/sdk';
|
|
3
|
-
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b9 as MarketsCacheEntry } from '../../repository-
|
|
3
|
+
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b9 as MarketsCacheEntry } from '../../repository-rbPbJplG.js';
|
|
4
4
|
import '@arkade-os/solver-discovery';
|
|
5
|
-
import '../../rfq-
|
|
5
|
+
import '../../rfq-BJ8SC_Gp.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Realm backend for React Native.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SQLExecutor } from '@arkade-os/sdk/repositories/sqlite';
|
|
2
2
|
import { PageRequest, PageResult } from '@arkade-os/sdk';
|
|
3
|
-
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b9 as MarketsCacheEntry } from '../../repository-
|
|
3
|
+
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b9 as MarketsCacheEntry } from '../../repository-DRlPgbU8.cjs';
|
|
4
4
|
import '@arkade-os/solver-discovery';
|
|
5
|
-
import '../../rfq-
|
|
5
|
+
import '../../rfq-BJ8SC_Gp.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* SQLite backend over the SDK's `SQLExecutor`, so any driver plugs in
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SQLExecutor } from '@arkade-os/sdk/repositories/sqlite';
|
|
2
2
|
import { PageRequest, PageResult } from '@arkade-os/sdk';
|
|
3
|
-
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b9 as MarketsCacheEntry } from '../../repository-
|
|
3
|
+
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b9 as MarketsCacheEntry } from '../../repository-rbPbJplG.js';
|
|
4
4
|
import '@arkade-os/solver-discovery';
|
|
5
|
-
import '../../rfq-
|
|
5
|
+
import '../../rfq-BJ8SC_Gp.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* SQLite backend over the SDK's `SQLExecutor`, so any driver plugs in
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DiscoveredMarket } from '@arkade-os/solver-discovery';
|
|
2
2
|
import { IWallet, ProvisionedKey, ProvisionedClaimSecret, ArkProvider, RestIndexerProvider, IContractManager, VHTLC, Identity, Network, InputExpiryFloor, NetworkName, asset, PageRequest, PageResult } from '@arkade-os/sdk';
|
|
3
|
-
import { e as RfqTransport,
|
|
3
|
+
import { e as RfqTransport, E as RfqStatus, O as OnchainHtlc, l as ChainUtxo, C as ChainSource, z as OnchainHtlcPhase } from './rfq-BJ8SC_Gp.cjs';
|
|
4
4
|
|
|
5
5
|
/** @deprecated Use `Outcome`. Moved off the package root to `@arkade-os/swap/protocol`. */
|
|
6
6
|
type AssetSwapStatus = "pending" | "cancelling" | "fulfilled" | "cancelled" | "recoverable" | "awaiting_fill" | "claimable" | "claimed" | "refunded_l1";
|
|
@@ -309,6 +309,12 @@ declare function pushRefundWithoutReceiver(operator: SwapOperator, input: {
|
|
|
309
309
|
left: number;
|
|
310
310
|
spent: readonly LockupVtxo[];
|
|
311
311
|
}>;
|
|
312
|
+
/**
|
|
313
|
+
* How long past `refundLocktime` to keep retrying the push before surfacing the server's refusal.
|
|
314
|
+
* Two hours: MTP (BIP-113) lags wall clock by about an hour, plus room for a slow block. Mirror
|
|
315
|
+
* of `MIN_HEADROOM_SECONDS`, which refuses to FUND without 90 minutes of the same margin.
|
|
316
|
+
*/
|
|
317
|
+
declare const REFUND_MTP_LAG_SECONDS: number;
|
|
312
318
|
|
|
313
319
|
/**
|
|
314
320
|
* Where a monitored RFQ swap stands, and which of those states end it. Its own module so the
|
|
@@ -2332,4 +2338,4 @@ declare class InMemoryAssetSwapRepository implements AssetSwapRepository {
|
|
|
2332
2338
|
[Symbol.asyncDispose](): Promise<void>;
|
|
2333
2339
|
}
|
|
2334
2340
|
|
|
2335
|
-
export { type DisplayDecimal as $, type AssetId as A, type AssetPaymentInput as B, type Corridor as C, type AssetPaymentTerms as D, type AssetRef as E, type AssetScale as F, type AssetSwapId as G, type AtomicDecimal as H, type Instrument as I, type AuctionMarketRef as J, type AuctionProvenance as K, type LockupSpendIndexer as L, BITCOIN_RAILS as M, type NetworkRef as N, type OfferSwapRecord as O, type PinnedAmount as P, type QuoteId as Q, type Rail as R, type SwapRecord as S, BTC_ASSET_PART as T, type BitcoinRail as U, CORRIDORS as V, CORRIDOR_PASS as W, type CardMarketRef as X, type CorridorId as Y, type CorridorKind as Z, type DepositArtifact as _, type RfqSwapRecordStore as a, recordArtifact as a$, type Endpoint as a0, type Ep as a1, type Hex as a2, LOCKUP_OWNER as a3, type MarketBackend as a4, type MarketRef as a5, OFFER_SWAP_ID_PREFIX as a6, type Outcome as a7, type ParsedAssetId as a8, type Quote as a9, bitcoinNetworkOf as aA, btcAssetPart as aB, btcOn as aC, corridorOfRail as aD, corridorOutcome as aE, decodeRfqAmount as aF, encodeRfqAmount as aG, familyOfSwapId as aH, formatAssetId as aI, fromAtomicDecimal as aJ, fromRfqAmountSide as aK, fundingWasNotSubmitted as aL, fundsFromWallet as aM, instrumentOf as aN, isAssetId as aO, isAtomicDecimal as aP, isBtcAsset as aQ, isBtcAssetLenient as aR, isNetworkRef as aS, issuanceOf as aT, legOf as aU, offerOutcome as aV, parseAssetId as aW, quoteIdOfSwapId as aX, railOf as aY, railOfCorridor as aZ, readsChain as a_, type QuoteLeg as aa, RAILS as ab, RFQ_SWAP_ID_PREFIX as ac, type RailOf as ad, type RankedBid as ae, type RawState as af, type ReceiverPaidCarrierQuote as ag, type RecordedArtifact as ah, type RecordedAssetPayment as ai, type RecordedEndpoint as aj, type RecordedInstrument as ak, type RecordedLeg as al, type RestoredMarketRef as am, type RfqAmountSide as an, type SnapshotRef as ao, type Swap as ap, type SwapFamily as aq, type SwapRecordCommon as ar, type SwapUpdate as as, type TaxiIdentity as at, type Unsubscribe as au, type VerifiedCarrierTerms as av, arkadeAsset as aw, artifactOf as ax, assetPartOf as ay, assetSwapIdOf as az, type CorridorSwapRecord as b,
|
|
2341
|
+
export { type DisplayDecimal as $, type AssetId as A, type AssetPaymentInput as B, type Corridor as C, type AssetPaymentTerms as D, type AssetRef as E, type AssetScale as F, type AssetSwapId as G, type AtomicDecimal as H, type Instrument as I, type AuctionMarketRef as J, type AuctionProvenance as K, type LockupSpendIndexer as L, BITCOIN_RAILS as M, type NetworkRef as N, type OfferSwapRecord as O, type PinnedAmount as P, type QuoteId as Q, type Rail as R, type SwapRecord as S, BTC_ASSET_PART as T, type BitcoinRail as U, CORRIDORS as V, CORRIDOR_PASS as W, type CardMarketRef as X, type CorridorId as Y, type CorridorKind as Z, type DepositArtifact as _, type RfqSwapRecordStore as a, recordArtifact as a$, type Endpoint as a0, type Ep as a1, type Hex as a2, LOCKUP_OWNER as a3, type MarketBackend as a4, type MarketRef as a5, OFFER_SWAP_ID_PREFIX as a6, type Outcome as a7, type ParsedAssetId as a8, type Quote as a9, bitcoinNetworkOf as aA, btcAssetPart as aB, btcOn as aC, corridorOfRail as aD, corridorOutcome as aE, decodeRfqAmount as aF, encodeRfqAmount as aG, familyOfSwapId as aH, formatAssetId as aI, fromAtomicDecimal as aJ, fromRfqAmountSide as aK, fundingWasNotSubmitted as aL, fundsFromWallet as aM, instrumentOf as aN, isAssetId as aO, isAtomicDecimal as aP, isBtcAsset as aQ, isBtcAssetLenient as aR, isNetworkRef as aS, issuanceOf as aT, legOf as aU, offerOutcome as aV, parseAssetId as aW, quoteIdOfSwapId as aX, railOf as aY, railOfCorridor as aZ, readsChain as a_, type QuoteLeg as aa, RAILS as ab, RFQ_SWAP_ID_PREFIX as ac, type RailOf as ad, type RankedBid as ae, type RawState as af, type ReceiverPaidCarrierQuote as ag, type RecordedArtifact as ah, type RecordedAssetPayment as ai, type RecordedEndpoint as aj, type RecordedInstrument as ak, type RecordedLeg as al, type RestoredMarketRef as am, type RfqAmountSide as an, type SnapshotRef as ao, type Swap as ap, type SwapFamily as aq, type SwapRecordCommon as ar, type SwapUpdate as as, type TaxiIdentity as at, type Unsubscribe as au, type VerifiedCarrierTerms as av, arkadeAsset as aw, artifactOf as ax, assetPartOf as ay, assetSwapIdOf as az, type CorridorSwapRecord as b, readLockupFate as b$, recordEndpoint as b0, recordInstrument as b1, recordLeg as b2, recordOutcome as b3, sameAsset as b4, swapOf as b5, toAtomicDecimal as b6, toRfqAmountSide as b7, toSafeNumber as b8, type MarketsCacheEntry as b9, type PreimageBlockedReason as bA, PreimageNotRecoverableError as bB, REFUND_MTP_LAG_SECONDS as bC, RFQ_SWAP_RETENTION_SECONDS as bD, type ReceiveLockupSwap as bE, type RfqRestoreFailure as bF, type RfqRestoreOptions as bG, type RfqRestoreResult as bH, type RfqSwapLockup as bI, RfqSwapManager as bJ, type RfqSwapManagerConfig as bK, type RfqSwapManagerDeps as bL, type RfqSwapManagerEvents as bM, type RfqSwapOrigin as bN, RfqSwapOriginRequired as bO, type RfqSwapOutcome as bP, addAssetSwap as bQ, awaitRfqResolution as bR, createRfqSwapRecord as bS, findLockupVtxos as bT, getAssetSwaps as bU, isRfqTerminal as bV, nextOnchainAction as bW, nextOnchainReceiveAction as bX, normalizeRfqSwapRecord as bY, preimageForSwapRecord as bZ, pushRefundWithoutReceiver as b_, InMemoryAssetSwapRepository as ba, type RfqSwapState as bb, type SwapContractRegistry as bc, type SwapOperator as bd, isRfqSwapTerminal as be, type RfqSwapManagerCallbacks as bf, type RfqSwapActionName as bg, type SwapSecretsProjection as bh, type LockupContractSource as bi, type RfqSwap as bj, type ArkadeRefundResult as bk, type LockupVtxo as bl, type AvailableRfqSwapManagerCallbacks as bm, BTC_ASSET_ID as bn, type LightningReceiveSwap as bo, type LightningSendSwap as bp, type LockupFate as bq, LockupNeedsRecoveryError as br, type LockupParams as bs, type LockupSpend as bt, type OnchainReceiveAction as bu, OnchainReceiveNeedsChainSource as bv, type OnchainReceiveSwap as bw, type OnchainSendAction as bx, type OnchainSendSwap as by, type PersistableRfqSwap as bz, type AssetSwapStatus as c, rebuildRfqSwap as c0, rfqSwapOriginOf as c1, shouldRetainRfqSwap as c2, swapSecretsToRecord as c3, updateAssetSwap as c4, updateRfqSwapRecord as c5, type AssetSwapRepository as d, type RfqSwapRecord as e, type RfqSwapPageFilter as f, type RfqSwapPageCursor as g, type AssetSwap as h, type RouteResolution as i, type ResolvedEndpoint as j, type Route as k, type QuoteInput as l, type Pubkey as m, ACTIVITY_TOKEN as n, ARKADE_ASSET_NAMESPACE as o, Amount as p, AmountFormatError as q, type AmountOn as r, type AmountRefusal as s, type ArkadeCarrierChoice as t, type Artifact as u, AssetIdError as v, type AssetIdRefusal as w, type AssetNamespace as x, type AssetOn as y, type AssetPart as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DiscoveredMarket } from '@arkade-os/solver-discovery';
|
|
2
2
|
import { IWallet, ProvisionedKey, ProvisionedClaimSecret, ArkProvider, RestIndexerProvider, IContractManager, VHTLC, Identity, Network, InputExpiryFloor, NetworkName, asset, PageRequest, PageResult } from '@arkade-os/sdk';
|
|
3
|
-
import { e as RfqTransport,
|
|
3
|
+
import { e as RfqTransport, E as RfqStatus, O as OnchainHtlc, l as ChainUtxo, C as ChainSource, z as OnchainHtlcPhase } from './rfq-BJ8SC_Gp.js';
|
|
4
4
|
|
|
5
5
|
/** @deprecated Use `Outcome`. Moved off the package root to `@arkade-os/swap/protocol`. */
|
|
6
6
|
type AssetSwapStatus = "pending" | "cancelling" | "fulfilled" | "cancelled" | "recoverable" | "awaiting_fill" | "claimable" | "claimed" | "refunded_l1";
|
|
@@ -309,6 +309,12 @@ declare function pushRefundWithoutReceiver(operator: SwapOperator, input: {
|
|
|
309
309
|
left: number;
|
|
310
310
|
spent: readonly LockupVtxo[];
|
|
311
311
|
}>;
|
|
312
|
+
/**
|
|
313
|
+
* How long past `refundLocktime` to keep retrying the push before surfacing the server's refusal.
|
|
314
|
+
* Two hours: MTP (BIP-113) lags wall clock by about an hour, plus room for a slow block. Mirror
|
|
315
|
+
* of `MIN_HEADROOM_SECONDS`, which refuses to FUND without 90 minutes of the same margin.
|
|
316
|
+
*/
|
|
317
|
+
declare const REFUND_MTP_LAG_SECONDS: number;
|
|
312
318
|
|
|
313
319
|
/**
|
|
314
320
|
* Where a monitored RFQ swap stands, and which of those states end it. Its own module so the
|
|
@@ -2332,4 +2338,4 @@ declare class InMemoryAssetSwapRepository implements AssetSwapRepository {
|
|
|
2332
2338
|
[Symbol.asyncDispose](): Promise<void>;
|
|
2333
2339
|
}
|
|
2334
2340
|
|
|
2335
|
-
export { type DisplayDecimal as $, type AssetId as A, type AssetPaymentInput as B, type Corridor as C, type AssetPaymentTerms as D, type AssetRef as E, type AssetScale as F, type AssetSwapId as G, type AtomicDecimal as H, type Instrument as I, type AuctionMarketRef as J, type AuctionProvenance as K, type LockupSpendIndexer as L, BITCOIN_RAILS as M, type NetworkRef as N, type OfferSwapRecord as O, type PinnedAmount as P, type QuoteId as Q, type Rail as R, type SwapRecord as S, BTC_ASSET_PART as T, type BitcoinRail as U, CORRIDORS as V, CORRIDOR_PASS as W, type CardMarketRef as X, type CorridorId as Y, type CorridorKind as Z, type DepositArtifact as _, type RfqSwapRecordStore as a, recordArtifact as a$, type Endpoint as a0, type Ep as a1, type Hex as a2, LOCKUP_OWNER as a3, type MarketBackend as a4, type MarketRef as a5, OFFER_SWAP_ID_PREFIX as a6, type Outcome as a7, type ParsedAssetId as a8, type Quote as a9, bitcoinNetworkOf as aA, btcAssetPart as aB, btcOn as aC, corridorOfRail as aD, corridorOutcome as aE, decodeRfqAmount as aF, encodeRfqAmount as aG, familyOfSwapId as aH, formatAssetId as aI, fromAtomicDecimal as aJ, fromRfqAmountSide as aK, fundingWasNotSubmitted as aL, fundsFromWallet as aM, instrumentOf as aN, isAssetId as aO, isAtomicDecimal as aP, isBtcAsset as aQ, isBtcAssetLenient as aR, isNetworkRef as aS, issuanceOf as aT, legOf as aU, offerOutcome as aV, parseAssetId as aW, quoteIdOfSwapId as aX, railOf as aY, railOfCorridor as aZ, readsChain as a_, type QuoteLeg as aa, RAILS as ab, RFQ_SWAP_ID_PREFIX as ac, type RailOf as ad, type RankedBid as ae, type RawState as af, type ReceiverPaidCarrierQuote as ag, type RecordedArtifact as ah, type RecordedAssetPayment as ai, type RecordedEndpoint as aj, type RecordedInstrument as ak, type RecordedLeg as al, type RestoredMarketRef as am, type RfqAmountSide as an, type SnapshotRef as ao, type Swap as ap, type SwapFamily as aq, type SwapRecordCommon as ar, type SwapUpdate as as, type TaxiIdentity as at, type Unsubscribe as au, type VerifiedCarrierTerms as av, arkadeAsset as aw, artifactOf as ax, assetPartOf as ay, assetSwapIdOf as az, type CorridorSwapRecord as b,
|
|
2341
|
+
export { type DisplayDecimal as $, type AssetId as A, type AssetPaymentInput as B, type Corridor as C, type AssetPaymentTerms as D, type AssetRef as E, type AssetScale as F, type AssetSwapId as G, type AtomicDecimal as H, type Instrument as I, type AuctionMarketRef as J, type AuctionProvenance as K, type LockupSpendIndexer as L, BITCOIN_RAILS as M, type NetworkRef as N, type OfferSwapRecord as O, type PinnedAmount as P, type QuoteId as Q, type Rail as R, type SwapRecord as S, BTC_ASSET_PART as T, type BitcoinRail as U, CORRIDORS as V, CORRIDOR_PASS as W, type CardMarketRef as X, type CorridorId as Y, type CorridorKind as Z, type DepositArtifact as _, type RfqSwapRecordStore as a, recordArtifact as a$, type Endpoint as a0, type Ep as a1, type Hex as a2, LOCKUP_OWNER as a3, type MarketBackend as a4, type MarketRef as a5, OFFER_SWAP_ID_PREFIX as a6, type Outcome as a7, type ParsedAssetId as a8, type Quote as a9, bitcoinNetworkOf as aA, btcAssetPart as aB, btcOn as aC, corridorOfRail as aD, corridorOutcome as aE, decodeRfqAmount as aF, encodeRfqAmount as aG, familyOfSwapId as aH, formatAssetId as aI, fromAtomicDecimal as aJ, fromRfqAmountSide as aK, fundingWasNotSubmitted as aL, fundsFromWallet as aM, instrumentOf as aN, isAssetId as aO, isAtomicDecimal as aP, isBtcAsset as aQ, isBtcAssetLenient as aR, isNetworkRef as aS, issuanceOf as aT, legOf as aU, offerOutcome as aV, parseAssetId as aW, quoteIdOfSwapId as aX, railOf as aY, railOfCorridor as aZ, readsChain as a_, type QuoteLeg as aa, RAILS as ab, RFQ_SWAP_ID_PREFIX as ac, type RailOf as ad, type RankedBid as ae, type RawState as af, type ReceiverPaidCarrierQuote as ag, type RecordedArtifact as ah, type RecordedAssetPayment as ai, type RecordedEndpoint as aj, type RecordedInstrument as ak, type RecordedLeg as al, type RestoredMarketRef as am, type RfqAmountSide as an, type SnapshotRef as ao, type Swap as ap, type SwapFamily as aq, type SwapRecordCommon as ar, type SwapUpdate as as, type TaxiIdentity as at, type Unsubscribe as au, type VerifiedCarrierTerms as av, arkadeAsset as aw, artifactOf as ax, assetPartOf as ay, assetSwapIdOf as az, type CorridorSwapRecord as b, readLockupFate as b$, recordEndpoint as b0, recordInstrument as b1, recordLeg as b2, recordOutcome as b3, sameAsset as b4, swapOf as b5, toAtomicDecimal as b6, toRfqAmountSide as b7, toSafeNumber as b8, type MarketsCacheEntry as b9, type PreimageBlockedReason as bA, PreimageNotRecoverableError as bB, REFUND_MTP_LAG_SECONDS as bC, RFQ_SWAP_RETENTION_SECONDS as bD, type ReceiveLockupSwap as bE, type RfqRestoreFailure as bF, type RfqRestoreOptions as bG, type RfqRestoreResult as bH, type RfqSwapLockup as bI, RfqSwapManager as bJ, type RfqSwapManagerConfig as bK, type RfqSwapManagerDeps as bL, type RfqSwapManagerEvents as bM, type RfqSwapOrigin as bN, RfqSwapOriginRequired as bO, type RfqSwapOutcome as bP, addAssetSwap as bQ, awaitRfqResolution as bR, createRfqSwapRecord as bS, findLockupVtxos as bT, getAssetSwaps as bU, isRfqTerminal as bV, nextOnchainAction as bW, nextOnchainReceiveAction as bX, normalizeRfqSwapRecord as bY, preimageForSwapRecord as bZ, pushRefundWithoutReceiver as b_, InMemoryAssetSwapRepository as ba, type RfqSwapState as bb, type SwapContractRegistry as bc, type SwapOperator as bd, isRfqSwapTerminal as be, type RfqSwapManagerCallbacks as bf, type RfqSwapActionName as bg, type SwapSecretsProjection as bh, type LockupContractSource as bi, type RfqSwap as bj, type ArkadeRefundResult as bk, type LockupVtxo as bl, type AvailableRfqSwapManagerCallbacks as bm, BTC_ASSET_ID as bn, type LightningReceiveSwap as bo, type LightningSendSwap as bp, type LockupFate as bq, LockupNeedsRecoveryError as br, type LockupParams as bs, type LockupSpend as bt, type OnchainReceiveAction as bu, OnchainReceiveNeedsChainSource as bv, type OnchainReceiveSwap as bw, type OnchainSendAction as bx, type OnchainSendSwap as by, type PersistableRfqSwap as bz, type AssetSwapStatus as c, rebuildRfqSwap as c0, rfqSwapOriginOf as c1, shouldRetainRfqSwap as c2, swapSecretsToRecord as c3, updateAssetSwap as c4, updateRfqSwapRecord as c5, type AssetSwapRepository as d, type RfqSwapRecord as e, type RfqSwapPageFilter as f, type RfqSwapPageCursor as g, type AssetSwap as h, type RouteResolution as i, type ResolvedEndpoint as j, type Route as k, type QuoteInput as l, type Pubkey as m, ACTIVITY_TOKEN as n, ARKADE_ASSET_NAMESPACE as o, Amount as p, AmountFormatError as q, type AmountOn as r, type AmountRefusal as s, type ArkadeCarrierChoice as t, type Artifact as u, AssetIdError as v, type AssetIdRefusal as w, type AssetNamespace as x, type AssetOn as y, type AssetPart as z };
|
|
@@ -745,6 +745,11 @@ declare function requestOnchainSend(wallet: IWallet, transport: RfqTransport, pa
|
|
|
745
745
|
* `mustPersistPreimage` says the wallet could not derive P. */
|
|
746
746
|
secrets: ProvisionedClaimSecret;
|
|
747
747
|
}>;
|
|
748
|
+
/**
|
|
749
|
+
* Default floor for the window between the last moment the hold invoice can
|
|
750
|
+
* be paid and the solver's refund leaf opening.
|
|
751
|
+
*/
|
|
752
|
+
declare const MIN_CLAIM_WINDOW_SECONDS: number;
|
|
748
753
|
/**
|
|
749
754
|
* Bind the SOLVER's hold invoice to the quote and to the trader's own `H`.
|
|
750
755
|
*
|
|
@@ -970,4 +975,4 @@ declare function requestOnchainReceive(wallet: IWallet, transport: RfqTransport,
|
|
|
970
975
|
secrets: ProvisionedClaimSecret;
|
|
971
976
|
}>;
|
|
972
977
|
|
|
973
|
-
export {
|
|
978
|
+
export { l1ScriptForAddress as $, ARKADE_BTC as A, type RelaySocket as B, type ChainSource as C, type RfqRefusalReason as D, type RfqStatus as E, arkadeAssetLeg as F, arkadeSwapRequest as G, type HtlcUtxo as H, type InvoiceFacts as I, assertArkadeFundable as J, awaitOnchainFill as K, type LightningSendContractParams as L, MAX_MIN_CONFIRMATIONS as M, buildHtlcClaim as N, type OnchainHtlc as O, buildHtlcRefund as P, canonicalAssetAmount as Q, type RfqQuote as R, SwapRefusal as S, type TxStatus as T, claimOnchainFill as U, classifyOnchainHtlc as V, deriveLightningReceive as W, deriveOnchainReceive as X, deriveOnchainSend as Y, extractPreimage as Z, httpTransport as _, RFQ_REFUSAL_ERROR_CODES as a, lightningReceiveContract as a0, lightningReceiveRequest as a1, lightningSendContract as a2, lightningSendRequest as a3, newPreimage as a4, normalizeMakerPkScript as a5, normalizeMakerPublicKey as a6, onchainHtlcScript as a7, onchainReceiveRequest as a8, onchainSendRequest as a9, paymentHashOf as aa, relayTransport as ab, requestArkadeSwap as ac, requestLightningReceive as ad, requestOnchainReceive as ae, unilateralClaimDelay as af, unilateralRefundDelay as ag, unilateralRefundWithoutReceiverDelay as ah, verifyLockupAddress as ai, verifyOfferAddress as aj, verifyReceiveInvoice as ak, type RfqRefusalDetail as b, type RfqRefusalErrorCode as c, type RfqRefusalUnit as d, type RfqTransport as e, type LightningReceiveContractParams as f, type OnchainHtlcParams as g, type OnchainNetwork as h, isRfqRefusalErrorCode as i, requestOnchainSend as j, AddressMismatch as k, type ChainUtxo as l, LIGHTNING_BTC as m, LIGHTNING_RECEIVE_PAIR as n, LIGHTNING_SEND_PAIR as o, LOCKTIME_THRESHOLD as p, MIN_CLAIM_WINDOW_SECONDS as q, requestLightningSend as r, ONCHAIN_BTC as s, ONCHAIN_CLAIM_MARGIN_SECONDS as t, ONCHAIN_DUST_SATS as u, ONCHAIN_ORDER_MARGIN_SECONDS as v, ONCHAIN_RECEIVE_PAIR as w, ONCHAIN_SECONDS_PER_BLOCK as x, ONCHAIN_SEND_PAIR as y, type OnchainHtlcPhase as z };
|
|
@@ -745,6 +745,11 @@ declare function requestOnchainSend(wallet: IWallet, transport: RfqTransport, pa
|
|
|
745
745
|
* `mustPersistPreimage` says the wallet could not derive P. */
|
|
746
746
|
secrets: ProvisionedClaimSecret;
|
|
747
747
|
}>;
|
|
748
|
+
/**
|
|
749
|
+
* Default floor for the window between the last moment the hold invoice can
|
|
750
|
+
* be paid and the solver's refund leaf opening.
|
|
751
|
+
*/
|
|
752
|
+
declare const MIN_CLAIM_WINDOW_SECONDS: number;
|
|
748
753
|
/**
|
|
749
754
|
* Bind the SOLVER's hold invoice to the quote and to the trader's own `H`.
|
|
750
755
|
*
|
|
@@ -970,4 +975,4 @@ declare function requestOnchainReceive(wallet: IWallet, transport: RfqTransport,
|
|
|
970
975
|
secrets: ProvisionedClaimSecret;
|
|
971
976
|
}>;
|
|
972
977
|
|
|
973
|
-
export {
|
|
978
|
+
export { l1ScriptForAddress as $, ARKADE_BTC as A, type RelaySocket as B, type ChainSource as C, type RfqRefusalReason as D, type RfqStatus as E, arkadeAssetLeg as F, arkadeSwapRequest as G, type HtlcUtxo as H, type InvoiceFacts as I, assertArkadeFundable as J, awaitOnchainFill as K, type LightningSendContractParams as L, MAX_MIN_CONFIRMATIONS as M, buildHtlcClaim as N, type OnchainHtlc as O, buildHtlcRefund as P, canonicalAssetAmount as Q, type RfqQuote as R, SwapRefusal as S, type TxStatus as T, claimOnchainFill as U, classifyOnchainHtlc as V, deriveLightningReceive as W, deriveOnchainReceive as X, deriveOnchainSend as Y, extractPreimage as Z, httpTransport as _, RFQ_REFUSAL_ERROR_CODES as a, lightningReceiveContract as a0, lightningReceiveRequest as a1, lightningSendContract as a2, lightningSendRequest as a3, newPreimage as a4, normalizeMakerPkScript as a5, normalizeMakerPublicKey as a6, onchainHtlcScript as a7, onchainReceiveRequest as a8, onchainSendRequest as a9, paymentHashOf as aa, relayTransport as ab, requestArkadeSwap as ac, requestLightningReceive as ad, requestOnchainReceive as ae, unilateralClaimDelay as af, unilateralRefundDelay as ag, unilateralRefundWithoutReceiverDelay as ah, verifyLockupAddress as ai, verifyOfferAddress as aj, verifyReceiveInvoice as ak, type RfqRefusalDetail as b, type RfqRefusalErrorCode as c, type RfqRefusalUnit as d, type RfqTransport as e, type LightningReceiveContractParams as f, type OnchainHtlcParams as g, type OnchainNetwork as h, isRfqRefusalErrorCode as i, requestOnchainSend as j, AddressMismatch as k, type ChainUtxo as l, LIGHTNING_BTC as m, LIGHTNING_RECEIVE_PAIR as n, LIGHTNING_SEND_PAIR as o, LOCKTIME_THRESHOLD as p, MIN_CLAIM_WINDOW_SECONDS as q, requestLightningSend as r, ONCHAIN_BTC as s, ONCHAIN_CLAIM_MARGIN_SECONDS as t, ONCHAIN_DUST_SATS as u, ONCHAIN_ORDER_MARGIN_SECONDS as v, ONCHAIN_RECEIVE_PAIR as w, ONCHAIN_SECONDS_PER_BLOCK as x, ONCHAIN_SEND_PAIR as y, type OnchainHtlcPhase as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IWallet } from '@arkade-os/sdk';
|
|
2
|
-
import { c as AssetSwapStatus, d as AssetSwapRepository, h as AssetSwap } from './repository-
|
|
2
|
+
import { c as AssetSwapStatus, d as AssetSwapRepository, h as AssetSwap } from './repository-DRlPgbU8.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* What this watcher needs to know about an offer swap, narrower than {@link AssetSwap}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IWallet } from '@arkade-os/sdk';
|
|
2
|
-
import { c as AssetSwapStatus, d as AssetSwapRepository, h as AssetSwap } from './repository-
|
|
2
|
+
import { c as AssetSwapStatus, d as AssetSwapRepository, h as AssetSwap } from './repository-rbPbJplG.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* What this watcher needs to know about an offer swap, narrower than {@link AssetSwap}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkade-os/swap",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Client-side Arkade Intents asset swaps: state a route, get an outcome. Pay a bolt11 invoice, receive over Lightning, exchange assets, or withdraw onchain.",
|
|
6
6
|
"repository": {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@scure/base": "2.4.0",
|
|
105
105
|
"@scure/btc-signer": "2.4.1",
|
|
106
106
|
"light-bolt11-decoder": "3.2.0",
|
|
107
|
-
"@arkade-os/sdk": "0.5.0-rc.
|
|
107
|
+
"@arkade-os/sdk": "0.5.0-rc.26"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
110
|
"nostr-tools": "2.24.1"
|