-
Notifications
You must be signed in to change notification settings - Fork 394
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
added tailwind wallet #2960
base: stage
Are you sure you want to change the base?
added tailwind wallet #2960
Conversation
@baoskee is attempting to deploy a commit to the OsmoLabs Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe changes focus on introducing a new wallet, "tailwind-extension," to the web project's configuration and registry. This addition enhances the CosmosKitWalletList with the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 2
Configuration used: CodeRabbit UI
Files ignored due to path filters (3)
packages/web/package.json
is excluded by:!**/*.json
packages/web/public/wallets/tailwind.svg
is excluded by:!**/*.svg
yarn.lock
is excluded by:!**/*.lock
Files selected for processing (2)
- packages/web/config/generate-cosmos-kit-wallet-list.ts (2 hunks)
- packages/web/config/wallet-registry.ts (1 hunks)
Additional comments: 5
packages/web/config/generate-cosmos-kit-wallet-list.ts (1)
- 27-27: The addition of
tailwindExtensionInfo
to theCosmosKitWalletList
is correctly implemented and follows the established pattern.packages/web/config/wallet-registry.ts (4)
- 290-290: The
mobileDisabled
property is correctly set tofalse
, indicating that the wallet is enabled on mobile devices.- 292-292: The
windowPropertyName
is set to "tailwind". Ensure this matches the global window property exposed by the wallet extension for correct integration.- 293-296: The
lazyInstall
function is correctly implemented, following the pattern established for other wallets. It ensures the wallet is loaded only when needed.- 297-297: The
features
array is empty. Verify if this is intentional and whether the wallet supports any specific features that should be listed here.
{ | ||
...CosmosKitWalletList["tailwind-extension"], | ||
mobileDisabled: false, | ||
logo: "/wallets/tailwind.svg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip
Codebase Verification
The logo
property specifies a path to a wallet's logo that does not exist in the expected location. This indicates an issue with the file path or the file's presence in the repository.
Analysis chain
The logo
property correctly specifies the path to the wallet's logo. Ensure the logo file exists at the specified path and is correctly formatted.
Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Verify the existence of the tailwind wallet logo SVG file.
if [ -f "public/wallets/tailwind.svg" ]; then
echo "Tailwind wallet logo exists."
else
echo "Tailwind wallet logo file is missing."
fi
Length of output: 125
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Please update from stage and the build should be fixed |
updated! @jonator can we run the Vercel preview again? : ) |
We're seeing errors in console that the tailwind_injected script is trying to set the readonly keplr object in window. Could you guys provide some background as to why that is? |
@baoskee can you please share the invite codes one for me and other for @kamal-sutra |
Yes!
|
Hi @jonator, we override the keplr API for those wanting to pay gas in USDC and the app has not yet supported Tailwind. Existing wallets like Phantom do this for Ethereum and Bitcoin dapps when they moved off Solana, and Rabby does this with MetaMask object so that their users can use Rabby everywhere. Both wallets just want to provide users the best experience if they choose them and we are doing that here as well. That said, we can patch this in next wallet version for Osmosis.zone URL if you want to eliminate this behavior on your app. It would be a simple content script change in the extension code that removes this behavior for app.osmosis.zone. Please let me know! |
Hi @baoskee, yes we would very much appreciate turning off this functionality on Osmosis. The current status quo of metamask hijacking in EVM world is something we want to avoid in Cosmos! |
sounds good, can get wallet patch in by Monday-Tuesday next week 🫡 (it takes a few days for Chrome store to approve; and it will be an independent release from this PR). Thanks! |
@baoskee 1. when the page is refreshed, the wallet disconnects and when connect is clicked, it shows install wallet. But connects well after clicking the tailwind wallet. |
@baoskee wallet is installed and i login successfully but im still getting Tailwind is not Installed. Trade.on.Osmosis.Zone.22.mp4 |
Issue fixed in |
|
Thanks @CryptoAssassin1! This looks like @kamal-sutra's first issue; I will take a look and fix. Good catch. |
Thanks for all the clarifications. |
Looks like I tested without Keplr extension installed, so all these issues I was able to reproduce with Keplr extension also installed. Will test under this condition next time 🫡
For refreshing after connect issue:
Also for the const KEPLR_HOSTNAME_SKIPLIST = ["osmosis.zone", "app.osmosis.zone"]; So the extension still overrides on local and preview environments, but it won't override in production. Let me know what other domains you want to add to this list. |
fce333a
to
3335630
Compare
All issues addressed! Rebased stage branch and updated new lockfile with |
Hi guys @kamal-sutra @CryptoAssassin1 @jonator. Can I get an update for this? |
@baoskee can you update the branch to latest stage or prod. |
Keplr extension is disabled. Click connect wallet and select Keplr, it is still connecting keplr (which should not) |
@kamal-sutra you are testing on old perview deploy. |
I approved |
@sunnya97 build failed. |
What is the purpose of the change
This pull request adds TAILWIND wallet to Osmosis supported wallets.
Brief Changelog
@cosmos-kit/tailwind-extension
Testing and Verifying
This change has been tested locally by rebuilding the website and verified content and links are expected
Documentation and Release Note
This change adds TAILWIND wallet. See tailwind.zone for more info.
Extension link: https://chromewebstore.google.com/detail/tailwind-wallet/dpnfollacokcbkeiidhplhjpafkbfacj
Summary by CodeRabbit