How to index the DODOSwap event of a pool

Untitled

The abbreviation of the pool subtype is used to describe the pool subtype

https://docs.dodoex.io/english/toolbox/liquidity-pooling

DVM (DODO Vending Machine)

DPP (DODO Private Pool)

DSP (DODO Anchor Pool, Stable Pool)

CLASSICAL (DODO V1 Classic Pool)

1、DODO will use the factory contract to create four types of ore pools. See the document for details:

https://docs.dodoex.io/english/developers/contract-data/contract-event#create-pool-event

The handleNewDVM, handleNewDPP, handleNewDSP method logic when creating a DVM, DPP, DSP type pool:

https://github.com/DODOEX/dodoex_v2_subgraph/blob/master/src/mappings/dodoex/poolFactory.ts

The handleDODOBirth method logic when creating a CLASSICAL type pool:

https://github.com/DODOEX/dodoex_v2_subgraph/blob/master/src/mappings/dodoex/classicPoolFromV1.ts

2、DVM, DPP, DSP type pool

Index transactions through DODOSwap events handleDODOSwap