This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsubgraph.template.yaml
108 lines (108 loc) · 3.7 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Drips
network: {{ network }}
source:
address: '{{drips.address}}'
abi: Drips
startBlock: {{ drips.block }}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Drips
abis:
- name: Drips
file: ./abis/Drips.json
eventHandlers:
- event: AccountMetadataEmitted(indexed uint256,indexed bytes32,bytes)
handler: handleAccountMetadata
- event: Collected(indexed uint256,indexed address,uint128)
handler: handleCollected
- event: StreamsSet(indexed uint256,indexed address,indexed bytes32,bytes32,uint128,uint32)
handler: handleStreamsSet
- event: StreamReceiverSeen(indexed bytes32,indexed uint256,uint256)
handler: handleStreamReceiverSeen
- event: SqueezedStreams(indexed uint256,indexed address,indexed uint256,uint128,bytes32[])
handler: handleSqueezedStreams
- event: SplitsSet(indexed uint256,indexed bytes32)
handler: handleSplitsSet
- event: SplitsReceiverSeen(indexed bytes32,indexed uint256,uint32)
handler: handleSplitsReceiverSeen
- event: Given(indexed uint256,indexed uint256,indexed address,uint128)
handler: handleGiven
- event: DriverRegistered(indexed uint32,indexed address)
handler: handleAppRegistered
- event: DriverAddressUpdated(indexed uint32,indexed address,indexed address)
handler: handleAppAddressUpdated
- event: Split(indexed uint256,indexed uint256,indexed address,uint128)
handler: handleSplit
- event: ReceivedStreams(indexed uint256,indexed address,uint128,uint32)
handler: handleReceivedStreams
file: ./src/mapping.ts
- kind: ethereum/contract
name: NFTDriver
network: {{ network }}
source:
address: '{{nftDriver.address}}'
abi: NFTDriver
startBlock: {{ nftDriver.block }}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- NFTDriver
abis:
- name: NFTDriver
file: ./abis/NFTDriver.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleNFTSubAccountTransfer
file: ./src/mapping.ts
- kind: ethereum/contract
name: ImmutableSplitsDriver
network: {{ network }}
source:
address: '{{immutableSplitsDriver.address}}'
abi: ImmutableSplitsDriver
startBlock: {{ immutableSplitsDriver.block }}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- ImmutableSplitsDriver
abis:
- name: ImmutableSplitsDriver
file: ./abis/ImmutableSplitsDriver.json
eventHandlers:
- event: CreatedSplits(indexed uint256,indexed bytes32)
handler: handleImmutableSplitsCreated
file: ./src/mapping.ts
- kind: ethereum/contract
name: RepoDriver
network: {{ network }}
source:
address: '{{repoDriver.address}}'
abi: RepoDriver
startBlock: {{ repoDriver.block }}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- RepoDriver
abis:
- name: RepoDriver
file: ./abis/RepoDriver.json
eventHandlers:
- event: OwnerUpdateRequested(indexed uint256,uint8,bytes)
handler: handleOwnerUpdateRequested
- event: OwnerUpdated(indexed uint256,address)
handler: handleOwnerUpdated
file: ./src/repoDriverHandlers.ts