-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
119 lines (119 loc) · 3.74 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
119
specVersion: 0.0.2
description: Market Protocol Subgraph
repository: https://github.com/perfectmak/marketprotocol_subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ContractFactory
network: kovan
source:
address: '0x7b9c829ba165401a0834a9616ab53c645ce12d63'
abi: ContractFactory
templates:
- name: MarketContract
kind: ethereum/contract
network: mainnet
source:
abi: MarketContract
mapping:
kind: ethereum/events
apiVersion: 0.0.1
language: wasm/assemblyscript
file: ./src/simplemapping.ts
entities:
- MarketContract
abis:
- name: MarketContract
file: ./abis/MarketContractMPX.json
eventHandlers:
- event: ContractSettled(uint256)
handler: handleContractSettled
- event: UpdatedLastPrice(uint256)
handler: handleUpdatedLastPrice
- name: PositionToken
kind: ethereum/contract
network: kovan
source:
abi: PositionToken
mapping:
kind: ethereum/events
apiVersion: 0.0.1
language: wasm/assemblyscript
file: ./src/simplemapping.ts
entities:
- PositionToken
- PositionTokenOwner
- PositionTokenOwnersBalance
abis:
- name: PositionToken
file: ./abis/PositionToken.json
eventHandlers:
- event: Transfer(address,address,uint256)
handler: handlePositionTokenTransfer
mapping:
kind: ethereum/events
apiVersion: 0.0.2
language: wasm/assemblyscript
entities:
- MarketContract
- PositionToken
abis:
- name: ContractFactory
file: ./abis/MarketContractFactoryMPX.json
- name: MarketContract
file: ./abis/MarketContractMPX.json
- name: PositionToken
file: ./abis/PositionToken.json
eventHandlers:
- event: MarketContractCreated(address,address)
handler: handleMarketContractCreated
file: ./src/simplemapping.ts
- kind: ethereum/contract
name: ContractRegistry
network: kovan
source:
address: '0x22f0bbdd749f0deb141e41ca2b25db4a20969176'
abi: ContractRegistry
mapping:
kind: ethereum/events
apiVersion: 0.0.2
language: wasm/assemblyscript
entities:
- MarketContract
abis:
- name: ContractRegistry
file: ./abis/MarketContractRegistry.json
- name: ContractFactory
file: ./abis/MarketContractFactoryMPX.json
- name: MarketContract
file: ./abis/MarketContractMPX.json
eventHandlers:
- event: AddressAddedToWhitelist(address)
handler: handleMarketContractAddressWhitelisted
- event: AddressRemovedFromWhitelist(address)
handler: handleMarketContractAddressRemovedFromWhitelist
file: ./src/simplemapping.ts
- kind: ethereum/contract
name: CollateralPool
network: kovan
source:
address: '0x544dd1815f327860d068d6720b225ac38fa613b4'
abi: CollateralPool
mapping:
kind: ethereum/events
apiVersion: 0.0.2
language: wasm/assemblyscript
entities:
- MarketContract
abis:
- name: CollateralPool
file: ./abis/MarketCollateralPool.json
- name: MarketContract
file: ./abis/MarketContractMPX.json
eventHandlers:
- event: TokensMinted(address,address,address,uint256,uint256,uint256)
handler: handleTokensMinted
- event: TokensRedeemed(address,address,uint256,uint256,uint256)
handler: handleTokensRedeemed
file: ./src/simplemapping.ts