-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.yaml
54 lines (54 loc) · 1.61 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: billing
network: arbitrum-one
source:
address: '0x1b07d3344188908fb6deceac381f3ee63c48477a'
abi: billing
startBlock: 42472346
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Account
abis:
- name: billing
file: ./abis/billing.json
eventHandlers:
- event: TokensAdded(indexed address,uint256)
handler: handleTokensAdded
- event: TokensPulled(indexed address,uint256)
handler: handleTokensPulled
- event: TokensRemoved(indexed address,indexed address,uint256)
handler: handleTokensRemoved
file: ./src/billing.ts
- kind: ethereum
name: GNS
network: arbitrum-one
source:
address: '0x5cBDB6cfB91d435c5899Fc05741e7D371fd71667'
abi: GNS
startBlock: 113533076
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Subgraph
- Account
abis:
- name: GNS
file: ./abis/GNS.json
eventHandlers:
- event: SubgraphPublished(indexed uint256,indexed bytes32,uint32)
handler: handleSubgraphPublished
- event: SubgraphUpgraded(indexed uint256,uint256,uint256,indexed bytes32)
handler: handleSubgraphUpgraded
- event: SubgraphVersionUpdated(indexed uint256,indexed bytes32,bytes32)
handler: handleSubgraphVersionUpdated
# Include other relevant events here
file: ./src/gns.ts