-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsubgraph.yaml
63 lines (63 loc) · 2.1 KB
/
subgraph.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
specVersion: 0.0.2
repository: https://github.com/messari/uniswap-governance
description: Uniswap DAO is governed over GovernorAlpha - a set of proposals and votes. This subgraph aggregates the proposals in an easy to consume way.
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: GovernorAlpha
network: mainnet
source:
address: "0x5e4be8Bc9637f0EAA1A755019e06A68ce081D58F"
abi: GovernorAlpha
startBlock: 10861678
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Delegate
- TokenHolder
- Proposal
- Vote
- Governance
abis:
- name: GovernorAlpha
file: ./abis/GovernorAlpha.json
eventHandlers:
- event: ProposalCanceled(uint256)
handler: handleProposalCanceled
- event: ProposalCreated(uint256,address,address[],uint256[],string[],bytes[],uint256,uint256,string)
handler: handleProposalCreated
- event: ProposalExecuted(uint256)
handler: handleProposalExecuted
- event: ProposalQueued(uint256,uint256)
handler: handleProposalQueued
- event: VoteCast(address,uint256,bool,uint256)
handler: handleVoteCast
file: ./src/mapping.ts
- kind: ethereum/contract
name: UniswapToken
network: mainnet
source:
address: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"
abi: UniswapToken
startBlock: 10861674
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Delegate
- TokenHolder
abis:
- name: UniswapToken
file: ./abis/UniswapToken.json
eventHandlers:
- event: DelegateChanged(indexed address,indexed address,indexed address)
handler: handleDelegateChanged
- event: DelegateVotesChanged(indexed address,uint256,uint256)
handler: handleDelegateVotesChanged
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mapping.ts