@arkade-os/swap 0.1.10 → 0.1.12
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 +58 -0
- package/dist/advanced.cjs +1058 -414
- package/dist/advanced.d.cts +7 -64
- package/dist/advanced.d.ts +7 -64
- package/dist/advanced.js +29 -5
- package/dist/{chunk-AUJDREZN.js → chunk-CIDVLDDM.js} +1 -1
- package/dist/{chunk-FWRDAL73.js → chunk-F3BGKWIB.js} +758 -104
- package/dist/{chunk-LCO6AJOS.js → chunk-ISKJIONJ.js} +58 -285
- package/dist/{chunk-2HQZLIVX.js → chunk-JBTU7Y6M.js} +1 -1
- package/dist/chunk-UXK7YDA4.js +568 -0
- package/dist/{chunk-6RJVT65W.js → chunk-VPVSSBY2.js} +2 -4
- package/dist/index.cjs +1045 -414
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +15 -5
- package/dist/{lockupContract-BTTRVwOt.d.cts → lockupContract-B1mr672c.d.cts} +1 -1
- package/dist/{lockupContract-aFarhlxj.d.ts → lockupContract-BRpk0NxT.d.ts} +1 -1
- package/dist/node/index.d.cts +18 -18
- package/dist/node/index.d.ts +18 -18
- package/dist/nostr.cjs +276 -302
- package/dist/nostr.d.cts +20 -2
- package/dist/nostr.d.ts +20 -2
- package/dist/nostr.js +21 -357
- package/dist/{offerFillPlan-CJC5tnEd.d.ts → offerFillPlan-BMZXiVMB.d.ts} +213 -28
- package/dist/{offerFillPlan-FmyaQoYT.d.cts → offerFillPlan-CqJerwXd.d.cts} +213 -28
- package/dist/openRfq-Dx-vxOzl.d.cts +32 -0
- package/dist/openRfq-Dx-vxOzl.d.ts +32 -0
- package/dist/openRfqTransport-MQZ7JWYN.js +9 -0
- package/dist/protocol.cjs +301 -322
- package/dist/protocol.d.cts +5 -5
- package/dist/protocol.d.ts +5 -5
- package/dist/protocol.js +6 -8
- package/dist/repositories/realm/index.d.cts +1 -1
- package/dist/repositories/realm/index.d.ts +1 -1
- package/dist/repositories/sqlite/index.d.cts +1 -1
- package/dist/repositories/sqlite/index.d.ts +1 -1
- package/dist/{repository-CwwhIAEd.d.cts → repository-CFC0fHAy.d.cts} +26 -26
- package/dist/{repository-DO6QKxBx.d.ts → repository-suGldzOK.d.ts} +26 -26
- package/dist/rfq-contract.cjs +3 -6
- package/dist/rfq-contract.d.cts +3 -4
- package/dist/rfq-contract.d.ts +3 -4
- package/dist/rfq-contract.js +3 -5
- package/dist/transportErrors-DZuZqnF4.d.cts +8 -0
- package/dist/transportErrors-DZuZqnF4.d.ts +8 -0
- package/dist/{verify-ENO36VPK.js → verify-HU5COTNO.js} +3 -3
- package/dist/{watch-_fZSgx_l.d.ts → watch-C2z6Onak.d.ts} +1 -1
- package/dist/{watch-DpDSP2tu.d.cts → watch-CpYjItYX.d.cts} +1 -1
- package/package.json +3 -3
package/dist/protocol.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ProvisionedKey, ProvisionedClaimSecret, RestIndexerProvider, Transaction, ActivityResolver, IWallet, Network, OnchainProvider, VHTLC, Identity, Asset, PaymentRail } from '@arkade-os/sdk';
|
|
2
|
-
import { bk as SwapSecretsProjection, e as RfqSwapRecord, bj as OfferBinding, bl as Offer, h as AssetSwap, d as AssetSwapRepository, L as LockupSpendIndexer, b9 as RfqSwapState, bb as SwapOperator, bm as LockupContractSource, bn as RfqSwap, bo as ArkadeRefundResult, bp as LockupVtxo } from './repository-
|
|
3
|
-
export { bq as ASSET_CARRIER_SATS, br as ASSET_SWAP_CONTRACT_VERSIONS, bs as ASSET_SWAP_DERIVABLE_VERSIONS, bt as AssetSwapContractVersion, c as AssetSwapStatus, bu as AvailableRfqSwapManagerCallbacks, bv as BTC_ASSET_ID, bg as FillFunding, bh as FillOutpoint, bw as LightningReceiveSwap, bx as LightningSendSwap, by as LockupFate, bz as LockupNeedsRecoveryError, bA as LockupParams, bB as LockupSpend, bC as NoSpendableDepositError, bD as OFFER_PACKET_TYPE, bE as OfferCovenantMismatchError, bF as OnchainReceiveAction, bG as OnchainReceiveNeedsChainSource, bH as OnchainReceiveSwap, bI as OnchainSendAction, bJ as OnchainSendSwap, bK as PersistableRfqSwap, bL as PreimageBlockedReason, bM as PreimageNotRecoverableError, bN as REFUND_MTP_LAG_SECONDS, bO as RFQ_SWAP_RETENTION_SECONDS, bP as ReceiveLockupSwap, bQ as RfqRestoreFailure, bR as RfqRestoreOptions, bS as RfqRestoreResult, be as RfqSwapActionName, bT as RfqSwapLockup, bU as RfqSwapManager, bd as RfqSwapManagerCallbacks, bV as RfqSwapManagerConfig, bW as RfqSwapManagerDeps, bX as RfqSwapManagerEvents, bY as RfqSwapOrigin, bZ as RfqSwapOriginRequired, b_ as RfqSwapOutcome, a as RfqSwapRecordStore, b$ as addAssetSwap, c0 as assetSwapContractVersion, c1 as awaitRfqResolution, c2 as bindingFromOffer, c3 as bindingProgram, c4 as cancelOffer, c5 as createOffer, c6 as createRfqSwapRecord, c7 as decodeOffer, c8 as encodeOffer, c9 as fillOffer, ca as findLockupVtxos, cb as getAssetSwaps, cc as isRfqTerminal, cd as nextOnchainAction, ce as nextOnchainReceiveAction, cf as normalizeRfqSwapRecord, cg as offerContract, ch as offerFromBinding, ci as offerVtxoScript, cj as preimageForSwapRecord, ck as pushRefundWithoutReceiver, cl as readLockupFate, cm as rebuildRfqSwap, cn as rfqSwapOriginOf, co as shouldRetainRfqSwap, cp as swapPrograms, cq as swapSecretsToRecord, cr as updateAssetSwap, cs as updateRfqSwapRecord } from './repository-
|
|
2
|
+
import { bk as SwapSecretsProjection, e as RfqSwapRecord, bj as OfferBinding, bl as Offer, h as AssetSwap, d as AssetSwapRepository, L as LockupSpendIndexer, b9 as RfqSwapState, bb as SwapOperator, bm as LockupContractSource, bn as RfqSwap, bo as ArkadeRefundResult, bp as LockupVtxo } from './repository-CFC0fHAy.cjs';
|
|
3
|
+
export { bq as ASSET_CARRIER_SATS, br as ASSET_SWAP_CONTRACT_VERSIONS, bs as ASSET_SWAP_DERIVABLE_VERSIONS, bt as AssetSwapContractVersion, c as AssetSwapStatus, bu as AvailableRfqSwapManagerCallbacks, bv as BTC_ASSET_ID, bg as FillFunding, bh as FillOutpoint, bw as LightningReceiveSwap, bx as LightningSendSwap, by as LockupFate, bz as LockupNeedsRecoveryError, bA as LockupParams, bB as LockupSpend, bC as NoSpendableDepositError, bD as OFFER_PACKET_TYPE, bE as OfferCovenantMismatchError, bF as OnchainReceiveAction, bG as OnchainReceiveNeedsChainSource, bH as OnchainReceiveSwap, bI as OnchainSendAction, bJ as OnchainSendSwap, bK as PersistableRfqSwap, bL as PreimageBlockedReason, bM as PreimageNotRecoverableError, bN as REFUND_MTP_LAG_SECONDS, bO as RFQ_SWAP_RETENTION_SECONDS, bP as ReceiveLockupSwap, bQ as RfqRestoreFailure, bR as RfqRestoreOptions, bS as RfqRestoreResult, be as RfqSwapActionName, bT as RfqSwapLockup, bU as RfqSwapManager, bd as RfqSwapManagerCallbacks, bV as RfqSwapManagerConfig, bW as RfqSwapManagerDeps, bX as RfqSwapManagerEvents, bY as RfqSwapOrigin, bZ as RfqSwapOriginRequired, b_ as RfqSwapOutcome, a as RfqSwapRecordStore, b$ as addAssetSwap, c0 as assetSwapContractVersion, c1 as awaitRfqResolution, c2 as bindingFromOffer, c3 as bindingProgram, c4 as cancelOffer, c5 as createOffer, c6 as createRfqSwapRecord, c7 as decodeOffer, c8 as encodeOffer, c9 as fillOffer, ca as findLockupVtxos, cb as getAssetSwaps, cc as isRfqTerminal, cd as nextOnchainAction, ce as nextOnchainReceiveAction, cf as normalizeRfqSwapRecord, cg as offerContract, ch as offerFromBinding, ci as offerVtxoScript, cj as preimageForSwapRecord, ck as pushRefundWithoutReceiver, cl as readLockupFate, cm as rebuildRfqSwap, cn as rfqSwapOriginOf, co as shouldRetainRfqSwap, cp as swapPrograms, cq as swapSecretsToRecord, cr as updateAssetSwap, cs as updateRfqSwapRecord } from './repository-CFC0fHAy.cjs';
|
|
4
4
|
import { l as OnchainNetwork, O as OnchainHtlc, k as OnchainHtlcParams, C as ChainSource, I as InvoiceFacts, m as RfqTransport, r as requestLightningSend, o as requestOnchainSend } from './rfq-nMGywkqI.cjs';
|
|
5
5
|
export { p as ARKADE_BTC, q as AddressMismatch, s as ChainUtxo, t as HtlcUtxo, u as LIGHTNING_BTC, v as LIGHTNING_RECEIVE_PAIR, w as LIGHTNING_SEND_PAIR, x as LOCKTIME_THRESHOLD, j as LightningReceiveContractParams, L as LightningSendContractParams, M as MAX_MIN_CONFIRMATIONS, y as MIN_CLAIM_WINDOW_SECONDS, z as ONCHAIN_BTC, B as ONCHAIN_CLAIM_MARGIN_SECONDS, D as ONCHAIN_DUST_SATS, E as ONCHAIN_ORDER_MARGIN_SECONDS, F as ONCHAIN_RECEIVE_PAIR, G as ONCHAIN_SECONDS_PER_BLOCK, J as ONCHAIN_SEND_PAIR, K as OnchainHtlcPhase, N as RelaySocket, R as RfqQuote, Q as RfqRefusalReason, U as RfqStatus, V as arkadeAssetLeg, W as arkadeSwapRequest, X as assertArkadeFundable, Y as awaitOnchainFill, Z as buildHtlcClaim, _ as buildHtlcRefund, $ as canonicalAssetAmount, a0 as claimOnchainFill, a1 as classifyOnchainHtlc, a2 as deriveLightningReceive, a3 as deriveOnchainReceive, a4 as deriveOnchainSend, a5 as extractPreimage, a6 as httpTransport, a7 as l1ScriptForAddress, a8 as lightningReceiveContract, a9 as lightningReceiveRequest, aa as lightningSendContract, ab as lightningSendRequest, ac as newPreimage, ad as normalizeMakerPkScript, ae as normalizeMakerPublicKey, af as onchainHtlcScript, ag as onchainReceiveRequest, ah as onchainSendRequest, ai as paymentHashOf, aj as relayTransport, ak as requestArkadeSwap, al as requestLightningReceive, am as requestOnchainReceive, an as unilateralClaimDelay, ao as unilateralRefundDelay, ap as unilateralRefundWithoutReceiverDelay, aq as verifyLockupAddress, ar as verifyOfferAddress, as as verifyReceiveInvoice } from './rfq-nMGywkqI.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-
|
|
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-B1mr672c.cjs';
|
|
7
7
|
import { Network as Network$1, LocalCardInput, TransportCardFetcher, DiscoveredMarket, Side, OfferPlan } from '@arkade-os/solver-discovery';
|
|
8
|
-
export { c as OfferSwapWatcher, W as WatchOfferSwapsParams, w as watchOfferSwaps } from './watch-
|
|
9
|
-
export { ASSET_SWAP_BASELINE,
|
|
8
|
+
export { c as OfferSwapWatcher, W as WatchOfferSwapsParams, w as watchOfferSwaps } from './watch-CpYjItYX.cjs';
|
|
9
|
+
export { ASSET_SWAP_BASELINE, ASSET_SWAP_DIRECTED, ASSET_SWAP_V2 } from './rfq-contract.cjs';
|
|
10
10
|
import 'nostr-tools';
|
|
11
11
|
|
|
12
12
|
/** Which wallet key signs this leg, at `profile.signer`. Omitted entirely (not blank) by a corridor
|
package/dist/protocol.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ProvisionedKey, ProvisionedClaimSecret, RestIndexerProvider, Transaction, ActivityResolver, IWallet, Network, OnchainProvider, VHTLC, Identity, Asset, PaymentRail } from '@arkade-os/sdk';
|
|
2
|
-
import { bk as SwapSecretsProjection, e as RfqSwapRecord, bj as OfferBinding, bl as Offer, h as AssetSwap, d as AssetSwapRepository, L as LockupSpendIndexer, b9 as RfqSwapState, bb as SwapOperator, bm as LockupContractSource, bn as RfqSwap, bo as ArkadeRefundResult, bp as LockupVtxo } from './repository-
|
|
3
|
-
export { bq as ASSET_CARRIER_SATS, br as ASSET_SWAP_CONTRACT_VERSIONS, bs as ASSET_SWAP_DERIVABLE_VERSIONS, bt as AssetSwapContractVersion, c as AssetSwapStatus, bu as AvailableRfqSwapManagerCallbacks, bv as BTC_ASSET_ID, bg as FillFunding, bh as FillOutpoint, bw as LightningReceiveSwap, bx as LightningSendSwap, by as LockupFate, bz as LockupNeedsRecoveryError, bA as LockupParams, bB as LockupSpend, bC as NoSpendableDepositError, bD as OFFER_PACKET_TYPE, bE as OfferCovenantMismatchError, bF as OnchainReceiveAction, bG as OnchainReceiveNeedsChainSource, bH as OnchainReceiveSwap, bI as OnchainSendAction, bJ as OnchainSendSwap, bK as PersistableRfqSwap, bL as PreimageBlockedReason, bM as PreimageNotRecoverableError, bN as REFUND_MTP_LAG_SECONDS, bO as RFQ_SWAP_RETENTION_SECONDS, bP as ReceiveLockupSwap, bQ as RfqRestoreFailure, bR as RfqRestoreOptions, bS as RfqRestoreResult, be as RfqSwapActionName, bT as RfqSwapLockup, bU as RfqSwapManager, bd as RfqSwapManagerCallbacks, bV as RfqSwapManagerConfig, bW as RfqSwapManagerDeps, bX as RfqSwapManagerEvents, bY as RfqSwapOrigin, bZ as RfqSwapOriginRequired, b_ as RfqSwapOutcome, a as RfqSwapRecordStore, b$ as addAssetSwap, c0 as assetSwapContractVersion, c1 as awaitRfqResolution, c2 as bindingFromOffer, c3 as bindingProgram, c4 as cancelOffer, c5 as createOffer, c6 as createRfqSwapRecord, c7 as decodeOffer, c8 as encodeOffer, c9 as fillOffer, ca as findLockupVtxos, cb as getAssetSwaps, cc as isRfqTerminal, cd as nextOnchainAction, ce as nextOnchainReceiveAction, cf as normalizeRfqSwapRecord, cg as offerContract, ch as offerFromBinding, ci as offerVtxoScript, cj as preimageForSwapRecord, ck as pushRefundWithoutReceiver, cl as readLockupFate, cm as rebuildRfqSwap, cn as rfqSwapOriginOf, co as shouldRetainRfqSwap, cp as swapPrograms, cq as swapSecretsToRecord, cr as updateAssetSwap, cs as updateRfqSwapRecord } from './repository-
|
|
2
|
+
import { bk as SwapSecretsProjection, e as RfqSwapRecord, bj as OfferBinding, bl as Offer, h as AssetSwap, d as AssetSwapRepository, L as LockupSpendIndexer, b9 as RfqSwapState, bb as SwapOperator, bm as LockupContractSource, bn as RfqSwap, bo as ArkadeRefundResult, bp as LockupVtxo } from './repository-suGldzOK.js';
|
|
3
|
+
export { bq as ASSET_CARRIER_SATS, br as ASSET_SWAP_CONTRACT_VERSIONS, bs as ASSET_SWAP_DERIVABLE_VERSIONS, bt as AssetSwapContractVersion, c as AssetSwapStatus, bu as AvailableRfqSwapManagerCallbacks, bv as BTC_ASSET_ID, bg as FillFunding, bh as FillOutpoint, bw as LightningReceiveSwap, bx as LightningSendSwap, by as LockupFate, bz as LockupNeedsRecoveryError, bA as LockupParams, bB as LockupSpend, bC as NoSpendableDepositError, bD as OFFER_PACKET_TYPE, bE as OfferCovenantMismatchError, bF as OnchainReceiveAction, bG as OnchainReceiveNeedsChainSource, bH as OnchainReceiveSwap, bI as OnchainSendAction, bJ as OnchainSendSwap, bK as PersistableRfqSwap, bL as PreimageBlockedReason, bM as PreimageNotRecoverableError, bN as REFUND_MTP_LAG_SECONDS, bO as RFQ_SWAP_RETENTION_SECONDS, bP as ReceiveLockupSwap, bQ as RfqRestoreFailure, bR as RfqRestoreOptions, bS as RfqRestoreResult, be as RfqSwapActionName, bT as RfqSwapLockup, bU as RfqSwapManager, bd as RfqSwapManagerCallbacks, bV as RfqSwapManagerConfig, bW as RfqSwapManagerDeps, bX as RfqSwapManagerEvents, bY as RfqSwapOrigin, bZ as RfqSwapOriginRequired, b_ as RfqSwapOutcome, a as RfqSwapRecordStore, b$ as addAssetSwap, c0 as assetSwapContractVersion, c1 as awaitRfqResolution, c2 as bindingFromOffer, c3 as bindingProgram, c4 as cancelOffer, c5 as createOffer, c6 as createRfqSwapRecord, c7 as decodeOffer, c8 as encodeOffer, c9 as fillOffer, ca as findLockupVtxos, cb as getAssetSwaps, cc as isRfqTerminal, cd as nextOnchainAction, ce as nextOnchainReceiveAction, cf as normalizeRfqSwapRecord, cg as offerContract, ch as offerFromBinding, ci as offerVtxoScript, cj as preimageForSwapRecord, ck as pushRefundWithoutReceiver, cl as readLockupFate, cm as rebuildRfqSwap, cn as rfqSwapOriginOf, co as shouldRetainRfqSwap, cp as swapPrograms, cq as swapSecretsToRecord, cr as updateAssetSwap, cs as updateRfqSwapRecord } from './repository-suGldzOK.js';
|
|
4
4
|
import { l as OnchainNetwork, O as OnchainHtlc, k as OnchainHtlcParams, C as ChainSource, I as InvoiceFacts, m as RfqTransport, r as requestLightningSend, o as requestOnchainSend } from './rfq-CYxOyniL.js';
|
|
5
5
|
export { p as ARKADE_BTC, q as AddressMismatch, s as ChainUtxo, t as HtlcUtxo, u as LIGHTNING_BTC, v as LIGHTNING_RECEIVE_PAIR, w as LIGHTNING_SEND_PAIR, x as LOCKTIME_THRESHOLD, j as LightningReceiveContractParams, L as LightningSendContractParams, M as MAX_MIN_CONFIRMATIONS, y as MIN_CLAIM_WINDOW_SECONDS, z as ONCHAIN_BTC, B as ONCHAIN_CLAIM_MARGIN_SECONDS, D as ONCHAIN_DUST_SATS, E as ONCHAIN_ORDER_MARGIN_SECONDS, F as ONCHAIN_RECEIVE_PAIR, G as ONCHAIN_SECONDS_PER_BLOCK, J as ONCHAIN_SEND_PAIR, K as OnchainHtlcPhase, N as RelaySocket, R as RfqQuote, Q as RfqRefusalReason, U as RfqStatus, V as arkadeAssetLeg, W as arkadeSwapRequest, X as assertArkadeFundable, Y as awaitOnchainFill, Z as buildHtlcClaim, _ as buildHtlcRefund, $ as canonicalAssetAmount, a0 as claimOnchainFill, a1 as classifyOnchainHtlc, a2 as deriveLightningReceive, a3 as deriveOnchainReceive, a4 as deriveOnchainSend, a5 as extractPreimage, a6 as httpTransport, a7 as l1ScriptForAddress, a8 as lightningReceiveContract, a9 as lightningReceiveRequest, aa as lightningSendContract, ab as lightningSendRequest, ac as newPreimage, ad as normalizeMakerPkScript, ae as normalizeMakerPublicKey, af as onchainHtlcScript, ag as onchainReceiveRequest, ah as onchainSendRequest, ai as paymentHashOf, aj as relayTransport, ak as requestArkadeSwap, al as requestLightningReceive, am as requestOnchainReceive, an as unilateralClaimDelay, ao as unilateralRefundDelay, ap as unilateralRefundWithoutReceiverDelay, aq as verifyLockupAddress, ar as verifyOfferAddress, as as verifyReceiveInvoice } from './rfq-CYxOyniL.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-
|
|
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-BRpk0NxT.js';
|
|
7
7
|
import { Network as Network$1, LocalCardInput, TransportCardFetcher, DiscoveredMarket, Side, OfferPlan } from '@arkade-os/solver-discovery';
|
|
8
|
-
export { c as OfferSwapWatcher, W as WatchOfferSwapsParams, w as watchOfferSwaps } from './watch-
|
|
9
|
-
export { ASSET_SWAP_BASELINE,
|
|
8
|
+
export { c as OfferSwapWatcher, W as WatchOfferSwapsParams, w as watchOfferSwaps } from './watch-C2z6Onak.js';
|
|
9
|
+
export { ASSET_SWAP_BASELINE, ASSET_SWAP_DIRECTED, ASSET_SWAP_V2 } from './rfq-contract.js';
|
|
10
10
|
import 'nostr-tools';
|
|
11
11
|
|
|
12
12
|
/** Which wallet key signs this leg, at `profile.signer`. Omitted entirely (not blank) by a corridor
|
package/dist/protocol.js
CHANGED
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
validatePlan,
|
|
44
44
|
watchMarkets,
|
|
45
45
|
watchOfferSwaps
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-JBTU7Y6M.js";
|
|
47
47
|
import {
|
|
48
48
|
ARKADE_BTC,
|
|
49
49
|
ASSET_CARRIER_SATS,
|
|
@@ -135,13 +135,12 @@ import {
|
|
|
135
135
|
verifyLockupAddress,
|
|
136
136
|
verifyOfferAddress,
|
|
137
137
|
verifyReceiveInvoice
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-ISKJIONJ.js";
|
|
139
139
|
import {
|
|
140
140
|
ASSET_SWAP_BASELINE,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
} from "./chunk-6RJVT65W.js";
|
|
141
|
+
ASSET_SWAP_DIRECTED,
|
|
142
|
+
ASSET_SWAP_V2
|
|
143
|
+
} from "./chunk-VPVSSBY2.js";
|
|
145
144
|
import {
|
|
146
145
|
collectRfqSwaps
|
|
147
146
|
} from "./chunk-A3SHHRX4.js";
|
|
@@ -620,9 +619,8 @@ export {
|
|
|
620
619
|
ASSET_SWAP_BASELINE,
|
|
621
620
|
ASSET_SWAP_CONTRACT_VERSIONS,
|
|
622
621
|
ASSET_SWAP_DERIVABLE_VERSIONS,
|
|
622
|
+
ASSET_SWAP_DIRECTED,
|
|
623
623
|
ASSET_SWAP_V2,
|
|
624
|
-
ASSET_SWAP_V3,
|
|
625
|
-
ASSET_SWAP_V4,
|
|
626
624
|
AddressMismatch,
|
|
627
625
|
BTC_ASSET_ID,
|
|
628
626
|
CROSS_ASSET_RAIL,
|
|
@@ -1,6 +1,6 @@
|
|
|
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, b7 as MarketsCacheEntry } from '../../repository-
|
|
3
|
+
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b7 as MarketsCacheEntry } from '../../repository-CFC0fHAy.cjs';
|
|
4
4
|
import '@arkade-os/solver-discovery';
|
|
5
5
|
import '../../rfq-contract.cjs';
|
|
6
6
|
import '../../rfq-nMGywkqI.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
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, b7 as MarketsCacheEntry } from '../../repository-
|
|
3
|
+
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b7 as MarketsCacheEntry } from '../../repository-suGldzOK.js';
|
|
4
4
|
import '@arkade-os/solver-discovery';
|
|
5
5
|
import '../../rfq-contract.js';
|
|
6
6
|
import '../../rfq-CYxOyniL.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
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, b7 as MarketsCacheEntry } from '../../repository-
|
|
3
|
+
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b7 as MarketsCacheEntry } from '../../repository-CFC0fHAy.cjs';
|
|
4
4
|
import '@arkade-os/solver-discovery';
|
|
5
5
|
import '../../rfq-contract.cjs';
|
|
6
6
|
import '../../rfq-nMGywkqI.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
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, b7 as MarketsCacheEntry } from '../../repository-
|
|
3
|
+
import { d as AssetSwapRepository, h as AssetSwap, e as RfqSwapRecord, f as RfqSwapPageFilter, g as RfqSwapPageCursor, S as SwapRecord, b7 as MarketsCacheEntry } from '../../repository-suGldzOK.js';
|
|
4
4
|
import '@arkade-os/solver-discovery';
|
|
5
5
|
import '../../rfq-contract.js';
|
|
6
6
|
import '../../rfq-CYxOyniL.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { DiscoveredMarket } from '@arkade-os/solver-discovery';
|
|
2
2
|
import { arkade, asset, RelativeTimelock, OperatorInfo, ArkTxInput, Outpoint, IWallet, EmulatorProvider, ProvisionedKey, ProvisionedClaimSecret, OperatorProvider, Asset, RestIndexerProvider, IContractManager, VHTLC, Identity, Network, InputExpiryFloor, NetworkName, PageRequest, PageResult } from '@arkade-os/sdk';
|
|
3
|
-
import { ASSET_SWAP_V2,
|
|
3
|
+
import { ASSET_SWAP_V2, ASSET_SWAP_DIRECTED } from './rfq-contract.cjs';
|
|
4
4
|
import { m as RfqTransport, U as RfqStatus, O as OnchainHtlc, s as ChainUtxo, C as ChainSource, K as OnchainHtlcPhase, H as Hex, P as Pubkey } from './rfq-nMGywkqI.cjs';
|
|
5
5
|
|
|
6
|
-
/** `asset-swap`
|
|
6
|
+
/** The `asset-swap-v2` programs a fresh offer compiles. Exit is appended later; it is in neither.
|
|
7
7
|
*
|
|
8
8
|
* @deprecated Internal to `accept()`; no replacement. Moved off the package root to `@arkade-os/swap/protocol`.
|
|
9
9
|
*/
|
|
10
10
|
declare const swapPrograms: Record<"wantAsset" | "wantBtc", ReturnType<typeof arkade.parseArtifact>>;
|
|
11
|
-
type AssetSwapContractVersion = typeof ASSET_SWAP_V2 | typeof
|
|
11
|
+
type AssetSwapContractVersion = typeof ASSET_SWAP_V2 | typeof ASSET_SWAP_DIRECTED;
|
|
12
12
|
/** What every asset RFQ advertises: the directed covenant alone. */
|
|
13
|
-
declare const ASSET_SWAP_CONTRACT_VERSIONS: readonly ["asset-swap-
|
|
13
|
+
declare const ASSET_SWAP_CONTRACT_VERSIONS: readonly ["asset-swap-directed"];
|
|
14
14
|
/** Every version this build derives: the registry's keys, not a preference. */
|
|
15
|
-
declare const ASSET_SWAP_DERIVABLE_VERSIONS: readonly ["asset-swap-
|
|
15
|
+
declare const ASSET_SWAP_DERIVABLE_VERSIONS: readonly ["asset-swap-directed", "asset-swap-v2"];
|
|
16
16
|
/** Absent means {@link ASSET_SWAP_BASELINE}; an id this build cannot derive throws. */
|
|
17
17
|
declare const assetSwapContractVersion: (id: string | undefined) => AssetSwapContractVersion;
|
|
18
18
|
|
|
@@ -117,7 +117,7 @@ interface Offer {
|
|
|
117
117
|
* taproot tree, so it changes `swapPkScript` — see {@link offerVtxoScript}. */
|
|
118
118
|
exitDelay?: RelativeTimelock;
|
|
119
119
|
/** The solver key `fulfill` requires, x-only. Present on directed versions only, and its
|
|
120
|
-
* presence is what selects the `asset-swap-
|
|
120
|
+
* presence is what selects the `asset-swap-directed` tree. */
|
|
121
121
|
taker?: Uint8Array;
|
|
122
122
|
}
|
|
123
123
|
/** Program + args + keys of an offer's contract: the single source for address derivation and
|
|
@@ -152,7 +152,7 @@ interface OfferBinding {
|
|
|
152
152
|
readonly emulatorPublicKey: Uint8Array;
|
|
153
153
|
/** Omitted removes the exit leaf, which changes the address. */
|
|
154
154
|
readonly exitDelay?: RelativeTimelock;
|
|
155
|
-
/** The solver key `fulfill` requires; `asset-swap-
|
|
155
|
+
/** The solver key `fulfill` requires; `asset-swap-directed` only. */
|
|
156
156
|
readonly taker?: Uint8Array;
|
|
157
157
|
}
|
|
158
158
|
/** The binding's program, args and keys, at the binding's own version. */
|
|
@@ -266,7 +266,7 @@ interface OfferParams {
|
|
|
266
266
|
pkScript: Uint8Array;
|
|
267
267
|
publicKey: Uint8Array;
|
|
268
268
|
};
|
|
269
|
-
/** Defaults to {@link ASSET_SWAP_BASELINE}, or to `asset-swap-
|
|
269
|
+
/** Defaults to {@link ASSET_SWAP_BASELINE}, or to `asset-swap-directed` with a `taker`. */
|
|
270
270
|
contractVersion?: AssetSwapContractVersion;
|
|
271
271
|
/** The quoting solver's x-only key, for a directed offer. */
|
|
272
272
|
taker?: Uint8Array;
|
|
@@ -2211,10 +2211,10 @@ interface SnapshotRef {
|
|
|
2211
2211
|
readonly registry?: string;
|
|
2212
2212
|
}
|
|
2213
2213
|
/**
|
|
2214
|
-
* Which card priced a quote, and
|
|
2215
|
-
*
|
|
2214
|
+
* Which card priced a quote, and its source. quoteBid retains the verified card and records
|
|
2215
|
+
* auction evidence separately; legacy auction references and restored records remain readable.
|
|
2216
2216
|
*/
|
|
2217
|
-
type MarketRef = CardMarketRef |
|
|
2217
|
+
type MarketRef = CardMarketRef | RestoredMarketRef;
|
|
2218
2218
|
interface CardMarketRef {
|
|
2219
2219
|
readonly kind: "card";
|
|
2220
2220
|
/**
|
|
@@ -2235,12 +2235,6 @@ interface CardMarketRef {
|
|
|
2235
2235
|
readonly pair: string;
|
|
2236
2236
|
readonly snapshot: SnapshotRef;
|
|
2237
2237
|
}
|
|
2238
|
-
/** §10, reserved: a quote closed out of a published auction has no card. */
|
|
2239
|
-
interface AuctionMarketRef {
|
|
2240
|
-
readonly kind: "auction";
|
|
2241
|
-
readonly key: string;
|
|
2242
|
-
readonly backend: "rfq";
|
|
2243
|
-
}
|
|
2244
2238
|
/** A record rebuilt after a restore (from the funding tx, or a v1 corridor row): no card stands
|
|
2245
2239
|
* behind it. */
|
|
2246
2240
|
interface RestoredMarketRef {
|
|
@@ -2260,8 +2254,7 @@ interface RankedBid {
|
|
|
2260
2254
|
readonly expiresAt: number;
|
|
2261
2255
|
}
|
|
2262
2256
|
/**
|
|
2263
|
-
* The auction a
|
|
2264
|
-
* never populates it.
|
|
2257
|
+
* The open auction a quoteBid selection was closed out of. Ordinary quote() leaves it absent.
|
|
2265
2258
|
*/
|
|
2266
2259
|
interface AuctionProvenance {
|
|
2267
2260
|
/** The market key the open request was tagged with. */
|
|
@@ -2299,7 +2292,7 @@ interface Quote {
|
|
|
2299
2292
|
readonly market: MarketRef;
|
|
2300
2293
|
/** RFQ routes: the committed counterparty, from the quote's covenant role. */
|
|
2301
2294
|
readonly solver?: Pubkey;
|
|
2302
|
-
/**
|
|
2295
|
+
/** Evidence for an explicit open-RFQ selection. */
|
|
2303
2296
|
readonly auction?: AuctionProvenance;
|
|
2304
2297
|
/** Unix seconds. Non-optional on both backends — a feed-priced quote has no
|
|
2305
2298
|
* wire expiry to inherit, so the client mints one from the feed's freshness. */
|
|
@@ -2441,6 +2434,8 @@ interface SwapRecordCommon {
|
|
|
2441
2434
|
/** The quote's own deadline, unix seconds — what makes a stalled accept a
|
|
2442
2435
|
* benign abandon rather than a live obligation. */
|
|
2443
2436
|
readonly expiresAt: number;
|
|
2437
|
+
/** Retained funding dispatch cap for an auction-origin quote. */
|
|
2438
|
+
readonly fundingDeadline?: number;
|
|
2444
2439
|
/** The one thing a counterparty must see, when the route has one. Durable because a duplicate
|
|
2445
2440
|
* accept after a restart must return the SAME invoice, and the quote object is gone by then. */
|
|
2446
2441
|
readonly artifact?: RecordedArtifact;
|
|
@@ -2463,15 +2458,20 @@ interface SwapRecordCommon {
|
|
|
2463
2458
|
readonly createdAt: number;
|
|
2464
2459
|
readonly updatedAt: number;
|
|
2465
2460
|
}
|
|
2461
|
+
/** What rebuilds an offer's covenant: the TLV hex, the binding (a directed swap's only form), or both. */
|
|
2462
|
+
type OfferCovenant = {
|
|
2463
|
+
readonly offerHex: string;
|
|
2464
|
+
readonly binding?: RecordedOfferBinding;
|
|
2465
|
+
} | {
|
|
2466
|
+
readonly offerHex?: string;
|
|
2467
|
+
readonly binding: RecordedOfferBinding;
|
|
2468
|
+
};
|
|
2466
2469
|
/** `arkade <-> arkade`: the offer covenant, whole in `binding` or `offerHex`, so no tree params. */
|
|
2467
|
-
|
|
2470
|
+
type OfferSwapRecord = OfferSwapRecordFields & OfferCovenant;
|
|
2471
|
+
interface OfferSwapRecordFields extends SwapRecordCommon {
|
|
2468
2472
|
readonly family: "offer";
|
|
2469
2473
|
/** v1's raw status vocabulary, read verbatim by the drive's `RawState`. */
|
|
2470
2474
|
readonly status: AssetSwapStatus;
|
|
2471
|
-
/** The TLV offer, hex: what rebuilds the covenant when there is no `binding`. */
|
|
2472
|
-
readonly offerHex?: string;
|
|
2473
|
-
/** The covenant, structured. A directed swap carries this and no `offerHex`. */
|
|
2474
|
-
readonly binding?: RecordedOfferBinding;
|
|
2475
2475
|
readonly swapAddress: string;
|
|
2476
2476
|
/** The covenant's scriptPubKey, hex — the indexer's monitoring key and the reconcile's match key. */
|
|
2477
2477
|
readonly swapPkScript: string;
|
|
@@ -2709,4 +2709,4 @@ declare class InMemoryAssetSwapRepository implements AssetSwapRepository {
|
|
|
2709
2709
|
[Symbol.asyncDispose](): Promise<void>;
|
|
2710
2710
|
}
|
|
2711
2711
|
|
|
2712
|
-
export { type
|
|
2712
|
+
export { type OfferCovenant as $, type AssetId as A, type AtomicDecimal as B, type Corridor as C, type AuctionProvenance as D, BITCOIN_RAILS as E, BTC_ASSET_PART as F, type BitcoinRail as G, CORRIDORS as H, CORRIDOR_PASS as I, type CardMarketRef as J, type CorridorId as K, type LockupSpendIndexer as L, type CorridorKind as M, type NetworkRef as N, type OfferSwapRecord as O, type DepositArtifact as P, type QuoteId as Q, type Rail as R, type SwapRecord as S, type DisplayDecimal as T, type Endpoint as U, type Ep as V, type Instrument as W, LOCKUP_OWNER as X, type MarketBackend as Y, type MarketRef as Z, OFFER_SWAP_ID_PREFIX as _, type RfqSwapRecordStore as a, recordInstrument as a$, type Outcome as a0, type ParsedAssetId as a1, type PinnedAmount as a2, type Quote as a3, type QuoteInput as a4, type QuoteLeg as a5, RAILS as a6, RFQ_SWAP_ID_PREFIX as a7, type RailOf as a8, type RankedBid as a9, btcOn as aA, corridorOfRail as aB, corridorOutcome as aC, decodeRfqAmount as aD, encodeRfqAmount as aE, familyOfSwapId as aF, formatAssetId as aG, fromAtomicDecimal as aH, fromRfqAmountSide as aI, fundingWasNotSubmitted as aJ, fundsFromWallet as aK, instrumentOf as aL, isAssetId as aM, isAtomicDecimal as aN, isBtcAsset as aO, isBtcAssetLenient as aP, isNetworkRef as aQ, issuanceOf as aR, legOf as aS, offerOutcome as aT, parseAssetId as aU, quoteIdOfSwapId as aV, railOf as aW, railOfCorridor as aX, readsChain as aY, recordArtifact as aZ, recordEndpoint as a_, type RawState as aa, type ReceiverPaidCarrierQuote as ab, type RecordedArtifact as ac, type RecordedAssetPayment as ad, type RecordedEndpoint as ae, type RecordedInstrument as af, type RecordedLeg as ag, type ResolvedEndpoint as ah, type RestoredMarketRef as ai, type RfqAmountSide as aj, type Route as ak, type RouteResolution as al, type SnapshotRef as am, type Swap as an, type SwapFamily as ao, type SwapRecordCommon as ap, type SwapUpdate as aq, type TaxiIdentity as ar, type Unsubscribe as as, type VerifiedCarrierTerms as at, arkadeAsset as au, artifactOf as av, assetPartOf as aw, assetSwapIdOf as ax, bitcoinNetworkOf as ay, btcAssetPart as az, type CorridorSwapRecord as b, addAssetSwap as b$, recordLeg as b0, recordOutcome as b1, sameAsset as b2, swapOf as b3, toAtomicDecimal as b4, toRfqAmountSide as b5, toSafeNumber as b6, type MarketsCacheEntry as b7, InMemoryAssetSwapRepository as b8, type RfqSwapState as b9, type LockupParams as bA, type LockupSpend as bB, NoSpendableDepositError as bC, OFFER_PACKET_TYPE as bD, OfferCovenantMismatchError as bE, type OnchainReceiveAction as bF, OnchainReceiveNeedsChainSource as bG, type OnchainReceiveSwap as bH, type OnchainSendAction as bI, type OnchainSendSwap as bJ, type PersistableRfqSwap as bK, type PreimageBlockedReason as bL, PreimageNotRecoverableError as bM, REFUND_MTP_LAG_SECONDS as bN, RFQ_SWAP_RETENTION_SECONDS as bO, type ReceiveLockupSwap as bP, type RfqRestoreFailure as bQ, type RfqRestoreOptions as bR, type RfqRestoreResult as bS, type RfqSwapLockup as bT, RfqSwapManager as bU, type RfqSwapManagerConfig as bV, type RfqSwapManagerDeps as bW, type RfqSwapManagerEvents as bX, type RfqSwapOrigin as bY, RfqSwapOriginRequired as bZ, type RfqSwapOutcome as b_, type SwapContractRegistry as ba, type SwapOperator as bb, isRfqSwapTerminal as bc, type RfqSwapManagerCallbacks as bd, type RfqSwapActionName as be, type DerivedOffer as bf, type FillFunding as bg, type FillOutpoint as bh, type FillInputOwner as bi, type OfferBinding as bj, type SwapSecretsProjection as bk, type Offer as bl, type LockupContractSource as bm, type RfqSwap as bn, type ArkadeRefundResult as bo, type LockupVtxo as bp, ASSET_CARRIER_SATS as bq, ASSET_SWAP_CONTRACT_VERSIONS as br, ASSET_SWAP_DERIVABLE_VERSIONS as bs, type AssetSwapContractVersion as bt, type AvailableRfqSwapManagerCallbacks as bu, BTC_ASSET_ID as bv, type LightningReceiveSwap as bw, type LightningSendSwap as bx, type LockupFate as by, LockupNeedsRecoveryError as bz, type AssetSwapStatus as c, assetSwapContractVersion as c0, awaitRfqResolution as c1, bindingFromOffer as c2, bindingProgram as c3, cancelOffer as c4, createOffer as c5, createRfqSwapRecord as c6, decodeOffer as c7, encodeOffer as c8, fillOffer as c9, findLockupVtxos as ca, getAssetSwaps as cb, isRfqTerminal as cc, nextOnchainAction as cd, nextOnchainReceiveAction as ce, normalizeRfqSwapRecord as cf, offerContract as cg, offerFromBinding as ch, offerVtxoScript as ci, preimageForSwapRecord as cj, pushRefundWithoutReceiver as ck, readLockupFate as cl, rebuildRfqSwap as cm, rfqSwapOriginOf as cn, shouldRetainRfqSwap as co, swapPrograms as cp, swapSecretsToRecord as cq, updateAssetSwap as cr, updateRfqSwapRecord as cs, type RecordedOfferBinding as ct, type CoverageRegistrationOptions as cu, type AssetSwapRepository as d, type RfqSwapRecord as e, type RfqSwapPageFilter as f, type RfqSwapPageCursor as g, type AssetSwap as h, ACTIVITY_TOKEN as i, ARKADE_ASSET_NAMESPACE as j, Amount as k, AmountFormatError as l, type AmountOn as m, type AmountRefusal as n, type ArkadeCarrierChoice as o, type Artifact as p, AssetIdError as q, type AssetIdRefusal as r, type AssetNamespace as s, type AssetOn as t, type AssetPart as u, type AssetPaymentInput as v, type AssetPaymentTerms as w, type AssetRef as x, type AssetScale as y, type AssetSwapId as z };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { DiscoveredMarket } from '@arkade-os/solver-discovery';
|
|
2
2
|
import { arkade, asset, RelativeTimelock, OperatorInfo, ArkTxInput, Outpoint, IWallet, EmulatorProvider, ProvisionedKey, ProvisionedClaimSecret, OperatorProvider, Asset, RestIndexerProvider, IContractManager, VHTLC, Identity, Network, InputExpiryFloor, NetworkName, PageRequest, PageResult } from '@arkade-os/sdk';
|
|
3
|
-
import { ASSET_SWAP_V2,
|
|
3
|
+
import { ASSET_SWAP_V2, ASSET_SWAP_DIRECTED } from './rfq-contract.js';
|
|
4
4
|
import { m as RfqTransport, U as RfqStatus, O as OnchainHtlc, s as ChainUtxo, C as ChainSource, K as OnchainHtlcPhase, H as Hex, P as Pubkey } from './rfq-CYxOyniL.js';
|
|
5
5
|
|
|
6
|
-
/** `asset-swap`
|
|
6
|
+
/** The `asset-swap-v2` programs a fresh offer compiles. Exit is appended later; it is in neither.
|
|
7
7
|
*
|
|
8
8
|
* @deprecated Internal to `accept()`; no replacement. Moved off the package root to `@arkade-os/swap/protocol`.
|
|
9
9
|
*/
|
|
10
10
|
declare const swapPrograms: Record<"wantAsset" | "wantBtc", ReturnType<typeof arkade.parseArtifact>>;
|
|
11
|
-
type AssetSwapContractVersion = typeof ASSET_SWAP_V2 | typeof
|
|
11
|
+
type AssetSwapContractVersion = typeof ASSET_SWAP_V2 | typeof ASSET_SWAP_DIRECTED;
|
|
12
12
|
/** What every asset RFQ advertises: the directed covenant alone. */
|
|
13
|
-
declare const ASSET_SWAP_CONTRACT_VERSIONS: readonly ["asset-swap-
|
|
13
|
+
declare const ASSET_SWAP_CONTRACT_VERSIONS: readonly ["asset-swap-directed"];
|
|
14
14
|
/** Every version this build derives: the registry's keys, not a preference. */
|
|
15
|
-
declare const ASSET_SWAP_DERIVABLE_VERSIONS: readonly ["asset-swap-
|
|
15
|
+
declare const ASSET_SWAP_DERIVABLE_VERSIONS: readonly ["asset-swap-directed", "asset-swap-v2"];
|
|
16
16
|
/** Absent means {@link ASSET_SWAP_BASELINE}; an id this build cannot derive throws. */
|
|
17
17
|
declare const assetSwapContractVersion: (id: string | undefined) => AssetSwapContractVersion;
|
|
18
18
|
|
|
@@ -117,7 +117,7 @@ interface Offer {
|
|
|
117
117
|
* taproot tree, so it changes `swapPkScript` — see {@link offerVtxoScript}. */
|
|
118
118
|
exitDelay?: RelativeTimelock;
|
|
119
119
|
/** The solver key `fulfill` requires, x-only. Present on directed versions only, and its
|
|
120
|
-
* presence is what selects the `asset-swap-
|
|
120
|
+
* presence is what selects the `asset-swap-directed` tree. */
|
|
121
121
|
taker?: Uint8Array;
|
|
122
122
|
}
|
|
123
123
|
/** Program + args + keys of an offer's contract: the single source for address derivation and
|
|
@@ -152,7 +152,7 @@ interface OfferBinding {
|
|
|
152
152
|
readonly emulatorPublicKey: Uint8Array;
|
|
153
153
|
/** Omitted removes the exit leaf, which changes the address. */
|
|
154
154
|
readonly exitDelay?: RelativeTimelock;
|
|
155
|
-
/** The solver key `fulfill` requires; `asset-swap-
|
|
155
|
+
/** The solver key `fulfill` requires; `asset-swap-directed` only. */
|
|
156
156
|
readonly taker?: Uint8Array;
|
|
157
157
|
}
|
|
158
158
|
/** The binding's program, args and keys, at the binding's own version. */
|
|
@@ -266,7 +266,7 @@ interface OfferParams {
|
|
|
266
266
|
pkScript: Uint8Array;
|
|
267
267
|
publicKey: Uint8Array;
|
|
268
268
|
};
|
|
269
|
-
/** Defaults to {@link ASSET_SWAP_BASELINE}, or to `asset-swap-
|
|
269
|
+
/** Defaults to {@link ASSET_SWAP_BASELINE}, or to `asset-swap-directed` with a `taker`. */
|
|
270
270
|
contractVersion?: AssetSwapContractVersion;
|
|
271
271
|
/** The quoting solver's x-only key, for a directed offer. */
|
|
272
272
|
taker?: Uint8Array;
|
|
@@ -2211,10 +2211,10 @@ interface SnapshotRef {
|
|
|
2211
2211
|
readonly registry?: string;
|
|
2212
2212
|
}
|
|
2213
2213
|
/**
|
|
2214
|
-
* Which card priced a quote, and
|
|
2215
|
-
*
|
|
2214
|
+
* Which card priced a quote, and its source. quoteBid retains the verified card and records
|
|
2215
|
+
* auction evidence separately; legacy auction references and restored records remain readable.
|
|
2216
2216
|
*/
|
|
2217
|
-
type MarketRef = CardMarketRef |
|
|
2217
|
+
type MarketRef = CardMarketRef | RestoredMarketRef;
|
|
2218
2218
|
interface CardMarketRef {
|
|
2219
2219
|
readonly kind: "card";
|
|
2220
2220
|
/**
|
|
@@ -2235,12 +2235,6 @@ interface CardMarketRef {
|
|
|
2235
2235
|
readonly pair: string;
|
|
2236
2236
|
readonly snapshot: SnapshotRef;
|
|
2237
2237
|
}
|
|
2238
|
-
/** §10, reserved: a quote closed out of a published auction has no card. */
|
|
2239
|
-
interface AuctionMarketRef {
|
|
2240
|
-
readonly kind: "auction";
|
|
2241
|
-
readonly key: string;
|
|
2242
|
-
readonly backend: "rfq";
|
|
2243
|
-
}
|
|
2244
2238
|
/** A record rebuilt after a restore (from the funding tx, or a v1 corridor row): no card stands
|
|
2245
2239
|
* behind it. */
|
|
2246
2240
|
interface RestoredMarketRef {
|
|
@@ -2260,8 +2254,7 @@ interface RankedBid {
|
|
|
2260
2254
|
readonly expiresAt: number;
|
|
2261
2255
|
}
|
|
2262
2256
|
/**
|
|
2263
|
-
* The auction a
|
|
2264
|
-
* never populates it.
|
|
2257
|
+
* The open auction a quoteBid selection was closed out of. Ordinary quote() leaves it absent.
|
|
2265
2258
|
*/
|
|
2266
2259
|
interface AuctionProvenance {
|
|
2267
2260
|
/** The market key the open request was tagged with. */
|
|
@@ -2299,7 +2292,7 @@ interface Quote {
|
|
|
2299
2292
|
readonly market: MarketRef;
|
|
2300
2293
|
/** RFQ routes: the committed counterparty, from the quote's covenant role. */
|
|
2301
2294
|
readonly solver?: Pubkey;
|
|
2302
|
-
/**
|
|
2295
|
+
/** Evidence for an explicit open-RFQ selection. */
|
|
2303
2296
|
readonly auction?: AuctionProvenance;
|
|
2304
2297
|
/** Unix seconds. Non-optional on both backends — a feed-priced quote has no
|
|
2305
2298
|
* wire expiry to inherit, so the client mints one from the feed's freshness. */
|
|
@@ -2441,6 +2434,8 @@ interface SwapRecordCommon {
|
|
|
2441
2434
|
/** The quote's own deadline, unix seconds — what makes a stalled accept a
|
|
2442
2435
|
* benign abandon rather than a live obligation. */
|
|
2443
2436
|
readonly expiresAt: number;
|
|
2437
|
+
/** Retained funding dispatch cap for an auction-origin quote. */
|
|
2438
|
+
readonly fundingDeadline?: number;
|
|
2444
2439
|
/** The one thing a counterparty must see, when the route has one. Durable because a duplicate
|
|
2445
2440
|
* accept after a restart must return the SAME invoice, and the quote object is gone by then. */
|
|
2446
2441
|
readonly artifact?: RecordedArtifact;
|
|
@@ -2463,15 +2458,20 @@ interface SwapRecordCommon {
|
|
|
2463
2458
|
readonly createdAt: number;
|
|
2464
2459
|
readonly updatedAt: number;
|
|
2465
2460
|
}
|
|
2461
|
+
/** What rebuilds an offer's covenant: the TLV hex, the binding (a directed swap's only form), or both. */
|
|
2462
|
+
type OfferCovenant = {
|
|
2463
|
+
readonly offerHex: string;
|
|
2464
|
+
readonly binding?: RecordedOfferBinding;
|
|
2465
|
+
} | {
|
|
2466
|
+
readonly offerHex?: string;
|
|
2467
|
+
readonly binding: RecordedOfferBinding;
|
|
2468
|
+
};
|
|
2466
2469
|
/** `arkade <-> arkade`: the offer covenant, whole in `binding` or `offerHex`, so no tree params. */
|
|
2467
|
-
|
|
2470
|
+
type OfferSwapRecord = OfferSwapRecordFields & OfferCovenant;
|
|
2471
|
+
interface OfferSwapRecordFields extends SwapRecordCommon {
|
|
2468
2472
|
readonly family: "offer";
|
|
2469
2473
|
/** v1's raw status vocabulary, read verbatim by the drive's `RawState`. */
|
|
2470
2474
|
readonly status: AssetSwapStatus;
|
|
2471
|
-
/** The TLV offer, hex: what rebuilds the covenant when there is no `binding`. */
|
|
2472
|
-
readonly offerHex?: string;
|
|
2473
|
-
/** The covenant, structured. A directed swap carries this and no `offerHex`. */
|
|
2474
|
-
readonly binding?: RecordedOfferBinding;
|
|
2475
2475
|
readonly swapAddress: string;
|
|
2476
2476
|
/** The covenant's scriptPubKey, hex — the indexer's monitoring key and the reconcile's match key. */
|
|
2477
2477
|
readonly swapPkScript: string;
|
|
@@ -2709,4 +2709,4 @@ declare class InMemoryAssetSwapRepository implements AssetSwapRepository {
|
|
|
2709
2709
|
[Symbol.asyncDispose](): Promise<void>;
|
|
2710
2710
|
}
|
|
2711
2711
|
|
|
2712
|
-
export { type
|
|
2712
|
+
export { type OfferCovenant as $, type AssetId as A, type AtomicDecimal as B, type Corridor as C, type AuctionProvenance as D, BITCOIN_RAILS as E, BTC_ASSET_PART as F, type BitcoinRail as G, CORRIDORS as H, CORRIDOR_PASS as I, type CardMarketRef as J, type CorridorId as K, type LockupSpendIndexer as L, type CorridorKind as M, type NetworkRef as N, type OfferSwapRecord as O, type DepositArtifact as P, type QuoteId as Q, type Rail as R, type SwapRecord as S, type DisplayDecimal as T, type Endpoint as U, type Ep as V, type Instrument as W, LOCKUP_OWNER as X, type MarketBackend as Y, type MarketRef as Z, OFFER_SWAP_ID_PREFIX as _, type RfqSwapRecordStore as a, recordInstrument as a$, type Outcome as a0, type ParsedAssetId as a1, type PinnedAmount as a2, type Quote as a3, type QuoteInput as a4, type QuoteLeg as a5, RAILS as a6, RFQ_SWAP_ID_PREFIX as a7, type RailOf as a8, type RankedBid as a9, btcOn as aA, corridorOfRail as aB, corridorOutcome as aC, decodeRfqAmount as aD, encodeRfqAmount as aE, familyOfSwapId as aF, formatAssetId as aG, fromAtomicDecimal as aH, fromRfqAmountSide as aI, fundingWasNotSubmitted as aJ, fundsFromWallet as aK, instrumentOf as aL, isAssetId as aM, isAtomicDecimal as aN, isBtcAsset as aO, isBtcAssetLenient as aP, isNetworkRef as aQ, issuanceOf as aR, legOf as aS, offerOutcome as aT, parseAssetId as aU, quoteIdOfSwapId as aV, railOf as aW, railOfCorridor as aX, readsChain as aY, recordArtifact as aZ, recordEndpoint as a_, type RawState as aa, type ReceiverPaidCarrierQuote as ab, type RecordedArtifact as ac, type RecordedAssetPayment as ad, type RecordedEndpoint as ae, type RecordedInstrument as af, type RecordedLeg as ag, type ResolvedEndpoint as ah, type RestoredMarketRef as ai, type RfqAmountSide as aj, type Route as ak, type RouteResolution as al, type SnapshotRef as am, type Swap as an, type SwapFamily as ao, type SwapRecordCommon as ap, type SwapUpdate as aq, type TaxiIdentity as ar, type Unsubscribe as as, type VerifiedCarrierTerms as at, arkadeAsset as au, artifactOf as av, assetPartOf as aw, assetSwapIdOf as ax, bitcoinNetworkOf as ay, btcAssetPart as az, type CorridorSwapRecord as b, addAssetSwap as b$, recordLeg as b0, recordOutcome as b1, sameAsset as b2, swapOf as b3, toAtomicDecimal as b4, toRfqAmountSide as b5, toSafeNumber as b6, type MarketsCacheEntry as b7, InMemoryAssetSwapRepository as b8, type RfqSwapState as b9, type LockupParams as bA, type LockupSpend as bB, NoSpendableDepositError as bC, OFFER_PACKET_TYPE as bD, OfferCovenantMismatchError as bE, type OnchainReceiveAction as bF, OnchainReceiveNeedsChainSource as bG, type OnchainReceiveSwap as bH, type OnchainSendAction as bI, type OnchainSendSwap as bJ, type PersistableRfqSwap as bK, type PreimageBlockedReason as bL, PreimageNotRecoverableError as bM, REFUND_MTP_LAG_SECONDS as bN, RFQ_SWAP_RETENTION_SECONDS as bO, type ReceiveLockupSwap as bP, type RfqRestoreFailure as bQ, type RfqRestoreOptions as bR, type RfqRestoreResult as bS, type RfqSwapLockup as bT, RfqSwapManager as bU, type RfqSwapManagerConfig as bV, type RfqSwapManagerDeps as bW, type RfqSwapManagerEvents as bX, type RfqSwapOrigin as bY, RfqSwapOriginRequired as bZ, type RfqSwapOutcome as b_, type SwapContractRegistry as ba, type SwapOperator as bb, isRfqSwapTerminal as bc, type RfqSwapManagerCallbacks as bd, type RfqSwapActionName as be, type DerivedOffer as bf, type FillFunding as bg, type FillOutpoint as bh, type FillInputOwner as bi, type OfferBinding as bj, type SwapSecretsProjection as bk, type Offer as bl, type LockupContractSource as bm, type RfqSwap as bn, type ArkadeRefundResult as bo, type LockupVtxo as bp, ASSET_CARRIER_SATS as bq, ASSET_SWAP_CONTRACT_VERSIONS as br, ASSET_SWAP_DERIVABLE_VERSIONS as bs, type AssetSwapContractVersion as bt, type AvailableRfqSwapManagerCallbacks as bu, BTC_ASSET_ID as bv, type LightningReceiveSwap as bw, type LightningSendSwap as bx, type LockupFate as by, LockupNeedsRecoveryError as bz, type AssetSwapStatus as c, assetSwapContractVersion as c0, awaitRfqResolution as c1, bindingFromOffer as c2, bindingProgram as c3, cancelOffer as c4, createOffer as c5, createRfqSwapRecord as c6, decodeOffer as c7, encodeOffer as c8, fillOffer as c9, findLockupVtxos as ca, getAssetSwaps as cb, isRfqTerminal as cc, nextOnchainAction as cd, nextOnchainReceiveAction as ce, normalizeRfqSwapRecord as cf, offerContract as cg, offerFromBinding as ch, offerVtxoScript as ci, preimageForSwapRecord as cj, pushRefundWithoutReceiver as ck, readLockupFate as cl, rebuildRfqSwap as cm, rfqSwapOriginOf as cn, shouldRetainRfqSwap as co, swapPrograms as cp, swapSecretsToRecord as cq, updateAssetSwap as cr, updateRfqSwapRecord as cs, type RecordedOfferBinding as ct, type CoverageRegistrationOptions as cu, type AssetSwapRepository as d, type RfqSwapRecord as e, type RfqSwapPageFilter as f, type RfqSwapPageCursor as g, type AssetSwap as h, ACTIVITY_TOKEN as i, ARKADE_ASSET_NAMESPACE as j, Amount as k, AmountFormatError as l, type AmountOn as m, type AmountRefusal as n, type ArkadeCarrierChoice as o, type Artifact as p, AssetIdError as q, type AssetIdRefusal as r, type AssetNamespace as s, type AssetOn as t, type AssetPart as u, type AssetPaymentInput as v, type AssetPaymentTerms as w, type AssetRef as x, type AssetScale as y, type AssetSwapId as z };
|
package/dist/rfq-contract.cjs
CHANGED
|
@@ -21,9 +21,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var rfq_contract_exports = {};
|
|
22
22
|
__export(rfq_contract_exports, {
|
|
23
23
|
ASSET_SWAP_BASELINE: () => ASSET_SWAP_BASELINE,
|
|
24
|
+
ASSET_SWAP_DIRECTED: () => ASSET_SWAP_DIRECTED,
|
|
24
25
|
ASSET_SWAP_V2: () => ASSET_SWAP_V2,
|
|
25
|
-
ASSET_SWAP_V3: () => ASSET_SWAP_V3,
|
|
26
|
-
ASSET_SWAP_V4: () => ASSET_SWAP_V4,
|
|
27
26
|
RFQ_CONTRACT_VERSIONS_KEY: () => RFQ_CONTRACT_VERSIONS_KEY,
|
|
28
27
|
RFQ_CONTRACT_VERSION_KEY: () => RFQ_CONTRACT_VERSION_KEY,
|
|
29
28
|
RFQ_CONTRACT_VERSION_UNSUPPORTED: () => RFQ_CONTRACT_VERSION_UNSUPPORTED
|
|
@@ -33,15 +32,13 @@ var RFQ_CONTRACT_VERSIONS_KEY = "contract_versions";
|
|
|
33
32
|
var RFQ_CONTRACT_VERSION_KEY = "contract_version";
|
|
34
33
|
var RFQ_CONTRACT_VERSION_UNSUPPORTED = "contract_version_unsupported";
|
|
35
34
|
var ASSET_SWAP_V2 = "asset-swap-v2";
|
|
36
|
-
var
|
|
37
|
-
var ASSET_SWAP_V4 = "asset-swap-v4";
|
|
35
|
+
var ASSET_SWAP_DIRECTED = "asset-swap-directed";
|
|
38
36
|
var ASSET_SWAP_BASELINE = ASSET_SWAP_V2;
|
|
39
37
|
// Annotate the CommonJS export names for ESM import in node:
|
|
40
38
|
0 && (module.exports = {
|
|
41
39
|
ASSET_SWAP_BASELINE,
|
|
40
|
+
ASSET_SWAP_DIRECTED,
|
|
42
41
|
ASSET_SWAP_V2,
|
|
43
|
-
ASSET_SWAP_V3,
|
|
44
|
-
ASSET_SWAP_V4,
|
|
45
42
|
RFQ_CONTRACT_VERSIONS_KEY,
|
|
46
43
|
RFQ_CONTRACT_VERSION_KEY,
|
|
47
44
|
RFQ_CONTRACT_VERSION_UNSUPPORTED
|
package/dist/rfq-contract.d.cts
CHANGED
|
@@ -2,10 +2,9 @@ declare const RFQ_CONTRACT_VERSIONS_KEY = "contract_versions";
|
|
|
2
2
|
declare const RFQ_CONTRACT_VERSION_KEY = "contract_version";
|
|
3
3
|
declare const RFQ_CONTRACT_VERSION_UNSUPPORTED = "contract_version_unsupported";
|
|
4
4
|
declare const ASSET_SWAP_V2 = "asset-swap-v2";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare const ASSET_SWAP_V4 = "asset-swap-v4";
|
|
5
|
+
/** The directed covenant: `fulfill` also needs the quoting solver's `taker` signature. */
|
|
6
|
+
declare const ASSET_SWAP_DIRECTED = "asset-swap-directed";
|
|
8
7
|
/** A quote without a negotiated version uses this tree. */
|
|
9
8
|
declare const ASSET_SWAP_BASELINE = "asset-swap-v2";
|
|
10
9
|
|
|
11
|
-
export { ASSET_SWAP_BASELINE,
|
|
10
|
+
export { ASSET_SWAP_BASELINE, ASSET_SWAP_DIRECTED, ASSET_SWAP_V2, RFQ_CONTRACT_VERSIONS_KEY, RFQ_CONTRACT_VERSION_KEY, RFQ_CONTRACT_VERSION_UNSUPPORTED };
|
package/dist/rfq-contract.d.ts
CHANGED
|
@@ -2,10 +2,9 @@ declare const RFQ_CONTRACT_VERSIONS_KEY = "contract_versions";
|
|
|
2
2
|
declare const RFQ_CONTRACT_VERSION_KEY = "contract_version";
|
|
3
3
|
declare const RFQ_CONTRACT_VERSION_UNSUPPORTED = "contract_version_unsupported";
|
|
4
4
|
declare const ASSET_SWAP_V2 = "asset-swap-v2";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare const ASSET_SWAP_V4 = "asset-swap-v4";
|
|
5
|
+
/** The directed covenant: `fulfill` also needs the quoting solver's `taker` signature. */
|
|
6
|
+
declare const ASSET_SWAP_DIRECTED = "asset-swap-directed";
|
|
8
7
|
/** A quote without a negotiated version uses this tree. */
|
|
9
8
|
declare const ASSET_SWAP_BASELINE = "asset-swap-v2";
|
|
10
9
|
|
|
11
|
-
export { ASSET_SWAP_BASELINE,
|
|
10
|
+
export { ASSET_SWAP_BASELINE, ASSET_SWAP_DIRECTED, ASSET_SWAP_V2, RFQ_CONTRACT_VERSIONS_KEY, RFQ_CONTRACT_VERSION_KEY, RFQ_CONTRACT_VERSION_UNSUPPORTED };
|
package/dist/rfq-contract.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ASSET_SWAP_BASELINE,
|
|
3
|
+
ASSET_SWAP_DIRECTED,
|
|
3
4
|
ASSET_SWAP_V2,
|
|
4
|
-
ASSET_SWAP_V3,
|
|
5
|
-
ASSET_SWAP_V4,
|
|
6
5
|
RFQ_CONTRACT_VERSIONS_KEY,
|
|
7
6
|
RFQ_CONTRACT_VERSION_KEY,
|
|
8
7
|
RFQ_CONTRACT_VERSION_UNSUPPORTED
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VPVSSBY2.js";
|
|
10
9
|
export {
|
|
11
10
|
ASSET_SWAP_BASELINE,
|
|
11
|
+
ASSET_SWAP_DIRECTED,
|
|
12
12
|
ASSET_SWAP_V2,
|
|
13
|
-
ASSET_SWAP_V3,
|
|
14
|
-
ASSET_SWAP_V4,
|
|
15
13
|
RFQ_CONTRACT_VERSIONS_KEY,
|
|
16
14
|
RFQ_CONTRACT_VERSION_KEY,
|
|
17
15
|
RFQ_CONTRACT_VERSION_UNSUPPORTED
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare class SolverUnavailable extends Error {
|
|
2
|
+
constructor(message: string, options?: ErrorOptions);
|
|
3
|
+
}
|
|
4
|
+
declare class SolverResponseInvalid extends SolverUnavailable {
|
|
5
|
+
constructor(message: string, options?: ErrorOptions);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { SolverResponseInvalid as S, SolverUnavailable as a };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare class SolverUnavailable extends Error {
|
|
2
|
+
constructor(message: string, options?: ErrorOptions);
|
|
3
|
+
}
|
|
4
|
+
declare class SolverResponseInvalid extends SolverUnavailable {
|
|
5
|
+
constructor(message: string, options?: ErrorOptions);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { SolverResponseInvalid as S, SolverUnavailable as a };
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
verifySendWindow,
|
|
13
13
|
verifyTaker,
|
|
14
14
|
verifyingDerivation
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-CIDVLDDM.js";
|
|
16
|
+
import "./chunk-ISKJIONJ.js";
|
|
17
|
+
import "./chunk-VPVSSBY2.js";
|
|
18
18
|
import "./chunk-A3SHHRX4.js";
|
|
19
19
|
export {
|
|
20
20
|
verifiedCarrierSats,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IWallet } from '@arkade-os/sdk';
|
|
2
|
-
import { c as AssetSwapStatus, ct as RecordedOfferBinding, d as AssetSwapRepository, h as AssetSwap } from './repository-
|
|
2
|
+
import { c as AssetSwapStatus, ct as RecordedOfferBinding, d as AssetSwapRepository, h as AssetSwap } from './repository-suGldzOK.js';
|
|
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, ct as RecordedOfferBinding, d as AssetSwapRepository, h as AssetSwap } from './repository-
|
|
2
|
+
import { c as AssetSwapStatus, ct as RecordedOfferBinding, d as AssetSwapRepository, h as AssetSwap } from './repository-CFC0fHAy.cjs';
|
|
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.
|
|
3
|
+
"version": "0.1.12",
|
|
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": {
|
|
@@ -107,14 +107,14 @@
|
|
|
107
107
|
"author": "Arkade-OS",
|
|
108
108
|
"license": "MIT",
|
|
109
109
|
"dependencies": {
|
|
110
|
-
"@arkade-os/solver-discovery": "0.
|
|
110
|
+
"@arkade-os/solver-discovery": "0.4.0",
|
|
111
111
|
"@noble/ciphers": "2.1.1",
|
|
112
112
|
"@noble/curves": "2.4.0",
|
|
113
113
|
"@noble/hashes": "2.4.0",
|
|
114
114
|
"@scure/base": "2.4.0",
|
|
115
115
|
"@scure/btc-signer": "2.4.1",
|
|
116
116
|
"light-bolt11-decoder": "3.2.0",
|
|
117
|
-
"@arkade-os/sdk": "0.5.
|
|
117
|
+
"@arkade-os/sdk": "0.5.11"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
120
120
|
"nostr-tools": "2.24.1"
|