actors

package
v1.6.0-pre-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0, MIT Imports: 14 Imported by: 17

Documentation

Index

Constants

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

Variables

View Source
var LatestVersion = 8
View Source
var Versions = []int{0, 2, 3, 4, 5, 6, 7, 8}

Functions

func AddManifest

func AddManifest(av Version, manifestCid cid.Cid)

func CanonicalName added in v1.6.0

func CanonicalName(name string) string

func GetActorCodeID added in v1.6.0

func GetActorCodeID(av Version, name string) (cid.Cid, bool)

func GetBuiltinActorsKeys added in v1.6.0

func GetBuiltinActorsKeys() []string

func GetManifest added in v1.6.0

func GetManifest(av Version) (cid.Cid, bool)

func LoadManifests

func LoadManifests(ctx context.Context, store cbor.IpldStore) error

func SerializeParams

func SerializeParams(i cbg.CBORMarshaler) ([]byte, aerrors.ActorError)

Types

type Version

type Version int
const (
	Version0 Version = 0
	Version2 Version = 2
	Version3 Version = 3
	Version4 Version = 4
	Version5 Version = 5
	Version6 Version = 6
	Version7 Version = 7
	Version8 Version = 8
)

func GetActorMetaByCode added in v1.6.0

func GetActorMetaByCode(c cid.Cid) (string, Version, bool)

func VersionForNetwork

func VersionForNetwork(version network.Version) (Version, error)

Converts a network version into an actors adt version.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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