Giter Club home page Giter Club logo

whitelist-dapp's Introduction

Whitelist Contract

This is a Solidity contract for whitelisting addresses. It is released under the Unlicense.

Features

  • Defines the maximum number of addresses that can be whitelisted
  • Mapping of addresses to booleans indicating whether they are whitelisted or not
  • Number of addresses currently whitelisted
  • Constructor that sets the maximum number of whitelisted addresses
  • Function that allows a caller to add their own address to the whitelist, provided that the caller's address has not already been whitelisted and the maximum number of whitelisted addresses has not been reached.

Hardhat

Hardhat is a command-line tool for managing Ethereum development. It helps you set up, test, and deploy your smart contracts on Ethereum networks.

Installation

Install Hardhat with npm:

$ npm install hardhat --save-dev

You will also need to install the @nomicfoundation/hardhat-toolbox and dotenv packages as dependencies.

$ npm install @nomicfoundation/hardhat-toolbox dotenv --save-dev

Usage

To use Hardhat, you will need to create a configuration file in your project directory. This file should be named hardhat.config.js. You can find more information about configuring Hardhat here.

Once your configuration is set up, you can run Hardhat commands from the command line:

$ npx hardhat <command> [options]

Nomic Foundation Hardhat Toolbox

This is a configuration file for the Nomic Foundation Hardhat Toolbox. It includes the necessary code to connect to the Goerli and Mumbai test networks, as well as a private key for authentication.

Requirements

Configuration

The configuration includes the following settings:

  • Default network: hardhat
  • Solidity version: 0.8.9
  • Network settings for Goerli, Mumbai, and Hardhat networks
    • URL for Goerli and Mumbai networks
    • Accounts array with private key for authentication
    • Chain ID for Goerli (5) and Mumbai (80001) networks

whitelist-dapp's People

Contributors

patrick-ehimen avatar

Watchers

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