Categorygithub.com/hdac-io/casperlabs-ee-grpc-go-util

# README

Casperlabs-ee-grpc-go-util Build Status

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

# Packages

Package grpc 는 Casperlabs의 Execution Engine의 GRPC Client 모듈을 정의한 모듈이다.
No description provided by the author
No description provided by the author
No description provided by the author
Package util 은 Casperlabs의 Execution Engine과 연동시 필요한 모듈을 정의한 모듈이다.