Skip to content

asmitadhungana/ice-dex-workshop

Repository files navigation

ICE-DEX Workshop

👋 Welcome to the public repository of ICE-DEX workshop!
This branch contains the boilerplate code for the project: ICE-DEX.
In this workshop, you'll learn how to create and deploy your custom ERC20 Token and a dedicated Exchange for it in the ICE-testnet.
Please go through the given tasks and complete them in a sequential order in order to do so...

Task 1: Install the dependencies

npm install

Task 2: Add the contracts

Add the two contracts to the contracts directory


NOTE Make sure to delete the .gitignore file inside the contracts directory. It was only used as a placeholder so that the contracts directory could be commited to git


Task 3: Add your accounts for deploying

Create a new file called .env in the root directory and perform one of the following tasks as per your preference:

  • Use the provided accounts pre-funded with ICZ (testnet currency of ICE: Frost Network) to deploy and interact with the contracts in Frost:

    • Copy the contents of .env.example file
    • Paste it in your newly created .env file and save it
  • Use your personal metamask wallet pre-funded with ICZ to deploy and interact with the contracts in Frost:

    • Copy the contents of .env.example file
    • Paste it in your newly created .env file
    • Replace the DEPLOYER_PRIVATE_KEY with the private key of the account you want to use
    • Replace the DEPLOYER_ADDRESS with the address of the related account

Task 4: Run the scripts

There are 6 scripts provided inside the scripts directory, run them consecutively in your terminal using the command:

npx hardhat run scripts/<file_name> --network frost
Additional Hardhat Commands

`npx hardhat accounts`

`npx hardhat compile`

`npx hardhat clean`

`npx hardhat test`

`npx hardhat node`

`npx hardhat help`


NOTE

Please refer to the branch: complete_project for the complete project.


Thanks for participating! 🥳

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published