extension

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: 12 Imported by: 21

Documentation

Index

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 CheckCAAuthFromState(st base.State, addr base.Address) (*types.ContractAccountStatus, error)

func IsStateContractAccountKey

func IsStateContractAccountKey(key string) bool

func LoadCAStateValue

func LoadCAStateValue(st base.State) (*types.ContractAccountStatus, error)

func StateContractAccountValue

func StateContractAccountValue(st base.State) (types.ContractAccountStatus, error)

func StateKeyContractAccount

func StateKeyContractAccount(a base.Address) string

Types

type ContractAccountStateValue

type ContractAccountStateValue struct {
	hint.BaseHinter
	// contains filtered or unexported fields
}

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 (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

type ContractAccountStateValueBSONUnmarshaler

type ContractAccountStateValueBSONUnmarshaler struct {
	Hint            string   `bson:"_hint"`
	ContractAccount bson.Raw `bson:"contractaccount"`
}

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"`
}

Jump to

Keyboard shortcuts

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