From 0fb5ba4385b39e8c951f1d2bf70d327d53a9885c Mon Sep 17 00:00:00 2001 From: Jonathan Tzeng Date: Tue, 9 Jun 2026 14:39:19 -0700 Subject: [PATCH] Enable NYM swap provider Register the nymswap plugin (from edge-exchange-plugins) and add its NYM_SWAP_INIT core-plugin init ({ apiKey }, header x-api-key). The swap plugin id is nymswap, distinct from the nym currency plugin id. Configure the api key via env.json: "NYM_SWAP_INIT": { "apiKey": "" } Depends on EdgeApp/edge-exchange-plugins#457. --- CHANGELOG.md | 2 ++ src/envConfig.ts | 5 +++++ src/util/corePlugins.ts | 1 + 3 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a93be492443..245471c248b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased (develop) +- added: NYM swap provider (`nymswap`) + - added: Logbox disable option to env.json - added: Reverse-resolve recipient addresses to ENS / Unstoppable Domains / ZNS names in the send flow, address modal, and transaction history. diff --git a/src/envConfig.ts b/src/envConfig.ts index 149d1383f28..6421ac7466b 100644 --- a/src/envConfig.ts +++ b/src/envConfig.ts @@ -355,6 +355,11 @@ export const asEnvConfig = asObject({ }).withRest ), NYM_INIT: asCorePluginInit(asBoolean), + NYM_SWAP_INIT: asCorePluginInit( + asObject({ + apiKey: asOptional(asString, '') + }).withRest + ), OPBNB_INIT: asCorePluginInit(asEvmApiKeys), OPTIMISM_INIT: asCorePluginInit(asEvmApiKeys), OSMOSIS_INIT: asCorePluginInit(asEvmApiKeys), diff --git a/src/util/corePlugins.ts b/src/util/corePlugins.ts index 719aebe1008..14da155c03b 100644 --- a/src/util/corePlugins.ts +++ b/src/util/corePlugins.ts @@ -101,6 +101,7 @@ export const swapPlugins = { sideshift: ENV.SIDESHIFT_INIT, swapuz: ENV.SWAPUZ_INIT, xgram: ENV.XGRAM_INIT, + nymswap: ENV.NYM_SWAP_INIT, // Defi Swaps bridgeless: true,