-
Notifications
You must be signed in to change notification settings - Fork 432
/
subgraph.yaml.mustache
218 lines (218 loc) · 8.63 KB
/
subgraph.yaml.mustache
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
specVersion: 0.0.3
description: >-
Randomly generated avatar NFTs auctioned daily.
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: NounsAuctionHouse
network: {{network}}
source:
address: '{{nounsAuctionHouse.address}}'
abi: NounsAuctionHouse
startBlock: {{nounsAuctionHouse.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/nouns-auction-house.ts
entities:
- Account
- Auction
- Bid
- Noun
abis:
- name: NounsAuctionHouse
file: ../nouns-contracts/abi/contracts/NounsAuctionHouse.sol/NounsAuctionHouse.json
eventHandlers:
- event: AuctionCreated(indexed uint256,uint256,uint256)
handler: handleAuctionCreated
- event: AuctionBid(indexed uint256,address,uint256,bool)
handler: handleAuctionBid
- event: AuctionExtended(indexed uint256,uint256)
handler: handleAuctionExtended
- event: AuctionSettled(indexed uint256,address,uint256)
handler: handleAuctionSettled
- kind: ethereum/contract
name: NounsAuctionHouseV2
network: {{network}}
source:
address: '{{nounsAuctionHouse.address}}'
abi: NounsAuctionHouseV2
startBlock: {{nounsAuctionHouse.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/nouns-auction-house.ts
entities:
- Account
- Auction
- Bid
- Noun
abis:
- name: NounsAuctionHouseV2
file: ../nouns-contracts/abi/contracts/NounsAuctionHouseV2.json
eventHandlers:
- event: AuctionBidWithClientId(indexed uint256,uint256,indexed uint32)
handler: handleAuctionBidWithClientId
- event: AuctionSettledWithClientId(indexed uint256,indexed uint32)
handler: handleAuctionSettledWithClientId
- kind: ethereum/contract
name: NounsToken
network: {{network}}
source:
address: '{{nounsToken.address}}'
abi: NounsToken
startBlock: {{nounsToken.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/nouns-erc-721.ts
entities:
- Noun
- Seed
- Account
- Delegate
- Governance
abis:
- name: NounsToken
file: ../nouns-contracts/abi/contracts/NounsToken.sol/NounsToken.json
eventHandlers:
- event: NounCreated(indexed uint256,(uint48,uint48,uint48,uint48,uint48))
handler: handleNounCreated
- event: DelegateChanged(indexed address,indexed address,indexed address)
handler: handleDelegateChanged
- event: DelegateVotesChanged(indexed address,uint256,uint256)
handler: handleDelegateVotesChanged
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- kind: ethereum/contract
name: NounsDAO
network: {{network}}
source:
address: '{{nounsDAO.address}}'
abi: NounsDAO
startBlock: {{nounsDAO.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/nouns-dao.ts
entities:
- Account
- Delegate
- Proposal
- Vote
- Governance
- ProposalCandidateSignature
abis:
- name: NounsDAO
file: ../nouns-contracts/abi/contracts/governance/NounsDAOLogicV3.sol/NounsDAOLogicV3.json
eventHandlers:
- event: ProposalCreated(uint256,address,address[],uint256[],string[],bytes[],uint256,uint256,string)
handler: handleProposalCreated
- event: ProposalCreatedWithRequirements(uint256,address,address[],uint256[],string[],bytes[],uint256,uint256,uint256,uint256,string)
handler: handleProposalCreatedWithRequirements
- event: ProposalCreatedWithRequirements(uint256,address,address[],address[],uint256[],string[],bytes[],uint256,uint256,uint256,uint256,uint256,string)
handler: handleProposalCreatedWithRequirementsV3
- event: ProposalCreatedOnTimelockV1(uint256)
handler: handleProposalCreatedOnTimelockV1
- event: ProposalCanceled(uint256)
handler: handleProposalCanceled
- event: ProposalVetoed(uint256)
handler: handleProposalVetoed
- event: ProposalQueued(uint256,uint256)
handler: handleProposalQueued
- event: ProposalExecuted(uint256)
handler: handleProposalExecuted
- event: VoteCast(indexed address,uint256,uint8,uint256,string)
handler: handleVoteCast
- event: MinQuorumVotesBPSSet(uint16,uint16)
handler: handleMinQuorumVotesBPSSet
- event: MaxQuorumVotesBPSSet(uint16,uint16)
handler: handleMaxQuorumVotesBPSSet
- event: QuorumCoefficientSet(uint32,uint32)
handler: handleQuorumCoefficientSet
- event: ProposalUpdated(indexed uint256,indexed address,address[],uint256[],string[],bytes[],string,string)
handler: handleProposalUpdated
- event: ProposalDescriptionUpdated(indexed uint256,indexed address,string,string)
handler: handleProposalDescriptionUpdated
- event: ProposalTransactionsUpdated(indexed uint256,indexed address,address[],uint256[],string[],bytes[],string)
handler: handleProposalTransactionsUpdated
- event: ProposalObjectionPeriodSet(indexed uint256,uint256)
handler: handleProposalObjectionPeriodSet
- event: SignatureCancelled(indexed address,bytes)
handler: handleSignatureCanceled
- event: EscrowedToFork(indexed uint32,indexed address,uint256[],uint256[],string)
handler: handleEscrowedToFork
- event: WithdrawFromForkEscrow(indexed uint32,indexed address,uint256[])
handler: handleWithdrawFromForkEscrow
- event: ExecuteFork(indexed uint32,address,address,uint256,uint256)
handler: handleExecuteFork
- event: JoinFork(indexed uint32,indexed address,uint256[],uint256[],string)
handler: handleJoinFork
- event: VoteSnapshotBlockSwitchProposalIdSet(uint256,uint256)
handler: handleVoteSnapshotBlockSwitchProposalIdSet
- kind: ethereum/contract
name: NounsDAOV4
network: {{network}}
source:
address: '{{nounsDAO.address}}'
abi: NounsDAOV4
startBlock: {{nounsDAO.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/nouns-dao.ts
entities:
- Account
- Delegate
- Proposal
- Vote
- Governance
- ProposalCandidateSignature
abis:
- name: NounsDAOV4
file: ../nouns-contracts/abi/contracts/governance/NounsDAOLogicV4.json
eventHandlers:
- event: ProposalCreatedWithRequirements(uint256,address[],uint256,uint256,uint256,indexed uint32)
handler: handleProposalCreatedWithRequirementsV4
- event: VoteCastWithClientId(indexed address,indexed uint256,indexed uint32)
handler: handleVoteCastWithClientId
- kind: ethereum/contract
name: NounsDAOData
network: {{network}}
source:
address: '{{nounsDAOData.address}}'
abi: NounsDAOData
startBlock: {{nounsDAOData.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/nouns-dao-data.ts
entities:
- Delegate
- ProposalCandidate
- ProposalCandidateVersion
- ProposalCandidateSignature
- ProposalFeedback
abis:
- name: NounsDAOData
file: ../nouns-contracts/abi/contracts/governance/data/NounsDAOData.sol/NounsDAOData.json
eventHandlers:
- event: ProposalCandidateCreated(indexed address,address[],uint256[],string[],bytes[],string,string,uint256,bytes32)
handler: handleProposalCandidateCreated
- event: ProposalCandidateUpdated(indexed address,address[],uint256[],string[],bytes[],string,string,uint256,bytes32,string)
handler: handleProposalCandidateUpdated
- event: ProposalCandidateCanceled(indexed address,string)
handler: handleProposalCandidateCanceled
- event: SignatureAdded(indexed address,bytes,uint256,address,string,uint256,bytes32,bytes32,string)
handler: handleSignatureAdded
- event: FeedbackSent(indexed address,uint256,uint8,string)
handler: handleFeedbackSent
- event: CandidateFeedbackSent(indexed address,indexed address,string,uint8,string)
handler: handleCandidateFeedbackSent