Skip to content

chore(contracts): uml storage viz #900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from
Draft

chore(contracts): uml storage viz #900

wants to merge 3 commits into from

Conversation

shotaronowhere
Copy link
Contributor

This PR includes a script to produce uml diagrams of the storage layout of any contract. There was a small modification to store a "user defined type" IERC20 interface as an address instead and cast it where necessary (actually nowhere, the type was cast to an address where used)

image

This visualization will be good to make sure we planned the contract upgradability correctly.

@shotaronowhere shotaronowhere requested a review from jaybuidl June 12, 2023 05:52
@netlify
Copy link

netlify bot commented Jun 12, 2023

Deploy Preview for kleros-v2-contracts ready!

Name Link
🔨 Latest commit 7cbea68
🔍 Latest deploy log https://app.netlify.com/sites/kleros-v2-contracts/deploys/6486e8fb26c48a0008a714ff
😎 Deploy Preview https://deploy-preview-900--kleros-v2-contracts.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jun 12, 2023

Deploy Preview for kleros-v2 ready!

Name Link
🔨 Latest commit 7cbea68
🔍 Latest deploy log https://app.netlify.com/sites/kleros-v2/deploys/6486e8fbc8333a0008a72f1f
😎 Deploy Preview https://deploy-preview-900--kleros-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@jaybuidl
Copy link
Member

Let's dig in the sol2uml docs and find a solution to the custom interface types (so we don't have to replace every types to an address in the contracts) before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants