Skip to content

qt: label asset transactions by type in the history list (#382)#458

Open
JSanchezFDZ wants to merge 1 commit into
Raptor3um:developfrom
JSanchezFDZ:fix/gui-asset-tx-type-naming
Open

qt: label asset transactions by type in the history list (#382)#458
JSanchezFDZ wants to merge 1 commit into
Raptor3um:developfrom
JSanchezFDZ:fix/gui-asset-tx-type-naming

Conversation

@JSanchezFDZ

Copy link
Copy Markdown

Problem

createasset, mintasset and updateasset transactions appear in the wallet's
transaction list with a generic type — typically "Payment to yourself" when
they touch the user's own wallet — so they are indistinguishable from ordinary
sends (issue #382).

Change

  • Add AssetCreate / AssetMint / AssetUpdate record types.
  • After decomposeTransaction, tag asset special transactions
    (TRANSACTION_NEW_ASSET / TRANSACTION_MINT_ASSET / TRANSACTION_UPDATE_ASSET)
    with the matching type. Amount decomposition is left untouched; only the
    displayed type label and colour change.
  • Render them as "Create Asset" / "Mint Asset" / "Update Asset" in
    formatTxType, and colour them like other internal operations.

Asset transfers (ordinary transactions carrying asset outputs) are left as a
possible follow-up since they have no dedicated tx type to key off.

Testing

Built with --with-gui=qt5 --enable-wallet: transactionrecord.cpp,
transactiontablemodel.cpp and the asset dialogs compile cleanly (uic/moc + CXX)
with the new enum values handled in the type switches.

Closes #382.

createasset, mintasset and updateasset transactions were shown in the
transaction list with a generic type — typically "Payment to yourself" when
they touched the user's own wallet — so they were indistinguishable from
ordinary sends.

Add AssetCreate/AssetMint/AssetUpdate record types, tag asset special
transactions (TRANSACTION_NEW_ASSET / TRANSACTION_MINT_ASSET /
TRANSACTION_UPDATE_ASSET) with them after decomposition, and render them as
"Create Asset" / "Mint Asset" / "Update Asset". Amount decomposition is
untouched; only the displayed type label and colour change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant