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: ens actions #66

Merged
merged 8 commits into from
Feb 11, 2023
Merged

feat: ens actions #66

merged 8 commits into from
Feb 11, 2023

Conversation

tmm
Copy link
Member

@tmm tmm commented Feb 9, 2023

Adds ENS actions

  • getEnsName
  • getEnsAddress

@changeset-bot
Copy link

changeset-bot bot commented Feb 9, 2023

🦋 Changeset detected

Latest commit: c210c87

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

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 Feb 9, 2023

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

Name Status Preview Comments Updated
viem-benchmark ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 11, 2023 at 6:59AM (UTC)
viem-playground ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 11, 2023 at 6:59AM (UTC)
viem-site ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 11, 2023 at 6:59AM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

Size Change: +1.73 kB (+5%) 🔍

Total Size: 36.6 kB

Filename Size Change
dist/chunk-4Q7TPAI2.js 0 B -1.59 kB (removed) 🏆
dist/chunk-74P6TP6B.js 0 B -5.52 kB (removed) 🏆
dist/chunk-QD74J7OW.js 0 B -19.9 kB (removed) 🏆
dist/contract.js 427 B -1 B (0%)
dist/ens.js 1.79 kB +1.26 kB (+239%) 🆘
dist/index.js 2.51 kB -1 B (0%)
dist/public.js 465 B -1 B (0%)
dist/test.js 1.37 kB -4 B (0%)
dist/wallet.js 293 B -2 B (-1%)
dist/chunk-QPPA67TD.js 20.3 kB +20.3 kB (new file) 🆕
dist/chunk-UOTWIWSE.js 1.63 kB +1.63 kB (new file) 🆕
dist/chunk-Y6DUARPI.js 5.56 kB +5.56 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size
dist/chains.js 1.3 kB
dist/utils/index.js 856 B
dist/window.js 67 B

compressed-size-action

src/actions/ens/getEnsAddress.ts Outdated Show resolved Hide resolved
test('name without address', async () => {
await expect(
getEnsAddress(publicClient, {
name: 'unregistered-name.eth',
Copy link
Member

Choose a reason for hiding this comment

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

Should we throw for non-existent names?

src/types/utils.ts Outdated Show resolved Hide resolved
src/actions/ens/getEnsAddress.ts Outdated Show resolved Hide resolved
src/utils/ens/packetToBuffer.ts Outdated Show resolved Hide resolved
Comment on lines +98 to +100
"isomorphic-unfetch": "^4.0.2",
"isomorphic-ws": "^5.0.0",
"ws": "^8.12.0"
Copy link
Member Author

Choose a reason for hiding this comment

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

@jxom what are these for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants