actors

package
v1.28.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0, MIT Imports: 20 Imported by: 93

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LatestVersion = 14
View Source
var Versions = []int{0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}

Functions

func AddActorMeta added in v1.24.0

func AddActorMeta(name string, codeId cid.Cid, av actorstypes.Version)

func CanonicalName added in v1.16.0

func CanonicalName(name string) string

func ClearManifests added in v1.16.0

func ClearManifests()

ClearManifests clears all known manifests. This is usually used in tests that need to switch networks.

func GetActorCodeID added in v1.16.0

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

GetActorCodeID looks up a builtin actor's code CID by actor version and canonical actor name.

func GetActorCodeIDs added in v1.17.0

func GetActorCodeIDs(av actorstypes.Version) (map[string]cid.Cid, error)

GetActorCodeIDs looks up all builtin actor's code CIDs by actor version.

func GetActorCodeIDsFromManifest added in v1.17.0

func GetActorCodeIDsFromManifest(av actorstypes.Version) (map[string]cid.Cid, bool)

GetActorCodeIDsFromManifest looks up all builtin actor's code CIDs by actor version for versions that have a manifest.

func GetActorMetaByCode added in v1.16.0

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

func GetManifest added in v1.16.0

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

GetManifest gets a loaded manifest.

func LoadManifest added in v1.17.0

func LoadManifest(ctx context.Context, mfCid cid.Cid, adtStore adt.Store) (*manifest.Manifest, error)

Given a Manifest CID, get the manifest from the store and Load data into its entries

func ReadManifest added in v1.16.0

func ReadManifest(ctx context.Context, store cbor.IpldStore, mfCid cid.Cid) (map[string]cid.Cid, error)

ReadManifest reads a manifest from a blockstore. It does not "add" it.

func RegisterManifest added in v1.16.0

func RegisterManifest(av actorstypes.Version, manifestCid cid.Cid, entries map[string]cid.Cid)

RegisterManifest registers an actors manifest with lotus.

func SerializeParams

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

Types

type Version added in v0.9.0

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
	Version9  Version = 9
	Version10 Version = 10
	Version11 Version = 11
	Version12 Version = 12
	Version13 Version = 13
	Version14 Version = 14
)

Jump to

Keyboard shortcuts

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