Skip to content

squi404/multisig-treasury-dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultiSig Treasury DApp — Ultimate

Production‑style multisig wallet: on‑chain confirmations + EIP‑712 meta‑confirm (relayer pays gas), ERC20/ETH execution via call, events/UI/scripts/tests, gas & coverage, and CI‑ready.

Arch

TL;DR

npm i
npm run node
npm run compile
npm run deploy  # writes frontend/deployment.json

Fund the wallet:

WALLET=<addr> npm run fund

Submit ETH tx:

WALLET=<addr> TO=<recipient> VALUE=0.1 npm run submit:eth

Submit ERC20 tx:

WALLET=<addr> TOKEN=<token> TO=<recipient> AMOUNT=100 npm run submit:erc20

Confirm/Execute in UI or CLI:

WALLET=<addr> TXID=0 npm run execute

Open UI:

npm run serve
# http://localhost:3000

UI

Features

  • Owners/threshold, per‑tx confirmations, revoke, auto‑execute on threshold.
  • ERC20/ETH support via generic to/value/data + call.
  • EIP‑712 typed confirmBySig: sign {txId,wallet,txHash,deadline} and relayer submits.
  • Minimal UI (ethers UMD): submit/confirm/revoke/execute, meta‑sign + relay.
  • Scripts for quick scenarios; tests, gas, coverage; optional relay server.

Meta‑Confirm (EIP‑712)

Relay server (optional):

cp .env.example .env  # insert RELAYER_KEY
npm run relay:server  # GET /health

In UI: prepare & sign → send to relayer.
Relay

Tests / Reports

npm test
REPORT_GAS=true npm run gas
npm run coverage

Tests Gas

Structure

contracts/   MultiSigWallet.sol, MockERC20.sol
scripts/     deploy, fund, submit_eth, submit_erc20, execute
frontend/    index.html + deployment.json
server/      Express relay (confirmBySig)
test/        multisig.test.js

Educational demo. Audit before production.

About

Secure, production-style multisig wallet for teams: on-chain confirmations + EIP-712 meta-confirm (relayer pays gas), ETH/ERC-20 execution via call, minimal UI, one-click scripts, and full test/gas/coverage setup. Built to be readable, auditable, and portfolio-ready.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors