forked from balancer/balancer-subgraph-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.dockerParity.yaml
138 lines (138 loc) · 3.99 KB
/
subgraph.dockerParity.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
specVersion: 0.0.2
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: dev
source:
address: '0xa0B05b20e511B1612E908dFCeE0E407E22B76028'
abi: Vault
startBlock: 1
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/vault.ts
entities:
- Balancer
- Pool
- PoolToken
- User
- UserInternalBalance
- PoolTokenizer
abis:
- name: Vault
file: ./abis/Vault.json
- name: ERC20
file: ./abis/ERC20.json
- name: WeightedPool
file: ./abis/WeightedPool.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: InternalBalanceChange(indexed address,indexed address,int256)
handler: handleInternalBalanceChange
- kind: ethereum/contract
name: WeightedPoolFactory
network: dev
source:
address: '0xb51CEadC0B36d694Dc14296Caa7BEB746fB5a6E0'
abi: WeightedPoolFactory
startBlock: 1
mapping:
kind: ethereum/events
apiVersion: 0.0.4
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
- kind: ethereum/contract
name: StablePoolFactory
network: dev
source:
address: '0x27E83a843394c3Fc59DdEa4ce14A53c55A9c91D7'
abi: StablePoolFactory
startBlock: 1
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/poolFactory.ts
entities:
- Balancer
- Pool
abis:
- name: StablePoolFactory
file: ./abis/StablePoolFactory.json
- name: StablePool
file: ./abis/StablePool.json
eventHandlers:
- event: PoolCreated(indexed address)
handler: handleNewStablePool
templates:
- kind: ethereum/contract
name: WeightedPool
network: dev
source:
abi: WeightedPool
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/poolController.ts
entities:
- Pool
- PoolShare
- Swap
- PoolToken
abis:
- name: WeightedPool
file: ./abis/WeightedPool.json
- name: BalancerPoolToken
file: ./abis/BalancerPoolToken.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- kind: ethereum/contract
name: StablePool
network: dev
source:
abi: StablePool
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/poolController.ts
entities:
- Pool
- PoolShare
- Swap
- PoolToken
abis:
- name: StablePool
file: ./abis/StablePool.json
- name: BalancerPoolToken
file: ./abis/BalancerPoolToken.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer