Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

realm: r/sys/networks #3832

Open
leohhhn opened this issue Feb 26, 2025 · 0 comments
Open

realm: r/sys/networks #3832

leohhhn opened this issue Feb 26, 2025 · 0 comments

Comments

@leohhhn
Copy link
Contributor

leohhhn commented Feb 26, 2025

Description

Superseedes #815

We should create a system realm which would hold official information about chains. This realm will be GovDAO managed, which will allow users and services to get official information about testnets, such as the chainID, chain domain, import domain, etc.

An example usage of this realm could be the following:

r/sys/networks.ByChainID("test5") -> Network{ChainID: "test5", ImportDomain: "test5.gno.land"}
r/sys/networks.ByImportDomain("test5.gno.land")  -> Network{ChainID: "test5", ImportDomain: "test5.gno.land"} 

Later, we could also pair it with another realm, r/sys/nodes, which would be a permissionless realm with rules to which entities could add information about nodes they're running, such as the RPC endpoint, gnoweb endpoints, etc.

Clients such as gnokey could then query this realm to get available endpoints to send transactions to, without having to set the rpc & chainid manually.

cc @moul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

1 participant