Giter Club home page Giter Club logo

erc20-and-uniswap-pool's Introduction

code structure:

  1. create new and empty hardhat project npx hardhat

  2. set configuration in hardhat.config.js file

  3. create two erc20 contracts using openzeppelin in contracts folder

  4. write deploy scripts for both in scripts folder

  5. write ALCHEMY_API and PRIVATE_KEY in .env file

  6. deploy contracts using deploy scripts

  7. create script for uniswap pool in createUniswapPool.js file

  8. create uniswap v2 pool

  9. migerate uniswap v3 to v3

start project:

npx hardhat npx hardhat compile

deploy contract:

npx hardhat run scripts/deployABToken1.js --network goerli

npx hardhat run scripts/deployABToken2.js --network goerli

verify contract:

npx hardhat compile --force

npx hardhat verify --contract contracts/ABToken1.sol:ABToken1 0x516538D612a292C55042F340186ffF4AF3bDeba3 --network goerli

npx hardhat verify --contract contracts/ABToken2.sol:ABToken2 0x6fa292Ac5f300c84e007873bBaa052570b5390C4 --network goerli

npx hardhat verify --network goerli 0x516538D612a292C55042F340186ffF4AF3bDeba3

npx hardhat verify --network goerli 0x6fa292Ac5f300c84e007873bBaa052570b5390C4

  • AB Token 1 is deployed at: 0x516538D612a292C55042F340186ffF4AF3bDeba3

  • AB Token 2 is deployed at: 0x6fa292Ac5f300c84e007873bBaa052570b5390C4

uniswap:

UNISWAP_V3_FACTORY_ADDRESS = '0x1F98431c8aD98523631AE4a59f267346ea31F984'

erc20-and-uniswap-pool's People

Contributors

aabdullah29 avatar

Stargazers

 avatar

Watchers

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