-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.yaml
72 lines (72 loc) · 2.19 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
specVersion: 0.0.4
features:
- fullTextSearch
- ipfsOnEthereumContracts
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: CampaignFactoryUpgradable
network: mumbai
source:
address: "0xE44C3974E7a8659b37fb2959a9Ea91560498Aac3"
abi: CampaignFactoryUpgradable
startBlock: 29153634
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- User
abis:
- name: CampaignFactoryUpgradable
file: ./abis/CampaignFactoryUpgradable.json
- name: Campaign
file: ./abis/Campaign.json
eventHandlers:
- event: EvCampaignCreated(indexed address,indexed address)
handler: handleCampaignCreated
- event: EvWhiteUserSet(indexed address,bool)
handler: handleWhiteUserSet
- event: EvWhiteTokenSet(indexed address,uint256)
handler: handleWhiteTokenSet
file: ./src/campaign-factory.ts
templates:
- name: Campaign
kind: ethereum
network: mumbai
source:
abi: Campaign
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- User
abis:
- name: Campaign
file: ./abis/Campaign.json
eventHandlers:
- event: EvSignUp(uint256)
handler: handleSignUp
- event: EvRegisterSuccessfully(uint256)
handler: handleRegisterSuccessfully
- event: EvCheckIn(uint256,uint256,string)
handler: handleCheckIn
- event: EvModifyRegistry(uint256[],bool[])
handler: handleModifyRegistry
- event: EvSettle(address)
handler: handleSettle
- event: EvClaimReward(uint256,uint256)
handler: handleClaimReward
- event: EvFailure(uint256)
handler: handleFailure
- event: EvWithDraw(address,uint256,uint256)
handler: handleWithDraw
- event: EvCampaignUriSet(string)
handler: handleCampaignUriSet
- event: EvChallenge(uint256,uint256,uint256)
handler: handleChallenge
- event: EvVote(uint256,uint256)
handler: handleVote
file: ./src/campaign.ts