0.31.0 • Published 2 years ago

@sc1/subgraph v0.31.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

To run subgraph local development on avalanche

  • open packages/subgraph/lib/graph-node/docker/docker-compose.yml
  • change line 20 ethereum: 'mainnet:http://host.docker.internal:8545' to ethereum: 'avalanche:http://host.docker.internal:8545'
  • change the image to image: graphprotocol/graph-node:c724404 to prevent errors from custom solidity errors.

run yarn fork avalanche --hostname 0.0.0.0

run yarn c:export to update contract.json file

cd packages/subgraph/lib/graph-node/docker and docker-compose up

if using fork:fresh avalanche, you'll need to copy & paste the address that SectorVaultFactory is deployed to into packages/subgraph/config/avalanche.js

if you're testing timelock you'll also want to update that address in the same file.

then set process.env.PUBLIC_SUBGRAPH = 'localhost'

cd packages/subgraph and yarn codegen:avalanche && yarn create-local && yarn deploy-local and press enter to skip version number

there will be an explorer at http://localhost:8000/subgraphs/name/sector-fi/sector-localhost/graphql

0.30.2

2 years ago

0.30.0

2 years ago

0.29.0

2 years ago

0.21.8

2 years ago

0.27.1

2 years ago

0.25.1

2 years ago

0.25.0

2 years ago

0.23.1

2 years ago

0.23.0

2 years ago

0.31.0

2 years ago

0.28.1

2 years ago

0.28.0

2 years ago

0.26.0

2 years ago

0.24.1

2 years ago

0.24.0

2 years ago

0.22.0

2 years ago

0.18.11

2 years ago

0.18.13

2 years ago

0.18.12

2 years ago

0.18.16

2 years ago

0.21.0

2 years ago

0.19.8

2 years ago

0.20.0

2 years ago

0.19.9

2 years ago

0.19.0

2 years ago

0.19.3

2 years ago

0.19.7

2 years ago

0.20.10

2 years ago

0.21.6

2 years ago

0.21.4

2 years ago

0.20.4

2 years ago

0.21.2

2 years ago

0.18.1

2 years ago

0.18.2

2 years ago

0.17.5

2 years ago

0.18.5

2 years ago

0.17.6

2 years ago

0.17.7

2 years ago

0.18.7

2 years ago

0.18.8

2 years ago

0.18.0

2 years ago

0.17.1

2 years ago

0.16.34

2 years ago

0.16.33

2 years ago

0.16.32

2 years ago

0.16.28

2 years ago

0.16.27

2 years ago

0.16.26

2 years ago

0.16.23

2 years ago

0.16.22

2 years ago

0.16.20

2 years ago

0.15.4

2 years ago

0.16.18

2 years ago

0.16.16

2 years ago

0.16.15

2 years ago

0.16.9

2 years ago

0.16.7

2 years ago

0.16.4

2 years ago

0.16.3

2 years ago