Skip to content

ensdomains/ethers-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ethers-patch

Monkeypatch for ENSIP-19 (Multichain Primary) and ENSIP-23 (UniversalResolver) support in ethers.js.

Features

  • resolveName() supports optional coinType
    • use "old" for old implementation
  • lookupAddress() supports optional coinType
    • use "old" for old implementation
  • ENSIP-10 implementation uses UniversalResolver.requireResolver()
  • {Ens}Resolver.supportsWildcard() is noop
  • v5
    • use getResolverOld() for old implementation
    • updated normalization to @adraffy/ens-normalize
    • namehash() is patched
    • dnsEncode() is patched and uses 255-byte limit
    • ensNormalize() is exposed
  • v6
    • use fromNameOld() for old implementation

Roadmap

  • ☑︎ Downgrade versions to lowest supported
  • ☑︎ Explore normalization options for v5
  • ☑︎ Separate libraries
  • ☑︎ Add tests for checking patched return types
  • ☑︎ Add tests for failures
  • ☑︎ Script to apply

Setup

  1. bun i

Test

  1. bun test

Build

  1. bun run apply — propagate package.json changes to workspaces
  2. bun run build — build dist/

Publish

  • npm publish -ws

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published