@openzeppelin/wizard 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,8 +11,8 @@
11
11
  "devDependencies": {
12
12
  "@openzeppelin/contracts": "^5.0.0",
13
13
  "@openzeppelin/contracts-upgradeable": "^5.0.0",
14
- "@openzeppelin/hardhat-upgrades": "^2.0.0",
15
- "@nomicfoundation/hardhat-toolbox": "^3.0.0",
14
+ "@openzeppelin/hardhat-upgrades": "^3.0.0",
15
+ "@nomicfoundation/hardhat-toolbox": "^4.0.0",
16
16
  "hardhat": "^2.16.1"
17
17
  }
18
18
  }
package/src/print.ts CHANGED
@@ -7,6 +7,7 @@ import { formatLines, spaceBetween, Lines } from './utils/format-lines';
7
7
  import { mapValues } from './utils/map-values';
8
8
  import SOLIDITY_VERSION from './solidity-version.json';
9
9
  import { inferTranspiled } from './infer-transpiled';
10
+ import { compatibleContractsSemver } from './utils/version';
10
11
 
11
12
  export function printContract(contract: Contract, opts?: Options): string {
12
13
  const helpers = withHelpers(contract, opts);
@@ -22,6 +23,7 @@ export function printContract(contract: Contract, opts?: Options): string {
22
23
  ...spaceBetween(
23
24
  [
24
25
  `// SPDX-License-Identifier: ${contract.license}`,
26
+ `// Compatible with OpenZeppelin Contracts ${compatibleContractsSemver}`,
25
27
  `pragma solidity ^${SOLIDITY_VERSION};`,
26
28
  ],
27
29
 
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Semantic version string representing of the minimum compatible version of Contracts to display in output.
3
+ */
4
+ export const compatibleContractsSemver = '^5.0.0';