-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.template.yaml
87 lines (87 loc) · 2.92 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
specVersion: 0.0.1
schema:
file: ./schema.graphql
dataSources:
# Registry
- kind: ethereum
name: Registry
network: {{network}}
source:
address: '{{registryAddress}}'
abi: Registry
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Profile
abis:
- name: Registry
file: ./abis/Registry.json
eventHandlers:
- event: ProfileCreated(indexed bytes32,uint256,string,(uint256,string),address,address)
handler: handleProfileCreated
- event: ProfileMetadataUpdated(indexed bytes32,(uint256,string))
handler: handleProfileMetadataUpdated
- event: ProfileNameUpdated(indexed bytes32,string,address)
handler: handleProfileNameUpdated
- event: ProfileOwnerUpdated(indexed bytes32,address)
handler: handleProfileOwnerUpdated
- event: RoleGranted(indexed bytes32,indexed address,indexed address)
handler: handleRoleGranted
- event: RoleRevoked(indexed bytes32,indexed address,indexed address)
handler: handleRoleRevoked
file: ./src/registry.ts
# Allo
- kind: ethereum
name: Allo
network: {{network}}
source:
address: '{{alloAddress}}'
abi: Allo
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- BaseFeePaid
- BaseFeeUpdated
- FeePercentageUpdated
- PoolCreated
- PoolFunded
- PoolMetadataUpdated
- RegistryUpdated
- RoleGranted
- RoleRevoked
- StrategyApproved
- StrategyRemoved
- TreasuryUpdated
abis:
- name: Allo
file: ./abis/Allo.json
eventHandlers:
- event: BaseFeeUpdated(uint256)
handler: handleBaseFeeUpdated
- event: FeePercentageUpdated(uint256)
handler: handleFeePercentageUpdated
- event: PoolCreated(indexed uint256,indexed bytes32,address,address,uint256,(uint256,string))
handler: handlePoolCreated
- event: PoolFunded(indexed uint256,uint256,uint256)
handler: handlePoolFunded
- event: PoolMetadataUpdated(indexed uint256,(uint256,string))
handler: handlePoolMetadataUpdated
- event: RegistryUpdated(address)
handler: handleRegistryUpdated
- event: RoleGranted(indexed bytes32,indexed address,indexed address)
handler: handleRoleGranted
- event: RoleRevoked(indexed bytes32,indexed address,indexed address)
handler: handleRoleRevoked
- event: StrategyApproved(address)
handler: handleStrategyApproved
- event: StrategyRemoved(address)
handler: handleStrategyRemoved
- event: TreasuryUpdated(address)
handler: handleTreasuryUpdated
file: ./src/allo.ts