Skip to content

Commit f5983b5

Browse files
authored
Add audit report (#297)
1 parent 9b305a0 commit f5983b5

13 files changed

+33
-1452
lines changed

.env.sample

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
MNEMONIC=""
2+
# Used for infura based network
23
INFURA_KEY=""
4+
# Used for custom network
5+
NODE_URL=""
36
ETHERSCAN_API_KEY=""

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules/
33
.DS_Store
44
.zos.session
55
.openzeppelin/.session
6+
deployments/
67
env/
78
.env
89
bin/

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This will perform the following steps
4040

4141
```bash
4242
yarn build
43-
yarn deploy --network <network>
43+
yarn hardhat --network <network> deploy
4444
yarn hardhat --network <network> etherscan-verify
4545
yarn hardhat --network <network> local-verify
4646
```
@@ -65,6 +65,7 @@ Documentation
6565

6666
Audits/ Formal Verification
6767
---------
68+
- [for Version 1.3.0 by G0 Group](docs/audit_1_3_0.md)
6869
- [for Version 1.2.0 by G0 Group](docs/audit_1_2_0.md)
6970
- [for Version 1.1.1 by G0 Group](docs/audit_1_1_1.md)
7071
- [for Version 1.0.0 by Runtime Verification](docs/rv_1_0_0.md)
315 KB
Binary file not shown.

docs/audit_1_3_0.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Audit Results
2+
3+
##### Auditor
4+
* G0 Group (https://github.com/g0-group)
5+
* Adam Kolář (@adamkolar)
6+
7+
##### Notes
8+
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.
9+
10+
##### Files
11+
* [Audit Report 1.3.0](Gnosis_Safe_Audit_Report_1_3_0.pdf)

hardhat.config.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import "@nomiclabs/hardhat-waffle";
33
import "solidity-coverage";
44
import "hardhat-deploy";
55
import dotenv from "dotenv";
6-
import type { HttpNetworkUserConfig } from "hardhat/types";
6+
import type { HardhatUserConfig, HttpNetworkUserConfig } from "hardhat/types";
77
import yargs from "yargs";
88

99
const argv = yargs
@@ -16,7 +16,7 @@ const argv = yargs
1616

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

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

47-
export default {
47+
const userConfig: HardhatUserConfig = {
4848
paths: {
4949
artifacts: "build/artifacts",
5050
cache: "build/cache",
@@ -103,3 +103,10 @@ export default {
103103
apiKey: ETHERSCAN_API_KEY,
104104
},
105105
};
106+
if (NODE_URL) {
107+
userConfig.networks!!.custom = {
108+
...sharedNetworkConfig,
109+
url: NODE_URL,
110+
}
111+
}
112+
export default userConfig

0 commit comments

Comments
 (0)