Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Address = builtin5.InitActorAddr Methods = builtin5.MethodsInit )
Functions ¶
func GetActorCodeID ¶ added in v0.9.7
func GetActorCodeID(av specactors.Version) (cid.Cid, error)
Types ¶
type AddressChange ¶ added in v0.9.1
type AddressChange struct { From AddressPair To AddressPair }
type AddressMapChanges ¶ added in v0.9.1
type AddressMapChanges struct { Added []AddressPair Modified []AddressChange Removed []AddressPair }
func DiffAddressMap ¶ added in v0.9.1
func DiffAddressMap(pre, cur State) (*AddressMapChanges, error)
type AddressPair ¶ added in v0.9.1
type AddressPair struct { ID address.Address PK address.Address }
type State ¶
type State interface { cbor.Marshaler ResolveAddress(address address.Address) (address.Address, bool, error) MapAddressToNewID(address address.Address) (address.Address, error) NetworkName() (string, error) ForEachActor(func(id abi.ActorID, address address.Address) error) error // Remove exists to support tooling that manipulates state for testing. // It should not be used in production code, as init actor entries are // immutable. Remove(addrs ...address.Address) error // Sets the network's name. This should only be used on upgrade/fork. SetNetworkName(name string) error // Sets the next ID for the init actor. This should only be used for testing. SetNextID(id abi.ActorID) error // Sets the address map for the init actor. This should only be used for testing. SetAddressMap(mcid cid.Cid) error AddressMap() (adt.Map, error) GetState() interface{} }
Click to show internal directories.
Click to hide internal directories.