Skip to content

v0.1.1

Choose a tag to compare

@ouziel-slama ouziel-slama released this 17 Jul 10:22
c53a0f6

[0.1.1] - 2026-07-17

Added

  • Pending-order surfacing on listSwaps: new ListSwapsParams.pendingAddress (a single address, or an array — one query prioritizes a wallet's in-progress orders across all its addresses) plus two new AtomicSwap fields, pendingRole ("seller" | "buyer" | null) and pendingTxid (string | null), populated only for that address's pending rows and null everywhere else
  • useSwapList / SwapList — opt-in includePendingOrders surfaces the connected wallet's in-progress orders (pending sell listings still settling on-chain + pending purchases whose buy tx is unconfirmed) as pendingOrders, self-polling until each tx confirms; trackPendingBuy(swap, txid) optimistically shows a just-made Kontor buy immediately, independent of the server's pending_address decoration
  • "Sold" feed on useSwapList / SwapListdefaultShowSold option and showSold / setShowSold / canShowSold: browse completed sales (the whole marketplace's, or narrowed to the wallet's own when combined with "My swaps"), as an independent dimension from the "My swaps" filter
  • HorizonMarketClient.recordKontorPurchase(swapId, { buyerAddress, txId }) — safe recovery that replays only the recording POST for a Kontor purchase whose swap reveal is already broadcast on-chain, never re-accepting (and re-broadcasting) the consumed offer
  • kontorPurchaseRecovery(err) helper and the KontorPurchaseRecovery type — extract { swapId, txId, buyerAddress } from a caught KontorPurchaseNotRecordedError without pulling the heavy @kontor/sdk backend into the main bundle

Fixed

  • Kontor KOR / NFT balance reads now resolve the wallet's registered Kontor signer-id (cached per x-only pubkey) and sum balances across every plausible holder ref (signer-id + both x-only-pubkey forms) — a wallet whose assets were credited to its signer-id previously read as a zero balance
  • Kontor purchase recording failures now surface the real underlying cause instead of a generic error, and support a safe record-only retry