Giter VIP home page Giter VIP logo

Comments (8)

ligi avatar ligi commented on September 13, 2024 2

can you link me to the official documentation?

https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md

from ethereum-lists.

409H avatar 409H commented on September 13, 2024

Hi Ligi, I'm unaware of the chain ids - is this a de-facto numbering system (ie: 4 is always rinkeby) & if so, can you link me to the official documentation?

Also, the extra mapping would be done on the consumer sides, not ethereum-lists, so we'd need to discuss more on management (ie: remembering the chain_id values for each testnet) when accepting PRs and such.

from ethereum-lists.

ligi avatar ligi commented on September 13, 2024

To be honest I struggle to find the "official documentation" on chainId currently - but this is the case - each chain has a Id ..
You see it e.g. mentioned in ethereum/EIPs#155
We can also do the mapping in the scripts - but the mapping should IMHO not be done on the consumers

from ethereum-lists.

409H avatar 409H commented on September 13, 2024

To be honest I struggle to find the "official documentation" on chainId currently - but this is the case - each chain has a Id

I understand - all good here 👍 Would be great to find any official documentation (EIP, code comments, whatever) regarding this so we can reference it in a CONTRIBUTING.md document sometime.

We can also do the mapping in the scripts

My understanding for this repo is for the .json files to be consumed by an application, and it's just a repo to hold data dumps. Which scripts are you referencing here to do the mapping?

from ethereum-lists.

ligi avatar ligi commented on September 13, 2024

This script which is currently checking validity:
https://github.com/MyEtherWallet/ethereum-lists/blob/master/src/main/kotlin/ethereum/Main.kt

and generates minimized versions of the json
could also do the mapping.

from ethereum-lists.

409H avatar 409H commented on September 13, 2024

Ah, okay, totally missed that.

I'm neutral to this change, but if we do it, we'd need to document the id mapping in CONTRIBUTING.md :)

from ethereum-lists.

tayvano avatar tayvano commented on September 13, 2024

I think this is a good plan. However, for my own sanity, can we somehow put the chain name at the end (which isn't used for validation)?

Eg tokens_1-rop or something.

The other thing is that there are chain IDs of 2 and maybe 3 numbers. So we should probably just do tokens_001 to be safe.

I can also check on how this is operating on v4.

from ethereum-lists.

ligi avatar ligi commented on September 13, 2024

perhaps it is better in the validation/minimizing step - ideally it is just the number - so you can directly load - without using a wildcard or use the mapping - just "tokens-${chainid}.json"
I will prepare for this a PR. PS: there is another one open: https://github.com/MyEtherWallet/ethereum-lists/pulls

from ethereum-lists.

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.