Git Product home page Git Product logo

scw's Introduction

Eigen Self-Custodial Wallet

Eigen SCW(Self-custodial Wallet) allows you:

  • Use multi-signature to manager your asset
  • Recover the owner by Social Recovery
  • Lockable
  • Payment Limitation
  • Integration with Mixer, ZKDEX, and other DeFi protocols

Implemented by Hardhat and OpenZeppelin, aims to be:

  • Upgradeable and Modular, controlled by DAO(Ongoing)
  • Security
  • Scalablity
  • Simplicity

Test

setup the rpc and account in .env or use npx hardhat node.

yarn build
yarn test --network localhost

Different operations' gas cost

After running 'yarn test --network localhost', there is a gas report of different operations' gas cost at the end of test result.Here are some operations' gas costs that we tested.

Operation 3 signers 5 signers 7 signers
flush 30229 30229 30229
triggerRecovery 76719 76719 76719
cancelRecovery 16253 16253 16253
executeRecovery 40939 40939 40939
lock 66395 72917 77241
unlock 44453 50975 55299
replaceSigner 53401 59923 64235
removeSigner 51572 61995 66319
addSigner 89543 97559 98697
executeTransaction 142153 142165 142165
executeLargeTransaction 22729 22729 22729
multicall 145524 167230 181109

Verify contract on etherscan

You need to add the following Etherscan config to your hardhat.config.js file:

module.exports = {
  networks: {
    mainnet: { ... }
  },
  etherscan: {
    // Your API key for Etherscan
    // Obtain one at https://etherscan.io/
    apiKey: "YOUR_ETHERSCAN_API_KEY"
  }
};

Alternatively you can specify more than one block explorer API key, by passing an object under the apiKey property, see Multiple API keys and alternative block explorers. Lastly, run the verify task, passing the address of the contract, the network where it's deployed, and the constructor arguments that were used to deploy it (if any):

npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1"

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.