-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsubgraph.template.yaml
101 lines (101 loc) · 4.02 KB
/
subgraph.template.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
101
specVersion: 0.0.2
description: ORGiD decentralized register for travel businesses
repository: https://github.com/windingtree/orgid-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: OrgId
network: {{network}}
source:
address: '{{orgIdAddress}}'
abi: OrgIdContract
startBlock: {{orgIdStartBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Organization
abis:
- name: OrgIdContract
file: ./abis/OrgId.json
eventHandlers:
- event: DirectorshipAccepted(indexed bytes32,indexed address)
handler: handleDirectorshipAccepted
- event: DirectorshipTransferred(indexed bytes32,indexed address,indexed address)
handler: handleDirectorshipTransferred
- event: OrgJsonChanged(indexed bytes32,indexed bytes32,string,string,string,indexed bytes32,string,string,string)
handler: handleOrgJsonChanged
- event: OrganizationActiveStateChanged(indexed bytes32,bool,bool)
handler: handleOrganizationActiveStateChanged
- event: OrganizationCreated(indexed bytes32,indexed address)
handler: handleOrganizationCreated
- event: OrganizationOwnershipTransferred(indexed bytes32,indexed address,indexed address)
handler: handleOrganizationOwnershipTransferred
- event: UnitCreated(indexed bytes32,indexed bytes32,indexed address)
handler: handleUnitCreated
file: ./src/mappings/orgId.ts
# - kind: ethereum/contract
# name: Directory
# network: {{network}}
# source:
# address: '{{directoryIndexAddress}}'
# abi: DirectoryIndexContract
# startBlock: {{directoryIndexStartBlock}}
# mapping:
# kind: ethereum/events
# apiVersion: 0.0.4
# language: wasm/assemblyscript
# entities:
# - Directory
# abis:
# - name: DirectoryIndexContract
# file: ./abis/DirectoryIndex.json
# - name: ArbitrableDirectoryContract
# file: ./abis/ArbitrableDirectory.json
# eventHandlers:
# - event: SegmentAdded(indexed address,indexed uint256)
# handler: handleDirectoryAdded
# - event: SegmentRemoved(indexed address)
# handler: handleDirectoryRemoved
# file: ./src/mappings/directoryIndex.ts
# templates:
# - name: ArbitrableDirectoryTemplate
# kind: ethereum/contract
# network: {{network}}
# source:
# abi: ArbitrableDirectoryContract
# mapping:
# kind: ethereum/events
# apiVersion: 0.0.1
# language: wasm/assemblyscript
# file: ./src/mappings/arbitrableDirectory.ts
# entities:
# - Directory
# abis:
# - name: ArbitrableDirectoryContract
# file: ./abis/ArbitrableDirectory.json
# eventHandlers:
# - event: ChallengeContributed(indexed bytes32,uint256,address)
# handler: handleChallengeContributed
# - event: Dispute(indexed address,indexed uint256,uint256,uint256)
# handler: handleDispute
# - event: Evidence(indexed address,indexed uint256,indexed address,string)
# handler: handleEvidence
# - event: MetaEvidence(indexed uint256,string)
# handler: handleMetaEvidence
# - event: OrganizationAdded(indexed bytes32,uint256)
# handler: handleOrganizationAdded
# - event: OrganizationChallenged(indexed bytes32,address,uint256)
# handler: handleOrganizationChallenged
# - event: OrganizationRemoved(indexed bytes32)
# handler: handleOrganizationRemoved
# - event: OrganizationRequestRemoved(indexed bytes32)
# handler: handleOrganizationRequestRemoved
# - event: OrganizationSubmitted(indexed bytes32)
# handler: handleOrganizationSubmitted
# - event: Ruling(indexed address,indexed uint256,uint256)
# handler: handleRuling
# - event: SegmentChanged(string,string)
# handler: handleDirectoryNameChanged