Skip to content

garciatroisi/multisig-wallet

Repository files navigation

Multisig Wallet

Description

This smart contract implements a Multisig wallet. It allows a group of addresses to approve and execute fund transfers from the wallet.

Features

  • Multisignature: Requires approval from multiple addresses before executing a transfer.
  • Configurable Quorum: The minimum number of approvals required to execute a transfer is configurable.
  • Secure: Transfers cannot be executed until the required quorum is reached.

Usage

  1. Initial setup: Specify the list of addresses that can approve transfers and the required quorum into ignition/modules.Wallets.

  2. Deploy the contract: Deploy the contract on the network of your choice using the provided script:

npx hardhat ignition deploy ignition/modules/Wallets.js --network <your-network>
  1. Deposit funds: Funds can be deposited into the Multisig wallet by sending directly to the contract address.

  2. Create transfers: Wallet owners can create transfers by specifying the recipient, amount, and a description.

  3. Approve transfers: Owners can approve transfers created by other owners.

  4. Execute transfers: Once a transfer has been approved by the required number of owners, it can be executed to send the funds to the specified recipient.

Deploy using script

npx hardhat run --network <your-network> scripts/deploy.js

Ignition

npx hardhat ignition deploy ignition/modules/Wallets.js --network <your-network>

Verify

npx hardhat verify --network mumbai --constructor-args arguments.js <address>

Testing

This project includes automated tests using Hardhat and coverage to ensure the integrity of the smart contract.

To run the tests, make sure you have Hardhat installed and run the following command:

npx hardhat test

Coverage

npx hardhat coverage

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published