Documentation ¶
Index ¶
- Variables
- func NewAsset(classificationID ids.ClassificationID, immutables qualified.Immutables, ...) documents.Asset
- func NewAssetFromDocument(document documents.Document) documents.Asset
- func NewClassification(immutables qualified.Immutables, mutables qualified.Mutables) documents.Classification
- func NewClassificationFromDocument(document documents.Document) documents.Classification
- func NewCoinAsset(denom string) documents.CoinAsset
- func NewDocument(classificationID ids.ClassificationID, immutables qualified.Immutables, ...) documents.Document
- func NewIdentity(classificationID ids.ClassificationID, immutables qualified.Immutables, ...) documents.Identity
- func NewIdentityFromDocument(document documents.Document) documents.Identity
- func NewMaintainer(identityID ids.IdentityID, maintainedClassificationID ids.ClassificationID, ...) documents.Maintainer
- func NewMaintainerFromDocument(document documents.Document) documents.Maintainer
- func NewModuleIdentity(moduleName string) documents.ModuleIdentity
- func NewNameIdentity(name ids.StringID, authentication data.ListData) documents.NameIdentity
- func NewOrder(classificationID ids.ClassificationID, immutables qualified.Immutables, ...) documents.Order
- func NewOrderFromDocument(document documents.Document) documents.Order
- func NewPutOrder(makerID ids.IdentityID, makerAssetID ids.AssetID, takerAssetID ids.AssetID, ...) documents.PutOrder
- func PrototypeCoinAsset() documents.CoinAsset
- func PrototypeMaintainer() documents.Maintainer
- func PrototypeModuleIdentity() documents.ModuleIdentity
- func PrototypeNameIdentity() documents.NameIdentity
- func PrototypePutOrder() documents.PutOrder
- type Document
- func (*Document) Descriptor() ([]byte, []int)
- func (document *Document) GenerateHashID() ids.HashID
- func (document *Document) Get() documents.Document
- func (document *Document) GetClassificationID() ids.ClassificationID
- func (document *Document) GetImmutables() qualified.Immutables
- func (document *Document) GetMutables() qualified.Mutables
- func (document *Document) GetProperty(propertyID ids.PropertyID) properties.AnyProperty
- func (m *Document) Marshal() (dAtA []byte, err error)
- func (m *Document) MarshalTo(dAtA []byte) (int, error)
- func (m *Document) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (document *Document) Mutate(propertyList ...properties.Property) documents.Document
- func (*Document) ProtoMessage()
- func (m *Document) Reset()
- func (m *Document) Size() (n int)
- func (m *Document) String() string
- func (m *Document) Unmarshal(dAtA []byte) error
- func (document *Document) ValidateBasic() error
- func (m *Document) XXX_DiscardUnknown()
- func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Document) XXX_Merge(src proto.Message)
- func (m *Document) XXX_Size() int
- func (m *Document) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewAsset ¶
func NewAsset(classificationID ids.ClassificationID, immutables qualified.Immutables, mutables qualified.Mutables) documents.Asset
func NewClassification ¶
func NewClassification(immutables qualified.Immutables, mutables qualified.Mutables) documents.Classification
func NewClassificationFromDocument ¶
func NewClassificationFromDocument(document documents.Document) documents.Classification
func NewCoinAsset ¶
func NewDocument ¶
func NewDocument(classificationID ids.ClassificationID, immutables qualified.Immutables, mutables qualified.Mutables) documents.Document
func NewIdentity ¶
func NewIdentity(classificationID ids.ClassificationID, immutables qualified.Immutables, mutables qualified.Mutables) documents.Identity
func NewIdentityFromDocument ¶
func NewMaintainer ¶
func NewMaintainer(identityID ids.IdentityID, maintainedClassificationID ids.ClassificationID, maintainedPropertyIDList lists.IDList, permissions lists.IDList) documents.Maintainer
func NewMaintainerFromDocument ¶
func NewMaintainerFromDocument(document documents.Document) documents.Maintainer
func NewModuleIdentity ¶
func NewModuleIdentity(moduleName string) documents.ModuleIdentity
func NewNameIdentity ¶
func NewOrder ¶
func NewOrder(classificationID ids.ClassificationID, immutables qualified.Immutables, mutables qualified.Mutables) documents.Order
func NewPutOrder ¶
func PrototypeCoinAsset ¶
func PrototypeMaintainer ¶
func PrototypeMaintainer() documents.Maintainer
func PrototypeModuleIdentity ¶
func PrototypeModuleIdentity() documents.ModuleIdentity
func PrototypeNameIdentity ¶
func PrototypeNameIdentity() documents.NameIdentity
func PrototypePutOrder ¶
Types ¶
type Document ¶
type Document struct { ClassificationID *base.ClassificationID `protobuf:"bytes,1,opt,name=classification_i_d,json=classificationID,proto3" json:"classification_i_d,omitempty"` Immutables *base1.Immutables `protobuf:"bytes,2,opt,name=immutables,proto3" json:"immutables,omitempty"` Mutables *base1.Mutables `protobuf:"bytes,3,opt,name=mutables,proto3" json:"mutables,omitempty"` }
func (*Document) Descriptor ¶
func (*Document) GenerateHashID ¶
func (*Document) GetClassificationID ¶
func (document *Document) GetClassificationID() ids.ClassificationID
func (*Document) GetImmutables ¶
func (document *Document) GetImmutables() qualified.Immutables
func (*Document) GetMutables ¶
func (*Document) GetProperty ¶
func (document *Document) GetProperty(propertyID ids.PropertyID) properties.AnyProperty
func (*Document) MarshalToSizedBuffer ¶
func (*Document) Mutate ¶
func (document *Document) Mutate(propertyList ...properties.Property) documents.Document
TODO write test case
func (*Document) ProtoMessage ¶
func (*Document) ProtoMessage()
func (*Document) ValidateBasic ¶
func (*Document) XXX_DiscardUnknown ¶
func (m *Document) XXX_DiscardUnknown()
func (*Document) XXX_Marshal ¶
func (*Document) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.