forked from bancorprotocol/carbon-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
64 lines (64 loc) · 2.31 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: CarbonController
network: mainnet
source:
address: "0xC537e898CD774e2dCBa3B14Ea6f34C93d5eA45e1"
abi: CarbonController
startBlock: 17087375
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Pair
- Strategy
- Order
- Trade
- User
- Event
- Token
abis:
- name: CarbonController
file: ./abis/CarbonController.json
- name: ERC20Contract
file: ./abis/ERC20Contract.json
eventHandlers:
- event: PairCreated(indexed uint128,indexed address,indexed address)
handler: handlePairCreated
- event: StrategyCreated(uint256,indexed address,indexed address,indexed address,(uint128,uint128,uint64,uint64),(uint128,uint128,uint64,uint64))
handler: handleStrategyCreated
- event: StrategyDeleted(uint256,indexed address,indexed address,indexed address,(uint128,uint128,uint64,uint64),(uint128,uint128,uint64,uint64))
handler: handleStrategyDeleted
- event: StrategyUpdated(indexed uint256,indexed address,indexed address,(uint128,uint128,uint64,uint64),(uint128,uint128,uint64,uint64),uint8)
handler: handleStrategyUpdated
- event: TokensTraded(indexed address,indexed address,indexed address,uint256,uint256,uint128,bool)
handler: handleTokensTraded
- event: TradingFeePPMUpdated(uint32,uint32)
handler: handleTradingFeePPMUpdated
- event: PairTradingFeePPMUpdated(indexed address,indexed address,uint32,uint32)
handler: handlePairTradingFeePPMUpdated
file: ./src/controller/index.ts
- kind: ethereum
name: CarbonVoucher
network: mainnet
source:
address: "0x3660F04B79751e31128f6378eAC70807e38f554E"
abi: CarbonVoucher
startBlock: 17087375
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: CarbonVoucher
file: ./abis/CarbonVoucher.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/voucher/index.ts