Skip to content

Conversation

@aoikurokawa
Copy link
Collaborator

@aoikurokawa aoikurokawa commented Dec 13, 2025

  • Send normal copy directed stake target ixs first

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.network

Mainnet

./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

@aoikurokawa aoikurokawa marked this pull request as ready for review December 14, 2025 22:11
Copy link

Copilot AI left a 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 KobeClient to KobeApiClientBuilder
  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants