ethlocker / safe-contracts

Gnosis Safe allows secure management of blockchain assets.

Home Page:https://safe.gnosis.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gnosis Safe Contracts

npm version Build Status Coverage Status

Install

Install requirements with yarn:

yarn

Run all tests:

yarn build
yarn test

Deploy

Some contracts require that the Solidity compile target is at least petersburg (e.g. GnosisSafeProxyFactory and MultiSend). This is default since Solidity 0.5.5.

Note: The formal verification was performed using the contract compiled with solcjs 0.5.0.

This will deploy the contracts deterministically and verify the contracts on etherscan.

Preparation:

  • Set MNEMONIC in .env
  • Set INFURA_KEY in .env
yarn deploy-all <network>

This will perform the following steps

yarn build
yarn deploy --network <network>
yarn hardhat --network <network> etherscan-verify
yarn hardhat --network <network> local-verify

Verify contract

This command will use the deployment artifacts to compile the contracts and compare them to the onchain code

yarn hardhat --network <network> local-verify

This command will upload the contract source to Etherescan

yarn hardhat --network <network> etherscan-verify

Documentation

Audits/ Formal Verification

Security and Liability

All contracts are WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

License

All smart contracts are released under LGPL-3.0

About

Gnosis Safe allows secure management of blockchain assets.

https://safe.gnosis.io

License:GNU Lesser General Public License v3.0


Languages

Language:TypeScript 61.3%Language:Solidity 26.5%Language:JavaScript 12.0%Language:Shell 0.2%