Documentation ¶
Index ¶
- func OpenGenesisStore(rawReader io.Reader) (h hash.Hash, readGenesisStore func(*Store) error, err error)
- func WriteGenesisStore(rawWriter io.Writer, genesisStore *Store) error
- type Accounts
- type Blocks
- type Delegations
- type Metadata
- type Storage
- type 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() photon.Genesis
- func (s *Store) GetMetadata() Metadata
- func (s *Store) GetRules() photon.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 photon.Rules)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenGenesisStore ¶
Types ¶
type Delegations ¶
func (*Delegations) ForEach ¶
func (s *Delegations) ForEach(fn func(common.Address, idx.ValidatorID, genesis.Delegation))
type Store ¶
Store is a node persistent storage working over physical key-value database.
func (*Store) Delegations ¶
func (s *Store) Delegations() genesis.Delegations
func (*Store) EvmAccounts ¶
func (*Store) EvmStorage ¶
func (*Store) GetDelegation ¶
func (s *Store) GetDelegation(addr common.Address, toValidatorID idx.ValidatorID) genesis.Delegation
func (*Store) GetEvmState ¶
func (*Store) GetGenesis ¶
func (*Store) GetMetadata ¶
func (*Store) SetDelegation ¶
func (s *Store) SetDelegation(addr common.Address, toValidatorID idx.ValidatorID, delegation genesis.Delegation)
func (*Store) SetEvmAccount ¶
func (*Store) SetEvmState ¶
func (*Store) SetMetadata ¶
func (*Store) SetRawEvmItem ¶
Click to show internal directories.
Click to hide internal directories.