genesis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0, MIT Imports: 55 Imported by: 1

Documentation

Index

Constants

View Source
const AccountStart = 100
View Source
const MaxAccounts = MinerStart - AccountStart
View Source
const MinerStart = 1000

Variables

View Source
var GenesisNetworkVersion = func() network.Version {
	return build.NewestNetworkVersion
}()

TODO: Get from build TODO: make a list/schedule of these.

Functions

func GeneratePaddedPresealFileCID

func GeneratePaddedPresealFileCID(pt abi.RegisteredSealProof) (cid.Cid, error)

UnsealedCID

func MakeInitialStateTree

func MakeInitialStateTree(ctx context.Context, bs bstore.Blockstore, template genesis.Template) (*state.StateTree, map[address.Address]address.Address, error)

func MinerAddress

func MinerAddress(genesisIndex uint64) address.Address

func ParseIDAddresses

func ParseIDAddresses(info genesis.Actor, keyIDs map[address.Address]address.Address) ([]address.Address, error)

func SetupCronActor

func SetupCronActor(bs bstore.Blockstore) (*types.Actor, error)

func SetupExpertFundActor

func SetupExpertFundActor(bs bstore.Blockstore) (*types.Actor, error)

func SetupGovernActor

func SetupGovernActor(bs bstore.Blockstore, super address.Address) (*types.Actor, error)

func SetupInitActor

func SetupInitActor(bs bstore.Blockstore, tpl genesis.Template) (int64, *types.Actor, map[address.Address]address.Address, error)

func SetupKnowledgeActor

func SetupKnowledgeActor(bs bstore.Blockstore, initialPayee address.Address) (*types.Actor, error)

func SetupRetrievalFundActor

func SetupRetrievalFundActor(bs bstore.Blockstore) (*types.Actor, error)

func SetupRewardActor

func SetupRewardActor(bs bstore.Blockstore) (*types.Actor, error)

func SetupStorageMarketActor

func SetupStorageMarketActor(bs bstore.Blockstore) (*types.Actor, error)

func SetupStorageMiners

func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid, tpl genesis.Template, inis InitDatas) (cid.Cid, error)

func SetupStoragePowerActor

func SetupStoragePowerActor(bs bstore.Blockstore) (*types.Actor, error)

func SetupSystemActor

func SetupSystemActor(bs bstore.Blockstore) (*types.Actor, error)

func SetupVestingActor

func SetupVestingActor(bs bstore.Blockstore) (*types.Actor, error)

func SetupVoteActor

func SetupVoteActor(bs bstore.Blockstore, fallback address.Address) (*types.Actor, error)

func VerifyPreSealedData

func VerifyPreSealedData(ctx context.Context, cs *store.ChainStore, stateroot cid.Cid, template genesis.Template, inis *InitDatas, keyIDs map[address.Address]address.Address) (cid.Cid, error)

Types

type GenesisBootstrap

type GenesisBootstrap struct {
	Genesis *types.BlockHeader
}

type InitDatas

type InitDatas struct {
	Expert      address.Address
	ExpertOwner address.Address
}

Jump to

Keyboard shortcuts

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