Skip to content

VasilVR/injective-core

 
 

Repository files navigation

Injective-Core codecov

Banner!

Home of the following services:

Architecture

architecture.png

Installation

Building from sources

In order to build from source you’ll need at least Go 1.16+.

# need to clone if you plan to run tests, and use Makefile
$ git clone [email protected]:InjectiveLabs/injective-core.git
$ cd injective-core
$ make install

# or simply do this to fetch modules and build executables
$ go install github.com/InjectiveLabs/injective-core/cmd/...

Quick Setup

The most convenient way to launch services is by running the setup script:

$ ./setup.sh

Then run an instance of the injectived node.

$ ./injectived.sh

Voila! You have now successfully setup a full node on the Injective Chain.

Generating REST and gRPC Gateway docs

First, ensure that the Enable and Swagger values are true in APIConfig set in cmd/injectived/config/config.go.

Then simply run the following command to auto-generate the Swagger UI docs.

$ make proto-swagger-gen

Then when you start the Injective Daemon, simply navigate to http://localhost:10337/swagger/.

Generating Injective Chain API gRPC Typescript bindings

$ make gen

Then when you start the Injective Daemon, simply navigate to http://localhost:10337/swagger/.

Maintenance

To run all unit tests:

$ go test ./injective-chain/...

License

Injective Core is licensed under the Injective Labs License.

Certain code in evm and erc20 modules is licensed under the LGPLv3.

Except code from from evm/precompiles which is also is licensed under the Injective Labs License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 64.2%
  • JavaScript 30.7%
  • Solidity 4.0%
  • Shell 0.8%
  • Makefile 0.1%
  • TypeScript 0.1%
  • Other 0.1%