Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boringcrypto/BoringSolidity
Basic Solidity Contracts and Libraries to make life easier
https://github.com/boringcrypto/BoringSolidity
Last synced: about 1 month ago
JSON representation
Basic Solidity Contracts and Libraries to make life easier
- Host: GitHub
- URL: https://github.com/boringcrypto/BoringSolidity
- Owner: boringcrypto
- Created: 2021-01-08T05:54:32.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-09T09:22:02.000Z (over 2 years ago)
- Last Synced: 2024-10-28T00:02:53.219Z (about 2 months ago)
- Language: JavaScript
- Size: 566 KB
- Stars: 373
- Watchers: 5
- Forks: 141
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Library-of-Ethereum - Boring Solidity - BoringSolidity is a collection of general purpose Solidity contracts that have been reasonably optimized, reviewed and tested. Still, they come with no guarantees and are provided as-is. (Smart Contracts / Solidity)
- awesome-web3-tools-and-dapps - Boring Solidity - Discover a diverse assortment of versatile solidity contracts and libraries. (dApps directory / Smart Contract Templates)
README
# BoringSolidity
[![Coverage Status](https://coveralls.io/repos/github/boringcrypto/BoringSolidity/badge.svg?branch=master)](https://coveralls.io/github/boringcrypto/BoringSolidity?branch=master)
BoringSolidity is a collection of general purpose Solidity contracts that have been reasonably optimized, reviewed and tested. Still, they come with no guarantees and are provided as-is.
## BoringOwnable
This is a combination of the well known Ownable and Claimable patterns. It's streamlined to reduce the amount of functions exposed for gas savings.
## BoringERC20
This is not a full ERC20 implementation, as it's missing totalSupply. It's optimized for minimal gas usage while remaining easy to read.
## BoringFactory
Simple universal factory to create minimal proxies from masterContracts.
## BoringBatchable
Extension to be added to any contract to allow calling multiple functions on the contract in a batch (a single EOA call).
The EIP 2612 permit proxy function is included because it's common to approve spending before calling other functions on a contract.## BoringRebase
The Rebase struct and RebaseLibary make it easy to track amounts and shares in a single storage slot. This will limit amounts and shares to 128 bits,
but if used for token balances, this should be enough for pretty much all tokens that have real use.## Licence
MIT