<?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 Tim Rivers on Medium]]></title>
        <description><![CDATA[Stories by Tim Rivers on Medium]]></description>
        <link>https://medium.com/@tim_rivers?source=rss-6d4481f4fd01------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2RYtx57vwuG0nrhtpfdrwQ.png</url>
            <title>Stories by Tim Rivers on Medium</title>
            <link>https://medium.com/@tim_rivers?source=rss-6d4481f4fd01------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 05:17:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tim_rivers/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[A Smart Contract Needs More Than Storage]]></title>
            <link>https://medium.com/@tim_rivers/a-smart-contract-needs-more-than-storage-1fb2550de36b?source=rss-6d4481f4fd01------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fb2550de36b</guid>
            <category><![CDATA[mainnet]]></category>
            <category><![CDATA[sui]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[dubhe-engine]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Tim Rivers]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 23:11:08 GMT</pubDate>
            <atom:updated>2026-10-04T23:11:08.030Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tUJfndShjh_L5IJq_4uzxw.png" /></figure><p>One thing that took me a while to really understand:</p><p>storing data and changing that data are two different problems.</p><p>Let&#39;s say we have a simple on-chain account with:</p><p>points<br>tier<br>active</p><p>We need somewhere to store this state.</p><p>But the data itself doesn&#39;t know what is allowed to happen to it.</p><p>What happens when someone earns points?<br>When can their tier change?<br>Who is allowed to make that change?</p><p>That&#39;s where Schema Based Storage and contract logic come together in Dubhe.</p><p>In Dubhe V2, you can describe your application&#39;s state as resources in dubhe.config.ts.</p><p>For example, an account could have points, tier and active fields.</p><p>After running dubhe generate, Dubhe generates the Move storage layer needed to work with those resources on-chain.</p><p>By default, resources use UserStorage. Global resources can use DappStorage instead.</p><p>But storage is only half of the story.</p><p>The rules live in Systems.</p><p>A System is a Move module where the actual application logic is defined.</p><p>For example, an earn-points system could read the user&#39;s current points, check the conditions, and update the stored value.</p><p>So the whole thing becomes pretty simple:</p><p>Resources define the state.<br>Dubhe generates the storage.<br>Systems define the rules.<br>The contract brings them together.</p><p>That&#39;s what Schema Based Storage is really about for me.</p><p>You describe what exists, generate the foundation, and then define what can happen to that state.</p><p>Storage and contract logic aren&#39;t separate worlds.</p><p>They’re two parts of the same app.</p><p>Follow Dubhe Engine on <a href="https://x.com/DubheEngine">https://x.com/DubheEngine</a>, <a href="https://discord.gg/fBbDSJM5B2">https://discord.gg/fBbDSJM5B2</a>, <a href="https://t.me/dubheengine">https://t.me/dubheengine</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fb2550de36b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>