{"modulePath":"github.com/Evolution404/simcore","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\nevm executes EVM code snippets.\n\n## Variables\n\n```go\nvar (\n\tDebugFlag = cli.BoolFlag{\n\t\tName:  \"debug\",\n\t\tUsage: \"output full trace logs\",\n\t}\n\tMemProfileFlag = cli.StringFlag{\n\t\tName:  \"memprofile\",\n\t\tUsage: \"creates a memory profile at the given path\",\n\t}\n\tCPUProfileFlag = cli.StringFlag{\n\t\tName:  \"cpuprofile\",\n\t\tUsage: \"creates a CPU profile at the given path\",\n\t}\n\tStatDumpFlag = cli.BoolFlag{\n\t\tName:  \"statdump\",\n\t\tUsage: \"displays stack and heap memory information\",\n\t}\n\tCodeFlag = cli.StringFlag{\n\t\tName:  \"code\",\n\t\tUsage: \"EVM code\",\n\t}\n\tCodeFileFlag = cli.StringFlag{\n\t\tName:  \"codefile\",\n\t\tUsage: \"File containing EVM code. If '-' is specified, code is read from stdin \",\n\t}\n\tGasFlag = cli.Uint64Flag{\n\t\tName:  \"gas\",\n\t\tUsage: \"gas limit for the evm\",\n\t\tValue: 10000000000,\n\t}\n\tPriceFlag = utils.BigFlag{\n\t\tName:  \"price\",\n\t\tUsage: \"price set for the evm\",\n\t\tValue: new(big.Int),\n\t}\n\tValueFlag = utils.BigFlag{\n\t\tName:  \"value\",\n\t\tUsage: \"value set for the evm\",\n\t\tValue: new(big.Int),\n\t}\n\tDumpFlag = cli.BoolFlag{\n\t\tName:  \"dump\",\n\t\tUsage: \"dumps the state after the run\",\n\t}\n\tInputFlag = cli.StringFlag{\n\t\tName:  \"input\",\n\t\tUsage: \"input for the EVM\",\n\t}\n\tInputFileFlag = cli.StringFlag{\n\t\tName:  \"inputfile\",\n\t\tUsage: \"file containing input for the EVM\",\n\t}\n\tVerbosityFlag = cli.IntFlag{\n\t\tName:  \"verbosity\",\n\t\tUsage: \"sets the verbosity level\",\n\t}\n\tBenchFlag = cli.BoolFlag{\n\t\tName:  \"bench\",\n\t\tUsage: \"benchmark the execution\",\n\t}\n\tCreateFlag = cli.BoolFlag{\n\t\tName:  \"create\",\n\t\tUsage: \"indicates the action should be create rather than call\",\n\t}\n\tGenesisFlag = cli.StringFlag{\n\t\tName:  \"prestate\",\n\t\tUsage: \"JSON file with prestate (genesis) config\",\n\t}\n\tMachineFlag = cli.BoolFlag{\n\t\tName:  \"json\",\n\t\tUsage: \"output trace logs in machine readable format (json)\",\n\t}\n\tSenderFlag = cli.StringFlag{\n\t\tName:  \"sender\",\n\t\tUsage: \"The transaction origin\",\n\t}\n\tReceiverFlag = cli.StringFlag{\n\t\tName:  \"receiver\",\n\t\tUsage: \"The transaction receiver (execution context)\",\n\t}\n\tDisableMemoryFlag = cli.BoolTFlag{\n\t\tName:  \"nomemory\",\n\t\tUsage: \"disable memory output\",\n\t}\n\tDisableStackFlag = cli.BoolFlag{\n\t\tName:  \"nostack\",\n\t\tUsage: \"disable stack output\",\n\t}\n\tDisableStorageFlag = cli.BoolFlag{\n\t\tName:  \"nostorage\",\n\t\tUsage: \"disable storage output\",\n\t}\n\tDisableReturnDataFlag = cli.BoolTFlag{\n\t\tName:  \"noreturndata\",\n\t\tUsage: \"enable return data output\",\n\t}\n)\n```\n\n## Types\n\n```go\ntype StatetestResult struct {\n\tName  string      `json:\"name\"`\n\tPass  bool        `json:\"pass\"`\n\tFork  string      `json:\"fork\"`\n\tError string      `json:\"error,omitempty\"`\n\tState *state.Dump `json:\"state,omitempty\"`\n}\n```\nStatetestResult contains the execution status after running a state test, any error that might have occurred and a dump of the final state if requested.\n\n","path":"github.com/Evolution404/simcore/cmd/evm","name":"main","synopsis":"evm executes EVM code snippets.","isRedistributable":true}
