To run code in this repository, follow these steps:
-
Clone the Repository:
https://github.com/BlockApex/ElektrikV2-Contracts.git
-
Navigate to the project directory:
cd ElektrikV2-Contracts
-
Install dependencies:
forge install
-
Compile contracts:
forge build
-
Run unit tests:
# tests will be ran on ethereum mainnet forge test -vvv --match-path test/AdvancedOrderEngine.t.sol
-
Run deploy and setup script
source .env forge script script/deployOrderEngine.s.sol --rpc-url $PEGASUS_RPC_URL --legacy --broadcast # deploy and verify forge script script/deployOrderEngine.s.sol --rpc-url $PEGASUS_RPC_URL --broadcast -vvv --legacy --verify --verifier blockscout --verifier-url https://pegasus.lightlink.io/api/? --watch