{"id":18189705,"url":"https://github.com/dl-solarity/solidity-lib","last_synced_at":"2025-05-15T20:07:39.406Z","repository":{"id":37605082,"uuid":"488189062","full_name":"dl-solarity/solidity-lib","owner":"dl-solarity","description":"Solarity Solidity Library","archived":false,"fork":false,"pushed_at":"2025-05-02T09:54:13.000Z","size":2221,"stargazers_count":207,"open_issues_count":4,"forks_count":26,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-02T10:30:34.665Z","etag":null,"topics":["cryptography","ethereum","library","smart-contracts","solarity","solidity","zkp"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/@solarity/solidity-lib","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dl-solarity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-03T11:49:01.000Z","updated_at":"2025-05-02T09:51:57.000Z","dependencies_parsed_at":"2023-11-06T10:46:10.444Z","dependency_job_id":"30676fe0-f349-42f3-a392-b77f5ea9bdfe","html_url":"https://github.com/dl-solarity/solidity-lib","commit_stats":{"total_commits":231,"total_committers":17,"mean_commits":"13.588235294117647","dds":0.5714285714285714,"last_synced_commit":"ceb1e347c56c335a7e680e7c224cf569cc2b37d4"},"previous_names":["dl-solarity/solidity-lib","dl-solidity-library/dev-modules"],"tags_count":58,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dl-solarity%2Fsolidity-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dl-solarity%2Fsolidity-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dl-solarity%2Fsolidity-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dl-solarity%2Fsolidity-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dl-solarity","download_url":"https://codeload.github.com/dl-solarity/solidity-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414501,"owners_count":22067272,"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":["cryptography","ethereum","library","smart-contracts","solarity","solidity","zkp"],"created_at":"2024-11-03T04:03:49.574Z","updated_at":"2025-05-15T20:07:34.291Z","avatar_url":"https://github.com/dl-solarity.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://github.com/dl-solarity/solidity-lib/assets/47551140/87464015-a97a-4f5b-a16f-b34c98eb6549)\n\n[![npm](https://img.shields.io/npm/v/@solarity/solidity-lib.svg)](https://www.npmjs.com/package/@solarity/solidity-lib)\n[![Coverage Status](https://codecov.io/gh/dl-solarity/solidity-lib/graph/badge.svg)](https://codecov.io/gh/dl-solarity/solidity-lib)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![GitPOAP Badge](https://public-api.gitpoap.io/v1/repo/dl-solarity/solidity-lib/badge)](https://www.gitpoap.io/gh/dl-solarity/solidity-lib)\n\n# Solarity Solidity Library\n\nSolidity contracts and utilities that **go far beyond mediocre solidity**.\n\n## Contracts\n\n```ml\ncontracts\n├── access\n│   ├── AMerkleWhitelisted — \"Whitelists via Merkle proofs\"\n│   ├── AMultiOwnable — \"Multiple owners with the equal access level\"\n│   ├── ARBAC — \"A powerful implementation of a true RBAC\"\n│   └── extensions\n│       └── ARBACGroupable — \"Groupable extension of ARBAC\"\n├── contracts—registry\n│   ├── AContractsRegistry — \"Reference registry implementation of ERC-6224 pattern\"\n│   ├── ADependant — \"Reference dependant implementation of ERC-6224 pattern\"\n│   └── pools\n│       ├── APoolContractsRegistry — \"Adaptation of ERC-6224 for factory-like contracts\"\n│       └── APoolFactory — \"Factory implementation for a pooled registry\"\n├── diamond\n│   ├── ADiamondStorage — \"The storage part of ERC-2535 diamond\"\n│   ├── Diamond — \"Revised ERC-2535 diamond implementation\"\n│   └── utils\n│       └── DiamondERC165 — \"ERC-165 introspection for diamond facets\"\n├── finance\n│   ├── compound—rate—keeper\n│   │   └── ACompoundRateKeeper — \"Complex percentage calculator used in lending protocols\"\n│   ├── staking\n│   │   ├── AStaking — \"Flexible rewards staking implementation\"\n│   │   └── AValueDistributor — \"Efficient distribution algorithm implementation\"\n│   └── vesting\n│       └── AVesting — \"Linear and exponential vesting implementation\"\n├── libs\n│   ├── arrays\n│   │   ├── ArrayHelper — \"Common functions to work with arrays\"\n│   │   ├── Paginator — \"Return array slices from view function\"\n│   │   └── SetHelper — \"Array abstraction over sets\"\n│   ├── bn\n│   │   └── U512 — \"A hyperoptimized uint512 implementation\"\n│   ├── crypto\n│   │   ├── ECDSA256 — \"ECDSA verification over any 256-bit curves\"\n│   │   ├── ECDSA384 — \"ECDSA verification over any 384-bit curves\"\n│   │   ├── ECDSA512 — \"ECDSA verification over any 512-bit curves\"\n│   │   └── RSASSAPSS — \"RSASSA-PSS verification with MGF1\"\n│   ├── data—structures\n│   │   ├── AvlTree — \"AVL tree implementation with an iterator traversal\"\n│   │   ├── CartesianMerkleTree — \"CMT reference implementation\"\n│   │   ├── DynamicSet — \"Set for strings and bytes\"\n│   │   ├── IncrementalMerkleTree — \"IMT implementation with flexible tree height\"\n│   │   ├── PriorityQueue — \"Max queue heap implementation\"\n│   │   ├── SparseMerkleTree — \"SMT optimized implementation\"\n│   │   └── memory\n│   │       └── Vector — \"A pushable memory array\"\n│   ├── utils\n│   │   ├── DecimalsConverter — \"Simplify interaction with ERC-20 decimals\"\n│   │   ├── MemoryUtils — \"Functions for memory manipulation\"\n│   │   ├── ReturnDataProxy — \"Bypass extra returndata copy when returning data\"\n│   │   └── Typecaster — \"Cast between various Solidity types\"\n│   └── zkp\n│       ├── Groth16VerifierHelper — \"Simplify integration with Groth16 proofs\"\n│       └── PlonkVerifierHelper — \"Simplify integration with Plonk proofs\"\n├── oracles\n│   ├── AUniswapV2Oracle — \"Uniswap V2 oracle with custom TWAP\"\n│   └── UniswapV3Oracle — \"Uniswap V3 oracle with a clean interface\"\n├── proxy\n│   └── adminable\n│       ├── AdminableProxy — \"A slight modification of a transparent proxy\"\n│       └── AdminableProxyUpgrader — \"A slight modification of a proxy admin\"\n├── tokens\n│   └── ASBT — \"A minimal implementation of an SBT\"\n├── utils\n│   ├── ABlockGuard — \"Protect against flashloans\"\n│   └── Globals — \"Some commonly used constants\"\n├── presets — \"Presets for the library contracts\"\n├── interfaces — \"Interfaces for the library contracts\"\n└── mock — \"Mocks for testing purposes\"\n```\n\nBuilt with courage and aspiration to perfection.\n\n\u003e [!TIP]\n\u003e The library is designed to work cohesively with [hardhat-zkit](https://github.com/dl-solarity/hardhat-zkit) and [circom-lib](https://github.com/dl-solarity/circom-lib) packages.\n\n## Installation\n\n```bash\nnpm install @solarity/solidity-lib\n```\n\nThe latest stable version is always in the `master` branch.\n\n## Documentation\n\nCheck out the project's [documentation](https://docs.solarity.dev) with broad explanations and usage examples of every contract. Full `natspec` guides are also available in the source code.\n\n## Contribution\n\nWe are open to any mind-blowing ideas! Please take a look at our [contribution guidelines](https://docs.solarity.dev/docs/getting-started/contribution/how-to-contribute) to get involved.\n\n## License\n\nThe library is released under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdl-solarity%2Fsolidity-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdl-solarity%2Fsolidity-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdl-solarity%2Fsolidity-lib/lists"}