Struct cardano_multiplatform_lib::genesis::byron::config::GenesisData
source · [−]pub struct GenesisData {
pub genesis_prev: BlockHeaderHash,
pub epoch_stability_depth: usize,
pub start_time: SystemTime,
pub slot_duration: Duration,
pub protocol_magic: ProtocolMagic,
pub fee_policy: LinearFee,
pub avvm_distr: BTreeMap<PublicKey<Ed25519>, Coin>,
pub non_avvm_balances: BTreeMap<ByronAddress, Coin>,
pub boot_stakeholders: BTreeMap<StakeholderId, BootStakeholder>,
}
Expand description
A subset of the genesis data. The genesis data is a JSON file whose canonicalized form has the hash ‘genesis_prev’, which is the parent of the genesis block of epoch 0. (Note that “genesis data” is something completely different from a epoch genesis block. The genesis data is not stored in the chain as a block.)
Fields
genesis_prev: BlockHeaderHash
epoch_stability_depth: usize
start_time: SystemTime
slot_duration: Duration
protocol_magic: ProtocolMagic
fee_policy: LinearFee
avvm_distr: BTreeMap<PublicKey<Ed25519>, Coin>
non_avvm_balances: BTreeMap<ByronAddress, Coin>
boot_stakeholders: BTreeMap<StakeholderId, BootStakeholder>
Trait Implementations
sourceimpl Clone for GenesisData
impl Clone for GenesisData
sourcefn clone(&self) -> GenesisData
fn clone(&self) -> GenesisData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GenesisData
impl Debug for GenesisData
sourceimpl PartialEq<GenesisData> for GenesisData
impl PartialEq<GenesisData> for GenesisData
sourcefn eq(&self, other: &GenesisData) -> bool
fn eq(&self, other: &GenesisData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for GenesisData
impl StructuralEq for GenesisData
impl StructuralPartialEq for GenesisData
Auto Trait Implementations
impl RefUnwindSafe for GenesisData
impl Send for GenesisData
impl Sync for GenesisData
impl Unpin for GenesisData
impl UnwindSafe for GenesisData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more