Skip to content

Commit

Permalink
chore: prettier READMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Jun 22, 2023
1 parent c0e7e3f commit 5093f67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ To access your local changes on your machine globally.
Commands to publish a new package version.

```bash
npm run prettier:fix
npm run prettier
npm run clean
npm run package-lock
npm run build
Expand Down
14 changes: 9 additions & 5 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ Generated from version [4.7.3 contracts](https://github.com/OpenZeppelin/openzep

## Uniswap V3 Router

* -hp hide private and internal variables and functions
* -hi hide interfaces
* -hl hide libraries
* -he hide enums
- -hp hide private and internal variables and functions
- -hi hide interfaces
- -hl hide libraries
- -he hide enums

![Uniswap V3 Router](./uniswap-router.svg)
Generated from running

```
sol2uml -hp -hi -hl -hs -he 0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45
```

This uses the verified Solidity code loaded to Etherscan https://etherscan.io/address/0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45#code


## Uniswap V3 Router Squashed

Same as the previous diagram but the inherited contracts are squashed into a single class diagram with the `-s, --squash` option.
Expand All @@ -66,6 +66,7 @@ The last stereotype is the contract the variable or function is implemented in.
![Uniswap V3 Router Squashed](./uniswap-router-squash.svg)

Generated from running

```
sol2uml -s -hp -hi -hl -hs -he 0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45
```
Expand All @@ -77,6 +78,7 @@ Adding the `-hsc, --hideSourceContract` option to the previous diagram removes t
![Uniswap V3 Router Squashed no source contract](./uniswap-router-squash-no-source.svg)

Generated from running

```
sol2uml -s -hsc -hp -hi -hl -hs -he 0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45
```
Expand All @@ -96,6 +98,7 @@ This uses the verified Solidity code loaded to Etherscan https://etherscan.io/ad

![Compound Finance cDAI](./CErc20.svg)
Generated from running

```
sol2uml 0xf5dce57282a584d2746faf1593d3121fcac444dc
```
Expand All @@ -109,6 +112,7 @@ Also, only classes linked to the base `CErc20` contract are included.

![Compound Finance cDAI](./CErc20-hide.svg)
Generated from running

```
sol2uml -b CErc20 -he -hs -hi 0xf5dce57282a584d2746faf1593d3121fcac444dc
```

0 comments on commit 5093f67

Please sign in to comment.