Core Components
Core Components
Union Contracts V2
Built using foundry and hardhat
Deployments
Install
To install dependencies:
Compile
To compile with hardhat:
Foundry
Union V1.5 Contracts also includes a suit of tests (fuzzing tests) writte in solidity with foundry
To install Foundry (assuming a Linux or macOS System):
This will download foundryup. To start Foundry, run:
To install dependencies:
To run tests:
The following modifiers are also available:
Level 2 (-vv): Logs emitted during tests are also displayed.
Level 3 (-vvv): Stack traces for failing tests are also displayed.
Level 4 (-vvvv): Stack traces for all tests are displayed, and setup traces for failing tests are displayed.
Level 5 (-vvvvv): Stack traces and setup traces are always displayed.
To profile gas usage:
Fork Tests
Integration tests can be run using hardhat.
They can also be run in fork mode. (Some tests can be excluded from running in fork mode and other tests can only run in fork mode)
You can also define which config should be used for the fork mode.
Format
Last updated