Giter VIP home page Giter VIP logo

iotex-antenna's Introduction

CircleCI

iotex-antenna

iotex-antenna is our SDK allowing you to interact with a local or remote iotex blockchain node, using a gRPC or gRPC-web connection.

Antenna features

Features antenna antenna-java antenna-go antenna-swift
crypto Yes Yes Yes Yes
rpc-method Yes Yes Yes Yes
account Yes Yes Yes Yes
action Yes Yes Yes Yes
contract Yes Yes Yes Yes
token support Yes Yes No Yes

Developing

nvm use 10.15.1
npm install

# test
# prepare flow type definitions
npm run flow-install
# run all tests
npm run test
# run a single test file
npm run ava ./path/to/test-file.js

To run a single test case, follow instructions here.

Scripts

  • npm run build: build source code from src to dist
  • npm publish: publish code to npm
  • npm run changelog-patch bump version patch (bug fixes)
  • npm run changelog-minor bump version minor (new features)
  • npm run changelog-major bump version major (breaking change)

Update Proto

  1. Prerequisite
npm install grpc
npm install grpc-web
npm install protoc

npm i grpc-web

(original link: https://github.com/grpc/grpc-web/tree/master/packages/grpc-web) Download protoc and the protoc-gen-grpc-web protoc plugin. You can download the protoc binary from the official protocolbuffers release page.

You can download the protoc-gen-grpc-web protoc plugin from our Github release page.

Make sure they are both executable and are discoverable from your PATH.

For example, in MacOS, you can do:

$ sudo mv ~/Downloads/protoc-gen-grpc-web-1.0.3-darwin-x86_64 \
  /usr/local/bin/protoc-gen-grpc-web
$ chmod +x /usr/local/bin/protoc-gen-grpc-web
  1. copy proto files from iotex-core master branch to /iotex-antenna/proto/

  2. Run

npm run build-proto

iotex-antenna's People

Contributors

coderzhi avatar dependabot[bot] avatar fabryprog avatar hunglmtb avatar koseoyoung avatar puncsky avatar ququzone avatar renovate-bot avatar renovate[bot] avatar sxlwar avatar uu-z avatar xiaxiangzhou avatar

Watchers

 avatar

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.