uniswap_v3.events

Documentation for eth_defi.uniswap_v3.events 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(log)

Process burn event.

decode_mint(log)

Process mint event.

decode_pool_created(log)

Process a pool created event.

decode_swap(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.