This repository contains the smart contracts for the Eco POC project, now using Foundry as the development framework.
This project uses Foundry for development and testing.
Clone the repository and install dependencies:
git clone <repository-url>
cd eco-poc
forge installforge buildforge testCreate a .env file with your private key:
PRIVATE_KEY=your_private_key_here
Then run:
source .env
forge script script/Deploy.s.sol --rpc-url <your_rpc_url> --broadcastThe CrowdLiquidityRegistrar contract manages crowd liquidity addresses with admin management capabilities.
Key features:
- Add, remove, and reinstate crowd liquidity addresses
- Lock/unlock functionality
- Role-based access control
The EcoChainCrowdLiquidityCheckModule checks whether a caller is allowed based on calldata.
Key features:
- Verifies if calldata to an address is a crowd liquidity address
- Admin permission management
UNLICENSED