Skip to content

Administer smart contracts with multi-sig approval process

License

Notifications You must be signed in to change notification settings

CoinbaseStablecoin/multi-sig-admin

Repository files navigation

Multi-Sig Admin Contract

This generic standalone contract can be used to retrofit a highly-configurable multi-sig approval process to any existing smart contract.

Setup

Requirements:

  • Node >= v12
  • Yarn
$ npm i -g yarn       # Install yarn if you don't already have it
$ yarn install        # Install dependencies
$ yarn setup          # Setup Git hooks

TypeScript type definition files for the contracts

To generate type definitions:

$ yarn compile && yarn typechain

Linting and Formatting

To check code for problems:

$ yarn typecheck      # Type-check TypeScript code
$ yarn lint           # Check JavaScript and TypeScript code
$ yarn lint --fix     # Fix problems where possible
$ yarn solhint        # Check Solidity code
$ yarn slither        # Run Slither

To auto-format code:

$ yarn fmt

Testing

First, make sure Ganache is running.

$ yarn ganache

Run all tests:

$ yarn test

To run tests in a specific file, run:

$ yarn test [path/to/file]

To run tests and generate test coverage, run:

$ yarn coverage

Copyright (c) 2020 Coinbase, Inc.

About

Administer smart contracts with multi-sig approval process

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published