GithubHelp home page GithubHelp logo

erc721-ux's Introduction

erc721-ux

Intro

Your job is to build a simple UX to visualize and manipulate ERC721 Tokens.

This repo contains the references (code + ABI) for two ERC721 tokens deployed on the Sepolia testnet, which you'll need to use.

  • Fake BAYC ( 0x1dA89342716B14602664626CD3482b47D5C2005E on Sepolia ) (get the ABI)
  • Fake Nefturians (0x9bAADf70BD9369F54901CF3Ee1b3c63b60F4F0ED on Sepolia ) (get the ABI)
  • Fake Meebits (0xD1d148Be044AEB4948B48A03BeA2874871a26003 on Sepolia ) (get the ABI)
  • Fake Meebits Claimer (0x5341e225Ab4D29B838a813E380c28b0eFD6FBa55 on Sepolia ) (get the ABI)

To get started using these tokens, I suggest you use the truffle generated ABI and MyCrypto or to visit Etherscan in order to claim/buy a token for each.

Tasks list

Creating a js app and connecting to Ethereum

  • Create a repo to host your work
  • Create a React / Vue JS app and create a page /chain-info(2 pts)
  • Connect your app to the Sepolia network through Metamask and display the ChainId, the last block number, and user address with view /chain-info (2 pts)
  • Show an error page and redirect user to it if the chain is not Sepolia (1 pt)

Calling read and write functions

  • Create a page /fakeBayc
  • Display the name and the total token number (2 pts)
  • Create a button to claim a new token for the current user(2 pts)
  • Create a page /fakeBayc/{tokenId}
  • Display the information (image, name and description) referenced in the Metadata URI for token {tokenId} (2 pts)
  • Show a clean error message on /fakeBayc/{tokenId} if the token does not exist (1pt)

Paying through functions

  • Create a page /fakeNefturians
  • Display the minimum token price, and create a button to buy a token (this one needs to be paid for) (2 pts)
  • Create a page /fakeNefturians/{userAddress}
  • Display all the tokens {userAddress} id's has with nft name and description from metadata and token

Calling a minter with a signature

  • Create a page /fakeMeebits
  • Create a button to mint a token.
  • Read the contract
  • Let the user pick a token number that wasn't minted yet
  • use signature data to call function claimAToken() on fake meebits claimer correctly (4 pts)

Bonus

  • Deploy your static web site (2 pts)

erc721-ux's People

Contributors

l-henri avatar aymericnoel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.