<?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 An Pudev on Medium]]></title>
        <description><![CDATA[Stories by An Pudev on Medium]]></description>
        <link>https://medium.com/@an-pudev?source=rss-34c4f515af77------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by An Pudev on Medium</title>
            <link>https://medium.com/@an-pudev?source=rss-34c4f515af77------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:10:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@an-pudev/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[Deploy a Solidity smart contract on ParaState’s testnet]]></title>
            <link>https://an-pudev.medium.com/deploy-a-solidity-smart-contract-on-parastates-testnet-ffd72605bf02?source=rss-34c4f515af77------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffd72605bf02</guid>
            <dc:creator><![CDATA[An Pudev]]></dc:creator>
            <pubDate>Sat, 01 May 2021 23:55:51 GMT</pubDate>
            <atom:updated>2021-05-01T23:55:51.090Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>ParaState is a Polkadot parachain that extends the frontier of Ethereum with Substrate framework. Providing Dapps L1 security without sacrificing composability.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vLGX_208-luE1O_6" /><figcaption>Photo by <a href="https://unsplash.com/@waldemarbrandt67w?utm_source=medium&amp;utm_medium=referral">Waldemar Brandt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Let’s write a contract for a quick and easy lottery and deploy it on a <strong>ParaState </strong>test network</p><h3>Tools</h3><ul><li>Metamask (<a href="https://medium.com/ethereum-on-steroids/using-metamask-to-access-parastates-testnet-b65bc17a5f78">instraction</a>)</li><li>Web IDE<strong>: </strong><a href="http://buidl.secondstate.io/parastate">http://buidl.secondstate.io/parastate</a></li></ul><h3>Contact</h3><ol><li>Import Your address from Metamask</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*aSzJvKGgX-e5xw9zpHrwpg.png" /></figure><p>2. Write Your contract</p><pre>pragma solidity &gt;=0.4.0 &lt;0.6.0;</pre><pre>contract FastLottery {</pre><pre>  address public owner;</pre><pre>  constructor() public {</pre><pre>    owner = msg.sender;</pre><pre>  }</pre><pre>  function play() public payable {</pre><pre>    require(msg.value &gt; 0.001 ether);</pre><pre>  }</pre><pre>  function random() private view returns(uint){</pre><pre>    return uint(keccak256(abi.encodePacked(msg.sender, now)));</pre><pre>  }</pre><pre>  function checkVictory(uint userNumber) public view returns (string) {</pre><pre>    uint _random = random();</pre><pre>    if (_random == userNumber) {</pre><pre>      return ‘You win!’;</pre><pre>    }</pre><pre>    return ‘You loose!’;</pre><pre>  }</pre><pre>}</pre><p>3. Compile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wKl6vfWD0aH7Qq9uzP0GAA.png" /></figure><p>If you have no errors go to the last step</p><p>4. Deploy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLV0uHbikqNOexw_721Lwg.png" /></figure><p>Now you can try our contract in action. Enter any number and check the result in the LOG</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*RKrw3hN__C6IW0Eqwo1XGw.png" /></figure><p>Now you know how to create your contract in the ParaState network and you can create your contract.<br>Good luck!</p><h3>Links</h3><ul><li><strong>Website</strong> — <a href="https://www.parastate.io/">https://www.parastate.io</a></li><li><strong>Twitter</strong> — <a href="https://twitter.com/parastate">https://twitter.com/parastate</a></li><li><strong>Telegram</strong> — <a href="https://t.me/parastateofficial">https://t.me/parastateofficial</a></li><li><strong>Discord</strong> — <a href="https://discord.gg/DgKNeJFBXA">https://discord.gg/DgKNeJFBXA</a></li><li><strong>Medium</strong> — <a href="https://medium.com/ethereum-on-steroids">https://medium.com/ethereum-on-steroids</a></li><li><strong>Github</strong> — <a href="https://github.com/ParaState/">https://github.com/ParaState</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffd72605bf02" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>