-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
74 lines (74 loc) · 2.43 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
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: CrowdFunder
network: goerli
source:
address: "0xb319454e3B744bB91abb0Ad7A36989b53c02A79a"
abi: CrowdFunder
startBlock: 8639841
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- CampaignAdded
- CampaignFunded
- CampaignRemoved
- CampaignShrunk
- UserAdded
- UserHomeAddrAdded
abis:
- name: CrowdFunder
file: ./abis/CrowdFunder.json
eventHandlers:
- event: CampaignAdded(indexed address,indexed address,string,string[])
handler: handleCampaignAdded
- event: CampaignFunded(indexed address,indexed address)
handler: handleCampaignFunded
- event: CampaignRemoved(indexed address)
handler: handleCampaignRemoved
- event: CampaignShrunk(indexed address,indexed address)
handler: handleCampaignShrunk
- event: UserAdded(indexed address,string,string,string,string,string)
handler: handleUserAdded
- event: UserHomeAddrAdded(address,string)
handler: handleUserHomeAddrAdded
file: ./src/crowd-funder.ts
- kind: ethereum
name: mii
network: goerli
source:
address: "0xb132dECFFbF3bE5cf6D50902Ebf6b481F9d1f937"
abi: mii
startBlock: 8697879
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- miiCampaignAdded
- miiCampaignFunded
- miiCampaignRemoved
- miiCampaignShrunk
- miiUserAdded
- miiUserHomeAddrAdded
abis:
- name: mii
file: ./abis/mii.json
eventHandlers:
- event: miiCampaignAdded(indexed address,indexed address,string,string[])
handler: handlemiiCampaignAdded
- event: miiCampaignFunded(indexed address,indexed address)
handler: handlemiiCampaignFunded
- event: miiCampaignRemoved(indexed address)
handler: handlemiiCampaignRemoved
- event: miiCampaignShrunk(indexed address,indexed address)
handler: handlemiiCampaignShrunk
- event: miiUserAdded(indexed address,string,string,string,string)
handler: handlemiiUserAdded
- event: miiUserHomeAddrAdded(address,string)
handler: handlemiiUserHomeAddrAdded
file: ./src/mii.ts