Start RPC API implementation

This commit is contained in:
Matthew Slipper
2018-08-21 00:12:48 -07:00
parent c1e6ebf80a
commit 32504a866f
11 changed files with 248 additions and 7 deletions
+13
View File
@@ -1,5 +1,13 @@
package version
import (
"fmt"
"runtime"
)
// AppName represents the application name as the 'user agent' on the larger Ethereum network.
const AppName = "Ethermint"
// Version contains the application semantic version.
//
// TODO: How do we want to version this being that an initial Ethermint has
@@ -8,3 +16,8 @@ const Version = "0.0.0"
// GitCommit contains the git SHA1 short hash set by build flags.
var GitCommit = ""
// ClientVersion returns the full version string for identification on the larger Ethereum network.
func ClientVersion() string {
return fmt.Sprintf("%s/%s+%s/%s/%s", AppName, Version, GitCommit, runtime.GOOS, runtime.Version())
}