Skip to content

Feat: Changelly integration#6028

Merged
peachbits merged 2 commits into
developfrom
matthew/changelly-integration
Jul 14, 2026
Merged

Feat: Changelly integration#6028
peachbits merged 2 commits into
developfrom
matthew/changelly-integration

Conversation

@peachbits

@peachbits peachbits commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Replaces #5988, reordered so the obfuscation utility lands first:

  1. Add asObfuscatedString cleaner — a codec that decodes strings stored as arrays of XOR-masked char codes, plus scripts/obfuscateString.ts to generate the arrays.
  2. Feat: Changelly integration — enables the changelly swap plugin with CHANGELLY_INIT: an apiKey stored XOR-obfuscated in env.json plus a plaintext partnerId (edge-app), both required with no defaults, passed to the plugin via initOptions (see Add Changelly swap plugin edge-exchange-plugins#471).

🤖 Generated with Claude Code


Note

Medium Risk
New third-party swap integration and env credential handling; impact is limited to swap quoting/execution when config is present, not core auth or funds custody.

Overview
Adds Changelly as a centralized swap provider, gated by new CHANGELLY_INIT in env config (apiKey via XOR-masked char arrays, plaintext partnerId; both optional with no defaults so incomplete config disables the plugin). The provider is registered in swapPlugins and gets the usual UI wiring (CDN icon, KYC/terms links in SwapVerifyTermsModal).

Introduces asObfuscatedString (cleaner + scripts/obfuscateString.ts) so sensitive env fields can be stored as obfuscated arrays instead of plain strings.

Reviewed by Cursor Bugbot for commit 2c377f4. Bugbot is set up for automated code reviews on this repo. Configure here.


Comment thread src/envConfig.ts Outdated
Comment thread src/envConfig.ts Outdated
Comment thread src/util/corePlugins.ts

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

Claude Code Review is paused for this repository. To reconnect it, an admin of this repository's GitHub organization (or the account owner, for personal repositories) who can also manage your Claude organization's Code Review settings needs to re-link GitHub in Code Review settings. This is a one-time step.

Tip: disable this comment in your organization's Code Review settings.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d6163cb. Configure here.

Comment thread src/envConfig.ts
Comment thread src/envConfig.ts
Comment thread src/util/corePlugins.ts
@peachbits peachbits force-pushed the matthew/changelly-integration branch from d6163cb to 2b9cbac Compare July 13, 2026 17:31
peachbits and others added 2 commits July 14, 2026 00:45
Decodes strings stored as arrays of XOR-masked char codes, with a
scripts/obfuscateString.ts helper to generate the arrays for env.json.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Enable the changelly swap plugin, with API credentials supplied via
initOptions and stored XOR-obfuscated in env.json.

Co-authored-by: Changelly <changelly@users.noreply.github.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@peachbits peachbits force-pushed the matthew/changelly-integration branch from 2b9cbac to 2c377f4 Compare July 14, 2026 07:45
@peachbits peachbits merged commit ba9a68a into develop Jul 14, 2026
6 of 7 checks passed
@peachbits peachbits deleted the matthew/changelly-integration branch July 14, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants