Skip to content

Commit

Permalink
Add audit report (safe-global#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmeissner authored Apr 13, 2021
1 parent 9b305a0 commit f5983b5
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 1,452 deletions.
3 changes: 3 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
MNEMONIC=""
# Used for infura based network
INFURA_KEY=""
# Used for custom network
NODE_URL=""
ETHERSCAN_API_KEY=""
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules/
.DS_Store
.zos.session
.openzeppelin/.session
deployments/
env/
.env
bin/
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This will perform the following steps

```bash
yarn build
yarn deploy --network <network>
yarn hardhat --network <network> deploy
yarn hardhat --network <network> etherscan-verify
yarn hardhat --network <network> local-verify
```
Expand All @@ -65,6 +65,7 @@ Documentation

Audits/ Formal Verification
---------
- [for Version 1.3.0 by G0 Group](docs/audit_1_3_0.md)
- [for Version 1.2.0 by G0 Group](docs/audit_1_2_0.md)
- [for Version 1.1.1 by G0 Group](docs/audit_1_1_1.md)
- [for Version 1.0.0 by Runtime Verification](docs/rv_1_0_0.md)
Expand Down
Binary file added docs/Gnosis_Safe_Audit_Report_1_3_0.pdf
Binary file not shown.
11 changes: 11 additions & 0 deletions docs/audit_1_3_0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Audit Results

##### Auditor
* G0 Group (https://github.com/g0-group)
* Adam Kolář (@adamkolar)

##### Notes
The audit was performed on commit [4bfc0c8519f1893015d7edfd2c2780fca163c364](https://github.com/gnosis/safe-contracts/tree/4bfc0c8519f1893015d7edfd2c2780fca163c364) and contract changes until commit [9b305a0f80da7f1107d1181f52c844f089557d05](https://github.com/gnosis/safe-contracts/tree/9b305a0f80da7f1107d1181f52c844f089557d05) have been checked.

##### Files
* [Audit Report 1.3.0](Gnosis_Safe_Audit_Report_1_3_0.pdf)
13 changes: 10 additions & 3 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "@nomiclabs/hardhat-waffle";
import "solidity-coverage";
import "hardhat-deploy";
import dotenv from "dotenv";
import type { HttpNetworkUserConfig } from "hardhat/types";
import type { HardhatUserConfig, HttpNetworkUserConfig } from "hardhat/types";
import yargs from "yargs";

const argv = yargs
Expand All @@ -16,7 +16,7 @@ const argv = yargs

// Load environment variables.
dotenv.config();
const { INFURA_KEY, MNEMONIC, ETHERSCAN_API_KEY, PK, SOLIDITY_VERSION, SOLIDITY_SETTINGS } = process.env;
const { NODE_URL, INFURA_KEY, MNEMONIC, ETHERSCAN_API_KEY, PK, SOLIDITY_VERSION, SOLIDITY_SETTINGS } = process.env;

const DEFAULT_MNEMONIC =
"candy maple cake sugar pudding cream honey rich smooth crumble sweet treat";
Expand Down Expand Up @@ -44,7 +44,7 @@ import "./src/tasks/show_codesize"
const primarySolidityVersion = SOLIDITY_VERSION || "0.7.6"
const soliditySettings = !!SOLIDITY_SETTINGS ? JSON.parse(SOLIDITY_SETTINGS) : undefined

export default {
const userConfig: HardhatUserConfig = {
paths: {
artifacts: "build/artifacts",
cache: "build/cache",
Expand Down Expand Up @@ -103,3 +103,10 @@ export default {
apiKey: ETHERSCAN_API_KEY,
},
};
if (NODE_URL) {
userConfig.networks!!.custom = {
...sharedNetworkConfig,
url: NODE_URL,
}
}
export default userConfig
Loading

0 comments on commit f5983b5

Please sign in to comment.