sol2uml 2.5.7 → 2.5.8

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.
package/README.md CHANGED
@@ -196,8 +196,8 @@ Options:
196
196
  -l, --lineBuffer <value> Minimum number of lines before and after changes (default: 4)
197
197
  -af --aFile <value> Contract A source code filename without the .sol extension (default: compares all source files)
198
198
  -bf --bFile <value> Contract B source code filename without the .sol extension (default: aFile if specified)
199
- -bn, --bNetwork <network> Ethereum network which maps to a blockchain explorer for contract B if on a different blockchain to contract A. Contract A uses the `network` option (default: value of `network` option) (choices: "mainnet", "goerli", "sepolia", "polygon",
200
- "arbitrum", "avalanche", "bsc", "crono", "fantom", "moonbeam", "optimism", "gnosis", "celo")
199
+ -bn, --bNetwork <network> Ethereum network which maps to a blockchain explorer for contract B if on a different blockchain to contract A. Contract A uses the `network` option (default: value of `network` option) (choices: "mainnet",
200
+ "goerli", "sepolia", "polygon", "arbitrum", "avalanche", "bsc", "crono", "fantom", "moonbeam", "optimism", "gnosis", "celo")
201
201
  -be, --bExplorerUrl <url> Override the `bNetwork` option with custom blockchain explorer API URL for contract B if on a different blockchain to contract A. Contract A uses the `explorerUrl` (default: value of `explorerUrl` option)
202
202
  -bk, --bApiKey <key> Blockchain explorer API key for contract B if on a different blockchain to contract A. Contract A uses the `apiKey` option (default: value of `apiKey` option)
203
203
  -s, --summary Only show a summary of the file differences. (default: false)
@@ -520,7 +520,7 @@ const calcStorageByteSize = (attribute, umlClass, otherClasses) => {
520
520
  dynamic: false,
521
521
  };
522
522
  default:
523
- return { size: 32, dynamic: false };
523
+ return { size: 20, dynamic: false };
524
524
  }
525
525
  }
526
526
  if (attribute.attributeType === umlClass_1.AttributeType.Elementary) {
package/lib/sol2uml.js CHANGED
@@ -232,7 +232,7 @@ The line numbers are from contract B. There are no line numbers for the red sect
232
232
  .addOption(new commander_1.Option('-bn, --bNetwork <network>', 'Ethereum network which maps to a blockchain explorer for contract B if on a different blockchain to contract A. Contract A uses the `network` option (default: value of `network` option)').choices(parserEtherscan_1.networks))
233
233
  .option('-be, --bExplorerUrl <url>', 'Override the `bNetwork` option with custom blockchain explorer API URL for contract B if on a different blockchain to contract A. Contract A uses the `explorerUrl` (default: value of `explorerUrl` option)')
234
234
  .option('-bk, --bApiKey <key>', 'Blockchain explorer API key for contract B if on a different blockchain to contract A. Contract A uses the `apiKey` option (default: value of `apiKey` option)')
235
- .option('-s, --summary', 'Only show a summary of the file differences.', false)
235
+ .option('-s, --summary', 'Only show a summary of the file differences', false)
236
236
  .option('--flatten', 'Flatten into a single file before comparing', false)
237
237
  .option('--saveFiles', 'Save the flattened contract code to the filesystem when using the `flatten` option. The file names will be the contract address with a .sol extension', false)
238
238
  .action(async (addressA, addressB, options, command) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sol2uml",
3
- "version": "2.5.7",
3
+ "version": "2.5.8",
4
4
  "description": "Solidity contract visualisation tool.",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",