0.0.5 • Published 3 months ago

soledge v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

NPM CI

Solidity snippets too edgy to be in Solady.

For a future of EVMs fragmentation, where the latest opcodes are not supported on most L2s for years even after their inception on mainnet.

Installation

To install with Foundry:

forge install vectorized/soledge

To install with Hardhat or Truffle:

npm install soledge

Contracts

The Solidity smart contracts are located in the src directory.

utils
├─ LibT — "Transient storage helper"
└─ ReentrancyGuard — "Reentrancy guard mixin"

Directories

src — "Solidity smart contracts"
test — "Foundry Forge tests"

Contributing

Feel free to make a pull request.

Guidelines same as Solady's.

Safety

This is experimental software and is provided on an "as is" and "as available" basis.

We do not give any warranties and will not be liable for any loss incurred through any use of this codebase.

While Soledge has been heavily tested, there may be parts that may exhibit unexpected emergent behavior when used with other code, or may break in future Solidity versions.

Please always include your own thorough tests when using Soledge to make sure it works correctly with your code.

Upgradability

Most contracts in Soledge are compatible with both upgradeable and non-upgradeable (i.e. regular) contracts.

Please call any required internal initialization methods accordingly.

EVM Compatibility

Some parts of Soledge may not be compatible with chains with partial EVM equivalence.

Please always check and test for compatibility accordingly.

Acknowledgements

This repository is inspired by or directly modified from many sources, primarily:

0.0.3

3 months ago

0.0.5

3 months ago

0.0.4

3 months ago

0.0.2

4 months ago

0.0.1

7 months ago