npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

oz-custom

v1.1.9-alpha-1

Published

Custom OpenZeppelin Contracts for minimal gas cost

Downloads

109

Readme

custom-sol

Custom-sol is a collection of Solidity contract snippets and examples for use in Ethereum blockchain development. It includes a variety of contracts for common use cases, such as ERC20 tokens, crowdsales, and voting systems, as well as more specialized contracts for things like on-chain random number generation and multisignature wallets.

The contracts in this repository are intended to be modular and easy to use, with extensive comments and documentation to help developers understand how each contract works. They are also thoroughly tested using Solidity's built-in testing features and continuous integration tools to ensure that they are of high quality and ready for use in production environments.

Internal Modules

The contracts folder contains the following internal modules:

  • BasicToken.sol: A basic ERC20 token contract.
  • Crowdsale.sol: A contract for conducting crowdsales of tokens.
  • Random.sol: A contract for generating random numbers on-chain.
  • Voting.sol: A contract for conducting votes using ERC20 tokens as votes.
  • MultiSigWallet.sol: A multisignature wallet contract that allows multiple parties to control the funds in the wallet.

Getting Started

To get started using the contracts in this repository, you will need to have a basic understanding of Solidity and the Ethereum blockchain. You will also need to install the necessary tools for testing and deploying contracts, such as Yarn and Hardhat.

Once you have your environment set up, you can install the necessary dependencies by running the following command in the root directory of the repository:

yarn

Next, you can compile the contracts by running the following command:

yarn compile

This will compile the contracts and output the artifacts to the build/contracts directory.

You can then use a tool like Truffle to test and deploy the contracts to the Ethereum blockchain.

Contributing

We welcome contributions to custom-sol from the community! If you have a contract snippet or example that you think would be useful to others, we encourage you to submit a pull request. Please make sure to follow our contribution guidelines and to thoroughly test your changes before submitting.

License

Custom-sol is released under the MIT License. See the LICENSE file for more information.