Skip to content

Commit a733b27

Browse files
committed
Revert "Removing pool events from subgraph.template.yaml"
This reverts commit 07ce939.
1 parent 493a6d2 commit a733b27

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

subgraph.template.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ dataSources:
4949
- name: ERC20
5050
file: ./abis/ERC20.json
5151
eventHandlers:
52+
- event: NewPool(indexed address,bool)
53+
handler: handleNewPool
5254
- event: TokenAdded(indexed address,indexed address)
5355
handler: handleTokenAdded
5456
- event: TokenRemoved(indexed address,indexed address)
@@ -114,6 +116,43 @@ templates:
114116
- event: ProviderFee(indexed address,indexed address,uint256,bytes,uint8,bytes32,bytes32,uint256)
115117
handler: handleProviderFee
116118

119+
- name: BPool
120+
kind: ethereum/contract
121+
network: __NETWORK__
122+
source:
123+
abi: BPool
124+
mapping:
125+
kind: ethereum/events
126+
apiVersion: 0.0.6
127+
language: wasm/assemblyscript
128+
file: ./src/mappings/pool.ts
129+
entities:
130+
- BPool
131+
abis:
132+
- name: BPool
133+
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/pools/balancer/BPool.sol/BPool.json
134+
- name: BToken
135+
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/pools/balancer/BToken.sol/BToken.json
136+
- name: BMath
137+
file: ./node_modules/@oceanprotocol/contracts/artifacts/contracts/pools/balancer/BMath.sol/BMath.json
138+
- name: ERC20
139+
file: ./abis/ERC20.json
140+
eventHandlers:
141+
- event: LOG_SWAP(indexed address,indexed address,indexed address,uint256,uint256,uint256,uint256,uint256,uint256)
142+
handler: handleSwap
143+
- event: LOG_JOIN(indexed address,indexed address,uint256,uint256)
144+
handler: handleJoin
145+
- event: LOG_EXIT(indexed address,indexed address,uint256,uint256)
146+
handler: handleExit
147+
- event: LOG_SETUP(indexed address,indexed address,uint256,uint256,indexed address,uint256,uint256)
148+
handler: handleSetup
149+
- event: Transfer(indexed address,indexed address,uint256)
150+
handler: handlerBptTransfer
151+
- event: PublishMarketFeeChanged(address,address,uint256)
152+
handler: handlePublishMarketFeeChanged
153+
- event: SwapFeeChanged(address,uint256)
154+
handler: handleSwapFeeChanged
155+
117156
- name: ERC721Template
118157
kind: ethereum/contract
119158
network: __NETWORK__

0 commit comments

Comments
 (0)