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 - npm Package Compare versions

Comparing version 1.7.0 to 2.0.0

src/auth/authorities/TrustAuthority.sol

2

package.json
{
"name": "@rari-capital/solmate",
"version": "1.7.0",
"version": "2.0.0",
"description": "Modern building blocks and mixins for smart contract development.",

@@ -5,0 +5,0 @@ "files": [

# solmate
Modern and opinionated building blocks for smart contract development.
A catalogue of modern, opinionated, _gas efficient_ and [DappTools](https://github.com/dapphub/dapptools)-centric contracts that will fit perfectly into your next project.
## Acknowledgments
## Contracts
These contracts were heavily inspired by and/or modified from many sources, primarily:
```ml
auth
├─ Auth — "Flexible and updatable auth pattern"
├─ Trust — "Ultra-minimal authorization logic"
├─ authorities
│ ├─ TrustAuthority — "Simple Authority which only authorizes trusted users"
│ ├─ RolesAuthority — "Role based Authority that supports up to 256 roles"
erc20
├─ ERC20 — "Modern and gas efficient ERC20 + EIP-2612 implementation"
├─ SafeERC20 — "Safe ERC20/ETH transfer lib that handles missing return values"
utils
├─ MathHelpers — "Arithmetic library with operations for fixed-point numbers"
├─ ReentrancyGuard — "Gas optimized reentrancy protection for smart contracts"
```
## Acknowledgements
These contracts were inspired by or directly modified from many sources, primarly:
- [OpenZeppelin](https://github.com/OpenZeppelin/openzeppelin-contracts)
- [Dappsys V2](https://github.com/dapp-org/dappsys-v2)
- [Dappsys](https://github.com/dapphub/dappsys)
- [OpenZeppelin](https://github.com/OpenZeppelin/openzeppelin-contracts)
- [Uniswap](https://github.com/Uniswap/uniswap-lib)
## Another contract library?
Yes. Although OpenZeppelin contracts are wonderful and cover a lot of Solidity developer's needs, they are lacking in 3 key areas:
- Bloated
- Gas Inefficient
- Not Opinionated Enough
- **Not [DappTools](https://github.com/dapphub/dapptools) friendly**
Dappsys improves on those fronts, but also suffers from issues of its own:
- Dated Solidity practices
- Not comprehensive enough
### Solmate seeks to solve these issues by introducing a catalogue of modern, opinionated, _gas efficient_ and [DappTools](https://github.com/dapphub/dapptools)-centric contracts that will fit perfectly into your next project.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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