Dero Virtual Machine Light Version
A standalone version of the Stargate Testnet DVM, working in a offline mode.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package main
-
- import (
- "fmt"
-
- "git.dero.io/b9ron/dvml/config"
- "git.dero.io/b9ron/dvml/prompt"
- dvml "git.dero.io/b9ron/dvml/vm"
- )
-
- func main() {
- config.Init()
-
- // check the numbers of cli args
- if config.DeroScFile == "" {
- fmt.Printf("\n" + config.Version + "\n")
- fmt.Printf("\tUsage (case sensitive): dvml --help\n\n")
- return
- }
-
- if config.JsonFile != "" {
- dvml.GetDvml().RunTestFunctions(config.JsonFile)
- return
- }
-
- dvml.GetDvml().PrintUsage()
-
- prompt.Run()
- }
|