Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rainlanguage/orderbook-subgraph


https://github.com/rainlanguage/orderbook-subgraph

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

        

### Testing subgraph
- `nix-shell --run init`
- `nix-shell --run docker-up`
- `nix-shell --run ci-test`

### Deploying the subgraph with registry subgraph ABI check
- `nix-shell --run init`
- ```
nix-shell --run "ts-node scripts/deploy.ts \
--contractAddress \
--subgraphName \
--graphAccessToken \
--network
"
```

### Deploying the subgraph with etherscan/polygonscan ABI check
- `nix-shell --run init`
- ```
nix-shell --run "ts-node scripts/deploy.ts \
--contractAddress \
--subgraphName \
--graphAccessToken \
--network
--blockNumber
--etherscanAPIKey
"
```

### To deploy subgraph without any ABI check
- `nix-shell --run init`
- ```
nix-shell --run "ts-node scripts/deploy.ts \
--contractAddress \
--blockNumber
--subgraphName \
--graphAccessToken \
--network
--skipCheck
"
```
### Building a Subgraph to be deployed by Chainstack
When deploying with chainstack we only need to build the sugbraph. This can be done by using any of the following commands.

#### Build Subgraph with registry subgraph ABI check
Run :
```
nix-shell --run init
```
and then :
```
nix-shell --run "ts-node scripts/buildChainstackSubgraph.ts \
--contractAddress \
--network
"
```
#### Build Subgraph with etherscan/polygonscan ABI check
This is the recommended command while building the subgraph.
Run :
```
nix-shell --run init
```
and then :
```
nix-shell --run "ts-node scripts/buildChainstackSubgraph.ts \
--contractAddress \
--network
--blockNumber
--etherscanAPIKey
"
```
#### Build Subgraph without any ABI check
Run :
```
nix-shell --run init
```
and then :
```
nix-shell --run "ts-node scripts/buildChainstackSubgraph.ts \
--contractAddress \
--blockNumber
--network
--skipCheck
"
```

### Deploying Subgraph with Chainstack
- After building the subgraph to deploy subgraph , create a subgraph on https://chainstack.com/ and simply run the `Deployment command` generated by the chainstack console from the root of the project :
- The deployment command will look something like this :
```
graph deploy --node --ipfs
```