/protocol

Core Protocol Repository

Primary LanguageSolidity

Sentiment

Instructions

Requirements

  1. Rust
  2. Foundry - https://github.com/gakonst/foundry

Cloning Repo

git clone --recurse-submodules git@github.com:sentimentxyz/protocol.git

Building Contracts

forge build

Running tests

Unit/Functional tests

forge test --no-match-contract Integration -vvv

Integration tests

Ethereum mainnet
forge test --match-contract Integration --no-match-contract ArbiIntegration --fork-url https://rpc.ankr.com/eth
Arbitrum mainnet
forge test --match-contract ArbiIntegration --fork-url https://arb1.arbitrum.io/rpc -vvv

Configuring mappings

forge config > remappings.txt