Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pooltogether/twab-rewards-subgraph
Subgraph to track promotions from the TWAB Rewards contract.
https://github.com/pooltogether/twab-rewards-subgraph
Last synced: about 2 months ago
JSON representation
Subgraph to track promotions from the TWAB Rewards contract.
- Host: GitHub
- URL: https://github.com/pooltogether/twab-rewards-subgraph
- Owner: pooltogether
- Created: 2022-04-07T15:24:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-18T17:00:48.000Z (about 2 years ago)
- Last Synced: 2024-04-23T21:42:41.170Z (9 months ago)
- Language: TypeScript
- Size: 179 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## PoolTogether - TWAB Rewards subgraph
[![Tests](https://github.com/pooltogether/twab-rewards-subgraph/actions/workflows/main.yml/badge.svg)](https://github.com/pooltogether/twab-rewards-subgraph/actions/workflows/main.yml)
Subgraph to track events and data related to the TWAB Rewards contract.
## Development
### Templates
Generate subgraph templates using one of the following commands.
Mainnet:
```
yarn prepare:mainnet
yarn prepare:polygon
yarn prepare:avalanche
yarn prepare:optimism
```Testnet:
```
yarn prepare:goerli
yarn prepare:mumbai
yarn prepare:fuji
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:avalanche
yarn gen:optimism
```Testnet:
```
yarn gen:goerli
yarn gen:mumbai
yarn gen:fuji
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:avalanche
yarn deploy:optimism
```Testnet:
```
yarn deploy:goerli
yarn deploy:mumbai
yarn deploy:fuji
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-avalanche
yarn all-optimism
```Testnet:
```
yarn all-goerli
yarn all-mumbai
yarn all-fuji
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-twab-rewards
- https://thegraph.com/hosted-service/subgraph/pooltogether/polygon-twab-rewards
- https://thegraph.com/hosted-service/subgraph/pooltogether/avalanche-twab-rewards
- https://thegraph.com/hosted-service/subgraph/pooltogether/optimism-twab-rewardsTestnet:
- https://thegraph.com/hosted-service/subgraph/pooltogether/goerli-twab-rewards
- https://thegraph.com/hosted-service/subgraph/pooltogether/mumbai-twab-rewards
- https://thegraph.com/hosted-service/subgraph/pooltogether/fuji-twab-rewards
- https://thegraph.com/hosted-service/subgraph/pooltogether/optimism-goerli-twab-rewards
- https://thegraph.com/hosted-service/subgraph/pooltogether/arbitrum-goerli-twab-rewards