create basic disperse command for cli #2945
Closed
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.
Describe your changes
This PR is a suggestion of addition for a new command in the CLI for Namada, which could be very useful for a data protection oriented blockchain.
It gets its inspiration from the "disperse" contract on Ethereum, which allows a user to send X to N addresses in one single transaction.
I know the implementation is not perfect/complete, because as it is, it sends N txs, instead of a single one, but Im not advanced enough in Rust or my comprehension of Namada codebase to go further than that. But I hope this provides a useful starter to add this command !
This would probably benefit from having its own VP and wasm, as it looks a lot like a simple transfer but to be able to run it in a single tx, it requires to wrap multiple tx inside the inner/wrapper txs. Not sure how to do that, way beyond me 😄
Indicate on which release or other PRs this topic is based on
Checklist before merging to
draft