Coder Social home page Coder Social logo

kmilodenisglez / hardhat_bep20token-github.template Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 103 KB

github template project of a BEP20 Token using hardhat framework.

License: GNU Lesser General Public License v2.1

Solidity 63.73% JavaScript 36.27%
bep20-token blockchain-demos ethersjs hardhat smart-contracts smartcontract

hardhat_bep20token-github.template's Introduction

Lehtdrop contract

Note: visit hardhat config and hardhat deploy \before to proceed

Enables you to send your KDG tokens to hundreds of designated addresses at a time.

How long can the operation take?

It depends on the network congestion and gas price. It typically takes 2 to 5 minutes.

How much does it cost?

It depends on the number of addresses and the number of tokens to be sent.

What is the maximum number of addresses you can send to at the same time?

Limitations are unknown, it is recommended to create batches of small addresses (around 200 destination addresses) for transfers.

Compile

Run the following command to compile the contract:

npx hardhat compile

Deploy to mainnet

Then, to deploy the contract, run the command:

npx hardhat run --network mainnet scripts/deploy.js

The terminal should show output similar to this:

Deploying contracts with the account: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
Account balance: 10000000000000000000000
Token Successfully Deployed!
Token address: 0x5FbDB2315678afecb367f032d93F642f64180aa3

Verify using hardhat-etherscan plugin

npx buidler verify --network mainnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1"

example:

npx hardhat verify --network mainnet 0xB8924401eBD62b265b8277a7a6D6775b6DcF17FB

Congratulations! You have successfully deployed BEP20 Smart Contract in mainnet. Now you can interact with the Smart Contract.

You can check the deployment status here: https://bscscan.com/

DOCs

hardhat_bep20token-github.template's People

Contributors

kmilodenisglez avatar

Stargazers

 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.