Remove static networks#1044
Conversation
|
elf sizes
Stack consumption summary (clone_app_stack_consumption)
Stack consumption summary
|
779edc1 to
1797a5b
Compare
Code Coverage OverviewLanguages: C C / code-coverage/unittestsThe overall coverage in the branch is 93%. Coverage data for the branch is not yet available. Show a code coverage summary of the most covered files.
Updated |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1044 +/- ##
===========================================
- Coverage 87.73% 87.73% -0.01%
===========================================
Files 92 92
Lines 7259 7257 -2
Branches 1620 1618 -2
===========================================
- Hits 6369 6367 -2
Misses 468 468
Partials 422 422
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Drop the hardcoded NETWORK_MAPPING table and resolve networks solely from dynamically loaded ones. Simplify the lookup API by removing the now-useless `dynamic` parameter. The app's own (build-time) chain is still handled via the build config: name from APPNAME, ticker from chain_config, and it is always considered Ethereum-compatible (so trusted names on the native chain keep working).
The net_icons.gen.{c,h} generator parsed the now-removed NETWORK_MAPPING and
produced an empty array. Remove the generation (Makefile rule + gen_networks.py)
and unify network_icons.c: return the dynamic network icon, else the app's own
icon for its native chain.
In swap (library) mode the dynamic network list is wiped by the signature BSS reset, so the device validates the swapped chain's ticker against the networks provided before the swap and the app's own chain config: - parse_swap_config: fees asset info stays optional (the CAL omits it for ERC20 swaps on the native chain, where the fee is the native currency). - get_asset_info_on_network: when the swap config omits the fee asset, fall back to the chain config ticker instead of the removed static table. Non-native chains (e.g. BSC) must now be provided as dynamic networks before the swap, like any other network. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1797a5b to
3969537
Compare
Code coverage reportPer-file coverage
|
Description