Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a way to enable output usage usage from first extrinsic for the next extrinsic in batch #1005

Open
jak-pan opened this issue Jan 28, 2025 · 0 comments

Comments

@jak-pan
Copy link
Contributor

jak-pan commented Jan 28, 2025

There are numerous actions we are doing that would benefit this including complex XCM calls, Governance actions, or simply doing some strategies for end users which require inputs of the followup functions to match outputs from the previous ones. We have several ways to do this.

  1. Use event outputs from the previous function as wildcard inputs to the next one $1, $2, $3
  2. Use temporary accounts for complex batches with wildcards allowing to specify all of the balance of an asset in this account AssetId: 0, Amount: * XCM already has similar pattern which we could reuse https://github.com/polkadot-fellows/xcm-format?tab=readme-ov-file#depositasset
  3. Add special functions that allow chaining
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant