Giter Club home page Giter Club logo

multicallcache.py's Introduction

TODO

  • Add pythonic data types to database in addition to (perhaps instead of?) the raw bytes response
  • Cache.py and Call.py circular import issue
  • Make sure the same variables have the same names across methods
  • Move cache_path to environ variables
  • Make an example notebook demoing behavior
  • Make a package for pip
  • Move Database creating script from jupyter to a .py file
  • Add verbose doc strings to high level methods
  • Make all functions designed for internal use prefixed by _ consider double __ prefix for helper methods only to be used within the file.
  • Delete all commented out code
  • Make a short youtube video demoing why this is useful
  • Stretch goal: Add some basic sql querying functionality in example notebook
  • Maybe some kind of lock that prevents writing to the DB without going through official means.
  • Add testing for other chains
  • Add testing for blocks before multicall contracts where deployed. Currently calls fails before 12336033,
  • Minimize RPC calls for finalized blocks, maybe query finalized block at import time, and only update if asked to?
  • Add testing for caching behavior of multicall.Call.__call__. Make sure to delete cached data after testing.
  • in .__call__() first try to read from disk.

Done

  • Don't fail on >5000 calls within the same Multicall in the same block.
  • Make robust to RPC call timeouts and failures on the node provider's end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.