<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>#PolkadotSpace #Polkadot #Kleros #Polkamarkets Archives - Smart Liquidity Research</title>
	<atom:link href="https://smartliquidity.info/tag/polkadotspace-polkadot-kleros-polkamarkets/feed/" rel="self" type="application/rss+xml" />
	<link>https://smartliquidity.info/tag/polkadotspace-polkadot-kleros-polkamarkets/</link>
	<description>Crypto News &#38; Data Space</description>
	<lastBuildDate>Tue, 14 Jun 2022 13:39:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>

<image>
	<url>https://smartliquidity.info/wp-content/uploads/2021/03/cropped-512-1-1-32x32.png</url>
	<title>#PolkadotSpace #Polkadot #Kleros #Polkamarkets Archives - Smart Liquidity Research</title>
	<link>https://smartliquidity.info/tag/polkadotspace-polkadot-kleros-polkamarkets/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Polkamarkets Protocol Dispute Courts With Kleros</title>
		<link>https://smartliquidity.info/2022/06/14/polkamarkets-protocol/</link>
		
		<dc:creator><![CDATA[Ana Marie]]></dc:creator>
		<pubDate>Tue, 14 Jun 2022 13:39:00 +0000</pubDate>
				<category><![CDATA[Polkadot News]]></category>
		<category><![CDATA[#PolkadotSpace #Polkadot #Kleros #Polkamarkets]]></category>
		<guid isPermaLink="false">https://smartliquidity.info/?p=69651</guid>

					<description><![CDATA[<p>The V1 of the Polkamarkets Protocol uses an Optimistic Oracle mechanism to resolve markets. Developers can customize the default implementation and use Kleros courts to resolve markets. This article walks you through the process of integrating Kleros with Polkamarkets Protocol V1. One of the greatest challenges that prediction market platforms face is having reliable, trustworthy, and [&#8230;]</p>
<p>The post <a href="https://smartliquidity.info/2022/06/14/polkamarkets-protocol/">Polkamarkets Protocol Dispute Courts With Kleros</a> appeared first on <a href="https://smartliquidity.info">Smart Liquidity Research</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p id="c332" class="pw-post-body-paragraph jt ju ii jv b jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq ib gj" data-selectable-paragraph=""><strong class="jv ij">The V1 of the <span style="color: #00ccff;">Polkamarkets</span> Protocol uses an Optimistic Oracle mechanism to resolve markets. Developers can customize the default implementation and use <span style="color: #00ccff;">Kleros</span> courts to resolve markets. </strong>This article walks you through the process of integrating Kleros with Polkamarkets Protocol V1.</p>
<p id="838d" class="pw-post-body-paragraph jt ju ii jv b jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq ib gj" data-selectable-paragraph="">One of the greatest challenges that prediction market platforms face is having reliable, trustworthy, and decentralized event resolution. Developers deploying their own products powered by Polkamarkets can decide to leverage Kleros’ proven dispute court protocol to further secure the resolution process if they need to.</p>
<p id="9c57" class="pw-post-body-paragraph jt ju ii jv b jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq ib gj" data-selectable-paragraph=""><a class="au kr" href="https://polkamarkets.medium.com/polkamarkets-partners-with-kleros-for-crowdsourced-event-resolution-21bfe13a0c83" rel="noopener">They announced the partnership with Kleros last year</a>, and while Kleros is not yet available on Moonbeam nor Moonriver, it is available on other EVM-compatible networks on which developers can also deploy the Polkamarkets Protocol. Kleros is used by many well-known projects such as 1Inch, Hats Finance, Etherscan and Proof of Humanity. It’s also used to curate ERC-20 token lists in major decentralized exchanges like Uniswap and Sushi Swap. Recently, it’s been used to <a class="au kr" href="https://twitter.com/Kleros_io/status/1517204402414800898" target="_blank" rel="noopener ugc nofollow">resolve the first on-chain insurance arbitration</a> on <a class="au kr" href="https://unslashed.finance/" target="_blank" rel="noopener ugc nofollow">Unslashed</a>.</p>
<h2 id="873c" class="kt ku ii bn kv kw kx ky kz la lb lc ld ke le lf lg ki lh li lj km lk ll lm ln gj" data-selectable-paragraph=""><strong class="ba">Fork away</strong></h2>
<p id="305c" class="pw-post-body-paragraph jt ju ii jv b jw lo jy jz ka lp kc kd ke lq kg kh ki lr kk kl km ls ko kp kq ib gj" data-selectable-paragraph="">The <a class="au kr" href="https://help.polkamarkets.com/en/articles/6240782-polkamarkets-protocol-for-developers" target="_blank" rel="noopener ugc nofollow">Polkamarkets Protocol and associated services are free and open-source software</a>. Developers can leverage it to build new prediction marketplaces or integrate prediction markets in other products. For example, <a class="au kr" href="https://polkamarkets.medium.com/opendao-to-launch-sosmarket-an-nft-prediction-market-powered-by-the-polkamarkets-protocol-96cb1be2f5c0" rel="noopener">OpenDAO used Polkamarkets tech to launch SOSMarket</a>.</p>
<p id="641d" class="pw-post-body-paragraph jt ju ii jv b jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq ib gj" data-selectable-paragraph="">The V1 of Polkamarkets Protocol uses the <a class="au kr" href="https://reality.eth.link/" target="_blank" rel="noopener ugc nofollow">reality.eth</a> contract for crowd-sourced event resolution. Given that reality.eth supports bond escalation and delegation to third-party arbitrators, it’s fairly simple to integrate dispute courts with Polkamarkets-based prediction markets.</p>
<p id="2455" class="pw-post-body-paragraph jt ju ii jv b jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq ib gj" data-selectable-paragraph="">Before you proceed, we recommend that you read up on the <a class="au kr" href="https://help.polkamarkets.com/en/articles/6240782-polkamarkets-protocol-for-developers" target="_blank" rel="noopener ugc nofollow">Polkamarkets Developer Documentation</a> and deploy a testnet version of Polkamarkets. You’ll then tweak and extend this deployment to use Kleros dispute courts as part of the market resolution process.</p>
<h2 id="8662" class="kt ku ii bn kv kw kx ky kz la lb lc ld ke le lf lg ki lh li lj km lk ll lm ln gj" data-selectable-paragraph=""><strong class="ba">Using Kleros with reality.eth</strong></h2>
<p id="6a67" class="pw-post-body-paragraph jt ju ii jv b jw lo jy jz ka lp kc kd ke lq kg kh ki lr kk kl km ls ko kp kq ib gj" data-selectable-paragraph=""><strong class="jv ij">The first thing you’ll want to decide is on what blockchain you’ll be deploying your Kleros-compatible Polkamarkets Protocol-based product</strong>. For easier deployment, you can deploy on a network that is natively supported by Kleros. If you do, you’ll avoid having to use a cross-chain proxy/bridge. Since Polkamarkets is EVM-compatible, you can deploy the protocol on any EVM that Kleros is available on. If that is not an option, you can use <a class="au kr" href="https://github.com/kleros/cross-chain-realitio-proxy" target="_blank" rel="noopener ugc nofollow">Kleros’ Cross-chain reality.eth Proxy</a> on any <a class="au kr" href="https://docs.tokenbridge.net/amb-bridge/about-amb-bridge" target="_blank" rel="noopener ugc nofollow">AMB-compatible network</a> (AMB stands for Arbitrary Message Bridge, and can relay any data between two EVM-based chains) to deploy Polkamarkets on one network, and use Kleros Courts on a different network.</p>
<p id="53f2" class="pw-post-body-paragraph jt ju ii jv b jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq ib gj" data-selectable-paragraph="">For the sake of simplicity and for the scope of this article, we’ll assume that you don’t need to use the cross-chain proxy and that you’re deploying Polkamarkets on a chain that is supported by Kleros. The diagram below shows the four building blocks involved in this implementation.</p>
<figure class="lu lv lw lx ga jj fo fp paragraph-image">
<div class="jk jl dq jm cf jn" tabindex="0" role="button">
<div class="fo fp lt"><img decoding="async" class="cf jo jp" role="presentation" src="https://miro.medium.com/max/1400/0*zcqz63YJjQ652mYr" alt="" width="700" height="57" /></div>
</div>
</figure>
<p id="a0f4" class="pw-post-body-paragraph jt ju ii jv b jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq ib gj" data-selectable-paragraph=""><em class="ks">High-level architecture. Source: </em><a class="au kr" href="https://kleros.gitbook.io/docs/integrations/types-of-integrations/how-to-use-reality.eth-+-kleros-as-an-oracle" target="_blank" rel="noopener ugc nofollow"><em class="ks">How to use Reality.eth + Kleros as an oracle</em></a></p>
<p id="b102" class="pw-post-body-paragraph jt ju ii jv b jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq ib gj" data-selectable-paragraph="">On Ethereum Mainnet, the Kleros <strong class="jv ij">General Court</strong> should be sufficient for resolving most disputes, with the option to use the <strong class="jv ij">Technical Court</strong> for more technical disputes. These two courts are already linked up to Kleros via <a class="au kr" href="https://kleros.gitbook.io/docs/integrations/types-of-integrations/how-to-use-reality.eth-+-kleros-as-an-oracle" target="_blank" rel="noopener ugc nofollow">existing Reality.eth &lt;&gt; Kleros Proxy contracts</a> and are ready to be used right away.</p>
<p id="1e56" class="pw-post-body-paragraph jt ju ii jv b jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq ib gj" data-selectable-paragraph="">If you believe that you will need to make use of <a class="au kr" href="https://kleros.gitbook.io/docs/products/court#courts-and-sub-courts0x728cBa71A3723cAAb33ea416cb46e2Cc9215A596" target="_blank" rel="noopener ugc nofollow">another court</a> or even create a special court for your use case, reach out to Kleros at <a class="au kr" href="mailto:integration@kleros.io" target="_blank" rel="noopener ugc nofollow">integrations@kleros.io</a>.</p>
<p id="3b16" class="pw-post-body-paragraph jt ju ii jv b jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq ib gj" data-selectable-paragraph="">Follow the instructions below to adapt your usage of the Polkamarkets Protocol to use Kleros</p>
<h2 id="fbe8" class="kt ku ii bn kv kw kx ky kz la lb lc ld ke le lf lg ki lh li lj km lk ll lm ln gj" data-selectable-paragraph=""><strong class="ba">Using Kleros with Polkamarkets</strong></h2>
<p id="216a" class="pw-post-body-paragraph jt ju ii jv b jw lo jy jz ka lp kc kd ke lq kg kh ki lr kk kl km ls ko kp kq ib gj" data-selectable-paragraph="">From here on, we’ll assume that you’re ready to use Reality.eth with Kleros and are now ready to deploy your own version of the Polkamarkets Protocol to use Kleros.</p>
<p id="b29a" class="pw-post-body-paragraph jt ju ii jv b jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq ib gj" data-selectable-paragraph="">Here are the logical steps that your application code will follow:</p>
<ol class="">
<li id="1aae" class="ly lz ii jv b jw jx ka kb ke ma ki mb km mc kq md me mf mg gj" data-selectable-paragraph="">Once a market is closed in Polkamarkets, you can choose to let users start an arbitration process using Kleros in addition to, or instead of, the normal bond escalation process.</li>
<li id="1c7c" class="ly lz ii jv b jw mh ka mi ke mj ki mk km ml kq md me mf mg gj" data-selectable-paragraph="">To do this, you’ll make your code trigger Reality.eth’s arbitration request, passing the contract address of your Reality.eth &lt;&gt; Kleros Proxy to the right function. <a class="au kr" href="https://github.com/bepronetwork/bepro-js/blob/feature/prediction-markets/contracts/PredictionMarket.sol#L214-L225" target="_blank" rel="noopener ugc nofollow">In lines 214–225 of the Polkamarkets PredictionMarket contract</a>, you can see that an arbitrator variable can be passed to Reality.eth.</li>
<li id="52e8" class="ly lz ii jv b jw mh ka mi ke mj ki mk km ml kq md me mf mg gj" data-selectable-paragraph="">Your Reality.eth &lt;&gt; Kleros Proxy will then create a Kleros court case. The jury in your chosen court will decide on the right outcome.</li>
<li id="0403" class="ly lz ii jv b jw mh ka mi ke mj ki mk km ml kq md me mf mg gj" data-selectable-paragraph="">The jury’s decision is then passed back to the Reality.eth contract, which in turn will tell the Prediction Market contract how the market resolved.</li>
</ol>
<p id="2349" class="pw-post-body-paragraph jt ju ii jv b jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq ib gj" data-selectable-paragraph="">You can expose the arbitration feature in the interface and let users decide whether they want the market to be resolved with Kleros or the normal bond escalation process. Or you can make it the default way to resolve a market. It really is up to you; just make sure you have all the angles covered and follow the guidelines we present in this article.</p>
<h3 id="270d" class="mu ku ii bn kv mv mw mx kz my mz na ld nb nc nd lg ne nf ng lj nh ni nj lm nk gj">About Kleros</h3>
<p id="a3c8" class="pw-post-body-paragraph jt ju ii jv b jw lo jy jz ka lp kc kd ke lq kg kh ki lr kk kl km ls ko kp kq ib gj" data-selectable-paragraph="">Kleros is an Ethereum-based autonomous organization that works as a decentralized third party to arbitrate disputes. It relies on game-theoretic incentives to have jurors rule cases correctly. The result is a dispute resolution system that renders ultimate judgments enforced by smart contracts in a fast, inexpensive, transparent, and decentralized way.</p>
<p><a class="au kr" href="https://kleros.io/" target="_blank" rel="noopener ugc nofollow"><strong><span style="color: #ffffff;">Website</span></strong></a> | <span style="color: #00ccff;"><strong><a class="au kr" style="color: #00ccff;" href="https://twitter.com/Kleros_io" target="_blank" rel="noopener ugc nofollow">Twitter</a> </strong></span>|</p>
<h3 id="f859" class="mu ku ii bn kv mv mw mx kz my mz na ld nb nc nd lg ne nf ng lj nh ni nj lm nk gj">About Polkamarkets</h3>
<p class="pw-post-body-paragraph jt ju ii jv b jw lo jy jz ka lp kc kd ke lq kg kh ki lr kk kl km ls ko kp kq ib gj" data-selectable-paragraph="">Polkamarkets is an Autonomous Prediction Market Protocol built for multi-chain information exchange and trading where users take positions on outcomes of real-world events–in decentralized and interoperable EVMs.</p>
<article>
<div class="l">
<div class="l">
<section>
<div>
<div class="ib ic id ie if">
<p id="e1d6" class="pw-post-body-paragraph jt ju ii jv b jw jx jy jz ka kb kc kd ke kf kg kh ki kj kk kl km kn ko kp kq ib gj" data-selectable-paragraph=""><strong><span style="color: #ffffff;"><a class="au kr" style="color: #ffffff;" href="https://polkamarkets.com/" target="_blank" rel="noopener ugc nofollow">Website</a></span></strong> | <span style="color: #00ccff;"><strong><a class="au kr" style="color: #00ccff;" href="https://twitter.com/polkamarkets" target="_blank" rel="noopener ugc nofollow">Twitter</a></strong></span> |</p>
<p><a href="https://polkamarkets.medium.com/dispute-courts-on-polkamarkets-with-kleros-1453ffa00b6b"><span style="color: #00ccff;"><strong>Source</strong></span></a></p>
</div>
</div>
</section>
</div>
</div>
</article>
<p>The post <a href="https://smartliquidity.info/2022/06/14/polkamarkets-protocol/">Polkamarkets Protocol Dispute Courts With Kleros</a> appeared first on <a href="https://smartliquidity.info">Smart Liquidity Research</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
