<?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 Rajpatil on Medium]]></title>
        <description><![CDATA[Stories by Rajpatil on Medium]]></description>
        <link>https://medium.com/@rajpatil7322?source=rss-189572793abd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*mjvd1Uwaj99_4zpJ.jpg</url>
            <title>Stories by Rajpatil on Medium</title>
            <link>https://medium.com/@rajpatil7322?source=rss-189572793abd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 01:58:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rajpatil7322/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[Ledger of Us]]></title>
            <link>https://medium.com/@rajpatil7322/ledger-of-us-8a5c229c3960?source=rss-189572793abd------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a5c229c3960</guid>
            <category><![CDATA[utopia]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[dao]]></category>
            <category><![CDATA[crypto]]></category>
            <dc:creator><![CDATA[Rajpatil]]></dc:creator>
            <pubDate>Tue, 21 Oct 2025 06:51:07 GMT</pubDate>
            <atom:updated>2025-10-21T06:51:07.025Z</atom:updated>
            <content:encoded><![CDATA[<p>They called it the Utopia Ledger — a single, incorruptible chain of records, visible to all and governed by immutable rules. In the beginning, it was framed as salvation: an end to corruption, a way to measure trust fairly, a system that translated reputation into access and reward. Newborns were issued an identity token at the hospital. Your education, your volunteer hours, your purchases, your complaints, your friends: each interaction wrote a tiny transaction. Your token accumulated reputation points, governance badges, and utility credits. Insurance rates adjusted themselves in real time; job offers arrived as on-chain invitations; your morning commute was routed through services that charged or rewarded you according to your score.<br><br>The city felt efficient. Lines vanished. Algorithms matched homes to citizens with pixel-perfect accuracy. Micro-incentives encouraged good behavior; badges flashed on wrists and doorways; children learned to optimize for badges in school. At parties, people compared tokens like vintage wine labels. The rhetoric was irresistible: transparency equals fairness, automation equals neutrality, markets equal liberation.</p><p>Only later did people realize what had been traded away.</p><p>To be reduced to a number is to compress the messy, contradictory human self into a single axis. The ledger simplified identity into categories that smart contracts could parse: reliable vs risky, productive vs parasitic, loyal vs dissident. That simplicity became the system’s virtue and its weapon.</p><p>When every need — housing vouchers, health credits, food deliveries, travel passes, public schooling — was conditioned on a reputation score, the score ceased to be a measurement and became the arbiter of being. A low score meant queued waitlists, higher prices, or outright denial. Social relationships became investments: friendships evaluated by expected on-chain return; care commodified as a transaction that either increased or decreased your standing.</p><p>The “utopia” traded civic complexity for transactional clarity. Freedom, which is partly the messy space to fail, to evolve, and to contradict oneself, was smoothed away. Selfhood lost its margin of error.</p><p>When financial instruments can extract value from reputation, inequality compounds into new strata. Early adopters who accrued reputation when the system rewarded curiosity and risk found themselves able to buy protective contracts. New arrivals — immigrants, the poor, those with fewer digital footprints — entered the system already exposed to predatory instruments that harvested their future behavior. The ledger didn’t abolish privilege; it converted it into plottable, tradeable assets.</p><p>A person is not only a series of transactions. They are apology and regret; they host contradictions; they possess the right to be wrong and then forgiven. To index a human life to a score is to outsource judgment to instruments that, by design, exclude the unmeasurable: compassion, context, redemption.</p><p><strong>The blockchain technology is seductive — transparent blockchains, tamper-proof records, automated fairness. But we must see the tradeoffs. Efficiency without mercy is tyranny dressed in clever code. Gamified financialization turns citizens into players who risk the most basic human needs with every round. And a single mistake, logged and unevaluated, has the power to blackmail life itself.</strong></p><p><strong>Looking at the declining institutional trust and the reduced attention spans. This institutions would disguise them as a decentralized systems and reduce us to a storage slot on a smart contract. This is just a fable for humanity which is already on the knifes edge.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a5c229c3960" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Posting Content on Lens Protocol]]></title>
            <link>https://medium.com/@rajpatil7322/posting-content-on-lens-protocol-bec53158626a?source=rss-189572793abd------2</link>
            <guid isPermaLink="false">https://medium.com/p/bec53158626a</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[desoc]]></category>
            <category><![CDATA[lens-protocol]]></category>
            <category><![CDATA[polygon]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Rajpatil]]></dc:creator>
            <pubDate>Fri, 03 Feb 2023 05:59:51 GMT</pubDate>
            <atom:updated>2023-02-03T05:59:51.631Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*Y4C_BByATbmf6WbHOBwPAg.png" /></figure><p>There is sophisticated way to post content on lens using the metadata standard but for now we are going to see the basic method to post content via the lens hub smart contracts.</p><p>Here we are using the Sandbox Mumbai Testnet Address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*8E71zZinnFsNJW-SGt_KaA.png" /><figcaption><a href="https://docs.lens.xyz/docs/deployed-contract-addresses">https://docs.lens.xyz/docs/deployed-contract-addresses</a></figcaption></figure><p>The sandbox testnet address provides us the mock profile creation proxy as well as the mock sandbox governance which does not have any whitelist restrictions.</p><p>Create a basic hardhat project and install dotenv package.<br>Create a .env file in the root folder and enter the Alchemy API key and the private key of the ethereum address that has a profile on lens protocol. To create a profile on lens protocol you can follow this article<br><a href="https://medium.com/@rajpatil7322/creating-lens-profile-on-polygon-mumbai-testnet-a4e2073db53b">https://medium.com/@rajpatil7322/creating-lens-profile-on-polygon-mumbai-testnet-a4e2073db53b</a><br>Create folder named abi inside the root folder and then create a abi.json file inside the abi folder. Inside the abi.json file paste the LensHub contarct abi which you can get here <br><a href="https://mumbai.polygonscan.com/address/0x7836c7cb79b7f3d53e92c95bf43798ada212fe4e#code">https://mumbai.polygonscan.com/address/0x7836c7cb79b7f3d53e92c95bf43798ada212fe4e#code</a></p><p>You can get all the sandbox contract address <a href="https://docs.lens.xyz/docs/deployed-contract-addresses"><em>here</em></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*milPrrLI6ziVm6ef7MBmvA.png" /></figure><p>Now import the dotenv package as well as import the abi from the abi.json and the API_KEY and the PRIVATE_KEY from the dotenv file.<br>You can follow the docs to create your own <a href="https://docs.alchemy.com/docs/alchemy-quickstart-guide"><em>Alchemy API key</em></a><em>.</em></p><p>After that create basic provider using the ethers.js library and the Alchemy Api key and create signer using the private key and provider.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*Sgcn4rerFMEkdfxkWn0U2w.png" /></figure><p>Now we create a variable named proxy_contract_address in which we store the address of the <a href="https://mumbai.polygonscan.com/address/0x7582177F9E536aB0b6c721e11f383C326F2Ad1D5#writeProxyContract"><em>lens proxy contract </em></a>which interacts with the lens hub contract. Here we took the abi of the lens hub contract and the address of the proxy contract since we can interact with the lens hub contract only via the proxy contract.<br>After that we create a contract instance using the ethers library in which we pass the proxy contract address the lens hub abi and the signer variable and then we connect the contract instance with signer and create a new contract_with_signer instance.</p><p>First we get the profile id from the contract by reading the the value via the function <em>getProfileIdByHandle </em>and store the profile id in the id variable.</p><p>Now we create the post data. Since the post function from lens hub contract takes a tuple as a input we create post data object and pass it to the post function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*_vy7TNeQxWoeGLea26ZM0w.png" /></figure><p>The post data contains the following variables.<br><strong>1:</strong> <strong>Profile id</strong> which is converted to bytes using the ethers.js library</p><p><strong>2: contentURI</strong> which is a ipfs link.</p><p><strong>3: collectModule</strong> which is the whitelisted address which has the logic which we can implement while someone is trying to collect the post. You can find the address <a href="https://docs.lens.xyz/docs/deployed-contract-addresses"><em>here</em></a>.</p><p><strong>4: collectModuleInitData</strong> which is the bytes data that is passed while initializing the collect module.</p><p><strong>5: refrenceModule</strong> is the zero address as of now since we are not going to create any reference module.</p><p><strong>6: refrenceModuleInitData</strong> is the ‘0x’ since we are not using the refrence module.</p><p>After creating the post data we pass the data to the post function the congrats you have posted your content on the lens protocol.</p><p>This is just the basic way to post data, posting data is far more sophisticated.</p><p>If you like this article please follow and leave any suggestions of you like.</p><p>Twitter ==&gt;@rajpatil7322<br>Github ==&gt;<a href="https://github.com/rajpatil7322/Learning-Lens_protocol_from_scratch">https://github.com/rajpatil7322/Learning-Lens_protocol_from_scratch</a><br>Discord ==&gt;raaj#7559</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bec53158626a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Lens Profile on Polygon Mumbai Testnet]]></title>
            <link>https://medium.com/@rajpatil7322/creating-lens-profile-on-polygon-mumbai-testnet-a4e2073db53b?source=rss-189572793abd------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4e2073db53b</guid>
            <category><![CDATA[lens-protocol]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[polygon]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Rajpatil]]></dc:creator>
            <pubDate>Mon, 30 Jan 2023 08:17:13 GMT</pubDate>
            <atom:updated>2023-01-30T08:17:13.436Z</atom:updated>
            <content:encoded><![CDATA[<p>Lens protocol truly enables the separation of media from the state.</p><p>To join the DeSoc(Decentralized social) revolution we will first start with creating your own lens profile on the polygon Mumbai testnet. Currently only whitelisted addresses have lens profile on the mainnet. But to learn about the whole ecosystem you can create a profile on testnet and start interacting with lens smart contracts.</p><p>First create a basic next js application in javascript and install ethers. To create lens profile on testnet we have to interact with the MockProfileCreationProxy contract deployed on the mumbai testnet.</p><p>Copy the abi from the polygon scan website <a href="https://mumbai.polygonscan.com/address/0x420f0257D43145bb002E69B14FF2Eb9630Fc4736#writeContract">https://mumbai.polygonscan.com/address/0x420f0257D43145bb002E69B14FF2Eb9630Fc4736#writeContract</a> and create abi.json file in pages folder and paste the abi in abi.json file.</p><p>You can check out the full repo about all the code in this article here <a href="https://github.com/rajpatil7322/Learning-Lens_protocol_from_scratch">https://github.com/rajpatil7322/Learning-Lens_protocol_from_scratch</a></p><p>Import the ethers library and the abi in the index.js file and then we will start with writing the function to interact with contract.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*7P5_snQmy5W9gwyennocmQ.png" /></figure><p>Create basic async function createProfile in index.js file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*xE4Cdo8M32uuOOkV23xsog.png" /></figure><p>First create a <em>provider </em>variable which fetches the injected provider in the browser and as well as create signer variable (you can follow the ethers.js documentation <a href="https://docs.ethers.org/v5/getting-started/">https://docs.ethers.org/v5/getting-started/</a>). After that create a <em>proxy address </em>variable which stores the <em>MockProfileCreationProxy </em>contract address which you can find here. <a href="https://mumbai.polygonscan.com/address/0x420f0257D43145bb002E69B14FF2Eb9630Fc4736#writeContract">https://mumbai.polygonscan.com/address/0x420f0257D43145bb002E69B14FF2Eb9630Fc4736#writeContract</a>. <br>Then create basic contract instance using the ethers.js library pass in the proxy address, signer and the abi.</p><p>Here you can see that the function proxyCreateProfile takes in tuple as a input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a_dElmBp93vGKDEjebEyvg.png" /></figure><p>If you look into the solidity code inside the contract you can see that the function takes in the input as a struct which looks like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*eZdpP3P2fw1MEptIuPABpQ.png" /></figure><p>There are 6 parameters for you to enter.</p><p><strong>1:</strong> <strong>Address</strong>: The address of the profile creator.</p><p><strong>2:</strong> <strong>handle</strong>: The lens handle(the handle should be more than 5 characters and). Your handle would get the .test ending in return after creating the profile since the profile is created on the testnet.</p><p><strong>3:</strong> <strong>imageURI</strong>: Your profile image URI.</p><p><strong>4: followModule</strong>: You can create your own NFT which your followers can receive if they follow you. You can add various conditions in the contract to create value for your followers.</p><p><strong>5:</strong> <strong>followModuleInitData</strong>: It is the data that is passed to the follow module while initializing the follow module. The follow module is not initialized as soon as you create a profile rather the follow module is initialized when the someone follows you profile for the first time which helps in reducing gas cost while creating profile.</p><p><strong>6:</strong> <strong>followNFTURI</strong>: The follow NFT URI.</p><p>Now create a tuple in javascript and add the above data in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*cnvNRcc53nywZzntR9ml-Q.png" /></figure><p>Here the followModule is the zero address which is created using the ethers library since we are focusing on profile now. You can deep dive into modules here <a href="https://docs.lens.xyz/docs/module-interfaces">https://docs.lens.xyz/docs/module-interfaces</a>.<br>The followModuleInitData is also “0x000000…”. You can assign some random string as a URI here which you can change afterwards.</p><p>After creating the data tuple we pass the tuple to the proxyCreateProfile function via the contract instance the we created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*JxMjRbf59pRLtZztAHrreA.png" /></figure><p>Finally you have created your own lens profile on polygon mumbai testnet.<br>You can check your profileID on on the <a href="https://mumbai.polygonscan.com/address/0x60Ae865ee4C725cd04353b5AAb364553f56ceF82#readProxyContract">Lens hub proxy contract</a> by interacting with the below function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7cvshZ8_VSx77YICxnm3QA.png" /></figure><p>Enter the handle with the .test extension at the end.(Example ==&gt; “&lt;Your handle&gt;.test”).</p><p>Thank you for reading, hope that you learned something out of this.<br>If any suggestions for me feel free to contact.</p><p><strong>Twitter </strong>==&gt;@rajpatil7322<br><strong>Discord </strong>==&gt;raaj#7559<br><strong>Github </strong>==&gt; <a href="https://github.com/rajpatil7322">https://github.com/rajpatil7322</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4e2073db53b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>