forked from Nemusonaneko/llamaSubs-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
118 lines (117 loc) · 3.85 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
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
109
110
111
112
113
114
115
116
117
118
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: LlamaSubsFactory
network: fuji
source:
address: "0xA899A6492711F5AA684488B2b899D5d536EA96fA"
abi: LlamaSubsFactory
startBlock: 20136073
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- DeployFlatRateERC20
- DeployFlatRateERC20NonRefundable
abis:
- name: LlamaSubsFactory
file: ./abis/LlamaSubsFactory.json
- name: LlamaSubsFlatRateERC20
file: ./abis/LlamaSubsFlatRateERC20NonRefundable.json
- name: LlamaSubsFlatRateERC20NonRefundable
file: ./abis/LlamaSubsFlatRateERC20NonRefundable.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: DeployFlatRateERC20(address,indexed address,uint128,uint128,(uint216,address)[])
handler: handleDeployFlatRateERC20
- event: DeployFlatRateERC20NonRefundable(address,indexed address,(uint208,uint40,address)[])
handler: handleDeployFlatRateERC20NonRefundable
file: ./src/llama-subs-factory.ts
templates:
- kind: ethereum
name: LlamaSubsFlatRateERC20
network: fuji
source:
abi: LlamaSubsFlatRateERC20
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Subscribe
- Extend
- Unsubscribe
- Claim
- AddTier
- RemoveTier
- AddWhitelist
- RemoveWhitelist
abis:
- name: LlamaSubsFactory
file: ./abis/LlamaSubsFactory.json
- name: LlamaSubsFlatRateERC20
file: ./abis/LlamaSubsFlatRateERC20.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Subscribe(uint256,address,uint256,uint256,uint256,uint256)
handler: handleSubscribe
- event: Extend(uint256,uint256,uint256,uint256,uint256)
handler: handleExtend
- event: Unsubscribe(uint256,uint256,uint256,uint256)
handler: handleUnsubscribe
- event: Claim(address,address,address,uint256)
handler: handleClaim
- event: AddTier(uint256,address,uint216)
handler: handleAddTier
- event: RemoveTier(uint256)
handler: handleRemoveTier
- event: AddWhitelist(address)
handler: handleAddWhitelist
- event: RemoveWhitelist(address)
handler: handleRemoveWhitelist
file: ./src/llamasubsflatrateerc20.ts
- kind: ethereum
name: LlamaSubsFlatRateERC20NonRefundable
network: fuji
source:
abi: LlamaSubsFlatRateERC20NonRefundable
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Subscribe
- Extend
- Claim
- AddSub
- RemoveSub
- AddWhitelist
- RemoveWhitelist
abis:
- name: LlamaSubsFactory
file: ./abis/LlamaSubsFactory.json
- name: LlamaSubsFlatRateERC20NonRefundable
file: ./abis/LlamaSubsFlatRateERC20NonRefundable.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Subscribe(uint256,address,uint56,address,uint40,uint208)
handler: handleSubscribe
- event: Extend(uint256,uint256,address,uint256,uint208)
handler: handleExtend
- event: Claim(address,address,address,uint256)
handler: handleClaim
- event: AddSub(uint256,uint208,uint40,address)
handler: handleAddSub
- event: RemoveSub(uint256)
handler: handleRemoveSub
- event: AddWhitelist(address)
handler: handleAddWhitelist
- event: RemoveWhitelist(address)
handler: handleRemoveWhitelist
file: ./src/llamasubsflatrateerc20nonrefundable.ts