Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 957 Bytes

README.md

File metadata and controls

48 lines (35 loc) · 957 Bytes

Rift Exchange Contracts

Dependencies

Installation

To install contract dependencies, run the following command:

forge soldeer install

Deployments

Arbitrum Mainnet

Deploy Rift Exchange

source .env && forge clean && forge build --via-ir && \
forge script --chain arbitrum scripts/DeployRiftExchange.s.sol:DeployRiftExchange \
--rpc-url $ARBITRUM_RPC_URL --broadcast --sender $SENDER --private-key $SENDER_PRIVATE_KEY \
--verify --etherscan-api-key $ARBITRUM_ETHERSCAN_API_KEY --ffi -vvvv --via-ir

Testing

Unit Tests

forge test

Static Analysis

Slither

  1. Install slither
  2. Run:
    python -m slither .

Mythril

  1. Install mythril
  2. Run:
    myth analyze src/RiftExchange.sol --solc-json mythril.config.json