Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Methods = []interface{}{ 1: *new(func(interface{}, *ConstructorParams) *abi.EmptyValue), 2: *new(func(interface{}, *ExecParams) *ExecReturn), }
Functions ¶
This section is empty.
Types ¶
type ConstructorParams ¶
type ConstructorParams struct {
NetworkName string
}
func (*ConstructorParams) MarshalCBOR ¶
func (t *ConstructorParams) MarshalCBOR(w io.Writer) error
func (*ConstructorParams) UnmarshalCBOR ¶
func (t *ConstructorParams) UnmarshalCBOR(r io.Reader) error
type ExecParams ¶
type ExecParams struct { CodeCID cid.Cid `checked:"true"` // invalid CIDs won't get committed to the state tree ConstructorParams []byte }
func (*ExecParams) MarshalCBOR ¶
func (t *ExecParams) MarshalCBOR(w io.Writer) error
func (*ExecParams) UnmarshalCBOR ¶
func (t *ExecParams) UnmarshalCBOR(r io.Reader) error
type ExecReturn ¶
type ExecReturn struct { IDAddress addr.Address // The canonical ID-based address for the actor. RobustAddress addr.Address // A more expensive but re-org-safe address for the newly created actor. }
func (*ExecReturn) MarshalCBOR ¶
func (t *ExecReturn) MarshalCBOR(w io.Writer) error
func (*ExecReturn) UnmarshalCBOR ¶
func (t *ExecReturn) UnmarshalCBOR(r io.Reader) error
type InstallParams ¶
type InstallParams struct {
Code []byte
}
func (*InstallParams) MarshalCBOR ¶
func (t *InstallParams) MarshalCBOR(w io.Writer) error
func (*InstallParams) UnmarshalCBOR ¶
func (t *InstallParams) UnmarshalCBOR(r io.Reader) error
type InstallReturn ¶
type InstallReturn struct { CodeCid cid.Cid Installed bool }
func (*InstallReturn) MarshalCBOR ¶
func (t *InstallReturn) MarshalCBOR(w io.Writer) error
func (*InstallReturn) UnmarshalCBOR ¶
func (t *InstallReturn) UnmarshalCBOR(r io.Reader) error
type InstalledActors ¶
type InstalledActors struct {
Entries []cid.Cid
}
func (*InstalledActors) MarshalCBOR ¶
func (d *InstalledActors) MarshalCBOR(w io.Writer) error
func (*InstalledActors) UnmarshalCBOR ¶
func (d *InstalledActors) UnmarshalCBOR(r io.Reader) error
this is a flat tuple, so we need to write these by hand
type State ¶
type State struct { AddressMap cid.Cid // HAMT[addr.Address]abi.ActorID NextID abi.ActorID NetworkName string }
func (*State) MapAddressToNewID ¶
Allocates a new ID address and stores a mapping of the argument address to it. Returns the newly-allocated address.
func (*State) ResolveAddress ¶
ResolveAddress resolves an address to an ID-address, if possible. If the provided address is an ID address, it is returned as-is. This means that mapped ID-addresses (which should only appear as values, not keys) and singleton actor addresses (which are not in the map) pass through unchanged.
Returns an ID-address and `true` if the address was already an ID-address or was resolved in the mapping. Returns an undefined address and `false` if the address was not an ID-address and not found in the mapping. Returns an error only if state was inconsistent.