Coder Social home page Coder Social logo

tgrospic / rnode-grpc-js Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 6.0 870 KB

RNode gRPC/HTTP API generator for Nodejs and the browser

Home Page: https://tgrospic.github.io/rnode-grpc-js/

License: MIT License

JavaScript 32.55% TypeScript 67.45%
api client generator grpc rchain rnode rnode-grpc testnet typescript

rnode-grpc-js's People

Contributors

dependabot[bot] avatar tgrospic avatar zsluedem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rnode-grpc-js's Issues

not found grpc_tools_node_protoc

$ ./node_modules/.bin/rnode-grpc --rnode-version dev
RNode gRPC versions { 'rnode-version': 'dev', 'grpc-web-version': '1.0.6' }
Startinmg downloads...
Downloading https://github.com/grpc/grpc-web/releases/download/1.0.6/protoc-gen-grpc-web-1.0.6-darwin-x86_64
Downloading https://raw.githubusercontent.com/rchain/rchain/dev/models/src/main/protobuf/CasperMessage.proto
Downloading https://raw.githubusercontent.com/rchain/rchain/dev/models/src/main/protobuf/DeployServiceCommon.proto
Downloading https://raw.githubusercontent.com/rchain/rchain/dev/models/src/main/protobuf/DeployServiceV1.proto
Downloading https://raw.githubusercontent.com/rchain/rchain/dev/models/src/main/protobuf/ProposeServiceCommon.proto
Downloading https://raw.githubusercontent.com/rchain/rchain/dev/models/src/main/protobuf/ProposeServiceV1.proto
Downloading https://raw.githubusercontent.com/rchain/rchain/dev/models/src/main/protobuf/RhoTypes.proto
Downloading https://raw.githubusercontent.com/rchain/rchain/dev/models/src/main/protobuf/ServiceError.proto
Downloading https://raw.githubusercontent.com/rchain/rchain/dev/node/src/main/protobuf/repl.proto
Downloading https://raw.githubusercontent.com/scalapb/ScalaPB/master/protobuf/scalapb/scalapb.proto
Generating JS files...
(node:49188) UnhandledPromiseRejectionWarning: Error: not found: grpc_tools_node_protoc
    at getNotFoundError (/Users/willqiu/work/pull/playq/node_modules/which/which.js:13:12)
    at F (/Users/willqiu/work/pull/playq/node_modules/which/which.js:68:19)
    at E (/Users/willqiu/work/pull/playq/node_modules/which/which.js:80:29)
    at /Users/willqiu/work/pull/playq/node_modules/which/which.js:89:16
    at /Users/willqiu/work/pull/playq/node_modules/isexe/index.js:42:5
    at /Users/willqiu/work/pull/playq/node_modules/isexe/mode.js:8:5
    at FSReqCallback.oncomplete (fs.js:158:21)
(node:49188) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:49188) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

package generated protobuf code

It would be really handy to be able to just npm install rchain-probuf and get the stuff generated files with the rnode-grpc-js tool.

Package versions could correspond to rnode versions.

verifyRevAddr on illegal addree would return undefine

reproduce codes

const { verifyRevAddr } = require("@tgrospic/rnode-grpc-js");
verifyRevAddr("1111engqbx5d85yltnx6btfbl8429sxtqytflsj7jcn2qcn192vM8")

"1111engqbx5d85yltnx6btfbl8429sxtqytflsj7jcn2qcn192vM8" is not a valid Base58 from pyrchain

Method not found: /casper.v1.DeployService/doDeploy

Uncaught (in promise) 
Object
code: 12
message: "Method not found: /casper.v1.DeployService/doDeploy"
metadata:
content-length: "0"
content-type: "application/grpc-web+proto"
grpc-message: "Method not found: /casper.v1.DeployService/doDeploy"
grpc-status: "12"
__proto__: Object
__proto__: Object

When I do deploy, I got this error.

UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED

$ node_modules/.bin/rnode-grpc
RNode gRPC versions { 'rnode-version': 'v0.9.12' }
Startinmg downloads...
Downloading https://raw.githubusercontent.com/rchain/rchain/v0.9.12/models/src/main/protobuf/CasperMessage.proto
Downloading https://raw.githubusercontent.com/rchain/rchain/v0.9.12/models/src/main/protobuf/DeployService.proto
Downloading https://raw.githubusercontent.com/rchain/rchain/v0.9.12/models/src/main/protobuf/Either.proto
Downloading https://raw.githubusercontent.com/rchain/rchain/v0.9.12/models/src/main/protobuf/ProposeService.proto
Downloading https://raw.githubusercontent.com/rchain/rchain/v0.9.12/models/src/main/protobuf/RhoTypes.proto
Downloading https://raw.githubusercontent.com/rchain/rchain/v0.9.12/node/src/main/protobuf/repl.proto
Downloading https://raw.githubusercontent.com/scalapb/ScalaPB/master/protobuf/scalapb/scalapb.proto
(node:9889) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 151.101.0.133:443
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1126:14)
(node:9889) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:9889) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I have trouble installing on my MAC. But it's OK on ubuntu servers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.