Skip to content

Simple logger for swap events using uniswap protocol on the Ethereum Blockchain

Notifications You must be signed in to change notification settings

mohamed-said/uniswap-pool-swap-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uniswap Pool Swap Logger

Experimental project 🤓

Simple logger for the swap events between crypto currencies using the open source uniswap protocol on the Ethereum Blockchain.

Currently it only supports the DAI/USDC pool.

I will be experimenting and adding more pool to learn more about Blockchain development.

Requirements

  • Local Rust setup
  • Infura endpoint

Workflow

  • Create a web3 object using your Infura endpoint
  • Create a contract object using the provided contract address
  • Create a SwapLogger object, and inject the web3 and the contract objects into it.
  • call the async function display_logs, which subscribes to the latest updates on the Ethereum block chain.

Usage

  • Run cargo run to run the app

Test

  • Run cargo test to run the test cases

About

Simple logger for swap events using uniswap protocol on the Ethereum Blockchain

Resources

Stars

Watchers

Forks

Languages