<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by GenuineLabs on Medium]]></title>
        <description><![CDATA[Stories by GenuineLabs on Medium]]></description>
        <link>https://medium.com/@GenuineLabs?source=rss-29694728b5ed------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*r3HNzv8ZGquLLEPZaOvAjQ.jpeg</url>
            <title>Stories by GenuineLabs on Medium</title>
            <link>https://medium.com/@GenuineLabs?source=rss-29694728b5ed------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:36:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@GenuineLabs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[OFICIAL STATEMENT Tax2Gas]]></title>
            <link>https://medium.com/@GenuineLabs/oficial-statement-tax2gas-84128df63c5b?source=rss-29694728b5ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/84128df63c5b</guid>
            <dc:creator><![CDATA[GenuineLabs]]></dc:creator>
            <pubDate>Sat, 03 Aug 2024 22:10:08 GMT</pubDate>
            <atom:updated>2024-08-03T22:10:49.143Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*89RG4Lpr7iPOMDE_Aq-pWQ@2x.jpeg" /></figure><h4>Hello Luna Classic Community,</h4><p>For the last few weeks we have worked hard on our tax2gas implementation as we want to provide you with the most reliable and efficient option. We have done throughout testing and have seeked external technical advisory and after analyzing all the current and future scenarios, we have come to a decision to commit our tax2gas design, which we believe is the best version for tax2gas.</p><p>With the current PPJ, every project or work we commit doing for Luna Classic is treated like an investment to us as we know the true potential this blockchain and its community have and we want to help in any way possible. We spent 6 weeks with all of our efforts on this task and I’m afraid we could not “redo” this work from scratch according to other designs, but we are always pleased in conducting our work that follows governance and the community’s will and their satisfaction. That’s the reason for our current proposal, where we nominate our design as the best solution presented for tax2gas. We appreciate all your support and we assure you we will do everything from our end to make sure we provide service of excellence for you all.</p><p>Sincerely,</p><p>Genuine Labs</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84128df63c5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Biweekly Report by Genuine Labs]]></title>
            <link>https://medium.com/@GenuineLabs/biweekly-report-by-genuine-labs-4128f6427be0?source=rss-29694728b5ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/4128f6427be0</guid>
            <dc:creator><![CDATA[GenuineLabs]]></dc:creator>
            <pubDate>Sat, 27 Jul 2024 17:45:49 GMT</pubDate>
            <atom:updated>2024-07-28T16:29:55.679Z</atom:updated>
            <content:encoded><![CDATA[<h2>Biweekly Report by Genuine Labs (Tax2Gas) Update #2</h2><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*2QuNN4UE_uU8QiSc0kHepw@2x.jpeg" /></figure><p>Dear Terra Classic Community,</p><p>Another 2 weeks have passed and we are excited to share all the details about the Tax2Gas process outlined in our previous PPJ Proposal. We are pleased to announce that the tax2gas’s logic and testing in e2e has been completed. We are deeply grateful for the community’s ongoing support and appreciate your patience and interest in our ongoing work.</p><blockquote>This is the final version of our work for Tax2Gas: https://github.com/classic-terra/core/pull/500</blockquote><blockquote>Our test scenarios for testing Tax2Gas logic in e2e can be found at: https://gist.github.com/phamminh0811/524deee67f1e017bce0e13683fbcef9a (Test Scenario)</blockquote><p>Let’s dive deeper into what we have done!</p><h3><strong>Finish tax2gas logic</strong></h3><p>For Tax2Gas logic, there’re still a few problems we encountered in the previous weeks:</p><ul><li>Make the user that execute contract to pay for multiple forward flow</li><li>Calculate the exact amount of gas that has been consumed in the form of gas</li></ul><h4>1. Make the user that execute contract to pay for multiple forward flow</h4><p>This is an example of how this will work:</p><p>User A do an execute contract action that will send 10000uluna to contract B, contract B will execute or do bank send with the amount it received to account C. The original flow in terra classic v3.0.0 will make user A to pay 200uluna as burn tax and make contract B to pay for the amount it transfer. Therefore, contract B itself will deduct amount it receive to 9800uluna in order to make the transfer success, and the receiver C can only receive 9800uluna.</p><p>In tax2gas context, we don’t want to make this happen. Receiver C should receive 10000uluna and user A must be the one to pay for all of the taxes, which includes 200uluna when execute contract B and 200uluna when contract B forward to another address.</p><h4>2. Calculate the exact amount of gas that has been consumed in the form of gas</h4><p>As we convert tax to gas and the gas amount can only be deducted on post handler, there is a problem that came up: we need to know what is the exact amount of tax to handle the BurnTaxSplit logic, which will send 80% to burn, 10% to Community Pool, 10% to rewards.</p><p>If we send all of the gas consumed in runTx to BurnTaxSplit, the validator rewards will be very low because most of the fees will be burned, therefore no one will want to run a validator when the operational cost is higher than its rewards.</p><h4>Our solution</h4><blockquote>Recognizing those problems, we have customed the cosmos-sdk for a special gas meter: <strong>TaxGasMeter</strong></blockquote><blockquote>Our custom can be found at: https://github.com/classic-terra/cosmos-sdk/tree/release/v0.47.x-terra-classic</blockquote><p>TaxGasMeter will only consume gas when there is a special tx that cost taxes. Therefore, it will solve both cases above:</p><ul><li>When a contract dispatch a msg, we will check if the tx is in the list or not. If it’s a tax cost msg, we will consume the correspond tax gas for it. On posthandler, user will be the one who pay for all of the taxes.</li><li>As the tax gas is separated to normal gas, we can compute the amount of taxes and handler BurnTaxSplit only for those taxes</li></ul><h4>Bypass IBC tx</h4><p>Inspired from Global Fee module, we add a few msg types of IBC that is allowed to not pay fees:</p><ul><li>MsgUpdateClient</li><li>MsgRecvPacket</li><li>MsgAcknowledgement</li><li>MsgTimeout</li><li>MsgTimeoutOnClose</li></ul><p>The max bypass gas parameter is 1.000.000 gas, which means above tx types will not be charged fees if gas limit is smaller than 1.000.000 gas.</p><p>With this addition, IBC relayers can relay without fees if all txs are small and enhance the IBC relaying for the chain.</p><h4>E2E test scenario</h4><p>In order to ensure everything is on the right track. We listed all the testcases and scenarios that we believe that it cover most circumstances.</p><blockquote>Our testscenarios for testing Tax2Gas logic in e2e can be found at: https://gist.github.com/phamminh0811/524deee67f1e017bce0e13683fbcef9a</blockquote><h3>Next steps</h3><p>This is the final report for our PPJ work on tax2gas. In the coming time, we plan to conduct thorough testing on testnet and create a proposal for chain upgrade and spend proposal.</p><p>We couldn’t be building a better Terra Classic without your incredible support. Thank you for standing with us through the challenges!</p><p>Best regards,</p><p>Genuine Labs Team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4128f6427be0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Biweekly report by Genuine Labs]]></title>
            <link>https://medium.com/@GenuineLabs/biweekly-report-by-genuine-labs-09f54cc828a7?source=rss-29694728b5ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/09f54cc828a7</guid>
            <category><![CDATA[terra-classic]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[luna-classic]]></category>
            <dc:creator><![CDATA[GenuineLabs]]></dc:creator>
            <pubDate>Wed, 10 Jul 2024 13:46:35 GMT</pubDate>
            <atom:updated>2024-07-13T20:01:06.066Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5hwQb2Fzyqzj62jeFRMH_w.png" /></figure><p>Hey, Terra Classic community!</p><p>It’s been two weeks, and Genuine Labs is excited to bring you an update on our mission to fuel Terra Classic’s growth. The overwhelming support and encouragement from the community is incredibly meaningful to us. We are sincerely thankful for the opportunity to contribute these enhancements to the Luna Classic chain.</p><h3><strong>Highlights of the past 2 weeks include:</strong></h3><blockquote><strong>Implement Tax2Gas module</strong></blockquote><blockquote><strong>Change the way wasm handler plugin behave</strong></blockquote><blockquote><strong>Upgrade Handler</strong></blockquote><p><strong>You can find our work here:<br></strong><a href="https://github.com/classic-terra/core/tree/minh/tax2gas">https://github.com/classic-terra/core/tree/minh/tax2gas</a></p><p>Let’s go into the details in below sections 👇</p><h3><strong>Implement Tax2Gas module</strong></h3><blockquote>The Tax2Gas module will now hold gas price values of 22 denoms of Terra Classic.</blockquote><blockquote>The Tax2Gas module will define the logic of the AnteHandler and PostHandler<em>.</em></blockquote><p>The taxes now will be converted to gas and consumed at PostHandler after RunMsgs is called. In simpler terms, the fee will not be fully consumed but the need part will be consumed and the fee will only be consumed on success Tx.</p><h4><strong>AnteHandler</strong></h4><p>The AnteHandler will only deduct tax that based on consumed gas counted to that point. For example, the total gas need for the transaction is 200000, but as there is a small part of gas is consumed counted to the point of <strong><em>AnteHandler</em></strong>, says 50000 gas, we will now convert 50000 gas to taxes based on gas prices defined earlier and try to remove them from the fee user provided.</p><p>We continue to convert taxes comes from the amount sent to gas. For example, sending <strong><em>100,000uluna</em></strong> will make the taxes <strong><em>100uluna</em></strong>. We now convert <strong><em>100uluna</em></strong> to gas and do check that the gas of transaction is sufficient.</p><h4><strong>PostHandler</strong></h4><p>The <strong><em>PostHandler</em></strong> will calculate consumed gas at that point, which is kind of majority of the transaction, and convert consumed gas back to taxes. Until this point, we try to deduct the taxes from the fees the user provided.</p><h3><strong>Wasm Handler Plugin</strong></h3><p>In current implementation, the contract itself needs to query <strong><em>tax rate</em></strong> and <strong><em>tax cap</em></strong> from the chain and then calculate the <strong><em>amount — tax</em></strong>. This required new contracts outside the ecosystem to implement this and makes harder for them to participate in Terra Classic for various reasons.</p><p>The new implementation will reduce the sent amount in the msgs that the contract sends. For example, when sending <strong><em>100,000uluna</em></strong> the Handler Plugin will calculate the taxes to be <strong><em>100uluna</em></strong> and set the amount to be sent to be <strong><em>99,900uluna</em></strong> and deduct the <strong><em>100uluna</em></strong> <strong><em>from the contract</em></strong>.</p><h3><strong>Upgrade Handler</strong></h3><p>Upgrade Handler for V8_1 which includes the adding of new store of <strong><em>tax2gas</em></strong> module</p><h3><strong>Next Steps</strong></h3><p>We are putting in a lot of effort in the upcoming weeks to overcome challenges and deliver new features smoothly.<br>Comment</p><p>Specifically, here are the tasks lined up for the next two weeks:</p><blockquote>Unit tests for the new module and implementation.<br>E2E tests.<br>Manual tests and testnet test.</blockquote><p>We couldn’t be building a better Terra Classic without your incredible support. Thank you for standing with us through the challenges!<br>Comment</p><p>Best regards,<br>Genuine Labs Team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09f54cc828a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>