Skip to content

Commit

Permalink
Add Deneb BeaconStates to presets.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmygchen committed Jul 12, 2023
1 parent 6fa4035 commit 4d40289
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/deneb/presets/mainnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,21 @@ pub type SignedBlindedBeaconBlock = deneb::SignedBlindedBeaconBlock<
MAX_BLOBS_PER_BLOCK,
>;

pub type BeaconState = deneb::BeaconState<
SLOTS_PER_HISTORICAL_ROOT,
HISTORICAL_ROOTS_LIMIT,
ETH1_DATA_VOTES_BOUND,
VALIDATOR_REGISTRY_LIMIT,
EPOCHS_PER_HISTORICAL_VECTOR,
EPOCHS_PER_SLASHINGS_VECTOR,
MAX_VALIDATORS_PER_COMMITTEE,
SYNC_COMMITTEE_SIZE,
BYTES_PER_LOGS_BLOOM,
MAX_EXTRA_DATA_BYTES,
MAX_BYTES_PER_TRANSACTION,
MAX_TRANSACTIONS_PER_PAYLOAD,
>;

pub type BeaconBlockBody = deneb::BeaconBlockBody<
MAX_PROPOSER_SLASHINGS,
MAX_VALIDATORS_PER_COMMITTEE,
Expand Down
15 changes: 15 additions & 0 deletions src/deneb/presets/minimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,21 @@ pub type SignedBlindedBeaconBlock = deneb::SignedBlindedBeaconBlock<
MAX_BLOBS_PER_BLOCK,
>;

pub type BeaconState = deneb::BeaconState<
SLOTS_PER_HISTORICAL_ROOT,
HISTORICAL_ROOTS_LIMIT,
ETH1_DATA_VOTES_BOUND,
VALIDATOR_REGISTRY_LIMIT,
EPOCHS_PER_HISTORICAL_VECTOR,
EPOCHS_PER_SLASHINGS_VECTOR,
MAX_VALIDATORS_PER_COMMITTEE,
SYNC_COMMITTEE_SIZE,
BYTES_PER_LOGS_BLOOM,
MAX_EXTRA_DATA_BYTES,
MAX_BYTES_PER_TRANSACTION,
MAX_TRANSACTIONS_PER_PAYLOAD,
>;

pub type BeaconBlockBody = deneb::BeaconBlockBody<
MAX_PROPOSER_SLASHINGS,
MAX_VALIDATORS_PER_COMMITTEE,
Expand Down

0 comments on commit 4d40289

Please sign in to comment.