Created
January 12, 2022 19:09
-
-
Save ethanfrey/d3006852b35f2a3ad0e6d0affd191e61 to your computer and use it in GitHub Desktop.
PoE Contracts Basic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="602px" height="1091px" viewBox="-0.5 -0.5 602 1091" style="background-color: rgb(255, 255, 255);"><defs/><g><rect x="1" y="350" width="110" height="90" rx="13.5" ry="13.5" fill="#e6ffcc" stroke="#000000" stroke-width="3" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 112px; height: 90px; padding-top: 350px; margin-left: 0px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center; width: 110px; height: 90px; overflow: hidden;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; width: 100%; height: 100%; white-space: nowrap;"><p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><strong>Engagement</strong></p><hr /><p style="margin: 0px ; margin-left: 8px">Code ID: 1</p><p style="margin: 0px ; margin-left: 8px">TG4, CW2222</p><p style="margin: 0px ; margin-left: 8px"><i>BeginBlock</i></p></div></div></div></foreignObject><text x="56" y="399" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold">Engagement...</text></switch></g><rect x="281" y="350" width="110" height="100" rx="15" ry="15" fill="#e6ffcc" stroke="#000000" stroke-width="3" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 112px; height: 100px; padding-top: 350px; margin-left: 280px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center; width: 110px; height: 100px; overflow: hidden;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; width: 100%; height: 100%; white-space: nowrap;"><p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><strong>Staking</strong></p><hr /><p style="margin: 0px ; margin-left: 8px">Code ID: 2</p><p style="margin: 0px ; margin-left: 8px">TG4</p><p style="margin: 0px ; margin-left: 8px"><i>BeginBlock</i></p></div></div></div></foreignObject><text x="336" y="404" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold">Staking...</text></switch></g><rect x="111" y="550" width="110" height="90" rx="13.5" ry="13.5" fill="#e6ffcc" stroke="#000000" stroke-width="3" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 112px; height: 90px; padding-top: 550px; margin-left: 110px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center; width: 110px; height: 90px; overflow: hidden;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; width: 100%; height: 100%; white-space: nowrap;"><p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><strong>Mixer</strong></p><hr /><p style="margin: 0px ; margin-left: 8px">Code ID: 3</p><p style="margin: 0px ; margin-left: 8px">TG4</p></div></div></div></foreignObject><text x="166" y="599" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold">Mixer...</text></switch></g><path d="M 83.5 440 L 129 440 Q 139 440 139 450 L 139 541.76" fill="none" stroke="#990000" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 139 547.76 L 135 539.76 L 139 541.76 L 143 539.76 Z" fill="#990000" stroke="#990000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/><g fill="#000000" font-family="Helvetica" text-anchor="middle" font-size="11px"><rect fill="#ffffff" stroke="none" x="97" y="462" width="86" height="14" stroke-width="0"/><text x="138.5" y="471.5">Update Members</text></g><path d="M 111 572.5 L 66 572.5 Q 56 572.5 56 562.5 L 56 448.24" fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 56 442.24 L 60 450.24 L 56 448.24 L 52 450.24 Z" fill="#000000" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/><g fill="#000000" font-family="Helvetica" text-anchor="middle" font-size="11px"><rect fill="#ffffff" stroke="none" x="35" y="528" width="44" height="14" stroke-width="0"/><text x="55.5" y="537.5">Slashing</text></g><path d="M 308.5 450 L 204 450 Q 194 450 194 460 L 194 541.76" fill="none" stroke="#990000" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 194 547.76 L 190 539.76 L 194 541.76 L 198 539.76 Z" fill="#990000" stroke="#990000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/><g fill="#000000" font-family="Helvetica" text-anchor="middle" font-size="11px"><rect fill="#ffffff" stroke="none" x="158" y="444" width="86" height="14" stroke-width="0"/><text x="200" y="454">Update Members</text></g><path d="M 221 572.5 L 341 572.5 Q 351 572.5 351 562.5 L 351 458.24" fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 351 452.24 L 355 460.24 L 351 458.24 L 347 460.24 Z" fill="#000000" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/><g fill="#000000" font-family="Helvetica" text-anchor="middle" font-size="11px"><rect fill="#ffffff" stroke="none" x="326" y="567" width="44" height="14" stroke-width="0"/><text x="346.5" y="576.5">Slashing</text></g><rect x="111" y="710" width="110" height="90" rx="13.5" ry="13.5" fill="#e6ffcc" stroke="#000000" stroke-width="3" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 112px; height: 90px; padding-top: 710px; margin-left: 110px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center; width: 110px; height: 90px; overflow: hidden;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; width: 100%; height: 100%; white-space: nowrap;"><p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><strong>Validators</strong></p><hr /><p style="margin: 0px ; margin-left: 8px">Code ID: 4</p><p style="margin: 0px ; margin-left: 8px"><i>UpdateValSet</i></p><p style="margin: 0px ; margin-left: 8px"><i>MintTokens</i></p></div></div></div></foreignObject><text x="166" y="759" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold">Validators...</text></switch></g><rect x="111" y="900" width="110" height="90" rx="13.5" ry="13.5" fill="#e6ffcc" stroke="#000000" stroke-width="3" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 112px; height: 90px; padding-top: 900px; margin-left: 110px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center; width: 110px; height: 90px; overflow: hidden;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; width: 100%; height: 100%; white-space: nowrap;"><p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><strong>Distribution</strong></p><hr /><p style="margin: 0px ; margin-left: 8px">Code ID: 1</p><p style="margin: 0px ; margin-left: 8px">TG4, CW2222</p></div></div></div></foreignObject><text x="166" y="949" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold">Distribution...</text></switch></g><path d="M 138.5 710 L 138.94 648.24" fill="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 138.98 642.24 L 142.93 650.26 L 138.94 648.24 L 134.93 650.21 Z" fill="#000000" stroke="#000000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/><g fill="#000000" font-family="Helvetica" text-anchor="middle" font-size="11px"><rect fill="#ffffff" stroke="none" x="118" y="669" width="44" height="14" stroke-width="0"/><text x="138.5" y="678.5">Slashing</text></g><path d="M 194 705 L 194 648.24" fill="none" stroke="#6f0000" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 194 642.24 L 198 650.24 L 194 648.24 L 190 650.24 Z" fill="#6f0000" stroke="#6f0000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/><g fill="#000000" font-family="Helvetica" text-anchor="middle" font-size="11px"><rect fill="#ffffff" stroke="none" x="171" y="660" width="48" height="27" stroke-width="0"/><text x="193.5" y="669.5">Query</text><text x="193.5" y="682.5">Members</text></g><path d="M 138.5 800 L 138.5 891.76" fill="none" stroke="#005700" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 138.5 897.76 L 134.5 889.76 L 138.5 891.76 L 142.5 889.76 Z" fill="#005700" stroke="#005700" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 850px; margin-left: 139px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">Rewards</div></div></div></foreignObject><text x="139" y="853" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle">Rewards</text></switch></g><path d="M 111 755 L 39 755 Q 29 755 29 745 L 29 448.24" fill="none" stroke="#005700" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 29 442.24 L 33 450.24 L 29 448.24 L 25 450.24 Z" fill="#005700" stroke="#005700" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/><g fill="#000000" font-family="Helvetica" text-anchor="middle" font-size="11px"><rect fill="#ffffff" stroke="none" x="7" y="632" width="45" height="14" stroke-width="0"/><text x="28.5" y="642">Rewards</text></g><rect x="11" y="0" width="380" height="30" fill="none" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 378px; height: 1px; padding-top: 15px; margin-left: 12px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal;"><b>PoE Basic Flow</b></div></div></div></foreignObject><text x="201" y="19" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle">PoE Basic Flow</text></switch></g><rect x="371" y="190" width="110" height="90" rx="13.5" ry="13.5" fill="#e6ffcc" stroke="#000000" stroke-width="3" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 112px; height: 90px; padding-top: 190px; margin-left: 370px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center; width: 110px; height: 90px; overflow: hidden;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; width: 100%; height: 100%; white-space: nowrap;"><p style="margin: 0px ; margin-top: 4px ; text-align: center ; text-decoration: underline"><strong>Community Pool</strong></p><hr /><p style="margin: 0px ; margin-left: 8px">Code ID: 7</p><p style="margin: 0px ; margin-left: 8px"><br /></p><p style="margin: 0px ; margin-left: 8px">Spends Tokens</p></div></div></div></foreignObject><text x="426" y="239" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold">Community Pool...</text></switch></g><rect x="431" y="850" width="170" height="240" fill="none" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 168px; height: 1px; padding-top: 970px; margin-left: 432px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal;">Code IDs:<br /><br />1. tg4-engagement<br />2. tg4-stake<br />3. tg4-mixer<br />4. tgrade-valset<br />5. tgrade-trusted-circle<br />6. tgrade-oc-gov<br />7. tgrade-engage-gov<br />8. tgrade-val-gov</div></div></div></foreignObject><text x="516" y="974" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle">Code IDs:...</text></switch></g><path d="M 221 722.96 L 431.5 722.96 Q 441.5 722.96 441.5 712.96 L 441.5 288.24" fill="none" stroke="#005700" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 441.5 282.24 L 445.5 290.24 L 441.5 288.24 L 437.5 290.24 Z" fill="#005700" stroke="#005700" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/><g fill="#000000" font-family="Helvetica" text-anchor="middle" font-size="11px"><rect fill="#ffffff" stroke="none" x="420" y="605" width="45" height="14" stroke-width="0"/><text x="441" y="615.46">Rewards</text></g><path d="M 191 803 L 191 891.76" fill="none" stroke="#6f0000" stroke-width="2" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 191 897.76 L 187 889.76 L 191 891.76 L 195 889.76 Z" fill="#6f0000" stroke="#6f0000" stroke-width="2" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 852px; margin-left: 191px;"><div style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">Set<br />Points</div></div></div></foreignObject><text x="191" y="855" fill="#000000" font-family="Helvetica" font-size="11px" text-anchor="middle">Set...</text></switch></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Viewer does not support full SVG 1.1</text></a></switch></svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment