{"id":13673955,"url":"https://github.com/axic/density","last_synced_at":"2025-04-23T16:25:06.225Z","repository":{"id":136619707,"uuid":"46228893","full_name":"axic/density","owner":"axic","description":"Density is a library or collection of useful modifiers and methods for Solidity.","archived":false,"fork":false,"pushed_at":"2016-09-07T01:46:42.000Z","size":3,"stargazers_count":29,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T16:25:03.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/axic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-11-15T17:53:30.000Z","updated_at":"2024-01-02T14:57:50.000Z","dependencies_parsed_at":"2024-01-15T22:01:09.428Z","dependency_job_id":null,"html_url":"https://github.com/axic/density","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axic%2Fdensity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axic%2Fdensity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axic%2Fdensity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axic%2Fdensity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axic","download_url":"https://codeload.github.com/axic/density/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250468901,"owners_count":21435559,"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-02T11:00:32.091Z","updated_at":"2025-04-23T16:25:06.201Z","avatar_url":"https://github.com/axic.png","language":null,"funding_links":[],"categories":["Solidity","Libraries"],"sub_categories":[],"readme":"# Density\n\n[![Join the chat at https://gitter.im/axic/density](https://badges.gitter.im/axic/density.svg)](https://gitter.im/axic/density?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nDensity is a library or collection of useful modifiers and methods for [Solidity](https://ethereum.github.io/solidity/), one of the high-level languages for the Ethereum virtual machine (EVM).\n\n## Usage\n\nEither import the whole library:\n```js\nimport \"density.sol\"\ncontract Test is owneronly, mortal {\n  function Test() {\n  }\n\n  function method(string arg) owneronly {\n    return strconcat(\"Hello \", arg);  \n  }\n}\n```\n\nOr just the parts you need:\n```js\nimport \"interfaces/token.sol\"\ncontract Test {\n  function Test() {\n  }\n\n  function method(address _address) {\n    IToken token = IToken(_address);\n    if (token.balanceOf(this) \u003e 1 ether)\n      // We are happy\n  }\n}\n```\n\n## Background\n\nInspiration came from different sources:\n* https://github.com/ethereum/wiki/wiki/Solidity-standard-library\n* https://github.com/ethereum/wiki/wiki/Standardized_Contract_APIs\n* https://github.com/ethereum/wiki/wiki/Solidity-Features\n\n\n## Contributing\n\nPlease add yourself as the author using the doxygen command *@author* in the appropriate source file.\n\n## License (MIT)\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy of\n    this software and associated documentation files (the \"Software\"), to deal in\n    the Software without restriction, including without limitation the rights to\n    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n    the Software, and to permit persons to whom the Software is furnished to do so,\n    subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n    FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n    COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n    IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxic%2Fdensity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxic%2Fdensity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxic%2Fdensity/lists"}