Documentation
¶
Index ¶
- Variables
- func DepositRecordStateKey(addr string, acAddr string) string
- func DesignStateKey(addr string) string
- func GetDepositRecordFromState(st base.State) (*types.DepositRecord, error)
- func GetDesignFromState(st base.State) (types.Design, error)
- func IsDepositRecordStateKey(key string) bool
- func IsDesignStateKey(key string) bool
- func PaymentStateKey(addr string) string
- type DepositRecordStateValue
- func (sv *DepositRecordStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (sv *DepositRecordStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (sv DepositRecordStateValue) HashBytes() []byte
- func (sv DepositRecordStateValue) Hint() hint.Hint
- func (sv DepositRecordStateValue) IsValid([]byte) error
- func (sv DepositRecordStateValue) MarshalBSON() ([]byte, error)
- func (sv DepositRecordStateValue) MarshalJSON() ([]byte, error)
- type DepositRecordStateValueBSONUnmarshaler
- type DepositRecordStateValueJSONMarshaler
- type DepositRecordStateValueJSONUnmarshaler
- type DesignStateValue
- func (sv *DesignStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (sv *DesignStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (sv DesignStateValue) HashBytes() []byte
- func (sv DesignStateValue) Hint() hint.Hint
- func (sv DesignStateValue) IsValid([]byte) error
- func (sv DesignStateValue) MarshalBSON() ([]byte, error)
- func (sv DesignStateValue) MarshalJSON() ([]byte, error)
- type DesignStateValueBSONUnmarshaler
- type DesignStateValueJSONMarshaler
- type DesignStateValueJSONUnmarshaler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DesignStateValueHint = hint.MustNewHint("mitum-payment-design-state-value-v0.0.1") PaymentStateKeyPrefix = "payment" DesignStateKeySuffix = "design" )
View Source
var ( DepositRecordStateValueHint = hint.MustNewHint("mitum-payment-deposit-record-state-value-v0.0.1") DepositRecordStateKeySuffix = "depositrecord" )
Functions ¶
func DepositRecordStateKey ¶
func DesignStateKey ¶
func GetDepositRecordFromState ¶
func GetDepositRecordFromState(st base.State) (*types.DepositRecord, error)
func IsDepositRecordStateKey ¶
func IsDesignStateKey ¶
func PaymentStateKey ¶
Types ¶
type DepositRecordStateValue ¶
type DepositRecordStateValue struct {
hint.BaseHinter
Record types.DepositRecord
}
func NewDepositRecordStateValue ¶
func NewDepositRecordStateValue(record types.DepositRecord) DepositRecordStateValue
func (*DepositRecordStateValue) DecodeBSON ¶
func (sv *DepositRecordStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*DepositRecordStateValue) DecodeJSON ¶
func (sv *DepositRecordStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
func (DepositRecordStateValue) HashBytes ¶
func (sv DepositRecordStateValue) HashBytes() []byte
func (DepositRecordStateValue) Hint ¶
func (sv DepositRecordStateValue) Hint() hint.Hint
func (DepositRecordStateValue) IsValid ¶
func (sv DepositRecordStateValue) IsValid([]byte) error
func (DepositRecordStateValue) MarshalBSON ¶
func (sv DepositRecordStateValue) MarshalBSON() ([]byte, error)
func (DepositRecordStateValue) MarshalJSON ¶
func (sv DepositRecordStateValue) MarshalJSON() ([]byte, error)
type DepositRecordStateValueJSONMarshaler ¶
type DepositRecordStateValueJSONMarshaler struct {
hint.BaseHinter
Record types.DepositRecord `json:"deposit_record"`
}
type DepositRecordStateValueJSONUnmarshaler ¶
type DepositRecordStateValueJSONUnmarshaler struct {
Hint hint.Hint `json:"_hint"`
DepositRecord json.RawMessage `json:"deposit_record"`
}
type DesignStateValue ¶
type DesignStateValue struct {
hint.BaseHinter
Design types.Design
}
func NewDesignStateValue ¶
func NewDesignStateValue(design types.Design) DesignStateValue
func (*DesignStateValue) DecodeBSON ¶
func (sv *DesignStateValue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*DesignStateValue) DecodeJSON ¶
func (sv *DesignStateValue) DecodeJSON(b []byte, enc encoder.Encoder) error
func (DesignStateValue) HashBytes ¶
func (sv DesignStateValue) HashBytes() []byte
func (DesignStateValue) Hint ¶
func (sv DesignStateValue) Hint() hint.Hint
func (DesignStateValue) IsValid ¶
func (sv DesignStateValue) IsValid([]byte) error
func (DesignStateValue) MarshalBSON ¶
func (sv DesignStateValue) MarshalBSON() ([]byte, error)
func (DesignStateValue) MarshalJSON ¶
func (sv DesignStateValue) MarshalJSON() ([]byte, error)
type DesignStateValueJSONMarshaler ¶
type DesignStateValueJSONMarshaler struct {
hint.BaseHinter
Design types.Design `json:"design"`
}
type DesignStateValueJSONUnmarshaler ¶
type DesignStateValueJSONUnmarshaler struct {
Hint hint.Hint `json:"_hint"`
Design json.RawMessage `json:"design"`
}
Click to show internal directories.
Click to hide internal directories.