-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump to 2.3.0 - Drops! * Delete foundry.toml * Remove subgraph build * Remove subgraph config
- Loading branch information
1 parent
9dcdd63
commit 1087a8b
Showing
159 changed files
with
9,298 additions
and
14,488 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1,20 @@ | ||
subgraph/config/ | ||
# folders | ||
artifacts/ | ||
build/ | ||
cache/ | ||
coverage/ | ||
dist/ | ||
docs/ | ||
lib/ | ||
node_modules/ | ||
src/typechain/ | ||
subgraph/config/ | ||
subgraph/build/ | ||
subgraph/generated/ | ||
subgraph/graph-node/ | ||
versions/ | ||
deployments/ | ||
|
||
# files | ||
.solcover.js | ||
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 |
---|---|---|
@@ -1,32 +1,26 @@ | ||
extends: | ||
- eslint:recommended | ||
- plugin:@typescript-eslint/eslint-recommended | ||
- plugin:@typescript-eslint/recommended | ||
- prettier | ||
parser: "@typescript-eslint/parser" | ||
parserOptions: | ||
project: tsconfig.json | ||
plugins: | ||
- "@typescript-eslint" | ||
- "no-only-tests" | ||
- "simple-import-sort" | ||
- "unused-imports" | ||
root: true | ||
rules: | ||
"@typescript-eslint/no-floating-promises": | ||
- error | ||
- ignoreIIFE: true | ||
ignoreVoid: true | ||
"@typescript-eslint/no-inferrable-types": "off" | ||
"@typescript-eslint/no-unused-vars": | ||
- error | ||
- argsIgnorePattern: _ | ||
varsIgnorePattern: _ | ||
"sort-imports": | ||
- error | ||
- ignoreCase: true | ||
ignoreDeclarationSort: true | ||
"no-only-tests/no-only-tests": "error" | ||
"@typescript-eslint/no-floating-promises": "error" | ||
"@typescript-eslint/no-unused-vars": "off" # Replaced by the unused-imports plugin | ||
"unused-imports/no-unused-imports": "warn" | ||
"unused-imports/no-unused-vars": "warn" | ||
"no-only-tests/no-only-tests": "warn" | ||
"simple-import-sort/imports": "warn" | ||
"simple-import-sort/exports": "warn" | ||
overrides: | ||
- files: subgraph/**/*.ts | ||
rules: | ||
prefer-const: 0 | ||
"@typescript-eslint/ban-types": 0 | ||
"unused-imports/no-unused-vars": 0 | ||
|
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 @@ | ||
*.sol linguist-language=Solidity |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ node_modules | |
coverage | ||
coverage.json | ||
typechain-types | ||
typechain | ||
contracts-exposed | ||
|
||
#Hardhat files | ||
cache | ||
|
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 @@ | ||
[submodule "lib/forge-std"] | ||
path = lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std |
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,6 @@ | ||
{ | ||
"extension": ["ts"], | ||
"recursive": "test", | ||
"require": "ts-node/register/files", | ||
"timeout": 60000 | ||
} |
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,15 @@ | ||
{ | ||
"extends": "npm-package-json-lint-config-default", | ||
"rules": { | ||
"require-name": "error", | ||
"require-version": "off", | ||
"prefer-absolute-version-dependencies": "error", | ||
"prefer-alphabetical-peerDependencies": "error", | ||
"prefer-alphabetical-optionalDependencies": "error", | ||
"prefer-alphabetical-bundledDependencies": "error", | ||
"prefer-alphabetical-devDependencies": "error", | ||
"prefer-alphabetical-dependencies": "error", | ||
"version-format": "warning", | ||
"name-format": "error" | ||
} | ||
} |
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,28 @@ | ||
const shell = require("shelljs"); | ||
|
||
// The environment variables are loaded in hardhat.config.ts | ||
const mnemonic = process.env.MNEMONIC; | ||
if (!mnemonic) { | ||
throw new Error("Please set your MNEMONIC in a .env file"); | ||
} | ||
|
||
module.exports = { | ||
istanbulReporter: ["html"], | ||
onCompileComplete: async function (_config) { | ||
await run("typechain"); | ||
}, | ||
onIstanbulComplete: async function (_config) { | ||
// We need to do this because solcover generates bespoke artifacts. | ||
shell.rm("-rf", "./artifacts"); | ||
shell.rm("-rf", "./src/typechain"); | ||
}, | ||
providerOptions: { | ||
mnemonic, | ||
}, | ||
skipFiles: ["mocks", "test", "FNDMiddleware", "archive"], | ||
istanbulReporter: ["lcov", "html", "text-summary"], | ||
mocha: { | ||
fgrep: "[skip-on-coverage]", | ||
invert: true, | ||
}, | ||
}; |
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,5 @@ | ||
# folders | ||
.yarn/ | ||
build/ | ||
dist/ | ||
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
Oops, something went wrong.