Documentation ¶
Index ¶
- Constants
- func FloatToBigInt(val float64) *big.Int
- func LoadVestProfile() []*meter.Profile
- func SetAccountLockProfileState(list []*meter.Profile, state *state.State)
- func SetProfileList(lockList *meter.ProfileList, state *state.State)
- 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 meter.Address) *Builder
- func (b *Builder) ComputeID() (meter.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 ¶
View Source
const (
GenesisNonce = uint64(1001)
)
Variables ¶
This section is empty.
Functions ¶
func FloatToBigInt ¶
func LoadVestProfile ¶
func SetProfileList ¶
func SetProfileList(lockList *meter.ProfileList, state *state.State)
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 meter.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.