Skip to content

Commit

Permalink
feat: update dependencies, lint and compile config
Browse files Browse the repository at this point in the history
  • Loading branch information
vittominacori committed Jan 18, 2024
1 parent 2a4e4fb commit dcb60a3
Show file tree
Hide file tree
Showing 11 changed files with 1,192 additions and 443 deletions.
4 changes: 2 additions & 2 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
norpc: true,
testCommand: 'npm run hardhat:test',
compileCommand: 'npm run hardhat:compile',
testCommand: 'npm test',
compileCommand: 'npm run compile',
skipFiles: ['mocks'],
};
Binary file modified analysis/control-flow/SampleContract.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions analysis/description-table/SampleContract.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
| **Context** | Implementation | |||
|| _msgSender | Internal 🔒 | | |
|| _msgData | Internal 🔒 | | |
|| _contextSuffixLength | Internal 🔒 | | |
||||||
| **Ownable** | Implementation | Context |||
|| <Constructor> | Public ❗️ | 🛑 |NO❗️ |
Expand Down
19 changes: 10 additions & 9 deletions analysis/uml/SampleContract.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 14 additions & 10 deletions dist/SampleContract.dist.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Sources flattened with hardhat v2.18.3 https://hardhat.org
// Sources flattened with hardhat v2.19.4 https://hardhat.org

// SPDX-License-Identifier: MIT

// File @openzeppelin/contracts/utils/[email protected].0
// File @openzeppelin/contracts/utils/[email protected].1

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

Expand All @@ -27,10 +27,14 @@ abstract contract Context {
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}

function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}


// File @openzeppelin/contracts/access/[email protected].0
// File @openzeppelin/contracts/access/[email protected].1

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
Expand Down Expand Up @@ -132,7 +136,7 @@ abstract contract Ownable is Context {
}


// File @openzeppelin/contracts/utils/introspection/[email protected].0
// File @openzeppelin/contracts/utils/introspection/[email protected].1

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
Expand Down Expand Up @@ -161,7 +165,7 @@ interface IERC165 {
}


// File @openzeppelin/contracts/token/ERC721/[email protected].0
// File @openzeppelin/contracts/token/ERC721/[email protected].1

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)
Expand Down Expand Up @@ -298,7 +302,7 @@ interface IERC721 is IERC165 {
}


// File @openzeppelin/contracts/token/ERC20/[email protected].0
// File @openzeppelin/contracts/token/ERC20/[email protected].1

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
Expand Down Expand Up @@ -381,7 +385,7 @@ interface IERC20 {
}


// File eth-token-recover/contracts/recover/[email protected].0
// File eth-token-recover/contracts/recover/[email protected].3

// Original license: SPDX_License_Identifier: MIT

Expand Down Expand Up @@ -409,7 +413,7 @@ abstract contract RecoverERC20 {
}


// File eth-token-recover/contracts/recover/[email protected].0
// File eth-token-recover/contracts/recover/[email protected].3

// Original license: SPDX_License_Identifier: MIT

Expand Down Expand Up @@ -442,7 +446,7 @@ abstract contract RecoverERC721 {
}


// File eth-token-recover/contracts/[email protected].0
// File eth-token-recover/contracts/[email protected].3

// Original license: SPDX_License_Identifier: MIT

Expand Down
20 changes: 9 additions & 11 deletions hardhat.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require('@nomiclabs/hardhat-truffle5');
require('solidity-coverage');
require('solidity-docgen');
require('hardhat-exposed');
require('hardhat-gas-reporter');
require('solidity-coverage');
require('solidity-docgen');

module.exports = {
defaultNetwork: 'hardhat',
solidity: {
version: '0.8.22',
version: '0.8.23',
settings: {
evmVersion: 'shanghai',
optimizer: {
Expand All @@ -16,18 +16,16 @@ module.exports = {
},
},
},
docgen: {
outputDir: 'docs',
exclude: ['mocks', 'examples'],
},
exposed: {
imports: true,
initializers: true,
exclude: ['vendor/**/*'],
exclude: [],
},
gasReporter: {
enabled: true,
excludeContracts: ['mocks', '@openzeppelin/contracts'],
excludeContracts: ['mocks', 'examples', '@openzeppelin/contracts'],
showMethodSig: true,
},
docgen: {
outputDir: 'docs',
exclude: ['mocks'],
},
};
Loading

0 comments on commit dcb60a3

Please sign in to comment.