Documentation
¶
Index ¶
- Constants
- Variables
- func CalculateMinerCreationDepositForGenesis(ctx context.Context, vm vm.Interface, store adt.Store) (abi.TokenAmount, error)
- func MakeEthNullAddressActor(av actorstypes.Version, addr address.Address) (*types.Actor, error)
- func MakeInitialStateTree(ctx context.Context, bs bstore.Blockstore, template Template) (*tree.State, 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(ctx context.Context, nst tree.Tree, nv network.Version) error
- func SetupEthNullAddresses(ctx context.Context, st *tree.State, 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 *chain.Store, sroot cid.Cid, miners []Miner, ...) (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 *chain.Store, stateroot cid.Cid, template Template, ...) (cid.Cid, error)
- type AccountMeta
- type Actor
- type ActorType
- type GenesisBootstrap
- type Key
- type Miner
- type MultisigMeta
- type PreSeal
- type Template
Constants ¶
View Source
const ( AccountStart = 100 MinerStart = 1000 MaxAccounts = MinerStart - AccountStart )
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 CalculateMinerCreationDepositForGenesis ¶ added in v1.19.0
func CalculateMinerCreationDepositForGenesis(ctx context.Context, vm vm.Interface, store adt.Store) (abi.TokenAmount, error)
CalculateMinerCreationDepositForGenesis calculates the deposit required for creating a new miner during genesis block creation. This is used when API is not available yet.
func MakeEthNullAddressActor ¶ added in v1.10.0
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 ¶ added in v1.8.0
func SetupDatacapActor(ctx context.Context, bs bstore.Blockstore, av actorstypes.Version) (*types.Actor, error)
func SetupEthNullAddresses ¶ added in v1.10.0
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 *chain.Store, sroot cid.Cid, miners []Miner, nv network.Version, para *config.ForkUpgradeConfig, synthetic bool, ) (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)
Types ¶
type AccountMeta ¶
type AccountMeta struct {
Owner address.Address // bls / secpk
}
func (*AccountMeta) ActorMeta ¶
func (am *AccountMeta) ActorMeta() json.RawMessage
type Actor ¶
type Actor struct {
Type ActorType
Balance abi.TokenAmount
Meta json.RawMessage
}
type GenesisBootstrap ¶
type GenesisBootstrap struct {
Genesis *types.BlockHeader
}
func MakeGenesisBlock ¶
func MakeGenesisBlock(ctx context.Context, rep repo.Repo, bs bstore.Blockstore, template Template, para *config.ForkUpgradeConfig) (*GenesisBootstrap, error)
type Miner ¶
type Miner struct {
ID address.Address
Owner address.Address
Worker address.Address
PeerID peer.ID //nolint:golint
MarketBalance abi.TokenAmount
PowerBalance abi.TokenAmount
SectorSize abi.SectorSize
Sectors []*PreSeal
}
type MultisigMeta ¶
type MultisigMeta struct {
Signers []address.Address
Threshold int
VestingDuration int
VestingStart int
}
func (*MultisigMeta) ActorMeta ¶
func (mm *MultisigMeta) ActorMeta() json.RawMessage
type PreSeal ¶
type PreSeal struct {
CommR cid.Cid
CommD cid.Cid
SectorID abi.SectorNumber
Deal types.DealProposal
DealClientKey *key.KeyInfo
ProofType abi.RegisteredSealProof
}
Click to show internal directories.
Click to hide internal directories.