Skip to content

Commit

Permalink
Merge pull request #5 from 0xJurassicPunk/config-changes
Browse files Browse the repository at this point in the history
chore: Config changes
  • Loading branch information
0xJurassicPunk committed Mar 22, 2022
2 parents 8c089bc + d38f84f commit b60a982
Show file tree
Hide file tree
Showing 16 changed files with 479 additions and 1,344 deletions.
17 changes: 17 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"env": {
"browser": false,
"es2021": true,
"mocha": true,
"node": true
},
"plugins": ["@typescript-eslint"],
"extends": ["standard", "plugin:prettier/recommended", "plugin:node/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"node/no-unsupported-features/es-syntax": ["error", { "ignores": ["modules"] }]
}
}
24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ node_modules
coverage
coverage.json
typechain
.DS_Store

# Hardhat files
cache
artifacts
abis/

# Others
lib
lib
22 changes: 18 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
hardhat.config.ts
scripts
test
node_modules
.env
.env*
coverage
coverage.json
typechain

# Hardhat files
cache
.env*
artifacts
abis/

# Others
lib
.DS_Store

hardhat.config.ts
contracts/test
test/
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
"printWidth": 120
}
11 changes: 11 additions & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
silent: true,
measureStatementCoverage: true,
measureFunctionCoverage: true,
skipFiles: [
"interfaces",
"test",
"tokenStaking/OperatorControllerForRewards.sol",
],
configureYulOptimizer: true,
};
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 LooksRare

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:

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.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

This project contains all smart contracts used for staking and other token economics (excluding the airdrop contract).

It is a hybrid Hardhat repo that also requires Forge to run Solidity tests powered by the ds-test library.
It is a hybrid Hardhat repo that also requires Forge to run Solidity tests powered by the [ds-test library](https://github.com/dapphub/ds-test/).

To install Forge, please follow the instructions [here](https://onbjerg.github.io/foundry-book/getting-started/installation.html#using-foundryup)
To install Forge, please follow the instructions [here](https://onbjerg.github.io/foundry-book/getting-started/installation.html#using-foundryup).

## Tests

TypeScript tests are included in the test folder at the root of this repo.
TypeScript tests are included in the `test` folder at the root of this repo.

Solidity tests are included in the test folder in the contracts folder.
Solidity tests are included in the `test` folder in the `contracts` folder.

## Example of Forge commands

Expand Down
Loading

0 comments on commit b60a982

Please sign in to comment.