-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathsubgraph.yaml.mustache
159 lines (159 loc) · 5.41 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
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,string)
handler: handleAuctionBid
- event: AuctionExtended(indexed uint256,uint256)
handler: handleAuctionExtended
- event: AuctionSettled(indexed uint256,address,uint256)
handler: handleAuctionSettled
- kind: ethereum/contract
name: NounsAuctionHouseV1
network: {{network}}
source:
address: '{{nounsAuctionHouseV1.address}}'
abi: NounsAuctionHouse
startBlock: {{nounsAuctionHouseV1.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/NounsAuctionHouseV1.sol/NounsAuctionHouseV1.json
eventHandlers:
- event: AuctionCreated(indexed uint256,uint256,uint256)
handler: handleAuctionCreatedV1
- event: AuctionBid(indexed uint256,address,uint256,bool)
handler: handleAuctionBidV1
- event: AuctionExtended(indexed uint256,uint256)
handler: handleAuctionExtendedV1
- event: AuctionSettled(indexed uint256,address,uint256)
handler: handleAuctionSettledV1
- kind: ethereum/contract
name: LilVRGDA
network: {{network}}
source:
address: '{{lilVRGDA.address}}'
abi: LilVRGDA
startBlock: {{lilVRGDA.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/lil-vrgda.ts
entities:
- Account
- Auction # Replace with actual entity names
- Bid
- Noun
abis:
- name: LilVRGDA
file: ../nouns-contracts/abi/contracts/LilVRGDA.sol/LilVRGDA.json
eventHandlers:
- event: AuctionReservePriceUpdated(uint256)
handler: handleAuctionReservePriceUpdated
- event: AuctionSettled(indexed uint256,address,uint256)
handler: handleAuctionSettled
- 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
abis:
- name: NounsDAO
file: ../nouns-contracts/abi/contracts/governance/NounsDAOLogicV2.sol/NounsDAOLogicV2.json
eventHandlers:
- event: ProposalCreatedWithRequirements(uint256,address,address[],uint256[],string[],bytes[],uint256,uint256,uint256,uint256,string)
handler: handleProposalCreatedWithRequirements
- 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