Commit 1166816
committed
Add n.exchange centralized swap integration
Integrate n.exchange as a centralized swap provider supporting
multiple networks and tokens. The implementation uses contract
addresses for token identification, eliminating the need for
currency code mapping. This approach provides better support for
tokens and aligns with API requirements.
The integration includes support for native currencies and ERC20
tokens across major networks including Ethereum, Polygon, Base,
Arbitrum, Optimism, BSC, and others. The plugin handles rate
queries, order creation, and payment processing through the
n.exchange API v2.
Additional changes include mapctl tooling for automatic provider
mappings and updates to existing swap plugins to use the new
mapping system.1 parent 3ce06e7 commit 1166816
File tree
6 files changed
+638
-0
lines changed- src
- swap/central
- test
- partnerJson
6 files changed
+638
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
0 commit comments