centrifuge/go-substrate-rpc-client
소개
Substrate RPC client for go aka GSRPC
비즈니스 및 금융측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGo Substrate RPC Client (GSRPC)
Substrate RPC client in Go. It provides APIs and types around Polkadot and any Substrate-based chain RPC calls. This client is modeled after polkadot-js/api.
State
This package is feature complete, but it is relatively new and might still contain bugs. We advise to use it with caution in production. It comes without any warranties, please refer to LICENCE for details.
Documentation & Usage Examples
Please refer to https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/v4
Usage test examples of Dynamic Parsing of events & extrinsics
Contributing
- Install dependencies by running
make - Build the project with
go build - Lint
make lint(you can usemake lint-fixto automatically fix issues) - Run
make run-substrate-dockerto run the Substrate docker container
Testing
We run our tests against a Substrate Docker image. You can choose to run the tests within a tests-dedicated Docker container or without a container.
make test-dockerizedRun tests within a docker container of its own against the Substrate docker container.make testRun the tests locally against the Substrate docker container. Note that it expects the Substrate docker container to be up and running to execute the whole test suite properly.
Visit https://polkadot.js.org/apps for inspection
Note: To use a custom Substrate endpoint, first set the environment variable before running the tests:
export RPC_URL="http://example.com:9934"
Adding support for new RPC methods
After adding support for new methods, update the RPC mocks.
- Install mockery
- Run
go generate ./...
관련 프로젝트 살펴보기
불러오는 중…