forked from saddle-finance/saddle-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
108 lines (107 loc) · 3.85 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
specVersion: 0.0.2
description: An automated market maker for pegged value crypto assets
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: MuneUSDPool
network: matic
source:
address: "0x63C0c411F591fB0F157E70c1129D632090E2F84e"
abi: SwapFlashLoanNoWithdrawFee
startBlock: 12827153
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Swap
- SystemInfo
- Token
- NewAdminFeeEvent
- NewSwapFeeEvent
- RampAEvent
- StopRampAEvent
- AddLiquidityEvent
- RemoveLiquidityEvent
- FlashLoanEvent
- TokenExchange
abis:
- name: SwapFlashLoanNoWithdrawFee
file: ./abis/SwapFlashLoanNoWithdrawFee.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: NewAdminFee(uint256)
handler: handleNewAdminFee
- event: NewSwapFee(uint256)
handler: handleNewSwapFee
- event: RampA(uint256,uint256,uint256,uint256)
handler: handleRampA
- event: StopRampA(uint256,uint256)
handler: handleStopRampA
- event: AddLiquidity(indexed address,uint256[],uint256[],uint256,uint256)
handler: handleAddLiquidity
- event: RemoveLiquidity(indexed address,uint256[],uint256)
handler: handleRemoveLiquidity
- event: RemoveLiquidityImbalance(indexed address,uint256[],uint256[],uint256,uint256)
handler: handleRemoveLiquidityImbalance
- event: RemoveLiquidityOne(indexed address,uint256,uint256,uint256,uint256)
handler: handleRemoveLiquidityOne
- event: FlashLoan(indexed address,uint8,uint256,uint256,uint256)
handler: handleFlashLoan
- event: TokenSwap(indexed address,uint256,uint256,uint128,uint128)
handler: handleTokenSwap
file: ./src/mappings/swapFlashLoanNoWithdrawFee.ts
- kind: ethereum/contract
name: MuneFRAXMetaPool
network: matic
source:
address: "0xfb91c44C3EA35Fe6c22D68Bc4D61b45A474c83Ab"
abi: MetaSwap
startBlock: 12912720
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Swap
- SystemInfo
- Token
- NewAdminFeeEvent
- NewSwapFeeEvent
- RampAEvent
- StopRampAEvent
- AddLiquidityEvent
- RemoveLiquidityEvent
- TokenExchange
- TokenExchangeUnderlying
abis:
- name: MetaSwap
file: ./abis/MetaSwap.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: NewAdminFee(uint256)
handler: handleNewAdminFee
- event: NewSwapFee(uint256)
handler: handleNewSwapFee
- event: RampA(uint256,uint256,uint256,uint256)
handler: handleRampA
- event: StopRampA(uint256,uint256)
handler: handleStopRampA
- event: AddLiquidity(indexed address,uint256[],uint256[],uint256,uint256)
handler: handleAddLiquidity
- event: RemoveLiquidity(indexed address,uint256[],uint256)
handler: handleRemoveLiquidity
- event: RemoveLiquidityImbalance(indexed address,uint256[],uint256[],uint256,uint256)
handler: handleRemoveLiquidityImbalance
- event: RemoveLiquidityOne(indexed address,uint256,uint256,uint256,uint256)
handler: handleRemoveLiquidityOne
- event: TokenSwap(indexed address,uint256,uint256,uint128,uint128)
handler: handleTokenSwap
- event: TokenSwap(indexed address,uint256,uint256,uint128,uint128)
handler: handleTokenSwap
- event: TokenSwapUnderlying(indexed address,uint256,uint256,uint128,uint128)
handler: handleTokenSwapUnderlying
file: ./src/mappings/metaSwap.ts