@arkade-os/swap 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/advanced.cjs +14 -11
- package/dist/advanced.d.cts +8 -8
- package/dist/advanced.d.ts +8 -8
- package/dist/advanced.js +5 -3
- package/dist/{chunk-2AQYBSF5.js → chunk-7BBQ74BG.js} +13 -13
- package/dist/{chunk-G5QURHVP.js → chunk-GJKGPE3S.js} +3 -3
- package/dist/{chunk-6HKTAZLJ.js → chunk-HDCC3JZR.js} +12 -10
- package/dist/index.cjs +11 -11
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +3 -3
- package/dist/{lockupContract-D-OpxRSX.d.ts → lockupContract-CdXh9yIr.d.ts} +1 -1
- package/dist/{lockupContract-AwSwif9u.d.cts → lockupContract-QfbsjyXG.d.cts} +1 -1
- package/dist/node/index.cjs +37 -37
- package/dist/node/index.js +37 -37
- package/dist/nostr.d.cts +1 -1
- package/dist/nostr.d.ts +1 -1
- package/dist/nostr.js +1 -1
- package/dist/{offer-BEcW5o7V.d.cts → offer-BxzPQ6zh.d.cts} +11 -11
- package/dist/{offer-4Ir1bRQV.d.ts → offer-Q1lVhrVX.d.ts} +11 -11
- package/dist/{offerFillPlan-DvrHfYoH.d.cts → offerFillPlan-CvKlB246.d.cts} +16 -11
- package/dist/{offerFillPlan-bsyVMum3.d.ts → offerFillPlan-_PhFt4B1.d.ts} +16 -11
- package/dist/protocol.cjs +12 -12
- package/dist/protocol.d.cts +8 -8
- package/dist/protocol.d.ts +8 -8
- package/dist/protocol.js +2 -2
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.cjs +37 -37
- package/dist/repositories/sqlite/index.d.cts +3 -3
- package/dist/repositories/sqlite/index.d.ts +3 -3
- package/dist/repositories/sqlite/index.js +37 -37
- package/dist/{repository-ChRNknNn.d.ts → repository-BOQ1qYoj.d.ts} +7 -7
- package/dist/{repository-BW42Dtct.d.cts → repository-Cut4eEkm.d.cts} +7 -7
- package/dist/{rfq-C0tHOvn6.d.cts → rfq-CP-P0PSL.d.cts} +7 -7
- package/dist/{rfq-C0tHOvn6.d.ts → rfq-CP-P0PSL.d.ts} +7 -7
- package/dist/{watch-B_Q0ddHg.d.ts → watch-D15U0QpD.d.ts} +1 -1
- package/dist/{watch-CpnfqYCE.d.cts → watch-D4PeBZ3H.d.cts} +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -216,7 +216,7 @@ Native does not, so install `react-native-get-random-values` (or `expo-crypto`)
|
|
|
216
216
|
before this package. `crypto.subtle` is unused. `EventSource` and `WebSocket` are needed only by
|
|
217
217
|
the watch and relay transports, each of which takes an injected implementation.
|
|
218
218
|
|
|
219
|
-
The client takes no
|
|
219
|
+
The client takes no operator URL. Operator info, Arkade chain reads and broadcast are all derived
|
|
220
220
|
from the wallet, which is the single place that knows which operator it speaks to. The onchain
|
|
221
221
|
corridor is the exception: `IWallet` carries no L1 provider, so it reads bitcoin from Esplora at
|
|
222
222
|
`ESPLORA_URL[network]`. Point it elsewhere with
|
package/dist/advanced.cjs
CHANGED
|
@@ -781,7 +781,7 @@ async function deriveOffer(wallet, params) {
|
|
|
781
781
|
})()
|
|
782
782
|
]);
|
|
783
783
|
const operatorPubKey = import_base2.hex.decode((0, import_sdk3.toXOnlySignerHex)(info.signerPubkey));
|
|
784
|
-
const network = (0, import_sdk3.
|
|
784
|
+
const network = (0, import_sdk3.networkFromOperatorInfo)(info);
|
|
785
785
|
const emuKey = import_base2.hex.decode(
|
|
786
786
|
(0, import_sdk3.toXOnlySignerHex)((0, import_sdk3.resolveEmulatorPubkey)(network, params.emulatorPubkey))
|
|
787
787
|
);
|
|
@@ -877,7 +877,7 @@ async function connectFillContract(wallet, arkServerUrl, offer, opts = {}) {
|
|
|
877
877
|
const { swapAddress, emulator, emulatorPubkey } = opts;
|
|
878
878
|
const contractManager = await wallet.getContractManager();
|
|
879
879
|
const client = await import_sdk3.arkade.Arkade.connect({
|
|
880
|
-
arkade: new import_sdk3.
|
|
880
|
+
arkade: new import_sdk3.RestOperatorProvider(arkServerUrl),
|
|
881
881
|
indexer: new import_sdk3.RestIndexerProvider(arkServerUrl),
|
|
882
882
|
identity: wallet.identity,
|
|
883
883
|
contractManager,
|
|
@@ -1247,7 +1247,7 @@ var init_offer = __esm({
|
|
|
1247
1247
|
derivingClient = (wallet, info, contractManager) => import_sdk3.arkade.Arkade.connect({
|
|
1248
1248
|
arkade: { getInfo: async () => info },
|
|
1249
1249
|
identity: wallet.identity,
|
|
1250
|
-
network: (0, import_sdk3.
|
|
1250
|
+
network: (0, import_sdk3.networkFromOperatorInfo)(info),
|
|
1251
1251
|
contractManager
|
|
1252
1252
|
});
|
|
1253
1253
|
NoSpendableDepositError = class extends Error {
|
|
@@ -2847,6 +2847,7 @@ __export(advanced_exports, {
|
|
|
2847
2847
|
legOf: () => legOf,
|
|
2848
2848
|
lightningCorridor: () => lightningCorridor,
|
|
2849
2849
|
liveArkadeInfo: () => liveArkadeInfo,
|
|
2850
|
+
liveOperatorInfo: () => liveOperatorInfo,
|
|
2850
2851
|
marketBackendOf: () => marketBackendOf,
|
|
2851
2852
|
marketKeyOf: () => marketKeyOf,
|
|
2852
2853
|
marketOf: () => marketOf,
|
|
@@ -4921,7 +4922,7 @@ var operatorUnrollScript = async (operator, network) => {
|
|
|
4921
4922
|
const info = await operator.getInfo();
|
|
4922
4923
|
return (0, import_sdk14.assertValidServerUnrollScript)(
|
|
4923
4924
|
info.checkpointTapscript,
|
|
4924
|
-
network ?? (0, import_sdk14.
|
|
4925
|
+
network ?? (0, import_sdk14.networkFromOperatorInfo)(info),
|
|
4925
4926
|
(0, import_sdk14.toXOnly)(import_base10.hex.decode(info.forfeitPubkey), "forfeit key")
|
|
4926
4927
|
);
|
|
4927
4928
|
};
|
|
@@ -5199,7 +5200,7 @@ var emulatorPubkeyFor = (base) => {
|
|
|
5199
5200
|
} catch {
|
|
5200
5201
|
throw new MissingCorridorDep(
|
|
5201
5202
|
"arkade",
|
|
5202
|
-
`
|
|
5203
|
+
`key for the operator's cosigner that emulates Arkade Script (none is pinned for ${base.networkName}; pass emulatorPubkey)`
|
|
5203
5204
|
);
|
|
5204
5205
|
}
|
|
5205
5206
|
};
|
|
@@ -5258,7 +5259,7 @@ function resolveCorridorDeps(corridor, overrides, base) {
|
|
|
5258
5259
|
}
|
|
5259
5260
|
}
|
|
5260
5261
|
}
|
|
5261
|
-
var
|
|
5262
|
+
var liveOperatorInfo = async (wallet, opts = {}) => {
|
|
5262
5263
|
const requireLive = opts.requireLive ?? true;
|
|
5263
5264
|
try {
|
|
5264
5265
|
return await wallet.getArkadeInfo({ requireLive });
|
|
@@ -5269,8 +5270,9 @@ var liveArkadeInfo = async (wallet, opts = {}) => {
|
|
|
5269
5270
|
);
|
|
5270
5271
|
}
|
|
5271
5272
|
};
|
|
5273
|
+
var liveArkadeInfo = liveOperatorInfo;
|
|
5272
5274
|
var resolveCorridorBase = async (input) => {
|
|
5273
|
-
const info = await
|
|
5275
|
+
const info = await liveOperatorInfo(input.wallet, { requireLive: input.requireLive });
|
|
5274
5276
|
const networkName = info.network;
|
|
5275
5277
|
return {
|
|
5276
5278
|
wallet: input.wallet,
|
|
@@ -9490,7 +9492,7 @@ var lockupOf = (derived) => ({
|
|
|
9490
9492
|
pkScript: derived.swapPkScript
|
|
9491
9493
|
});
|
|
9492
9494
|
var covenantInputs = (input) => {
|
|
9493
|
-
const network = (0, import_sdk35.
|
|
9495
|
+
const network = (0, import_sdk35.networkFromOperatorInfo)(input.info);
|
|
9494
9496
|
const arkade3 = input.corridors.get("arkade").deps;
|
|
9495
9497
|
return {
|
|
9496
9498
|
operatorPubkey: (0, import_sdk35.toXOnly)(import_base21.hex.decode(input.info.signerPubkey), "ark signer key"),
|
|
@@ -9560,7 +9562,7 @@ var quoteArkadeAsset = async (input) => {
|
|
|
9560
9562
|
const receivePkScript = resolveReceivePkScript(
|
|
9561
9563
|
receiveAddress,
|
|
9562
9564
|
maker.pkScript,
|
|
9563
|
-
(0, import_sdk35.
|
|
9565
|
+
(0, import_sdk35.networkFromOperatorInfo)(input.info).hrp,
|
|
9564
9566
|
(0, import_sdk35.toXOnly)(import_base21.hex.decode(input.info.signerPubkey), "ark signer key")
|
|
9565
9567
|
);
|
|
9566
9568
|
const choice = payment?.carrier;
|
|
@@ -9628,7 +9630,7 @@ var quoteArkadeAsset = async (input) => {
|
|
|
9628
9630
|
receiveAddress: receiveAddress ?? new import_sdk35.ArkAddress(
|
|
9629
9631
|
(0, import_sdk35.toXOnly)(import_base21.hex.decode(input.info.signerPubkey), "ark signer key"),
|
|
9630
9632
|
maker.pkScript.slice(2),
|
|
9631
|
-
(0, import_sdk35.
|
|
9633
|
+
(0, import_sdk35.networkFromOperatorInfo)(input.info).hrp
|
|
9632
9634
|
).encode(),
|
|
9633
9635
|
validUntil,
|
|
9634
9636
|
...carrier === void 0 ? {} : { carrier },
|
|
@@ -10342,7 +10344,7 @@ var createSwapClient = (config) => {
|
|
|
10342
10344
|
remember(quoteId, preparation);
|
|
10343
10345
|
return quote;
|
|
10344
10346
|
}
|
|
10345
|
-
const info = await
|
|
10347
|
+
const info = await liveOperatorInfo(wallet, { requireLive: true });
|
|
10346
10348
|
const rendezvous = market.card.discovery_pubkey;
|
|
10347
10349
|
if (rendezvous === void 0) {
|
|
10348
10350
|
throw new Error(`card ${market.card.solver} names no discovery key to address`);
|
|
@@ -11122,6 +11124,7 @@ var readCommonProfile = (profile, paymentHash, chainId) => {
|
|
|
11122
11124
|
legOf,
|
|
11123
11125
|
lightningCorridor,
|
|
11124
11126
|
liveArkadeInfo,
|
|
11127
|
+
liveOperatorInfo,
|
|
11125
11128
|
marketBackendOf,
|
|
11126
11129
|
marketKeyOf,
|
|
11127
11130
|
marketOf,
|
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 MarketLeg, a3 as MaxFeeExceeded, a4 as MissingCorridorDep, a5 as NotCancellable, a6 as OFFER_FILL_OWNERS, a7 as OFFER_FILL_TEMPLATE, a8 as ONCHAIN_CLAIM_FEE_RATE_SATVB, a9 as ObservationSeam, aa as OfferPreparation, ab as OnchainClaim, ac as OnchainRefund, ad as OperatorUnreachable, ae as ParsedRfqQuote, af as PayOptions, ag as PayResult, ah as QuoteCheck, ai as QuoteExpired, aj as QuotePreparation, ak as QuoteVerificationFailed, al as REGISTRY_URL, am as ReceiveArtifact, an as ReceiveOptions, ao as ReceiveRequest, ap as RecoveryResult, aq as RegisteredAsset, ar as RfqAuctionPolicy, as as RfqPreparation, at as RfqQuoteInput, au as RfqRendezvous, av as RfqTransportFactory, aw as RouteSide, ax as SWAP_ERROR_NAMES, ay as SwapClient, az as SwapClientConfig, aA as SwapDrive, aB as SwapDriveConfig, aC as SwapDriveRefusedError, aD as SwapError, aE as SwapErrorName, aF as SwapFilter, aG as UnsupportedRoute, aH as VerbDeps, aI as acceptQuote, aJ as attesting, aK as buildOfferFillPlan, aL as cancelSwap, aM as canonicalAssetId, aN as cardMarketOf, aO as chooseMarket, aP as conflictingFields, aQ as corridorSet, aR as createNostrTransportFactory, aS as createSwapClient, aT as createSwapDrive, aU as deepFreeze, aV as digestJointGraph, aW as discoveryIndex, aX as eligibleMarkets, aY as enforceFeeCeiling, aZ as exchange, a_ as feedFetch, a$ as feedSpread, b0 as isAddressable, b1 as isCardMarket, b2 as isIndexedNetwork, b3 as isSwapError, b4 as isUsableCard, b5 as liveArkadeInfo, b6 as
|
|
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-CvKlB246.cjs';
|
|
2
|
+
export { e as AcceptConflict, f as AcceptInput, g as AcceptOptions, h as AmbiguousDestination, i as AmountEncodingUnsupported, j as AmountMismatch, k as AssetRfqPreparation, l as AttestingRfqTransport, B as BuildOfferFillPlanOpts, m as CORRIDOR_FACTORIES, n as CancelInput, o as CancelOutcome, p as ClaimedDestination, q as ClientDisposed, r as CorridorBase, s as CorridorClaim, t as CorridorCovenant, u as CorridorDeadline, v as CorridorDeps, w as CorridorDepsByCorridor, x as CorridorDrive, y as CorridorLockup, z as CorridorModule, E as CorridorOverrides, F as CorridorPass, G as CorridorRfqPreparation, H as DEFAULT_MAX_REFUND_WINDOW_SECONDS, I as DiscoveryConfig, J as DiscoveryIndexInput, K as DiscoverySnapshotUnavailable, N as DriveMode, P as DriveRefusal, Q as ExchangeOptions, R as FEED_TTL_MS, T as FeeCeiling, U as FeedFetch, V as FeedQuoteInput, W as FillSponsor, X as FillSponsorFare, Y as INDEXED_NETWORKS, Z as InconsistentRoute, _ as InsufficientFunds, $ as JointGraph, a0 as LockupOwner, a1 as Market, a2 as MarketLeg, a3 as MaxFeeExceeded, a4 as MissingCorridorDep, a5 as NotCancellable, a6 as OFFER_FILL_OWNERS, a7 as OFFER_FILL_TEMPLATE, a8 as ONCHAIN_CLAIM_FEE_RATE_SATVB, a9 as ObservationSeam, aa as OfferPreparation, ab as OnchainClaim, ac as OnchainRefund, ad as OperatorUnreachable, ae as ParsedRfqQuote, af as PayOptions, ag as PayResult, ah as QuoteCheck, ai as QuoteExpired, aj as QuotePreparation, ak as QuoteVerificationFailed, al as REGISTRY_URL, am as ReceiveArtifact, an as ReceiveOptions, ao as ReceiveRequest, ap as RecoveryResult, aq as RegisteredAsset, ar as RfqAuctionPolicy, as as RfqPreparation, at as RfqQuoteInput, au as RfqRendezvous, av as RfqTransportFactory, aw as RouteSide, ax as SWAP_ERROR_NAMES, ay as SwapClient, az as SwapClientConfig, aA as SwapDrive, aB as SwapDriveConfig, aC as SwapDriveRefusedError, aD as SwapError, aE as SwapErrorName, aF as SwapFilter, aG as UnsupportedRoute, aH as VerbDeps, aI as acceptQuote, aJ as attesting, aK as buildOfferFillPlan, aL as cancelSwap, aM as canonicalAssetId, aN as cardMarketOf, aO as chooseMarket, aP as conflictingFields, aQ as corridorSet, aR as createNostrTransportFactory, aS as createSwapClient, aT as createSwapDrive, aU as deepFreeze, aV as digestJointGraph, aW as discoveryIndex, aX as eligibleMarkets, aY as enforceFeeCeiling, aZ as exchange, a_ as feedFetch, a$ as feedSpread, b0 as isAddressable, b1 as isCardMarket, b2 as isIndexedNetwork, b3 as isSwapError, b4 as isUsableCard, b5 as liveArkadeInfo, b6 as liveOperatorInfo, b7 as marketBackendOf, b8 as marketKeyOf, b9 as marketOf, ba as marketRefOf, bb as nostrTransportFactory, bc as parseRfqQuote, bd as pay, be as quoteFromFeed, bf as quoteViaRfq, bg as readableRecord, bh as receive, bi as resolveCorridorBase, bj as resolveCorridorDeps, bk as rfqLeg, bl as rfqPairFor, bm as swapRecordOf, bn as toDiscoveryLeg, bo as unsignedPsbtBytes, bp as usableMarkets, bq as verifyJointGraph, br as verifyOfferFillPlan, bs as verifyPlanLegs, bt as withCanonicalAmount } from './offerFillPlan-CvKlB246.cjs';
|
|
3
3
|
import { DiscoveredMarket, Side } from '@arkade-os/solver-discovery';
|
|
4
|
-
import { N as NetworkRef, A as AssetId, C as Corridor, R as Rail, a as RfqSwapRecordStore, b as CorridorSwapRecord, Q as QuoteId, c as AssetSwapStatus, S as SwapRecord, O as OfferSwapRecord, d as AssetSwapRepository, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, h as AssetSwap, L as LockupSpendIndexer, i as RouteResolution, j as ResolvedEndpoint, P as PinnedAmount, I as Instrument, k as Route, l as QuoteInput, m as Pubkey } from './repository-
|
|
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, A as AssetId, C as Corridor, R as Rail, a as RfqSwapRecordStore, b as CorridorSwapRecord, Q as QuoteId, c as AssetSwapStatus, S as SwapRecord, O as OfferSwapRecord, d as AssetSwapRepository, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, h as AssetSwap, L as LockupSpendIndexer, i as RouteResolution, j as ResolvedEndpoint, P as PinnedAmount, I as Instrument, k as Route, l as QuoteInput, m as Pubkey } from './repository-Cut4eEkm.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-Cut4eEkm.cjs';
|
|
6
|
+
import { I as InvoiceFacts, C as ChainSource, R as RfqQuote } from './rfq-CP-P0PSL.cjs';
|
|
7
|
+
export { S as SwapRefusal } from './rfq-CP-P0PSL.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-D4PeBZ3H.cjs';
|
|
11
|
+
import './offer-BxzPQ6zh.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 MarketLeg, a3 as MaxFeeExceeded, a4 as MissingCorridorDep, a5 as NotCancellable, a6 as OFFER_FILL_OWNERS, a7 as OFFER_FILL_TEMPLATE, a8 as ONCHAIN_CLAIM_FEE_RATE_SATVB, a9 as ObservationSeam, aa as OfferPreparation, ab as OnchainClaim, ac as OnchainRefund, ad as OperatorUnreachable, ae as ParsedRfqQuote, af as PayOptions, ag as PayResult, ah as QuoteCheck, ai as QuoteExpired, aj as QuotePreparation, ak as QuoteVerificationFailed, al as REGISTRY_URL, am as ReceiveArtifact, an as ReceiveOptions, ao as ReceiveRequest, ap as RecoveryResult, aq as RegisteredAsset, ar as RfqAuctionPolicy, as as RfqPreparation, at as RfqQuoteInput, au as RfqRendezvous, av as RfqTransportFactory, aw as RouteSide, ax as SWAP_ERROR_NAMES, ay as SwapClient, az as SwapClientConfig, aA as SwapDrive, aB as SwapDriveConfig, aC as SwapDriveRefusedError, aD as SwapError, aE as SwapErrorName, aF as SwapFilter, aG as UnsupportedRoute, aH as VerbDeps, aI as acceptQuote, aJ as attesting, aK as buildOfferFillPlan, aL as cancelSwap, aM as canonicalAssetId, aN as cardMarketOf, aO as chooseMarket, aP as conflictingFields, aQ as corridorSet, aR as createNostrTransportFactory, aS as createSwapClient, aT as createSwapDrive, aU as deepFreeze, aV as digestJointGraph, aW as discoveryIndex, aX as eligibleMarkets, aY as enforceFeeCeiling, aZ as exchange, a_ as feedFetch, a$ as feedSpread, b0 as isAddressable, b1 as isCardMarket, b2 as isIndexedNetwork, b3 as isSwapError, b4 as isUsableCard, b5 as liveArkadeInfo, b6 as
|
|
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-_PhFt4B1.js';
|
|
2
|
+
export { e as AcceptConflict, f as AcceptInput, g as AcceptOptions, h as AmbiguousDestination, i as AmountEncodingUnsupported, j as AmountMismatch, k as AssetRfqPreparation, l as AttestingRfqTransport, B as BuildOfferFillPlanOpts, m as CORRIDOR_FACTORIES, n as CancelInput, o as CancelOutcome, p as ClaimedDestination, q as ClientDisposed, r as CorridorBase, s as CorridorClaim, t as CorridorCovenant, u as CorridorDeadline, v as CorridorDeps, w as CorridorDepsByCorridor, x as CorridorDrive, y as CorridorLockup, z as CorridorModule, E as CorridorOverrides, F as CorridorPass, G as CorridorRfqPreparation, H as DEFAULT_MAX_REFUND_WINDOW_SECONDS, I as DiscoveryConfig, J as DiscoveryIndexInput, K as DiscoverySnapshotUnavailable, N as DriveMode, P as DriveRefusal, Q as ExchangeOptions, R as FEED_TTL_MS, T as FeeCeiling, U as FeedFetch, V as FeedQuoteInput, W as FillSponsor, X as FillSponsorFare, Y as INDEXED_NETWORKS, Z as InconsistentRoute, _ as InsufficientFunds, $ as JointGraph, a0 as LockupOwner, a1 as Market, a2 as MarketLeg, a3 as MaxFeeExceeded, a4 as MissingCorridorDep, a5 as NotCancellable, a6 as OFFER_FILL_OWNERS, a7 as OFFER_FILL_TEMPLATE, a8 as ONCHAIN_CLAIM_FEE_RATE_SATVB, a9 as ObservationSeam, aa as OfferPreparation, ab as OnchainClaim, ac as OnchainRefund, ad as OperatorUnreachable, ae as ParsedRfqQuote, af as PayOptions, ag as PayResult, ah as QuoteCheck, ai as QuoteExpired, aj as QuotePreparation, ak as QuoteVerificationFailed, al as REGISTRY_URL, am as ReceiveArtifact, an as ReceiveOptions, ao as ReceiveRequest, ap as RecoveryResult, aq as RegisteredAsset, ar as RfqAuctionPolicy, as as RfqPreparation, at as RfqQuoteInput, au as RfqRendezvous, av as RfqTransportFactory, aw as RouteSide, ax as SWAP_ERROR_NAMES, ay as SwapClient, az as SwapClientConfig, aA as SwapDrive, aB as SwapDriveConfig, aC as SwapDriveRefusedError, aD as SwapError, aE as SwapErrorName, aF as SwapFilter, aG as UnsupportedRoute, aH as VerbDeps, aI as acceptQuote, aJ as attesting, aK as buildOfferFillPlan, aL as cancelSwap, aM as canonicalAssetId, aN as cardMarketOf, aO as chooseMarket, aP as conflictingFields, aQ as corridorSet, aR as createNostrTransportFactory, aS as createSwapClient, aT as createSwapDrive, aU as deepFreeze, aV as digestJointGraph, aW as discoveryIndex, aX as eligibleMarkets, aY as enforceFeeCeiling, aZ as exchange, a_ as feedFetch, a$ as feedSpread, b0 as isAddressable, b1 as isCardMarket, b2 as isIndexedNetwork, b3 as isSwapError, b4 as isUsableCard, b5 as liveArkadeInfo, b6 as liveOperatorInfo, b7 as marketBackendOf, b8 as marketKeyOf, b9 as marketOf, ba as marketRefOf, bb as nostrTransportFactory, bc as parseRfqQuote, bd as pay, be as quoteFromFeed, bf as quoteViaRfq, bg as readableRecord, bh as receive, bi as resolveCorridorBase, bj as resolveCorridorDeps, bk as rfqLeg, bl as rfqPairFor, bm as swapRecordOf, bn as toDiscoveryLeg, bo as unsignedPsbtBytes, bp as usableMarkets, bq as verifyJointGraph, br as verifyOfferFillPlan, bs as verifyPlanLegs, bt as withCanonicalAmount } from './offerFillPlan-_PhFt4B1.js';
|
|
3
3
|
import { DiscoveredMarket, Side } from '@arkade-os/solver-discovery';
|
|
4
|
-
import { N as NetworkRef, A as AssetId, C as Corridor, R as Rail, a as RfqSwapRecordStore, b as CorridorSwapRecord, Q as QuoteId, c as AssetSwapStatus, S as SwapRecord, O as OfferSwapRecord, d as AssetSwapRepository, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, h as AssetSwap, L as LockupSpendIndexer, i as RouteResolution, j as ResolvedEndpoint, P as PinnedAmount, I as Instrument, k as Route, l as QuoteInput, m as Pubkey } from './repository-
|
|
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, A as AssetId, C as Corridor, R as Rail, a as RfqSwapRecordStore, b as CorridorSwapRecord, Q as QuoteId, c as AssetSwapStatus, S as SwapRecord, O as OfferSwapRecord, d as AssetSwapRepository, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, h as AssetSwap, L as LockupSpendIndexer, i as RouteResolution, j as ResolvedEndpoint, P as PinnedAmount, I as Instrument, k as Route, l as QuoteInput, m as Pubkey } from './repository-BOQ1qYoj.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-BOQ1qYoj.js';
|
|
6
|
+
import { I as InvoiceFacts, C as ChainSource, R as RfqQuote } from './rfq-CP-P0PSL.js';
|
|
7
|
+
export { S as SwapRefusal } from './rfq-CP-P0PSL.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-D15U0QpD.js';
|
|
11
|
+
import './offer-Q1lVhrVX.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
|
@@ -83,6 +83,7 @@ import {
|
|
|
83
83
|
isUsableCard,
|
|
84
84
|
issuanceOf,
|
|
85
85
|
liveArkadeInfo,
|
|
86
|
+
liveOperatorInfo,
|
|
86
87
|
marketBackendOf,
|
|
87
88
|
marketKeyOf,
|
|
88
89
|
marketOf,
|
|
@@ -138,7 +139,7 @@ import {
|
|
|
138
139
|
withCanonicalAmount,
|
|
139
140
|
withDepositFate,
|
|
140
141
|
withRfqState
|
|
141
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-HDCC3JZR.js";
|
|
142
143
|
import {
|
|
143
144
|
ACTIVITY_TOKEN,
|
|
144
145
|
Amount,
|
|
@@ -173,7 +174,7 @@ import {
|
|
|
173
174
|
recordOutcome,
|
|
174
175
|
swapOf,
|
|
175
176
|
toAtomicDecimal
|
|
176
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-GJKGPE3S.js";
|
|
177
178
|
import {
|
|
178
179
|
ARKADE_BTC,
|
|
179
180
|
SwapRefusal,
|
|
@@ -182,7 +183,7 @@ import {
|
|
|
182
183
|
bindsClaimAmount,
|
|
183
184
|
rfqPair,
|
|
184
185
|
sealClaimPacket
|
|
185
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-7BBQ74BG.js";
|
|
186
187
|
import "./chunk-A3SHHRX4.js";
|
|
187
188
|
|
|
188
189
|
// src/reveal.ts
|
|
@@ -670,6 +671,7 @@ export {
|
|
|
670
671
|
legOf,
|
|
671
672
|
lightningCorridor,
|
|
672
673
|
liveArkadeInfo,
|
|
674
|
+
liveOperatorInfo,
|
|
673
675
|
marketBackendOf,
|
|
674
676
|
marketKeyOf,
|
|
675
677
|
marketOf,
|
|
@@ -240,12 +240,12 @@ import { concatBytes } from "@scure/btc-signer/utils.js";
|
|
|
240
240
|
import {
|
|
241
241
|
ASSET_CARRIER_SATS as SDK_ASSET_CARRIER_SATS,
|
|
242
242
|
ArkAddress,
|
|
243
|
-
|
|
243
|
+
RestOperatorProvider,
|
|
244
244
|
RestEmulatorProvider,
|
|
245
245
|
RestIndexerProvider,
|
|
246
246
|
arkade,
|
|
247
247
|
asset,
|
|
248
|
-
|
|
248
|
+
networkFromOperatorInfo,
|
|
249
249
|
resolveEmulatorPubkey,
|
|
250
250
|
toXOnlySignerHex
|
|
251
251
|
} from "@arkade-os/sdk";
|
|
@@ -622,7 +622,7 @@ async function registerOfferContract(wallet, info, binding, operatorPubkey, expe
|
|
|
622
622
|
var derivingClient = (wallet, info, contractManager) => arkade.Arkade.connect({
|
|
623
623
|
arkade: { getInfo: async () => info },
|
|
624
624
|
identity: wallet.identity,
|
|
625
|
-
network:
|
|
625
|
+
network: networkFromOperatorInfo(info),
|
|
626
626
|
contractManager
|
|
627
627
|
});
|
|
628
628
|
function offerContractParams(client, binding, operatorPubkey, expectedPkScript) {
|
|
@@ -750,7 +750,7 @@ async function deriveOffer(wallet, params) {
|
|
|
750
750
|
})()
|
|
751
751
|
]);
|
|
752
752
|
const operatorPubKey = hex2.decode(toXOnlySignerHex(info.signerPubkey));
|
|
753
|
-
const network =
|
|
753
|
+
const network = networkFromOperatorInfo(info);
|
|
754
754
|
const emuKey = hex2.decode(
|
|
755
755
|
toXOnlySignerHex(resolveEmulatorPubkey(network, params.emulatorPubkey))
|
|
756
756
|
);
|
|
@@ -922,7 +922,7 @@ async function connectFillContract(wallet, arkServerUrl, offer, opts = {}) {
|
|
|
922
922
|
const { swapAddress, emulator, emulatorPubkey } = opts;
|
|
923
923
|
const contractManager = await wallet.getContractManager();
|
|
924
924
|
const client = await arkade.Arkade.connect({
|
|
925
|
-
arkade: new
|
|
925
|
+
arkade: new RestOperatorProvider(arkServerUrl),
|
|
926
926
|
indexer: new RestIndexerProvider(arkServerUrl),
|
|
927
927
|
identity: wallet.identity,
|
|
928
928
|
contractManager,
|
|
@@ -1681,7 +1681,7 @@ import {
|
|
|
1681
1681
|
ArkAddress as ArkAddress3,
|
|
1682
1682
|
assertTimerMs as assertTimerMs2,
|
|
1683
1683
|
VHTLC,
|
|
1684
|
-
|
|
1684
|
+
networkFromOperatorInfo as networkFromOperatorInfo2,
|
|
1685
1685
|
resolveEmulatorPubkey as resolveEmulatorPubkey2,
|
|
1686
1686
|
toXOnly
|
|
1687
1687
|
} from "@arkade-os/sdk";
|
|
@@ -2283,7 +2283,7 @@ async function requestLightningSend(wallet, transport, params) {
|
|
|
2283
2283
|
);
|
|
2284
2284
|
}
|
|
2285
2285
|
const operatorPubkey = toXOnly(hex5.decode(info.signerPubkey), "ark signer key");
|
|
2286
|
-
const network =
|
|
2286
|
+
const network = networkFromOperatorInfo2(info);
|
|
2287
2287
|
const derived = deriveLightningSend({
|
|
2288
2288
|
quote,
|
|
2289
2289
|
paymentHash: params.invoice.paymentHash,
|
|
@@ -2378,7 +2378,7 @@ async function requestArkadeSwap(wallet, transport, params) {
|
|
|
2378
2378
|
const makerPkScript = info === void 0 ? ownPkScript : resolveReceivePkScript(
|
|
2379
2379
|
receiveAddress,
|
|
2380
2380
|
ownPkScript,
|
|
2381
|
-
|
|
2381
|
+
networkFromOperatorInfo2(info).hrp,
|
|
2382
2382
|
toXOnly(hex5.decode(info.signerPubkey), "ark signer key")
|
|
2383
2383
|
);
|
|
2384
2384
|
const pair = rfqPair(
|
|
@@ -2452,8 +2452,8 @@ async function requestArkadeSwap(wallet, transport, params) {
|
|
|
2452
2452
|
};
|
|
2453
2453
|
}
|
|
2454
2454
|
var l1NetworkFromArk = (network) => network === "bitcoin" ? "bitcoin" : network === "regtest" ? "regtest" : "testnet";
|
|
2455
|
-
var
|
|
2456
|
-
const network =
|
|
2455
|
+
var operatorTerms = (info, emulatorPubkey) => {
|
|
2456
|
+
const network = networkFromOperatorInfo2(info);
|
|
2457
2457
|
return {
|
|
2458
2458
|
operatorPubkey: toXOnly(hex5.decode(info.signerPubkey), "ark signer key"),
|
|
2459
2459
|
emulatorPubkey: toXOnly(
|
|
@@ -2594,7 +2594,7 @@ async function requestOnchainSend(wallet, transport, params) {
|
|
|
2594
2594
|
quote,
|
|
2595
2595
|
paymentHash,
|
|
2596
2596
|
payoutPubkey: params.payoutPubkey,
|
|
2597
|
-
...
|
|
2597
|
+
...operatorTerms(info, params.emulatorPubkey),
|
|
2598
2598
|
l1Network: l1NetworkFromArk(info.network),
|
|
2599
2599
|
refundAddress,
|
|
2600
2600
|
senderPubkey
|
|
@@ -2809,7 +2809,7 @@ async function requestLightningReceive(wallet, transport, params) {
|
|
|
2809
2809
|
paymentHash,
|
|
2810
2810
|
payoutPubkey,
|
|
2811
2811
|
payoutAddress,
|
|
2812
|
-
...
|
|
2812
|
+
...operatorTerms(info, params.emulatorPubkey)
|
|
2813
2813
|
});
|
|
2814
2814
|
const now = Math.floor(Date.now() / 1e3);
|
|
2815
2815
|
const { payDeadline } = verifyReceiveInvoice({
|
|
@@ -2902,7 +2902,7 @@ async function requestOnchainReceive(wallet, transport, params) {
|
|
|
2902
2902
|
payoutPubkey,
|
|
2903
2903
|
payoutAddress,
|
|
2904
2904
|
refundPubkey: params.refundPubkey,
|
|
2905
|
-
...
|
|
2905
|
+
...operatorTerms(info, params.emulatorPubkey),
|
|
2906
2906
|
l1Network: l1NetworkFromArk(info.network)
|
|
2907
2907
|
});
|
|
2908
2908
|
assertFundable({
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
rfqCorridorHandlers,
|
|
25
25
|
rfqSignerOf,
|
|
26
26
|
updateAssetSwapBestEffort
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-7BBQ74BG.js";
|
|
28
28
|
import {
|
|
29
29
|
collectRfqSwaps
|
|
30
30
|
} from "./chunk-A3SHHRX4.js";
|
|
@@ -931,7 +931,7 @@ import {
|
|
|
931
931
|
Extension,
|
|
932
932
|
getArkPsbtFields,
|
|
933
933
|
isVtxoSpent,
|
|
934
|
-
|
|
934
|
+
networkFromOperatorInfo,
|
|
935
935
|
signAndSubmitOffchainTx,
|
|
936
936
|
scriptFromTapLeafScript,
|
|
937
937
|
toXOnly
|
|
@@ -1090,7 +1090,7 @@ var operatorUnrollScript = async (operator, network) => {
|
|
|
1090
1090
|
const info = await operator.getInfo();
|
|
1091
1091
|
return assertValidServerUnrollScript(
|
|
1092
1092
|
info.checkpointTapscript,
|
|
1093
|
-
network ??
|
|
1093
|
+
network ?? networkFromOperatorInfo(info),
|
|
1094
1094
|
toXOnly(hex2.decode(info.forfeitPubkey), "forfeit key")
|
|
1095
1095
|
);
|
|
1096
1096
|
};
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
undeliveredCarry,
|
|
61
61
|
walletOperator,
|
|
62
62
|
watchOfferSwaps
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-GJKGPE3S.js";
|
|
64
64
|
import {
|
|
65
65
|
ARKADE_BTC,
|
|
66
66
|
ASSET_CARRIER_SATS,
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
unilateralClaimDelay,
|
|
126
126
|
verifyOfferAddress,
|
|
127
127
|
withExitClosure
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-7BBQ74BG.js";
|
|
129
129
|
import {
|
|
130
130
|
assertRfqSwapPageFilter,
|
|
131
131
|
collectAssetSwaps,
|
|
@@ -1204,7 +1204,7 @@ var emulatorPubkeyFor = (base) => {
|
|
|
1204
1204
|
} catch {
|
|
1205
1205
|
throw new MissingCorridorDep(
|
|
1206
1206
|
"arkade",
|
|
1207
|
-
`
|
|
1207
|
+
`key for the operator's cosigner that emulates Arkade Script (none is pinned for ${base.networkName}; pass emulatorPubkey)`
|
|
1208
1208
|
);
|
|
1209
1209
|
}
|
|
1210
1210
|
};
|
|
@@ -1263,7 +1263,7 @@ function resolveCorridorDeps(corridor, overrides, base) {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
|
-
var
|
|
1266
|
+
var liveOperatorInfo = async (wallet, opts = {}) => {
|
|
1267
1267
|
const requireLive = opts.requireLive ?? true;
|
|
1268
1268
|
try {
|
|
1269
1269
|
return await wallet.getArkadeInfo({ requireLive });
|
|
@@ -1274,8 +1274,9 @@ var liveArkadeInfo = async (wallet, opts = {}) => {
|
|
|
1274
1274
|
);
|
|
1275
1275
|
}
|
|
1276
1276
|
};
|
|
1277
|
+
var liveArkadeInfo = liveOperatorInfo;
|
|
1277
1278
|
var resolveCorridorBase = async (input) => {
|
|
1278
|
-
const info = await
|
|
1279
|
+
const info = await liveOperatorInfo(input.wallet, { requireLive: input.requireLive });
|
|
1279
1280
|
const networkName = info.network;
|
|
1280
1281
|
return {
|
|
1281
1282
|
wallet: input.wallet,
|
|
@@ -3701,7 +3702,7 @@ import { hex as hex8 } from "@scure/base";
|
|
|
3701
3702
|
import {
|
|
3702
3703
|
ArkAddress as ArkAddress6,
|
|
3703
3704
|
asset as asset4,
|
|
3704
|
-
|
|
3705
|
+
networkFromOperatorInfo,
|
|
3705
3706
|
provisionClaimSecret,
|
|
3706
3707
|
provisionRefundKey,
|
|
3707
3708
|
toXOnly
|
|
@@ -3713,7 +3714,7 @@ var lockupOf = (derived) => ({
|
|
|
3713
3714
|
pkScript: derived.swapPkScript
|
|
3714
3715
|
});
|
|
3715
3716
|
var covenantInputs = (input) => {
|
|
3716
|
-
const network =
|
|
3717
|
+
const network = networkFromOperatorInfo(input.info);
|
|
3717
3718
|
const arkade2 = input.corridors.get("arkade").deps;
|
|
3718
3719
|
return {
|
|
3719
3720
|
operatorPubkey: toXOnly(hex8.decode(input.info.signerPubkey), "ark signer key"),
|
|
@@ -3783,7 +3784,7 @@ var quoteArkadeAsset = async (input) => {
|
|
|
3783
3784
|
const receivePkScript = resolveReceivePkScript(
|
|
3784
3785
|
receiveAddress,
|
|
3785
3786
|
maker.pkScript,
|
|
3786
|
-
|
|
3787
|
+
networkFromOperatorInfo(input.info).hrp,
|
|
3787
3788
|
toXOnly(hex8.decode(input.info.signerPubkey), "ark signer key")
|
|
3788
3789
|
);
|
|
3789
3790
|
const choice = payment?.carrier;
|
|
@@ -3851,7 +3852,7 @@ var quoteArkadeAsset = async (input) => {
|
|
|
3851
3852
|
receiveAddress: receiveAddress ?? new ArkAddress6(
|
|
3852
3853
|
toXOnly(hex8.decode(input.info.signerPubkey), "ark signer key"),
|
|
3853
3854
|
maker.pkScript.slice(2),
|
|
3854
|
-
|
|
3855
|
+
networkFromOperatorInfo(input.info).hrp
|
|
3855
3856
|
).encode(),
|
|
3856
3857
|
validUntil,
|
|
3857
3858
|
...carrier === void 0 ? {} : { carrier },
|
|
@@ -4567,7 +4568,7 @@ var createSwapClient = (config) => {
|
|
|
4567
4568
|
remember(quoteId, preparation);
|
|
4568
4569
|
return quote;
|
|
4569
4570
|
}
|
|
4570
|
-
const info = await
|
|
4571
|
+
const info = await liveOperatorInfo(wallet, { requireLive: true });
|
|
4571
4572
|
const rendezvous = market.card.discovery_pubkey;
|
|
4572
4573
|
if (rendezvous === void 0) {
|
|
4573
4574
|
throw new Error(`card ${market.card.solver} names no discovery key to address`);
|
|
@@ -4920,6 +4921,7 @@ export {
|
|
|
4920
4921
|
esploraChainSource,
|
|
4921
4922
|
ONCHAIN_CLAIM_FEE_RATE_SATVB,
|
|
4922
4923
|
resolveCorridorDeps,
|
|
4924
|
+
liveOperatorInfo,
|
|
4923
4925
|
liveArkadeInfo,
|
|
4924
4926
|
resolveCorridorBase,
|
|
4925
4927
|
CORRIDOR_FACTORIES,
|
package/dist/index.cjs
CHANGED
|
@@ -1272,7 +1272,7 @@ async function deriveOffer(wallet, params) {
|
|
|
1272
1272
|
})()
|
|
1273
1273
|
]);
|
|
1274
1274
|
const operatorPubKey = import_base5.hex.decode((0, import_sdk5.toXOnlySignerHex)(info.signerPubkey));
|
|
1275
|
-
const network = (0, import_sdk5.
|
|
1275
|
+
const network = (0, import_sdk5.networkFromOperatorInfo)(info);
|
|
1276
1276
|
const emuKey = import_base5.hex.decode(
|
|
1277
1277
|
(0, import_sdk5.toXOnlySignerHex)((0, import_sdk5.resolveEmulatorPubkey)(network, params.emulatorPubkey))
|
|
1278
1278
|
);
|
|
@@ -1368,7 +1368,7 @@ async function connectFillContract(wallet, arkServerUrl, offer, opts = {}) {
|
|
|
1368
1368
|
const { swapAddress, emulator, emulatorPubkey } = opts;
|
|
1369
1369
|
const contractManager = await wallet.getContractManager();
|
|
1370
1370
|
const client = await import_sdk5.arkade.Arkade.connect({
|
|
1371
|
-
arkade: new import_sdk5.
|
|
1371
|
+
arkade: new import_sdk5.RestOperatorProvider(arkServerUrl),
|
|
1372
1372
|
indexer: new import_sdk5.RestIndexerProvider(arkServerUrl),
|
|
1373
1373
|
identity: wallet.identity,
|
|
1374
1374
|
contractManager,
|
|
@@ -1738,7 +1738,7 @@ var init_offer = __esm({
|
|
|
1738
1738
|
derivingClient = (wallet, info, contractManager) => import_sdk5.arkade.Arkade.connect({
|
|
1739
1739
|
arkade: { getInfo: async () => info },
|
|
1740
1740
|
identity: wallet.identity,
|
|
1741
|
-
network: (0, import_sdk5.
|
|
1741
|
+
network: (0, import_sdk5.networkFromOperatorInfo)(info),
|
|
1742
1742
|
contractManager
|
|
1743
1743
|
});
|
|
1744
1744
|
NoSpendableDepositError = class extends Error {
|
|
@@ -3098,7 +3098,7 @@ var operatorUnrollScript = async (operator, network) => {
|
|
|
3098
3098
|
const info = await operator.getInfo();
|
|
3099
3099
|
return (0, import_sdk8.assertValidServerUnrollScript)(
|
|
3100
3100
|
info.checkpointTapscript,
|
|
3101
|
-
network ?? (0, import_sdk8.
|
|
3101
|
+
network ?? (0, import_sdk8.networkFromOperatorInfo)(info),
|
|
3102
3102
|
(0, import_sdk8.toXOnly)(import_base7.hex.decode(info.forfeitPubkey), "forfeit key")
|
|
3103
3103
|
);
|
|
3104
3104
|
};
|
|
@@ -3652,7 +3652,7 @@ var emulatorPubkeyFor = (base) => {
|
|
|
3652
3652
|
} catch {
|
|
3653
3653
|
throw new MissingCorridorDep(
|
|
3654
3654
|
"arkade",
|
|
3655
|
-
`
|
|
3655
|
+
`key for the operator's cosigner that emulates Arkade Script (none is pinned for ${base.networkName}; pass emulatorPubkey)`
|
|
3656
3656
|
);
|
|
3657
3657
|
}
|
|
3658
3658
|
};
|
|
@@ -3711,7 +3711,7 @@ function resolveCorridorDeps(corridor, overrides, base) {
|
|
|
3711
3711
|
}
|
|
3712
3712
|
}
|
|
3713
3713
|
}
|
|
3714
|
-
var
|
|
3714
|
+
var liveOperatorInfo = async (wallet, opts = {}) => {
|
|
3715
3715
|
const requireLive = opts.requireLive ?? true;
|
|
3716
3716
|
try {
|
|
3717
3717
|
return await wallet.getArkadeInfo({ requireLive });
|
|
@@ -3723,7 +3723,7 @@ var liveArkadeInfo = async (wallet, opts = {}) => {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
};
|
|
3725
3725
|
var resolveCorridorBase = async (input) => {
|
|
3726
|
-
const info = await
|
|
3726
|
+
const info = await liveOperatorInfo(input.wallet, { requireLive: input.requireLive });
|
|
3727
3727
|
const networkName = info.network;
|
|
3728
3728
|
return {
|
|
3729
3729
|
wallet: input.wallet,
|
|
@@ -9663,7 +9663,7 @@ var lockupOf = (derived) => ({
|
|
|
9663
9663
|
pkScript: derived.swapPkScript
|
|
9664
9664
|
});
|
|
9665
9665
|
var covenantInputs = (input) => {
|
|
9666
|
-
const network = (0, import_sdk35.
|
|
9666
|
+
const network = (0, import_sdk35.networkFromOperatorInfo)(input.info);
|
|
9667
9667
|
const arkade3 = input.corridors.get("arkade").deps;
|
|
9668
9668
|
return {
|
|
9669
9669
|
operatorPubkey: (0, import_sdk35.toXOnly)(import_base21.hex.decode(input.info.signerPubkey), "ark signer key"),
|
|
@@ -9733,7 +9733,7 @@ var quoteArkadeAsset = async (input) => {
|
|
|
9733
9733
|
const receivePkScript = resolveReceivePkScript(
|
|
9734
9734
|
receiveAddress,
|
|
9735
9735
|
maker.pkScript,
|
|
9736
|
-
(0, import_sdk35.
|
|
9736
|
+
(0, import_sdk35.networkFromOperatorInfo)(input.info).hrp,
|
|
9737
9737
|
(0, import_sdk35.toXOnly)(import_base21.hex.decode(input.info.signerPubkey), "ark signer key")
|
|
9738
9738
|
);
|
|
9739
9739
|
const choice = payment?.carrier;
|
|
@@ -9801,7 +9801,7 @@ var quoteArkadeAsset = async (input) => {
|
|
|
9801
9801
|
receiveAddress: receiveAddress ?? new import_sdk35.ArkAddress(
|
|
9802
9802
|
(0, import_sdk35.toXOnly)(import_base21.hex.decode(input.info.signerPubkey), "ark signer key"),
|
|
9803
9803
|
maker.pkScript.slice(2),
|
|
9804
|
-
(0, import_sdk35.
|
|
9804
|
+
(0, import_sdk35.networkFromOperatorInfo)(input.info).hrp
|
|
9805
9805
|
).encode(),
|
|
9806
9806
|
validUntil,
|
|
9807
9807
|
...carrier === void 0 ? {} : { carrier },
|
|
@@ -10515,7 +10515,7 @@ var createSwapClient = (config) => {
|
|
|
10515
10515
|
remember(quoteId, preparation);
|
|
10516
10516
|
return quote;
|
|
10517
10517
|
}
|
|
10518
|
-
const info = await
|
|
10518
|
+
const info = await liveOperatorInfo(wallet, { requireLive: true });
|
|
10519
10519
|
const rendezvous = market.card.discovery_pubkey;
|
|
10520
10520
|
if (rendezvous === void 0) {
|
|
10521
10521
|
throw new Error(`card ${market.card.solver} names no discovery key to address`);
|
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 MarketLeg, a3 as MaxFeeExceeded, a4 as MissingCorridorDep, a5 as NotCancellable, a6 as OFFER_FILL_OWNERS, a7 as OFFER_FILL_TEMPLATE, ad as OperatorUnreachable, af as PayOptions, ag as PayResult, ah as QuoteCheck, ai as QuoteExpired, ak as QuoteVerificationFailed, al as REGISTRY_URL, am as ReceiveArtifact, an as ReceiveOptions, ao as ReceiveRequest, ap as RecoveryResult, aq as RegisteredAsset, ar as RfqAuctionPolicy, av as RfqTransportFactory, ax as SWAP_ERROR_NAMES, ay as SwapClient, az as SwapClientConfig, aC as SwapDriveRefusedError, aD as SwapError, aE as SwapErrorName, aF as SwapFilter, S as SwapPolicy, aG as UnsupportedRoute, aH as VerbDeps, aK as buildOfferFillPlan, aM as canonicalAssetId, aS as createSwapClient, aU as deepFreeze, aV as digestJointGraph, aZ as exchange, b3 as isSwapError,
|
|
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 MarketLeg, a3 as MaxFeeExceeded, a4 as MissingCorridorDep, a5 as NotCancellable, a6 as OFFER_FILL_OWNERS, a7 as OFFER_FILL_TEMPLATE, ad as OperatorUnreachable, af as PayOptions, ag as PayResult, ah as QuoteCheck, ai as QuoteExpired, ak as QuoteVerificationFailed, al as REGISTRY_URL, am as ReceiveArtifact, an as ReceiveOptions, ao as ReceiveRequest, ap as RecoveryResult, aq as RegisteredAsset, ar as RfqAuctionPolicy, av as RfqTransportFactory, ax as SWAP_ERROR_NAMES, ay as SwapClient, az as SwapClientConfig, aC as SwapDriveRefusedError, aD as SwapError, aE as SwapErrorName, aF as SwapFilter, S as SwapPolicy, aG as UnsupportedRoute, aH as VerbDeps, aK as buildOfferFillPlan, aM as canonicalAssetId, aS as createSwapClient, aU as deepFreeze, aV as digestJointGraph, aZ as exchange, b3 as isSwapError, bd as pay, bh as receive, bo as unsignedPsbtBytes, bq as verifyJointGraph, br as verifyOfferFillPlan } from './offerFillPlan-CvKlB246.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-Cut4eEkm.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-Cut4eEkm.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-CP-P0PSL.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-QfbsjyXG.cjs';
|
|
7
7
|
import '@arkade-os/solver-discovery';
|
|
8
|
-
import './offer-
|
|
8
|
+
import './offer-BxzPQ6zh.cjs';
|
|
9
9
|
import 'nostr-tools';
|
|
10
10
|
|
|
11
11
|
/** Browser backend over the SDK's shared IndexedDB manager. */
|