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

Add Stratos chain #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

BoThe1K
Copy link

@BoThe1K BoThe1K commented Feb 26, 2024

No description provided.

@schnetzlerjoe
Copy link
Collaborator

Hey! Thanks for this. We recommend using the following to add chains on the fly!

import { suggestChain } from "@cosmsnap/snapper";
let chain: Chain = {};
await suggestChain(chain);

or

const chainInfo: ChainInfo = {}
window.cosmos.experimentalSuggestChain(chainInfo)

Let us know if you need any help :)

@BoThe1K
Copy link
Author

BoThe1K commented Mar 20, 2024

@schnetzlerjoe thank you for reply. As I understood, this is when a dapp wantd to add a chain to cosmos snap, but we want to add just our chain to be in the list of you snap app (as we are not building dapp, we adding a network itself). Is it possible to add our chain just in the defined list which I provided in PR?

@schnetzlerjoe
Copy link
Collaborator

schnetzlerjoe commented Mar 20, 2024

@BoThe1K So the list you added your chain to is just the list for initialization. The many users who already downloaded the snap would not have access to your chain just by adding it there. Only the new downloaders. Plus it only would be added to that flow on next upgrade which is unknown.

This is why we suggest doing so the way above!

However, with Dynamic UI in the extension rolling out we will make it so you can one click install any chain in the chain registry. Maybe that will help!

@BoThe1K
Copy link
Author

BoThe1K commented Mar 20, 2024

@schnetzlerjoe so as I understand if a dapp using cosmos snap and wants to have our network, they should use the snippet above right?
Dynamic UI will it be a sort of https://chains.keplr.app/ ?

@schnetzlerjoe
Copy link
Collaborator

@BoThe1K yep exactly! To both your questions.

@BoThe1K
Copy link
Author

BoThe1K commented Mar 20, 2024

@schnetzlerjoe thanks. Could our chain also be a part of list initialization (even it will be for the new users only)? And later when Dynamic UI will be available, we also want to apply there.

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

Successfully merging this pull request may close these issues.

2 participants