Skip to content

Releases: naddison36/sol2uml

Release v2.5.10

15 Aug 06:13
e38facf
Compare
Choose a tag to compare

fix

  • outputFormat all not writing dot files

Release v2.5.9

15 Aug 05:19
0091b4a
Compare
Choose a tag to compare

Feature

  • Added -hx, --hideExpand <variables> option to storage command to not expand specified arrays, structs, strings or bytes.

Examples

# Implementation with all variables expanded
sol2uml storage 0x8a3b6D3739461137d20825c36ED6016803d3104F

Generalized4626Strategy

# Implementation with no expended _reserved, ______gap or __gap variables
sol2uml storage 0x8a3b6D3739461137d20825c36ED6016803d3104F --hideExpand _reserved,______gap,__gap

Generalized4626Strategy

# Proxy with data, no expended _reserved, ______gap or __gap variables
sol2uml storage 0x8a3b6D3739461137d20825c36ED6016803d3104F \
  -hx _reserved,______gap,__gap \
  --data --storage 0x6b69B755C629590eD59618A2712d8a2957CA98FC

Generalized4626Strategy

Release v2.5.8

14 Aug 14:39
7034a7c
Compare
Choose a tag to compare

Fixes

  • Contract types were incorrectly reporting 32 bytes instead of 20 bytes. Issue #162

Release v2.5.7

13 Aug 11:30
c7e959e
Compare
Choose a tag to compare

Features

  • diff of multiple verified files
  • diff of contracts on different chains

New cross-chain diff options

  -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",
                             "arbitrum", "avalanche", "bsc", "crono", "fantom", "moonbeam", "optimism", "gnosis", "celo")
  -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)
  -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)

The previous diff would flatten multiple files and then compare the code. The new diff compares each file separately. The --flatten option will use this old comparison method.

  --flatten                  Flatten into a single file before comparing (default: false)

The other new option is

  -s, --summary              Only show a summary of the file differences. (default: false)

Examples

Origin OETH VaultCore

# Summary of change files
sol2uml diff 0x1091588Cc431275F99DC5Df311fd8E1Ab81c89F3 0xEA24e9Bac006DE9635Ac7fA4D767fFb64FB5645c --summary

Screenshot 2023-08-13 at 9 44 46 pm

# Code differences of VaultStorage file
sol2uml diff 0x1091588Cc431275F99DC5Df311fd8E1Ab81c89F3 0xEA24e9Bac006DE9635Ac7fA4D767fFb64FB5645c --aFile VaultStorage

Screenshot 2023-08-13 at 9 43 54 pm

Origin OUSD Vault

# OUSD VaultCore upgrade
sol2uml diff 0x48Cf14DeA2f5dD31c57218877195913412D3278A 0x997c35A0bf8E21404aE4379841E0603C957138c3 -v

Screenshot 2023-08-14 at 3 06 26 pm

Screenshot 2023-08-14 at 3 09 14 pm

Aave V3 Pool Mainnet v Optimism

# Cross chain contract compare
sol2uml diff 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 0x794a61358d6845594f94dc1db02a252b5b4814ad --bNetwork optimism

Screenshot 2023-08-13 at 9 48 09 pm

Release v2.5.6

25 Jun 11:53
328694e
Compare
Choose a tag to compare
  • added -e --explorerUrl option for testnet block explorers.
  -e, --explorerUrl <url>   Override network with custom blockchain explorer API URL. eg Polygon Mumbai testnet https://api-testnet.polygonscan.com/api (env: EXPLORER_URL)

Release v2.5.5

24 Apr 13:04
5093f67
Compare
Choose a tag to compare
  • Added support for the Celo blockchain
  • diff at source file level using the --aFile option
  • diff renamed source files using --aFile and --bFIle options

For example, diff two deployed contracts where the source file was renamed from SeriesV2 to SeriesV3

sol2uml diff --aFile SeriesV2 --bFile SeriesV3 0xe79850AaCD3AD0b50b747837410Ae5D7C38D5Caa 0x82c623270fB3C4E95A36d35E21A95ff328531dC5

Screenshot 2023-06-22 at 3 01 58 pm

Release v2.5.4

29 Mar 21:50
Compare
Choose a tag to compare
  • Fixed commenting out imports that span multiple lines when flattening contracts #145

Release v2.5.3

14 Mar 00:54
36f8eb3
Compare
Choose a tag to compare
  • Class diagrams can now hide contracts
  • Added sol2uml example diagrams of the ERC-4337 account abstraction contracts

Release v2.5.2

10 Mar 06:50
7916a40
Compare
Choose a tag to compare

Fixes

  • Fix the depth of squashed contracts by squashing before filtering to base contracts

Maintenance

  • Updated usage and argument descriptions
  • Removed test chains

Release v2.5.1

26 Feb 01:19
Compare
Choose a tag to compare

Features

  • Added -hv, --hideValue option for storage diagrams to hide the slot value column.

Fixes

  • Storage diagrams now handle aliased imports #142

Maintenance

  • Updated dependencies