Building Core Smart Contracts
How to compile system smart contracts and precompiles when contributing to the Maroo core repository.
1
Prerequisites
Ensure you have Python 3 and Node.js (for Hardhat) installed. The script relies on Hardhat for the actual compilation process.
2
Run Compilation
Execute the script with the
--compile flag to build all contracts. This will scan contracts/solidity and precompiles/ folders.python3 scripts/compile_smart_contracts/compile_smart_contracts.py --compile 3
Verify Artifacts
Check that
.json or abi.json files have been generated or updated in the respective contract folders (e.g., inside precompiles/).