-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.template.yaml
43 lines (43 loc) · 1.36 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
specVersion: 1.0.0
description: The Gateway Billing Subgraph
repository: https://github.com/edgeandnode/billing-subgraph
schema:
file: ./schema.graphql
indexerHints:
prune: auto
dataSources:
- kind: ethereum/contract
name: Billing
network: {{network}}
source:
address: "{{addressBilling}}"
abi: Billing
startBlock: {{blockNumber}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/billing.ts
entities:
- Billing
- User
- TokensAdded
- TokensRemoved
- TokensPulled
- InsufficientBalanceForRemoval
abis:
- name: Billing
file: ./abis/Billing.json
eventHandlers:
- event: CollectorUpdated(indexed address,bool)
handler: handleCollectorUpdated
- event: NewOwnership(indexed address,indexed address)
handler: handleNewOwnership
- event: TokensAdded(indexed address,uint256)
handler: handleTokensAdded
- event: TokensRemoved(indexed address,indexed address,uint256)
handler: handleTokensRemoved
- event: TokensPulled(indexed address,uint256)
handler: handleTokensPulled
- event: InsufficientBalanceForRemoval(indexed address,indexed address,uint256)
handler: handleInsufficientBalanceForRemoval