GithubHelp home page GithubHelp logo

pinkdiamond1 / eth-multisig-v2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitgo/eth-multisig-v2

0.0 1.0 0.0 306 KB

Multi-Sig Wallet v2, supporting original Wallet.sol methods with additional confirmAndExecute improvements to allow for single-transaction signing by multiple owners.

License: Apache License 2.0

HTML 0.71% JavaScript 44.46% CSS 0.46% Solidity 54.37%

eth-multisig-v2's Introduction

Ethereum MultiSig Wallet Contract

About

Multi-sig contract suitable for use in wallets.

Some of the features of the contract (WalletSimple.sol)

  1. Functions as a 2-of-3 multisig wallet for sending transactions.
  2. Support for synchronous (single transaction) approvals containing multiple signatures through the use of ecrecover.
  3. Can deploy Forwarder contracts so that a single wallet can have multiple receive addresses.
  4. Forwarder address contracts have the ability to flush funds that were sent to the address before the contract was created.
  5. ERC20 tokens can be flushed from the forwarder wallet to the main wallet with a single signature from any signer.
  6. ERC20 tokens and ether can be sent out from the main wallet through a multisig process.
  7. ‘Safe Mode’ can be set on a wallet contract that prevents ETH and ERC20 tokens from being sent anywhere other than to wallet signers

A test suite is included through the use of the truffle framework, providing coverage for methods in the wallet.

Installation

NodeJS 8.14.0 is recommended.

npm install

This installs truffle and an Ethereum test RPC client.

Wallet Solidity Contract

Find it at contracts/WalletSimple.sol

Running tests

The truffle framework will depend on the Web3 interface to a local Web3 Ethereum JSON-RPC. If you've followed the above steps, run the following to start testrpc.

npm run truffle-testrpc

You should verify that you are not already running geth, as this will cause the tests to run against that interface.

In a separate terminal window, run the following command to initiate the test suite, which will run against the RPC:

npm run truffle-test

eth-multisig-v2's People

Contributors

ottoallmendinger avatar bencxr avatar barathcj avatar capnmigraine avatar twtaylorbitgo avatar

Watchers

 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.