Code Monkey home page Code Monkey logo

solady's Introduction

solady

NPM CI MIT License

Gas optimized Solidity snippets.

I'm sooooooOooooooooOoooOoooooooooooooooo...

Contracts

auth
├─ Ownable"Simple single owner authorization mixin"
├─ OwnableRoles"Simple single owner and multiroles authorization mixin"
utils
├─ MerkleProofLib"Library for verification of Merkle proofs"
├─ SignatureCheckerLib"Library for verification of ECDSA and ERC1271 signatures"
├─ ECDSA"Library for verification of ECDSA signatures"
├─ LibSort"Library for efficient sorting of memory arrays"
├─ LibPRNG"Library for generating psuedorandom numbers"
├─ Base64"Library for Base64 encoding and decoding"
├─ SSTORE2"Library for cheaper reads and writes to persistent storage"
├─ CREATE3"Deploy to deterministic addresses without an initcode factor"
├─ LibRLP"Library for computing contract addresses from their deployer and nonce"
├─ LibBit"Library for bit twiddling operations"
├─ Clone"Class with helper read functions for clone with immutable args"
├─ LibClone"Minimal proxy library"
├─ LibString"Library for converting numbers into strings and other string operations"
├─ LibBitmap"Library for mapping integers to single bit booleans"
├─ LibBytemap"Library for mapping integers to 8 bit unsigned integers"
├─ Multicallable"Contract that enables a single call to call multiple methods on itself"
├─ SafeTransferLib"Safe ERC20/ETH transfer lib that handles missing return values"
├─ DynamicBufferLib"Library for buffers with automatic capacity resizing"
├─ FixedPointMathLib"Arithmetic library with operations for fixed-point numbers"
├─ SafeCastLib"Library for integer casting that reverts on overflow"
└─ DateTimeLib"Library for date time operations"

Contributing

This repository serves as a laboratory for cutting edge snippets that may be merged into Solmate.

Feel free to make a pull request.

Do refer to the contribution guidelines for more details.

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.

Installation

To install with Foundry:

forge install vectorized/solady

To install with Hardhat or Truffle:

npm install solady

Acknowledgements

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

solady's People

Contributors

vectorized avatar atarpara avatar z0r0z avatar rogerpodacter avatar outdoteth avatar 0xkitetsu-dinesh avatar jorgeatpaladin avatar philogy avatar

Stargazers

Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.