Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build(stateCreator *state.Creator) (blk *block.Block, events tx.Events, err error)
- func (b *Builder) Call(clause *tx.Clause, caller thor.Address) *Builder
- func (b *Builder) ComputeID() (thor.Bytes32, error)
- func (b *Builder) ExtraData(data [28]byte) *Builder
- func (b *Builder) GasLimit(limit uint64) *Builder
- func (b *Builder) State(proc func(state *state.State) error) *Builder
- func (b *Builder) Timestamp(t uint64) *Builder
- type DevAccount
- type Genesis
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder helper to build genesis block.
func (*Builder) Build ¶
func (b *Builder) Build(stateCreator *state.Creator) (blk *block.Block, events tx.Events, err error)
Build build genesis block according to presets.
func (*Builder) ExtraData ¶
ExtraData set extra data, which will be put into last 28 bytes of genesis parent id.
type DevAccount ¶
type DevAccount struct { Address thor.Address PrivateKey *ecdsa.PrivateKey }
DevAccount account for development.
func DevAccounts ¶
func DevAccounts() []DevAccount
DevAccounts returns pre-alloced accounts for solo mode.
Click to show internal directories.
Click to hide internal directories.