manifest

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0, MIT Imports: 8 Imported by: 94

Documentation

Index

Constants

View Source
const (
	AccountKey  = "account"
	CronKey     = "cron"
	DataCapKey  = "datacap"
	InitKey     = "init"
	MarketKey   = "storagemarket"
	MinerKey    = "storageminer"
	MultisigKey = "multisig"
	PaychKey    = "paymentchannel"
	PowerKey    = "storagepower"
	RewardKey   = "reward"
	SystemKey   = "system"
	VerifregKey = "verifiedregistry"
)

Variables

This section is empty.

Functions

func GetBuiltinActorsKeys added in v0.9.0

func GetBuiltinActorsKeys(av actorstypes.Version) []string

Types

type Manifest

type Manifest struct {
	Version uint64 // this is really u32, but cbor-gen can't deal with it
	Data    cid.Cid
	// contains filtered or unexported fields
}

func (*Manifest) Get

func (m *Manifest) Get(name string) (cid.Cid, bool)

func (*Manifest) Load

func (m *Manifest) Load(ctx context.Context, store adt.Store) error

func (*Manifest) MarshalCBOR

func (t *Manifest) MarshalCBOR(w io.Writer) error

func (*Manifest) UnmarshalCBOR

func (t *Manifest) UnmarshalCBOR(r io.Reader) error

type ManifestData

type ManifestData struct {
	Entries []ManifestEntry
}

func (*ManifestData) MarshalCBOR

func (d *ManifestData) MarshalCBOR(w io.Writer) error

func (*ManifestData) UnmarshalCBOR

func (d *ManifestData) UnmarshalCBOR(r io.Reader) error

this is a flat tuple, so we need to write these by hand

type ManifestEntry

type ManifestEntry struct {
	Name string
	Code cid.Cid
}

func (*ManifestEntry) MarshalCBOR

func (t *ManifestEntry) MarshalCBOR(w io.Writer) error

func (*ManifestEntry) UnmarshalCBOR

func (t *ManifestEntry) UnmarshalCBOR(r io.Reader) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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