-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.template.yaml
103 lines (102 loc) · 3.35 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: KLPFactory
network: {{network}}
source:
startBlock: {{KLPFactoryStartBlock}}
address: '{{KLPFactory}}'
abi: KLPFactory
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/klp.ts
entities:
- Token
- Transaction
abis:
- name: KLPFactory
file: ./abis/KLPFactory.json
- name: KLP
file: ./abis/KLP.json
- name: ERC20Detailed
file: ./abis/ERC20Detailed.json
eventHandlers:
- event: PairCreated(address,address)
handler: handlePairCreated
- kind: ethereum/contract
name: Keep3rV2
network: {{network}}
source:
startBlock: {{keep3rV2StartBlock}}
address: '{{keep3rV2}}'
abi: Keep3rV2
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/keep3rV2.ts
entities:
- Keep3rV2
- Bond
- BondAction
- Token
- Transaction
abis:
- name: Keep3rV2
file: ./abis/Keep3rV2.json
- name: ERC20Detailed
file: ./abis/ERC20Detailed.json
callHandlers:
- function: unbondLiquidityFromJob(address,address,uint256)
handler: handleUnbondLiquidityFromJob
- function: unbond(address,uint256)
handler: handleUnbondingFromKeeper
eventHandlers:
- event: JobAddition(indexed address,indexed address)
handler: handleAddJob
- event: JobMigrationSuccessful(address,indexed address)
handler: handleJobMigrationSuccessful
- event: LiquidityAddition(indexed address,indexed address,indexed address,uint256)
handler: handleAddLiquidityToJob
- event: LiquidityWithdrawal(indexed address,indexed address,indexed address,uint256)
handler: handleLiquidityWithdrawalFromJob
- event: TokenCreditAddition(indexed address,indexed address,indexed address,uint256)
handler: handleAddTokenCreditsToJob
- event: TokenCreditWithdrawal(indexed address,indexed address,indexed address,uint256)
handler: handleWithdrawTokenCreditsFromJob
- event: Bonding(indexed address,indexed address,uint256)
handler: handleBonding
- event: Activation(indexed address,indexed address,uint256)
handler: handleActivation
- event: Withdrawal(indexed address,indexed address,uint256)
handler: handleWithdrawal
- event: KeeperWork(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleWork
templates:
- name: KLP
kind: ethereum/contract
network: {{network}}
source:
abi: KLP
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/klp.ts
entities:
- Token
- Transaction
abis:
- name: KLP
file: ./abis/KLP.json
callHandlers:
- function: mint(uint256,uint256,uint256,uint256,address)
handler: handleMint
- function: uniswapV3MintCallback(uint256,uint256,bytes)
handler: handleMintCallback
- function: burn(uint128,uint256,uint256,address)
handler: handleBurn