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 custom chains for WebGL builds not supported by AppKit #45

Open
KingZ-Develop opened this issue Jan 10, 2025 · 5 comments
Open

Add custom chains for WebGL builds not supported by AppKit #45

KingZ-Develop opened this issue Jan 10, 2025 · 5 comments
Labels
feature-request New feature or request

Comments

@KingZ-Develop
Copy link

Hello.

I am frustrated while deploying WebGL build after finishing testing in Unity editor.

I found out that Custom chain is not added if it is not in the list of chains managed by AppKit.

Since Web3 game is mainly distributed as WebGL build, chains are continuously being added.

Is there any plan to update so that Custom Chain can be freely added to WebGL as well as Android or iOS?

Even if you look at VIEM project, the number of supported chains continues to increase.

I think managing these chains in AppKit reduces SDK usability.

@skibitsky skibitsky added the feature-request New feature or request label Jan 10, 2025
@skibitsky
Copy link
Member

Hey!

Viem is a popular library, so having your chain config in Viem exposes it to many other projects, not only our AppKit. Using chain configs from Viem reduces the possibility of misconfiguration, but you're absolutely right that it shouldn't be the only way. I'll add support for custom on WebGl 🙌

@KingZ-Develop
Copy link
Author

Thank you for the promising update plan.

I have one more question.

I'm not a web expert so I may not know.

For WebGL, it seems that we get the chain information by importing [email protected] into the jslib file.

If we make a pull request to VIEM to add the chain, it will be added.
Will it be available in appkit as soon as VIEM is released?

If not, I guess we will have to wait for the next update.

@arein
Copy link

arein commented Jan 13, 2025

@KingZ-Develop curious - what are you building?

@KingZ-Develop
Copy link
Author

KingZ-Develop commented Jan 13, 2025

@arein just ready to build a Web3 game.

However, we preparing to collaborate with a chain that hasn't been released yet.

We just need a cutom chain for testing and launching.

previously working with the MetaMask SDK, but appkit is much better, so I'm thinking of changing SDKs.

@skibitsky
Copy link
Member

If we make a pull request to VIEM to add the chain, it will be added.
Will it be available in appkit as soon as VIEM is released?

Yes, we need to wait for viem and appkit cdn release before unity package can be updated with the new chain.

But don't worry! I'll ship support for custom chains soon 🚀

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

No branches or pull requests

3 participants