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

feat: Make EVM wallet connector #10354

Merged
merged 46 commits into from
Jun 6, 2024
Merged

Conversation

hassnian
Copy link
Contributor

@hassnian hassnian commented May 27, 2024

PR Type

  • Bugfix
  • Feature
  • Refactoring

Context

❗️❗️ Needs WALLET_CONNECT_PROJECT_ID env

Needs QA check

  • @kodadot/qa-guild please review

Needs Design check

Did your issue had any of the "$" label on it?

  • Fill up your DOT address: Payout

Screenshot 📸

  • My fix has changed something on UI;

CleanShot 2024-05-28 at 16 32 02

Copy link

netlify bot commented May 27, 2024

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit 9274610
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/6661bac62e4b690008f1098a
😎 Deploy Preview https://deploy-preview-10354--koda-canary.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

socket-security bot commented May 27, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher

🚮 Removed packages: npm/cross-env@7.0.3, npm/date-fns@2.30.0, npm/prettier@3.2.5, npm/prismjs@1.29.0, npm/typescript@5.4.5

View full report↗︎

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 5757 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 5757 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 5761 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 5812 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 5850 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 5850 lines exceeds the maximum allowed for the inline comments feature.

@Jarsen136
Copy link
Contributor

  • maintain wallet connected after merge context

adding in this in the developer console

localStorage.setItem('kodaauth', "1yHddTK4XihjK2DJE8g3oKV5d51TKPmnaCdYgPPTWqm6Ed4") 
localStorage.setItem('wallet', "talisman")
localStorage.setItem('walletname', "test")

and then refreshing the page should show the wallet as connected

keep this line could probably fixed the bug as it's related to old cache data.
image

@prury prury removed the S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked label Jun 4, 2024
@prury
Copy link
Member

prury commented Jun 4, 2024

will do another round after comments

@prury prury added S-changes-requested-🤞 PR is almost good to go, just some fine tunning and removed S-changes-requested-🤞 PR is almost good to go, just some fine tunning labels Jun 4, 2024
@prury
Copy link
Member

prury commented Jun 4, 2024

works nicely on mobile as well(installed metamask for mobile and created an ethereum account)

can be solved here:

  • the removal of the links on the sidebar(transfer, teleport, etc) only works when you first log in, if you navigate trough the page it comes back

  • if i log into evm account and change networks, sidebar gets empty

  • base and immutable dissapear from chain list after i log in (to reproduce, log with evm acc and click on drops)

could be followup:

  • i recommend deactivating buying/transfer/mint,nft creation on other chains when the user is logged with evm account

  • will on ramp work if i use it on a evm account?

@prury prury added the S-changes-requested-🤞 PR is almost good to go, just some fine tunning label Jun 4, 2024
Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 5847 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 5872 lines exceeds the maximum allowed for the inline comments feature.

@hassnian
Copy link
Contributor Author

hassnian commented Jun 5, 2024

keep this line could probably fixed the bug as it's related to old cache data

no need to keep that , the entire local storage gets cleared anyway after calling resetAuth()

@hassnian
Copy link
Contributor Author

hassnian commented Jun 5, 2024

works nicely on mobile as well(installed metamask for mobile and created an ethereum account)

can be solved here:

  • the removal of the links on the sidebar(transfer, teleport, etc) only works when you first log in, if you navigate trough the page it comes back

I can't reproduce that , can you share a video ?

  • if i log into evm account and change networks, sidebar gets empty

only balance and bottom links are hidden as part of #10380

if you have NFTs in that account you would see them

CleanShot 2024-06-05 at 09 58 09@2x

  • base and immutable dissapear from chain list after i log in (to reproduce, log with evm acc and click on drops)

agreed with @exezbcz that once a wallet is selected you can only see chains that have the same vm as the connected wallet

could be followup:

  • i recommend deactivating buying/transfer/mint,nft creation on other chains when the user is logged with evm account

iirc @exezbcz said atm we should just hide other chains

  • will on ramp work if i use it on a evm account?

not atm because it will try to buy DOT , just checked and transak does supports eth on base and imx

base
CleanShot 2024-06-05 at 10 25 26@2x

imx
CleanShot 2024-06-05 at 10 31 06@2x

@exezbcz
Copy link
Member

exezbcz commented Jun 5, 2024

not atm because it will try to buy DOT , just checked and transak does supports eth on base and imx

skip onramp for now

@exezbcz
Copy link
Member

exezbcz commented Jun 6, 2024

what is missing to merge?

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 5870 lines exceeds the maximum allowed for the inline comments feature.

@hassnian
Copy link
Contributor Author

hassnian commented Jun 6, 2024

what is missing to merge?

review comments are done, wating for @prury's approval context

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 5870 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 5884 lines exceeds the maximum allowed for the inline comments feature.

Copy link

codeclimate bot commented Jun 6, 2024

Code Climate has analyzed commit 9ba8184 and detected 0 issues on this pull request.

View more on Code Climate.

@vikiival vikiival changed the base branch from main to feat/evm/v0 June 6, 2024 13:08
Copy link

sonarcloud bot commented Jun 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@hassnian
Copy link
Contributor Author

hassnian commented Jun 6, 2024

@vikiival merge conflicts solved

@vikiival vikiival merged commit 578f43b into kodadot:feat/evm/v0 Jun 6, 2024
8 checks passed
@vikiival vikiival added this to the Milestone 2 milestone Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-changes-requested-🤞 PR is almost good to go, just some fine tunning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Profile does not load on Base Temp fix: Hide elements in sidebar for EVM Make EVM wallet connector
5 participants