Versions in this module Expand all Collapse all v1 v1.999.10 Nov 25, 2022 Changes in this version + var ErrIntOverflowLog = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTransaction = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthLog = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTransaction = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrNiStorageService = errors.New("nil StorageService") + var ErrNilApiTransactionResult = errors.New("nil ApiTransactionResult") + var ErrNilEncoder = errors.New("nil encoder") + var ErrNilMarshalizer = errors.New("nil marshalizer") + var ErrNilUint64ByteSliceConverter = errors.New("nil Uint64ByteSliceConverter") + var ErrUnexpectedEndOfGroupLog = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTransaction = fmt.Errorf("proto: unexpected end of group") + func TrimSliceHandler(in []data.TransactionHandler) []data.TransactionHandler + type ApiLogs struct + Address string + Events []*Events + type ApiReceipt struct + Data string + SndAddr string + TxHash string + Value *big.Int + type ApiSmartContractResult struct + CallType vm.CallType + Code string + CodeMetadata string + Data string + ESDTValues []string + Function string + GasLimit uint64 + GasPrice uint64 + Hash string + IsRefund bool + IsRelayed bool + Logs *ApiLogs + Nonce uint64 + Operation string + OriginalSender string + OriginalTxHash string + PrevTxHash string + RcvAddr string + Receivers []string + ReceiversShardIDs []uint32 + RelayedValue *big.Int + RelayerAddr string + ReturnMessage string + SndAddr string + Tokens []string + Value *big.Int + type ApiTransactionResult struct + BlockHash string + BlockNonce uint64 + Code string + CodeMetadata []byte + Data []byte + DestinationShard uint32 + ESDTValues []string + Epoch uint32 + Function string + GasLimit uint64 + GasPrice uint64 + Hash string + HashBytes []byte + HyperblockHash string + HyperblockNonce uint64 + InitiallyPaidFee string + IsRefund bool + IsRelayed bool + Logs *ApiLogs + MiniBlockHash string + MiniBlockType string + Nonce uint64 + NotarizedAtDestinationInMetaHash string + NotarizedAtDestinationInMetaNonce uint64 + NotarizedAtSourceInMetaHash string + NotarizedAtSourceInMetaNonce uint64 + Operation string + OriginalSender string + OriginalTransactionHash string + PreviousTransactionHash string + ProcessingTypeOnDestination string + ProcessingTypeOnSource string + Receipt *ApiReceipt + Receiver string + ReceiverUsername []byte + Receivers []string + ReceiversShardIDs []uint32 + ReturnMessage string + Round uint64 + Sender string + SenderUsername []byte + Signature string + SmartContractResults []*ApiSmartContractResult + SourceShard uint32 + Status TxStatus + Timestamp int64 + Tokens []string + Tx data.TransactionHandler + Type string + Value string + type CostResponse struct + GasUnits uint64 + ReturnMessage string + SmartContractResults map[string]*ApiSmartContractResult + type Encoder interface + Encode func(buff []byte) string + IsInterfaceNil func() bool + type Event struct + Address []byte + Data []byte + Identifier []byte + Topics [][]byte + func (*Event) Descriptor() ([]byte, []int) + func (*Event) ProtoMessage() + func (e *Event) IsInterfaceNil() bool + func (m *Event) GetAddress() []byte + func (m *Event) GetData() []byte + func (m *Event) GetIdentifier() []byte + func (m *Event) GetTopics() [][]byte + func (m *Event) Marshal() (dAtA []byte, err error) + func (m *Event) MarshalTo(dAtA []byte) (int, error) + func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Event) Reset() + func (m *Event) Size() (n int) + func (m *Event) Unmarshal(dAtA []byte) error + func (m *Event) XXX_DiscardUnknown() + func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Event) XXX_Merge(src proto.Message) + func (m *Event) XXX_Size() int + func (m *Event) XXX_Unmarshal(b []byte) error + func (this *Event) Equal(that interface{}) bool + func (this *Event) GoString() string + func (this *Event) String() string + type Events struct + Address string + Data []byte + Identifier string + Topics [][]byte + type FrontendTransaction struct + ChainID string + Data []byte + GasLimit uint64 + GasPrice uint64 + Nonce uint64 + Options uint32 + Receiver string + ReceiverUsername []byte + Sender string + SenderUsername []byte + Signature string + Value string + Version uint32 + type Log struct + Address []byte + Events []*Event + func (*Log) Descriptor() ([]byte, []int) + func (*Log) ProtoMessage() + func (l *Log) GetLogEvents() []data.EventHandler + func (l *Log) IsInterfaceNil() bool + func (m *Log) GetAddress() []byte + func (m *Log) GetEvents() []*Event + func (m *Log) Marshal() (dAtA []byte, err error) + func (m *Log) MarshalTo(dAtA []byte) (int, error) + func (m *Log) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Log) Reset() + func (m *Log) Size() (n int) + func (m *Log) Unmarshal(dAtA []byte) error + func (m *Log) XXX_DiscardUnknown() + func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Log) XXX_Merge(src proto.Message) + func (m *Log) XXX_Size() int + func (m *Log) XXX_Unmarshal(b []byte) error + func (this *Log) Equal(that interface{}) bool + func (this *Log) GoString() string + func (this *Log) String() string + type Marshalizer interface + IsInterfaceNil func() bool + Marshal func(obj interface{}) ([]byte, error) + type StatusComputerHandler interface + ComputeStatusWhenInStorageKnowingMiniblock func(miniblockType block.Type, tx *ApiTransactionResult) (TxStatus, error) + ComputeStatusWhenInStorageNotKnowingMiniblock func(destinationShard uint32, tx *ApiTransactionResult) (TxStatus, error) + SetStatusIfIsRewardReverted func(tx *ApiTransactionResult, miniblockType block.Type, headerNonce uint64, ...) (bool, error) + type Transaction struct + ChainID []byte + Data []byte + GasLimit uint64 + GasPrice uint64 + Nonce uint64 + Options uint32 + RcvAddr []byte + RcvUserName []byte + Signature []byte + SndAddr []byte + SndUserName []byte + Value *math_big.Int + Version uint32 + func TrimSlicePtr(in []*Transaction) []*Transaction + func (*Transaction) Descriptor() ([]byte, []int) + func (*Transaction) ProtoMessage() + func (m *Transaction) GetChainID() []byte + func (m *Transaction) GetData() []byte + func (m *Transaction) GetGasLimit() uint64 + func (m *Transaction) GetGasPrice() uint64 + func (m *Transaction) GetNonce() uint64 + func (m *Transaction) GetOptions() uint32 + func (m *Transaction) GetRcvAddr() []byte + func (m *Transaction) GetRcvUserName() []byte + func (m *Transaction) GetSignature() []byte + func (m *Transaction) GetSndAddr() []byte + func (m *Transaction) GetSndUserName() []byte + func (m *Transaction) GetValue() *math_big.Int + func (m *Transaction) GetVersion() uint32 + func (m *Transaction) Marshal() (dAtA []byte, err error) + func (m *Transaction) MarshalTo(dAtA []byte) (int, error) + func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Transaction) Reset() + func (m *Transaction) Size() (n int) + func (m *Transaction) Unmarshal(dAtA []byte) error + func (m *Transaction) XXX_DiscardUnknown() + func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Transaction) XXX_Merge(src proto.Message) + func (m *Transaction) XXX_Size() int + func (m *Transaction) XXX_Unmarshal(b []byte) error + func (this *Transaction) Equal(that interface{}) bool + func (this *Transaction) GoString() string + func (this *Transaction) String() string + func (tx *Transaction) CheckIntegrity() error + func (tx *Transaction) GetDataForSigning(encoder Encoder, marshalizer Marshalizer) ([]byte, error) + func (tx *Transaction) IsInterfaceNil() bool + func (tx *Transaction) SetData(data []byte) + func (tx *Transaction) SetRcvAddr(addr []byte) + func (tx *Transaction) SetSndAddr(addr []byte) + func (tx *Transaction) SetValue(value *big.Int) + type TxStatus string + const TxStatusFail + const TxStatusInvalid + const TxStatusPending + const TxStatusRewardReverted + const TxStatusSuccess + func (tx TxStatus) String() string + type TxType string + const TxTypeInvalid + const TxTypeNormal + const TxTypeReward + const TxTypeUnsigned