Code Monkey home page Code Monkey logo

miceuud / nft-auction-test Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.68 MB

An Auction DApp that allows people to bid on an NFT. The auction contract accepts bidding with a stablecoin which is the DIA token. The NFT is held in the auction contract through out the bidding period. There is a starting and ending period for the auction. Winner of this bid can claim the NFT, while other redeem their bid.

JavaScript 39.99% HTML 5.46% CSS 2.87% TypeScript 35.21% Solidity 16.47%

nft-auction-test's Introduction

PROTOFIRE NFT Auction DApp

Requirements

You must have the following installed on your Machine to run this code:

  • Metamask chrome or Firefox plugin
  • Hardhat
  • Alchemy Private API key - Rinkeby

To run this project

  • First clone this repository https://github.com/miceuud/protofire-nft-auction-test

  • cd into the cloned project folder on your terminal from your machine

  • Run yarn install to install dependencies

  • Get an Alchemy API key if don't have one from https://alchemy.com/

  • Request Ethers from the rinkeby faucet https://faucet.rinkeby.io/ to your metamask wallet

  • Visit https://app.compound.finance/ to borrow Dai to your metamask wallet

  • Add Dai token to your metamask wallet using this contract address 0x5592ec0cfb4dbc12d3ab100b257153436a1f0fea

  • In the hardhat.config.js file, update the private key and accounts with your details in the network section

  • In a seperate terminal run npx hardhat run scripts/deploy.js --network rinkeby

  • Create a .env file in the root of the project, copy and replace the details with the auction, nft contract address from the console.log statement outputted from the deployed script

  • Start the app by running yarn start

Testing (Hardhat)

  • Run test locally with hardhat accounts and Mock Dai tokens

  • To speed up test, change the auction end-time in the auction contract to 30 seconds

  • Run npx hardhat test

nft-auction-test's People

Contributors

fvictorio avatar mikeudoh avatar photonite avatar

Watchers

 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.