dcdt

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 11 Imported by: 53

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

This section is empty.

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 `` /* 135-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 kalyan Core 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

Jump to

Keyboard shortcuts

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