Add multiple destination support to toolkit sigle tx#1560
Conversation
Signed-off-by: chrispalaskas <chris.palaskas@gmail.com>
Signed-off-by: chrispalaskas <chris.palaskas@gmail.com>
Signed-off-by: chrispalaskas <chris.palaskas@gmail.com>
LGLO
left a comment
There was a problem hiding this comment.
I would personally keep each output as one line with encoding of amount, token type, and address triple. However, I let the command use decide how to invoke it
Signed-off-by: chrispalaskas <chris.palaskas@gmail.com>
…//github.com/midnightntwrk/midnight-node into feat/toolkit/add-multi-destination-single-tx Signed-off-by: chrispalaskas <chris.palaskas@gmail.com>
|
The CLI API looks good to me! Left some comments to improve the implementation |
|
@LGLO I change the output destination as per your suggestion, tested thus: --output detects token type from address, is that OK or do we want explicit flag? |
Signed-off-by: chrispalaskas <chris.palaskas@gmail.com>
…//github.com/midnightntwrk/midnight-node into feat/toolkit/add-multi-destination-single-tx Signed-off-by: chrispalaskas <chris.palaskas@gmail.com>
…i-destination-single-tx Signed-off-by: chrispalaskas <chris.palaskas@gmail.com> # Conflicts: # util/toolkit/src/cli_parsers.rs # util/toolkit/src/tx_generator/builder/builders/common/single_tx.rs
|
@ozgb I fixed all your comments and pulled latest main. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bdcf1479f3
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
The GitHub-UI merge of main into this branch brought in ledger_9.rs (PR #1604) without declaring `pub mod output_spec;`, leaving single_tx and batch_single_tx unable to resolve `super::output_spec` when compiled under the ledger_9 variant. Matches what ledger_7 and ledger_8 already do. Fixes the +check-rust and +check-feature-unification CI failures on PR #1560. Assisted-by: Claude:claude-4.7-opus Signed-off-by: chrispalaskas <chris.palaskas@gmail.com>
Signed-off-by: chrispalaskas <chris.palaskas@gmail.com>
…i-destination-single-tx Signed-off-by: chrispalaskas <chris.palaskas@gmail.com>
The toolkit now can accept multiple destination addresses for multiple tokens of both types.
Tested the following command:
and verified both token types made it to their destinations.
Tested also with the performance script register_and_fund_binary.py.
Tx found in block https://polkadot.js.org/apps/?rpc=ws://jack.perf.dev.aws.shielded.io:9944#/explorer/query/0xe850095322736acb3acc5958a2fee1e85d7961814b58f14ae7036032eef2c39f
Build was done here: https://github.com/shieldedtech/midnight-performance/actions/runs/26245769743/job/77243586029
Signed-off-by: chrispalaskas chris.palaskas@gmail.com
Overview
🗹 TODO before merging
📌 Submission Checklist
git commit -s) for the DCO🧪 Testing Evidence
Please describe any additional testing aside from CI:
🔱 Fork Strategy
Links