Chiang Mai Dapps Meetup - Delegatecall Pattern/7th July 2020
Chiang Mai Dapps·Tue, Oct 27, 2020, 12:00 AM
Transcript
so when you don't even look at optimism I'm like okay like this is you know I take but then I'm gonna get into a middle part but the daily good call first so the problem with this one so okay so pressing home contracts so who has like so anybody who's like across servers and how or is anybody [Music] yes foxy like something standing in for something else in a general sense yeah against the proxy contracts contract isn't like a proxy for your eyes yes sounds like well what do you see be my proxy I really trust somebody there's a bunch of stuff happening it's not you using your own eyes you see something it's a camera transmitting information so getting back on topic the way I think about proxy is if you're trying to do anything so there's like let's say a third one in between like proxy server let's say you're gonna do that for me so now tying it in to proxy contracts so now a bunch of smart cities are using because it's way you know honey but it's more efficient because gas us to just one big you know or one complex general contractor that you deploy that is very expensive but the new users let's say you they're trying to deploy like it's a bit like class hierarchies in object-oriented programming like you've got the attendant perhaps that you can scan so more like yeah yeah but you only paid for the vector class annotate ones and the proxies are three or less cheaper yes so they're cheaper in the sense that let's say so let's say you know there's like one big you know let's call it like a master [Music] let's say let's say you know the master contract has all of the functionality that your dad needs it's more expensive that's why you have a really good point this one but then when users you don't want to just dive into to disallow and share speed with this one so you just want to [Music] so it's relatedly the big contract yeah so now let's say so let's say you know [Music] let's say you know they have all of these functions that the process need you know like these people delegate here these days whatever this has so now you know there's like an industry standard call I'm open use it so those who can't think of them as like libraries are like you know if you do something that JavaScript let's say you know use but here I think the so those talk about like some similar things but this is more of a pattern and the pattern here is that let's say you don't want so let's talk about the devoman right so you make every single user depending on what their that let's say let's take the example this sequence you don't want them everything to just deploy all that code every single time so in order to optimize that let's say the team deploys a big contract no business contract have their own state but then they need to read some functions they don't have is there all the states of like all the contracts that are similar to that one so is that where you see comes from yeah all of these let's say all these people based on personality nice contract to execute that so yeah so let's say whatever you're doing is still like yes but what the user is not paying is like yeah so basically that's what's that you don't like so let's say you know because it's many quite in the master contract it's many small contracts it's not simply one function right yep you can't even or like let's say you can compose so let's say you know there's like 20 functions you only read one like you only pay but then the network or the team your users don't need that every single time that they like this say like a musty washer they only buy let's say today because like the main thing that they care about is their stable but they don't need all that so it's like security once the monster contractors before on change even if it's used again and again again it doesn't mean to pay I mean yeah yeah what's this like it's like one time so maybe people use proxy contracts or one developer flexibility of I will say you need to go create something it allows and also let's say if you want to do something so that's my rough understanding of proxy now I'm going to talk about the challenges here okay you trying to so so if you're never the way you kind of like really understand actually the problem is you start reading the code that you see like assembly so it's not you know honey it's not below it's pretty cool though it's very little and [Music] okay so let's say you know you tried to listen understand ago then you know reading it kind of floating around but then afterwards you know you have a bunch of assembly thoughts like let's say they can be like one-liners better afterwards this you hit it and then you start scratching your head go ahead we're into the semi code so this is on the nooses safe proxy factory go away so just like a factory contract but then okay I don't know yeah just doing your own contracts you didn't have to do that to understand this contract is doing or - okay so the deliver here is like so more a contractor like four things popular the more than it was trying to do some very big optimization easy optimization that is secure for life [Music] you
Automatic transcript — names and jargon may be misspelled.