Skip to content

Commit

Permalink
Merge pull request #82 from naddison36/slot-values
Browse files Browse the repository at this point in the history
Visualise storage slot values
  • Loading branch information
naddison36 authored Jul 29, 2022
2 parents 164d3c6 + 53458de commit c35830f
Show file tree
Hide file tree
Showing 33 changed files with 2,077 additions and 324 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ jobs:
env:
DEBUG: sol2uml
CI: true
NODE_URL: ${{ secrets.NODE_URL }}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Nick Addison
Copyright (c) 2022 Nick Addison

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,16 @@ Visually display a contract's storage slots.
WARNING: sol2uml does not use the Solidity compiler so may differ with solc. A known example is fixed-sized arrays declared with an expression will fail to be sized.
Arguments:
fileFolderAddress file name, base folder or contract address
fileFolderAddress file name, base folder or contract address
Options:
-c, --contractName <value> Contract name in local Solidity files. Not needed when using an address as the first argument.
-h, --help display help for command
-c, --contract <name> Contract name in local Solidity files. Not needed when using an address as the first argument as the contract name can be derived from Etherscan.
-d, --data Gets the values in the storage slots from an Ethereum node. (default: false)
-s, --storage <address> The address of the contract with the storage values. This will be different from the contract with the code if a proxy contract is used. This is not needed if `fileFolderAddress` is an address and
the contract is not proxied.
-u, --url <url> URL of the Ethereum node to get storage values if the `data` option is used. (default: "http://localhost:8545", env: NODE_URL)
-bn, --block <number> Block number to get the contract storage values from. (default: "latest")
-h, --help display help for command
```

### Flatten usage
Expand Down
Binary file removed examples/storage/EmissionsController.png
Binary file not shown.
166 changes: 166 additions & 0 deletions examples/storage/EmissionsController.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c35830f

Please sign in to comment.