<?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 Asbjorn Enge on Medium]]></title>
        <description><![CDATA[Stories by Asbjorn Enge on Medium]]></description>
        <link>https://medium.com/@asbjornenge?source=rss-fba1ce112689------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*M_LY19WwFVgJ94CMqFJ49g.jpeg</url>
            <title>Stories by Asbjorn Enge on Medium</title>
            <link>https://medium.com/@asbjornenge?source=rss-fba1ce112689------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 09:20:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@asbjornenge/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[1 Year of ChainBorn ]]></title>
            <link>https://medium.com/chainborn/1-year-of-chainborn-697f09dbd1c7?source=rss-fba1ce112689------2</link>
            <guid isPermaLink="false">https://medium.com/p/697f09dbd1c7</guid>
            <category><![CDATA[celebration]]></category>
            <category><![CDATA[chainborn]]></category>
            <category><![CDATA[tcg]]></category>
            <category><![CDATA[web3-game]]></category>
            <category><![CDATA[tezos]]></category>
            <dc:creator><![CDATA[Asbjorn Enge]]></dc:creator>
            <pubDate>Fri, 18 Aug 2023 11:15:17 GMT</pubDate>
            <atom:updated>2023-08-18T11:15:17.343Z</atom:updated>
            <content:encoded><![CDATA[<p>1 whole year under the yoke of the Lord Emperor and his damned Inquisitors. It feels like five 🙊 😅 ⚔️ 🔥</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*kXSw0u16q3M5qhSVMheXIQ.png" /><figcaption>Current front page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*ru6YT-r-PN5WZIXStKxHlg.png" /><figcaption>Mainnet announcement Tweet</figcaption></figure><p>Kidding aside, it’s been a great year and quite the journey to get from where we started to where we are today. And the road ahead is full of exciting new things! Let’s see what we have accomplished in a year… 🤩 🥳</p><h3>Stats</h3><p>Let’s take a quick peak at some stats first.</p><pre>Number of Heroes: 276<br>Number of Players: 96<br>Number of Battles: 3934<br>Number of Collection: 16</pre><p>So in 1 year <strong>276 Heroes</strong> have been summoned! <strong>96 players</strong> have played the game!! An incredible <strong>3934 battles</strong> have been fought!!! And we now support <strong>16 collections</strong>!!! 🤯 💪 ⚔️ 🔥</p><p>We are quite proud of this and want to extend a sincere <strong>THANK YOU</strong> to each and every player who has summoned a Hero and tried ChainBorn.</p><p>❤️ 🙏 ❤️</p><h3>Chain Ministry</h3><p>We quickly realized that there was a need to NPCs in ChainBorn to keep players active and engaged. Thus the <a href="https://medium.com/chainborn/the-chain-ministry-e4933b074cc1">Chain Ministry</a> was born. It has been a huge success. By far the player with most experience 😉 It has grown from a single character (Arsh) to a whole group of NPC players with different stats etc.</p><p>We have also added loot to the Inquisitors, so if you manage to win over one you might get a battle chest with some goodies 🎁 .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*5LxwVWD69pJhoggQBsuYhw.png" /></figure><h3>Many more collections</h3><p>We started out with 4 initial collections; <strong>BitBirds, BatBits, Ottez and VesselGen0</strong>.</p><p>Today we support <strong>16 (!!)</strong> collections including some of the most prominent collections on Tezos 💖 🙏</p><p><a href="https://chainborn.xyz/collections">ChainBorn Collections</a></p><p>Some stats reveal that <strong>VesselGen0</strong> is still our most popular collection.</p><pre>Collection Stats<br>--<br>Vessel GEN-0: 77<br>Dark Wheel Demonz: 24<br>Big Foot Mafia Club: 21<br>BitBirds: 19<br>BatBits: 19<br>Mutant Gecko Gang: 18<br>Diplomats of Tezotopia: 16<br>Ziggurats: 12<br>Witchez: 10<br>Oxtazy: 9<br>Prjktneon: 9<br>Trooperz Genesis: 8<br>Neonz: 8<br>Ottez: 7<br>Owlz: 5<br>Cyber Gecko Gang: 2</pre><h3>Off chain randomization</h3><p>We started off wanting to build the entire game on-chain. We used a “randomizer oracle” to generate hit damage where we would push entropy to keep anyone from being able to guess the result.</p><p>However, it turned out it was possible to front-run these entropy pushed by adding lots of gas to the transaction and thereby guessing the outcome of an “attack”.</p><p>So, we had to move to off-chain randomization. This has been working great for a long time now, and we have not seen any new attempts to “cheat” the game in this fashion.</p><p>🎲 🎲 🎲</p><h3>Items &amp; potions</h3><p>In order to make the game more strategic we introduced <a href="https://www.fxhash.xyz/article/the-store">items &amp; potions</a> in March of this year. Including a store where you can purchase and trade these items. We wanted to encourage an economy within the game where players could trade items and Heroes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*879NvmNhDty5d1yX___KXA.png" /></figure><p>We also wanted to include the collection creators more in the game by giving them the ability to create items for the store. Either for their unique collection or for all collections on ChainBorn. We also support skins which players can use to pimp their Hero cards in the game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*w72wyRpk0E7C_67KjrfyGg.png" /><figcaption>PrjktNeon Items &amp; Skin</figcaption></figure><p>The store has been a huge success also. And today we have <strong>69 different items</strong> for sale 🤩 🛡️ ⚔️</p><p><a href="https://chainborn.xyz/store">https://chainborn.xyz/store</a></p><h3>Tournaments</h3><p><a href="https://www.fxhash.xyz/article/tournaments">Tournaments</a> have been one of the most requested features we have had from the start. March of this year we added support for them, and it’s been a huge success!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*nGr7LFj6mZsDWuUpw0iWKQ.png" /><figcaption>Raf Rumpus #4 Tournament</figcaption></figure><p><a href="https://chainborn.xyz/tournaments">https://chainborn.xyz/tournaments</a></p><h3>Cup &amp; League</h3><p>We have also launched something we now call the “Cup” and the “League”.</p><h4>Cup</h4><p>The Cup is a sponsored battle for badges over a certain period. Winners can take home a prize in XTZ and also win a trophy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*naIWMsTfKCNmy8ztVtr_Hw.png" /></figure><p><a href="https://chainborn.xyz/cup">https://chainborn.xyz/cup</a></p><h4>Legaue</h4><p>The ChainBorn League is similar to the Cup only it lasts an entire year! Prizes, Trophies and winners for 2023 TBD ⚔️ 🔥</p><p><a href="https://chainborn.xyz/league">https://chainborn.xyz/league</a></p><h3>Battle speedups</h3><p>One of our main obstacles to adoption is the fact that we are an on-chain game, with many of the interaction requiring the signing of transactions.</p><p>Previously a player had to sign a transaction for each “attack” in a game. This was quite tedious. We have now removed this requirement, and battles are much faster and give a much better game experience.</p><p>Since we already did the “dice rolling” off-chain, we could also keep track of the turns without on-chain transaction. So we did that, and we added a special “finisher” service to resolve the off-chain battles on-chain.</p><p>Read more about it <a href="https://medium.com/chainborn/battle-speedups-%EF%B8%8F-1f5ad63a8ba4">here</a>.</p><h3>Notification improvements</h3><p>From the start we have had a notification system inside the ChainBorn game. Similar to the notifications you get on Facebook and similar. However, this required users to always check the site in order to get notified of new events. Especially in a asynchronous turn-base game such as ChainBorn it’s important to be able to notify users via other channels.</p><p>So, we have added two new notification methods; email and web-push.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QvvBrF0rwdwi_Tey0LAs4Q.png" /><figcaption>Notifications Settings</figcaption></figure><p>Email notifications use the fantastic TezID notification channels ✨ So there is no need for you to share your email with us. Just set up a <a href="https://tezid.net/">TezID</a> email proof and allow ChainBorn to contact you via this channel.</p><p>Web push notification are pretty awesome and they are what I use now. Setting them up is a little detailed for this blogpost, but check out this video for how to get “normal” notification on your phone from ChainBorn 🤩 🎉</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FRiizMonr1pM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRiizMonr1pM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FRiizMonr1pM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5359c2a9c10f49fe13e1abf5538c991d/href">https://medium.com/media/5359c2a9c10f49fe13e1abf5538c991d/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*0S-UjXPyi5bbFNUTM_OUUg.png" /><figcaption>Web Push Notifications on iOS</figcaption></figure><p>All this, and many more little tweaks and updates have happened on ChainBorn in the laste year 😅 🤩 💪 🎉 Are you as excited as us for the future? Let&#39;s take a quick peak at some of the things that are in the pipeline.</p><h3>Quests</h3><p>Quests will be collections of achievements that need to be reached in the game in order to be able to claim certain prizes. The first quest ever will be the “Free Merlin” quest that we are announcing as part of our 1 year celebration and that you can read more about <a href="https://medium.com/chainborn/myrddin-and-the-sparks-of-rebellion-c507605cff0b">here</a>.</p><h3>Dungeons</h3><p>Dungeons will be a string of battles with increasing amount of difficulty (culminating in a dungeon boss?) that a group of Heroes need to complete in order to collect awesome loot.</p><p>Dungeons will also perhaps have geo-location attached to them. What fun we will do with that remains to be seen 😉 🐣</p><h3>Magical abilities</h3><p>We are soon introducing magic into ChainBorn. There will be multiple types of magic and the different collections will have a different maximum setting for each ability. Meaning you might want 1 of each collection to make a super deck 🤩</p><p>Increasing magical abilities will be doable with experience points.</p><p>Along with magic also come spells. They will work similar to potions in that they will be NFTs, and they will be quite powerful 🧙 ✨</p><h3>Deck battles</h3><p>We are also introducing Decks soon. Decks will be a collection of Heroes bundled together. Players can battle eachother with Decks in deck battles. Last player with a Hero still alive takes the victory.</p><h3>Blacksmith</h3><p>The Blacksmith of “forgery” will be a place where Heroes can do things like;</p><ul><li>Add magical abilities to items</li><li>Craft spells and potions</li><li>Craft items</li><li>etc.</li></ul><h3>More collections</h3><p>At the ❤️ of ChainBorn is our amazing collections. A HUGE thanks to all the collection creators who decided to be part of our game. We are forever grateful and we work hard to add additional utility to your collections.</p><p>We are always adding more collections to ChainBorn and will continue this in the year to come.</p><p>As part of our anniversary celebration we are adding two new collections;<br><a href="https://objkt.com/collection/KT1CJUHK9hkf24AMJfWFS6KJZmY5jb9GYfCS">Ottez Evolutions</a> and <a href="https://objkt.com/collection/KT1CvoLp3utYF9BUfK1Lp6yqh2WBJqruVLVC">Bunny Knights</a>!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*GX7s2C4js8zS_mRGheTdNw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*hh8Ta-IS_7T6gqjXhVb-_Q.png" /></figure><p>Hope this makes you excited for the future of ChainBorn!</p><p>Come join in the fight ⚔️ 🔥</p><p><a href="https://chainborn.xyz/">https://chainborn.xyz/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=697f09dbd1c7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chainborn/1-year-of-chainborn-697f09dbd1c7">1 Year of ChainBorn 🥳</a> was originally published in <a href="https://medium.com/chainborn">ChainBorn</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Myrddin and the sparks of Rebellion]]></title>
            <link>https://medium.com/chainborn/myrddin-and-the-sparks-of-rebellion-c507605cff0b?source=rss-fba1ce112689------2</link>
            <guid isPermaLink="false">https://medium.com/p/c507605cff0b</guid>
            <category><![CDATA[tcg]]></category>
            <category><![CDATA[chainborn]]></category>
            <category><![CDATA[quests]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[tezos]]></category>
            <dc:creator><![CDATA[Asbjorn Enge]]></dc:creator>
            <pubDate>Fri, 18 Aug 2023 11:13:02 GMT</pubDate>
            <atom:updated>2023-08-18T11:13:02.781Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*Saut3IZIrM643rxSPlq1qA.jpeg" /><figcaption>Myrddin</figcaption></figure><p>Myrddin, a loyal Chain Ministry Inquisitor sits in his office grinding over some papers regarding the construction of a new waterway. He used to enjoy these projects, providing better infrastructure for the citizens of the capitol. But recently, more and more projects were getting cut and funding seems to flow in other directions. Towards the top of the Ministry…?</p><blockquote>Sure, the Lord Emperor is a harsh sovereign. But his system of government does provide the basics for a growing population. And we continually improve it. It has lasted a millennia already. Who is he to question such things?</blockquote><p>A sudden knock on the door released him from these traitorous thoughts. A messenger bearing two letters. What now?</p><p>The first letter bore the seal of Dark Moon, the highest ranking Inquisitor in the capitol and Myrddins superior. Myrddin opens the letter carefully. Another project to be put on hold? His waterway project? Myrddin suddenly felt a rush of anger. He quickly suppress it. Something feels wrong lately. But who is he to ask questions. Dark Moon and the other High Inquisitors surely have their reasons.</p><p>The second letter bore a strange unknown seal. &lt;describe the seal&gt;. How did it even get here? Letters with unknown seals are typically censored long before they even reach the steps of the Ministry. He considered reporting the messenger, but decided against it. Maybe it’s the seal of a family from another city? He opened it curiously.</p><p>It looks to be a letter of recommendation for a new Inquisitor? Another one? Strange he should receive it? But as soon as he reads the initial sentences of the letter, he finds he cannot stop. Something has him transfixed. A spell? He somehow feels his mind change, slowly, then suddenly. He blinks and is confused for a second. Looking back at the letter, it is no longer a recommendation letter. A short note and … instructions for a spell!?</p><p>The note reads;</p><pre><em>You are under the influence of a spell similar to the one that controls <br>the minds of the Acolytes. We have temporarily lifted it, <br>but it will soon overtake you again unless you leave the capitol. <br>The instructions to permanently lift the spell follows. <br>Free your mind and join us!<br><br>Death to the Lord Emperor!<br>~ Fiia</em></pre><p>Myrddin is stunned. Fiia? Could it be? Without even thinking he writes down the spell instructions on a different piece of paper and hides it in his robes inner pocket. He can feel his mind slowly numbing. The letters on the piece of paper turns blurry. He feels dizzy and stumbles towards his chair before falling into a deep sleep.</p><p>When he woke up it was late evening. The sun was about to set in the east and cooling shadows were starting their night long fight against beaming street lamps on the busy streets below.</p><p>He remembered. He felt his robe pockets. The spell was still there! What should he do? Try it? No. Turn it in? He sat as his desk looking at it. Considering. Without consciously noticing, he began looking over his inventory to see if he had the required ingredients. He was only missing a few items.</p><ul><li>A dead mouse</li><li>A hedgepig</li><li>An orb of seeing</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yb18cnB7_kmBz9OITu6QZg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WhKEubgPbG0hhlqtctS0Sw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*INWaVxD-xXWzj6DsQypsvA.jpeg" /><figcaption>Missing spell ingredients</figcaption></figure><p>The two first were easy enough to get ahold of. He could requisition them. But he did not want any trace leading back to him. He knew Acolytes carried them for creating healing potions and other kind of spells. The hardest part would be the Orb though. Only the High Inquisitors were allowed to operate them.</p><p>What was he doing? Suddenly scared. Was he really going to try out this spell? From a strange letter with an unknown seal? For some reason it felt right. He wanted to try it. He had to.</p><p>He had an idea. He could create a “quest” and hang it at on one of the “quest boards” down at the battle grounds. People always hung all sorts of different tasks they wanted performed there. The Ministry looked them over, but often at a glance and his would probably not even stand out.</p><p>Before giving himself a chance to reconsider, he quickly drew up the quest and disappeared into the busy night.</p><h4>Objectives</h4><ul><li>Collect the 3 missing items for Myrddin</li><li>Send them to tz1Tj4ZaQSnQiUEom25v8qb573XFwT32obhQ (chainborn.tez)</li><li>Let us know in Discord</li></ul><h4>Rewards</h4><ul><li>First one to complete gets a “Myrddin Rebel Fighter” NFT</li><li>All who complete get 1000 LEG</li><li>All who complete get 1 Orb of Seeing NFT</li></ul><h4>Tip</h4><ul><li>Fight the Chain Ministry Inquisitors for loot.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c507605cff0b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chainborn/myrddin-and-the-sparks-of-rebellion-c507605cff0b">Myrddin and the sparks of Rebellion</a> was originally published in <a href="https://medium.com/chainborn">ChainBorn</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Battle speedups! ⚔️  ]]></title>
            <link>https://medium.com/chainborn/battle-speedups-%EF%B8%8F-1f5ad63a8ba4?source=rss-fba1ce112689------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f5ad63a8ba4</guid>
            <category><![CDATA[chainborn]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[tcg]]></category>
            <category><![CDATA[tezos]]></category>
            <dc:creator><![CDATA[Asbjorn Enge]]></dc:creator>
            <pubDate>Sun, 04 Jun 2023 16:37:26 GMT</pubDate>
            <atom:updated>2023-06-04T16:37:26.313Z</atom:updated>
            <content:encoded><![CDATA[<p>Battles on ChainBorn are now a lot faster!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*FTDx3CsV0cSJqgWuDxTcTA.png" /></figure><p>A quite annoying thing with blockchain / web3 games, is that you typically have to wait for transactions to be verified before actions are reflected in the user interface.</p><p>Many games move to L2 for this reason. And we are indeed planning to move to a Tezos rollup at some point. We are however not quite there yet, and we wanted to see what improvements we could do now.</p><p>In the first version of ChainBorn everything happened on-chain. When you took a turn, you did a on-chain transaction and we used a randomizer scheme to generate a “random” number (for the damage) on-chain. This scheme was quite complicated and it was possible to front-run transactions and thereby beat the system.</p><p>In the next version we moved randomization to the server. Users now signed a transaction to prove they wanted to take their turn and sent this to our servers. The “damage” was then generated off-chain and the turn committed to chain by our servers. This fixed the damage randomization problem, but battles were still painfully slow since each transaction had to be verified on-chain and indexed before being reflected in the user interface.</p><p>In the current version, just released a few days ago, we are taking this one step further. Now we are handling all the turns back and forth off-chain, and only committing the result on-chain. Since the randomization was already happening off-chain we do not see this as a huge leap in terms of trust (you already have to trust we do the randomization correctly) but it speeds up battle dramatically and creates a whole new battle experience!</p><p>😬 ⚔️ 🔥 🚀</p><p>We are very excited about this release and hope you will be too!</p><p>Let us know what you think on Discord ❤️<br><a href="https://discord.gg/mC3cKsAFws">https://discord.gg/mC3cKsAFws</a></p><p>Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f5ad63a8ba4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chainborn/battle-speedups-%EF%B8%8F-1f5ad63a8ba4">Battle speedups! ⚔️ 🔥 🚀</a> was originally published in <a href="https://medium.com/chainborn">ChainBorn</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TezID  Altme]]></title>
            <link>https://blog.tezid.net/tezid-altme-37db77809118?source=rss-fba1ce112689------2</link>
            <guid isPermaLink="false">https://medium.com/p/37db77809118</guid>
            <category><![CDATA[tezid]]></category>
            <category><![CDATA[ssi]]></category>
            <category><![CDATA[digitalidentitymanagement]]></category>
            <category><![CDATA[tezos]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Asbjorn Enge]]></dc:creator>
            <pubDate>Mon, 23 Jan 2023 10:06:35 GMT</pubDate>
            <atom:updated>2023-01-23T10:06:35.795Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://altme.io/"><strong>Altme</strong></a> is a Web3 wallet focusing on <strong>Self-Sovereign Identity (SSI).</strong></p><p><strong>Self-sovereign identity (SSI)</strong> is an approach to digital identity that gives individuals full control over the information they use to prove who they are. With Altme users always have control of their credentials and who they share them with.</p><p>Sometime it can be very useful to share these credentials on-chain, so that dapps and smart contracts can verify them. This is where TezID comes in 😉 .</p><p><strong>We are super happy to announce our partnership with Altme!</strong> 🙏 ❤️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5usKFBS4Eo702Ob-aTnBNQ.png" /></figure><p>Our collaboration with Altme allows for the integration of SSI verifiable credentials on the Tezos blockchain through TezID. This feature enables Tezos applications to verify user information directly on-chain, improving the user experience, privacy and enabling more customized experiences and services.</p><p>It also enables easy reuse of identity proofs across multiple Tezos dapps and services, making it simpler for new users to gain access to applications or services without providing unnecessary personal information.</p><p>We are excited to be leading the way in shaping the future of identity on the Tezos blockchain. With this integration, every Tezos application can now use the standard of digital identity (SSI) through verifiable credentials.</p><p>For instructions on how to integrate, please refer to the open-source <a href="https://github.com/tezid/docs">TezID Github documentation</a>.</p><p>Join us in shaping the future of identity on Tezos.</p><p>🙏 ❤️ 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37db77809118" width="1" height="1" alt=""><hr><p><a href="https://blog.tezid.net/tezid-altme-37db77809118">TezID 💖 Altme</a> was originally published in <a href="https://blog.tezid.net/">TezID</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Chain Ministry]]></title>
            <link>https://medium.com/chainborn/the-chain-ministry-e4933b074cc1?source=rss-fba1ce112689------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4933b074cc1</guid>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[tcg]]></category>
            <category><![CDATA[tezos]]></category>
            <category><![CDATA[chainborn]]></category>
            <dc:creator><![CDATA[Asbjorn Enge]]></dc:creator>
            <pubDate>Tue, 27 Sep 2022 08:24:14 GMT</pubDate>
            <atom:updated>2022-09-27T08:24:14.863Z</atom:updated>
            <content:encoded><![CDATA[<p>In Pax Timor, the Lord Emperor is seen as deity, and his will is law. But even he cannot manage all the workings of the Eternal Empire by himself.</p><p><strong>The Chain Ministry</strong> is part religion and part bureaucracy of the Eternal Empire. Their role is to make sure both the Raf and the Nobility adhere to the strict dogma of the Lord Emperor’s rule. They are also deeply involved in planning and development of these dogma and their political and institutional extensions. It is fair to say they control the gears and levers that make the Eternal Empire run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*VdP7ulzI5WSQwqyMDdh-EA.png" /><figcaption>The Chain Ministry</figcaption></figure><p>The Chain Ministry was created in the second millennium of the Lord Emperors rule. Prior to this, riots and insurrections were rampant. But the Chain Ministry with their strict control and not least their inquisitors have had a firm grip on the population since it’s creation.</p><h3>The Chain Inquisitors</h3><p>The Chain Inquisitors are at the top of the Chain Ministry hierarchy. Once a high priest is allowed into the ranks of the inquisitors, his mind is made immutable and he no longer has any will, except that of the Lord Emperor. It is a grueling process where the subjects spine is replaced with a special metal chain giving them a distinct horrific look.</p><p>It is said that the Lord Emperor and his Chain Inquisitors have a shared mind. Some swear to have witnessed The Lord Emperor take control over an inquisitors body and control even his movements.</p><p>The main concern of the Chain Inquisitors is to root out insurrections before they have a chance to get started. They keep a close eye on the Raf, the Nobility and even the Chain Ministry priests.</p><p>If you ever face a Chain Inquisitor, you better run in the other direction.</p><h3>Chain Inquisitors as NPCs in ChainBorn</h3><p>For the ChainBorn game we will be creating several NPCs based on the Chain Inquisitor lore. They will be automated players controlled by scripts. They play by the same rules as everyone else.</p><p>The fun thing about them is that they will accept challenges (read each Inquisitors lore for specifics) immediately and are ready to battle 24/7.</p><p>So if you are looking to play and upgrade your Hero but you have no time to wait for other players to respond, battling a Chain Inquisitors a path you can take ⚔️ 🔥</p><p>The first Inquisitor to enter ChainBorn is <a href="https://chainborn.xyz/heroes/KT1EGtg6pYH3KYrNccQ7NXmQcdG4f1qBEJgX/0">Arsh</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*msouUBrW7rGJk5g8IZNz_Q.png" /><figcaption>Arsh the Chain Inquisitor</figcaption></figure><p>You can challenge him right now!</p><p>Enjoy 🥳</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4933b074cc1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chainborn/the-chain-ministry-e4933b074cc1">The Chain Ministry</a> was originally published in <a href="https://medium.com/chainborn">ChainBorn</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Notification channels ]]></title>
            <link>https://blog.tezid.net/notification-channels-41291b61e991?source=rss-fba1ce112689------2</link>
            <guid isPermaLink="false">https://medium.com/p/41291b61e991</guid>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[tezos]]></category>
            <category><![CDATA[tezid]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Asbjorn Enge]]></dc:creator>
            <pubDate>Sat, 17 Sep 2022 15:24:12 GMT</pubDate>
            <atom:updated>2022-09-19T09:25:35.481Z</atom:updated>
            <content:encoded><![CDATA[<p>To platforms: “Would you like to send email and sms notifications to a wallet address?” Now you can 🥳</p><p>To users: “Would you like to receive notifications via email or sms without having to share your details with 100 different platforms?” Now you can 🥳</p><p><strong>Introducing; TezID Notification Channels 💖 📨</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bzHV-cPiw65VVg0u" /><figcaption>Photo by <a href="https://unsplash.com/es/@benoit1974?utm_source=medium&amp;utm_medium=referral">Benoit Debaix</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Notification channels</h3><p>A notification channel is a “channel” between you and some web3 platform that allows the platform for send you notifications via one of our supported channels (email &amp; phone) without you (the user) having to share your contact information with every platform.</p><p>Since we already have verified <strong>email</strong> and <strong>phone</strong> proofs in TezID, we can allow users to enable / disable such a channel between themselves and one of our partnering platforms.</p><p>You need a <strong>verified proof</strong> of the type you want to set up a channel for. You can tap the proof for details and <strong>tap one of our platforms</strong> to enable / disable the notification channel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*ttI6Coc-_a7aLPwKg8whzg.png" /><figcaption>Tap the platform logo to enable / disable.</figcaption></figure><p>On TezID this just enables the channel. What notifications you receive is typically configured on the platform site. The first of our platforms to support this feature is <a href="https://chainborn.xyz/">ChainBorn</a> ⚔️ 🔥 Their settings page for notifications looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zepx5fLDoHZK-vufhO4H9Q.png" /><figcaption>What notifications you receive is configured on the platform.</figcaption></figure><p>If you are unhappy with how a platform handles these notifications or settings, simply disable the channel in TezID and the platform will no longer be able to send you anything.</p><h3>Security</h3><p>Wait, don’t TezID just store <strong>hashed versions of users proof data!?</strong> How do you know what email and phone number to send the notification to…?</p><p><strong>That is absolutely correct.</strong> So when you enable a notification channel, you are required to resubmit the same email or phone number you used to register your proof. By doing this we can check for a <strong>matching hash</strong> and enable the channel.</p><p>When you enable a channel <strong>we have to store your data</strong> so that we can read it when sending you a notification. <strong>We encrypt this data and keep decryption keys on separate servers</strong> that are not exposed to the internet.</p><p>Overall we believe this is a very secure model for users. Much more secure then sharing your contact information with a myriad of different web3 platforms.</p><h3>Summary</h3><p>So that is TezID Notification Channels 😬 That simple, that brilliant 😉 We hope both users and platform will love these channels and that it will bring <strong>better communication in the web3 space</strong>.</p><p>If you are a platform looking for this kind of functionality for your web3 project, please reach out to support@tezid.net 💖</p><p>Enjoy 🥳</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41291b61e991" width="1" height="1" alt=""><hr><p><a href="https://blog.tezid.net/notification-channels-41291b61e991">Notification channels 📨</a> was originally published in <a href="https://blog.tezid.net/">TezID</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started]]></title>
            <link>https://medium.com/chainborn/getting-started-3453635a1c27?source=rss-fba1ce112689------2</link>
            <guid isPermaLink="false">https://medium.com/p/3453635a1c27</guid>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[tezos]]></category>
            <category><![CDATA[chainborn]]></category>
            <category><![CDATA[tcg]]></category>
            <category><![CDATA[nft-game]]></category>
            <dc:creator><![CDATA[Asbjorn Enge]]></dc:creator>
            <pubDate>Tue, 23 Aug 2022 09:34:50 GMT</pubDate>
            <atom:updated>2022-08-23T09:36:21.534Z</atom:updated>
            <content:encoded><![CDATA[<p>The 18th of august 2022 we launched the public beta of ChainBorn on Tezos mainnet 🤩 🎉 This is a post takes you through everything you need to know to get started playing ChainBorn 😊</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*iKIR2nNZ6HAUgNcdRTBOiA.png" /><figcaption>ChainBorn Banner</figcaption></figure><p>NB! Most of the information covered here is also available in our <a href="https://chainborn.xyz/faq">FAQ</a>.</p><h3>Summon a Hero</h3><p>ChainBorn is a game of Heroes. So the first thing you need to do is to summon one ✨</p><p>To be able to do that you first need to connect your Tezos wallet. Hit the “<strong>Connect Wallet</strong>” button on the top right. Next, head to the<a href="https://chainborn.xyz/heroes/summon"><strong> Summon Hero</strong></a> page (via the Hero page).</p><p>If you don’t see any Heroes on the Summon Hero page, that is because you don’t have any <strong>NFTs</strong> from one of our <strong>supported collections</strong>. In ChainBorn your turn your pfp NFT into a Hero and build it up. Head over to the <a href="https://chainborn.xyz/collections"><strong>Collections</strong></a> page for a list of our supported collections and links to where you can purchase one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*2cV5VP23dZWwlMicpmsVWQ.png" /><figcaption>Potential Heroes</figcaption></figure><p>Tap one of your potential Heroes to start the summon process. You need to provide a name for your Hero. <strong>Names are unique</strong>, so be quick if you want to grab some good ones!! There is also a summon fee of <strong>10 XTZ</strong> (currently).</p><p>Once you have summoned your Hero, you are ready to Battle!! ⚔️</p><h3>Battles</h3><p>The v1 version of ChainBorn have 1v1 pvp Battles ⚔️</p><p>Via battles you gain experience and can build up your Hero over time 💪 Climb the ranks of the Raf and hopefully one day become <strong><em>unchained!</em></strong></p><h4>Challenge</h4><p>Explore either the <a href="https://chainborn.xyz/heroes?sort_by=summoned_at&amp;sort_direction=desc">Hero</a> page or the <a href="https://chainborn.xyz/battles?sort_by=challenge_time&amp;sort_direction=desc">Battle</a> page to find a suitable opponent. A good idea is to sort battles for recent battles to find active players.</p><p>If you have a specific opponent in mind and know their wallet address or Tezos Domain you can check out their player profile to find their Heroes:</p><p><a href="https://chainborn.xyz/player/asbjornenge">https://chainborn.xyz/player/asbjornenge</a><br><a href="https://chainborn.xyz/player/tz1UZZnrre9H7KzAufFVm7ubuJh5cCfjGwam">https://chainborn.xyz/player/tz1UZZnrre9H7KzAufFVm7ubuJh5cCfjGwam</a></p><p>Once you have found a Hero you want to challenge, tap the “<strong>Challenge</strong>” button below the Hero card on their <strong>Hero page</strong>. A popup will appear where you can select which Hero you want to challenge with. You also need to set the “<strong>battle type</strong>” and “<strong>loot</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DknqXkArhYyLM6mqEMXiqA.png" /><figcaption>Challenge dialogue</figcaption></figure><p>If you select “<strong>A Loot</strong>”, the selected amount of XTZ you put in loot has to be matched by your opponent, and <strong>the winners takes all</strong> (minus the platform fee).</p><p>If you select “<strong>Hero &amp; Loot</strong>”, both the loot AND your Hero are on the line. If you loose you loose it all. And that includes your Hero NFT 😱 😬</p><p>Once you have challenged a Hero, your opponent will <strong>receive a notification</strong> letting them know. If they don’t respond in a reasonable time, you can always cancel your challenge and challenge someone else.</p><p>You can have multiple challenges out at the same time.</p><p>You can however only be in 1 battle at the same time. This is because you can potentially loose your Hero in a battle 😉</p><p>If your opponent accepts your challenge, <strong>you will receive a notification letting you know, and the battle begins!! ⚔️</strong></p><h4>Rounds</h4><p>ChainBorn is <strong>turn based</strong>. So once a battle starts each Hero has their turn and have to wait for the opponent to take their turn. If you see an “<strong>Attack</strong>” button it’s your <strong>turn</strong>, if not it’s your opponents turn, and you have to <strong>wait</strong>.</p><p>If your opponent takes too long, there is a <strong>timeout period</strong> (currently 1 week) after which you automatically win the battle (Hero who’s turn it is not). So remember to take your turns 😅</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*od2FseJ4tRQ-uFzsnkyDig.png" /></figure><p>You see a log of the battle rounds below the battling Heroes. <br>The battle concludes when one of the Heroes reaches <strong>0 health</strong> 💀</p><p>If you wonder about the <strong>randomization</strong> of the attacks in the battle rounds check out the Randomization section <a href="https://medium.com/chainborn/creating-chainborn-fce259fde45d">here</a>.</p><h4>Battle chat</h4><p>One super fun (we atleast think so) feature of ChainBorn is the “Battle chat”. Each battle has a public chat where anyone can join (anyone that has connected their wallet and signed the Terms message that is)!</p><p>It’s a super fun way to interact during a battle, get excited and make some new friends 🤗</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5-2Zk74QyLqo90UaHanoxQ.png" /><figcaption>Battle Chat</figcaption></figure><p>Open the battle chat by tapping the <strong>chat bubble</strong> at the bottom left on a battle page and start chatting during battles!! 💬 💖</p><h4>Experience</h4><p>After a ChainBorn battle you <strong>gain experience</strong>. The amount of experience is calculated from the amount of loot; <strong>the more loot the more experience</strong> (within some parameters).</p><p>You use the experience gained to <strong>upgrade your Hero</strong>. Add points to Health and/or Strength to be better fit for your next battle! And climb the ranks!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tgpxytjAibfsWozCM4XHhA.png" /><figcaption>Heroes gained experience.</figcaption></figure><p>And that is what you need to know to get started with ChainBorn 🤩 🚀</p><p>Find more Heroes to battle and build up your Hero for the coming fight agains the Lord Emperor 💪 ⚔️</p><p>There are many more things to cover like; <strong>ranks, badges, nicknames, items (!?), group battles (!?), unchain status</strong> … but more on that later 🤫 😉</p><p>Have fun playing CB 💖 And jump on our <a href="https://discord.gg/s4JvjDpGQs">Discord</a> if you want!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3453635a1c27" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chainborn/getting-started-3453635a1c27">Getting started</a> was originally published in <a href="https://medium.com/chainborn">ChainBorn</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating ChainBorn]]></title>
            <link>https://medium.com/chainborn/creating-chainborn-fce259fde45d?source=rss-fba1ce112689------2</link>
            <guid isPermaLink="false">https://medium.com/p/fce259fde45d</guid>
            <category><![CDATA[tezos]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[pfp]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[tcg]]></category>
            <dc:creator><![CDATA[Asbjorn Enge]]></dc:creator>
            <pubDate>Fri, 05 Aug 2022 10:29:30 GMT</pubDate>
            <atom:updated>2022-08-05T10:29:30.205Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Or how to build an NFT game on Tezos.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uccl8DmXsEw0iJA24vA54w.jpeg" /><figcaption>ChainBorn Banner by Jake Gumbleton</figcaption></figure><p>In this post, we lay out how we created ChainBorn. From <strong>smart contracts</strong> to <strong>dapp</strong> and<strong> index</strong>. All with code examples and links to relevant <strong>tools and software</strong>.</p><p>All the <strong>sample</strong> code and scripts used in the article can be found <a href="https://github.com/chainborngame/creating-chainborn"><strong>here</strong></a><strong>.</strong></p><p>No Tezos or blockchain prerequisites are required, but some software development experience is recommended.</p><p>Hope you enjoy the ride 🤓</p><h3>ChainBorn</h3><p>So we had this idea to create a TCG (tradable card game) akin to <a href="https://en.wikipedia.org/wiki/Pok%C3%A9mon_Trading_Card_Game">Pokémon</a> or <a href="https://en.wikipedia.org/wiki/Magic:_The_Gathering">Magic the Gathering</a> on Tezos. Blockchains, and especially NFTs, are very suitable for TCGs where you can have an NFT representing each issued card.</p><p>Since there already were lots of PFP collections on Tezos, we thought it would be fun to bring some additional utility to these. So we decided to make a “Hero” focused game for already existing PFP collections on Tezos ✨</p><p>ChainBorn was... born 😅 ⚔️</p><h3>Smart Contract(s)</h3><p>Let&#39;s jump right into it and start with the smart contracts governing the game.</p><p>To create a blockchain game you need a “smart contract” to control the game logic. You can think of your contract as a traditional game “backend” where you need to store the state and what logic is allowed on that state. Keep in mind though that contracts are public, and objects on the blockchain carry value, so you need to make extra sure you do not make logical mistakes; write lots of tests and keep the logic as simple as possible.</p><blockquote><strong>Write lots of tests and keep the logic as simple as possible</strong></blockquote><p>To create our contracts we used <a href="https://smartpy.io/">SmartPy </a>— a very simple yet powerful <em>smart contract development library</em> that transpiles python code into <a href="https://www.michelson.org/">Michelson</a> (Tezos Smart Contract language), and much more 🙌</p><p>We like SmartPy because it’s very easy to read (it’s basically python), it has a solid testing story, and great tooling.</p><p>They also have a great online IDE, but if you are going to create an entire game you are going to need version control, code separation, test runners, etc. so better to <a href="https://smartpy.io/docs/cli/">install</a> &amp; work with the cli.</p><p>To make things a bit simpler I like to isolate a project in its own python <a href="https://virtualenv.pypa.io/en/latest/">virtualenv</a>. Here is a script I use to init a SmartPy environment.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/75dd12a861daa4a7da4dda631f6465cc/href">https://medium.com/media/75dd12a861daa4a7da4dda631f6465cc/href</a></iframe><p>This gives me an isolated environment and the command spy that I can use to run SmartPy.</p><h4>Separating concerns</h4><p>Before we dive into the code, let’s consider how we best can structure our contracts.</p><p>In software development, it’s a mantra to separate concerns and have pieces that “do one thing well”. And smart contract development is no exception 😅</p><p>We like to think that when we put a smart contract on a blockchain it’s immutable (never changes), and that is true to some extent; an originated contract cannot be removed. But it can for sure have bugs and vulnerabilities that you want to fix. Or you might just also want to update the logic of your game a bit or introduce a new feature. So it makes sense to have the ability to update your logic somehow.</p><blockquote>It makes sense to have the ability to update your logic.</blockquote><p>There are mainly two ways to do this (afaik); <strong>updateable entrypoints</strong> and <strong>multiple contracts</strong>.</p><p><strong><em>Updateable entrypoints</em></strong> mean that you store the logic for your entrypoints in the contract storage as lambdas (functions), and you have a separate entrypoint to update the logic. The upside is that you only have one contract to deal with. The downside is that you have a fixed set of entrypoints (at least afaik this is the case).</p><p><strong><em>Multiple contracts</em></strong> mean you spread out the logic and/or data over multiple contracts making it possible to update an entire contract to modify some piece of the game. The upside here is you don’t have to deal with lambdas, and you can modify the entrypoints for a given contract. The downside is you have to deal with multiple contracts.</p><p>Another thing to consider is that <strong>putting data on the blockchain has a cost</strong>. You want to design your game in such a way that, if you need to change some logic, you don’t need to redeploy the entire game-state onto the chain.</p><blockquote>Putting data on the blockchain has a cost.</blockquote><p>So what we did for ChainBorn is that we have two contracts; the <strong>“logic”</strong> contract which we call the <strong>controller </strong>and the <strong>“data”</strong> contract which we call the<strong> datastore</strong> 😅 🤓 This way we can update our game logic by replacing the controller contract with a new one. The new contract can have new entrypoints, features, etc. but we get to keep the game state (datastore) around so we don’t have to deal with redeploying a huge state tree (costly!) when we want to update the logic.</p><p>(If we DO need to introduce some updates to the datastore, we can do this by adding a proxy contract between the controller and the original datastore, or adding another datastore contract, side-by-side with the old one, for the new data)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FVEsfbW0pBu145PPhOi%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FVEsfbW0pBu145PPhOi%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FVEsfbW0pBu145PPhOi%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="362" frameborder="0" scrolling="no"><a href="https://medium.com/media/49a780be205a6375091a0e1837d29b3f/href">https://medium.com/media/49a780be205a6375091a0e1837d29b3f/href</a></iframe><h4>Types</h4><p>Michelson is a strongly typed language, so you are typically going to be passing around lots of custom types. Your types typically grow as your game grows, but I usually have a basic idea of what I need up-front and start with that.</p><p>Create a file called types.py and start working out your types.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3bfe56bebf25520cd62b9c148b029779/href">https://medium.com/media/3bfe56bebf25520cd62b9c148b029779/href</a></iframe><p>So we have a type called TGameConfig which is just what it says; it’s the game configuration parameters. Things like paused (indicates if the game is paused) and summon_cost (cost for summoning a Hero). You are typically going to refer to these things from different places in your game logic, so it makes sense to group them tn a type — at least I think so. It also makes it easier to have a single setConfig entrypoint instead of individual ones.</p><p>The more interesting THero represents a Hero character/card in ChainBorn. You can see it has some basic parameters like token_id , token_address , owner etc. but also a few more complex types like it’s character and attributes.</p><p>The THeroUid is also worth noting. It’s is a pair of an address and a nat. This relates to how NFT collections are structured on Tezos. A token is always minted on a unique contract ( address ) and each unique token has a token_id — so the THeroUid represents a unique NFT, or in other words a unique ChainBorn Hero. More on tokens later (FA2 section).</p><h4>Datastore</h4><p>The datastore contract will hold our game state. Before I overuse the word state, the “game state” is just the “game data” in a particular configuration 😅</p><p>We hope to never have to update the logic of the datastore because it is expensive to have to redeploy all its data. So we want to try and keep it as simple as possible.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2ad95dc4c869cc7f71e56543814aec19/href">https://medium.com/media/2ad95dc4c869cc7f71e56543814aec19/href</a></iframe><p>You will notice that it has heroes and battles in its storage. These are the main parts of the game state.</p><p>The datastore will just have a few very basic entrypoints like set_hero to update a Hero. The logic for when and by who set_hero can be called is all stored within the controller contract, and it is always the controller that calls the datastore with an updated Hero.</p><p>Notice also the check_admin call within set_hero . This is to ensure only admins can call set_hero . So what we do is that we add the KT1... address of our controller contract as an admin in the datastore, and that way we ensure that only the controller can update the game state. If we add an updated controller, we just add that to admins , remove the old one, and we have updated the game logic 🎉 .</p><p>We also use the types from types.py that we created earlier.</p><p>Notice also that we use BigMap for both the heroes and battles . This is because we expect those maps to grow large, and in these cases, it’s best to <a href="https://www.marigold.dev/post/understand-your-bigmap">use a BigMap</a>.</p><h4>Controller</h4><p>The controller holds all our game logic and controls “how the game works” so to speak. It will typically have a bunch of more complex entrypoints.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9cb717ed3e81f4b88911ed51faae172f/href">https://medium.com/media/9cb717ed3e81f4b88911ed51faae172f/href</a></iframe><p>We expect to update the controller now and then so we want it as “pure” as possible (no or very little state). In the storage, we have only a set of admins the config (TGameConfig as discussed earlier) and a set of collections (addresses to NFT collections supported by the game).</p><p>These are all easy to set via a few contract calls, should we ever have to update our controller contract, something we expect to have to do from time to time.</p><p>I have included the summon_hero entrypoint since it does a few interesting things we will discuss a bit later (FA2 section). Other entrypoints include challenge_hero , accept_challenge , execute_battle_turn and a bunch of other actions relevant to the game.</p><p>The controller contract is the contract users will interact with directly, and it’s the one we will be calling from our dapp discussed later.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FwpoLqr5FT1sY0%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FwpoLqr5FT1sY0%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FwpoLqr5FT1sY0%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="315" frameborder="0" scrolling="no"><a href="https://medium.com/media/481bcab67c71a0aaaadb42753472ce4a/href">https://medium.com/media/481bcab67c71a0aaaadb42753472ce4a/href</a></iframe><h4>Tests</h4><p>Tests are a very important topic in smart contract development. It is super useful to have a bunch of tests to ensure our logic is sound. SmartPy makes this really easy.</p><p>Let’s make a tests.py file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c06d53d61bac421eb9fc5d7f810ad0dc/href">https://medium.com/media/c06d53d61bac421eb9fc5d7f810ad0dc/href</a></iframe><p>First, we just import the different contracts we want to test and work with.</p><p>Next, we set some metadata variables. These will be used when we originate the different contracts in the init function.</p><p>I like to have an init function that I can call at the top of each of my tests to originate all the contracts I need. As you can see it takes the scene (test scenario) and an admin address as input, which is all we need to originate the required contracts.</p><p>The test() function is the actual test. Notice the kind=&quot;all&quot; in the decorator. This can be used to run tests in isolation, which is super useful sometimes. As you can see we can now execute entrypoints on the contracts and verify contract storage against the scenario 🙌</p><p>To execute the tests we can do:</p><p>spy kind all tests.py output --html --stop-on-error</p><p>Remember spy is the SmartPy alias we set up earlier. Notice we specify the kind (of test we want to run). We use “all” to execute all tests, but if we set a <em>custom</em> kind in one of our test decorators, we can run only <em>those</em> tests and not all the others.</p><p>And we have a working test environment 🎉</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F7MZ0v9KynmiSA%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F7MZ0v9KynmiSA%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExaHk2d2ZycmM2dHJ1bXBjYW4zZ2g2dGt2enEzY2duNnB5ZzZwbnd5dCZlcD12MV9naWZzX2dpZklkJmN0PWc%2F7MZ0v9KynmiSA%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="254" frameborder="0" scrolling="no"><a href="https://medium.com/media/408b7a292ae6f65d638466620e83e746/href">https://medium.com/media/408b7a292ae6f65d638466620e83e746/href</a></iframe><h4>Compilation &amp; Origination</h4><p>When you think you are ready to test your game contracts on a testnet, you need to compile and originate them. First, we add a compile.py file to contain our “compilation targets”.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6601b8f93accda6a51f4cbfb3627340e/href">https://medium.com/media/6601b8f93accda6a51f4cbfb3627340e/href</a></iframe><p>As you can see it’s mostly setting up the metadata and initial parameters we want to add to the contract storage. Initially, I just add my admin address everywhere, so I don’t have to coordinate so many things when originating, and I will update the different addresses and config later via an on-chain call to an entrypoint.</p><p><strong>To compile these two targets:</strong></p><p>spy compile compile.py compiled</p><p>Super easy ✨ Now our compiled Michelson code is available in the compiled folder.</p><p><strong>To originate a contract (on ghostnet):</strong></p><p>spy originate-contract --code compiled/game/step_000_cont_0_contract.tz --storage compiled/game/step_000_cont_0_storage.tz --rpc https://ghostnet.smartpy.io</p><p>If all goes well SmartPy will output something like:</p><p>[INFO] — Contract KT1JdE96ctFuCK5zgtM8tySXKwyH6K5THwuj originated!!!</p><p>That KT1… is your contract address. You can now copy that and head over to <a href="https://better-call.dev/">“Better Call Dev”</a> and interact with your contract on-chain 😬</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*-A4APzmysbVtrBz_OmXHvg.png" /><figcaption>BCD is my crush.</figcaption></figure><p>Better Call Dev or BCD for short is an invaluable tool for developing on Tezos. You can see <strong>operations</strong>, <strong>storage</strong> and <strong>interact</strong> with your contract directly from an easy-to-use web UI 💖</p><blockquote>Better Call Dev is an invaluable tool for developing on Tezos.</blockquote><p><strong>NOTE!</strong> SmartPy will handle origination cost when originating on a testnet (we used the new ghostnet — so should you probably). But when originating to mainnet you have to pass a --private-key that will be the originating address and pay for the origination.</p><h3>FA2 Considerations</h3><p><a href="https://gitlab.com/tezos/tzip/-/blob/master/proposals/tzip-12/tzip-12.md">FA2</a> is a token standard on Tezos. Chances are you are going to be dealing with tokens in some form when creating a Tezos project, so it is a good idea to get familiar with the spec and workings of FA2 contracts.</p><p>Since ChainBorn is an NFT game and NFTs are FA2 contracts, we have to deal with FA2 contracts both for the game logic and for our indexer.</p><h4>Staking</h4><p>Let’s take staking as a prime example of working with FA2.</p><p>So in ChainBorn users can challenge each other and win or lose their Heroes. That includes the NFTs associated with the Hero. How can we ensure that the loser gives up the NFT to the winner? Well, to play ChainBorn we require that the user “stake” their NFT in ChainBorn. That means that they transfer ownership of the NFT to the ChainBorn contract.</p><p>The contract will, of course, allow a user to unstake their NFT, but only if certain criteria are met; Hero is not currently battling, or was not lost in a battle to someone else.</p><p>So we need to keep track of who owns the staked NFTs since we need to be able to know who can unstake them. If you look back to the <strong>Types</strong> section, notice that THero has a owner property. And if you take a look at the <strong>Controller</strong> we set owner=sp.sender (caller of the entrypoint) when a Hero is initially summoned. If a player loses this NFT in a battle, we swap the owner field to the winner, and now only the new owner can unstake the NFT 😉</p><p>But, when summoning a Hero, how can we ensure that the user transfers ownership of their NFT to our contract? In the summon_hero entrypoint , we have this “Transfer token to datastore” step, where we actually transfer the specified NFT from the sender to our datastore. But how can our contract do that since it does not own the NFT!? It is not allowed! This is where <strong>operators</strong> come into play. In the FA2 specification, user can list other addresses as operators, and thus allow them to manipulate a token on their behalf.</p><p>So, when a user wants to call summon_hero they actually have to create a batch of 3 transactions:</p><ul><li>add_operator(game_controller)</li><li>summon_hero() // Now the controller can transfer the NFT</li><li>remove_operator(game_controller)</li></ul><p>We will cover this more in the dapp section below. It is the dapp that forges these transactions. Users need to take care to see what operations they allow when interacting with any smart contract! Take care to check that remove_operator also is called. After the transfer, the controller does not need to be an operator to transfer the NFT back since he is now the owner.</p><h3>Randomization</h3><p>Games usually have some kind of randomization to determine outcomes. For ChainBorn the result of an <strong>attack</strong> should pick a random number (within the parameters of the Heroes attributes) to determine how much <strong>damage</strong> to deal to the opponent.</p><p>For this, we use the <a href="https://github.com/asbjornenge/tezos-randomizer">tezos-randomizer</a> contract.</p><p><strong>It is very important to keep in mind that every transaction on a blockchain is deterministic. </strong>Meaning if you know the input variables, you can predict the outcome.<strong> </strong>So even though the tezos-randomizer produces a random number that is not easy for a user to guess, it is totally possible for an attacker to simulate transactions to see the output of the randomizer. An attacker can then front-run (increase gas to get transactions placed first in a block) their transactions to get the outcome they want even if the “entropy” in the randomizer is modified.</p><blockquote>Everything on a blockchain is deterministic.</blockquote><p>There are <a href="https://www.opentezos.com/smart-contracts/avoiding-flaws/#7-using-unreliable-sources-of-randomness">ways</a> to try to get around this problem, but they are notoriously hard to get right.</p><p>Well, if it’s impossible to do randomization on-chain, why not do it off-chain in some backend? Well, you can do that. But of course, someone could accuse you of cheating in your secret off-chain API 😅 🤷</p><p>So, what we decided to do for ChainBorn is a middle approach. We still use the randomizer, but we require users to sign a transaction (saying they want to execute their turn for battle X) and send that to our API. We in turn execute the transactions on-chain in no particular order and with the same gas limit. This way we still do the randomization on-chain (so we cannot cheat on our servers) and we remove the ability for users to font-run their transactions.</p><p>It has a cost for us to do this since we now have to pay for all the execute_battle_turn transactions. But we consider it a good tradeoff.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F5t9wJjyHAOxvnxcPNk%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F5t9wJjyHAOxvnxcPNk%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F5t9wJjyHAOxvnxcPNk%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="363" frameborder="0" scrolling="no"><a href="https://medium.com/media/daeaf49e3c5ed0792e8d041b372e3f0e/href">https://medium.com/media/daeaf49e3c5ed0792e8d041b372e3f0e/href</a></iframe><h3>Dapp</h3><p>The dapp is a “decentralized app” which usually just means an app that interacts with a blockchain 😅</p><p>We like web apps and we like React, so we built the ChainBorn dapp in React. Now I’m not going to cover setting up a React app in this tutorial, but let’s look at how we can interact with Tezos from a React app.</p><p>We are going to use the fantastic <a href="https://tezostaquito.io/">Taquito</a> and <a href="https://www.walletbeacon.io/">Beacon</a> libraries to achieve this.</p><p>I like to keep the wallet interactions in a wallet.js file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e63bdb9678f53cd9289ae1ceb936c74/href">https://medium.com/media/1e63bdb9678f53cd9289ae1ceb936c74/href</a></iframe><p>I usually keep a wallet state in whatever state management library I’m using. So somewhere in your initial rendering path call getActiveAccount to check if a wallet is already connected (if a user reloads) and set the wallet state to its return value. If it returns null then no wallet is connected currently.</p><p>I also usually provide the RPC I want to use from my backend, so I also call setProvider somewhere in the initial rendering path after I have fetched this from the backend.</p><p>Use connectWallet and disconnectWallet accordingly. I like to use the <a href="https://github.com/asbjornenge/tezos-wallet-component">tezos-wallet-component</a> to handle my wallet UI needs.</p><p>So now that we have connected our wallet, let’s try to interact with the contract and summon a Hero.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5e24b8eb2c37ab44e7607f0e808af825/href">https://medium.com/media/5e24b8eb2c37ab44e7607f0e808af825/href</a></iframe><p>You will notice here that we do the 3 required transactions discussed earlier in a batch operation. If all goes well we have now summoned a Hero in ChainBorn 🤯 🚀</p><p>Now we have a <strong>smart contract</strong> game and a <strong>dapp</strong> that can interact with it 😬</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FOK27wINdQS5YQ%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FOK27wINdQS5YQ%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FOK27wINdQS5YQ%2Fgiphy.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="306" frameborder="0" scrolling="no"><a href="https://medium.com/media/336a57ce2164e01af22954cfb93a1feb/href">https://medium.com/media/336a57ce2164e01af22954cfb93a1feb/href</a></iframe><h3>Index</h3><p>The last missing piece of our game is an <strong>index</strong>.</p><p>We keep our game state on-chain, but how do we “extract” that state in a way that we can display it in our dapp?</p><p>We usually build an <strong>index</strong> to drive the dapp UI.</p><p>Now we could set up a Tezos node and query its RPC endpoints directly from the dapp, but that requires a lot of queries and data manipulation to get the data in a useful state.</p><p>Luckily the fine folks over at <a href="https://baking-bad.org/">Baking Bad</a> have created this wonderful tool called <a href="https://tzkt.io/">tzkt</a>. Tzkt has a great API to query for contract data, and it’s totally possible to drive your app UI using tzkt directly.</p><p><strong>Note! </strong>It is usually a good idea to set up your own RPC and tzkt instances so you don’t have to strain or rely on their public infrastructure.</p><p>Sometimes though, you want your data in a different format than tzkt offers. In this case, it becomes useful to create an “application-specific index”. Baking Bad has created a tool for this also; <a href="https://dipdup.net/"><strong>dipdup</strong></a>.</p><p>Personally, I found dipdup a bit cumbersome to configure and work with. I also really like <a href="https://nodejs.org/en/">Node.js</a>, so I created a wrapper around the <a href="https://github.com/asbjornenge/tzkt-api"><strong>tzkt-api</strong></a> for node.</p><p>So using tzkt-api we pull the required data from the relevant contracts and populate a PostgreSQL database with the data.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/76dabcfe53201fa925549984b1ff7756/href">https://medium.com/media/76dabcfe53201fa925549984b1ff7756/href</a></iframe><p>And now we have a nice heroes table with fields like owner , token_address , token_id , wins , losses , experience etc. etc. 🎇</p><p>In front of our PostgreSQL database we can put <a href="https://hasura.io/">Hasura</a> to automagically create both a RESTful and a GraphQL interface 🤯 And we can query either of those from our dapp to drive the UI 😬 🚀</p><p>And that is the technical story behind <a href="https://chainborn.xyz/">ChainBorn</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-GIh_Mmw4BPr9gFoi0Uypw.png" /><figcaption>ChainBorn banner by Jake Gumbleton</figcaption></figure><p>We hope you enjoyed this deep dive into Tezos game creation. And also that you will try the game when it&#39;s released — very very soon!</p><p>❤️ ⚔️ ❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fce259fde45d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chainborn/creating-chainborn-fce259fde45d">Creating ChainBorn</a> was originally published in <a href="https://medium.com/chainborn">ChainBorn</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TezID Profiles]]></title>
            <link>https://blog.tezid.net/tezid-profiles-2198331264c8?source=rss-fba1ce112689------2</link>
            <guid isPermaLink="false">https://medium.com/p/2198331264c8</guid>
            <category><![CDATA[tezos]]></category>
            <category><![CDATA[chainpass]]></category>
            <category><![CDATA[profile]]></category>
            <category><![CDATA[pfp]]></category>
            <category><![CDATA[tezid]]></category>
            <dc:creator><![CDATA[Asbjorn Enge]]></dc:creator>
            <pubDate>Tue, 28 Jun 2022 07:33:53 GMT</pubDate>
            <atom:updated>2022-06-28T07:33:53.268Z</atom:updated>
            <content:encoded><![CDATA[<p>We are very excited to reveal a new feature on TezID; Profiles 🙌 🥳</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*76m8di5M0N0hBWZ3" /><figcaption>Photo by <a href="https://unsplash.com/@auttgood?utm_source=medium&amp;utm_medium=referral">Autumn Goodman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>With profiles a user can attach some “profile data” to their wallet address &amp; proofs. Specifically they can set an <strong>avatar</strong> (profile picture), a <strong>name</strong> and a <strong>description</strong>.</p><p>The idea behind profiles is that many sites using TezID require this kind of information, and this way users don’t have to set this information for each site.</p><p>In addition it gives us the ability to make some very nice &quot;profile cards&quot; 💅</p><h3>✨ ChainPass ✨</h3><p>The ChainPass is our new profile cards for TezID. They display your new profile data along with your proofs and a QR code(s) for physical proof verification (and other things).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*DA9V1EXC6-DPFhYiEPVndQ.png" /><figcaption>TezID ChainPass</figcaption></figure><p>You can see one live <a href="https://tezid.net/#/tz1UZZnrre9H7KzAufFVm7ubuJh5cCfjGwam">here</a>.</p><p>We see the ChainPass as something akin to a “blockchain passport”. It has some <strong>profile data</strong> and <strong>proofs</strong> attached, but it can also have <strong>tickets</strong> and other things allowing the ChainPass to be used for <strong>entry</strong>, <strong>minting</strong>, etc.</p><blockquote><strong>We are very interested in exploring further use-cases for the ChainPass, so please reach out if you are interested in exploring this with us!</strong></blockquote><h3>Off-chain</h3><p>The profile data is not something we think is required on-chain. You simply have to provide a valid <strong>signature</strong> along with your payload and we will add the information to our database.</p><p>Dapp and services can fetch the information from our CORS enabled API.</p><h3>Free (as in free beer) 🍺</h3><p>There is <strong>no charge</strong> for adding profile information to your wallet, just head over to <a href="https://tezid.net/">https://tezid.net</a>, connect your wallet and hit that pencil ✏️</p><p>There is also <strong>no charge</strong> for any dapps wanting to pull this information.</p><p>We hope you enjoy this new feature of TezID!</p><p><strong>Time to pimp that profile 💅 🌈 💖</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2198331264c8" width="1" height="1" alt=""><hr><p><a href="https://blog.tezid.net/tezid-profiles-2198331264c8">TezID Profiles</a> was originally published in <a href="https://blog.tezid.net/">TezID</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TezID Forever-Farm ‍]]></title>
            <link>https://blog.tezid.net/tezid-forever-farm-9edcbab30eda?source=rss-fba1ce112689------2</link>
            <guid isPermaLink="false">https://medium.com/p/9edcbab30eda</guid>
            <category><![CDATA[tezid]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[tezos]]></category>
            <category><![CDATA[idz]]></category>
            <category><![CDATA[liquidity-farming]]></category>
            <dc:creator><![CDATA[Asbjorn Enge]]></dc:creator>
            <pubDate>Mon, 14 Mar 2022 13:39:37 GMT</pubDate>
            <atom:updated>2022-03-14T13:39:37.298Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s been a long time coming, but the TezID “Forever-Farm” in finally here ✨</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rG8qDmpURp9XL8Un" /><figcaption>Photo by <a href="https://unsplash.com/@sweeksco?utm_source=medium&amp;utm_medium=referral">Steven Weeks</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When we launched our $IDZ token almost 7 months ago, we promised a way to share 50% of our revenue with the TezID community via $IDZ 💰</p><p>Now that we are starting to see real revenue flowing in to TezID, it’s time to kick-start this effort 😬🚀</p><p>The TezID &quot;Forever Farm&quot; is the mechanism we have chosen to do this. We call it the <strong>xFarm</strong> for short.</p><h3>How it works</h3><p>The <strong>xFarm</strong> is a <strong>new and novel </strong>way to do de-fi farming on Tezos (at least to the authors knowledge). We have tried to combine features of different kinds of liquidity farming and revenue sharing to create an incentive structure that will benefit $IDZ holders, liquidity providers and the $IDZ token itself.</p><p>By providing liquidity to the <a href="https://quipuswap.com/liquidity/add/tez-KT1WapdVeFqhCfqwdHWwTzSTX7yXoHgiPRPU_0">$IDZ token on QuipuSwap dex</a>, you get an LP token as a proof of this stake. This LP token can in turn be staked into the <a href="https://tezid.net/#/idz">xFarm</a>. As a proof of this stake you get an equal amount of a new token;<strong> $xIDZ</strong> in return. 🪙</p><p>The $xIDZ is your xFarm stake-proof. <strong>It can be freely traded and sent around like any other token — without impacting the claim to rewards.</strong> The xFarm does not track ownership or stake of the $xIDZ token. Rewards follow the token. This is important to create a free market for the $xIDZ token. You can sell it, and the buyer can extract the rewards associated with the token. $xIDZ will also have future use where this is important.</p><blockquote>Rewards follow the token</blockquote><p>In order to achieve this, we track a “<strong>tokenValue</strong>” on the xFarm contract. It represents the amount of $IDZ rewards associated with each $xIDZ token. This value is calculated based on rewards added to the farm and total staked. The “tokenValue” always increases. To achieve a fair reward distribution without tracking when a person staked; when entering the farm — <strong>you also have to stake the current “tokenValue” in $IDZ</strong>. Should you decide to exit immediately, your “rewards” will be the $IDZ you just put in 😉</p><blockquote>The “tokenValue” always increases</blockquote><p>This also has the effect that if you exit the farm and claim your rewards, you will have to re-stake the same amount of $IDZ to re-enter the farm 😅 🙈 This creates a strong incentive to stay in the farm and not continually dump $IDZ.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FWRQBXSCnEFJIuxktnw%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FWRQBXSCnEFJIuxktnw%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExeDJ6eG5yaG1iNHZtMGZ4cWN2ZTd1aTJibmxzOTkyaDJtdTF1d3ppMCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FWRQBXSCnEFJIuxktnw%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="278" frameborder="0" scrolling="no"><a href="https://medium.com/media/81589a9157db1c2cec662896c0fcfaec/href">https://medium.com/media/81589a9157db1c2cec662896c0fcfaec/href</a></iframe><p>We know the details of how this all works might be a little confusing 😅 Please head over to our <a href="https://t.me/tezid">telegram</a> and we will try answer all your questions 🙌</p><p><strong>NB! New and novel also means experimental</strong> 🤓 🛠️ 🙈 <br>The xFarm is considered Beta software. Use it with caution and don&#39;t stake funds you cannot lose. Use at your own risk.</p><h3>Bootstrapping</h3><p>Since the xFarm require additional $IDZ stake once rewards start rolling out, there will be a period after release considered the <strong>bootstrapping phase</strong>. During this phase the tokenValue will be 0, so no additional $IDZ will be required in order to join the farm, only LP tokens.</p><p><strong>Bootstrap phase starts NOW and ends friday 18.03.2022 12:00 UTC !!!</strong></p><h3>Adding rewards</h3><p>We will operate a “rewards service”. This service will be extracting 50% of proof sale income every X days. This XTZ will be used to purchase $IDZ on QuipuSwap (increasing $IDZ value). This $IDZ will then be added as rewards to the xFarm.</p><p>For the first year at least, while we work to build new partnerships and integrations (sources of revenue) we will subsidize the rewards going into the xFarm with $IDZ from our development pool. Exactly how much and how often will depend a bit on the revenue stream.</p><h3>TLDR;</h3><ul><li>Provide liquidity for <a href="https://quipuswap.com/liquidity/add/tez-KT1WapdVeFqhCfqwdHWwTzSTX7yXoHgiPRPU_0">$IDZ on QuipuSwap dex</a> (receive LP token)</li><li>Stake that LP token (+$IDZ ) in the <a href="https://tezid.net/#/idz">xFarm</a></li><li>Receive $xIDZ as proof of stake</li><li>Sit back and relax, earning a share of the TezID revenue 👨🏻‍🌾 💰</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*OW64NsBo1VHdLMZZWHfIww.png" /><figcaption>https://tezid.net/#/idz</figcaption></figure><p>We are still only in the beginning of the TezID story. Now that we have the mechanism for revenue sharing in place, we will get back to work building new partnerships and new sources of revenue for TezID.</p><p>Thanks for following us on our journey 💖</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9edcbab30eda" width="1" height="1" alt=""><hr><p><a href="https://blog.tezid.net/tezid-forever-farm-9edcbab30eda">TezID Forever-Farm 👨🏻‍🌾</a> was originally published in <a href="https://blog.tezid.net/">TezID</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>