Documentation ¶
Index ¶
- func CheckExistsState(key string, getState base.GetStateFunc) error
- func CheckFactSignsByState(address base.Address, fs []base.Sign, getState base.GetStateFunc) error
- func CheckNotExistsState(key string, getState base.GetStateFunc) (found bool, err error)
- func CreateNotExistAccount(address base.Address, getStateFunc base.GetStateFunc) (base.StateMergeValue, error)
- func ExistsAccount(addr base.Address, name string, isExist bool, getStateFunc base.GetStateFunc) (base.State, error)
- func ExistsCAccount(addr base.Address, name string, isExist, isContract bool, ...) (accountState, caccountState base.State, accountErr, caccountErr error)
- func ExistsCurrencyPolicy(cid types.CurrencyID, getStateFunc base.GetStateFunc) (*types.CurrencyPolicy, error)
- func ExistsState(k, name string, getState base.GetStateFunc) (base.State, error)
- func NewStateMergeValue(key string, stv base.StateValue) base.StateMergeValue
- func NotExistsState(k, name string, getState base.GetStateFunc) (base.State, error)
- func ParseStateKey(key string, Prefix string, expected int) ([]string, error)
- type StateValueMerger
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 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 ExistsCAccount ¶
func ExistsCurrencyPolicy ¶
func ExistsCurrencyPolicy(cid types.CurrencyID, getStateFunc base.GetStateFunc) (*types.CurrencyPolicy, error)
func ExistsState ¶
func NewStateMergeValue ¶
func NewStateMergeValue(key string, stv base.StateValue) base.StateMergeValue
func NotExistsState ¶
Types ¶
type StateValueMerger ¶
type StateValueMerger struct {
*common.BaseStateValueMerger
}
func NewStateValueMerger ¶
Click to show internal directories.
Click to hide internal directories.