Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pooltogether/twab-delegator-subgraph

Subgraph to track delegation from the TWAB Delegator contract.
https://github.com/pooltogether/twab-delegator-subgraph

Last synced: about 2 months ago
JSON representation

Subgraph to track delegation from the TWAB Delegator contract.

Awesome Lists containing this project

README

        



PoolTogether Brand


## PoolTogether - TWAB Delegator subgraph

[![Tests](https://github.com/pooltogether/twab-delegator-subgraph/actions/workflows/main.yml/badge.svg)](https://github.com/pooltogether/twab-delegator-subgraph/actions/workflows/main.yml)

Subgraph to track events and data related to the TWAB Delegator contract.

## Development

### Templates

Generate subgraph templates using one of the following commands:

```
yarn prepare:rinkeby
yarn prepare:mainnet
yarn prepare:polygon
yarn prepare:avalanche
```

### Schemas

Generate schemas using one of the following commands:

```
yarn gen:rinkeby
yarn gen:mainnet
yarn gen:polygon
yarn gen:avalanche
```

### Tests

Run tests with the command: `yarn test`

## Deployment

### Deploy

Deploy using one of the following commands:

```
yarn deploy:rinkeby
yarn deploy:mainnet
yarn deploy:polygon
yarn deploy:avalanche
```

### Build and deploy

To build and deploy at once, use one of the following commands:

```
yarn all-rinkeby
yarn all-mainnet
yarn all-polygon
yarn all-avalanche
```

### Hosted Subgraphs

Subgraphs are hosted at the following URLs:
- https://thegraph.com/hosted-service/subgraph/pooltogether/mainnet-twab-delegator
- https://thegraph.com/hosted-service/subgraph/pooltogether/polygon-twab-delegator
- https://thegraph.com/hosted-service/subgraph/pooltogether/avalanche-twab-delegator
- https://thegraph.com/hosted-service/subgraph/pooltogether/rinkeby-twab-delegator