Coder Social home page Coder Social logo

erc20-demo-archive's Introduction

ERC-20 Demo

What you Need

How to use the Template

  • Navigate to the migrations/2_deploy_erc20.js file and replace the Address with the address that you own
  • In the client/src/ folder add the Portis API key to the default.env and rename the file to .env

Note: You must get Test Ether for the platform you are using in order to change contract data. use the Remote Test Node

  1. Deploy the Contract using: truffle deploy --network development
  2. In a seperate Terminal, start the client: yarn start, you should see a React Page launch

Note: You cannot send your Test ERC-20 Tokens until you add Test Ether to your account. To do that you must:

  1. Navigate to https://sinelnikov.ca/projects/faucet
  2. Paste in your address and click Send Test Ether

You can now interact with the application. Read the Home Page for more details regarding the functionality of the ERC-20 Token Smart Contract

Local Server (localhost)

  1. Start the Ganache Server (see instructions on the Trufflesuite Website)
  2. In a separate Terminal, deploy the Contract to the Ganache Server: truffle deploy --network development
  3. In a seperate Terminal, start the client: yarn start, you should see a React Page launch
  4. Import a Generated Ganache Test account by the Private key into the MetaMask wallet
  5. Switch the network to be localhost:8545 (You should see the account contain about 100 Eth)
  6. Send the 1 Ether to your original account
  7. Switch to your original account

You can now interact with the application. Read the Home Page for more details regarding the functionality of the ERC-20 Token Smart Contract

Using the Ropsten Testnet (Infura)

  1. Add the .secret file and insert your mnemonic seed phrase
  2. Add the .infura file and insert the link to your Infura project
  3. In a separate Terminal, deploy the Contract to the Ganache Server: truffle deploy --network ropsten
  4. In a seperate Terminal, start the client: yarn start, you should see a React Page launch
  5. Go to the Ropsten Faucet and enter your address and click Send me test Ether

You can now interact with the application. Read the Home Page for more details regarding the functionality of the ERC-20 Token Smart Contract

erc20-demo-archive's People

Contributors

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