Documentation ¶
Index ¶
- Constants
- Variables
- func CreateAccountActor(ctx context.Context, cst cbor.IpldStore, state *state.StateTree, ...) error
- func CreateMultisigAccount(ctx context.Context, cst cbor.IpldStore, state *state.StateTree, ...) error
- func MakeAccountActor(ctx context.Context, cst cbor.IpldStore, av actorstypes.Version, ...) (*types.Actor, error)
- func MakeEthNullAddressActor(av actorstypes.Version, addr address.Address) (*types.Actor, error)
- func MakeInitialStateTree(ctx context.Context, bs bstore.Blockstore, template genesis.Template) (*state.StateTree, map[address.Address]address.Address, error)
- func MinerAddress(genesisIndex uint64) address.Address
- func SetupCronActor(ctx context.Context, bs bstore.Blockstore, av actorstypes.Version) (*types.Actor, error)
- func SetupDatacapActor(ctx context.Context, bs bstore.Blockstore, av actorstypes.Version) (*types.Actor, error)
- func SetupEAM(_ context.Context, nst *state.StateTree, nv network.Version) error
- func SetupEthNullAddresses(ctx context.Context, st *state.StateTree, nv network.Version) ([]address.Address, error)
- func SetupInitActor(ctx context.Context, bs bstore.Blockstore, netname string, ...) (int64, *types.Actor, map[address.Address]address.Address, error)
- func SetupRewardActor(ctx context.Context, bs bstore.Blockstore, qaPower big.Int, ...) (*types.Actor, error)
- func SetupStorageMarketActor(ctx context.Context, bs bstore.Blockstore, av actorstypes.Version) (*types.Actor, error)
- func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sys vm.SyscallBuilder, ...) (cid.Cid, error)
- func SetupStoragePowerActor(ctx context.Context, bs bstore.Blockstore, av actorstypes.Version) (*types.Actor, error)
- func SetupSystemActor(ctx context.Context, bs bstore.Blockstore, av actorstypes.Version) (*types.Actor, error)
- func SetupVerifiedRegistryActor(ctx context.Context, bs bstore.Blockstore, av actorstypes.Version) (*types.Actor, error)
- func VerifyPreSealedData(ctx context.Context, cs *store.ChainStore, sys vm.SyscallBuilder, ...) (cid.Cid, error)
- type GenesisBootstrap
Constants ¶
View Source
const AccountStart = 100
View Source
const MaxAccounts = MinerStart - AccountStart
View Source
const MinerStart = 1000
Variables ¶
View Source
var EthNullAddresses = []string{
"0x0000000000000000000000000000000000000000",
}
EthNullAddresses are the Ethereum addresses we want to create zero-balanced EthAccounts in. We may want to add null addresses for precompiles going forward.
View Source
var GovernorId address.Address
View Source
var RootVerifierID address.Address
Functions ¶
func CreateAccountActor ¶
func CreateMultisigAccount ¶
func MakeAccountActor ¶
func MakeEthNullAddressActor ¶
func MakeEthNullAddressActor(av actorstypes.Version, addr address.Address) (*types.Actor, error)
MakeEthNullAddressActor creates a null address actor at the specified Ethereum address.
func MakeInitialStateTree ¶
func MinerAddress ¶
func MinerAddress(genesisIndex uint64) address.Address
func SetupCronActor ¶
func SetupCronActor(ctx context.Context, bs bstore.Blockstore, av actorstypes.Version) (*types.Actor, error)
func SetupDatacapActor ¶
func SetupDatacapActor(ctx context.Context, bs bstore.Blockstore, av actorstypes.Version) (*types.Actor, error)
func SetupEthNullAddresses ¶
func SetupInitActor ¶
func SetupRewardActor ¶
func SetupStorageMarketActor ¶
func SetupStorageMarketActor(ctx context.Context, bs bstore.Blockstore, av actorstypes.Version) (*types.Actor, error)
func SetupStorageMiners ¶
func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sys vm.SyscallBuilder, sroot cid.Cid, miners []genesis.Miner, nv network.Version) (cid.Cid, error)
Note: Much of this is brittle, if the methodNum / param / return changes, it will break things
func SetupStoragePowerActor ¶
func SetupStoragePowerActor(ctx context.Context, bs bstore.Blockstore, av actorstypes.Version) (*types.Actor, error)
func SetupSystemActor ¶
func SetupSystemActor(ctx context.Context, bs bstore.Blockstore, av actorstypes.Version) (*types.Actor, error)
func SetupVerifiedRegistryActor ¶
func SetupVerifiedRegistryActor(ctx context.Context, bs bstore.Blockstore, av actorstypes.Version) (*types.Actor, error)
func VerifyPreSealedData ¶
Types ¶
type GenesisBootstrap ¶
type GenesisBootstrap struct {
Genesis *types.BlockHeader
}
func MakeGenesisBlock ¶
func MakeGenesisBlock(ctx context.Context, j journal.Journal, bs bstore.Blockstore, sys vm.SyscallBuilder, template genesis.Template) (*GenesisBootstrap, error)
Click to show internal directories.
Click to hide internal directories.