Versions in this module Expand all Collapse all v1 v1.0.1 Nov 24, 2021 Changes in this version + func OpenGenesisStore(rawReader io.Reader) (h hash.Hash, readGenesisStore func(*Store) error, err error) + func WriteGenesisStore(rawWriter io.Writer, genesisStore *Store) error + type Accounts struct + Raw kvdb.Iteratee + func (s *Accounts) ForEach(fn func(common.Address, genesis.Account)) + type Blocks struct + Raw kvdb.Iteratee + func (s *Blocks) ForEach(fn func(idx.Block, genesis.Block)) + type Delegations struct + Raw kvdb.Iteratee + func (s *Delegations) ForEach(fn func(common.Address, idx.ValidatorID, genesis.Delegation)) + type Metadata struct + DriverOwner common.Address + ExtraData []byte + FirstEpoch idx.Epoch + PrevEpochTime inter.Timestamp + Time inter.Timestamp + TotalSupply *big.Int + Validators gpos.Validators + type Storage struct + Raw kvdb.Iteratee + func (s *Storage) ForEach(fn func(common.Address, common.Hash, common.Hash)) + type Store struct + func NewMemStore() *Store + func NewStore(db kvdb.Store) *Store + func (s *Store) Blocks() genesis.Blocks + func (s *Store) Close() + func (s *Store) Delegations() genesis.Delegations + func (s *Store) EvmAccounts() genesis.Accounts + func (s *Store) EvmStorage() genesis.Storage + func (s *Store) Export(writer io.Writer) error + func (s *Store) GetDelegation(addr common.Address, toValidatorID idx.ValidatorID) genesis.Delegation + func (s *Store) GetEvmAccount(addr common.Address) genesis.Account + func (s *Store) GetEvmState(addr common.Address, key common.Hash) common.Hash + func (s *Store) GetGenesis() mugambo.Genesis + func (s *Store) GetMetadata() Metadata + func (s *Store) GetRules() mugambo.Rules + func (s *Store) Hash() hash.Hash + func (s *Store) Import(reader io.Reader) error + func (s *Store) SetBlock(index idx.Block, block genesis.Block) + func (s *Store) SetDelegation(addr common.Address, toValidatorID idx.ValidatorID, ...) + func (s *Store) SetEvmAccount(addr common.Address, acc genesis.Account) + func (s *Store) SetEvmState(addr common.Address, key common.Hash, value common.Hash) + func (s *Store) SetMetadata(metadata Metadata) + func (s *Store) SetRawEvmItem(key, value []byte) + func (s *Store) SetRules(cfg mugambo.Rules)