Versions in this module Expand all Collapse all v0 v0.0.4 Jan 15, 2025 v0.0.1 Jan 15, 2025 Changes in this version + const DefaultCliqueSigner + const DepositContractCode + var DefaultDepositContractStorage = map[string]string + func DepositDataFromKeys(privKeys []bls.SecretKey, pubKeys []bls.PublicKey) ([]*ethpb.Deposit_Data, [][]byte, error) + func DepositDataFromKeysWithExecCreds(privKeys []bls.SecretKey, pubKeys []bls.PublicKey, numOfCreds uint64) ([]*ethpb.Deposit_Data, [][]byte, error) + func DeterministicallyGenerateKeys(startIndex, numKeys uint64) ([]bls.SecretKey, []bls.PublicKey, error) + func GenerateDepositsFromData(depositDataItems []*ethpb.Deposit_Data, trie *trie.SparseMerkleTrie) ([]*ethpb.Deposit, error) + func GenerateGenesisState(ctx context.Context, genesisTime, numValidators uint64) (*ethpb.BeaconState, []*ethpb.Deposit, error) + func GenerateGenesisStateBellatrix(ctx context.Context, genesisTime, numValidators uint64, ...) (*ethpb.BeaconStateBellatrix, []*ethpb.Deposit, error) + func GenerateGenesisStateBellatrixFromDepositData(ctx context.Context, genesisTime uint64, depositData []*ethpb.Deposit_Data, ...) (*ethpb.BeaconStateBellatrix, []*ethpb.Deposit, error) + func GenerateGenesisStateFromDepositData(ctx context.Context, genesisTime uint64, depositData []*ethpb.Deposit_Data, ...) (*ethpb.BeaconState, []*ethpb.Deposit, error) + func GeneratePreminedGenesisState(ctx context.Context, genesisTime, numValidators uint64, e1d *ethpb.Eth1Data) (*ethpb.BeaconState, []*ethpb.Deposit, error) + func GeneratePreminedGenesisStateFromDepositData(ctx context.Context, genesisTime uint64, depositData []*ethpb.Deposit_Data, ...) (*ethpb.BeaconState, []*ethpb.Deposit, error) + func GethCancunTime(genesisTime uint64, cfg *clparams.BeaconChainConfig) *uint64 + func GethShanghaiTime(genesisTime uint64, cfg *clparams.BeaconChainConfig) *uint64 + func GethTestnetGenesis(genesisTime uint64, cfg *clparams.BeaconChainConfig) *core.Genesis + func NewPreminedGenesis(ctx context.Context, t, nvals, pCreds uint64, version int, gb *types.Block, ...) (state.BeaconState, error) + type PremineGenesisConfig struct + GB *types.Block + GenesisTime uint64 + NVals uint64 + PregenesisCreds uint64 + Version int + type PremineGenesisOpt func(*PremineGenesisConfig) + func WithDepositData(dds []*ethpb.Deposit_Data, roots [][]byte) PremineGenesisOpt