Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ENS Integration workshop @ nfthack

ENS Integration workshop @ nfthack

1eecfce54b4f902784d046328935efd4?s=128

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 (makoto@ens.domains)

  2. Prizes

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

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

  5. Your library may already support ENS - Libraries = ethers.js/web3.js/web3.py/web3j

    - Frameworks: waffle/embark/scaffold-eth - ENS official library = ensjs
  6. Agenda - 1. ENS Integration 101 - 2. ENS Avatar

    - 3. Upcoming features
  7. 1: ENS Integration 101

  8. Forward lookup matoken.eth

  9. Forward lookup 0x5a384227b65fa093dec...

  10. Forward lookup

  11. Primary ENS name(aka Reverse lookup)

  12. Primary ENS name

  13. Primary ENS name (code)

  14. dWeb (aka contenthash)

  15. 2: ENS Avatar

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

  17. ENS Architecture (Registry & Resolver)

  18. Resolving a name

  19. ENS Architecture (Registry & Resolver) - Address - Contenthash -

    PubKey - ABI - Text record - Multicoin https://github.com/ensdomains/resolvers
  20. ENS Resolver extension example: Text record

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

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

  23. Tips: TokenId = labelhash

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

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

  26. 3: Upcoming features

  27. 3. Upcoming features - 3.1. Subdomains as NFT (aka name

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

  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
  30. Thank you! Makoto Inoue / makoto@ens.domains • https://medium.com/the-ethereum-name-service • @ensdomains

    • https://chat.ens.domains • https://ens.domains
  31. Thank you! Makoto Inoue / makoto@ens.domains