mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-19 13:29:56 +00:00
Implement one create-pool and add-liquidity workflow. Add searchable token resolution, direct opening-price and deposit editing, optimistic pool activation, and base58 transaction IDs. Isolate network, wallet, AMM client, and runtime boundaries. Stabilize quote, submission, refresh, and pool-probe state while consolidating liquidity tests and removing obsolete liquidity paths.
47 lines
1.2 KiB
QML
47 lines
1.2 KiB
QML
pragma ComponentBehavior: Bound
|
|
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
|
|
ColumnLayout {
|
|
id: root
|
|
|
|
required property var theme
|
|
property bool hasToken: false
|
|
property string tokenColor: root.theme.colors.noTokenCircle
|
|
property string tokenLetter: ""
|
|
property string tokenText: qsTr("Select token")
|
|
property string balance: ""
|
|
property string accessibleName: qsTr("Select token")
|
|
property bool invalid: false
|
|
|
|
signal clicked
|
|
|
|
spacing: 2
|
|
|
|
Text {
|
|
Layout.fillWidth: true
|
|
visible: root.balance.length > 0
|
|
text: qsTr("Balance %1").arg(root.balance)
|
|
color: root.theme.colors.textSecondary
|
|
font.pixelSize: 10
|
|
horizontalAlignment: Text.AlignRight
|
|
elide: Text.ElideRight
|
|
}
|
|
|
|
AmmTokenSelectButton {
|
|
objectName: "tokenSelectButton"
|
|
Layout.fillWidth: true
|
|
theme: root.theme
|
|
enabled: root.enabled
|
|
invalid: root.invalid
|
|
hasToken: root.hasToken
|
|
tokenColor: root.tokenColor
|
|
tokenLetter: root.tokenLetter
|
|
text: root.tokenText
|
|
maximumTextWidth: 112
|
|
Accessible.name: root.accessibleName
|
|
onClicked: root.clicked()
|
|
}
|
|
}
|