Git Product home page Git Product logo

colorfulnotion / substrate-etl Goto Github PK

View Code? Open in Web Editor NEW
33.0 7.0 7.0 88.28 MB

Substrate ETL represents Polkadot + Kusama dataset in Google BigQuery. All finalized data is published in a public dataset in BigQuery daily and Dune on an hourly basis.

Home Page: https://colorfulnotion.com

Shell 2.74% JavaScript 97.26%
kusama kusama-network polkadot polkadot-blockchain polkadot-js polkadot-js-api polkadot-network polkaholic substrate substrate-etl

substrate-etl's People

Contributors

flipchan avatar jonathanpdunne avatar mkchungs avatar sourabhniyogi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

substrate-etl's Issues

Rethinking the Definition of "Active Accounts"

In the current Substrate documentation, the term "Active Accounts" is defined as:

* _Active Accounts_ (Substrate): Accounts that have signed an extrinsic on a Substrate chain

While this definition is generally accurate, it has the unintended consequence of excluding accounts associated with unsigned extrinsics (ie all EVM transactions). This exclusion is significant because it may create an unfair distinction between parachains that have EVM and those that do not.

My suggestion is to follow same approach as Subscan, and to include unsigned extrinsics into this definition.

`xcmtransfers` table not found in BigQuery anymore

Hi, it seems that the xcmtransfers table, for both crypto_polygon and crypto_kusama, doesn't exist anymore on BigQuery. Was this table moved elsewhere or deprecated?
I still see references to it in the READMEs so not sure why I can't find it. Here's a reference query and screenshot

SELECT * FROM `bigquery-public-data.crypto_polkadot.xcmtransfers` LIMIT 10;
image

increase socket lifetime in curl

For people with a bit slower connections, can we increase max-connection and timeout that curl use?

./generateNetworksSummary 
Error: Command failed: curl --silent -H "Content-Type: application/json" --max-time 10 --connect-timeout 5 https://cdn.polkaholic.io/substrate-etl/networks.json

    at ChildProcess.exithandler (node:child_process:398:12)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1090:16)
    at Socket.<anonymous> (node:internal/child_process:449:11)
    at Socket.emit (node:events:527:28)
    at Pipe.<anonymous> (node:net:709:12) {
  code: 28,
  killed: false,
  signal: null,
  cmd: 'curl --silent -H "Content-Type: application/json" --max-time 10 --connect-timeout 5 https://cdn.polkaholic.io/substrate-etl/networks.json',
  stdout: '',
  stderr: ''
}
ERROR Error: Command failed: curl --silent -H "Content-Type: application/json" --max-time 10 --connect-timeout 5 https://cdn.polkaholic.io/substrate-etl/polkaholic.json

    at ChildProcess.exithandler (node:child_process:398:12)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1090:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
  code: 28,
  killed: false,
  signal: null,
  cmd: 'curl --silent -H "Content-Type: application/json" --max-time 10 --connect-timeout 5 https://cdn.polkaholic.io/substrate-etl/polkaholic.json',
  stdout: '',
  stderr: ''
}

Increase curl:

./generateNetworksSummary 
generated SUMMARY.md
generated polkadot/README.md
generated kusama/README.md
writing polkadot/0-polkadot/README.md
BROKEN CHAIN [ '2023-05-29' ]
writing kusama/0-kusama/README.md
writing polkadot/1000-statemint/README.md

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.