uniswap_v3.events

Documentation for eth_defi.uniswap_v3.events Python module.

Uniswap v3 event reader.

Efficiently read Uniswap v3 from a blockchain.

Currently we are tracking these events:

  • PoolCreated

  • Swap

  • Mint

  • Burn

Functions

decode_burn(web3, log)

Process burn event.

decode_mint(web3, log)

Process mint event.

decode_pool_created(web3, log)

Process a pool created event.

decode_swap(web3, log)

Process swap event.

fetch_events_to_csv(json_rpc_url, state[, ...])

Fetch all tracked Uniswap v3 events to CSV files for notebook analysis.

get_event_mapping(web3)

Returns tracked event types and mapping.

Classes

TokenCache

Manage cache of token data when doing PoolCreated look-up.