dct

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDct        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDct          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDct = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type DCTRoles

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

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

func (*DCTRoles) Descriptor

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

func (*DCTRoles) Equal

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

func (*DCTRoles) GetRoles

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

func (*DCTRoles) GoString

func (this *DCTRoles) GoString() string

func (*DCTRoles) Marshal

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

func (*DCTRoles) MarshalTo

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

func (*DCTRoles) MarshalToSizedBuffer

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

func (*DCTRoles) ProtoMessage

func (*DCTRoles) ProtoMessage()

func (*DCTRoles) Reset

func (m *DCTRoles) Reset()

func (*DCTRoles) Size

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

func (*DCTRoles) String

func (this *DCTRoles) String() string

func (*DCTRoles) Unmarshal

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

func (*DCTRoles) XXX_DiscardUnknown

func (m *DCTRoles) XXX_DiscardUnknown()

func (*DCTRoles) XXX_Marshal

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

func (*DCTRoles) XXX_Merge

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

func (*DCTRoles) XXX_Size

func (m *DCTRoles) XXX_Size() int

func (*DCTRoles) XXX_Unmarshal

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

type DCToken

type DCToken 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"`
}

DCToken holds the data for a Dharitri Core Token (DCT) transaction

func New

func New() *DCToken

New returns a new batch from given buffers

func (*DCToken) Descriptor

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

func (*DCToken) Equal

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

func (*DCToken) GetProperties

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

func (*DCToken) GetReserved

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

func (*DCToken) GetTokenMetaData

func (m *DCToken) GetTokenMetaData() *MetaData

func (*DCToken) GetType

func (m *DCToken) GetType() uint32

func (*DCToken) GetValue

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

func (*DCToken) GoString

func (this *DCToken) GoString() string

func (*DCToken) Marshal

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

func (*DCToken) MarshalTo

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

func (*DCToken) MarshalToSizedBuffer

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

func (*DCToken) ProtoMessage

func (*DCToken) ProtoMessage()

func (*DCToken) Reset

func (m *DCToken) Reset()

func (*DCToken) Size

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

func (*DCToken) String

func (this *DCToken) String() string

func (*DCToken) Unmarshal

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

func (*DCToken) XXX_DiscardUnknown

func (m *DCToken) XXX_DiscardUnknown()

func (*DCToken) XXX_Marshal

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

func (*DCToken) XXX_Merge

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

func (*DCToken) XXX_Size

func (m *DCToken) XXX_Size() int

func (*DCToken) XXX_Unmarshal

func (m *DCToken) 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 DCT 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

Jump to

Keyboard shortcuts

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