Documentation ¶
Index ¶
- Constants
- Variables
- func MakeInitialStateTree(ctx context.Context, bs bstore.Blockstore, template Template) (*state.State, map[address.Address]address.Address, error)
- func MinerAddress(genesisIndex uint64) address.Address
- func SetupCronActor(bs bstore.Blockstore) (*types.Actor, error)
- func SetupInitActor(bs bstore.Blockstore, netname string, initialActors []Actor, ...) (int64, *types.Actor, map[address.Address]address.Address, error)
- func SetupRewardActor(bs bstore.Blockstore, qaPower big.Int) (*types.Actor, error)
- func SetupStorageMarketActor(bs bstore.Blockstore) (*types.Actor, error)
- func SetupStorageMiners(ctx context.Context, cs *chain.Store, sroot cid.Cid, miners []Miner, ...) (cid.Cid, error)
- func SetupStoragePowerActor(bs bstore.Blockstore) (*types.Actor, error)
- func SetupSystemActor(bs bstore.Blockstore) (*types.Actor, error)
- func SetupVerifiedRegistryActor(bs bstore.Blockstore) (*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 Miner
- type MultisigMeta
- type PreSeal
- type Template
Constants ¶
View Source
const AccountStart = 100
View Source
const MaxAccounts = MinerStart - AccountStart
View Source
const MinerStart = 1000
Variables ¶
View Source
var RootVerifierID address.Address
Functions ¶
func MakeInitialStateTree ¶
func MinerAddress ¶
func MinerAddress(genesisIndex uint64) address.Address
func SetupCronActor ¶
func SetupCronActor(bs bstore.Blockstore) (*types.Actor, error)
func SetupInitActor ¶
func SetupRewardActor ¶
func SetupStorageMarketActor ¶
func SetupStorageMarketActor(bs bstore.Blockstore) (*types.Actor, error)
func SetupStorageMiners ¶
func SetupStoragePowerActor ¶
func SetupStoragePowerActor(bs bstore.Blockstore) (*types.Actor, error)
func SetupSystemActor ¶
func SetupSystemActor(bs bstore.Blockstore) (*types.Actor, error)
func SetupVerifiedRegistryActor ¶
func SetupVerifiedRegistryActor(bs bstore.Blockstore) (*types.Actor, error)
func VerifyPreSealedData ¶
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 ¶
func MakeGenesisBlock ¶
func MakeGenesisBlock(ctx context.Context, rep repo.Repo, bs blockstore.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 market2.DealProposal ProofType abi.RegisteredSealProof }
Click to show internal directories.
Click to hide internal directories.