arguments

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJSON

func ParseJSON(args string) ([]cadence.Value, error)

ParseJSON parses string representing JSON array with Cadence arguments.

Cadence arguments must be defined in the JSON-Cadence format https://developers.flow.com/cadence/json-cadence-spec

func ParseWithoutType

func ParseWithoutType(args []string, code []byte, fileName string) (scriptArgs []cadence.Value, err error)

ParseWithoutType parses arguments passed as string slice based on the Cadence code.

Using the Cadence code required arguments are computed and then extracted from passed slice of arguments. The fileName argument is optional and can be empty if not present.

Types

This section is empty.

Jump to

Keyboard shortcuts

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