0.0.2 • Published 1 year ago

graph-sdk v0.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

sGraph

Welcome to monorepo with all code related to sGraph.

Project structure:

programs/graph - core contract
programs/usersig - example contract source

sdk/js - JS SDK
sdk/go - simple bindings for Golang SDK (https://github.com/portto/solana-go-sdk)

Getting started

# start localnet
solana-test-validator

# deploy contracts on localnet
# install anchor at https://www.anchor-lang.com/docs/installation
anchor build && anchor deploy

# run examples
set -x ANCHOR_WALLET "~/.config/solana/id.json" # set to path to your wallet
npx ts-node sdk/js/_examples/simple.ts

TODO:

  • CI/CD
  • Integration tests
  • More SDK helpers
  • More sources!