base

package
v1.0.1-0...-9b07162 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDocument        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDocument          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDocument = fmt.Errorf("proto: unexpected end of group")
)

Functions

func NewAsset

func NewAsset(classificationID ids.ClassificationID, immutables qualified.Immutables, mutables qualified.Mutables) documents.Asset

func NewAssetFromDocument

func NewAssetFromDocument(document documents.Document) 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 NewCoinAsset(denom string) documents.CoinAsset

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 NewIdentityFromDocument(document documents.Document) documents.Identity

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 NewNameIdentity(name ids.StringID, authentication data.ListData) documents.NameIdentity

func NewOrder

func NewOrder(classificationID ids.ClassificationID, immutables qualified.Immutables, mutables qualified.Mutables) documents.Order

func NewOrderFromDocument

func NewOrderFromDocument(document documents.Document) documents.Order

func NewPutOrder

func NewPutOrder(makerID ids.IdentityID, makerAssetID ids.AssetID, takerAssetID ids.AssetID, makerSplit math.Int, takerSplit math.Int, expiryHeight types.Height) documents.PutOrder

func PrototypeCoinAsset

func PrototypeCoinAsset() documents.CoinAsset

func PrototypeMaintainer

func PrototypeMaintainer() documents.Maintainer

func PrototypeModuleIdentity

func PrototypeModuleIdentity() documents.ModuleIdentity

func PrototypeNameIdentity

func PrototypeNameIdentity() documents.NameIdentity

func PrototypePutOrder

func PrototypePutOrder() documents.PutOrder

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) Descriptor() ([]byte, []int)

func (*Document) GenerateHashID

func (document *Document) GenerateHashID() ids.HashID

func (*Document) Get

func (document *Document) Get() documents.Document

func (*Document) GetClassificationID

func (document *Document) GetClassificationID() ids.ClassificationID

func (*Document) GetImmutables

func (document *Document) GetImmutables() qualified.Immutables

func (*Document) GetMutables

func (document *Document) GetMutables() qualified.Mutables

func (*Document) GetProperty

func (document *Document) GetProperty(propertyID ids.PropertyID) properties.AnyProperty

func (*Document) Marshal

func (m *Document) Marshal() (dAtA []byte, err error)

func (*Document) MarshalTo

func (m *Document) MarshalTo(dAtA []byte) (int, error)

func (*Document) MarshalToSizedBuffer

func (m *Document) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Document) Mutate

func (document *Document) Mutate(propertyList ...properties.Property) documents.Document

TODO write test case

func (*Document) ProtoMessage

func (*Document) ProtoMessage()

func (*Document) Reset

func (m *Document) Reset()

func (*Document) Size

func (m *Document) Size() (n int)

func (*Document) String

func (m *Document) String() string

func (*Document) Unmarshal

func (m *Document) Unmarshal(dAtA []byte) error

func (*Document) ValidateBasic

func (document *Document) ValidateBasic() error

func (*Document) XXX_DiscardUnknown

func (m *Document) XXX_DiscardUnknown()

func (*Document) XXX_Marshal

func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Document) XXX_Merge

func (m *Document) XXX_Merge(src proto.Message)

func (*Document) XXX_Size

func (m *Document) XXX_Size() int

func (*Document) XXX_Unmarshal

func (m *Document) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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