-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.arbitrum.yaml
102 lines (102 loc) · 3.09 KB
/
subgraph.arbitrum.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
specVersion: 0.0.4
description: Balancer is a non-custodial portfolio manager, liquidity provider, and price sensor.
repository: https://github.com/balancer-labs/balancer-subgraph-v2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Vault
network: arbitrum-one
source:
address: "0x82A8d8B59a13eD9df879C1f450a379182661AB59"
abi: Vault
startBlock: 96711104
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/vault.ts
entities:
- Balancer
- Pool
- PoolToken
- TokenPair
- User
- UserInternalBalance
- Token
- TokenSnapshot
- TradePair
- TradePairSnapshot
- BalancerSnapshot
abis:
- name: Vault
file: ./abis/Vault.json
- name: ERC20
file: ./abis/ERC20.json
- name: WeightedPool
file: ./abis/WeightedPool.json
- name: StablePool
file: ./abis/StablePool.json
eventHandlers:
- event: Swap(indexed bytes32,indexed address,indexed address,uint256,uint256)
handler: handleSwapEvent
- event: PoolBalanceChanged(indexed bytes32,indexed address,address[],int256[],uint256[])
handler: handleBalanceChange
- event: PoolBalanceManaged(indexed bytes32,indexed address,indexed address,int256,int256)
handler: handleBalanceManage
- event: InternalBalanceChanged(indexed address,indexed address,int256)
handler: handleInternalBalanceChange
- kind: ethereum/contract
name: WeightedPoolFactory
network: arbitrum-one
source:
address: "0x9B02c25aE23086A99F6A3C4f3b551f63482e2Cc7"
abi: WeightedPoolFactory
startBlock: 96711104
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/poolFactory.ts
entities:
- Balancer
- Pool
abis:
- name: Vault
file: ./abis/Vault.json
- name: ERC20
file: ./abis/ERC20.json
- name: WeightedPoolFactory
file: ./abis/WeightedPoolFactory.json
- name: WeightedPool
file: ./abis/WeightedPool.json
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleNewWeightedPool
templates:
- kind: ethereum/contract
name: WeightedPool
network: arbitrum-one
source:
abi: WeightedPool
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/poolController.ts
entities:
- Pool
- PoolShare
- Swap
- PoolToken
- TokenPair
abis:
- name: WeightedPool
file: ./abis/WeightedPool.json
- name: BalancerPoolToken
file: ./abis/BalancerPoolToken.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: SwapFeePercentageChanged(uint256)
handler: handleSwapFeePercentageChange