Skip to content

Commit

Permalink
chore: updated example README
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Sep 18, 2023
1 parent 0b94b11 commit ec004a3
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 1 deletion.
15 changes: 14 additions & 1 deletion examples/storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ sol2uml storage 0x2fdfbb2b905484f1445e23a97c97f65fe0e43dec -v \
-o examples/storage/origin-oeth-dripper.svg
```

It no `--slotTypes` option is used with the `--slotNames` option, sol2uml will default all the assembly accessed types to bytes32.
If no `--slotTypes` option is used with the `--slotNames` option, sol2uml will default all the assembly accessed types to bytes32.

![OETH Dripper Default Types](../../examples/storage/origin-oeth-dripper-default.svg)

Expand All @@ -277,6 +277,19 @@ sol2uml storage 0x2fdfbb2b905484f1445e23a97c97f65fe0e43dec -v \
-o examples/storage/origin-oeth-dripper-default.svg
```

The slot values can be hidden with the `-hv, --hideVales` option.

![OETH Dripper Hiode Values](../../examples/storage/origin-oeth-dripper-hide-values.svg)

```
sol2uml storage 0x2fdfbb2b905484f1445e23a97c97f65fe0e43dec -v \
--data --storage 0xc0f42f73b8f01849a2dd99753524d4ba14317eb3 \
--slotNames OUSD.governor,OUSD.pending.governor,OUSD.reentry.status,0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc \
--hideExpand drip --hideValues \
-o examples/storage/origin-oeth-dripper-hide-values.svg
```


## USDC

The USD Coin (USDC) token deployed to [0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48](https://etherscan.io/address/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48#code) on mainnet is a proxied contract.
Expand Down
60 changes: 60 additions & 0 deletions examples/storage/origin-oeth-dripper-hide-values.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ec004a3

Please sign in to comment.