[][src]Trait casperlabs_proof_of_stake::ProofOfStake

pub trait ProofOfStake: MintProvider + QueueProvider + RuntimeProvider + StakesProvider + Sized {
    fn bond(
        &mut self,
        validator: PublicKey,
        amount: U512,
        source: URef
    ) -> Result<()> { ... }
fn unbond(
        &mut self,
        validator: PublicKey,
        maybe_amount: Option<U512>
    ) -> Result<()> { ... }
fn get_payment_purse(&self) -> Result<URef> { ... }
fn set_refund_purse(&mut self, purse: URef) -> Result<()> { ... }
fn get_refund_purse(&self) -> Result<Option<URef>> { ... }
fn finalize_payment(
        &mut self,
        amount_spent: U512,
        account: PublicKey
    ) -> Result<()> { ... } }

Provided methods

fn bond(
    &mut self,
    validator: PublicKey,
    amount: U512,
    source: URef
) -> Result<()>

fn unbond(
    &mut self,
    validator: PublicKey,
    maybe_amount: Option<U512>
) -> Result<()>

fn get_payment_purse(&self) -> Result<URef>

fn set_refund_purse(&mut self, purse: URef) -> Result<()>

fn get_refund_purse(&self) -> Result<Option<URef>>

fn finalize_payment(
    &mut self,
    amount_spent: U512,
    account: PublicKey
) -> Result<()>

Loading content...

Implementors

Loading content...