-
Notifications
You must be signed in to change notification settings - Fork 12
/
subgraph.yaml
67 lines (67 loc) · 2.29 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
specVersion: 0.0.2
description: Loopring Exchange V3 (Loopring 3.6.5) subgraph. Supports L2 Blocks and Transactions, as well as L2 accounts, balances and more.
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: OwnedUpgradabilityProxy
network: mainnet
source:
address: "0x0baba1ad5be3a5c0a66e7ac838a129bf948f1ea4"
abi: OwnedUpgradabilityProxy
startBlock: 11149814
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/index.ts
entities:
- Proxy
- Exchange
- Token
- Pair
- User
- Pool
- ProtocolAccount
- Withdrawal
- WithdrawalNFT
- Deposit
- Transfer
- Add
- AmmUpdate
- Remove
- OrderbookTrade
- Swap
- SwapNFT
- TradeNFT
- SignatureVerification
- AccountUpdate
abis:
- name: OwnedUpgradabilityProxy
file: ./abis/OwnedUpgradabilityProxy.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Upgraded(indexed address)
handler: handleUpgraded
- event: TokenRegistered(address,uint16)
handler: handleTokenRegistered
callHandlers:
- function: submitBlocks((uint8,uint16,uint8,bytes,uint256[8],bool,(uint256,bytes)[],bytes)[])
handler: handleSubmitBlocksV1
- function: submitBlocks((uint8,uint16,uint8,bytes,uint256[8],bool,(uint256,bool,bytes)[],bytes)[])
handler: handleSubmitBlocksV2
- function: submitBlocks((uint8,uint16,uint8,bytes,uint256[8],bool,bytes,bytes)[])
handler: handleSubmitBlocksV3
# - BlockSubmitted(indexed uint256,bytes32,bytes32)
# - DepositRequested(address,address,address,uint16,uint96)
# - ExchangeCloned(address,address,bytes32)
# - ForcedWithdrawalRequested(address,address,uint32)
# - OwnershipTransferred(indexed address,indexed address)
# - ProtocolFeesUpdated(uint8,uint8,uint8,uint8)
# - Shutdown(uint256)
# - TokenRegistered(address,uint16)
# - TransactionApproved(address,bytes32)
# - WithdrawalCompleted(uint8,address,address,address,uint256)
# - WithdrawalFailed(uint8,address,address,address,uint256)
# - WithdrawalModeActivated(uint256)