blockchain-science-py icon indicating copy to clipboard operation
blockchain-science-py copied to clipboard

👾 𝗺𝘆 𝗼𝗻-𝗰𝗵𝗮𝗶𝗻 𝗿𝗲𝘀𝗲𝗮𝗿𝗰𝗵, 𝗻𝗼𝘁𝗲𝗯𝗼𝗼𝗸𝘀, 𝗾𝘂𝗮𝗻𝘁 𝗯𝗼𝘁𝘀 - 𝗽𝘆𝘁𝗵𝗼𝗻 𝗲𝗱𝗶𝘁𝗶𝗼𝗻

⛓📊🐍 blockchain science - python edition




my cryptography experiments


  • fixed-graph-py, generate zero-knowledge proof symbolic graphs:
    • in zkps we want to prove a statement where f evaluated at x_i results in (y_1,...,y_n), i.e., f(x_1, ..., x_n) = (y_1, ..., y_n). this can be expressed as a fixed computational graph, where relationships between nodes are related by operations such as multiplication or addition. in addition, some nodes can be related with an equality relationship on which the node's value is computed outside of the graph and constrained by a hint.

  • magick-py, a simple private information retrieval CLI tool:
    • learn and run experiments to understand zero-knowledge private information retrieval through step-by-step mathematical calculations.


my trading bots and strategies


  • cointegration trading bots and CLI:
    • run highly customized trading bots with statistical algorithmic strategies such as cointegration. Include an option for docker deployment.

  • quantitative defi study:
    • a comprehensive study on data sources for quantitative defi, including yfinance, panda_datareader, alpha_advantage, CoinAPI, and quandl.
    • the data from every source is prepared, and then the mean, skew, kurtosis, percentage change, and other statistics are calculated.
    • plots for prices, return, and candles for each data set.


my jupyter notebooks


  • extracting on-chain data from a list of ethereum public addresses:
    • given a list of public addresses, extract the current token balance, and parse the transaction history for token transfers/swaps.

  • transfer events analysis through ethereum RPC API's eth_getLogs:
    • leverage infura's rpc url to retrieve and parse transfer events logs for a given erc20 token, calculating balances and token holders.

  • leveraging uniswap subgraph to extract token pair information:
    • utilize the graph explorer to access uniswap subgraph and analyze the UNI and WETH token pair data.

  • DEXs analysis: PMM dodo, AMM uniswap V2, AMM curve stableswap:
    • maths && plots go-to for decentralized exchanges analysis.

  • retrieving DAO tokens and pools data:
    • utilize the graph explorer to analyze the data related to a list of DAO tokens.

  • messari API for token market data:
    • utilize messari API to retrieve market data for a list of tokens.

  • leveraging moralis API to extract on-chain transactions, tokens, events, defi:
    • moralis API is a nice wrapper for several on-chain calls that would instead use several other native APIs and tools.


external resources