Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCode = errors.New("invalid code")
ErrInvalidCode signals an invalid Code
View Source
var ErrInvalidCodeMetadata = errors.New("invalid code metadata")
ErrInvalidCodeMetadata signals an invalid Code Metadata
View Source
var ErrInvalidDataString = errors.New("transaction data string is unevenly split")
ErrInvalidDataString signals that the transaction data string could not be split evenly
View Source
var ErrInvalidDeployArguments = errors.New("invalid deploy arguments")
ErrInvalidDeployArguments signals invalid deploy arguments
View Source
var ErrInvalidVMType = errors.New("invalid vm type")
ErrInvalidVMType signals an invalid VMType
View Source
var ErrNilFunction = errors.New("smart contract function is nil")
ErrNilFunction signals that the function name from transaction data is nil
View Source
var ErrTokenizeFailed = errors.New("tokenize failed")
ErrTokenizeFailed signals that data splitting into arguments and code failed
Functions ¶
func NewCallArgsParser ¶
func NewCallArgsParser() *callArgsParser
NewCallArgsParser creates a new parser
func NewDeployArgsParser ¶
func NewDeployArgsParser() *deployArgsParser
NewDeployArgsParser creates a new parser
func NewStorageUpdatesParser ¶
func NewStorageUpdatesParser() *storageUpdatesParser
NewStorageUpdatesParser creates a new parser
Types ¶
type DeployArgs ¶
type DeployArgs struct { Code []byte VMType []byte CodeMetadata vmcommon.CodeMetadata Arguments [][]byte }
DeployArgs represents the parsed deploy arguments
Click to show internal directories.
Click to hide internal directories.