Documentation ¶
Index ¶
- Constants
- Variables
- func CanonicalName(name string) string
- func ClearManifests()
- func GetActorCodeID(av Version, name string) (cid.Cid, bool)
- func GetActorCodeIDs(av Version) (map[string]cid.Cid, error)
- func GetActorCodeIDsFromManifest(av Version) (map[string]cid.Cid, bool)
- func GetBuiltinActorsKeys() []string
- func GetManifest(av Version) (cid.Cid, bool)
- func LoadManifest(ctx context.Context, mfCid cid.Cid, adtStore adt.Store) (*manifest.Manifest, error)
- func ReadManifest(ctx context.Context, store cbor.IpldStore, mfCid cid.Cid) (map[string]cid.Cid, error)
- func RegisterManifest(av Version, manifestCid cid.Cid, entries map[string]cid.Cid)
- func SerializeParams(i cbg.CBORMarshaler) ([]byte, aerrors.ActorError)
- type Version
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 CanonicalName ¶ added in v1.16.0
func ClearManifests ¶ added in v1.16.0
func ClearManifests()
ClearManifest clears all known manifests. This is usually used in tests that need to switch networks.
func GetActorCodeID ¶ added in v1.16.0
GetActorCodeID looks up a builtin actor's code CID by actor version and canonical actor name.
func GetActorCodeIDs ¶ added in v1.17.0
GetActorCodeIDs looks up all builtin actor's code CIDs by actor version.
func GetActorCodeIDsFromManifest ¶ added in v1.17.0
GetActorCodeIDsFromManifest looks up all builtin actor's code CIDs by actor version for versions that have a manifest.
func GetBuiltinActorsKeys ¶ added in v1.16.0
func GetBuiltinActorsKeys() []string
func GetManifest ¶ added in v1.16.0
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
RegisterManifest registers an actors manifest with lotus.
func SerializeParams ¶
func SerializeParams(i cbg.CBORMarshaler) ([]byte, aerrors.ActorError)
Types ¶
Click to show internal directories.
Click to hide internal directories.