Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 9c63bc0

Browse files
authored
stake-pool-cli: All sorts of fixes (#1650)
While going back through the docs, I ended up doing a lot of the stake pool CLI items: * Deposit / withdraw command: Use associated token account by default * Create command: Allow passing the stake pool and mint keypair (useful for testing) * Create command: Split the transaction for pool creation (required to get under the transaction size limit) * Add / remove validator command: take a validator vote account rather than stake account, which makes integration from outside tools a lot simpler * Update command: add a `--force` flag to force the update * Update command: add a `--no-merge` flag to not merge while updating (useful to allow the pool to work, even if the transient stake accounts are unmergeable) * Withdraw: Add `--use-reserve` flag to withdraw from reserve * Withdraw: Add `--vote-account` arg to specify which validator to withdraw from
1 parent 5a357a5 commit 9c63bc0

File tree

3 files changed

+257
-143
lines changed

3 files changed

+257
-143
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stake-pool/cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ solana-client = "1.6.6"
1919
solana-logger = "1.6.6"
2020
solana-sdk = "1.6.6"
2121
solana-program = "1.6.6"
22+
spl-associated-token-account = { path="../../associated-token-account/program", features = [ "no-entrypoint" ] }
2223
spl-stake-pool = { path="../program", features = [ "no-entrypoint" ] }
2324
spl-token = { path="../../token/program", features = [ "no-entrypoint" ] }
2425
bs58 = "0.4.0"

0 commit comments

Comments
 (0)