@arkade-os/swap 0.1.0-rc.25 → 0.1.0-rc.26
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 +1823 -627
- package/dist/advanced.d.cts +9 -8
- package/dist/advanced.d.ts +9 -8
- package/dist/advanced.js +41 -23
- package/dist/{chunk-5PI54AVY.js → chunk-6O3L4AVI.js} +567 -294
- package/dist/{chunk-UFJEO4VV.js → chunk-DHFKCTER.js} +567 -99
- package/dist/{chunk-CZHB3ZDG.js → chunk-XBMWEK43.js} +536 -134
- package/dist/index.cjs +1856 -662
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +29 -13
- package/dist/{lockupContract-5r5RlgOJ.d.cts → lockupContract-BTCE7g83.d.ts} +8 -1
- package/dist/{lockupContract-5r5RlgOJ.d.ts → lockupContract-BTCGwjRH.d.cts} +8 -1
- package/dist/node/index.d.cts +39 -22
- package/dist/node/index.d.ts +39 -22
- package/dist/nostr.cjs +38 -0
- package/dist/nostr.d.cts +1 -1
- package/dist/nostr.d.ts +1 -1
- package/dist/nostr.js +1 -1
- package/dist/{offer-N2oXLfLX.d.cts → offer-CsXgroM0.d.cts} +26 -18
- package/dist/{offer-cE8qJmbC.d.ts → offer-DYCiKDm6.d.ts} +26 -18
- package/dist/{errors-Ckp_FRdo.d.ts → offerFillPlan-BQnzburi.d.ts} +55 -6
- package/dist/{errors-DXjXCHYp.d.cts → offerFillPlan-CFT8qgTV.d.cts} +55 -6
- package/dist/protocol.cjs +699 -333
- package/dist/protocol.d.cts +8 -8
- package/dist/protocol.d.ts +8 -8
- package/dist/protocol.js +8 -6
- 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-DITDhUdX.d.ts → repository-Bgn0apiL.d.cts} +75 -25
- package/dist/{repository-yN-i_u-0.d.cts → repository-CSJXRd5N.d.ts} +75 -25
- package/dist/{rfq-BgdgO9OO.d.cts → rfq-m9tCbQx7.d.cts} +2 -0
- package/dist/{rfq-BgdgO9OO.d.ts → rfq-m9tCbQx7.d.ts} +2 -0
- package/dist/{watch-Bws1mS0R.d.cts → watch-CLJXFpMq.d.cts} +1 -1
- package/dist/{watch-G0Z7yJZb.d.ts → watch-D0R7YhYg.d.ts} +1 -1
- package/package.json +2 -2
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 './
|
|
2
|
-
export { e as AcceptConflict, f as AcceptInput, g as
|
|
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-CFT8qgTV.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 createSwapClient, aR as createSwapDrive, aS as deepFreeze, aT as digestJointGraph, aU as discoveryIndex, aV as eligibleMarkets, aW as enforceFeeCeiling, aX as exchange, aY as feedFetch, aZ as feedSpread, a_ as isAddressable, a$ as isCardMarket, b0 as isIndexedNetwork, b1 as isSwapError, b2 as isUsableCard, b3 as liveArkadeInfo, b4 as marketBackendOf, b5 as marketKeyOf, b6 as marketRefOf, b7 as nostrTransportFactory, b8 as parseRfqQuote, b9 as pay, ba as quoteFromFeed, bb as quoteViaRfq, bc as readableRecord, bd as receive, be as resolveCorridorBase, bf as resolveCorridorDeps, bg as rfqLeg, bh as rfqPairFor, bi as swapRecordOf, bj as toDiscoveryLeg, bk as unsignedPsbtBytes, bl as usableMarkets, bm as verifyJointGraph, bn as verifyOfferFillPlan, bo as verifyPlanLegs, bp as withCanonicalAmount } from './offerFillPlan-CFT8qgTV.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
|
|
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-Bgn0apiL.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-Bgn0apiL.cjs';
|
|
6
|
+
import { I as InvoiceFacts, C as ChainSource, R as RfqQuote } from './rfq-m9tCbQx7.cjs';
|
|
7
|
+
export { S as SwapRefusal } from './rfq-m9tCbQx7.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-CLJXFpMq.cjs';
|
|
11
|
+
import './offer-CsXgroM0.cjs';
|
|
12
12
|
|
|
13
13
|
/** The EVM leg's namespace. Which chain is the quote's `evm_chain_id`, not the pair. */
|
|
14
14
|
declare const EVM_CHAIN = "ethereum";
|
|
@@ -353,6 +353,7 @@ admits?: (record: CorridorSwapRecord) => boolean) => CorridorRecordStore;
|
|
|
353
353
|
/** A v2 offer record as the watcher and coverage read one. */
|
|
354
354
|
declare const offerFactsOf: (record: OfferSwapRecord) => OfferSwapFacts & {
|
|
355
355
|
id: QuoteId;
|
|
356
|
+
coverageId: QuoteId;
|
|
356
357
|
};
|
|
357
358
|
/** The v2 offer half of the record store, as the watcher's source. */
|
|
358
359
|
declare const offerRecordSource: (repository: AssetSwapRepository, onRecord?: RecordSink, now?: () => number) => OfferSwapSource<OfferSwapFacts & {
|
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 './
|
|
2
|
-
export { e as AcceptConflict, f as AcceptInput, g as
|
|
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-BQnzburi.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 createSwapClient, aR as createSwapDrive, aS as deepFreeze, aT as digestJointGraph, aU as discoveryIndex, aV as eligibleMarkets, aW as enforceFeeCeiling, aX as exchange, aY as feedFetch, aZ as feedSpread, a_ as isAddressable, a$ as isCardMarket, b0 as isIndexedNetwork, b1 as isSwapError, b2 as isUsableCard, b3 as liveArkadeInfo, b4 as marketBackendOf, b5 as marketKeyOf, b6 as marketRefOf, b7 as nostrTransportFactory, b8 as parseRfqQuote, b9 as pay, ba as quoteFromFeed, bb as quoteViaRfq, bc as readableRecord, bd as receive, be as resolveCorridorBase, bf as resolveCorridorDeps, bg as rfqLeg, bh as rfqPairFor, bi as swapRecordOf, bj as toDiscoveryLeg, bk as unsignedPsbtBytes, bl as usableMarkets, bm as verifyJointGraph, bn as verifyOfferFillPlan, bo as verifyPlanLegs, bp as withCanonicalAmount } from './offerFillPlan-BQnzburi.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
|
|
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-CSJXRd5N.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-CSJXRd5N.js';
|
|
6
|
+
import { I as InvoiceFacts, C as ChainSource, R as RfqQuote } from './rfq-m9tCbQx7.js';
|
|
7
|
+
export { S as SwapRefusal } from './rfq-m9tCbQx7.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-D0R7YhYg.js';
|
|
11
|
+
import './offer-DYCiKDm6.js';
|
|
12
12
|
|
|
13
13
|
/** The EVM leg's namespace. Which chain is the quote's `evm_chain_id`, not the pair. */
|
|
14
14
|
declare const EVM_CHAIN = "ethereum";
|
|
@@ -353,6 +353,7 @@ admits?: (record: CorridorSwapRecord) => boolean) => CorridorRecordStore;
|
|
|
353
353
|
/** A v2 offer record as the watcher and coverage read one. */
|
|
354
354
|
declare const offerFactsOf: (record: OfferSwapRecord) => OfferSwapFacts & {
|
|
355
355
|
id: QuoteId;
|
|
356
|
+
coverageId: QuoteId;
|
|
356
357
|
};
|
|
357
358
|
/** The v2 offer half of the record store, as the watcher's source. */
|
|
358
359
|
declare const offerRecordSource: (repository: AssetSwapRepository, onRecord?: RecordSink, now?: () => number) => OfferSwapSource<OfferSwapFacts & {
|
package/dist/advanced.js
CHANGED
|
@@ -2,9 +2,7 @@ import {
|
|
|
2
2
|
ARKADE_ASSET_NAMESPACE,
|
|
3
3
|
AcceptConflict,
|
|
4
4
|
AmbiguousDestination,
|
|
5
|
-
Amount,
|
|
6
5
|
AmountEncodingUnsupported,
|
|
7
|
-
AmountFormatError,
|
|
8
6
|
AmountMismatch,
|
|
9
7
|
AssetIdError,
|
|
10
8
|
BITCOIN_RAILS,
|
|
@@ -22,14 +20,14 @@ import {
|
|
|
22
20
|
MaxFeeExceeded,
|
|
23
21
|
MissingCorridorDep,
|
|
24
22
|
NotCancellable,
|
|
25
|
-
|
|
23
|
+
OFFER_FILL_OWNERS,
|
|
24
|
+
OFFER_FILL_TEMPLATE,
|
|
26
25
|
ONCHAIN_CLAIM_FEE_RATE_SATVB,
|
|
27
26
|
OperatorUnreachable,
|
|
28
27
|
QuoteExpired,
|
|
29
28
|
QuoteVerificationFailed,
|
|
30
29
|
RAILS,
|
|
31
30
|
REGISTRY_URL,
|
|
32
|
-
RFQ_SWAP_ID_PREFIX,
|
|
33
31
|
SWAP_ERROR_NAMES,
|
|
34
32
|
SwapDriveRefusedError,
|
|
35
33
|
UnsupportedRoute,
|
|
@@ -38,14 +36,13 @@ import {
|
|
|
38
36
|
applyOfferSpend,
|
|
39
37
|
arkadeAsset,
|
|
40
38
|
arkadeCorridor,
|
|
41
|
-
artifactOf,
|
|
42
39
|
assembleRoute,
|
|
43
40
|
assetPartOf,
|
|
44
|
-
assetSwapIdOf,
|
|
45
41
|
attesting,
|
|
46
42
|
bitcoinNetworkOf,
|
|
47
43
|
btcAssetPart,
|
|
48
44
|
btcOn,
|
|
45
|
+
buildOfferFillPlan,
|
|
49
46
|
cancelSwap,
|
|
50
47
|
canonicalAssetId,
|
|
51
48
|
cardMarketOf,
|
|
@@ -59,6 +56,8 @@ import {
|
|
|
59
56
|
createSwapDrive,
|
|
60
57
|
decodeBolt11,
|
|
61
58
|
decodeRfqAmount,
|
|
59
|
+
deepFreeze,
|
|
60
|
+
digestJointGraph,
|
|
62
61
|
discoveryIndex,
|
|
63
62
|
eligibleMarkets,
|
|
64
63
|
encodeRfqAmount,
|
|
@@ -66,18 +65,13 @@ import {
|
|
|
66
65
|
esploraChainSource,
|
|
67
66
|
esploraTip,
|
|
68
67
|
exchange,
|
|
69
|
-
familyOfSwapId,
|
|
70
68
|
fateMoved,
|
|
71
69
|
feedFetch,
|
|
72
70
|
feedSpread,
|
|
73
71
|
formatAssetId,
|
|
74
|
-
fromAtomicDecimal,
|
|
75
72
|
fromRfqAmountSide,
|
|
76
|
-
fundsFromWallet,
|
|
77
|
-
instrumentOf,
|
|
78
73
|
isAddressable,
|
|
79
74
|
isAssetId,
|
|
80
|
-
isAtomicDecimal,
|
|
81
75
|
isBtcAsset,
|
|
82
76
|
isBtcAssetLenient,
|
|
83
77
|
isCardMarket,
|
|
@@ -86,7 +80,6 @@ import {
|
|
|
86
80
|
isSwapError,
|
|
87
81
|
isUsableCard,
|
|
88
82
|
issuanceOf,
|
|
89
|
-
legOf,
|
|
90
83
|
liveArkadeInfo,
|
|
91
84
|
marketBackendOf,
|
|
92
85
|
marketKeyOf,
|
|
@@ -100,16 +93,11 @@ import {
|
|
|
100
93
|
pay,
|
|
101
94
|
publicAssetId,
|
|
102
95
|
quoteFromFeed,
|
|
103
|
-
quoteIdOfSwapId,
|
|
104
96
|
quoteViaRfq,
|
|
105
97
|
railOf,
|
|
106
98
|
railOfCorridor,
|
|
107
99
|
readableRecord,
|
|
108
100
|
receive,
|
|
109
|
-
recordArtifact,
|
|
110
|
-
recordEndpoint,
|
|
111
|
-
recordInstrument,
|
|
112
|
-
recordLeg,
|
|
113
101
|
resolveCorridorBase,
|
|
114
102
|
resolveCorridorDeps,
|
|
115
103
|
resolveRoute,
|
|
@@ -122,15 +110,16 @@ import {
|
|
|
122
110
|
satsOf,
|
|
123
111
|
scopedToRail,
|
|
124
112
|
splitRecords,
|
|
125
|
-
swapOf,
|
|
126
113
|
swapRecordOf,
|
|
127
|
-
toAtomicDecimal,
|
|
128
114
|
toDiscoveryLeg,
|
|
129
115
|
toRfqAmountSide,
|
|
130
116
|
toSafeNumber,
|
|
117
|
+
unsignedPsbtBytes,
|
|
131
118
|
usableMarkets,
|
|
132
119
|
verifiedCarrierSats,
|
|
133
120
|
verifyCrossAssetAmount,
|
|
121
|
+
verifyJointGraph,
|
|
122
|
+
verifyOfferFillPlan,
|
|
134
123
|
verifyPair,
|
|
135
124
|
verifyPlanLegs,
|
|
136
125
|
verifyQuoteTtl,
|
|
@@ -146,22 +135,42 @@ import {
|
|
|
146
135
|
withCanonicalAmount,
|
|
147
136
|
withDepositFate,
|
|
148
137
|
withRfqState
|
|
149
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-6O3L4AVI.js";
|
|
150
139
|
import {
|
|
151
140
|
ACTIVITY_TOKEN,
|
|
141
|
+
Amount,
|
|
142
|
+
AmountFormatError,
|
|
152
143
|
CORRIDOR_PASS,
|
|
153
144
|
INVOICE_HRPS,
|
|
154
145
|
LIGHTNING_DRIVE,
|
|
155
146
|
LOCKUP_OWNER,
|
|
147
|
+
OFFER_SWAP_ID_PREFIX,
|
|
156
148
|
ONCHAIN_DRIVE,
|
|
149
|
+
RFQ_SWAP_ID_PREFIX,
|
|
150
|
+
artifactOf,
|
|
151
|
+
assetSwapIdOf,
|
|
157
152
|
corridorOutcome,
|
|
153
|
+
familyOfSwapId,
|
|
154
|
+
fromAtomicDecimal,
|
|
155
|
+
fundingWasNotSubmitted,
|
|
156
|
+
fundsFromWallet,
|
|
157
|
+
instrumentOf,
|
|
158
|
+
isAtomicDecimal,
|
|
159
|
+
legOf,
|
|
158
160
|
lightningCorridor,
|
|
159
161
|
networksOfInvoiceHrp,
|
|
160
162
|
offerOutcome,
|
|
161
163
|
onchainCorridor,
|
|
164
|
+
quoteIdOfSwapId,
|
|
162
165
|
readsChain,
|
|
163
|
-
|
|
164
|
-
|
|
166
|
+
recordArtifact,
|
|
167
|
+
recordEndpoint,
|
|
168
|
+
recordInstrument,
|
|
169
|
+
recordLeg,
|
|
170
|
+
recordOutcome,
|
|
171
|
+
swapOf,
|
|
172
|
+
toAtomicDecimal
|
|
173
|
+
} from "./chunk-XBMWEK43.js";
|
|
165
174
|
import {
|
|
166
175
|
ARKADE_BTC,
|
|
167
176
|
SwapRefusal,
|
|
@@ -169,7 +178,7 @@ import {
|
|
|
169
178
|
assertPreimageMatches,
|
|
170
179
|
rfqPair,
|
|
171
180
|
sealClaimPacket
|
|
172
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-DHFKCTER.js";
|
|
173
182
|
import "./chunk-A3SHHRX4.js";
|
|
174
183
|
|
|
175
184
|
// src/reveal.ts
|
|
@@ -550,6 +559,8 @@ export {
|
|
|
550
559
|
MaxFeeExceeded,
|
|
551
560
|
MissingCorridorDep,
|
|
552
561
|
NotCancellable,
|
|
562
|
+
OFFER_FILL_OWNERS,
|
|
563
|
+
OFFER_FILL_TEMPLATE,
|
|
553
564
|
OFFER_SWAP_ID_PREFIX,
|
|
554
565
|
ONCHAIN_CLAIM_FEE_RATE_SATVB,
|
|
555
566
|
ONCHAIN_DRIVE,
|
|
@@ -576,6 +587,7 @@ export {
|
|
|
576
587
|
bitcoinNetworkOf,
|
|
577
588
|
btcAssetPart,
|
|
578
589
|
btcOn,
|
|
590
|
+
buildOfferFillPlan,
|
|
579
591
|
cancelSwap,
|
|
580
592
|
canonicalAssetId,
|
|
581
593
|
cardMarketOf,
|
|
@@ -591,6 +603,8 @@ export {
|
|
|
591
603
|
createSwapDrive,
|
|
592
604
|
decodeBolt11,
|
|
593
605
|
decodeRfqAmount,
|
|
606
|
+
deepFreeze,
|
|
607
|
+
digestJointGraph,
|
|
594
608
|
discoveryIndex,
|
|
595
609
|
eligibleMarkets,
|
|
596
610
|
encodeRfqAmount,
|
|
@@ -616,6 +630,7 @@ export {
|
|
|
616
630
|
formatAssetId,
|
|
617
631
|
fromAtomicDecimal,
|
|
618
632
|
fromRfqAmountSide,
|
|
633
|
+
fundingWasNotSubmitted,
|
|
619
634
|
fundsFromWallet,
|
|
620
635
|
instrumentOf,
|
|
621
636
|
isAddressable,
|
|
@@ -681,9 +696,12 @@ export {
|
|
|
681
696
|
toDiscoveryLeg,
|
|
682
697
|
toRfqAmountSide,
|
|
683
698
|
toSafeNumber,
|
|
699
|
+
unsignedPsbtBytes,
|
|
684
700
|
usableMarkets,
|
|
685
701
|
verifiedCarrierSats,
|
|
686
702
|
verifyCrossAssetAmount,
|
|
703
|
+
verifyJointGraph,
|
|
704
|
+
verifyOfferFillPlan,
|
|
687
705
|
verifyPair,
|
|
688
706
|
verifyPlanLegs,
|
|
689
707
|
verifyQuoteTtl,
|