Documentation ¶
Index ¶
- type Actor
- func (a Actor) Code() cid.Cid
- func (a Actor) Constructor(rt runtime.Runtime, params *ConstructorParams) *abi.EmptyValue
- func (a Actor) EpochTick(rt runtime.Runtime, _ *abi.EmptyValue) *abi.EmptyValue
- func (a Actor) Exports() []interface{}
- func (a Actor) IsSingleton() bool
- func (a Actor) State() cbor.Er
- type ConstructorParams
- type Entry
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor struct{}
The cron actor is a built-in singleton that sends messages to other registered actors at the end of each epoch.
func (Actor) Constructor ¶
func (a Actor) Constructor(rt runtime.Runtime, params *ConstructorParams) *abi.EmptyValue
func (Actor) EpochTick ¶
func (a Actor) EpochTick(rt runtime.Runtime, _ *abi.EmptyValue) *abi.EmptyValue
Invoked by the system after all other messages in the epoch have been processed.
func (Actor) IsSingleton ¶ added in v0.9.12
type ConstructorParams ¶
type ConstructorParams struct {
Entries []Entry
}
func (*ConstructorParams) MarshalCBOR ¶
func (t *ConstructorParams) MarshalCBOR(w io.Writer) error
func (*ConstructorParams) UnmarshalCBOR ¶
func (t *ConstructorParams) UnmarshalCBOR(r io.Reader) error
type Entry ¶
type Entry struct { Receiver addr.Address // The actor to call (must be an ID-address) MethodNum abi.MethodNum // The method number to call (must accept empty parameters) }
func BuiltInEntries ¶ added in v0.3.0
func BuiltInEntries() []Entry
The default entries to install in the cron actor's state at genesis.
Click to show internal directories.
Click to hide internal directories.