2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
2020-06-17 16:02:33 +00:00
|
|
|
import "../../../../imports"
|
|
|
|
import "../../../../shared"
|
|
|
|
import "./"
|
|
|
|
|
|
|
|
ModalPopup {
|
|
|
|
id: popup
|
|
|
|
title: qsTr("Transaction Details")
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: confirmations
|
|
|
|
anchors.left: parent.left
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.smallPadding
|
2020-06-17 16:02:33 +00:00
|
|
|
anchors.top: parent.top
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.smallPadding
|
2020-06-17 16:02:33 +00:00
|
|
|
anchors.right: parent.right
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.rightMargin: Style.current.smallPadding
|
|
|
|
height: children[0].height + children[1].height + Style.current.smallPadding
|
2020-06-17 16:02:33 +00:00
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: confirmationsCount
|
|
|
|
text: qsTr("9999 Confirmations")
|
|
|
|
font.pixelSize: 14
|
|
|
|
}
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: confirmationsInfo
|
|
|
|
text: qsTr("When the transaction has 12 confirmations you can consider it settled.")
|
|
|
|
font.pixelSize: 14
|
|
|
|
font.weight: Font.Medium
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.darkGrey
|
2020-06-17 16:02:33 +00:00
|
|
|
anchors.top: confirmationsCount.bottom
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.smallPadding
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Separator {
|
|
|
|
id: separator
|
|
|
|
anchors.top: confirmations.bottom
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
anchors.left: parent.left
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: -Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
anchors.right: parent.right
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.rightMargin: -Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: block
|
|
|
|
anchors.top: separator.bottom
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
anchors.left: parent.left
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.smallPadding
|
2020-06-17 16:02:33 +00:00
|
|
|
height: children[0].height
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: labelBlock
|
|
|
|
text: qsTr("Block")
|
|
|
|
font.pixelSize: 14
|
|
|
|
font.weight: Font.Medium
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.darkGrey
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: valueBlock
|
|
|
|
text: blockNumber
|
|
|
|
font.pixelSize: 14
|
|
|
|
anchors.left: labelBlock.right
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: hash
|
|
|
|
anchors.top: block.bottom
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
anchors.left: parent.left
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.smallPadding
|
2020-06-17 16:02:33 +00:00
|
|
|
height: children[0].height
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: labelHash
|
|
|
|
text: qsTr("Hash")
|
|
|
|
font.pixelSize: 14
|
|
|
|
font.weight: Font.Medium
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.darkGrey
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: valueHash
|
|
|
|
text: blockHash
|
2020-07-02 15:14:31 +00:00
|
|
|
font.family: Style.current.fontHexRegular.name
|
2020-06-17 16:02:33 +00:00
|
|
|
width: 160
|
|
|
|
elide: Text.ElideMiddle
|
|
|
|
font.pixelSize: 14
|
|
|
|
anchors.left: labelHash.right
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: from
|
|
|
|
anchors.top: hash.bottom
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
anchors.left: parent.left
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.smallPadding
|
2020-06-17 16:02:33 +00:00
|
|
|
height: children[0].height
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: labelFrom
|
|
|
|
text: qsTr("From")
|
|
|
|
font.pixelSize: 14
|
|
|
|
font.weight: Font.Medium
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.darkGrey
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: valueFrom
|
|
|
|
text: fromAddress
|
2020-07-02 15:14:31 +00:00
|
|
|
font.family: Style.current.fontHexRegular.name
|
2020-06-17 16:02:33 +00:00
|
|
|
width: 160
|
|
|
|
elide: Text.ElideMiddle
|
|
|
|
font.pixelSize: 14
|
|
|
|
anchors.left: labelFrom.right
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: toItem
|
|
|
|
anchors.top: from.bottom
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
anchors.left: parent.left
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.smallPadding
|
2020-06-17 16:02:33 +00:00
|
|
|
height: children[0].height
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: labelTo
|
|
|
|
text: qsTr("To")
|
|
|
|
font.pixelSize: 14
|
|
|
|
font.weight: Font.Medium
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.darkGrey
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: valueTo
|
|
|
|
text: to
|
|
|
|
width: 160
|
|
|
|
elide: Text.ElideMiddle
|
|
|
|
font.pixelSize: 14
|
|
|
|
anchors.left: labelTo.right
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: gasLimitItem
|
|
|
|
anchors.top: toItem.bottom
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
anchors.left: parent.left
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.smallPadding
|
2020-06-17 16:02:33 +00:00
|
|
|
height: children[0].height
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: labelGasLimit
|
|
|
|
text: qsTr("Gas limit")
|
|
|
|
font.pixelSize: 14
|
|
|
|
font.weight: Font.Medium
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.darkGrey
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: valueGasLimit
|
|
|
|
text: gasLimit
|
|
|
|
font.pixelSize: 14
|
|
|
|
anchors.left: labelGasLimit.right
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: gasPriceItem
|
|
|
|
anchors.top: gasLimitItem.bottom
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
anchors.left: parent.left
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.smallPadding
|
2020-06-17 16:02:33 +00:00
|
|
|
height: children[0].height
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: labelGasPrice
|
|
|
|
text: qsTr("Gas price")
|
|
|
|
font.pixelSize: 14
|
|
|
|
font.weight: Font.Medium
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.darkGrey
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: valueGasPrice
|
|
|
|
text: gasPrice
|
|
|
|
font.pixelSize: 14
|
|
|
|
anchors.left: labelGasPrice.right
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: gasUsedItem
|
|
|
|
anchors.top: gasPriceItem.bottom
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
anchors.left: parent.left
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.smallPadding
|
2020-06-17 16:02:33 +00:00
|
|
|
height: children[0].height
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: labelGasUsed
|
|
|
|
text: qsTr("Gas used")
|
|
|
|
font.pixelSize: 14
|
|
|
|
font.weight: Font.Medium
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.darkGrey
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: valueGasUsed
|
|
|
|
text: gasUsed
|
|
|
|
font.pixelSize: 14
|
|
|
|
anchors.left: labelGasUsed.right
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: nonceItem
|
|
|
|
anchors.top: gasUsedItem.bottom
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
anchors.left: parent.left
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.smallPadding
|
2020-06-17 16:02:33 +00:00
|
|
|
height: children[0].height
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: labelNonce
|
|
|
|
text: qsTr("Nonce")
|
|
|
|
font.pixelSize: 14
|
|
|
|
font.weight: Font.Medium
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.darkGrey
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-17 16:02:33 +00:00
|
|
|
id: valueNonce
|
|
|
|
text: nonce
|
|
|
|
font.pixelSize: 14
|
|
|
|
anchors.left: labelNonce.right
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.leftMargin: Style.current.padding
|
2020-06-17 16:02:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|