$30 off During Our Annual Pro Sale. View Details »

EthShanghai ENS integration workshop - May 2022

EthShanghai ENS integration workshop - May 2022

Makoto Inoue

May 18, 2022
Tweet

More Decks by Makoto Inoue

Other Decks in Technology

Transcript

  1. ENS integration workshop
    EthShanghai May 2022
    Makoto Inoue ([email protected])

    View Slide

  2. Read the doc (https://docs.ens.domains ) and join Discord( https://chat.ens.domains )

    View Slide

  3. ENSIP (https://docs.ens.domains/ens-improvement-proposals)

    View Slide

  4. Your library may already support ENS
    - Libraries = ethers.js/web3.js/web3.py/web3j
    - Frameworks: waffle/embark/scaffold-eth
    - ENS official library = ensjs

    View Slide

  5. Agenda
    - 1. ENS Integration 101
    - 2. ENS Avatar (with upcoming use cases)
    - 3. Interesting tools/usecases
    - 4. Upcoming features (optional)

    View Slide

  6. 1: ENS Integration 101

    View Slide

  7. Forward lookup
    matoken.eth

    View Slide

  8. Forward lookup
    0x5a384227b65fa093dec...

    View Slide

  9. Forward lookup

    View Slide

  10. Primary ENS name(aka Reverse lookup)

    View Slide

  11. Primary ENS name

    View Slide

  12. Primary ENS name (code)

    View Slide

  13. dWeb (aka contenthash)

    View Slide

  14. 2: ENS Avatar

    View Slide

  15. @davatar/react https://github.com/metaphor-xyz/davatar-helpers/tree/master/packages/react

    View Slide

  16. ENS Architecture (Registry & Resolver)

    View Slide

  17. Resolving a name

    View Slide

  18. ENS Architecture (Registry & Resolver)
    - Address
    - Contenthash
    - PubKey
    - ABI
    - Text record
    - Multicoin
    https://github.com/ensdomains/resolvers

    View Slide

  19. ENS Resolver extension example: Text record

    View Slide

  20. Text record use case scenario: avatar pfp https://docs.ens.domains/ens-improvement-proposals/ensip-12-avatar-text-records

    View Slide

  21. Text record use case scenario: avatar pfp https://gist.github.com/Arachnid/9db60bd75277969ee1689c8742b75182

    View Slide

  22. Tips: TokenId = labelhash

    View Slide

  23. metadata.ens.domains https://metadata.ens.domains/avatar/matoken.eth/meta
    (Rinkeby ENS+ Mainnet NFT)

    View Slide

  24. metadata.ens.domains https://metadata.ens.domains/docs

    View Slide

  25. 3: Use cases

    View Slide

  26. The rise of numbers https://ens.vision https://gem.xyz

    View Slide

  27. The rise of numbers
    - 999 club/10kclub
    - OG ENS (before Jun-23-2017)
    - 24h club
    https://ens.tools https://dune.com/makoto/Old

    View Slide

  28. Interesting use cases (aka the rize of digit) https://ensclock.com

    View Slide

  29. 3: Upcoming features

    View Slide

  30. 3. Upcoming features
    - 3.1. Subdomains as NFT (aka name wrapper)
    - 3.2. L2 integration (CCIP read)

    View Slide

  31. 3.1 Subdomains as NFT (https://github.com/ensdomains/ens-contracts/tree/master/contracts/wrapper)

    View Slide

  32. 3.2 L2 integration (CCIP read) https://github.com/smartcontractkit/ccip-read
    foo.reddit.eth
    bar.reddit.eth
    baz.reddit.eth
    foo.dydx.domains
    bar.dydx.domains
    baz.dydx.domains
    foo.uniswap.eth
    bar.uniswap.eth
    baz.uniswap.eth
    makerdao.eth
    dydx.domains
    uniswap.eth

    View Slide

  33. Thank you!
    Makoto Inoue / [email protected]
    ● https://medium.com/the-ethereum-name-service
    ● @ensdomains
    ● https://chat.ens.domains
    ● https://ens.domains

    View Slide

  34. Thank you!
    Makoto Inoue / [email protected]

    View Slide