https://github.com/umaprotocol/subgraphs
Monorepo for all subgraphs
https://github.com/umaprotocol/subgraphs
Last synced: about 2 months ago
JSON representation
Monorepo for all subgraphs
- Host: GitHub
- URL: https://github.com/umaprotocol/subgraphs
- Owner: UMAprotocol
- Created: 2021-04-02T13:00:53.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-04-24T09:36:05.000Z (2 months ago)
- Last Synced: 2025-04-24T10:37:28.457Z (2 months ago)
- Language: TypeScript
- Size: 1.04 MB
- Stars: 4
- Watchers: 7
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UMA related subgraphs
## Install dependencies
`yarn`
## Voting Events
This subgraph indexes events emitted by the core Oracle contracts. The code can be found in `packages/voting`
- Kovan:
- Mainnet:
- (staging) Kovan:
- (staging) Mainnet:## Skinny Optimistic Oracle Events
This subgraph indexes events emitted by the "Skinny Optimistic Oracle" contracts. The code can be found in `packages/skinny-optimistic-oracle`
- Mainnet:
- (testnet) Sepolia:## Optimistic Oracle Events
This subgraph indexes events emitted by the "Optimistic Oracle" contracts. The code can be found in `packages/optimistic-oracle`
- Mainnet:
- Polygon:
- Arbitrum:
- Optimism:
- Boba:
- (staging) Goerli:
- (staging) Core Testnet:
- Core:
- (testnet) Sepolia:
- Base:
- Blast:
- Story Goldsky:## Optimistic Oracle V2 Events and Calls
This subgraph indexes events and function calls by the "Optimistic Oracle V2" contracts. The code can be found in `packages/optimistic-oracle-v2`
**Note:** L2 chains does not support `callHandlers`. This means we cannot use callHandlers to index the `setBond`, `setCustomLiveness`, and `setEventBased` function calls. These properties are also not available via events. Our compromise here is that in the case of L2 chains, we read this data from the contract state in the event handler instead. **This workaround works when `setCustomLiveness` and `setEventBased` are called in the same transaction as `requestPrice`. So it doesn't work for all cases. Ideally we should have `callHandlers` in the chains that support this.** We therefore must also remove the call handlers from the subgraph.yaml file for Polygon. See `scripts/remove-call-handlers.js` for implementation.
- Mainnet:
- Polygon TheGraph:
- Polygon Goldsky:
- Arbitrum TheGraph:
- Arbitrum Goldsky:
- Optimism TheGraph:
- Optimism Goldsky:
- Boba:
- (staging) Goerli:
- (staging) Core Testnet:
- Core:
- (testnet) Sepolia:
- Base TheGraph:
- Base Goldsky:
- (staging) Base Sepolia:
- Blast TheGraph:
- Blast Goldsky:
- Story Goldsky:## Financial Contract Events
This subgraph indexes events emitted by the ExpiringMultiParty and Perpetual contracts. The code can be found in `packages/financial-contracts`
- Kovan:
- Mainnet:
- (staging) Kovan:
- (staging) Mainnet:## Token Events
This subgraph indexes events emitted by the UMA voting token contracts. The code can be found in `packages/token`
- Kovan:
- Mainnet:
- (staging) Kovan:
- (staging) Mainnet:## Voting V2 Events
This subgraph indexes events emitted by the core Oracle contracts. The code can be found in `packages/votingV2`
- Mainnet:
- Goerli:
- (testnet) Sepolia:## Optimistic Oracle V3 Events
This subgraph indexes events emitted by the "Optimistic Oracle V3" contracts. The code can be found in `packages/optimistic-oracle-v3`
- Mainnet TheGraph:
- Mainnet Goldsky:
- Polygon TheGraph:
- Polygon Goldsky:
- Arbitrum TheGraph:
- Arbitrum Goldsky:
- Optimism TheGraph:
- Optimism Goldsky:
- Boba:
- Avalanche:
- Gnosis:
- (staging) Goerli:
- (staging) Core Testnet:
- Core:
- (testnet) Sepolia:
- Base TheGraph:
- Base Goldsky:
- (staging) Base Sepolia:
- Blast TheGraph:
- Blast Goldsky:
- Story Goldsky:## Optimistic Governor Events
This subgraph indexes events emitted by all the Optimistic Governor deployments.
- Mainnet:
- Polygon:
- Arbitrum:
- Optimism:
- Avalanche:
- Gnosis:
- (testnet) Goerli:
- (staging) Core Testnet:
- Core:
- Base:
- (testnet) Sepolia:## Resources
- Really well done subgraph repository: [aragon/connect](https://github.com/aragon/connect/tree/master/packages/connect-thegraph/subgraph)
- Run a local graph node: [graph-node](https://github.com/graphprotocol/graph-node/blob/master/docker/README.md)