Git Product home page Git Product logo

andras-adam / erc20t2 Goto Github PK

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

๐Ÿ’ณ ERC-20 Test Token (ERC20T2) written in Solidity deployed to the Kovan testnet via Infura using Truffle.

Home Page: https://erc20t2.neoaren.com/

License: Apache License 2.0

Solidity 16.61% JavaScript 4.50% HTML 1.20% TypeScript 71.56% SCSS 6.13%
truffle solidity erc-20 kovan infura cryptocurrency blockchain

erc20t2's Introduction

ERC-20 Test Token (ERC20T2)

๐Ÿ’ณ ERC-20 Test Token (ERC20T2) written in Solidity deployed to the Kovan testnet via Infura using Truffle.

Prerequisites

  • Node (>= 16.0.0) and npm (>= 8.0.0) can be installed from here
  • Truffle (>= 5.0.0) can be installed from here
  • (optional) Ganache local blockchain GUI can be installed from here

Usage

1. Clone this repository using any git client

git clone https://github.com/NeoAren/ERC20T2.git

2. Install the dependencies using npm

npm install

3. Create a file in the project root directory named .env and place the following content into it. Make sure to replace these placeholder values with the actual secrets and connection details you wish to use.

# Mnemonic for your account
MNEMONIC=""
# Infura project ID
INFURA_PROJECT_ID=""
# Local development blockchain host
DEVELOPMENT_HOST="127.0.0.1"
# Local development blockchain port
DEVELOPMENT_PORT=7545

4. Compile the Solidity source code and produce ABIs

truffle compile

5. Deploy to local test network

# run latest migrations
truffle migrate --network development
# re-run all migrations
truffle migrate --network development --reset

6. Deploy to kovan test network

# run latest migrations
truffle migrate --network kovan
# re-run all migrations
truffle migrate --network kovan --reset

React application

1. Navigate to the ./app directory

cd app

2. Install the dependencies using npm

npm install

3. Create a file in the app directory named .env and place the following content into it. Make sure to replace these placeholder values with the actual secrets and connection details you wish to use.

# Address of the deployed ERC20T2 token
REACT_APP_TOKEN_CONTRACT="0x9BAD2B4726caA2948b659D0CF863C448f2e355B1"
# Address of the Uniswap V2 Router 2.0 smart contract
REACT_APP_ROUTER_CONTRACT="0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D"
# Kovan testnet ID
REACT_APP_CHAIN_ID=42
# Suppress sourcemap generation error
GENERATE_SOURCEMAP=false

4. Start the React application

npm start

erc20t2's People

Contributors

andras-adam 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.