makegenesis

package
v0.0.0-...-985cc99 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

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 (*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) SetCode

func (b *GenesisBuilder) SetCode(acc common.Address, code []byte)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL