-
Notifications
You must be signed in to change notification settings - Fork 49
/
subgraph.template.yaml
85 lines (85 loc) · 3.23 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
# Do not edit subgraph.yaml,this is a generated file.
# Instead, edit subgraph.template.yaml and run `yarn manifest-<network>-[staging]`
specVersion: 0.0.2
description: A template for Aragon subgraphs
repository: https://github.com/aragon/govern
schema:
file: ./schema.graphql
dataSources:
{{> GovernRegistry.yaml}}
templates:
- kind: ethereum/contract
name: GovernQueue
network: {{network}}
source:
abi: GovernQueue
mapping:
kind: ethereum/events
apiVersion: 0.0.1
language: wasm/assemblyscript
entities:
- Collateral
- Config
- Container
- ContainerEvent
- Payload
- Role
abis:
- name: GovernQueue
file: $GOVERN_CORE_MODULE/abi/contracts/pipelines/GovernQueue.sol/GovernQueue.json
- name: ERC20
file: $GOVERN_CONTRACT_UTILS_MODULE/abi/contracts/erc20/ERC20.sol/ERC20.json
eventHandlers:
- event: Configured(indexed bytes32,indexed address,(uint256,(address,uint256),(address,uint256),address,bytes,uint256))
handler: handleConfigured
- event: Frozen(indexed bytes4,indexed address)
handler: handleFrozen
- event: Granted(indexed bytes4,indexed address,indexed address,address)
handler: handleGranted
- event: Scheduled(indexed bytes32,(uint256,uint256,address,address,(address,uint256,bytes)[],bytes32,bytes))
handler: handleScheduled
- event: Executed(indexed bytes32,indexed address)
handler: handleExecuted
- event: Challenged(indexed bytes32,indexed address,bytes,uint256,(address,uint256))
handler: handleChallenged
- event: Vetoed(indexed bytes32,indexed address,bytes)
handler: handleVetoed
- event: Resolved(indexed bytes32,indexed address,bool)
handler: handleResolved
- event: Revoked(indexed bytes4,indexed address,indexed address)
handler: handleRevoked
file: ./src/GovernQueue.ts
- kind: ethereum/contract
name: Govern
network: {{network}}
source:
abi: Govern
mapping:
kind: ethereum/events
apiVersion: 0.0.1
language: wasm/assemblyscript
entities:
- Container
- ContainerEvent
- Role
abis:
- name: Govern
file: $GOVERN_CORE_MODULE/abi/contracts/Govern.sol/Govern.json
- name: GovernQueue
file: $GOVERN_CORE_MODULE/abi/contracts/pipelines/GovernQueue.sol/GovernQueue.json
eventHandlers:
- event: Executed(indexed address,(address,uint256,bytes)[],bytes32,bytes32,bytes[])
handler: handleExecuted
- event: ETHDeposited(address,uint256)
handler: handleETHDeposited
- event: Deposited(indexed address,indexed address,uint256,string)
handler: handleDeposited
- event: Withdrawn(indexed address,indexed address,address,uint256,string)
handler: handleWithdrawn
- event: Frozen(indexed bytes4,indexed address)
handler: handleFrozen
- event: Granted(indexed bytes4,indexed address,indexed address,address)
handler: handleGranted
- event: Revoked(indexed bytes4,indexed address,indexed address)
handler: handleRevoked
file: ./src/Govern.ts