lez-programs/apps/amm/qml/components/liquidity/AmmTokenAccessory.qml
Ricardo Guilherme Schmidt 21f6d818a7
feat(amm-ui): complete new position liquidity flow
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.
2026-07-15 15:07:36 -03:00

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()
}
}