Giter VIP home page Giter VIP logo

ehsomma / multisigwallet Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 381 KB

This project implements a "multi signature wallet" which, through a Solidity smart contract that allows the creation of a wallet defining a number of owners addresses and a number of confirmations required by these owners to be able to execute a transaction.

License: MIT License

Solidity 100.00%
solidity multisig-wallets multisignature solhint slither

multisigwallet's Introduction

MultiSig Wallet

.github/workflows/ci.yml Coverage Status Solhint Slither GitHub Issues License

This project implements a "multi signature wallet" which, through a Solidity smart contract that allows the creation of a wallet defining a number of owners addresses and a number of confirmations required by these owners to be able to execute a transaction. Only if the required number of owners confirm the pending transaction, it will be executed.

Technical features and used tools

  • Solidity
  • Truffle
  • Ganache-cli
  • Unit/Integration tests
  • Chai (expect)
  • truffle-assertions (revert assertions)
  • openzeppelin/test-helpers (time and block manipulation)
  • eth-gas-reporter
  • solidity-coverage (code coverage)
  • coveralls (code coverage report)
  • solhint (linter for Solidity)
  • slither (vulnerability analyzer)
  • Full contract documentation (NatSpec Format)
  • Solidity coding conventions

Main functions of the Wallet

  • Create a Wallet with a list of owners an the amount of required confirmations.
  • Submit a transaction.
  • Confirm the pending transaction (by the amount of required owners).
  • Revoke an approved transaction.
  • Execute the confirmed transaction.

NOTE: For more information see code comments in MultiSigWallet.sol.

How to use/try

See migration file 2_contracts_migration.js and test file multisigwallet.test.js for more information.

  1. Deploy the contract with 3 owners addresses and 2 confirmation required to execute.
  2. Submit a transaction from one of the owners account.
  3. Confirm the pending transaction with two of the owners accounts.
  4. Execute a transaction from one of the owners account.

multisigwallet's People

Contributors

ehsomma avatar

Watchers

 avatar  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.