Documentation ¶
Index ¶
- Constants
- Variables
- func NFTStateKey(contract mitumbase.Address, keyType StateKey) string
- func StateCollectionValue(st mitumbase.State) (*types.Design, error)
- func StateKeyNFT(contract mitumbase.Address, id uint64) string
- func StateKeyNFTPrefix(addr mitumbase.Address) string
- func StateKeyOperators(contract mitumbase.Address, addr mitumbase.Address) string
- func StateLastNFTIndexValue(st mitumbase.State) (uint64, error)
- func StateNFTBoxValue(st mitumbase.State) (types.NFTBox, error)
- func StateNFTValue(st mitumbase.State) (*types.NFT, error)
- func StateOperatorsBookValue(st mitumbase.State) (*types.OperatorsBook, error)
- type CollectionDesignStateValueJSONMarshaler
- type CollectionDesignStateValueJSONUnmarshaler
- type CollectionLastNFTIndexStateValueBSONUnmarshaler
- type CollectionStateValue
- func (s *CollectionStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (s *CollectionStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (cs CollectionStateValue) HashBytes() []byte
- func (cs CollectionStateValue) Hint() hint.Hint
- func (cs CollectionStateValue) IsValid([]byte) error
- func (s CollectionStateValue) MarshalBSON() ([]byte, error)
- func (s CollectionStateValue) MarshalJSON() ([]byte, error)
- type CollectionStateValueBSONUnmarshaler
- type LastNFTIndexStateValue
- func (s *LastNFTIndexStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (s *LastNFTIndexStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (is LastNFTIndexStateValue) HashBytes() []byte
- func (is LastNFTIndexStateValue) Hint() hint.Hint
- func (is LastNFTIndexStateValue) IsValid([]byte) error
- func (s LastNFTIndexStateValue) MarshalBSON() ([]byte, error)
- func (s LastNFTIndexStateValue) MarshalJSON() ([]byte, error)
- type LastNFTIndexStateValueJSONMarshaler
- type LastNFTIndexStateValueJSONUnmarshaler
- type NFTBoxStateValue
- func (s *NFTBoxStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (s *NFTBoxStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (nb NFTBoxStateValue) HashBytes() []byte
- func (nb NFTBoxStateValue) Hint() hint.Hint
- func (nb NFTBoxStateValue) IsValid([]byte) error
- func (s NFTBoxStateValue) MarshalBSON() ([]byte, error)
- func (s NFTBoxStateValue) MarshalJSON() ([]byte, error)
- type NFTBoxStateValueBSONUnmarshaler
- type NFTBoxStateValueJSONMarshaler
- type NFTBoxStateValueJSONUnmarshaler
- type NFTStateValue
- func (s *NFTStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (s *NFTStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (ns NFTStateValue) HashBytes() []byte
- func (ns NFTStateValue) Hint() hint.Hint
- func (ns NFTStateValue) IsValid([]byte) error
- func (s NFTStateValue) MarshalBSON() ([]byte, error)
- func (s NFTStateValue) MarshalJSON() ([]byte, error)
- type NFTStateValueBSONUnmarshaler
- type NFTStateValueJSONMarshaler
- type NFTStateValueJSONUnmarshaler
- type OperatorsBookStateValue
- func (s *OperatorsBookStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (s *OperatorsBookStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (ob OperatorsBookStateValue) HashBytes() []byte
- func (ob OperatorsBookStateValue) Hint() hint.Hint
- func (ob OperatorsBookStateValue) IsValid([]byte) error
- func (s OperatorsBookStateValue) MarshalBSON() ([]byte, error)
- func (s OperatorsBookStateValue) MarshalJSON() ([]byte, error)
- type OperatorsBookStateValueBSONUnmarshaler
- type OperatorsBookStateValueJSONMarshaler
- type OperatorsBookStateValueJSONUnmarshaler
- type StateKey
Constants ¶
View Source
const ( NilKey = iota CollectionKey OperatorsKey LastIDXKey NFTBoxKey NFTKey )
Variables ¶
View Source
var ( NFTPrefix = "nft" StateKeyCollectionSuffix = "collection" StateKeyOperatorsSuffix = "operators" StateKeyLastNFTIDXSuffix = "lastnftidx" StateKeyNFTBoxSuffix = "nftbox" StateKeyNFTSuffix = "nft" )
View Source
var CollectionStateValueHint = hint.MustNewHint("collection-state-value-v0.0.1")
View Source
var LastNFTIndexStateValueHint = hint.MustNewHint("collection-last-nft-index-state-value-v0.0.1")
View Source
var NFTBoxStateValueHint = hint.MustNewHint("nft-box-state-value-v0.0.1")
View Source
var (
NFTStateValueHint = hint.MustNewHint("nft-state-value-v0.0.1")
)
View Source
var OperatorsBookStateValueHint = hint.MustNewHint("operators-book-state-value-v0.0.1")
Functions ¶
func StateKeyNFTPrefix ¶
func StateKeyOperators ¶
func StateOperatorsBookValue ¶
func StateOperatorsBookValue(st mitumbase.State) (*types.OperatorsBook, error)
Types ¶
type CollectionDesignStateValueJSONMarshaler ¶
type CollectionDesignStateValueJSONMarshaler struct { hint.BaseHinter Design types.Design `json:"collectiondesign"` }
type CollectionDesignStateValueJSONUnmarshaler ¶
type CollectionDesignStateValueJSONUnmarshaler struct { Hint hint.Hint `json:"_hint"` Design json.RawMessage `json:"collectiondesign"` }
type CollectionStateValue ¶
type CollectionStateValue struct { hint.BaseHinter Design types.Design }
func NewCollectionStateValue ¶
func NewCollectionStateValue(design types.Design) CollectionStateValue
func (*CollectionStateValue) DecodeBSON ¶
func (s *CollectionStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*CollectionStateValue) DecodeJSON ¶
func (s *CollectionStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
func (CollectionStateValue) HashBytes ¶
func (cs CollectionStateValue) HashBytes() []byte
func (CollectionStateValue) Hint ¶
func (cs CollectionStateValue) Hint() hint.Hint
func (CollectionStateValue) IsValid ¶
func (cs CollectionStateValue) IsValid([]byte) error
func (CollectionStateValue) MarshalBSON ¶
func (s CollectionStateValue) MarshalBSON() ([]byte, error)
func (CollectionStateValue) MarshalJSON ¶
func (s CollectionStateValue) MarshalJSON() ([]byte, error)
type LastNFTIndexStateValue ¶
type LastNFTIndexStateValue struct { hint.BaseHinter // contains filtered or unexported fields }
func NewLastNFTIndexStateValue ¶
func NewLastNFTIndexStateValue(id uint64) LastNFTIndexStateValue
func (*LastNFTIndexStateValue) DecodeBSON ¶
func (s *LastNFTIndexStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*LastNFTIndexStateValue) DecodeJSON ¶
func (s *LastNFTIndexStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
func (LastNFTIndexStateValue) HashBytes ¶
func (is LastNFTIndexStateValue) HashBytes() []byte
func (LastNFTIndexStateValue) Hint ¶
func (is LastNFTIndexStateValue) Hint() hint.Hint
func (LastNFTIndexStateValue) IsValid ¶
func (is LastNFTIndexStateValue) IsValid([]byte) error
func (LastNFTIndexStateValue) MarshalBSON ¶
func (s LastNFTIndexStateValue) MarshalBSON() ([]byte, error)
func (LastNFTIndexStateValue) MarshalJSON ¶
func (s LastNFTIndexStateValue) MarshalJSON() ([]byte, error)
type LastNFTIndexStateValueJSONMarshaler ¶
type LastNFTIndexStateValueJSONMarshaler struct { hint.BaseHinter Index uint64 `json:"index"` }
type NFTBoxStateValue ¶
type NFTBoxStateValue struct { hint.BaseHinter Box types.NFTBox }
func NewNFTBoxStateValue ¶
func NewNFTBoxStateValue(box types.NFTBox) NFTBoxStateValue
func (*NFTBoxStateValue) DecodeBSON ¶
func (s *NFTBoxStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*NFTBoxStateValue) DecodeJSON ¶
func (s *NFTBoxStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
func (NFTBoxStateValue) HashBytes ¶
func (nb NFTBoxStateValue) HashBytes() []byte
func (NFTBoxStateValue) Hint ¶
func (nb NFTBoxStateValue) Hint() hint.Hint
func (NFTBoxStateValue) IsValid ¶
func (nb NFTBoxStateValue) IsValid([]byte) error
func (NFTBoxStateValue) MarshalBSON ¶
func (s NFTBoxStateValue) MarshalBSON() ([]byte, error)
func (NFTBoxStateValue) MarshalJSON ¶
func (s NFTBoxStateValue) MarshalJSON() ([]byte, error)
type NFTBoxStateValueJSONMarshaler ¶
type NFTBoxStateValueJSONMarshaler struct { hint.BaseHinter Box types.NFTBox `json:"nftbox"` }
type NFTBoxStateValueJSONUnmarshaler ¶
type NFTBoxStateValueJSONUnmarshaler struct { Hint hint.Hint `json:"_hint"` Box json.RawMessage `json:"nftbox"` }
type NFTStateValue ¶
type NFTStateValue struct { hint.BaseHinter NFT types.NFT }
func NewNFTStateValue ¶
func NewNFTStateValue(n types.NFT) NFTStateValue
func (*NFTStateValue) DecodeBSON ¶
func (s *NFTStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*NFTStateValue) DecodeJSON ¶
func (s *NFTStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
func (NFTStateValue) HashBytes ¶
func (ns NFTStateValue) HashBytes() []byte
func (NFTStateValue) Hint ¶
func (ns NFTStateValue) Hint() hint.Hint
func (NFTStateValue) IsValid ¶
func (ns NFTStateValue) IsValid([]byte) error
func (NFTStateValue) MarshalBSON ¶
func (s NFTStateValue) MarshalBSON() ([]byte, error)
func (NFTStateValue) MarshalJSON ¶
func (s NFTStateValue) MarshalJSON() ([]byte, error)
type NFTStateValueJSONMarshaler ¶
type NFTStateValueJSONMarshaler struct { hint.BaseHinter NFT types.NFT `json:"nft"` }
type NFTStateValueJSONUnmarshaler ¶
type NFTStateValueJSONUnmarshaler struct { Hint hint.Hint `json:"_hint"` NFT json.RawMessage `json:"nft"` }
type OperatorsBookStateValue ¶
type OperatorsBookStateValue struct { hint.BaseHinter Operators types.OperatorsBook }
func NewOperatorsBookStateValue ¶
func NewOperatorsBookStateValue(operators types.OperatorsBook) OperatorsBookStateValue
func (*OperatorsBookStateValue) DecodeBSON ¶
func (s *OperatorsBookStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*OperatorsBookStateValue) DecodeJSON ¶
func (s *OperatorsBookStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
func (OperatorsBookStateValue) HashBytes ¶
func (ob OperatorsBookStateValue) HashBytes() []byte
func (OperatorsBookStateValue) Hint ¶
func (ob OperatorsBookStateValue) Hint() hint.Hint
func (OperatorsBookStateValue) IsValid ¶
func (ob OperatorsBookStateValue) IsValid([]byte) error
func (OperatorsBookStateValue) MarshalBSON ¶
func (s OperatorsBookStateValue) MarshalBSON() ([]byte, error)
func (OperatorsBookStateValue) MarshalJSON ¶
func (s OperatorsBookStateValue) MarshalJSON() ([]byte, error)
type OperatorsBookStateValueJSONMarshaler ¶
type OperatorsBookStateValueJSONMarshaler struct { hint.BaseHinter Operators types.OperatorsBook `json:"operatorsbook"` }
type OperatorsBookStateValueJSONUnmarshaler ¶
type OperatorsBookStateValueJSONUnmarshaler struct { Hint hint.Hint `json:"_hint"` Operators json.RawMessage `json:"operatorsbook"` }
Click to show internal directories.
Click to hide internal directories.