Repository navigation
feat(truapi): convert funding deposits into CASH on People - #1198
Closed
filvecchiato wants to merge 3 commits into
Closed
filvecchiato wants to merge 3 commits into
filvecchiato wants to merge 3 commits into
Conversation
Contributor
Bundle size reportCompared with
WebAssembly modules
Changed files (10)
Commit: 20da23d |
Contributor
|
CI Status: 24 required jobs green, 21 passed and 3 skipped by path filter. All job results
Signing credentials: failure as of 2026-10-06, a release may fail Commit |
Collaborator
Author
|
Consolidated into #1230, which carries these commits. |
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.
Once a deposit lands, the core converts it with one Asset Hub transaction signed by the deposit account, as getcash does: a teleport for CASH, or a PSM mint then teleport for a stablecoin the PSM serves. Fees are paid in the deposited asset. The call is dry-run on Asset Hub and its forwarded message on People, then validated, before it is submitted. The route is fixed when the deposit account is assigned.
A submission counts as landed only once People shows its CASH above the earlier balance, and is retried only once its era has passed or it was included and left the deposit in place. Hosts enable it with
enable_funding_conversionand the network's CASH asset id.Verified by dry run on Paseo Next (
cargo test -p truapi --lib funding::conversion::live -- --ignored). Crediting the user follows.Part of #1177