Skip to content

BlockApex/Elektrik-V2-Contracts

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published