datafield

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: GPL-3.0 Imports: 14 Imported by: 10

Documentation

Index

Constants

View Source
const (
	// OperationTransfer is the const for the transfer operation
	OperationTransfer = `transfer`
)

Variables

This section is empty.

Functions

func NewOperationDataFieldParser

func NewOperationDataFieldParser(args *ArgsOperationDataFieldParser) (*operationDataFieldParser, error)

NewOperationDataFieldParser will return a new instance of operationDataFieldParser

Types

type ArgsOperationDataFieldParser

type ArgsOperationDataFieldParser struct {
	AddressLength                       int
	Marshalizer                         marshal.Marshalizer
	RelayedTransactionsV1V2DisableEpoch uint32
}

ArgsOperationDataFieldParser holds all the components required to create a new instance of data field parser

type ResponseParseData

type ResponseParseData struct {
	// Operation field is used to store the name of the operation that the transaction will try to do
	// an example of operation is `transfer` or `ESDTTransfer etc
	Operation string
	// Function field is used to store the function name that the transaction will try to call from a smart contract
	Function         string
	ESDTValues       []string
	Tokens           []string
	Receivers        [][]byte
	ReceiversShardID []uint32
	IsRelayed        bool
}

ResponseParseData is the response with results after the data field was parsed

func NewResponseParseDataAsMoveBalance added in v1.6.1

func NewResponseParseDataAsMoveBalance() *ResponseParseData

NewResponseParseDataAsMoveBalance returns an empty ResponseParseData

func NewResponseParseDataAsRelayed

func NewResponseParseDataAsRelayed() *ResponseParseData

NewResponseParseDataAsRelayed returns an empty ResponseParseData with IsRelayed field set to true

Jump to

Keyboard shortcuts

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