https://github.com/generationsoftware/pt-v5-subgraph
PoolTogether Hyperstructure Subgraph for protocol operations data related to account prizes, balances, and vaults.
https://github.com/generationsoftware/pt-v5-subgraph
pooltogether subgraph
Last synced: 4 months ago
JSON representation
PoolTogether Hyperstructure Subgraph for protocol operations data related to account prizes, balances, and vaults.
- Host: GitHub
- URL: https://github.com/generationsoftware/pt-v5-subgraph
- Owner: GenerationSoftware
- License: mit
- Created: 2023-08-23T14:15:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-22T19:44:59.000Z (about 1 year ago)
- Last Synced: 2025-01-22T20:29:30.022Z (about 1 year ago)
- Topics: pooltogether, subgraph
- Language: TypeScript
- Homepage:
- Size: 202 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PoolTogether Subgraph for v5
### @generationsoftware/pt-v5-subgraph
PoolTogether v5 subgraph, how to deploy:
## 🖥️ Usage
All of the scripts for creating YAML files from templates, generating and building the code, and deploying can be found in `package.json`.
To deploy a subgraph, first prepare a \*.yaml file for the network you would like:
`yarn prepare:world` (or `npm run prepare:world`)
This will create `subgraph.world.yaml`, a subgraph template file with all of the block numbers and contract addresses necessary to deploy.
If you need to change any of this, the contract addresses and block numbers can be found in the `networks` directory (ie. `./networks/world-mainnet.json`).
Next, you will need to run the code generator, build the code, and finally deploy:
```sh
yarn gen:world
yarn build:world
yarn deploy:world
```
You can also use the shortcut provided to create the template, generate, build and deploy all in one:
```sh
yarn all-world:decentralized
```