Open-source Solidity libraries used in the SmarDex ecosystem.
To install with Foundry:
forge soldeer install @smardex-solidity-libraries~1To install with Hardhat:
npm install @smardex/solidity-librariesIf you want to contribute to this repository, create an issue explaining your problem or which improvement you would like to see added first. Mention that you are willing to open a pull request to solve the issue if that's the case.
Then, wait for maintainers to state on what to do with your issue.
If you contribute, any change of code must be thoroughly tested and requires one or more code reviews depending on its complexity.
The tests require that the test_utils binary is compiled using the Rust toolchain first.
Install rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shBuild the test utils:
cargo build --releasesrc
└─ HugeUint — "Uint512 implementation with basic math operations"The smart contracts and libraries in this repository are experimental and are provided as is.
While audits were conducted on projects implementing code from this repository, we cannot guarantee that no side effects can emerge when used with other code, or that it will not break with future Solidity versions.
This repository is inspired by or directly modified from many sources, primarily: