Skip to content

huusan/solmate

 
 

Repository files navigation

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"
├─ FixedPointMath"Arithmetic library with operations for fixed-point numbers"

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:

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Solidity 97.4%
  • Other 2.6%