<?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 Anthea Wang on Medium]]></title>
        <description><![CDATA[Stories by Anthea Wang on Medium]]></description>
        <link>https://medium.com/@fy.aw?source=rss-e07e764162f5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_rSeiJ0LvDXNyk6ul6PJuA.jpeg</url>
            <title>Stories by Anthea Wang on Medium</title>
            <link>https://medium.com/@fy.aw?source=rss-e07e764162f5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 13:41:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fy.aw/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[BlockSTM and MemIAVL Boosting Cronos Chain]]></title>
            <link>https://medium.com/cosmos-blockchain/blockstm-and-memiavl-boosting-cronos-chain-e6baa779c679?source=rss-e07e764162f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6baa779c679</guid>
            <category><![CDATA[memlavl]]></category>
            <category><![CDATA[cosmos-sdk]]></category>
            <category><![CDATA[blockstm]]></category>
            <category><![CDATA[cronos]]></category>
            <category><![CDATA[cronoschain]]></category>
            <dc:creator><![CDATA[Anthea Wang]]></dc:creator>
            <pubDate>Tue, 10 Jun 2025 12:38:53 GMT</pubDate>
            <atom:updated>2025-06-10T12:38:53.675Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EDN4Juo9FuRAbSrS" /></figure><h3>Performance</h3><p>The efficiency of transaction execution is crucial for scalability and user experience for blockchain networks. High throughput (the number of transactions per second) and low latency (quick confirmation times) allow a smooth dApp experience even under heavy usage. To offer a better experience to users, the Cronos development team has worked diligently to optimize performance in order to meet growing demand. Two key innovations that have played a major role in enhancing transaction processing and state management on Cronos are BlockSTM and MemIAVL.</p><p>These innovations were co-contributed and designed to benefit the broader Cosmos ecosystem and have already inspired adoption elsewhere.</p><h3><strong>BlockSTM Overview</strong></h3><p>BlockSTM (block-level Software Transactional Memory) is a parallel execution engine that brings concurrency to transaction processing on Cronos. Traditionally, blockchain nodes process transactions sequentially, which can create performance bottlenecks. BlockSTM improves on this by allowing multiple transactions to be executed concurrently within a block. By leveraging STM, an optimistic concurrency control technique, BlockSTM ensures that conflicts are automatically handled and only rollback where necessary.</p><p>This parallelism makes better use of multi-core CPU resources, significantly increasing throughput and reducing latency. The Cronos team introduced a configurable benchmarking framework to evaluate the performance gains across different transaction types and environments. As shared in <a href="https://blog.cronos.org/p/announcing-the-cronos-evm-v140-pallene">a previous post</a>, in internal tests, the Cronos chain achieved throughput levels of up to 60,000 TPS, compared to a baseline of ~100 TPS. Even in multi-node configurations, the performance uplift remained substantial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4blAVJgzBN2au6eO" /></figure><p>BlockSTM also reduces block processing time, which in turn supports lower block intervals and quicker finality. During benchmarking, it became apparent that the execution engine outpaced the load generator, indicating further room for growth with future tooling improvements. These findings are documented in the <a href="https://github.com/crypto-org-chain/cronos/wiki/V1.4-Benchmark">v1.4 benchmarking report</a>.</p><h4>MemIAVL Overview</h4><p>While BlockSTM focuses on execution speed, MemIAVL (short for <em>Memory IAVL</em>) addresses the efficiency of state storage and commitment. In Cosmos SDK-based chains, the application state is traditionally managed by an IAVL tree. However, the original IAVL implementation can become a bottleneck due to the overhead of frequent disk writes and deep tree updates.</p><p>MemIAVL is an alternative implementation<strong> </strong>co-developed by the Cosmos and Cronos teams. It optimizes performance by storing working state in memory, using memory-mapped snapshots, and logging change sets via a write-ahead log (WAL). This dramatically improves the speed of committing state changes and restoring snapshots.</p><p>Tests showed that with MemIAVL:</p><ul><li>State snapshot restore times decreased from 16 hours to 5 minutes</li><li>Block commit latency dropped over 10x</li><li>Archived change sets are up to 100x smaller than full historical trees</li></ul><p>MemIAVL is particularly well-suited for pruned nodes that do not retain full historical state. It works in conjunction with Cronos’s VersionDB, which handles historical data queries. For more details, refer to the<a href="https://github.com/crypto-org-chain/cronos/wiki/MemIAVL"> MemIAVL documentation</a> and <a href="https://github.com/crypto-org-chain/cronos/tree/main/memiavl#alternative-iavl-implementation">repository</a>.</p><h3>A Collaborative Effort and Impact</h3><p>Although the Cronos team initiated and implemented these technologies, they are designed to be modular and open. The Cosmos SDK community has shown interest in incorporating BlockSTM, and MemIAVL has inspired similar efforts. Notably, the Sei team adopted a <a href="https://github.com/sei-protocol/sei-db?tab=readme-ov-file#state-commitment-sc-layer">MemIAVL-inspired design</a> for their own state commitment layer.</p><p>Cronos’s implementation of BlockSTM and MemIAVL is available as open source in the <a href="https://github.com/crypto-org-chain/go-block-stm">BlockSTM Codebase</a>, <a href="https://github.com/crypto-org-chain/cronos/wiki/V1.4-Benchmark">Benchmark Results</a>, and <a href="https://github.com/crypto-org-chain/cronos/wiki/MemIAVL">MemIAVL Documentation</a>. These contributions aim to strengthen not just Cronos but also help lay the groundwork for performance improvements across other Cosmos SDK chains.</p><p>For developers and ecosystem partners, the benefits are clear:</p><ul><li>Higher throughput enables high-volume applications like DeFi trading platforms or real-time games</li><li>Lower latency improves the user experience for applications needing fast finality</li><li>Faster node sync reduces operational burden for infrastructure providers</li><li>Improved RPC performance accelerates development and debugging workflows</li></ul><p>These enhancements empower developers to build more responsive and scalable applications directly on Cronos, without depending on external scaling solutions.</p><h3>Conclusion</h3><p>BlockSTM and MemIAVL represent important steps toward solving core performance challenges in blockchain infrastructure. Through open collaboration and community-oriented development, the Cronos team is proud to contribute to the Cosmos ecosystem’s technical advancement. These innovations exemplify how deep protocol-level improvements can enable a new wave of dApps and expand the potential of Web3 infrastructure.</p><p>We encourage Cosmos ecosystem developers and chain operators to explore, test, and contribute to these initiatives. Together, we can build a faster and more efficient decentralized future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6baa779c679" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cosmos-blockchain/blockstm-and-memiavl-boosting-cronos-chain-e6baa779c679">BlockSTM and MemIAVL Boosting Cronos Chain</a> was originally published in <a href="https://medium.com/cosmos-blockchain">Cosmos Community Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Governance Proposal for Crypto.org Mainnet V4 Upgrade is Now Live for Voting]]></title>
            <link>https://medium.com/crypto-org-chain/governance-proposal-for-crypto-org-mainnet-v4-upgrade-is-now-live-for-voting-9451f6dad236?source=rss-e07e764162f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9451f6dad236</guid>
            <category><![CDATA[cryptocom]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[blockchain-development]]></category>
            <dc:creator><![CDATA[Anthea Wang]]></dc:creator>
            <pubDate>Tue, 07 Feb 2023 15:06:30 GMT</pubDate>
            <atom:updated>2023-02-07T15:06:30.994Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXgmS5hmtagnnBjY7uARqg.png" /></figure><p>We’re excited to announce the launch of our latest governance proposal for the V4 upgrade for the Crypto.org Chain. This will explore fresh opportunities for our ecosystem to empower the chain. We are urged to hear our community’s feedback on the upgrade proposal and would like to invite you to cast your vote.</p><p><strong>What is this proposal?</strong></p><p>We are proposing a network upgrade for the Crypto.org Chain mainnet crypto-org-chain-mainnet-1.</p><p>This newest Crypto.org Chain binary <a href="https://github.com/crypto-org-chain/chain-main/releases/tag/v4.2.2">v4.2.2</a> is an upgraded base on <a href="https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.7">Cosmos SDK 0.46</a>, <a href="https://github.com/cosmos/ibc-go/blob/v5.2.0/CHANGELOG.md">IBC-go 5.2.0</a>, and <a href="https://tip.golang.org/doc/go1.19">Go v1.19</a>, which contain <a href="https://github.com/crypto-org-chain/chain-main/discussions/911">a few important updates</a> to the network, including support for Interchain Accounts, Relayer Incentivisation, and NFT transfer over IBC. It also comes with 1) the new modules and updates in Cosmos SDK 0.46, such as the implementation of 5% MinCommissionRate, which serves as an incentive for validators to create a sustainable validators ecosystem; 2) support for message-based governance proposals, which execute the messages under the gov module address; and 3) support for x/group module, allowing the creation and maintenance of on-chain multi-signature accounts.</p><p>Details are available in our <a href="https://medium.com/@fy.aw/a4d54da49a45">previous post of <em>Crypto.org Chain v4 Release</em></a>.</p><p>If this proposal passes, validators and full nodes would need to upgrade their<strong> </strong>chain-maind to the newest version to enable this upgrade.</p><p><strong>Governance voting process</strong></p><p>The community governance voting process for this upgrade will start once this proposal has been funded by a sufficient deposit. If the proposal passes, the upgrade will be performed <strong>at the block height of 10073800</strong>. The Chain will be paused to allow the majority of validators to upgrade.</p><p><strong>How can I prepare?</strong></p><p>Validators and full node hosts need to upgrade to the <a href="https://github.com/crypto-org-chain/chain-main/releases">latest chain-maind binary</a>. There is no other required action.</p><p><strong>The 14-day voting period began at 06:04 UTC on Feb.7, 2023 and ends at the same time on Feb.21</strong>. If the proposal passes, the chain will be upgraded with the new updates discussed above. We highly encourage all Crypto.org Chain validators and delegators to cast their votes.</p><p><strong>How do I vote?</strong></p><p>We have started the on-chain parameter change governance proposal 15 and would like to invite you to participate in the voting process. You can cast your vote by using “chain-maind” or <a href="https://github.com/crypto-com/chain-desktop-wallet/releases/">Crypto.com DeFi Desktop Wallet</a>.</p><p><strong><em>By Crypto.com DeFi Wallet Desktop Wallet:</em></strong></p><ul><li>Download the latest <a href="https://github.com/crypto-com/chain-desktop-wallet/releases/tag/v1.3.9">Crypto.com DeFi Desktop Wallet v1.3.9</a>;</li><li>Select Governance;</li><li>Choose proposal #15;</li><li>Cast your vote.</li></ul><p><strong><em>By “Chain-maind”:</em></strong></p><p>You can check the proposal by using chain-maind</p><pre>chain-maind q gov proposals 15 --node https://mainnet.crypto.org:26657/</pre><p>Check the vote by:</p><pre> chain-maind tx gov vote 15 [voting_option]  --from [key_name] --chain-id=&quot;crypto-org-chain-mainnet-1&quot; --node https://mainnet.crypto.org:26657/</pre><p>Check the voting result at:</p><p><a href="https://crypto.org/explorer/proposals">https://crypto.org/explorer/proposals</a></p><p><strong>How do I upgrade my nodes?</strong></p><p>Node runners<strong> do not need to perform any operations</strong> yet, as the upgrade proposal must be passed first. Important dates for your attention:</p><ul><li><strong>Feb.21, 2023, 06:04:35 UTC</strong>: When the upgrade voting period ends, you can check the result at <a href="https://crypto.org/explorer/proposals">https://crypto.org/explorer/proposals</a>.</li><li><strong>At block height 10073800</strong>: Please upgrade your node at this block height if the upgrade proposal passes. You can find the approx time and upgrade count down at <a href="https://www.mintscan.io/crypto-org/blocks/10073800">https://www.mintscan.io/crypto-org/blocks/10073800</a></li></ul><p>***Join the <a href="https://discord.com/invite/pahqHz26q4">Crypto.org Chain Discord channel</a> to stay in touch with our team and connect with the community.</p><p>For more information, developer tools, ecosystem development information, and network governance matters, please visit <a href="http://crypto.org/">crypto.org</a> or reach out to us at <a href="/service/mailto:chain@crypto.org">chain@crypto.org</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9451f6dad236" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crypto-org-chain/governance-proposal-for-crypto-org-mainnet-v4-upgrade-is-now-live-for-voting-9451f6dad236">Governance Proposal for Crypto.org Mainnet V4 Upgrade is Now Live for Voting</a> was originally published in <a href="https://medium.com/crypto-org-chain">Crypto.org Chain</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Crypto.org Chain v4 Release]]></title>
            <link>https://medium.com/crypto-org-chain/crypto-org-chain-v4-release-a4d54da49a45?source=rss-e07e764162f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4d54da49a45</guid>
            <category><![CDATA[network-upgrade]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[blockchain-development]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[cryptocom]]></category>
            <dc:creator><![CDATA[Anthea Wang]]></dc:creator>
            <pubDate>Tue, 07 Feb 2023 14:13:05 GMT</pubDate>
            <atom:updated>2023-02-07T14:13:05.988Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O8_y3TeW4W_r_JPN" /></figure><p>After months of preparation and dry runs supported by our validators, the next major Crypto.org Chain v4 update is coming in Q1 2023! Crypto.org Chain binary <a href="https://github.com/crypto-org-chain/chain-main/releases/tag/v4.2.2">v4.2.2 is now released</a>, which is based on <a href="https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.7">Cosmos SDK 0.46</a>, <a href="https://github.com/cosmos/ibc-go/blob/v5.2.0/CHANGELOG.md">IBC-go 5.2.0</a>, and <a href="https://tip.golang.org/doc/go1.19">Go v1.19</a>.</p><p>In today’s post, we will highlight several features of the new release that users and developers can expect from Crypto.org Chain v4 and what this upgrade brings to the table. Also, <a href="https://crypto.org/explorer/proposal/15">governance proposal #15</a> about this upgrade has just started today, so our community can cast your vote now!</p><p><strong>Cosmos SDK 0.46</strong></p><p>Cosmos SDK 0.46 includes a number of improvements over the previous version, such as a minimum commission, new modules like x/group, and support for NFT transfer over IBC modules. Depending on the latest release and development progress, the binary will be upgraded to Cosmos SDK v0.46.*. New parameters like MinCommissionRate are added in this Cosmos SDK version too.</p><p>a) 5% MinCommissionRate</p><p>Our community has been proposing to impose a minimum commission fee of 5% on all Crypto.org Chain validators’ commission rates. As a response to this request, we will implement a 5% MinCommissionRate in this upgrade. <br>This implementation would highly incentivise validators and help us to maintain a sustainable validator ecosystem.</p><p>Crypto.org validators can decide their own commission fee structure and how the reward distribution works. After this network upgrade, Crypto.org Chain validators can still set commissions at a rate above 5%. For validators who offer a commission lower than 5%, their commission fee will be automatically raised to 5% when the upgrade is complete.</p><p>b) Message-based governance proposals</p><p>The Cosmos SDK v0.46.* release introduces a new governance proposal format with a new <a href="https://docs.cosmos.network/v0.45/core/proto-docs.html#cosmos/gov/v1beta1/gov.proto">Protobuf package</a> of cosmos.gov.v1 and gov execution models based on sdk.Msg. In the previous version, users need to execute one or more messages through Cosmos transactions. With this new message-based governance proposal, all the messages can now be executed via a governance proposal instead of a Cosmos transaction.</p><p>In general, a sender’s signature is required when executing messages through a transaction. After the upgrade, users can directly initiate a governance proposal that includes the message to be executed. After the votes are cast and the proposal is passed, the messages will become a list of sdk.Msg that will be executed. This proposal will then execute the messages under the identity of the gov module address.</p><p>More details are available in <a href="https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.7">Cosmos SDK v0.46.7 release notes</a>.</p><p>c) Support for x/group module</p><p>The new module x/group is introduced, providing a function to define a group that can execute arbitrary messages based on agreed-upon rules. x/group allows for the creation and maintenance of on-chain multi-signature accounts. Additionally, it enables voting for message execution based on configurable decision policies. Group members can create proposals and vote on them through group accounts using different decision policies.</p><p><strong>Support for Interchain Accounts</strong></p><p>One of the main problems that interchain accounts solve is that they allow one blockchain to access the application features of another blockchain. They allow one blockchain to send a transaction to another IBC-based blockchain to the interchain account first, before interacting with additional modules on the blockchain.</p><p>Interchain accounts are now supported in the Crypto.org Chain mainnet v4 release. The Interchain Accounts module enables cross-chain account management built on IBC. It allows the “controller” chain to access the application features of the “host” chain and open an interchain account on it. The “controller” blockchain can then submit transactions to be executed on the “host” chain on behalf of the created interchain account.</p><p>Interchain accounts can fill the role of application-layer interoperability while the network layer maintains the IBC standards. More details are available on the <a href="https://github.com/cosmos/ibc-go/blob/main/docs/apps/interchain-accounts/overview.md">Cosmos Interchain Accounts page</a>.</p><p><strong>Support for Relayer Incentivisation</strong></p><p>IBC-go released a <a href="https://github.com/cosmos/ibc-go/releases">version</a> that supports fee middleware for relayer incentivisation. The Fee Middleware module is designed to incentivise application packets to get relayed. Relayers ensure a smooth transactional process. Therefore, it is important to ensure calling the interchain through effectively incentivising relayers. Incentivised channels compensate relayers for relaying IBC packets from one blockchain to another. With this upgrade, we will <a href="https://github.com/crypto-org-chain/chain-main/issues/765">integrate IBC Fee middleware</a> to incentivise relayers for IBC transfers to the mainnet.</p><p><strong>Support for NFT transfers over IBC</strong></p><p>To tackle the issue of transferring NFTs flawlessly across multiple blockchains with IBC, it is necessary to have an NFT implementation which supports reusing NFTs between modules and chains. Notably, the <a href="https://github.com/crypto-org-chain/chain-main/blob/master/doc/architecture/adr-004.md">standardised NFT module x/nft was introduced in Cosmos SDK 0.46</a>, and IBC transfers for NFTs became possible. On the Crypto.org Chain, we have a custom implementation that supports transferring NFTs over IBC in the same way as a standard module. We plan to migrate the Crypto.org Chain’s existing NFT module to Cosmos SDK’s standardised NFT module x/nft. The Crypto.org Chain has been offering support for NFTs using a custom NFT module in chain-main.</p><p>Users are expected to be able to transfer their NFTs between different blockchains using <a href="https://github.com/cosmos/ibc/blob/main/spec/app/ics-721-nft-transfer/README.md">ICS721</a> when it becomes available in IBC-go. ICS721 is a proposed standardisation of Cosmos-based NFTs and allows ERC721 NFTs to be transferred across the Cosmos ecosystem in an interoperable way.</p><p><strong>Other Updates</strong></p><p>The x/supply module has been deprecated in the Crypto.org Chain (including both CLI and gRPC) to prepare users for obtaining a more accurate source for getting a liquid supply of a token via the solution suggested <a href="https://github.com/cosmos/cosmos-sdk/issues/7774">here</a>. More details are available on the <a href="https://github.com/crypto-org-chain/chain-main/blob/master/doc/architecture/adr-005.md">ADR page</a>.</p><p>Additionally, there are security changes implemented, including <a href="https://github.com/crypto-org-chain/chain-main/pull/704">Swagger UI security fixes</a> and an <a href="https://github.com/crypto-org-chain/chain-main/pull/773">upgraded CodeQL scanning pipeline</a>.</p><p><strong>What’s Next</strong></p><p>We hope you now have a better idea about what’s to come for Crypto.org Chain v4.</p><p>If you are interested in receiving more details about the chain, you can refer to our binary release notes and keep a lookout for our updates on the <a href="https://discord.gg/5JTk2ppsY3">Cronos &amp; Crypto.org Chain Discord server</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4d54da49a45" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crypto-org-chain/crypto-org-chain-v4-release-a4d54da49a45">Crypto.org Chain v4 Release</a> was originally published in <a href="https://medium.com/crypto-org-chain">Crypto.org Chain</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upcoming Upgrade of Cronos Gravity Bridge Testnet “Pioneer 11”]]></title>
            <link>https://medium.com/cronos-chain/upcoming-upgrade-of-cronos-gravity-bridge-testnet-pioneer-11-57601d907b01?source=rss-e07e764162f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/57601d907b01</guid>
            <category><![CDATA[cronos]]></category>
            <category><![CDATA[gravity-bridge]]></category>
            <category><![CDATA[cronoschain]]></category>
            <dc:creator><![CDATA[Anthea Wang]]></dc:creator>
            <pubDate>Thu, 20 Oct 2022 16:47:33 GMT</pubDate>
            <atom:updated>2022-10-20T16:47:33.386Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cMz9jxG7fmKpVNf0" /></figure><p>Cronos Gravity Bridge testnet “Pioneer 11” launched in June this year, bringing the <a href="http://cronos.org/bridge">decentralized Gravity bridge</a> that connects the Cronos “Pioneer 11” testnet to the Ethereum Goerli testnet for asset transfers. Through the first upgrade of the Cronos Gravity Bridge testnet “Pioneer 11” two months ago, further enhancements were made to the Cronos &lt;&gt; Ethereum bridge, including the implementation of the bidirectional tokens transfers and optimization of the gravity module.</p><p>With the team’s efforts, we have just released <a href="https://github.com/crypto-org-chain/cronos/releases/tag/v0.8.0-gravity-alpha2">binary v0.8.0-gravity-alpha2</a> and are ready to propose the next upgrade to Pioneer 11 testnet on October 26!</p><p><strong>What’s Included in This Upgrade:</strong></p><p>This version contains the new gorc binary with some new features. One major update is that it allows multiple attestations to be processed within a block so that the speed of the bridge further increases. In addition, the storage can now be optimized by simplifying the storage structure. We have also strengthened the security of the bridge by changing the block delay after Ethereum merged and adding more safeguards. It also includes some performance improvement on the orchestrator.</p><p><strong>What to Expect:</strong></p><p>The target time and date of the Pioneer 11 testnet network upgrade is <strong>2 PM HKT, October 26</strong>.</p><p>To fully prepare for the upgrade work, Pioneer 11 Testnet transfers on the <a href="https://cronos.org/bridge">gravity bridge web app</a> have been paused since October 20. Pioneer 11 Testnet transfers will resume once the network upgrade is complete. The bridge web app will remain fully functional with respect to Cronos mainnet transfers.</p><p>If you would like to share any questions or feedback, please reach out via the #cronos-testnet channel on the <a href="https://discord.com/invite/pahqHz26q4">Cronos Discord server</a> or by email at contact@cronoslabs.org.</p><p>The Cronos team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57601d907b01" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cronos-chain/upcoming-upgrade-of-cronos-gravity-bridge-testnet-pioneer-11-57601d907b01">Upcoming Upgrade of Cronos Gravity Bridge Testnet “Pioneer 11”</a> was originally published in <a href="https://medium.com/cronos-chain">Cronos</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create your IBC-enabled tokens on the Crypto.org Chain with Solo Machine]]></title>
            <link>https://medium.com/crypto-org-chain/create-your-ibc-enabled-tokens-on-the-crypto-org-chain-with-solo-machine-b98f8218a7?source=rss-e07e764162f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b98f8218a7</guid>
            <category><![CDATA[cryptoorgchain]]></category>
            <category><![CDATA[solomachine]]></category>
            <category><![CDATA[cryptoorg]]></category>
            <category><![CDATA[ibc]]></category>
            <dc:creator><![CDATA[Anthea Wang]]></dc:creator>
            <pubDate>Wed, 14 Sep 2022 15:01:44 GMT</pubDate>
            <atom:updated>2022-09-14T15:01:44.396Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7JW-WOk1U79ocybxrcXR9Q.png" /></figure><p>A solo machine is a standalone process that can interact with blockchains through the Inter-Blockchain Communication Protocol (IBC). It can store key information like signed messages and private keys but has no consensus algorithm of its own. The solo machine client can be seen as a verification algorithm capable of authenticating messages sent from a chain or solo machine. With solo machines, one can access the IBC transport layer and blockchains (including features built on them) within the Cosmos ecosystem without developing their own blockchain. This provides great ease to token issuers who would like to natively mint IBC-enabled tokens.</p><p>Another feature of using a solo machine is that it can leverage <a href="https://github.com/cosmos/ibc-go/blob/main/docs/apps/interchain-accounts/overview.md">Interchain Accounts (ICA)</a>. The key feature of the Interchain Accounts module is that it enables cross-chain account management via the IBC, which allows one blockchain to access the features of another blockchain. On the Crypto.org Chain, we have leveraged solo machines to issue tokens like <a href="https://medium.com/crypto-org-chain/crypto-org-chain-issues-dot-token-via-ibc-solo-machine-b0f58e605b0e">Polkadot (DOT)-pegged coins</a>. These DOT tokens can be natively transferred within the Cosmos interchain ecosystem using IBC.</p><p>Solo machines open up plenty of use cases in the Cosmos ecosystem. In this article, we will review simple approaches to implementing token operations using the IBC solo machine (e.g. mint and burn as well as delegation and undelegation) on the Crypto.org Chain locally, while any Cosmos SDK based blockchains should support it.</p><p>Developers and users who are interested can clone our <a href="https://github.com/devashishdxt/stag">Stag repository</a> to quickly go through these steps and try the approaches out.</p><p><strong>Prerequisite: Blockchain Configuration</strong></p><p>The blockchain is running locally in this example and the proper configuration setup is required. In the genesis file, ensure 1) transfer in the genesis file is enabled (receive_enabled: true and send_enabled: true); 2) the staking message (/cosmos.staking.v1beta1/MsgDelegate and /cosmos.staking.v1beta1/MsgUndelegate) is enabled at allow_message under host_genesis_state. This lets them communicate properly later on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CRyP9BMgz5g-chGl8uT7Nw.png" /></figure><p>After completing the integration, run the chain in the background.</p><p><strong>Signer Configuration</strong></p><p>Firstly, you need to install Rust to be able to conduct the operation with stag. The prerequisites setup guide is available <a href="https://github.com/devashishdxt/stag/blob/main/README.md#installing">here</a> and the Stag CLI guide is available <a href="https://github.com/devashishdxt/stag/blob/main/stag-cli/README.md">here</a>.</p><p>After installing Rust, you need to configure signers for your preferred chains. The sample config for a signer is included in signer.yaml by stag signer sample-config, where you can set up your own signer and update its details accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*V4MBRkhhHd0dFoD3sayYVA.png" /></figure><p><strong>Add a Blockchain and Create an IBC Channel</strong></p><p>The next step is to add the chain to the solo machine. To run IBC operations on-chain, stag needs several basic configurations to be set up for that specific chain. You can tailor the trusted_height and trusted_hash to your chain’s own trusted height and trusted hash using stag core add-chain &lt;path to chain.yaml&gt;. <br>A sample chain.yaml is shown here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/0*6ZW5TNWFO6EqYSUv.png" /></figure><p>Now, you can establish an IBC connection with a blockchain using</p><p>$ stag core connect &lt;chain_id&gt;</p><p>(chain-main-1 is the chain_id in our example here), and create an IBC channel with a chain using</p><p>$ stag core channel create &lt;channel_type&gt; &lt;chain_id&gt;.</p><p>There are two options for channel_type: transfer or ica. In the example below, the transfer channel is created, which looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/0*qFH5xnSC5PuSZdO2.png" /></figure><p><strong>Use Case #1: Mint and Burn Tokens</strong></p><p>A solo machine can be used to mint and burn tokens on any IBC chain. To mint and burn tokens on-chain using a solo machine, simply run</p><p>$ stag transfer mint &lt;chain_id&gt; &lt;amount&gt; &lt;denom&gt;.</p><p>We will mint 1,000 GLD tokens as an example, allowing us to perform the</p><p>$ stag transfer mint chain-main-1 1000 gld.</p><p>If you would like to check your current token balance, you can do so by executing</p><p>$ stag query balance &lt;chain_id&gt; &lt;denom&gt; — ibc-denom.</p><p>In our example, we perform token minting with</p><p>$ stag transfer mint chain-main-1 1000 gld.</p><p>In return, the response should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/0*oLhKu6HWlV2HHQww.png" /></figure><p>The same token can be burned with the query</p><p>$ stag transfer burn &lt;chain_id&gt; &lt;amount&gt; &lt;denom&gt; .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/0*kyciu48c8XOnd8jS.png" /></figure><p><strong>Use Case #2: Delegation and Undelegation</strong></p><p>Before delegating tokens from your interchain account to a validator, ensure that you have enough tokens in your account, which allows delegation to be executed successfully. If you would like to send tokens from one interchain account to another, you can do so with</p><p>$ stag ica bank send &lt;chain_id&gt; &lt;to_address&gt; &lt;amount&gt; &lt;denom&gt;.</p><p>Delegation and undelegation can be done with</p><p>$ stag ica staking delegate &lt;chain_id&gt; &lt;validator_address&gt; &lt;amount&gt; &lt;denom&gt; and $ stag ica staking undelegate &lt;chain_id&gt; &lt;validator_address&gt; &lt;amount&gt; &lt;denom&gt;.</p><p>In our example, we perform delegation using</p><p>$ stag ica staking delegate chain-main-1 tcro17jw7dzu9… 1000 basetcro, and similarly, we can undelegate with</p><p>$ stag ica staking undelegate chain-main-1 tcro17jw7dzu9… 1000 basetcro.</p><p><strong>Solo Machine UI</strong></p><p>Apart from Stag CLI, you can perform the same execution through a UI (User Interface). With the <a href="https://github.com/devashishdxt/stag">Stag repository</a>, you can simply run just serve-ui under the path of ../stag-ui. Ensure that you have <a href="https://rustwasm.github.io/docs/wasm-pack/prerequisites/non-rustup-setups.html">the required target for Rustup setups</a>, which can be installed by rustup target add wasm32-unknown-unknown.</p><p>Once it is connected, the default server listening is at <a href="http://127.0.0.1:8080/">http://127.0.0.1:8080</a> and the frontend should look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WeqD1rWasKzQmaSO" /></figure><p>Like what we did with CLI, we first need to configure the signers, chains, and connections before building the channels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HcDFvmfkpXnusz7i" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qurd4yhyQ17mIVBX" /></figure><p>Here’s what minting and burning tokens look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ufuJ6QIDOZJFOwuV" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yjVmsvUZ2gGUBQ57" /></figure><p>This is how delegating and undelegating will appear:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wND5Ruk3nVWjIWhH" /></figure><p>It’s as simple as that!</p><p>If you would like to receive all the latest Crypto.org Chain updates or ask any questions, visit the <a href="https://medium.com/crypto-org-chain">Crypto.org Chain Medium page</a> and join us on <a href="https://discord.gg/5JTk2ppsY3">our official Discord channel</a>.</p><p><em>Thanks to the co-author </em><a href="https://medium.com/u/65eac5d4f15c"><em>Devashish Dixit</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b98f8218a7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crypto-org-chain/create-your-ibc-enabled-tokens-on-the-crypto-org-chain-with-solo-machine-b98f8218a7">Create your IBC-enabled tokens on the Crypto.org Chain with Solo Machine</a> was originally published in <a href="https://medium.com/crypto-org-chain">Crypto.org Chain</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Release Notes Cronos Testnet v0.9.0-beta Upgrade]]></title>
            <link>https://medium.com/cronos-chain/release-notes-cronos-testnet-v0-9-0-beta-upgrade-64c47bd6c474?source=rss-e07e764162f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/64c47bd6c474</guid>
            <category><![CDATA[cosmos]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[cronos]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Anthea Wang]]></dc:creator>
            <pubDate>Wed, 14 Sep 2022 12:10:21 GMT</pubDate>
            <atom:updated>2022-09-14T14:58:12.116Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N67bRNOYoBTmt8qG" /></figure><p>After the <a href="https://medium.com/cronos-chain/cronos-testnet-v0-7-0-upgrade-release-notes-49e082f080db">last binary upgrade blog post</a> where we explored what the <a href="https://github.com/crypto-org-chain/cronos/releases">Cronos Testnet v0.7.0</a> upgrade entailed, the Cronos development team has worked hard to build a newer version to introduce more features to Cronos Chain. The later version of <a href="https://github.com/crypto-org-chain/cronos/releases">Cronos v0.8.1</a> upgraded the Cosmos SDK on the Cronos testnet and integrated with the IAVL v0.19 upgrade. This introduced a new index that improves performance.</p><p>As of now, some major progress has been made for v0.9.0-beta. <a href="https://github.com/crypto-org-chain/cronos/releases/tag/v0.9.0-beta1">V0.9.0-beta1</a> is the first beta release of the next major breaking version; <a href="https://github.com/crypto-org-chain/cronos/releases/tag/v0.9.0-beta2">V0.9.0-beta2</a> includes additional changes like interchain accounts retraction and swagger doc enhancement.</p><p>This Cronos Testnet v0.9.0-beta upgrade represents as a step ahead of the mainnet upgrade and opens the opportunity to introduce these new options to our community in such a way that our DApp projects and other users can explore and test out the newly developed features on the testnet first.</p><p>In this blog post, we will explore the significant upgrades and all the latest features in the new beta versions.</p><h3>App DB Backend</h3><p>For completeness and better UX of the node host, the team will simultaneously support both rocksdb (except arm mac binary) and goleveldb in one single binary from v0.9.0-beta onwards. This can be configured in the app.toml with the app-db-backend field.</p><h3>Prioritised Mempool</h3><p>V0.9.0-beta1 is based on the updated Ethermint Cosmos-SDK 0.46 which enables mempool prioritisation. The prioritised mempool brings with it useful features like canceling transactions if they cannot be processed within a designated period. The transaction priority is determined by the effective priority fee calculated by the EIP-1559 feemarket. It sorts transactions according to EIP-1559, including both ETH transactions and Cosmos transactions.</p><p>For native Cosmos SDK transactions, the gas price computed with the current fee/gas field is used as the feeCap, and the tipFeeCap needs to be provided with the <a href="https://github.com/evmos/ethermint/blob/f3d7c814b4a567f6fbf55d5f8910d86951a80ec5/proto/ethermint/types/v1/dynamic_fee.proto">ExtensionOptionDynamicFeeTx</a>. If there are no extension options provided, the tipFeeCap defaults to max int/value.</p><p>Validators need to use the <a href="https://github.com/tendermint/tendermint/blob/main/docs/architecture/adr-067-mempool-refactor.md">v1 mempool</a> to enable this feature.<strong> </strong>However, the current priority mempool has a limitation in that it only processes one transaction (the SDK transaction) per sender in the new proposed block. Thus, validators may need to send a batch of ETH transactions to be able to process in the same block at the current stage. Overall V1 is a middle solution and <a href="https://github.com/tendermint/tendermint/issues/9077#issuecomment-1213346189">prioritized mempool will no longer be needed</a> by the SDK with the advent of ABCI++ when Cosmos-SDK <a href="https://github.com/cosmos/cosmos-sdk/pull/12838">ADR-60</a> is accepted.</p><p>In addition, <a href="https://github.com/informalsystems/ibc-rs/pull/2573">the patch to the </a><a href="https://github.com/informalsystems/ibc-rs/pull/2573">hermes</a> (the rust version of IBC relayer) to support the prioritised mempool is yet to be merged. This would allow the support of custom extension options to specify max_priority_price in Ethermint dynamic fee tx. The team is working on this merger and is always taking into consideration community feedback.</p><h3>Gas Refund Logic</h3><p>The existing fee charging logic is calculated using gas_used * gas_price and all unused gas fees are refunded. Ever since <a href="https://github.com/evmos/ethermint/pull/1087">this new proposal</a> was made, the team has been working to control the minimum amount of gas that is charged. This should be proportional to the GasLimit of the transaction. The main point of this is that if the actual gas used is far from the transaction’s gas limit, the unused gas is partially refunded rather than in full.</p><p>Therefore, a new gas refund logic has been implemented in this update. A minimum gas charge is now in place and set to 50% of the gas limit. With this new gas refund logic, more fees are charged when the unrealistic gas limit is set for a specific transaction. And the overall transactions in a block are less likely to be rejected.</p><p>For instance, if the gas limit is set to 100, while only 1 is used, 99 is refunded based on the current gas mechanism. The new gas refund logic requires a minimum charge of 50. Therefore, if the gas limit is set at 100 and only 30 is used, 50 will be refunded instead of 70. That’s because the minimum gas charge is 50. However, if more than 50 is used, the gas refund logic remains unchanged. For example, if the gas limit is 100 and 60 is used, 40 will be refunded.</p><p>This deters users from creating large numbers of transactions with high gas limits, as it increases the cost of transaction spamming with high gas limits, which lowers the block utilisation rate. Also, this new gas logic increases the actual cost of producing the transaction congestion because of the minimum gas charge. As mentioned above, overall block utilization is improved and the new transactions in a block are less likely to be rejected under this gas logic.</p><h3>Custom Tx Indexer</h3><p>In order to save disk space for the full nodes, a custom Ethereum tx indexer has been implemented. The full nodes will need to enable it in app.toml with the json-rpc.enable-indexer field. The existing node will also need to run the command cronosd index-eth-tx to manually index the legacy blocks, which helps avoid resyncing from scratch. We recommend that developers check if json rpc can still run normally after enabling the new custom tx indexer.</p><h3>IBC Incentivisation</h3><p>The final update we would like to share is the <a href="https://github.com/crypto-org-chain/cronos/blob/main/integration_tests/test_ibc.py#L72">upcoming changes on IBC incentivisation</a>. Currently, when the sender initiates an IBC transfer, they only need to pay for the gas fee on the blockchain that they are using but not for the receiver side as the second set of gas fees are paid for by relayers. The new update offers an option for the sender to set a gas fee for the relayer. The relayer can optionally choose to receive the fee when the transfer is successfully performed. This incoming update is supported on the chain but not on the relayer yet.</p><h3>What’s Next</h3><p>We are looking forward to seeing how these major changes on the v0.9.0 upgrade would benefit the Cronos chain and our ecosystem as well as your feedback on it!</p><p>If you would like to share your thoughts or any questions about the Cronos chain and this upgrade, please reach out to us via the #cronos-testnet channel on the Cronos &amp; Crypto.org Discord server or by email to <a href="/service/mailto:contact@cronoslabs.org">contact@cronoslabs.org</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64c47bd6c474" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cronos-chain/release-notes-cronos-testnet-v0-9-0-beta-upgrade-64c47bd6c474">Release Notes Cronos Testnet v0.9.0-beta Upgrade</a> was originally published in <a href="https://medium.com/cronos-chain">Cronos</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Random Number Generation on Cronos with Witnet]]></title>
            <link>https://medium.com/cronos-chain/random-number-generation-on-cronos-with-witnet-8b871beef59b?source=rss-e07e764162f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b871beef59b</guid>
            <category><![CDATA[cronoschain]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[witnet]]></category>
            <category><![CDATA[random-number-generator]]></category>
            <dc:creator><![CDATA[Anthea Wang]]></dc:creator>
            <pubDate>Fri, 02 Sep 2022 11:25:51 GMT</pubDate>
            <atom:updated>2022-09-02T22:29:49.745Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lJDd5EiDaDaOrkoq" /></figure><h3>Introduction</h3><p>Witnet is a decentralized oracle protocol that provides reliable data to autonomous smart contracts. It works as a trustable source of randomness for creating unpredictability in various use cases, such as games and NFTs. Witnet has been live on the Cronos Mainnet and Testnet for several months, and the Witnet Random Number Generator is<a href="https://docs.witnet.io/smart-contracts/witnet-randomness-oracle/contract-addresses#cronos-chain"> deployed on the Cronos</a> blockchain. In this post, we are going to introduce the purpose of the Witnet randomness generator and walk through a smart contract sample.</p><h3>Randomness Oracle in Smart Contracts</h3><p>Random numbers can be useful in decentralized applications. The use cases can be NFTs, video games, or anything else that requires unpredictability at the smart contract level. For example, a smart contract that automatically generates collectibles inside an NFT collection will need a source of randomness to assign different traits. This allows for a variety of unique NFTs to be generated for a certain collection.</p><p>However, the execution of smart contracts is deterministic, and smart contract developers do not have access to native random number generation functions natively in Solidity. The randomness must come from outside of the blockchain. This is where an oracle comes in: the job of an oracle is to import number series from off-chain into the blockchain, in a way that provably fulfills certain properties.</p><p>Witnet provides a solution to generate randomness on EVM-compatible chains, including Cronos. Every time that a block is created on Cronos, the oracle’s nodes (called “witnesses”) can be asked to generate random numbers independently, and these numbers are assembled into a single random number which is stored in the Witnet smart contract on Cronos.</p><p>At a given block height of the blockchain, any other smart contract can query the next random number from the Witnet smart contract, called the WitnetRandomness contract (also known as the Witnet Randomness Oracle). The WitnetRandomness contract offers a user-friendly interface to developers. It is the easiest way to generate reliable randomness for smart contracts.</p><p>WitnetRandomness can be used by practically any dApp, as it has already been deployed by the Witnet Foundation. The WitnetRandomness contract uses an instance of the low-level WitnetRequestRandomness. The same instance can also be used by other applications running within the same chain. The best way to interact with the WitnetRandomness contract is through the IWitnetRandomness interface, which is readily available through the<a href="https://www.npmjs.com/package/witnet-solidity-bridge"> witnet-solidity-bridge npm package</a>.</p><h3>Generate Random Numbers with Witnet</h3><p>You can start by checking out the <a href="https://docs.witnet.io/">Witnet documentation</a>.</p><p>In this section, we will walk through random number generation using a sample smart contract. Please ensure that you have some CRO (or TestCRO) stored in your crypto address to pay transaction fees. If you are deploying on Cronos testnet, simply use the <a href="https://cronos.org/faucet">test-token faucet</a> to obtain the testnet TCRO tokens.</p><p>Firstly, we need to import the interface of the WitnetRandomness .sol file into our smart contract in order to be able to interact with it. This is done with:</p><p>import “<a href="https://github.com/witnet/witnet-solidity-bridge/blob/master/contracts/interfaces/IWitnetRandomness.sol">witnet-solidity-bridge/contracts/interfaces/IWitnetRandomness.sol</a>”;</p><p>This is a full example of basic smart contract that makes use of randomness (credits to Witnet for the example):</p><pre>// SPDX-License-Identifier: MIT<br>pragma solidity &gt;=0.7.0 &lt;0.9.0;<br>import “witnet-solidity-bridge/contracts/interfaces/IWitnetRandomness.sol”;<br>contract MyContract {<br>uint32 public randomness;<br>uint256 public latestRandomizingBlock;<br>IWitnetRandomness immutable public witnet;</pre><pre>/// @param _witnetRandomness Address of the WitnetRandomness contract.<br>constructor (IWitnetRandomness _witnetRandomness) {<br>assert(address(_witnetRandomness) != address(0));<br>witnet = _witnetRandomness;<br>}</pre><pre>receive () external payable {}</pre><pre>function requestRandomNumber() external payable {<br>latestRandomizingBlock = block.number;<br>uint _usedFunds = witnet.randomize{ value: msg.value }();<br>if (_usedFunds &lt; msg.value) {<br>payable(msg.sender).transfer(msg.value — _usedFunds);<br>}<br>}</pre><pre>function fetchRandomNumber() external {<br>assert(latestRandomizingBlock &gt; 0);<br>randomness = witnet.random(type(uint32).max, 0, latestRandomizingBlock);<br>}<br>}</pre><p>This contract involves a two-step workflow:</p><ul><li>Step 1: the user should call requestRandomNumber(). This initiates an asynchronous request to the WitnetRandomness contract to generate a new random number associated with the current block number. If you need any user input/action to be recorded before the random number is known, you should do it at this workflow step (for example, a bet). You can see that requestRandomNumber is payable, this means that you need to send some CRO or TCRO when you call this function. Some of the balance will be used to pay transaction fees during the asynchronous process, the rest will be transferred back to your address.</li><li>Step 2: the user should call fetchRandomNumber(), which will retrieve the random number from WitnetRandomness and store it in the randomness variable of your smart contract.</li></ul><p>You should deploy the contract to the Cronos network. The contract constructor requires the address of the WitnetRandomness contract on the blockchain network. You can retrieve the addresses on Cronos <a href="https://docs.witnet.io/smart-contracts/witnet-randomness-oracle/contract-addresses#cronos-chain">here</a>. For this example, you can use the Cronos Testnet address (0x0017A464A86f48B342Cae3b8Fe29cFCDaA7b0643).</p><p><em>Remark</em>: make sure that you are using the <a href="https://docs.witnet.io/smart-contracts/witnet-randomness-oracle/contract-addresses#cronos-chain">Cronos WitnetRandomness address</a>, not the <a href="https://docs.witnet.io/smart-contracts/witnet-web-oracle/contracts-addresses#cronos-chain">Cronos WitnetRequestBoard address</a>.</p><p>In case a gas estimation error appears when executing requestRandomNumber(), increasing the gas allowance will solve the problem. Since randomisation requests will take some time to complete, calling fetchRandomNumber() right after requestRandomNumber() will most likely cause the transaction to revert. Therefore, you should wait for 5 to 10 minutes before executing fetchRandomNumber().</p><p>See the following screenshot from remix.ethereum.org:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hots8-MOHO7fsHoN" /></figure><p>After executing fetchRandomNumber(), you can then query the value of the randomness variable within Remix. The screenshot below shows that the random uint32 value is “1345667621.”</p><pre>Decode output {<br>“0”: “uint32: 1345667621”<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZDBjRaRIUqz-6e4D" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/0*skxHEredV4PRJT3v.png" /></figure><p>If you would like to generate another random number, you need to execute the same two steps again:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/0*eQGUAc-e0Sxad023.png" /></figure><p>As usual, you can review your transaction details on <a href="https://cronoscan.com/">CronoScan</a>/<a href="https://testnet.cronoscan.com/">Testnet CronoScan</a>.</p><p>That’s it! With the Witnet Randomness Oracle, you can quickly and safely generate random numbers for your smart contacts on Cronos.</p><p>For community support, please visit the <a href="https://discord.gg/X4uurfP">Witnet Discord</a> or the <a href="https://discord.gg/cryptoorg">Cronos Discord</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b871beef59b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cronos-chain/random-number-generation-on-cronos-with-witnet-8b871beef59b">Random Number Generation on Cronos with Witnet</a> was originally published in <a href="https://medium.com/cronos-chain">Cronos</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Crypto.org Chain Dev Update 18]]></title>
            <link>https://medium.com/crypto-org-chain/crypto-org-chain-dev-update-18-1bee3baee5a1?source=rss-e07e764162f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bee3baee5a1</guid>
            <dc:creator><![CDATA[Anthea Wang]]></dc:creator>
            <pubDate>Wed, 31 Aug 2022 15:20:15 GMT</pubDate>
            <atom:updated>2022-08-31T15:20:15.240Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ANto-kvbzmNPnDSF" /></figure><p>In this dev update, we would like to highlight several major exciting updates made to the Crypto.org Chain over the past few months, along with what we have to plan for the chain in the future.</p><h4><strong>Crypto.org Chain Alpha Croeseid Testnet v4.0.0</strong></h4><p>After our<a href="https://medium.com/crypto-org-chain/release-notes-on-v4-0-0-alpha-e1696313f077"> recent post on v4.0.0-alpha-4-croeseid</a>, we released an alpha testnet <a href="https://github.com/crypto-org-chain/chain-main/releases/tag/v4.0.0-alpha5-croeseid">v4.0.0-alpha-5-croeseid</a> for the Crypto.org Chain, which was upgraded to Cosmos SDK version <a href="https://github.com/cosmos/cosmos-sdk/releases/tag/v0.45.7">v0.45.7</a>, go version <a href="https://go.dev/blog/go1.18">v1.18</a>, and IBC-go version <a href="https://github.com/cosmos/ibc-go/releases/tag/v4.0.0">v4.0.0</a>. It includes the following updates:</p><p><strong>Interchain Accounts</strong></p><p>We’ve added support for <a href="https://github.com/cosmos/ibc-go/blob/main/docs/apps/interchain-accounts/overview.md">interchain accounts</a> in Crypto.org Chain since v4.0.0-alpha. These can act as both the controller and host chain for interchain account operations. The key features of the Interchain Accounts module are that it enables cross-chain account management built on IBC. They allow one blockchain function (as the controller chain) to access the application features of another blockchain (as the host chain) and open an interchain account on the host chain. Then, the controller chain can submit transactions to be executed on the host chain on behalf of the created interchain account.</p><p><strong>Relayer incentivisation</strong></p><p>Relayers can ensure a smooth transactional process. Therefore, calling the interchain through effectively incentivising relayers is crucial. We’ve added support for creating incentivised IBC channels since the last release. Meanwhile, it is still possible to create non-incentivised IBC channels. The Fee Middleware module is designed to contribute to incentivising application packets getting relayed. Incentivised channels compensate relayers for relaying IBC packets from one blockchain to another. Additionally, support for fee middleware for interchain account (ICA) channels is enabled.</p><p><strong>CosmWasm</strong></p><p><a href="https://docs.cosmwasm.com/docs/1.0/">CosmWasm</a> grants developers an easy way to build smart contracts using WebAssembly (Wasm), so it’s no surprise they are keen to see it enabled on the Crypto.org Chain. However, there is some ongoing development supporting the latest Cosmos SDK by the Coswasm team in order to be closely aligned with the development roadmap. Additionally, the support for CosmWasm on Windows operating systems and Arm64 architectures is still in the experimental stage, which requires further development and testing. So Cosmwasm has been tentatively delayed for the upgrade and we will continue to observe the updates on CosmWasm and make changes to chainmaind accordingly in future releases.</p><p><strong>Deprecation</strong></p><p>Since this release, we’ve deprecated the x/supply module in the Crypto.org Chain (including both CLI and gRPC) to prepare users for obtaining a more accurate source for getting the liquid supply of a token by the solution suggested <a href="https://github.com/cosmos/cosmos-sdk/issues/7774">here</a>. Developers and users who are interested can read more about this on the <a href="https://github.com/crypto-org-chain/chain-main/blob/master/doc/architecture/adr-005.md">ADR page</a>.</p><h4>Crypto.org Chain Croeseid-5 Testnet</h4><p>We’re starting the Croeseid-5 Testnet as a new blockchain from scratch, instead of upgrading the version of the existing Croeseid-4 testnet. Both testnets will run in parallel and serve different purposes. One remains as the next mainnet version, while another is an alpha testnet for exploring new features.</p><p>Crypto.org Chain Croeseid-5 testnet will run on Cosmos SDK v0.45.7, ibc-go v4.0.0, and go v.1.18. In Croeseid-5 testnet, users will get unrestricted access to all the features of interchain accounts. One benefit of interchain accounts is that they can act as both the controller and host chain. All message types are allowed to execute on these accounts even if there are any changes made by other controllers. Moreover, same with Croeseid Testnet v4.0.0, users can create incentivised IBC transfers or interchain account (ICA) channels, while creating non-incentivized channels is still possible.</p><h4>Upcoming Croeseid-5 Testnet Upgrade</h4><p>As with all our previous releases, a testnet upgrade will be launched with the aforementioned enhancements before going live on the mainnet.</p><p><a href="https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.0">Cosmos SDK 0.46</a> includes quite a few improvements over the previous version, such as a minimum commission, new modules like x/group, and a standardised NFT module x/nft. Depending on the latest release and development progress, the binary will be upgraded to Cosmos SDK v0.46.*.</p><p>Regarding the new modules, x/group allows for the creation and maintenance of on-chain multi-signature accounts. Additionally, it enables voting for message execution based on configurable decision policies. Group members can create proposals and vote on them through group accounts using different decision policies.</p><p>On the other hand, along with the new NFT feature, we plan to migrate the Crypto.org Chain’s existing NFT module to Cosmos SDK’s standardised NFT module x/nft. Crypto.org Chain has been offering support for NFTs using a custom NFT module in chain-main. Given that different chains are using their own implementation of NFT modules, it is challenging to achieve flawless interpretability of NFTs across multiple chains using IBC to support more use cases. Thus, it is necessary to have a standardised NFT implementation which has support for reusing NFTs between modules and chains. Developers and users who are interested can read more about the NFT module in the <a href="https://github.com/crypto-org-chain/chain-main/blob/master/doc/architecture/adr-004.md">ADR page</a>.</p><p>With this new implementation, users are expected to be able to transfer their NFTs between different chains using <a href="https://github.com/cosmos/ibc/blob/main/spec/app/ics-721-nft-transfer/README.md">ICS721</a> when it becomes available in ibc-go. ICS721 is a proposed standardisation of Cosmos-based NFTs, similar to the ERC721 standard for Ethereum. The ICS721 standard allows ERC721 NFTs to be transferred across the Cosmos ecosystem in an interoperable way.</p><p>For ibc-go, it is in the process of being upgraded to v5.0.0, which will be based on Cosmos SDK v0.46.*. We will release the binary upgrade to ibc-go v5.* correspondingly.</p><h4>The Next Crypto.org Chain Mainnet Upgrade</h4><p>The upcoming Crypto.org Chain mainnet upgrade will come with all the aforementioned enhancements of the Croeseid-5 and Croeseid-5 Upgrade. Unlike the testnet, users will not have unrestricted access to every feature, with on-chain parameters needing to be changed by passing governance proposals.</p><p>The Crypto.org Chain Mainnet Upgrade is estimated to be carried out in Q1 2023. The details of the upcoming mainnet upgrade are as follows:</p><p><strong>Cosmos SDK</strong></p><p>The current Crypto.org Chain mainnet is running Cosmos SDK v0.44.5. All new parameters will be added in newer versions of Cosmos SDK (e.g. MinCommissionRate will be initialised to 5% during the upgrade).</p><p><strong>Interchain Accounts</strong></p><p>Both HostEnabled and ControllerEnabled parameters will be set to false during the upgrade process. This will disable all the functionalities of the interchain account by default. These will then be enabled in phases using governance proposals, so that they can’t be exploited in case any issues arise. The current list of allowed messages when the Crypto.org Chain is acting as the host chain can be seen <a href="https://github.com/crypto-org-chain/chain-main/blob/5e695bc4ebaf4c23c14c1858b22dce4d772be3a0/app/app.go#L673">here</a> (subject to change before release).</p><p><strong>Relayer Incentivisation</strong></p><p>No post-upgrade governance proposal will be required for creating incentivised IBC channels. Users can create new incentivised IBC channels directly after the upgrade.</p><p><strong>NFT Module</strong></p><p>As mentioned above, we’ll be migrating from Crypto.org Chain’s custom NFT module to the Cosmos SDK’s standardised NFT module. As there are a lot of NFTs currently minted on the network, upgrading all of them at one go may take a long time. Recent enhancements in <a href="https://github.com/cosmos/cosmos-sdk/pull/12626">Cosmos SDK’s IAVL store</a> give us hope to perform an in-place store migration without taking up too much time. The final decision regarding the NFT module’s upgrade process depends on the benchmark results of the new Cosmos SDK’s IAVL store. These results will be shared with the community once they are available.</p><h4><strong>What’s coming next?</strong></h4><p>We hope that you have gotten an idea about our upcoming plans for the Crypto.org Chain. We will continue to add new functions and prepare for the next network upgrade.</p><p>If you would like to participate in the network and be part of our journey, please bookmark the <a href="https://medium.com/crypto-org-chain">Crypto.org Chain Medium Page</a> and join our official <a href="https://discord.gg/5JTk2ppsY3">Discord</a> channel for all the latest updates!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bee3baee5a1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crypto-org-chain/crypto-org-chain-dev-update-18-1bee3baee5a1">Crypto.org Chain Dev Update 18</a> was originally published in <a href="https://medium.com/crypto-org-chain">Crypto.org Chain</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Release Notes on v4.0.0-alpha]]></title>
            <link>https://medium.com/crypto-org-chain/release-notes-on-v4-0-0-alpha-e1696313f077?source=rss-e07e764162f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1696313f077</guid>
            <dc:creator><![CDATA[Anthea Wang]]></dc:creator>
            <pubDate>Wed, 27 Jul 2022 08:52:55 GMT</pubDate>
            <atom:updated>2022-08-27T01:07:21.891Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dXXbST5CzWUoMszF0W6Wew.png" /></figure><p>After months of preparation and multiple rounds of revision, <strong>v4.0.0-alpha-4-croeseid</strong> has been <a href="https://github.com/crypto-org-chain/chain-main/releases/tag/v4.0.0-alpha4-croeseid">released</a>! Our dev team has been working hard to bring major amazing features to the Crypto.org chain since the first Crypto.org Chain’s v4.0.0 alpha release.</p><p>The latest release, v4.0.0-alpha4-croeseid, has been upgraded to Cosmos-SDK v0.45.6, IBC-go v4.0.0-rc0, and go 1.18. In this post, we will explore some of the key features of the v4.0.0-alpha release.</p><h4>Support for Interchain Accounts</h4><p>Interchain accounts are now supported in the <em>v4.0.0 alpha</em> release.</p><p>Chains on the Cosmos SDK are required to align with certain network standards (known as the Interchain Standards, or “ICS”) and transport layers to allow blockchains to communicate. Interchain Accounts implement the ICS-27 protocol on the Cosmos SDK, and their modules simplify the process of handling different ICS standards for IBC transactions on IBC modules.</p><p>The key features of the Interchain Accounts module are that it enables cross-chain account management built on IBC. It allows one chain to create new interchain accounts on other chains, relay the transactions to these interchain accounts, and submit them to the target blockchain, thus controlling these accounts via IBC transactions.</p><p>Unlike how traditional accounts have their transactions signed by private keys, Interchain Accounts are instead controlled by separate chains via IBC transactions and implemented as sub-accounts of the interchain accounts module account. To provide more context, one of the main problems that interchain accounts solve is that they allow one blockchain to access the application features of another blockchain (such as staking and swapping tokens). They allow one blockchain to send a transaction to another IBC-based chain to the interchain account first, before interacting with additional modules on the blockchain.</p><p>Interchain accounts can fill the role of application-layer interoperability, while the network layer maintains the IBC standards. Users can learn more on the <a href="https://github.com/cosmos/ibc-go/blob/main/docs/apps/interchain-accounts/overview.md">Cosmos Interchain Accounts page</a>.</p><h4>Support for Fee Middleware Module</h4><p>IBC-go released a <a href="https://github.com/cosmos/ibc-go/releases">beta version</a> that supports fee middleware for relayer incentivisation. In the v4.0.0-alpha releases, we have <a href="https://github.com/crypto-org-chain/chain-main/issues/765">integrated IBC Fee middleware</a> for incentivising relayers for IBC transfers. The Fee Middleware module is designed to contribute as an approach to incentivising application packets getting relayed.</p><p>The relayer infrastructure ensures the liveness of the Interchain network and it comes with operational costs. The Fee Middleware module is designed to allow ICS29 fee payments in this middleware design, and are built with the assumption that sender chains are the source of incentives. The Fee Middleware module enables addresses to be registered with each party involved in relaying the packet on the source chain. The fees will be paid to each party at the end of each packet lifecycle, and the registration process is automated at the starting point of the relayer infrastructure.</p><h4>CosmWasm</h4><p><a href="https://docs.cosmwasm.com/docs/1.0/">CosmWasm</a> is a fantastic feature for developers who build on Crypto.org Chain, as one can easily add CosmWasm smart contract support to the chain without changing the existing logic. As a WASM-based Smart Contract module for the Cosmos SDK, CosmWasm is considered as a smart contract platform built for the Cosmos ecosystem. It contains the library that provides all modular code needed for building a smart contract.</p><p>There is some ongoing development supporting the latest Cosmos SDK by the Coswasm team, we will continue to keep updated with the CosmWasm team’s development progress and work on bringing it into the Crypto.org Chain accordingly.</p><h4>Other Updates</h4><p>Other than the major updates detailed above, security changes implemented include <a href="https://github.com/crypto-org-chain/chain-main/pull/704">Swagger UI security fixes</a> and an <a href="https://github.com/crypto-org-chain/chain-main/pull/773">upgraded CodeQL scanning pipeline</a>. Lastly, other changes include the <a href="https://github.com/crypto-org-chain/chain-main/pull/724">deprecation of the </a><a href="https://github.com/crypto-org-chain/chain-main/pull/724">x/supply module</a>, including its CLI and gRPC.</p><h4>What’s Next</h4><p>Users interested in learning more can refer to the <a href="https://github.com/crypto-org-chain/chain-main/releases">binary release notes</a>. This is the first step to integrating the features and the Crypto.org team will continue to work on expanding and realising more features and functionalities on the Crypto.org Chain mainnet. Please stay tuned and we will release more details soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1696313f077" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crypto-org-chain/release-notes-on-v4-0-0-alpha-e1696313f077">Release Notes on v4.0.0-alpha</a> was originally published in <a href="https://medium.com/crypto-org-chain">Crypto.org Chain</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>