-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bill broker * BB Internal audit fixes (#210) * internal audit fixes * code review fixes * Update spot-vaults/contracts/_interfaces/BillBrokerErrors.sol Co-authored-by: Brandon Iles <brandon@fragments.org> --------- Co-authored-by: Brandon Iles <brandon@fragments.org> --------- Co-authored-by: Brandon Iles <brandon@fragments.org>
- Loading branch information
1 parent
23cf94d
commit d1794f8
Showing
38 changed files
with
6,772 additions
and
1,100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
branches: [main,dev] | ||
|
||
jobs: | ||
test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16 | ||
20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
artifacts | ||
cache | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
module.exports = { | ||
env: { | ||
browser: false, | ||
es2021: true, | ||
mocha: true, | ||
node: true, | ||
}, | ||
plugins: ["@typescript-eslint", "no-only-tests", "unused-imports"], | ||
extends: ["standard", "plugin:prettier/recommended", "plugin:node/recommended"], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
warnOnUnsupportedTypeScriptVersion: false, | ||
}, | ||
rules: { | ||
"node/no-unsupported-features/es-syntax": ["error", { ignores: ["modules"] }], | ||
"node/no-missing-import": [ | ||
"error", | ||
{ | ||
tryExtensions: [".ts", ".js", ".json"], | ||
}, | ||
], | ||
"node/no-unpublished-import": [ | ||
"error", | ||
{ | ||
allowModules: [ | ||
"hardhat", | ||
"ethers", | ||
"@openzeppelin/upgrades-core", | ||
"chai", | ||
"@nomicfoundation/hardhat-ethers", | ||
"@nomicfoundation/hardhat-chai-matchers", | ||
"@nomicfoundation/hardhat-verify", | ||
"@nomicfoundation/hardhat-toolbox", | ||
"@openzeppelin/hardhat-upgrades", | ||
"solidity-coverage", | ||
"hardhat-gas-reporter", | ||
"dotenv", | ||
], | ||
}, | ||
], | ||
"no-only-tests/no-only-tests": "error", | ||
"unused-imports/no-unused-imports": "error", | ||
"unused-imports/no-unused-vars": ["warn", { vars: "all" }], | ||
}, | ||
}; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
node_modules | ||
.env | ||
|
||
# Hardhat files | ||
/cache | ||
/artifacts | ||
|
||
# TypeChain files | ||
/typechain | ||
/typechain-types | ||
|
||
# solidity-coverage files | ||
/coverage | ||
/coverage.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# folders | ||
artifacts/ | ||
build/ | ||
cache/ | ||
coverage/ | ||
dist/ | ||
lib/ | ||
node_modules/ | ||
typechain/ | ||
|
||
# files | ||
coverage.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"arrowParens": "avoid", | ||
"bracketSpacing": true, | ||
"endOfLine":"auto", | ||
"printWidth": 90, | ||
"singleQuote": false, | ||
"tabWidth": 2, | ||
"trailingComma": "all", | ||
"overrides": [ | ||
{ | ||
"files": "*.sol", | ||
"options": { | ||
"tabWidth": 4 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
skipFiles: ["_test", "_interfaces", "_external"], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "solhint:recommended", | ||
"rules": { | ||
"compiler-version": ["error", "^0.8.0"], | ||
"func-visibility": ["warn", { "ignoreConstructors": true }], | ||
"reason-string": ["warn", { "maxLength": 64 }], | ||
"not-rely-on-time": "off", | ||
"max-states-count": ["warn", 17] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# spot-vaults | ||
|
||
This repository is a collection of vault strategies leveraging the SPOT system. | ||
|
||
## Install | ||
|
||
```bash | ||
# Install project dependencies | ||
yarn | ||
``` | ||
|
||
## Testing | ||
|
||
```bash | ||
# Run all unit tests (compatible with node v12+) | ||
yarn test | ||
``` | ||
|
||
## Contribute | ||
|
||
To report bugs within this package, create an issue in this repository. | ||
For security issues, please contact dev-support@ampleforth.org. | ||
When submitting code ensure that it is free of lint errors and has 100% test coverage. | ||
|
||
```bash | ||
# Lint code | ||
yarn lint:fix | ||
|
||
# Run solidity coverage report (compatible with node v12) | ||
yarn coverage | ||
|
||
# Run solidity gas usage report | ||
yarn profile | ||
``` |
Oops, something went wrong.