Skip to content

feat(ui): pass the Asset Hub genesis to the truapi host runtime - #180

Open
filip-parity wants to merge 5 commits into
mainfrom
filip/runtime-config-assethub
Open

feat(ui): pass the Asset Hub genesis to the truapi host runtime#180
filip-parity wants to merge 5 commits into
mainfrom
filip/runtime-config-assethub

Conversation

@filip-parity

@filip-parity filip-parity commented Aug 20, 2026

Copy link
Copy Markdown

TL;DR

The truapi host runtime resolves session usernames from the dotNS contracts on Asset Hub (paritytech/host-rust-core#426) and its runtime config requires assetHub.genesisHash. The value comes from getActiveServicesConfig().assethub.genesis, next to the People and Bulletin entries.

Typed as an intersection with an optional assetHub so this compiles against @parity/truapi-host releases from before the field existed; fold the field into the plain literal once the dependency floor includes it.

Requested in paritytech/host-rust-core#426 review; that PR bumps the hosts/dotli submodule to this commit.

The host resolves session usernames from the dotNS contracts on Asset Hub
and its runtime config requires the chain's genesis (runtimeConfig.assetHub).
Typed as an intersection so the package floor without the field still
compiles; fold it into the literal once the dependency carries it.
@github-actions

github-actions Bot commented Aug 20, 2026

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 3.05 MB 2.27 MB (-440 B) 2.28 MB
host/assets/smoldot_worker.js 3.02 MB 2.26 MB 2.27 MB
host/assets/wasm/web/truapi_server_bg.wasm 7.06 MB 5.25 MB 5.52 MB
Total 19.39 MB (+6.3 KB) 12.72 MB (+1.2 KB) (-34%) 13.26 MB (+1.7 KB)
All files
File Raw Brotli Gzip
host/.well-known/apple-app-site-association 1.0 KB 1.0 KB 1.0 KB
host/.well-known/assetlinks.json 2.1 KB 343 B 427 B
host/assets/bridge.js 69.5 KB (+44 B) 19.0 KB (-14 B) 21.9 KB (+7 B)
host/assets/browser.js 22.9 KB 7.6 KB 8.6 KB (-1 B)
host/assets/client.js 100.1 KB 29.4 KB (-52 B) 32.4 KB (+1 B)
host/assets/dist.js 39.0 KB 12.9 KB (+20 B) 14.6 KB (+1 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.2 KB (+1 B)
host/assets/hex.js 154 B 154 B 154 B
host/assets/index.css 47.1 KB 7.5 KB 8.4 KB
host/assets/index.js 203.5 KB 51.3 KB (+32 B) 61.1 KB (-2 B)
host/assets/manifest.js 22.6 KB 7.2 KB (+7 B) 8.0 KB (+2 B)
host/assets/panel.js 76.2 KB 20.6 KB (+14 B) 23.2 KB (-1 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 23.4 KB 5.4 KB 6.2 KB
host/assets/previewnet.smol.json 43.8 KB 11.2 KB 9.5 KB
host/assets/resolve.js 156 B 156 B 156 B
host/assets/rpc-resolve.js 2.5 KB 1.0 KB (+13 B) 1.2 KB (+3 B)
host/assets/smoldot.js 3.05 MB 2.27 MB (-440 B) 2.28 MB
host/assets/smoldot_worker.js 3.02 MB 2.26 MB 2.27 MB
host/assets/spans.js 2.6 KB 1.1 KB 1.3 KB
host/assets/src.js 1.8 KB 861 B (+17 B) 948 B (+5 B)
host/assets/styles.css 15.3 KB 3.3 KB 3.8 KB
host/assets/wasm/web/README.md 11.9 KB 11.9 KB 11.9 KB
host/assets/wasm/web/package.json 371 B 371 B 371 B
host/assets/wasm/web/truapi_server.d.ts 8.1 KB 8.1 KB 8.1 KB
host/assets/wasm/web/truapi_server.js 38.2 KB 6.6 KB 7.6 KB
host/assets/wasm/web/truapi_server_bg.wasm 7.06 MB 5.25 MB 5.52 MB
host/assets/wasm/web/truapi_server_bg.wasm.d.ts 3.0 KB 3.0 KB 3.0 KB
host/assets/web.js 13.3 KB 3.6 KB (-8 B) 4.0 KB (+1 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 (-3 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 (-16 B) 1.2 KB (-5 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 24.4 KB 4.8 KB (+2 B) 5.8 KB
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.7 KB 3.2 KB (+1 B) 3.6 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 B) 1.4 KB
sandbox/assets/index.css 47.1 KB 7.5 KB 8.4 KB
sandbox/assets/index.js 120.4 KB 34.4 KB (+42 B) 40.4 KB (+2 B)
sandbox/favicon.svg 1.8 KB 1.8 KB 1.8 KB
sandbox/index.html 1.7 KB 582 B (+3 B) 786 B
Total 19.39 MB (+6.3 KB) 12.72 MB (+1.2 KB) (-34%) 13.26 MB (+1.7 KB)

Commit: 7798458

@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.

bun audit flags GHSA-ggr8-5vv4-36mx (stack exhaustion on recursive object
graphs) in deepmerge-ts <8, reached through polkadot-api. Pinned in the
overrides block like the other audit pins; the resolver suite passes on 8.
@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

E2E Product suite failed on 0634bfc8723ed1aaa422813a817a3e68f3bbc67a — 23 passed, 38 failed, 1 skipped.

Failed tests:

  • Product is ready
  • Get Product Account
  • Product Signer
  • Account Connection Status
  • Product Account Alias
  • Request Login
  • Get User Identity
  • Subscribe Theme
  • Derive Entropy
  • Well-Known Chains
  • StatementStore Allowance
  • Bulletin Allowance
  • Smart-Contract Allowance
  • All Allowances
  • String Write & Read
  • Bytes Write & Read
  • JSON Write & Read
  • Clear
  • Factory
  • Feature Check
  • Remote: HTTP/WS
  • Remote: WebRTC
  • Remote: Chain Submit
  • Remote: Preimage Submit
  • Remote: Statement Submit
  • As a product user, I can create an authorized statement proof
  • As a product user, I can submit a statement
  • Subscribe Match All
  • Subscribe Match Any
  • HTTP URL
  • Polkadot URL
  • As a product user, I can navigate within the current product
  • Chain Spec: Genesis Hash
  • Chain Spec: Chain Name
  • Chain Spec: Properties
  • Query Balance
  • Query Stored Value
  • Query Data Length

Logs: https://github.com/paritytech/dotli-community/actions/runs/32560541804
Artifacts: e2e-product-results (uploaded above) — open the failed test's trace.zip with npx playwright show-trace.

@filip-parity

Copy link
Copy Markdown
Author

CI notes: the Unit failure was the runtime-config contract test learning the assetHub entry (fixed in a928782), and the Dependency Audit failure was the new deepmerge-ts advisory GHSA-ggr8-5vv4-36mx via polkadot-api, pinned to ^8 in the overrides block like the other audit pins (3592073, resolver suite green). The remaining E2E failure pre-dates this PR: the same job fails on main's head f75874f and on the last merged PRs (#169, #162), on accounts-provider-alias / product-account requests.

TarikGul
TarikGul previously approved these changes Aug 21, 2026
main carries the same deepmerge-ts override (^8.0.1); its pin wins.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants