Contracts to manage account abstractions and features on top of the Synthetix Futures Platform. This will support future implementations of cross margin, limit orders, stop orders (TBD), copy trading (TBD).
The repo is a mix of Hardhat & Foundry. Hardhat will be used for integration testing and deployment. Foundry will be used for unit testing and fuzz testing.
├── ...
├── contracts # Source contracts
├── scripts # Hardhat deployment scripts
├── test # Test files (alternatively `spec` or `tests`)
│ ├── contracts # Unit tests, fuzz tests using Foundry
│ └── integration # End-to-end, integration tests using Hardhat
└── ...
-
Build project
forge build
- Execute tests
npm run foundry-test
- Install all NPM packages
npm install
- Build project
npx hardhat compile
- Execute integration tests
npm run hh-test:integration