forked from srdjan/dydx-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
37 lines (37 loc) · 1.79 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Solo Margin
network: mainnet
source:
address: "0x1E0447b19BB6EcFdAe1e4AE1694b0C3659614e4e"
abi: dydx
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Token
eventHandlers:
- event: LogDeposit(indexed address,uint256,uint256,((bool,uint256),(bool,uint128)),address)
handler: handleDeposit
- event: LogWithdraw(indexed address,uint256,uint256,((bool,uint256),(bool,uint128)),address)
handler: handleWithdraw
- event: LogTransfer(indexed address,uint256,indexed address,uint256,uint256,((bool,uint256),(bool,uint128)),((bool,uint256),(bool,uint128)))
handler: handleTransfer
- event: LogBuy(indexed address,uint256,uint256,uint256,((bool,uint256),(bool,uint128)),((bool,uint256),(bool,uint128)),address)
handler: handleBuy
- event: LogSell(indexed address,uint256,uint256,uint256,((bool,uint256),(bool,uint128)),((bool,uint256),(bool,uint128)),address)
handler: handleSell
- event: LogTrade(indexed address,uint256,indexed address,uint256,uint256,uint256,((bool,uint256),(bool,uint128)),((bool,uint256),(bool,uint128)),((bool,uint256),(bool,uint128)),((bool,uint256),(bool,uint128)),address)
handler: handleTrade
- event: LogLiquidate(indexed address,uint256,indexed address,uint256,uint256,uint256,((bool,uint256),(bool,uint128)),((bool,uint256),(bool,uint128)),((bool,uint256),(bool,uint128)),((bool,uint256),(bool,uint128)))
handler: handleLiquidate
abis:
- name: dydx
file: ./abis/dydx.json
- name: erc20
file: ./abis/erc20.json
file: ./src/main.ts