Skip to content

UMAprotocol/subgraphs

Repository files navigation

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

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

Optimistic Oracle Events:

This subgraph indexes events emitted by the "Optimistic Oracle" contracts. The code can be found in packages/optimistic-oracle

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.

Financial Contract Events:

This subgraph indexes events emitted by the ExpiringMultiParty and Perpetual contracts. The code can be found in packages/financial-contracts

Token Events:

This subgraph indexes events emitted by the UMA voting token contracts. The code can be found in packages/token

Voting V2 Events:

This subgraph indexes events emitted by the core Oracle contracts. The code can be found in packages/votingV2

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

Optimistic Governor Events:

This subgraph indexes events emitted by all the Optimistic Governor deployments.

Resources