Skip to content

feat(truapi): funding provider candidates - #1281

Closed
filvecchiato wants to merge 13 commits into
funding/providerfrom
funding/discovery
Closed

filvecchiato wants to merge 13 commits into
funding/providerfrom
funding/discovery

Conversation

@filvecchiato

@filvecchiato filvecchiato commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

The core answers which funding providers a session can be handed to. Stacked on the provider PR. The Worker manifest reader is #1283, against main, merged in here until it lands; the format is #1275.

  • set_funding_providers: the host lists its providers, each with the Worker manifest it ships for it
  • funding_candidates(intent): providers serving the session's direction, with their routes and backend id. Answered from dotNS once read, from the shipped snapshot until then, so the list renders with no chain read; re-checked in the background on every query, so a provider that stopped serving Funding drops out
  • select_funding_provider accepts only a candidate serving the session's direction
  • CLI test host: TRUAPI_FUNDING_PROVIDERS offers products with a scripted manifest seeded into the cache; the battery checks the provider is listed before it is chosen

Part of #1134.

@github-actions github-actions Bot added the area:core Touches the Rust core under rust/crates label Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Bundle size report

Compared with main at a676998.

Raw Gzip Brotli
truapi-host 7.88 MiB (+96.3 KiB, +1.2%) 5.66 MiB (+32.8 KiB, +0.6%) 5.39 MiB (+22.8 KiB, +0.4%)
truapi-provider 4.03 MiB 1.27 MiB 959.8 KiB
truapi 5.78 MiB (+65.5 KiB, +1.1%) 814.7 KiB (+9.8 KiB, +1.2%) 667.6 KiB (+7.7 KiB, +1.2%)
Total 17.69 MiB (+161.8 KiB, +0.9%) 7.73 MiB (+42.6 KiB, +0.5%) 6.98 MiB (+30.5 KiB, +0.4%)

WebAssembly modules

Raw Gzip Brotli
truapi-host/wasm/web/truapi_server_bg.wasm 2.78 MiB (+95.9 KiB, +3.5%) 994.9 KiB (+32.7 KiB, +3.4%) 749.2 KiB (+22.7 KiB, +3.1%)
truapi-host/wasm/web/truapi_verifiable_bg.wasm 4.89 MiB 4.64 MiB 4.61 MiB
truapi-provider/truapi_provider_bg.wasm 3.99 MiB 1.26 MiB 952.1 KiB
Changed files (10)
Raw Gzip Brotli
truapi-host/wasm/web/truapi_server_bg.wasm 2.78 MiB (+95.9 KiB, +3.5%) 994.9 KiB (+32.7 KiB, +3.4%) 749.2 KiB (+22.7 KiB, +3.1%)
truapi/explorer/codegen/types.js 227.6 KiB (+23.2 KiB, +11.3%) 31.1 KiB (+3.2 KiB, +11.5%) 25.0 KiB (+2.5 KiB, +11.3%)
truapi/playground/codegen/truapi-dts.js 295.7 KiB (+22.9 KiB, +8.4%) 50.8 KiB (+3.9 KiB, +8.2%) 41.0 KiB (+3.1 KiB, +8.0%)
truapi/playground/codegen/services.js 100.7 KiB (+6.1 KiB, +6.5%) 15.1 KiB (+906 B, +6.2%) 12.7 KiB (+721 B, +5.9%)
truapi/generated/types.js 65.4 KiB (+5.5 KiB, +9.3%) 8.0 KiB (+793 B, +10.7%) 6.7 KiB (+551 B, +8.7%)
truapi/generated/client.js 71.6 KiB (+5.1 KiB, +7.7%) 10.7 KiB (+800 B, +7.9%) 8.9 KiB (+653 B, +7.7%)
truapi/generated/wire-decode.js 29.2 KiB (+2.1 KiB, +7.6%) 3.1 KiB (+173 B, +5.9%) 2.6 KiB (+142 B, +5.7%)
truapi/generated/wire-table.js 9.1 KiB (+601 B, +6.9%) 1.6 KiB (+72 B, +4.6%) 1.3 KiB (+53 B, +4.3%)
truapi-host/generated/host-callbacks.js 10.5 KiB (+475 B, +4.6%) 3.4 KiB (+137 B, +4.1%) 2.9 KiB (+124 B, +4.4%)
truapi-host/wasm/web/truapi_server.js 57.8 KiB (+3 B) 10.5 KiB (+3 B) 9.0 KiB (-8 B, -0.1%)

Commit: 586fb9a

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

CI Status: not green, 1 item needs attention.

  • playground: failure
All job results
job result
android-bindings success
bundle-size success
changes success
changeset-guard success
cli-package success
codegen success
e2e skipped
explorer success
funding-battery success
headless-install success
host-android-bindings success
host-android-detekt success
host-wasm success
ios-bindings success
ios-swift success
licenses success
playground failure
provider-android-bindings skipped
release-guard success
rust success
ts-client success
ts-debugger success
ts-host success
wasm-provider success
workflow-lint skipped

Signing credentials: failure as of 2026-10-07, a release may fail

Commit 586fb9ae · run log

@filvecchiato filvecchiato changed the title feat(truapi): worker manifests v2 and funding provider candidates feat(truapi): funding provider candidates Oct 7, 2026
@filvecchiato
filvecchiato added this pull request to stack #1284 October 7, 2026 09:49
@filvecchiato
filvecchiato removed this pull request from stack #1284 October 7, 2026 10:00
@filvecchiato
filvecchiato added this pull request to stack #1287 October 7, 2026 10:00
@filvecchiato
filvecchiato removed this pull request from stack #1287 October 7, 2026 19:03
@filvecchiato

Copy link
Copy Markdown
Collaborator Author

Folded into #1318 (discovery, quotes, progress and deposit).

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

Labels

area:core Touches the Rust core under rust/crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant