Other

项目介绍

transmissions11/solmate 是一个托管在 GitHub 上的开源项目,主要使用 Solidity 编写,采用 Other 许可证,目前获得 4.3k 个 Star、707 次 Fork。

仓库全名
transmissions11/solmate
开源许可证
Other
Star 数
4.3k
Fork 数
707
未关闭 Issue
129

README 摘要

solmate Modern, opinionated, and gas optimized building blocks for smart contract development. Contracts ⚠️ Soft Deprecation Notice Solmate is no longer actively maintained. Solady has effectively succeeded the project. Safety This is experimental software and is provided on an "as is" and "as available" basis. While each major release has been audited, these contracts are not designed with user safety in mind…

完整内容见 GitHub 原始 README 或本页 。

常见问题

solmate 用什么语言开发?

主要使用 Solidity 编写,采用 Other 许可证,目前有 4.3k 个 Star。

solmate 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 solmate 的源码?

可以直接克隆仓库:git clone https://github.com/transmissions11/solmate.git,默认分支为 main;安装与运行步骤见仓库 README。

solmate 最近还在维护吗?

仓库最近一次更新为 2025年7月22日,当前有 129 个未关闭 Issue;Star 数为 4.3k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

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

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
5758
价值分
2790
活跃状态
活跃
暂无主题

语言占比

Julia
Solidity

Release

  • v62022年1月2日

README

solmate

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

Contracts

auth
├─ Owned — "Simple single owner authorization"
├─ Auth — "Flexible and updatable auth pattern"
├─ authorities
│  ├─ RolesAuthority — "Role based Authority that supports up to 256 roles"
│  ├─ MultiRolesAuthority — "Flexible and target agnostic role based Authority"
tokens
├─ WETH — "Minimalist and modern Wrapped Ether implementation"
├─ ERC20 — "Modern and gas efficient ERC20 + EIP-2612 implementation"
├─ ERC721 — "Modern, minimalist, and gas efficient ERC721 implementation"
├─ ERC1155 — "Minimalist and gas efficient standard ERC1155 implementation"
├─ ERC4626 — "Minimal ERC4626 tokenized Vault implementation"
├─ ERC6909 — "Minimalist and gas efficient standard ERC6909 implementation"
utils
├─ SSTORE2 — "Library for cheaper reads and writes to persistent storage"
├─ CREATE3 — "Deploy to deterministic addresses without an initcode factor"
├─ LibString — "Library for creating string representations of uint values"
├─ SafeCastLib — "Safe unsigned integer casting lib that reverts on overflow"
├─ SignedWadMath — "Signed integer 18 decimal fixed point arithmetic library"
├─ MerkleProofLib — "Efficient merkle tree inclusion proof verification library"
├─ 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"
├─ SafeTransferLib — "Safe ERC20/ETH transfer lib that handles missing return values"

⚠️ Soft Deprecation Notice

Solmate is no longer actively maintained. Solady has effectively succeeded the project.

Safety

This is experimental software and is provided on an “as is” and “as available” basis.

While each major release has been audited, these contracts are not designed with user safety in mind:

  • There are implicit invariants these contracts expect to hold.
  • You can easily shoot yourself in the foot if you’re not careful.
  • You should thoroughly read each contract you plan to use top to bottom.

We do not give any warranties and will not be liable for any loss incurred through any use of this codebase.

Installation

To install with Foundry:

forge install transmissions11/solmate

To install with Hardhat or Truffle:

npm install solmate

Acknowledgements

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

评论

暂无评论