Swap coins at a cheaper exchange
- Solidity (Writing Smart Contract)
- Javascript (Game interaction)
- Alchemy As a node provider
- NodeJS To create hardhat project and install dependencis using npm
npm install
npx hardhat test test/DexAggregator.js
npx hardhat run scripts/deploy.js
npx hardhat console
const MyContract = await ethers.getContractFactory("DexAggregator");
const contract = await MyContract.attach("addressOfContract");
await contract.sushiRate(["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"], "1000000000000000000");
npx hardhat node --fork https://mainnet.infura.io/v3/<YourInfuraProjectId>
npx hardhat run scripts/deploy.js
npm start