Documentation ¶
Index ¶
- Variables
- func CheckCAAuthFromState(st base.State, addr base.Address) (*types.ContractAccountStatus, error)
- func IsStateContractAccountKey(key string) bool
- func LoadCAStateValue(st base.State) (*types.ContractAccountStatus, error)
- func StateContractAccountValue(st base.State) (types.ContractAccountStatus, error)
- func StateKeyContractAccount(a base.Address) string
- type ContractAccountStateValue
- func (c *ContractAccountStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (c *ContractAccountStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (c ContractAccountStateValue) HashBytes() []byte
- func (c ContractAccountStateValue) Hint() hint.Hint
- func (c ContractAccountStateValue) IsValid([]byte) error
- func (c ContractAccountStateValue) MarshalBSON() ([]byte, error)
- func (c ContractAccountStateValue) MarshalJSON() ([]byte, error)
- func (c ContractAccountStateValue) Status() types.ContractAccountStatus
- type ContractAccountStateValueBSONUnmarshaler
- type ContractAccountStateValueJSONMarshaler
- type ContractAccountStateValueJSONUnmarshaler
Constants ¶
This section is empty.
Variables ¶
View Source
var ContractAccountStateValueHint = hint.MustNewHint("contract-account-state-value-v0.0.1")
View Source
var StateKeyContractAccountSuffix = ":contractaccount"
Functions ¶
func CheckCAAuthFromState ¶
func LoadCAStateValue ¶
func LoadCAStateValue(st base.State) (*types.ContractAccountStatus, error)
func StateContractAccountValue ¶
func StateContractAccountValue(st base.State) (types.ContractAccountStatus, error)
func StateKeyContractAccount ¶
Types ¶
type ContractAccountStateValue ¶
type ContractAccountStateValue struct { hint.BaseHinter // contains filtered or unexported fields }
func NewContractAccountStateValue ¶
func NewContractAccountStateValue(status types.ContractAccountStatus) ContractAccountStateValue
func (*ContractAccountStateValue) DecodeBSON ¶
func (c *ContractAccountStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*ContractAccountStateValue) DecodeJSON ¶
func (c *ContractAccountStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
func (ContractAccountStateValue) HashBytes ¶
func (c ContractAccountStateValue) HashBytes() []byte
func (ContractAccountStateValue) Hint ¶
func (c ContractAccountStateValue) Hint() hint.Hint
func (ContractAccountStateValue) IsValid ¶
func (c ContractAccountStateValue) IsValid([]byte) error
func (ContractAccountStateValue) MarshalBSON ¶
func (c ContractAccountStateValue) MarshalBSON() ([]byte, error)
func (ContractAccountStateValue) MarshalJSON ¶
func (c ContractAccountStateValue) MarshalJSON() ([]byte, error)
func (ContractAccountStateValue) Status ¶
func (c ContractAccountStateValue) Status() types.ContractAccountStatus
type ContractAccountStateValueJSONMarshaler ¶
type ContractAccountStateValueJSONMarshaler struct { hint.BaseHinter ContractAccount types.ContractAccountStatus `json:"contractaccount"` }
type ContractAccountStateValueJSONUnmarshaler ¶
type ContractAccountStateValueJSONUnmarshaler struct { Hint hint.Hint `json:"_hint"` ContractAccount json.RawMessage `json:"contractaccount"` }
Click to show internal directories.
Click to hide internal directories.