Skip to content

Desktop - #193

Merged
ryleedavis merged 48 commits into
stagingfrom
desktop
Nov 1, 2022
Merged

ryleedavis merged 48 commits into
stagingfrom
desktop

Conversation

@julian-CStack

Copy link
Copy Markdown
Collaborator

No description provided.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #193 (6ebe33c) into staging (38c6af5) will decrease coverage by 1.12%.
The diff coverage is 0.83%.

❗ Current head 6ebe33c differs from pull request most recent head 1d47832. Consider uploading reports for the commit 1d47832 to get more accurate results

@@             Coverage Diff             @@
##           staging     #193      +/-   ##
===========================================
- Coverage    19.89%   18.77%   -1.13%     
===========================================
  Files          378      394      +16     
  Lines        42300    43998    +1698     
===========================================
- Hits          8416     8260     -156     
- Misses       33884    35738    +1854     
Impacted Files Coverage Δ
lib/models/transaction_filter.dart 0.00% <0.00%> (ø)
...covery_phrase_view/sub_widgets/mnemonic_table.dart 0.00% <0.00%> (ø)
...y_phrase_view/sub_widgets/mnemonic_table_item.dart 0.00% <0.00%> (ø)
...eive_view/generate_receiving_uri_qr_code_view.dart 0.00% <0.00%> (ø)
lib/pages/send_view/confirm_transaction_view.dart 0.00% <0.00%> (ø)
..._view/sub_widgets/building_transaction_dialog.dart 0.00% <0.00%> (ø)
lib/pages/stack_privacy_calls.dart 0.00% <0.00%> (ø)
...ges/wallet_view/sub_widgets/transactions_list.dart 0.00% <0.00%> (ø)
...wallet_view/sub_widgets/wallet_refresh_button.dart 0.00% <0.00%> (ø)
.../wallet_view/transaction_views/edit_note_view.dart 0.00% <0.00%> (ø)
... and 54 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ryleedavis
ryleedavis merged commit 16eae0a into staging Nov 1, 2022
vsnation added a commit to vsnation/campfire-beam that referenced this pull request Oct 10, 2026
…es it

Home's token list drew every Confidential Asset as two letters on a
coloured circle, and showed the DEX liquidity tokens (cypherstack#175, cypherstack#192, cypherstack#193)
as "Unnamed asset". Their names came only from each asset's metadata,
which for a liquidity token is the contract's "Amm Liquidity Token
0-174-2", when it arrived at all.

The web wallet now uses the desktop app's catalogue, ported line for
line (lib/meta.js, lib/lookalike.js, lib/lp_tokens.js):
- verified assets show Campfire's name, ticker and icon;
- a liquidity token is named after its pool, "BEAM/FOMO LP", with
  "Pool share · 1% fee" under it and its pool's two icons. Only the DEX
  contract makes an asset a liquidity token: its pool list ships with
  the app (98 pools, cross-checked with the asset list) and every pool
  list the app reads adds newer pools, never a name;
- any other asset shows its cleaned on-chain name with its number and
  the BEAM desktop wallet's generic icon for that number, and a copy of
  a verified asset gets the desktop's warning.

Labels stay current: when metadata or a pool arrives, Home, Send, Swap,
Activity and the approval sheets all show the new name. Money screens
write an unverified ticker with its number ("5 PEPE cypherstack#94"), as the
desktop does.

The icons are the desktop app's files, byte for byte, bundled in the
signed release and never fetched (img/assets, NOTICE.txt). A unit test
pins each one here and in the desktop's folder.

asset_parity.test.mjs compares the result with the desktop's own code
for every asset on mainnet (203) and 61 edge cases, with and without
metadata: no differences. tools/asset_parity/run.mjs refreshes that
data. test/e2e/asset_icons.test.mjs checks the list in Chrome on a
throwaway mainnet wallet. Documented in the project notes, section 3f.
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.

3 participants