makefakegenesis

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: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FakeGenesisTime = inter.Timestamp(1608600000 * time.Second)
)

Functions

func FakeGenesisStore

func FakeGenesisStore(num idx.Validator, balance, stake *big.Int) *genesisstore.Store

func FakeGenesisStoreWithRules

func FakeGenesisStoreWithRules(num idx.Validator, balance, stake *big.Int, rules opera.Rules) *genesisstore.Store

func FakeGenesisStoreWithRulesAndStart

func FakeGenesisStoreWithRulesAndStart(num idx.Validator, balance, stake *big.Int, rules opera.Rules, epoch idx.Epoch, block idx.Block) *genesisstore.Store

func FakeKey

func FakeKey(n idx.ValidatorID) *ecdsa.PrivateKey

FakeKey gets n-th fake private key.

func GetFakeValidators

func GetFakeValidators(num idx.Validator) gpos.Validators

func GetGenesisTxs

func GetGenesisTxs(sealedEpoch idx.Epoch, validators gpos.Validators, totalSupply *big.Int, delegations []drivercall.Delegation, driverOwner common.Address) types.Transactions

Types

This section is empty.

Jump to

Keyboard shortcuts

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