This repository contains two separate projects:
-
Ludo Dice Generator (Hardhat):
A simple Ludo game dice generator smart contract implemented using Solidity and Hardhat. It simulates the dice roll mechanics of the Ludo game. -
Uniswap Interaction Scripts:
A collection of scripts to interact with four core Uniswap functions:- Add Liquidity
- Remove Liquidity
- swapExactETHForTokens
- swapTokensForExactETH
- /ludo-dice-generator: Contains the Hardhat project with the smart contract for generating random dice rolls.
- /uniswap-interactions: Contains scripts for interacting with the Uniswap protocol using ethers.js, focused on liquidity management and token swaps.
- Clone the repository:
git https://github.com/Lukman-01/Web3Bridge-Eviction-Test.git
- Navigate to each folder and install dependencies:
cd Ludo-Game npm install
cd uniswap-interactions npm install
- Compile the contract:
npx hardhat compile
- Deploy the contract:
npx hardhat ignition deploy ./ignition/modules/deploy.ts --network lisk-sepolia
- Update the
.env
file with your environment variables (e.g., provider URL, private key). - Run the interaction scripts:
npx hardhat run scripts/Uniswap-Add-Liquidity.ts