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

ENS Integration workshop @ nfthack

ENS Integration workshop @ nfthack

Makoto Inoue

January 13, 2022
Tweet

More Decks by Makoto Inoue

Other Decks in Technology

Transcript

  1. ENS integration workshop
    EthGlobal Jan 2022
    Makoto Inoue ([email protected])

    View Slide

  2. Prizes

    View Slide

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

    View Slide

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

    View Slide

  5. 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

  6. Agenda
    - 1. ENS Integration 101
    - 2. ENS Avatar
    - 3. Upcoming features

    View Slide

  7. 1: ENS Integration 101

    View Slide

  8. Forward lookup
    matoken.eth

    View Slide

  9. Forward lookup
    0x5a384227b65fa093dec...

    View Slide

  10. Forward lookup

    View Slide

  11. Primary ENS name(aka Reverse lookup)

    View Slide

  12. Primary ENS name

    View Slide

  13. Primary ENS name (code)

    View Slide

  14. dWeb (aka contenthash)

    View Slide

  15. 2: ENS Avatar

    View Slide

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

    View Slide

  17. ENS Architecture (Registry & Resolver)

    View Slide

  18. Resolving a name

    View Slide

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

    View Slide

  20. ENS Resolver extension example: Text record

    View Slide

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

    View Slide

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

    View Slide

  23. Tips: TokenId = labelhash

    View Slide

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

    View Slide

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

    View Slide

  26. 3: Upcoming features

    View Slide

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

    View Slide

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

    View Slide

  29. 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

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

    View Slide

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

    View Slide