Skip to content

linear-protocol/linear-subgraph

Repository files navigation

LiNEAR Protocol subgraph

Development

# copy env and adjust its content
# you can get an access token from https://thegraph.com/explorer/dashboard
cp .env.example .env
# install project dependencies
yarn
# prepare subgraph.yaml
yarn prepare:mainnet
# run codegen
yarn codegen
# now you're able to deploy to thegraph via
yarn deploy

Deployment

To be able to deploy to the hosted solution you will need to create a .env file and add ACCESS_TOKEN environment variable. You can find this in the dashboard of the TheGraph

// For Testnet:
yarn deploy:testnet

// For Mainnet:
yarn deploy:mainnet

Test

To test the deployed subgraph, you can try querying with the examples.

yarn
# test APY data
node test/apy.js
# test staking rewards data
node test/stake.js

About

LiNEAR Protocol subgraph

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published