Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kwenta/quanto-dimensions

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kwenta/quanto-dimensions

[![Github Actions][gha-badge]][gha] [![Foundry][foundry-badge]][foundry] [![License: GPL-3.0][license-badge]][license]

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
51
increased by112.5%
Maintainers
6
Weekly downloads
 
Created
Source

Quanto Dimensions

Github Actions Foundry License: GPL-3.0

This library is designed to provide units/dimension user defined types for quanto perpetual smart contracts.

Contracts

src
├── Int128
│   ├── BaseInt128
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── BaseQuantoPerUSDInt128
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── QuantoInt128
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── USDInt128
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── USDPerBaseInt128
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   └── USDPerQuantoInt128
│       ├── Interactions.sol
│       └── ValueType.sol
├── Int256
│   ├── BaseInt256
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── BaseQuantoPerUSDInt256
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── QuantoInt256
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── USDInt256
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── USDPerBaseInt256
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   └── USDPerQuantoInt256
│       ├── Interactions.sol
│       └── ValueType.sol
├── Uint128
│   ├── BaseQuantoPerUSDUint128
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── BaseUint128
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── QuantoUint128
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── USDPerBaseUint128
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── USDPerQuantoUint128
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   └── USDUint128
│       ├── Interactions.sol
│       └── ValueType.sol
├── Uint256
│   ├── BaseQuantoPerUSDUint256
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── BaseUint256
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── QuantoUint256
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── USDPerBaseUint256
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   ├── USDPerQuantoUint256
│   │   ├── Interactions.sol
│   │   └── ValueType.sol
│   └── USDUint256
│       ├── Interactions.sol
│       └── ValueType.sol
├── UnitTypes.sol
└── utils
    ├── DecimalMath.sol
    ├── SafeCast
    │   ├── SafeCastAddress.sol
    │   ├── SafeCastBytes32.sol
    │   ├── SafeCastI128.sol
    │   ├── SafeCastI24.sol
    │   ├── SafeCastI256.sol
    │   ├── SafeCastI32.sol
    │   ├── SafeCastI56.sol
    │   ├── SafeCastI64.sol
    │   ├── SafeCastU128.sol
    │   ├── SafeCastU160.sol
    │   ├── SafeCastU256.sol
    │   ├── SafeCastU32.sol
    │   ├── SafeCastU56.sol
    │   └── SafeCastU64.sol
    └── SafeCast.sol

Tests

  1. Follow the Foundry guide to working on an existing project

  2. Build project

npm run compile
  1. Execute tests
npm run test
  1. Run specific test
forge test --match-test TEST_NAME -vv

FAQs

Package last updated on 14 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc