Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pooltogether/v4-prizes-subgraph


https://github.com/pooltogether/v4-prizes-subgraph

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        



PoolTogether Brand


## 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-claimed

Testnet:
- 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