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

Space id integration #1578

Merged
merged 3 commits into from
May 30, 2024
Merged

Space id integration #1578

merged 3 commits into from
May 30, 2024

Conversation

mishramonalisha76
Copy link
Contributor

@mishramonalisha76 mishramonalisha76 commented May 27, 2024

Pull Request Template

Ticket Number

Description

  • Problem/Feature: Enhanced the domain resolution process by using the space-id package. Now all domain supported by space-id can be resolved, including bnb , eth and unstoppable domains.

Type of Change

  • Bug fix
  • New feature
  • Code refactor
  • Documentation update
  • Other (please describe):

Checklist

  • Quick PR: Is this a quick PR? Can be approved before finishing a coffee.
    • Quick PR label added
  • Not Merge Ready: Is this PR dependent on some other PR/tasks and not ready to be merged right now.
    • DO NOT Merge PR label added

Frontend Guidelines

Build & Testing

  • No errors in the build terminal
  • Engineer has tested the changes on their local environment
  • Engineer has tested the changes on deploy preview

Screenshots/Video with Explanation

  • Before: Explain the previous behavior

  • After: What's changed now

Additional Context

Review & Approvals

  • Self-review completed
  • Code review by at least one other engineer
  • Documentation updates if applicable

Notes

Copy link

vercel bot commented May 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
push-dapp ❌ Failed (Inspect) May 27, 2024 11:47am

Copy link

All looks good.

@mishramonalisha76 mishramonalisha76 added the DO NOT MERGE If the PR/task is dependent on some other task add this label to the PR. label May 27, 2024
@mishramonalisha76 mishramonalisha76 self-assigned this May 27, 2024
@mishramonalisha76 mishramonalisha76 added the Quick PR A PR that can be approved before finishing a coffee label May 27, 2024
@mishramonalisha76 mishramonalisha76 linked an issue May 27, 2024 that may be closed by this pull request
Copy link

github-actions bot commented May 27, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-05-30 07:11 UTC

@rohitmalhotra1420
Copy link
Collaborator

@mishramonalisha76 reopened this pull request.

Copy link

All looks good.

@@ -44,6 +44,7 @@
"@testing-library/user-event": "^7.1.2",
"@uniswap/widgets": "^2.47.3",
"@unstoppabledomains/resolution": "8.5.0",
"@web3-name-sdk/core": "^0.1.18",
"@web3-onboard/coinbase": "^2.2.5",
Copy link
Collaborator

Choose a reason for hiding this comment

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

@mishramonalisha76 the ticket description says resolved the domain name using space id package, but where is the space id package used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"@web3-name-sdk/core" this the space id package

}
});
return ensName;
const getDomainName = async (checksumWallet: string, setWeb3NameList: any) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we have this functionality inside the sdk library then why not use it from there and avoid installing the space id library here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure why its not getting installed from the sdk itself, even though its mentioned in dependencies in uiweb package

Copy link
Collaborator

@rohitmalhotra1420 rohitmalhotra1420 left a comment

Choose a reason for hiding this comment

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

@mishramonalisha76 this needs a second approval from @corlard3y .

Copy link

All looks good.

corlard3y
corlard3y previously approved these changes May 29, 2024
@mishramonalisha76 mishramonalisha76 dismissed corlard3y’s stale review May 30, 2024 07:01

The merge-base changed after approval.

Copy link

The code provided has some issues:

  1. In package.json, the script start:sdk:local is missing a reference to the start command at the end. It should be "start:sdk:local": "node dev-mode-link-local-sdk.mjs localsdk cleanup start".

  2. In package.json, the script start:sdk:local:forcecleanup is missing a reference to the start command at the end. It should be "start:sdk:local:forcecleanup": "node dev-mode-link-local-sdk.mjs localsdk forcecleanup start".

  3. In package.json, the script start:sdk:local:nocleanup is missing a reference to the start command at the end. It should be "start:sdk:local:nocleanup": "node dev-mode-link-local-sdk.mjs localsdk nocleanup start".

  4. In src/hooks/useResolveWeb3Name.ts, there is a missing catch block after the then block in the getDomainName function to handle errors appropriately.

  5. In src/hooks/useResolveWeb3Name.ts, there is a missing closing curly brace } for the getUnstoppableName function.

  6. In src/hooks/useResolveWeb3Name.ts, the useEffect hook is missing some code due to snippets being replaced with ellipses (...). Make sure the missing parts are correctly implemented.

Other than these issues, the code looks good.

Please correct the mentioned issues above.

If you have any other specific concerns or questions, feel free to ask.

@rohitmalhotra1420 rohitmalhotra1420 merged commit a79a1eb into main May 30, 2024
2 checks passed
@rohitmalhotra1420 rohitmalhotra1420 removed the DO NOT MERGE If the PR/task is dependent on some other task add this label to the PR. label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Quick PR A PR that can be approved before finishing a coffee
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUMP SDK IN DAPP] - Space-id integration in sdk
3 participants