GithubHelp home page GithubHelp logo

blockchainmasters21 / erc20-dex-exchange Goto Github PK

View Code? Open in Web Editor NEW

This project forked from querylab/erc20-dex-exchange

0.0 0.0 0.0 109 KB

Decentralized Exchanges (DEX) ๐Ÿ›๏ธ ๐Ÿ“œ ๐Ÿ’ฐ

License: MIT License

JavaScript 22.33% HTML 3.80% Solidity 73.87%

erc20-dex-exchange's Introduction

ERC20 (DEX) ๐Ÿ›๏ธ ๐Ÿ“œ ๐Ÿ’ฐ

This is a complete Decentralized Marketplace (DEX) for a Sepolia Test Network with scripts and deploys made with Solidity using Hardhat.

Setting Up

1. Clone the repository

2. Install dependencies

$ cd ERC20-DEX-Exchange
$ npm install --save-dev hardhat
$ npm install --save dotenv @nomiclabs/hardhat-etherscan @openzeppelin/contracts @nomicfoundation/hardhat-toolbox

3. Change variables in hardhat.config.js, deploy.js and blockchain_stuff.js

# hardhat.config.js
$ ALCHEMY_API_KEY
$ SEPOLIA_PRIVATE_KEY
# deploy.js
$ myWallet
$ sepoliaETH_Wallet_liquid
$ sepoliaETH_Wallet_swap
# blockchain_stuff.js
$ FACTORY_ADDRESS
$ ROUTER_LIQUIDITY_ADDRESS
$ ROUTER_SWAPS_ADDRESS
$ TOKENA_ADDRESS
$ TOKENB_ADDRESS

4. Deployment

$ npx hardhat clean
$ npx hardhat compile
$ npx hardhat run scripts/deploy.js --network sepolia

5. Install Lite Server

For to use index.html and blockchain_stuff.js basically this calls the files ERC20.json, Factory.json, Pair.json , RouterLiquidity.json and RouterSwaps.json in order to connect our Metamask. In other terminal Run next Command

$ npm install -g lite-server
$ lite-server

erc20-dex-exchange's People

Contributors

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