Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pooltogether/v4-prizes-subgraph
https://github.com/pooltogether/v4-prizes-subgraph
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pooltogether/v4-prizes-subgraph
- Owner: pooltogether
- Created: 2022-07-19T17:13:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-18T17:01:18.000Z (about 2 years ago)
- Last Synced: 2024-04-23T21:42:41.829Z (9 months ago)
- Language: TypeScript
- Size: 85 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## PoolTogether - Claimed Prizes subgraph
Subgraph to track events and data when an account claims a prize.
## Development
### Templates
Generate subgraph templates using one of the following commands.
Mainnet:
```
yarn prepare:mainnet
yarn prepare:polygon
yarn prepare:optimism
yarn prepare:avalanche
```Testnet:
```
yarn prepare:goerli
yarn prepare:optimism-goerli
yarn prepare:arbitrum-goerli
```### Schemas
Generate schemas using one of the following commands.
Mainnet:
```
yarn gen:mainnet
yarn gen:polygon
yarn gen:optimism
yarn gen:avalanche
```Testnet:
```
yarn gen:goerli
yarn gen:optimism-goerli
yarn gen:arbitrum-goerli
```### Tests
Run tests with the command: `yarn test`
## Deployment
### Deploy
Deploy using one of the following commands.
Mainnet:
```
yarn deploy:mainnet
yarn deploy:polygon
yarn deploy:optimism
yarn deploy:avalanche
```Testnet:
```
yarn deploy:goerli
yarn deploy:optimism-goerli
yarn deploy:arbitrum-goerli
```### Build and deploy
To build and deploy at once, use one of the following commands.
Mainnet:
```
yarn all-mainnet
yarn all-polygon
yarn all-optimism
yarn all-avalanche
```Testnet:
```
yarn all-goerli
yarn all-optimism-goerli
yarn all-arbitrum-goerli
```### Hosted Subgraphs
Subgraphs are hosted at the following URLs.
Mainnet:
- https://thegraph.com/hosted-service/subgraph/pooltogether/mainnet-v4-prizes-claimed
- https://thegraph.com/hosted-service/subgraph/pooltogether/polygon-v4-prizes-claimed
- https://thegraph.com/hosted-service/subgraph/pooltogether/optimism-v4-prizes-claimed
- https://thegraph.com/hosted-service/subgraph/pooltogether/avalanche-v4-prizes-claimedTestnet:
- https://thegraph.com/hosted-service/subgraph/pooltogether/goerli-v4-prizes-claimed
- https://thegraph.com/hosted-service/subgraph/pooltogether/op-goerli-v4-prizes-claimed
- https://thegraph.com/hosted-service/subgraph/pooltogether/arb-goerli-v4-prizes-claimed