Skip to content

avasnap/circlejerk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avalanche Swap Event Exporter

Export and analyze swap events from an Avalanche C-Chain smart contract.

Quick Start with Docker

  1. Clone or download this repository
  2. Run with Docker Compose:
docker-compose up --build

The CSV file will be saved to the output/ directory.

Manual Docker Build

# Build the container
docker build -t swap-exporter .

# Run the container
docker run -v $(pwd)/output:/app/output swap-exporter

Local Python Installation

  1. Install dependencies:
pip install -r requirements.txt
  1. Run the exporter:
python swap_exporter.py

Output

The script generates all_swap_events.csv with the following columns:

  • block_number: Block number where the swap occurred
  • transaction_hash: Transaction hash
  • log_index: Log index within the transaction
  • sender: Address that initiated the swap
  • amount0_in: Input amount
  • amount0_out: Output amount
  • token_in: Input token address
  • to: Recipient address
  • stable: Whether this is a stable swap (boolean)

Contract Details

  • Contract: 0xCaD684775d7879E63f5d319dAcC8086EeCC01B01
  • Network: Avalanche C-Chain
  • Deployment Block: 64929070
  • Event Topic: 0xe7857fba7d66e2e29213fda7a0394efbaa80d435dfc7b4c1f147d78c2f9caa62

Analysis

The exporter tracks events with amount0_in = 200000000000 and reports statistics on completion.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors