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 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 TestInitStore ¶ added in v0.0.20
type TestInitStore struct {
DefaultBalance *big.Int
StaticStore interpreter.StaticStore
}
func (*TestInitStore) GetAccountsMetadata ¶ added in v0.0.20
func (s *TestInitStore) GetAccountsMetadata(c context.Context, q interpreter.MetadataQuery) (interpreter.AccountsMetadata, error)
func (*TestInitStore) GetBalances ¶ added in v0.0.20
func (s *TestInitStore) GetBalances(ctx context.Context, q interpreter.BalanceQuery) (interpreter.Balances, error)
type VarsPoolFile ¶ added in v0.1.1
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.
Click to show internal directories.
Click to hide internal directories.