galacticcouncil / galacticcouncil/hydration-node

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

Open
#1,005 1 comment 0 reactions 0 assignees View on GitHub
area/runtime status/need-more-info type/enhancement
Dominant language
Rust
Stars
208
Forks
109
Avg merge
6d 3h
Merged PRs (30d)
3

Description

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

Contributor guide

Open the contributing guide

Research direction

The issue describes several possible designs for passing outputs between batched extrinsics, including event wildcards, temporary accounts, and chaining functions, but names no files, tests, or entry points. Start by reviewing the batching and extrinsic execution architecture and the linked XCM deposit-asset pattern. Done requires an agreed design, implementation scope, and tests for the selected approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.