Skip to content

Commit

Permalink
feat: update dependencies and linter config
Browse files Browse the repository at this point in the history
  • Loading branch information
vittominacori committed Jan 18, 2024
1 parent 303ae91 commit e16c77a
Show file tree
Hide file tree
Showing 8 changed files with 6,255 additions and 4,081 deletions.
2 changes: 1 addition & 1 deletion dist/ERC20Recover.dist.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

// Sources flattened with hardhat v2.19.2 https://hardhat.org
// Sources flattened with hardhat v2.19.4 https://hardhat.org



Expand Down
2 changes: 1 addition & 1 deletion dist/ERC721Recover.dist.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

// Sources flattened with hardhat v2.19.2 https://hardhat.org
// Sources flattened with hardhat v2.19.4 https://hardhat.org



Expand Down
2 changes: 1 addition & 1 deletion dist/TokenRecover.dist.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

// Sources flattened with hardhat v2.19.2 https://hardhat.org
// Sources flattened with hardhat v2.19.4 https://hardhat.org



Expand Down
2 changes: 1 addition & 1 deletion dist/TokenRecoverLegacy.dist.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

// Sources flattened with hardhat v2.19.2 https://hardhat.org
// Sources flattened with hardhat v2.19.4 https://hardhat.org



Expand Down
10,296 changes: 6,232 additions & 4,064 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eth-token-recover",
"version": "6.1.2",
"version": "6.1.3",
"description": "TokenRecover allows to recover any ERC20 or ERC721 token sent into the contract and send them to a receiver.",
"files": [
"contracts",
Expand Down Expand Up @@ -56,20 +56,20 @@
"@nomiclabs/hardhat-truffle5": "^2.0.7",
"@nomiclabs/hardhat-web3": "^2.0.0",
"@openzeppelin/test-helpers": "^0.5.16",
"chai": "^4.3.10",
"eslint": "^8.55.0",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-mocha-no-only": "^1.1.1",
"graphlib": "^2.1.8",
"hardhat": "^2.19.2",
"hardhat": "^2.19.4",
"hardhat-exposed": "^0.3.13",
"hardhat-gas-reporter": "^1.0.9",
"prettier": "^3.1.0",
"prettier-plugin-solidity": "^1.2.0",
"prettier": "^3.2.4",
"prettier-plugin-solidity": "^1.3.1",
"rimraf": "^5.0.5",
"sol2uml": "^2.5.20",
"solhint": "^4.0.0",
"solhint": "^4.1.1",
"solhint-plugin-openzeppelin": "file:scripts/solhint-custom",
"solidity-coverage": "^0.8.5",
"solidity-docgen": "^0.6.0-beta.36",
Expand Down
6 changes: 3 additions & 3 deletions slither.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"detectors_to_run": "arbitrary-send-erc20,array-by-reference,incorrect-shift,name-reused,rtlo,suicidal,uninitialized-state,uninitialized-storage,arbitrary-send-erc20-permit,controlled-array-length,controlled-delegatecall,delegatecall-loop,msg-value-loop,reentrancy-eth,unchecked-transfer,weak-prng,domain-separator-collision,erc20-interface,erc721-interface,locked-ether,mapping-deletion,shadowing-abstract,tautology,write-after-write,boolean-cst,reentrancy-no-eth,reused-constructor,tx-origin,unchecked-lowlevel,unchecked-send,variable-scope,void-cst,events-access,events-maths,incorrect-unary,boolean-equal,cyclomatic-complexity,deprecated-standards,erc20-indexed,function-init-state,pragma,unused-state,reentrancy-unlimited-gas,constable-states,immutable-states,var-read-using-this",
"filter_paths": "contracts/mocks,contracts-exposed",
"compile_force_framework": "hardhat"
"detectors_to_run": "arbitrary-send-erc20,array-by-reference,incorrect-shift,name-reused,rtlo,suicidal,uninitialized-state,uninitialized-storage,arbitrary-send-erc20-permit,controlled-array-length,controlled-delegatecall,delegatecall-loop,msg-value-loop,reentrancy-eth,unchecked-transfer,weak-prng,domain-separator-collision,erc20-interface,erc721-interface,locked-ether,mapping-deletion,shadowing-abstract,tautology,write-after-write,boolean-cst,reentrancy-no-eth,reused-constructor,tx-origin,unchecked-lowlevel,unchecked-send,variable-scope,void-cst,events-access,events-maths,incorrect-unary,boolean-equal,cyclomatic-complexity,deprecated-standards,erc20-indexed,function-init-state,pragma,unused-state,reentrancy-unlimited-gas,constable-states,immutable-states,var-read-using-this",
"filter_paths": "contracts/mocks,contracts-exposed",
"compile_force_framework": "hardhat"
}
12 changes: 9 additions & 3 deletions solhint.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
const customRules = require('./scripts/solhint-custom');

const rules = [
'no-unused-vars',
'avoid-tx-origin',
'const-name-snakecase',
'contract-name-camelcase',
'event-name-camelcase',
'explicit-types',
'func-name-mixedcase',
'func-param-name-mixedcase',
'modifier-name-mixedcase',
'var-name-mixedcase',
'imports-on-top',
'modifier-name-mixedcase',
'no-console',
'no-global-import',
'no-unused-vars',
'quotes',
'use-forbidden-name',
'var-name-mixedcase',
'visibility-modifier-order',
...customRules.map(r => `openzeppelin/${r.ruleId}`),
];

Expand Down

0 comments on commit e16c77a

Please sign in to comment.