Documentation ¶
Index ¶
- type BlockProc
- type GenesisBuilder
- func (b *GenesisBuilder) AddBalance(acc common.Address, balance *big.Int)
- func (b *GenesisBuilder) AddBlock(br ibr.LlrIdxFullBlockRecord)
- func (b *GenesisBuilder) AddEpoch(er ier.LlrIdxFullEpochRecord)
- func (b *GenesisBuilder) Build(head genesis.Header) *genesisstore.Store
- func (b *GenesisBuilder) CurrentHash() hash.Hash
- func (b *GenesisBuilder) ExecuteGenesisTxs(blockProc BlockProc, genesisTxs types.Transactions) error
- func (b *GenesisBuilder) GetStateDB() *state.StateDB
- func (b *GenesisBuilder) SetCode(acc common.Address, code []byte)
- func (b *GenesisBuilder) SetCurrentEpoch(er ier.LlrIdxFullEpochRecord)
- func (b *GenesisBuilder) SetNonce(acc common.Address, nonce uint64)
- func (b *GenesisBuilder) SetStorage(acc common.Address, key, val common.Hash)
- func (b *GenesisBuilder) TotalSupply() *big.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockProc ¶
type BlockProc struct { SealerModule blockproc.SealerModule TxListenerModule blockproc.TxListenerModule PreTxTransactor blockproc.TxTransactor PostTxTransactor blockproc.TxTransactor EventsModule blockproc.ConfirmedEventsModule EVMModule blockproc.EVM }
func DefaultBlockProc ¶
func DefaultBlockProc() BlockProc
type GenesisBuilder ¶
type GenesisBuilder struct {
// contains filtered or unexported fields
}
func NewGenesisBuilder ¶
func NewGenesisBuilder(tmpDb kvdb.Store) *GenesisBuilder
func (*GenesisBuilder) AddBalance ¶
func (b *GenesisBuilder) AddBalance(acc common.Address, balance *big.Int)
func (*GenesisBuilder) AddBlock ¶
func (b *GenesisBuilder) AddBlock(br ibr.LlrIdxFullBlockRecord)
func (*GenesisBuilder) AddEpoch ¶
func (b *GenesisBuilder) AddEpoch(er ier.LlrIdxFullEpochRecord)
func (*GenesisBuilder) Build ¶
func (b *GenesisBuilder) Build(head genesis.Header) *genesisstore.Store
func (*GenesisBuilder) CurrentHash ¶
func (b *GenesisBuilder) CurrentHash() hash.Hash
func (*GenesisBuilder) ExecuteGenesisTxs ¶
func (b *GenesisBuilder) ExecuteGenesisTxs(blockProc BlockProc, genesisTxs types.Transactions) error
func (*GenesisBuilder) GetStateDB ¶
func (b *GenesisBuilder) GetStateDB() *state.StateDB
func (*GenesisBuilder) SetCurrentEpoch ¶
func (b *GenesisBuilder) SetCurrentEpoch(er ier.LlrIdxFullEpochRecord)
func (*GenesisBuilder) SetNonce ¶
func (b *GenesisBuilder) SetNonce(acc common.Address, nonce uint64)
func (*GenesisBuilder) SetStorage ¶
func (b *GenesisBuilder) SetStorage(acc common.Address, key, val common.Hash)
func (*GenesisBuilder) TotalSupply ¶
func (b *GenesisBuilder) TotalSupply() *big.Int
Click to show internal directories.
Click to hide internal directories.