Struct solana_stake_o_matic::Config[][src]

pub(crate) struct Config {
    json_rpc_url: String,
    cluster: String,
    source_stake_address: Pubkey,
    authorized_staker: Keypair,
    validator_list: HashSet<Pubkey>,
    dry_run: bool,
    baseline_stake_amount: u64,
    bonus_stake_amount: u64,
    quality_block_producer_percentage: usize,
    delinquent_grace_slot_distance: u64,
    max_poor_block_productor_percentage: usize,
    address_labels: HashMap<String, String>,
}

Fields

json_rpc_url: Stringcluster: Stringsource_stake_address: Pubkeyauthorized_staker: Keypairvalidator_list: HashSet<Pubkey>

Only validators with an identity pubkey in this validator_list will be staked

dry_run: boolbaseline_stake_amount: u64

Amount of lamports to stake any validator in the validator_list that is not delinquent

bonus_stake_amount: u64

Amount of additional lamports to stake quality block producers in the validator_list

quality_block_producer_percentage: usize

Quality validators produce a block at least this percentage of their leader slots over the previous epoch

delinquent_grace_slot_distance: u64

A delinquent validator gets this number of slots of grace (from the current slot) before it will be fully destaked. The grace period is intended to account for unexpected bugs that cause a validator to go down

max_poor_block_productor_percentage: usize

Don’t ever unstake more than this percentage of the cluster at one time

address_labels: HashMap<String, String>

Trait Implementations

impl Debug for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]