mect

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: GPL-3.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMect        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMect          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMect = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type MECTRoles

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

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

func (*MECTRoles) Descriptor

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

func (*MECTRoles) Equal

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

func (*MECTRoles) GetRoles

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

func (*MECTRoles) GoString

func (this *MECTRoles) GoString() string

func (*MECTRoles) Marshal

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

func (*MECTRoles) MarshalTo

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

func (*MECTRoles) MarshalToSizedBuffer

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

func (*MECTRoles) ProtoMessage

func (*MECTRoles) ProtoMessage()

func (*MECTRoles) Reset

func (m *MECTRoles) Reset()

func (*MECTRoles) Size

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

func (*MECTRoles) String

func (this *MECTRoles) String() string

func (*MECTRoles) Unmarshal

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

func (*MECTRoles) XXX_DiscardUnknown

func (m *MECTRoles) XXX_DiscardUnknown()

func (*MECTRoles) XXX_Marshal

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

func (*MECTRoles) XXX_Merge

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

func (*MECTRoles) XXX_Size

func (m *MECTRoles) XXX_Size() int

func (*MECTRoles) XXX_Unmarshal

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

type MECToken

type MECToken struct {
	Type          uint32        `protobuf:"varint,1,opt,name=Type,proto3" json:"Type"`
	Value         *math_big.Int `` /* 131-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"`
}

MECToken holds the data for a MotherEarth standard digital token transaction

func New

func New() *MECToken

New returns a new batch from given buffers

func (*MECToken) Descriptor

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

func (*MECToken) Equal

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

func (*MECToken) GetProperties

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

func (*MECToken) GetReserved

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

func (*MECToken) GetTokenMetaData

func (m *MECToken) GetTokenMetaData() *MetaData

func (*MECToken) GetType

func (m *MECToken) GetType() uint32

func (*MECToken) GetValue

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

func (*MECToken) GoString

func (this *MECToken) GoString() string

func (*MECToken) Marshal

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

func (*MECToken) MarshalTo

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

func (*MECToken) MarshalToSizedBuffer

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

func (*MECToken) ProtoMessage

func (*MECToken) ProtoMessage()

func (*MECToken) Reset

func (m *MECToken) Reset()

func (*MECToken) Size

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

func (*MECToken) String

func (this *MECToken) String() string

func (*MECToken) Unmarshal

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

func (*MECToken) XXX_DiscardUnknown

func (m *MECToken) XXX_DiscardUnknown()

func (*MECToken) XXX_Marshal

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

func (*MECToken) XXX_Merge

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

func (*MECToken) XXX_Size

func (m *MECToken) XXX_Size() int

func (*MECToken) XXX_Unmarshal

func (m *MECToken) 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 MECT 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