mirror of
https://github.com/logos-co/logos-evm-token-list-module.git
synced 2026-08-27 12:21:09 +00:00
ci/self-hosted-linux
Lets the suite be re-run against any ref without pushing a commit — main's HEAD had no doc-test run after the SDK bump merged precisely because there was no way to trigger one. The publish step previously assumed every non-PR run was `main` and wrote its report to the `main/` path. With manual dispatch that would let a run on any branch overwrite the main report, so a dispatched run on a non-main ref now publishes under its own `branch-<name>/` directory (and the root index lists it). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
logos-evm-token-list-module
A Logos core module (Rust, rust-first cdylib) that manages token lists for
the Logos multi-chain EVM wallet: download, parse, and merge
Uniswap token-lists plus a user "custom"
list, deduped per chain.
Downloads go through the same fail-closed proxy chokepoint as eth_rpc_module
(src/proxy.rs), so list fetches are proxyable/Tor-ready and refuse to fall back
to the clear when a proxy is required.
Contract (TokenListModule)
configure({listUrls, proxy?, proxyRequired?, refreshSecs?}), refresh_now,
get_tokens(chainId), get_all_tokens, add_custom_token,
remove_custom_token, get_custom_tokens, get_list_sources. Event:
tokens_updated(chainId). Periodic refresh is driven on demand (the wallet
backend schedules it).
Build & test
cd rust-lib && cargo test --no-default-features # parse/merge/custom + mock fetch + fail-closed
nix build .#install # -> result/modules/token_list_module/
Description
Logos EVM wallet token-lists: download/parse/merge Uniswap lists + custom (proxyable, fail-closed).
1.7 MiB
Languages
Rust
91.4%
Shell
4%
Nix
2.9%
CMake
1.7%