genesis

package
v1.32.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0, MIT Imports: 8 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountMeta added in v0.3.0

type AccountMeta struct {
	Owner address.Address // bls / secpk
}

func (*AccountMeta) ActorMeta added in v0.3.0

func (am *AccountMeta) ActorMeta() json.RawMessage

type Actor added in v0.3.0

type Actor struct {
	Type    ActorType
	Balance abi.TokenAmount

	Meta json.RawMessage
}

type ActorType added in v0.3.0

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

type Miner added in v0.3.0

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 added in v0.3.0

type MultisigMeta struct {
	Signers         []address.Address
	Threshold       int
	VestingDuration int
	VestingStart    int
}

func (*MultisigMeta) ActorMeta added in v0.5.0

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

type PreSeal

type PreSeal struct {
	CommR         cid.Cid
	CommD         cid.Cid
	SectorID      abi.SectorNumber
	Deal          markettypes.DealProposal
	DealClientKey types.KeyInfo
	ProofType     abi.RegisteredSealProof
}

type Template added in v0.3.0

type Template struct {
	NetworkVersion network.Version
	Accounts       []Actor
	Miners         []Miner

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

	VerifregRootKey  Actor
	RemainderAccount Actor
}

Jump to

Keyboard shortcuts

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