state

package
v3.0.0-alpha.0...-b63f777 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: GPL-3.0 Imports: 7 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckExistsState

func CheckExistsState(
	key string,
	getState base.GetStateFunc,
) error

CheckExistsState returns found, error. Using CheckExistsState, check found first and check err for reason.

func CheckFactSignsByState

func CheckFactSignsByState(
	address base.Address,
	fs []base.Sign,
	getState base.GetStateFunc,
) error

func CheckNotExistsState

func CheckNotExistsState(
	key string,
	getState base.GetStateFunc,
) (found bool, err error)

CheckNotExistsState returns found, error. Using CheckNotExistsState, check found first and check err for reason.

func CreateNotExistAccount

func CreateNotExistAccount(address base.Address, getStateFunc base.GetStateFunc) (base.StateMergeValue, error)

func ExistsAccount

func ExistsAccount(addr base.Address, name string, isExist bool, getStateFunc base.GetStateFunc) (base.State, error)

func ExistsCAccount

func ExistsCAccount(addr base.Address, name string, isExist, isContract bool, getStateFunc base.GetStateFunc) (
	accountState, caccountState base.State, accountErr, caccountErr error)

func ExistsCurrencyPolicy

func ExistsCurrencyPolicy(cid types.CurrencyID, getStateFunc base.GetStateFunc) (*types.CurrencyPolicy, error)

func ExistsState

func ExistsState(
	k,
	name string,
	getState base.GetStateFunc,
) (base.State, error)

func NewStateMergeValue

func NewStateMergeValue(key string, stv base.StateValue) base.StateMergeValue

func NotExistsState

func NotExistsState(
	k,
	name string,
	getState base.GetStateFunc,
) (base.State, error)

func ParseStateKey

func ParseStateKey(key string, Prefix string, expected int) ([]string, error)

Types

type StateValueMerger

type StateValueMerger struct {
	*common.BaseStateValueMerger
}

func NewStateValueMerger

func NewStateValueMerger(height base.Height, key string, st base.State) *StateValueMerger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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