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: 12 Imported by: 1

Documentation

Index

Constants

View Source
const PresealFile = ""

Variables

This section is empty.

Functions

func NewRandPaddingPresealFileReader

func NewRandPaddingPresealFileReader() io.Reader

func NewZeroPaddingPresealFileReader

func NewZeroPaddingPresealFileReader() io.Reader

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 ActorType

type ActorType string
const (
	TAccount  ActorType = "account"
	TMultisig ActorType = "multisig"
)

type Miner

type Miner struct {
	ID       address.Address
	Owner    address.Address
	Worker   address.Address
	Coinbase 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
	InitialVestedTarget *builtin.BigFrac
}

func (*MultisigMeta) ActorMeta

func (mm *MultisigMeta) ActorMeta() json.RawMessage

func (*MultisigMeta) InitialVestingBalance

func (mm *MultisigMeta) InitialVestingBalance(total big.Int) big.Int

type PreSeal

type PreSeal struct {
	CommR     cid.Cid
	CommD     cid.Cid
	SectorID  abi.SectorNumber
	Deal      market2.DealProposal
	ProofType abi.RegisteredSealProof
}

type Template

type Template struct {
	Accounts []Actor
	Miners   []Miner

	NetworkName string
	Timestamp   uint64 `json:",omitempty"`

	TeamAccountActor        Actor
	FoundationAccountActor  Actor
	InvestorAccountActor    Actor
	DefaultGovernorActor    Actor
	DefaultExpertActor      Actor
	DefaultKgFundPayeeActor Actor
}

Jump to

Keyboard shortcuts

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