-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.base-3-sepolia.yaml
81 lines (81 loc) · 3.15 KB
/
subgraph.base-3-sepolia.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
specVersion: 0.0.4
schema:
file: ./base-3-sepolia/schema.graphql
dataSources:
- kind: ethereum
network: base-sepolia
name: PerpsMarketProxy
source:
abi: PerpsMarketProxy
address: "0xE6C5f05C415126E6b81FCc3619f65Db2fCAd58D0"
startBlock: 4548969
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./base-3-sepolia/index.ts
abis:
- name: PerpsMarketProxy
file: ./base-3-sepolia/deployments/perpsFactory/PerpsMarketProxy.json
entities:
- Account
- Market
- Trade
- Liquidation
- CollateralModified
- AccountFlaggedForLiquidation
- MarketUpdated
- InterestCharged
eventHandlers:
# good
- event: AccountCreated(indexed uint128,indexed address)
handler: handleAccountCreated
# good
- event: MarketCreated(indexed uint128,string,string)
handler: handleMarketCreated
# good
- event: MarketUpdated(uint128,uint256,int256,uint256,int256,int256,int256,uint128)
handler: handleMarketUpdated
# good
- event: MarketPriceDataUpdated(indexed uint128,bytes32,uint256)
handler: handleMarketPriceDataUpdated
# good
- event: FundingParametersSet(indexed uint128,uint256,uint256)
handler: handleFundingParametersSet
# good
- event: LiquidationParametersSet(indexed uint128,uint256,uint256,uint256,uint256,uint256)
handler: handleLiquidationParametersSet
# good
- event: MaxLiquidationParametersSet(indexed uint128,uint256,uint256,uint256,address)
handler: handleMaxLiquidationParametersSet
# good
- event: LockedOiRatioSet(indexed uint128,uint256)
handler: handleLockedOiRatioSet
# good
- event: OrderFeesSet(indexed uint128,uint256,uint256)
handler: handleOrderFeesSet
# good
- event: SettlementStrategyAdded(indexed uint128,(uint8,uint256,uint256,address,bytes32,uint256,bool,uint256),indexed uint256)
handler: handleSettlementStrategyAdded
# good
- event: SettlementStrategySet(indexed uint128,indexed uint256,(uint8,uint256,uint256,address,bytes32,uint256,bool,uint256))
handler: handleSettlementStrategySet
# good
- event: OrderSettled(indexed uint128,indexed
uint128,uint256,int256,int256,int128,int128,uint256,uint256,uint256,uint256,indexed
bytes32,address)
handler: handleOrderSettled
# to do
- event: PositionLiquidated(indexed uint128,indexed uint128,uint256,int128)
handler: handlePositionLiquidated
# good
- event:
CollateralModified(indexed uint128,indexed uint128,int256,indexed
address)
handler: handleCollateralModified
# good
- event: InterestCharged(indexed uint128,uint256)
handler: handleInterestCharged
# good
- event: AccountFlaggedForLiquidation(indexed uint128,int256,uint256,uint256,uint256)
handler: handleAccountFlaggedForLiquidation