Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cryptofinlabs/cryptofin-solidity
A collection of Solidity libraries for building secure and gas-efficient smart contracts on Ethereum.
https://github.com/cryptofinlabs/cryptofin-solidity
ethereum gas library solidity
Last synced: 3 months ago
JSON representation
A collection of Solidity libraries for building secure and gas-efficient smart contracts on Ethereum.
- Host: GitHub
- URL: https://github.com/cryptofinlabs/cryptofin-solidity
- Owner: cryptofinlabs
- License: mit
- Created: 2018-06-06T20:21:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-26T21:28:41.000Z (over 5 years ago)
- Last Synced: 2024-03-29T05:25:23.018Z (8 months ago)
- Topics: ethereum, gas, library, solidity
- Language: Solidity
- Homepage:
- Size: 162 KB
- Stars: 89
- Watchers: 8
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- DeFi-Developer-Road-Map - cryptofin-solidity - A collection of Solidity libraries for building secure and gas-efficient smart contracts on Ethereum. (Roadmap)
README
# CryptoFin Solidity
A collection of Solidity libraries, with an initial focus on arrays.## [Documentation](https://cryptofinlabs.github.io/cryptofin-solidity/)
Documentation is generated from Natspec.## Quickstart
npm install --save cryptofin-solidity
### Use it in a project
import "cryptofin-solidity/contracts/array-utils/AddressArrayUtils.sol";
contract Contract {
using AddressArrayUtils for address[];function containsDeadBeef(address[] memory addresses)
returns (bool)
{
return addresses.contains(address(0xdeadbeef));
}}
## Contributing
If you'd like to contribute, this library is in need of:- More functionality
- More tests
- [Other open feature requests](https://github.com/cryptofinlabs/cryptofin-solidity/labels/enhancement)## v0.0.x
This library is still relatively new and may have breaking changes in the future.