Skip to content

feat(ui): answer chain.getChainInfo from the host's configured chain set - #153

Open
valentinfernandez1 wants to merge 2 commits into
mainfrom
vf/supported-chains-callback
Open

feat(ui): answer chain.getChainInfo from the host's configured chain set#153
valentinfernandez1 wants to merge 2 commits into
mainfrom
vf/supported-chains-callback

Conversation

@valentinfernandez1

@valentinfernandez1 valentinfernandez1 commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

What

Adds the one host callback behind chain.getChainInfo: supportedChains returns the chain set the core resolves identifiers against, so products discover genesis hashes instead of hard-coding them. The set is derived from getActiveServicesConfig().

Also bumps @parity/truapi 0.8.0 and @parity/truapi-host 0.5.0 to be able to use the getChainInfo call.

Testing

Use https://truapi-playground.dotli.dev for testing the method as the update has not landed on product-sdk yet, so products not calling directly to the truapi method will not be able to use it just yet

@valentinfernandez1
valentinfernandez1 force-pushed the vf/supported-chains-callback branch from a105731 to d07018b Compare August 7, 2026 17:55
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​parity/​truapi-host@​0.4.0 ⏵ 0.5.079 +21009596 +1100
Updated@​parity/​truapi@​0.7.0 ⏵ 0.8.087 +7100100 +198 +1100

View full report

@github-actions

Copy link
Copy Markdown
Contributor

⚡ Performance Report

⚠️ No baseline found on main. This PR's results are recorded but cannot be compared.
Merge to main to establish a baseline.

@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Report

Chunks over 500 KB:

File Raw Brotli Gzip
host/assets/paseo.smol-DboPaEh1.json 1.84 MB 941.7 KB 1019.4 KB
host/assets/paseo-people-next.smol.json 3.36 MB 1.68 MB 1.82 MB
host/assets/smoldot.js 2.98 MB 2.22 MB (+63 B) 2.23 MB
host/assets/smoldot_worker.js 2.95 MB 2.21 MB 2.22 MB
host/assets/wasm/web/truapi_server_bg.wasm 2.07 MB (+54.4 KB) 644.7 KB (+17.1 KB) 850.4 KB (+20.5 KB)
Total 14.37 MB (+68.7 KB) 8.00 MB (+21.9 KB) (-44%) 8.49 MB (+25.4 KB)
All files
File Raw Brotli Gzip
host/.well-known/apple-app-site-association 738 B 738 B 738 B
host/.well-known/assetlinks.json 1.3 KB 317 B 391 B
host/assets/bridge.js 69.5 KB (+481 B) 19.0 KB (+142 B) 21.9 KB (+151 B)
host/assets/browser.js 22.9 KB 7.6 KB (+19 B) 8.6 KB
host/assets/client.js 100.1 KB 29.4 KB (+9 B) 32.4 KB (+24 B)
host/assets/dist.js 39.0 KB (+11 B) 12.8 KB (-56 B) 14.5 KB (-24 B)
host/assets/dotli-debug-bus.js 710 B 710 B 710 B
host/assets/get-sync-provider.js 2.8 KB 1.1 KB (-1 B) 1.2 KB (+2 B)
host/assets/hex.js 154 B 154 B 154 B
host/assets/index.js 193.1 KB (+3.0 KB) 48.4 KB (+808 B) 57.8 KB (+869 B)
host/assets/index.css 46.3 KB 7.3 KB 8.1 KB
host/assets/manifest.js 22.5 KB 7.2 KB (-32 B) 8.0 KB (+1 B)
host/assets/panel.js 76.2 KB 20.5 KB (-9 B) 23.2 KB (+5 B)
host/assets/paseo.smol-DboPaEh1.json 1.84 MB 941.7 KB 1019.4 KB
host/assets/paseo-people-next.smol.json 3.36 MB 1.68 MB 1.82 MB
host/assets/paseo.smol.json 22.3 KB 5.1 KB 5.9 KB
host/assets/previewnet.smol.json 179.0 KB 13.8 KB 34.0 KB
host/assets/resolve.js 156 B 156 B 156 B
host/assets/rpc-resolve.js 2.4 KB 1.0 KB (+15 B) 1.2 KB
host/assets/smoldot.js 2.98 MB 2.22 MB (+63 B) 2.23 MB
host/assets/smoldot_worker.js 2.95 MB 2.21 MB 2.22 MB
host/assets/spans.js 2.6 KB 1.1 KB 1.3 KB
host/assets/src.js 1.8 KB 858 B (-2 B) 946 B (+2 B)
host/assets/styles.css 15.3 KB 3.3 KB 3.8 KB
host/assets/wasm/web/README.md 11.7 KB (+214 B) 11.7 KB (+214 B) 11.7 KB (+214 B)
host/assets/wasm/web/package.json 371 B 371 B 371 B
host/assets/wasm/web/truapi_server.d.ts 8.1 KB (+1.2 KB) 8.1 KB (+1.2 KB) 8.1 KB (+1.2 KB)
host/assets/wasm/web/truapi_server.js 38.2 KB (+2.6 KB) 6.6 KB (+349 B) 7.6 KB (+397 B)
host/assets/wasm/web/truapi_server_bg.wasm 2.07 MB (+54.4 KB) 644.7 KB (+17.1 KB) 850.4 KB (+20.5 KB)
host/assets/wasm/web/truapi_server_bg.wasm.d.ts 3.0 KB (+446 B) 3.0 KB (+446 B) 3.0 KB (+446 B)
host/assets/web.js 13.3 KB (+76 B) 3.6 KB (+26 B) 4.0 KB (+27 B)
host/assets/worker-runtime.js 6.4 KB (+6.3 KB) 1.7 KB (+1.5 KB) 1.8 KB (+1.7 KB)
host/assets/worker-runtime.js 106 B 106 B 106 B
host/assets/ws.js 23.1 KB 7.5 KB (-1 B) 8.2 KB (+2 B)
host/dotli.png 11.5 KB 11.5 KB 11.5 KB
host/favicon.svg 1.8 KB 1.8 KB 1.8 KB
host/host-sw.js 2.7 KB 1.1 KB (-7 B) 1.2 KB (-3 B)
host/icon-192.png 12.5 KB 12.5 KB 12.5 KB
host/icon-512.png 42.8 KB 42.8 KB 42.8 KB
host/index.html 19.9 KB 4.4 KB (+12 B) 5.4 KB (+1 B)
host/manifest.webmanifest 441 B 441 B 441 B
host/workbox.js 14.8 KB 4.6 KB 5.1 KB
sandbox/app-sw.js 9.6 KB 3.1 KB (+2 B) 3.5 KB (+1 B)
sandbox/assets/bitswap-bridge.js 840 B 840 B 840 B
sandbox/assets/fetch.js 3.4 KB 1.2 KB 1.4 KB (-1 B)
sandbox/assets/index.css 46.3 KB 7.3 KB 8.1 KB
sandbox/assets/index.js 118.0 KB 33.7 KB (+66 B) 39.6 KB (+1 B)
sandbox/favicon.svg 1.8 KB 1.8 KB 1.8 KB
sandbox/index.html 1.7 KB 578 B (-3 B) 785 B (-1 B)
Total 14.37 MB (+68.7 KB) 8.00 MB (+21.9 KB) (-44%) 8.49 MB (+25.4 KB)

Commit: 722e852

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ E2E Product suite skipped — Nova signing bot is unavailable.

This is a Nova-side outage and not a dot.li test failure. Re-run
from the Actions tab once the bot recovers.

Logs: https://github.com/paritytech/dotli-community/actions/runs/31507821605

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant