tron-protocol-node
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "tron-protocol-node", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Node.js wrapper for Tron protocol. Compiled from tronprotocol/protocol, commit : 0f02cfd.", | ||
@@ -5,0 +5,0 @@ "main": " ", |
@@ -18,18 +18,18 @@ # Tron Node Protocol | ||
- Download the latest version of the protocol | ||
###### Download the latest version of the protocol | ||
* git clone https://github.com/tronprotocol/protocol.git && cd protocol/ | ||
###### Install google apis required for the compilation process | ||
* ./install-googleapis.sh | ||
* Install google apis required for the compilation process | ||
###### Create a folder which will contain the artifacts from the compilation | ||
* mkdir node-protocol/ | ||
* Create a folder which will contain the artifacts from the compilation | ||
###### Install grpc compilation tools | ||
* npm i -g grpc-tools | ||
* Install grpc compilation tools | ||
###### Run the compilation command for protocol/api/ files (artifacts are in node-protocol/api -> api_pb.js and api_grpc_pb.js) | ||
* protoc --js_out=import_style=commonjs,binary:node-protocol/ --grpc_out=node-protocol/ --plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` api/api.proto | ||
* Run the compilation command for protocol/api/ files (artifacts are in node-protocol/api -> api_pb.js and api_grpc_pb.js) | ||
* protoc --js_out=import_style=commonjs,binary:node-protocol/ core/* | ||
* Run the compilation command for protocol/core/ files (artifacts are in node-protocol/core) | ||
###### Run the compilation command for protocol/core/ files (artifacts are in node-protocol/core) | ||
* protoc --js_out=import_style=commonjs,binary:node-protocol/ core/* |
1006630