NEARCON 2022 | Doomslug Stage - Day 2
Nothing is loaded from YouTube until you press play, and then without tracking cookies.
About this video
Check out all the talks of #NEARCON Doomslug Stage Day 2 with the timestamps below 🔽
00:00 - Beginning 04:00 - Plug and Play: Run your node from home | Bernd Lapp & Stefaan Ponnet - Avado | MC: Lindsey C 27:27 - Pagoda: Blockchain Development Made Easy - Austin Baggio - Pagoda | MC: Lindsey C 47:40 - Community Building From a Developers Perspective | Vadim Ilin - NEAR | MC: Lindsey C 01:13:08 - The Graph: How to Build Subgraphs on NEAR | Simon Emanuel - Edge & Node | MC: Jacob Lindahl 01:34:34 - Flux on the Power of Cross-Chain Oracles | Jasper de Gooijer - Flux protocol | MC: Jacob Lindahl 01:51:25 - Can NEAR Make Blockchain Gaming Click? | Killian Tollec - Ledger | MC: Jacob Lindahl 02:13:50 - A Web3 Approach to Video Conferencing | Henrique Silva - Relayz.io | MC: Jacob Lindahl 02:38:00 - Solidity for NEAR | Arto Bendiken - Aurora Labs | MC: Jacob Lindahl 02:58:34 - Applications of Cross-Contract Communication in Aurora | Marcelo Fornet - Marcelo Fornet - Aurora Labs | MC: Jacob Lindahl 03:16:00 - Lessons From Building Appchains: Debio and Myriad Deep Dive | Pandu Sastrowardoyo - Debio + Myriad + Octopus Guild | MC: Jacob Lindahl 03:33:00 - Keypom: We've Reinvented Web3 Onboarding and You're Gonna Like It | Ben Kurrek - Pagoda & Fayyr and Matt Lockyer - Proximity | MC: Jacob Lindahl
Join NEAR's community: Website: near.org Reddit: / nearprotocol Discord: near.chat Medium: / nearprotocol Blog: near.org/blog Twitter: / nearprotocol GitHub: github.com/near github.com/nearprotocol Dev Docs: docs.near.org Create a wallet: wallet.near.org/create Apps on NEAR: awesomenear.com Learn to Build On NEAR: near.university Grants & Funding: near.org/grants #Blockchain #FutureisNEAR #NEAR #nearprotocol #nft #dao
Transcript
37,937 wordsCaptions as YouTube publishes them, usually machine-generated, so product and people names can be misheard.
- 0:28
now so so
- 2:08
my
- 3:31
hi everyone are you able to hear great thank you so much for coming today and this is the plug and play session run your note from home first things first please everyone put on your headphones or you're not going to be able to hear anything um and next up introducing um burnt lapp as well as stefan ponette from avato hello everyone welcome we're presenting avado the easiest solution to validate on near
- 4:11
i'm ben lupp and this is my co-founder stefan ponette we're going to take you to the presentation today and explain what avatar is so first of all we started in 2018 to build devices that help developers to spend time on developing instead of maintaining building a node maintaining a node and running a node so our focus was on developers later in 2020 a lot of chains started with staking
- 4:45
and we found a way to make it really really easy to stake uh through running in the node on our devices activating the validator and then activating your stake on the on the device and taking you through the whole process without any technical knowledge or any maintenance that you have to have to do actively yourself and so from 2018 until today we've added more and more blockchains
- 5:16
and we're happy to announce that we will also add near as a validator we also run near as a validator already and we'll talk about the chunk only producer later in the speech we have some learnings and observations of what happened through those four years it's um it's amazing that it's already four years for us what happened in those four years through our own product but also to the whole community to the whole blockchain space in general and maybe stefan can explain what these
- 5:47
learnings are good morning everybody um so as beren said we've been uh doing this for quite a while so we've gathered a lot of feedback from uh from all our users and so a couple of uh points that i want to touch on which was also like new for us at the start we thought maybe maybe these are things that that people take for granted so we or at least we took for granted uh so first of all is
- 6:12
that user don't want to spend a lot of time on researching the right hardware so if you want to participate in any of these blockchains it makes sense that like for one chain you need these kind of requirements for another team you need these kinds of requirements um if you leave it up to people they start like assembling all kinds of things with either old laptops scrap desktop part that they still have left over or they go on the internet to try to source the
- 6:37
ideal hardware but it's also not also not always trivial um since you're running it on a linux operating system you have all these issues with drivers and all that stuff so people just in general don't want to care about that that's what we that's why we did sort of the research for people and came up with a piece of hardware that really fits the bill um so this is the first product it's not
- 7:00
actually the first product it's the i7 model here that is shown so it's like completely fanless so it means it's 100 silent so you can just like set it on your desktop and then have it validate for you um so we have different like memory configurations different ssd combinations which also determine the price of the product and then of course yeah it's uh it's branded so that you can actually see that it's enough out of box that you're
- 7:24
working with next slide thing thank you second observation is that yeah people just don't want to read manuals so if you want to get started validating or setting up a note you usually have to go to like pages and pages of documentation start downloading software from the project and installing it so you really need to get to learn that um but it's a cumbersome process to read all those manuals that's why we
- 7:50
create a lot of additional material to help you set up uh your notes very easily so we have like uh youtube channels that we uh that we where we put all these explainers uh in unboxing videos uh and also walkthroughs for each of these uh dabs that we launched so uh more on these depths later another observation is that uh users they care more about like the convenience of the whole solution than the absolute decentralization so decentralization of course is the goal
- 8:21
that we're all trying to achieve and since we are providing these these devices that you can run from home there's something that started in the top tier of decentralization anyways but we chose to make like a curated list of dapps that you can install on the device itself so as you can see here here so this is the user interface of the avado um and you have like all these apps that you can install so our
- 8:46
solution is based on docker so that means that basically all these pieces of software that you see here are docker containers with some metadata around it like with the logos and descriptions of the of the package and so forth also all the pointers to all the additional resources like a youtube video how to specifically set up that piece of software that specific note um and so we we curate that with our team we also do the the maintenance of it so
- 9:10
that means you don't have to worry about all the updates of the software itself as since we are updating them and it comes with a sort of an automatic push it's opt-in so you don't have to do it you can switch it on or off but if you opt in then you can um yeah automatically have your node updated so the whole idea is that you can just set it up it's sort of a fire and forget solution you set up with an onboarding wizard you configure your
- 9:34
your staking notes and from that moment on you should be fine you shouldn't worry about the maintenance of the note you can just like monitor it and as long as it runs well you don't need to maintain it since we push all the updates and it's really like an appliance so you saw the pictures of the box itself and it should be as simple as setting up ikea furniture you just need to plug it in connect to the to the wi-fi you come
- 9:57
to an onboarding wizard you set it up into your network and then you're done so it doesn't require you to plug in a screen or a keyboard or whatsoever so it's completely headless and yes you see there's a lot of people that actually like this approach yeah so it's it's nice to see all that feedback from our community so in july then nier announced that it will have chunk only validator so chunk only producers so this means right now there's mainnet
- 10:29
validators and there's 100 seats available and it's very expensive to get into these seats and you need to maintain your node very well but in the in the near future near there will be chunk only producers so shards every shark will have their own validators and this is an opportunity for people to start validating at home for example so there's again slots available and we have a package in our dap store that you can download and activate and it
- 11:06
takes you through the process as we will see later how to uh validate and put your stake into play and the great thing is that people can deposit to it um from from other uh or investors can deposit it so you can even earn more rewards on your solution so at the end you will if you run it yourself you can earn 100 of your own rewards you don't have to give to any third party any any margin um you you could receive or should
- 11:37
receive delegations as well from other people which earns you more rewards you but the main thing as we always said as we said in the beginning is you keep this the network decentralized because people run it at home they run it they have full control over the hardware and we we keep the the system updated so there's no maintenance needed from the user um and there's enough information and support from our whole community uh which we also explained later which is really really nice
- 12:10
maybe stefan you can take them through the ui yeah so also one of these other observations that the user are sort of scared of a command line interface uh that's why we create this onboarding wizards and one of so this is an example so this is for the uh the avado near uh package uh how it looks so this is actually pretty simple uh so we try to onboard each of these dapps each of these nodes in a web ui that we build
- 12:35
ourselves and maintain so that means for any package that you install you never have to touch the command line that that's our motto um so yeah like if there are like dependencies like this is not the case here but for other blockchains you have to like install different pieces of software to to jointly start validating then all these dependencies are taken care of for you so you just say like i want to stake on on this chain and and the system take
- 13:00
takes care of the rest um so here in this case for the avado near package there's it's a simple wizard where you can so it spins up the node so it starts synchronizing the blocks at the moment you install the package uh and then through the the information that you get from the near website you can set up and then create your validation pool and create your staking keys and then here there's like a simple interface we can just upload uh your staking key and add it to
- 13:26
your to your notes and then it just starts validating as long as you're within the the tier of uh of state that you need to put in on the next screen uh this is also one of the maintenance screens of the of the package so each package has besides the the wizards screen also has like a sort of a maintenance screen where you can dive into more detail so if you really want to know what's going on with your validator um this is a screen to go to and it also
- 13:53
outputs like all the locks of your validator um so you can also consult that you can like upload and download files from the from the package itself restart it and so forth so all the the more in detail maintenance is to be done there since not all blockchains of course are fit for running at home so some blockchains are better than the other we offer two options so we started out with only like sort of the concept of solos taking at home so which is the
- 14:26
avado at home so it benefits theirs it's just a one-time payment so you just buy the box it's like the all the updates from the for the whole lifetime of the box which is approximately two to three years uh is included in that price so there's no additional fee for these updates or so so it's all included so it's a one-time payment then you own the hardware yourself and that's sort of the best tier of decentralization that you can get on the other side because we have for
- 14:51
example a lot of customers in the us and in the u.s is like the the power grids is often much less reliable than for example in europe so a lot of times nodes go offline and so forth if you don't want that we also have a solution a navado that you can run in the cloud where we provide the software on a server for you which is then so you're not paying you're not buying the hardware then you're renting the hardware from uh from us and that's like more interesting uh points for if you
- 15:22
want to have stability or if you don't have the bandwidth at home to run that if your internet line is capped for example then you can also opt for that solution yeah so we we've made we've run a validator ourselves the mainnet validator you can find us in the list so we've had quite some experience now for the last year to to run the mainnet validator and if you're interested to to delegate to us we even have a zero percent fee that we will keep so there's no reward going to us we
- 15:54
maintain it because we really think this is interesting for us to to learn from and to do so um so if you scan the qr code you can directly delegate to us if you want to it's really easy but in general we our goal is to really take the user from the investment he made into a token to really validating the chain itself so there's a lot of fear involved first of all because most of the users that have a token are not developers you know they've invested in
- 16:29
this and they like the technology they like the philosophy maybe but they don't have the skills to run the the note themselves so we take them from fear to being really a confidence confident staker at the end and we do this mostly through the help of our community so we have a great incentive program inside our community to help each other and we do this through the support so we take a percentage of our sales of the revenue we do we take this as a budget and we put this into support
- 17:02
and our community is mostly on telegram we're using telegram to communicate every package every every chain every node has a different channel on telegram and each of these channels has a bot integrated we call it avadin and avadin is sort of recognizing if somebody thanks another person so if i get support if i have a question and somebody answers this question to me and a community member
- 17:28
then i can thank him there's a specific sentence i have to write but it's very easy it's dish praise two and then you say why and this is recorded by avadin and at the end aberdeen arbot then gives a monthly review of the the praise of the thank yous and we simply divide the budget that we have among the people that gave support and this can be between twenty dollars or thirty dollars per praise per thank you depends on the sales and we think this is scalable or
- 18:01
we see this is scalable because the more people buy devices the bigger the budget gets but also the more questions will be asked for support so this goes hand in hand if there's less devices we sell there's probably less questions because less new users join and so on so it really scales up and down for us perfectly and we are a small team and still have a great community support so there's
- 18:26
we've seen that uh people that come new to our channel are really impressed by the by the response they get so we have uh also a gamified approach so we have this this list of uh people that that give support and you can look into the list you can be maybe on top of the list but at the end it's really the the incentive um the payout we do which is really nice for for people to earn a second income and this is again something passive income is is the main topic we also try
- 18:59
to solve with uh with the device and you can see some some of the users they they tweet about it and they they really like the kindness the the approach behind this so we have a very helpful community then there's no they realize that we don't have a big team and still the support is really really good um and again you you can earn money by just running the box and helping other people so that that also helps you
- 19:29
and in addition we also have an nft i'm just explaining this because it's maybe a use case that is very helpful and is i think it's coming up so we use an nft with every sale so the user can mint his own nft and the nft has a purchase date has some information about the purchase itself but not user data there's no user data himself because we don't need to know who who's the the user but we need to know you own the device so it's proof of ownership is this nft for us
- 20:03
and if we give we have a two year warranty on the hardware and if a user has any problems he can sort of show us the nft shows that he owns the device and then we can give him uh support and then do maintenance on the device itself in addition and this is something we will roll out in the future access it will also be a digital rights management tool so the nft will give access to
- 20:28
certain parts of the of the ui of the software so that we definitely know that this person owns the device and is able to use it so the nft for us is not is not artwork it's not a rock it's not a an ape or a punk it's really proof of ownership and that's very helpful for us and again makes it we use the blockchain technology in in its core version and yeah coming to the end already maybe you see our pupils
- 21:02
we love nir we really think it's this is a great technology and we're happy now to with the chunk only producers we finally can can sort of offer something to the community to actively individually at home participate and we hope that the community also loves avado at the end and uses us and if you if you can and want to please visit us on ava.do so it's our name with adopt between the a and the d ava.do yeah look at our products and reach out
- 21:36
to us if you have any questions and i hope this was helpful for you thank you very much not sure if there's any questions now we still have two minutes maybe we need a microphone sorry for that there's oda hi i was wondering if you could elaborate on the economics of running your own nodes so have you got any data on the likely payback period for somebody who buys one of your hardware
- 22:21
yes it all depends on the stake you put in but so first of all the the the the um the thing you don't pay to is is your or you don't pay a margin to a third party so there's like sometimes five percent up to ten percent or even more you see on the validator list so you have to calculate that that is uh the return you already get then the amount of stake and the return you get from that is is based on the
- 22:47
blockchain you stake on and the amount you can stake on plus you can get delegations and the reward or the the fee you take from it so that i it's it's not i cannot generalize it but it's usually within half a year you can uh sort of re have a return on investment and the only cost you actually have is electricity and bandwidth like your internet most likely you will not buy a separate
- 23:10
line for this device you will use the internet you have and energy consumption is like one kilowatt hour per day so that's it's like a light bulb you know so it's not the cost is not very high it's initial cost to buy the device but then you have a nice return of investment and we see the device running for three four years until you have to probably renew it because the technology has evolved
- 23:34
already thank you time for one last question if there is one okay if not thank you very much and again see you on our website thank you so much of auto team um it was really exciting to learn about all the different ways you can help users on board from a validator perspective
- 24:37
so next up we have pagoda um blockchain development made easy and speaking from pagodas austin baguio
- 26:18
thank you everybody for your patience we're just sorting out a little technical difficulties with this computer and we'll be right back shortly
- 27:28
all right hey everybody can everyone hear me can i get a thumbs up if you can hear me how's everybody doing welcome to nircon yeah this is awesome day two um i've got a quick question before i jump in how many people have actually deployed something to testnet on near anybody anybody on mainnet anybody on mainnet okay cool people without their hands up i'd love you to open your laptop set because we're going to change that today we're actually going to go and launch an app
- 27:53
today um so i'm getting ahead of myself so i'm austin i'm a product at pagoda i'm working on the pagoda console and i've studied software engineering marketing done everything from product to software everything in between and i'm from toronto ontario last week i'm actually coming off the legs of a really long cycling trip we do about a thousand kilometer trip every year so in august my entire personality
- 28:16
turns into that of a cyclist you can ask my friends it's pretty insufferable and it's very hard but i'm going to talk about stuff that's not hard today and i'm sure that you probably heard the name pagoda so our entire mission is just to make web3 development as easy as possible so uh we're going to try and do some of that today because what i'd love to share with you is how we're going to build on pagoda in literally 15 minutes using a tool called pagoda console so
- 28:42
we're going to go all the way from just starting brand new application we launched this amazing feature called pagoda templates and that makes it as easy as possible to get started uh launching an app and then we're going to go through something we call pagoda interact which is interacting with the chain directly i'm using if you're familiar with like a postman it's similar to that but we're actually interacting with the chain directly and then we're gonna go through some amazing features like uh alerts analytics
- 29:05
enhanced api and all that other stuff so are we ready laptops open everybody awesome cool um i would just want to direct everyone to pagoda.com if you're on a laptop that's the best way to do it otherwise scan this qr code and it'll bring you to a link tree that just has a ton of uh like workshop demos the link to the site and and all that fun stuff so i'll leave this up on screen i see some phones out
- 29:30
okay amazing awesome cool i'm gonna jump into the live demo we're not gonna go straight into questions so let's just get started so here's oh i'm going to zoom out just a little bit um so here's here's pagoda console and you'll notice that the first thing that we have on the right here is an area where you can just go and launch a project we just finished the nft example so this is the one that we're going to walk through today
- 29:54
you'll see that when you open this up it's basically a quick landing page where you can go and view the code on github so think like this is powered by our near example so we have an entire github repo called near examples and this is the nft example where you can go in you can explore the code do all the fun stuff that you'd want to that you want to do and this is like just essentially like a very real smart contract that we'll see that we've audited and that's working so
- 30:19
let's jump back into the console and we're going to just deploy and explore this project awesome cool cool so i just clicked on deploy and explore and what's happening in the background right now is we're doing what we call a dev deploy and this is essentially um creating a new account um funding that with some near on test net and then we're in the background we're building that contract so building and
- 30:50
compiling down uh to wasm and then deploying that wasm uh right to test net so you'll see that uh it's a dev deploy so it's got a little bit of a funny name it's like dev plus some time stamp set of numbers so we'll just go ahead and we'll click on that and you'll notice that um similar to when you open up explore like everything happens the way that you would expect when you just launch something onto testnet so we just show that right here right within console so let's go ahead and let's mint an nft um
- 31:17
the first thing that we need to do is we need to initialize the contract so i'm going to just go here with new default meta um the owner id i'm going to use a testnet account that i know works uh austin test. test that this doesn't take a deposit and then we can send a transaction um it's gonna ask me to log into sender wallet do you wanna jump up and just i've been having to switch laptops just
- 31:47
to use my colleagues and i didn't have my uh my wallet logged in yeah sure awesome so instead we're gonna get some bonus coverage we're gonna go through our wallet select flow where we can see the different wallets that you can log into awesome so this is using wallet selector so as you saw there's a few wallets that we support for my near wallet sender wallet and amazing yeah perfect
- 32:27
cool thanks buddy yeah so you might just want to switch the when you're creating it cool awesome so let's try that again let's uh so essentially when we're initializing a contract i'm just going to go ahead and send this transaction and now that i've logged into a wallet this is basically just going to hit the blockchain directly and as we see the transaction executed successfully so similar to an uh similar to within explorer you'll see the transaction results here so i can expand
- 32:52
this it'll give you the response it will give you the output it'll give you the inspect where you can go and look at like what block height was how much gas was actually burnt to all that fun stuff and now let's do the let's do the actual fun part where we can go ahead and mint an nft so can id we'll just do one two three receiver id test that and i'm just going to include a blank uh
- 33:20
some blank metadata and i'm going to attach way too much near here just to make sure that the deposit works and then we're going to go ahead and we're going to send this uh it should be able to min yeah yeah um awesome we'll go ahead and we'll approve this transaction oh sorry what is let me let me initialize it with the mt1 redeploy it okay cool awesome i'm just gonna go through this
- 34:18
flow and just just deploy it again just to make sure that we can actually hit that contract live this is the fun with live demos when the hdmi doesn't work you always have to change your laptop and make sure uh to run uh turn it on new accounts okay cool was it sender or was it yeah this one am i near yeah okay awesome cool
- 35:27
okay so like i mentioned we're just going to initialize this contract we're going to use the right address and then we're going to go ahead and we're going to mint an nft uh all right two three zero id we're gonna just gonna pass in some empty json here but you can attach the metadata in there that'll actually give you like the nft with an example or that that actually goes like a live image awesome so it's going to ask me to go ahead and sign this transaction
- 35:51
we'll approve this cool and once again as you can see the transaction the transaction executes successfully so you can see it here um with the token id the um the receiver id and then all of the metadata where you actually have like the image and and all that uh like the image hash and all that shows up here so the next the next thing that i'd like to show off is alerts so for those of you that actually have contracts running on mainnet something that you definitely want to know is when something happens to the
- 36:25
to your application or to anything that's happening on chain so what you can do is you can uh you can set up an alert which i'm going to have listen to this contract specifically and you can set a bunch of different conditions so think like if you have a successful transaction or you can look at a specific function name so let's say you're building an nft marketplace you want to know when an nft is minted so that you can go and do something and go and celebrate it but another one which is really important is
- 36:49
like let's say you run like a d5 protocol or something like that and you want to know if like your account balance has changed like you build it you're building a bridge or something like that if your account balance gets drained by more than whatever 20 you can set some uh some alert up that'll send a notification to you so for the purpose of this demo we'll just take a look at what a successful action uh looks like from the nft contract that we just initialized and here's the different destinations that you can pick
- 37:13
so you can send them to telegram you can send them to a web hook which is amazing because you can then automate what the response is going to be so you don't actually just have to get an email and do nothing you can set up a web hook to do pretty much anything for the purpose of this demo i'm just going to use an email address i've got a temp mail address here so i don't go and spam
- 37:40
awesome and i'll just go and verify this email awesome cool so now this email uh now this email address can receive once i uh once i verified here this email address can now receive uh uh email notifications we do this obviously so that no one can use our pagoda console as a doxing machine and just send a million alerts off um great cool so now that this email has been verified it's been automatically selected so i'm gonna go ahead and actually create this alert
- 38:13
we'll go back to we'll go back to pagoda interact here and we'll send another transaction off we'll just mint another nft let's give this and we'll use the oh we'll make this also the receiver we'll attach an empty payload and again i'm just going to attach way too much near for a deposit to make sure it goes through and then i'm going to go ahead and send this transaction cool so now so now what we'll see is that or
- 38:42
once we've signed this transaction we've successfully minted this nft and what we'll see in this um in the uh let's make sure that this actually sent successfully so let's take a look at the execution okay amazing this is our new token with our new id let's go and take a look at our email inbox amazing that alert fired successfully so this just notified us that we have just had a successful transaction so again imagine like an account drain some
- 39:28
specific function was called this will just help developers have better control so they can know what's happening to their application before their users do um amazing so one uh one more feature that i want to show off is i want to take a look at uh i want to take a look at some analytics so as opposed to just looking at the boring analytics from the function or from the contracts that we just called i'm going to go and find
- 39:53
i'm just going to go to explorer and i'm going to try and find ref finance or something actually does anyone have a mainnet contract that we want to take a look at with analytics which one i can't i can't hear you unfortunately um cool let's just look at some recent transactions on mainnet and we'll find an account this is test oh perfect cool okay all right let's do let's do sweat dot welcome dot near they're here with us today let's let's hope that they've
- 40:39
got a whole bunch of uh they've got a whole bunch of uh transactions that we can take a look at so here's a mainnet address so you'll notice that um you'll notice that this is not a contract that i've worked on right like you can just go to mainnet you can take a look at any contract because this is just pulling data from chain so um now i'll go ahead and take a look at the analytics page this is powered by wamby
- 41:10
okay this is typically powered by wamby sir okay here we go amazing we can all blame conference wi-fi for that one right like i think that live demos are always a uh of course and of course this transit this uh uh this contract has very few results i think the ref finance one is v2 dot let me try and find uh another no do you have it do you have a good one i've got a bunch of analytics here yeah near near khan
- 42:07
awesome awesome cool so what you'll see is that instead of having to build analytics from scratch like anybody would from for their blockchain application we just do it for the developers so that they can just jump in and they can spend more time coding more time getting insights and more time growing their application as opposed to having to build an analytics suite so we show things like total number of transactions total uh total transacted value liquid balance total gas spent uh and and all this
- 42:43
amazing stuff so super cool um the next thing that i'd love to show off is like now that you've actually built an app and like let's say we're going back to this nft marketplace example um you may want to you may want to actually interact with some data using what we call the enhanced api and what the enhanced api is is that it's a it's um uh it allows allows developers to go and
- 43:08
query uh like data that you normally would want to find on chain for things like nfts and for other coins so for example you can take a look at the nft example or the like the nft enhanced api here and we've already pre-formatted the schema to get an entire user's collection um so we've already formatted we and we've we've built this schema out so that you just simply have to add your api key and then you can uh you can find someone's entire collection so i'm going to put one of my colleagues on blast here she
- 43:40
said i could do this and i'm just going to go and grab her entire nft collection and this is like again just super simply querying the entire like actual on-chain data using our rpc service so that you can actually just return values and you can you can interact with the chain directly using this so you'll see that this response actually just using the api key and the account id didn't have to build an index or didn't have to do any of that and i was able to grab actual
- 44:04
on-chain data to actually return nfts so let's take a look at the first one javascript sdk launch amazing that's a good selfish plug that was the most recent nft which is our launch nft for the javascript sdk so super cool amazing that's uh that's what i wanted to show from developer console so i'm just going to jump back into this presentation and let's just like do like a really quick
- 44:28
reflection on what we did there and i want to invite everyone to go back to pagoda.com so that they can actually go ahead and launch this nft project from scratch you can become a web 3 developer as quickly as possible so what we did was we launched we launched a project using pagoda then we interacted we interacted with the live on-chain data using pagoda interact and then we took a look at analytics that were pre-built
- 44:49
right out of the box we set up an alert and we used enhanced api in order to grab some more data off chain so this is the totality of what pagoda is right now what pagoda console looks like and we're going to be working incredibly hard to make sure that we can keep shipping as many features as possible in here to just make developing on near as easy as possible so cool thanks everybody
- 45:13
is there any questions cool awesome thanks again oh there's one question over here excuse me uh will it be possible to deploy uh on mainnet using pagoda console uh not currently but that's definitely something that's on the roadmap is we want to make that entire deployment pipeline as easy as possible so right now we just have the templates that do that dev deploy onto testnet but i could see very very soon in the future hopefully we'll be able to do the entire
- 45:46
end-to-end suite okay thank you yeah of course any other questions awesome i'll do the shameless plug once again you can find anyone wearing these pagoda t-shirts we have the lanyards on we're walking around we've got a booth over there where we'll be doing demos for the rest of the day so you can go and check out pagoda you can check out the console we can take a look at any on-chain uh interaction using our analytics and we can walk you through the the console again
- 46:11
cool thanks again oh another question back there yeah hi there um is it possible to also launch smart contracts or just nfcs yeah yeah so the um uh the uh the the launch and explorer project the for the uh we have a repo called near dash examples and there's a few in there there's like nft fungible token guest book and a few other examples we finished the nft example just in time for near con so like in the very very short term future we're going to be focusing on some of the other ones so in
- 46:41
the uh in the long term you'll be able to launch a ton of contracts uh on the uh are using using pagoda um as opposed to just the nft project perfect thank you of course awesome was there one more i thought i saw one hand over there no okay great awesome thanks everybody thank you so much austin um next up we have vadim lin from proximity slash near i think he does about everything and
- 47:49
it's just a massive builder in the space and he's going to be talking to us today about community building from a developer's perspective thank you hello hello okay please raise your hands who knows how to build a successful organic crypto community so me isa it's quite a mission impossible but i will tell today about how few best practices what we found building our newer native crypto community for last two years and several interesting applications on chain applications what we build in
- 48:29
order to make our community members happy so hell i am vadim i am i have been working here for last year and a half mostly i'm building some smart contracts and i came through the hackathon okay so this is our community what we have for russian-speaking audience uh near native community for the new applications and aurora eastern europe community so this is just a random slide from google analytics about one of our blog
- 49:05
posts so russian speaking countries uh there are huge of them like 260 millions worldwide speakers and we try to build this regional hub around those audience not only cis countries but there are a lot of speakers from u.s from europe and people in those communities they suffer quite a lot because blockchain information is quite complex a lot of complications so the complicated stuff
- 49:38
say terms some misunderstanding false information a lot of rumors which come ahead of facts and these all create a very toxic environment in chats because people mostly come with some problems they have uncertainty about future about price volatility hacks and how we are mitigating this we are trying to create some long-term strategy uh to support our people our crypto community
- 50:09
so our main goal is to give full picture and understanding of what is happening and create effective content to showcase the power of the whole new ecosystem so we distinguish two kind of community members supporters and fans there is a quite interesting phrase in english where the fan is a fan who only pays attention to the favorite team when they are performing well say one blockchain has some pump and we are speaking about this blockchain next day the price is dumping and we go to another chat to another
- 50:42
blockchain so instead we are trying to transform our fans to supporters uh supporter knows the feature of the blockchain it understands some different differences from one blockchain and to another he knows and appreciates our values say decentralization um data ownership trustless and uh maybe just one example he holds talking not in a liquid form not on some exchange but instead he has it on chain maybe he is taking on the protocol and
- 51:13
maybe he is using some gaps so one of the biggest part of our job is like routine stuff where we're making the translations with high quality translators with the blockchain experience translating a lot of stuff not only forums but some ecosystem use from new weak near insider government post like community etiquette we help to translate uh wallet explorers several d apps like refinance to russian ukrainian and uh we are building in order to
- 51:46
onboard people what we found in various channels we are creating a lot of different social activities so not only one main group but for example we have okay we have huge telegram group and announcement channel for near and far both for neuron aurora and also we're supporting chat for gaming play on year for developers open web dev and uh for traders so all of them have some huge stats
- 52:14
uh so also we have a twitter and blog so this is how like i try to photoshop a bit how how we have attraction for example we we try to find some people from other sources not from neural ecosystem but from outside attract them and then create a set of onboarding funnels uh so every person will be able to find some interesting stuff for his own interests and uh try to achieve something uh with within this is
- 52:47
within his interest so i think the biggest stuff what we are doing we are making a lot of ama sessions not only with me with ilya with alex shivchenko with all the stuff i think we have at least 50 big ama sessions in in and i'm talking about huge communities like exchanges very big uh social medias uh the good stuff that most of them were free of charge because interesting content is what social media also wants to have so they want they are happy to invite elias say
- 53:18
or alex chanka and we we make we are making this a session we attract people to our channels and then we are doing some ama session of near project within our community so we don't go to other near ecosystem projects to find some people but instead we are giving people from from abroad to new york projects uh this is slice about influencers i really like what we how we're working with them uh so we we come to influencers with
- 53:50
some strong big audience with our target audience like maybe some youtube channels with hundreds of subscribers with huge traffic and we are offering them monthly kind of partnership monthly agreement within this month influencers have to perform or how to make some posts about near maybe some ecosystem updates news uh so we have special dao for this funds and uh we are doing the ama session in the
- 54:23
beginning mostly to educate influence themselves like people who are running this channel uh to educate them about your because neuro is very different because they have quite a lot of difference between other blockchains so we are making ams session we create some chat to spread news about uh chat about new york just to community just with this influencers and we are maybe maybe we extend this contract for several months then we stop doing it and in the end influencers
- 54:55
already know the ecosystem well he already receives some maybe some interest to advertise some advertising requests from projects within the new ecosystem not from us and we as guilds support some useful and meaningful content which is doing by this influencer by reposts by some maybe again with ecosystem grants and another stuff where we're helping refreshers to establish stinking notes so we are helping them to with some recommendations about installation uh
- 55:32
maybe just sending some links how to do it and uh we can help them with the initial stake um some communities actually active community members may just take they know they're talking from uh they exist you know to this new node and in the end like we have for three influencers who became skinny in the game with near so when he mentioned near he always asking to validate to his note uh and his his he
- 55:59
promotes near like he is telling to his audience that this is a long-term interest for him and if he is getting some rewards and tokens he mostly stakes in his note not sending it to exchange so just uh we did it several times and it works quite well another interesting stuff what we found what if what we what we got uh our contests uh they are quite price efficient for example we made several youtube contests so we
- 56:32
say we have 10 prizes and we have maybe 50 or even 100 different participates so the whole youtube became filled with some videos about near about or about some interesting activities we have and uh interesting approach what we found if we put a decision about winner of this video contest if community members are voting for the winner then these content makers are coming to our groups and trying to promote the content
- 57:02
in order to get vote and they immediately receive feedback and they're trying to and receive some subscribe subscribers so they have to continue and make new content about near okay now maybe closer to technical stage we made several on-chain applications uh if you remember the slide to onboard people just from uh chat member into blockchain user so we made a quiz chain which is application to create uh on chain like fully on
- 57:36
chain uh quizzes it's a contest where every participant answer question and update the cash in the end he has some final cash and if owner of the quiz reveals a successful cash then automatically rewards may be distributed to the winner so it's it's cool tool to it's a great tool to make some activities during ams session because we can tell that okay listen carefully and in the end we will enable this quiz and if you were good enough you will have some free tokens
- 58:08
so quiz chain the torque checked out and it's open source another stuff what we have what we have is uh uh chipbot uh it allows users to just send t button chat say in telegram chat and it's an interesting tool to just and both people because they can i will i'll put it show it later we can they they can have a blockchain account with funds got from tips so once we made the tibot festival it was interesting activity
- 58:38
community members gave sponsors pool sponsored pool in order to have some nft i will speak about our energy later so users give some prizes and they were distributed among some community members who got the most amount of tips during the festival so people created a lot of tips or sorry memes some fun stuff videos just in order to get some rewards uh but for us again it was free only we spent on the nft for
- 59:10
sponsors of that contest and it was like hundreds of near we collected during this event also we got some meme contest okay we focused about some on-chain activities so we made the uh tournament with some early lists from nfc games from human guild uh white list and the early access nft and we had one interesting contest with rare finance where people shared their best strategies about farming and we checked on chain activity
- 59:41
and found winners of that competition tipbot enables account creations uh as you know on your their accounts are not free so what we did we made a simple tutorial how to make a account so if you solve a captcha if you subscribe to our channel it gives several new to you so you cannot easily fake it without new a lot of sim cards but you but user will be will be very fast and boarded for some
- 1:00:13
activities say to on a pre on some conference just using telegram bot and if somebody is sending link oh sorry sending a tip to telegram then it can be withdrawn using link drop and create newer account so again interesting tool to onboard new users several highlights what we achieved during these two years uh for example binance added trading pair near to russian rumble is 2021.
- 1:00:46
this is a screenshot from detricks they counted a number of main smart contracts and as you see cis region is very very on top of all over the world and now in if you will calculate numbers of minus smart contracts this is stats from meta build one again cis countries russia ukraine got the biggest amount of participants uh much much more than other countries and the whole europe this is uh thanks to aurora plus they shared
- 1:01:24
registration aurora plus as you see also with with with huge advantage uh our this aboriginal hub is leading on our plus registrations oh and also so i spoke now about attraction now let's speak about engagement and retention we found one interesting approach there is a very interesting way of getting interest in blockchain called launchpad when you can have some tokens which are not listed yet before the tge
- 1:02:02
so you have some like some you like you have a lottery ticket maybe it will be very expensive after all so we are trying to ask all projects within the new ecosystem to come to us and distribute the early tokens even before the tge token generation event so we have this for burro cash for sweetcoin for aurora once uh so it ended always gathering a lot of attention so people who already know sneers they come to us for these ama sessions some contests and trying to win this as we
- 1:02:33
said lottery tickets for new uh tokens and again again as you understand uh this is rewards comes from the ecosystem we are not paying a penny for this another stuff we are making full tutorials about how to participate in some interesting projects say why how to become white listed on nft giveaways some test net stuff for example near cloud we distribute a lot of invites to new york route with tutorial how to work
- 1:03:04
with this pro system uh we had we distributed a lot of our plus plus invites to influencers and our active members we had some activities with uh spin with uh sander during the stator guild wars we got first place which was first ama with the new my new wallet team in the new request so just a lot of projects are coming to get this attention of those and thousands of people another stuff what i want to share with you we made this nft for our new native community so we just give away it for free
- 1:03:44
uh two winner of contests events hackathons some quizzes so if people show that they're good enough they know something about near we are happy to give our nft and this nft is tradable it can be sold on a marketplace or it can be hold it and the holder of nft participate in continues some giveaways or invites share distribution whitelist distribution and where we will enable paras taking very soon for the uh for for the holders of nft uh so so again some ecosystem partners
- 1:04:27
give some rewards for our activities and we'll share it to the best guys through the nfc uh distribution so i think it's it's interesting approach and just use it if you like so it's much more simple to just give free nft instead of giving some liquid tokens which will be sold immediately on exchange we support a lot of other communities mostly ukrainian which are having ukrainian language and chats near ua in your ua guild
- 1:04:59
we have we are maintaining your games supporting them with reposts of the activities and stake wars channel for the last activity okay some uh if some if we maybe this youtube video is viewed by your channel applications building on your you can come to us and we can help you with music coverage uh i'll prepare some activities for you and this is a context of guys okay probably i will share link to this presentation we have community members we have translator translators we have
- 1:05:36
moderators and that's what we are doing for pushing new ecosystem in our region okay i have two minutes if you have any questions i can cover them thank you okay so probably next i'm finished then hello everybody and thank you so much we're going to be taking a short break and we will be back at 1 35 with our next presentation the graph how to build sub graphs on mir with simon schmidt thank you so much
- 1:10:22
so
- 1:11:57
then one
- 1:12:58
god oh nice hello do you hear me yes nice i like the setup actually with those headphones it's a cool idea otherwise those conferences are so loud all the time like everybody's kind of speaking and shouting and you have those these av stuff so hi um my name is um simon emmanuel schmidt i'm a solutions engineer at edge node working on the graph protocol and yeah my i was starting working in blockchain in 2017 working for a d5 protocol the graph was not around and
- 1:13:49
leading the frontend team and was really always running into the problems of getting data from the blockchain it's horrible right i mean like we have this huge blockchain and uh and there's this data and it's all in the same pot somehow and it's so hard to get it out and to bring it to a front end in an efficient way and um then at some point they discovered that there is actually a solution to this problem and it's called
- 1:14:12
the graph right and uh and and then um i wanted to actually work with it but the graph is not so interesting oh yeah per se um when we are in the near ecosystem so the good news is like there is the graph integration with the near actually since one year so since one year you can build subgraphs or near it was announced at last near cone also actually here in lisbon um so that that is possible so this relationship began very early and
- 1:14:42
it's not only that um you can use subgraphs or near it is also that near was the first non-evm compatible blockchain that was integrated into the graph other blockchains followed like rv and and cosmos right now we're working on polka dot and uh solana integration but but near was the first one and and nier is also that blockchain with an exciting technology when it comes about kind of making it easy for user making it fast having a good onboarding experience and
- 1:15:13
i think the graph is like a crucial part in in that journey especially for web 2 developers because in the end what what you can have for your dapps and for your smart contracts or near is a very neat graphical interface but we'll look into this uh in late later slides right um so how a quick refresher of how is data stored in a smart contract so when you look at the crypto punx but like as an example um it's basically just you can think about it's a table and it's a
- 1:15:45
static table that you see the current state you see in this table like who owns which punk right now and that data is easily queryable and you can you can do these contract calls and and get it out but what about the provenance who had it before and what was the price how did the price develop of that certain nft over time that's that's data that you not easily can query the the
- 1:16:08
blockchain for in order to get to that data you would need to go through uh all the transactions in the blockchain and filter out the ones that are interesting for you and and kind of store that somewhere right so what we what we want to have is kind of this time machine thing right so we can we can um we can travel back in time and see like how did the state of my contract actually develop over time and if you want to do
- 1:16:31
this um then you come up in the end with a complex indexing solution um yeah and there are different ones it can be it can be quite complex um but we dive into it a little bit more now so the problem with data on the blockchain you can you can see it um as the following so initially um blockchain in in ventures you know like they were very like decentralization maximalists and um which is still still something i
- 1:17:01
think it's cool right and the idea was like to have a user interface deployed somewhere on a decentralized data system like ipfs for example so that consists html the css and the javascript and it directly communicates with a blockchain that in the best case you run some light client or or full node on your on your computer so you're kind of like completely free for from all the dependencies from any centralized and entry point that that was the initial idea it turns out that
- 1:17:32
the blockchains and that applies to to ethereum but also to near they are primarily designed for writing so you have an incentivization mechanism for writing right you pay you pay transaction fees so that the validators actually include your your transaction into the blockchain and that's how it works but there is no incentive at all to actually provide you then that data and that that's a huge problem
- 1:17:56
and um so so in the end you come up with weird stuff like you know for the javascript developers amongst us like you you you do you you call a contract you you then you usually you call a centralized json rpc provider who provides you that data then you wait until you get that data into the front end and then you have the first step and then you do the next okay how many nfts do you have and then you need to loop through them and again you send queries
- 1:18:21
you wait for them and then and so on so forth and like this code if it runs and you you own maybe like 10 to 20 nfts on that contract um and every of these calls takes maybe i know 200 milliseconds you're quickly in in a front-end that weighs two to three uh no 10 to 20 to 30 seconds just to display your nfts right i mean like when we think about user experiences like nowadays uh a page should load in 200 300 maybe 500 milliseconds at max after
- 1:18:52
that you lose the user they're like maybe something is wrong like if i wait five seconds on a page and then then i think like maybe the page is broken can i call support um so how should then a modern depth architecture look like so what what we are proposing here what the graph protocol actually is is kind of this indexing protocol that lives between the user interface and the blockchain which
- 1:19:17
then for you indexes exactly that data that you need in your front end in a way that you can query it then um and that's that's true i mean the graph exists as i said like the ethereum and all evm compatible chains but also near obviously aurora which is also evm compatible chain is is available and we will dive into it how to do it later um yes so in the end you come up with this
- 1:19:40
very neat graphql query so who who of you knows graphql please raise your hands yeah who knows rust ah nice okay we have a good rust community here who knows um web assembly or assembly script assembly script yeah okay cool nice then who loves javascript love love all right okay so for the rust people amongst here i see we have a good amount of rust people so the graph node is written in rust and
- 1:20:10
we also recently launched this new technology called the substreams which i'm not going into it in this talk but it's something that you might want to look look into that you write like parallel parallelizable indexing mechanism in rust so this is actually very cool and we hope we can bring this up streams also soon to near um but until then there is this um there is a preview a technological preview that you
- 1:20:34
can try out it's pretty cool we were able to kind of increase indexing speeds to 100x from the current um uh serial processing that's done with uh assembly script like you write the subgraphs in the assembly script you have to look we have a look at that later um yeah let's move on so graphql that we have so as i said the graph can be say like this api for vibrant decentralized future we want to build this together like nir wants to build these the graphs to build this i think that's why we are all here um
- 1:21:03
currently on the on the hosted service which is a centralized proof of concept we have one billion queries per day so like big names like uni swap or audios using the the the hosted service or also the decentralized network and also like one example that i want to highlight here from the near ecosystem is the linear protocol this liquid staking protocol near um they wrote a very good subgraph and that they really did some great work
- 1:21:27
of of how can the graph be used or near i have links in my presentation which i will tweet later um where you can see how they did it they have like a great tutorial um yeah that's the graph um so also there is the decentralized uh these are indexing network protocol we announced the sun setting of the hosted service um a disclaimer here we will never kind of stop something working on the hosted service that does not work on the
- 1:21:51
decentralized network and with near there there there are now starting to talk like how we do decentralized near indexing but until then be rest assured that your subgraph will running on the hosted service but like the decentralized network is nice we have like 180 indexes worldwide there are individuals they're not really associated with the graph or graph foundation we have a
- 1:22:14
redundancy uh they are cheap fast cheap reliable and um yeah so we're working towards this global open api where all data is available in access syllable in a in a in a way and you have like dabs that are never shut down by a centralized entity because they want to change their api or change the business model right um moving on so you have to truly decentralize steps um but yeah wait um so the graph is nice and stuff but like on
- 1:22:44
there is on near is this near indexer right so so what is the near index and why should should you use the graph uh when there is this near indexer so this is the meme so i know like a lot of near people started to use the near index but there is problems with the near in index i mean you have raw access to sql you can send queries there what you have there is kind of raw this raw storage of data but what you wanted what you want to
- 1:23:09
have in your dap is actually kind of a dedicated schema a dedicated um database for you that that serves your use cases it's not generalistic and the graph actually uses the near-eight indexer under the hood we look later on into the system architecture and sub-graphs so why should you use then the the graph like sub-graphs are a battle-tested industry standard as i said like there are one billion queries
- 1:23:35
per day on the hosted service like there is a huge amount of sub graphs from a lot of d5 protocols from a lot of different chains which which all use kind of these open source standards you can define and fill your own database schema so you can come up and say whatever you do like i talked with people they want to do you know fractionalized ownership of real estate and then you can come up wow okay i have owners i have real estate i
- 1:23:58
have fractions and then you define it so that it makes sense for your application and uh and can can really have the best of it then you can also adhere to the standard so for example subra missouri the recent addition of the graph core dev that was announced that two two months ago they started to write schemas for different verticals like amms landing protocols and so on so forth that all adhere to the same schema so you if you have if you're in one of those verticals and you want to be integrated with massari you can reach
- 1:24:30
out to them and and work with them together so that your subgraph adheres to their schema so that their data intelligence on top of subgraphs can can also create a data that you have that's very cool and in the end like i love graphql and uh having a graphql api for your uh for your dap is very cool so this is how it looks um on top we have the user interface again like hm css we know that and then we have the graph that you query via graphql the graph gets its data from it from the near indexer
- 1:25:03
with sql and then the near index or somehow gets this data out from the near blockchain if json rpc or i don't know actually how this is done but um you see in the end kind of this this reminds of a traditional uh full stack application we have a front end you have craft quality of a database and you have a server somewhere in between but this is kind of the decentralized future um yeah so this is existing infrastructure so you don't need to care about this right so you write the
- 1:25:28
subgraph you you publish it you deploy it to the to the host service and boom it works right um so what we what i love to think about this approach is this standing on the shoulders shoulders of giants right so you can think about the graph and near as giants and so you as a developer you're kind of leveraging what's existing there to build your your amazing experience for your users you don't need to reinvent the wheel and then and write your own index so that you need to run on a centralized server
- 1:26:00
that might go down or whatever or be censored or whatever so you can just use it and so in the end we have f3 which the idea is to have no centralized servers right cool so far cool right subgraphs nice so how does it actually look like i wanted to do a live demo but um my computer is a little bit uh in strike but i i talked with you through the concepts and uh later on i will display again my twitter and you can always dm me if you have questions how to write a subgraph or or if you
- 1:26:34
want to do it and we can look at this but um yeah so what is the subgraph you can think about the subgraph is actually as i said on top it's a it's a it's really a database that you write the schema for it how you want to have your data stored and accessible and then you have um on the on the right side you have um the blockchain and then you have this mappings that you say okay i'm watching the blockchain for stuff that's
- 1:26:57
happening on on or near you you're watching those things transaction receipts this receipt and and for a certain contract we look in this later and then whenever they come you trigger a so-called mapping which starts to unpack what's going on read into the database what we already have and starts to update the database the sky is the limit you can do whatever you want but this is roughly how it works you define a schema and you define how you want to scrape data from the
- 1:27:21
blockchain and store into the database schema then in the end what happens like all these transactions which are otherwise unordered just on top of each other are nicely um kind of ordered by the stopgrass into into databases that um provide you the data um neatly organized so this is maybe how it looks like live right so you have kind of this this uh yeah mess of different uh transactions and then in the end you end up with
- 1:27:52
magically sorted um data per per uh per sub graph so this is how it works on top you have the dap and then you have the smart contracts on chain you send transactions that smart contracts which emit events or transactions receipts whatever goes into the graph node the graph node runs some mappings which is an awesome module theoretically for the rust people are here you could you could write those modules in rust because in the end it compiles the web assembly right um
- 1:28:24
yes then you run that put it into a store and on the left side we have the dab that that queries uh goes through the graphql interface which again gets rooted to the graph node and and gets resolved across according to what data that you have uh there all right so near subgroup development in general going back to the nft example so like the question is like how many do you need to think about like which are the questions that my front end has so for for nfts which is simple like how many
- 1:28:56
nfts are they in total how many nfts have these trade who owns what who owned it before what is the price what is the historic price and so on so forth so best to kind of quickly have an idea about like what data do i want to get started and then from that you derive the schema and indeed in the schema you say like yeah okay we have the contract which represents the collection contract has an address or in a in in here it's an
- 1:29:20
account then you have counts you have owners you have a and um and so on you have like single accounts and you have the nfts which are the actual token there you have the token id maybe some metadata associated with it trades if you have them um you can also store sort events or what what's going on with the nft so this is for the nft but obviously for your dab you will come up with a
- 1:29:44
different schema that better suits your purpose um so you could scan the qr code which links to that presentation so you have all this information again i will also tweet that later on but that's maybe something that you want to do right i think we have it cool um so the steps basically you install the dependencies everything the only thing that you need is like a node.js environment on your computer and then you install the graph cli
- 1:30:24
and then you need to know which contract so you can go you so you probably know for your own stuff but if you want to write a subgraph for something else then you go to the to the near broke explorer and start to find this account name and we will look at that later then you initialize the sub graph with a command that we show later you need to set the start block that's something that the initial command does not do automatically and then you could actually what you can
- 1:30:48
do then is just already deploy that subgraph to the hosted service because it already does something if you do this you have kind of an example entity that gets just like all the receipts somehow stored very raw but you can also deploy it and that for me it's always important when i start to play around with new tech i want to have a quick success right it's so it's so hard and there are so many nuances but like by following these simple steps that i also show you
- 1:31:14
a screenshot later on you just have like a quick win and say like oh nice okay i have a subgraph and it's on the hosted service it runs you see it how the indexes you can already query the graphical interface and um yeah and then it's fun and then you see like okay maybe i should um do more stuff i want to have like this data order organized i want to parse this better and then you iterate and iterate and iterate until you have really a cool
- 1:31:38
sub graph that that that gives you that serves your purpose so um this would be the steps so you just run graph in it that's it you don't need to do more then you first you select which protocol so obviously this is near in this time then you give the subgraph name which is your github username slash um the name of your subgraph um then you can create you choose a directory uh then which network you can near mainnet or near testnet um you can you set the contract
- 1:32:09
account and the contract name and boom it works and then uh you you end up with the subgraph again you have the subgraph jumbo the schema and the mappings here quick screenshots this is the subgraph the manifest the subgraph yaml it defines like which account do we watch which which blockchain and so on and which are the the various schema and where is the mapping then you have a schema that's kind of in
- 1:32:35
graphql where you just define a database and then mappings which are triggered for all the receipts that are happening on that contract and then in the end you can deploy to the hosted service and then you see already this is indexing i had the test with these misfits nfts and also you can send these queries and you see already what's going on and you can play around yeah i have some resources here so you scan the thing that you can follow up
- 1:33:06
yeah next we want to really better integrate with the existing dev tools green pagoda the docks etc some validators should become graph indexes and then we decentralize thank you so much uh here is a also qr code with stuff in the graph ecosystem you have like network roles community you can get engaged thank you for your time and i will tweet that presentation later on thank you
- 1:33:36
you so much simone thank you all right that was absolutely wonderful super informative i'm really excited about the graphon near particularly because it's built in rust and rust is one of my favorite programming languages i was sitting right there and he was asking what technologies we all used and i was just getting so excited web assembly assembly script rust even javascript because you know near just released our brand new javascript sdks so you can now build
- 1:34:07
smart contracts in javascript as well um before i introduce our next speaker let me just remind you about the telegram chat if you go to nearcon.org you can click on the nav bar you can go to the telegram chat and communicate with all the other attendees here and get help if you need it so we do have over 2000 attendees here at near con lots of friends to be made all right our next speaker is going to be talking about flux on the
- 1:34:38
power of cross chain oracles jasper hey how's it going thank you mic check can you hear me all right cool all right today i'll be introducing the next version of flux protocol to get started can i get a raise of hands of people that don't know what an oracle does cool so an oracle could be summarized as a data bridge it allows smart contracts to access data outside of the regular smart contract environment usually this would be like price feeds
- 1:35:26
for example for like lending protocols or i don't know you can get creative with it you can query weather data or whatever but it's basically a way to query um yeah data that lives outside of the blockchain so a quick introduction to myself uh i joined uh crypto sort of like started working full time in crypto late 2017 um initially i was doing layer two scalability research for ethereum working on plasma uh eventually that rolled into roll-ups i started building products in the space so
- 1:35:59
built multiple products on each multiple products on near and uh yeah we've been building on air since 2019 so our oracle we designed with the following core principles in mind first of all it needs to be fast that means that the throughput of the oracle needs to be fast so the time between the issuance of a data request and the data request being answered need to be short as possible to enable many use cases while remaining secure so the security is important because the
- 1:36:32
data that is being generated by these by these oracles and being consumed by these protocols actually has a lot of impact if you provide incorrect data to for example lending protocol or a um stablecoin you can create uh that backing bad that there's all of these like security uh issues that could arise if you use bad data or an oracle would be attacked um this is also where the decentralization and permissionlessness comes in it is very important in our opinion for
- 1:37:06
an oracle to actually be truly decentralized we'll get to that in the next slide and we also build it multi-chain natively so this means that the goal of what we're trying to build here is i've been calling the http for web3 we want to build the true data standard for querying real-world data from any blockchain and we want to make it highly programmable so we have something we call fluxvm which allows you to perform certain mutations on data off-chain
- 1:37:38
which can save you a bunch of computational power and allows you to be more sort of like lenient in what you can do with the data or or like the type of data that you can actually query so we believe that decentralizing the data bridge or the oracles is the last frontier to enable truly decentralized applications mostly defy applications actually currently we think we are of the belief that many of the things that have been branded as defy are more so democratized
- 1:38:12
finance than they are truly decentralized because many of them are still built on like centralized data bridges or oracles as a user this means that or as a token holder this means that you do have complete oversight and insight in how the protocol works who's interacting with it so it's transparent you might even have some influence on some dow parameters that you can set or code upgrades or some decision making but that doesn't mean that the entire network has to be
- 1:38:43
yeah it's decentralized as well and yeah it's important it's important because the data providers actually hold a lot of power the oracles hold a lot of power more power than most people realize if you're using a lending protocol that uses a centralized oracle in essence you're giving custody to this oracle because this oracle has the ability to remove all from all funds from the network just by providing an incorrect
- 1:39:09
price for certain assets for example so yeah we are of the belief that uh insufficiently decentralized oracles create single points of failures and actually add custody back into defy which is to me one of the biggest selling points of d5 is like truly being your own bank and truly owning the assets uh based on certain logic that you expect to happen decentralization matters it's uh within
- 1:39:36
oracle somehow it's gotten a little bit controversial to say um censorship is rampant we're seeing it with the tornado cache events that happened like a few what is it like two months ago a month ago there were oracles that were considering not providing data to certain addresses that were blacklisted there was uh oracles being set up to blacklist certain accounts from using certain
- 1:40:00
protocols um it's a good way of sort of like resparking some philosophical ideas like why are we here in the first place in my opinion um and the goal is to shift custodianship back to the user like i said like remove as many single points of failure from d5 as we can um and allowing the query of like more broad data uh with a lot of the oracles that are out there today it is a whitelisted set of validators that provides data on a whitelisted
- 1:40:32
group of assets from a bunch of a couple of sources we want to broaden that up so allow you to query any public data while at the same time also onboarding private data providers into our network that can also be queried through our network so what are the type of use cases that an oracle like this would enable so the most obvious one is just secure data querying right like it's the most
- 1:40:57
on the nose use case that uh we see today it is i want to know the price of eth from my smart contract so i'm going to query one or a bunch of sources to provide me with the price of eth simple it gets a little bit more abstract once you add off chain computation into the mix so when you issue a data request on flux you'll be able to add a bunch of opcodes or execution code to be then
- 1:41:22
executed by our validators on the on the sources that you provide so not only will you be able to query a bunch of sources but then there's a bunch of computation that you can do with on the data before it actually comes on chain um a use case that is interested in this for example we're working with this protocol called volts they're doing interest rate swaps and they need to
- 1:41:45
build like a pretty expensive algorithm to compute um some something like that the median of 20 uh um apys that are being generated by certain protocols which is too expensive to do on chain so now they have to batch it up in like 20 different calls which is obviously not very efficient and then the final use case which might be a little bit less obvious but still cool it's cross-chain communication using our network you'll be able to query the network state of other chains
- 1:42:21
using either rpcs or other api endpoints and essentially this would allow you to do um cross chain swaps maybe yeah just generalize cross-chain messaging and bridging for example so how what does this look like a protocol like this like a fully decentralized orbital what are we talking about here so on top of everything there's the sources we do not own the sources obviously it's like a separate part of our um it's separate external to our network but
- 1:42:53
it's very important these sources are queried by our data request consensus layer the data request consensus layer just queries the data gets to consensus and then posts it on the main chain the main chain in this case is a near shard so we're building uh some of our networks done on uh some of our networks built on near uh the main chain is responsible as a checkpointing and uh value transmission system i think is the best way to put it so if you want to participate in a network you need to stake flux tokens
- 1:43:26
you will stake those on near there's new rewards like in the form of inflationary tokens that are being minted there tokens are burnt there and slashing happens as well on this layer next to like checkpointing then we have the subchain bridging network the subchain bridging web network is there to notify the data request consensus layer of newly created requests and also to relay the outcomes of the data requests back to each of the subchains
- 1:43:59
uh sub chains we call just basically any layer one that queries that has protocols querying our data so it could be ethereum could be aurora it could be near any any chain basically and then the relayers i might touch on if i have time after the next section yes so what is the flow of a data request from issuance to finalization first of all we need a validator set in order to get a group of validators that can perform our consensus
- 1:44:40
um so that basically means that there is a group of validators staking on near the next thing that would happen is that the data request is issued on the subchain at issuance it has multiple parameters but let's just go with the wasm hash that links to some bytecode that needs to be executed and a list of sources that need to be queried our subchain validator network then picks up this request and provides it to the consensus layer with some stake
- 1:45:15
and the stake is there so that they cannot create a bunch of fake requests so it's a way to go to counteract the now surface attacks the next thing that would happen is that a subset of our main validator set gets picked and they are elected to perform the consensus on the outcome of the data request and this is done in the form of a commit reveal scheme so the validators query the source they compute the outcome based on the code that was provided by the request
- 1:45:48
issuer they then come to an outcome to that request hash it commit it the leader collects them the next phase is that the kubits are revealed and collected again by the leader following that the leader uses an aggregate function in order to get to the final outcome this aggregate function is also um picked it that's what there will be default one but it is essentially meant to be picked by the request um issuer so the protocol can pick like how they want their final
- 1:46:21
outcome to be computed this could be like do they want outliers to be removed do they want to average it do they want the median value it really depends on the use case so yeah that's how the final outcome gets generated next step is that the leader then takes this final outcome and posts it on the main chain where it is batched a batch could be compared to a block in a blockchain it is a
- 1:46:47
epochal sort of like event in which a bunch of data requests get batched together it's to just save computation uh the epoch in which the batch gets posted to each of the sub chains is programmable so that's like a dow dow parameter so for one chain that is very expensive it could take like it could be that we push a batch every minute where for another chain that's less expensive we push a batch every 10 seconds basically so once the epoch is finished
- 1:47:18
merkle root is generated so all of the outcomes to all of the data requests are put into a merkle tree and uh this merkle root is then signed by our validator network then our subchain validators take this miracle route and the signed version of it and provide it to the subchain's oracle contract where it can be verified so within the oracle contract it can be verified that the batch was in fact signed off by our entire validator network and
- 1:47:50
yeah that is that's essentially puts the data on chain so from that point on anybody that query to data is able to prove that the outcome to a certain data request was xyz we have some surfaces in place to make that easier but essentially this is the main progress uh process i made it i still have time to touch on relayers that's cool so relayers essentially are there as a backstop for data
- 1:48:22
data requests and the reason why we need relayers is because oracle finality and blockchain finality are slightly different things if there is an attack on a blockchain network there can be a social consensus to roll back the chain to state previously which makes it less attractive to attack a blockchain network or you can have reorgs like we see it every day on like polygon and stuff there's tons of reorgs in order because of like there might be some uh
- 1:48:46
issues with their consensus where in an oracle network if i am a protocol that chooses to consume data from a certain oracle like flux um and that data and flux gets attacked and we provide incorrect data there's not going to be a reorg on his chain because like our network messed up right so it is important to have like these fallback mechanisms so what we do is we have a relayer which is essentially a
- 1:49:18
very similar to one of our validator nodes it runs it is what as you issue a data request you're able to select a relayer to run the request in parallel and provide the outcome with our consensus network and then you can use that in order to anchor the anchor the outcome of the flux oracle so let's say our oracle gets to a price of eighth of like eleven hundred dollars and the relayer that you select gets to a price of twelve hundred dollars you can see that it's off by
- 1:49:49
a certain percentage that is either within or without your threshold and then you can choose to act on that because apparently there's some sort of volatility going on in the market or there's an attack on a network or the relay is being compromised so you can choose to either pass your protocol or just ignore the request and reissue it but the idea is that it is used to uh yeah as a backstop
- 1:50:11
basically that's my time thank you if anybody has any questions i'll be right outside come come tap me on the shoulder all right jasper thank you so much that was a great thing to learn about oracle's have always been something that i thought was super interesting because it's always like oh we have this web three thing but it always seems so disconnected from web two right because everything's always in siloed in web three
- 1:50:46
how do we get the stuff from web two into web three right it's always uh really cool to see how flux protocol is making that happen all right um quick reminder at 3 30 to 5 on the nightshade stage we're going to have some investors who are going to hear from near builders and give them feedback live to me it sounds a little bit like a shark tank style panel so make sure to check that out also hashtag near con 2022 is trending
- 1:51:17
on twitter yay so keep it up everybody that's just amazing all right next up we have can near make blockchain gaming click all right thank you very much hello guys uh thumbs up if you can hear me well perfect thank you guys okay so today's subject is about uh so can near protocol can make blockchain gaming click just as a side note uh so you knew a bit who am i uh so my name is killian i'm working as a
- 1:51:55
software engineer at ledger uh for one year now and i'm part of both those communities like blockchain and gaming like just i say i'm part of ledger and for the gaming part i've been part of a gaming community and especially the game dev community uh since i was 13 years old uh like i started hacking games creating games this is what made me today a software engineer so i'm glad
- 1:52:19
for it and in my opinion uh there is a gap to be to bridge between those two communities and this is what we're going to talk about today so uh if we're talk if we're talking about blockchain gaming i think at least one of those names are going to come to your mind uh axe infinity the sandbox essentially those are big names in the blockchain gaming industry and in my opinion some of those games embodies well the issues we have today with blockchain
- 1:52:51
gaming keep in mind that those opinions are my own not ledgers i'm talking here as part of both the blockchain and gaming community member so here are the in my opinion the issues we have today with blockchain gaming the first one is false premises and unachievable roadmaps this is something that a lot of blockchain games surfers today uh very overpromise and under deliver but this is not something that only the blockchain games are guilty about like
- 1:53:27
we can find this same uh thing in regular games uh i don't know if you guys remember uh what happened with no man's sky uh a game from hello games uh so the game director like promised a lot of stuff like the game was going to be a massive limited player the game was going to have thousands of weapons and everything a lot and a lot of promise and when the game was finally released the players were extremely disappointed not because the game was so
- 1:53:52
bad but because the difference between what was promised and what was delivered was huge and i think that's something that occurs a lot with blockchain games the next point is about acts and um so this is two different points uh acts are multiba are more like when a smart contract gets act or something like this this is something that happens for example with x infinity there was a a leak of i think
- 1:54:16
more than 60 million dollars due to ack so one ever act happens on regular games like the worst thing that can happen is like you use your game accounts or you use like very worst case scenarios like you lose your password and it gets lit but in blockchain gaming like getting a hack means losing your fans and that's much more critical in my opinion and that's why this blockchain gaming ecosystem attracts more hackers and that's exactly the same thing with cheats really because if hackers are motivated enough to
- 1:54:48
create bots and cheats just for the sake of ruining other players experience why wouldn't they do it then when they get ruins your experience and get your money like bots and cheats give you an unfair advantage and that means you can get more money or even steal money from other players the next one is the lack of gameplay like on the play torn play to earn games a lot of games focus on the earned parts like they're working a lot of on
- 1:55:13
tokenemics marketing but not a lot on the play part like building an actual a fun gameplay look like a lot of game are just looks like a really simple game that could be there i've done in a three days ackerton uh of course you've got a lot of marketing behind and tokenmix but the the gameplay look is too simple in my opinion the next point is about speculation and predatory monetization scheme so in the gaming community especially the
- 1:55:43
pc gaming community players are really afraid of predatory monetization schemes uh just like this example so i'm a huge overwatch player so i've been playing the game since day one and uh i don't know if you guys know but in one month of watch three is getting released and there was a leak uh from the dev team where basically you will have to pay new errors uh through battle passes and there was a lot a huge outburst of a community uh if you want to check out
- 1:56:13
like the uh overwatch subreddit like all players are losing their right now because um having to pay for heroes means that players paying will have an advantage over player not paying and uh that's something like that the pc gaming community hates as a wall and uh blockchain games are often really about speculation and like paying more gives you an unfair advantage and this is
- 1:56:38
something that doesn't fit well with the pc gaming community the next thing i like to talk about is fake ownership like uh one thing like one of the major points of blockchain game is is like your game items are your nfts you own them the game developer can remove it from you but the thing is i think it's partly a lie because yes you actually own the blood of metadata that is your nfc like you own maybe an id one two
- 1:57:03
three four which represents blade of doom in the game or you actually own maybe the metadata the item like the name the attack point stuff like that but in the end the game developer is the one that decides of a value of your item maybe in the next release they will release super blade of doom which is twice twice as much better and more strong stronger everything and in the end like the game developer decide
- 1:57:26
of the value of your item because the value of your time is directly correlated to its utility in game so yes you aren't the nft but you don't control the value of it this is something that is often uh misunderstood in the gaming industry and all that all that voice points below above leads to a really bad reputation of blockchain gaming uh like blockchain is almost a bad word in uh in the pc gaming community i'm not talking about all gaming communities because a gaming community is not a big community but rather small community like you've got
- 1:57:59
vr community you've got mobile gaming community console gaming pc gaming i'm more talking here about the game dev and pc gaming community which i'm part of as an example for example for bad reputation steam the biggest pc uh selling game platform has just outright ban all games containing blockchain elements and nfts like if you're a game developer uh wanting to to publish your
- 1:58:24
game on steam you can't and that means you will probably lose like fifty percent of your revenues and that's huge uh another example is like jose schaefer a huge uh influential personality in the gaming community like he made a is part of the it takes two game award-winning game that was released this year uh just i would say i'd rather shoot myself in the knee rather than putting nfts in any of my game but
- 1:58:48
that's to show how bad the reputation of blockchain is in gaming pc gaming industry industry so that's a lot of pessimism to start with let's try to be a bit more optimistic and see what the blockchain could really be used for in uh in gaming uh so those are in my opinion what really matters and uh that's what blockchain can do best the first thing is about funding motors and more especially funding the community around games because um if you take some games like skyrim minecraft gary's mod uh blade and
- 1:59:21
sorcery terraria those are huge games we have huge communities skyrim roy's release i think like 10 years ago that's a lot of time for a game um and there is no next uh episode for now like we don't know when uh viral 6 is going to release but skyrim skyrim is still here and kicking like the community around it is still creating mods and that's what uh making the game leave today because there is a community so active releasing content uh every day
- 1:59:48
uh and this is what blockchain could do like creating unhealthy environments when modders can get paid for the content they are creating for the community like getting back from the community and often motors are miners like there's a lot of kids that started programming with minecraft creating super cool mods and motors often have to stop modding when they get in the active life because
- 2:00:12
they don't have the time to have a full-time job and continue modding full-time so we see a lot of mothers disappeared around the age of 23 something because they have to leave they have to get a job and they can't continue living off making mods because it's free and blockchain here could enable communities to reward the content creators the next point is permission payment method because there is a lot of place in the world that relies exclusively on piracy to get games like they can't pay for games even if they wanted to because
- 2:00:43
they don't have a proper credit card system that allows for paying online and stuff like that it's not even a question of price because usually games are priced differently per uh country like games on russia or india are often much cheaper than games in france or uk stuff like that so blockchain here could enable parts of the world to join the proper gaming community like joining online games where you have to pay for getting into the servers and they can't pay because they don't have proper credit
- 2:01:14
card system here with blockchain they could actually pay for it and join an online community uh and they can't really right now the next point is a trusted server called execution so this is kind of a niche use case here because uh this is where for example a developer says you've got one person chance to get blade of doom in my game a super cool weapon but also can you trust the developer that you actually have one person chance you can't
- 2:01:39
but here with smart contracts you could ask like a developer could have a transparency and say you can check here you can actually have one person chance of getting the blade of doom the next point is free infrastructure for games once again it's kind of a niche scenario but like uh today there's a lot of games uh we've still a small but really active community and the servers get uh
- 2:02:03
remove because the the the game is not getting getting funds enough for the developer to pay for the servers and here what we could do with blockchain is uh if the game could be austin as a smart contract like for example um cars game like earthstone which are uh turn by turn so one second block final this time is enough for this kind of games uh we could ask them as smart contracts and as long as the community is willing
- 2:02:26
to pay for the server fees like the transaction fees the game will be alive forever as it's living on blockchain i mean as long as the blockchain is up of course uh and the next point which is also a really important point and less niche this time is player governance like player governance would be with a loop player to decide oh they want to a game to evolve and especially earliest access
- 2:02:49
game there's a lot of early access games being released by indie developers today uh and indeed there's something that all sometimes happen and it's really bad like it's when uh an indie developer releases an early access game which means it's unfinished like they are releasing it early for getting phones uh being able to continue with development but sometimes the game just gets dropped by the developer like it got the found
- 2:03:13
and it just flies away with the money and the the community is not getting what they wanted in the game and thou could uh somehow solve this problem like uh the early access game the base game like unfinished game you're paying less for it and then there is a dowel behind it where players can put fans where they want the features like i don't know uh you want a dinosaur in the game right you pay two two dollars for it you you put in the dinosaur phones and if your
- 2:03:38
developer actually implement dinosaurs in the game then is getting the money that all the players paid for this future and that would allow incremental uh development of uh early access games funded by the community for the community with a healthy and trustful environment and ecosystem so this is all what blockchain could uh do for games and now let's talk a bit more specifically about how near could be the best gaming platform because i think near as all the chances to become a de facto and started gaming
- 2:04:11
platform it's carbon neutral which is uh very important to the gaming community uh it has fast block finality awesome dev dual hours and devtools so easy for devs to to get started with uh and awesome tooling like uh automatic like human readable addresses which could almost be used as uh your game identifier so a lot of good things going for here and all can near push things forward and try to get invested into the gaming community so those are in my opinion uh good
- 2:04:44
starting points so the first point would be like creation of gaming projects because i know there's gaming projects that are already on near and i think nier should act as kind of a judge to uh promote uh promising projects and to try to hide away a scam project like really trying to get involved with the development of games to see what are our projects that are worthy and what project are just scams
- 2:05:09
or cash grabs and trying to regulate all the ecosystem to gain trust from everyone the next point is an easy way to pay creators motors active committee members this is what we talked about like uh getting money back to the motors uh so maybe veneer community could build some tools to be able to uh distribute funds to to motors community members uh this is about like building tools to enable that
- 2:05:33
the next point is uh an easy to use cheap and serverless gaming services so i don't know if you watch the pagoda conference conference like was one hour ago uh where on pacon console you could just deploy like easily an ft system i think we could uh also have a lot of services that are useful for games like such as scoreboards instead of just creating an account on aws creating an ec2 instance having to create your
- 2:05:55
scalab scoreboard api with python or whatever uh here you could just one click and deploy your scoreboard you just put some parameters like i want to limit max maximum score to be that much uh player can have one or multiple entries like the guy configure the scoreboard however he wants and it gets deployed on the blockchain and acts as a server game server or more like game tool scoreboard is kind of a separate part
- 2:06:21
from the actual game but it could be useful for that uh the next part is a sponsor sponsorship of existing gaming game dev projects so this is more about gaining trust of the game dev industry because in the end the game gamedev community is the gateway to the gaming gaming world this is where i want to implement the actual technologies and stuff and i think here can try to get
- 2:06:43
invested uh so sponsoring either uh in terms of financial financial help or advising how to get started uh stuff like this and uh it will really help to gain trust from the game dev industry and the final point is the near integration in game engines because of course people are going to choose what's available uh as tooling like i don't know like i'm a developer maybe i only know about ethereum i want to try web free development on unity because i only know unity uh and here i try to see and
- 2:07:14
there is no unity uh ethereum plugin on unity but i see that there is a near plugin and so maybe i will get started with that and then it's gonna make me choose near as with all my projects because it's available it's free cheap accessible there's good tooling around it so tooling is key for getting near on board in the gaming community and that's why i created near toolbox which
- 2:07:37
is c plus plus sdk for near uh it's available on github i will show the url later but like it's on a github.com sigma neutral box so what is near toolbox it's uh first and only open source because i know there's some closed source simple sdk uh for near protocol which also includes a c interface for easy integration um it supports ledger other wallets i mean of course i'm from ledger so i'm gonna have this feature uh it supports smart contract
- 2:08:08
interaction so you can either call or view uh things from smart contracts which allow you to integrate legacy before scoreboards for example but there is a lot of use case it's easily embeddable in software game engines everything it's cross-platform it works on windows linux uh mac os it should work on android and ios didn't tested it yet but it should work and uh is integration with other languages which uh interprets well with z plus plus such as lua or c sharp
- 2:08:37
and that leads to the last point also on his integration with game engines and this is why now it's nearest compatibility with unity so unity has been used to create games like original blind forest uh cuphead fall guys earthstone pokemon go i think you know some of his titles uh this is what the integration looks like so i don't know if it looks on the screen by some kind of reflection but you can see the code is pretty short so
- 2:09:01
this is kind of a low level framework you can build high-level stuff on top of it that will come soon but that's just you so how easy is it how easy is it you just have to drag and drop the dll into inside your project declare your functions and then you can just use them and that's it you can transfer money you can do everything you want so this is not the best interface so far
- 2:09:24
but it's going to get improved before of course that means also near is now compatible with unreal engine so which is responsible for creating games like fortnite uh it was used for fighter v cfs lots of game really and this is the interface for near uh unreal engine it's bit simpler because unreal engine is already c plus plus so you're able to use uh the actual uh c plus plus library directly in early
- 2:09:49
engine uh so this is how simple it is really you just have to create your client specifier network your private key there's there are also gonna be uh with a web login with your browser don't worry but meanwhile you can put your private key or an access key here you can transfer funds you can do contract calls contract view you can deploy smart contract like the wall uh sdk is
- 2:10:14
available uh on unreal and that also means that it comes it's compatible with blueprint blueprint sorry like you can just drag and drop boxes like uh transfer phones call smart contracts or even someone that doesn't actually know programming can use near integration super easily that means nier is now also compatible with godo i mean all those integrations were actually created like for unity i didn't
- 2:10:39
know about unity the integration took me like two hours in an airport to create so not that bad so for a goto you just have to create a near client wrapper node you drag and drop it into your scene and then you can just do near client.login your client transfer you can try something again you can call smart contracts it's really super easy and simple i wanted the sdk to be as simple as possible even if you don't know much about near you can use it you can start to transfer funds and call smart
- 2:11:08
contracts and that mean also near is compatible with the best most performant most beautiful game engine which is a i don't say that because i created it there is no bias here and that also means like near is compatible with almost every other engine on earth because most engine uh give are either coded in c plus plus directly or allowed for simplifies integration that means if you use default lumbaria the game engine from amazon used to create star citizen for example solar 2d
- 2:11:40
which was called corona engine before strangely changed the name love2d gamemaker studio and even lower level frameworks like sfml or sdl of course like the sdk was created like 10 10 days ago so it's pretty new a bit rough about around the edges but of course i will take time to improve it if you guys have any feature i'd be glad to hear from you if you guys want to cheat to chat after the uh after conference but uh this is uh what
- 2:12:12
i uh already planned to improve like uh being able to login with your browser uh directly just like veneers li you just are on the game home page login with near where is already your username you're able to transfer and call smart contract directly from again uh synchronous and asynchronous support so far is synchronous support i'm building the asynchronous support for game engine that does not support uh
- 2:12:37
threading out of the box higher level approaching just like the show on unity the the interface was a bit rough i plan on improving that and lastly more engine integration like the one i showed earlier like uh um default and everything and i think that's it if you have questions i'm just going to put back the link if you are curious guys about it i want to check it out it's available right here
- 2:13:03
uh i think we got one minute if you guys got any questions otherwise uh it was pleasure to to speak with you guys uh don't stay if you want to chat uh after with me after every conference uh if you've got any features you want into the sdk if you didn't agree about what i said i'd be super curious about knowing your opinion about blockchain and gaming so thanks a lot guys for your attention
- 2:13:31
and uh thank you all thank you so much kellyanne whoa how about that making it super easy to develop high quality video games using the near blockchain and other super popular game engines all right thank you so much next up we have a web 3 approach to video conferencing from enrique correa de silva okay yeah exactly so yeah i'm curious about discussing uh we all make up i'm i think i'm mic'd up
- 2:14:10
already hold on let me just put this in here thank you thank you so much which one's the clicker this one next and back right that's it what time is it all right we have four minutes where's the watch oh there okay oh we started already i thought it was at 40 okay all right well ladies and gentlemen thank you for coming to hear our talk i'm enrique created silva co-founder and cto of relays we're building a hyper secure communications platform and we're using
- 2:14:50
near blockchain for that so a little bit about myself who i am or who am i i've done a lot of things i'm a former firefighter journalist diplomat intelligence law enforcement officer for portuguese government so i'm a portuguese and portuguese although i have an english american accent i've been fascinated by crypto for a long time uh got in about a decade ago not just uh the technology but also what i think is going to its revolutionary aspect which i think was going to change our world
- 2:15:21
i started playing with uh prodigy online back in the 1980s for those of us who remember the bbs world so i guess i'm showing him a bit of a dinosaur and that's how i got interested in computers my background is actually in political science and economics and it's not the technical background um then i co-founded uh previous which is a secure swiss company that does secure communications for
- 2:15:44
governments all over the world including here in portugal uh i also founded and i'm the president of the institute new economy which is a portuguese think tank where a lot of the people here are actually members uh so brave near immunify balancer some of the big projects uh from not just portugal but from the whole international crypto space but with the connection in portugal they're all members of uh this institute and we just announced uh actually a federation we just associated with the other two
- 2:16:14
crypto associations in portugal apbc association is a blockchain crypto and all alliance for blockchain which is another uh another association so we all got together and we're basically talking to the government uh to make them understand this technology and maintain porsche as a crypto hub that's the goal as i said uh i think you know blockchain technology isn't shouldn't be just about the financial aspect which we all know with bitcoin and i'm a big bitcoin believer but i'm not a maximalist uh i
- 2:16:47
love bitcoin but i also love other technologies and i think near and other other layer ones for example are gonna be very promising so i think this is gonna change the way the world works right if you think about it 20th century all in all the past centuries we've always been dependent on analog what i call analog centralized authorities be it you know your teachers the governments
- 2:17:10
police banks etc and i think that's changing and it's been changing for a while and i think blockchain technology is part of the the solution to that problem so the fact that we can trust mathematics instead of us a person is i think game changing and not just in finance but as you'll see also in our in our case for secure communications so now i'm i'm the founder or co-founder and cto of relays
- 2:17:36
okay what is relays what are we trying to do here um if you can see on the slide but i'll just go over really quickly so the idea is we're based on webrtc technology uh which i'm sure a lot of you guys know so everything we do by the way is open source and it will be open source we we haven't released all the code yet but we will be releasing because one that's one of the things we believe in is that to be able to do this and have people trust you everything
- 2:18:01
needs to be open source right so our whole ethos comes from the crypto community from the cypherpunk community i guess would be a good way to explain it everything needs to be open source everything needs to be auditable and so you don't have to trust you know minimize basically the trust services whether it's us whether it's you know some protocol whether it's some infrastructure provider cloudflare or whatever everything needs to be minimized trust aspect and so we use
- 2:18:24
webrtc which is a great technology but it's got some problems and we try to solve some of those problems so one of the things we the problems we have with webrtc as you probably all know is that it's security model that is dependent on some kind of central authority right a certificate authority which is great if you trust you know if you ever go into your computer and you look at all the certificate authorities that your
- 2:18:46
computer trusts by default you'll probably be surprised to see that there's some countries or some institutes from officially from official government agencies in countries which you would probably not want to place your trust in and all of those companies can sign a certificate and your browser will trust a certificate so even if you use a webrtc encrypted system you have no real idea of your fear being monitored or not because
- 2:19:09
the sophisticated global threat adversary three-letter word agencies not just western but also from east from north from south they have the technology and they can do that right so that's a big problem we're trying to change that with blockchain um so we have privacy focus we don't we use a browser based uh in fact the browser i recommend for everyone you use we use all the time is brave so we work inside brave browser for example and
- 2:19:32
chrome and chromium opera firefox even safari edge but i recommend brave for obvious reasons um so the the fact that you don't have to download anything right even from a sysadmin security standpoint is fantastic because if you don't have to download anything no zoom client no you know teams meeting whatever binary you're going to run on your network that's not a good idea anyone
- 2:19:55
here who's in cyber security knows that usually makes the security officer his hair rise every time somebody wants to install something in the corporate land well browsers we all have browsers already right so everyone has a browser installed on their desktop it's already authorized to use you know ports 80 and 443 so they can go out through the firewall so it makes sense to build a communication system on something that you don't have to install anything so you'll see it's already working you just
- 2:20:20
have to open a link with your browser and you can start doing encrypted video conferencing without having to install anything um the quality is excellent as you'll see we use simulcast so you see know different layers we have congestion algorithms and if you actually use it and some of the people here have used it we're coming out of beta testing soon so but some people here have used it already and the quality is i'm in my in my view much better than the centralized
- 2:20:42
versions um we're gonna and we're gonna so for this we're gonna use a decentralized identity in the sense that you already have an authentication right we're all using your wallet whether it's on here whether it's an ethereum wallet whether it's salon it doesn't really matter you're already authenticated uh by using by for the virtue of using a wallet so you already have the authentication so you already own your identity in the future with partners we're looking into is to be able to have
- 2:21:06
people sign claims about that identity so you'll be able to use let's say you're let's say you use a a near wallet called you know one two three so you could use one two three dot near that's your wallet that's your main identity that's your public identity you could have that signed then by others from kind of the web of trust from the pgp circle web of trust type thing so social uh you know their social network will say yeah that's enrique or that's
- 2:21:29
michael and that's your public persona then you will be able to have nfts attached to it and all that kind of stuff so basically when you log into your wallet you can start a conference with anyone in the world and people are sure that they're talking to you and there's no man in the middle no impersonation um you know that's why we're using blockchain technology it's a very important thing here is people say well why didn't why another token you know why use blockchain well
- 2:21:52
we already blockchain to me i'm a big cyber security guy and i like the security aspect and i've always been fascinated by the fact that the blockchain and in my in the case of the bitcoin network is the most secure network in the world and i've had this argument with many people you know especially from governments who don't understand this and they always think it can be hacked
- 2:22:08
because oh you know for most lay people who don't understand technology and don't understand the crypto verse they think anything can be hacked well as i tell the politicians all the time you know there's a 1 trillion dollar bounty publicly available so if you can hack it go ahead you'll become rich of course no one does but this is to say that we already have you know the example bitcoin what bitcoin did for money is kind of what we want to do now for communications
- 2:22:33
um so we have authentication with no passwords or logins uh i don't know i don't think we have a shot but if you guys can check it out at uh www relaysio you'll see a little place where it says start meeting you can already check it out because it's open right now so it's you don't have to log in with your wallet you can still use it um and then interesting part here is you know why are we using all this what's what's cool about this well we're using
- 2:22:56
smart smart contracts in this case uh to negotiate the end to end encryption key so we actually use two double layer encryption in uh in relays we have the first hop by hop dtls srgp encryption which is the the webrtc security stack which you guys are all familiar with but on top of that because for the reasons i said earlier that is it is secure but it's not end-to-end encrypted and it's not bulletproof or hyper-secure
- 2:23:21
the only way to make it hypersecure is to make sure that you can have um a trusted anchor so use blockchain as a trusted anchor where then the no within the encryption keys for the session get negotiated each time somebody joins a session they will their wallet will interact with the smart contract and with others who are also joining the session and they will negotiate a temporary ephemeral session key using the
- 2:23:43
olm protocol for those who don't know what you know olm is olm is a european fork of the signal protocol so the double ratchet protocol it's very very much the same idea right so you get a master key then it ratchets it and it's good for multi-party chat because basically relays is a multi-party video chat with end-to-end encryption through the blockchain all right um so we take away the men in the middle
- 2:24:05
threat from uh rogue nodes too since we have end-to-end encryption we're i'll talk about the nodes in the second nodes are what miners would be i guess in the relays network so instead of doing you know pow proof of work or proof of whatever mining in our case we're going to give nodes we want our community to run nodes where they give bandwidth what we call nodes or video bridges to the to the relays network and there's a very good reason for that it's not a gimmick it's because the more decentralized you
- 2:24:30
are it means you become unsensible so eventually when we have enough people running nodes and getting rewarded in relay tokens for providing their bandwidth someone let's say behind a great firewall in china who wants to connect and he can't because let's you know let's let's just say a bunch of the nodes that we have have been are being blocked by the chinese firewall well if you have more and more nodes popping up all over the place resident even residential computers all you need basically is bandwidth right it's not uh cpu
- 2:24:55
intensive because the node is just a dumb relay it just grabs encrypted packets from one side and sends them out the other side it can't look into the packets so can't do dpi it can't you know it can sniff but it's just it's just going to get a tcp dump of encrypted pcapp you know with double encryption detail ssrtp and then to encryption on top so we think that's a good way to do it um post quantum some people have asked me about post quantum uh and actually
- 2:25:19
interesting i don't have much time because i want to give you guys time for questions quick story on post quantum we're very uh i'm i was a big believer still am but we'll see on the nist uh post quantum selection strategy and one of the protocols we're looking into is a sidh which is actually ironically put out by microsoft uh but it's open source obviously and it's based on the let me see if i can get this the bad word right
- 2:25:42
super singular isogeny so which is complicated mathematics basically but it's one of the contenders or it was because apparently two weeks ago there's been some news about that so it's an evolving field for those who follow post quantum cryptography for us the important thing is we will be able to just plug and play and switch our primitives and eventually when we settle on a unreal post quantum or quantum resistant
- 2:26:06
uh algorithm we want to be ready to just switch around you know so we will use we're using rsa diffie-hell and all that stuff which as you know asymmetric cryptography is vulnerable to quantum computers if we have a key negotiation mechanism which is um quantum proof or quantum resistant and then we use aes256 for the symmetric encryption key then i don't care how powerful a threat davis adversary you are even with quantum
- 2:26:29
computers you won't be able to crack the encryption but that's in the future um so this is very important the tokenization and incentivization of the nodes uh is crucial for our project and it's not a gimmick uh just a quick story a couple years ago i was during the ico craze in 2017 along with some of other people here i was about to launch a distributed vpn or adapt dvpn um it was called privum at the time so we did everything got everything ready and of course timing is everything and when we were ready to
- 2:27:00
launch it was 2018 crypto winter came in and so at the last minute we stopped we decided not to do it that's the bad news the good news is that gave us a lot of background and it actually allowed us to see what other players in the space are doing you know there's mysterium there's orchid there's other players doing the same kind of thing and in this in a sense it's very similar in the sense that they also use uh nodes for their token to expand the network we want to do the same thing uh if you
- 2:27:24
think about tor for example you have no incentivization to run tor exit nodes so the people who run tor exit nodes they do it either because they're malicious they're a foreign intelligence service and that's a reality and or they're very altruistic which is great but doesn't scale well right and it's a threat if you incentivize people to actually run their own nodes and they get paid for that incentivize then that makes it it changes the whole ball game basically
- 2:27:48
and um we also we obviously we don't know so our business model is the opposite of web 2. we don't log anything we don't you know we don't want your metadata no signups no passwords no emails none of that stuff and like i said you can choose to have different identities on the blockchain you can have your real id which is verified by others with a decentralized identity so people know they're talking to you but you can also have another wallet that you use for earlier more anonymous communications for you know it'll work the same
- 2:28:12
and that's just the beginning right so the idea once we have this protocol uh the whole layer of the infrastructure running we're starting with video conferencing because it's cool and we believe it's impos it's important because we're getting into a centralized dystopian future where everything is getting more and more centered and we are firm believers that if you don't have a way an unsensible uncontrollable uh decentralized form of communication
- 2:28:36
that even governments powerful governments can't stop then sooner or later we're going to have problems right we're going to have all these close silos which already do and i don't want to talk you know about the web 2 competition but we all know you know the problems with zoom and google and microsoft's meeting and all the other web 2 centralized models where as you know they collect all your data our our models the opposite and so we'll start with the video conversing but we have other goodies in
- 2:29:00
the bag and partnerships we're actually talking to a couple of big players here which i can't reveal yet to have partnerships with uh some of the others that we're building on the near ecosystem uh but we'll we'll hear about that more soon there we go and while we're building on near so we looked at a bunch of blockchains uh last year we were looking at solana and i don't want to call out you know any names here we looked at a bunch of different ones
- 2:29:25
ethereum would be you know the the easy the easy win or an easy pick but of course with ethereum and it's you know the i guess the scalability and the speeds we'll see how how things go after the merge but you know until now and we couldn't wait for the ever coming merge that was never happening so we decided to switch to switch to near um for many reasons first i really like the fact that they support smart contracts and rust which is as you
- 2:29:47
guys the geeks here know it's a memory safe language um then we can also port all the contracts to other evms to evm so we'll start with near and here it's already working where we have a proof of concept running on the on the blockchain but then we're going to move to others right i'm not going to say which ones now but you know ethereum compatible um blockchains the idea is to have a multi-chain protocol but we're starting with near a lot of the team here the near team is
- 2:30:11
in lisbon we know a lot of the guys we got to know even more and more recently a lot of our developers are ukrainian so the people who are working with us are actually a lot of them come from uh are actually in ukraine at the moment so we have a multinational team um and we get along very well i think the mindset and the quality as you all know the quality of you know ukrainian engineers is fantastic so why not why not do it and since they're here we're here i'm
- 2:30:36
portuguese i want the portuguese crypto hub to grow that's the idea so that's why we chose near but you know there's the technology which you guys everyone's discussed already you know the finality the block time uh the sharding all that kind of stuff which i won't get into because that's that's a different conversation and okay so the token gives you access to the platform it'll be run to running
- 2:30:58
nodes incentivize the nodes to be run which basically and the way we protect against that we're gonna you're gonna have to stake a little bit of rely tokens to run a node and that's in case you're malicious if you're starting to do intercepts man in the middle or whatever so let's say you're a foreign intelligence service trying to bring us down it'll become expensive so that's the idea of the staking model and then the more your node gets used and at the end of each call you'll be able to report
- 2:31:22
the quality node so we'll have like a node reputation scoring on the blockchain so the best nodes will get pushed to the top and they'll get uh and they'll get a lot of traffic the bad malicious nodes they'll still be registered on the blockchain but nobody will use them because our algorithm will just say this is bad and then with the relay token we're gonna have you know more things coming in the future all the kind of premium enterprise type stuff and for that you're going to have to use
- 2:31:45
rely tokens to pay for that so the roadmap uh this has been a you know an ongoing project in our in fernando our ceos here and i are you know been friends for a while we've done blockchain projects in the past we've been talking about this for i don't know three four years now and then we finally decided last year all right or two years ago let's get this started let's get it done so right now like i said if you guys go you can check it out we already have um you know open page that you can
- 2:32:08
use it's already working but now we're accelerating all the different moving parts so there's a bunch of moving parts that are need to be done we hope to have uh you can use it now and it's already running on the test net so don't worry none of it we won't take any of your tokens it's just for fun by the end of the year we want to have the tge and that's going to depend on how quickly we get the test net and the nodes running but also on the market conditions
- 2:32:32
obviously i realize we're running out of time and i want to get some time some questions you can read you can read the map and if you have questions ask me later i want to open it up for questions because running out of time so that's it questions i think you need a microphone actually that one and sorry if that was quick guys i know it's a bit fast a lot of a lot of info put through thank you um
- 2:32:57
what about competitors and how are you nuanced differently well competitors there's only one competitor that we know of uh competitor in the sense that they're doing video conferencing on web3 it's called huddle i think we looked into their there's it's completely different they're not going for security and privacy they're going for nfts which we'll also support so they're going after easy to use nfts but it's all centralized so if you
- 2:33:20
actually go and what little source code they have available you'll notice it's all being run through aws in the states there's no end-to-end encryption so there's a bunch of different you know technical factors that differentiate ourselves from them which is fine you know they're not necessarily competitors they're different marketing issues some people don't care about privacy and
- 2:33:36
security they want you know nice little avatars which we already we all have too but yeah depends on what you want basically anybody else 30 seconds um in terms of competition with web 2 um like zoom do you foresee significant uh stealing of market share over time do you think consumers would actually care um i think they're not they don't care about us right now because we're you know a small startup and not on the ecosystem as this grows and you know it's going very well and we've got some
- 2:34:09
good talks i think yeah we will become competitors to them they won't like it which is why it's important to also have everything in the community so even if it could be competitor as in as a commercial competitor it could also be let's say a government you know agency let's say you're in some certain parts of the world and the government doesn't want you to use this because they can't
- 2:34:26
decrypt it right they can't stop it and they don't like you communicating well if we're decentralized uh eventually we want to move into the dow model you know in the future and it's owned by the community much like you know many of the best uh crypto projects out there then the competition won't be able to do anything or and or governments won't be able to do anything if they want they can change their model we think this is the future right as you guys know web 2
- 2:34:49
web 3 switches the model uh we don't need your data there's no reason for zoom or microsoft or google to collect all those analytics even if they don't see the content of the conference even if you believe in that let's say we trust you know their assertions there's no way for you to verify but let's trust that they're still collecting all the analytics all the metadata you know
- 2:35:05
who's talking to who where you're from what you're doing blah blah blah etc a lot of them i think the free version of zoom they even combine their chats for advertisement stuff that's the opposite of what we want you know we want to build the web 3 and this is real web 3 application that's working it's available it's not vaporware and it's not related to swaps and finance and you know which is fine nothing wrong with that but i thought it was time to do to go into other parts of the stack not
- 2:35:29
just the financial aspect but security privacy and communications don't forget free communications is the cornerstone of freedom of speech freedom of speech is the cornerstone of democracy if you get if you get rid of one of those then we don't really have a true democracy right you're gonna have silos where cancer culture and all kinds of uh you know pressures will basically silence people and we're against that and i guess i'm over time already sorry unless one more question or no
- 2:35:55
we have we have time for marcus yes nope no more questions excellent well thank you guys for your time appreciate it and use it give us feedback oh one thing anyway technical guy we're recruiting we're getting technical not just technical but any any engineers who are passionate about open source and this kind of stuff i talked about and like near hit us up we're always recruiting and we're expanding quickly we have a lot of a lot of work to do and a lot of challenges to overcome but we love this
- 2:36:26
community so spread the word if you want to do it yourself or if you have friends who are interested in this we're hiring thank you all right thank you so much enrique all right perfect well what a great project they're working on here it's you know like like i mentioned before sometimes it's difficult to see how the all the services we see on web 2 can move over to web3 and this is an example
- 2:36:58
of a project that is bringing what you know we all kind of expect a web 2 project to be bringing that all over into web3 we now have a 15 minute break so we'll be coming back at 3 15 but make sure to come back here absolutely for our solidity for near discussion from aurora labs hey hey everybody welcome back to the doom slug stage now we have arto vendikin here with us he's from aurora labs he's going to be
- 2:37:38
talking about solidity for near arto take it away yes hello sound check sound check okay let me find my clicker can we can we go to the slides please all right so today's talk is going to be somewhat technical but i'll take it um easy i think it will be of interest even to people who might not follow the technical details so we're going to talk about a research project that we've completed recently at aurora
- 2:38:38
we we have been working for a long time on performance improvements uh for our ethereum virtual machine so in case uh somebody doesn't know what aurora is aurora is an ethereum virtual machine evm layered on top of the near protocol and we are the the only such evm at this time the layering looks like this technically it makes aurora and l2 on top of the near protocol it means that users send us evm transactions
- 2:39:18
and we interpret those transactions using the near runtime which is written in webassembly users consume evm gas and we consume near gas which is a tricky relationship technically speaking uh your solidity contract goes through a lot of layers in order to be executed the the first layer is a sputnik vm which is the um evm implementation from parity on top of which we build so we have something called aurora engine
- 2:39:58
which effectively marries sputnik vm as the virtual machine uh with the aurora runtime where we have facilities like custom pre-compiles that allow you to to interoperate with rainbow bridge and and the like after we interpret your evm byte code the interpreter itself sits on a layer layer of web assembly the web assembly code itself is effectively interpreted or rather just in time compiled down to x86 machine code by the near runtime
- 2:40:39
and then of course at the lowest level even cpus these days have a jit a just-in-time compile of sorts uh compiling x86 down into very risky looking uh microcode so there's a lot of layers where we lose performance and this talk is about what are the performance gains that we could achieve on aurora so if you look back at the last year which has been the first year of aurora aurora spun off as a standalone company from near in june july 2021
- 2:41:20
in in the years since then we've we've worked a lot on performance when we when we got started uh we were not able to run most um evm contracts more solidity contracts because the the uh ceiling we had a hard ceiling from how much evm gas a contract could consume before we aborted this execution and over the past year we've raised this ceiling through many many many initiatives both at near our former colleagues at near and also
- 2:41:59
at aurora and also we contributed to sputnik vm the evm project right that i mentioned uh which is uh hosted by parity uh here here we have some of the improvements we've done but of course the the list is very much longer and through these improvements in the last year we managed to raise the evm gas ceiling the hard limit for which contracts you can execute on aurora which you cannot
- 2:42:24
by about 11 times so that means that we've gone from a gas limit of 150 000 um evm gas which is ultimately the unit that um somebody utilizing an evm such as aurora will care about the the near gas that we consume under the hood is quite hidden from the user um so we've gone from 150 uh k to what is it 1.7 million is the current typical typical gas limit for um an evm solidity contract on on
- 2:42:57
aurora so that's that's pretty decent um that's allowed let's say about 80 percent of the solidity ethereum use cases to run on aurora and hence near so that's not bad but it's nowhere near being able to achieve 100 of the use cases so ethereum itself has a gas limit in excess of 15 15 million gas which would be another 10x from this and they keep raising it upwards uh so we we're chasing a bit of a moving moving target there um before i go on i want to give a shout
- 2:43:37
out to the people at aurora and near who made this happen the the previous 11x happen um we've gotten a lot of support from nir the contract runtime team at nir have for the past half a year plus worked intensively on analyzing and remedying matters so that aurora can can have a higher evm gas ceiling now the the good news is is that we have indeed raised the glass ceiling by 11x the the bad news is that
- 2:44:17
we are running our head room there's there's not that much more we can do we've we've picked up all the low hanging fruit uh this um um there's only so much more we can do and this is a what we call a gas profile prepared by my colleague michael um this this shows the breakdown from typical typical transactions on aurora so the successful transactions um what what are the different categories that gas will be consumed in and as you can see the categories are very much like a computer you know we have storage we
- 2:44:57
have memory and then we have cpu which is the web assembly instructions so basically instructions and it's like a computer because it is a virtual computer of course so when we when we began more than a year ago this looked quite different the the big green part the the vessel instructions was a tiny tiny tiny because it was being in proportion to the to the rest of the categories there was just much more work elsewhere to optimize before we managed to get
- 2:45:30
around to looking at the the big green bar but at this stage as you see uh vassam is beginning to the web assembly that's the abbreviation for web assembly that's beginning to dominate that category is now substantial um previously storage was the biggest problem storage was very very expensive so storage access accounted for much of the gas use a year ago and during the last year but with our colleagues at near we pretty
- 2:46:00
much solved that storages i wouldn't say that it's reached a final state but it's uh it's looking pretty much okay at this point and so that means that now it makes sense for us to focus also also on the cpu categories or the web assembly instructions and this is actually a sort of average case from a lot of ordinary contracts but then we also have gas gasoline contracts so here is a little bit of a different profile for the most expensive transactions
- 2:46:31
that are executed on aurora so within this sampling period and here you see that the situation is uh even more pronounced the cpu category vessel instructions is almost 60 percent and that means that really it makes sense for us to turn turn our attention now to to this category and that's what we've done over the last quarter uh so given that we are running out of headroom in how much more the new runtime can be
- 2:47:04
optimized how much more the storage access can be optimized we've we began to consider that perhaps it would make sense to instead of interpreting evm byte code we might compile evm bytecode to webassembly and this is of course not a new idea we often joke that aurora is something like s 2.0 as in the original vision of s 2.0 which since then has been d scoped and there will never be an s 2.0 as such as in not not named as such but aurora and near actually fulfill
- 2:47:43
many of the um original points about s 2.0 whether we're talking about sharding or whether we had indeed talking about um compiling evm bytecode to webassembly so the ethereum foundation for a long time funded work to compile evm white code to web assembly but that that work has been discontinued as as many many priorities have shifted with s 2.0 so called however with aurora we've tackled this so let me let me give a little bit of an example of what we're talking about here
- 2:48:22
so on the left side here we have solidity we have a very simple basic solidity contract you could even call it a hello world of of smart contracts it's a counter contract where you have a persistent uh counter value and you have uh public methods to increment it decrement it and to get the current value super simple and on the right side we have the evm byte code for one of the methods for
- 2:48:47
increment and this is uh actually let's say an optimal version of increment the actual version produced by solidity is about three four times longer but never mind this uh this illustrates what actually is needed to implement that method um and it's not a whole lot of code but that they see what does evm byte code look like it's uh the evm is a stack machine which means that you uh you have an operand stack where you push values and you pop values and you operate on the values on the stack so
- 2:49:20
for example to to add the two numbers you would put those numbers on the stack and then you would call add and add would take two numbers off the stack um add them together and put the result on the stack so it's a really really simple machine unlike real computers um now how do we go from this to to web assembly that's not so sim not not so difficult in the uh let's say the naive way of doing it so what we can do is we
- 2:49:53
in in this case we have on the left side the evm byte code on the right side we have equivalent rust code so i've written written in the uh primary language for writing near near contracts and this is just a conceptual example we don't actually compile evm bytecode to rust we compile directly to webassembly but conceptually it works like this that the very simplest way to translate evm
- 2:50:16
byte code is just to consider that every op code so every instruction in the evm instruction set becomes a a function that you can call and you just transliterate the whole byte code you have to take care of control structures like loops and branches as in if statements but other than that it's it's kind of trivial so there you see how it's done and this this slide shows uh the resulting web assembly
- 2:50:47
so this is the textual form of web assembly and you can see that it's it's pretty simple so this is how you can translate to web assembly from evm and indeed so this is what we've done our interest in this project is of course about utilizing this for a speed up in aurora but that's down the road because we we're going to have to collaborate with our colleagues at near in order to implement some protocol changes near protocol changes that will support this
- 2:51:19
endeavor and that's a long-term project that will take at least six months if you can even convince them that it's a worthwhile thing to do so in the in the meantime as we pursue that process which is a process we've we've come up with a research prototype that i call evm to near and this is a compiler that is available on github i hope that somebody flipped the repo to public during this talk
- 2:51:50
um it's a currently a prototype but it's getting pretty close to being generally usable so evm to near ingests either solidity contracts or even evm bytecode directly and it outputs a web assembly file which you can then deploy to near and that web assembly aims to be a fully faithful representation of the evm bytecode contract however translated to near and with some usability features that i'll show in a bit uh so here's another example of a very simple contract even simpler than
- 2:52:31
the last one this is a calculator contract with a single method multiply you give it two numbers and you get back a number super simple the way you would take this code and translate it into webassembly is you would download the compiler which we are going to release our mvp minimum viable product this week a 1.0 version you will download the binary for windows mac linux as you like and you would feed it your solidity contracts
- 2:53:03
you can give the output file name and once you have the output file you just use the ordinary near cli to deploy it on chain and this is super simple these days with the dev deploy command that's a nice nice tool after that you can call your contract in such a way that the solidity methods have been directly exposed as near contract methods that take json so we have some magic there to map from json to to the uh what what the evm needs in order to call a method
- 2:53:36
so this this is uh the intended use and our current um estimate is that using this approach we are going to get at least a 15 x speed up so this is currently a naive compiler non-optimizing um it has a lot of overheads that could be removed over time and already we are seeing in any case this kind of figures so in this this example of a benchmark contract which is very cpu intensive um
- 2:54:08
instead of taking 15 1500 tera gas which is the currently the case on aurora the same contract could be run using just 100 tera gas so massive massive improvement not every contract is going to have such a massive improvement because after all some some contracts are i o heavy some are cpu bounds but in any case we are looking at at least an audio magnitude across most contracts and this is why we are pursuing this project this is why we've added now effectively
- 2:54:39
solidity as one more supported language to nier's repertoire which means that near has now rust assemblyscript and javascript at least plus solidity as languages using which you can develop veneer and this project has been a very nice collaboration between myself and michael over there if you would stand up michael to be recognized so you can heat up either one of us about this project if you're interested i wrote the compiler michael wrote the runtime so we have a nice split there and
- 2:55:11
we are also looking to hire people who know about compilers to join in developing this uh going forward we are looking for at least one junior compiler engineer and potentially a senior one as well so in future directions looks like i'm overrunning my time so this will be short but slides will be available so some some objects are a little bit more challenging than others and i've listed here some the main limitation of the current
- 2:55:42
compiler is that we don't do any cross-contract calls whatsoever so there are seven up codes which are unimplemented uh the 100 plus others are fully implemented and it's not possible to do cross-contract calls so this limits of course the utility but that's a that's a hairy kind of worms that we haven't gotten to yet and and some some other opcodes need different levels of runtime support and
- 2:56:08
different overhead so the compiler has flags to turn them off off and on if you don't need those features what we plan to do right now is release the mvp this week release the 1.0 make available binaries for download and open the github repository for collaboration from anybody who's interested and and blog about it and and document all of this and we begin to work on a test suite to give people some confidence that this is actually um correctly compiling your
- 2:56:38
contracts your pressures expensive contracts should be correctly compiled when a lot of money is at stake um i'm going to skip this in interest of time so that's that's everything in this uh 20 minute slot and we still have one and a half minutes for questions go ahead i'm afraid i can't hear you maybe it's not on does it work oh it works have you compared the gas cost on near
- 2:57:20
from the contract written in near and the same contract written in uh solidity compiled to evm2000 yes we have um so that's a good question and the result is something something like um with with near we can get a 150 x speedup if i remember correctly for this this benchmark contract that i mentioned and currently with this uh implementation we get a 15x speedup so that that difference shows how much more there is to achieve still in the speed ups it's basically showing us our absolute
- 2:57:52
ceiling the absolute ceiling where we can go from here is 150x so that's nice to know okay perfect timing so thank you all and look for this on github shortly all right all right thank you so much and uh wow that's absolutely amazing i don't know about you but i love learning about compiler design um i unfortunately didn't take that class in college uh like my undergraduate but now that i'm in graduate school i'm actually studying programming language design so i was like literally on the edge of my seat
- 2:58:32
for this entire talk um before i introduce our next speaker just a quick reminder uh for other events that we have going on here at near con i have this little blurb here i'm going to read wired magazine asked sci-fi writer or prophet in its profile of this speaker stanley chen the author of the critically acclaimed novel the wasteland and the future looking compendium ai 2041.
- 2:59:00
we'll talk about how he thinks about the future of technology and the creator economy at 4 15 p.m on the layer one stage all right well uh with that being said next up we have marcelo fournette from aurora labs again talking about the applications of cross-contract communications in aurora yes thank you very much thank you very much um sorry oh here that's it okay uh hi everyone uh nice to be here with all of you i am marcelo fernett technical leader
- 2:59:41
the protocol team in our labs and i will be here today presenting one feature we have been working for the last uh several months uh which will help aurora go beyond its current scope without further ado let's uh start so uh in the last uh like if you have been listening that our uh ceo uh talk uh yesterday alex fchenko we have been talking about achieving the next 1 billion users in aurora and we have been
- 3:00:14
working towards that goal in several fronts right now one of the main points it's about usability we have been working hard and our product team have been working on the aurora plus feature right now uh we are trying to increase the scope of what we can achieve with aurora right now every contract in aurora can only communicate with other contracts in aurora so people get to talk with us as you know aurora is a separate blockchain in some sense it is but although it's actually at its core a
- 3:00:46
fundamental part of new ecosystem enough and it's used a smart contract inside a near blockchain so basically this means that we don't need we don't require a bridge to talk between near and between aurora and that's with what we have been working recently so after um usability our next uh goal have been scalability and are to have been talking a lot in the previous talk about how we plan to do uh vertical scaling which basically means that how we can increase the amount of execution in the provided
- 3:01:19
uh in the provided time slot that the near block uh can execute right so the way near on itself plans to a scale in the future and the future it's basically now if you have been following the news on near it's by charting so it's a horizontal scaling it's basically you have not necessarily very big machines running different charts executing the coding panel where both state and execution it started at the
- 3:01:50
same time since aurora uh it's used as mark contract near a smart contract it's deployed on a single chart today so we can get all the scalability that it's provided by a single a single chart so the whole point is that we at aurora want to scale as near as near scales and this is by increasing the uh the execution like executing aurora on multiple charts at the same time but there are multiple uh challenges to doing that like doing that naively won't work because of the whole
- 3:02:26
asynchronous environment of new ecosystems so basically assato was uh mentioning before uh doing the the same call transaction like the call up code it's a tricky one because near uh this means that it requires a cross-contract call okay so that's what we are introducing today uh to all of you it's the possibility of doing a cross-control call between uh aurora smart contracts to other contracts on near uh a new ecosystem so we are going to provide right now we
- 3:02:58
already have the core technology that will allow any smart contract in aurora to communicate uh with uh any other contract on near and let me go through how it will work uh i will be a little bit technical here and tomorrow or even like you can talk to us at any moment we have the booth here and tomorrow we will be showing a demo of how it works in practice the core idea is that we will have a pre-compile that's the way we usually do
- 3:03:31
well it's usually done in ethereum and it's usually done in an evm-like environment to exit the system so we have a pre-compile which is use a kind of like a smart contract on aurora that you can be called with uh special arguments that will trigger the cross-contract call on your behalf this will work by creating a separate near account so if you are calling your account let me just go to this slide which is gives you high level very high level overview of
- 3:04:02
of how it works you are calling this a beef smart contract 0x beef smart contract on inside of aurora that wants to do some liquidation on refinance on near so you today you cannot call from aurora a smart contract on near what will happen is that this beef contract will call this cross contract call pre-compile and this cross-contract code pre-compile will deploy a new contract for you this will be done on demand this will be all be abstracted away from the users
- 3:04:36
so uh a new contract will be deployed on uh on near which will be called zero x b dot aurora i in this case c rex b if it's supposed to be like uh what 40 40 characters long but it's a quick representation so zero xb for the aurora will be executing this cross contract call for you so zero x b calls x uh cross contract call pre-compile with all the arguments like which function you want to call which arguments you want to pass to the function uh all require arguments that it's uh
- 3:05:08
necessary to do the cross contract call this all information is passed to zero xb aurora and xerox of aurora will call well i was telling you like refinance in this case they put as example berry club the near but uh it's it could be like any uh any contract in the system so one caveat here is that uh each arrow like well not each arrow but the last two arrows will be cross contract calls on near this means that this will span at least through three blocks actually this
- 3:05:40
first arrow also means that uh it's a separate block but the overall so the overall execution theoretically will be uh four seconds okay because each arrow is a cross contract call which in here means that it will be delayed uh one uh one block each but the overall execution like the the amount you need to pay in gas it's uh cheaper than action than we were expecting the very beginning it turns out that paying for cross-country calls on near it's uh have
- 3:06:12
been decreased quite a lot in the last uh in the last year and this makes this process like where uh this process such that the uh heavy part of the gas it no it's not spent in the cross-country call but in the actual relevant execution which will be in the cdx beef part and well ultimately in the very club the near part okay this is a very simplified diagram of how it will work but it will also allow you to do like a
- 3:06:44
callbacks so you will be able to get the response from your account from the execution berry club on aurora so you can react to this callback this will certainly introduce uh a new paradigm in the uh in the aurora ecosystem because right now aurora provides a synchronous asynchronous model so everyone is very use every solid developer is very used to the model where either the whole transaction succeeds or the whole transaction fails this makes possible
- 3:07:16
things like flash loans which are certainly not possible at least not naively on near but they are possible on aurora if you are using cross contract coal uh we require developers to be aware about how near ecosystem work how synchronous environment works what are the limitations of what's happening here so that's part of the next steps in our in our roadmap right now we have at the moment all the core level primitives to make this done and the next step is building an sdk that will
- 3:07:48
make it easy for developers to actually use a cross-contract call to exit our ecosystem and to communicate uh with other contracts okay so that's where every developer that is interested in this kind of feature could be uh could reach out to me and i will be more than happy to interact with all of you to get feedback from what you are actually needing we are in the process of building this sdk right now
- 3:08:13
but we want to to get your feedback about exactly what would be a good sdk for you in this case okay so right now let me just discuss uh high l quickly few of the applications we have in mind but for sure just right now in this conference i've been talking with a lot of projects that are interested in this kind of feature that are not been even been mentioned here so one of the most interesting features is that we at aurora have been uh proposed itself to provide a great
- 3:08:46
infrastructure greater pc a great interface for our users to interact with the system this is part of what aurora plus value it's uh been provided and that means that users of near like users of aurora can start to use applications on near ecosystem by going through aurora infrastructure that will be one of the possibilities so basically you can keep using metamask to interact with other near smart contracts today by using this feature someone needs to build an
- 3:09:17
application like it's not uh completely uh double like instantly but if something is someone it's building like layers of applications that allow aurora users to interact with other near applications well that's something that will be certainly cool a lot of users like abroad addresses can be now a part of can be down members on new ecosystem that was not possible before because even if you try to call aurora externally aurora contracts cannot be represented outside of the of the system for example
- 3:09:49
as down member but that's something that it's possible today one thing that i miss is that it's been for a long time possible to call aurora contracts from from near contracts so that's something that uh it's still possible today but as part of our sdk we want to integrate all this to make sure that you can both call our contracts from near and near contracts from aurora to showcase that aurora is
- 3:10:15
just part of the whole near blockchain without requiring any sort of breaches so one of the demos we'll be showcasing tomorrow it's about how we can use this feature to pairing to paint uh on a berry club it was a popular contract uh or near in the very beginning it's still been used today so yeah this is just one some of the applications you can own nft is from your aurora address today and you can interact with like
- 3:10:46
any p171 which is the nft standard from aurora because you will have this uh c-rex bif der aurora which is a near and ear account not an aurora account okay so well yeah proof liquidity in usn you will be able to own like near you'll be able to provide liquidity in usn so for developers uh this is uh the main uh one of the main the first applications that we will be working on next it's the aurora native rc20 token so basically there are several tokens that have been deployed
- 3:11:19
on aurora as rc20s they are living in aurora unfortunately they cannot be exchanged on near or on the feeding even if you have a rainbow bridge so one of the first applications that we are building it's a connector that will allow you to move your rc20 from aurora like native aurora tokens to near any p141 and later on it could be exchanged like it couldn't be transferred using rainbow bridge to aetherium know this please notice that it's not necessary to use rainbow bridge to
- 3:11:52
communicate between nier and aurora it's used this cross contract call uh functionality actually we have already something similar built from the native near np141 412 aurora which it could have been built using this feature if you have existed like one year ago um one other application that i know there is a partner very interested in in building this but it could be also any of you it's a defy aggregator that doesn't necessarily aggregate inside aurora or insignia but it could uh
- 3:12:22
aggregate tokens it can root tokens through several exchanges that both live in aurora and near with the caveat that it will be just several cross contract calls that will happen but it would be a very interesting interesting scenario to stress uh this feature about because usually these uh aggregators like if you have seen a one inch they take like a lot of cross well not cross control but a lot of calls between several contracts so that's certainly one uh use case that
- 3:12:52
would love uh to see working okay so just want to say that we will be like in a month uh in bogota so looking forward to see all of you uh there if any of you will be participating uh yeah we finish with some time so if you have any question be more than happy to ask your answer here or at the booth later thank you yes can you hear me oh perfect great talk by the way i really enjoyed
- 3:13:34
that um so i just have a bunch of questions but i'll just ask one now and then maybe some more later so the when you're actually creating this like intermediary account i guess in this case 0.0x beef dot aurora will you actually swap out the the i guess the access key to the one of the xerox beef accounts so they're able to access that after the cross contract call no we don't plan to add any access key to that account that
- 3:13:58
account will be on we'll be able to be called only by the aurora contract so only the aurora contract only your account on aurora will be able to call to trigger calls from syracuse or aurora oh okay i see that makes sense thank you yeah uh one thing that i didn't say here is that we plan to have uh two approaches to interact with uh cedric beef dot aurora one it's a eager execution which is basically that uh once our order called zero egg beef the
- 3:14:28
aurora the whole execution starts uh happening immediately in the same transactions span out through multiple receipts but it will be possible to do lazy execution as well which will allow much uh complex use cases so basically you store the whole transaction call in series before aurora and then anyone outside of the system can continue the transaction this will allow to to run more expensive transactions uh using very similar approach to what we have now yeah
- 3:14:59
any other question okay uh thank you very much for participating today looking forward to see all the applications that you can build here all right all right thank you so much marcelo awesome awesome i always love hearing about what the aurora team is doing they're such a powerhouse can we hear another round of applause for aurora all right uh just two quick things before i introduce our next speaker uh the sweatcoin token generation event is occurring in four hours
- 3:15:40
wow that's crazy so make sure that you go do some laps earn some more sweatcoin um and then also uh it's just about 4 p.m if you're needing a pick-me-up we have there's like people with coffee machines out there and you can get a cappuccino or an espresso and americano they have all kinds of different coffee absolutely delicious highly recommend all right so next up speaking about lessons from building app chains we have pandu hi everyone
- 3:16:13
um can you guys hear me i've actually never presented like this before usually there's a speaker right but like it's uh the speakers are in your ear i'm not too loud right okay really cool um i'm i'm actually um i actually created the first app chain on the octopus network and i actually advised the second app chain on the octopus network so if you guys are also interested in the octopus network they have a booth right there
- 3:16:38
and you can talk to them as well it's actually really cool my team actually came from the substrate ecosystem we also did a lot of ethereum before so ethereum first and then we moved on to polka dot and kusama we realized that there were some issues uh commercial issues with actually playing with polka dot so we decided to uh deploy our our projects on um on octopus um actually um yeah
- 3:17:10
okay all right um actually they're going to be they're going to be projecting so you don't have to you don't have to connect yeah okay so um yeah so the first two projects of the octopus network is uh the first one is called the bio network and once we managed to get the slides up i would be able to tell you all about it so the idea behind this is of course the octopus network is a relay chain which is a concept you need to uh to substrate um that uh basically the way it's done
- 3:17:42
on near is that uh there is a set of smart contracts on here that basically create the validators and these are validators that that that build uh basically an octopus app chain so it is a shared security model so when you stake octopus tokens you actually get our tokens the bio tokens as rewards and if you stake it on the bio app chain you get the id by you uh sorry uh tokens if
- 3:18:07
you stake it on the myriad opt chain you get the myriad tokens okay so um we actually started the bio network um at least a concept for it many years ago so my background actually i have some bioinformatics experience we've always been very interested in making sure that data and biomedical data in particular is actually sovereign it's not just owned by uh you know large companies so we created the bio network to solve that problem um
- 3:18:37
quicker clicker yeah okay so yeah so the idea is democratizing everything right so we see like the 23andmes of the world uh ancestry.org and a lot of the other personal genetic testing companies they're very centralized they have a singular database and decisions on where to sell or buy the data and every all these data is basically aggregated by one company now there are actually a lot of like let's say uh evolution in the way
- 3:19:07
uh genetic testing has been done simply because the price of these uh pci machines the sequencers are getting cheaper and cheaper and especially because of covet because of the demand for it a lot of people actually have the capacity to do personal genetic testing a lot of companies a lot of smaller labs now the idea behind the bio is we merge all of those into basically invite them to come onto
- 3:19:33
the platform and sell their services on top of our platform in a way that is still decentralized that means that all these labs can sell whether it's a any kind of okay so uh whether it's um actually sampling so sending in physical samples to a lab local lab and then getting uh reports back or doing genetic analysis so say you already have something from 23andme and you want to basically send
- 3:20:03
your genome that you got from 23andme that you don't file you send over to us well not to us to a lab through the bionetwork and then get a report back because like uh maybe you did the testing at 23andme three years ago you want to see if there are updates since then things like that um you can also basically request a service to be uh to be created like if you're uh if you're a
- 3:20:28
lab if you're a research company we've actually done several research projects like this uh where uh you can basically uh search for a snippet of genes within a population and you can have like a research study that is done on chain on top of the application and finally we also have something for electronic medical records actually personal health records because this is something that is self-reported so this
- 3:20:52
is actually something that we are developing right now it's for uh a menstrual calendar and this is actually very important uh for for uh in terms of privacy because there are issues now uh about uh especially in the us of privacy uh being like for the privacy of these apps um a lot of people are questioning the privacy of these apps let's just say like i don't want to be political um like because from these apps from menstrual apps regular menstrual
- 3:21:22
tracking apps you can actually track whether a woman has had an abortion for example just to say one case yeah so uh this is something we're developing right now on top of the platform as well this is actually key when you're developing an app chain on the octopus network you're not just creating a dab you're creating us you're creating a platform where you can build multiple dabs so when we did this we are actually building smart contracts on top of our
- 3:21:47
app chain not on top of near okay so it is something that is already optimized for uh these types of data by informatics data biomedical data etc so uh you can actually already try like so uh the menstrual calendar is not yet yet up but you can actually already try the genetic analysis feature uh you if you've already done any 23andme or ancestry.org personal genetic testing product like if you've already done that you usually receive something called the vcf file which is the vcf file is actually your
- 3:22:20
your simplified genome you can resend it to us to basically have another set of analysis and that is totally anonymous you pay via chain you don't like reveal your kyc and you get results back it's already live and we're currently doing like a free program for it you can actually do it okay so uh architecture of this uh it's actually all on the website but the idea is everything is encrypted in a way you can take photos it's fine everything is encrypted in a way that it's encrypted with the user's public
- 3:22:51
key so only the user would be able to decrypt it with their private keys everything is put into ipfs ipfs is of course a public network but since it's encrypted to the user's public key it is still sovereign to the user um there is uh the labs themselves so the darker color is actually where the lab is uh genomic data and reports they do everything including uh all of the what work and analysis and then send back the
- 3:23:16
results and this is actually something that we do for both for data and for uh basically physical samples now how do you make an app chain how do you make a blockchain that does physical data what you do is basically you put the sample in an envelope you sample yourself so you self-source the sampling kit anonymously like there's there's actually a lot of sampling kits that you can even buy on amazon for example and
- 3:23:40
you send over with an envelope the envelope just has a code that code basically refers to your public key and it connects back to you and it's sent back to you this is actually already live you can try it as well oh the website is bio.network so yeah uh you can also request services if you don't have services in your area and you want people to check out like uh your area for like you want labs to basically come onward to the bio you can help us do that by basically staking tokens so labs would come
- 3:24:13
this is the economic flywheels analysis like all of the like the aspects of the uh ecosystem so yeah this is live get your free genetic analysis just go there you can actually sign up right there uh just you can scan like you can take a photo now and then scan later um you can basically get genetic analysis on your genome for free and we would be able to uh yeah and if you can share your experience we would be uh very happy yeah so that's the bio actually i'm also here
- 3:24:46
to present about a project i'm advising because uh they're the second option in the in the octopus network i'll be quick uh it is called myriad and if you haven't like uh tried myriad i think you're missing out because just go to app.myriad.social right now because uh it actually is uh social media it looks like this uh it can import posts directly from twitter and reddit so it's an aggregator for social media but it is also a social media of its own so you can post directly from
- 3:25:17
myriad or you can basically import everything from twitter and reddit and if for example i follow elon musk and um i didn't user you import elon musk's post into myriad i would be able to see what you imported like because i follow elon musk right so it uses the same sort of like social graph that you have on twitter and imports it into muriet so the people you follow are also followed
- 3:25:40
on myriad and if the posts are imported there are two things that happens first of all it becomes a a place where people can drop tips which means like even though elon musk is not on myriad yet i can import iran must uh post and then i can tip elon musk directly on top of myriad the tip is kept within an escrow that escrow is basically giving will give the tokens to elon musk once he logs in so so that actually opens up a lot of
- 3:26:12
possibilities um yeah and we have several other things as well which are really cool first of all we can use near wallets so even though this is octopus you don't have to use a polka dot wallet you can use a near wallet to log in you can use a kusama wallet to log in you can use a polka dot wallet to log in but you can poke it at account login or you can use the myriad native account okay
- 3:26:36
so this is like multi-chain on top of this social media and uh yeah we have 36 995 users mostly from asia i'm from asia we're from asia so if you guys want to like you know uh add to the european community in myriad please do uh please uh sign up uh with your near wallet app.myriad.social it's really cool and uh yeah um we also have a metaverse so last year we actually went a small part of our team actually won the meta build challenge
- 3:27:16
for the gaming uh basically the gaming uh category and uh we have been developing it for a year it's now live you can go to myriad.town it's that's the website myriad.town and uh you can try it out it is a live metaverse nfts of the actual lan parcels will be selling soon and it has integrations with myriad social as the social media app itself like you can access it from mira social and there's integration between the profiles as well so this is um
- 3:27:48
like a lot of people basically ask us whether we're copying meta like facebook and their metaverse right we were created before meta was created so uh i mean it was a synchronicity for some reason but like yeah we have a metaverse and we have a social media for yeah um yeah so this is oh okay so this is the bio uh sorry sorry for going back and forth but like this is actually the the bio overview of the this is the demo of actually requesting a new
- 3:28:22
service i don't know if you guys can see it at the back it's really small uh but you can choose who is actually going to be doing your personal genome so this is anonymous one way so from the user's perspective users are anonymous but you are actually sending like your your genetic material to actual people so um it's anonymous one way but the service providers do need to provide their you know
- 3:28:45
kyc and details um you can oh so this is already the menstrual calendar so you can basically choose your subscription and your average menstrual cycle and when was the last time you had your period uh you can also track everything this is this is uh basically a general menstrual calendar it's just that everything is saved in an encrypted fashion within ipfs so uh yeah it's uh it actually is a lot more secure and of course like no one like except
- 3:29:17
you would have sovereignty over the data and uh yeah you can view the statistics of your uh menstrual period and you would be able to know um like if you're tracking pregnancy for example you can you can track your ovulation as well um yep please sell your like i guess most of the guys here are like hopefully like you can tell your wives or girlfriends right um yeah so next one is myriad come on myriad
- 3:29:49
please load hello there's supposed to be a myriad demo here but like for some reason it repeats uh okay so let me let me let's go real quickly it's app.myriad.social you can actually open it yourself you don't really oh oh i actually skipped it i was the one who skipped it it was my fault okay yeah this is the myriad demo can you guys press play for me thank you so um myriad um we aggregate social media and we can import you can see there that's actually a
- 3:30:30
twitter uh post that's a twitter url we place it in there we create a post once it's created you can tip it you can send tips you can share you can comment this is actually cool because it means it's uncensorable like if if you want to basically save someone's post you can put it into myriad um you can send tips to people like that this is with near you can also use polka dot you can also use kusama and myriad's
- 3:30:55
native wallet uh yeah you can uh oh this is oh i actually skipped this uh i'm very sorry but like a myriad is actually not just uh what three it's also a federated social media so if you guys know mastodon or diaspora like the older federated social media it's decentralized but in a federated way uh we are both so you can actually host your own social media and create it's like a social media engine you're creating your own social media for your community or for like your beliefs
- 3:31:26
um and uh you can create a new instance an instance is basically like a like um it's like a node but it's for federation basically and uh yeah and you would be able to create a new instance and that would be a separate myriad instance from the regular one um yeah i have two minutes left if anyone has any questions um okay uh you can contact me i am at my email is ceo at thebio.network i'm ceo there and uh you've been a wonderful audience uh
- 3:32:06
thank you so much and have a great day thank you so much thank you thank you how about that i always love companies that focus so much on privacy and you know that's a big issue and people uh with companies that you know maybe aren't so involved with web3 is they'll just take your genetic information and do who knows what with it so always love to hear about companies that value your privacy all right are we are we ready
- 3:32:40
for are we good okay um just a quick reminder uh even even when near khan is done for the day there are still side events that you can check out at near con.org there's a link there on the top of the page called side events and you can check those out and party all night long all right next up we have key palm we've even reinvented web3 onboarding and you're gonna like it from ben and matt
- 3:33:17
welcome up guys thanks jacob thanks jacob take it away guys we need a clicker oh yeah we need a clicker oh perfect all right uh hi everybody thanks for coming um so we're here to talk about key palm and if you haven't heard already uh it's pretty lit fam it's going to the moon it's going to the moon so a quick overview of the agenda today what we're going to talk about is basically who we are why we're here the web3 onboarding problem
- 3:34:04
a little bit about the keep on solution but since it we already built it we're going to talk about how it works and then we're going to talk about what you can do today with keep on and we're also going to talk about where keep on has already been used and we're going to talk about our future work so who are we uh basically uh ben i'll let you introduce yourself first and then i'll go awesome yeah my name is ben couric i'm a subject matter expert when it comes to nfts smart contracts access keys pretty much
- 3:34:36
everything smart contracts on nir i work for pagoda i co-founded fair and i'm i'm really passionate about innovation and technology awesome thanks ben so my name is matt locker and i have a background in ux research i was in the ethereum community for a while i joined near in may 2020 i worked on the wallet team and then i joined the devrel team and worked a lot with the nft standards and the marketplaces i'm currently with
- 3:35:00
proximity and i'm passionate about crypto adoption all right so this is big so why are we here uh basically web3 crypto blockchain whatever you want to call it it's all about the sovereign ownership of your assets it's all about basically creating and exchanging values without intermediaries so this is about p2p coordination it's about us being able to do what we want with each other online and it's about
- 3:35:29
nobody kind of getting in the way it's it's really about privacy and freedom at the end of the day now none of this will matter unless people can use the apps right like if they're confused if they have to go through a bunch of jargon if they have to jump through a bunch of hoops it's just not going to work because we can't get everybody on board you shouldn't have to be techno literate to use crypto and blockchain
- 3:35:54
so the web3 onboarding problem is really the fact that a user must create an account before they can do anything of value and what we really want to do is we want to flip that model and we want them not to have to like be educated and understand a bunch of we would just want them to use the products we want them to use the apps immediately then see the value from the app that they're using and then we want them to create wallets and actually claim the value kind of post-hoc
- 3:36:24
so web 2 has this they have frictionless onboarding you go to a website you just start using a demo right and then maybe you create your account after you've created something and you need to save it why can't we do this with web3 well thanks to the near blockchain and thanks to access keys and the account model we can so the key bomb solution did anyone go to the party last night show of hands or
- 3:36:48
the party on uh on monday on sunday or monday so if you got a ticket your ticket was just a link and that link showed a qr code when you clicked on the ticket it made a transaction to the near blockchain but you didn't have a wallet when they ticket was scanned it made a transaction on the near blockchain those people didn't have a wallet you didn't nobody needed to create a wallet to actually do things on the near blockchain and this is all made possible by access keys and ben you're going to talk a little bit
- 3:37:22
about how it works in a moment this is the key point though you can take a link something you're familiar with get a qr code something you're also familiar with you can go to a party you can get value and then later on you can create a wallet from that same link and you can claim an nft or do many more things which we're going to also talk about so really quick just to sum up the nft ticketing use case there were no wallets there was no wi-fi
- 3:37:53
that needed to be used there was no burning of nfts or any other complicated stuff so you receive an nft and a wallet to show that you were there after you've enjoyed all of the value and interaction and the coordination that i was talking about amongst multiple different parties so i think it's pretty impressive and now ben is going to talk about how it works one one more quick point in that is that um you only get the nft you only get onboarded once you've actually showed up
- 3:38:25
right so it sort of eliminates that use case where people go they get a ticket they get the nft but they never actually show up to the event which i think is really important too so it's actually a proof of attendance rather than just you know going stealing the link and then just you know it's in your wallet but you never actually showed up to the event but uh you know i'm going to talk a little bit about how it works right now from a more developer standpoint so what you do you go to the app you go to
- 3:38:49
our contract you deposit some near into your account we have a sort of uh debiting system in place so you deposit a bunch of near and it's in your account and you use it over time we did this so that there's seamless seamless user experience when you're actually on site because a lot of the stuff costs near and you don't want to constantly be uh be redirected over to the near wallet to sign transactions and all that stuff right so if we keep uh sort of one time
- 3:39:14
let's say you deposit i don't know 500 near you can use that for essentially the rest of the week or you know however many tickets that you're creating or use cases you're doing but yeah so that's step one deposit some near into your account step two is you create a drop this drop outline is essentially the behavior that uh that that's going to be used when the key is claimed right so you can have an nft ticketing sort of drop you could have a fungible token
- 3:39:39
drop nft drop even just like a simple link drop right so you create the drop right and then after that you add keys as many keys as you want you can have one key two keys three keys you can have a hundred thousand keys let's say you wanna on board a million users you could create a drop with a million keys right and then after that you hand out the keys however you want whatever distro app you wanna use right you give out the
- 3:40:01
keys they're used and then all of the logic is executed on chain keys can be used either to claim to an existing account right so let's say you've you're sort of you're in the near ecosystem you have an account already right you just want to claim you want to get the assets the fungible tokens the nfts you know the function calls all to an existing account you can do that but you can also claim to an entirely new account that's never been created before so it will create the account for you you don't
- 3:40:27
need to go through any of the onboarding process none of the like implicit account fun through moon pay all that stuff you don't need any of that right you can just create an account on chain basically for free and uh and yeah it's it's pretty cool yeah and just uh something about the numbers we use these for a couple of the parties the party on sunday night we actually created like 1700 keys and we
- 3:40:51
just basically started giving them out we had about 14 different drop types each each drop type had a different kind of custom nft um and it all worked really seamlessly so ben what about the config yeah so there's a whole ton of optimizations and a ton of customizable features that you can have when creating these drops i'm just going to go through a couple of them so one is like a deposit per use so every time the key is used how much nier gets sent to the claimed account one near to near if you're familiar with the
- 3:41:23
existing link drop contract they have a hard coded one near minimum so you can't go below one near every time the link drop is claimed this you can go as low as you want you can create a link drop with even no near no deposit per use but if you're creating a simple link drop this is actually 99.8 percent cheaper than the existing link drop contract another one the uses per key so let's say you created a drop you want to give it out to a whole bunch of people and
- 3:41:47
you want them to be able to use it multiple times you can actually create a multiple use access key system so you can have one key that can be claimed one two three four a hundred five hundred however many times you want just that one key another thing is a throttle timestamp let's say you have a key that has ten uses but you don't want it to be used bam bam bam bam bam you can create a throttle timestamp to throttle the
- 3:42:11
time in between each use another thing let's say you have your own uh link drop contract right so let's say you want every single account to be a sub account of your account so i think we have endless here let's say they want to onboard all of their users and they want every single one of their account ids to end with dot endless dot near you can do that too you can specify a custom drop route if you want
- 3:42:34
awesome ben thanks um so let's talk about drop types yeah so if you're familiar with simple link drops we've got a simple drop this is essentially what everything is built off of the simple link drop with just near in embedded into the key that's for transferring near for onboarding really easy we've also got nft drops and fungible token drops they're sort of wrappers around that simple drop so not only can you do near you can also add
- 3:42:58
nfts fungible tokens let's say you want to onboard a user and send them an nft boom you can create an nft drop as well functional token drop and then the cran de la creme which is the most powerful feature i think of keep on is function called drops when your key is used you can go and actually execute functions on chain let's say you want to do auto registration into a dao lazy mint and nft all of this is possible through keepon
- 3:43:21
awesome so we've been talking a lot about how you can use keepon maybe as a developer you can use our contract directly or you can use our front end here now our front end looks a little clunky and that's because we did apply to the near foundation for a grant to hire maybe some of you lovely developers in the audience and kind of bring more developers into our ecosystem but we were denied and why because we already work in the near ecosystem and they said no dice
- 3:43:53
wink wink maybe we need maybe we do need a grant because it would be really awesome to have a no code front end for keep on right everybody yeah okay people are actually listening uh so anyway moving on i want to drill into what ben said was the creme de la creme which is the function call the function called drops these are really really cool this is actually how we did the nft tickets because we didn't know who was going to claim the nfts so why would we create them ahead of time
- 3:44:25
so instead we made an nft contract that could actually have the nfts lazyminted with a function call that was approved from the keepon contract so it's really keep on doing a function call to the nft contract and the nft is created and then shot into either a new or existing wallet this is an awesome use case especially an awesome user experience as well because they just create their near wallet and the nft is there already when they go look at it so
- 3:44:56
every key use just a little bit on like kind of like the nerdy details every key use can actually have a vector of methods called so you can do like whatever you want you can you can have like one method and then another method another method um so keys with multiple uses can have a different vector for each use so like you could basically create a key that was like membership and a dow and then it was sort of vote three times and
- 3:45:25
then it was sort of maybe claim some sort of reputation to an existing wallet or a new a new wallet so you can do user onboarding that actually takes the user through multiple steps of creating value on chain and then retroactively put that value into an account so key uses can also be null or just empty and just to describe why you would do this is sometimes you just want to know that the key is on the first use the second use the third use and that is
- 3:45:58
exactly how we did the nft ticketing system because we wouldn't let people scan and get into the event until a certain point and then after they scan we need to kind of show them that they can now create a wallet and claim so the front end for the tickets was actually referencing how many times the key has been claimed so whether it's like step one step two step three so it's a very cool system and we had a lot of fun building it so on to some other use cases i'm gonna let ben talk about this sure yeah so
- 3:46:31
this is uh i think what i really want to stress is that this is not just for nft ticketing you can use key pom for so many different things and this is just what we thought of so like let's uh let's play out a little scenario here i hired matt right as a contractor likely i probably hired you he probably would hire me but let's just say that i hired matt as a contractor and uh he's demanding 500 uscc per week for doing
- 3:46:56
something right now the traditional approach should be okay i'm going to go i'm going to set up a server or i'm going to set a reminder on my phone every week to go log into my near wallet go send 500 using the like fungible token contract and send them 500 usdc right or you could set it up in a server and have it automatic but then you need your full access key in there and all that all that mumble jumble but what you can do with keep on is let's imagine you
- 3:47:21
create a fungible token drop i give matt let's say i'm employing him for 12 weeks i create a key with 12 uses on it so matt can use this key 12 times i then set a throttle timestamp of a week so matt can only use this key once a week then what i do is i load up that drop with a whole lot of usdc how maybe i can preload all 12 weeks or maybe i do it a week at a time it doesn't matter right then all i need to do is just give matt the key that's it he has the key he can
- 3:47:51
claim the fungible tokens whenever he wants doesn't matter it's up to him but he has the key he can claim the fungible tokens and everybody's happy so that's one use case another really cool aspect of this would be that obviously if benji is not happy with the work i don't know why he wouldn't be i mean he can revoke the key at any time because he is the he is the administrator of the drop and of all the keys in the drop so he can revoke the
- 3:48:19
key which would of course cancel my streaming payments another uh use case back end servers so there's been a lot of times in the near ecosystem and and not even just in the near ecosystem where things get hacked servers get hacked you know secrets get exposed for example let's say you have a server that has a full access key because you need to attach some near right that's very common you have a
- 3:48:42
function that requires a near deposit that means you have to have a full access key to sign the transaction if you're doing all of this in a server and your server gets you know breached you'll lose your full access key that's that's a no-no we don't want to lose our full access key so what you can do is you can use keepom to create a function called drop and then use that function call in your backend server you can cycle the keys you can create multiple
- 3:49:05
keys in the drop you know it's just it's way more secure because if you lose that key it can only be used to call one thing and one thing only and that's either claim or create account and claim you can also change your permissions to only allow the key to call claim or only allow the key to call create account and claim but if you lose the key what's going to happen it's going to do what you think it's going to do and that's what is outlined in the drop
- 3:49:29
that's great and then another one is quick onboarding mass onboarding so the one near hard-coded link drop value in the current link drop contract is completely bypassable you can create one link job with about 0.0005 near right so you can mass onboard hundreds of thousands of users with keep on and create a bunch of these simple drops you can also do fungible tokens as well it doesn't matter it's up to you but you can make really really easy and really quick onboarding i use
- 3:50:00
it all the time you know through my startup fair there's a lot of not crypto native people that i need to onboard into the near ecosystem i just create a simple drop i give them a key boom they're onboarded onto near super simple awesome so this one's pretty interesting uh let's see if let's see if the developers in the audience can keep pace with this one this one's getting getting a little bit freaky you know sort of pushing push pushing the boundaries of what you can do so let's let's imagine
- 3:50:26
that you have a function called drop that actually goes and adds more keys when a key is used so you're calling the method add key whenever one key is used so you could create like a drop that has three uses the first two add another key and then the last one goes and actually lazy means you an nft and so you can expand on this and have some sort of social media like breadth first
- 3:50:48
traversal thing where you create a drop that goes in calls the ad keys on another drop which goes and does you know this like massive key creation thing and you only get the nft if your friends have claimed your keys or something just some marketing stunt but you know just pushing the boundaries of what you can do here i think it's pretty interesting it is a marketing stunt we're developers we hate marketing so
- 3:51:10
i mean maybe you can do the marketing so uh where is coupon used let's talk about a couple of spots uh ben you want to take the first couple sure yeah so endless i see them in the audience here you know we've had a lot of conversations with them about the back end servers they find it really interesting we did some of the po-apps at eth toronto we did the proximity party you know we did the near week party as
- 3:51:32
well which was not a party that we sort of had firsthand in organizing but you know i was getting some messages from the organizers that basically said uh you know they love it and uh that's great that's great feedback um we also did some poe apps for pagoda uh here at near con and also uh we did it for your company fair yeah so let's talk a little bit about future work so right now uh keep on is basically uh it's a very simple kind of like um
- 3:52:04
it's a very simple kind of serial like linear process of claiming it sort of claim this claim that claim that i'm particularly passionate about kind of getting a v2 going where we can create a more complicated uh state machine where we can go from like step one to step two and loop back to step one and go to step two and basically have a whole bunch of other interesting things going on i want to embed little data structures in there so instead of just sort of incrementing the steps we
- 3:52:35
can actually control different variables and we can keep track of different pieces of data as the users are calling claim um why this is important is because we can actually create a lot of really deep integrations with a lot of the apps on near and then as i mentioned before in kind of a join a dao and vote three times use case we can actually retroactively send the reputation that you voted three times and participated to the newly created account so really
- 3:53:08
the key comes down to people the key comes down pun intended comes down to basically people getting value out of using the newer blockchain without having to set up a wallet and another aspect of this is that sometimes when you go to use uh the blockchain you don't have your wallet on your phone or you don't have it on even your laptop it's on your ledger you just want to go to an app and start using it and then
- 3:53:39
you know you know maybe the name of your account on your ledger and you just want to shoot all the assets into there after you've sort of you know maybe played a game or completed a challenge or done some education thing like a learn to earn so really this is actually not just for new users it's for existing users as well ben do you have any topics you want to cover on future work no i mean there's a there's a whole lot
- 3:54:03
of work to be done on the contract side where we're pushing out some new neps to to uh to really enhance some of the technology in terms of like getting gas prices on chain getting access key allowances on chain in the run time and stuff so i'm working uh pretty hard with the working groups there to get those naps through but uh yeah i mean it's been this has been a blast building out this contract and uh you know it's been fun awesome
- 3:54:26
all right so that's it thanks everyone and i hope you enjoyed it keep um matt and ben thank you guys so much well what an amazing project and i believe that wraps up our lineup today at the doom slug stage thanks everybody so much for coming and make sure to come back to this stage tomorrow for even more technical topics