-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolved comments + added containers
- Loading branch information
1 parent
886c80d
commit 3602a61
Showing
7 changed files
with
56 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
pub mod phase0 { | ||
pub mod constants; | ||
pub mod primitives; | ||
pub mod containers; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use alloy_primitives::B256; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::phase0::primitives::{Epoch, Version}; | ||
|
||
#[derive(Clone, Copy, PartialEq, Eq, Default, Debug, Deserialize, Serialize)] | ||
pub struct Fork { | ||
pub previous_version: Version, | ||
pub current_version: Version, | ||
pub epoch: Epoch, | ||
} | ||
|
||
#[derive(Clone, Copy, PartialEq, Eq, Default, Debug, Deserialize, Serialize)] | ||
pub struct ForkData { | ||
pub curent_version: Version, | ||
pub genesis_validators: B256, | ||
} | ||
|
||
#[derive(Clone, Copy, PartialEq, Eq, Default, Debug, Deserialize, Serialize)] | ||
pub struct Checkpoint { | ||
pub epock: Epoch, | ||
pub root: B256, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
use alloy_primitives::{U256,U64}; | ||
use alloy_primitives::{U256, U64,aliases::B32}; | ||
|
||
pub type CommiteeIndex = u64; //commitee index at a slot | ||
pub type Domain = B32; //signature Domain | ||
pub type DomainType = B32; // Domain type | ||
pub type Epoch = u64; //epoch number | ||
pub type ForkDigest = B32; //digest of current fork data | ||
pub type Gwei = u64; //amount in gwei | ||
pub type NodeID = U256; //Node Idnetifier | ||
pub type SubnetID=U64; //Subnet Identifier | ||
pub type Slot = u64; //slot number | ||
pub type SubnetID = U64; //Subnet Identifier | ||
pub type ValidatorIndex = u64; //validator registry index | ||
pub type Version = B32; //fork version number | ||
|