quanto-dimensions
v1.0.8
Published
[![Github Actions][gha-badge]][gha] [![Foundry][foundry-badge]][foundry] [![License: GPL-3.0][license-badge]][license]
Downloads
58
Readme
Quanto Dimensions
This library is designed to provide units/dimension user defined types for quanto perpetual smart contracts.
Contracts
src
├── Int128
│ ├── BaseInt128
│ ├── BaseQuantoPerUSDInt128
│ ├── QuantoInt128
│ ├── USDInt128
│ ├── USDPerBaseInt128
│ └── USDPerQuantoInt128
├── Int256
│ ├── BaseInt256
│ ├── BaseQuantoPerUSDInt256
│ ├── QuantoInt256
│ ├── USDInt256
│ ├── USDPerBaseInt256
│ └── USDPerQuantoInt256
├── Uint128
│ ├── BaseQuantoPerUSDUint128
│ ├── BaseUint128
│ ├── QuantoUint128
│ ├── USDPerBaseUint128
│ ├── USDPerQuantoUint128
│ └── USDUint128
├── Uint256
│ ├── BaseQuantoPerUSDUint256
│ ├── BaseUint256
│ ├── QuantoUint256
│ ├── USDPerBaseUint256
│ ├── USDPerQuantoUint256
│ └── USDUint256
└── UnitTypes.sol
Tests
Build project
npm run compile
- Execute tests
npm run test
- Run specific test
forge test --match-test TEST_NAME -vv