Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 914 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 914 Bytes

ElektrikV2-Contracts

Getting Started

To run code in this repository, follow these steps:

  1. Clone the Repository:

    https://github.com/BlockApex/ElektrikV2-Contracts.git
    
  2. Navigate to the project directory:

    cd ElektrikV2-Contracts
    
  3. Install dependencies:

    forge install
    
  4. Compile contracts:

    forge build
    
  5. Run unit tests:

    # tests will be ran on ethereum mainnet
    forge test -vvv --match-path test/AdvancedOrderEngine.t.sol
  6. 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