esdtSupply

package
v1.4.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthProcessedBlockNonce        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProcessedBlockNonce          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProcessedBlockNonce = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSupplyESDT        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSupplyESDT          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSupplyESDT = fmt.Errorf("proto: unexpected end of group")
)

Functions

func NewSuppliesProcessor

func NewSuppliesProcessor(
	marshalizer marshal.Marshalizer,
	suppliesStorer storage.Storer,
	logsStorer storage.Storer,
) (*suppliesProcessor, error)

NewSuppliesProcessor will create a new instance of the supplies processor

Types

type ProcessedBlockNonce

type ProcessedBlockNonce struct {
	Nonce uint64 `protobuf:"varint,1,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
}

ProcessedBlock is used to store nonce of the latest processed block

func (*ProcessedBlockNonce) Descriptor

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

func (*ProcessedBlockNonce) Equal

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

func (*ProcessedBlockNonce) GetNonce

func (m *ProcessedBlockNonce) GetNonce() uint64

func (*ProcessedBlockNonce) GoString

func (this *ProcessedBlockNonce) GoString() string

func (*ProcessedBlockNonce) Marshal

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

func (*ProcessedBlockNonce) MarshalTo

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

func (*ProcessedBlockNonce) MarshalToSizedBuffer

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

func (*ProcessedBlockNonce) ProtoMessage

func (*ProcessedBlockNonce) ProtoMessage()

func (*ProcessedBlockNonce) Reset

func (m *ProcessedBlockNonce) Reset()

func (*ProcessedBlockNonce) Size

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

func (*ProcessedBlockNonce) String

func (this *ProcessedBlockNonce) String() string

func (*ProcessedBlockNonce) Unmarshal

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

func (*ProcessedBlockNonce) XXX_DiscardUnknown

func (m *ProcessedBlockNonce) XXX_DiscardUnknown()

func (*ProcessedBlockNonce) XXX_Marshal

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

func (*ProcessedBlockNonce) XXX_Merge

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

func (*ProcessedBlockNonce) XXX_Size

func (m *ProcessedBlockNonce) XXX_Size() int

func (*ProcessedBlockNonce) XXX_Unmarshal

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

type SupplyESDT

type SupplyESDT struct {
	Supply *math_big.Int `` /* 137-byte string literal not displayed */
	Burned *math_big.Int `` /* 138-byte string literal not displayed */
	Minted *math_big.Int `` /* 138-byte string literal not displayed */
}

SupplyESDT is used to store information a shard esdt token supply

func (*SupplyESDT) Descriptor

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

func (*SupplyESDT) Equal

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

func (*SupplyESDT) GetBurned

func (m *SupplyESDT) GetBurned() *math_big.Int

func (*SupplyESDT) GetMinted

func (m *SupplyESDT) GetMinted() *math_big.Int

func (*SupplyESDT) GetSupply

func (m *SupplyESDT) GetSupply() *math_big.Int

func (*SupplyESDT) GoString

func (this *SupplyESDT) GoString() string

func (*SupplyESDT) Marshal

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

func (*SupplyESDT) MarshalTo

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

func (*SupplyESDT) MarshalToSizedBuffer

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

func (*SupplyESDT) ProtoMessage

func (*SupplyESDT) ProtoMessage()

func (*SupplyESDT) Reset

func (m *SupplyESDT) Reset()

func (*SupplyESDT) Size

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

func (*SupplyESDT) String

func (this *SupplyESDT) String() string

func (*SupplyESDT) Unmarshal

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

func (*SupplyESDT) XXX_DiscardUnknown

func (m *SupplyESDT) XXX_DiscardUnknown()

func (*SupplyESDT) XXX_Marshal

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

func (*SupplyESDT) XXX_Merge

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

func (*SupplyESDT) XXX_Size

func (m *SupplyESDT) XXX_Size() int

func (*SupplyESDT) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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