Skip to content

Release v2.5.15

Compare
Choose a tag to compare
@naddison36 naddison36 released this 17 Sep 23:26
· 20 commits to master since this release
22b15f1
  • added storage options -sn, --slotNames and -st, --slotTypes for displaying assembly accessed storage slots.
Options:
  -sn, --slotNames <names>        Comma-separated list of slot names when accessed by assembly. The names can be a string, which will be hashed to a slot, or a 32 bytes hexadecimal string with a 0x prefix.
  -st, --slotTypes <types>        Comma-separated list of types for the slots listed in the `slotNames` option. eg address,uint256,bool. If all types are the same, a single type can be used. eg address (default: ["bytes32"])

Example

sol2uml storage 0x2fdfbb2b905484f1445e23a97c97f65fe0e43dec \
  --data --storage 0xc0f42f73b8f01849a2dd99753524d4ba14317eb3 \
  --slotNames OUSD.governor,OUSD.pending.governor,OUSD.reentry.status,0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc \
  --slotTypes address,address,bool,address \
  --hideExpand drip

OETH Dripper

See more assembly-accessed slots here.