init

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0, MIT Imports: 36 Imported by: 0

Documentation

Overview

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Code generated by: `make actors-gen`. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	Address = builtin7.InitActorAddr
	Methods = builtin7.MethodsInit
)

Functions

func AllCodes

func AllCodes() []cid.Cid

func NewAddressMapDiffer

func NewAddressMapDiffer(pre, cur State) *addressMapDiffer

Types

type AddressChange

type AddressChange struct {
	From AddressPair
	To   AddressPair
}

type AddressMapChanges

type AddressMapChanges struct {
	Added    []AddressPair
	Modified []AddressChange
	Removed  []AddressPair
}

func DiffAddressMap

func DiffAddressMap(ctx context.Context, store adt.Store, pre, cur State) (*AddressMapChanges, error)

type AddressPair

type AddressPair struct {
	ID address.Address
	PK address.Address
}

type State

type State interface {
	cbor.Marshaler

	Code() cid.Cid

	ResolveAddress(address address.Address) (address.Address, bool, error)
	MapAddressToNewID(address address.Address) (address.Address, error)
	NetworkName() (dtypes.NetworkName, 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
	// contains filtered or unexported methods
}

func Load

func Load(store adt.Store, act *types.Actor) (State, error)

Jump to

Keyboard shortcuts

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