cron

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Methods = map[abi.MethodNum]builtin.MethodMeta{
	1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)},
	2: {"EpochTick", *new(func(*abi.EmptyValue) *abi.EmptyValue)},
}

Functions

This section is empty.

Types

type ConstructorParams

type ConstructorParams struct {
	Entries []Entry
}

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

func BuiltInEntries() []Entry

The default entries to install in the cron actor's state at genesis.

func (*Entry) MarshalCBOR

func (t *Entry) MarshalCBOR(w io.Writer) error

func (*Entry) UnmarshalCBOR

func (t *Entry) UnmarshalCBOR(r io.Reader) error

type State

type State struct {
	Entries []Entry
}

func ConstructState

func ConstructState(entries []Entry) *State

func (*State) MarshalCBOR

func (t *State) MarshalCBOR(w io.Writer) error

func (*State) UnmarshalCBOR

func (t *State) UnmarshalCBOR(r io.Reader) error

type StateSummary

type StateSummary struct {
	EntryCount int
}

func CheckStateInvariants

func CheckStateInvariants(st *State, _ adt.Store) (*StateSummary, *builtin.MessageAccumulator)

Checks internal invariants of cron state.

Jump to

Keyboard shortcuts

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