forked from nounsDAO/nouns-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsubgraph.yaml.mustache
More file actions
99 lines (99 loc) · 3.33 KB
/
Copy pathsubgraph.yaml.mustache
File metadata and controls
99 lines (99 loc) · 3.33 KB
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
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.4
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: NounsToken
network: {{network}}
source:
address: '{{nounsToken.address}}'
abi: NounsToken
startBlock: {{nounsToken.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
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.4
language: wasm/assemblyscript
file: ./src/nouns-dao.ts
entities:
- Account
- Delegate
- Proposal
- Vote
- Governance
abis:
- name: NounsDAO
file: ../nouns-contracts/abi/contracts/governance/NounsDAOLogicV1.sol/NounsDAOLogicV1.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