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

@rari-capital/solmate

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rari-capital/solmate

Modern, opinionated and gas optimized building blocks for smart contract development.

  • 4.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2K
increased by1.71%
Maintainers
2
Weekly downloads
 
Created
Source

solmate

Modern, opinionated and gas optimized building blocks for smart contract development.

Contracts

auth
├─ Auth — "Flexible and updatable auth pattern"
├─ Trust — "Ultra minimal authorization logic"
├─ authorities
│  ├─ RolesAuthority — "Role based Authority that supports up to 256 roles"
│  ├─ TrustAuthority — "Simple Authority which only authorizes trusted users"
erc20
├─ ERC20 — "Modern and gas efficient ERC20 + EIP-2612 implementation"
├─ SafeERC20 — "Safe ERC20/ETH transfer lib that handles missing return values"
utils
├─ ReentrancyGuard — "Gas optimized reentrancy protection for smart contracts"
├─ FixedPointMathLib — "Arithmetic library with operations for fixed-point numbers"
├─ Bytes32AddressLib — "Library for converting between addresses and bytes32 values"

Installation

To install with Hardhat or Truffle:

npm install @rari-capital/solmate

To install with DappTools:

dapp install rari-capital/solmate

Acknowledgements

These contracts were inspired by or directly modified from many sources, primarily:

  • OpenZeppelin
  • Dappsys V2
  • Dappsys
  • Uniswap

FAQs

Package last updated on 06 Oct 2021

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