-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
58 lines (58 loc) · 2.03 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Saarthi
network: rinkeby
source:
address: "0x72624c794c508f8d2f3bf65d6b363118d9d6e39e"
startBlock: 7881791
abi: Saarthi
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- TaskState
- Task
- Bill
- UserHospitalBill
- Hospital
- Approval
- CampaignHistoryItem
- Campaign
- DonationItem
- Fund
- ReportUpdate
- ReportItem
- ReportData
abis:
- name: Saarthi
file: ./abis/Saarthi.json
eventHandlers:
- event: newTaskCreated(indexed uint256,indexed address,bytes32,uint256,uint256)
handler: handlenewTaskCreated
- event: modelUpdated(indexed uint256,bytes32,uint256)
handler: handlemodelUpdated
- event: hospitalUpdated(indexed address,bool)
handler: handlehospitalUpdated
- event: newBill(indexed address,indexed address,uint256)
handler: handlenewBill
- event: newApproval(indexed address,indexed address,bool)
handler: handlenewApproval
- event: newCampaign(indexed address,bytes32)
handler: handlenewCampaign
- event: newCampaignDonation(indexed address,indexed address,uint256)
handler: handlenewCampaignDonation
- event: campaignStopped(indexed address)
handler: handlecampaignStopped
- event: newFund(indexed uint256,indexed bytes32,bytes32,indexed address)
handler: handlenewFund
- event: newFundDonation(indexed uint256,indexed address,indexed address,uint256)
handler: handlenewFundDonation
- event: newReport(indexed uint256,indexed address,indexed bytes32,bytes32,string,uint256)
handler: handlenewReport
- event: updateReport(indexed address,indexed uint256,string)
handler: handleupdateReport
file: ./src/mapping.ts