From 39a8001ab646a4dfb6111aaa56e091b2ed2af143 Mon Sep 17 00:00:00 2001 From: Jonathan Tzeng Date: Thu, 30 Jul 2026 18:47:10 -0700 Subject: [PATCH] Wire swaps.xyz swap provider Add SWAPSXYZ_INIT core plugin init (envConfig) and register the swapsxyz swap plugin in corePlugins so the app initializes the new edge-exchange-plugins swaps.xyz provider from env.json SWAPSXYZ_INIT.apiKey. Requires a published edge-exchange-plugins containing the swapsxyz plugin plus a dependency bump before it is functional. --- CHANGELOG.md | 1 + src/envConfig.ts | 5 +++++ src/util/corePlugins.ts | 1 + 3 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f72bf436d7..cf9f71d3a39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased (develop) +- added: swaps.xyz swap provider wiring (SWAPSXYZ_INIT core plugin init and registration). - added: Verbose logging for exchange rate queries: the request body, resolved/rate-less counts, and errors are captured when the Verbose Logging setting is enabled. - added: Exchange-rate cache snapshot in the support log output, plus a `rates-cache-replay` script that re-runs those queries against the rates server and reports the result for each pair. - added: "-m" tag on the version number in the Help scene for Maestro test builds diff --git a/src/envConfig.ts b/src/envConfig.ts index 20df307be82..1148d1803a6 100644 --- a/src/envConfig.ts +++ b/src/envConfig.ts @@ -425,6 +425,11 @@ export const asEnvConfig = asObject({ quiknodeApiKey: asOptional(asString, '') }).withRest ), + SWAPSXYZ_INIT: asCorePluginInit( + asObject({ + apiKey: asOptional(asString, '') + }).withRest + ), SWAPUZ_INIT: asCorePluginInit( asObject({ apiKey: asOptional(asString, '') diff --git a/src/util/corePlugins.ts b/src/util/corePlugins.ts index 55c017dad00..06a7013c49e 100644 --- a/src/util/corePlugins.ts +++ b/src/util/corePlugins.ts @@ -99,6 +99,7 @@ export const swapPlugins = { letsexchange: ENV.LETSEXCHANGE_INIT, nexchange: ENV.NEXCHANGE_INIT, sideshift: ENV.SIDESHIFT_INIT, + swapsxyz: ENV.SWAPSXYZ_INIT, swapuz: ENV.SWAPUZ_INIT, xgram: ENV.XGRAM_INIT, nymswap: ENV.NYM_SWAP_INIT,