Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rainlanguage/orderbook-subgraph
https://github.com/rainlanguage/orderbook-subgraph
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rainlanguage/orderbook-subgraph
- Owner: rainlanguage
- Created: 2023-03-27T18:33:26.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-24T06:37:32.000Z (over 1 year ago)
- Last Synced: 2023-11-28T13:33:17.264Z (about 1 year ago)
- Language: TypeScript
- Size: 12.8 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```