<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Wilson</title>
        <link>https://paragraph.com/@wilson-2</link>
        <description>undefined</description>
        <lastBuildDate>Mon, 16 Nov 2026 20:19:16 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[The Burn]]></title>
            <link>https://paragraph.com/@wilson-2/the-burn</link>
            <guid>A0Ecp8uhan3Wa8bKZs3d</guid>
            <pubDate>Sun, 24 Sep 2023 02:12:23 GMT</pubDate>
            <description><![CDATA[SummaryIn this post, I propose an update to the Nouns DAO software. Any ETH held by the treasury in excess of total_nouns_count * trailing_N_day_median_auction_price can be burned. The goal of this change is to create a code-level incentive for the DAO to (1) spend the treasury, (2) grow the Nouns supply, and (3) increase the auction price. This change will also mitigate the “risk free value” arbitrage (detailed below). When this change is first introduced, there should be a waiting period be...]]></description>
            <content:encoded><![CDATA[<h2 id="h-summary" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Summary</h2><p>In this post, I propose an update to the Nouns DAO software. Any ETH held by the treasury in excess of <code>total_nouns_count * trailing_N_day_median_auction_price</code> can be burned. The goal of this change is to create a code-level incentive for the DAO to (1) spend the treasury, (2) grow the Nouns supply, and (3) increase the auction price. This change will also mitigate the “risk free value” arbitrage (detailed below).</p><p>When this change is first introduced, there should be a waiting period before the first burn can occur, in order to give the DAO time to coordinate. I think an exciting first burn date could be New Year’s Eve, 2023 (h/t Elad).</p><p>As an example with some real numbers, at the time of writing, the trailing 7 day median auction price is 29.43 ETH. There are 384 Nouns in circulation. <code>384 * 29.43 = 11,301 ETH</code>. The DAO currently holds 13,917 ETH. Meaning, if we used this formula and the burn mechanism were in place today, anyone could call to burn <code>13,917 - 11,301 = 2,616 ETH / ~$2.5M</code>.</p><p>If we can ship this mechanism and have it set to go live on New Year’s Eve, I think the next few months could be one of the generative and attention grabbing periods for Nouns DAO to date: a time where DAO is maximally incentivized to work together and pass big spending proposals. And I also wonder, what’s a vote on how to spend $2.5M worth?</p><h2 id="h-introduction-make-the-software-more-opinionated" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Introduction: Make the Software More Opinionated</h2><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/1419d7b9679f6129f8852f8f00b576574b9a5a469e1ef4dd1033048666d9be3e.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><blockquote><p>Show me the incentive, I’ll show you the outcome. - <em>Charlie Munger</em></p></blockquote><blockquote><p>To the extent a protocol guides or limits its users, it should be to the end of helping users transaction/come to agreements they might not have otherwise. Creating maximally productive Schelling points. - <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://w.mirror.xyz/TLoCG0r1Ze_u-c-AhH0qgk3eDpQY7cMkvly45FAYrdw"><em>Actor Protocols</em></a><em>*</em></p></blockquote><p>I believe the formula described above elegantly ties together three things—the treasury, the Nouns supply, and the auction price. The burn encodes, at the software level, a clear mandate for DAO voters: spend the treasury, grow the Nouns supply, and increase the auction price. To avoid burning ETH, the DAO must accomplish at least one of these things.</p><p>This change is highly opinionated about what Nouns <em>is</em> and the purpose of the DAO. I think that is good. Nouns DAO software is already full of opinions: democratic vote, waiting periods, quorum thresholds, and now forking. The software represent our collectively shared beliefs about how it is best for the DAO to operate.</p><p>Like a country passing constitutional amendments, overtime we update our operating software as we update our beliefs or want to make explicit things that were priorly implicit.</p><h2 id="h-spend-the-treasury" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Spend the Treasury</h2><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/9056d5eac6a54f35f7f6396d5a99d59a8a24b31de0102c535a4fb9d9ff0b71e4.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>It is my view that the treasury exits to be spent. It does not exist to be hoarded. It does not exist as a sort of price insurance or put option for Nouns buyers.** The fact that, today, the DAO could go for an indefinite period of time without having to pass any proposals seems like a bug. The DAO members should be punished for failing to spend the treasury. The punishment is a burn. Fear of the burn will force DAO members to find middle ground and get proposals passed.</p><h2 id="h-grow-the-nouns-supply" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Grow the Nouns Supply</h2><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/81a7154607128247d7be147c845d78be8bb6d26e101661fda3f297b906925b13.png" alt="Screenshot from nouns.wtf" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Screenshot from nouns.wtf</figcaption></figure><p>“One Noun, every day, forever” is supposed to be the meme of Nouns, but in my opinion there are currently insufficient incentives in place to protect this. After the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/verbsteam.eth/iN0FKOn_oYVBzlJkwPwK2mhzaeL8K2-W80u82F7fHj8">fork</a>, Nouns can now be more directly imagined as a pro rata claim on the treasury. Minting more Nouns dilutes ones claim and it is not surprising that there have already been <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://nouns.wtf/vote/324">proposals</a> to stop the daily auctions.</p><p>With the burn mechanism in place, each additional Noun in circulation*** pushes the burn threshold higher. The DAO is “allowed” to hold more ETH as it grows the Nouns count.</p><p>Note, in the formula, having daily auction also serves the purpose of giving a price feed: we could have it such that if there have been no auctions for the trailing N days, then the implied auction price is 0 and all the ETH would be burned.</p><h2 id="h-increase-the-auction-price" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Increase the Auction Price</h2><p>I find it elegant that the other way to avoid burning ETH is just to have an auction price that is going up! This is something that most, if not all, Noun holders hope for. There is already some incentive for this: the secondary market price for Nouns moves with auctions, and so the value of one’s Nouns moves with auctions. But the incentive here is more direct and collective.</p><p>On a long timescale, I <em>do</em> think the effectiveness of the DAO can be measured in the Nouns auction price. I think it is good to have this included in a code-level mandate for the DAO.</p><h2 id="h-mitigate-the-risk-free-value-trade" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Mitigate the Risk Free Value Trade</h2><p>After the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/verbsteam.eth/iN0FKOn_oYVBzlJkwPwK2mhzaeL8K2-W80u82F7fHj8">fork</a>, the daily Noun auctions can offer an arbitrage. If one can (1) purchase a Noun for below its implied “book value” (the value of the DAO assets it could claim in a fork) and can (2) actually fork with this book value or greater (it’s possible the DAO spends before the next fork, decreasing book value), then one can profit. Today, the book value of Nouns is around 35 ETH and the most recent auction settled at 19 ETH. This difference represents a possible “risk free value” trade. Though the “risk free” part depends on your perspective of on (1) how long until the next fork and (2) how much the DAO will spend between now and then.</p><p>In general, I don’t have an issue with people being able to fork with a value greater than what they paid for their Noun. In a fork, everyone should get their fair share. If someone purchased a Noun at a low price, and then was part of the DAO while assets increased, they should get to fork with a value greater than their auction price.</p><p>But I think that purchasing a Noun with an immediate free upside should not be a thing. With the burn, if auctions trend below book value, the difference will be burned (if it isn’t spent). You should at best be able to purchase a Noun slightly below book value and have to work with the DAO to create all additional upside.</p><p>It is my hope that adding the burn mechanism and eliminating the risk free arbitrage helps reframe the valuing of Nouns away from claims on the treasury and towards what I think are more exciting and appropriate lenses: vote power, meme value, etc.</p><h2 id="h-conclusion" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h2><p>Thanks for reading. I hope this helps start a productive discussion and leads to a better future for Nouns. Thanks to many Nouners and others online for discussing this with me and helping sharpen the ideas. Sorry for being long winded and unclear: I am trying to get this out sooner than later.</p><p>🔥</p><p><em>Endnotes</em></p><p>*Forgive me for being a loser and quoting my own blog.</p><p>**With the fork mechanism now in place, Nouns in some instances do represent a claim on the treasury. I accept this as a necessary minority protection: Nouns should be able to take with them their fair share of assets when starting a new DAO. But I resent the mechanism to the degree it has been used solely for personal gain: buying with the only intention to cash out at a gain via funds others paid in.</p><p>***I think that Nouns held by the treasury should be discluded from the burn computation, just as they are not included in Fork calculations. As the treasury currently holds many Nouns, there would be an additional incentive from the threat of the burn to distribute these Nouns.</p>]]></content:encoded>
            <author>wilson-2@newsletter.paragraph.com (Wilson)</author>
        </item>
        <item>
            <title><![CDATA[Reflections on Father's Day]]></title>
            <link>https://paragraph.com/@wilson-2/reflections-on-father-s-day</link>
            <guid>MBKPj84CY6cVddMOzvs4</guid>
            <pubDate>Sun, 18 Jun 2023 11:38:53 GMT</pubDate>
            <description><![CDATA[Written in 2018 I became a dad in an unusual circumstance. My wife’s brother died in the fall of 2016. His daughter—Asher—was almost one year old and in foster care at the time. Prior to his death, he and Asher’s mother had agreed to ask my wife and I to adopt Asher. Asher’s mother persisted in this wish after he died. Asher’s dad died at the end of August 2016. My wife and I had graduated college in May 2016, were married in June, and moved to Ghana for a company I was starting at the beginn...]]></description>
            <content:encoded><![CDATA[<p><em>Written in 2018</em></p><p>I became a dad in an unusual circumstance. My wife’s brother died in the fall of 2016. His daughter—Asher—was almost one year old and in foster care at the time. Prior to his death, he and Asher’s mother had agreed to ask my wife and I to adopt Asher. Asher’s mother persisted in this wish after he died.</p><p>Asher’s dad died at the end of August 2016. My wife and I had graduated college in May 2016, were married in June, and moved to Ghana for a company I was starting at the beginning of August.</p><p>I am now 25 years old, Asher is two and a half, and my wife and I are expecting a second child in September.</p><p>In some respects, my position—25, married, one kid with another on the way—is quite normal. Statistically, it is not the average. But I grew up among devout Christians in the midwest. Many of my high school friends are married and some have kids.</p><p>But among my more recent peers, it is very odd. I went to college at Brown University. People thought it was crazy that I was engaged my Senior year, and I have no friends from school who have gotten married or engaged. If being married made relating difficult, having a kid pushed me into a whole different universe.</p><p>It is odd also among my startup founder peers. When my wife and I were actually able to get full custody of Asher, in January 2017, we all moved to San Francisco so I could participate in Y Combinator’s startup accelerator. Very few in my Y Combinator batch were married, fewer had kids, and adopting a few months after starting a company seemed crazy.</p><p>And in a way it was and is crazy, but humans are adaptable and what’s crazy today feels normal next week.</p><p>Being a dad is a very special thing. Asher is one of my closest friends. I think adopting has made the oddity of it more stark to me. To be a parent feels to me to be arbitrarily paired with this other person. The relationship has a lot of unique characteristics and many of the most important are purely cultural.</p><p>It’s like all of my other human relationships: we’ll have good times and bad times. We’ll try to love each other. We’ll certainly hurt each other.</p><p>Though the relationship feels unique to me in that the joy and love and affection are more intense than I have felt in any other relationship. I think some of this is just due to the fact that kids are joyous.</p><p>I remember when we first moved to San Francisco with Asher. I walked around the city, thinking that everyone was working in hopes of getting to a place where they will have some moment by moment happiness. To have a good life, whatever that means to them. And I thought, there’s an easy trick: just have a kid!</p><p>I have 6 siblings and I am close to them and my parents. Growing up, I imagined that I would have a big family and that it would be very important to me, but I was also career ambitious and I think wanting to do great things outweighed any push to start a family.</p><p>However after graduating high school, I lived in Guatemala and India. For a few months in India, I had a slow job. It should have been a personal productivity dream: no friends or distractions, just time to read and think and plan. But I wasn’t happy.</p><p>I was living with a family with five kids at the time. The oldest fourteen and the youngest 2. I realized the best part of my day was the forty-five minutes I allowed myself to go downstairs in play with the kids. I knew then that most of my happiness in life would come from my family.</p><p>So maybe what I am saying is that I think you should become a parent because it will make you happy. But I want to say something else, too.</p><p>This sounds esoteric, but I mean it practically: beginning and ending a process of reflection is an act of the will and is beyond rationality.</p><p>I want to say that because I think that it is possible to get meaningfully lost in processes of reflection. From the smallest—Where will I eat lunch?—to the biggest—How can I know that anything is real?—and everything between: Where do I want to live? What&apos;s my calling? Etc.</p><p>If you believe that there is such a thing as moral good and bad (everyone argues as if they do, even if they say they don’t) then I want to say that thinking and reflection are not good in and of themselves. They are only good to the extent that they lead to good action. And it is possible to waste a lot of time reflecting.</p><p>I think we all know and feel that our highest calling as humans is to love. I think the highest love is to give ones life for another, and I don’t necessarily mean to die for another. Dying for someone else costs little of the will. You do it once and it’s over. But can you die to yourself everyday to serve someone else, to love another?</p><p>We all experience the deep gulf between what we want to do and what we do do. Our own life is so far from how we would ask others to live. It is very hard to daily live towards these ambitions of love and service.</p><p>A good trick is to have a baby. You have to take care of them. Daily, whether you want to or not. You have to give your life for theirs. And in this you will be sanctified. And in this you will be satisfied.</p>]]></content:encoded>
            <author>wilson-2@newsletter.paragraph.com (Wilson)</author>
        </item>
        <item>
            <title><![CDATA[The Many Lives of a Nouns DAO Proposal]]></title>
            <link>https://paragraph.com/@wilson-2/the-many-lives-of-a-nouns-dao-proposal</link>
            <guid>7mhxIS1igsfFpfsL3Akg</guid>
            <pubDate>Fri, 05 May 2023 16:57:11 GMT</pubDate>
            <description><![CDATA[In my dreams, I am ever closer to writing some all encompassing post about how I think of Nouns. In reality, I’ve barely written anything. So, awaiting that blessed day, I’m going to try posting shorter thoughts. Nouns DAO funds proposals. Proposals can be made my anyone with two Nouns delegated to them (frequently, a builder can get a delegation to put up a proposal). Proposals include at least one transaction: e.g. transfer ETH from Nouns DAO to the proposer, so that they can do what the pr...]]></description>
            <content:encoded><![CDATA[<p>In my dreams, I am ever closer to writing some all encompassing post about how I think of Nouns. In reality, I’ve barely written anything. So, awaiting that blessed day, I’m going to try posting shorter thoughts. </p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/bfa36e11ae93e199d3ec404ca75548143b00add8fdd01608aa5398252b4610fc.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Nouns DAO funds proposals. Proposals can be made my anyone with two Nouns delegated to them (frequently, a builder can get a delegation to put up a proposal). Proposals include at least one transaction: e.g. transfer ETH from Nouns DAO to the proposer, so that they can do what the proposals has described. </p><p>At first pass, evaluating a proposal and its suitably for Nouns DAO funding is entirely about what the proposal says it will do. Voters are generally asking, “Will this actually work?” And if it will, “How much will this benefit Nouns DAO?” And finally, “Is the likelihood of the benefit worth the spend?” </p><p>Voters’ answers depend to a large degree on what they see as benefitting the DAO—a monetary return, a social capital return, etc.—and where voters draw the line of what is “worth it.”</p><p>But there is also a meta level to proposals. Nouns, like most organizations (and individuals?), competes in the attention economy. And there is a meta game to how proposals bring value to the DAO, apart from whether they accomplish what they plan to.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/899c6ff7c5075c1b3462b4a3b7ce260c208970be81b0e1ace29bb3e5d1d3f98a.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Nouns DAO exists online, where everything is watched. The process around every proposal is an artifact of who cares about us, how we work, and what we value. </p><p>For example, if a famous person makes a funding proposal to the DAO, that alone, regardless of proposal outcome, brings value to the DAO! We have gained attention from that. </p><p>Proposals bring attention, and the meta of proposals dictates how we will be perceived. Are proposals thoughtful and sensical or do they feel like grifts? Are they made by high quality individuals? What do most of the proposals intend to do: are they about making money, social impact, creative work, etc.? </p><p>Beyond the meta of the proposal, how the DAO respond matters, as well. How we vote signals what we value and helps to codify our culture. How we treat proposers and engage with proposals is a signal to all those watching. </p><p>My point is that the value a proposal brings to the DAO goes beyond what the proposal literally intends to do and whether it works. Proposals can become memes and the story around the DAO’s vote can do just as much good or harm as any proposal outcome! Everything we do is in the attention economy. </p><p>I often read a proposal and think, “Is the meta story here charismatic?” Is it funny or bold or exciting? Will people spontaneously tell their friends about this? I think these points should not be undervalued.</p><p>To take an extreme example, suppose kid pitched the DAO on getting $50 for their lemonade stand in exchange for Nounish branding. A very limited read might say: “That’s of low utility to the DAO! How many people will see that lemonade stand?” But we could also say, This is a very funny and charismatic story and the meta (from feel good story to “kid pitches DAO for $50, DAO spends $600 voting,” etc.) could give us far more attention online than just the literal work the proposal intends to do. </p><p>There’s an example of this already, Proposal 97 “MOOØNBEANS: Nouns Baked Beans.” Nouns were pitched on a Baked Beans brand, funded it, and then the proposer disappeared (er, for a while, apparently this is still being worked on). Every so often this gets brought up on Twitter</p><div data-type="twitter" tweetId="1647499513123467265" tweetData="{&quot;__typename&quot;:&quot;Tweet&quot;,&quot;lang&quot;:&quot;en&quot;,&quot;favorite_count&quot;:26,&quot;possibly_sensitive&quot;:false,&quot;created_at&quot;:&quot;2023-04-16T07:17:47.000Z&quot;,&quot;display_text_range&quot;:[0,276],&quot;entities&quot;:{&quot;hashtags&quot;:[],&quot;urls&quot;:[],&quot;user_mentions&quot;:[],&quot;symbols&quot;:[{&quot;indices&quot;:[103,109],&quot;text&quot;:&quot;BEANS&quot;}],&quot;media&quot;:[{&quot;display_url&quot;:&quot;pic.x.com/JsyCAOaXWa&quot;,&quot;expanded_url&quot;:&quot;https://x.com/FrankieIsLost/status/1647499513123467265/photo/1&quot;,&quot;indices&quot;:[277,300],&quot;url&quot;:&quot;https://t.co/JsyCAOaXWa&quot;}]},&quot;id_str&quot;:&quot;1647499513123467265&quot;,&quot;text&quot;:&quot;saturday night, thinking about the $150k raised for community-owned baked beans again… (along with the $BEANS token meant to onboard bean consumers onchain) \n\nreally think there’s some deep truth about governance to be learned from this proposal, a DAO rosetta stone of sorts… https://t.co/JsyCAOaXWa&quot;,&quot;user&quot;:{&quot;id_str&quot;:&quot;1399513177973350403&quot;,&quot;name&quot;:&quot;frankie&quot;,&quot;screen_name&quot;:&quot;FrankieIsLost&quot;,&quot;is_blue_verified&quot;:true,&quot;profile_image_shape&quot;:&quot;Circle&quot;,&quot;verified&quot;:false,&quot;profile_image_url_https&quot;:&quot;https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/8f89fbefcf44411caddc5d10b3806a4504c4ba531be70566ba5b6dcbc6dceba0.jpg&quot;,&quot;highlighted_label&quot;:{&quot;description&quot;:&quot;Paradigm&quot;,&quot;badge&quot;:{&quot;url&quot;:&quot;https://pbs.twimg.com/profile_images/1833567202458669058/vA9KidqD_bigger.jpg&quot;},&quot;url&quot;:{&quot;url&quot;:&quot;https://twitter.com/paradigm&quot;,&quot;url_type&quot;:&quot;DeepLink&quot;},&quot;user_label_type&quot;:&quot;BusinessLabel&quot;,&quot;user_label_display_type&quot;:&quot;Badge&quot;}},&quot;edit_control&quot;:{&quot;edit_tweet_ids&quot;:[&quot;1647499513123467265&quot;],&quot;editable_until_msecs&quot;:&quot;1681631267000&quot;,&quot;is_edit_eligible&quot;:true,&quot;edits_remaining&quot;:&quot;5&quot;},&quot;mediaDetails&quot;:[{&quot;display_url&quot;:&quot;pic.x.com/JsyCAOaXWa&quot;,&quot;expanded_url&quot;:&quot;https://x.com/FrankieIsLost/status/1647499513123467265/photo/1&quot;,&quot;ext_media_availability&quot;:{&quot;status&quot;:&quot;Available&quot;},&quot;indices&quot;:[277,300],&quot;media_url_https&quot;:&quot;https://pbs.twimg.com/media/Ft0YErAaUAAR1wb.jpg&quot;,&quot;original_info&quot;:{&quot;height&quot;:1347,&quot;width&quot;:1202,&quot;focus_rects&quot;:[{&quot;x&quot;:0,&quot;y&quot;:235,&quot;w&quot;:1202,&quot;h&quot;:673},{&quot;x&quot;:0,&quot;y&quot;:0,&quot;w&quot;:1202,&quot;h&quot;:1202},{&quot;x&quot;:20,&quot;y&quot;:0,&quot;w&quot;:1182,&quot;h&quot;:1347},{&quot;x&quot;:528,&quot;y&quot;:0,&quot;w&quot;:674,&quot;h&quot;:1347},{&quot;x&quot;:0,&quot;y&quot;:0,&quot;w&quot;:1202,&quot;h&quot;:1347}]},&quot;sizes&quot;:{&quot;large&quot;:{&quot;h&quot;:1347,&quot;resize&quot;:&quot;fit&quot;,&quot;w&quot;:1202},&quot;medium&quot;:{&quot;h&quot;:1200,&quot;resize&quot;:&quot;fit&quot;,&quot;w&quot;:1071},&quot;small&quot;:{&quot;h&quot;:680,&quot;resize&quot;:&quot;fit&quot;,&quot;w&quot;:607},&quot;thumb&quot;:{&quot;h&quot;:150,&quot;resize&quot;:&quot;crop&quot;,&quot;w&quot;:150}},&quot;type&quot;:&quot;photo&quot;,&quot;url&quot;:&quot;https://t.co/JsyCAOaXWa&quot;}],&quot;photos&quot;:[{&quot;backgroundColor&quot;:{&quot;red&quot;:204,&quot;green&quot;:214,&quot;blue&quot;:221},&quot;cropCandidates&quot;:[{&quot;x&quot;:0,&quot;y&quot;:235,&quot;w&quot;:1202,&quot;h&quot;:673},{&quot;x&quot;:0,&quot;y&quot;:0,&quot;w&quot;:1202,&quot;h&quot;:1202},{&quot;x&quot;:20,&quot;y&quot;:0,&quot;w&quot;:1182,&quot;h&quot;:1347},{&quot;x&quot;:528,&quot;y&quot;:0,&quot;w&quot;:674,&quot;h&quot;:1347},{&quot;x&quot;:0,&quot;y&quot;:0,&quot;w&quot;:1202,&quot;h&quot;:1347}],&quot;expandedUrl&quot;:&quot;https://x.com/FrankieIsLost/status/1647499513123467265/photo/1&quot;,&quot;url&quot;:&quot;https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/a5b927130c851ba5e103dade379edfacae8f67dcf06c65281bac7796c03590e0.jpg&quot;,&quot;width&quot;:1202,&quot;height&quot;:1347}],&quot;conversation_count&quot;:8,&quot;news_action_type&quot;:&quot;conversation&quot;,&quot;isEdited&quot;:false,&quot;isStaleEdit&quot;:false}"> 
  <div class="twitter-embed embed">
    <div class="twitter-header">
        <div style="display:flex">
          <a target="_blank" href="https://twitter.com/FrankieIsLost">
              <img alt="User Avatar" class="twitter-avatar" src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/8f89fbefcf44411caddc5d10b3806a4504c4ba531be70566ba5b6dcbc6dceba0.jpg" />
            </a>
            <div style="margin-left:4px;margin-right:auto;line-height:1.2;">
              <a target="_blank" href="https://twitter.com/FrankieIsLost" class="twitter-displayname">frankie</a>
              <p><a target="_blank" href="https://twitter.com/FrankieIsLost" class="twitter-username">@FrankieIsLost</a></p>
    
            </div>
            <a href="https://twitter.com/FrankieIsLost/status/1647499513123467265" target="_blank">
              <img alt="Twitter Logo" class="twitter-logo" src="https://paragraph.com/editor/twitter/logo.png" />
            </a>
          </div>
        </div>
      
    <div class="twitter-body">
      saturday night, thinking about the $150k raised for community-owned baked beans again… (along with the $BEANS token meant to onboard bean consumers onchain) <br /><br />really think there’s some deep truth about governance to be learned from this proposal, a DAO rosetta stone of sorts… 
      <div class="twitter-media"><img class="twitter-image" src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/a5b927130c851ba5e103dade379edfacae8f67dcf06c65281bac7796c03590e0.jpg" /></div>
      
       
    </div>
    
     <div class="twitter-footer">
          <a target="_blank" href="https://twitter.com/FrankieIsLost/status/1647499513123467265" style="margin-right:16px; display:flex;">
            <img alt="Like Icon" class="twitter-heart" src="https://paragraph.com/editor/twitter/heart.png">
            26
          </a>
          <a target="_blank" href="https://twitter.com/FrankieIsLost/status/1647499513123467265"><p>2:17 AM • Apr 16, 2023</p></a>
        </div>
    
  </div> 
  </div><p>Is this good attention or bad? I’ll let you decide! But it’s evidence of how proposals live beyond their literal work. </p>]]></content:encoded>
            <author>wilson-2@newsletter.paragraph.com (Wilson)</author>
        </item>
        <item>
            <title><![CDATA[Actor Protocols]]></title>
            <link>https://paragraph.com/@wilson-2/actor-protocols</link>
            <guid>i8uBZOwwjvjEknsMrdZp</guid>
            <pubDate>Fri, 30 Dec 2022 20:51:54 GMT</pubDate>
            <description><![CDATA[I’ve enjoyed using Mirror as a bit of public record of my thinking on some things. Actor Protocols” were an important idea for me in 2022, and so I wanted to publish something on the topic before year end. If only for my own sake in seeing a timeline of my own thinking later. I think this was really my first tweet on the topic. We were trying to figure out Backed v2, and I noticed there are really different categories of protocols in crypto: those that can be used to ratify arbitrary peer to ...]]></description>
            <content:encoded><![CDATA[<p>I’ve enjoyed using Mirror as a bit of public record of my thinking on some things. Actor Protocols” were an important idea for me in 2022, and so I wanted to publish something on the topic before year end. If only for my own sake in seeing a timeline of my own thinking later.</p><p>I think this was really my first tweet on the topic. We were trying to figure out Backed v2, and I noticed there are really different categories of protocols in crypto: those that can be used to ratify arbitrary peer to peer agreement and those that have more of a will: guiding and limiting what participants can do.</p><div data-type="twitter" tweetId="1558087716419559427" tweetData="{&quot;__typename&quot;:&quot;Tweet&quot;,&quot;lang&quot;:&quot;en&quot;,&quot;favorite_count&quot;:6,&quot;created_at&quot;:&quot;2022-08-12T13:47:14.000Z&quot;,&quot;display_text_range&quot;:[0,277],&quot;entities&quot;:{&quot;hashtags&quot;:[],&quot;urls&quot;:[],&quot;user_mentions&quot;:[],&quot;symbols&quot;:[]},&quot;id_str&quot;:&quot;1558087716419559427&quot;,&quot;text&quot;:&quot;In the first category: 0x, OpenSea, Opyn v2, NFTfi, SudoSwap OTC\nIn the second: Compound, Uniswap, SudoSwap AMM (?), Squeeth\n\nIt seems like the general trend is towards the latter. It&apos;s just often very hard to figure out what the protocol should be \&quot;doing\&quot; that helps/is useful&quot;,&quot;user&quot;:{&quot;id_str&quot;:&quot;248459532&quot;,&quot;name&quot;:&quot;wilson.base.eth&quot;,&quot;screen_name&quot;:&quot;WilsonCusack&quot;,&quot;is_blue_verified&quot;:true,&quot;profile_image_shape&quot;:&quot;Circle&quot;,&quot;verified&quot;:false,&quot;profile_image_url_https&quot;:&quot;https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f708cffbef80aab9a4285100e20267b3e2e5eb7cedcde34ccbda57ba0281d78d.png&quot;,&quot;highlighted_label&quot;:{&quot;description&quot;:&quot;Base&quot;,&quot;badge&quot;:{&quot;url&quot;:&quot;https://pbs.twimg.com/profile_images/1945608199500910592/rnk6ixxH_bigger.jpg&quot;},&quot;url&quot;:{&quot;url&quot;:&quot;https://twitter.com/base&quot;,&quot;url_type&quot;:&quot;DeepLink&quot;},&quot;user_label_type&quot;:&quot;BusinessLabel&quot;,&quot;user_label_display_type&quot;:&quot;Badge&quot;}},&quot;edit_control&quot;:{&quot;edit_tweet_ids&quot;:[&quot;1558087716419559427&quot;],&quot;editable_until_msecs&quot;:&quot;1660313834000&quot;,&quot;is_edit_eligible&quot;:false,&quot;edits_remaining&quot;:&quot;5&quot;},&quot;conversation_count&quot;:2,&quot;news_action_type&quot;:&quot;conversation&quot;,&quot;parent&quot;:{&quot;lang&quot;:&quot;en&quot;,&quot;reply_count&quot;:3,&quot;retweet_count&quot;:2,&quot;favorite_count&quot;:23,&quot;created_at&quot;:&quot;2022-08-12T13:47:13.000Z&quot;,&quot;display_text_range&quot;:[0,238],&quot;entities&quot;:{&quot;hashtags&quot;:[],&quot;urls&quot;:[],&quot;user_mentions&quot;:[],&quot;symbols&quot;:[]},&quot;id_str&quot;:&quot;1558087715291365376&quot;,&quot;text&quot;:&quot;Realizing that there is a delineation between protocols that memorialize and execute some peer to peer agreements, and protocols that are themselves an actor: making a market in some automated way, responding to what users are doing, etc.&quot;,&quot;user&quot;:{&quot;id_str&quot;:&quot;248459532&quot;,&quot;name&quot;:&quot;wilson.base.eth&quot;,&quot;screen_name&quot;:&quot;WilsonCusack&quot;,&quot;is_blue_verified&quot;:true,&quot;profile_image_shape&quot;:&quot;Circle&quot;,&quot;verified&quot;:false,&quot;profile_image_url_https&quot;:&quot;https://pbs.twimg.com/profile_images/1736440090795163648/5B8OVg6X_normal.png&quot;,&quot;highlighted_label&quot;:{&quot;description&quot;:&quot;Base&quot;,&quot;badge&quot;:{&quot;url&quot;:&quot;https://pbs.twimg.com/profile_images/1945608199500910592/rnk6ixxH_bigger.jpg&quot;},&quot;url&quot;:{&quot;url&quot;:&quot;https://twitter.com/base&quot;,&quot;url_type&quot;:&quot;DeepLink&quot;},&quot;user_label_type&quot;:&quot;BusinessLabel&quot;,&quot;user_label_display_type&quot;:&quot;Badge&quot;}},&quot;edit_control&quot;:{&quot;edit_tweet_ids&quot;:[&quot;1558087715291365376&quot;],&quot;editable_until_msecs&quot;:&quot;1660313833000&quot;,&quot;is_edit_eligible&quot;:false,&quot;edits_remaining&quot;:&quot;5&quot;},&quot;isEdited&quot;:false,&quot;isStaleEdit&quot;:false},&quot;isEdited&quot;:false,&quot;isStaleEdit&quot;:false}"> 
  <div class="twitter-embed embed">
    <div class="twitter-header">
        <div style="display:flex">
          <a target="_blank" href="https://twitter.com/WilsonCusack">
              <img alt="User Avatar" class="twitter-avatar" src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f708cffbef80aab9a4285100e20267b3e2e5eb7cedcde34ccbda57ba0281d78d.png" />
            </a>
            <div style="margin-left:4px;margin-right:auto;line-height:1.2;">
              <a target="_blank" href="https://twitter.com/WilsonCusack" class="twitter-displayname">wilson.base.eth</a>
              <p><a target="_blank" href="https://twitter.com/WilsonCusack" class="twitter-username">@WilsonCusack</a></p>
    
            </div>
            <a href="https://twitter.com/WilsonCusack/status/1558087716419559427" target="_blank">
              <img alt="Twitter Logo" class="twitter-logo" src="https://paragraph.com/editor/twitter/logo.png" />
            </a>
          </div>
        </div>
      
    <div class="twitter-body">
      In the first category: 0x, OpenSea, Opyn v2, NFTfi, SudoSwap OTC<br />In the second: Compound, Uniswap, SudoSwap AMM (?), Squeeth<br /><br />It seems like the general trend is towards the latter. It's just often very hard to figure out what the protocol should be "doing" that helps/is useful
      
      
       
    </div>
    
     <div class="twitter-footer">
          <a target="_blank" href="https://twitter.com/WilsonCusack/status/1558087716419559427" style="margin-right:16px; display:flex;">
            <img alt="Like Icon" class="twitter-heart" src="https://paragraph.com/editor/twitter/heart.png">
            6
          </a>
          <a target="_blank" href="https://twitter.com/WilsonCusack/status/1558087716419559427"><p>8:47 AM • Aug 12, 2022</p></a>
        </div>
    
  </div> 
  </div><p>To the extent a protocol guides or limits its users, it should be to the end of helping users transaction/come to agreements they might not have otherwise. Creating maximally productive Schelling points.</p><div data-type="twitter" tweetId="1555982486081085443" tweetData="{&quot;__typename&quot;:&quot;Tweet&quot;,&quot;lang&quot;:&quot;en&quot;,&quot;favorite_count&quot;:2,&quot;created_at&quot;:&quot;2022-08-06T18:21:48.000Z&quot;,&quot;display_text_range&quot;:[0,48],&quot;entities&quot;:{&quot;hashtags&quot;:[],&quot;urls&quot;:[],&quot;user_mentions&quot;:[],&quot;symbols&quot;:[]},&quot;id_str&quot;:&quot;1555982486081085443&quot;,&quot;text&quot;:&quot;A lot of crypto protocols just \&quot;don&apos;t do enough\&quot;&quot;,&quot;user&quot;:{&quot;id_str&quot;:&quot;248459532&quot;,&quot;name&quot;:&quot;wilson.base.eth&quot;,&quot;screen_name&quot;:&quot;WilsonCusack&quot;,&quot;is_blue_verified&quot;:true,&quot;profile_image_shape&quot;:&quot;Circle&quot;,&quot;verified&quot;:false,&quot;profile_image_url_https&quot;:&quot;https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f708cffbef80aab9a4285100e20267b3e2e5eb7cedcde34ccbda57ba0281d78d.png&quot;,&quot;highlighted_label&quot;:{&quot;description&quot;:&quot;Base&quot;,&quot;badge&quot;:{&quot;url&quot;:&quot;https://pbs.twimg.com/profile_images/1945608199500910592/rnk6ixxH_bigger.jpg&quot;},&quot;url&quot;:{&quot;url&quot;:&quot;https://twitter.com/base&quot;,&quot;url_type&quot;:&quot;DeepLink&quot;},&quot;user_label_type&quot;:&quot;BusinessLabel&quot;,&quot;user_label_display_type&quot;:&quot;Badge&quot;}},&quot;edit_control&quot;:{&quot;edit_tweet_ids&quot;:[&quot;1555982486081085443&quot;],&quot;editable_until_msecs&quot;:&quot;1659811908000&quot;,&quot;is_edit_eligible&quot;:false,&quot;edits_remaining&quot;:&quot;5&quot;},&quot;conversation_count&quot;:1,&quot;news_action_type&quot;:&quot;conversation&quot;,&quot;parent&quot;:{&quot;in_reply_to_screen_name&quot;:&quot;WilsonCusack&quot;,&quot;in_reply_to_status_id_str&quot;:&quot;1555980066697478147&quot;,&quot;in_reply_to_user_id_str&quot;:&quot;248459532&quot;,&quot;lang&quot;:&quot;en&quot;,&quot;reply_count&quot;:1,&quot;retweet_count&quot;:0,&quot;favorite_count&quot;:5,&quot;created_at&quot;:&quot;2022-08-06T18:21:47.000Z&quot;,&quot;display_text_range&quot;:[0,270],&quot;entities&quot;:{&quot;hashtags&quot;:[],&quot;urls&quot;:[],&quot;user_mentions&quot;:[],&quot;symbols&quot;:[]},&quot;id_str&quot;:&quot;1555982484818509825&quot;,&quot;text&quot;:&quot;lately, whenever I think about what a good protocol should do, I think about the beauty of Bitcoin&apos;s difficulty adjustment. \n\nI think the best crypto software gathers all parties and maximally *helps them* work together: minimizing choices, cognitive load, interventions&quot;,&quot;user&quot;:{&quot;id_str&quot;:&quot;248459532&quot;,&quot;name&quot;:&quot;wilson.base.eth&quot;,&quot;screen_name&quot;:&quot;WilsonCusack&quot;,&quot;is_blue_verified&quot;:true,&quot;profile_image_shape&quot;:&quot;Circle&quot;,&quot;verified&quot;:false,&quot;profile_image_url_https&quot;:&quot;https://pbs.twimg.com/profile_images/1736440090795163648/5B8OVg6X_normal.png&quot;,&quot;highlighted_label&quot;:{&quot;description&quot;:&quot;Base&quot;,&quot;badge&quot;:{&quot;url&quot;:&quot;https://pbs.twimg.com/profile_images/1945608199500910592/rnk6ixxH_bigger.jpg&quot;},&quot;url&quot;:{&quot;url&quot;:&quot;https://twitter.com/base&quot;,&quot;url_type&quot;:&quot;DeepLink&quot;},&quot;user_label_type&quot;:&quot;BusinessLabel&quot;,&quot;user_label_display_type&quot;:&quot;Badge&quot;}},&quot;edit_control&quot;:{&quot;edit_tweet_ids&quot;:[&quot;1555982484818509825&quot;],&quot;editable_until_msecs&quot;:&quot;1659811907000&quot;,&quot;is_edit_eligible&quot;:false,&quot;edits_remaining&quot;:&quot;5&quot;},&quot;isEdited&quot;:false,&quot;isStaleEdit&quot;:false},&quot;isEdited&quot;:false,&quot;isStaleEdit&quot;:false}"> 
  <div class="twitter-embed embed">
    <div class="twitter-header">
        <div style="display:flex">
          <a target="_blank" href="https://twitter.com/WilsonCusack">
              <img alt="User Avatar" class="twitter-avatar" src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f708cffbef80aab9a4285100e20267b3e2e5eb7cedcde34ccbda57ba0281d78d.png" />
            </a>
            <div style="margin-left:4px;margin-right:auto;line-height:1.2;">
              <a target="_blank" href="https://twitter.com/WilsonCusack" class="twitter-displayname">wilson.base.eth</a>
              <p><a target="_blank" href="https://twitter.com/WilsonCusack" class="twitter-username">@WilsonCusack</a></p>
    
            </div>
            <a href="https://twitter.com/WilsonCusack/status/1555982486081085443" target="_blank">
              <img alt="Twitter Logo" class="twitter-logo" src="https://paragraph.com/editor/twitter/logo.png" />
            </a>
          </div>
        </div>
      
    <div class="twitter-body">
      A lot of crypto protocols just "don't do enough"
      
      
       
    </div>
    
     <div class="twitter-footer">
          <a target="_blank" href="https://twitter.com/WilsonCusack/status/1555982486081085443" style="margin-right:16px; display:flex;">
            <img alt="Like Icon" class="twitter-heart" src="https://paragraph.com/editor/twitter/heart.png">
            2
          </a>
          <a target="_blank" href="https://twitter.com/WilsonCusack/status/1555982486081085443"><p>1:21 PM • Aug 6, 2022</p></a>
        </div>
    
  </div> 
  </div><p>Some examples of what we can say a certain Actor Protocol “wants.”</p><div data-type="twitter" tweetId="1570777644668710913" tweetData="{&quot;__typename&quot;:&quot;Tweet&quot;,&quot;lang&quot;:&quot;en&quot;,&quot;favorite_count&quot;:1,&quot;created_at&quot;:&quot;2022-09-16T14:12:28.000Z&quot;,&quot;display_text_range&quot;:[0,278],&quot;entities&quot;:{&quot;hashtags&quot;:[],&quot;urls&quot;:[],&quot;user_mentions&quot;:[],&quot;symbols&quot;:[]},&quot;id_str&quot;:&quot;1570777644668710913&quot;,&quot;text&quot;:&quot;Bitcoin adjusts difficult to achieve what it wants\n\nUniswap adjusts the tradable price in response to LPs and traders \n\nA VRGDA adjusts price based on real vs. desired sale schedule \n\nVery different than a protocol where any two actors can make arbitrary agreements at any time!&quot;,&quot;user&quot;:{&quot;id_str&quot;:&quot;248459532&quot;,&quot;name&quot;:&quot;wilson.base.eth&quot;,&quot;screen_name&quot;:&quot;WilsonCusack&quot;,&quot;is_blue_verified&quot;:true,&quot;profile_image_shape&quot;:&quot;Circle&quot;,&quot;verified&quot;:false,&quot;profile_image_url_https&quot;:&quot;https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f708cffbef80aab9a4285100e20267b3e2e5eb7cedcde34ccbda57ba0281d78d.png&quot;,&quot;highlighted_label&quot;:{&quot;description&quot;:&quot;Base&quot;,&quot;badge&quot;:{&quot;url&quot;:&quot;https://pbs.twimg.com/profile_images/1945608199500910592/rnk6ixxH_bigger.jpg&quot;},&quot;url&quot;:{&quot;url&quot;:&quot;https://twitter.com/base&quot;,&quot;url_type&quot;:&quot;DeepLink&quot;},&quot;user_label_type&quot;:&quot;BusinessLabel&quot;,&quot;user_label_display_type&quot;:&quot;Badge&quot;}},&quot;edit_control&quot;:{&quot;edit_tweet_ids&quot;:[&quot;1570777644668710913&quot;],&quot;editable_until_msecs&quot;:&quot;1663339348000&quot;,&quot;is_edit_eligible&quot;:false,&quot;edits_remaining&quot;:&quot;5&quot;},&quot;conversation_count&quot;:0,&quot;news_action_type&quot;:&quot;conversation&quot;,&quot;parent&quot;:{&quot;lang&quot;:&quot;en&quot;,&quot;reply_count&quot;:1,&quot;retweet_count&quot;:0,&quot;favorite_count&quot;:2,&quot;created_at&quot;:&quot;2022-09-16T14:12:28.000Z&quot;,&quot;display_text_range&quot;:[0,213],&quot;entities&quot;:{&quot;hashtags&quot;:[],&quot;urls&quot;:[],&quot;user_mentions&quot;:[],&quot;symbols&quot;:[]},&quot;id_str&quot;:&quot;1570777642823196679&quot;,&quot;text&quot;:&quot;Actor Protocols: Protocols that *want* something \n\nBitcoin *wants* blocks produced every ~10 minutes \nUniswap *wants* a single tradable price per pool\nA VRGDA *wants* to sell tokens according to a certain schedule&quot;,&quot;user&quot;:{&quot;id_str&quot;:&quot;248459532&quot;,&quot;name&quot;:&quot;wilson.base.eth&quot;,&quot;screen_name&quot;:&quot;WilsonCusack&quot;,&quot;is_blue_verified&quot;:true,&quot;profile_image_shape&quot;:&quot;Circle&quot;,&quot;verified&quot;:false,&quot;profile_image_url_https&quot;:&quot;https://pbs.twimg.com/profile_images/1736440090795163648/5B8OVg6X_normal.png&quot;,&quot;highlighted_label&quot;:{&quot;description&quot;:&quot;Base&quot;,&quot;badge&quot;:{&quot;url&quot;:&quot;https://pbs.twimg.com/profile_images/1945608199500910592/rnk6ixxH_bigger.jpg&quot;},&quot;url&quot;:{&quot;url&quot;:&quot;https://twitter.com/base&quot;,&quot;url_type&quot;:&quot;DeepLink&quot;},&quot;user_label_type&quot;:&quot;BusinessLabel&quot;,&quot;user_label_display_type&quot;:&quot;Badge&quot;}},&quot;edit_control&quot;:{&quot;edit_tweet_ids&quot;:[&quot;1570777642823196679&quot;],&quot;editable_until_msecs&quot;:&quot;1663339348000&quot;,&quot;is_edit_eligible&quot;:false,&quot;edits_remaining&quot;:&quot;5&quot;},&quot;isEdited&quot;:false,&quot;isStaleEdit&quot;:false},&quot;isEdited&quot;:false,&quot;isStaleEdit&quot;:false}"> 
  <div class="twitter-embed embed">
    <div class="twitter-header">
        <div style="display:flex">
          <a target="_blank" href="https://twitter.com/WilsonCusack">
              <img alt="User Avatar" class="twitter-avatar" src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f708cffbef80aab9a4285100e20267b3e2e5eb7cedcde34ccbda57ba0281d78d.png" />
            </a>
            <div style="margin-left:4px;margin-right:auto;line-height:1.2;">
              <a target="_blank" href="https://twitter.com/WilsonCusack" class="twitter-displayname">wilson.base.eth</a>
              <p><a target="_blank" href="https://twitter.com/WilsonCusack" class="twitter-username">@WilsonCusack</a></p>
    
            </div>
            <a href="https://twitter.com/WilsonCusack/status/1570777644668710913" target="_blank">
              <img alt="Twitter Logo" class="twitter-logo" src="https://paragraph.com/editor/twitter/logo.png" />
            </a>
          </div>
        </div>
      
    <div class="twitter-body">
      Bitcoin adjusts difficult to achieve what it wants<br /><br />Uniswap adjusts the tradable price in response to LPs and traders <br /><br />A VRGDA adjusts price based on real vs. desired sale schedule <br /><br />Very different than a protocol where any two actors can make arbitrary agreements at any time!
      
      
       
    </div>
    
     <div class="twitter-footer">
          <a target="_blank" href="https://twitter.com/WilsonCusack/status/1570777644668710913" style="margin-right:16px; display:flex;">
            <img alt="Like Icon" class="twitter-heart" src="https://paragraph.com/editor/twitter/heart.png">
            1
          </a>
          <a target="_blank" href="https://twitter.com/WilsonCusack/status/1570777644668710913"><p>9:12 AM • Sep 16, 2022</p></a>
        </div>
    
  </div> 
  </div><p>I think of these protocols as having been endowed by their makers with some ability to observe change and respond to it: an ability to use information that is often already at their disposal.</p><p>Around this same time, I happened to pick up a book I had been carrying around for ten years but never read: <em>The Human Use of Human Beings</em> by Norbert Wiener. The subtitle is “Cybernetics and Society.” It is the less technical version of Wiener’s other book: <em>Cybernetics: Or Control and Communication in the Animal and the Machine.</em></p><p>Wiener coined the term “cybernetics” in its modern usage, and by it he is referring to circular causal feedback, or control loops. Such as a person driving a car: the person perceives the road changing, and they turn the wheel, the wheel turns the tires which turn the car and presents a new view to the driver, and the process begins again.</p><p>I do not have the book in front of me right now, so I will not try to do it justice, but he is particularly interested in life-imitating automata that could be broadly defined as (1) having some definite task and (2) being “<em>en rapport</em> with the outer world by some sense organ.” For example, an automatic door is supposed to open for humans and does so via a motion detector. A thermostat is supposed to control the temperature in your house by reading the temperature and turning on the heat if it is too cold.</p><p>I could not believe my good fortune in waiting ten years to read this book: until this very moment when I had become interested in this topic. What was so interesting to me is the way in which protocols are <em>en rapport</em> with the world, the sense organ: humans give them the information they need! Often this information is baked into the essence of the protocol: Bitcoin adjusts block difficulty by monitoring the time frequency of valid blocks.</p><p>And it’s interesting that this computer/human symbiosis is purely in the digital realm: it is not a door opening for humans or a robot doing your dishes: the protocol recruits humans to provide any input info it needs on its own terms.</p><div data-type="twitter" tweetId="1587565215641530368" tweetData="{&quot;__typename&quot;:&quot;Tweet&quot;,&quot;lang&quot;:&quot;en&quot;,&quot;favorite_count&quot;:5,&quot;created_at&quot;:&quot;2022-11-01T22:00:17.000Z&quot;,&quot;display_text_range&quot;:[0,117],&quot;entities&quot;:{&quot;hashtags&quot;:[],&quot;urls&quot;:[],&quot;user_mentions&quot;:[],&quot;symbols&quot;:[]},&quot;id_str&quot;:&quot;1587565215641530368&quot;,&quot;text&quot;:&quot;AI is opaque software that humans put to work. \n\nCrypto protocols are transparent software that put humans to work 😅&quot;,&quot;user&quot;:{&quot;id_str&quot;:&quot;248459532&quot;,&quot;name&quot;:&quot;wilson.base.eth&quot;,&quot;screen_name&quot;:&quot;WilsonCusack&quot;,&quot;is_blue_verified&quot;:true,&quot;profile_image_shape&quot;:&quot;Circle&quot;,&quot;verified&quot;:false,&quot;profile_image_url_https&quot;:&quot;https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f708cffbef80aab9a4285100e20267b3e2e5eb7cedcde34ccbda57ba0281d78d.png&quot;,&quot;highlighted_label&quot;:{&quot;description&quot;:&quot;Base&quot;,&quot;badge&quot;:{&quot;url&quot;:&quot;https://pbs.twimg.com/profile_images/1945608199500910592/rnk6ixxH_bigger.jpg&quot;},&quot;url&quot;:{&quot;url&quot;:&quot;https://twitter.com/base&quot;,&quot;url_type&quot;:&quot;DeepLink&quot;},&quot;user_label_type&quot;:&quot;BusinessLabel&quot;,&quot;user_label_display_type&quot;:&quot;Badge&quot;}},&quot;edit_control&quot;:{&quot;edit_tweet_ids&quot;:[&quot;1587565215641530368&quot;],&quot;editable_until_msecs&quot;:&quot;1667341817000&quot;,&quot;is_edit_eligible&quot;:false,&quot;edits_remaining&quot;:&quot;5&quot;},&quot;conversation_count&quot;:1,&quot;news_action_type&quot;:&quot;conversation&quot;,&quot;isEdited&quot;:false,&quot;isStaleEdit&quot;:false}"> 
  <div class="twitter-embed embed">
    <div class="twitter-header">
        <div style="display:flex">
          <a target="_blank" href="https://twitter.com/WilsonCusack">
              <img alt="User Avatar" class="twitter-avatar" src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f708cffbef80aab9a4285100e20267b3e2e5eb7cedcde34ccbda57ba0281d78d.png" />
            </a>
            <div style="margin-left:4px;margin-right:auto;line-height:1.2;">
              <a target="_blank" href="https://twitter.com/WilsonCusack" class="twitter-displayname">wilson.base.eth</a>
              <p><a target="_blank" href="https://twitter.com/WilsonCusack" class="twitter-username">@WilsonCusack</a></p>
    
            </div>
            <a href="https://twitter.com/WilsonCusack/status/1587565215641530368" target="_blank">
              <img alt="Twitter Logo" class="twitter-logo" src="https://paragraph.com/editor/twitter/logo.png" />
            </a>
          </div>
        </div>
      
    <div class="twitter-body">
      AI is opaque software that humans put to work. <br /><br />Crypto protocols are transparent software that put humans to work <img class="twitter-emoji" draggable="false" alt="😅" src="https://abs-0.twimg.com/emoji/v2/72x72/1f605.png"/>
      
      
       
    </div>
    
     <div class="twitter-footer">
          <a target="_blank" href="https://twitter.com/WilsonCusack/status/1587565215641530368" style="margin-right:16px; display:flex;">
            <img alt="Like Icon" class="twitter-heart" src="https://paragraph.com/editor/twitter/heart.png">
            5
          </a>
          <a target="_blank" href="https://twitter.com/WilsonCusack/status/1587565215641530368"><p>5:00 PM • Nov 1, 2022</p></a>
        </div>
    
  </div> 
  </div><p>So, Cybernetics and feedback control loops offer another, and probably better, lens on Actor Protocols. Along the way I found this great piece from 2020. As is usually the case: someone has already said it, and said it better.</p><div data-type="embedly" src="https://medium.com/gauntlet-networks/feedback-control-as-a-new-primitive-for-defi-27b493f25b1" data="{&quot;provider_url&quot;:&quot;https://medium.com&quot;,&quot;description&quot;:&quot;Feedback Control as a New Primitive for DeFi Hsien-Tang Kao and Tarun Chitra This year, we&apos;ve seen an explosion of new DeFi protocols providing new mechanisms to enable trading, lending, and other ...&quot;,&quot;title&quot;:&quot;Feedback Control as a New Primitive for DeFi&quot;,&quot;mean_alpha&quot;:255,&quot;author_name&quot;:&quot;Hsien-Tang Kao&quot;,&quot;url&quot;:&quot;https://medium.com/gauntlet-networks/feedback-control-as-a-new-primitive-for-defi-27b493f25b1&quot;,&quot;thumbnail_url&quot;:&quot;https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/100b3709c274725a7c5d93dc80294146dcba37c463d1bf1ce85ffb896c41c0b3.png&quot;,&quot;thumbnail_width&quot;:1015,&quot;version&quot;:&quot;1.0&quot;,&quot;provider_name&quot;:&quot;Medium&quot;,&quot;type&quot;:&quot;link&quot;,&quot;thumbnail_height&quot;:373,&quot;image&quot;:{&quot;img&quot;:{&quot;width&quot;:1015,&quot;height&quot;:373,&quot;src&quot;:&quot;https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/100b3709c274725a7c5d93dc80294146dcba37c463d1bf1ce85ffb896c41c0b3.png&quot;}}}" format="small"><link rel="preload" as="image" href="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/100b3709c274725a7c5d93dc80294146dcba37c463d1bf1ce85ffb896c41c0b3.png"/><div class="react-component embed my-5" data-drag-handle="true" data-node-view-wrapper="" style="white-space:normal"><a class="link-embed-link" href="https://medium.com/gauntlet-networks/feedback-control-as-a-new-primitive-for-defi-27b493f25b1" target="_blank" rel="noreferrer"><div class="link-embed"><div class="flex-1"><div><h2>Feedback Control as a New Primitive for DeFi</h2><p>Feedback Control as a New Primitive for DeFi Hsien-Tang Kao and Tarun Chitra This year, we&#x27;ve seen an explosion of new DeFi protocols providing new mechanisms to enable trading, lending, and other ...</p></div><span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-link h-3 w-3 my-auto inline mr-1"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>https://medium.com</span></div><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/100b3709c274725a7c5d93dc80294146dcba37c463d1bf1ce85ffb896c41c0b3.png"/></div></a></div></div><p>Though I think the picture is even broader than what is described in that piece, and perhaps a new phrase like “Actor Protocol” helps convey that. E.g. I would say Uniswap and AMMs are Cybernetic/feedback control loops, but you won’t find them in this article.</p>]]></content:encoded>
            <author>wilson-2@newsletter.paragraph.com (Wilson)</author>
        </item>
        <item>
            <title><![CDATA[The Case for Value Capture at the Periphery]]></title>
            <link>https://paragraph.com/@wilson-2/the-case-for-value-capture-at-the-periphery</link>
            <guid>wrufm5un0bYLNvvENvJw</guid>
            <pubDate>Mon, 18 Jul 2022 03:05:12 GMT</pubDate>
            <description><![CDATA[This is another spur of the moment post. Only putting on Mirror so it lives on a bit better than a Twitter thread. If it is dumb please pretend someone else wrote it. I recently wrote about the case for fees that make a protocol stronger. https://w.mirror.xyz/eOXDGQYvZQxf7gRW3ZXSPNUto7E8dCZGe4oqZbm_QsE Lately I’ve been thinking about something else: extractive fees should be accrued to parties at the periphery and not to the protocol/DAO. “Extractive fee” is kind of a cynical framing. I am re...]]></description>
            <content:encoded><![CDATA[<p><em>This is another spur of the moment post. Only putting on Mirror so it lives on a bit better than a Twitter thread. If it is dumb please pretend someone else wrote it.</em></p><p>I recently wrote about the case for fees that make a protocol stronger.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://w.mirror.xyz/eOXDGQYvZQxf7gRW3ZXSPNUto7E8dCZGe4oqZbm_QsE">https://w.mirror.xyz/eOXDGQYvZQxf7gRW3ZXSPNUto7E8dCZGe4oqZbm_QsE</a></p><p>Lately I’ve been thinking about something else: extractive fees should be accrued to parties at the periphery and not to the protocol/DAO.</p><p>“Extractive fee” is kind of a cynical framing. I am referring to fees that are being taken <em>just because they can.</em> The protocol could work without these fees, perhaps even better, but some party wants a reward for their work.</p><p>One example would be the fees that some borrowing/lending protocols take, between what the borrower pays and what the lender receives. Another example would be trading fees, such as Uniswap could charge.</p><p>Uniswap is a very interesting example, I think. Much has been made of the “flipping the fee switch.” The DAO could set a fee, a percent of the swap fee for a given pool, that goes to the DAO.</p><p>But there is another fee option in Uniswap v3. At the periphery, a swap order can send a fee to an arbitrary recipient. Presumably, this exists to allow clients to give themselves a fee: an incentive to build a Uniswap interface. The problem is that Uniswap Labs makes the best interface and they don’t take a fee: hard to compete with 0!</p><p>I wish Uniswap Labs <em>did</em> take a fee. Clearly, they are a competent team. They deserve funding that is unencumbered by DAO politics. Also, if they took a fee, it would make more sense for others to build their own interfaces and match or undercut this fee: we might actually see many Uniswap interfaces!</p><p>In many ways, I am more interested to see <em>this</em> fee switch get flipped than the protocol fee switch. It is not clear to me that the Uniswap DAO has proven itself to be an effective steward of funds. I would like to see it have funds other than UNI to spend, but I am not sure that giving it more funding is especially warranted right now.</p><p>So much is still being figured out with DAOs: their politics and how to best run them. Sending money to DAO is, in many cases today, guaranteeing it will be subject to some bureaucratic mess. I think that enabling and encouraging those adding value to an ecosystem to directly take a cut for themselves would be a great thing: no need for a grant or some DAO benevolence! If done well, this could create a periphery of many organizations profiting from the protocol and highly interested in seeing it succeed. This is in many ways how Ethereum works and how I think the web standards have worked, too.</p><p>Clearly DAOs are exciting and probably needed for many things, but I think that many parties taking fees at the periphery, and the core team working to make this highly viable, is under discussed. It strikes me that the dynamic of many productive and profitable teams wanting to see the core keep working might be more generative than many people trying to vote their way to a share of one giant pot.</p>]]></content:encoded>
            <author>wilson-2@newsletter.paragraph.com (Wilson)</author>
        </item>
        <item>
            <title><![CDATA[Fees for the good of DAO and Protocol]]></title>
            <link>https://paragraph.com/@wilson-2/fees-for-the-good-of-dao-and-protocol</link>
            <guid>362xX3YE8jpyzsCnbKzj</guid>
            <pubDate>Fri, 27 May 2022 02:44:15 GMT</pubDate>
            <description><![CDATA[Writing this post quickly to provide something more permanent in response to a Twitter discussion. Caveat that I don’t mean to position this against Jacob, just that his pieces provides the best context to discuss. Perhaps what I am saying fits into his ideas. Jacob of Zora wrote a great piece, “Hyperstructures,” which has inspired a lot of praise and discussion. In it, Jacob lays out the attributes of “a new type of infrastructure” in the form of protocols running on blockchains: protocols w...]]></description>
            <content:encoded><![CDATA[<p><em>Writing this post quickly to provide something more permanent in response to a Twitter discussion. Caveat that I don’t mean to position this against Jacob, just that his pieces provides the best context to discuss. Perhaps what I am saying fits into his ideas.</em></p><p>Jacob of Zora wrote a great piece, “<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://jacob.energy/hyperstructures.html">Hyperstructures</a>,” which has inspired a lot of praise and discussion. In it, Jacob lays out the attributes of “a new type of infrastructure” in the form of protocols running on blockchains: protocols which have a specific set of characteristics. I won’t go through all of them. Of interest right now, Jacob says that Hyperstructures are free: “there is a 0% protocol wide fee and runs exactly at gas cost.”</p><blockquote><p>Now that we&apos;ve established unstoppability as a net new feature, I’ll make my most speculative and contentious proposition: Hyperstructures can be simultaneously free forever to utilize and extremely valuable to own. This is possible because of their <em>unstoppability</em>. There is no cost to maintain and keep the protocol operational forever. Once deployed, it will work exactly as it’s designed with no degradation. For example, if the Uniswap team and website disappeared today the protocol will run in perpetuity. This is something that simply hasn&apos;t been possible before.</p><p>It is worth stating while the Hyperstructure runs exactly at cost, someone still has to pay the gas cost to operate it at that point in time.</p></blockquote><p>Later, Jacob says that Hyperstructures are also “expansive: there are built-in incentives for participants in the protocol.” The examples given here are of fees paid peer to peer in order to make a protocol work.</p><blockquote><p>A great example of an Expansive fee is the Uniswap LP fee. LP fees incentivize participants to provide the key resource—liquidity. This fee is paid to anyone who is providing liquidity to a pool, it is not paid to Uniswap. LP’s expand the utility of Uniswap, they do not have a monopoly on providing that utility and an LP only captures value on what they’re creating.</p></blockquote><p>Jacob’s piece didn’t sit quite right with me: I don’t think that protocols <em>can</em> just run forever on their own. Sure, the code will keep running. But the world will change and decisions will need to be made, new versions released, etc. Jacob’s idea, explained under the “valuable” attribute of hyperstructures, is that these protocols are valuable because of the threat of fees.</p><blockquote><p>But what does ownership mean in this context? The presence (and control) of a fee switch that can be turned on across the protocol. This creates a dynamic called <em>the &quot;threat of the fee&quot;</em>. This means that owners of the Hyperstructure have the right to turn that fee on across the protocol at the base level at any time via a vote. It’s the threat of the fee, because it’s long term value-destructive to ever turn it on. Turning the fee on is a value destructive action because it would immediately lead to an incentivized fork, since there’s now a clear reason for new entrants to do it themselves.</p></blockquote><p>I do not like the idea that protocols can only stay valuable because of the <em>threat of the fee</em>. It seems to imply that any ongoing protocol work will need to come from a treasury of threat-of-fee-controlling tokens, and to me this does not seem healthy or sustainable. There must be some kind of fee that is not long term value-destructive, right?</p><p>I didn’t have clear thoughts on this until recently when I was discussing something with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/sendmoodz">Moody</a>. Moody made the case that protocols should not take extractive fees, but should take fees for themselves (the DAO) in a place where (1) it makes the protocol better to have a fee and (2) there is no counter party that it is efficient or sensical to pay (other than the DAO).</p><p>If you can find such a use for fees, then your protocol and its funding are extremely robust: the protocol is worse without the fees! Safe from fork 🤞, and the DAO has funding.</p><p>Here are some examples I have been thinking of that I think fit into this category of fees.</p><ul><li><p>ETH burn, post EIP 1559.</p><ul><li><p>This a protocol level change that determined it is more optimal to burn ETH then to pay all transaction fees to miners. In this case, the ETH does not go to a DAO but it does benefit all ETH holders.</p></li></ul></li><li><p>Optimism auctioning sequencer rights</p><ul><li><p>Optimism plans to auction the rights to be the sequencer of Optimism for a period of time. This will be an ETH earning position. Optimism could have chosen Sequencers in many ways, but I am glad they are accruing value to the DAO and the network will be better for it.</p></li></ul></li><li><p>Uniswap just-in-time liquidity fees</p><ul><li><p>This does not exist, but the Uniswap team has told us it almost did! The idea is to charge some fee to LPs who hop in and out, providing liquidity for just one transaction.</p></li><li><p>Uniswap could have taken a fee to the DAO here and it would have (maybe)</p><ul><li><p>Made the protocol more attractive to LPs, in general: by discouraging flash LPs you are helping the long term LPs.</p></li><li><p>Would have had a less extractive way to accrue value to the DAO than the fee switch.</p></li></ul></li></ul></li><li><p>ENS name auctions</p><ul><li><p>There is no other counter party that it makes sense to pay.</p></li><li><p>Auctions are good for the protocol, enable people to pay more for what they want.</p></li></ul></li></ul><p>(Will add more as I think of them! There must be some liquidation penalties or something that go to a DAO?)</p>]]></content:encoded>
            <author>wilson-2@newsletter.paragraph.com (Wilson)</author>
        </item>
        <item>
            <title><![CDATA[Getting Started With Forge]]></title>
            <link>https://paragraph.com/@wilson-2/getting-started-with-forge</link>
            <guid>diH8Xlx0P7cUyDUKdNPE</guid>
            <pubDate>Sat, 15 Jan 2022 03:42:31 GMT</pubDate>
            <description><![CDATA[Forge is an Ethereum development framework. You can use it to create Solidity projects, manage dependencies, run tests, and more. It is inspired by Dapp and has the important similarity that tests are written in Solidity. This is unlike other Ethereum development frameworks to date. It is written in Rust and is very fast. This is a beginners guide. I will go over how to create a project, manage dependencies, and write tests. The intended audience is someone familiar with Solidity who wants to...]]></description>
            <content:encoded><![CDATA[<p>Forge is an Ethereum development framework. You can use it to create Solidity projects, manage dependencies, run tests, and more. It is inspired by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/dapphub/dapptools/tree/master/src/dapp">Dapp</a> and has the important similarity that tests are written in Solidity. This is unlike other Ethereum development frameworks to date. It is written in Rust and is very fast.</p><p>This is a beginners guide. I will go over how to create a project, manage dependencies, and write tests. The intended audience is someone familiar with Solidity who wants to learn more about developing with Forge.</p><h2 id="h-getting-started" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Getting Started</h2><p>First, you need to install <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/gakonst/foundry">Foundry</a>, which is a broader Ethereum toolkit that Forge lives within. I recommend checking the repo for the latest install instructions, but this is the current install command.</p><pre data-type="codeBlock" text="$ cargo install --git https://github.com/gakonst/foundry --bin forge --locked
"><code>$ cargo install <span class="hljs-operator">-</span><span class="hljs-operator">-</span>git https:<span class="hljs-comment">//github.com/gakonst/foundry --bin forge --locked</span>
</code></pre><p>Note that if you do not have Rust/Cargo installed, you will need to install that, first. See instructions <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.rust-lang.org/tools/install">here</a>.</p><p>(<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/transmissions11/forgeup">Forgeup</a> is a useful tool for pulling the latest Forge version or point to a specific branch.)</p><p>Next, create a folder to work in and init a project</p><pre data-type="codeBlock" text="$ mkdir forge-tutorial
$ cd forge-tutorial
$ forge init
"><code><span class="hljs-meta prompt_">$ </span><span class="bash"><span class="hljs-built_in">mkdir</span> forge-tutorial</span>
<span class="hljs-meta prompt_">$ </span><span class="bash"><span class="hljs-built_in">cd</span> forge-tutorial</span>
<span class="hljs-meta prompt_">$ </span><span class="bash">forge init</span>
</code></pre><p>Great! Now you should have two directories inside forge-tutorial: <code>lib</code> and <code>src</code>.</p><p>Lib is where all your installed dependencies will live. These are managed as git submodules. You’ll see in lib there is already <code>ds-test</code> which is a dependency installed by default. <code>ds-test</code>, from the creators of Dapp, has a contract with bunch of useful functions and events for testing. You can see the code on Github <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/dapphub/ds-test">here</a>.</p><p>Src is where your code will live. At the top level you’ll see <code>Contract.sol</code> and a <code>test</code> directory. In <code>test</code> is <code>Contract.t.sol</code>.</p><h2 id="h-testing" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Testing</h2><p>Since this document is geared towards those already familiar with Solidity, I am going focus on testing, as that is mainly what is unique about using Forge.</p><h3 id="h-getting-started" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Getting started</h3><p>Run <code>forge test</code> and you should see something like this.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f5bb644b0413d1fb4d58ce5960c9b095d6e00aea51338be504ff2bb19e7dd70f.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The test is passing, and it tells you the amount of gas that test function used.</p><p>Let’s open up <code>Contract.t.sol</code> to see what is happening.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/300c5c769c0d0707df0cb6babce64f2fbe5d96f6e8395a1141580b425872ec9f.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>First thing you should notice is that we’re writing tests in Solidity! Many of us have gotten used to writing tests for Solidity in other languages, which is kind of odd when you think about it. Can you think of any other programming language that requires you to test your code in a different language? This is a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/gakonst/status/1473479120461963264?s=20">big point</a> for the creator of Forge: how can we make great Solidity developers if every Solidity developer also has to know these other languages?</p><p>Let’s get into what’s going on. First, we notice that the ds-test import at the top, and that the contract is inheriting from <code>DSTest</code> with <code>is DSTest</code>. This gives <code>ContractTest</code> access to all the handy testing functions/events in <code>ds-test/test.sol</code>, which I mentioned above. For example, the <code>assertTrue</code> function being used is defined in <code>DSTest</code>. I recommend taking a look at the <code>test.sol</code> in the <code>ds-test</code> folder to see all the different kinds of asserts available.</p><p><code>setUp</code> a special function that will be called before any of the tests run. Modify the code slightly to see this at work.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/7a79660dcf9b8f9c2f08eace9fe0ffd1602688f7ff79bdb5fc5e6efad1b353a4.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>If you run <code>forge test</code> this test should pass.</p><p>Change the 10 to 9</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/b8b9fb7a20d3c4e13def78db01b496e5819e401af5e1baf52a1527eddbf8e865.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>and run <code>forge test</code> and you should see.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/c4bd745f46d14025b2ee8b794ecfed24153ccfb4e4c794f419b575a4a07daa55.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Nice! You’re doing great. It failed, as expected. Note that test functions must have “test” in the name. If the function was just called <code>example</code>, it would not automatically run with <code>forge test</code>.</p><p>If you are expecting a failure, you can prefix the test name with <code>testFail</code> rather than just <code>test</code>.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/915ba992ee1f6b235e73e3b79b5923cafcb3021124c59913f3d6e760c4854023.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>If you run <code>forge test</code>, this should pass. Note this will work for reverts as well.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/76a32eed23f95a5f5b1b736a2f2db9c01f26ac8ecac4797ef542a405e9e81ca6.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>To be honest, I find the <code>testFail</code> pattern to be kind of odd (you know something failed, but not exactly what), will discuss a preferred option, <code>expectRevert</code>, in the Cheat Codes below.</p><p>To actually test your contract, first let’s add some code to <code>Contract.sol</code></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/4b22630f89567754f5b53fe2d6d43750c775e3d3ce8db14be9dec5027fbec6bf.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Then in <code>Contract.t.sol</code> you could import this contract and write a test for it like this</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f45d5b24b87f19dfc4262307faa7d701d971fd7b314c9c33d0c93e2f8dda5d92.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h3 id="h-verbosity-logging-and-traces" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Verbosity, Logging, and Traces</h3><p>When running tests, you can specifying verbosity by passing <code>-v</code>. More <code>v</code>s, the higher the verbosity, with 5 (<code>-vvvvv</code>) being the highest. Here’s what each level gets you</p><p>1: Default (what you’ve seen so far when running tests)2: print logs3: print test trace for failing tests4: always print test trace, print setup for failing tests5: always print test trace and setup</p><p>Let’s add a log line and run our tests with <code>-vv</code> to see it. I’m going to add an <code>emit log_string</code> to my code.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/10a13bd9997030265a4e2a0d4ff3b000db760c7458c8f2b0e2bc19b1584ca3ec.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>If you’re less familiar with Solidity, contracts can <code>emit</code> events. But where is the <code>log_string</code> event defined? In <code>test.sol</code> in the <code>ds-test</code> repo.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/de65c0429efb119eb02eadf1beba88f6be1fe07672b60fbeb75996b96104c9ab.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Run <code>forge test -vv</code></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/1723a33135d15e50e97841c4bab168bfa69963e8ec0cdd74fa7f93c927ac9e44.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Check out the other log events in <code>test.sol</code> and try some others!</p><p>Next, let’s pass <code>-vvvv</code> so we can see the traces from our tests. Run <code>forge test -vvvv</code></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/bb5db2cc32e16b57e09dbc6900e888dfea10e4972bc753fea1cb279548682b74.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Woah! Super cool, right? This is showing you that our test function <code>testAddone</code> calls to <code>addOne</code>, and that the <code>addOne</code> call used 717 gas and returned 3!</p><h3 id="h-fuzzing" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Fuzzing</h3><p>A very cool feature of Forge is test fuzzing. Rather than specifying static inputs to a function, fuzzed tests give you random values of a particular type. For example, we could make <code>testAddOne</code> a fuzzed test like this by changing the function to take an argument, like this</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/21f236c6b5c47982da92d663d658334476d62bb585d91ac3f8f379cad9a05b93.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>If you run <code>forge test</code>, you should see</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/728befeba656097c10f988e3e2ed5e284b1d02f2166109bfd985520df49a6008.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>This is telling you it ran 256 times (each time with a random uint256 value for x), and that the mean gas across these runs was 2789 and the median was 2791.</p><p>(Something to note, as of writing this, there is an issue where if you have already run your tests/compiled your code and change a non-test contract and not the test contract, e.g. change just <code>Contract.sol</code> and run <code>forge test</code>, the tests will run as if you hadn’t made any changes to <code>Contract.sol</code>. To manage this, you can force a recompile with <code>forge test --force</code>.)</p><h3 id="h-cheat-codes" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Cheat Codes</h3><p>Cheat codes are the bread and butter of testing with forge. Cheat codes exist in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/dapphub/dapptools/blob/master/src/hevm/README.md#cheat-codes">Dapp</a> and have been expanded in Forge. Cheat codes are being updated frequently, so check the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/gakonst/foundry/tree/master/forge">README</a> for the latest. Basically these a contract calls to a “VM” contract that cause the vm to modify its ordinary execution behavior. I’ll give a couple examples here.</p><p>First, let’s talk about the <code>prank</code> cheat code, which can be used to set <code>msg.sender</code> for the next call. If that doesn’t make sense, just keep reading and you’ll see what I meant.</p><p>First, I am going to add a dummy contract to the top of `Contract.t.sol`.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/c6a6aa216ab33a0243b7e281cbffe8014e46a92daf4cbde684d8e668b1645ca0.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Next I’ll update my test contract to use Foo</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/a1dc5b250f7ae241109d1e652a0aee328f5a52bdf3acb65ab129e9702ff0694c.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Note, I could simplify this to</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/44d7dc696e730305fda6aa5241ba303a94556df90d28ce7ea5e589aa35f7d0b7.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>but I am trying to model the use of <code>setUp</code> , which is needed for more complex setup.</p><p>Now, we need to add our VM contract that will receive the cheat code calls.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/ede2bfc805330026ad88eaa5a86e3a1646f5f55e1758d881f1ebdc112b3ac358.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The VM is always at this address. Where does it come from? <code>address(bytes20(uint160(uint256(keccak256(&apos;hevm cheat code&apos;)))))</code> = <code>0x7109709ecfa91a80626ff3989d68f67f5b1dd12d</code>. We also need to define a <code>Vm</code> interface so the compiler knows what methods we expect to be able to call. You can add as many of the cheat codes as you want, for now I’ll just add prank.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/85b52f35177bdb97de8996597f72a1bdfd411c3e586acb8ae6056e3e19c0149e.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The Forge <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/gakonst/foundry/tree/master/forge">README</a> has all of the cheat codes defined in a format that you can copy and paste to your own interface. Finally let’s update my test to be named <code>testBar</code> and to call `foo.bar()`My test file now looks like this</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/9bea511ab9e30c1ebb9fdb68d6a0c6f36ae3576b267374beb5a1ba2e257e6500.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Run <code>forge test -vvvv</code> and you should see</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/e3a755893a70d699efc7a60f6e93182da07e6a5f6310a0246480ace4f6a43876.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>What’s going on here? Well, bar is requiring that <code>msg.sender</code> be <code>address(1)</code> but current <code>msg.sender</code> is just whatever address our test contract has. We can use <code>prank</code> to call <code>bar</code> from <code>address(1)</code></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/820fd40fff188eacd1365902539a6a24ee2a736ea1956b4b9b2a68db47d6b7d9.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Run <code>forge test -vvvv</code></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/f592a4486fce16cddf974e1bae581078eff06fad0b671dd061f1bb91a48bc77a.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Now, we could also test for our expected revert using another cheat code, <code>expectRevert</code>. Add <code>expectRevert</code> to the <code>Vm</code> interface</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/3d3ed80c9f96fcf5182f961f2afb51ec7d52d5a5ae8eacd7dd1e2d0a5949ea9a.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>and add a new test</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/dcb76df33ee0b8be8faa1a4a2bb1da5c61168142aa2a4f2fee84fcfc25743ef4.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Run <code>forge test -vvvv</code></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/bb78035c3377f15bcfff4943bb53137e913de8324b59779aa87a4d40a2e87117.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Awesome!</p><h2 id="h-adding-dependencies" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Adding Dependencies</h2><p>Let’s add say we want to use someone else’s contracts. Maybe Solmate from Rari. We can install by running <code>forge install rari-capital/solmate</code>. After running this command, you will see <code>solmate</code> has been added to <code>lib</code>.</p><p>I can import a specific contract like this</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/e4b97a601506a30dc587e38a55b1db6154569044d0023e4e5115ca35409a8d05.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-remappings" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Remappings</h2><p>Some of your contracts or the contracts you import may have imports in the NPM format, e.g. <code>import &quot;@openzeppelin/contracts/access/Ownable.sol;</code> Let’s look at how to handle this.</p><p>First install the OpenZeppelin contracts <code>forge install OpenZeppelin/openzeppelin-contracts</code> .</p><p>Next, let’s just add that import line to our test file</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/cccb40ab4f9164540e99b350f06b2cc2c3abad6a9c6b965fdc8a947a65aebf84.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Run <code>forge build</code></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/79d3d0d0e4fc2b4efd7ad0e99d8bb6c9755c5cf20c977af1b1f6fcd1a74e3964.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>We can tell forge the correct place to look for this file by creating a <code>remappings.txt</code>.</p><pre data-type="codeBlock" text="$ touch remappings.txt
"><code><span class="hljs-meta prompt_">$ </span><span class="bash"><span class="hljs-built_in">touch</span> remappings.txt</span>
</code></pre><p>and then in remappings.txt, put this line</p><pre data-type="codeBlock" text="@openzeppelin/=lib/openzeppelin-contracts/
"><code>@openzeppelin<span class="hljs-operator">/</span><span class="hljs-operator">=</span>lib<span class="hljs-operator">/</span>openzeppelin<span class="hljs-operator">-</span>contracts<span class="hljs-operator">/</span>
</code></pre><p>This tells Forge, “Hey, anytime you hit <code>@openzepplin/</code>, look in <code>lib/openzeppelin-contracts/</code> instead.”</p><p>Now if you run <code>forge build</code> or <code>forge test</code>, it should work fine.</p><h2 id="h-advanced-testing" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Advanced testing</h2><p><strong>Matching flag</strong></p><p>If you want to only run some tests, there is a handy flag <code>-m</code>, which will match to the test name. E.g. run <code>forge test -vvvv -m Revert</code> and any test with “Revert” in the function name will run!</p><p><strong>Snapshot</strong></p><p>Snapshot the gas usage of your tests by running <code>forge snapshot</code>.</p><p><strong>Forking mode</strong></p><p>Rather than starting from a blank state, you can run your tests with state seeded from a live Ethereum network. To do this, you need to pass an Ethereum node uri to your tests using the <code>-f</code> flag, i.e. <code>forge test -f &lt;uri&gt;</code>. (You can get such a URI from Alchemy or Infura.) This is super cool: In your tests you could call to an address, say the Mainnet USDC address, and get responses with live network state. This is especially useful for testing against contracts or states that might be particularly hard to mock.</p><h3 id="h-goodbye" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Goodbye!</h3><p>There is more to say, but it strikes me that this is plenty for now. Feel free to reach out to me directly with any questions.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://etherscan.io/address/0xC99b6Eb19B96916164318b11Cb7e20590296Dab3">split://0xC99b6Eb19B96916164318b11Cb7e20590296Dab3</a></p>]]></content:encoded>
            <author>wilson-2@newsletter.paragraph.com (Wilson)</author>
        </item>
        <item>
            <title><![CDATA[Testing, testing, 1, 2, 3]]></title>
            <link>https://paragraph.com/@wilson-2/testing-testing-1-2-3</link>
            <guid>TWu0xMcvuhbnS41sKsfe</guid>
            <pubDate>Sat, 10 Jul 2021 14:04:56 GMT</pubDate>
            <description><![CDATA[data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bW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GNsYXNzPSJzdDMgc3QxIHN0MiIgbWFzaz0idXJsKCNtYXNrLWFjY3J1ZWQpIj4wLjA0MDQgREFJPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ieCIgdmFsdWVzPSIyODA7LTYwIiBkdXI9IjhzIiBiZWdpbj0iNHMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+PC90ZXh0Pjx0ZXh0IHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIDEgMzUgNDUzKSI+PHRzcGFuIHg9IjAiIHk9IjAiIGNsYXNzPSJzdDEgc3QyIj5lbmQgYmxvY2s8L3RzcGFuPjx0c3BhbiB4PSI2OCIgeT0iMCIgY2xhc3M9InN0MyBzdDEgc3QyIj4xNDAzMDIwMzwvdHNwYW4+PC90ZXh0Pjwvc3ZnPg==</p>]]></content:encoded>
            <author>wilson-2@newsletter.paragraph.com (Wilson)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/ed7e1a423cfda5730a125e49b0e2768dbd2ad7fef1b00f1e8cd75a199c0aa748.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Hey every body]]></title>
            <link>https://paragraph.com/@wilson-2/hey-every-body</link>
            <guid>9XvMEotOwRfsyDHkB1Iy</guid>
            <pubDate>Wed, 02 Jun 2021 02:44:49 GMT</pubDate>
            <description><![CDATA[Just setting up my Mirror]]></description>
            <content:encoded><![CDATA[<p>Just setting up my Mirror</p>]]></content:encoded>
            <author>wilson-2@newsletter.paragraph.com (Wilson)</author>
        </item>
    </channel>
</rss>