diff --git a/.github/workflows/atomicdex-desktop-ci.yml b/.github/workflows/atomicdex-desktop-ci.yml
index d5a2357d17..45c8fa9ec1 100644
--- a/.github/workflows/atomicdex-desktop-ci.yml
+++ b/.github/workflows/atomicdex-desktop-ci.yml
@@ -11,7 +11,7 @@ on:
workflow_dispatch:
env:
- DEX_API: "mm2_kmd"
+ DEX_API: "kdf_kwd"
DEX_RPCPORT: 7762
DEX_RPC: "http://127.0.0.1:7762"
DEX_PROJECT_NAME: "komodo-wallet"
diff --git a/.gitignore b/.gitignore
index 93ff04824c..2d8737bf37 100644
--- a/.gitignore
+++ b/.gitignore
@@ -69,7 +69,7 @@ Thumbs.db
# --------
*.exe
-/assets/tools/mm2/
+/assets/tools/kdf/
/ci_tools_atomic_dex/vcpkg-repo/
/ci_tools_atomic_dex/ci_tools_atomic_dex
ci_tools_atomic_dex/build-Release
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9fcee9712d..35f69d82e0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,14 +59,14 @@ endif ()
##! We fetch our dependencies
if (APPLE)
- FetchContent_Declare(mm2
- URL https://sdk.devbuilds.komodo.earth/dev/mm2_a81f2a1-mac-x86-64.zip)
+ FetchContent_Declare(kdf
+ URL https://sdk.devbuilds.komodo.earth/main/kdf_35e9239-mac-x86-64.zip)
elseif (UNIX AND NOT APPLE)
- FetchContent_Declare(mm2
- URL https://sdk.devbuilds.komodo.earth/dev/mm2_a81f2a1-linux-x86-64.zip)
+ FetchContent_Declare(kdf
+ URL https://sdk.devbuilds.komodo.earth/main/kdf_35e9239-linux-x86-64.zip)
else ()
- FetchContent_Declare(mm2
- URL https://sdk.devbuilds.komodo.earth/dev/mm2_a81f2a1-win-x86-64.zip)
+ FetchContent_Declare(kdf
+ URL https://sdk.devbuilds.komodo.earth/main/kdf_35e9239-win-x86-64.zip)
endif ()
#FetchContent_Declare(qmaterial URL https://github.com/KomodoPlatform/Qaterial/archive/last-clang-working-2.zip)
@@ -83,20 +83,20 @@ FetchContent_Declare(jl777-coins
#FetchContent_Declare(adex-generics-coins
# URL https://github.com/KomodoPlatform/komodo-wallet-desktop/archive/main.zip)
-FetchContent_MakeAvailable(mm2 jl777-coins qmaterial)
+FetchContent_MakeAvailable(kdf jl777-coins qmaterial)
##! Configure our needs.
if (UNIX)
configure_file(${jl777-coins_SOURCE_DIR}/utils/coins_config_tcp.json ${CMAKE_CURRENT_SOURCE_DIR}/assets/config/${PROJECT_VERSION}-coins.json COPYONLY)
- configure_file(${jl777-coins_SOURCE_DIR}/coins ${CMAKE_CURRENT_SOURCE_DIR}/assets/tools/mm2/coins COPYONLY)
- configure_file(${mm2_SOURCE_DIR}/mm2 ${CMAKE_CURRENT_SOURCE_DIR}/assets/tools/mm2/${DEX_API} COPYONLY)
+ configure_file(${jl777-coins_SOURCE_DIR}/coins ${CMAKE_CURRENT_SOURCE_DIR}/assets/tools/kdf/coins COPYONLY)
+ configure_file(${kdf_SOURCE_DIR}/kdf ${CMAKE_CURRENT_SOURCE_DIR}/assets/tools/kdf/${DEX_API} COPYONLY)
file(COPY ${jl777-coins_SOURCE_DIR}/icons/ DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/atomic_defi_design/assets/images/coins/)
else ()
configure_file(${jl777-coins_SOURCE_DIR}/utils/coins_config_tcp.json ${CMAKE_BINARY_DIR}/bin/assets/config/${PROJECT_VERSION}-coins.json COPYONLY)
- configure_file(${jl777-coins_SOURCE_DIR}/coins ${CMAKE_BINARY_DIR}/bin/assets/tools/mm2/coins COPYONLY)
- configure_file(${mm2_SOURCE_DIR}/mm2.exe ${CMAKE_BINARY_DIR}/bin/assets/tools/mm2/${DEX_API}.exe COPYONLY)
- configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ci_tools_atomic_dex/windows_misc/msvcp140.dll ${CMAKE_BINARY_DIR}/bin/assets/tools/mm2/msvcp140.dll COPYONLY)
- configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ci_tools_atomic_dex/windows_misc/vcruntime140.dll ${CMAKE_BINARY_DIR}/bin/assets/tools/mm2/vcruntime140.dll COPYONLY)
+ configure_file(${jl777-coins_SOURCE_DIR}/coins ${CMAKE_BINARY_DIR}/bin/assets/tools/kdf/coins COPYONLY)
+ configure_file(${kdf_SOURCE_DIR}/kdf.exe ${CMAKE_BINARY_DIR}/bin/assets/tools/kdf/${DEX_API}.exe COPYONLY)
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ci_tools_atomic_dex/windows_misc/msvcp140.dll ${CMAKE_BINARY_DIR}/bin/assets/tools/kdf/msvcp140.dll COPYONLY)
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ci_tools_atomic_dex/windows_misc/vcruntime140.dll ${CMAKE_BINARY_DIR}/bin/assets/tools/kdf/vcruntime140.dll COPYONLY)
endif ()
diff --git a/assets/tools/.gitignore b/assets/tools/.gitignore
index b7e0b1c746..a9ab3e54fd 100644
--- a/assets/tools/.gitignore
+++ b/assets/tools/.gitignore
@@ -1,2 +1,3 @@
mm2
coins
+kdf
\ No newline at end of file
diff --git a/atomic_defi_design/Dex/Constants/General.qml b/atomic_defi_design/Dex/Constants/General.qml
index d9625cdb59..8f626296f7 100644
--- a/atomic_defi_design/Dex/Constants/General.qml
+++ b/atomic_defi_design/Dex/Constants/General.qml
@@ -175,7 +175,7 @@ QtObject {
}
function coinContractAddress(ticker) {
- var cfg = API.app.trading_pg.get_raw_mm2_coin_cfg(ticker)
+ var cfg = API.app.trading_pg.get_raw_kdf_coin_cfg(ticker)
if (cfg.hasOwnProperty('protocol')) {
if (cfg.protocol.hasOwnProperty('protocol_data')) {
if (cfg.protocol.protocol_data.hasOwnProperty('contract_address')) {
@@ -187,7 +187,7 @@ QtObject {
}
function coinPlatform(ticker) {
- var cfg = API.app.trading_pg.get_raw_mm2_coin_cfg(ticker)
+ var cfg = API.app.trading_pg.get_raw_kdf_coin_cfg(ticker)
if (cfg.hasOwnProperty('protocol')) {
if (cfg.protocol.hasOwnProperty('protocol_data')) {
if (cfg.protocol.protocol_data.hasOwnProperty('platform')) {
diff --git a/atomic_defi_design/Dex/Exchange/Trade/ConfirmTradeModal.qml b/atomic_defi_design/Dex/Exchange/Trade/ConfirmTradeModal.qml
index 8056ecbef9..6337d84d9e 100644
--- a/atomic_defi_design/Dex/Exchange/Trade/ConfirmTradeModal.qml
+++ b/atomic_defi_design/Dex/Exchange/Trade/ConfirmTradeModal.qml
@@ -84,7 +84,7 @@ MultipageModal
{
id: config_section
- readonly property var default_config: API.app.trading_pg.get_raw_mm2_coin_cfg(rel_ticker)
+ readonly property var default_config: API.app.trading_pg.get_raw_kdf_coin_cfg(rel_ticker)
readonly property bool is_dpow_configurable: config_section.default_config.requires_notarization || false
width: dex_pair_badges.width - 40
diff --git a/atomic_defi_design/Dex/Screens/Startup/Logging.qml b/atomic_defi_design/Dex/Screens/Startup/Logging.qml
index 81c63ff6d0..5613551727 100644
--- a/atomic_defi_design/Dex/Screens/Startup/Logging.qml
+++ b/atomic_defi_design/Dex/Screens/Startup/Logging.qml
@@ -39,7 +39,7 @@ SetupPage
DefaultText
{
Layout.alignment: Qt.AlignHCenter
- text_value: (current_status === "initializing_mm2" ? qsTr("Initializing MM2") :
+ text_value: (current_status === "initializing_kdf" ? qsTr("Initializing KDF") :
current_status === "enabling_coins" ? qsTr("Enabling assets") : qsTr("Getting ready")) + "..."
}
}
diff --git a/atomic_defi_design/Dex/Settings/AddCustomCoinModal.qml b/atomic_defi_design/Dex/Settings/AddCustomCoinModal.qml
index d48dffbc28..a8fc9d57f3 100644
--- a/atomic_defi_design/Dex/Settings/AddCustomCoinModal.qml
+++ b/atomic_defi_design/Dex/Settings/AddCustomCoinModal.qml
@@ -44,7 +44,7 @@ MultipageModal
onCustom_token_dataChanged: {
const data = custom_token_data
- if(!data.mm2_cfg) return
+ if(!data.kdf_cfg) return
var fields = General.clone(config_fields)
diff --git a/atomic_defi_design/Dex/Settings/SettingModal.qml b/atomic_defi_design/Dex/Settings/SettingModal.qml
index 246d38c9b3..c069496e00 100644
--- a/atomic_defi_design/Dex/Settings/SettingModal.qml
+++ b/atomic_defi_design/Dex/Settings/SettingModal.qml
@@ -725,15 +725,15 @@ Qaterial.Dialog
{
Layout.alignment: Qt.AlignVCenter
Layout.fillWidth: true
- text: qsTr("MM2 version")
+ text: qsTr("KDF version")
}
DexCopyableLabel
{
Layout.alignment: Qt.AlignVCenter
- text: API.app.settings_pg.get_mm2_version()
- onCopyNotificationTitle: qsTr("MM2 Version")
- onCopyNotificationMsg: qsTr("MM2 Version copied to clipboard.")
+ text: API.app.settings_pg.get_kdf_version()
+ onCopyNotificationTitle: qsTr("KDF Version")
+ onCopyNotificationMsg: qsTr("KDF Version copied to clipboard.")
}
}
diff --git a/atomic_defi_design/assets/languages/atomic_defi_de.ts b/atomic_defi_design/assets/languages/atomic_defi_de.ts
index dd48b90277..11040980fc 100644
--- a/atomic_defi_design/assets/languages/atomic_defi_de.ts
+++ b/atomic_defi_design/assets/languages/atomic_defi_de.ts
@@ -760,83 +760,93 @@ Beispiel: Kennwort = 1234 Suffix=56 Eingabe beim Login=123456
ConfirmTradeModal
-
+
Bestätigen Sie die Austausch-Details
-
+
Der Handelspreis unterscheidet sich um mehr als 50% vom CEX-Preis. Bestätigen?
-
+
Diese Tauschanfrage kann nicht rückgängig gemacht werden und ist ein endgültiges Ereignis!
-
+
Diese Transaktion kann bis zu 60 Minuten dauern - schließen Sie diese Anwendung NICHT!
-
+
Lade Gebühren...
-
+
<b>Gesamt %1 Gebühren:</b>
-
+
Sicherheitskonfiguration
-
+
%1 Bestätigungen für eingehende %2 Transaktionen
-
+
Lesen Sie mehr über dPoW
-
+
+
+
+
+
+
+
+
+
+
+
TICKER
Benutzerdefinierte Schutzeinstellungen für eingehende %1 Transaktionen verwenden
-
+
Komodo dPoW-Sicherheit aktivieren
-
+
dPoW-gesichert
-
+
Erforderliche Bestätigungen
-
+
Achtung, dieser Atomic Swap ist nicht dPoW-geschützt!
-
+
Abbrechen
-
+
Bestätigen
@@ -1760,11 +1770,11 @@ Try again or select 'Allow custom seed' to continue.
-
- Die günstigsten Order
+
+
-
+
@@ -1772,17 +1782,22 @@ Try again or select 'Allow custom seed' to continue.
ListDelegate
-
+
%1 ist nicht aktiviert - Möchten Sie es aktivieren, um die günstigsten Order von %2 auswählen zu können? <br><a href='#'>Ja</a> - <a href='#no'>Nein</a>
-
+
-
+
+
+
+
+
+
Für diese Order ist ein Mindestbetrag von %1 %2 erforderlich. <br>Ihr Guthaben reicht nicht aus.<br> %3
@@ -1804,8 +1819,8 @@ Try again or select 'Allow custom seed' to continue.
-
- MM2 initialisieren
+
+
@@ -1914,7 +1929,7 @@ They will be removed from the orderbook until you log in again.
Empfangen
-
+
Tausch
@@ -1945,84 +1960,69 @@ They will be removed from the orderbook until you log in again.
-
-
-
+
+
+
Öffentlicher Schlüssel
-
+
In die Zwischenablage kopiert
-
+
-
+
Für diesen Ticker liegen noch keine Chartdaten vor
-
+
Transaktionen werden abgerufen...
-
+
-
+
-
+
-
+
-
+
Chart
-
-
+
+
Order
-
-
+
+
Historie
-
-
-
- Order platzieren
-
-
-
-
- Order ausgewählt
-
-
-
-
- TAUSCH STARTEN
-
@@ -2074,6 +2074,16 @@ They will be removed from the orderbook until you log in again.
Dieser Kontakt hat keine registrierte Adresse.
+
+
+
+ Taker-Order
+
+
+
+
+ Maker-Order
+
Market
@@ -2091,13 +2101,13 @@ They will be removed from the orderbook until you log in again.
MarketModeSelector
-
+
TICKER
%1 Verkaufen
-
+
TICKER
%1 Kaufen
@@ -2531,95 +2541,110 @@ They will be removed from the orderbook until you log in again.
OrderForm
-
+
Preis
-
+
-
+
-
+
-
+
Senden
-
+
Empfangen
-
+
Max
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
Mindestvolumen:
-
+
Benutzerdefinierten Mindesthandelsbetrag verwenden
+
+
+
+ Order ausgewählt
+
+
+
+
+
+
+
+
+
+
+
OrderLine
@@ -2640,104 +2665,114 @@ They will be removed from the orderbook until you log in again.
OrderModal
-
+
Orderart
-
+
Maker-Order
-
+
Taker-Order
-
+
Rückerstattungsstatus
-
+
Ihr Umtausch ist fehlgeschlagen, aber der automatische Rückerstattungsprozess für Ihre Zahlung hat bereits begonnen. Bitte warten Sie und lassen Sie die Anwendung geöffnet, bis Sie Ihre Zahlung zurückerhalten
-
+
Datum
-
+
Fehler-ID
-
-
+
+
Fehlerprotokoll
-
+
Schließen
-
+
Order Abbrechen
-
-
+
+
+
+
+
+
+
+
+
+
+
+
Swap ID
-
+
Maker-Zahlung gesendet: Transaktions-ID
-
+
Maker-Zahlung ausgegeben: Transaktions-ID
-
+
Maker-Zahlung: TXID
-
+
Taker-Zahlung ausgegeben: Transaktions-ID
-
+
Taker-Zahlung gesendet: Transaktions-ID
-
+
Taker-Zahlung: TXID
-
+
Rückerstattung der Geldmittel
-
+
Rückzahlung…
-
+
Ansicht im Explorer
@@ -2751,10 +2786,9 @@ They will be removed from the orderbook until you log in again.
-
@@ -2906,23 +2940,23 @@ Bitte wählen Sie eine neue Order aus.
Ausgewählt
-
+
Expensive
Teuer
-
+
Expedient
Sinnvoll
-
+
%1 compared to CEX
PRICE_DIFF%
%1 im Vergleich zu CEX
-
+
CEXchange rate
CEX-Wechselkurs
@@ -2945,17 +2979,17 @@ Bitte wählen Sie eine neue Order aus.
CEX-Wechselkurs
-
+
Expensive
Teuer
-
+
Expedient
Sinnvoll
-
+
%1 compared to CEX
PRICE_DIFF%
%1 im Vergleich zu CEX
@@ -2964,12 +2998,12 @@ Bitte wählen Sie eine neue Order aus.
ProView
-
+
Failed to place the order
Die Order konnte nicht platziert werden
-
+
Placed the order
Order platziert
@@ -3438,7 +3472,7 @@ Bitte wählen Sie eine neue Order aus.
SettingModal
-
+
Cancel
Abbrechen
@@ -3533,63 +3567,83 @@ Bitte wählen Sie eine neue Order aus.
Design zu %1 geändert
-
+
+ Show orders after placement
+
+
+
+
Disable 2FA?
2FA deaktivieren?
-
+
Enter your wallet password to confirm
Geben Sie zur Bestätigung das Kennwort ihrer Brieftasche ein
-
+
Type password
Kennwort eingeben
-
+
2FA status
2FA Status
-
+
2FA disabled successfully
2FA erfolgreich deaktiviert
-
-
+
+
Ok
Ok
-
+
Wrong password!
Falsches Kennwort!
-
+
Wallet password is incorrect
Kennwort der Brieftasche ist falsch
-
+
Reuse static RPC password
-
+
Application Version
Anwendungsversion
-
+
copied to clipboard
In die Zwischenablage kopiert
-
+
+ KDF version
+
+
+
+
+ KDF Version
+
+
+
+
+ KDF Version copied to clipboard.
+
+
+
+
Search for Update
@@ -3611,100 +3665,85 @@ Bitte wählen Sie eine neue Order aus.
-
+
Confirm
Bestätigen
-
+
Ask system's password before sending coins ? (2FA)
Vor dem Senden von Coins nach dem Kennwort des Systems fragen? (2FA)
-
+
View seed and private keys
Seed- und privaten Schlüsseln anzeigen
-
-
+
+
Show
Zeigen
-
+
Setup Camouflage Password
Tarnkennwort einrichten
-
+
Open
Öffnen
-
+
Disclaimer and ToS
Haftungsausschluss und Nutzungsbedingungen
-
+
Application version
Anwendungsversion
-
- MM2 version
- MM2 Version
-
-
-
- MM2 Version
- MM2 Version
-
-
-
- MM2 Version copied to clipboard.
- MM2 Version in die Zwischenablage kopiert.
-
-
-
-
+
+
RPC Port
-
+
RPC Port copied to clipboard.
-
-
+
+
Peer ID
-
+
Peer ID copied to clipboard.
-
+
Qt version
Qt Version
-
+
Qt Version
Qt Version
-
+
Qt Version copied to clipboard.
Qt Version in die Zwischenablage kopiert.
-
+
Logout
Abmelden
@@ -4292,25 +4331,20 @@ There is a toggle in settings where you can turn on/off the display of these tra
Display Settings
Bildschirmeinstellungen
-
-
- Ticker Selectors
- Ticker Selektoren
-
- Trading Information
- Handelsinformationen
+ Order Book
+ Orderbuch
- Markets
+ Order Form
-
- Place Order
- Order platzieren
+
+ Trading Information
+ Handelsinformationen
@@ -4465,8 +4499,8 @@ There is a toggle in settings where you can turn on/off the display of these tra
Vertical
- Order Book
- Orderbuch
+ %1 Orderbook
+
@@ -4587,7 +4621,7 @@ This might take a few minutes...
atomic_dex::settings_page
-
+
An error has occurred.
diff --git a/atomic_defi_design/assets/languages/atomic_defi_en.ts b/atomic_defi_design/assets/languages/atomic_defi_en.ts
index 2ce0fd7f4a..19b66dd495 100644
--- a/atomic_defi_design/assets/languages/atomic_defi_en.ts
+++ b/atomic_defi_design/assets/languages/atomic_defi_en.ts
@@ -759,83 +759,93 @@
ConfirmTradeModal
-
+
Confirm Exchange Details
-
+
Trade price is more than 50% different to CEX! Confirm?
-
+
This swap request can not be undone and is a final event!
-
+
This transaction can take up to 60 mins - DO NOT close this application!
-
+
Loading fees...
-
+
<b>Total %1 fees:</b>
-
+
Security configuration
-
+
%1 confirmations for incoming %2 transactions
-
+
Read more about dPoW
-
+
+ Cancel all existing orders for %1/%2?
+
+
+
+
+ Good until cancelled (order will remain on orderbook until filled or cancelled)
+
+
+
+
Use custom protection settings for incoming %1 transactions
TICKER
-
+
Enable Komodo dPoW security
-
+
dPoW protected
-
+
Required Confirmations
-
+
Warning, this atomic swap is not dPoW protected!
-
+
Cancel
Cancel
-
+
Confirm
@@ -1759,11 +1769,11 @@ Try again or select 'Allow custom seed' to continue.
- Best Orders
+ Best Orders for %1
-
+
Enter volume to see best orders.
@@ -1771,17 +1781,22 @@ Try again or select 'Allow custom seed' to continue.
ListDelegate
-
+
%1 is not enabled - Do you want to enable it to be able to select %2 best orders ?<br><a href='#'>Yes</a> - <a href='#no'>No</a>
-
+
%1 is not enabled - Please enable it through the coin activation menu
-
+
+ Orderbook is disabled while creating maker orders
+
+
+
+
This order requires a minimum amount of %1 %2 <br>You don't have enough funds.<br> %3
@@ -1803,7 +1818,7 @@ Try again or select 'Allow custom seed' to continue.
- Initializing MM2
+ Initializing KDF
@@ -1913,7 +1928,7 @@ They will be removed from the orderbook until you log in again.
-
+
Swap
@@ -1944,84 +1959,69 @@ They will be removed from the orderbook until you log in again.
-
-
-
+
+
+
Public Key
-
+
Copied to Clipboard
-
+
Explore
-
+
There is no chart data for this ticker yet
-
+
Fetching transactions...
-
+
No transactions available.
-
+
Please wait, %1 is %2
-
+
Loading ticker chart data
-
+
% activated...
-
+
Chart
-
-
+
+
Orders
-
-
+
+
History
-
-
- Place Order
-
-
-
-
- Order Selected
-
-
-
-
- START SWAP
-
-
@@ -2073,6 +2073,16 @@ They will be removed from the orderbook until you log in again.
This contact does not have any registered address.
+
+
+ Taker Order
+
+
+
+
+ Maker Order
+
+
Market
@@ -2090,13 +2100,13 @@ They will be removed from the orderbook until you log in again.
MarketModeSelector
-
+
Sell %1
TICKER
-
+
Buy %1
TICKER
@@ -2530,95 +2540,110 @@ They will be removed from the orderbook until you log in again.
OrderForm
-
+
Price
-
+
Reduce 1% relative to CEX market price.
-
+
Use CEX market price.
-
+
Increase 1% relative to CEX market price.
-
+
Send
-
+
Receive
-
+
Max
-
+
Swap 25% of your tradable balance.
-
+
Swap 50% of your tradable balance.
-
+
Swap 100% of your tradable balance.
-
+
Min Volume
-
+
Min amount to sell
-
+
Min amount to receive
-
+
Minimum accepted trade equals 10% of order volume.
-
+
Minimum accepted trade equals 25% of order volume.
-
+
Minimum accepted trade equals 50% of order volume.
-
+
Min volume:
-
+
Use custom minimum trade amount
+
+
+ Order Selected
+
+
+
+
+ CREATE MAKER SWAP
+
+
+
+
+ START TAKER SWAP
+
+
OrderLine
@@ -2639,104 +2664,114 @@ They will be removed from the orderbook until you log in again.
OrderModal
-
+
Order Type
-
+
Maker Order
-
+
Taker Order
-
+
Refund State
-
+
Your swap failed but the auto-refund process for your payment started already. Please wait and keep application opened until you receive your payment back
-
+
Date
-
+
Error ID
-
-
+
+
Error Log
-
+
Close
-
+
Cancel Order
-
-
+
+ Min Volume
+
+
+
+
+ Max Volume
+
+
+
+
+
Swap ID
-
+
Maker Payment Sent Transaction ID
-
+
Maker Payment Spent Transaction ID
-
+
Maker Payment TXID
-
+
Taker Payment Spent Transaction ID
-
+
Taker Payment Sent Transaction ID
-
+
Taker Payment TXID
-
+
Recover Funds
-
+
Refunding...
-
+
View on Explorer
@@ -2750,7 +2785,7 @@ They will be removed from the orderbook until you log in again.
- The selected order does not exist anymore, it might have been matched or canceled, and no order with a better price is available.
+ The selected order does not exist anymore, it might have been matched or cancelled, and no order with a better price is available.
Please select a new order.
@@ -2904,23 +2939,23 @@ Please select a new order.
-
+
Expensive
-
+
Expedient
-
+
%1 compared to CEX
PRICE_DIFF%
-
+
CEXchange rate
@@ -2943,17 +2978,17 @@ Please select a new order.
-
+
Expensive
-
+
Expedient
-
+
%1 compared to CEX
PRICE_DIFF%
@@ -2962,12 +2997,12 @@ Please select a new order.
ProView
-
+
Failed to place the order
-
+
Placed the order
@@ -3436,7 +3471,7 @@ Please select a new order.
SettingModal
-
+
Cancel
Cancel
@@ -3511,12 +3546,12 @@ Please select a new order.
-
+
Application Version
-
+
copied to clipboard
@@ -3558,151 +3593,156 @@ Please select a new order.
-
+
Confirm
-
+
+ Show orders after placement
+
+
+
+
Ask system's password before sending coins ? (2FA)
-
+
Disable 2FA?
-
+
Enter your wallet password to confirm
-
+
Type password
-
+
2FA status
-
+
2FA disabled successfully
-
-
+
+
Ok
-
+
Wrong password!
-
+
Wallet password is incorrect
-
+
View seed and private keys
-
-
+
+
Show
-
+
Setup Camouflage Password
-
+
Open
-
+
Reuse static RPC password
-
+
Disclaimer and ToS
-
+
Application version
-
- MM2 version
+
+ KDF version
-
- MM2 Version
+
+ KDF Version
-
- MM2 Version copied to clipboard.
+
+ KDF Version copied to clipboard.
-
-
+
+
RPC Port
-
+
RPC Port copied to clipboard.
-
-
+
+
Peer ID
-
+
Peer ID copied to clipboard.
-
+
Qt version
-
+
Qt Version
-
+
Qt Version copied to clipboard.
-
+
Search for Update
-
+
Logout
@@ -4282,24 +4322,19 @@ There is a toggle in settings where you can turn on/off the display of these tra
Display Settings
-
-
- Ticker Selectors
-
-
- Trading Information
+ Order Book
- Markets
+ Order Form
-
- Place Order
+
+ Trading Information
@@ -4455,7 +4490,7 @@ There is a toggle in settings where you can turn on/off the display of these tra
Vertical
- Order Book
+ %1 Orderbook
@@ -4577,7 +4612,7 @@ This might take a few minutes...
atomic_dex::settings_page
-
+
An error has occurred.
diff --git a/atomic_defi_design/assets/languages/atomic_defi_es.ts b/atomic_defi_design/assets/languages/atomic_defi_es.ts
index d87b5995c1..6cd3ee4058 100644
--- a/atomic_defi_design/assets/languages/atomic_defi_es.ts
+++ b/atomic_defi_design/assets/languages/atomic_defi_es.ts
@@ -759,83 +759,93 @@
ConfirmTradeModal
-
+
Confirm Exchange Details
Confirmar Detalles de Intercambio
-
+
Trade price is more than 50% different to CEX! Confirm?
¡El precio comercial es más del 50% diferente al de CEX! ¿Confirmar?
-
+
This swap request can not be undone and is a final event!
¡Esta solicitud de intercambio no se puede deshacer y es un evento final!
-
+
This transaction can take up to 60 mins - DO NOT close this application!
Esta transacción puede demorar hasta 60 minutos. ¡NO cierre esta aplicación!
-
+
Loading fees...
Cargando tarifas...
-
+
<b>Total %1 fees:</b>
<b>Cuota total de %1:</b>
-
+
Security configuration
Configuración de seguridad
-
+
%1 confirmations for incoming %2 transactions
%1 confirmaciones para %2 transacciones entrantes
-
+
Read more about dPoW
Obtenga más información sobre dPoW
-
+
+ Cancel all existing orders for %1/%2?
+
+
+
+
+ Good until cancelled (order will remain on orderbook until filled or cancelled)
+
+
+
+
Use custom protection settings for incoming %1 transactions
TICKER
Utilice configuraciones de protección personalizadas para %1 transacciones entrantes
-
+
Enable Komodo dPoW security
Habilite la seguridad dPoW de Komodo
-
+
dPoW protected
Protegido por dPoW
-
+
Required Confirmations
Confirmaciones Requeridas
-
+
Warning, this atomic swap is not dPoW protected!
Advertencia, este intercambio atómico no está protegido por dPoW!
-
+
Cancel
Cancelar
-
+
Confirm
Confirmar
@@ -1760,11 +1770,11 @@ Vuelva a intentarlo o seleccione 'Permitir semilla personalizada' pers
- Best Orders
- Mejores Ordenes
+ Best Orders for %1
+
-
+
Enter volume to see best orders.
Introduce el volumen para ver los mejores ordenes
@@ -1772,17 +1782,22 @@ Vuelva a intentarlo o seleccione 'Permitir semilla personalizada' pers
ListDelegate
-
+
%1 is not enabled - Do you want to enable it to be able to select %2 best orders ?<br><a href='#'>Yes</a> - <a href='#no'>No</a>
%1 no está habilitado. ¿Desea habilitarlo para poder seleccionar %2 mejores ordenes?<br><a href='#'>Sí</a> - <a href='#no'>No</a>
-
+
%1 is not enabled - Please enable it through the coin activation menu
-
+
+ Orderbook is disabled while creating maker orders
+
+
+
+
This order requires a minimum amount of %1 %2 <br>You don't have enough funds.<br> %3
Este pedido requiere una cantidad mínima de %1 %2 <br>No tiene fondos suficientes.<br> %3
@@ -1804,8 +1819,8 @@ Vuelva a intentarlo o seleccione 'Permitir semilla personalizada' pers
- Initializing MM2
- Inicializando MM2
+ Initializing KDF
+
@@ -1916,7 +1931,7 @@ Se eliminarán del libro de pedidos hasta que vuelva a iniciar sesión.Recibir
-
+
Swap
Intercambiar
@@ -1947,84 +1962,69 @@ Se eliminarán del libro de pedidos hasta que vuelva a iniciar sesión.
-
-
-
+
+
+
Public Key
Clave Pública
-
+
Copied to Clipboard
Copiada en el Portapapeles
-
+
Explore
-
+
There is no chart data for this ticker yet
No hay datos de gráficos para este ticker aún
-
+
Fetching transactions...
Obteniendo transacciones...
-
+
No transactions available.
-
+
Please wait, %1 is %2
Por favor espera %1 es %2
-
+
Loading ticker chart data
-
+
% activated...
% activado...
-
+
Chart
Gráfico
-
-
+
+
Orders
Pedidos
-
-
+
+
History
Historial
-
-
- Place Order
- Realizar pedido
-
-
-
- Order Selected
- Pedido seleccionado
-
-
-
- START SWAP
- INICIO INTERCAMBIAR
-
@@ -2076,6 +2076,16 @@ Se eliminarán del libro de pedidos hasta que vuelva a iniciar sesión.This contact does not have any registered address.
Este contacto no tiene ninguna dirección registrada.
+
+
+ Taker Order
+ Orden de Taker
+
+
+
+ Maker Order
+ Orden de Maker
+
Market
@@ -2093,13 +2103,13 @@ Se eliminarán del libro de pedidos hasta que vuelva a iniciar sesión.
MarketModeSelector
-
+
Sell %1
TICKER
Vender %1
-
+
Buy %1
TICKER
Comprar %1
@@ -2533,95 +2543,110 @@ Se eliminarán del libro de pedidos hasta que vuelva a iniciar sesión.
OrderForm
-
+
Price
Precio
-
+
Reduce 1% relative to CEX market price.
Reducción del 1% en relación con el precio de mercado CEX.
-
+
Use CEX market price.
Utilice el precio de mercado CEX.
-
+
Increase 1% relative to CEX market price.
Aumento del 1% en relación con el precio de mercado de CEX.
-
+
Send
Enviar
-
+
Receive
Recibir
-
+
Max
Max
-
+
Swap 25% of your tradable balance.
Usar el 25% de su saldo comercial.
-
+
Swap 50% of your tradable balance.
Usar el 50% de su saldo comercial.
-
+
Swap 100% of your tradable balance.
Usar el 100% de su saldo comercial.
-
+
Min Volume
Volumen Mínimo
-
+
Min amount to sell
Cantidad mínima para vender
-
+
Min amount to receive
Cantidad mínimo para recibir
-
+
Minimum accepted trade equals 10% of order volume.
El comercio mínimo aceptado es igual al 10% del volumen del pedido.
-
+
Minimum accepted trade equals 25% of order volume.
El comercio mínimo aceptado es igual al 25% del volumen del pedido.
-
+
Minimum accepted trade equals 50% of order volume.
El comercio mínimo aceptado es igual al 50% del volumen del pedido.
-
+
Min volume:
Volumen mínimo:
-
+
Use custom minimum trade amount
Utilizar una cantidad personalizada de intercambio mínima
+
+
+ Order Selected
+ Pedido seleccionado
+
+
+
+ CREATE MAKER SWAP
+
+
+
+
+ START TAKER SWAP
+
+
OrderLine
@@ -2642,104 +2667,114 @@ Se eliminarán del libro de pedidos hasta que vuelva a iniciar sesión.
OrderModal
-
+
Order Type
Tipo de Orden
-
+
Maker Order
Orden de Maker
-
+
Taker Order
Orden de Taker
-
+
Refund State
Estado del Reembolso
-
+
Your swap failed but the auto-refund process for your payment started already. Please wait and keep application opened until you receive your payment back
Su intercambio falló, pero el proceso de reembolso automático para su pago ya comenzó. Espere y mantenga la aplicación abierta hasta que reciba su pago
-
+
Date
Fecha
-
+
Error ID
ID de Error
-
-
+
+
Error Log
Registro de Error
-
+
Close
Cerrar
-
+
Cancel Order
Cancelar Pedido
-
-
+
+ Min Volume
+ Volumen Mínimo
+
+
+
+ Max Volume
+
+
+
+
+
Swap ID
ID de Intercambio
-
+
Maker Payment Sent Transaction ID
ID de la transacción pago enviada de Maker
-
+
Maker Payment Spent Transaction ID
ID de la transacción pago gastado de Maker
-
+
Maker Payment TXID
TXID del pago de Maker
-
+
Taker Payment Spent Transaction ID
ID de la transacción pago gastado de Taker
-
+
Taker Payment Sent Transaction ID
ID de la transacción pago enviada de Taker
-
+
Taker Payment TXID
TXID del pago de Taker
-
+
Recover Funds
Recuperar fondos
-
+
Refunding...
Reembolso...
-
+
View on Explorer
Ver en Explorer
@@ -2753,10 +2788,9 @@ Se eliminarán del libro de pedidos hasta que vuelva a iniciar sesión.
- The selected order does not exist anymore, it might have been matched or canceled, and no order with a better price is available.
+ The selected order does not exist anymore, it might have been matched or cancelled, and no order with a better price is available.
Please select a new order.
- El pedido seleccionado ya no existe, puede haber sido igualado o cancelado, y no hay un pedido con mejor precio disponible.
-Seleccione un nuevo pedido.
+
@@ -2908,23 +2942,23 @@ Seleccione un nuevo pedido.
Seleccionada
-
+
Expensive
Caro
-
+
Expedient
Expediente
-
+
%1 compared to CEX
PRICE_DIFF%
%1 en comparación con CEX
-
+
CEXchange rate
Tasa de cambio CEX
@@ -2947,17 +2981,17 @@ Seleccione un nuevo pedido.
Tasa de cambio CEX
-
+
Expensive
Caro
-
+
Expedient
Expediente
-
+
%1 compared to CEX
PRICE_DIFF%
%1 en comparación con CEX
@@ -2966,12 +3000,12 @@ Seleccione un nuevo pedido.
ProView
-
+
Failed to place the order
Error al realizar el pedido
-
+
Placed the order
Realizó el pedido El
@@ -3440,7 +3474,7 @@ Seleccione un nuevo pedido.
SettingModal
-
+
Cancel
Cancelar
@@ -3515,12 +3549,12 @@ Seleccione un nuevo pedido.
Cambiando el tema a %1
-
+
Application Version
La versión de la aplicación
-
+
copied to clipboard
copiado al portapapeles
@@ -3562,151 +3596,156 @@ Seleccione un nuevo pedido.
-
+
Confirm
Confirmar
-
+
+ Show orders after placement
+
+
+
+
Ask system's password before sending coins ? (2FA)
¿Preguntar la contraseña del sistema antes de enviar monedas? (2FA)
-
+
Disable 2FA?
¿Deshabilitar 2FA?
-
+
Enter your wallet password to confirm
Ingrese la contraseña de su billetera para confirmar
-
+
Type password
Escriba la contraseña
-
+
2FA status
Estado 2FA
-
+
2FA disabled successfully
2FA deshabilitado correctamente
-
-
+
+
Ok
Ok
-
+
Wrong password!
¡Contraseña incorrecta!
-
+
Wallet password is incorrect
Contraseña de la billetera es incorrecta
-
+
View seed and private keys
Ver semilla y claves privadas
-
-
+
+
Show
Mostrar
-
+
Setup Camouflage Password
Configuración de Contraseña Camuflaje
-
+
Open
Abrir
-
+
Reuse static RPC password
-
+
Disclaimer and ToS
Descargo de Responsabilidad y Terminos de Servicio
-
+
Application version
Versión de Aplicación
-
- MM2 version
- Versión MM2
+
+ KDF version
+
-
- MM2 Version
- Versión MM2
+
+ KDF Version
+
-
- MM2 Version copied to clipboard.
- Versión MM2 copiada al portapapeles.
+
+ KDF Version copied to clipboard.
+
-
-
+
+
RPC Port
-
+
RPC Port copied to clipboard.
-
-
+
+
Peer ID
-
+
Peer ID copied to clipboard.
-
+
Qt version
Versión Qt
-
+
Qt Version
Versión Qt
-
+
Qt Version copied to clipboard.
Versión de Qt copiada al portapapeles.
-
+
Search for Update
-
+
Logout
Cerrar sesión
@@ -4294,25 +4333,20 @@ There is a toggle in settings where you can turn on/off the display of these tra
Display Settings
Configuracion de Vista
-
-
- Ticker Selectors
- Selectores
-
- Trading Information
- Información de Intercambios
+ Order Book
+ Libro de Ordenes
- Markets
+ Order Form
-
- Place Order
- Realizar pedido
+
+ Trading Information
+ Información de Intercambios
@@ -4467,8 +4501,8 @@ There is a toggle in settings where you can turn on/off the display of these tra
Vertical
- Order Book
- Libro de Ordenes
+ %1 Orderbook
+
@@ -4590,7 +4624,7 @@ Esto puede tardar unos minutos...
atomic_dex::settings_page
-
+
An error has occurred.
Se ha producido un error.
diff --git a/atomic_defi_design/assets/languages/atomic_defi_fr.ts b/atomic_defi_design/assets/languages/atomic_defi_fr.ts
index d1ce976885..9a64fb3d97 100644
--- a/atomic_defi_design/assets/languages/atomic_defi_fr.ts
+++ b/atomic_defi_design/assets/languages/atomic_defi_fr.ts
@@ -759,83 +759,93 @@
ConfirmTradeModal
-
+
Confirm Exchange Details
Détails de la confirmation de l'échange
-
+
This swap request can not be undone and is a final event!
La requête de ce swap ne peut pas être annulé, c'est irréversible !
-
+
Security configuration
Configuration de la sécurité
-
+
Read more about dPoW
En savoir plus sur dPoW
-
+
Use custom protection settings for incoming %1 transactions
TICKER
Utiliser les paramètres de protection personnalisés pour les transactions %1 entrantes
-
+
Enable Komodo dPoW security
Activer la sécurité de Komodo dPoW
-
+
%1 confirmations for incoming %2 transactions
Il y a %1 confirmations pour les transactions entrantes du ticker %2
-
+
This transaction can take up to 60 mins - DO NOT close this application!
Cette transaction peut prendre jusqu'à 60 minutes - NE fermez PAS cette application !
-
+
Trade price is more than 50% different to CEX! Confirm?
Le prix est supérieur à 50% du prix sur les CEX ! Êtes-vous sûr ?
-
+
Loading fees...
-
+
<b>Total %1 fees:</b>
Frais totaux %1:
-
+
+ Cancel all existing orders for %1/%2?
+
+
+
+
+ Good until cancelled (order will remain on orderbook until filled or cancelled)
+
+
+
+
dPoW protected
Protégé par dPoW
-
+
Required Confirmations
Confirmations requises
-
+
Warning, this atomic swap is not dPoW protected!
Attention, ce swap atomique n'est pas protégé par dPoW !
-
+
Cancel
Annuler
-
+
Confirm
Confirmer
@@ -1759,11 +1769,11 @@ Try again or select 'Allow custom seed' to continue.
- Best Orders
- Meilleurs offres
+ Best Orders for %1
+
-
+
Enter volume to see best orders.
@@ -1771,17 +1781,22 @@ Try again or select 'Allow custom seed' to continue.
ListDelegate
-
+
%1 is not enabled - Do you want to enable it to be able to select %2 best orders ?<br><a href='#'>Yes</a> - <a href='#no'>No</a>
%1 n'est pas activé - Souhaitez vous l'activer pour pouvoir selectionnez les meilleurs offres %2 ?<br><a href='#'>Oui</a> - <a href='#no'>Non</a>
-
+
%1 is not enabled - Please enable it through the coin activation menu
-
+
+ Orderbook is disabled while creating maker orders
+
+
+
+
This order requires a minimum amount of %1 %2 <br>You don't have enough funds.<br> %3
Cette commande nécessite un montant minimum de %1 %2 <br>Vous n'avez pas assez de fonds.<br> %3
@@ -1803,8 +1818,8 @@ Try again or select 'Allow custom seed' to continue.
- Initializing MM2
- Initialisation de MM2
+ Initializing KDF
+
@@ -1913,7 +1928,7 @@ They will be removed from the orderbook until you log in again.
Recevoir
-
+
Swap
Échange
@@ -1944,84 +1959,69 @@ They will be removed from the orderbook until you log in again.
-
-
-
+
+
+
Public Key
-
+
Copied to Clipboard
Copier dans le presse-papier
-
+
Explore
-
+
There is no chart data for this ticker yet
Il n'y a pas encore de données graphiques pour ce ticker
-
+
Fetching transactions...
-
+
No transactions available.
-
+
Please wait, %1 is %2
-
+
Loading ticker chart data
-
+
% activated...
-
+
Chart
Chart
-
-
+
+
Orders
Ordres
-
-
+
+
History
Historique
-
-
- Place Order
- Placer l'ordre
-
-
-
- Order Selected
- Ordre séléctionné
-
-
-
- START SWAP
- COMMENCER L'ÉCHANGE
-
@@ -2073,6 +2073,16 @@ They will be removed from the orderbook until you log in again.
This contact does not have any registered address.
+
+
+ Taker Order
+ Ordre d'achat
+
+
+
+ Maker Order
+ Ordre de vente
+
Market
@@ -2090,13 +2100,13 @@ They will be removed from the orderbook until you log in again.
MarketModeSelector
-
+
Sell %1
TICKER
-
+
Buy %1
TICKER
@@ -2530,92 +2540,107 @@ They will be removed from the orderbook until you log in again.
OrderForm
-
+
Send
Envoyez
-
+
Receive
Recevoir
-
+
Max
Max
-
+
Swap 25% of your tradable balance.
-
+
Swap 50% of your tradable balance.
-
+
Swap 100% of your tradable balance.
-
+
Min Volume
-
+
Min amount to sell
-
+
Min amount to receive
-
+
Minimum accepted trade equals 10% of order volume.
-
+
Minimum accepted trade equals 25% of order volume.
-
+
Minimum accepted trade equals 50% of order volume.
-
+
Min volume:
Min volume :
-
+
Use custom minimum trade amount
Utiliser le montant d'échange minimum personnalisé
-
+
+ Order Selected
+ Ordre séléctionné
+
+
+
+ CREATE MAKER SWAP
+
+
+
+
+ START TAKER SWAP
+
+
+
+
Price
Prix
-
+
Reduce 1% relative to CEX market price.
-
+
Use CEX market price.
-
+
Increase 1% relative to CEX market price.
@@ -2639,104 +2664,114 @@ They will be removed from the orderbook until you log in again.
OrderModal
-
+
Order Type
-
+
Maker Order
Ordre de vente
-
+
Taker Order
Ordre d'achat
-
+
+ Min Volume
+
+
+
+
+ Max Volume
+
+
+
+
Refund State
État de remboursement
-
+
Your swap failed but the auto-refund process for your payment started already. Please wait and keep application opened until you receive your payment back
Votre échange a échoué, mais le processus de remboursement automatique de votre paiement a déjà commencé. Veuillez patienter et garder l'application ouverte jusqu'à ce que vous receviez votre remboursement
-
+
Date
Date
-
+
Recover Funds
Récupérer des fonds
-
+
Refunding...
Remboursement...
-
+
View on Explorer
Voir dans l'explorateur
-
+
Cancel Order
Annuler l'ordre
-
+
Error ID
ID de l'erreur
-
-
+
+
Swap ID
ID du Swap
-
+
Maker Payment Sent Transaction ID
-
+
Maker Payment Spent Transaction ID
-
+
Maker Payment TXID
-
+
Taker Payment Spent Transaction ID
-
+
Taker Payment Sent Transaction ID
-
+
Taker Payment TXID
-
-
+
+
Error Log
Journal des erreurs
-
+
Close
Fermer
@@ -2750,7 +2785,7 @@ They will be removed from the orderbook until you log in again.
- The selected order does not exist anymore, it might have been matched or canceled, and no order with a better price is available.
+ The selected order does not exist anymore, it might have been matched or cancelled, and no order with a better price is available.
Please select a new order.
@@ -2904,23 +2939,23 @@ Please select a new order.
Choisi
-
+
Expensive
Coûteuse
-
+
Expedient
Abordable
-
+
%1 compared to CEX
PRICE_DIFF%
%1 par rapport aux CEX
-
+
CEXchange rate
Taux du CEX
@@ -2943,17 +2978,17 @@ Please select a new order.
Taux du CEX
-
+
Expensive
Coûteuse
-
+
Expedient
Abordable
-
+
%1 compared to CEX
PRICE_DIFF%
%1 par rapport aux CEX
@@ -2962,12 +2997,12 @@ Please select a new order.
ProView
-
+
Failed to place the order
Échec lors du placement de l'ordre
-
+
Placed the order
L'ordre a été placé avec succès
@@ -3436,7 +3471,7 @@ Please select a new order.
SettingModal
-
+
Cancel
Annuler
@@ -3523,7 +3558,7 @@ Please select a new order.
-
+
Confirm
Confirmer
@@ -3533,63 +3568,83 @@ Please select a new order.
Changer le thème en %1
-
+
+ Show orders after placement
+
+
+
+
Disable 2FA?
-
+
Enter your wallet password to confirm
-
+
Type password
Tapez votre mot de passe
-
+
2FA status
-
+
2FA disabled successfully
-
-
+
+
Ok
Ok
-
+
Wrong password!
-
+
Wallet password is incorrect
-
+
Reuse static RPC password
-
+
Application Version
-
+
copied to clipboard
copié dans le presse-papier
-
+
+ KDF version
+
+
+
+
+ KDF Version
+
+
+
+
+ KDF Version copied to clipboard.
+
+
+
+
Search for Update
@@ -3614,95 +3669,80 @@ Please select a new order.
Thème
-
+
Ask system's password before sending coins ? (2FA)
Demander le mot de passe du système avant d'envoyer des actifs ? (2FA)
-
+
Application version
Version de l'application
-
- MM2 version
- Version de MM2
-
-
-
- MM2 Version
- MM2 Version
-
-
-
- MM2 Version copied to clipboard.
- MM2 Version copiée dans le presse-papiers.
-
-
-
-
+
+
RPC Port
-
+
RPC Port copied to clipboard.
-
-
+
+
Peer ID
-
+
Peer ID copied to clipboard.
-
+
Qt version
Version de Qt
-
+
Qt Version
Qt Version
-
+
Qt Version copied to clipboard.
Version Qt copiée dans le presse-papiers.
-
+
Logout
Se déconnecter
-
+
View seed and private keys
Afficher la phrase de récupération et les clefs privées
-
-
+
+
Show
Montrer
-
+
Setup Camouflage Password
Configurer le mot de passe de camouflage
-
+
Open
Ouvrir
-
+
Disclaimer and ToS
Clause de non-responsabilité et conditions d'utilisation
@@ -4282,25 +4322,20 @@ There is a toggle in settings where you can turn on/off the display of these tra
Display Settings
-
-
- Ticker Selectors
-
-
- Trading Information
- Informations de Trading
+ Order Book
+ Carnet d'ordres
- Markets
+ Order Form
-
- Place Order
- Placer l'ordre
+
+ Trading Information
+ Informations de Trading
@@ -4455,8 +4490,8 @@ There is a toggle in settings where you can turn on/off the display of these tra
Vertical
- Order Book
- Carnet d'ordres
+ %1 Orderbook
+
@@ -4577,7 +4612,7 @@ This might take a few minutes...
atomic_dex::settings_page
-
+
An error has occurred.
diff --git a/atomic_defi_design/assets/languages/atomic_defi_ru.ts b/atomic_defi_design/assets/languages/atomic_defi_ru.ts
index 661ad84490..eb6959a146 100644
--- a/atomic_defi_design/assets/languages/atomic_defi_ru.ts
+++ b/atomic_defi_design/assets/languages/atomic_defi_ru.ts
@@ -759,83 +759,93 @@
ConfirmTradeModal
-
+
Confirm Exchange Details
Подтвердить данные обмена
-
+
Trade price is more than 50% different to CEX! Confirm?
Стоимость обмена в сравнении с CEX дороже более чем на 50%, вы подтверждаете сделку?
-
+
This swap request can not be undone and is a final event!
Этот запрос на своп не может быть отменен и является окончательным!
-
+
This transaction can take up to 60 mins - DO NOT close this application!
Эта транзакция может занять до 60 минут - НЕ закрывайте приложение!
-
+
Loading fees...
-
+
<b>Total %1 fees:</b>
-
+
Security configuration
Настройки безопасности
-
+
%1 confirmations for incoming %2 transactions
%1 подтверждений для входящих %2 транзакций
-
+
Read more about dPoW
Узнать больше о dPoW
-
+
+ Cancel all existing orders for %1/%2?
+
+
+
+
+ Good until cancelled (order will remain on orderbook until filled or cancelled)
+
+
+
+
Use custom protection settings for incoming %1 transactions
TICKER
Использовать пользовательские настройки защиты для входящих транзакций %1
-
+
Enable Komodo dPoW security
Включить Komodo dPoW
-
+
dPoW protected
dPoW защита
-
+
Required Confirmations
Необходимое количество подтверждений
-
+
Warning, this atomic swap is not dPoW protected!
Предупреждение, этот атомарный своп не защищен dPoW!
-
+
Cancel
Отменить
-
+
Confirm
Подтверждение
@@ -1765,11 +1775,11 @@ Try again or select 'Allow custom seed' to continue.
- Best Orders
- Лучшие ордеры
+ Best Orders for %1
+
-
+
Enter volume to see best orders.
@@ -1777,17 +1787,22 @@ Try again or select 'Allow custom seed' to continue.
ListDelegate
-
+
%1 is not enabled - Do you want to enable it to be able to select %2 best orders ?<br><a href='#'>Yes</a> - <a href='#no'>No</a>
%1 не активирован -Вы хотите активировать этот %2 актив чтобы видеть лучшие ордеры для него ?<br><a href='#'>Да</a> - <a href='#no'>Нет</a>
-
+
%1 is not enabled - Please enable it through the coin activation menu
-
+
+ Orderbook is disabled while creating maker orders
+
+
+
+
This order requires a minimum amount of %1 %2 <br>You don't have enough funds.<br> %3
@@ -1809,8 +1824,8 @@ Try again or select 'Allow custom seed' to continue.
- Initializing MM2
- Инициализация MM2
+ Initializing KDF
+
@@ -1919,7 +1934,7 @@ They will be removed from the orderbook until you log in again.
Получить
-
+
Swap
Обменять
@@ -1950,84 +1965,69 @@ They will be removed from the orderbook until you log in again.
-
-
-
+
+
+
Public Key
-
+
Copied to Clipboard
Скопировано в буфер обмена
-
+
Explore
-
+
There is no chart data for this ticker yet
Для данного актива пока еще нет графиков данных
-
+
Fetching transactions...
-
+
No transactions available.
-
+
Please wait, %1 is %2
-
+
Loading ticker chart data
-
+
% activated...
-
+
Chart
График
-
-
+
+
Orders
Ордеры
-
-
+
+
History
История
-
-
- Place Order
- Разместить ордер
-
-
-
- Order Selected
- Ордер выбран
-
-
-
- START SWAP
- НАЧАТЬ ОБМЕН
-
@@ -2079,6 +2079,16 @@ They will be removed from the orderbook until you log in again.
This contact does not have any registered address.
+
+
+ Taker Order
+ Тейкер ордер
+
+
+
+ Maker Order
+ Мейкер ордер
+
Market
@@ -2096,13 +2106,13 @@ They will be removed from the orderbook until you log in again.
MarketModeSelector
-
+
Sell %1
TICKER
-
+
Buy %1
TICKER
@@ -2536,95 +2546,110 @@ They will be removed from the orderbook until you log in again.
OrderForm
-
+
Price
Цена
-
+
Reduce 1% relative to CEX market price.
-
+
Use CEX market price.
-
+
Increase 1% relative to CEX market price.
-
+
Send
Отправить
-
+
Receive
Получить
-
+
Max
Макс
-
+
Swap 25% of your tradable balance.
-
+
Swap 50% of your tradable balance.
-
+
Swap 100% of your tradable balance.
-
+
Min Volume
-
+
Min amount to sell
-
+
Min amount to receive
-
+
Minimum accepted trade equals 10% of order volume.
-
+
Minimum accepted trade equals 25% of order volume.
-
+
Minimum accepted trade equals 50% of order volume.
-
+
Min volume:
Мин. объем:
-
+
Use custom minimum trade amount
Задать минимальный объем сделки
+
+
+ Order Selected
+ Ордер выбран
+
+
+
+ CREATE MAKER SWAP
+
+
+
+
+ START TAKER SWAP
+
+
OrderLine
@@ -2645,104 +2670,114 @@ They will be removed from the orderbook until you log in again.
OrderModal
-
+
Order Type
-
+
Maker Order
Мейкер ордер
-
+
Taker Order
Тейкер ордер
-
+
Refund State
Статус рефанда
-
+
Your swap failed but the auto-refund process for your payment started already. Please wait and keep application opened until you receive your payment back
Обмен не был завершен, но процесс автоматического рефанда уже начался. Пожалуйста, подождите, оставляя приложение открытым, пока вы не получите свои средства
-
+
Date
Дата
-
+
Error ID
ID ошибки
-
-
+
+
Error Log
Лог ошибки
-
+
Close
Закрыть
-
+
Cancel Order
Отменить ордер
-
-
+
+ Min Volume
+
+
+
+
+ Max Volume
+
+
+
+
+
Swap ID
ID обмена
-
+
Maker Payment Sent Transaction ID
-
+
Maker Payment Spent Transaction ID
-
+
Maker Payment TXID
-
+
Taker Payment Spent Transaction ID
-
+
Taker Payment Sent Transaction ID
-
+
Taker Payment TXID
-
+
Recover Funds
Восстановить средства
-
+
Refunding...
Возмещается...
-
+
View on Explorer
Показать в эксплорере
@@ -2756,7 +2791,7 @@ They will be removed from the orderbook until you log in again.
- The selected order does not exist anymore, it might have been matched or canceled, and no order with a better price is available.
+ The selected order does not exist anymore, it might have been matched or cancelled, and no order with a better price is available.
Please select a new order.
@@ -2910,23 +2945,23 @@ Please select a new order.
Выбрано
-
+
Expensive
Невыгодный курс
-
+
Expedient
Выгодный курс
-
+
%1 compared to CEX
PRICE_DIFF%
%1 по сравнению с CEX
-
+
CEXchange rate
CEXchange Цена
@@ -2949,17 +2984,17 @@ Please select a new order.
CEXchange Цена
-
+
Expensive
Невыгодный курс
-
+
Expedient
Выгодный курс
-
+
%1 compared to CEX
PRICE_DIFF%
%1 по сравнению с CEX
@@ -2968,12 +3003,12 @@ Please select a new order.
ProView
-
+
Failed to place the order
Не удалось разместить ордер
-
+
Placed the order
Ордер размещен
@@ -3442,7 +3477,7 @@ Please select a new order.
SettingModal
-
+
Cancel
Отмена
@@ -3529,7 +3564,7 @@ Please select a new order.
-
+
Confirm
Подтвердить
@@ -3539,63 +3574,83 @@ Please select a new order.
Изменить тему на %1
-
+
+ Show orders after placement
+
+
+
+
Disable 2FA?
-
+
Enter your wallet password to confirm
-
+
Type password
Введите пароль
-
+
2FA status
-
+
2FA disabled successfully
-
-
+
+
Ok
Ок
-
+
Wrong password!
-
+
Wallet password is incorrect
-
+
Reuse static RPC password
-
+
Application Version
-
+
copied to clipboard
скопировано в буфер
-
+
+ KDF version
+
+
+
+
+ KDF Version
+
+
+
+
+ KDF Version copied to clipboard.
+
+
+
+
Search for Update
@@ -3620,95 +3675,80 @@ Please select a new order.
Тема
-
+
Ask system's password before sending coins ? (2FA)
Спрашивать системный пароль перед отправкой монет? (2FA)
-
+
Application version
Версия приложения
-
- MM2 version
- Версия MM2
-
-
-
- MM2 Version
- Версия MM2
-
-
-
- MM2 Version copied to clipboard.
- Версия MM2 скопирована в буфер обмена.
-
-
-
-
+
+
RPC Port
-
+
RPC Port copied to clipboard.
-
-
+
+
Peer ID
-
+
Peer ID copied to clipboard.
-
+
Qt version
Версия Qt
-
+
Qt Version
Версия Qt
-
+
Qt Version copied to clipboard.
Версия Qt скопирована в буфер обмена.
-
+
Logout
Выход
-
+
View seed and private keys
Показать seed-фразу и приватные ключи
-
-
+
+
Show
Показать
-
+
Setup Camouflage Password
Установить камуфляжный пароль
-
+
Open
Установить
-
+
Disclaimer and ToS
Дисклеймер и Условия Использования
@@ -4288,25 +4328,20 @@ There is a toggle in settings where you can turn on/off the display of these tra
Display Settings
-
-
- Ticker Selectors
-
-
- Trading Information
- Торговая информация
+ Order Book
+ Ордербук
- Markets
+ Order Form
-
- Place Order
- Разместить ордер
+
+ Trading Information
+ Торговая информация
@@ -4461,8 +4496,8 @@ There is a toggle in settings where you can turn on/off the display of these tra
Vertical
- Order Book
- Ордербук
+ %1 Orderbook
+
@@ -4583,7 +4618,7 @@ This might take a few minutes...
atomic_dex::settings_page
-
+
An error has occurred.
diff --git a/atomic_defi_design/assets/languages/atomic_defi_tr.ts b/atomic_defi_design/assets/languages/atomic_defi_tr.ts
index ecda9ba8ef..9871e932e8 100644
--- a/atomic_defi_design/assets/languages/atomic_defi_tr.ts
+++ b/atomic_defi_design/assets/languages/atomic_defi_tr.ts
@@ -759,83 +759,93 @@
ConfirmTradeModal
-
+
Confirm Exchange Details
Al-Sat Detaylarını Onayla
-
+
This swap request can not be undone and is a final event!
Bu takas isteği geri döndürülemez!
-
+
Security configuration
Güvenlik yapılandırması
-
+
Read more about dPoW
dPoW hakkında daha fazla bilgi
-
+
Use custom protection settings for incoming %1 transactions
TICKER
%1 işlemleri için özel güvenlik ayarları kullan
-
+
Enable Komodo dPoW security
Komodo dPoW güvenliğini etkinleştir
-
+
%1 confirmations for incoming %2 transactions
Gelen %2 işlemleri için %1 onay
-
+
This transaction can take up to 60 mins - DO NOT close this application!
Bu işlem 60 dakikayı bulabilir - Programı KAPATMAYINIZ!
-
+
Trade price is more than 50% different to CEX! Confirm?
Takas ücreti CEX ile karşılaştırıldığında %50'den daha fazla farka sahip. Onaylıyor musunuz?
-
+
Loading fees...
-
+
<b>Total %1 fees:</b>
<b>Toplam %1 işlem giderleri: </b>
-
+
+ Cancel all existing orders for %1/%2?
+
+
+
+
+ Good until cancelled (order will remain on orderbook until filled or cancelled)
+
+
+
+
dPoW protected
dPoW korumalı
-
+
Required Confirmations
Gereken Onaylar
-
+
Warning, this atomic swap is not dPoW protected!
Uyarı, bu atomik takas dPoW korumalı değil!
-
+
Cancel
İptal
-
+
Confirm
Onayla
@@ -1753,11 +1763,11 @@ Try again or select 'Allow custom seed' to continue.
- Best Orders
- En İyi Emirler
+ Best Orders for %1
+
-
+
Enter volume to see best orders.
@@ -1765,17 +1775,22 @@ Try again or select 'Allow custom seed' to continue.
ListDelegate
-
+
%1 is not enabled - Do you want to enable it to be able to select %2 best orders ?<br><a href='#'>Yes</a> - <a href='#no'>No</a>
%1 etkin değil - En iyi %2 siparişini seçebilmesi için etkinleştirmek istiyor musunuz ? <br><a href='#'>Evet</a> - <a href='#no'>Hayır</a>
-
+
%1 is not enabled - Please enable it through the coin activation menu
-
+
+ Orderbook is disabled while creating maker orders
+
+
+
+
This order requires a minimum amount of %1 %2 <br>You don't have enough funds.<br> %3
@@ -1797,8 +1812,8 @@ Try again or select 'Allow custom seed' to continue.
- Initializing MM2
- MM2 başlatılıyor
+ Initializing KDF
+
@@ -1907,7 +1922,7 @@ They will be removed from the orderbook until you log in again.
Al
-
+
Swap
Takasla
@@ -1938,84 +1953,69 @@ They will be removed from the orderbook until you log in again.
-
-
-
+
+
+
Public Key
-
+
Copied to Clipboard
Panoya Kopyalandı
-
+
Explore
-
+
There is no chart data for this ticker yet
Henüz bu hisse senedi için grafik verisi yok
-
+
Fetching transactions...
-
+
No transactions available.
-
+
Please wait, %1 is %2
-
+
Loading ticker chart data
-
+
% activated...
-
+
Chart
Grafik
-
-
+
+
Orders
Emirler
-
-
+
+
History
Tarihçe
-
-
- Place Order
- Emir Ver
-
-
-
- Order Selected
- Emir Seçildi
-
-
-
- START SWAP
- Takası başlat
-
@@ -2067,6 +2067,16 @@ They will be removed from the orderbook until you log in again.
This contact does not have any registered address.
+
+
+ Taker Order
+ Alıcı Emri
+
+
+
+ Maker Order
+ Yapıcı Emri
+
Market
@@ -2084,13 +2094,13 @@ They will be removed from the orderbook until you log in again.
MarketModeSelector
-
+
Sell %1
TICKER
-
+
Buy %1
TICKER
@@ -2524,92 +2534,107 @@ They will be removed from the orderbook until you log in again.
OrderForm
-
+
Send
Gönder
-
+
Receive
Al
-
+
Max
Maks
-
+
Swap 25% of your tradable balance.
-
+
Swap 50% of your tradable balance.
-
+
Swap 100% of your tradable balance.
-
+
Min Volume
-
+
Min amount to sell
-
+
Min amount to receive
-
+
Minimum accepted trade equals 10% of order volume.
-
+
Minimum accepted trade equals 25% of order volume.
-
+
Minimum accepted trade equals 50% of order volume.
-
+
Min volume:
-
+
Use custom minimum trade amount
-
+
+ Order Selected
+ Emir Seçildi
+
+
+
+ CREATE MAKER SWAP
+
+
+
+
+ START TAKER SWAP
+
+
+
+
Price
Fiyat
-
+
Reduce 1% relative to CEX market price.
-
+
Use CEX market price.
-
+
Increase 1% relative to CEX market price.
@@ -2633,104 +2658,114 @@ They will be removed from the orderbook until you log in again.
OrderModal
-
+
Order Type
-
+
Maker Order
Yapıcı Emri
-
+
Taker Order
Alıcı Emri
-
+
+ Min Volume
+
+
+
+
+ Max Volume
+
+
+
+
Refund State
Geri Ödeme Durumu
-
+
Your swap failed but the auto-refund process for your payment started already. Please wait and keep application opened until you receive your payment back
Takas işlemi başarısız oldu, ancak otomatik geri ödeme süreci başladı. Lütfen bekleyin ve ödemenizi geri alana kadar uygulamayı açık tutun
-
+
Date
Tarih
-
+
Recover Funds
Fon Kurtar
-
+
Refunding...
-
+
View on Explorer
Explorer'da Göster
-
+
Cancel Order
Emri İptal Et
-
+
Error ID
Hata ID
-
-
+
+
Swap ID
-
+
Maker Payment Sent Transaction ID
-
+
Maker Payment Spent Transaction ID
-
+
Maker Payment TXID
-
+
Taker Payment Spent Transaction ID
-
+
Taker Payment Sent Transaction ID
-
+
Taker Payment TXID
-
-
+
+
Error Log
Hata Kaydı
-
+
Close
Kapat
@@ -2744,7 +2779,7 @@ They will be removed from the orderbook until you log in again.
- The selected order does not exist anymore, it might have been matched or canceled, and no order with a better price is available.
+ The selected order does not exist anymore, it might have been matched or cancelled, and no order with a better price is available.
Please select a new order.
@@ -2898,23 +2933,23 @@ Please select a new order.
Seçili
-
+
Expensive
Pahalı
-
+
Expedient
Uygun
-
+
%1 compared to CEX
PRICE_DIFF%
CEX ile karşılaştırıldığında %1
-
+
CEXchange rate
CEXchange kuru
@@ -2937,17 +2972,17 @@ Please select a new order.
CEXchange kuru
-
+
Expensive
Pahalı
-
+
Expedient
Uygun
-
+
%1 compared to CEX
PRICE_DIFF%
CEX ile karşılaştırıldığında %1
@@ -2956,12 +2991,12 @@ Please select a new order.
ProView
-
+
Failed to place the order
Emir başarısız oldu
-
+
Placed the order
Emir başarılı
@@ -3430,7 +3465,7 @@ Please select a new order.
SettingModal
-
+
Cancel
İptal
@@ -3517,7 +3552,7 @@ Please select a new order.
-
+
Confirm
Onayla
@@ -3527,63 +3562,83 @@ Please select a new order.
-
+
+ Show orders after placement
+
+
+
+
Disable 2FA?
-
+
Enter your wallet password to confirm
-
+
Type password
-
+
2FA status
-
+
2FA disabled successfully
-
-
+
+
Ok
Tamam
-
+
Wrong password!
-
+
Wallet password is incorrect
-
+
Reuse static RPC password
-
+
Application Version
-
+
copied to clipboard
-
+
+ KDF version
+
+
+
+
+ KDF Version
+
+
+
+
+ KDF Version copied to clipboard.
+
+
+
+
Search for Update
@@ -3608,95 +3663,80 @@ Please select a new order.
Tema
-
+
Ask system's password before sending coins ? (2FA)
Para göndermeden önce sistem parolası sorulsun mu ? (2FA)
-
+
Application version
Uygulama sürümü
-
- MM2 version
- MM2 sürümü
-
-
-
- MM2 Version
-
-
-
-
- MM2 Version copied to clipboard.
-
-
-
-
-
+
+
RPC Port
-
+
RPC Port copied to clipboard.
-
-
+
+
Peer ID
-
+
Peer ID copied to clipboard.
-
+
Qt version
Qt sürümü
-
+
Qt Version
-
+
Qt Version copied to clipboard.
-
+
Logout
Çıkış
-
+
View seed and private keys
Seed ve özel anahtarları görüntüle
-
-
+
+
Show
Göster
-
+
Setup Camouflage Password
Kamuflaj Parolasını Ayarla
-
+
Open
Aç
-
+
Disclaimer and ToS
Sorumluluk Reddi ve K.Ş.
@@ -4276,25 +4316,20 @@ There is a toggle in settings where you can turn on/off the display of these tra
Display Settings
-
-
- Ticker Selectors
-
-
- Trading Information
- Al Sat Bilgisi
+ Order Book
+ Emir Defteri
- Markets
+ Order Form
-
- Place Order
- Emir Ver
+
+ Trading Information
+ Al Sat Bilgisi
@@ -4449,8 +4484,8 @@ There is a toggle in settings where you can turn on/off the display of these tra
Vertical
- Order Book
- Emir Defteri
+ %1 Orderbook
+
@@ -4571,7 +4606,7 @@ This might take a few minutes...
atomic_dex::settings_page
-
+
An error has occurred.
diff --git a/cmake/install/macos/osx_post_install.cmake b/cmake/install/macos/osx_post_install.cmake
index 51f1c6cc4d..5aa979b41f 100644
--- a/cmake/install/macos/osx_post_install.cmake
+++ b/cmake/install/macos/osx_post_install.cmake
@@ -54,7 +54,7 @@ if (NOT EXISTS ${CMAKE_SOURCE_DIR}/bin/${DEX_PROJECT_NAME}.dmg)
ECHO_OUTPUT_VARIABLE
ECHO_ERROR_VARIABLE)
- execute_process(COMMAND codesign --deep --force -v -s "$ENV{MAC_SIGN_IDENTITY}" -o runtime --timestamp ${PROJECT_APP_PATH}/Contents/Resources/assets/tools/mm2/${DEX_API}
+ execute_process(COMMAND codesign --deep --force -v -s "$ENV{MAC_SIGN_IDENTITY}" -o runtime --timestamp ${PROJECT_APP_PATH}/Contents/Resources/assets/tools/kdf/${DEX_API}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
ECHO_OUTPUT_VARIABLE
ECHO_ERROR_VARIABLE)
diff --git a/cmake/project.metadata.cmake b/cmake/project.metadata.cmake
index ea2771af2f..e15cabe5e2 100644
--- a/cmake/project.metadata.cmake
+++ b/cmake/project.metadata.cmake
@@ -1,5 +1,5 @@
# Default project values
-set(DEX_API "mm2_kmd")
+set(DEX_API "kdf_kwd")
set(DEX_RPCPORT 7762)
set(DEX_RPC "http://127.0.0.1:7762")
set(DEX_PROJECT_NAME "komodo-wallet")
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f5d49ac68a..35673f74e8 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -113,11 +113,11 @@ add_executable(${PROJECT_NAME}_tests MACOSX_BUNDLE ${ICON}
##! API
tests/api/coingecko/coingecko.tests.cpp
tests/api/komodo_prices/komodo.prices.tests.cpp
- tests/api/mm2/mm2.api.address_format.tests.cpp
- tests/api/mm2/mm2.api.utxo_merge_params.tests.cpp
- tests/api/mm2/mm2.api.balance_infos.tests.cpp
- tests/api/mm2/mm2.fraction.tests.cpp
- tests/api/mm2/mm2.rpc2.trade_preimage.tests.cpp
+ tests/api/kdf/kdf.api.address_format.tests.cpp
+ tests/api/kdf/kdf.api.utxo_merge_params.tests.cpp
+ tests/api/kdf/kdf.api.balance_infos.tests.cpp
+ tests/api/kdf/kdf.fraction.tests.cpp
+ tests/api/kdf/kdf.rpc2.trade_preimage.tests.cpp
##! CFG
tests/config/coins.cfg.tests.cpp
@@ -125,9 +125,9 @@ add_executable(${PROJECT_NAME}_tests MACOSX_BUNDLE ${ICON}
##! API
tests/api/coingecko/coingecko.tests.cpp
tests/api/komodo_prices/komodo.prices.tests.cpp
- tests/api/mm2/mm2.rpc2.trade_preimage.tests.cpp
- tests/api/mm2/mm2.fraction.tests.cpp
- tests/api/mm2/enable_bch_with_tokens_rpc_tests.cpp
+ tests/api/kdf/kdf.rpc2.trade_preimage.tests.cpp
+ tests/api/kdf/kdf.fraction.tests.cpp
+ tests/api/kdf/enable_bch_with_tokens_rpc_tests.cpp
##! Utilities
tests/utilities/qt.utilities.tests.cpp
diff --git a/src/app/app.cpp b/src/app/app.cpp
index a3a8fdf0cd..8036d57e47 100644
--- a/src/app/app.cpp
+++ b/src/app/app.cpp
@@ -40,7 +40,7 @@
//! Project Headers
#include "app.hpp"
#include "atomicdex/services/exporter/exporter.service.hpp"
-#include "atomicdex/services/mm2/auto.update.maker.order.service.hpp"
+#include "atomicdex/services/kdf/auto.update.maker.order.service.hpp"
#include "atomicdex/services/price/komodo_prices/komodo.prices.provider.hpp"
#include "atomicdex/services/price/coingecko/coingecko.wallet.charts.hpp"
#include "atomicdex/services/price/orderbook.scanner.service.hpp"
@@ -73,17 +73,17 @@ namespace atomic_dex
std::vector coins_std{};
coins_std.reserve(coins.size());
- atomic_dex::mm2_service& mm2 = get_mm2();
+ atomic_dex::kdf_service& kdf = get_kdf();
std::unordered_set extra_coins;
for (auto&& coin : coins)
{
- auto coin_info = mm2.get_coin_info(coin.toStdString());
+ auto coin_info = kdf.get_coin_info(coin.toStdString());
if (coin_info.has_parent_fees_ticker &&
coin_info.ticker != coin_info.fees_ticker &&
!coins.contains(QString::fromStdString(coin_info.fees_ticker)))
{
- auto coin_parent_info = mm2.get_coin_info(coin_info.fees_ticker);
+ auto coin_parent_info = kdf.get_coin_info(coin_info.fees_ticker);
// todo: why can it be empty when it has been found ?
// refactor coins enabling logic!!!
if (coin_parent_info.ticker != "")
@@ -100,7 +100,7 @@ namespace atomic_dex
{
coins_std.push_back(extra_coin);
}
- mm2.enable_coins(coins_std);
+ kdf.enable_coins(coins_std);
return true;
}
@@ -114,14 +114,14 @@ namespace atomic_dex
QString primary_coin = QString::fromStdString(g_primary_dex_coin);
QString secondary_coin = QString::fromStdString(g_second_primary_dex_coin);
QStringList coins_copy;
- const auto& mm2 = system_manager_.get_system();
+ const auto& kdf = system_manager_.get_system();
for (auto&& coin : coins)
{
- const auto coin_info = mm2.get_coin_info(coin.toStdString());
+ const auto coin_info = kdf.get_coin_info(coin.toStdString());
bool has_parent_fees = coin_info.has_parent_fees_ticker;
if (not get_orders()->swap_is_in_progress(coin) && coin != primary_coin && coin != secondary_coin)
{
- if (!get_mm2().is_zhtlc_coin_ready(coin.toStdString()))
+ if (!get_kdf().is_zhtlc_coin_ready(coin.toStdString()))
{
this->dispatcher_.trigger(coin.toStdString(), "Can't disable until fully activated.");
}
@@ -147,13 +147,13 @@ namespace atomic_dex
coins_std.reserve(coins_copy.size());
for (auto&& coin : coins_copy)
{
- if (QString::fromStdString(get_mm2().get_current_ticker()) == coin && m_primary_coin_fully_enabled)
+ if (QString::fromStdString(get_kdf().get_current_ticker()) == coin && m_primary_coin_fully_enabled)
{
system_manager_.get_system().set_current_ticker(primary_coin);
}
coins_std.push_back(coin.toStdString());
}
- get_mm2().disable_multiple_coins(coins_std);
+ get_kdf().disable_multiple_coins(coins_std);
this->dispatcher_.trigger(false);
}
@@ -202,7 +202,7 @@ namespace atomic_dex
std::string wallet_custom_cfg_filename = "custom-tokens."s + wallet_name + ".json"s;
const fs::path wallet_custom_cfg_path{utils::get_atomic_dex_config_folder() / wallet_custom_cfg_filename};
const fs::path wallet_cfg_path{utils::get_atomic_dex_config_folder() / wallet_cfg_file};
- const fs::path mm2_coins_file_path{atomic_dex::utils::get_current_configs_path() / "coins.json"};
+ const fs::path kdf_coins_file_path{atomic_dex::utils::get_current_configs_path() / "coins.json"};
const fs::path ini_file_path = atomic_dex::utils::get_current_configs_path() / "cfg.ini";
const fs::path cfg_json_file_path = atomic_dex::utils::get_current_configs_path() / "cfg.json";
const fs::path logo_path = atomic_dex::utils::get_logo_path();
@@ -308,7 +308,7 @@ namespace atomic_dex
file.write(QString::fromStdString(custom_config_json_data.dump()).toUtf8());
file.close();
}
- functor_remove(std::move(mm2_coins_file_path));
+ functor_remove(std::move(kdf_coins_file_path));
functor_remove(std::move(cfg_json_file_path));
functor_remove(std::move(logo_path));
functor_remove(std::move(theme_path));
@@ -342,14 +342,14 @@ namespace atomic_dex
void application::tick()
{
this->process_one_frame();
- if (m_event_actions[events_action::need_a_full_refresh_of_mm2])
+ if (m_event_actions[events_action::need_a_full_refresh_of_kdf])
{
- system_manager_.create_system(system_manager_);
+ system_manager_.create_system(system_manager_);
connect_signals();
- m_event_actions[events_action::need_a_full_refresh_of_mm2] = false;
+ m_event_actions[events_action::need_a_full_refresh_of_kdf] = false;
}
- auto& mm2 = get_mm2();
- if (mm2.is_mm2_running())
+ auto& kdf = get_kdf();
+ if (kdf.is_kdf_running())
{
std::vector to_init;
while (not m_portfolio_queue.empty())
@@ -410,13 +410,13 @@ namespace atomic_dex
switch (last_action)
{
case action::post_process_orders_and_swaps_finished:
- if (mm2.is_mm2_running())
+ if (kdf.is_kdf_running())
{
qobject_cast(m_manager_models.at("orders"))->refresh_or_insert();
}
break;
case action::post_process_orders_and_swaps_finished_reset:
- if (mm2.is_mm2_running())
+ if (kdf.is_kdf_running())
{
qobject_cast(m_manager_models.at("orders"))->refresh_or_insert(true);
}
@@ -425,9 +425,9 @@ namespace atomic_dex
}
}
- mm2_service& application::get_mm2()
+ kdf_service& application::get_kdf()
{
- return this->system_manager_.get_system();
+ return this->system_manager_.get_system();
}
entt::dispatcher& application::get_dispatcher()
@@ -486,8 +486,8 @@ namespace atomic_dex
}
// get_dispatcher().sink().connect<&application::on_refresh_update_status_event>(*this);
- //! MM2 system need to be created before the GUI and give the instance to the gui
- system_manager_.create_system(system_manager_);
+ //! KDF system need to be created before the GUI and give the instance to the gui
+ system_manager_.create_system(system_manager_);
auto& settings_page_system = system_manager_.create_system(system_manager_, m_app, this);
auto& portfolio_system = system_manager_.create_system(system_manager_, this);
portfolio_system.get_portfolio()->set_cfg(settings_page_system.get_cfg());
@@ -540,17 +540,17 @@ namespace atomic_dex
bool application::do_i_have_enough_funds(const QString& ticker, const QString& amount) const
{
t_float_50 amount_f = safe_float(amount.toStdString());
- return get_mm2().do_i_have_enough_funds(ticker.toStdString(), amount_f);
+ return get_kdf().do_i_have_enough_funds(ticker.toStdString(), amount_f);
}
- const mm2_service& application::get_mm2() const
+ const kdf_service& application::get_kdf() const
{
- return this->system_manager_.get_system();
+ return this->system_manager_.get_system();
}
QJsonObject application::get_zhtlc_status(const QString& coin)
{
- QJsonObject res = nlohmann_json_object_to_qt_json_object(get_mm2().get_zhtlc_status(coin.toStdString()));
+ QJsonObject res = nlohmann_json_object_to_qt_json_object(get_kdf().get_zhtlc_status(coin.toStdString()));
return res;
}
@@ -558,11 +558,11 @@ namespace atomic_dex
{
std::error_code ec;
SPDLOG_DEBUG("{} l{}", __FUNCTION__, __LINE__);
- auto res = get_mm2().get_balance_info(coin.toStdString(), ec);
+ auto res = get_kdf().get_balance_info(coin.toStdString(), ec);
return QString::fromStdString(res);
}
- void application::on_mm2_initialized_event([[maybe_unused]] const mm2_initialized& evt)
+ void application::on_kdf_initialized_event([[maybe_unused]] const kdf_initialized& evt)
{
SPDLOG_DEBUG("{} l{}", __FUNCTION__, __LINE__);
system_manager_.get_system().set_status("enabling_coins");
@@ -571,10 +571,10 @@ namespace atomic_dex
// Function appears to be unused.
void application::refresh_orders_and_swaps()
{
- auto& mm2 = get_mm2();
- if (mm2.is_mm2_running())
+ auto& kdf = get_kdf();
+ if (kdf.is_kdf_running())
{
- mm2.batch_fetch_orders_and_swap();
+ kdf.batch_fetch_orders_and_swap();
}
}
@@ -611,7 +611,7 @@ namespace atomic_dex
//! Mark systems
- system_manager_.mark_system();
+ system_manager_.mark_system();
//system_manager_.mark_system();
//! Disconnect signals
@@ -621,10 +621,10 @@ namespace atomic_dex
dispatcher_.sink().disconnect<&application::on_ticker_balance_updated_event>(*this);
dispatcher_.sink().disconnect<&application::on_fiat_rate_updated>(*this);
dispatcher_.sink().disconnect<&application::on_coin_fully_initialized_event>(*this);
- dispatcher_.sink().disconnect<&application::on_mm2_initialized_event>(*this);
+ dispatcher_.sink().disconnect<&application::on_kdf_initialized_event>(*this);
dispatcher_.sink().disconnect<&application::on_process_orders_and_swaps_finished_event>(*this);
- m_event_actions[events_action::need_a_full_refresh_of_mm2] = true;
+ m_event_actions[events_action::need_a_full_refresh_of_kdf] = true;
//! Resets wallet name.
auto& wallet_manager = this->system_manager_.get_system();
@@ -645,7 +645,7 @@ namespace atomic_dex
get_dispatcher().sink().connect<&application::on_ticker_balance_updated_event>(*this);
get_dispatcher().sink().connect<&application::on_fiat_rate_updated>(*this);
get_dispatcher().sink().connect<&application::on_coin_fully_initialized_event>(*this);
- get_dispatcher().sink().connect<&application::on_mm2_initialized_event>(*this);
+ get_dispatcher().sink().connect<&application::on_kdf_initialized_event>(*this);
get_dispatcher().sink().connect<&application::on_process_orders_and_swaps_finished_event>(*this);
// get_dispatcher().sink().connect<&application::on_process_swaps_finished_event>(*this);
}
@@ -664,8 +664,8 @@ namespace atomic_dex
{
QString result;
- mm2::recover_funds_of_swap_request request{.swap_uuid = uuid.toStdString()};
- auto res = get_mm2().get_mm2_client().rpc_recover_funds(std::move(request));
+ kdf::recover_funds_of_swap_request request{.swap_uuid = uuid.toStdString()};
+ auto res = get_kdf().get_kdf_client().rpc_recover_funds(std::move(request));
result = QString::fromStdString(res.raw_result);
return result;
@@ -793,7 +793,7 @@ namespace atomic_dex
bool
application::is_pin_cfg_enabled() const
{
- return get_mm2().is_pin_cfg_enabled();
+ return get_kdf().is_pin_cfg_enabled();
}
} // namespace atomic_dex
@@ -804,7 +804,7 @@ namespace atomic_dex
application::exit_handler()
{
SPDLOG_DEBUG("will quit app, prevent all threading event");
- this->system_manager_.mark_system();
+ this->system_manager_.mark_system();
this->process_one_frame();
m_event_actions[events_action::about_to_exit_app] = true;
}
diff --git a/src/app/app.hpp b/src/app/app.hpp
index 6ad76aafc7..e6d26b7fd1 100644
--- a/src/app/app.hpp
+++ b/src/app/app.hpp
@@ -45,7 +45,7 @@
#include "atomicdex/pages/qt.wallet.page.hpp"
#include "atomicdex/services/exporter/exporter.service.hpp"
#include "atomicdex/services/internet/internet.checker.service.hpp"
-#include "atomicdex/services/mm2/mm2.service.hpp"
+#include "atomicdex/services/kdf/kdf.service.hpp"
#include "atomicdex/services/price/defi.stats.hpp"
#include "atomicdex/services/price/global.provider.hpp"
#include "atomicdex/services/update/update.checker.service.hpp"
@@ -83,7 +83,7 @@ namespace atomic_dex
enum events_action
{
- need_a_full_refresh_of_mm2 = 0,
+ need_a_full_refresh_of_kdf = 0,
about_to_exit_app = 1,
size = 2
};
@@ -117,11 +117,11 @@ namespace atomic_dex
void on_ticker_balance_updated_event(const ticker_balance_updated&);
void on_fiat_rate_updated(const fiat_rate_updated&);
void on_coin_fully_initialized_event(const coin_fully_initialized&);
- void on_mm2_initialized_event(const mm2_initialized&);
+ void on_kdf_initialized_event(const kdf_initialized&);
void on_process_orders_and_swaps_finished_event(const process_swaps_and_orders_finished&);
- mm2_service& get_mm2();
- [[nodiscard]] const mm2_service& get_mm2() const;
+ kdf_service& get_kdf();
+ [[nodiscard]] const kdf_service& get_kdf() const;
entt::dispatcher& get_dispatcher();
const entt::registry& get_registry() const;
entt::registry& get_registry();
diff --git a/src/app/main.prerequisites.hpp b/src/app/main.prerequisites.hpp
index d3e6921ca3..acd7574bb1 100644
--- a/src/app/main.prerequisites.hpp
+++ b/src/app/main.prerequisites.hpp
@@ -104,7 +104,7 @@ qt_message_handler(QtMsgType type, [[maybe_unused]] const QMessageLogContext& co
static void
signal_handler(int signal)
{
- SPDLOG_ERROR("sigabort received, cleaning mm2");
+ SPDLOG_ERROR("sigabort received, cleaning kdf");
atomic_dex::kill_executable(atomic_dex::g_dex_api);
#if defined(linux) || defined(__APPLE__)
boost::stacktrace::safe_dump_to("./backtrace.dump");
@@ -158,7 +158,7 @@ init_sodium()
static void
clean_previous_run()
{
- SPDLOG_INFO("cleaning previous mm2 instance");
+ SPDLOG_INFO("cleaning previous kdf instance");
atomic_dex::kill_executable(atomic_dex::g_dex_api);
}
diff --git a/src/core/atomicdex/api/mm2/address_format.cpp b/src/core/atomicdex/api/kdf/address_format.cpp
similarity index 94%
rename from src/core/atomicdex/api/mm2/address_format.cpp
rename to src/core/atomicdex/api/kdf/address_format.cpp
index d4320ed7d7..07338bb037 100644
--- a/src/core/atomicdex/api/mm2/address_format.cpp
+++ b/src/core/atomicdex/api/kdf/address_format.cpp
@@ -18,9 +18,9 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/address_format.hpp"
+#include "atomicdex/api/kdf/address_format.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
to_json(nlohmann::json& j, const address_format_t& req)
@@ -42,4 +42,4 @@ namespace atomic_dex::mm2
}
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/address_format.hpp b/src/core/atomicdex/api/kdf/address_format.hpp
similarity index 98%
rename from src/core/atomicdex/api/mm2/address_format.hpp
rename to src/core/atomicdex/api/kdf/address_format.hpp
index 7b68961d12..894ae0b4a9 100644
--- a/src/core/atomicdex/api/mm2/address_format.hpp
+++ b/src/core/atomicdex/api/kdf/address_format.hpp
@@ -19,7 +19,7 @@
#include
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct address_format_t
{
diff --git a/src/core/atomicdex/api/mm2/balance_info.cpp b/src/core/atomicdex/api/kdf/balance_info.cpp
similarity index 74%
rename from src/core/atomicdex/api/mm2/balance_info.cpp
rename to src/core/atomicdex/api/kdf/balance_info.cpp
index 00865a30f3..d300f6a1bc 100644
--- a/src/core/atomicdex/api/mm2/balance_info.cpp
+++ b/src/core/atomicdex/api/kdf/balance_info.cpp
@@ -1,8 +1,8 @@
#include
-#include "atomicdex/api/mm2/balance_info.hpp"
+#include "atomicdex/api/kdf/balance_info.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void from_json(const nlohmann::json& j, balance_info& in)
{
diff --git a/src/core/atomicdex/api/mm2/balance_info.hpp b/src/core/atomicdex/api/kdf/balance_info.hpp
similarity index 90%
rename from src/core/atomicdex/api/mm2/balance_info.hpp
rename to src/core/atomicdex/api/kdf/balance_info.hpp
index f40047c368..94f8961972 100644
--- a/src/core/atomicdex/api/mm2/balance_info.hpp
+++ b/src/core/atomicdex/api/kdf/balance_info.hpp
@@ -4,7 +4,7 @@
#include //> nlohmann::json
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct balance_info
{
diff --git a/src/core/atomicdex/api/mm2/balance_infos.cpp b/src/core/atomicdex/api/kdf/balance_infos.cpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/balance_infos.cpp
rename to src/core/atomicdex/api/kdf/balance_infos.cpp
index 9140372b71..57893273b6 100644
--- a/src/core/atomicdex/api/mm2/balance_infos.cpp
+++ b/src/core/atomicdex/api/kdf/balance_infos.cpp
@@ -20,7 +20,7 @@
// Project Headers
#include "balance_infos.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
from_json(const nlohmann::json& j, balance_infos& answer)
@@ -28,4 +28,4 @@ namespace atomic_dex::mm2
answer.spendable = j.at("spendable").get();
answer.unspendable = j.at("unspendable").get();
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/balance_infos.hpp b/src/core/atomicdex/api/kdf/balance_infos.hpp
similarity index 98%
rename from src/core/atomicdex/api/mm2/balance_infos.hpp
rename to src/core/atomicdex/api/kdf/balance_infos.hpp
index eece30234c..8f4265221f 100644
--- a/src/core/atomicdex/api/mm2/balance_infos.hpp
+++ b/src/core/atomicdex/api/kdf/balance_infos.hpp
@@ -19,7 +19,7 @@
#include
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct balance_infos
{
diff --git a/src/core/atomicdex/api/kdf/fraction.cpp b/src/core/atomicdex/api/kdf/fraction.cpp
new file mode 100644
index 0000000000..bd66de6882
--- /dev/null
+++ b/src/core/atomicdex/api/kdf/fraction.cpp
@@ -0,0 +1,12 @@
+#include
+
+#include "atomicdex/api/kdf/fraction.hpp"
+
+namespace atomic_dex::kdf
+{
+ void from_json(const nlohmann::json& j, kdf::fraction& fraction)
+ {
+ j.at("denom").get_to(fraction.denom);
+ j.at("numer").get_to(fraction.numer);
+ }
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/fraction.fwd.hpp b/src/core/atomicdex/api/kdf/fraction.fwd.hpp
similarity index 59%
rename from src/core/atomicdex/api/mm2/fraction.fwd.hpp
rename to src/core/atomicdex/api/kdf/fraction.fwd.hpp
index 8b0b7bb20c..1fed5af188 100644
--- a/src/core/atomicdex/api/mm2/fraction.fwd.hpp
+++ b/src/core/atomicdex/api/kdf/fraction.fwd.hpp
@@ -1,6 +1,6 @@
#pragma once
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct fraction;
}
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/fraction.hpp b/src/core/atomicdex/api/kdf/fraction.hpp
similarity index 69%
rename from src/core/atomicdex/api/mm2/fraction.hpp
rename to src/core/atomicdex/api/kdf/fraction.hpp
index c197c8a478..af015bb93e 100644
--- a/src/core/atomicdex/api/mm2/fraction.hpp
+++ b/src/core/atomicdex/api/kdf/fraction.hpp
@@ -5,7 +5,7 @@
#include
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct fraction
{
@@ -13,5 +13,5 @@ namespace atomic_dex::mm2
std::string numer;
};
- ENTT_API void from_json(const nlohmann::json& j, mm2::fraction& fraction);
+ ENTT_API void from_json(const nlohmann::json& j, kdf::fraction& fraction);
}
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/generic.error.cpp b/src/core/atomicdex/api/kdf/generic.error.cpp
similarity index 76%
rename from src/core/atomicdex/api/mm2/generic.error.cpp
rename to src/core/atomicdex/api/kdf/generic.error.cpp
index 85943adcf6..24388c3bad 100644
--- a/src/core/atomicdex/api/mm2/generic.error.cpp
+++ b/src/core/atomicdex/api/kdf/generic.error.cpp
@@ -1,6 +1,6 @@
-#include "atomicdex/api/mm2/generic.error.hpp"
+#include "atomicdex/api/kdf/generic.error.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void from_json(const nlohmann::json& j, generic_answer_error& res)
{
@@ -10,4 +10,4 @@ namespace atomic_dex::mm2
j.at("error_type").get_to(res.error_type);
j.at("error_data").get_to(res.error_data);
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/generic.error.hpp b/src/core/atomicdex/api/kdf/generic.error.hpp
similarity index 87%
rename from src/core/atomicdex/api/mm2/generic.error.hpp
rename to src/core/atomicdex/api/kdf/generic.error.hpp
index 7be792aae5..1e03e42d2f 100644
--- a/src/core/atomicdex/api/mm2/generic.error.hpp
+++ b/src/core/atomicdex/api/kdf/generic.error.hpp
@@ -6,7 +6,7 @@
//! Deps
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct generic_answer_error
{
@@ -18,4 +18,4 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, generic_answer_error& res);
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/generics.cpp b/src/core/atomicdex/api/kdf/generics.cpp
similarity index 80%
rename from src/core/atomicdex/api/mm2/generics.cpp
rename to src/core/atomicdex/api/kdf/generics.cpp
index a8a0c0ddb4..e9e03bc34a 100644
--- a/src/core/atomicdex/api/mm2/generics.cpp
+++ b/src/core/atomicdex/api/kdf/generics.cpp
@@ -18,19 +18,19 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/generics.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.buy.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.convertaddress.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.disable_coin.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.max_taker_vol.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.min_trading_vol.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.recover_funds_of_swap.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.sell.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.validateaddress.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.bestorders.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.trade_preimage.hpp"
+#include "atomicdex/api/kdf/generics.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.buy.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.convertaddress.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.disable_coin.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.max_taker_vol.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.min_trading_vol.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.recover_funds_of_swap.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.sell.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.validateaddress.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.bestorders.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.trade_preimage.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
template
void
@@ -55,4 +55,4 @@ namespace atomic_dex::mm2
template void extract_rpc_json_answer(const nlohmann::json& j, validate_address_answer& answer);
template void extract_rpc_json_answer(const nlohmann::json& j, convert_address_answer& answer);
template void extract_rpc_json_answer(const nlohmann::json& j, recover_funds_of_swap_answer& answer);
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/generics.hpp b/src/core/atomicdex/api/kdf/generics.hpp
similarity index 98%
rename from src/core/atomicdex/api/mm2/generics.hpp
rename to src/core/atomicdex/api/kdf/generics.hpp
index 333180d538..937b8dc1eb 100644
--- a/src/core/atomicdex/api/mm2/generics.hpp
+++ b/src/core/atomicdex/api/kdf/generics.hpp
@@ -18,7 +18,7 @@
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
template
void
diff --git a/src/core/atomicdex/api/mm2/mm2.client.cpp b/src/core/atomicdex/api/kdf/kdf.client.cpp
similarity index 78%
rename from src/core/atomicdex/api/mm2/mm2.client.cpp
rename to src/core/atomicdex/api/kdf/kdf.client.cpp
index 3be3af8d99..8fc2677871 100644
--- a/src/core/atomicdex/api/mm2/mm2.client.cpp
+++ b/src/core/atomicdex/api/kdf/kdf.client.cpp
@@ -18,22 +18,22 @@
#include
-#include "mm2.hpp"
-#include "atomicdex/api/mm2/rpc.hpp"
-#include "mm2.client.hpp"
+#include "kdf.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
+#include "kdf.client.hpp"
#include "rpc.tx.history.hpp"
#include "atomicdex/constants/dex.constants.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.my_tx_history.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.get_public_key.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.my_tx_history.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.orderbook.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.bestorders.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_token.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_with_assets.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.enable_erc20.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.enable_eth_with_tokens.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.enable_slp_rpc.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.enable_bch_with_tokens_rpc.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.my_tx_history.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.get_public_key.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.my_tx_history.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.orderbook.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.bestorders.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_token.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_with_assets.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.enable_erc20.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.enable_eth_with_tokens.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.enable_slp_rpc.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.enable_bch_with_tokens_rpc.hpp"
namespace
{
@@ -51,11 +51,11 @@ namespace
return {FROM_STD_STR(atomic_dex::g_dex_rpc), cfg};
}
- template
+ template
web::http::http_request make_request(typename Rpc::expected_request_type data_req = {})
{
web::http::http_request request;
- nlohmann::json json_req = {{"method", Rpc::endpoint}, {"userpass", atomic_dex::mm2::get_rpc_password()}};
+ nlohmann::json json_req = {{"method", Rpc::endpoint}, {"userpass", atomic_dex::kdf::get_rpc_password()}};
nlohmann::json json_data;
nlohmann::to_json(json_data, data_req);
@@ -74,7 +74,7 @@ namespace
return request;
}
- template
+ template
Rpc process_rpc_answer(const web::http::http_response& answer)
{
std::string body = TO_STD_STR(answer.extract_string(true).get());
@@ -114,10 +114,10 @@ namespace
}
} // namespace
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
template
- RpcReturnType mm2_client::rpc_process_answer(const web::http::http_response& resp, const std::string& rpc_command)
+ RpcReturnType kdf_client::rpc_process_answer(const web::http::http_response& resp, const std::string& rpc_command)
{
std::string body = TO_STD_STR(resp.extract_string(true).get());
SPDLOG_INFO("resp code for rpc_command {} is {}", rpc_command, resp.status_code());
@@ -170,7 +170,7 @@ namespace atomic_dex::mm2
}
pplx::task
- mm2_client::async_rpc_batch_standalone(nlohmann::json batch_array)
+ kdf_client::async_rpc_batch_standalone(nlohmann::json batch_array)
{
web::http::http_request request;
request.set_method(web::http::methods::POST);
@@ -180,27 +180,27 @@ namespace atomic_dex::mm2
}
template
- void mm2_client::process_rpc_async(const std::function& on_rpc_processed)
+ void kdf_client::process_rpc_async(const std::function& on_rpc_processed)
{
using request_type = typename Rpc::expected_request_type;
process_rpc_async(request_type{}, on_rpc_processed);
}
- // template void mm2_client::process_rpc_async(const std::function&);
- template void mm2_client::process_rpc_async(const std::function&);
- template void mm2_client::process_rpc_async(const std::function&);
- template void mm2_client::process_rpc_async(const std::function&);
- template void mm2_client::process_rpc_async(const std::function&);
- template void mm2_client::process_rpc_async(const std::function&);
- template void mm2_client::process_rpc_async(const std::function&);
- template void mm2_client::process_rpc_async(const std::function&);
- template void mm2_client::process_rpc_async(const std::function&);
- template void mm2_client::process_rpc_async(const std::function&);
- template void mm2_client::process_rpc_async(const std::function&);
- template void mm2_client::process_rpc_async(const std::function&);
+ // template void kdf_client::process_rpc_async(const std::function&);
+ template void kdf_client::process_rpc_async(const std::function&);
+ template void kdf_client::process_rpc_async(const std::function&);
+ template void kdf_client::process_rpc_async(const std::function&);
+ template void kdf_client::process_rpc_async(const std::function&);
+ template void kdf_client::process_rpc_async(const std::function&);
+ template void kdf_client::process_rpc_async(const std::function&);
+ template void kdf_client::process_rpc_async(const std::function&);
+ template void kdf_client::process_rpc_async(const std::function&);
+ template void kdf_client::process_rpc_async(const std::function&);
+ template void kdf_client::process_rpc_async(const std::function&);
+ template void kdf_client::process_rpc_async(const std::function&);
- template
- void mm2_client::process_rpc_async(typename Rpc::expected_request_type request, const std::function& on_rpc_processed)
+ template
+ void kdf_client::process_rpc_async(typename Rpc::expected_request_type request, const std::function& on_rpc_processed)
{
auto http_request = make_request(request);
generate_client()
@@ -222,20 +222,20 @@ namespace atomic_dex::mm2
}
void
- mm2_client::stop()
+ kdf_client::stop()
{
m_token_source.cancel();
}
template
TAnswer
- mm2_client::process_rpc(TRequest&& request, std::string rpc_command, bool is_v2)
+ kdf_client::process_rpc(TRequest&& request, std::string rpc_command, bool is_v2)
{
SPDLOG_DEBUG("Processing rpc call: {}", rpc_command);
- nlohmann::json json_data = mm2::template_request(rpc_command, is_v2);
+ nlohmann::json json_data = kdf::template_request(rpc_command, is_v2);
- mm2::to_json(json_data, request);
+ kdf::to_json(json_data, request);
auto json_copy = json_data;
json_copy["userpass"] = "*******";
@@ -249,24 +249,24 @@ namespace atomic_dex::mm2
}
t_enable_z_coin_cancel_answer
- mm2_client::rpc_enable_z_coin_cancel(t_enable_z_coin_cancel_request&& request)
+ kdf_client::rpc_enable_z_coin_cancel(t_enable_z_coin_cancel_request&& request)
{
return process_rpc(std::forward(request), "task::enable_z_coin::cancel", true);
}
t_disable_coin_answer
- mm2_client::rpc_disable_coin(t_disable_coin_request&& request)
+ kdf_client::rpc_disable_coin(t_disable_coin_request&& request)
{
return process_rpc(std::forward(request), "disable_coin");
}
t_recover_funds_of_swap_answer
- mm2_client::rpc_recover_funds(t_recover_funds_of_swap_request&& request)
+ kdf_client::rpc_recover_funds(t_recover_funds_of_swap_request&& request)
{
return process_rpc(
std::forward(request), "recover_funds_of_swap");
}
} // namespace atomic_dex
-template atomic_dex::mm2::tx_history_answer atomic_dex::mm2::mm2_client::rpc_process_answer(const web::http::http_response& resp, const std::string& rpc_command);
-template atomic_dex::mm2::disable_coin_answer atomic_dex::mm2::mm2_client::rpc_process_answer(const web::http::http_response& resp, const std::string& rpc_command);
+template atomic_dex::kdf::tx_history_answer atomic_dex::kdf::kdf_client::rpc_process_answer(const web::http::http_response& resp, const std::string& rpc_command);
+template atomic_dex::kdf::disable_coin_answer atomic_dex::kdf::kdf_client::rpc_process_answer(const web::http::http_response& resp, const std::string& rpc_command);
diff --git a/src/core/atomicdex/api/mm2/mm2.client.hpp b/src/core/atomicdex/api/kdf/kdf.client.hpp
similarity index 79%
rename from src/core/atomicdex/api/mm2/mm2.client.hpp
rename to src/core/atomicdex/api/kdf/kdf.client.hpp
index 13421d986d..1ea8a05074 100644
--- a/src/core/atomicdex/api/mm2/mm2.client.hpp
+++ b/src/core/atomicdex/api/kdf/kdf.client.hpp
@@ -8,20 +8,20 @@
// Project Headers
#include "atomicdex/utilities/cpprestsdk.utilities.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.disable_coin.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.recover_funds_of_swap.hpp"
-#include "atomicdex/api/mm2/rpc.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.cancel.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.disable_coin.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.recover_funds_of_swap.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.cancel.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
- class ENTT_API mm2_client
+ class ENTT_API kdf_client
{
pplx::cancellation_token_source m_token_source;
public:
- mm2_client() = default;
- ~mm2_client() = default;
+ kdf_client() = default;
+ ~kdf_client() = default;
//! Create the client
void stop();
diff --git a/src/core/atomicdex/api/mm2/mm2.constants.hpp b/src/core/atomicdex/api/kdf/kdf.constants.hpp
similarity index 100%
rename from src/core/atomicdex/api/mm2/mm2.constants.hpp
rename to src/core/atomicdex/api/kdf/kdf.constants.hpp
diff --git a/src/core/atomicdex/api/mm2/mm2.cpp b/src/core/atomicdex/api/kdf/kdf.cpp
similarity index 95%
rename from src/core/atomicdex/api/mm2/mm2.cpp
rename to src/core/atomicdex/api/kdf/kdf.cpp
index 794fadb2c8..25a73d6b87 100644
--- a/src/core/atomicdex/api/mm2/mm2.cpp
+++ b/src/core/atomicdex/api/kdf/kdf.cpp
@@ -18,16 +18,16 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/mm2.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.convertaddress.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.min_trading_vol.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.recover_funds_of_swap.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.validateaddress.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.bestorders.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.orderbook.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.status.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.trade_preimage.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.withdraw.hpp"
+#include "atomicdex/api/kdf/kdf.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.convertaddress.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.min_trading_vol.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.recover_funds_of_swap.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.validateaddress.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.bestorders.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.orderbook.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.status.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.trade_preimage.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.withdraw.hpp"
#include "atomicdex/pages/qt.settings.page.hpp"
#include "atomicdex/services/price/global.provider.hpp"
#include "atomicdex/utilities/global.utilities.hpp"
@@ -168,7 +168,7 @@ namespace
}
} // namespace
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
to_json(nlohmann::json& j, const send_raw_transaction_request& cfg)
@@ -739,23 +739,23 @@ namespace atomic_dex::mm2
return answer;
}
- template mm2::withdraw_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
- template mm2::withdraw_status_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
- template mm2::my_orders_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
- template mm2::trade_fee_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
- template mm2::max_taker_vol_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
- template mm2::min_volume_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
- template mm2::my_recent_swaps_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
- template mm2::active_swaps_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
- template mm2::show_priv_key_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
- template mm2::trade_preimage_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
- template mm2::validate_address_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
- template mm2::convert_address_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
- template mm2::recover_funds_of_swap_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
+ template kdf::withdraw_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
+ template kdf::withdraw_status_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
+ template kdf::my_orders_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
+ template kdf::trade_fee_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
+ template kdf::max_taker_vol_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
+ template kdf::min_volume_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
+ template kdf::my_recent_swaps_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
+ template kdf::active_swaps_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
+ template kdf::show_priv_key_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
+ template kdf::trade_preimage_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
+ template kdf::validate_address_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
+ template kdf::convert_address_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
+ template kdf::recover_funds_of_swap_answer rpc_process_answer_batch(nlohmann::json& json_answer, const std::string& rpc_command);
void
set_system_manager(ag::ecs::system_manager& system_manager)
{
g_system_mgr = std::addressof(system_manager);
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/mm2.error.code.cpp b/src/core/atomicdex/api/kdf/kdf.error.code.cpp
similarity index 94%
rename from src/core/atomicdex/api/mm2/mm2.error.code.cpp
rename to src/core/atomicdex/api/kdf/kdf.error.code.cpp
index f77edf559c..f556758909 100644
--- a/src/core/atomicdex/api/mm2/mm2.error.code.cpp
+++ b/src/core/atomicdex/api/kdf/kdf.error.code.cpp
@@ -15,11 +15,11 @@
******************************************************************************/
//! Project Headers
-#include "mm2.error.code.hpp"
+#include "kdf.error.code.hpp"
namespace
{
- class mm2_error_category_impl final : public std::error_category
+ class kdf_error_category_impl final : public std::error_category
{
public:
[[nodiscard]] const char* name() const noexcept final;
@@ -28,13 +28,13 @@ namespace
};
const char*
- mm2_error_category_impl::name() const noexcept
+ kdf_error_category_impl::name() const noexcept
{
- return "mm2";
+ return "kdf";
}
std::string
- mm2_error_category_impl::message(int code) const
+ kdf_error_category_impl::message(int code) const
{
switch (static_cast(code))
{
@@ -92,7 +92,7 @@ namespace
return "";
}
- const mm2_error_category_impl g_err_categ{};
+ const kdf_error_category_impl g_err_categ{};
} // namespace
std::error_code
diff --git a/src/core/atomicdex/api/mm2/mm2.error.code.hpp b/src/core/atomicdex/api/kdf/kdf.error.code.hpp
similarity index 98%
rename from src/core/atomicdex/api/mm2/mm2.error.code.hpp
rename to src/core/atomicdex/api/kdf/kdf.error.code.hpp
index a21501285a..bfad61b77f 100644
--- a/src/core/atomicdex/api/mm2/mm2.error.code.hpp
+++ b/src/core/atomicdex/api/kdf/kdf.error.code.hpp
@@ -55,5 +55,5 @@ std::error_code make_error_code(dextop_error error) ;
namespace atomic_dex
{
- using t_mm2_ec = std::error_code;
+ using t_kdf_ec = std::error_code;
} // namespace atomic_dex
diff --git a/src/core/atomicdex/api/mm2/mm2.hpp b/src/core/atomicdex/api/kdf/kdf.hpp
similarity index 92%
rename from src/core/atomicdex/api/mm2/mm2.hpp
rename to src/core/atomicdex/api/kdf/kdf.hpp
index 2a0efe3c65..e29c410d02 100644
--- a/src/core/atomicdex/api/mm2/mm2.hpp
+++ b/src/core/atomicdex/api/kdf/kdf.hpp
@@ -25,14 +25,14 @@
//! Project Headers
#include "atomicdex/config/coins.cfg.hpp"
-#include "atomicdex/api/mm2/mm2.constants.hpp"
+#include "atomicdex/api/kdf/kdf.constants.hpp"
#include "atomicdex/constants/qt.coins.enums.hpp"
#include "atomicdex/data/dex/qt.orders.data.hpp"
#include "atomicdex/utilities/cpprestsdk.utilities.hpp"
namespace ag = antara::gaming;
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
inline constexpr const char* g_etherscan_proxy_endpoint = "https://etherscan-proxy.komodo.earth/";
inline std::unique_ptr g_etherscan_proxy_http_client{
@@ -79,7 +79,7 @@ namespace atomic_dex::mm2
void from_json(const nlohmann::json& j, send_raw_transaction_answer& answer);
- send_raw_transaction_answer rpc_send_raw_transaction(send_raw_transaction_request&& request, std::shared_ptr mm2_client);
+ send_raw_transaction_answer rpc_send_raw_transaction(send_raw_transaction_request&& request, std::shared_ptr kdf_client);
struct cancel_order_request
{
@@ -226,7 +226,7 @@ namespace atomic_dex::mm2
int rpc_result_code;
};
- // kmd_rewards_info_answer rpc_kmd_rewards_info(std::shared_ptr mm2_client);
+ // kmd_rewards_info_answer rpc_kmd_rewards_info(std::shared_ptr kdf_client);
kmd_rewards_info_answer process_kmd_rewards_answer(nlohmann::json result);
template
@@ -239,16 +239,16 @@ namespace atomic_dex::mm2
void set_rpc_password(std::string rpc_password) ;
const std::string& get_rpc_password() ;
void set_system_manager(ag::ecs::system_manager& system_manager);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_my_orders_answer = mm2::my_orders_answer;
- using t_broadcast_request = mm2::send_raw_transaction_request;
- using t_my_recent_swaps_answer = mm2::my_recent_swaps_answer;
- using t_my_recent_swaps_request = mm2::my_recent_swaps_request;
- using t_active_swaps_request = mm2::active_swaps_request;
- using t_active_swaps_answer = mm2::active_swaps_answer;
- using t_get_trade_fee_request = mm2::trade_fee_request;
- using t_get_trade_fee_answer = mm2::trade_fee_answer;
+ using t_my_orders_answer = kdf::my_orders_answer;
+ using t_broadcast_request = kdf::send_raw_transaction_request;
+ using t_my_recent_swaps_answer = kdf::my_recent_swaps_answer;
+ using t_my_recent_swaps_request = kdf::my_recent_swaps_request;
+ using t_active_swaps_request = kdf::active_swaps_request;
+ using t_active_swaps_answer = kdf::active_swaps_answer;
+ using t_get_trade_fee_request = kdf::trade_fee_request;
+ using t_get_trade_fee_answer = kdf::trade_fee_answer;
} // namespace atomic_dex
diff --git a/src/core/atomicdex/api/mm2/orderbook.order.contents.cpp b/src/core/atomicdex/api/kdf/orderbook.order.contents.cpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/orderbook.order.contents.cpp
rename to src/core/atomicdex/api/kdf/orderbook.order.contents.cpp
index 388b67bb24..4ab24fc89b 100644
--- a/src/core/atomicdex/api/mm2/orderbook.order.contents.cpp
+++ b/src/core/atomicdex/api/kdf/orderbook.order.contents.cpp
@@ -19,13 +19,13 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/orderbook.order.contents.hpp"
+#include "atomicdex/api/kdf/orderbook.order.contents.hpp"
#include "atomicdex/utilities/global.utilities.hpp"
#include "atomicdex/pages/qt.trading.page.hpp"
-#include "atomicdex/services/mm2/mm2.service.hpp"
+#include "atomicdex/services/kdf/kdf.service.hpp"
#include "atomicdex/services/price/orderbook.scanner.service.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
from_json(const nlohmann::json& j, order_contents& contents)
@@ -89,4 +89,4 @@ namespace atomic_dex::mm2
ss << "rel_min_volume: " << rel_min_volume << " ";
return ss.str();
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/orderbook.order.contents.hpp b/src/core/atomicdex/api/kdf/orderbook.order.contents.hpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/orderbook.order.contents.hpp
rename to src/core/atomicdex/api/kdf/orderbook.order.contents.hpp
index b4cbc7798e..054248b827 100644
--- a/src/core/atomicdex/api/mm2/orderbook.order.contents.hpp
+++ b/src/core/atomicdex/api/kdf/orderbook.order.contents.hpp
@@ -21,7 +21,7 @@
//! Deps
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct order_contents
{
@@ -61,10 +61,10 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, order_contents& contents);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_order_contents = mm2::order_contents;
+ using t_order_contents = kdf::order_contents;
using t_orders_contents = std::vector;
} // namespace atomic_dex
diff --git a/src/core/atomicdex/api/mm2/paging_options.cpp b/src/core/atomicdex/api/kdf/paging_options.cpp
similarity index 81%
rename from src/core/atomicdex/api/mm2/paging_options.cpp
rename to src/core/atomicdex/api/kdf/paging_options.cpp
index 2d785b004c..783188e29e 100644
--- a/src/core/atomicdex/api/mm2/paging_options.cpp
+++ b/src/core/atomicdex/api/kdf/paging_options.cpp
@@ -3,9 +3,9 @@
#include
-#include "atomicdex/api/mm2/paging_options.hpp"
+#include "atomicdex/api/kdf/paging_options.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void to_json(nlohmann::json& j, const paging_options_t& in)
{
diff --git a/src/core/atomicdex/api/mm2/paging_options.hpp b/src/core/atomicdex/api/kdf/paging_options.hpp
similarity index 92%
rename from src/core/atomicdex/api/mm2/paging_options.hpp
rename to src/core/atomicdex/api/kdf/paging_options.hpp
index 851ce650f7..640cfbd767 100644
--- a/src/core/atomicdex/api/mm2/paging_options.hpp
+++ b/src/core/atomicdex/api/kdf/paging_options.hpp
@@ -7,7 +7,7 @@
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct paging_options_t
{
diff --git a/src/core/atomicdex/api/mm2/rpc.cpp b/src/core/atomicdex/api/kdf/rpc.cpp
similarity index 85%
rename from src/core/atomicdex/api/mm2/rpc.cpp
rename to src/core/atomicdex/api/kdf/rpc.cpp
index a5a2786a78..028b0d479c 100644
--- a/src/core/atomicdex/api/mm2/rpc.cpp
+++ b/src/core/atomicdex/api/kdf/rpc.cpp
@@ -1,8 +1,8 @@
#include
-#include "atomicdex/api/mm2/rpc.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void from_json(const nlohmann::json& j, rpc_basic_error_type& in)
{
diff --git a/src/core/atomicdex/api/mm2/rpc.hpp b/src/core/atomicdex/api/kdf/rpc.hpp
similarity index 98%
rename from src/core/atomicdex/api/mm2/rpc.hpp
rename to src/core/atomicdex/api/kdf/rpc.hpp
index ae41949fec..db9bf77687 100644
--- a/src/core/atomicdex/api/mm2/rpc.hpp
+++ b/src/core/atomicdex/api/kdf/rpc.hpp
@@ -22,7 +22,7 @@
#include "../api.call.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
template
concept rpc = requires(Rpc rpc)
diff --git a/src/core/atomicdex/api/mm2/rpc.tx.history.cpp b/src/core/atomicdex/api/kdf/rpc.tx.history.cpp
similarity index 98%
rename from src/core/atomicdex/api/mm2/rpc.tx.history.cpp
rename to src/core/atomicdex/api/kdf/rpc.tx.history.cpp
index 246eb0750f..2d554b44f7 100644
--- a/src/core/atomicdex/api/mm2/rpc.tx.history.cpp
+++ b/src/core/atomicdex/api/kdf/rpc.tx.history.cpp
@@ -4,7 +4,7 @@
//! Project Headers
#include "rpc.tx.history.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void to_json(nlohmann::json& j, const tx_history_request& cfg)
{
@@ -105,4 +105,4 @@ namespace atomic_dex::mm2
answer.result = j.at("result").get();
}
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc.tx.history.hpp b/src/core/atomicdex/api/kdf/rpc.tx.history.hpp
similarity index 92%
rename from src/core/atomicdex/api/mm2/rpc.tx.history.hpp
rename to src/core/atomicdex/api/kdf/rpc.tx.history.hpp
index a761b2d954..4f8d1cb072 100644
--- a/src/core/atomicdex/api/mm2/rpc.tx.history.hpp
+++ b/src/core/atomicdex/api/kdf/rpc.tx.history.hpp
@@ -5,10 +5,10 @@
#include
-#include "atomicdex/api/mm2/transaction.data.hpp"
-#include "atomicdex/api/mm2/paging_options.hpp"
+#include "atomicdex/api/kdf/transaction.data.hpp"
+#include "atomicdex/api/kdf/paging_options.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct tx_history_request
{
@@ -80,9 +80,9 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, tx_history_answer& answer);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_tx_history_request = mm2::tx_history_request;
+ using t_tx_history_request = kdf::tx_history_request;
}
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.buy.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.buy.cpp
similarity index 95%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.buy.cpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.buy.cpp
index 00f1680723..00475f3a42 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.buy.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.buy.cpp
@@ -18,10 +18,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/generics.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.buy.hpp"
+#include "atomicdex/api/kdf/generics.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.buy.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
from_json(const nlohmann::json& j, buy_answer_success& contents)
@@ -79,4 +79,4 @@ namespace atomic_dex::mm2
j["order_type"] = request.order_type.value();
}
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.buy.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.buy.hpp
similarity index 91%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.buy.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.buy.hpp
index 8ad547d304..e6a5083691 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.buy.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.buy.hpp
@@ -24,9 +24,9 @@
#include
//! Project Header
-#include
+#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct buy_request
{
@@ -66,11 +66,11 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, buy_answer& answer);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_buy_request = mm2::buy_request;
- using t_buy_answer = mm2::buy_answer;
- using t_buy_answer_success = mm2::buy_answer_success;
+ using t_buy_request = kdf::buy_request;
+ using t_buy_answer = kdf::buy_answer;
+ using t_buy_answer_success = kdf::buy_answer_success;
} // namespace atomic_dex
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.convertaddress.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.convertaddress.cpp
similarity index 80%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.convertaddress.cpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.convertaddress.cpp
index 333a76b46c..a50afb55c1 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.convertaddress.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.convertaddress.cpp
@@ -6,10 +6,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc_v1/rpc.convertaddress.hpp"
-#include "atomicdex/api/mm2/generics.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.convertaddress.hpp"
+#include "atomicdex/api/kdf/generics.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
to_json(nlohmann::json& j, const convert_address_request& req)
@@ -30,4 +30,4 @@ namespace atomic_dex::mm2
{
extract_rpc_json_answer(j, answer);
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.convertaddress.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.convertaddress.hpp
similarity index 80%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.convertaddress.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.convertaddress.hpp
index 02f1553000..da05a2ed63 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.convertaddress.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.convertaddress.hpp
@@ -6,7 +6,7 @@
//! Deps
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct convert_address_request
{
@@ -33,11 +33,11 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, convert_address_answer& answer);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_convert_address_request = mm2::convert_address_request;
- using t_convert_address_answer = mm2::convert_address_answer;
- using t_convert_address_answer_success = mm2::convert_address_answer_success;
+ using t_convert_address_request = kdf::convert_address_request;
+ using t_convert_address_answer = kdf::convert_address_answer;
+ using t_convert_address_answer_success = kdf::convert_address_answer_success;
} // namespace atomic_dex
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.disable_coin.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.disable_coin.cpp
similarity index 77%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.disable_coin.cpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.disable_coin.cpp
index 8de2611550..d3a3b123ed 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.disable_coin.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.disable_coin.cpp
@@ -5,10 +5,10 @@
#include
//!
-#include "atomicdex/api/mm2/generics.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.disable_coin.hpp"
+#include "atomicdex/api/kdf/generics.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.disable_coin.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
//! Serialization
void
@@ -29,4 +29,4 @@ namespace atomic_dex::mm2
{
extract_rpc_json_answer(j, resp);
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.disable_coin.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.disable_coin.hpp
similarity index 81%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.disable_coin.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.disable_coin.hpp
index 10159e9b77..8a07b47df2 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.disable_coin.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.disable_coin.hpp
@@ -6,7 +6,7 @@
//! JSON FWD
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct disable_coin_request
{
@@ -31,10 +31,10 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, disable_coin_answer& resp);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_disable_coin_request = mm2::disable_coin_request;
- using t_disable_coin_answer = mm2::disable_coin_answer;
+ using t_disable_coin_request = kdf::disable_coin_request;
+ using t_disable_coin_answer = kdf::disable_coin_answer;
}
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.electrum.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.cpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.electrum.cpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.cpp
index f08fb1bb6f..9b6d678da0 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.electrum.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.cpp
@@ -18,10 +18,10 @@
#include
//! Project Deps
-#include "atomicdex/api/mm2/rpc_v1/rpc.electrum.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.electrum.hpp"
//! Implementation RPC [electrum]
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
//! Serialization
void
@@ -70,4 +70,4 @@ namespace atomic_dex::mm2
j.at("balance").get_to(cfg.balance);
j.at("result").get_to(cfg.result);
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.electrum.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.hpp
similarity index 92%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.electrum.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.hpp
index c3d545c57a..1a12c2ca42 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.electrum.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.electrum.hpp
@@ -22,9 +22,9 @@
//! Project Headers
#include "atomicdex/config/electrum.cfg.hpp"
#include "atomicdex/constants/qt.coins.enums.hpp"
-#include "atomicdex/api/mm2/address_format.hpp"
+#include "atomicdex/api/kdf/address_format.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct electrum_request
{
@@ -53,10 +53,10 @@ namespace atomic_dex::mm2
void to_json(nlohmann::json& j, const electrum_request& cfg);
void from_json(const nlohmann::json& j, electrum_answer& answer);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_electrum_request = mm2::electrum_request;
- using t_electrum_answer = mm2::electrum_answer;
+ using t_electrum_request = kdf::electrum_request;
+ using t_electrum_answer = kdf::electrum_answer;
} // namespace atomic_dex
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.enable.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.enable.cpp
similarity index 94%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.enable.cpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.enable.cpp
index 83ee67f33e..16ea536dc8 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.enable.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.enable.cpp
@@ -18,10 +18,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc_v1/rpc.enable.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.enable.hpp"
//! Implementation RPC [enable]
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
//! Serialization
void
@@ -57,9 +57,9 @@ namespace atomic_dex::mm2
{
j["gas_station_decimals"] = cfg.matic_gas_station_decimals.value();
}
- if (cfg.mm2.has_value())
+ if (cfg.kdf.has_value())
{
- j["mm2"] = cfg.mm2.value();
+ j["kdf"] = cfg.kdf.value();
}
}
default:
@@ -84,4 +84,4 @@ namespace atomic_dex::mm2
j.at("result").get_to(cfg.result);
// SPDLOG_INFO("balance for {} is {}", cfg.address, cfg.balance);
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.enable.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.enable.hpp
similarity index 92%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.enable.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.enable.hpp
index 4f4bbafeb2..cfdca87eae 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.enable.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.enable.hpp
@@ -23,7 +23,7 @@
//! Project Headers
#include "atomicdex/constants/qt.coins.enums.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
//! Only for erc 20
struct enable_request
@@ -35,7 +35,7 @@ namespace atomic_dex::mm2
const std::string swap_contract_address;
std::optional fallback_swap_contract{std::nullopt};
std::optional matic_gas_station_decimals{9};
- std::optional mm2{1};
+ std::optional kdf{1};
std::optional gas_station_url{std::nullopt};
std::optional matic_gas_station_url{std::nullopt};
std::optional testnet_matic_gas_station_url{std::nullopt};
@@ -55,10 +55,10 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, const enable_answer& cfg);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_enable_request = mm2::enable_request;
- using t_enable_answer = mm2::enable_answer;
+ using t_enable_request = kdf::enable_request;
+ using t_enable_answer = kdf::enable_answer;
} // namespace atomic_dex
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.max_taker_vol.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.max_taker_vol.cpp
similarity index 94%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.max_taker_vol.cpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.max_taker_vol.cpp
index d9de7d5700..19fda288e7 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.max_taker_vol.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.max_taker_vol.cpp
@@ -18,12 +18,12 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/generics.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.max_taker_vol.hpp"
+#include "atomicdex/api/kdf/generics.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.max_taker_vol.hpp"
#include "atomicdex/utilities/global.utilities.hpp"
//! Implementation RPC [max_taker_vol]
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
//! Serialization
void
@@ -64,4 +64,4 @@ namespace atomic_dex::mm2
answer.result.value().coin = j.at("coin").get();
}
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.max_taker_vol.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.max_taker_vol.hpp
similarity index 89%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.max_taker_vol.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.max_taker_vol.hpp
index 14bf04af54..ee772d4e0b 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.max_taker_vol.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.max_taker_vol.hpp
@@ -23,7 +23,7 @@
//! Deps
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct max_taker_vol_request
{
@@ -52,11 +52,11 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, max_taker_vol_answer& answer);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_max_taker_vol_request = mm2::max_taker_vol_request;
- using t_max_taker_vol_answer = mm2::max_taker_vol_answer;
- using t_max_taker_vol_answer_success = mm2::max_taker_vol_answer_success;
+ using t_max_taker_vol_request = kdf::max_taker_vol_request;
+ using t_max_taker_vol_answer = kdf::max_taker_vol_answer;
+ using t_max_taker_vol_answer_success = kdf::max_taker_vol_answer_success;
} // namespace atomic_dex
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.min_trading_vol.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.min_trading_vol.cpp
similarity index 79%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.min_trading_vol.cpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.min_trading_vol.cpp
index c26141fc40..0b4d5aff43 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.min_trading_vol.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.min_trading_vol.cpp
@@ -2,10 +2,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/generics.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.min_trading_vol.hpp"
+#include "atomicdex/api/kdf/generics.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.min_trading_vol.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
to_json(nlohmann::json& j, const min_volume_request& cfg)
@@ -27,4 +27,4 @@ namespace atomic_dex::mm2
{
extract_rpc_json_answer(j, answer);
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.min_trading_vol.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.min_trading_vol.hpp
similarity index 74%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.min_trading_vol.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.min_trading_vol.hpp
index 1cb5fd8a45..3454726ff2 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.min_trading_vol.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.min_trading_vol.hpp
@@ -11,9 +11,9 @@
//! Deps
#include
-#include "atomicdex/api/mm2/rpc_v1/rpc.min_trading_vol.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.min_trading_vol.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct min_volume_request
{
@@ -39,11 +39,11 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, min_volume_answer& answer);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_min_volume_request = mm2::min_volume_request;
- using t_min_volume_answer = mm2::min_volume_answer;
- using t_min_volume_answer_success = mm2::min_volume_answer_success;
+ using t_min_volume_request = kdf::min_volume_request;
+ using t_min_volume_answer = kdf::min_volume_answer;
+ using t_min_volume_answer_success = kdf::min_volume_answer_success;
} // namespace atomic_dex
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.my_balance.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.my_balance.cpp
similarity index 93%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.my_balance.cpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.my_balance.cpp
index ad79aad144..7c7574975d 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.my_balance.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.my_balance.cpp
@@ -18,10 +18,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc_v1/rpc.my_balance.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.my_balance.hpp"
#include "atomicdex/utilities/global.utilities.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
to_json(nlohmann::json& j, const balance_request& cfg)
@@ -37,4 +37,4 @@ namespace atomic_dex::mm2
cfg.balance = atomic_dex::utils::adjust_precision(cfg.balance);
j.at("coin").get_to(cfg.coin);
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.my_balance.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.my_balance.hpp
similarity index 91%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.my_balance.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.my_balance.hpp
index a3e4db1dfb..12f17c1707 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.my_balance.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.my_balance.hpp
@@ -18,7 +18,7 @@
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct balance_request
{
@@ -37,10 +37,10 @@ namespace atomic_dex::mm2
void to_json(nlohmann::json& j, const balance_request& cfg);
void from_json(const nlohmann::json& j, balance_answer& cfg);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_balance_request = mm2::balance_request;
- using t_balance_answer = mm2::balance_answer;
+ using t_balance_request = kdf::balance_request;
+ using t_balance_answer = kdf::balance_answer;
} // namespace atomic_dex
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.my_tx_history.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.my_tx_history.hpp
similarity index 93%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.my_tx_history.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.my_tx_history.hpp
index e59cd15d8e..a272591909 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.my_tx_history.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.my_tx_history.hpp
@@ -3,9 +3,9 @@
#pragma once
-#include "atomicdex/api/mm2/rpc.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct my_tx_history_v1_rpc
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.recover_funds_of_swap.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.recover_funds_of_swap.cpp
similarity index 91%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.recover_funds_of_swap.cpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.recover_funds_of_swap.cpp
index 6ca1f0000a..490625251c 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.recover_funds_of_swap.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.recover_funds_of_swap.cpp
@@ -6,9 +6,9 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc_v1/rpc.recover_funds_of_swap.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.recover_funds_of_swap.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
to_json(nlohmann::json& j, const recover_funds_of_swap_request& cfg)
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.recover_funds_of_swap.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.recover_funds_of_swap.hpp
similarity index 84%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.recover_funds_of_swap.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.recover_funds_of_swap.hpp
index d9e2daae9f..3f6f29c25f 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.recover_funds_of_swap.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.recover_funds_of_swap.hpp
@@ -6,7 +6,7 @@
//! Deps
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct recover_funds_of_swap_request
{
@@ -34,10 +34,10 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, recover_funds_of_swap_answer& answer);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_recover_funds_of_swap_request = mm2::recover_funds_of_swap_request;
- using t_recover_funds_of_swap_answer = mm2::recover_funds_of_swap_answer;
+ using t_recover_funds_of_swap_request = kdf::recover_funds_of_swap_request;
+ using t_recover_funds_of_swap_answer = kdf::recover_funds_of_swap_answer;
} // namespace atomic_dex
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.sell.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.sell.cpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.sell.cpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.sell.cpp
index 4566ea7e48..f35302eee0 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.sell.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.sell.cpp
@@ -18,10 +18,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/generics.hpp"
-#include "atomicdex/api/mm2/rpc_v1/rpc.sell.hpp"
+#include "atomicdex/api/kdf/generics.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.sell.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
to_json(nlohmann::json& j, const sell_request& request)
@@ -90,4 +90,4 @@ namespace atomic_dex::mm2
{
extract_rpc_json_answer(j, answer);
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.sell.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.sell.hpp
similarity index 91%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.sell.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.sell.hpp
index c2a1551731..407447d11e 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.sell.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.sell.hpp
@@ -24,9 +24,9 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/trading.order.contents.hpp"
+#include "atomicdex/api/kdf/trading.order.contents.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct sell_request
{
@@ -66,11 +66,11 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, sell_answer& answer);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_sell_request = mm2::sell_request;
- using t_sell_answer = mm2::sell_answer;
- using t_sell_answer_success = mm2::sell_answer_success;
+ using t_sell_request = kdf::sell_request;
+ using t_sell_answer = kdf::sell_answer;
+ using t_sell_answer_success = kdf::sell_answer_success;
} // namespace atomic_dex
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.setprice.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.setprice.cpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.setprice.cpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.setprice.cpp
index 6977cefa90..1e0e1954d5 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.setprice.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.setprice.cpp
@@ -17,9 +17,9 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc_v1/rpc.setprice.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.setprice.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
to_json(nlohmann::json& j, const setprice_request& request)
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.setprice.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.setprice.hpp
similarity index 95%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.setprice.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.setprice.hpp
index f169a0002d..48e0ea4efd 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.setprice.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.setprice.hpp
@@ -23,7 +23,7 @@
//! Deps
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct setprice_request
{
@@ -44,5 +44,5 @@ namespace atomic_dex::mm2
namespace atomic_dex
{
- using t_setprice_request = mm2::setprice_request;
+ using t_setprice_request = kdf::setprice_request;
}
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.update_maker_order.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.update_maker_order.cpp
similarity index 84%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.update_maker_order.cpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.update_maker_order.cpp
index e7cae487c8..8750f7020a 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.update_maker_order.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.update_maker_order.cpp
@@ -6,12 +6,12 @@
#include
//! Project Headers
-#include
+#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
- to_json(nlohmann::json& j, const mm2::update_maker_order_request& request)
+ to_json(nlohmann::json& j, const kdf::update_maker_order_request& request)
{
j["uuid"] = request.uuid;
j["new_price"] = request.new_price;
@@ -41,4 +41,4 @@ namespace atomic_dex::mm2
j["rel_nota"] = request.rel_nota.value();
}
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.update_maker_order.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.update_maker_order.hpp
similarity index 85%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.update_maker_order.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.update_maker_order.hpp
index d1249a8b29..4de40143d3 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.update_maker_order.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.update_maker_order.hpp
@@ -7,7 +7,7 @@
//! Deps
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct update_maker_order_request
{
@@ -23,9 +23,9 @@ namespace atomic_dex::mm2
};
void to_json(nlohmann::json& j, const update_maker_order_request& request);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_update_maker_order_request = mm2::update_maker_order_request;
+ using t_update_maker_order_request = kdf::update_maker_order_request;
}
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.validateaddress.cpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.validateaddress.cpp
similarity index 71%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.validateaddress.cpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.validateaddress.cpp
index e30274b0df..391e213ef9 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.validateaddress.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.validateaddress.cpp
@@ -1,12 +1,12 @@
#include
-#include "atomicdex/api/mm2/rpc_v1/rpc.validateaddress.hpp"
-#include "atomicdex/api/mm2/generics.hpp"
+#include "atomicdex/api/kdf/rpc_v1/rpc.validateaddress.hpp"
+#include "atomicdex/api/kdf/generics.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
- to_json(nlohmann::json& j, const mm2::validate_address_request& req)
+ to_json(nlohmann::json& j, const kdf::validate_address_request& req)
{
j["coin"] = req.coin;
j["address"] = req.address;
@@ -26,4 +26,4 @@ namespace atomic_dex::mm2
{
extract_rpc_json_answer(j, answer);
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v1/rpc.validateaddress.hpp b/src/core/atomicdex/api/kdf/rpc_v1/rpc.validateaddress.hpp
similarity index 80%
rename from src/core/atomicdex/api/mm2/rpc_v1/rpc.validateaddress.hpp
rename to src/core/atomicdex/api/kdf/rpc_v1/rpc.validateaddress.hpp
index 9ca7fbc43f..41dfa5648f 100644
--- a/src/core/atomicdex/api/mm2/rpc_v1/rpc.validateaddress.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v1/rpc.validateaddress.hpp
@@ -6,7 +6,7 @@
//! Deps
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct validate_address_request
{
@@ -33,11 +33,11 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, validate_address_answer& answer);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_validate_address_request = mm2::validate_address_request;
- using t_validate_address_answer = mm2::validate_address_answer;
- using t_validate_address_answer_success = mm2::validate_address_answer_success;
+ using t_validate_address_request = kdf::validate_address_request;
+ using t_validate_address_answer = kdf::validate_address_answer;
+ using t_validate_address_answer_success = kdf::validate_address_answer_success;
} // namespace atomic_dex
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.bestorders.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.bestorders.cpp
similarity index 94%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.bestorders.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.bestorders.cpp
index ba5dd40660..d1a398b2c4 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.bestorders.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.bestorders.cpp
@@ -22,11 +22,11 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/generics.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.bestorders.hpp"
+#include "atomicdex/api/kdf/generics.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.bestorders.hpp"
//! Implementation RPC [best_orders]
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
to_json(nlohmann::json& j, const bestorders_request_rpc& req)
@@ -68,4 +68,4 @@ namespace atomic_dex::mm2
}
}
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.bestorders.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.bestorders.hpp
similarity index 94%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.bestorders.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.bestorders.hpp
index 0c9be72572..01472bebd3 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.bestorders.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.bestorders.hpp
@@ -24,10 +24,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc.hpp"
-#include "atomicdex/api/mm2/orderbook.order.contents.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
+#include "atomicdex/api/kdf/orderbook.order.contents.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct bestorders_rpc
{
@@ -62,4 +62,4 @@ namespace atomic_dex::mm2
void to_json(nlohmann::json& j, const bestorders_request_rpc& req);
void from_json(const nlohmann::json& j, bestorders_result_rpc& answer);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_bch_with_tokens_rpc.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_bch_with_tokens_rpc.cpp
similarity index 94%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_bch_with_tokens_rpc.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_bch_with_tokens_rpc.cpp
index 0727b2d1af..8dda59518b 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_bch_with_tokens_rpc.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_bch_with_tokens_rpc.cpp
@@ -1,9 +1,9 @@
#include
-#include "atomicdex/api/mm2/address_format.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.enable_bch_with_tokens_rpc.hpp"
+#include "atomicdex/api/kdf/address_format.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.enable_bch_with_tokens_rpc.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void to_json(nlohmann::json& j, const enable_bch_with_tokens_request_rpc& in)
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_bch_with_tokens_rpc.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_bch_with_tokens_rpc.hpp
similarity index 95%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_bch_with_tokens_rpc.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_bch_with_tokens_rpc.hpp
index b9141b4933..0389029189 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_bch_with_tokens_rpc.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_bch_with_tokens_rpc.hpp
@@ -19,12 +19,12 @@
#include
#include "atomicdex/config/electrum.cfg.hpp"
-#include "atomicdex/api/mm2/address_format.hpp"
-#include "atomicdex/api/mm2/balance_info.hpp"
-#include "atomicdex/api/mm2/rpc.hpp"
-#include "atomicdex/api/mm2/utxo_merge_params.hpp"
+#include "atomicdex/api/kdf/address_format.hpp"
+#include "atomicdex/api/kdf/balance_info.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
+#include "atomicdex/api/kdf/utxo_merge_params.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct enable_bch_with_tokens_rpc
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_erc20.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_erc20.cpp
similarity index 90%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_erc20.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_erc20.cpp
index 4c4bf707c5..b366730238 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_erc20.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_erc20.cpp
@@ -1,8 +1,8 @@
#include
-#include "atomicdex/api/mm2/rpc_v2/rpc2.enable_erc20.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.enable_erc20.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void to_json(nlohmann::json& j, const enable_erc20_rpc_request& request)
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_erc20.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_erc20.hpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_erc20.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_erc20.hpp
index 953bb8f67d..26452f9593 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_erc20.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_erc20.hpp
@@ -19,10 +19,10 @@
#include
#include //> nlohmann::json
-#include "atomicdex/api/mm2/rpc.hpp"
-#include "atomicdex/api/mm2/balance_info.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
+#include "atomicdex/api/kdf/balance_info.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct enable_erc20_rpc
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_eth_with_tokens.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_eth_with_tokens.cpp
similarity index 95%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_eth_with_tokens.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_eth_with_tokens.cpp
index 2a0bb73211..2d4845a99b 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_eth_with_tokens.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_eth_with_tokens.cpp
@@ -1,8 +1,8 @@
#include
-#include "atomicdex/api/mm2/rpc_v2/rpc2.enable_eth_with_tokens.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.enable_eth_with_tokens.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void to_json(nlohmann::json& j, const enable_eth_with_tokens_request_rpc& in)
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_eth_with_tokens.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_eth_with_tokens.hpp
similarity index 97%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_eth_with_tokens.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_eth_with_tokens.hpp
index 9205777d8d..3b40f17482 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_eth_with_tokens.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_eth_with_tokens.hpp
@@ -18,12 +18,12 @@
#include
-#include "atomicdex/api/mm2/rpc.hpp"
-#include "atomicdex/api/mm2/balance_info.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
+#include "atomicdex/api/kdf/balance_info.hpp"
#include "atomicdex/config/enable.cfg.hpp"
#include "atomicdex/constants/qt.coins.enums.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct enable_eth_with_tokens_rpc
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_slp_rpc.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_slp_rpc.cpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_slp_rpc.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_slp_rpc.cpp
index 813fca85f0..9906fae3c3 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_slp_rpc.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_slp_rpc.cpp
@@ -2,7 +2,7 @@
#include "rpc2.enable_slp_rpc.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void to_json(nlohmann::json& j, const enable_slp_rpc_request& request)
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_slp_rpc.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_slp_rpc.hpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_slp_rpc.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_slp_rpc.hpp
index 6cabbe2f72..1fbe403012 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_slp_rpc.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_slp_rpc.hpp
@@ -22,10 +22,10 @@
#include //> nlohmann::json
-#include "atomicdex/api/mm2/rpc.hpp"
-#include "atomicdex/api/mm2/balance_info.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
+#include "atomicdex/api/kdf/balance_info.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct enable_slp_rpc
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_token.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_token.cpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_token.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_token.cpp
index d20efa4132..81bafbc1b3 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_token.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_token.cpp
@@ -2,7 +2,7 @@
#include "rpc2.enable_tendermint_token.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void to_json(nlohmann::json& j, const enable_tendermint_token_rpc_request& request)
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_token.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_token.hpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_token.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_token.hpp
index 86d7525f1d..9597d1a38e 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_token.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_token.hpp
@@ -21,10 +21,10 @@
#include //> nlohmann::json
-#include "atomicdex/api/mm2/rpc.hpp"
-#include "atomicdex/api/mm2/balance_info.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
+#include "atomicdex/api/kdf/balance_info.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct enable_tendermint_token_rpc
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_with_assets.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_with_assets.cpp
similarity index 98%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_with_assets.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_with_assets.cpp
index b924bbe656..cc28a43f4e 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_with_assets.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_with_assets.cpp
@@ -2,7 +2,7 @@
#include "rpc2.enable_tendermint_with_assets.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void to_json(nlohmann::json& j, const enable_tendermint_with_assets_request_rpc& in)
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_with_assets.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_with_assets.hpp
similarity index 95%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_with_assets.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_with_assets.hpp
index 76876d0a89..6bad7330a1 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.enable_tendermint_with_assets.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.enable_tendermint_with_assets.hpp
@@ -2,11 +2,11 @@
#include
-#include "atomicdex/api/mm2/rpc.hpp"
-#include "atomicdex/api/mm2/balance_info.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
+#include "atomicdex/api/kdf/balance_info.hpp"
#include "atomicdex/config/electrum.cfg.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct enable_tendermint_with_assets_rpc
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.get_public_key.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.get_public_key.cpp
similarity index 94%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.get_public_key.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.get_public_key.cpp
index acd53173d5..74f694a2b1 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.get_public_key.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.get_public_key.cpp
@@ -16,9 +16,9 @@
#include
-#include "atomicdex/api/mm2/rpc_v2/rpc2.get_public_key.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.get_public_key.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void to_json(nlohmann::json& j, const get_public_key_rpc_request& request)
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.get_public_key.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.get_public_key.hpp
similarity index 97%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.get_public_key.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.get_public_key.hpp
index 98f15bc9f2..6eefb07bad 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.get_public_key.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.get_public_key.hpp
@@ -22,9 +22,9 @@
#include
-#include "atomicdex/api/mm2/rpc.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct get_public_key_rpc
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.my_tx_history.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.my_tx_history.cpp
similarity index 95%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.my_tx_history.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.my_tx_history.cpp
index 9b4a104837..8cebd503cf 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.my_tx_history.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.my_tx_history.cpp
@@ -18,9 +18,9 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc_v2/rpc2.my_tx_history.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.my_tx_history.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void to_json(nlohmann::json& j, const my_tx_history_request_rpc& in)
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.my_tx_history.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.my_tx_history.hpp
similarity index 89%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.my_tx_history.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.my_tx_history.hpp
index fd7089ae59..a63d85718e 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.my_tx_history.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.my_tx_history.hpp
@@ -3,13 +3,13 @@
#include
-#include "atomicdex/api/mm2/paging_options.hpp"
-#include "atomicdex/api/mm2/transaction.data.hpp"
-#include "atomicdex/api/mm2/rpc.hpp"
+#include "atomicdex/api/kdf/paging_options.hpp"
+#include "atomicdex/api/kdf/transaction.data.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
#pragma once
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct my_tx_history_v2_rpc
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.orderbook.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.orderbook.cpp
similarity index 98%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.orderbook.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.orderbook.cpp
index 9831628f46..91f7795ac3 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.orderbook.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.orderbook.cpp
@@ -19,10 +19,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc_v2/rpc2.orderbook.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.orderbook.hpp"
#include "atomicdex/utilities/global.utilities.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
to_json(nlohmann::json& j, const orderbook_request_rpc& req)
@@ -122,4 +122,4 @@ namespace atomic_dex::mm2
}
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.orderbook.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.orderbook.hpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.orderbook.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.orderbook.hpp
index 6b3a5bd3a2..d6a97f49f2 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.orderbook.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.orderbook.hpp
@@ -21,10 +21,10 @@
#include //> nlohmann::json
-#include "atomicdex/api/mm2/rpc.hpp"
-#include "atomicdex/api/mm2/orderbook.order.contents.hpp"
+#include "atomicdex/api/kdf/rpc.hpp"
+#include "atomicdex/api/kdf/orderbook.order.contents.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct orderbook_rpc
{
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.cancel.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.cancel.cpp
similarity index 94%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.cancel.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.cancel.cpp
index 36a58b96b8..5a9ff1919d 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.cancel.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.cancel.cpp
@@ -18,10 +18,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.cancel.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.cancel.hpp"
//! Implementation 2.0 RPC [enable_z_coin_cancel]
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
//! Serialization
void to_json(nlohmann::json& j, const enable_z_coin_cancel_request& request)
@@ -50,4 +50,4 @@ namespace atomic_dex::mm2
}
}
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.cancel.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.cancel.hpp
similarity index 89%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.cancel.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.cancel.hpp
index 87bfcf4788..67781ebf64 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.cancel.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.cancel.hpp
@@ -23,9 +23,9 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/generic.error.hpp"
+#include "atomicdex/api/kdf/generic.error.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct enable_z_coin_cancel_request
{
@@ -54,7 +54,7 @@ namespace atomic_dex::mm2
namespace atomic_dex
{
- using t_enable_z_coin_cancel_request = mm2::enable_z_coin_cancel_request;
- using t_enable_z_coin_cancel_answer = mm2::enable_z_coin_cancel_answer;
- using t_enable_z_coin_cancel_answer_success = mm2::enable_z_coin_cancel_answer_success;
+ using t_enable_z_coin_cancel_request = kdf::enable_z_coin_cancel_request;
+ using t_enable_z_coin_cancel_answer = kdf::enable_z_coin_cancel_answer;
+ using t_enable_z_coin_cancel_answer_success = kdf::enable_z_coin_cancel_answer_success;
} // namespace atomic_dex
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.init.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.init.cpp
similarity index 95%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.init.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.init.cpp
index 6a09fd06a3..b5c7cd7ebc 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.init.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.init.cpp
@@ -18,10 +18,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.init.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.init.hpp"
//! Implementation 2.0 RPC [enable_z_coin]
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
//! Serialization
void to_json(nlohmann::json& j, const enable_z_coin_request& request)
@@ -44,4 +44,4 @@ namespace atomic_dex::mm2
{
j.at("task_id").get_to(answer.task_id);
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.init.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.init.hpp
similarity index 93%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.init.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.init.hpp
index 126e4eda94..2d3208256b 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.init.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.init.hpp
@@ -26,7 +26,7 @@
#include "atomicdex/config/electrum.cfg.hpp"
#include "atomicdex/constants/qt.coins.enums.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct enable_z_coin_request
{
@@ -50,6 +50,6 @@ namespace atomic_dex::mm2
namespace atomic_dex
{
- using t_enable_z_coin_request = mm2::enable_z_coin_request;
- using t_enable_z_coin_answer = mm2::enable_z_coin_answer;
+ using t_enable_z_coin_request = kdf::enable_z_coin_request;
+ using t_enable_z_coin_answer = kdf::enable_z_coin_answer;
} // namespace atomic_dex
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.status.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.status.cpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.status.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.status.cpp
index 805939e270..a626a6102c 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.status.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.status.cpp
@@ -18,10 +18,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.status.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.status.hpp"
//! Implementation 2.0 RPC [enable_z_coin_status]
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
//! Serialization
void to_json(nlohmann::json& j, const enable_z_coin_status_request& request)
@@ -77,5 +77,5 @@ namespace atomic_dex::mm2
}
}
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.status.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.status.hpp
similarity index 91%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.status.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.status.hpp
index 769719303c..bbd62bd386 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.enable_z_coin.status.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.enable_z_coin.status.hpp
@@ -23,9 +23,9 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/generic.error.hpp"
+#include "atomicdex/api/kdf/generic.error.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct enable_z_coin_status_request
{
@@ -63,7 +63,7 @@ namespace atomic_dex::mm2
namespace atomic_dex
{
- using t_enable_z_coin_status_request = mm2::enable_z_coin_status_request;
- using t_enable_z_coin_status_answer = mm2::enable_z_coin_status_answer;
- using t_enable_z_coin_status_answer_success = mm2::enable_z_coin_status_answer_success;
+ using t_enable_z_coin_status_request = kdf::enable_z_coin_status_request;
+ using t_enable_z_coin_status_answer = kdf::enable_z_coin_status_answer;
+ using t_enable_z_coin_status_answer_success = kdf::enable_z_coin_status_answer_success;
} // namespace atomic_dex
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.init.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.init.cpp
similarity index 94%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.init.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.init.cpp
index 6ca0f2a456..3f1fdd8315 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.init.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.init.cpp
@@ -18,10 +18,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.init.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.init.hpp"
//! Implementation 2.0 RPC [withdraw_init]
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
to_json(nlohmann::json& j, const withdraw_init_fees& request)
@@ -56,4 +56,4 @@ namespace atomic_dex::mm2
{
j.at("task_id").get_to(answer.task_id);
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.init.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.init.hpp
similarity index 91%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.init.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.init.hpp
index 01db2db54e..7acb5b4224 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.init.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.init.hpp
@@ -22,7 +22,7 @@
//! Deps
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct withdraw_init_fees
{
@@ -51,7 +51,7 @@ namespace atomic_dex::mm2
namespace atomic_dex
{
- using t_withdraw_init_request = mm2::withdraw_init_request;
- using t_withdraw_init_fees = mm2::withdraw_init_fees;
- using t_withdraw_init_answer = mm2::withdraw_init_answer;
+ using t_withdraw_init_request = kdf::withdraw_init_request;
+ using t_withdraw_init_fees = kdf::withdraw_init_fees;
+ using t_withdraw_init_answer = kdf::withdraw_init_answer;
} // namespace atomic_dex
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.status.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.status.cpp
similarity index 93%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.status.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.status.cpp
index e897f25426..4d45d2bd8f 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.status.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.status.cpp
@@ -18,10 +18,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.status.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.status.hpp"
//! Implementation 2.0 RPC [withdraw_status]
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
//! Serialization
void to_json(nlohmann::json& j, const withdraw_status_request& request)
@@ -42,4 +42,4 @@ namespace atomic_dex::mm2
answer.result = j.at("result").at("details").get();
}
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.status.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.status.hpp
similarity index 88%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.status.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.status.hpp
index fce20944e9..dd4ac4909f 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.task.withdraw.status.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.task.withdraw.status.hpp
@@ -23,10 +23,10 @@
#include
//! Our Headers
-#include "atomicdex/api/mm2/generic.error.hpp"
-#include "atomicdex/api/mm2/transaction.data.hpp"
+#include "atomicdex/api/kdf/generic.error.hpp"
+#include "atomicdex/api/kdf/transaction.data.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct withdraw_status_request
{
@@ -47,6 +47,6 @@ namespace atomic_dex::mm2
namespace atomic_dex
{
- using t_withdraw_status_request = mm2::withdraw_status_request;
- using t_withdraw_status_answer = mm2::withdraw_status_answer;
+ using t_withdraw_status_request = kdf::withdraw_status_request;
+ using t_withdraw_status_answer = kdf::withdraw_status_answer;
} // namespace atomic_dex
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.trade_preimage.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.trade_preimage.cpp
similarity index 94%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.trade_preimage.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.trade_preimage.cpp
index baccc6e830..4a11d69d98 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.trade_preimage.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.trade_preimage.cpp
@@ -18,10 +18,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/generics.hpp"
-#include "atomicdex/api/mm2/rpc_v2/rpc2.trade_preimage.hpp"
+#include "atomicdex/api/kdf/generics.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.trade_preimage.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
//! Serialization
void
@@ -74,4 +74,4 @@ namespace atomic_dex::mm2
{
extract_rpc_json_answer(j, answer);
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.trade_preimage.fwd.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.trade_preimage.fwd.hpp
similarity index 91%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.trade_preimage.fwd.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.trade_preimage.fwd.hpp
index ee8f2a57f5..c427e9a921 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.trade_preimage.fwd.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.trade_preimage.fwd.hpp
@@ -16,13 +16,13 @@
#pragma once
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct trade_preimage_request;
struct trade_preimage_answer;
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_trade_preimage_answer = mm2::trade_preimage_answer;
+ using t_trade_preimage_answer = kdf::trade_preimage_answer;
}
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.trade_preimage.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.trade_preimage.hpp
similarity index 89%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.trade_preimage.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.trade_preimage.hpp
index 9b888836b2..b292893092 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.trade_preimage.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.trade_preimage.hpp
@@ -25,9 +25,9 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/fraction.hpp"
+#include "atomicdex/api/kdf/fraction.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct trade_preimage_request
{
@@ -45,7 +45,7 @@ namespace atomic_dex::mm2
{
std::string coin;
std::string amount;
- mm2::fraction amount_fraction;
+ kdf::fraction amount_fraction;
};
ENTT_API void from_json(const nlohmann::json& j, coin_fee& fee);
@@ -71,11 +71,11 @@ namespace atomic_dex::mm2
};
ENTT_API void from_json(const nlohmann::json& j, trade_preimage_answer& answer);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_trade_preimage_request = mm2::trade_preimage_request;
- using t_trade_preimage_answer = mm2::trade_preimage_answer;
- using t_trade_preimage_answer_success = mm2::trade_preimage_answer_success;
+ using t_trade_preimage_request = kdf::trade_preimage_request;
+ using t_trade_preimage_answer = kdf::trade_preimage_answer;
+ using t_trade_preimage_answer_success = kdf::trade_preimage_answer_success;
} // namespace atomic_dex
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.withdraw.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.withdraw.cpp
similarity index 97%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.withdraw.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.withdraw.cpp
index 7b2a2aa937..ac0b96a040 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.withdraw.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.withdraw.cpp
@@ -9,7 +9,7 @@
#include "atomicdex/utilities/global.utilities.hpp"
#include "rpc2.withdraw.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
to_json(nlohmann::json& j, const withdraw_fees& cfg)
@@ -69,4 +69,4 @@ namespace atomic_dex::mm2
answer.result = j.at("result").get();
}
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.withdraw.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.withdraw.hpp
similarity index 83%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.withdraw.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.withdraw.hpp
index e59e4d6674..76b4b74bd7 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.withdraw.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.withdraw.hpp
@@ -7,10 +7,10 @@
#include
//! Our Headers
-#include "atomicdex/api/mm2/generic.error.hpp"
-#include "atomicdex/api/mm2/transaction.data.hpp"
+#include "atomicdex/api/kdf/generic.error.hpp"
+#include "atomicdex/api/kdf/transaction.data.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct withdraw_fees
{
@@ -44,11 +44,11 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, withdraw_answer& answer);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_withdraw_request = mm2::withdraw_request;
- using t_withdraw_fees = mm2::withdraw_fees;
- using t_withdraw_answer = mm2::withdraw_answer;
+ using t_withdraw_request = kdf::withdraw_request;
+ using t_withdraw_fees = kdf::withdraw_fees;
+ using t_withdraw_answer = kdf::withdraw_answer;
} // namespace atomic_dex
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.z_coin_tx_history.cpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.z_coin_tx_history.cpp
similarity index 96%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.z_coin_tx_history.cpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.z_coin_tx_history.cpp
index 9b5053c85f..622598fa3f 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.z_coin_tx_history.cpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.z_coin_tx_history.cpp
@@ -18,10 +18,10 @@
#include
//! Project Headers
-#include "atomicdex/api/mm2/rpc_v2/rpc2.z_coin_tx_history.hpp"
+#include "atomicdex/api/kdf/rpc_v2/rpc2.z_coin_tx_history.hpp"
//! Implementation 2.0 RPC [z_coin_tx_history]
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
//! Serialization
void to_json(nlohmann::json& j, const z_tx_history_request& request)
@@ -103,4 +103,4 @@ namespace atomic_dex::mm2
answer.result = j.at("result").get();
}
}
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
diff --git a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.z_coin_tx_history.hpp b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.z_coin_tx_history.hpp
similarity index 94%
rename from src/core/atomicdex/api/mm2/rpc_v2/rpc2.z_coin_tx_history.hpp
rename to src/core/atomicdex/api/kdf/rpc_v2/rpc2.z_coin_tx_history.hpp
index 2f7c9ce8b9..bc5806a265 100644
--- a/src/core/atomicdex/api/mm2/rpc_v2/rpc2.z_coin_tx_history.hpp
+++ b/src/core/atomicdex/api/kdf/rpc_v2/rpc2.z_coin_tx_history.hpp
@@ -24,9 +24,9 @@
#include
//! Our Headers
-#include "atomicdex/api/mm2/transaction.data.hpp"
+#include "atomicdex/api/kdf/transaction.data.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct z_tx_history_request
{
@@ -94,10 +94,10 @@ namespace atomic_dex::mm2
};
void from_json(const nlohmann::json& j, z_tx_history_answer& answer);
-} // namespace atomic_dex::mm2
+} // namespace atomic_dex::kdf
namespace atomic_dex
{
- using t_z_tx_history_request = mm2::z_tx_history_request;
- using t_z_tx_history_answer = mm2::z_tx_history_answer;
+ using t_z_tx_history_request = kdf::z_tx_history_request;
+ using t_z_tx_history_answer = kdf::z_tx_history_answer;
} // namespace atomic_dex
diff --git a/src/core/atomicdex/api/mm2/trading.order.contents.cpp b/src/core/atomicdex/api/kdf/trading.order.contents.cpp
similarity index 95%
rename from src/core/atomicdex/api/mm2/trading.order.contents.cpp
rename to src/core/atomicdex/api/kdf/trading.order.contents.cpp
index ea35f974d4..26f69f2cb5 100644
--- a/src/core/atomicdex/api/mm2/trading.order.contents.cpp
+++ b/src/core/atomicdex/api/kdf/trading.order.contents.cpp
@@ -18,9 +18,9 @@
#include
//! Project Headers
-#include
+#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void
from_json(const nlohmann::json& j, trading_order_contents& contents)
diff --git a/src/core/atomicdex/api/mm2/trading.order.contents.hpp b/src/core/atomicdex/api/kdf/trading.order.contents.hpp
similarity index 98%
rename from src/core/atomicdex/api/mm2/trading.order.contents.hpp
rename to src/core/atomicdex/api/kdf/trading.order.contents.hpp
index 0bba41b80d..6e4bf05804 100644
--- a/src/core/atomicdex/api/mm2/trading.order.contents.hpp
+++ b/src/core/atomicdex/api/kdf/trading.order.contents.hpp
@@ -22,7 +22,7 @@
//! Deps
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct trading_order_contents
{
diff --git a/src/core/atomicdex/api/mm2/transaction.data.cpp b/src/core/atomicdex/api/kdf/transaction.data.cpp
similarity index 97%
rename from src/core/atomicdex/api/mm2/transaction.data.cpp
rename to src/core/atomicdex/api/kdf/transaction.data.cpp
index fd140e4667..c9975f984c 100644
--- a/src/core/atomicdex/api/mm2/transaction.data.cpp
+++ b/src/core/atomicdex/api/kdf/transaction.data.cpp
@@ -1,9 +1,9 @@
#include
-#include "atomicdex/api/mm2/transaction.data.hpp"
+#include "atomicdex/api/kdf/transaction.data.hpp"
#include "atomicdex/utilities/global.utilities.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void from_json(const nlohmann::json& j, fee_regular_coin& cfg)
{
@@ -142,4 +142,4 @@ namespace atomic_dex::mm2
std::string s = atomic_dex::utils::to_human_date(cfg.timestamp, "%e %b %Y, %H:%M");
cfg.timestamp_as_date = std::move(s);
}
-} // namespace atomic_dex::mm2
\ No newline at end of file
+} // namespace atomic_dex::kdf
\ No newline at end of file
diff --git a/src/core/atomicdex/api/mm2/transaction.data.hpp b/src/core/atomicdex/api/kdf/transaction.data.hpp
similarity index 98%
rename from src/core/atomicdex/api/mm2/transaction.data.hpp
rename to src/core/atomicdex/api/kdf/transaction.data.hpp
index a39f64b9fd..f25c9e9bf2 100644
--- a/src/core/atomicdex/api/mm2/transaction.data.hpp
+++ b/src/core/atomicdex/api/kdf/transaction.data.hpp
@@ -6,7 +6,7 @@
//! Deps
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct fee_regular_coin
{
diff --git a/src/core/atomicdex/api/mm2/utxo_merge_params.cpp b/src/core/atomicdex/api/kdf/utxo_merge_params.cpp
similarity index 98%
rename from src/core/atomicdex/api/mm2/utxo_merge_params.cpp
rename to src/core/atomicdex/api/kdf/utxo_merge_params.cpp
index 2a5d29c474..5469162767 100644
--- a/src/core/atomicdex/api/mm2/utxo_merge_params.cpp
+++ b/src/core/atomicdex/api/kdf/utxo_merge_params.cpp
@@ -18,7 +18,7 @@
#include "utxo_merge_params.hpp"
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
void to_json(nlohmann::json& j, const utxo_merge_params_t& req)
{
diff --git a/src/core/atomicdex/api/mm2/utxo_merge_params.hpp b/src/core/atomicdex/api/kdf/utxo_merge_params.hpp
similarity index 98%
rename from src/core/atomicdex/api/mm2/utxo_merge_params.hpp
rename to src/core/atomicdex/api/kdf/utxo_merge_params.hpp
index db30ee5008..a90ce6a1f2 100644
--- a/src/core/atomicdex/api/mm2/utxo_merge_params.hpp
+++ b/src/core/atomicdex/api/kdf/utxo_merge_params.hpp
@@ -18,7 +18,7 @@
#include
-namespace atomic_dex::mm2
+namespace atomic_dex::kdf
{
struct utxo_merge_params_t
{
diff --git a/src/core/atomicdex/api/mm2/fraction.cpp b/src/core/atomicdex/api/mm2/fraction.cpp
deleted file mode 100644
index 0bcdc944fc..0000000000
--- a/src/core/atomicdex/api/mm2/fraction.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-#include
-
-#include "atomicdex/api/mm2/fraction.hpp"
-
-namespace atomic_dex::mm2
-{
- void from_json(const nlohmann::json& j, mm2::fraction& fraction)
- {
- j.at("denom").get_to(fraction.denom);
- j.at("numer").get_to(fraction.numer);
- }
-} // namespace atomic_dex::mm2
\ No newline at end of file
diff --git a/src/core/atomicdex/config/coins.cfg.hpp b/src/core/atomicdex/config/coins.cfg.hpp
index 7fb2927ddb..319a68db7a 100644
--- a/src/core/atomicdex/config/coins.cfg.hpp
+++ b/src/core/atomicdex/config/coins.cfg.hpp
@@ -21,8 +21,8 @@
#include
-#include "atomicdex/api/mm2/mm2.constants.hpp"
-#include "atomicdex/api/mm2/utxo_merge_params.hpp"
+#include "atomicdex/api/kdf/kdf.constants.hpp"
+#include "atomicdex/api/kdf/utxo_merge_params.hpp"
#include "atomicdex/config/electrum.cfg.hpp"
#include "atomicdex/config/enable.cfg.hpp"
#include "atomicdex/constants/qt.coins.enums.hpp"
diff --git a/src/core/atomicdex/config/mm2.cfg.hpp b/src/core/atomicdex/config/kdf.cfg.hpp
similarity index 91%
rename from src/core/atomicdex/config/mm2.cfg.hpp
rename to src/core/atomicdex/config/kdf.cfg.hpp
index 21c7aeb62c..3fce6b7d38 100644
--- a/src/core/atomicdex/config/mm2.cfg.hpp
+++ b/src/core/atomicdex/config/kdf.cfg.hpp
@@ -29,7 +29,7 @@ namespace atomic_dex
using nlohmann::json;
using namespace std::string_literals;
- struct mm2_config
+ struct kdf_config
{
std::string gui{std::string(DEX_NAME) + " "s + atomic_dex::get_version()};
int64_t netid{8762};
@@ -43,16 +43,16 @@ namespace atomic_dex
std::string userhome{std::getenv("HOME")};
#endif
std::string passphrase;
- std::string dbdir{utils::u8string((utils::get_atomic_dex_data_folder() / "mm2" / "DB"))};
- std::string rpc_password{"atomic_dex_mm2_passphrase"};
+ std::string dbdir{utils::u8string((utils::get_atomic_dex_data_folder() / "kdf" / "DB"))};
+ std::string rpc_password{"atomic_dex_kdf_passphrase"};
};
- void from_json(const json& j, mm2_config& cfg);
+ void from_json(const json& j, kdf_config& cfg);
- void to_json(json& j, const mm2_config& cfg);
+ void to_json(json& j, const kdf_config& cfg);
inline void
- from_json(const json& j, mm2_config& cfg)
+ from_json(const json& j, kdf_config& cfg)
{
cfg.gui = j.at("gui").get();
cfg.netid = j.at("netid").get();
@@ -64,7 +64,7 @@ namespace atomic_dex
}
inline void
- to_json(json& j, const mm2_config& cfg)
+ to_json(json& j, const kdf_config& cfg)
{
j = json::object();
j["gui"] = cfg.gui;
diff --git a/src/core/atomicdex/config/raw.mm2.coins.cfg.hpp b/src/core/atomicdex/config/raw.kdf.coins.cfg.hpp
similarity index 89%
rename from src/core/atomicdex/config/raw.mm2.coins.cfg.hpp
rename to src/core/atomicdex/config/raw.kdf.coins.cfg.hpp
index 503a99828c..795818efcf 100644
--- a/src/core/atomicdex/config/raw.mm2.coins.cfg.hpp
+++ b/src/core/atomicdex/config/raw.kdf.coins.cfg.hpp
@@ -9,10 +9,10 @@
#include
//! Project
-#include "atomicdex/api/mm2/mm2.constants.hpp"
+#include "atomicdex/api/kdf/kdf.constants.hpp"
#include "atomicdex/utilities/global.utilities.hpp"
#include "atomicdex/utilities/qt.utilities.hpp"
-#include "atomicdex/api/mm2/address_format.hpp"
+#include "atomicdex/api/kdf/address_format.hpp"
#ifndef NLOHMANN_OPT_HELPER
# define NLOHMANN_OPT_HELPER
@@ -80,7 +80,7 @@ namespace atomic_dex
struct coin_element
{
- using addr_fmt = mm2::address_format_t;
+ using addr_fmt = kdf::address_format_t;
std::string coin;
std::optional name{std::nullopt};
std::optional fname{std::nullopt};
@@ -92,7 +92,7 @@ namespace atomic_dex
std::optional wiftype{std::nullopt};
std::optional txfee{std::nullopt};
std::optional confpath{std::nullopt};
- std::optional