This project was developed as part of the take-home assignment for Valory, aimed at creating a decentralized treasury contract to handle ERC20 and ERC721 token deposits and withdrawals.
- ERC20 Deposits and Withdrawals: Users can deposit and withdraw ERC20 tokens.
- ERC721 Deposits and Withdrawals: Users can deposit and withdraw specific ERC721 tokens.
- Token Enablement: The owner can enable or disable specific tokens for deposits and withdrawals.
contracts/: Contains the Solidity smart contracts, includingMiniTreasury.sol.test/: Contains test scripts for verifying the functionality of the smart contracts using Hardhat.
Try running some of the following tasks:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/Lock.js