This repository has been archived by the owner on Mar 15, 2022. It is now read-only.
forked from 0xSplits/splits-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.template.yaml
60 lines (60 loc) · 2.39 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
specVersion: 0.0.2
description: 0xSplits
repository: https://github.com/0xSplits/splits-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: SplitMain
network: {{network}}
source:
address: "0x2ed6c4B5dA6378c7897AC67Ba9e43102Feb694EE"
abi: SplitMain
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Split
- Account
abis:
- name: SplitMain
file: ./abis/SplitMain.json
eventHandlers:
{{#polygon}}
- event: CreateSplit(indexed address,address[],uint32[],uint32,address)
handler: handleCreateSplit
{{/polygon}}
- event: InitiateControlTransfer(indexed address,indexed address)
handler: handleInitiateControlTransfer
- event: CancelControlTransfer(indexed address)
handler: handleCancelControlTransfer
- event: ControlTransfer(indexed address,indexed address,indexed address)
handler: handleControlTransfer
{{#polygon}}
- event: UpdateSplit(indexed address,address[],uint32[],uint32)
handler: handleUpdateSplit
{{/polygon}}
- event: DistributeETH(indexed address,uint256,indexed address)
handler: handleDistributeETH
- event: DistributeERC20(indexed address,indexed address,uint256,indexed address)
handler: handleDistributeERC20
- event: Withdrawal(indexed address,uint256,address[],uint256[])
handler: handleWithdrawal
{{#ethereum}}
callHandlers:
- function: createSplit(address[],uint32[],uint32,address)
handler: handleCreateSplitCall
- function: updateSplit(address,address[],uint32[],uint32)
handler: handleUpdateSplitCall
- function: updateAndDistributeETH(address,address[],uint32[],uint32,address)
handler: handleUpdateAndDistributeETHCall
- function: updateAndDistributeERC20(address,address,address[],uint32[],uint32,address)
handler: handleUpdateAndDistributeERC20Call
- function: distributeETH(address,address[],uint32[],uint32,address)
handler: handleDistributeETHCall
- function: distributeERC20(address,address,address[],uint32[],uint32,address)
handler: handleDistributeERC20Call
{{/ethereum}}
file: ./src/mapping.ts