Git Product home page Git Product logo

dll-smart-contracts's Introduction

Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a contract generated by OpenZeppelin Wizard, a test for that contract, and a script that deploys that contract.

Installing dependencies

npm install

Testing the contract

npm test

Deploying the contract

You can target any network from your Hardhat config using:

npx hardhat run --network <network-name> scripts/deploy.ts

  • Compile npx hardhat compile

  • Deploy local npx hardhat node npx hardhat run --network localhost scripts/deploymintpass.ts npx hardhat run --network localhost scripts/deploymindfulnft.ts

  • Deploy public npx hardhat run scripts/deploymintpass.ts --network polytestnet npx hardhat run scripts/deploymindfulnft.ts --network polytestnet

  • Verify npx hardhat verify --network polytestnet {contract_address} {constructor args}

e.g. npx hardhat verify --network polytestnet 0xb67d4B2C967D4aA6c148CDB9bBc43e19E673669E "0x4BCC679c78E2C6D724E49B2F59f0F3B0565854D9" "0x1f6A403347fd2d335d14Dc3f1AEb21D9192cF166" 100000000000000 100 npx hardhat verify --network polytestnet 0xD483d0DE39b3BA9F0cc0D41E853b67a0cc99CF38 "0x91C25E22e131Ae298d291307116FDB054838dc5C" 100


  • Interacting with smart contract

npx hardhat run scripts/mintMintPass.js --network polytestnet npx hardhat run scripts/mintMindfulNFT.js --network polytestnet

dll-smart-contracts's People

Contributors

edwardtamkingfai avatar

Stargazers

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