Skip to content

Commit

Permalink
Merge branch 'KomodoPlatform-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Aklix committed Sep 28, 2021
2 parents 793576a + 92101a4 commit a9f391e
Show file tree
Hide file tree
Showing 19 changed files with 91 additions and 27 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/atomicdex-desktop-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,20 +300,23 @@ jobs:
with:
name: ${{ env.artifact_name_zstd }}
path: ./bundled/linux/${{ env.target_name_zstd }}
retention-days: 7

- name: Upload bundle artifact (Linux ZIP)
if: runner.os == 'Linux'
uses: actions/upload-artifact@v2
with:
name: ${{ env.artifact_name_zip }}
path: ./bundled/linux/${{ env.target_name_zip }}
retention-days: 7

- name: Upload bundle artifact (Linux AppImage)
if: runner.os == 'Linux'
uses: actions/upload-artifact@v2
with:
name: ${{ env.artifact_name_appimage }}
path: ./bundled/linux/${{ env.target_name_appimage }}
retention-days: 7

- name: Upload env variable for artifacts (macOS)
if: runner.os == 'macOS'
Expand All @@ -328,13 +331,15 @@ jobs:
with:
name: ${{ env.artifact_name_dmg }}
path: ./bundled/osx/${{ env.DEX_PROJECT_NAME }}.dmg
retention-days: 7

- name: Upload artifacts (MacOS installer)
if: runner.os == 'macOS'
uses: actions/upload-artifact@v2
with:
name: ${{ env.artifact_name_installer }}
path: ./bundled/osx/${{ env.DEX_PROJECT_NAME }}_installer.7z
retention-days: 7

- name: Upload env variable for artifacts (Windows)
if: runner.os == 'Windows'
Expand All @@ -349,12 +354,14 @@ jobs:
with:
name: ${{ env.artifact_name_zip }}
path: ./bundled/windows/bin.zip
retention-days: 7

- name: Upload artifacts (Windows installer)
if: runner.os == 'Windows'
uses: actions/upload-artifact@v2
with:
name: ${{ env.artifact_name_installer }}
path: ./bundled/windows/${{ env.DEX_PROJECT_NAME }}_installer.exe
retention-days: 7


8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include(vcpkg_prerequisites)
include(qt_prerequisites)
include(cfg_hash)

project(${DEX_PROJECT_NAME} LANGUAGES CXX VERSION 0.5.1)
project(${DEX_PROJECT_NAME} LANGUAGES CXX VERSION 0.5.2)
message(STATUS "${PROJECT_NAME} is version ${PROJECT_VERSION}")

include(cmake_default_options)
Expand Down Expand Up @@ -61,13 +61,13 @@ endif ()
##! We fetch our dependencies
if (APPLE)
FetchContent_Declare(mm2
URL https://github.com/KomodoPlatform/atomicDEX-API/releases/download/beta-2.1.4270/mm2-3a3f159bf-Darwin-Release.zip)
URL https://github.com/KomodoPlatform/atomicDEX-API/releases/download/beta-2.1.4315/mm2-9fe6e9402-Darwin-Release.zip)
elseif (UNIX AND NOT APPLE)
FetchContent_Declare(mm2
URL https://github.com/KomodoPlatform/atomicDEX-API/releases/download/beta-2.1.4270/mm2-3a3f159bf-Linux-Release.zip)
URL https://github.com/KomodoPlatform/atomicDEX-API/releases/download/beta-2.1.4315/mm2-9fe6e9402-Linux-Release.zip)
else ()
FetchContent_Declare(mm2
URL https://github.com/KomodoPlatform/atomicDEX-API/releases/download/beta-2.1.4270/mm2-3a3f159bf-Windows_NT-Release.zip)
URL https://github.com/KomodoPlatform/atomicDEX-API/releases/download/beta-2.1.4315/mm2-9fe6e9402-Windows_NT-Release.zip)
endif ()

#FetchContent_Declare(qmaterial URL https://github.com/KomodoPlatform/Qaterial/archive/last-clang-working-2.zip)
Expand Down
35 changes: 35 additions & 0 deletions assets/config/0.5.1-coins.json → assets/config/0.5.2-coins.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,24 @@
"active": false,
"currently_enabled": false
},
"ARRR-BEP20": {
"coin": "ARRR-BEP20",
"name": "Pirate",
"coinpaprika_id": "arrr-pirate",
"coingecko_id": "pirate-chain",
"nodes": [
"http://bsc1.cipig.net:8655",
"http://bsc2.cipig.net:8655",
"http://bsc3.cipig.net:8655"
],
"explorer_url": [
"https://bscscan.com/"
],
"type": "BEP-20",
"active": false,
"currently_enabled": false,
"wallet_only": true
},
"AXS-BEP20": {
"coin": "AXS-BEP20",
"name": "Axie Infinity",
Expand Down Expand Up @@ -1588,6 +1606,23 @@
"active": false,
"currently_enabled": false
},
"FJCB": {
"coin": "FJCB",
"name": "FJCB Fujicoin",
"coinpaprika_id": "test-coin",
"coingecko_id": "test-coin",
"nodes": [
"http://bsc1.cipig.net:8655",
"http://bsc2.cipig.net:8655",
"http://bsc3.cipig.net:8655"
],
"explorer_url": [
"https://bscscan.com/"
],
"type": "BEP-20",
"active": false,
"currently_enabled": false
},
"STFIRO": {
"coin": "STFIRO",
"name": "StakedFIRO",
Expand Down
Binary file added atomic_defi_design/assets/images/coins/arrr.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added atomic_defi_design/assets/images/coins/fjcb.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions atomic_defi_design/qml/Constants/General.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ QtObject {
}
}

function isIDO(ticker) {
let IDO_chains = []
return IDO_chains.includes(ticker)
}

// Returns the icon full path of a coin type.
// If the given coin type has spaces, it will be replaced by '-' characters.
// If the given coin type is empty, returns an empty string.
Expand Down Expand Up @@ -566,6 +571,14 @@ QtObject {
"ARPA/DAI": "BINANCE:ARPAUSD",
"ARPA/PAX": "BINANCE:ARPAUSD",
"ARPA/TRYB": "BINANCE:ARPATRY",
"ARRR/BTC": "KUCOIN:ARRRBTC",
"ARRR/USDT": "KUCOIN:ARRRUSDT",
"ARRR/BUSD": "KUCOIN:ARRRUSDT",
"ARRR/USDC": "KUCOIN:ARRRUSDT",
"ARRR/TUSD": "KUCOIN:ARRRUSDT",
"ARRR/HUSD": "KUCOIN:ARRRUSDT",
"ARRR/DAI": "KUCOIN:ARRRUSDT",
"ARRR/PAX": "KUCOIN:ARRRUSDT",
"ATOM/BTC": "BINANCE:ATOMBTC",
"ATOM/ETH": "KRAKEN:ATOMETH",
"ATOM/USDT": "COINBASE:ATOMUSD",
Expand Down
2 changes: 2 additions & 0 deletions atomic_defi_design/qml/Constants/Style.qml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ QtObject {
"ADX": "#1B75BC",
"ANKR": "#2075E8",
"ARPA": "#CCD9E2",
"ARRR": "#C7A34C",
"ATOM": "#474B6C",
"AUR": "#0A6C5E",
"AVA": "#5B567F",
Expand Down Expand Up @@ -396,6 +397,7 @@ QtObject {
"EURS": "#2F77ED",
"FIL": "#4CCAD2",
"FJC": "#00AFEC",
"FJCB": "#FFCC33",
"FUN": "#EF1C70",
"GNO": "#00B0CC",
"HOT": "#983EFF",
Expand Down
9 changes: 7 additions & 2 deletions atomic_defi_design/qml/Portfolio/AssetsList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Dex.DefaultListView

Dex.DexLabel
{
enabled: name === "Tokel"
enabled: Dex.General.isIDO(ticker)
visible: enabled
anchors.left: parent.right
anchors.leftMargin: 5
Expand Down Expand Up @@ -219,8 +219,13 @@ Dex.DefaultListView

Dex.DexTooltip
{
contentItem: Dex.DexLabel {
text: qsTr("Price provider is: %1").arg(DexString.capitalizeFirstLetter(priceProvider))
font: Dex.DexTypo.caption
color: Dex.DexTheme.colorWhite7
padding: 5
}
visible: priceProviderIconMouseArea.containsMouse
text: qsTr("Price provider is: %1").arg(DexString.capitalizeFirstLetter(priceProvider))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion atomic_defi_design/qml/Portfolio/TableDex.qml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Item {

DefaultText
{
enabled: name === "Tokel"
enabled: General.isIDO(ticker)
visible: enabled
anchors.left: parent.right
anchors.leftMargin: 5
Expand Down
2 changes: 1 addition & 1 deletion atomic_defi_design/qml/Wallet/EnableCoinModal.qml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ BasicModal {
anchors.left: typeTag.right
anchors.leftMargin: 3
anchors.verticalCenter: parent.verticalCenter
enabled: model.ticker === "TKL"
enabled: General.isIDO(ticker)
visible: enabled
type: "IDO"
}
Expand Down
4 changes: 2 additions & 2 deletions ci_tools_atomic_dex/installer/osx/config/config.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Installer>
<Name>${DEX_DISPLAY_NAME}</Name>
<Version>0.5.1</Version>
<Version>0.5.2</Version>
<Title>${DEX_DISPLAY_NAME} Installer</Title>
<ProductUrl>${DEX_WEBSITE}</ProductUrl>
<Publisher>${DEX_COMPANY}</Publisher>
Expand All @@ -14,4 +14,4 @@
<InstallerApplicationIcon>install_icon</InstallerApplicationIcon>
<Logo>install_icon.png</Logo>
<WizardStyle>Mac</WizardStyle>
</Installer>
</Installer>
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<Package>
<DisplayName>${DEX_DISPLAY_NAME}</DisplayName>
<Description>Install ${DEX_DISPLAY_NAME}.</Description>
<Version>0.5.1</Version>
<ReleaseDate>2021-09-06</ReleaseDate>
<Version>0.5.2</Version>
<ReleaseDate>2021-09-23</ReleaseDate>
<Licenses>
<License name="GNU General Public License v2.0" file="license.txt" />
</Licenses>
<Default>true</Default>
<Script>installscript.qs</Script>
</Package>
</Package>
4 changes: 2 additions & 2 deletions ci_tools_atomic_dex/installer/windows/config/config.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Installer>
<Name>@DEX_DISPLAY_NAME@</Name>
<Version>0.5.1</Version>
<Version>0.5.2</Version>
<Title>@DEX_DISPLAY_NAME@ Installer</Title>
<ProductUrl>@DEX_WEBSITE@</ProductUrl>
<Publisher>@DEX_COMPANY@</Publisher>
Expand All @@ -14,4 +14,4 @@
<InstallerApplicationIcon>install_icon</InstallerApplicationIcon>
<Logo>install_icon.png</Logo>
<WizardStyle>Mac</WizardStyle>
</Installer>
</Installer>
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<Package>
<DisplayName>${DEX_DISPLAY_NAME}</DisplayName>
<Description>Install ${DEX_DISPLAY_NAME}.</Description>
<Version>0.5.1</Version>
<ReleaseDate>2021-09-06</ReleaseDate>
<Version>0.5.2</Version>
<ReleaseDate>2021-09-23</ReleaseDate>
<Licenses>
<License name="GNU General Public License v2.0" file="license.txt" />
</Licenses>
<Default>true</Default>
<Script>installscript.qs</Script>
</Package>
</Package>
4 changes: 2 additions & 2 deletions cmake/install/macos/dex_install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ if (APPLE)
MACOSX_BUNDLE_BUNDLE_NAME "${PROJECT_NAME}"
RESOURCE ${ICON}
MACOSX_BUNDLE_ICON_FILE dex-logo
MACOSX_BUNDLE_SHORT_VERSION_STRING 0.5.1
MACOSX_BUNDLE_LONG_VERSION_STRING 0.5.1
MACOSX_BUNDLE_SHORT_VERSION_STRING 0.5.2
MACOSX_BUNDLE_LONG_VERSION_STRING 0.5.2
MACOSX_BUNDLE_INFO_PLIST "${PROJECT_SOURCE_DIR}/cmake/MacOSXBundleInfo.plist.in")
add_custom_command(TARGET ${PROJECT_NAME}
POST_BUILD COMMAND
Expand Down
2 changes: 2 additions & 0 deletions qml.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<file>atomic_defi_design/assets/images/coins/ankr.png</file>
<file>atomic_defi_design/assets/images/coins/ant.png</file>
<file>atomic_defi_design/assets/images/coins/arpa.png</file>
<file>atomic_defi_design/assets/images/coins/arrr.png</file>
<file>atomic_defi_design/assets/images/coins/atom.png</file>
<file>atomic_defi_design/assets/images/coins/aur.png</file>
<file>atomic_defi_design/assets/images/coins/ava.png</file>
Expand Down Expand Up @@ -98,6 +99,7 @@
<file>atomic_defi_design/assets/images/coins/fil.png</file>
<file>atomic_defi_design/assets/images/coins/firo.png</file>
<file>atomic_defi_design/assets/images/coins/fjc.png</file>
<file>atomic_defi_design/assets/images/coins/fjcb.png</file>
<file>atomic_defi_design/assets/images/coins/ftc.png</file>
<file>atomic_defi_design/assets/images/coins/ftm.png</file>
<file>atomic_defi_design/assets/images/coins/gleec.png</file>
Expand Down
2 changes: 1 addition & 1 deletion src/core/atomicdex/pages/qt.settings.page.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ namespace atomic_dex
"ETH"s, "ERC20"s);
case CoinTypeGadget::BEP20:
return std::make_tuple(
&::mm2::api::g_etherscan_proxy_http_client, "/api/v1/token_infos/bep20/"s + contract_address.toStdString(), "BEP20"s, "ETH"s, "BEP-20"s,
&::mm2::api::g_etherscan_proxy_http_client, "/api/v1/token_infos/bep20/"s + contract_address.toStdString(), "BEP20"s, "BNB"s, "BEP-20"s,
"BNB"s, "ERC20"s);
default:
return std::make_tuple(&::mm2::api::g_etherscan_proxy_http_client, ""s, ""s, ""s, ""s, ""s, ""s);
Expand Down
8 changes: 4 additions & 4 deletions src/core/atomicdex/version/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@ namespace atomic_dex
constexpr const char*
get_version()
{
return "0.5.1-beta";
return "0.5.2-beta";
}

constexpr int
get_num_version() noexcept
{
return 51;
return 52;
}

constexpr const char*
get_raw_version()
{
return "0.5.1";
return "0.5.2";
}

constexpr const char*
get_precedent_raw_version()
{
return "0.5.0";
return "0.5.1";
}
} // namespace atomic_dex
4 changes: 2 additions & 2 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atomicdex-desktop",
"version-string": "0.5.1",
"version-string": "0.5.2",
"dependencies": [
"entt",
"boost-multiprecision",
Expand Down Expand Up @@ -34,4 +34,4 @@
"cpprestsdk",
"taskflow"
]
}
}

0 comments on commit a9f391e

Please sign in to comment.