-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wallet): transaction settings component added
- Loading branch information
1 parent
51092cc
commit 3b9e852
Showing
6 changed files
with
491 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import QtQuick 2.15 | ||
import QtQuick.Controls 2.15 | ||
|
||
import StatusQ.Controls 0.1 | ||
import StatusQ.Core.Theme 0.1 | ||
|
||
import AppLayouts.Wallet.views 1.0 | ||
|
||
import utils 1.0 | ||
|
||
import Storybook 1.0 | ||
|
||
SplitView { | ||
id: root | ||
|
||
SplitView { | ||
SplitView.fillWidth: true | ||
SplitView.fillHeight: true | ||
|
||
orientation: Qt.Vertical | ||
|
||
Rectangle { | ||
SplitView.fillWidth: true | ||
SplitView.fillHeight: true | ||
color: Theme.palette.baseColor3 | ||
|
||
TransactionSettings { | ||
id: txSettings | ||
anchors.centerIn: parent | ||
|
||
currentBaseFee: "8.2" | ||
currentSuggestedMinPriorityFee: "0.06" | ||
currentSuggestedMaxPriorityFee: "5.1" | ||
currentGasAmount: "31500" | ||
currentNonce: 21 | ||
|
||
normalPrice: "1.45 EUR" | ||
normalTime: "~60s" | ||
fastPrice: "1.65 EUR" | ||
fastTime: "~40s" | ||
urgentPrice: "1.85 EUR" | ||
urgentTime: "~15s" | ||
|
||
customPrice: "1.45 EUR" | ||
customTime: "~60s" | ||
|
||
customBaseFee: "6.6" | ||
customPriorityFee: "7.7" | ||
customGasAmount: "35000" | ||
customNonce: "22" | ||
|
||
onConfirmClicked: { | ||
logs.logEvent("confirm clicked...") | ||
logs.logEvent(`selected fee mode: ${txSettings.selectedFeeMode}`) | ||
if (selectedFeeMode === StatusFeeOption.Type.Custom) { | ||
logs.logEvent(`selected customBaseFee...${txSettings.customBaseFee}`) | ||
logs.logEvent(`selected customPriorityFee...${txSettings.customPriorityFee}`) | ||
logs.logEvent(`selected customGasAmount...${txSettings.customGasAmount}`) | ||
logs.logEvent(`selected customNonce...${txSettings.customNonce}`) | ||
} | ||
} | ||
} | ||
} | ||
|
||
Logs { | ||
id: logs | ||
} | ||
|
||
LogsView { | ||
clip: true | ||
|
||
SplitView.preferredHeight: 150 | ||
SplitView.fillWidth: true | ||
|
||
logText: logs.logText | ||
} | ||
} | ||
|
||
Pane { | ||
SplitView.preferredWidth: 300 | ||
|
||
} | ||
} | ||
|
||
// category: Panel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.