Skip to content

Commit

Permalink
HardHat
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlilley committed Jan 9, 2021
1 parent bc484dc commit 56d40d1
Show file tree
Hide file tree
Showing 67 changed files with 7,384 additions and 2,564 deletions.
12 changes: 12 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ALCHEMY_API_KEY=
ETHERSCAN_API_KEY=
COINMARKETCAP_API_KEY=
TENDERLY_PROJECT=
TENDERLY_USERNAME=
REPORT_GAS=
INFURA_API_KEY=
PRIVATE_KEY=
HARDHAT_NETWORK=hardhat
HARDHAT_MAX_MEMORY=4096
HARDHAT_SHOW_STACK_TRACES=true
HARDHAT_VERBOSE=true
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.sol linguist-language=Solidity
* text=auto
*.sol linguist-language=Solidity
14 changes: 12 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
/node_modules/
/build/
artifacts/
build/
cache/
coverage/
deployments/
node_modules/
package-lock.json
.coverage_artifacts/
.coverage_contracts/
coverage/
coverage.json
.env
4 changes: 4 additions & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
require: "hardhat/register",
timeout: 20000,
};
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v14.15.1
23 changes: 23 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
overrides: [
// {
// files: "*.sol",
// options: {
// bracketSpacing: false,
// printWidth: 145,
// tabWidth: 4,
// useTabs: false,
// singleQuote: false,
// explicitTypes: "always",
// },
// },
{
files: "*.js",
options: {
printWidth: 145,
semi: false,
trailingComma: "es5",
},
},
],
}
13 changes: 13 additions & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
norpc: true,
testCommand: "npm test",
compileCommand: "npm run compile",
skipFiles: ["mocks/", "interfaces/", "uniswapv2/"],
providerOptions: {
default_balance_ether: "10000000000000000000000000",
},
mocha: {
fgrep: "[skip-on-coverage]",
invert: true,
},
}
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "hardhat node",
"skipFiles": ["<node_internals>/**"],
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/hardhat",
"args": ["node"],
"cwd": "${workspaceFolder}"
}
]
}
19 changes: 19 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"mochaExplorer.files": "test/**/*.{j,t}s",
"mochaExplorer.fullTrace": true,
"mochaExplorer.exit": true,
"solidity.linter": "solhint",
"solidity.enableLocalNodeCompiler": false,
"solidity.compileUsingRemoteVersion": "v0.6.12+commit.27d51765",
"solidity.packageDefaultDependenciesContractsDirectory": "",
"solidity.enabledAsYouTypeCompilationErrorCheck": true,
"solidity.validationDelay": 1500,
"solidity.packageDefaultDependenciesDirectory": "node_modules",
"solidity-va.deco.statevars": true,
"solidity-va.preview.markdown": false,
}
28 changes: 17 additions & 11 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) 2020 Chef Nomi <[email protected]>
Copyright (c) 2020 SushiSwap

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

0. You just DO WHAT THE FUCK YOU WANT TO.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ https://app.sushiswap.org. Feel free to read the code. More details coming soon.

## License

WTFPL
MIT
Loading

0 comments on commit 56d40d1

Please sign in to comment.