-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
100 lines (100 loc) · 3.1 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: RulerCore
network: mainnet
source:
address: "0xF19f4490A7fCCfEf2DaB8199ACDB2Dc1B9027C18"
abi: RulerCore
startBlock: 11964006
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- SystemState
- Collateral
- Market
- User
- FlashloanEvent
- MarketMakeDepositEvent
- DepositEvent
- RepayEvent
- RedeemEvent
- CollectEvent
- UserPosition
abis:
- name: RulerCore
file: ./abis/RulerCore.json
- name: RERC20
file: ./abis/RERC20.json
- name: RulerOracle
file: ./abis/RulerOracle.json
- name: CurvefiFactory
file: ./abis/CurvefiFactory.json
eventHandlers:
- event: PairAdded(indexed address,indexed address,uint48,uint256)
handler: handlePairAdded
- event: MarketMakeDeposit(indexed address,indexed address,indexed address,uint48,uint256,uint256)
handler: handleMarketMakeDeposit
- event: FlashLoan(address,address,uint256)
handler: handleFlashLoanEvent
file: ./src/mapping.ts
- kind: ethereum/contract
name: RulerZap
network: mainnet
source:
address: "0x3a3AE0f08cAF7C267305b99B2ce6780BdEEfC25d"
abi: RulerZap
startBlock: 12032302
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- OwnershipTransferred
abis:
- name: RulerZap
file: ./abis/RulerZap.json
- name: RulerOracle
file: ./abis/RulerOracle.json
- name: CurvefiFactory
file: ./abis/CurvefiFactory.json
callHandlers:
- function: depositWithPermitAndSwapWithCurve(address,address,uint48,uint256,uint256,address,int128,uint256,(address,address,uint256,uint256,uint8,bytes32,bytes32))
handler: handleDepositWithPermitAndSwapWithCurve
- function: depositAndSwapWithCurve(address,address,uint48,uint256,uint256,address,int128,uint256)
handler: handleDepositAndSwapWithCurve
file: ./src/rulerZap.ts
# --------------------------------------
#
# --------------------------------------
#templates:
# --------------------------------------
# rToken / rrTokens / rcTokens
# --------------------------------------
# ------------------------------------------
# curvefi Factory
templates:
- kind: ethereum/contract
name: CurvefiFactory
network: mainnet
source:
abi: CurvefiFactory
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Metapool
abis:
- name: CurvefiFactory
file: ./abis/CurvefiFactory.json
- name: RulerOracle
file: ./abis/RulerOracle.json
eventHandlers:
- event: TokenExchangeUnderlying(indexed address,int128,uint256,int128,uint256)
handler: handleTokenExchangeUnderlying
file: ./src/curvefactory.ts