Skip to content

Conversation

@kien-ngo
Copy link
Contributor

@kien-ngo kien-ngo commented Oct 3, 2024

PR-Codex overview

This PR adds support for resolving names and addresses using Unstoppable Domains in the thirdweb SDK. It introduces new functions for name resolution and address retrieval, along with necessary constants and tests.

Detailed summary

  • Added UD_POLYGON_MAINNET constant.
  • Introduced reverseNameOf, getMany, namehash functions for name/address resolution.
  • Created resolveName and resolveAddress functions with options for custom resolvers.
  • Added tests for resolveName and resolveAddress.
  • Exported relevant types and functions from unstoppable-domains.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@changeset-bot
Copy link

changeset-bot bot commented Oct 3, 2024

🦋 Changeset detected

Latest commit: a453d96

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 3, 2024

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

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 10:00am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 10:00am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 10:00am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 10:00am

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 3, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 41.95 KB (0%) 840 ms (0%) 2.1 s (-12.95% 🔽) 2.9 s
thirdweb (cjs) 101.63 KB (0%) 2.1 s (0%) 3.9 s (+12.15% 🔺) 5.9 s
thirdweb (minimal + tree-shaking) 4.82 KB (0%) 97 ms (0%) 206 ms (-26.26% 🔽) 302 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 93 ms (+51.99% 🔺) 103 ms
thirdweb/react (minimal + tree-shaking) 17.23 KB (0%) 345 ms (0%) 392 ms (-39.96% 🔽) 736 ms

@codecov
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 15 lines in your changes missing coverage. Please review.

Project coverage is 47.61%. Comparing base (bfe9753) to head (a453d96).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ensions/unstoppable-domains/read/resolveAddress.ts 79.54% 9 Missing ⚠️
...extensions/unstoppable-domains/read/resolveName.ts 80.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4905      +/-   ##
==========================================
+ Coverage   47.57%   47.61%   +0.04%     
==========================================
  Files        1054     1057       +3     
  Lines       57146    57221      +75     
  Branches     3918     3924       +6     
==========================================
+ Hits        27186    27246      +60     
- Misses      29271    29286      +15     
  Partials      689      689              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from bfe9753
packages 43.37% <80.00%> (+0.05%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...rdweb/src/extensions/unstoppable-domains/consts.ts 100.00% <100.00%> (ø)
...extensions/unstoppable-domains/read/resolveName.ts 80.00% <80.00%> (ø)
...ensions/unstoppable-domains/read/resolveAddress.ts 79.54% <79.54%> (ø)

Copy link
Member

@joaquim-verges joaquim-verges left a comment

Choose a reason for hiding this comment

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

cool stuff @kien-ngo !!

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 3, 2024

Merge activity

<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on adding support for Unstoppable Domains within the `thirdweb` SDK, including new resolvers for names and addresses, and enhancing functionality through tests and constants.

### Detailed summary
- Added `UD_POLYGON_MAINNET` constant.
- Introduced functions: `resolveName`, `resolveAddress`, `reverseNameOf`, `getMany`, and `namehash`.
- Implemented tests for `resolveName` and `resolveAddress`.
- Added exports for new types and functions in `unstoppable-domains.ts`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants