diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 623343db29..c83aeedff8 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -26,7 +26,7 @@ Please describe what you expected to happen.
**Operating Environment(s):**
- OS: [e.g. Windows/OSX/Linux. If Linux, include distro. ]
- OS version: [e.g. 7/10/11, 10.13/10.15, 18.04/20.04 ]
- - Komodo Wallet Desktop Version: [e.g. 0.7.2]
+ - Komodo Wallet Desktop Version: [e.g. 0.8.0]
- Build branch: [e.g. master/dev]
diff --git a/.github/workflows/atomicdex-desktop-cd.yml b/.github/workflows/atomicdex-desktop-cd.yml
index f5050b8e31..18d8bc396b 100644
--- a/.github/workflows/atomicdex-desktop-cd.yml
+++ b/.github/workflows/atomicdex-desktop-cd.yml
@@ -9,7 +9,7 @@ env:
DEX_PROJECT_NAME: "komodo-wallet"
DEX_DISPLAY_NAME: "Komodo Wallet"
DEX_COMPANY: "KomodoPlatform"
- DEX_VERSION: "0.7.2"
+ DEX_VERSION: "0.8.0"
DEX_WEBSITE: "https://atomicdex.io/"
jobs:
diff --git a/.github/workflows/atomicdex-desktop-ci.yml b/.github/workflows/atomicdex-desktop-ci.yml
index d5a2357d17..87af63785f 100644
--- a/.github/workflows/atomicdex-desktop-ci.yml
+++ b/.github/workflows/atomicdex-desktop-ci.yml
@@ -11,13 +11,13 @@ 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"
DEX_DISPLAY_NAME: "Komodo Wallet"
DEX_COMPANY: "KomodoPlatform"
- DEX_VERSION: "0.7.2"
+ DEX_VERSION: "0.8.0"
DEX_WEBSITE: "https://atomicdex.io/"
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/b/vcpkg_cache
VCPKG_BINARY_SOURCES: clear;x-gha,readwrite
@@ -159,9 +159,7 @@ jobs:
export SHELL=/bin/bash
echo "CHOOSENIM_CHOOSE_VERSION=1.6.2" >> $GITHUB_ENV
export CHOOSENIM_CHOOSE_VERSION=1.6.2
- curl https://nim-lang.org/choosenim/init.sh > choosenim.sh
- chmod +x choosenim.sh
- ./choosenim.sh -y
+ ./ci_tools_atomic_dex/ci_scripts/choosenim.sh -y
export PATH=/home/runner/.nimble/bin:$PATH
chmod +x /home/runner/.choosenim/toolchains/nim-1.6.2/bin/*
@@ -170,9 +168,7 @@ jobs:
run: |
echo "CHOOSENIM_CHOOSE_VERSION=1.6.2" >> $GITHUB_ENV
export CHOOSENIM_CHOOSE_VERSION=1.6.2
- curl https://nim-lang.org/choosenim/init.sh > choosenim.sh
- chmod +x choosenim.sh
- ./choosenim.sh -y
+ ./ci_tools_atomic_dex/ci_scripts/choosenim.sh -y
export PATH=/Users/runner/.nimble/bin:$PATH
chmod +x /Users/runner/.choosenim/toolchains/nim-1.6.2/bin/*
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 27a70b272e..49fa003f6a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,7 +11,7 @@ include(vcpkg_prerequisites)
include(qt_prerequisites)
include(cfg_hash)
-project(${DEX_PROJECT_NAME} LANGUAGES CXX VERSION 0.7.2)
+project(${DEX_PROJECT_NAME} LANGUAGES CXX VERSION 0.8.0)
message(STATUS "${PROJECT_NAME} is version ${PROJECT_VERSION}")
include(cmake_default_options)
@@ -59,14 +59,14 @@ endif ()
##! We fetch our dependencies
if (APPLE)
- FetchContent_Declare(mm2
- URL https://github.com/KomodoPlatform/komodo-defi-framework/releases/download/v2.0.0-beta/mm2-b0fd99e84-Darwin-Release.zip)
+ FetchContent_Declare(kdf
+ URL https://github.com/KomodoPlatform/komodo-defi-framework/releases/download/v2.1.0-beta/mm2-35e923949-Darwin-Release.zip)
elseif (UNIX AND NOT APPLE)
- FetchContent_Declare(mm2
- URL https://github.com/KomodoPlatform/komodo-defi-framework/releases/download/v2.0.0-beta/mm2-b0fd99e84-Linux-Release.zip)
+ FetchContent_Declare(kdf
+ URL https://github.com/KomodoPlatform/komodo-defi-framework/releases/download/v2.1.0-beta/mm2-35e923949-Linux-Release.zip)
else ()
- FetchContent_Declare(mm2
- URL https://github.com/KomodoPlatform/komodo-defi-framework/releases/download/v2.0.0-beta/mm2-b0fd99e84-Win64.zip)
+ FetchContent_Declare(kdf
+ URL https://github.com/KomodoPlatform/komodo-defi-framework/releases/download/v2.1.0-beta/mm2-35e923949-Win64.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}/mm2 ${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}/mm2.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/Components/DexLabel.qml b/atomic_defi_design/Dex/Components/DexLabel.qml
index ef6694978d..77d8bc4d00 100644
--- a/atomic_defi_design/Dex/Components/DexLabel.qml
+++ b/atomic_defi_design/Dex/Components/DexLabel.qml
@@ -20,13 +20,10 @@ Text
}
}
+ text: privacy && Dex.General.privacy_mode ? Dex.General.privacy_text : text_value
font: monospace ? Dex.DexTypo.monoSmall : Dex.DexTypo.body2
-
color: enabled ? Dex.CurrentTheme.foregroundColor : Dex.CurrentTheme.textDisabledColor
-
- text: privacy && Dex.General.privacy_mode ? Dex.General.privacy_text : text_value
wrapMode: Text.WordWrap
-
onLinkActivated: Qt.openUrlExternally(link)
linkColor: color
}
diff --git a/atomic_defi_design/Dex/Components/DexTextField.qml b/atomic_defi_design/Dex/Components/DexTextField.qml
index 1764675b85..1aafddd2e2 100644
--- a/atomic_defi_design/Dex/Components/DexTextField.qml
+++ b/atomic_defi_design/Dex/Components/DexTextField.qml
@@ -10,6 +10,8 @@ TextField
property alias left_text: left_text.text_value
property alias right_text: right_text.text_value
+ property alias left_fontsize: left_text.font.pixelSize
+ property alias right_fontsize: right_text.font.pixelSize
property alias radius: background.radius
property color backgroundColor: Dex.CurrentTheme.textFieldBackgroundColor
property color backgroundColorActive: Dex.CurrentTheme.textFieldActiveBackgroundColor
diff --git a/atomic_defi_design/Dex/Components/PairItemBadge.qml b/atomic_defi_design/Dex/Components/PairItemBadge.qml
index ceeaa3c0b0..5ceab63666 100644
--- a/atomic_defi_design/Dex/Components/PairItemBadge.qml
+++ b/atomic_defi_design/Dex/Components/PairItemBadge.qml
@@ -30,7 +30,8 @@ DexRectangle
Layout.leftMargin: 10
Layout.rightMargin: 20
- Dex.Text{
+ DexLabel
+ {
anchors.bottom: parent.top
anchors.bottomMargin: 5
anchors.horizontalCenter: parent.horizontalCenter
@@ -46,6 +47,7 @@ DexRectangle
Layout.leftMargin: 20
Layout.rightMargin: 20
+ // Coin Icon
Dex.Image
{
id: icon
@@ -58,49 +60,46 @@ DexRectangle
Layout.topMargin: 0
Layout.bottomMargin: 0
}
+
+ //
ColumnLayout
{
spacing: 2
Layout.alignment: Qt.AlignVCenter
- Dex.Text
+ DexLabel
{
Layout.preferredWidth: parent.width - 15
-
text_value: `${ticker} ${fullname}`
- font.pixelSize: Style.textSizeSmall3
+ font: Dex.DexTypo.body2
elide: Text.ElideRight
wrapMode: Text.NoWrap
}
- Dex.Text
+ DexLabel
{
id: middle_line
-
property string coin_value: amount
- text: coin_value
+ text_value: coin_value
Layout.fillWidth: true
elide: Text.ElideRight
- color: Dex.CurrentTheme.foregroundColor
- font: DexTypo.body2
wrapMode: Label.NoWrap
- ToolTip.text: coin_value
- Component.onCompleted: font.pixelSize = 11.5
+ font: DexTypo.body3
+ ToolTip.text: text_value
+ privacy: true
}
- Dex.Text
+ DexLabel
{
id: bottom_line
-
property string fiat_value: General.getFiatText(amount, ticker)
- text: fiat_value
+ text_value: fiat_value
Layout.fillWidth: true
elide: Text.ElideRight
- color: Dex.CurrentTheme.foregroundColor
- font: DexTypo.body2
+ font: DexTypo.body3
wrapMode: Label.NoWrap
- ToolTip.text: fiat_value
- Component.onCompleted: font.pixelSize = 11.5
+ ToolTip.text: text_value
+ privacy: true
}
}
}
diff --git a/atomic_defi_design/Dex/Constants/General.qml b/atomic_defi_design/Dex/Constants/General.qml
index d9625cdb59..2b269e21da 100644
--- a/atomic_defi_design/Dex/Constants/General.qml
+++ b/atomic_defi_design/Dex/Constants/General.qml
@@ -25,6 +25,14 @@ QtObject {
function coinIcon(ticker)
{
+ if (ticker.toLowerCase() == "smart chain")
+ {
+ return coin_icons_path + "smart_chain.png"
+ }
+ if (ticker.toLowerCase() == "avx")
+ {
+ return coin_icons_path + "avax.png"
+ }
if (ticker === "" || ticker === "All" || ticker===undefined)
{
return ""
@@ -175,7 +183,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 +195,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')) {
@@ -419,6 +427,14 @@ QtObject {
}
function getFeesDetail(fees) {
+ if (privacy_mode) {
+ return [
+ {"label": privacy_text},
+ {"label": privacy_text},
+ {"label": privacy_text},
+ {"label": privacy_text}
+ ]
+ }
return [
{"label": qsTr("Taker tx fee: "), "fee": fees.base_transaction_fees, "ticker": fees.base_transaction_fees_ticker},
{"label": qsTr("Dex tx fee: "), "fee": fees.fee_to_send_taker_fee, "ticker": fees.fee_to_send_taker_fee_ticker},
@@ -434,10 +450,23 @@ QtObject {
return feetype + " " + amount + " " + ticker + " (" + fiat_text + ")"
}
+ function reducedBignum(text, decimals=8, max_length=12) {
+ let val = new BigNumber(text).toFixed(decimals)
+ if (val.length > max_length)
+ {
+ return val.substring(0, max_length)
+ }
+ return val
+ }
+
function getSimpleFromPlaceholder(selectedTicker, selectedOrder, sell_ticker_balance) {
+ if (privacy_mode)
+ {
+ return "0"
+ }
if (sell_ticker_balance == 0)
{
- return qsTr("%1 balance is zero").arg(selectedTicker)
+ return qsTr("Balance is zero!")
}
if (!isZhtlcReady(selectedTicker))
{
@@ -489,6 +518,7 @@ QtObject {
}
function getTxExplorerURL(ticker, txid, add_0x=true) {
+ if (privacy_mode) return ''
if(txid !== '') {
const coin_info = API.app.portfolio_pg.global_cfg_mdl.get_coin_info(ticker)
const txid_prefix = (add_0x && coin_info.is_erc_family) ? '0x' : ''
@@ -497,6 +527,7 @@ QtObject {
}
function getAddressExplorerURL(ticker, address) {
+ if (privacy_mode) return ''
if(address !== '') {
const coin_info = API.app.portfolio_pg.global_cfg_mdl.get_coin_info(ticker)
return coin_info.explorer_url + addressTxUri(coin_info) + address
@@ -505,12 +536,14 @@ QtObject {
}
function viewTxAtExplorer(ticker, txid, add_0x=true) {
+ if (privacy_mode) return ''
if(txid !== '') {
Qt.openUrlExternally(getTxExplorerURL(ticker, txid, add_0x))
}
}
function viewAddressAtExplorer(ticker, address) {
+ if (privacy_mode) return ''
if(address !== '') {
Qt.openUrlExternally(getAddressExplorerURL(ticker, address))
}
@@ -555,6 +588,7 @@ QtObject {
}
function convertUsd(v) {
+ if (privacy_mode) return ''
let rate = API.app.get_rate_conversion("USD", API.app.settings_pg.current_currency)
let value = parseFloat(v) / parseFloat(rate)
@@ -566,6 +600,7 @@ QtObject {
}
function formatFiat(received, amount, fiat, precision=2) {
+ if (privacy_mode) return ''
if (precision == 2 && fiat == "BTC") {
precision = 8
}
@@ -575,6 +610,7 @@ QtObject {
}
function formatPercent(value, show_prefix=true) {
+ if (privacy_mode) return ''
let prefix = ''
if(value > 0) prefix = '+ '
else if(value < 0) {
@@ -619,6 +655,7 @@ QtObject {
}
function formatCrypto(received, amount, ticker, fiat_amount, fiat, precision, trail_zeros) {
+ if (privacy_mode) return ''
return diffPrefix(received) + ticker + " " + formatDouble(amount, precision, trail_zeros) + (fiat_amount ? " (" + formatFiat("", fiat_amount, fiat) + ")" : "")
}
@@ -777,15 +814,10 @@ QtObject {
}
function feeText(trade_info, base_ticker, has_info_icon=true, has_limited_space=false) {
-
-
if(!trade_info || !trade_info.trading_fee) return ""
-
const tx_fee = txFeeText(trade_info, base_ticker, has_info_icon, has_limited_space)
const trading_fee = tradingFeeText(trade_info, base_ticker, has_info_icon)
const minimum_amount = minimumtradingFeeText(trade_info, base_ticker, has_info_icon)
-
-
return tx_fee + "\n" + trading_fee +"
"+minimum_amount
}
@@ -804,13 +836,9 @@ QtObject {
}
function txFeeText(trade_info, base_ticker, has_info_icon=true, has_limited_space=false) {
-
if(!trade_info || !trade_info.trading_fee) return ""
-
const has_parent_coin_fees = hasParentCoinFees(trade_info)
-
var info = qsTr('%1 Transaction Fee'.arg(trade_info.base_transaction_fees_ticker))+': '+ trade_info.base_transaction_fees + " (%1)".arg(getFiatText(trade_info.base_transaction_fees, trade_info.base_transaction_fees_ticker, has_info_icon))
-
if (has_parent_coin_fees) {
info = info+"
"+qsTr('%1 Transaction Fee'.arg(trade_info.rel_transaction_fees_ticker))+': '+ trade_info.rel_transaction_fees + " (%1)".arg(getFiatText(trade_info.rel_transaction_fees, trade_info.rel_transaction_fees_ticker, has_info_icon))
}
diff --git a/atomic_defi_design/Dex/Exchange/ProView/DexComboBoxLine.qml b/atomic_defi_design/Dex/Exchange/ProView/DexComboBoxLine.qml
index 0d8269efb9..0e83f5af8d 100644
--- a/atomic_defi_design/Dex/Exchange/ProView/DexComboBoxLine.qml
+++ b/atomic_defi_design/Dex/Exchange/ProView/DexComboBoxLine.qml
@@ -87,9 +87,9 @@ RowLayout
Dex.Text
{
id: middle_line
-
property string coin_value: !details ? "" : details.balance
- text: coin_value
+ text_value: coin_value
+ privacy: true
Layout.fillWidth: true
elide: Text.ElideRight
color: Dex.CurrentTheme.foregroundColor
@@ -105,13 +105,14 @@ RowLayout
property string fiat_value: !details ? "" :
General.formatFiat("", details.main_currency_balance, API.app.settings_pg.current_currency)
- text: fiat_value
+ text_value: fiat_value
Layout.fillWidth: true
elide: Text.ElideRight
color: Dex.CurrentTheme.foregroundColor
font: DexTypo.body2
wrapMode: Label.NoWrap
ToolTip.text: fiat_value
+ privacy: true
Component.onCompleted: font.pixelSize = 11
}
}
diff --git a/atomic_defi_design/Dex/Exchange/ProView/PlaceOrderForm/OrderForm.qml b/atomic_defi_design/Dex/Exchange/ProView/PlaceOrderForm/OrderForm.qml
index 1cc7440e66..3e50b624b1 100644
--- a/atomic_defi_design/Dex/Exchange/ProView/PlaceOrderForm/OrderForm.qml
+++ b/atomic_defi_design/Dex/Exchange/ProView/PlaceOrderForm/OrderForm.qml
@@ -103,7 +103,8 @@ ColumnLayout
id: input_price
left_text: qsTr("Price")
- right_text: right_ticker
+ right_text: General.coinWithoutSuffix(right_ticker)
+ right_fontsize: 10
enabled: !(API.app.trading_pg.preferred_order.price !== undefined)
color: enabled ? Dex.CurrentTheme.foregroundColor : Dex.CurrentTheme.foregroundColor2
text: backend_price ? backend_price : General.formatDouble(API.app.trading_pg.cex_price)
@@ -167,13 +168,15 @@ ColumnLayout
height: 36
radius: 18
left_text: sell_mode ? qsTr("Send") : qsTr("Receive")
- right_text: left_ticker
+ right_text: General.coinWithoutSuffix(left_ticker)
+ right_fontsize: 10
placeholderText: "0"
text: API.app.trading_pg.volume
onTextChanged: {
setVolume(text)
reset_fees_state()
}
+ enabled: !General.privacy_mode
}
OrderFormSubfield
@@ -204,9 +207,9 @@ ColumnLayout
left_label: "25%"
middle_label: "50%"
right_label: qsTr("Max")
- left_tooltip_text: qsTr("Swap 25% of your tradable balance.")
- middle_tooltip_text: qsTr("Swap 50% of your tradable balance.")
- right_tooltip_text: qsTr("Swap 100% of your tradable balance.")
+ left_tooltip_text: General.privacy_mode ? qsTr("Diasble privacy mode to trade") : qsTr("Swap 25% of your tradable balance.")
+ middle_tooltip_text: General.privacy_mode ? qsTr("Diasble privacy mode to trade") : qsTr("Swap 50% of your tradable balance.")
+ right_tooltip_text: General.privacy_mode ? qsTr("Diasble privacy mode to trade") : qsTr("Swap 100% of your tradable balance.")
}
}
@@ -419,6 +422,7 @@ ColumnLayout
radius: 16
text: API.app.trading_pg.maker_mode ? qsTr("CREATE MAKER SWAP") : qsTr("START TAKER SWAP")
font.weight: Font.Medium
+ enabled: !General.privacy_mode
}
}
}
\ No newline at end of file
diff --git a/atomic_defi_design/Dex/Exchange/ProView/TradingInfo/OrderLine.qml b/atomic_defi_design/Dex/Exchange/ProView/TradingInfo/OrderLine.qml
index 87d5456f62..91eb121226 100644
--- a/atomic_defi_design/Dex/Exchange/ProView/TradingInfo/OrderLine.qml
+++ b/atomic_defi_design/Dex/Exchange/ProView/TradingInfo/OrderLine.qml
@@ -49,7 +49,7 @@ FloatingBackground
Layout.preferredWidth: 24
Layout.alignment: Qt.AlignCenter
- DefaultText
+ DexLabel
{
id: statusText
anchors.centerIn: parent
@@ -86,34 +86,34 @@ FloatingBackground
clip: true
- DefaultText
+ DexLabel
{
id: baseAmountLabel
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: 12
- text:
+ text_value:
{
- if (!details) return
+ if (!details) return
BigNumber.config({ DECIMAL_PLACES: 6 })
return new BigNumber(details.base_amount).toString(10)
}
- privacy: is_placed_order
+ privacy: true
elide: Text.ElideRight
maximumLineCount: 1
}
- DefaultText
+ DexLabel
{
anchors.left: baseAmountLabel.right
anchors.leftMargin: 3
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: 12
- text: !details ? "" : "(%1 %2)".arg(details.base_amount_current_currency).arg(API.app.settings_pg.current_fiat_sign)
- privacy: is_placed_order
+ text_value: !details ? "" : "(%1 %2)".arg(details.base_amount_current_currency).arg(API.app.settings_pg.current_fiat_sign)
+ privacy: true
elide: Text.ElideRight
maximumLineCount: 1
}
@@ -128,14 +128,14 @@ FloatingBackground
iconSize: 18
}
- DefaultText
+ DexLabel
{
anchors.right: relAmountInCurrCurrency.left
anchors.rightMargin: 3
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: 12
- text:
+ text_value:
{
if (!details) return
@@ -143,12 +143,12 @@ FloatingBackground
return new BigNumber(details.rel_amount).toString(10)
}
- privacy: is_placed_order
+ privacy: true
elide: Text.ElideRight
maximumLineCount: 1
}
- DefaultText
+ DexLabel
{
id: relAmountInCurrCurrency
@@ -156,8 +156,8 @@ FloatingBackground
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: 12
- text: !details ? "" : "(%1 %2)".arg(details.rel_amount_current_currency).arg(API.app.settings_pg.current_fiat_sign)
- privacy: is_placed_order
+ text_value: !details ? "" : "(%1 %2)".arg(details.rel_amount_current_currency).arg(API.app.settings_pg.current_fiat_sign)
+ privacy: true
elide: Text.ElideRight
maximumLineCount: 1
}
@@ -181,7 +181,7 @@ FloatingBackground
source: General.coinIcon(!details ? atomic_app_primary_coin : details.base_coin ?? atomic_app_primary_coin)
}
- DefaultText
+ DexLabel
{
anchors.left: baseIcon.right
anchors.leftMargin: 2
@@ -189,13 +189,13 @@ FloatingBackground
font.weight: Font.Bold
font.pixelSize: 12
- text: !details ? "" : details.base_coin
- privacy: is_placed_order
+ text_value: !details ? "" : details.base_coin
+ privacy: true
elide: Text.ElideRight
maximumLineCount: 1
}
- DefaultText
+ DexLabel
{
visible: clickable
@@ -209,7 +209,7 @@ FloatingBackground
color: Dex.CurrentTheme.foregroundColor2
}
- DefaultText
+ DexLabel
{
anchors.right: relCoin.left
anchors.rightMargin: 2
@@ -217,8 +217,8 @@ FloatingBackground
font.weight: Font.Bold
font.pixelSize: 12
- text: !details ? "" : details.rel_coin
- privacy: is_placed_order
+ text_value: !details ? "" : details.rel_coin
+ privacy: true
elide: Text.ElideRight
maximumLineCount: 1
}
@@ -244,7 +244,7 @@ FloatingBackground
Layout.preferredWidth: 24
Layout.alignment: Qt.AlignCenter
- DefaultText
+ DexLabel
{
anchors.centerIn: parent
@@ -255,7 +255,7 @@ FloatingBackground
DefaultTooltip
{
- contentItem: DefaultText
+ contentItem: DexLabel
{
text_value: qsTr("Funds are recoverable")
font.pixelSize: Style.textSizeSmall4
diff --git a/atomic_defi_design/Dex/Exchange/ProView/TradingInfo/OrdersPage.qml b/atomic_defi_design/Dex/Exchange/ProView/TradingInfo/OrdersPage.qml
index 3629b41dae..ab0e0968f7 100644
--- a/atomic_defi_design/Dex/Exchange/ProView/TradingInfo/OrdersPage.qml
+++ b/atomic_defi_design/Dex/Exchange/ProView/TradingInfo/OrdersPage.qml
@@ -132,6 +132,7 @@ Item {
radius: 7
label.font: DexTypo.body2
text: qsTr("Export CSV")
+ enabled: list_model.length > 0 && ! General.privacy_mode
onClicked:
{
export_csv_dialog.folder = General.os_file_prefix + API.app.settings_pg.get_export_folder()
@@ -142,10 +143,10 @@ Item {
DefaultButton
{
visible: !root.is_history && list_model.length > 0
- enabled: list_model.length > 0
Layout.preferredHeight: 29
radius: 7
label.font: DexTypo.body2
+ enabled: list_model.length > 0 && ! General.privacy_mode
text: qsTr("Cancel All")
iconSource: Qaterial.Icons.close
onClicked: API.app.trading_pg.orders.cancel_order(list_model_proxy.get_filtered_ids())
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/Exchange/Trade/FeeIcon.qml b/atomic_defi_design/Dex/Exchange/Trade/FeeIcon.qml
index a5f65a9ba9..883e5e13d1 100644
--- a/atomic_defi_design/Dex/Exchange/Trade/FeeIcon.qml
+++ b/atomic_defi_design/Dex/Exchange/Trade/FeeIcon.qml
@@ -24,12 +24,12 @@ DefaultText {
visible: mouse_area.containsMouse
contentItem: ColumnLayout {
- DefaultText {
+ DexLabel {
id: tx_fee_text
text_value: General.txFeeText(trade_info, base, false)
font.pixelSize: Style.textSizeSmall4
}
- DefaultText {
+ DexLabel {
text_value: General.tradingFeeText(trade_info, base, false)
font.pixelSize: tx_fee_text.font.pixelSize
}
diff --git a/atomic_defi_design/Dex/Exchange/Trade/OrderBook/ListDelegate.qml b/atomic_defi_design/Dex/Exchange/Trade/OrderBook/ListDelegate.qml
index 03819d17fe..43b16d0c7b 100644
--- a/atomic_defi_design/Dex/Exchange/Trade/OrderBook/ListDelegate.qml
+++ b/atomic_defi_design/Dex/Exchange/Trade/OrderBook/ListDelegate.qml
@@ -21,11 +21,11 @@ Item
DefaultTooltip
{
visible: mouse_area.containsMouse && (tooltip_text.text_value != "")
- width: 300
+ width: 340
contentItem: RowLayout
{
- width: 290
+ width: 330
Qaterial.ColorIcon
{
@@ -45,6 +45,10 @@ Item
{
if (mouse_area.containsMouse)
{
+ if (General.privacy_mode)
+ {
+ return qsTr("Orderbook is disabled in privacy mode")
+ }
if (API.app.trading_pg.maker_mode)
{
return qsTr("Orderbook is disabled while creating maker orders")
@@ -109,6 +113,7 @@ Item
// Populate form with selected order
onClicked:
{
+ if (General.privacy_mode) return
if (is_mine) return
if (API.app.trading_pg.maker_mode) return
@@ -170,12 +175,12 @@ Item
// Dot on the left side of the row to indicate own order
Rectangle
{
- Layout.leftMargin: 6
+ Layout.leftMargin: 4
Layout.alignment: Qt.AlignVCenter
opacity: is_mine ? 1 : 0
- width: 6
- height: 6
- radius: 3
+ width: 4
+ height: 4
+ radius: 2
color: isAsk ? Dex.CurrentTheme.warningColor : Dex.CurrentTheme.okColor
}
@@ -183,9 +188,9 @@ Item
Dex.ElidableText
{
Layout.fillHeight: true
- Layout.minimumWidth: 90
+ Layout.minimumWidth: 100
Layout.alignment: Qt.AlignVCenter
- text: { new BigNumber(price).toFixed(8) }
+ text: General.reducedBignum(price, 8)
font.family: DexTypo.fontFamily
font.pixelSize: 12
color: isAsk ? Dex.CurrentTheme.warningColor : Dex.CurrentTheme.okColor
@@ -198,9 +203,9 @@ Item
Dex.ElidableText
{
Layout.fillHeight: true
- Layout.minimumWidth: 90
+ Layout.minimumWidth: 100
Layout.alignment: Qt.AlignVCenter
- text: { new BigNumber(base_max_volume).toFixed(6) }
+ text: General.reducedBignum(base_max_volume, 6)
font.family: DexTypo.fontFamily
font.pixelSize: 12
horizontalAlignment: Text.AlignRight
@@ -214,12 +219,12 @@ Item
{
id: total_text
Layout.fillHeight: true
- Layout.minimumWidth: 90
+ Layout.minimumWidth: 100
Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter
font.family: DexTypo.fontFamily
font.pixelSize: 12
- text: { new BigNumber(total).toFixed(6) }
+ text: General.reducedBignum(total, 6)
horizontalAlignment: Text.AlignRight
verticalAlignment: Text.AlignVCenter
wrapMode: Text.NoWrap
@@ -231,7 +236,7 @@ Item
{
id: cancel_flat_btn
Layout.fillHeight: true
- width: 30
+ width: 20
Layout.alignment: Qt.AlignVCenter
MouseArea
@@ -256,7 +261,7 @@ Item
Qaterial.ColorIcon
{
anchors.centerIn: parent
- iconSize: 16
+ iconSize: 14
color: Dex.CurrentTheme.warningColor
source: Qaterial.Icons.close
visible: is_mine
diff --git a/atomic_defi_design/Dex/Exchange/Trade/OrderBook/Vertical.qml b/atomic_defi_design/Dex/Exchange/Trade/OrderBook/Vertical.qml
index a32347e739..0c8918e6fc 100644
--- a/atomic_defi_design/Dex/Exchange/Trade/OrderBook/Vertical.qml
+++ b/atomic_defi_design/Dex/Exchange/Trade/OrderBook/Vertical.qml
@@ -16,8 +16,8 @@ Widget
readonly property string pair_volume_24hr: API.app.trading_pg.pair_volume_24hr
readonly property string pair: atomic_qt_utilities.retrieve_main_ticker(left_ticker) + "/" + atomic_qt_utilities.retrieve_main_ticker(right_ticker)
- margins: 10
- spacing: 10
+ margins: 8
+ spacing: 8
collapsable: false
Header
diff --git a/atomic_defi_design/Dex/Exchange/Trade/SimpleView/List.qml b/atomic_defi_design/Dex/Exchange/Trade/SimpleView/List.qml
index c9ea3a02df..c900b3ca17 100644
--- a/atomic_defi_design/Dex/Exchange/Trade/SimpleView/List.qml
+++ b/atomic_defi_design/Dex/Exchange/Trade/SimpleView/List.qml
@@ -27,8 +27,6 @@ DexListView
delegate: ClipRRect
{
property var details: model
- readonly property bool is_placed_order: !details ? false :
- details.order_id !== ''
property bool expanded: order_list_view.currentIndex === index
@@ -78,7 +76,7 @@ DexListView
height: width
anchors.centerIn: parent
running: !isSwapDone(details.order_status) && Qt.platform.os != "osx"
- DefaultText
+ DexLabel
{
anchors.centerIn: parent
font.pixelSize: getStatusFontSize(details.order_status)
@@ -105,13 +103,13 @@ DexListView
anchors.verticalCenter: parent.verticalCenter
}
- DefaultText
+ DexLabel
{
id: base_amount
text_value: !details ? "" :
General.formatCrypto("", details.base_amount, details.base_coin).replace(" ","
")
font: rel_amount.font
- privacy: is_placed_order
+ privacy: true
anchors.verticalCenter: parent.verticalCenter
}
}
@@ -150,7 +148,7 @@ DexListView
height: width
anchors.verticalCenter: parent.verticalCenter
}
- DefaultText
+ DexLabel
{
id: rel_amount
text_value: !details ? "" :
@@ -162,7 +160,7 @@ DexListView
weight: Font.Normal
})
anchors.verticalCenter: parent.verticalCenter
- privacy: is_placed_order
+ privacy: true
}
}
@@ -194,8 +192,9 @@ DexListView
Layout.fillWidth: true
Layout.fillHeight: true
verticalAlignment: Label.AlignVCenter
- text: !details ? "" :
+ text_value: !details ? "" :
General.formatCrypto("", details.base_amount, details.base_coin)
+ privacy: true
}
DexLabel
{
@@ -203,8 +202,9 @@ DexListView
Layout.fillHeight: true
verticalAlignment: Label.AlignVCenter
horizontalAlignment: Text.AlignRight
- text: !details ? "" :
+ text_value: !details ? "" :
General.formatCrypto("", details.rel_amount, details.rel_coin)
+ privacy: true
}
}
@@ -215,20 +215,22 @@ DexListView
anchors.horizontalCenter: parent.horizontalCenter
height: 20
opacity: .6
- DefaultText
+ DexLabel
{
Layout.fillWidth: true
- Layout.fillHeight: true
+ Layout.fillHeight: true
verticalAlignment: Label.AlignVCenter
- text: "%1 %2".arg(API.app.settings_pg.current_currency).arg(details.base_amount_current_currency)
+ text_value: "%1 %2".arg(API.app.settings_pg.current_currency).arg(details.base_amount_current_currency)
+ privacy: true
}
- DefaultText
+ DexLabel
{
Layout.fillWidth: true
Layout.fillHeight: true
verticalAlignment: Label.AlignVCenter
horizontalAlignment: Text.AlignRight
- text: "%1 %2".arg(API.app.settings_pg.current_currency).arg(details.rel_amount_current_currency)
+ text_value: "%1 %2".arg(API.app.settings_pg.current_currency).arg(details.rel_amount_current_currency)
+ privacy: true
}
}
@@ -244,7 +246,8 @@ DexListView
Layout.fillWidth: true
Layout.fillHeight: true
verticalAlignment: Label.AlignVCenter
- text: !details ? "" : details.date?? ""
+ text_value: !details ? "" : details.date?? ""
+ privacy: true
}
Item
{
@@ -283,7 +286,7 @@ DexListView
contentItem: ColumnLayout
{
- DefaultText {
+ DexLabel {
text_value: qsTr("Funds are recoverable")
font.pixelSize: Constants.Style.textSizeSmall4
}
diff --git a/atomic_defi_design/Dex/Exchange/Trade/SimpleView/SubCoinSelector.qml b/atomic_defi_design/Dex/Exchange/Trade/SimpleView/SubCoinSelector.qml
index bf1938c322..852291ca5f 100644
--- a/atomic_defi_design/Dex/Exchange/Trade/SimpleView/SubCoinSelector.qml
+++ b/atomic_defi_design/Dex/Exchange/Trade/SimpleView/SubCoinSelector.qml
@@ -174,6 +174,7 @@ DexListView
text_value: model.balance.replace(" ","")
font.pixelSize: 14
wrapMode: Text.NoWrap
+ privacy: true
}
DexLabel
@@ -184,6 +185,7 @@ DexListView
text_value: "%1".arg(General.getFiatText(model.balance, model.ticker, false))
font.pixelSize: 14
wrapMode: Text.NoWrap
+ privacy: true
}
}
}
diff --git a/atomic_defi_design/Dex/Exchange/Trade/SimpleView/Trade.qml b/atomic_defi_design/Dex/Exchange/Trade/SimpleView/Trade.qml
index 6a92ed7e0e..0eccd7fdbb 100644
--- a/atomic_defi_design/Dex/Exchange/Trade/SimpleView/Trade.qml
+++ b/atomic_defi_design/Dex/Exchange/Trade/SimpleView/Trade.qml
@@ -160,7 +160,7 @@ ClipRRect // Trade Card
opacity: .85
}
- DefaultText // Description
+ DexLabel // Description
{
anchors.topMargin: 10
font.pixelSize: Constants.Style.textSizeSmall4
@@ -231,7 +231,7 @@ ClipRRect // Trade Card
radius: 20
visible: !coinSelectorSimplified.visible && has_coins_with_balance
- DefaultText // From Text
+ DexLabel // From Text
{
id: _fromTitle
anchors.top: parent.top
@@ -242,7 +242,7 @@ ClipRRect // Trade Card
font.pixelSize: Constants.Style.textSizeSmall4
}
- Text // Tradable Balance
+ DexLabel // Tradable Balance
{
readonly property int _maxWidth: 140
@@ -252,10 +252,11 @@ ClipRRect // Trade Card
anchors.verticalCenter: _fromTitle.verticalCenter
anchors.right: parent.right
anchors.rightMargin: 17
- text: qsTr("%1").arg(max_trade_volume) // This is slow to appear
+ text_value: qsTr("%1").arg(max_trade_volume) // This is slow to appear
font.pixelSize: Constants.Style.textSizeSmall2
elide: Text.ElideRight
color: DexTheme.foregroundColorLightColor1
+ privacy: true
DefaultImage
{
@@ -282,6 +283,10 @@ ClipRRect // Trade Card
visible: parent.containsMouse
text:
{
+ if (General.privacy_mode)
+ {
+ return qsTr("Balance: ") + qsTr("****")
+ }
let balance = Constants.API.app.portfolio_pg.portfolio_mdl.coin_balance(selectedTicker);
return qsTr("Balance: ") + Constants.API.app.portfolio_pg.portfolio_mdl.coin_balance(selectedTicker) + ' (' + parent.parent.text + ' tradable)'
}
@@ -300,7 +305,7 @@ ClipRRect // Trade Card
AmountField // Amount
{
id: _fromValue
- enabled: sell_ticker_balance == 0 ? false : waiting_for_sell_coin_info ? false : true
+ enabled: sell_ticker_balance == 0 ? false : waiting_for_sell_coin_info ? false : General.privacy_mode ? false : true
anchors.bottom: parent.bottom
anchors.bottomMargin: 19
anchors.left: parent.left
@@ -329,7 +334,7 @@ ClipRRect // Trade Card
Component.onCompleted: text = ""
}
- Text // Amount In Fiat
+ DexLabel // Amount In Fiat
{
enabled: _fromValue.text
visible: enabled
@@ -340,7 +345,8 @@ ClipRRect // Trade Card
font.pixelSize: Constants.Style.textSizeSmall1
color: DexTheme.foregroundColor
opacity: .9
- text: enabled ? Constants.General.getFiatText(_fromValue.text, selectedTicker) : ""
+ text_value: enabled ? Constants.General.getFiatText(_fromValue.text, selectedTicker) : ""
+ privacy: true
}
Rectangle // Select ticker button
@@ -387,7 +393,7 @@ ClipRRect // Trade Card
source: Constants.General.coinIcon(selectedTicker)
}
- DefaultText
+ DexLabel
{
id: _selectedTickerText
@@ -403,7 +409,7 @@ ClipRRect // Trade Card
wrapMode: Text.NoWrap
- DefaultText
+ DexLabel
{
id: _selectedTickerTypeText
@@ -432,16 +438,13 @@ ClipRRect // Trade Card
ClickableText // MAX Button
{
id: _maxClickableLabel
-
anchors.right: _selectTickerBut.left
anchors.rightMargin: 10
anchors.verticalCenter: _selectTickerBut.verticalCenter
-
visible: selectedTicker !== ""
-
text: qsTr("MAX")
color: Dex.CurrentTheme.foregroundColor2
-
+ enabled: !General.privacy_mode
onClicked: _fromValue.text = max_trade_volume
}
@@ -464,7 +467,7 @@ ClipRRect // Trade Card
&& !coinSelectorSimplified.visible
&& has_coins_with_balance
- DefaultText
+ DexLabel
{
anchors.fill: parent
anchors.leftMargin: 17
@@ -487,7 +490,7 @@ ClipRRect // Trade Card
background: Rectangle { color: swap_from_card.color}
}
- DefaultText // Amount In Fiat
+ DexLabel // Amount In Fiat
{
enabled: parseFloat(_toValue.text) > 0 && _toValue.text != ""
anchors.top: _toValue.bottom
@@ -533,7 +536,7 @@ ClipRRect // Trade Card
}
// When no order is currently selected.
- DefaultText
+ DexLabel
{
id: _bestOrderNoTickerText
@@ -567,7 +570,7 @@ ClipRRect // Trade Card
}
// Ticker (When a best order is currently selected)
- DefaultText
+ DexLabel
{
id: _bestOrderTickerText
@@ -584,7 +587,7 @@ ClipRRect // Trade Card
font.pixelSize: Constants.Style.textSizeSmall2
wrapMode: Text.NoWrap
- DefaultText
+ DexLabel
{
id: _bestOrderTickerTypeText
@@ -623,14 +626,14 @@ ClipRRect // Trade Card
&& !coinSelectorSimplified.visible
&& has_coins_with_balance
- DefaultText
+ DexLabel
{
Layout.rightMargin: 120
font.pixelSize: Constants.Style.textSizeSmall3
text: qsTr("Price")
}
- DefaultText
+ DexLabel
{
Layout.alignment: Qt.AlignRight
font.pixelSize: Constants.Style.textSizeSmall3
@@ -714,7 +717,10 @@ ClipRRect // Trade Card
function getAlert()
{
- console.log("_fromValue.text: " + _fromValue.text)
+ if (Constants.General.privacy_mode)
+ {
+ return qsTr("Disable privacy mode to trade.")
+ }
var right_ticker = Constants.API.app.trading_pg.market_pairs_mdl.right_selected_coin
var base_ticker = Constants.API.app.trading_pg.market_pairs_mdl.base_selected_coin
var rel_ticker = Constants.API.app.trading_pg.market_pairs_mdl.rel_selected_coin
@@ -932,7 +938,7 @@ ClipRRect // Trade Card
anchors.fill: parent
}
- DefaultText
+ DexLabel
{
anchors.centerIn: parent
text: qsTr("Calculating fee estimate... ")
@@ -959,7 +965,7 @@ ClipRRect // Trade Card
Component.onCompleted: _feesCard.height += 10
Component.onDestruction: _feesCard.height -= 10
- DefaultText
+ DexLabel
{
Layout.alignment: Qt.AlignLeft
Layout.leftMargin: 10
@@ -967,7 +973,7 @@ ClipRRect // Trade Card
font.pixelSize: Constants.Style.textSizeSmall3
}
- DefaultText
+ DexLabel
{
Layout.alignment: Qt.AlignRight
Layout.rightMargin: 10
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/Dex/Sidebar/Center.qml b/atomic_defi_design/Dex/Sidebar/Center.qml
index 89ab94df97..a3e2586d90 100644
--- a/atomic_defi_design/Dex/Sidebar/Center.qml
+++ b/atomic_defi_design/Dex/Sidebar/Center.qml
@@ -15,6 +15,25 @@ MouseArea
height: lineHeight * 5
hoverEnabled: true
+ Connections
+ {
+ target: API.app.timesyncCheckerService
+
+ function onTimesyncInfoChanged()
+ {
+ if (!API.app.timesyncCheckerService.timesyncInfo)
+ {
+ _dexLine.timesyncInfo = false
+ if (currentLineType === Main.LineType.DEX) currentLineType = Main.LineType.Portfolio
+ root.lineSelected(Main.LineType.Portfolio);
+ }
+ else
+ {
+ _dexLine.timesyncInfo = true
+ }
+ }
+ }
+
Connections
{
target: parent.parent
@@ -84,12 +103,15 @@ MouseArea
FigurativeLine
{
id: _dexLine
+ property var timesyncInfo: API.app.timesyncCheckerService.timesyncInfo
Layout.fillWidth: true
type: Main.LineType.DEX
+ label.color: timesyncInfo ? Dex.CurrentTheme.foregroundColor : Dex.CurrentTheme.textDisabledColor
label.text: qsTr("DEX") // isExpanded ? qsTr("DEX") : ""
icon.source: General.image_path + "menu-exchange-white.svg"
- onClicked: lineSelected(type)
+ onClicked: timesyncInfo ? lineSelected(type) : null
+ disabled_tt_text: timesyncInfo ? "" : qsTr("DEX is disabled due to system clock synchronization issues. Please check your device time settings.")
}
FigurativeLine
diff --git a/atomic_defi_design/Dex/Sidebar/FigurativeLine.qml b/atomic_defi_design/Dex/Sidebar/FigurativeLine.qml
index 540ca6e11b..a747a36e7f 100644
--- a/atomic_defi_design/Dex/Sidebar/FigurativeLine.qml
+++ b/atomic_defi_design/Dex/Sidebar/FigurativeLine.qml
@@ -1,12 +1,14 @@
import QtQuick 2.12
import "../Components"
+import "../Constants"
import Dex.Themes 1.0 as Dex
// FigurativeLine acts the same as Line but contains a figurative icon on the left of its label
Line
{
property alias icon: _icon
+ property string disabled_tt_text: ""
DefaultImage
{
@@ -26,4 +28,13 @@ Line
currentLineType === type && type != Main.LineType.Support ? Dex.CurrentTheme.sidebarLineTextSelected :
Dex.CurrentTheme.foregroundColor
}
+
+ DexTooltip
+ {
+ visible: mouseArea.containsMouse && disabled_tt_text
+ delay: 500
+ timeout: 5000
+ text: disabled_tt_text
+ font.pixelSize: Style.textSizeSmall4
+ }
}
diff --git a/atomic_defi_design/Dex/Wallet/SendResult.qml b/atomic_defi_design/Dex/Wallet/SendResult.qml
index 8ac93c37a5..c7db8ebd8f 100644
--- a/atomic_defi_design/Dex/Wallet/SendResult.qml
+++ b/atomic_defi_design/Dex/Wallet/SendResult.qml
@@ -16,7 +16,7 @@ MultipageModalContent
property string custom_amount
property alias tx_hash: tx_hash.text_value
- titleText: qsTr("Transaction Complete!")
+ titleText: qsTr("Transaction Broadcast!")
// Transaction Hash
TitleText
diff --git a/atomic_defi_design/Dex/Wallet/TransactionDetailsModal.qml b/atomic_defi_design/Dex/Wallet/TransactionDetailsModal.qml
index ab69b7cba4..35bad4fb0d 100644
--- a/atomic_defi_design/Dex/Wallet/TransactionDetailsModal.qml
+++ b/atomic_defi_design/Dex/Wallet/TransactionDetailsModal.qml
@@ -124,7 +124,7 @@ MultipageModal
TextEditWithTitle
{
title: qsTr("Date")
- text: !details ? "" : details.timestamp === 0 ? qsTr("Unconfirmed"): details.date
+ text: !details ? "" : details.timestamp === 0 ? qsTr("Awaiting confirmation"): details.timestamp
label.font.pixelSize: 13
}
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/ci_tools_atomic_dex/ci_scripts/choosenim.sh b/ci_tools_atomic_dex/ci_scripts/choosenim.sh
new file mode 100755
index 0000000000..b255b48ab1
--- /dev/null
+++ b/ci_tools_atomic_dex/ci_scripts/choosenim.sh
@@ -0,0 +1,196 @@
+#!/bin/sh
+# Copyright 2017 Dominik Picheta and Nim developers.
+#
+# Licensed under the BSD-3-Clause license.
+#
+# This script performs some platform detection, downloads the latest version
+# of choosenim and initiates its installation.
+
+set -u
+set -e
+
+
+url_prefix="https://github.com/dom96/choosenim/releases/download/"
+
+temp_prefix="${TMPDIR:-/tmp}"
+
+CHOOSE_VERSION="${CHOOSENIM_CHOOSE_VERSION:-stable}"
+
+need_tty=yes
+debug=""
+
+has_curl() {
+ command -v curl >/dev/null 2>&1
+}
+
+has_wget() {
+ command -v wget >/dev/null 2>&1
+}
+
+install() {
+ get_platform || return 1
+ local platform=$RET_VAL
+ local stable_version=0.8.4
+ local filename="choosenim-$stable_version"_"$platform"
+ local url="$url_prefix"v"$stable_version/$filename"
+ local ext=""
+
+ case $platform in
+ *macosx_amd64* | *linux_amd64* )
+ ;;
+ *windows_amd64* )
+ # Download ZIP for Windows
+ local ext=".exe"
+ local filename="$filename$ext"
+ local url="$url$ext"
+ ;;
+ * )
+ say_err "Sorry, your platform ($platform) is not supported by choosenim."
+ say_err "You will need to install Nim using an alternative method."
+ say_err "See the following link for more info: https://nim-lang.org/install.html"
+ exit 1
+ ;;
+ esac
+
+ say "Downloading $filename"
+ if has_curl; then
+ curl -sSfL "$url" -o "$temp_prefix/$filename"
+ elif has_wget; then
+ wget -qO "$temp_prefix/$filename" "$url"
+ fi
+ chmod +x "$temp_prefix/$filename"
+
+ if [ "$need_tty" = "yes" ]; then
+ # The installer is going to want to ask for confirmation by
+ # reading stdin. This script was piped into `sh` though and
+ # doesn't have stdin to pass to its children. Instead we're going
+ # to explicitly connect /dev/tty to the installer's stdin.
+ if [ ! -t 1 ]; then
+ err "Unable to run interactively. Run with -y to accept defaults."
+ fi
+
+ # Install Nim from desired channel.
+ "$temp_prefix/$filename" $CHOOSE_VERSION --firstInstall ${debug} < /dev/tty
+ else
+ "$temp_prefix/$filename" $CHOOSE_VERSION --firstInstall -y ${debug}
+ fi
+
+ # Copy choosenim binary to Nimble bin.
+ local nimbleBinDir=`"$temp_prefix/$filename" --getNimbleBin`
+ cp "$temp_prefix/$filename" "$nimbleBinDir/choosenim$ext"
+ say "ChooseNim installed in $nimbleBinDir"
+ say "You must now ensure that the Nimble bin dir is in your PATH."
+ if [ "$platform" != "windows_amd64" ]; then
+ say "Place the following line in the ~/.profile or ~/.bashrc file."
+ say " export PATH=$nimbleBinDir:\$PATH"
+ case "${SHELL:=sh}" in
+ *fish*)
+ say "Running fish shell?"
+ say "set -ga fish_user_paths $nimbleBinDir"
+ ;;
+ esac
+ fi
+}
+
+get_platform() {
+ # Get OS/CPU info and store in a `myos` and `mycpu` variable.
+ local ucpu=`uname -m`
+ local uos=`uname`
+ local ucpu=`echo $ucpu | tr "[:upper:]" "[:lower:]"`
+ local uos=`echo $uos | tr "[:upper:]" "[:lower:]"`
+
+ case $uos in
+ *linux* )
+ local myos="linux"
+ ;;
+ *dragonfly* )
+ local myos="freebsd"
+ ;;
+ *freebsd* )
+ local myos="freebsd"
+ ;;
+ *openbsd* )
+ local myos="openbsd"
+ ;;
+ *netbsd* )
+ local myos="netbsd"
+ ;;
+ *darwin* )
+ local myos="macosx"
+ if [ "$HOSTTYPE" = "x86_64" ] ; then
+ local ucpu="amd64"
+ fi
+ if [ "$HOSTTYPE" = "arm64" ] ; then
+ # TODO: We don't have arm binaries for choosenim so far, rely on Rosetta.
+ local ucpu="amd64"
+ fi
+ ;;
+ *aix* )
+ local myos="aix"
+ ;;
+ *solaris* | *sun* )
+ local myos="solaris"
+ ;;
+ *haiku* )
+ if has_curl; then
+ stable_version=`curl -sSfL https://nim-lang.org/choosenim/stable`
+ elif has_wget; then
+ stable_version=`wget -qO - https://nim-lang.org/choosenim/stable`
+ fi
+ err "unknown operating system: $uos"
+ ;;
+ esac
+
+ case $ucpu in
+ *i386* | *i486* | *i586* | *i686* | *bepc* | *i86pc* )
+ local mycpu="i386" ;;
+ *amd*64* | *x86-64* | *x86_64* )
+ local mycpu="amd64" ;;
+ *sparc*|*sun* )
+ local mycpu="sparc"
+ if [ "$(isainfo -b)" = "64" ]; then
+ local mycpu="sparc64"
+ fi
+ ;;
+ *ppc64* )
+ local mycpu="powerpc64" ;;
+ *power*|*ppc* )
+ local mycpu="powerpc" ;;
+ *mips* )
+ local mycpu="mips" ;;
+ *arm*|*armv6l* )
+ local mycpu="arm" ;;
+ *aarch64* )
+ local mycpu="arm64" ;;
+ *)
+ err "unknown processor: $ucpu"
+ ;;
+ esac
+
+ RET_VAL="$myos"_"$mycpu"
+}
+
+say() {
+ echo "choosenim-init: $1"
+}
+
+say_err() {
+ say "Error: $1" >&2
+}
+
+err() {
+ say_err "$1"
+ exit 1
+}
+
+
+# check if we have to use /dev/tty to prompt the user
+while getopts "dy" opt; do
+ case "$opt" in
+ y) need_tty=no
+ ;;
+ d) debug="--debug"
+ esac
+done
+
+install
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..b799e8dbfd 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")
@@ -7,7 +7,7 @@ set(DEX_DISPLAY_NAME "Komodo Wallet")
set(DEX_MAINTENANCE_TOOL_NAME "Komodo Wallet Maintenance Tool")
set(DEX_COMPANY "KomodoPlatform")
set(DEX_WEBSITE "https://atomicdex.io/")
-set(DEX_VERSION "0.7.2")
+set(DEX_VERSION "0.8.0")
set(DEX_SUPPORT_PAGE "https://support.komodoplatform.com/support/home")
set(DEX_DISCORD "https://komodoplatform.com/discord")
set(DEX_TWITTER "https://twitter.com/AtomicDEX")
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..f2bf63ef11 100644
--- a/src/app/app.cpp
+++ b/src/app/app.cpp
@@ -40,10 +40,11 @@
//! 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"
+#include "atomicdex/services/sync/timesync.checker.service.hpp"
namespace
{
@@ -73,17 +74,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 +101,7 @@ namespace atomic_dex
{
coins_std.push_back(extra_coin);
}
- mm2.enable_coins(coins_std);
+ kdf.enable_coins(coins_std);
return true;
}
@@ -114,14 +115,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 +148,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 +203,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 +309,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 +343,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 +411,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 +426,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 +487,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());
@@ -498,6 +499,7 @@ namespace atomic_dex
system_manager_.create_system(system_manager_);
system_manager_.create_system();
system_manager_.create_system();
+ system_manager_.create_system();
system_manager_.create_system(system_manager_);
system_manager_.create_system(system_manager_);
system_manager_.create_system(
@@ -540,17 +542,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 +560,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 +573,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 +613,7 @@ namespace atomic_dex
//! Mark systems
- system_manager_.mark_system();
+ system_manager_.mark_system();
//system_manager_.mark_system();
//! Disconnect signals
@@ -621,10 +623,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 +647,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 +666,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 +795,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 +806,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;
}
@@ -910,7 +912,18 @@ namespace atomic_dex
}
} // namespace atomic_dex
-//! update checker
+//! time sync checker
+namespace atomic_dex
+{
+ timesync_checker_service* application::get_timesync_checker_service() const
+ {
+ auto ptr = const_cast(std::addressof(system_manager_.get_system()));
+ assert(ptr != nullptr);
+ return ptr;
+ }
+} // namespace atomic_dex
+
+//! zcash_params checker
namespace atomic_dex
{
zcash_params_service* application::get_zcash_params_service() const
diff --git a/src/app/app.hpp b/src/app/app.hpp
index 6ad76aafc7..6e1e93a9fe 100644
--- a/src/app/app.hpp
+++ b/src/app/app.hpp
@@ -45,11 +45,12 @@
#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"
#include "atomicdex/services/update/zcash.params.service.hpp"
+#include "atomicdex/services/sync/timesync.checker.service.hpp"
#include "atomicdex/utilities/qt.utilities.hpp"
namespace ag = antara::gaming;
@@ -75,6 +76,7 @@ namespace atomic_dex
Q_PROPERTY(settings_page* settings_pg READ get_settings_page NOTIFY settingsPageChanged)
Q_PROPERTY(qt_wallet_manager* wallet_mgr READ get_wallet_mgr NOTIFY walletMgrChanged)
Q_PROPERTY(update_checker_service* updateCheckerService READ get_update_checker_service NOTIFY updateCheckerServiceChanged)
+ Q_PROPERTY(timesync_checker_service* timesyncCheckerService READ get_timesync_checker_service NOTIFY timesyncCheckerServiceChanged)
Q_PROPERTY(zcash_params_service* zcash_params READ get_zcash_params_service NOTIFY zcashParamsServiceChanged)
//! Private function
@@ -83,7 +85,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 +119,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();
@@ -135,6 +137,7 @@ namespace atomic_dex
qt_wallet_manager* get_wallet_mgr() const;
internet_service_checker* get_internet_checker() const;
update_checker_service* get_update_checker_service() const;
+ timesync_checker_service* get_timesync_checker_service() const;
[[nodiscard]] zcash_params_service* get_zcash_params_service() const;
exporter_service* get_exporter_service() const;
@@ -180,6 +183,7 @@ namespace atomic_dex
void walletPageChanged();
void ordersChanged();
void updateCheckerServiceChanged();
+ void timesyncCheckerServiceChanged();
void zcashParamsServiceChanged();
void tradingPageChanged();
void settingsPageChanged();
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