Skip to content

Commit 71c0625

Browse files
committed
bill broker
1 parent 9cdc695 commit 71c0625

37 files changed

Lines changed: 5859 additions & 35 deletions

.github/workflows/nightly.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,12 @@ jobs:
3434
with:
3535
github-token: ${{ secrets.GITHUB_TOKEN }}
3636
path-to-lcov: "./spot-contracts/coverage/lcov.info"
37+
38+
- name: spot-vaults run coverage
39+
run: yarn workspace @ampleforthorg/spot-vaults run coverage
40+
41+
- name: spot-vaults report coverage
42+
uses: coverallsapp/[email protected]
43+
with:
44+
github-token: ${{ secrets.GITHUB_TOKEN }}
45+
path-to-lcov: "./spot-vaults/coverage/lcov.info"

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7-
branches: [main]
7+
branches: [main,dev]
88

99
jobs:
1010
test:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"packageManager": "[email protected]",
99
"workspaces": [
1010
"spot-contracts",
11-
"spot-subgraph"
11+
"spot-subgraph",
12+
"spot-vaults"
1213
]
1314
}

spot-vaults/.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
artifacts
3+
cache
4+
coverage

spot-vaults/.eslintrc.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
module.exports = {
2+
env: {
3+
browser: false,
4+
es2021: true,
5+
mocha: true,
6+
node: true,
7+
},
8+
plugins: ["@typescript-eslint", "no-only-tests", "unused-imports"],
9+
extends: ["standard", "plugin:prettier/recommended", "plugin:node/recommended"],
10+
parser: "@typescript-eslint/parser",
11+
parserOptions: {
12+
ecmaVersion: 12,
13+
warnOnUnsupportedTypeScriptVersion: false,
14+
},
15+
rules: {
16+
"node/no-unsupported-features/es-syntax": ["error", { ignores: ["modules"] }],
17+
"node/no-missing-import": [
18+
"error",
19+
{
20+
tryExtensions: [".ts", ".js", ".json"],
21+
},
22+
],
23+
"node/no-unpublished-import": [
24+
"error",
25+
{
26+
allowModules: [
27+
"hardhat",
28+
"ethers",
29+
"@openzeppelin/upgrades-core",
30+
"chai",
31+
"@nomicfoundation/hardhat-ethers",
32+
"@nomicfoundation/hardhat-chai-matchers",
33+
"@nomicfoundation/hardhat-verify",
34+
"@nomicfoundation/hardhat-toolbox",
35+
"@openzeppelin/hardhat-upgrades",
36+
"solidity-coverage",
37+
"hardhat-gas-reporter",
38+
"dotenv",
39+
],
40+
},
41+
],
42+
"no-only-tests/no-only-tests": "error",
43+
"unused-imports/no-unused-imports": "error",
44+
"unused-imports/no-unused-vars": ["warn", { vars: "all" }],
45+
},
46+
};

spot-vaults/.eslintrc.yaml

Whitespace-only changes.

spot-vaults/.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
node_modules
2+
.env
3+
4+
# Hardhat files
5+
/cache
6+
/artifacts
7+
8+
# TypeChain files
9+
/typechain
10+
/typechain-types
11+
12+
# solidity-coverage files
13+
/coverage
14+
/coverage.json

spot-vaults/.prettierignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# folders
2+
artifacts/
3+
build/
4+
cache/
5+
coverage/
6+
dist/
7+
lib/
8+
node_modules/
9+
typechain/
10+
11+
# files
12+
coverage.json

spot-vaults/.prettierrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": true,
4+
"endOfLine":"auto",
5+
"printWidth": 90,
6+
"singleQuote": false,
7+
"tabWidth": 2,
8+
"trailingComma": "all",
9+
"overrides": [
10+
{
11+
"files": "*.sol",
12+
"options": {
13+
"tabWidth": 4
14+
}
15+
}
16+
]
17+
}

spot-vaults/.solcover.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
skipFiles: ["_test", "_interfaces", "_external"],
3+
};

0 commit comments

Comments
 (0)