Code Monkey home page Code Monkey logo

scatterexplorers's People

Contributors

abourget avatar dfguo avatar eosauthority avatar nsjames avatar ramijames avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

scatterexplorers's Issues

[proposal] Add support for multiple chain

Hi! I have a proposal for more flexible data structure. Why an explorer can only explore one chain?๐Ÿง Of course not!๐Ÿคฉ This new data structure will make it possible to support as many as chains an explorer can. For example, url template of EOSPark could be something like this:

{
  "name":"EOS Park",
  "chains": [
    { // Main chain
      "chainId": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",
      "account": "https://eospark.com/MainNet/account/{x}",
      "transaction": "https://eospark.com/MainNet/tx/{x}",
      "block": "https://eospark.com/MainNet/block/{x}",
      "default": true                         // or chains[0] can be always default
    },
    { // Jungle chain
      "chainId": "038f4b0fc8ff18a4f0842a8f0564611f6e96e8535901dd45e43ac8691a1c4dca",
      "account": "https://jungle.eospark.com/MainNet/account/{x}",
      "transaction": "https://jungle.eospark.com/MainNet/tx/{x}",
      "block": "https://jungle.eospark.com/MainNet/block/{x}"
    },
    { // Kylin chain
      "chainId": "5fff1dae8dc8e2fc4d5b23b2c7665c97f9e9d8edf2b6485a86ba311c25639191",
      "account": "https://kylin.eospark.com/MainNet/account/{x}",
      "transaction": "https://kylin.eospark.com/MainNet/tx/{x}",
      "block": "https://kylin.eospark.com/MainNet/block/{x}"
    }
  ]
}

ChainId is better than name, for example jungle chain has been updated recently, their name is not change but their chainId is changed.

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.