GithubHelp home page GithubHelp logo

Support Testnets about ss58-registry HOT 4 OPEN

paritytech avatar paritytech commented on June 28, 2024
Support Testnets

from ss58-registry.

Comments (4)

bkchr avatar bkchr commented on June 28, 2024 2

Okay, these testnets should not have made it into the json 🙈

You are right that they should not have their own prefix. I would more like to support them in the json, but they will use 42 as prefix. We could probably introduce some new optional testnet: true field for each entry.

We should probably not add every test net, but the main ones like Westend and Rococo and some of the community.

If we have the testnet identifier, you should be able to filter them better in the UI?

from ss58-registry.

Nick-1979 avatar Nick-1979 commented on June 28, 2024 2

Hello everyone,

Thank you for the comments, as far as I understand, adding Westend should not make any issues for Polkadot js extension, moreover, Westend is already available on Polkadot.js.org.

What I need is to have Westend in "Polkadot js Plus extension", Now, I manually add it to the json file, and every other developers to build the code from the source need to add it manually which is cumbersome.

I believe supporting major testnets like Westend, which obviously have no cost for users, let them to try/learn different features/concepts of Polkadot ecosystem (like bonding, unbonding, chill, redeem, nominate , existential deposit, transferAll, etc.) that we know is sometimes complicated. This will definitely help to grow the community.

Cheers,
Kami

from ss58-registry.

jacogr avatar jacogr commented on June 28, 2024 2

Yes. With a flag I will just adjust the filtering, so it is no cost at all. (And better since the existing filters can then be made explicit)

from ss58-registry.

jacogr avatar jacogr commented on June 28, 2024 1

I actually actively filter out all testnets, so they don't appear in any lists in the @polkadot/* packages. There are some testnets in the current registry, e.g.

{
"prefix": 21,
"network": "dock-testnet",
"displayName": "Dock Testnet",
"symbols": ["DCK"],
"decimals": [6],
"standardAccount": "*25519",
"website": "https://dock.io"
},

For those I keep a list and match them to filter out (also matching on text such as -testnet in addition to this list) -

https://github.com/polkadot-js/common/blob/6dc79a0b7c0002419d861235ba9b20d5d3a5eefa/packages/networks/src/defaults.ts#L40

The issue with these are that they just create a major PITA -

  • they get reset and their genesis changes
  • they get abandoned and/or replaced
  • the clog up any UI selections
  • ... they shouldn't really have ss58 prefixes

from ss58-registry.

Related Issues (11)

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.