-
Notifications
You must be signed in to change notification settings - Fork 31
CLI: Compute directed stake meta #242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the compute directed stake metadata CLI command to separately handle and send normal copy directed stake target instructions and BAM delegation instructions. The changes include updating the Kobe API client initialization to use a builder pattern and splitting the transaction flow into two distinct paths.
Key changes:
- Replaced hardcoded cluster name with configurable Kobe API base URL and updated client initialization from
KobeClienttoKobeApiClientBuilder - Split instruction handling into separate normal and BAM delegation paths, each with their own configuration, printing, and transaction sending logic
- Changed transaction sending from single confirmed transaction to multiple unconfirmed transactions sent in loops
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Related to #244
Testnet
./target/release/steward-cli \ --json-rpc-url \ compute-directed-stake-meta \ --steward-config 5pZmpk3ktweGZW9xFknpEHhQoWeAKTzSGwnCUyVdiye \ --authority-keypair-path ~/.config/solana/id.json \ --kobe-api-base-url https://kobe.testnet.jito.networkMainnet
./target/release/steward-cli \ --json-rpc-url \ compute-directed-stake-meta \ --steward-config jitoVjT9jRUyeXHzvCwzPgHj7yWNRhLcUoXtes4wtjv \ --authority-keypair-path ~/.config/solana/id.json \ --kobe-api-base-url https://kobe.mainnet.jito.network