-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
87 lines (76 loc) · 3.92 KB
/
config.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
# yaml-language-server: $schema=./node_modules/envio/evm.schema.json
name: gmx-v2-indexer
description: This envio index the GMX v2 events
contracts:
- name: EventEmitter
abi_file_path: ./abis/EventEmitter.json
handler: ./src/mapping.ts
events:
- event: EventLog(address msgSender, string eventName, string indexed eventNameHash, (((string,address)[],(string,address[])[]),((string,uint256)[],(string,uint256[])[]),((string,int256)[],(string,int256[])[]),((string,bool)[],(string,bool[])[]),((string,bytes32)[],(string,bytes32[])[]),((string,bytes)[],(string,bytes[])[]),((string,string)[],(string,string[])[])) eventData)
- event: EventLog1(address msgSender, string eventName, string indexed eventNameHash, bytes32 indexed topic1, (((string,address)[],(string,address[])[]),((string,uint256)[],(string,uint256[])[]),((string,int256)[],(string,int256[])[]),((string,bool)[],(string,bool[])[]),((string,bytes32)[],(string,bytes32[])[]),((string,bytes)[],(string,bytes[])[]),((string,string)[],(string,string[])[])) eventData)
- event: EventLog2(address msgSender, string eventName, string indexed eventNameHash, bytes32 indexed topic1, bytes32 indexed topic2, (((string,address)[],(string,address[])[]),((string,uint256)[],(string,uint256[])[]),((string,int256)[],(string,int256[])[]),((string,bool)[],(string,bool[])[]),((string,bytes32)[],(string,bytes32[])[]),((string,bytes)[],(string,bytes[])[]),((string,string)[],(string,string[])[])) eventData)
- name: Vault
abi_file_path: ./abis/Vault.json
handler: ./src/mapping.ts
events:
- event: SellUSDG(address account, address token, uint256 usdgAmount, uint256 tokenAmount, uint256 feeBasisPoints)
- name: GlpManager
abi_file_path: ./abis/GlpManager.json
handler: ./src/mapping.ts
events:
- event: RemoveLiquidity(address account, address token, uint256 glpAmount, uint256 aumInUsdg, uint256 glpSupply, uint256 usdgAmount, uint256 amountOut)
- name: BatchSender
abi_file_path: ./abis/BatchSender.json
handler: ./src/mapping.ts
events:
- event: BatchSend(uint256 indexed typeId, address indexed token, address[] accounts, uint256[] amounts)
- name: BatchSenderNew
abi_file_path: ./abis/BatchSender.json
handler: ./src/mapping.ts
events:
- event: BatchSend(uint256 indexed typeId, address indexed token, address[] accounts, uint256[] amounts)
- name: MarketTokenTemplate
abi_file_path: ./abis/MarketToken.json
handler: ./src/mapping.ts
events:
- event: Transfer(address indexed from, address indexed to, uint256 value)
- name: GlvTokenTemplate
abi_file_path: ./abis/GlvToken.json
handler: ./src/mapping.ts
events:
- event: Transfer(address indexed from, address indexed to, uint256 value)
networks:
- id: 42161 # Arbitrum One
start_block: 107737756
contracts:
- name: EventEmitter
address: 0xC8ee91A54287DB53897056e12D9819156D3822Fb
- name: Vault
address: 0x489ee077994B6658eAfA855C308275EAd8097C4A
- name: GlpManager
address: 0x3963FfC9dff443c2A94f21b129D429891E32ec18
- name: BatchSender
address: 0x1070f775e8eb466154BBa8FA0076C4Adc7FE17e8
- name: BatchSenderNew
address: 0x5384E6cAd96B2877B5B3337A277577053BD1941D
- name: MarketTokenTemplate
- name: GlvTokenTemplate
- id: 43114 # Avalanche
start_block: 32162455
contracts:
- name: EventEmitter
address: 0xDb17B211c34240B014ab6d61d4A31FA0C0e20c26
- name: BatchSender
address: 0xF0f929162751DD723fBa5b86A9B3C88Dc1D4957b
- name: BatchSenderNew
address: 0x0BEa5D3081921A08d73f150126f99cda0eb29C0e
- name: MarketTokenTemplate
- name: GlvTokenTemplate
rollback_on_reorg: false
unordered_multichain_mode: true # since there is no cross over between entities across different chains this setting is safe
field_selection:
transaction_fields:
- "hash"
- "from"
- "to"
- "transactionIndex"