Documentation ¶
Index ¶
- Variables
- type ApproveBox
- func (a ApproveBox) Account() base.Address
- func (a ApproveBox) Approved() []ApproveInfo
- func (a ApproveBox) Bytes() []byte
- func (a *ApproveBox) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (a *ApproveBox) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (a ApproveBox) GetApproveInfo(ad base.Address) *ApproveInfo
- func (a ApproveBox) IsValid([]byte) error
- func (a ApproveBox) MarshalBSON() ([]byte, error)
- func (a ApproveBox) MarshalJSON() ([]byte, error)
- func (a *ApproveBox) RemoveApproveInfo(ad base.Address) error
- func (a *ApproveBox) SetApproveInfo(ap ApproveInfo)
- type ApproveBoxBSONUnmarshaler
- type ApproveBoxJSONMarshaler
- type ApproveBoxJSONUnmarshaler
- type ApproveInfo
- func (a ApproveInfo) Account() base.Address
- func (a ApproveInfo) Amount() common.Big
- func (a ApproveInfo) Bytes() []byte
- func (a *ApproveInfo) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (a *ApproveInfo) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (a ApproveInfo) IsValid([]byte) error
- func (a ApproveInfo) MarshalBSON() ([]byte, error)
- func (a ApproveInfo) MarshalJSON() ([]byte, error)
- type ApproveInfoBSONUnmarshaler
- type ApproveInfoJSONMarshaler
- type ApproveInfoJSONUnmarshaler
- type Design
- func (d Design) Bytes() []byte
- func (d Design) Decimal() common.Big
- func (d *Design) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (d *Design) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (d Design) IsValid([]byte) error
- func (d Design) MarshalBSON() ([]byte, error)
- func (d Design) MarshalJSON() ([]byte, error)
- func (d Design) Name() string
- func (d Design) Policy() Policy
- func (d Design) Symbol() PointSymbol
- type DesignBSONUnmarshaler
- type DesignJSONMarshaler
- type DesignJSONUnmarshaler
- type PointSymbol
- type Policy
- func (p Policy) ApproveList() []ApproveBox
- func (p Policy) Bytes() []byte
- func (p *Policy) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (p *Policy) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (p Policy) GetApproveBox(acc base.Address) *ApproveBox
- func (p Policy) IsValid([]byte) error
- func (p Policy) MarshalBSON() ([]byte, error)
- func (p Policy) MarshalJSON() ([]byte, error)
- func (p *Policy) MergeApproveBox(napb ApproveBox)
- func (p *Policy) RemoveApproveBox(acc base.Address)
- func (p Policy) TotalSupply() common.Big
- type PolicyBSONUnmarshaler
- type PolicyJSONMarshaler
- type PolicyJSONUnmarshaler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MinLengthPointSymbol = 3 MaxLengthPointSymbol = 10 ReValidPointSymbol = regexp.MustCompile(`^[A-Z0-9][A-Z0-9_\.\!\$\*\@]*[A-Z0-9]$`) ReSpcecialChar = regexp.MustCompile(`^[^\s:/?#\[\]@]*$`) )
View Source
var ApproveBoxHint = hint.MustNewHint("mitum-point-approve-box-v0.0.1")
View Source
var ApproveInfoHint = hint.MustNewHint("mitum-point-approve-info-v0.0.1")
View Source
var DesignHint = hint.MustNewHint("mitum-point-design-v0.0.1")
View Source
var PolicyHint = hint.MustNewHint("mitum-point-policy-v0.0.1")
Functions ¶
This section is empty.
Types ¶
type ApproveBox ¶
type ApproveBox struct { hint.BaseHinter // contains filtered or unexported fields }
func NewApproveBox ¶
func NewApproveBox(account base.Address, approved []ApproveInfo) ApproveBox
func (ApproveBox) Account ¶
func (a ApproveBox) Account() base.Address
func (ApproveBox) Approved ¶
func (a ApproveBox) Approved() []ApproveInfo
func (ApproveBox) Bytes ¶
func (a ApproveBox) Bytes() []byte
func (*ApproveBox) DecodeBSON ¶
func (a *ApproveBox) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*ApproveBox) DecodeJSON ¶
func (a *ApproveBox) DecodeJSON(b []byte, enc encoder.Encoder) error
func (ApproveBox) GetApproveInfo ¶
func (a ApproveBox) GetApproveInfo(ad base.Address) *ApproveInfo
func (ApproveBox) IsValid ¶
func (a ApproveBox) IsValid([]byte) error
func (ApproveBox) MarshalBSON ¶
func (a ApproveBox) MarshalBSON() ([]byte, error)
func (ApproveBox) MarshalJSON ¶
func (a ApproveBox) MarshalJSON() ([]byte, error)
func (*ApproveBox) RemoveApproveInfo ¶
func (a *ApproveBox) RemoveApproveInfo(ad base.Address) error
func (*ApproveBox) SetApproveInfo ¶
func (a *ApproveBox) SetApproveInfo(ap ApproveInfo)
type ApproveBoxJSONMarshaler ¶
type ApproveBoxJSONMarshaler struct { hint.BaseHinter Account base.Address `json:"account"` Approved []ApproveInfo `json:"approved"` }
type ApproveBoxJSONUnmarshaler ¶
type ApproveBoxJSONUnmarshaler struct { Hint hint.Hint `json:"_hint"` Account string `json:"account"` Approved json.RawMessage `json:"approved"` }
type ApproveInfo ¶
type ApproveInfo struct { hint.BaseHinter // contains filtered or unexported fields }
func NewApproveInfo ¶
func NewApproveInfo(account base.Address, amount common.Big) ApproveInfo
func (ApproveInfo) Account ¶
func (a ApproveInfo) Account() base.Address
func (ApproveInfo) Amount ¶
func (a ApproveInfo) Amount() common.Big
func (ApproveInfo) Bytes ¶
func (a ApproveInfo) Bytes() []byte
func (*ApproveInfo) DecodeBSON ¶
func (a *ApproveInfo) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*ApproveInfo) DecodeJSON ¶
func (a *ApproveInfo) DecodeJSON(b []byte, enc encoder.Encoder) error
func (ApproveInfo) IsValid ¶
func (a ApproveInfo) IsValid([]byte) error
func (ApproveInfo) MarshalBSON ¶
func (a ApproveInfo) MarshalBSON() ([]byte, error)
func (ApproveInfo) MarshalJSON ¶
func (a ApproveInfo) MarshalJSON() ([]byte, error)
type ApproveInfoJSONMarshaler ¶
type ApproveInfoJSONMarshaler struct { hint.BaseHinter Account base.Address `json:"account"` Amount string `json:"amount"` }
type Design ¶
type Design struct { hint.BaseHinter // contains filtered or unexported fields }
func (Design) MarshalBSON ¶
func (Design) MarshalJSON ¶
func (Design) Symbol ¶
func (d Design) Symbol() PointSymbol
type DesignBSONUnmarshaler ¶
type DesignJSONMarshaler ¶
type DesignJSONMarshaler struct { hint.BaseHinter Symbol PointSymbol `json:"symbol"` Name string `json:"name"` Decimal string `json:"decimal"` Policy Policy `json:"policy"` }
type DesignJSONUnmarshaler ¶
type PointSymbol ¶
type PointSymbol string
func (PointSymbol) Bytes ¶
func (ps PointSymbol) Bytes() []byte
func (PointSymbol) IsValid ¶
func (ps PointSymbol) IsValid([]byte) error
func (PointSymbol) String ¶
func (ps PointSymbol) String() string
type Policy ¶
type Policy struct { hint.BaseHinter // contains filtered or unexported fields }
func (Policy) ApproveList ¶
func (p Policy) ApproveList() []ApproveBox
func (Policy) GetApproveBox ¶
func (p Policy) GetApproveBox(acc base.Address) *ApproveBox
func (Policy) MarshalBSON ¶
func (Policy) MarshalJSON ¶
func (*Policy) MergeApproveBox ¶
func (p *Policy) MergeApproveBox(napb ApproveBox)
func (*Policy) RemoveApproveBox ¶
func (Policy) TotalSupply ¶
type PolicyBSONUnmarshaler ¶
type PolicyJSONMarshaler ¶
type PolicyJSONMarshaler struct { hint.BaseHinter TotalSupply common.Big `json:"total_supply"` ApproveList []ApproveBox `json:"approve_list"` }
type PolicyJSONUnmarshaler ¶
type PolicyJSONUnmarshaler struct { Hint hint.Hint `json:"_hint"` TotalSupply string `json:"total_supply"` ApproveList json.RawMessage `json:"approve_list"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.