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.
I consider this repository to be common to any liquid staking program CLI in Rust.
The idea is to work solely with Anchor Client and the RequestBuilder.
Unfortunately, I fight a bit with the builder and I haven't fight a way through to append other transactions than the one the builder crates.
Maybe it would be option to use
Transaction
instead of the builder but I haven't found a fine way how to merge transactions either. To use a single "thing" I decided to work with theRequestBuilder
. But there could be something nicer that I haven't been able to find.I decided to work with the
RpcMarinade
as it seems to an easy wrapper around client and anchor stuff that can be used within the CLI program. The methods likevalidator_list
,... are listed as functions but wrapped inside of the rpc marinade for an easier use.