Static modules generated from forge-sdk protobuf files

Usage no npm install needed!

<script type="module">
  import ocapProto from 'https://cdn.skypack.dev/@ocap/proto';


Core Schema

Defines data structure for ABT Node backend API, and maintains schema for GQL endpoint.


Install gun-sed

Install protobuf

Add to ~/.profile

export GO111MODULE=on
export GOPROXY=https://goproxy.cn

export GOROOT=/usr/local/Cellar/go/1.15.5/libexec // you local go path
export GOPATH=$HOME/.golang
export GOBIN=$GOPATH/bin

source ~/.profile

Install other dependencies

Run make init

If there is a network problem, try to change golang registry by https://goproxy.cn/

Build Schema

Run make build

How To Update Schema

1. update core/schema proto

After update the schema proto, run make build get the latest schema.

2. go to core/gql start a demo endpoint

just run:

node demo.js

should make sure the DB Proxy is running

3. go to core/client do finally update

just run:

npm run upgrade

4. finish the update