Type Alias gsdk::GearGasNode

source ·
pub type GearGasNode = GasNode<AccountId32, GearGasNodeId, u64, u128>;
Expand description

Gear gas node.

Aliased Type§

enum GearGasNode {
    External {
        id: AccountId32,
        multiplier: GasMultiplier<u128, u64>,
        value: u64,
        lock: NodeLock<u64>,
        system_reserve: u64,
        refs: ChildrenRefs,
        consumed: bool,
        deposit: bool,
    },
    Cut {
        id: AccountId32,
        multiplier: GasMultiplier<u128, u64>,
        value: u64,
        lock: NodeLock<u64>,
    },
    Reserved {
        id: AccountId32,
        multiplier: GasMultiplier<u128, u64>,
        value: u64,
        lock: NodeLock<u64>,
        refs: ChildrenRefs,
        consumed: bool,
    },
    SpecifiedLocal {
        parent: GasNodeId<MessageId, ReservationId>,
        root: GasNodeId<MessageId, ReservationId>,
        value: u64,
        lock: NodeLock<u64>,
        system_reserve: u64,
        refs: ChildrenRefs,
        consumed: bool,
    },
    UnspecifiedLocal {
        parent: GasNodeId<MessageId, ReservationId>,
        root: GasNodeId<MessageId, ReservationId>,
        lock: NodeLock<u64>,
        system_reserve: u64,
    },
}

Variants§

§

External

Fields

§id: AccountId32
§multiplier: GasMultiplier<u128, u64>
§value: u64
§system_reserve: u64
§consumed: bool
§deposit: bool
§

Cut

Fields

§id: AccountId32
§multiplier: GasMultiplier<u128, u64>
§value: u64
§

Reserved

Fields

§id: AccountId32
§multiplier: GasMultiplier<u128, u64>
§value: u64
§consumed: bool
§

SpecifiedLocal

Fields

§parent: GasNodeId<MessageId, ReservationId>
§root: GasNodeId<MessageId, ReservationId>
§value: u64
§system_reserve: u64
§consumed: bool
§

UnspecifiedLocal

Fields

§parent: GasNodeId<MessageId, ReservationId>
§root: GasNodeId<MessageId, ReservationId>
§system_reserve: u64