esdt

package
v1.1.64 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthEsdt        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEsdt          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEsdt = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ESDTRoles added in v1.1.39

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

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

func (*ESDTRoles) Descriptor added in v1.1.39

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

func (*ESDTRoles) Equal added in v1.1.39

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

func (*ESDTRoles) GetRoles added in v1.1.39

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

func (*ESDTRoles) GoString added in v1.1.39

func (this *ESDTRoles) GoString() string

func (*ESDTRoles) Marshal added in v1.1.39

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

func (*ESDTRoles) MarshalTo added in v1.1.39

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

func (*ESDTRoles) MarshalToSizedBuffer added in v1.1.39

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

func (*ESDTRoles) ProtoMessage added in v1.1.39

func (*ESDTRoles) ProtoMessage()

func (*ESDTRoles) Reset added in v1.1.39

func (m *ESDTRoles) Reset()

func (*ESDTRoles) Size added in v1.1.39

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

func (*ESDTRoles) String added in v1.1.39

func (this *ESDTRoles) String() string

func (*ESDTRoles) Unmarshal added in v1.1.39

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

func (*ESDTRoles) XXX_DiscardUnknown added in v1.1.39

func (m *ESDTRoles) XXX_DiscardUnknown()

func (*ESDTRoles) XXX_Marshal added in v1.1.39

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

func (*ESDTRoles) XXX_Merge added in v1.1.39

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

func (*ESDTRoles) XXX_Size added in v1.1.39

func (m *ESDTRoles) XXX_Size() int

func (*ESDTRoles) XXX_Unmarshal added in v1.1.39

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

type ESDigitalToken

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

ESDigitalToken holds the data for a Elrond standard digital token transaction

func New

func New() *ESDigitalToken

New returns a new batch from given buffers

func (*ESDigitalToken) Descriptor

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

func (*ESDigitalToken) Equal

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

func (*ESDigitalToken) GetProperties

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

func (*ESDigitalToken) GetReserved added in v1.1.39

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

func (*ESDigitalToken) GetTokenMetaData added in v1.1.39

func (m *ESDigitalToken) GetTokenMetaData() *MetaData

func (*ESDigitalToken) GetType added in v1.1.39

func (m *ESDigitalToken) GetType() uint32

func (*ESDigitalToken) GetValue

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

func (*ESDigitalToken) GoString

func (this *ESDigitalToken) GoString() string

func (*ESDigitalToken) Marshal

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

func (*ESDigitalToken) MarshalTo

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

func (*ESDigitalToken) MarshalToSizedBuffer

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

func (*ESDigitalToken) ProtoMessage

func (*ESDigitalToken) ProtoMessage()

func (*ESDigitalToken) Reset

func (m *ESDigitalToken) Reset()

func (*ESDigitalToken) Size

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

func (*ESDigitalToken) String

func (this *ESDigitalToken) String() string

func (*ESDigitalToken) Unmarshal

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

func (*ESDigitalToken) XXX_DiscardUnknown

func (m *ESDigitalToken) XXX_DiscardUnknown()

func (*ESDigitalToken) XXX_Marshal

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

func (*ESDigitalToken) XXX_Merge

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

func (*ESDigitalToken) XXX_Size

func (m *ESDigitalToken) XXX_Size() int

func (*ESDigitalToken) XXX_Unmarshal

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

type MetaData added in v1.1.39

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 ESDT token

func (*MetaData) Descriptor added in v1.1.39

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

func (*MetaData) Equal added in v1.1.39

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

func (*MetaData) GetAttributes added in v1.1.39

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

func (*MetaData) GetCreator added in v1.1.39

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

func (*MetaData) GetHash added in v1.1.39

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

func (*MetaData) GetName added in v1.1.39

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

func (*MetaData) GetNonce added in v1.1.39

func (m *MetaData) GetNonce() uint64

func (*MetaData) GetRoyalties added in v1.1.39

func (m *MetaData) GetRoyalties() uint32

func (*MetaData) GetURIs added in v1.1.39

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

func (*MetaData) GoString added in v1.1.39

func (this *MetaData) GoString() string

func (*MetaData) Marshal added in v1.1.39

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

func (*MetaData) MarshalTo added in v1.1.39

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

func (*MetaData) MarshalToSizedBuffer added in v1.1.39

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

func (*MetaData) ProtoMessage added in v1.1.39

func (*MetaData) ProtoMessage()

func (*MetaData) Reset added in v1.1.39

func (m *MetaData) Reset()

func (*MetaData) Size added in v1.1.39

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

func (*MetaData) String added in v1.1.39

func (this *MetaData) String() string

func (*MetaData) Unmarshal added in v1.1.39

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

func (*MetaData) XXX_DiscardUnknown added in v1.1.39

func (m *MetaData) XXX_DiscardUnknown()

func (*MetaData) XXX_Marshal added in v1.1.39

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

func (*MetaData) XXX_Merge added in v1.1.39

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

func (*MetaData) XXX_Size added in v1.1.39

func (m *MetaData) XXX_Size() int

func (*MetaData) XXX_Unmarshal added in v1.1.39

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