dcdt

package
v0.0.0-...-69ae7dd Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDcdt        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDcdt          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDcdt = fmt.Errorf("proto: unexpected end of group")
)

Functions

func IsTickerValid

func IsTickerValid(ticker string) bool

IsTickerValid checks if the token ticker is valid

func IsTokenTickerLenCorrect

func IsTokenTickerLenCorrect(tokenTickerLen int) bool

IsTokenTickerLenCorrect checks if the token ticker len is correct

func IsValidPrefixedToken

func IsValidPrefixedToken(token string) (string, bool)

IsValidPrefixedToken checks if the provided token is valid, and returns if prefix if so

func IsValidTokenPrefix

func IsValidTokenPrefix(prefix string) bool

IsValidTokenPrefix checks if the token prefix is valid

Types

type DCDTRoles

type DCDTRoles struct {
	Roles [][]byte `protobuf:"bytes,1,rep,name=Roles,proto3" json:"roles"`
}

DCDTRoles holds the roles for a given token and the given address

func (*DCDTRoles) Descriptor

func (*DCDTRoles) Descriptor() ([]byte, []int)

func (*DCDTRoles) Equal

func (this *DCDTRoles) Equal(that interface{}) bool

func (*DCDTRoles) GetRoles

func (m *DCDTRoles) GetRoles() [][]byte

func (*DCDTRoles) GoString

func (this *DCDTRoles) GoString() string

func (*DCDTRoles) Marshal

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

func (*DCDTRoles) MarshalTo

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

func (*DCDTRoles) MarshalToSizedBuffer

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

func (*DCDTRoles) ProtoMessage

func (*DCDTRoles) ProtoMessage()

func (*DCDTRoles) Reset

func (m *DCDTRoles) Reset()

func (*DCDTRoles) Size

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

func (*DCDTRoles) String

func (this *DCDTRoles) String() string

func (*DCDTRoles) Unmarshal

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

func (*DCDTRoles) XXX_DiscardUnknown

func (m *DCDTRoles) XXX_DiscardUnknown()

func (*DCDTRoles) XXX_Marshal

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

func (*DCDTRoles) XXX_Merge

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

func (*DCDTRoles) XXX_Size

func (m *DCDTRoles) XXX_Size() int

func (*DCDTRoles) XXX_Unmarshal

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

type DCDigitalToken

type DCDigitalToken struct {
	Type          uint32        `protobuf:"varint,1,opt,name=Type,proto3" json:"Type"`
	Value         *math_big.Int `` /* 134-byte string literal not displayed */
	Properties    []byte        `protobuf:"bytes,3,opt,name=Properties,proto3" json:"Properties"`
	TokenMetaData *MetaData     `protobuf:"bytes,4,opt,name=TokenMetaData,proto3" json:"MetaData"`
	Reserved      []byte        `protobuf:"bytes,5,opt,name=Reserved,proto3" json:"Reserved"`
}

DCDigitalToken holds the data for a electronic standard digital token transaction

func New

func New() *DCDigitalToken

New returns a new batch from given buffers

func (*DCDigitalToken) Descriptor

func (*DCDigitalToken) Descriptor() ([]byte, []int)

func (*DCDigitalToken) Equal

func (this *DCDigitalToken) Equal(that interface{}) bool

func (*DCDigitalToken) GetProperties

func (m *DCDigitalToken) GetProperties() []byte

func (*DCDigitalToken) GetReserved

func (m *DCDigitalToken) GetReserved() []byte

func (*DCDigitalToken) GetTokenMetaData

func (m *DCDigitalToken) GetTokenMetaData() *MetaData

func (*DCDigitalToken) GetType

func (m *DCDigitalToken) GetType() uint32

func (*DCDigitalToken) GetValue

func (m *DCDigitalToken) GetValue() *math_big.Int

func (*DCDigitalToken) GoString

func (this *DCDigitalToken) GoString() string

func (*DCDigitalToken) Marshal

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

func (*DCDigitalToken) MarshalTo

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

func (*DCDigitalToken) MarshalToSizedBuffer

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

func (*DCDigitalToken) ProtoMessage

func (*DCDigitalToken) ProtoMessage()

func (*DCDigitalToken) Reset

func (m *DCDigitalToken) Reset()

func (*DCDigitalToken) Size

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

func (*DCDigitalToken) String

func (this *DCDigitalToken) String() string

func (*DCDigitalToken) Unmarshal

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

func (*DCDigitalToken) XXX_DiscardUnknown

func (m *DCDigitalToken) XXX_DiscardUnknown()

func (*DCDigitalToken) XXX_Marshal

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

func (*DCDigitalToken) XXX_Merge

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

func (*DCDigitalToken) XXX_Size

func (m *DCDigitalToken) XXX_Size() int

func (*DCDigitalToken) XXX_Unmarshal

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

type MetaData

type MetaData struct {
	Nonce      uint64   `protobuf:"varint,1,opt,name=Nonce,proto3" json:"Nonce"`
	Name       []byte   `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name"`
	Creator    []byte   `protobuf:"bytes,3,opt,name=Creator,proto3" json:"Creator"`
	Royalties  uint32   `protobuf:"varint,4,opt,name=Royalties,proto3" json:"Royalties"`
	Hash       []byte   `protobuf:"bytes,5,opt,name=Hash,proto3" json:"Hash"`
	URIs       [][]byte `protobuf:"bytes,6,rep,name=URIs,proto3" json:"URIs"`
	Attributes []byte   `protobuf:"bytes,7,opt,name=Attributes,proto3" json:"Attributes"`
}

MetaData hold the metadata structure for the DCDT token

func (*MetaData) Descriptor

func (*MetaData) Descriptor() ([]byte, []int)

func (*MetaData) Equal

func (this *MetaData) Equal(that interface{}) bool

func (*MetaData) GetAttributes

func (m *MetaData) GetAttributes() []byte

func (*MetaData) GetCreator

func (m *MetaData) GetCreator() []byte

func (*MetaData) GetHash

func (m *MetaData) GetHash() []byte

func (*MetaData) GetName

func (m *MetaData) GetName() []byte

func (*MetaData) GetNonce

func (m *MetaData) GetNonce() uint64

func (*MetaData) GetRoyalties

func (m *MetaData) GetRoyalties() uint32

func (*MetaData) GetURIs

func (m *MetaData) GetURIs() [][]byte

func (*MetaData) GoString

func (this *MetaData) GoString() string

func (*MetaData) Marshal

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

func (*MetaData) MarshalTo

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

func (*MetaData) MarshalToSizedBuffer

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

func (*MetaData) ProtoMessage

func (*MetaData) ProtoMessage()

func (*MetaData) Reset

func (m *MetaData) Reset()

func (*MetaData) Size

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

func (*MetaData) String

func (this *MetaData) String() string

func (*MetaData) Unmarshal

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

func (*MetaData) XXX_DiscardUnknown

func (m *MetaData) XXX_DiscardUnknown()

func (*MetaData) XXX_Marshal

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

func (*MetaData) XXX_Merge

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

func (*MetaData) XXX_Size

func (m *MetaData) XXX_Size() int

func (*MetaData) XXX_Unmarshal

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

type MetaDataVersion

type MetaDataVersion struct {
	Name       uint64 `protobuf:"varint,1,opt,name=Name,proto3" json:"Name"`
	Creator    uint64 `protobuf:"varint,2,opt,name=Creator,proto3" json:"Creator"`
	Royalties  uint64 `protobuf:"varint,3,opt,name=Royalties,proto3" json:"Royalties"`
	Hash       uint64 `protobuf:"varint,4,opt,name=Hash,proto3" json:"Hash"`
	URIs       uint64 `protobuf:"varint,5,opt,name=URIs,proto3" json:"URIs"`
	Attributes uint64 `protobuf:"varint,6,opt,name=Attributes,proto3" json:"Attributes"`
}

func (*MetaDataVersion) Descriptor

func (*MetaDataVersion) Descriptor() ([]byte, []int)

func (*MetaDataVersion) Equal

func (this *MetaDataVersion) Equal(that interface{}) bool

func (*MetaDataVersion) GetAttributes

func (m *MetaDataVersion) GetAttributes() uint64

func (*MetaDataVersion) GetCreator

func (m *MetaDataVersion) GetCreator() uint64

func (*MetaDataVersion) GetHash

func (m *MetaDataVersion) GetHash() uint64

func (*MetaDataVersion) GetName

func (m *MetaDataVersion) GetName() uint64

func (*MetaDataVersion) GetRoyalties

func (m *MetaDataVersion) GetRoyalties() uint64

func (*MetaDataVersion) GetURIs

func (m *MetaDataVersion) GetURIs() uint64

func (*MetaDataVersion) GoString

func (this *MetaDataVersion) GoString() string

func (*MetaDataVersion) Marshal

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

func (*MetaDataVersion) MarshalTo

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

func (*MetaDataVersion) MarshalToSizedBuffer

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

func (*MetaDataVersion) ProtoMessage

func (*MetaDataVersion) ProtoMessage()

func (*MetaDataVersion) Reset

func (m *MetaDataVersion) Reset()

func (*MetaDataVersion) Size

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

func (*MetaDataVersion) String

func (this *MetaDataVersion) String() string

func (*MetaDataVersion) Unmarshal

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

func (*MetaDataVersion) XXX_DiscardUnknown

func (m *MetaDataVersion) XXX_DiscardUnknown()

func (*MetaDataVersion) XXX_Marshal

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

func (*MetaDataVersion) XXX_Merge

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

func (*MetaDataVersion) XXX_Size

func (m *MetaDataVersion) XXX_Size() int

func (*MetaDataVersion) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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