<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Wayfinding on phasewalk</title>
    <link>https://blog.phasewalk.xyz/tags/wayfinding/</link>
    <description>Recent content in Wayfinding on phasewalk</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 06 Aug 2024 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.phasewalk.xyz/tags/wayfinding/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Cosmos SDK Gas Metering</title>
      <link>https://blog.phasewalk.xyz/posts/cosmos-sdk-gas/</link>
      <pubDate>Tue, 06 Aug 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.phasewalk.xyz/posts/cosmos-sdk-gas/</guid>
      <description>&lt;p&gt;One challenge of implementing &lt;a href=&#34;https://github.com/polymerdao/monomer&#34;&gt;Monomer&lt;/a&gt;&#xA;is creating a standard for how gas is &lt;em&gt;metered&lt;/em&gt; and &lt;em&gt;handled&lt;/em&gt;. By &lt;em&gt;metered&lt;/em&gt; we&#xA;mean both &lt;em&gt;tracked&lt;/em&gt; and &lt;em&gt;calculated&lt;/em&gt;. By &lt;em&gt;handled&lt;/em&gt; we mean how fees are&#xA;&lt;em&gt;checked&lt;/em&gt; and ultimately &lt;em&gt;deducted&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;On the Monomer side, the problem we want to solve is two-fold:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Exempting the first transaction of every block from gas fees&lt;/strong&gt; (the first&#xA;tx in each block are Layer-1 deposits).&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Translating the gas limit from the Engine API&amp;rsquo;s &lt;code&gt;PayloadAttributes&lt;/code&gt; to the&#xA;Cosmos SDK&lt;/strong&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;To tackle this problem, we need to take a step back and understand how gas is&#xA;handled in the Cosmos SDK; first at a high-level, and then at a more granular&#xA;implementation-level.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
