Git Product home page Git Product logo

blockspider's People

Contributors

iquidus avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

9cat

blockspider's Issues

Add block formatting options

Add options to format blocks in various ways, eg:

Root level

{
  Type: uint (only eth based networks supported at present, type = 0)
}

More types to be added in future, e.g bitcoin, substrate, cosmos.

Per topic/stream

{
  Compact: bool (if true only include required fields [number, hash, parentHash])
  Transactions: bool (if true include transaction objects)
  Logs: bool (if true include log objects)
}

Ethereum Proof-of-Stake blocks

blockspider was initially built using the older ethereum PoW block format, (e.g Ubiq, Ethereum Classic), extend type to support the newer Ethereum PoS blocks.

Handle restart on reorg'd state head block

If the daemon is not running, and the block it last stored in local state is reorg'd, when restarting the daemon it fails to determine common ancestor and handle the reorg'd blocks/events correctly.

Note: this does not affect reorgs that occur while the daemon is running (it handles them correctly).

Consider storing entire block cache in local state.

Finish docs

Complete introduction, configuration & setup docs. Include examples of common configurations eg:

All blocks
All events

ERC20 transfers (all tokens)
ERC20 events (single token)
ERC721 transfers (all tokens)
ERC721 events (single collection)

golangci: S1000

Remove "S1000: should use for range instead of for { select {} }" from excludes and address lint errors.

Finish writing tests

Current test coverage is too small

go run build/ci.go test
>>> /usr/local/go/bin/go test -timeout=20m -tags=ckzg -p 1 ./...
ok  	github.com/iquidus/blockspider/cache	(cached)
?   	github.com/iquidus/blockspider/cmd/blockspiderd	[no test files]
?   	github.com/iquidus/blockspider/cmd/consumer	[no test files]
?   	github.com/iquidus/blockspider/cmd/reorgd	[no test files]
?   	github.com/iquidus/blockspider/common	[no test files]
?   	github.com/iquidus/blockspider/crawler	[no test files]
?   	github.com/iquidus/blockspider/internal/build	[no test files]
?   	github.com/iquidus/blockspider/kafka	[no test files]
?   	github.com/iquidus/blockspider/params	[no test files]
?   	github.com/iquidus/blockspider/rpc	[no test files]
?   	github.com/iquidus/blockspider/state	[no test files]
ok  	github.com/iquidus/blockspider/syncronizer	(cached)
?   	github.com/iquidus/blockspider/util	[no test files]

Finish writing tests. This will likely require some refactoring.

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.