GithubHelp home page GithubHelp logo

mstable-process-docs's Introduction

mStable Process Diagrams

A repository of PlantUML diagrams that document the various mStable processes.

mStable Processes

Sequence diagrams of contract calls.

Value (Token) Flows

Token transfers between contracts.

Transaction Traces

tx2uml traces of real transactions.

PlantUML

PlantUML is used for the technical diagrams using Unified Modeling Language (UML) and Archimate.

The PlantUML files have the .puml file extension.

To generate files, use the node-plantuml package installed globally.

npm i node-plantuml
cd liquidations
npx puml generate aaveFeedPoolLiquidator.puml -o aaveFeedPoolLiquidator.png
npx puml generate aaveMusdLiquidation.puml -o aaveMusdLiquidation.png
npx puml generate aaveMbtcLiquidation.puml -o aaveMbtcLiquidation.png
npx puml generate compLiquidation.puml -o compLiquidation.png
npx puml generate maticLiquidationPolygon.puml -o maticLiquidationPolygon.png

cd integrations
npx puml generate alchemixIntegration.puml -o alchemixIntegration.png
npx puml generate feederPoolIronBankIntegration.puml -o feederPoolIronBankIntegration.png

cd distributions
npx puml generate distributeRewardsMainnet.puml -o distributeRewardsMainnet.png
npx puml generate distributeRewardsPolygon.puml -o distributeRewardsPolygon.png
puml generate distributeRewardsMainnetAlchemix.puml -o distributeRewardsMainnetAlchemix.png

cd govFeeCollection
npx puml generate mainnetMusdFee.puml -o mainnetMusdFee.png
npx puml generate polygonMusdFee.puml -o polygonMusdFee.png

cd emissions
npx puml generate weeklyEmissions.puml -o weeklyEmissions.png
npx puml generate weeklyEmissions2TreasuryDAO.puml -o weeklyEmissions2TreasuryDAO.png
npx puml generate weeklyEmissions2Votium.puml -o weeklyEmissions2Votium.png
npx puml generate polygonBridge_frax.puml -o polygonBridge_frax.png
npx puml generate polygonBridge_vimUSD.puml -o polygonBridge_vimUSD.png
npx puml generate polygonBridge_balancer.puml -o polygonBridge_balancer.png
npx puml generate buyBackForStakers.puml -o buyBackForStakers.png

cd unwrapper
npx puml generate imusd_vault_bassets.puml -o imusd_vault_bassets.png
npx puml generate imusd_bassets.puml -o imusd_bassets.png
npx puml generate imusd_vault_busd.puml -o imusd_vault_busd.png
npx puml generate imusd_busd.puml -o imusd_busd.png

cd valueFlows
npx puml generate musdValueFlows.puml -o musdValueFlows.png
npx puml generate musdPolygonValueFlows.puml -o musdPolygonValueFlows.png
npx puml generate convexFlow.puml -o convexFlow.png

VS Code extension

Jebbs PlantUML extension for VS Code is used to authoring the PlantUML diagrams.

Alt-D on Windows, or Option-D on Mac, to start PlantUML preview in VS Code.

Markdown table of contents

markdown-toc can be used to generate a table of content for markdown files.

npm i markdown-toc
npx markdown-toc README.md --maxdepth 2
npx markdown-toc TokenSettlementProcesses.md --maxdepth 3

Markdown to PDF conversion

To convert a markdown file to a pdf file, install markdown-pdf

npm i markdown-pdf

The custom-markdown-pdf.css CSS file is required to prevent the urls from being displayed in the links.

Run the following to convert a markdown file to pdf

npx markdown-pdf AztecIntro.md -s custom-markdown-pdf.css
npx markdown-pdf TokenSettlementProcesses.md -s ./docs/custom-markdown-pdf.css

Useful links

mstable-process-docs's People

Contributors

naddison36 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.