Skip to content

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

Notifications You must be signed in to change notification settings

ehsomma/multisigwallet

Repository files navigation

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published