Common Solidity smart contract implementations, utilities, and examples for learning, experimentation, and reuse.
- Simple Shared Wallet
Example of a wallet contract allowing multiple users to share and manage funds. - _Simple Contracts
Basic Solidity contract samples to illustrate core language features. - .gitignore
Standard ignore file for Solidity/Node projects.
-
Clone the repository
git clone https://github.com/RegoDefies/SmartContracts-Commons.git cd SmartContracts-Commons -
Install dependencies (if using Hardhat/Truffle in your environment)
npm install
-
Compile contracts
npx hardhat compile
or
truffle compile
-
Run tests
npx hardhat testor
truffle test
- Educational material for Solidity learners
- Reference implementations for quick prototyping
- Commons library for experimenting with smart contract design patterns
Feel free to fork this repo, submit PRs, or open issues with ideas for new reusable contracts.
This repository is licensed under the MIT License — see LICENSE for details.