Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputFormatPretty = "pretty"
	OutputFormatJson   = "json"
)

Variables

This section is empty.

Functions

func Execute

func Execute(options CliOptions)

func MakeSpecsFile added in v0.0.20

func MakeSpecsFile(source string) (specs_format.Specs, error)

Types

type AssembleArgs added in v0.1.1

type AssembleArgs struct {
	OutputPath string
}

type BytecodeInputsFile added in v0.1.1

type BytecodeInputsFile struct {
	Meta     interpreter.AccountsMetadata `json:"metadata"`
	Balances interpreter.Balances         `json:"balances"`
	VarsPool *VarsPoolFile                `json:"varsPool"`
}

BytecodeInputsFile is the `run` inputs file plus the vars pool. It is a separate type so that the vm's index-addressed vars stay out of the interpreter's inputs shape; the shared fields keep the same json names, so one .inputs.json works for both commands.

type BytecodeRunArgs added in v0.1.1

type BytecodeRunArgs struct {
	InputsPath   string
	VarsPath     string
	OutFormatOpt string
	SkipVerify   bool
}

type CliOptions

type CliOptions struct {
	Version string
}

type InputsFile added in v0.0.19

type InputsFile struct {
	FeatureFlags []string                     `json:"featureFlags"`
	Variables    map[string]string            `json:"variables"`
	Meta         interpreter.AccountsMetadata `json:"metadata"`
	Balances     interpreter.Balances         `json:"balances"`
}

type RunArgs added in v0.0.19

type RunArgs struct {
	InputsPath   string
	OutFormatOpt string
}

type TestInitStore added in v0.0.20

type TestInitStore struct {
	DefaultBalance *big.Int
	StaticStore    interpreter.StaticStore
}

func (*TestInitStore) GetAccountsMetadata added in v0.0.20

func (*TestInitStore) GetBalances added in v0.0.20

type VarsPoolFile added in v0.1.1

type VarsPoolFile struct {
	Strings []string `json:"strings"`
	Ints    []string `json:"ints"`
}

VarsPoolFile is the raw form of vm.Vars: the compiler's VarsEncoder maps declared variable names onto pool slots, but it lives in the source, not in the bytecode, so a bytecode-only run has to name the slots by index. Ints are strings so that values beyond float64/int64 survive the JSON round-trip.

Jump to

Keyboard shortcuts

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