-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.yaml
78 lines (77 loc) · 2.77 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
specVersion: 0.0.2
description: Predictly subgraph
repository: https://github.com/kyte-one/predictly-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: MarketFactory
network: fuji
source:
address: '0xA1696b479B4099F73F156B7ED69656a4E4Dc7a07'
abi: MarketFactory
startBlock: 2511718
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Factory
- FactoryHourData
- FactoryDayData
- Asset
- AssetHourData
- AssetDayData
- Market
- User
- MarketUser
abis:
- name: MarketFactory
file: ./abis/MarketFactory.json
- name: Market
file: ./abis/Market.json
eventHandlers:
- event: Init(address,uint256,uint256,uint256,uint24,uint24,uint24,uint256,uint256,uint256,uint8)
handler: handleInit
- event: AddAsset(indexed uint256,indexed bytes32,indexed address,uint8,uint8,address)
handler: handleAddAsset
- event: CreateMarket(indexed address,indexed uint256,uint256,uint256,uint256[],uint256,address,address)
handler: handleCreateMarket
- event: AddMarketToken(indexed address)
handler: handleAddMarketToken
- event: UpdateMinMarketLiquidity(uint256)
handler: handleUpdateMinMarketLiquidity
- event: UpdateLossConstant(uint8)
handler: handleUpdateLossConstant
- event: UpdateMarketWindowParams(uint256,uint256,uint256)
handler: handleUpdateMarketWindowParams
- event: UpdateMarketDurationParams(uint256,uint256)
handler: handleUpdateMarketDurationParams
- event: UpdateMarketFeesPercentage(uint24,uint24,uint24)
handler: handleUpdateMarketFeesPercentage
file: ./src/factory-mapping.ts
templates:
- kind: ethereum/contract
name: Market
network: fuji
source:
abi: Market
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/market-mapping.ts
entities:
- Market
abis:
- name: Market
file: ./abis/Market.json
eventHandlers:
- event: PlacePrediction(indexed address,indexed bytes32,indexed address,uint8,uint256,uint8,uint256,uint256,address)
handler: handlePlacePrediction
- event: SettleMarket(indexed address,indexed address,indexed uint256,uint8,uint256,uint256,uint256,uint256,uint256)
handler: handleSettleMarket
- event: DistributeMarketFee(indexed address,indexed address,uint8,uint256)
handler: handleDistributeMarketFee
- event: ClaimReturns(indexed address,indexed address,uint256,uint256)
handler: handleClaimReturns