This is a complete Decentralized Marketplace (DEX) for a Sepolia Test Network with scripts and deploys made with Solidity using Hardhat.
$ cd ERC20-DEX-Exchange
$ npm install --save-dev hardhat
$ npm install --save dotenv @nomiclabs/hardhat-etherscan @openzeppelin/contracts @nomicfoundation/hardhat-toolbox
# 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
$ npx hardhat clean
$ npx hardhat compile
$ npx hardhat run scripts/deploy.js --network sepolia
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