Git Product home page Git Product logo

solidity-lib's Introduction

npm Coverage Status License: MIT GitPOAP Badge

Solidity Library for Savvies by Distributed Lab

The library consists of modules and utilities that are built with a help of Openzeppelin Contracts (4.9.5) and go far beyond mediocre solidity.

  • Implementation of Contracts Registry pattern
  • Versatile access control smart contracts (Merkle whitelists, RBAC)
  • Enhanced and simplified Diamond pattern
  • Advanced data structures (Vector, PriorityQueue)
  • ZK-friendly Sparse Merkle Tree and Incremental Merkle Tree implementations
  • Flexible finance primitives (Staking, Vesting)
  • Robust UniswapV2 and UniswapV3 oracles
  • Utilities to ease work with ERC20 decimals, arrays, sets and ZK proofs

Overview

Installation

$ npm install @solarity/solidity-lib

The latest stable version is always in the master branch.

Documentation

Check out the project's documentation with broad explanations and usage examples of every module. Full natspec guides are also available in the source code.

Usage

You will find the smart contracts in the /contracts directory. Feel free to play around and check the project's structure.

Once the npm package is installed, one can use the library just like that:

pragma solidity ^0.8.4;

import {OwnableContractsRegistry} from "@solarity/solidity-lib/contracts-registry/presets/OwnableContractsRegistry.sol";

contract ContractsRegistry is OwnableContractsRegistry {
    . . .
}

Important

It is important to use the library as it is shipped and not copy-paste the code from untrusted sources.

Contribution

We are open to any mind-blowing ideas! Please take a look at our contribution guidelines to get involved.

License

The library is released under the MIT License.

solidity-lib's People

Contributors

arvolear avatar dovgopoly avatar volodymyrzolotukhin avatar joyyhack avatar hrom131 avatar kyrylr avatar aritkulova avatar mllwchrry avatar fedoken avatar armen-arakelian avatar tynukua 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.