Skip to content

feat(products): fundtest, a Paseo funding provider the testnet apps bundle - #1402

Closed
filvecchiato wants to merge 494 commits into
mainfrom
funding/reference-provider
Closed

filvecchiato wants to merge 494 commits into
mainfrom
funding/reference-provider

Conversation

@filvecchiato

@filvecchiato filvecchiato commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

products/fundtest is a funding provider for dev devices on Paseo Next v2: a TrUAPI product whose Worker serves FundingProvider and whose App holds the provider's screens. Testnet builds of both apps can bundle it as fundtest-provider.dot; it needs no dotNS name.

What it simulates

  • Off-chain: card, bank and payout screens, then each rail's stages with real-world waits (card 19 s, bank 47 s, crypto 40 s in; 12–31 s out), each a FUNDTEST_* setting. While a stage waits it reports a Progress fact every 5 s. It calls closeFrame once the user acts on a screen. Steps go out grouped by the session's direction.
  • On-chain: real. PAS from the Paseo faucet stands in for the payment, getcash's pipeline converts it to CASH on People, and payment.topUp claims it.
  • Quotes: fixed prices, ETAs above every default wait.

Choosing what goes wrong: the amount's cents.

Cents Inbound Outbound
.13 Failed { Refunded } payout fails, refunded through Refunding
.23 credit split over two top-ups –
.33 payment after the ETA payout after the ETA
.43 Failed { Declined } –
.51–.54 stops at a kill point, then resumes same
.63 – payout retried twice
.73 cancel after payment refused cancel after release refused

Cancel: before payment the session stops. After, a card or bank top-up before its first credit, or a released withdrawal, gets a 1% offer; anything else is refused.

Resuming: a checkpoint in the worker's storage before every external action, ids derived from the session and step, so a resumed session moves no funds twice.

Checks: typecheck, 57 tests against a fake host that orders reports as the core does, build.

Licence: GPL-3.0-or-later while the worker bundles getcash-community (moving to product-sdk#474).

@github-actions github-actions Bot added the area:docs Touches documentation label Oct 14, 2026
@socket-security

socket-security Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Bundle size report

Compared with main at a2eef84.

Raw Gzip Brotli
truapi-host 8.77 MiB (+7.2 KiB, +0.1%) 5.96 MiB (+1.9 KiB) 5.60 MiB (+2.8 KiB)
truapi-provider 4.04 MiB (+233 B) 1.27 MiB (+400 B) 962.1 KiB (-115 B)
truapi 8.73 MiB 1.22 MiB 1015.7 KiB
trinity-stack 635.5 KiB (+1.2 KiB, +0.2%) 248.0 KiB (+502 B, +0.2%) 205.1 KiB (+367 B, +0.2%)
Total 22.17 MiB (+8.6 KiB) 8.70 MiB (+2.8 KiB) 7.73 MiB (+3.0 KiB)

WebAssembly modules

Raw Gzip Brotli
truapi-host/wasm/web/truapi_server_bg.wasm 3.65 MiB (+5.7 KiB, +0.2%) 1.26 MiB (+1.5 KiB, +0.1%) 956.8 KiB (+2.3 KiB, +0.2%)
truapi-host/wasm/web/truapi_verifiable_bg.wasm 4.89 MiB (+1.5 KiB) 4.64 MiB (+400 B) 4.61 MiB (+460 B)
truapi-provider/truapi_provider_bg.wasm 3.99 MiB (+233 B) 1.26 MiB (+397 B) 954.2 KiB (-127 B)
trinity-stack/wasm/trinity_stack_bg.wasm 565.7 KiB (+1.2 KiB, +0.2%) 230.9 KiB (+502 B, +0.2%) 190.3 KiB (+367 B, +0.2%)
Changed files (4)
Raw Gzip Brotli
truapi-host/wasm/web/truapi_server_bg.wasm 3.65 MiB (+5.7 KiB, +0.2%) 1.26 MiB (+1.5 KiB, +0.1%) 956.8 KiB (+2.3 KiB, +0.2%)
truapi-host/wasm/web/truapi_verifiable_bg.wasm 4.89 MiB (+1.5 KiB) 4.64 MiB (+400 B) 4.61 MiB (+460 B)
trinity-stack/wasm/trinity_stack_bg.wasm 565.7 KiB (+1.2 KiB, +0.2%) 230.9 KiB (+502 B, +0.2%) 190.3 KiB (+367 B, +0.2%)
truapi-provider/truapi_provider_bg.wasm 3.99 MiB (+233 B) 1.26 MiB (+397 B) 954.2 KiB (-127 B)

Commit: a41c07d

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

CI Status: 25 required jobs green, 16 passed and 9 skipped by path filter.

All job results
job result
android-app skipped
android-bindings skipped
bundle-size success
changes success
changeset-guard skipped
cli-package skipped
codegen success
e2e skipped
explorer success
headless-install success
host-wasm success
install-action skipped
ios-app skipped
ios-bindings success
licenses success
playground success
provider-android-bindings skipped
release-guard success
rust success
ts-client success
ts-debugger success
ts-host success
ts-trinity-stack success
wasm-provider success
workflow-lint skipped

Signing credentials: valid as of 2026-11-12

Commit a41c07d9 · run log

…ding/host-gaps

# Conflicts:
#	rust/crates/truapi/src/host_logic/funding.rs
#	rust/crates/truapi/src/native/callbacks.rs
#	rust/crates/truapi/src/runtime/funding.rs
…orker

# Conflicts:
#	docs/rfcs/funding-modality.md
#	rust/crates/truapi/RUNTIME.md
#	rust/crates/truapi/src/host_logic/funding.rs
#	rust/crates/truapi/src/runtime/funding.rs
…covery-quotes

# Conflicts:
#	rust/crates/truapi-codegen/tests/golden/host-callbacks.ts
#	rust/crates/truapi/RUNTIME.md
#	rust/crates/truapi/src/platform.rs
#	rust/crates/truapi/src/runtime/funding.rs
…ding/host-gaps

# Conflicts:
#	rust/crates/truapi/RUNTIME.md
#	rust/crates/truapi/src/host_logic/funding.rs
…orker

# Conflicts:
#	docs/rfcs/funding-modality.md
#	rust/crates/truapi/RUNTIME.md
…covery-quotes

# Conflicts:
#	rust/crates/truapi/RUNTIME.md
…ding/host-gaps

# Conflicts:
#	rust/crates/truapi/RUNTIME.md
# Conflicts:
#	rust/crates/truapi-codegen/tests/golden/wire_table.rs
#	rust/crates/truapi/src/host_logic/funding.rs
#	rust/crates/truapi/src/host_logic/funding_providers.rs
#	rust/crates/truapi/src/host_logic/worker.rs
#	rust/crates/truapi/src/runtime/funding.rs
#	rust/crates/truapi/src/runtime/funding/store.rs
#	rust/crates/truapi/src/runtime/funding_providers.rs
#	rust/crates/truapi/src/runtime/funding_quotes.rs
Base automatically changed from funding/host-gaps to main November 6, 2026 17:39
@filvecchiato

Copy link
Copy Markdown
Collaborator Author

Moved to its own repo: https://github.com/paritytech/fundtest-provider (deployed as fundtest-provider on Paseo and previewnet). Closing here.

@filvecchiato
filvecchiato deleted the funding/reference-provider branch November 16, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Touches documentation size:XXL Pull requests only. 2000 lines or more; split it, or say in the description why it cannot be

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant