forked from KyberNetwork/dmm-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
115 lines (115 loc) · 3.82 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
specVersion: 0.0.2
description: DMM is a decentralized protocol for automated token exchange on Ethereum.
repository: https://github.com/dynamic-amm/dmm-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: DmmFactory
network: ethereum
source:
address: '0x833e4083b7ae46cea85695c4f7ed25cdad8886de'
abi: DmmFactory
startBlock: 12178218 # contract creation block
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities: # defines which entities are written to stores
- Pairs
- Pools
- Tokens
abis:
- name: DmmFactory
file: ./abis/DmmFactory.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
eventHandlers:
- event: PoolCreated(indexed address,indexed address,address,uint32,uint256)
handler: handlePoolCreated
- event: SetFeeConfiguration(address,uint16)
handler: handleSetFeeConfiguration
- kind: ethereum/contract
name: KyberRewardLocker
network: ethereum
source:
address: '0xfab5186a194588f5ad5074bd52659302906b4522'
abi: KyberRewardLocker
startBlock: 12720768 # contract creation block
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/rewardLocker.ts
entities: # defines which entities are written to stores
- RewardLockers
abis:
- name: KyberRewardLocker
file: ./abis/KyberRewardLocker.json
- name: KyberFairLaunch
file: ./abis/KyberFairLaunch.json
eventHandlers:
- event: RewardContractAdded(indexed address,indexed address,bool)
handler: handleRewardContractAdded
- event: Vested(indexed address,indexed address,uint256,uint256)
handler: handleVestd
templates:
- kind: ethereum/contract
name: Pool
network: ethereum
source:
abi: Pool
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/core.ts
entities:
- Pool
- Token
abis:
- name: Pool
file: ./abis/DmmPool.json
- name: Factory
file: ./abis/DmmFactory.json
eventHandlers:
- event: Mint(indexed address,uint256,uint256)
handler: handleMint
- event: Burn(indexed address,uint256,uint256,indexed address)
handler: handleBurn
- event: Swap(indexed address,uint256,uint256,uint256,uint256,indexed address,uint256)
handler: handleSwap
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: Sync(uint256,uint256,uint256,uint256)
handler: handleSync
- kind: ethereum/contract
name: KyberFairLaunch
network: ethereum
source:
abi: KyberFairLaunch
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/fairLaunch.ts
entities:
- Pool
- Token
abis:
- name: KyberFairLaunch
file: ./abis/KyberFairLaunch.json
eventHandlers:
- event: Deposit(indexed address,indexed uint256,indexed uint256,uint256)
handler: handleDeposit
- event: Harvest(indexed address,indexed uint256,indexed address,uint256,uint256)
handler: handleHarvest
- event: Withdraw(indexed address,indexed uint256,indexed uint256,uint256)
handler: handleWithdraw
- event: AddNewPool(indexed address,indexed uint32,indexed uint32,uint256[])
handler: handleAddNewPool