{"id":13512420,"url":"https://github.com/transmissions11/solmate","last_synced_at":"2025-05-15T00:06:34.127Z","repository":{"id":37278103,"uuid":"387031101","full_name":"transmissions11/solmate","owner":"transmissions11","description":"Modern, opinionated, and gas optimized building blocks for smart contract development.","archived":false,"fork":false,"pushed_at":"2024-10-29T18:54:36.000Z","size":813,"stargazers_count":4087,"open_issues_count":124,"forks_count":684,"subscribers_count":44,"default_branch":"main","last_synced_at":"2025-05-15T00:04:46.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/transmissions11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audits/v6-Fixed-Point-Solutions.pdf","citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-17T20:25:46.000Z","updated_at":"2025-05-14T01:29:47.000Z","dependencies_parsed_at":"2023-09-29T07:44:08.562Z","dependency_job_id":"a0db760a-b8f8-43b7-a594-3b802383d336","html_url":"https://github.com/transmissions11/solmate","commit_stats":{"total_commits":423,"total_committers":40,"mean_commits":10.575,"dds":0.1442080378250591,"last_synced_commit":"c93f7716c9909175d45f6ef80a34a650e2d24e56"},"previous_names":["rari-capital/solmate"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transmissions11%2Fsolmate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transmissions11%2Fsolmate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transmissions11%2Fsolmate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transmissions11%2Fsolmate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transmissions11","download_url":"https://codeload.github.com/transmissions11/solmate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254249198,"owners_count":22039029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T03:01:50.674Z","updated_at":"2025-05-15T00:06:29.113Z","avatar_url":"https://github.com/transmissions11.png","language":"Solidity","readme":"# solmate\n\n**Modern**, **opinionated**, and **gas optimized** building blocks for **smart contract development**.\n\n## Contracts\n\n```ml\nauth\n├─ Owned — \"Simple single owner authorization\"\n├─ Auth — \"Flexible and updatable auth pattern\"\n├─ authorities\n│  ├─ RolesAuthority — \"Role based Authority that supports up to 256 roles\"\n│  ├─ MultiRolesAuthority — \"Flexible and target agnostic role based Authority\"\ntokens\n├─ WETH — \"Minimalist and modern Wrapped Ether implementation\"\n├─ ERC20 — \"Modern and gas efficient ERC20 + EIP-2612 implementation\"\n├─ ERC721 — \"Modern, minimalist, and gas efficient ERC721 implementation\"\n├─ ERC1155 — \"Minimalist and gas efficient standard ERC1155 implementation\"\n├─ ERC4626 — \"Minimal ERC4626 tokenized Vault implementation\"\n├─ ERC6909 — \"Minimalist and gas efficient standard ERC6909 implementation\"\nutils\n├─ SSTORE2 — \"Library for cheaper reads and writes to persistent storage\"\n├─ CREATE3 — \"Deploy to deterministic addresses without an initcode factor\"\n├─ LibString — \"Library for creating string representations of uint values\"\n├─ SafeCastLib — \"Safe unsigned integer casting lib that reverts on overflow\"\n├─ SignedWadMath — \"Signed integer 18 decimal fixed point arithmetic library\"\n├─ MerkleProofLib — \"Efficient merkle tree inclusion proof verification library\"\n├─ ReentrancyGuard — \"Gas optimized reentrancy protection for smart contracts\"\n├─ FixedPointMathLib — \"Arithmetic library with operations for fixed-point numbers\"\n├─ Bytes32AddressLib — \"Library for converting between addresses and bytes32 values\"\n├─ SafeTransferLib — \"Safe ERC20/ETH transfer lib that handles missing return values\"\n```\n\n## Safety\n\nThis is **experimental software** and is provided on an \"as is\" and \"as available\" basis.\n\nWhile each [major release has been audited](audits), these contracts are **not designed with user safety** in mind:\n\n- There are implicit invariants these contracts expect to hold.\n- **You can easily shoot yourself in the foot if you're not careful.**\n- You should thoroughly read each contract you plan to use top to bottom.\n\nWe **do not give any warranties** and **will not be liable for any loss** incurred through any use of this codebase.\n\n## Installation\n\nTo install with [**Foundry**](https://github.com/gakonst/foundry):\n\n```sh\nforge install transmissions11/solmate\n```\n\nTo install with [**Hardhat**](https://github.com/nomiclabs/hardhat) or [**Truffle**](https://github.com/trufflesuite/truffle):\n\n```sh\nnpm install solmate\n```\n\n## Acknowledgements\n\nThese contracts were inspired by or directly modified from many sources, primarily:\n\n- [Gnosis](https://github.com/gnosis/gp-v2-contracts)\n- [Uniswap](https://github.com/Uniswap/uniswap-lib)\n- [Dappsys](https://github.com/dapphub/dappsys)\n- [Dappsys V2](https://github.com/dapp-org/dappsys-v2)\n- [0xSequence](https://github.com/0xSequence)\n- [OpenZeppelin](https://github.com/OpenZeppelin/openzeppelin-contracts)\n","funding_links":[],"categories":["Solidity","Libraries","Libraries \u0026 Frameworks","By Language","dApps directory","We heard you like ERC20 implementations","Templates \u0026 Libraries","Starter Kits","区块链_智能合约","Smart Contract Frameworks","七、必备库（避免重复造轮子）"],"sub_categories":["Solidity","Smart Contract Templates","Smart Contract Starter Kits","管理面板","1. 安全核心库"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransmissions11%2Fsolmate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftransmissions11%2Fsolmate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransmissions11%2Fsolmate/lists"}