Struct forest_actor::miner::VestingFunds[][src]

pub struct VestingFunds {
    pub funds: Vec<VestingFund>,
}

Represents the vesting table state for the miner. It is a slice of (VestingEpoch, VestingAmount). The slice will always be sorted by the VestingEpoch.

Fields

funds: Vec<VestingFund>

Implementations

impl VestingFunds[src]

pub fn new() -> Self[src]

pub fn unlock_vested_funds(&mut self, current_epoch: ChainEpoch) -> TokenAmount[src]

pub fn add_locked_funds(
    &mut self,
    current_epoch: ChainEpoch,
    vesting_sum: &TokenAmount,
    proving_period_start: ChainEpoch,
    spec: VestSpec
)
[src]

pub fn unlock_unvested_funds(
    &mut self,
    current_epoch: ChainEpoch,
    target: &TokenAmount
) -> TokenAmount
[src]

Trait Implementations

impl Default for VestingFunds[src]

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

impl Serialize for VestingFunds[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: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,