-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
100 lines (100 loc) · 2.69 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
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
specVersion: 0.0.4
description: Subgraph for Vision v1 smart contracts on Polygon
features:
- fullTextSearch
repository: https://github.com/Vision-DAO/v1-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Factory
network: mumbai
source:
address: "0x5e1819C8E8558068371a069e749223be05c63BD2"
abi: Factory
startBlock: 28082135
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Registry
- Idea
abis:
- name: Factory
file: ./value-tree/build/contracts/Factory.json
- name: Idea
file: ./value-tree/build/contracts/Idea.json
eventHandlers:
- event: IdeaCreated(address)
handler: handleIdeaCreated
- event: FactoryCreated()
handler: handleFactoryCreated
receipt: true
file: ./src/mappings/factory.ts
templates:
- name: Idea
kind: ethereum/contract
network: mumbai
source:
abi: Idea
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Idea
- Prop
- InvestorProfile
- AuthorProfile
- VoterProfile
- User
- Transfer
- FundingRate
- TreasuryBalance
- Vote
abis:
- name: Idea
file: ./value-tree/build/contracts/Idea.json
- name: Proposal
file: ./value-tree/build/contracts/Prop.json
eventHandlers:
- event: ProposalSubmitted(address)
handler: handleProposalSubmitted
receipt: true
- event: IdeaFunded(address,address,(address,uint256,bool,uint8))
handler: handleIdeaFunded
- event: ProposalRejected(address)
handler: handleProposalRejected
- event: FundingDispersed(address,(address,uint256,bool,uint8))
handler: handleFundingDispersed
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mappings/idea.ts
- name: Proposal
kind: ethereum/contract
network: mumbai
source:
abi: Proposal
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Idea
- Prop
- InvestorProfile
- AuthorProfile
- VoterProfile
- User
- Transfer
- FundingRate
- TreasuryBalance
- Vote
abis:
- name: Proposal
file: ./value-tree/build/contracts/Prop.json
eventHandlers:
- event: VoteCast(address,uint256,uint8)
handler: handleVote
file: ./src/mappings/prop.ts