Giter Club home page Giter Club logo

Comments (8)

zomglings avatar zomglings commented on August 24, 2024

Launch ready by: August 2, 2021

from api.

zomglings avatar zomglings commented on August 24, 2024

Ethereum blockchain crawl can use the rubric set by our ethereum-exploration repo.

Spire API must allow callers to specify created_at when they create an entry.

Spire issue: bugout-dev/spire#6

from api.

zomglings avatar zomglings commented on August 24, 2024

When a user creates a subscription for a new contract, the state of the subscription should be "populating". When we crawl all the data for that contract up to the current transaction block, we can set the state of the subscription to "active".

The frontend should distinguish between these states to manage user expectations.

from api.

zomglings avatar zomglings commented on August 24, 2024

Something we should think about for post-alpha: How should we handle contracts that are only part of inactive subscriptions?

Should we stop collecting information about them from mined transaction blocks?

Most likely we wouldn't collect information about them from transaction pool.

from api.

zomglings avatar zomglings commented on August 24, 2024

When we are crawling blockchain data, we will start at the current transaction block and work our way back to genesis block so that we can show live events to users.

from api.

zomglings avatar zomglings commented on August 24, 2024

Riskiest feature is smart contract context. We will need information about the smart contract on which operations are being executed in order to display the context correctly. There are a few different ways we can get the smart contract code:

  1. Crawl public smart contracts from GitHub
  2. Ask the user to paste the smart contract code in the frontend.

When Moonstream is more mature, we should allow all of these. For now, we will probably set up a crawl or at least crawl Open Zeppelin contracts. The context will have to be generated by the API, and the frontend will only handle display logic (React component).

It may take us some time to decide the right architecture for crawling the data and caching it/storing it. This may not make it into Alpha.

from api.

zomglings avatar zomglings commented on August 24, 2024

Crawling blockchain data:

We should probably store all transaction information inside a database so that we don't have to repeat crawls over and over again.

This will require some infrastructure work - we should set up a Postgres instance with a LOT of storage (~10TB?) but with cheap storage class - HDD should be okay.

from api.

zomglings avatar zomglings commented on August 24, 2024

Moonstream discord server is up. Invitation link

from api.

Related Issues (20)

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.