-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
75 lines (75 loc) · 2.05 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: FundingFactory
network: sepolia
source:
address: "0x151D0545647B710Cb7B16D33f9c9CBb2dE3553Cf"
abi: FundingFactory
startBlock: 5128087
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- EventCreator
- User
- FundingEvent
- UserFundingEvent
- Project
- Vote
abis:
- name: FundingFactory
file: ./abis/FundingFactory.json
eventHandlers:
- event: newFundingCreated(indexed address,uint256,address,string)
handler: handleNewFundingCreated
file: ./src/mappings.ts
templates:
- kind: ethereum
name: FundingContract
network: sepolia
source:
abi: FundingContract
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings.ts
entities:
- EventCreator
- User
- FundingEvent
- UserFundingEvent
- Project
- Vote
abis:
- name: FundingContract
file: ./abis/FundingContract.json
- name: FundingFactory
file: ./abis/FundingFactory.json
eventHandlers:
- event: projectListed(indexed address,string,uint256)
handler: handleProjectListed
- event: voted(indexed address,uint256,uint256)
handler: handleVoted
- event: fundsWithdrawn(indexed uint256,uint256,uint256,address)
handler: handleFundsWithdrawn
- event: resultPublished(uint256,uint256)
handler: handleResultPublished
- name: IpfsMetadataDetails
kind: file/ipfs
mapping:
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/map-ipfs.ts
handler: handleMetadata
entities:
- IpfsMetadataDetails
abis:
- name: FundingContract
file: ./abis/FundingContract.json
- name: FundingFactory
file: ./abis/FundingFactory.json