# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# README
Casperlabs-ee-grpc-go-util 
This module is for using GRPC and UTIL in GO to utilize Casperlabs Execution-Engine.
Install
- Download to module in $GOPATH
$ go get -u github.com/hdac-io/casperlabs-ee-grpc-go-util
Example
- Running to Casperlabs Execution-Engine
$ git clone https://github.com/hdac-io/CasperLabs.git
$ cd execution-engine
$ cargo build
$ ./target/debug/casperlabs-engine-grpc-server ~/.casperlabs/.casper-node.sock
-
Install "casperlabs-ee-grpc-go-util" module
-
Import "casperlabs-ee-grpc-go-util"
import (
"github.com/hdac-io/casperlabs-ee-grpc-go-util/util"
"github.com/hdac-io/casperlabs-ee-grpc-go-util/grpc"
)
func main() {
client := grpc.Connect(`/.casperlabs/.casper-node.sock`)
mintTokenCode := util.LoadWasmFile("./example/contracts/mint_token.wasm")
}
Integration test
- Running casperlabs-engine-grpc-server
$ $EXECUTION_ENGINE_HOME/target/debug/casperlabs-engine-grpc-server ~/.casperlabs/.casper-node.sock
- Run
$ make integration-test
Unit test
$ make test
Develop
- Install protobuf
- Generate proto file
$ make proto