Skip to content

clients/js: Make NETWORKS compatible with wallet_addEthereumChain #555

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

matevz
Copy link
Member

@matevz matevz commented Mar 31, 2025

We have the "Add Sapphire network to Metamask" in the growing number of places (docs, faucet, all the dApps). Since most of those apps explicitly or implicitly import @oasisprotocol/sapphire-paratime, let's unify the network details in a single place.

For now, I made it compatible with https://docs.metamask.io/wallet/reference/json-rpc-methods/wallet_addethereumchain/ so one can directly use it in the UI.

But there seems to be some other competing formats:

@matevz matevz added client javascript Pull requests that update JavaScript code labels Mar 31, 2025
Copy link

netlify bot commented Mar 31, 2025

Deploy Preview for oasisprotocol-sapphire-paratime canceled.

Name Link
🔨 Latest commit 1ff6dba
🔍 Latest deploy log https://app.netlify.com/sites/oasisprotocol-sapphire-paratime/deploys/67eaa81f2a8f5b0008f7bc4b

@matevz matevz added the blocked Pull requests that are blocked by another issue label Apr 8, 2025
@matevz
Copy link
Member Author

matevz commented Apr 8, 2025

This PR needs decision on official icons for Sapphire Mainnet/Testnet. (also, do we separate between Emerald/Sapphire?)

Related MetaMask/metamask-extension#31588

@matevz matevz self-assigned this Apr 8, 2025
@lukaw3d
Copy link
Member

lukaw3d commented Apr 9, 2025

I would unblock this by copying icon 6 times to assets.oasis.io. When decision comes, update it there 🤷

@matevz matevz force-pushed the matevz/features/eth-compatible-networks branch from 1ff6dba to 9fc40e2 Compare May 20, 2025 09:36
Copy link

netlify bot commented May 20, 2025

Deploy Preview for oasisprotocol-sapphire-paratime canceled.

Name Link
🔨 Latest commit 2d460ec
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-sapphire-paratime/deploys/682da26c02abd500087084c0

@matevz matevz force-pushed the matevz/features/eth-compatible-networks branch from 9fc40e2 to 2d460ec Compare May 21, 2025 09:52
@matevz matevz removed the blocked Pull requests that are blocked by another issue label May 21, 2025
@matevz matevz merged commit a150088 into main May 21, 2025
14 of 15 checks passed
@matevz matevz deleted the matevz/features/eth-compatible-networks branch May 21, 2025 12:02
github-actions bot added a commit that referenced this pull request May 21, 2025
…tevz/features/eth-compatible-networks

clients/js: Make NETWORKS compatible with wallet_addEthereumChain a150088
github-actions bot added a commit that referenced this pull request May 21, 2025
…atevz/features/eth-compatible-networks

clients/js: Make NETWORKS compatible with wallet_addEthereumChain a150088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client javascript Pull requests that update JavaScript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants