Coder Social home page Coder Social logo

bep20-token's Introduction

BEP20 Token Smart Contract

Requirements

Configuration

  • truffle.config.js

How to run

Install dependencies and devDependencies

npm install

Development

Step 1: Run ganache-cli on development port (ex: 8545):

ganache-cli -p 8545

Step 2: Run migrate on development network

truffle migrate --network development

Step 3: Test smart contract's methods on development

truffle console --network development
check your function here

Test

Step 1: Run ganache-cli on test port (ex: 7545):

ganache-cli -p 7545

Step2: Run test

truffle test --network test

Custom network

Step 1: Add your mnemonic to truffle.config.js:

var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic = <your-mnemonic>;

Step 2: Configure custom network (ex: bsc testnet)

bsctest: {
  provider: () => new HDWalletProvider(mnemonic, `https://data-seed-prebsc-1-s1.binance.org:8545`),
  network_id: 97,
  confirmations: 10,
  timeoutBlocks: 200,
  skipDryRun: true
},

Check document on here

Step 2: Deploy contract to custom network:

truffle migrate --network <your-custom-network>

bep20-token's People

Contributors

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