Repository navigation
feat(truapi)!: funding discovery, quotes, progress and deposit instructions - #1318
Merged
Merged
Conversation
# Conflicts: # rust/crates/truapi-codegen/tests/golden/wire_table.rs # rust/crates/truapi/src/host_core.rs # rust/crates/truapi/src/native.rs # rust/crates/truapi/src/native/platform.rs # rust/crates/truapi/src/native/runtime.rs # rust/crates/truapi/src/runtime/tests.rs
# Conflicts: # rust/crates/truapi-codegen/tests/golden/dispatcher.rs # rust/crates/truapi-codegen/tests/golden/host-callbacks.ts # rust/crates/truapi-codegen/tests/golden/wire_table.rs # rust/crates/truapi-host-cli/README.md # rust/crates/truapi-host-cli/src/main.rs # rust/crates/truapi/src/api.rs # rust/crates/truapi/src/host_core.rs # rust/crates/truapi/src/native.rs # rust/crates/truapi/src/native/platform.rs # rust/crates/truapi/src/native/runtime.rs # rust/crates/truapi/src/runtime/tests.rs # rust/crates/truapi/src/v01.rs # rust/crates/truapi/src/versioned.rs
# Conflicts: # rust/crates/truapi-codegen/tests/golden/wire_table.rs # rust/crates/truapi/RUNTIME.md # rust/crates/truapi/src/host_core.rs # rust/crates/truapi/src/lib.rs # rust/crates/truapi/src/native.rs # rust/crates/truapi/src/native/callbacks.rs # rust/crates/truapi/src/native/platform.rs # rust/crates/truapi/src/native/runtime.rs # rust/crates/truapi/src/platform.rs # rust/crates/truapi/src/runtime/services.rs
Contributor
Bundle size reportCompared with
WebAssembly modules
Changed files (9)
Commit: 7ac98cd |
Contributor
|
CI Status: 24 required jobs green, 21 passed and 3 skipped by path filter. All job results
Signing credentials: valid as of 2026-11-04 Commit |
This was referenced Oct 7, 2026
…h the chosen quote
pgherveou
reviewed
Nov 3, 2026
pgherveou
reviewed
Nov 3, 2026
pgherveou
left a comment
Collaborator
There was a problem hiding this comment.
quick initial comments will get back to it
pgherveou
reviewed
Nov 3, 2026
pgherveou
reviewed
Nov 3, 2026
# Conflicts: # rust/crates/truapi/src/host_logic/dotns_gateway.rs # rust/crates/truapi/src/runtime/product_manifest.rs
pgherveou
approved these changes
Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #1317 (merged). Part of #1134, #1135, #1139 and #1140.
Providers are discovered, quoted and chosen, and hosts get each session's progress with every change.
Providers: only the ones the host lists with
set_funding_providers; the host controls the list. Their Worker manifests (v1 and v2) are read from dotNS with theirincludes.funding, cached for a day. A provider is named by itsProductIdeverywhere: candidates, quote rows, sessions, the provider frame andselect_funding_provider.Quotes
get_funding_quote(intent, ask)asks every provider's worker, at most 8 at once. Each row goesPending→QuotedorUnavailable; a provider silent for 10 s is unavailable.select_funding_provider(intent, provider, quote_id)hands the session over on the quote the user chose, which must be one the core offered for that session.Progress:
funding_session_changed(intent, status, progress)carries the per-rail steps with times, the provider'sDetails, the latestDeposit(an inbound step: crypto address with payment URI, or bank details), aPaymentReceivedmismatch andmoney_moved.DetailsandDepositare kept up to 8 each per session, as short plain lines; deposit instructions must name something to pay, not have expired, carry a payment URI rather than a web, script or file one, and pay by the chosen quote's rail and asset. Anything else is refused withInvalidDetail.Storage: sessions are stored in format 4; rows #1317 stored in format 3 load with no chosen quote and no mismatch.
Tests: truapi unit tests. A quote asked as a provider's worker restarts waits for the new connection. The funding battery with a quoting worker is in #1836.