Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- added: changelly support

## 2.43.0 (2026-03-10)

- added: Xgram support
Expand Down
102 changes: 102 additions & 0 deletions scripts/mappings/changellyMappings.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
import { EdgeCurrencyPluginId } from '../../src/util/edgeCurrencyPluginIds'

export const changelly = new Map<string, EdgeCurrencyPluginId | null>()
changelly.set('ADA', 'cardano')

changelly.set('ALGO', 'algorand')

changelly.set('ARB', 'arbitrum')

changelly.set('ARRR', 'piratechain')

changelly.set('ATOM', 'cosmoshub')

changelly.set('AVAXC', 'avalanche')

changelly.set('BCH', 'bitcoincash')

changelly.set('BCHSV', 'bitcoinsv')

changelly.set('BSC', 'binancesmartchain')

changelly.set('BTC', 'bitcoin')

changelly.set('CELO', 'celo')

changelly.set('DASH', 'dash')

changelly.set('DGB', 'digibyte')

changelly.set('DOGE', 'dogecoin')

changelly.set('DOT', 'polkadot')

changelly.set('ETC', 'ethereumclassic')

changelly.set('ETH', 'ethereum')

changelly.set('ETHW', 'ethereumpow')

changelly.set('FIL', 'filecoin')

changelly.set('FIO', 'fio')

changelly.set('FIRO', 'zcoin')

changelly.set('GRS', 'groestlcoin')

changelly.set('HBAR', 'hedera')

changelly.set('LTC', 'litecoin')

changelly.set('MATIC', 'polygon')

changelly.set('MON', 'monad')

changelly.set('OPTIMISM', 'optimism')

changelly.set('PIVX', 'pivx')

changelly.set('QTUM', 'qtum')

changelly.set('RVN', 'ravencoin')

changelly.set('SOL', 'solana')

changelly.set('TON', 'ton')

changelly.set('TRX', 'tron')

changelly.set('XEC', 'ecash')

changelly.set('XLM', 'stellar')

changelly.set('XMR', 'monero')

changelly.set('XRP', 'ripple')

changelly.set('XTZ', 'tezos')

changelly.set('XVG', null)

changelly.set('ZEC', 'zcash')

changelly.set('base', 'base')

changelly.set('coreum', 'coreum')

changelly.set('hypeevm', 'hyperevm')

changelly.set('osmo', 'osmosis')

changelly.set('rootstock', 'rsk')

changelly.set('rune', 'thorchainrune')

changelly.set('sonic', 'sonic')

changelly.set('sui', 'sui')

changelly.set('wax', 'wax')

changelly.set('zksync', 'zksync')
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'regenerator-runtime/runtime'
import type { EdgeCorePlugins } from 'edge-core-js/types'

import { makeChangeHeroPlugin } from './swap/central/changehero'
import makeChangellyPlugin from './swap/central/changelly'
import { makeChangeNowPlugin } from './swap/central/changenow'
import { makeExolixPlugin } from './swap/central/exolix'
import { makeGodexPlugin } from './swap/central/godex'
Expand Down Expand Up @@ -33,6 +34,7 @@ const plugins = {
bridgeless: makeBridgelessPlugin,
changehero: makeChangeHeroPlugin,
changenow: makeChangeNowPlugin,
changelly: makeChangellyPlugin,
cosmosibc: makeCosmosIbcPlugin,
exolix: makeExolixPlugin,
godex: makeGodexPlugin,
Expand Down
101 changes: 101 additions & 0 deletions src/mappings/changelly.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
/**
* AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
*
* This file is automatically generated from scripts/mappings/changellyMappings.ts
* To regenerate this file, run: yarn mapctl update-mappings
*
* To edit mappings:
* 1. Edit scripts/mappings/changellyMappings.ts
* 2. Run: yarn mapctl update-mappings
*
* This file maps EdgeCurrencyPluginId -> synchronizer network identifier (or null)
*/

import { EdgeCurrencyPluginId } from '../util/edgeCurrencyPluginIds'

export const changelly = new Map<EdgeCurrencyPluginId, string | null>()
changelly.set('abstract', null)
changelly.set('algorand', 'ALGO')
changelly.set('amoy', null)
changelly.set('arbitrum', 'ARB')
changelly.set('avalanche', 'AVAXC')
changelly.set('axelar', null)
changelly.set('badcoin', null)
changelly.set('base', 'base')
changelly.set('binance', null)
changelly.set('binancesmartchain', 'BSC')
changelly.set('bitcoin', 'BTC')
changelly.set('bitcoincash', 'BCH')
changelly.set('bitcoincashtestnet', null)
changelly.set('bitcoingold', null)
changelly.set('bitcoingoldtestnet', null)
changelly.set('bitcoinsv', 'BCHSV')
changelly.set('bitcointestnet', null)
changelly.set('bitcointestnet4', null)
changelly.set('bobevm', null)
changelly.set('botanix', null)
changelly.set('calibration', null)
changelly.set('cardano', 'ADA')
changelly.set('cardanotestnet', null)
changelly.set('celo', 'CELO')
changelly.set('coreum', 'coreum')
changelly.set('cosmoshub', 'ATOM')
changelly.set('dash', 'DASH')
changelly.set('digibyte', 'DGB')
changelly.set('dogecoin', 'DOGE')
changelly.set('eboost', null)
changelly.set('ecash', 'XEC')
changelly.set('eos', null)
changelly.set('ethDev', null)
changelly.set('ethereum', 'ETH')
changelly.set('ethereumclassic', 'ETC')
changelly.set('ethereumpow', 'ETHW')
changelly.set('fantom', null)
changelly.set('feathercoin', null)
changelly.set('filecoin', 'FIL')
changelly.set('filecoinfevm', null)
changelly.set('filecoinfevmcalibration', null)
changelly.set('fio', 'FIO')
changelly.set('groestlcoin', 'GRS')
changelly.set('hedera', 'HBAR')
changelly.set('holesky', null)
changelly.set('hyperevm', 'hypeevm')
changelly.set('liberland', null)
changelly.set('liberlandtestnet', null)
changelly.set('litecoin', 'LTC')
changelly.set('mayachain', null)
changelly.set('monad', 'MON')
changelly.set('monero', 'XMR')
changelly.set('nym', null)
changelly.set('opbnb', null)
changelly.set('optimism', 'OPTIMISM')
changelly.set('osmosis', 'osmo')
changelly.set('piratechain', 'ARRR')
changelly.set('pivx', 'PIVX')
changelly.set('polkadot', 'DOT')
changelly.set('polygon', 'MATIC')
changelly.set('pulsechain', null)
changelly.set('qtum', 'QTUM')
changelly.set('ravencoin', 'RVN')
changelly.set('ripple', 'XRP')
changelly.set('rsk', 'rootstock')
changelly.set('sepolia', null)
changelly.set('smartcash', null)
changelly.set('solana', 'SOL')
changelly.set('sonic', 'sonic')
changelly.set('stellar', 'XLM')
changelly.set('sui', 'sui')
changelly.set('suitestnet', null)
changelly.set('telos', null)
changelly.set('tezos', 'XTZ')
changelly.set('thorchainrune', 'rune')
changelly.set('thorchainrunestagenet', null)
changelly.set('ton', 'TON')
changelly.set('tron', 'TRX')
changelly.set('ufo', null)
changelly.set('vertcoin', null)
changelly.set('wax', 'wax')
changelly.set('zano', null)
changelly.set('zcash', 'ZEC')
changelly.set('zcoin', 'FIRO')
changelly.set('zksync', 'zksync')
Loading