Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync upstream #33

Open
wants to merge 79 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
ba1371b
fix symbol/text usage for selected fiat in send form
smk762 Jan 10, 2024
2afb288
default is_testnet should be false
smk762 Jan 18, 2024
40c1248
Merge pull request #2405 from KomodoPlatform/fix-custom-evm-send
smk762 Jan 18, 2024
e70bb91
version increment
smk762 Jan 18, 2024
f3f5642
Merge pull request #2406 from KomodoPlatform/v0.7.1
smk762 Jan 19, 2024
d0a4478
Merge pull request #2401 from KomodoPlatform/fix-fiat-send-symbol
smk762 Jan 19, 2024
b98fc25
reduce price api loop freq
smk762 Feb 22, 2024
6b64127
show text when no addressbook contacts
smk762 Feb 23, 2024
5595d23
Increment version
smk762 Feb 23, 2024
66566ee
Revert "Increment version"
smk762 Feb 23, 2024
6a19c92
rm paprika api services
smk762 Mar 28, 2024
0d2974f
add pair trades 24hr stat
smk762 Mar 28, 2024
4ae90fe
tabbed orderbook / bestorders
smk762 Mar 28, 2024
f67e3be
fix missing cancel button for own orders on orderbook
smk762 Mar 29, 2024
e2e0b3f
Use layouts for orderbook columns
smk762 Mar 31, 2024
d960923
add outgoing/incoming text to orders modal
smk762 Apr 1, 2024
42aca12
rm logspam
smk762 Apr 1, 2024
955a091
exception avoidance
smk762 Apr 1, 2024
af650fd
add min/max vol to orders modal
smk762 Apr 1, 2024
4a2d105
Merge pull request #2415 from KomodoPlatform/update/defi-stats-api
smk762 Apr 1, 2024
a952f3d
open lcw when chart is clicked
smk762 Apr 1, 2024
22df4dd
allow testcoins through filter in simple dex view
smk762 Apr 1, 2024
8dbad10
Merge pull request #2416 from KomodoPlatform/add/bestorders-filter
smk762 Apr 2, 2024
cc7ba3e
isolate testcoins in bestorders
smk762 Apr 2, 2024
bdd6eff
Merge branch 'dev' into fix/simple-dex-testcoins
smk762 Apr 2, 2024
6110313
Merge branch 'dev' into fix/chart-hyperlink
smk762 Apr 2, 2024
ef89df2
Merge branch 'dev' into remove/paprika
smk762 Apr 2, 2024
155c661
Merge branch 'dev' into fix/orderbook-cancel
smk762 Apr 2, 2024
85e69fd
Merge branch 'dev' into add/order-info
smk762 Apr 2, 2024
3c908ae
update dex pro layout
smk762 Apr 2, 2024
8e6690c
refactor dex pro
smk762 Apr 2, 2024
8c2f797
add checkbox for good until canceled
smk762 Apr 3, 2024
c6d98df
apply order_type to rpc req body
smk762 Apr 4, 2024
c6148a7
adds maker order tab
smk762 Apr 4, 2024
5e7cf33
reset selected trade on tab switch
smk762 Apr 4, 2024
3f19105
Merge pull request #2414 from KomodoPlatform/remove/paprika
smk762 Apr 4, 2024
5cd7124
Merge pull request #2419 from KomodoPlatform/fix/orderbook-cancel
smk762 Apr 4, 2024
da0f8ff
Merge pull request #2421 from KomodoPlatform/fix/chart-hyperlink
smk762 Apr 4, 2024
e5f4fbb
disable orderbook in maker mode
smk762 Apr 4, 2024
2bd2120
Merge branch 'dev' into add/order-options
smk762 Apr 4, 2024
b52849a
Merge branch 'dev' into add/order-info
smk762 Apr 4, 2024
624b9c7
rm gitlab ci
smk762 Apr 5, 2024
d2fe944
tweak ci workflows
smk762 Apr 5, 2024
2bb35a2
Merge pull request #2422 from KomodoPlatform/fix/simple-dex-testcoins
smk762 Apr 6, 2024
fa1821f
Merge pull request #2420 from KomodoPlatform/add/order-info
smk762 Apr 6, 2024
229203a
add `is_vote_coin` category
smk762 Apr 6, 2024
c86019b
add button for vote info in wallet
smk762 Apr 6, 2024
d5c7358
set vote coins to wallet only
smk762 Apr 6, 2024
98dde1b
move warning to avoid overflow
smk762 Apr 6, 2024
7bd6127
Update ts for release
smk762 Apr 6, 2024
d8ce050
Merge pull request #2425 from KomodoPlatform/add/kip2024
smk762 Apr 8, 2024
3f25b37
Merge pull request #2424 from KomodoPlatform/add/order-options
smk762 Apr 8, 2024
df186bc
extend to 8dp
smk762 Jun 13, 2024
7dc8c3b
rm leaky log
smk762 Jun 13, 2024
dd552de
fix missing rates calc
smk762 Jun 13, 2024
8f4f13a
more triggers to scroll asks to bottom in pro orderbook
smk762 Jun 13, 2024
07f0396
add settings toggle for orders display after placement
smk762 Jun 13, 2024
fba9f54
add config entry
smk762 Jun 13, 2024
a5aa4b9
increment to v0.7.2
smk762 Jun 13, 2024
70c4d1c
add VOTE2024 to default enabled coins
smk762 Jun 13, 2024
900b698
update vote info link
smk762 Jun 13, 2024
cb540f8
trailing / for url
smk762 Jun 13, 2024
26ac678
fix deprecated syntax
smk762 Jun 14, 2024
f2b86e0
fix connection triggger function syntax
smk762 Jun 14, 2024
f42cd63
use windows 2019 runner image
smk762 Jun 18, 2024
d5d378b
use gh release kdf
smk762 Jun 18, 2024
f3be2a0
Merge pull request #2458 from KomodoPlatform/use-win-2019
smk762 Jun 18, 2024
2f2755f
Merge branch 'dev' into orderbook-divergence
smk762 Jun 18, 2024
bef62b7
Merge branch 'dev' into increment-version
smk762 Jun 18, 2024
60d9111
Merge branch 'dev' into pro-static-chart
smk762 Jun 18, 2024
3272082
Merge branch 'dev' into menubar-currency-change
smk762 Jun 18, 2024
3962c34
Merge branch 'dev' into price-precision
smk762 Jun 18, 2024
a7d5afe
Merge pull request #2453 from KomodoPlatform/price-precision
smk762 Jun 21, 2024
3bd495b
Merge pull request #2454 from KomodoPlatform/menubar-currency-change
smk762 Jun 21, 2024
d92d7b7
Merge pull request #2455 from KomodoPlatform/orderbook-divergence
smk762 Jun 21, 2024
7e6cda2
Merge pull request #2456 from KomodoPlatform/pro-static-chart
smk762 Jun 21, 2024
1e6c540
Merge pull request #2457 from KomodoPlatform/increment-version
smk762 Jun 21, 2024
a89f0b4
Upstream sync
levoncrypto Aug 11, 2024
e596fb9
Trigger GitHub Actions
levoncrypto Aug 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 Version: [e.g. 0.7.0]
- Komodo Wallet Desktop Version: [e.g. 0.7.2]
- Build branch: [e.g. master/dev]


Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/firodex-desktop-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
DEX_PROJECT_NAME: "firodex-desktop"
DEX_DISPLAY_NAME: "FiroDex Desktop"
DEX_COMPANY: "Firo Core Team"
DEX_VERSION: "0.7.0"
DEX_VERSION: "0.7.2"
DEX_WEBSITE: "https://firo.org/"

jobs:
Expand Down Expand Up @@ -374,7 +374,7 @@ jobs:

windows-release:
name: Win Build/Release
runs-on: windows-latest
runs-on: windows-2019

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -452,7 +452,7 @@ jobs:

windows-debug:
name: Win Build/Debug
runs-on: windows-latest
runs-on: windows-2019

steps:
- uses: actions/checkout@v2
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/firodex-desktop-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- master
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:

env:
DEX_API: "mm2_firo"
Expand All @@ -17,7 +18,7 @@ env:
DEX_PROJECT_NAME: "firodex"
DEX_DISPLAY_NAME: "Firo Dex"
DEX_COMPANY: "Firo"
DEX_VERSION: "0.7.0"
DEX_VERSION: "0.7.2"
DEX_WEBSITE: "https://firo.org/"
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/b/vcpkg_cache
VCPKG_BINARY_SOURCES: clear;x-gha,readwrite
Expand Down Expand Up @@ -68,13 +69,13 @@ jobs:
host: 'mac'

- name: windows-release
os: windows-latest
os: windows-2019
qt: '5.15.2'
type: 'Release'
host: 'windows'

- name: windows-debug
os: windows-latest
os: windows-2019
qt: '5.15.2'
type: 'Debug'
host: 'windows'
Expand Down
112 changes: 0 additions & 112 deletions .gitlab-ci.yml

This file was deleted.

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.7.0)
project(${DEX_PROJECT_NAME} LANGUAGES CXX VERSION 0.7.2)
message(STATUS "${PROJECT_NAME} is version ${PROJECT_VERSION}")

include(cmake_default_options)
Expand Down Expand Up @@ -60,13 +60,13 @@ endif ()
##! We fetch our dependencies
if (APPLE)
FetchContent_Declare(mm2
URL https://sdk.devbuilds.komodo.earth/main/mm2_b0fd99e-mac-x86-64.zip)
URL https://github.com/KomodoPlatform/komodo-defi-framework/releases/download/v2.0.0-beta/mm2-b0fd99e84-Darwin-Release.zip)
elseif (UNIX AND NOT APPLE)
FetchContent_Declare(mm2
URL https://sdk.devbuilds.komodo.earth/main/mm2_b0fd99e-linux-x86-64.zip)
URL https://github.com/KomodoPlatform/komodo-defi-framework/releases/download/v2.0.0-beta/mm2-b0fd99e84-Linux-Release.zip)
else ()
FetchContent_Declare(mm2
URL https://sdk.devbuilds.komodo.earth/main/mm2_b0fd99e-win-x86-64.zip)
URL https://github.com/KomodoPlatform/komodo-defi-framework/releases/download/v2.0.0-beta/mm2-b0fd99e84-Win64.zip)
endif ()

#FetchContent_Declare(qmaterial URL https://github.com/KomodoPlatform/Qaterial/archive/last-clang-working-2.zip)
Expand Down
1 change: 1 addition & 0 deletions assets/config/cfg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"notification_enabled": true,
"spamfilter_enabled": false,
"postorder_enabled": false,
"use_static_rpcpass": false,
"current_currency": "USD",
"current_fiat": "USD",
Expand Down
7 changes: 7 additions & 0 deletions atomic_defi_design/Dex/Addressbook/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ Item
}
}

Dex.Text {
visible: contactTable.count == 0
Layout.fillWidth: true
Layout.fillHeight: true
text: qsTr("No contacts found.")
}

// Contact table content
Dex.DefaultListView
{
Expand Down
1 change: 0 additions & 1 deletion atomic_defi_design/Dex/Components/DexGradientAppButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ DexRectangle

property bool text_left_align: false

property int minWidth: 90

property real textScale: 1

Expand Down
10 changes: 10 additions & 0 deletions atomic_defi_design/Dex/Components/PairItemBadge.qml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,21 @@ DexRectangle
property int padding: 0
property alias middle_text: middle_line.text_value
property alias bottom_text: bottom_line.text_value
property bool is_left: false
Layout.fillHeight: true
Layout.fillWidth: true
Layout.leftMargin: 10
Layout.rightMargin: 20

Dex.Text{
anchors.bottom: parent.top
anchors.bottomMargin: 5
anchors.horizontalCenter: parent.horizontalCenter
text: is_left ? "Outgoing" : "Incoming"
font: Dex.DexTypo.italic12
color: Dex.CurrentTheme.foregroundColor2
}

RowLayout
{
anchors.fill: parent
Expand Down
7 changes: 7 additions & 0 deletions atomic_defi_design/Dex/Constants/DexTypo.qml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ QtObject {
family: "Courier",
weight: Font.Normal
})
property font italic12: Qt.font({
pixelSize: 12 * fontDensity,
letterSpacing: 0.2,
family: fontFamily,
weight: Font.Normal,
italic: true
})
property font inputFieldFont: Qt.font({
pixelSize: (16 * DexTypo.fontDensity) * (Screen.pixelDensity / 160),
letterSpacing: 0.5,
Expand Down
7 changes: 6 additions & 1 deletion atomic_defi_design/Dex/Constants/General.qml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ QtObject {
return API.app.portfolio_pg.global_cfg_mdl.get_coin_info(ticker).is_faucet_coin
}

function isVoteCoin(ticker)
{
return API.app.portfolio_pg.global_cfg_mdl.get_coin_info(ticker).is_vote_coin
}

function isCoinWithMemo(ticker)
{
return API.app.portfolio_pg.global_cfg_mdl.get_coin_info(ticker).has_memos
Expand Down Expand Up @@ -566,7 +571,7 @@ QtObject {
}
return diffPrefix(received) +
(fiat === API.app.settings_pg.current_fiat ? API.app.settings_pg.current_fiat_sign : API.app.settings_pg.current_currency_sign)
+ " " + (amount < 1E5 ? formatDouble(parseFloat(amount), precision, true) : nFormatter(parseFloat(amount), 2))
+ " " + (amount < 1E5 ? formatDouble(parseFloat(amount), precision, true) : nFormatter(parseFloat(amount), precision))
}

function formatPercent(value, show_prefix=true) {
Expand Down
24 changes: 21 additions & 3 deletions atomic_defi_design/Dex/Exchange/ProView/Chart.qml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ Item
{
pair_supported = false
selected_testcoin = left_ticker
console.log("no chart, testcoin", selected_testcoin)
return
}
if (General.is_testcoin(right_ticker))
{
pair_supported = false
selected_testcoin = right_ticker
console.log("no chart, testcoin", selected_testcoin)
return
}

Expand All @@ -52,9 +54,13 @@ Item
{
pair_supported = true
symbol = rel_ticker+"-"+base_ticker
console.log("symbol", symbol)
console.log("loaded_symbol", loaded_symbol)

if (symbol === loaded_symbol && !force)
{
webEngineViewPlaceHolder.visible = true
console.log("symbol === loaded_symbol, ok")
return
}
chart_html = `
Expand All @@ -64,13 +70,14 @@ Item
transform: scale(${Math.min(scale_x, scale_y)});
transform-origin: top left;
}
a { pointer-events: none; }
</style>
<script defer src="https://www.livecoinwatch.com/static/lcw-widget.js"></script>
<div class="livecoinwatch-widget-1" lcw-coin="${rel_ticker}" lcw-base="${base_ticker}" lcw-secondary="USDC" lcw-period="w" lcw-color-tx="${Dex.CurrentTheme.foregroundColor}" lcw-color-pr="#58c7c5" lcw-color-bg="${Dex.CurrentTheme.comboBoxBackgroundColor}" lcw-border-w="0" lcw-digits="8" ></div>
`
}
}
// console.log(chart_html)
console.log(chart_html)

if (chart_html == "")
{
Expand All @@ -84,6 +91,7 @@ Item
if (!symbol)
{
pair_supported = false
console.log("pair not supported", pair, pair_reversed)
return
}

Expand Down Expand Up @@ -165,7 +173,7 @@ Item
DefaultText
{
visible: pair_supported
text_value: qsTr("Loading market data") + "..."
text_value: qsTr("Loading pair chart data") + "..."
}

DefaultText
Expand All @@ -190,7 +198,7 @@ Item
id: webEngineViewPlaceHolder
anchors.fill: parent
anchors.centerIn: parent
visible: false
visible: true

Component.onCompleted:
{
Expand Down Expand Up @@ -219,6 +227,16 @@ Item
}
}

MouseArea {
id: chart_mousearea
anchors.fill: webEngineViewPlaceHolder
onClicked: {
if (webEngineView.visible) {
Qt.openUrlExternally("https://www.livecoinwatch.com")
}
}
}

Connections
{
target: app
Expand Down
Loading
Loading