docs: uml hotfix (#9124)

* comment out ungenerated uml .svg in the md files

* generate svgs to docs/uml
* create docs/uml/svg
* move .punl to docs/uml/puml
* update uml path in md files

* docs: update relative path of uml svg in `x` md files

* docs: remove plantuml script from pre.sh

Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
Cyrus Goh 2021-04-16 00:59:21 -07:00 committed by GitHub
parent 0bcd7c6862
commit 89cb9b0f8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 563 additions and 9 deletions

View File

@ -56,7 +56,7 @@ This method takes care of marshaling the `res` parameter to protobuf and attachi
This diagram shows a typical structure of an `Msg` Service, and how the message propagates through the module.
![](../uml/transaction_flow.svg)
![Transaction flow](../uml/svg/transaction_flow.svg)
## Legacy Amino `Msg`s

View File

@ -72,7 +72,7 @@ gaia app.
The following diagram shows the current dependencies between keepers.
![](../uml/keeper_dependencies.svg)
![Keeper dependencies](../uml/svg/keeper_dependencies.svg)
## Next {hide}

View File

@ -10,5 +10,3 @@ for D in ../x/*; do
done
cat ../x/README.md | sed 's/\.\/x/\/modules/g' | sed 's/spec\/README.md//g' | sed 's/\.\.\/docs\/building-modules\/README\.md/\/building-modules\/intro\.html/g' > ./modules/README.md
# plantuml -tsvg uml/*.puml

View File

@ -1,5 +1,3 @@
What happens after a transaction is unmarshalled and is processed by the SDK?
@startuml
'https://plantuml.com/sequence-diagram

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 21 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="521px" preserveAspectRatio="none" style="width:495px;height:521px;" version="1.1" viewBox="0 0 495 521" width="495px" zoomAndPan="magnify"><defs><filter height="300%" id="fgwqwp41xefk" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><text fill="#000000" font-family="sans-serif" font-size="18" lengthAdjust="spacing" textLength="440" x="21.25" y="16.708">The dependencies between Keepers (Feb 2021)</text><!--MD5=[19fc8c754692a6796621efa1ca3e8ab0]
class Staking--><rect codeLine="5" fill="#FEFECE" filter="url(#fgwqwp41xefk)" height="48" id="Staking" style="stroke:#A80036;stroke-width:1.5;" width="78" x="230" y="243.9531"/><ellipse cx="245" cy="259.9531" fill="#A9DCDF" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M247.0781,261.7656 L247.4688,262.75 L247.0781,262.75 C246.625,262.75 246.5156,262.7656 246.3594,262.875 C246.1094,263.0313 245.9531,263.3125 245.9531,263.6094 C245.9531,263.875 246.0938,264.125 246.3125,264.2813 C246.4531,264.4063 246.6563,264.4531 247.0781,264.4531 L249.4375,264.4531 C249.7969,264.4531 250.0156,264.4219 250.1563,264.3281 C250.4063,264.1875 250.5625,263.8906 250.5625,263.6094 C250.5625,263.3281 250.4219,263.0781 250.2031,262.9219 C250.0313,262.7813 249.875,262.75 249.4063,262.75 L246.0156,254.5469 L242.3438,254.5469 C241.8906,254.5469 241.7656,254.5625 241.6094,254.6563 C241.3594,254.8281 241.2031,255.1094 241.2031,255.3906 C241.2031,255.6719 241.3438,255.9219 241.5625,256.0938 C241.7344,256.2031 241.9063,256.2344 242.3438,256.2344 L243.4219,256.2344 L240.7813,262.75 C240.3594,262.75 240.2031,262.7656 240.0469,262.875 C239.7969,263.0313 239.6406,263.3125 239.6406,263.6094 C239.6406,264.1719 240.0156,264.4531 240.7656,264.4531 L243.0313,264.4531 C243.3906,264.4531 243.6094,264.4219 243.7344,264.3281 C244,264.1875 244.1406,263.8906 244.1406,263.6094 C244.1406,263.3281 244.0156,263.0781 243.7969,262.9063 C243.625,262.7813 243.4844,262.75 243.0313,262.75 L242.6406,262.75 L243.0313,261.7656 L247.0781,261.7656 Z M246.375,260.0625 L243.7031,260.0625 L245.0469,256.7969 L246.375,260.0625 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="46" x="259" y="264.1074">Staking</text><line style="stroke:#A80036;stroke-width:1.5;" x1="231" x2="307" y1="275.9531" y2="275.9531"/><line style="stroke:#A80036;stroke-width:1.5;" x1="231" x2="307" y1="283.9531" y2="283.9531"/><!--MD5=[5730f87057d6fa3697549629e6cf1ab5]
class Distribution--><rect codeLine="6" fill="#FEFECE" filter="url(#fgwqwp41xefk)" height="48" id="Distribution" style="stroke:#A80036;stroke-width:1.5;" width="102" x="7" y="351.9531"/><ellipse cx="22" cy="367.9531" fill="#A9DCDF" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M24.0781,369.7656 L24.4688,370.75 L24.0781,370.75 C23.625,370.75 23.5156,370.7656 23.3594,370.875 C23.1094,371.0313 22.9531,371.3125 22.9531,371.6094 C22.9531,371.875 23.0938,372.125 23.3125,372.2813 C23.4531,372.4063 23.6563,372.4531 24.0781,372.4531 L26.4375,372.4531 C26.7969,372.4531 27.0156,372.4219 27.1563,372.3281 C27.4063,372.1875 27.5625,371.8906 27.5625,371.6094 C27.5625,371.3281 27.4219,371.0781 27.2031,370.9219 C27.0313,370.7813 26.875,370.75 26.4063,370.75 L23.0156,362.5469 L19.3438,362.5469 C18.8906,362.5469 18.7656,362.5625 18.6094,362.6563 C18.3594,362.8281 18.2031,363.1094 18.2031,363.3906 C18.2031,363.6719 18.3438,363.9219 18.5625,364.0938 C18.7344,364.2031 18.9063,364.2344 19.3438,364.2344 L20.4219,364.2344 L17.7813,370.75 C17.3594,370.75 17.2031,370.7656 17.0469,370.875 C16.7969,371.0313 16.6406,371.3125 16.6406,371.6094 C16.6406,372.1719 17.0156,372.4531 17.7656,372.4531 L20.0313,372.4531 C20.3906,372.4531 20.6094,372.4219 20.7344,372.3281 C21,372.1875 21.1406,371.8906 21.1406,371.6094 C21.1406,371.3281 21.0156,371.0781 20.7969,370.9063 C20.625,370.7813 20.4844,370.75 20.0313,370.75 L19.6406,370.75 L20.0313,369.7656 L24.0781,369.7656 Z M23.375,368.0625 L20.7031,368.0625 L22.0469,364.7969 L23.375,368.0625 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="70" x="36" y="372.1074">Distribution</text><line style="stroke:#A80036;stroke-width:1.5;" x1="8" x2="108" y1="383.9531" y2="383.9531"/><line style="stroke:#A80036;stroke-width:1.5;" x1="8" x2="108" y1="391.9531" y2="391.9531"/><!--MD5=[33a04ff1a4c1955daafc53b1debb31c2]
class Slashing--><rect codeLine="7" fill="#FEFECE" filter="url(#fgwqwp41xefk)" height="48" id="Slashing" style="stroke:#A80036;stroke-width:1.5;" width="83" x="308.5" y="351.9531"/><ellipse cx="323.5" cy="367.9531" fill="#A9DCDF" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M325.5781,369.7656 L325.9688,370.75 L325.5781,370.75 C325.125,370.75 325.0156,370.7656 324.8594,370.875 C324.6094,371.0313 324.4531,371.3125 324.4531,371.6094 C324.4531,371.875 324.5938,372.125 324.8125,372.2813 C324.9531,372.4063 325.1563,372.4531 325.5781,372.4531 L327.9375,372.4531 C328.2969,372.4531 328.5156,372.4219 328.6563,372.3281 C328.9063,372.1875 329.0625,371.8906 329.0625,371.6094 C329.0625,371.3281 328.9219,371.0781 328.7031,370.9219 C328.5313,370.7813 328.375,370.75 327.9063,370.75 L324.5156,362.5469 L320.8438,362.5469 C320.3906,362.5469 320.2656,362.5625 320.1094,362.6563 C319.8594,362.8281 319.7031,363.1094 319.7031,363.3906 C319.7031,363.6719 319.8438,363.9219 320.0625,364.0938 C320.2344,364.2031 320.4063,364.2344 320.8438,364.2344 L321.9219,364.2344 L319.2813,370.75 C318.8594,370.75 318.7031,370.7656 318.5469,370.875 C318.2969,371.0313 318.1406,371.3125 318.1406,371.6094 C318.1406,372.1719 318.5156,372.4531 319.2656,372.4531 L321.5313,372.4531 C321.8906,372.4531 322.1094,372.4219 322.2344,372.3281 C322.5,372.1875 322.6406,371.8906 322.6406,371.6094 C322.6406,371.3281 322.5156,371.0781 322.2969,370.9063 C322.125,370.7813 321.9844,370.75 321.5313,370.75 L321.1406,370.75 L321.5313,369.7656 L325.5781,369.7656 Z M324.875,368.0625 L322.2031,368.0625 L323.5469,364.7969 L324.875,368.0625 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="51" x="337.5" y="372.1074">Slashing</text><line style="stroke:#A80036;stroke-width:1.5;" x1="309.5" x2="390.5" y1="383.9531" y2="383.9531"/><line style="stroke:#A80036;stroke-width:1.5;" x1="309.5" x2="390.5" y1="391.9531" y2="391.9531"/><!--MD5=[13f56afd7aace6dccdfaaac41cf97a6a]
class Evidence--><rect codeLine="8" fill="#FEFECE" filter="url(#fgwqwp41xefk)" height="48" id="Evidence" style="stroke:#A80036;stroke-width:1.5;" width="87" x="258.5" y="459.9531"/><ellipse cx="273.5" cy="475.9531" fill="#A9DCDF" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M275.5781,477.7656 L275.9688,478.75 L275.5781,478.75 C275.125,478.75 275.0156,478.7656 274.8594,478.875 C274.6094,479.0313 274.4531,479.3125 274.4531,479.6094 C274.4531,479.875 274.5938,480.125 274.8125,480.2813 C274.9531,480.4063 275.1563,480.4531 275.5781,480.4531 L277.9375,480.4531 C278.2969,480.4531 278.5156,480.4219 278.6563,480.3281 C278.9063,480.1875 279.0625,479.8906 279.0625,479.6094 C279.0625,479.3281 278.9219,479.0781 278.7031,478.9219 C278.5313,478.7813 278.375,478.75 277.9063,478.75 L274.5156,470.5469 L270.8438,470.5469 C270.3906,470.5469 270.2656,470.5625 270.1094,470.6563 C269.8594,470.8281 269.7031,471.1094 269.7031,471.3906 C269.7031,471.6719 269.8438,471.9219 270.0625,472.0938 C270.2344,472.2031 270.4063,472.2344 270.8438,472.2344 L271.9219,472.2344 L269.2813,478.75 C268.8594,478.75 268.7031,478.7656 268.5469,478.875 C268.2969,479.0313 268.1406,479.3125 268.1406,479.6094 C268.1406,480.1719 268.5156,480.4531 269.2656,480.4531 L271.5313,480.4531 C271.8906,480.4531 272.1094,480.4219 272.2344,480.3281 C272.5,480.1875 272.6406,479.8906 272.6406,479.6094 C272.6406,479.3281 272.5156,479.0781 272.2969,478.9063 C272.125,478.7813 271.9844,478.75 271.5313,478.75 L271.1406,478.75 L271.5313,477.7656 L275.5781,477.7656 Z M274.875,476.0625 L272.2031,476.0625 L273.5469,472.7969 L274.875,476.0625 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="55" x="287.5" y="480.1074">Evidence</text><line style="stroke:#A80036;stroke-width:1.5;" x1="259.5" x2="344.5" y1="491.9531" y2="491.9531"/><line style="stroke:#A80036;stroke-width:1.5;" x1="259.5" x2="344.5" y1="499.9531" y2="499.9531"/><!--MD5=[f55d592c5130daf0ceebcd2d990036d6]
class Bank--><rect codeLine="9" fill="#FEFECE" filter="url(#fgwqwp41xefk)" height="48" id="Bank" style="stroke:#A80036;stroke-width:1.5;" width="62" x="154" y="135.9531"/><ellipse cx="169" cy="151.9531" fill="#A9DCDF" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M171.0781,153.7656 L171.4688,154.75 L171.0781,154.75 C170.625,154.75 170.5156,154.7656 170.3594,154.875 C170.1094,155.0313 169.9531,155.3125 169.9531,155.6094 C169.9531,155.875 170.0938,156.125 170.3125,156.2813 C170.4531,156.4063 170.6563,156.4531 171.0781,156.4531 L173.4375,156.4531 C173.7969,156.4531 174.0156,156.4219 174.1563,156.3281 C174.4063,156.1875 174.5625,155.8906 174.5625,155.6094 C174.5625,155.3281 174.4219,155.0781 174.2031,154.9219 C174.0313,154.7813 173.875,154.75 173.4063,154.75 L170.0156,146.5469 L166.3438,146.5469 C165.8906,146.5469 165.7656,146.5625 165.6094,146.6563 C165.3594,146.8281 165.2031,147.1094 165.2031,147.3906 C165.2031,147.6719 165.3438,147.9219 165.5625,148.0938 C165.7344,148.2031 165.9063,148.2344 166.3438,148.2344 L167.4219,148.2344 L164.7813,154.75 C164.3594,154.75 164.2031,154.7656 164.0469,154.875 C163.7969,155.0313 163.6406,155.3125 163.6406,155.6094 C163.6406,156.1719 164.0156,156.4531 164.7656,156.4531 L167.0313,156.4531 C167.3906,156.4531 167.6094,156.4219 167.7344,156.3281 C168,156.1875 168.1406,155.8906 168.1406,155.6094 C168.1406,155.3281 168.0156,155.0781 167.7969,154.9063 C167.625,154.7813 167.4844,154.75 167.0313,154.75 L166.6406,154.75 L167.0313,153.7656 L171.0781,153.7656 Z M170.375,152.0625 L167.7031,152.0625 L169.0469,148.7969 L170.375,152.0625 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="30" x="183" y="156.1074">Bank</text><line style="stroke:#A80036;stroke-width:1.5;" x1="155" x2="215" y1="167.9531" y2="167.9531"/><line style="stroke:#A80036;stroke-width:1.5;" x1="155" x2="215" y1="175.9531" y2="175.9531"/><!--MD5=[2b8367ee8a196632b51868e08daef08d]
class Auth--><rect codeLine="10" fill="#FEFECE" filter="url(#fgwqwp41xefk)" height="48" id="Auth" style="stroke:#A80036;stroke-width:1.5;" width="115" x="169.5" y="27.9531"/><ellipse cx="184.5" cy="43.9531" fill="#A9DCDF" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M186.5781,45.7656 L186.9688,46.75 L186.5781,46.75 C186.125,46.75 186.0156,46.7656 185.8594,46.875 C185.6094,47.0313 185.4531,47.3125 185.4531,47.6094 C185.4531,47.875 185.5938,48.125 185.8125,48.2813 C185.9531,48.4063 186.1563,48.4531 186.5781,48.4531 L188.9375,48.4531 C189.2969,48.4531 189.5156,48.4219 189.6563,48.3281 C189.9063,48.1875 190.0625,47.8906 190.0625,47.6094 C190.0625,47.3281 189.9219,47.0781 189.7031,46.9219 C189.5313,46.7813 189.375,46.75 188.9063,46.75 L185.5156,38.5469 L181.8438,38.5469 C181.3906,38.5469 181.2656,38.5625 181.1094,38.6563 C180.8594,38.8281 180.7031,39.1094 180.7031,39.3906 C180.7031,39.6719 180.8438,39.9219 181.0625,40.0938 C181.2344,40.2031 181.4063,40.2344 181.8438,40.2344 L182.9219,40.2344 L180.2813,46.75 C179.8594,46.75 179.7031,46.7656 179.5469,46.875 C179.2969,47.0313 179.1406,47.3125 179.1406,47.6094 C179.1406,48.1719 179.5156,48.4531 180.2656,48.4531 L182.5313,48.4531 C182.8906,48.4531 183.1094,48.4219 183.2344,48.3281 C183.5,48.1875 183.6406,47.8906 183.6406,47.6094 C183.6406,47.3281 183.5156,47.0781 183.2969,46.9063 C183.125,46.7813 182.9844,46.75 182.5313,46.75 L182.1406,46.75 L182.5313,45.7656 L186.5781,45.7656 Z M185.875,44.0625 L183.2031,44.0625 L184.5469,40.7969 L185.875,44.0625 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="83" x="198.5" y="48.1074">Auth/Account</text><line style="stroke:#A80036;stroke-width:1.5;" x1="170.5" x2="283.5" y1="59.9531" y2="59.9531"/><line style="stroke:#A80036;stroke-width:1.5;" x1="170.5" x2="283.5" y1="67.9531" y2="67.9531"/><!--MD5=[e01564ea403d12ccb6a29063cb9f7cdd]
class Gov--><rect codeLine="11" fill="#FEFECE" filter="url(#fgwqwp41xefk)" height="48" id="Gov" style="stroke:#A80036;stroke-width:1.5;" width="55" x="426.5" y="351.9531"/><ellipse cx="441.5" cy="367.9531" fill="#A9DCDF" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M443.5781,369.7656 L443.9688,370.75 L443.5781,370.75 C443.125,370.75 443.0156,370.7656 442.8594,370.875 C442.6094,371.0313 442.4531,371.3125 442.4531,371.6094 C442.4531,371.875 442.5938,372.125 442.8125,372.2813 C442.9531,372.4063 443.1563,372.4531 443.5781,372.4531 L445.9375,372.4531 C446.2969,372.4531 446.5156,372.4219 446.6563,372.3281 C446.9063,372.1875 447.0625,371.8906 447.0625,371.6094 C447.0625,371.3281 446.9219,371.0781 446.7031,370.9219 C446.5313,370.7813 446.375,370.75 445.9063,370.75 L442.5156,362.5469 L438.8438,362.5469 C438.3906,362.5469 438.2656,362.5625 438.1094,362.6563 C437.8594,362.8281 437.7031,363.1094 437.7031,363.3906 C437.7031,363.6719 437.8438,363.9219 438.0625,364.0938 C438.2344,364.2031 438.4063,364.2344 438.8438,364.2344 L439.9219,364.2344 L437.2813,370.75 C436.8594,370.75 436.7031,370.7656 436.5469,370.875 C436.2969,371.0313 436.1406,371.3125 436.1406,371.6094 C436.1406,372.1719 436.5156,372.4531 437.2656,372.4531 L439.5313,372.4531 C439.8906,372.4531 440.1094,372.4219 440.2344,372.3281 C440.5,372.1875 440.6406,371.8906 440.6406,371.6094 C440.6406,371.3281 440.5156,371.0781 440.2969,370.9063 C440.125,370.7813 439.9844,370.75 439.5313,370.75 L439.1406,370.75 L439.5313,369.7656 L443.5781,369.7656 Z M442.875,368.0625 L440.2031,368.0625 L441.5469,364.7969 L442.875,368.0625 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="23" x="455.5" y="372.1074">Gov</text><line style="stroke:#A80036;stroke-width:1.5;" x1="427.5" x2="480.5" y1="383.9531" y2="383.9531"/><line style="stroke:#A80036;stroke-width:1.5;" x1="427.5" x2="480.5" y1="391.9531" y2="391.9531"/><!--MD5=[0327d3d2aba8dab3351179522443842f]
class Mint--><rect codeLine="12" fill="#FEFECE" filter="url(#fgwqwp41xefk)" height="48" id="Mint" style="stroke:#A80036;stroke-width:1.5;" width="58" x="144" y="351.9531"/><ellipse cx="159" cy="367.9531" fill="#A9DCDF" rx="11" ry="11" style="stroke:#A80036;stroke-width:1.0;"/><path d="M161.0781,369.7656 L161.4688,370.75 L161.0781,370.75 C160.625,370.75 160.5156,370.7656 160.3594,370.875 C160.1094,371.0313 159.9531,371.3125 159.9531,371.6094 C159.9531,371.875 160.0938,372.125 160.3125,372.2813 C160.4531,372.4063 160.6563,372.4531 161.0781,372.4531 L163.4375,372.4531 C163.7969,372.4531 164.0156,372.4219 164.1563,372.3281 C164.4063,372.1875 164.5625,371.8906 164.5625,371.6094 C164.5625,371.3281 164.4219,371.0781 164.2031,370.9219 C164.0313,370.7813 163.875,370.75 163.4063,370.75 L160.0156,362.5469 L156.3438,362.5469 C155.8906,362.5469 155.7656,362.5625 155.6094,362.6563 C155.3594,362.8281 155.2031,363.1094 155.2031,363.3906 C155.2031,363.6719 155.3438,363.9219 155.5625,364.0938 C155.7344,364.2031 155.9063,364.2344 156.3438,364.2344 L157.4219,364.2344 L154.7813,370.75 C154.3594,370.75 154.2031,370.7656 154.0469,370.875 C153.7969,371.0313 153.6406,371.3125 153.6406,371.6094 C153.6406,372.1719 154.0156,372.4531 154.7656,372.4531 L157.0313,372.4531 C157.3906,372.4531 157.6094,372.4219 157.7344,372.3281 C158,372.1875 158.1406,371.8906 158.1406,371.6094 C158.1406,371.3281 158.0156,371.0781 157.7969,370.9063 C157.625,370.7813 157.4844,370.75 157.0313,370.75 L156.6406,370.75 L157.0313,369.7656 L161.0781,369.7656 Z M160.375,368.0625 L157.7031,368.0625 L159.0469,364.7969 L160.375,368.0625 Z " fill="#000000"/><text fill="#000000" font-family="sans-serif" font-size="12" font-style="italic" lengthAdjust="spacing" textLength="26" x="173" y="372.1074">Mint</text><line style="stroke:#A80036;stroke-width:1.5;" x1="145" x2="201" y1="383.9531" y2="383.9531"/><line style="stroke:#A80036;stroke-width:1.5;" x1="145" x2="201" y1="391.9531" y2="391.9531"/><!--MD5=[146b124087f7cda400be61fadf8b2f59]
reverse link Staking to Mint--><path codeLine="14" d="M234.379,307.1801 C220.912,322.0501 205.919,338.6051 194.121,351.6311 " fill="none" id="Staking-backto-Mint" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="229.555,302.0791,248.169,291.9531,239.932,311.4771,229.555,302.0791" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[409236c7d731ab1c807743c3c106b9ab]
reverse link Bank to Mint--><path codeLine="15" d="M182.57,204.2941 C180.074,248.8011 176.284,316.3951 174.305,351.6731 " fill="none" id="Bank-backto-Mint" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="175.584,203.8391,183.693,184.2621,189.562,204.6231,175.584,203.8391" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[0af54bbc215190942eb2327f8c17f6b6]
reverse link Staking to Gov--><path codeLine="17" d="M325.861,301.5331 C359.185,320.6271 399.794,343.8951 426.241,359.0481 " fill="none" id="Staking-backto-Gov" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="322.107,307.4501,308.234,291.4331,329.067,295.3021,322.107,307.4501" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[236c15e9c97a0fbb00c9da686286c845]
reverse link Bank to Gov--><path codeLine="18" d="M234.192,186.0341 C261.981,201.1841 296.707,221.8071 325,243.9531 C367.729,277.3981 410.595,324.1921 434.573,351.8581 " fill="none" id="Bank-backto-Gov" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="230.59,192.0471,216.226,176.4691,237.17,179.6901,230.59,192.0471" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[5f669cfffa161156ee83ace163fa28a9]
reverse link Auth to Gov--><path codeLine="19" d="M260.343,91.7081 C292.144,129.4361 340.599,188.9701 378,243.9531 C402.697,280.2591 427.514,324.9451 441.785,351.6271 " fill="none" id="Auth-backto-Gov" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="254.817,96.0151,247.207,76.2391,265.489,86.9521,254.817,96.0151" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[6e30fcbbefe36bb0345f83abae0423a7]
reverse link Auth to Bank--><path codeLine="21" d="M210.336,95.0101 C204.855,108.8421 198.963,123.7141 194.241,135.6311 " fill="none" id="Auth-backto-Bank" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="204.012,91.9681,217.887,75.9531,217.027,97.1261,204.012,91.9681" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[31ae2dfa3029879e68d1cbef9b0f88bd]
reverse link Bank to Distribution--><path codeLine="23" d="M160.886,201.5871 C134.519,246.0151 93.1812,315.6711 71.8159,351.6731 " fill="none" id="Bank-backto-Distribution" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="154.94,197.8891,171.167,184.2621,166.98,205.0341,154.94,197.8891" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[0c369fc77fc90b3eb86d89852151f118]
reverse link Auth to Distribution--><path codeLine="24" d="M178.423,88.9771 C163.116,102.3171 147.278,118.4881 136,135.9531 C90.1828,206.9021 69.0651,307.1421 61.4846,351.8591 " fill="none" id="Auth-backto-Distribution" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="174.083,83.4821,193.969,76.1631,182.987,94.2851,174.083,83.4821" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[db07519914ef58c64cf9dd13033675af]
reverse link Staking to Distribution--><path codeLine="25" d="M211.511,297.8341 C177.707,314.8161 135.543,335.9981 103.9617,351.8631 " fill="none" id="Staking-backto-Distribution" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="208.793,291.3661,229.807,288.6421,215.078,303.8761,208.793,291.3661" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[5f2f11dbf3d59244d7ce6bb8ddc0eccc]
reverse link Staking to Evidence--><path codeLine="27" d="M275.683,312.2941 C282.547,356.8011 292.97,424.3947 298.41,459.6727 " fill="none" id="Staking-backto-Evidence" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="268.724,313.0951,272.594,292.2621,282.561,310.9621,268.724,313.0951" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[43ae5d52742d759cb1581af10e2c4991]
reverse link Slashing to Evidence--><path codeLine="28" d="M331.174,418.5279 C324.849,432.4959 318.02,447.5755 312.561,459.6315 " fill="none" id="Slashing-backto-Evidence" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="324.958,415.285,339.585,399.9531,337.711,421.0602,324.958,415.285" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[402f4cd8dbd2c5a2c70ab5dbf16f5354]
reverse link Staking to Slashing--><path codeLine="30" d="M298.938,308.1311 C310.111,322.7531 322.437,338.8821 332.179,351.6311 " fill="none" id="Staking-backto-Slashing" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="293.157,312.0951,286.576,291.9531,304.281,303.5951,293.157,312.0951" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[3ed672bfd9e9e949e8ccefacf5571992]
reverse link Auth to Staking--><path codeLine="32" d="M235.447,95.9911 C244.181,140.4921 257.491,208.3141 264.431,243.6731 " fill="none" id="Auth-backto-Staking" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="228.558,97.2361,231.575,76.2621,242.295,94.5401,228.558,97.2361" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[8e55c5ab326de1db8fc263dbb8e67c03]
reverse link Bank to Staking--><path codeLine="33" d="M215.67,199.6551 C227.355,214.4011 240.306,230.7441 250.519,243.6311 " fill="none" id="Bank-backto-Staking" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="none" points="210.162,203.9761,203.227,183.9531,221.135,195.2811,210.162,203.9761" style="stroke:#A80036;stroke-width:1.0;"/><!--MD5=[95f5af3233a49d95830d7636dddfed0f]
@startuml
'https://plantuml.com/class-diagram
title: The dependencies between Keepers (Feb 2021)
abstract class Staking
abstract class Distribution
abstract class Slashing
abstract class Evidence
abstract class Bank
abstract class "Auth/Account" as Auth
abstract class Gov
abstract class Mint
Staking <|- - Mint
Bank <|- - Mint
Staking <|- - Gov
Bank <|- - Gov
Auth <|- - Gov
Auth <|- - Bank
Bank <|- - Distribution
Auth <|- - Distribution
Staking <|- - Distribution
Staking <|- - Evidence
Slashing <|- - Evidence
Staking <|- - Slashing
Auth <|- - Staking
Bank <|- - Staking
@enduml
@startuml
title: The dependencies between Keepers (Feb 2021)
abstract class Staking
abstract class Distribution
abstract class Slashing
abstract class Evidence
abstract class Bank
abstract class "Auth/Account" as Auth
abstract class Gov
abstract class Mint
Staking <|- - Mint
Bank <|- - Mint
Staking <|- - Gov
Bank <|- - Gov
Auth <|- - Gov
Auth <|- - Bank
Bank <|- - Distribution
Auth <|- - Distribution
Staking <|- - Distribution
Staking <|- - Evidence
Slashing <|- - Evidence
Staking <|- - Slashing
Auth <|- - Staking
Bank <|- - Staking
@enduml
PlantUML version 1.2021.5beta3(Unknown compile time)
(GPL source distribution)
Java Runtime: Java(TM) SE Runtime Environment
JVM: Java HotSpot(TM) 64-Bit Server VM
Default Encoding: UTF-8
Language: en
Country: US
--></g></svg>

After

Width:  |  Height:  |  Size: 23 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 13 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -80,7 +80,7 @@ tracked in validator object in the `Validators` index.
It is possible to delegate to a jailed validator, the only difference being it
will not be added to the power index until it is unjailed.
![](docs/uml/delegation_sequence.svg)
![Delegation sequence](../../../docs/uml/svg/delegation_sequence.svg)
## Msg/Undelegate
@ -114,7 +114,7 @@ When this service message is processed the following actions occur:
- if there are no more `Shares` in the delegation, then the delegation object is removed from the store
- under this situation if the delegation is the validator's self-delegation then also jail the validator.
![](docs/uml/unbond_sequence.svg)
![Unbond sequence](../../../docs/uml/svg/unbond_sequence.svg)
## Msg/BeginRedelegate
@ -151,4 +151,4 @@ When this service message is processed the following actions occur:
- if there are no more `Shares` in the source delegation, then the source delegation object is removed from the store
- under this situation if the delegation is the validator's self-delegation then also jail the validator.
![](docs/uml/begin_redelegation_sequence.svg)
![Begin redelegation sequence](../../../docs/uml/svg/begin_redelegation_sequence.svg)