A Developers Path to Bringing Web3 to Billions - Krishang Nadgauda

web3con 2022 · 6 Mar 2022 · 30:20

Krishang Nadgauda, who works on smart contracts at thirdweb, asks what it takes to bring web3 to billions of people. The talk builds from a slogan to a theme of composability at the application layer, then to a strategy of better abstractions that shorten time to productivity, and finally to tactics: shared standards and SDKs. Using the thirdweb architecture as an example, it shows how agreed interfaces such as ERC-20, ERC-721 and ERC-1155 let high level APIs work with arbitrary contracts.

Speakers

Topics

From web3con 2022, hosted by Developer DAO.

Transcript

hey people my name is krishang i do all things smart contracts at third web uh pretty excited to be giving a talk for web3con and i have a talk coming up on a pretty grand subject subject being a developer's path to bringing web3 to the billions uh i have a nice tweet to kick this talk off and it's a tweet from my friend wilson and he says if i had a nickel for every time i saw someone say they're bringing crypto to the next billion people i wouldn't even need to be in crypto which is pretty true uh a lot of people throw around and the phrasing that their

product or protocol is going to bring the next billion people into crypto and when you hear it being stated or rather if you see it being stated in the title of a talk and it's pretty justified if you want to scoff at it my own opinion is that it takes a couple thousand people like me and you to ponder on this grand idea for one of us to actually hit it out of the park and actually bring a billion people to web 3.

so that said the developer's path to bringing battery to the billions taken as a statement alone it is a pretty grand statement it is a pretty broad statement nothing that a simple talk can cover entirely so what i treat it as in my head is a slogan a slogan is some something that people can rally around and bringing but three to a billion people is something certainly we can rally around uh everyone's here at the web3 con mainly because they think that 3 is actually good for the people everyone wants to bring web 3 to a billion people

and so throughout this talk this statement is going to get the treatment of a slogan it's a good rallying cry uh but we kind of want to dig deeper a little deeper beneath the slogan and so in my head when we dig deeper this being a developer-focused talk comes to theme and the theme i'm going to focus on is composability at the application layer again i treat it as a standalone statement this is pretty broad we can speak about the statement at a higher level language but as we go further along in the talk uh

we'll tie back this theme in a theme is just something in the spirit of which we work and the theme of this talk uh something that we'll build up to uh something in the spirit of which um i will advocate that we work is composability at the application layer and again digging deeper uh going one layer below the theme i would say comes the strategy strategy that i'm going to espouse in this talk is build better abstractions that shorten time to productivity in web 3.

this is a bit more specific than the theme still pretty broad we as developers work with abstractions all the time what i mean by strategy here is the high level direction in which we're going to work in the spirit of the theme the strategy i have is more of a guiding strategy we keep encountering and applying terminology like high level or low level javascript libraries that we use to interact with smart contracts or an abstraction smart contracts themselves are an abstraction that we surmise that surmise even more lower level details a no-code smart contract builder is

another abstraction that is useful for folks with no coding abilities a key thing to remember is that you can have a tangible impact on software and its outcomes by just building at any level of abstraction and so the strategy is again one of the things that we're going to tie back to in this talk and i still want to keep digging deeper and go a little beneath strategy and in my head when we do that we hit something called tactics and the tactics that i'm going to focus on in this talk stated here as coordination standards and sdks

again we know the direction in which we want to work in the spirit of the theme we've settled on the tactics is a concrete order of operations by which i mean tangible actions that you and i can take in the spirit of the strategy that we've settled upon so how are we going to build better abstractions in web 3 that's short in this quote and go time to productivity and i will argue that it is a better coordination without any qualifiers just standards and sdks sdks being the most more most specific term uh being thrown out there and

if i would just throw out some tactics that you people uh it'd be somewhat useless it'd be just like me standing on my soapbox giving you instructions that's kind of not what i want to do here and so to tie these tactics to something i'm going to provide an anchor i'm going to provide an example very conveniently i work at third i want to explain the third of architecture as an example of this chain of things that i've described here this chain of things being the slogan at the highest level the theme coming after that the strategy and then the tactics

and now getting into the third up architecture as an example what i will try to do in this talk is go bottom up i will start by explaining the third web architecture and i will showcase how the tactics i i want to advocate for will be helpful ultimately in achieving the slogan how applying the tactics i'm going to talk about does let us successfully implement the strategy of building better abstractions that shorten time to productivity in web 3.

and following that uh i will show how implementing the strategy i'm describing lets us indeed work in the spirit of the theme we've settled upon composability at the application layer and ultimately i will argue composability at the application layer is how we're going to get a web 3 to the billions getting to third web before explaining the third web architecture uh our landing page says third web makes it easy for you to build by three apps uh that's a pretty high level uh explanation uh this is a developer focus conference so

uh i want to give a bit more of a technical explanation here uh what third web does is give you an entry point into web3 development at every level of abstraction by that what i mean is we provide a dashboard to create and interact with smart contracts to people with no code abilities so that puts you at the highest level of abstraction we provide sdks uh in languages like typescript python go these are languages that you do not use uh to write smart contracts uh not counting rust and all the lovely solana folks out there but

we provide sdks in already popular developer languages which you can use to create and interact with smart contracts we provide a ui kit if you're a smart contract developer all of our contracts are available in a smart contract library so just like you npm install open separate contracts you can npm install third web contracts so that's what i mean by us providing you an entry point at every level of abstraction and entry point to web3 development and if you draw that out on a diagram this is somewhat how it looks uh here you see pretty much

every layer of a working dap and a working decentralized application you have your front end you have whatever tools you're using to get your front end to interact with a smart contract uh you have a storage layer with ipfs there on the side and then you have the actual smart contracts itself that are the single source of truth for your data and what third web does is here presented in the form of the sdks we provide but what third web does is give you uh a tool at every level uh of this architecture for you to leverage uh to build out your depth

uh and the thing that lets us provide you with these sdks at every level uh of the architecture and how we get these pieces to coordinate together is that all of these pieces have some common information of how the smart contracts that are at the base of everything are going to behave so let's say uh you have uh an sdk function uh on a nft contract called balance off that gives you uh the total number of nfts and address owns in an nft collection

uh in that case across the stack be it the front end the sdk the application layer or even the smart contracts all of these three share some kind of uh common understanding that that what what's being queried here is the information of how many nfds does this address own in the given nft collection uh so this is not really the true magic in my eyes of something like the third web sdk uh if you write your own contract and then you write your own sdk and somehow all parts of your stack

have a shared understanding of how your smart contract is operating well of course they do and that's because you wrote the smart contract and you wrote the sdk that talks with the smart contract that you wrote so there's there's no magic happening when third web sdk is talking to third web smart contracts that should be pretty elementary the true magic in my eyes is when and this is possible with the third of investigate today to a limited extent the true magic in my eyes is when you can use the third web sdk to interact with an arbitrary smart contract that

the third web sdk wasn't already anticipating or a smart contract say that was not built using any piece of third web and the third best decay is he's still able to interface with that smart contract and just to make a differentiation here in between something like the third web sdk and something like ethers js uh ethercs is a direct wallet implementation uh the third level by ck is something that gives you a high level api to interact with a smart contract so

again to reiterate uh it is easy for the third sdk or not really magical for the third web sdk to have a high level api that lets you interact with a third web smart contract it's magical if the third web sdk has a high level api that lets you interact with an arbitrary smart contract now uh before laying that capability out of the turbo sdk i mentioned it can do this to a limited extent and that's because the sdk is limited uh in this domain uh to the kinds of interfaces that is arbitrary smart contract implements

so we all know of popular interfaces like the erc20 interface the erc721 interface uh drc 1155 interface an arbitrary smart contract implementing any of those interfaces can somewhat be anticipated uh by the third web sdk and the third web sdk can successfully provide a high level api to interact with the contract that implements one of those high level interfaces now something i will put out there is that high-level apis to interact with smart contracts or any low-level stuff is

actually desirable uh and that's because it lets you get productive uh with the outcomes of those low level things much faster so that is one critical thing to accept if we're going to follow along this talk it's that at some point people stopped writing c and developed a higher level api to do or accomplish the same lower level outcomes so high level apis are good they're not always a hundred percent better than writing lower level things and it's clear why that's because sometimes you do want to write code

closer to the metal once we accept that high level apis are actually desirable uh we can come to appreciate a fundamental hurdle with sdks like the third web sdk which give you a high level api to interact with arbitrary smart contracts and it's that things like the third of sdk depend on smart contracts implementing interfaces that the entire community at large has largely agreed upon to implement and that's because what lets the third group sdk give you a high level api to use for any arbitrary smart contract

uh currently limited to popular interfaces like erc 721 erc 20 or erc 1155 is the fact that the developer community has largely agreed upon implementing these standards and considering for example uh an erc 721 smart contract as an nft smart contract or a contract that implements crc 20 as a fungible token and so this brings me to tactics uh clearly if we understand that high-level apis are desirable

and we see that a hurdle for these sdks or api generators to accommodate arbitrary smart contracts is the developers community's settlement on certain standards uh and interfaces we can start talking about the tactics uh for getting over that hurdle uh and the clear tactics in my eyes that stand out are just better coordination and better coordination here really boils down to three things i believe when it comes to our

veterinary development community it's advocating for the adoption of standards improving upon existing standards and coming up with new standards and these i i would like you to hear these three these three points as something actionable and something that you can in fact start doing right away uh and have an outsized impact on the web3 development community to actually drill that in i want to give an example for each three a very successful person or a team in the space

has actually taken one of these actions and so for advocating for the adoption of standards uh here's joey santoro he's the co-founder of the successful faye protocol and here he's advocating for the adoption of eip 4626 it is enjoy's twitter name he's tweeting about it all the time he is pushing the eip in more traditional media like news articles of coindesk so ultimately this act of advocating for standards boils down to opening up

the eip website and pardon my ignorance folks outside of the ethereum ecosystem my vocabulary is going to be a bit ethereum specific but yeah read up on the various improvement proposals of your ecosystem and get a sense of where the space is heading eventually you will find improvement proposals that you [Music] find meaningful and you find useful you'll find a standard that clicks with you pick that standard up read it and advocate for the adoption of it find

out who can uh adopt it and whose adoption of that standard can actually have an outsized impact on your entire ecosystem second thing is improving on existing standards and this one made a bit of a buzz uh the team behind the successful suzuki project came out with a new standard that they themselves implemented for their nft project which was the erc721a standard it essentially reduced the cost of minting several nfts in a single transaction batchmating nfts they did a great job at it

they did their research and they actually wrote a very nice article on it detailing the advantages of erc 721-a over the erc 721 interface and they wrote about the trade-offs too uh so here's another option for you uh don't take uh standards like erc20 721 1155 as monoliths and just things that are going to remain the same forever go ahead and actually improve on their standards and write about it writing is a writing is essential here if you can write about it and get people behind your improvements

maybe your improvement your iteration over a canonical standard becomes the canonical standard over time and final point being come up with new standards for ethereum the eip website has an entire entire uh page dedicated to detailing the process for publishing new eips come up with a new standard publish an eip rally behind it and maybe someone else comes in and improves upon your standard in the future that's how the cycle begins and so that covered all of the tactics

that i had in mind again i would like you to take away the fact that those tactics are actionable things you can start advocating for the adoption of standards you can improve on standards and you can come up with new standards as well uh what that ultimately allows for developers uh is to build better abstractions now that smart contracts will get started to be written in adherence and to certain standards tools like the sdks can anticipate uh the behavior of these smart contracts

that's one way to think about building better abstractions or the outcome of better coordination and what better abstractions do is they shorten our time to productivity in web 3 development and i've had this time to productivity and big fat quotes throughout my talk and there's a reason for that i want to differentiate between two kinds of time to productivity so there's this one kind of time to productivity that a good terminal i will try to minimize and that is simply you as a developer having an intent to write a program and then

the time taken for you to actually get started writing that program or finish writing that program uh that's the kind of time to productivity that a tool like a good terminal tries to minimize now this is all well and good uh but the type to productivity that i would like to reference is something different in the case of web3 uh this is the type of productivity that i would like to reference it is the time uh between your intent of leveraging a crypto primitive pro or a product uh and actually performing a full loop or mvp

of that intent an example of that is you encountering the idea of social tokens on twitter and being like hey i want to create my own social token how much time does it take you to actually spin up your own social token and execute a short experiment that's the kind of time to productivity that i'm talking about that's the kind of time to productivity that third web sdk tries to minimize that's the time to productivity that better abstractions in the factory ecosystem will help minimize and once it is pretty trivial

to start leveraging different parts of web3 these different legos that we cannot think uh think of them as we get something that i will phrase as composability at the application layer by composability at the application layer what i essentially mean is something that lets us build for example d5 that my mom can use i've been in involved in the ethereum ecosystem for about two years now so not that much anyway but it took me a damn while to learn how to use a product like urine.finance

it takes uh it takes quite a bit of time to understand the underlying components of uh what this website then presents beautifully and still despite the great work of the people that you're building a clean user interface on the you're not finance website it is simply not something my mom can use and web 3 is something that my mom should be able to use because the ethos of web 3 is not limited to people who can crock the workings of urine under the hood so on the right i have yearn.finance sort of the current state of

uh what i consider a more involved a d5 product uh and i've chosen yearn as an example i realize i've i've been calling it yearn maybe it's called y iron my apologies if it is called white iron just realize that but on the left i have something called join burst uh built by my friend samir uh now joinburst is like you're an aggregator uh of strategies except how it operates and the amount of options that it exposes

and the kind of user experience that it offers is at a different level of abstraction than urine and any user of the do can immediately pick up on that uh and so where we want to go is in terms of direction from the left to the right if we do want to bring d uh d5 and web three to a billion people if my mom can use your app and it's in that direction of bringing a billion people into web3 uh and what lets us do this what lets us build by three apps and that my mod can use in fact is uh composability at the application layer

if it is easier for me to plug and play into web3 legos at the application layer without having to write custom smart contracts from the get-go it results in more apps in the direction of easier ux that my mod can use being built and ultimately this was the ladder that we claimed in the stock we started at the thermal part we started at the third web architecture uh we ended up speaking of tactics i.e better coordination advocating for the adoption of standards improving our

existing standards coming up with new standards all with the goal in mind that tools like an sdk for example the third web sdk can start anticipating the behavior of what is at the base foundational layer which is smart contracts working to working uh are sorry implementing those tactics uh ultimately lets us build better abstractions uh a shortened time to productivity uh that better abstraction being something like the sdk that can now anticipate smart contract behavior uh that results in composability at the application layer which means if i wish to leverage seven by three legos i can

do so quickly i can set up short experiments and test my loops out and eventually that means more apps that my mom can use more web 3 apps that my mom can use and that in my eyes is a developer's path to bringing about three to the billions to tie it all in just like in my eyes the job of third web is to give you an entry point in battery development at every level of abstraction the developer's path to bringing with you to the billions is somewhat similar start operating at any level of abstraction

that you feel you fit at and that may be at the level of tactics where you are advocating or creating standards that may be at the level of strategy uh where you are building tools like an sdk that now anticipates smart contract behavior leveraging all the good coordination that the others are performing that may be at the lowest level of writing smart contracts and famous foundational smart contracts that uh adhere to certain interfaces that the community settles on uh that may be at the highest level of

things bringing web three to the billions uh coming to conferences like these listening to the ideas sharing your own ideas and that's pretty much all i had to say see you later