@arkade-os/swap 0.0.18 → 0.0.19
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 +2 -1
- package/dist/{chunk-N3W6LXH6.js → chunk-D7GDHZCG.js} +1024 -93
- package/dist/index.cjs +207 -35
- package/dist/index.d.cts +16 -8
- package/dist/index.d.ts +16 -8
- package/dist/index.js +156 -862
- package/dist/nostr.cjs +108 -3
- package/dist/nostr.d.cts +1 -1
- package/dist/nostr.d.ts +1 -1
- package/dist/nostr.js +1 -1
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/{repository-BwasQwkR.d.cts → repository-B6VPDGHC.d.ts} +4 -1
- package/dist/{repository-CucjFZN1.d.ts → repository-BXIcmIIC.d.cts} +4 -1
- package/dist/{rfq-B_2hM0xk.d.ts → rfq-D96aLvCA.d.cts} +120 -10
- package/dist/{rfq-B_2hM0xk.d.cts → rfq-D96aLvCA.d.ts} +120 -10
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -80,7 +80,8 @@ funds an offer should keep cancelling within reach.
|
|
|
80
80
|
offers always derive identical swap addresses — the program JSONs are hashed into the address,
|
|
81
81
|
so their bytes are frozen (guarded by a golden test).
|
|
82
82
|
2. **`markets`** — solver discovery and pricing guardrails: `discoverMarkets` (1-hour cached
|
|
83
|
-
registry fetch with stale-cache fallback
|
|
83
|
+
registry fetch with stale-cache fallback; it follows the network's published index unless
|
|
84
|
+
`registryUrl` overrides it), `findMarket`, `validatePlan` (balance, both-side
|
|
84
85
|
limits, BTC-leg dust), `QUOTE_OPTIONS`, and `makeCachedFeedFetch` for rate-limited price feeds.
|
|
85
86
|
3. **`store`** — the persisted `AssetSwap` records (`getAssetSwaps`/`addAssetSwap`/
|
|
86
87
|
`updateAssetSwap`), thin helpers over an `AssetSwapRepository`. Read failures degrade to an
|