[][src]Enum solana_storage_program::storage_instruction::StorageInstruction

pub enum StorageInstruction {
    InitializeStorage {
        owner: Pubkey,
        account_type: StorageAccountType,
    },
    SubmitMiningProof {
        sha_state: Hash,
        segment_index: u64,
        signature: Signature,
        blockhash: Hash,
    },
    AdvertiseStorageRecentBlockhash {
        hash: Hash,
        segment: u64,
    },
    ClaimStorageReward,
    ProofValidation {
        segment: u64,
        proofs: Vec<Vec<ProofStatus>>,
    },
}

Variants

InitializeStorage

Initialize the account as a validator or archiver

Expects 1 Account: 0 - Account to be initialized

Fields of InitializeStorage

owner: Pubkeyaccount_type: StorageAccountType
SubmitMiningProof

Fields of SubmitMiningProof

sha_state: Hashsegment_index: u64signature: Signatureblockhash: Hash
AdvertiseStorageRecentBlockhash

Fields of AdvertiseStorageRecentBlockhash

hash: Hashsegment: u64
ClaimStorageReward

Redeem storage reward credits

Expects 1 Account: 0 - Storage account with credits to redeem 1 - Clock Syscall to figure out the clock epoch 2 - Archiver account to credit - this account must be the owner 3 - MiningPool account to redeem credits from 4 - Rewards Syscall to figure out point values

ProofValidation

Fields of ProofValidation

segment: u64

The segment during which this proof was generated

proofs: Vec<Vec<ProofStatus>>

A Vec of proof masks per keyed archiver account loaded by the instruction

Trait Implementations

impl Clone for StorageInstruction[src]

impl Debug for StorageInstruction[src]

impl<'de> Deserialize<'de> for StorageInstruction[src]

impl Serialize for StorageInstruction[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.