Phala Network - LensAPI Winners, Mainnet Hack Details

Recorded: Aug. 31, 2023 Duration: 0:43:57
Space Recording

Full Transcription

Hello, hello, everyone.
We're just going to have a few minutes here just to wait for people to come and join and waiting for our speakers to come up to space as well.
Catch you soon.
Oh, oh, oh.
Baby, honey, don't you really cry?
Take it away from your dark side.
gmgm everybody
thank you for joining us and our fallon network lens api announcements and mainnet hack
welcome everybody thank you for joining before we get into the uh details of the space if i could ask
everybody to like and retweet the space so we get a little more vision from all our followers and everybody listening in
uh much appreciated so uh let's go ahead and get started we have the falla team right here
to give us some updates and some new events i think we just set out the announcement but it doesn't hurt to reintroduce everybody again
so i'm going to go ahead and pass the mic to with the team we have a couple special guests with joshua zoe and hang uh whoever wants to take the mic first go for it
cool guys yeah i will take it first and say hello from the falla team very good to be here again right we had a our first uh first uh
space before the first hack and today we are very excited to be here with the whole team um and announcing the winners of our first hack challenge and chatting with you guys
you guys um maybe over to josh
yeah i just found like uh was always um really excited to kind of announce uh winners and
also just kind of give you a little preview of what's coming with the next hackathon and then the workshop that's coming up for next week as well so um glad to be here
and we're going to shoot it over to hang if he's available to speak
and he might oh there we go oh yeah i think the problem is uh i muted it all right so yeah i'm very glad to be here uh
uh yeah a lot of things happening in the last week and uh yeah we see a lot of very nice uh i i would say
mind-blowing submission that's really beyond our expectation and a lot of very interesting stuff
and we also learned a lot of lesson from this hackathon yeah very glad to be here to share uh what we thought
definitely for a second i think hang fell asleep so just so you guys know it's like 2 a.m where he's at right now
so he's he's staying up late to share a lot of information with you guys so shout out to hang for
staying up as i thought you were asleep for a second thank you yeah for sure so definitely uh before we even
get started i want to give a shout out to everybody that participated in the hackathon like like hang said
they really dug the submissions and the quality of the submissions right and that's like we kind of have that
standard with developer doubt and we love to keep pushing it forward um i know there was a few bumps
in the road during the hackathon last weekend um so we definitely want to address that and then hear from
the team about you know what happened how they're planning to make sure that doesn't happen for our
next hackathon and what they're going to do about it
yeah i think this uh is this question for josh or me whoever wants to take it could be either or
yeah josh maybe you go first oh yeah sorry sorry um uh for the for this part i i can kind of like uh describe
like high level um uh what was going on from my perspective but um from the like super technical level uh
honkin like kind of uh talk about like the rpc issue and uh what's going on with our uh pat puller in this
case for the automated uh polling of uh your your consumer contract on your on uh the polygon network
so in this case uh we were able to make some modifications to where you could set your own
custom rpc uh from from from the the the fat bricks ui uh dashboard so you're able to set your custom one
but uh on the on the back end we have a polar that is uh also connected to uh reply to these requests
in this case uh from the consumer contract and this is where we kind of like hit this bottleneck
and we had to create uh some kind of way to handle the rate rate limits of the rpc note that we were uh
using for the fat polar but uh hong can uh kind of like dive into the details of this piece on this part
yeah i i think i i can uh uh yeah try to expand that in a very uh simple way so a lot of details
happening uh and a lot of uh actually a lot of difficulty uh to dig into the actual problems uh because
of the system design but basically uh we used to uh have an estimation of how the workload of
this hackathon so probably uh 20 people or 40 people uh but it turns out uh when people almost submit
all their um contract to the blockchain and we trigger those uh contracts at the same time so
basically it uh created a spike and the spike is so high that not only like uh alchemy we're using
the alchemy as the rpc provider they have the written limit uh and at the same time there's it even
triggers some uh uh limitations from the system so like when sending out those rpc requests uh there will
be a bunch of http requests and it turns out to trigger some like a very low level um dns uh request
and it has a very uh low limitation so it's basically just allow the concurrency uh within like 20 or 30.
so we are beyond that limitation so that creates two problems and uh to make it make it even more
interesting whenever we want to try to uh uh debug the problem and since you know we offer
an environment that's that is fully uh secure and fully in a protected environment so we cannot just
like dig uh attach into the program running in the in the system so we can only try to guess what is
happening in the black box because that's how we make the oracle secure so yeah spend a lot of time
in a very short period and especially when people are waiting for our solution we tried really hard and
we learned a hard lesson but uh it turns out uh most of those problems can actually be uh well prepared
so next time when we do the next hackathon for the functions i believe that will not be a problem
because we can be fully prepared for that definitely basically what happened is we had so many hackers
deploying and pushing the limits stress testing the the network that you got data rate limited right so
when we're trying to hack it and get everything up and running uh we just basically ran out of credits
so uh i mean kudos to all the uh the hackers out here that pushed it to the limits and just out here
building stuff uh but i know i remember talking to the team and because you know something like this
happened especially for like a three-day hackathon that we extended a little bit longer you guys want to
do something special for those that that submitted the uh the for the uh final for the final count right guys
yeah so so for the uh for all the participants that uh ended up with a submission we wanted to uh you
know delegate some uh free swag so we have some like uh follow teachers and some merch for for all the
submissions and um it was uh in the hackathon just uh thank you for your patience and then also just
sticking through and even even if they didn't finish or bad uh incomplete submissions they they i saw some
initiatives where they they still went ahead and like described their process by creating blog posts or
creating videos of their experience and that was very helpful for all of us and uh we really thank
you all for uh you know participating and uh sticking with like um your submissions and then even even
waiting a little bit longer to like finalize your submission and then uh make some minor edits so
that you had a a full uh like a full product in this case and that was that was really uh awesome
to see just kind of see like how far y'all would push and then also uh create some like very interesting
and like creative ideas out there yeah very very cool so yeah again thanks again for everybody that
was we're patient uh i mean obviously a major learning experience and uh you know they reward you with
some free swag so we'll get more details on how to claim that swag and i think uh dev doubt did nft
for submitting so there'll be a little bit of more details coming soon of that but you know everybody
that is submitting is kind of waiting to hear if they haven't read it through the submissions uh can we
announce who the winners are for the lens api challenge
sorry um it was breaking up i didn't uh uh uh can we announce the winners of the uh last hackathon for
the lens here yeah billy you're very difficult to hear right now but i think he's asking to announce
the the winners yes of course um yeah so we had like a lot of like really good submissions and
very creative submissions as well like uh had we had like a little bit of trouble deciding uh you
know the top ones and and finalizing this but um so the i'll i guess i'll start from the the third prize
so in third in like uh in the third place uh we actually have like a shared third place so so two
uh two uh two submissions uh uh uh won the third place prize and that uh one is uh lins tell um
i believe their their twitter is uh at uh mary child 21 and then uh poker lens uh also uh placed in third
um um and there's is uh uh uh uh uh s-k-e-s-h-a-v-2-5 so those are the uh third place winners so
yeah y'all will get y'all both get the uh the value of the third place prize um for second place uh
uh we we uh picked uh just roles who did a uh integration with uh guild and the lens api oracle
which was really nice to be able to uh assign roles and use the lens api oracle to uh verify
if a uh user had a certain amount of followers uh for uh uh certain thresholds so that was that was
really really awesome and and then our first place prize was a a gaming uh a gaming uh dap that was
called lens fight and they they did a really uh really cool job there and uh we really liked uh
the video and of their uh demo and then uh the article that they they published as well um so
those are our first uh three winners or four winners in this case but uh also we have some extra
uh uh uh follow swag winners for videos and blogs so uh for the video you'll get a uh follow t-shirt
um particularly probably probably different than the uh the one that is uh for all the submissions but
uh in this case uh lens tell again uh with their video uh lens fighter uh d reward with their video
um hack hitch for theirs and then lens fight again and then for the blogs you will be getting a uh
follow bucket hat and these these uh projects for uh pokalens lens fight uh hack hitch again and then
uh coxie's uh lens api oracle uh post on linkedin which is very very informative and uh a lot of reach so
this was uh really uh really uh really nice and it was great to like go through the submissions uh
i'll be following up with uh all the submissions and then kind of uh digging into their experience and
then um seeing um how we can uh enable you to build a more robust uh you know uh projects like in the
next uh hackathon um where we're going to introduce the fat functions
very awesome very awesome congrats to all the winners if you guys are in the space we may bring
you up in a little bit to uh maybe discuss your project in a little bit more detail but moving
on for the next hack you know now that this hackathon is done and you've got your your hands dirty with the
initial idea of how these things work you know now we're going to be looking in like what's next
what's in the next hackathon that's coming in with fat functions right we were working with lens api
and it was a very single single thing like what can you do with a single lens thing and now
we're expanding the horizons we're expanding the chains you can literally do this in almost every evm
chain that you can choose theoretically um and then having the the fat function api come in so
if hang or josh can get into more details about what is capable for this next hackathon i'd love to hear it
um yeah um hong do you want to dive into the fat functions and give a highlight folks
yeah sure so uh yeah uh so basically like if you have already participate in the first hackathon
then you will notice we have built a very specific oracle for some specific use cases
uh and how we do that under the hood we have a platform that allow us to build very very specific
oracle so it's it's not the same like the same as uh chain link it's basically mostly focused on the
price feed or uh like vrf but on our side it basically allow you to convert whatever api or whatever data
available in the network to use it and connect it to your smart contract so since we have this pro we
have this uh platform so we can easily build a lens api oracle and this api oracle is just one specific
use case of that and the platform itself is what we called fat functions allow you to write some javascript
code and in the javascript code you can access the internet just like you're writing some uh simple
node.js script and then it can connect to your smart contract so just like lens api oracle but it's more
general now you can connect to whatever api you want to get or whatever data available in off-chain words or
cross cross cross-chain and bring it back to your blockchain and every part is customizable and
every part can be coded so this is uh what's how we build uh so basically fun fat function is how we uh
how we build the lens oracle api and now we open that we're going to open that for everyone to build
your own oracle your or your own off-chain uh computation function so yeah so uh this is uh a description
from like the uh uh oracle perspective but if you think in another perspective uh what we're offer is
just like a backhand or a function as a service backhand so you write your functions you you write your
program running in the off-chain world in a uh totally secure and um uh confidential preserving way
and it can connect to your smart contract so it extends your smart contract to do the things that
cannot be done on the blockchain so this is uh yeah so basically this is what uh fat function and uh in
order to uh write or i mean in order to uh build with fat contract uh josh probably you can give a simple
introduction um so uh you you you said uh to build with the the fat contract or as in like as in like
the fat function is a feature of the fact yeah yeah be built with fat function yeah so like some of the
unique like capabilities too that you'll be able to do is like be able to batch uh uh http requests so
say that you don't you want uh information from like a few apis in this case to be able to uh call
multiple and then run some some transform on on on this data well now now you're able to batch like uh
uh i think it's right now the the service limit from what i saw was like five so five in one query
so you can you query up to five apis and you'll be able to get that information back and then be able
to compute over this and then uh create some unique um some like unique i don't know uh projects out of
this or products in this case and uh for instance like say that you're you're uh doing a a sportsbook
uh instance uh where you're you're creating a sportsbook but also you want to update uh a telegram
group uh whenever uh a score is updated or uh uh something is settled in this sportsbook and you can
query the apis you're able to verify that this is settled and then you trigger another
uh http uh request to your telegram group where it'll notify all the all the users in the telegram
group uh all all uh all in one uh all in one query so in this case you're able to do a lot more with
just one one request from your consumer contract on your on your uh destination chain and and now we're
able to offer you a lot more uh flexibility and a lot of more uh unique uh use cases are enabled
through this as well so so what i'm really excited to do is uh finish the workshop create some templates
some docs and uh get these uh out to y'all as soon as i can uh as i'm like uh building these over the
weekend and uh and then show y'all next week during the uh workshop like how how this process will go and
how this development experience will work as well uh so just to follow up on that the workshop is
going to be tuesday september 5th i will announce the time and the hackathon will start september 6th
through the 11th and i know all the devs here are kind of curious this this is going to be a much
much larger bounty pool we're talking thirteen thousand dollars in cash money prizes the last
hackathon was about 2k so much much bigger and we're going to have different prize pools for like
two fattest submission prizes which i would say consider like you know two first places
uh we'll have two runner-ups and three quality submission uh bounties also for this hackathon
we are having a five technical blog winners uh five starter kit winners and five video submissions
as well for for possibilities and i'm going to throw in a little alpha here guys just in case for
those listening uh foul is hiring and they are looking for a dev rel and media content all right so media
content video submission you know hint hint put put your best stuff forward you know get get down
and dirty with like all the ideas that you can have so like think of this as like and we can make
literally i don't want to say any api any any with asterisks in the corner api that you can call
and bring it on chain right is is literally what you can do with this so like you can get really
really creative um you know the the last workshop was really really cool of being able to do the
dig um so i i'm excited to see how this this sportsbook uh nft project is going to play out i
was using the last one for reference during my hack so i'm really looking forward to see how creative
people can get with this type of of build of like you can literally almost do anything that your your
mind comes up with and then bring it on chain so um i don't know if there's anything to add on that
josh unlike any any other details or anything that you you may want to to add on like the the bounties
or anything like that uh yeah nothing nothing too much on the on the bounties other than i'm just
like really excited to see how like the the submissions and people build and being able to
like kind of help help uh all the developers throughout the throughout the week of this uh
hackathon because uh there's a lot of things that i hadn't uh thought about that came up during the uh
last hackathon and just learning like different things and how other uh developers thought
processes are it it really helps me and helps me grow as a professional as well so i'm just really
excited to engage with the community and and really uh help out where i can and see see what uh is
possible from a developer standpoint for sure okay so there's one one minor caveat on this one as well as
it is going to be on mainnet right so you know it does it does cost a little gas to to qualify for
any of the hack but here's the good news anybody that submitted on the last hackathon are automatically
allow listed for the fa token airdrop and i believe a little bit of matic to get you up and running on
polyon network uh for those that didn't uh sign up or submit anything we will also have a submission form
for you um and where you can put your idea and your github and then make sure that you qualify for
the airdrop and if you miss the initial hack and you miss the initial sign up form for it uh reach out
to the team reach out to josh um pitch your idea and then uh you know if it if it works out uh you'll
also get the airdrop for file tokens to be able to use that as well and those tokens are for them to
keep right obviously right josh yeah yeah it'll be it'll be used to uh be able to uh create your
bricks profile deploy it on mainnet and stake your file tokens to be able to have your contract active
so so you'll be able to keep these tokens as well and just a reminder this is open to everybody you
didn't have to hack on the first one and if you're not a dev down member it's still okay to sign up uh go
ahead and sign up uh connect and we'll be reviewing the github if you make your github right now as i'm
making this announcement that it's real money and you're doing airdrops obviously you're not going
to qualify but if you are a dev down member and you're around and you're a human and you're a
builder i'm pretty sure you're going to qualify for for that airdrop and like get you building and get
you experimenting with this api so you know definitely spread the word that this this is a pretty decent
prize pool for the amount of time and uh we're going to have uh tech support or dev support from the
phalan team uh pretty much every day of the hackathon for an hour and a half right i believe
and then um we also go for josh uh i was just saying yeah i was like oh i agree yeah i'll be
i'll be around at all times and then also and the devs outside we will also have two members that will
help you out as well uh currently we have phil uh doing our front-end support so if you're having
problems with your react javascript or anything on your front end we're going to have an hour of tech
support there and then crypto our our senior solidity dev will be around as well so if you're
having troubles with your smart contract deploying or any general questions they're going to be around
to help most likely friday so that way you know that if you have any questions and you know it starts
wednesday if you're getting stuck on anything and josh's not around you don't have to like bug him
with the non-fall of stuff uh hit up the dev down members and you're here for support so you know
we got you covered in all angles on this so if you're thinking about doing it if the price
one wasn't enough and the job opportunity wasn't enough i mean just do it for the experience right
so definitely uh we got your back on like every option that we have
i didn't know oh go ahead just just because we we just said that uh the second hack is also open
for everyone if you maybe have missed the lens api oracle hack um but i would also like encourage
motivate everyone to check out the submissions right the winners we will also post about it and i know some
winners are also here in the space um to get an idea of what our tech can do and now with fat
functions of course josh is doing a workshop but you already get like a little bit of an idea of what
people have built before yeah and just to follow up on that you are actually getting featured on the
fallen network interface like for for the you know technical blog writers and and the aspiring dev
rails right i mean there's one thing having your own publications on your own profile like your own like
hash node or something it it weighs very differently when you have it on dev doubt when you have it on
follow network when someone else is posting your work it weighs very very heavily so having your stuff
featured in somebody else's network it weighs it weighs a lot so for those you know interested in that
that that has value as well for sure
uh we're going to open up the floor for any questions and comments about the hackathon also you
know if there's any of the hackathon winners that got announced today that want to share their
experience or anything we'd love to hear from you if not you know we'll give it a few minutes if not
we'll have any final words or anything to get you guys started
it looks like everybody's heads down ready to uh get ready for the workshop so uh just
uh yeah yeah i i mean i participated in the hackathon and i loved it being able to mix
JavaScript and solidity and the hackathon it was really fun for me you know uh primarily more
solidity than than front end so like i i was having fun being able to to mess around and
and do with the general idea so i i i'm kind of interested in in maybe possibly partnering you know
if the time allows me to do so and i'm not gonna you know ditch for a weekend or not so hopefully
that works out if not i might be looking for a partner so keep me in mind and i think we have uh
kamal the builder that wanted to come up and say something as well go for it kamal
hi gm i know i just wanted to ask if the floor is open for some questions
go for it yeah so i just had the question that for the another hackathon that's coming up
uh what uh blueprints would be available for it like it was lens this time so are the new ones coming
yeah let me take that so uh the last time uh you're using the blueprint called lens api oracle and
next time we're going to launch a new feature so this feature is not just a new blueprint but it it
allows you to write your own application not only limited to lens but you can do whatever you want
access the off-chain data access the other blockchains or access the data start or api from some
centralized or decentralized service provider so basically extend your smart contract to whatever
api or services you can imagine so this will be available as a new feature it's not a specific
blueprint and the way you use that will be we're going to provide you
you a template and in the template you can write your solidity code you can write the functions in
javascript and you can render run the test to connect them together and ensure it work as you as you
expect it and then you just deploy on the mainnet then it should work out of the box
you know it is actually amazing to see how phala works with all that it's definitely very much
compatible with a lot of networks um yeah for sure super excited and yeah and how does phala and
ink come up like what is like how do you handle like the ink stuff uh this on the substrate team
i'm more interested in that i got it so this time it will not be involved with the very low level
rust stuff so yeah one thing you're right on the very low level stuff we have everything written in rust
and written in a specific contract language called the ink under the hood but this time we're only going to
open uh the javascript side so this is the application level you write your javascript you don't need to
care about how the low level uh infrastructure work we just uh make everything for you so you write the
codes and write your solidity codes uh bring them together and it works
yeah yeah thank you it's it's really amazing i've struggled with ink a lot to be frank of
and so phala seems like pretty great to me and that that yeah yeah yeah actually this is a really
good question a little bit about the very low level stuff so we also has yeah now i i will say we have
two sdk one is the javascript sdk which is easier simpler and you can move faster and another is the
very low level raster one raster one is more powerful but yeah we're trying to make the javascript sdk as
powerful as the raster one but yeah if you're a really hardcore guy you can go with the raster one
without any problem so yeah you what you're saying is javascript javascript sdk works with even with ink
and all those raster uh yeah it's not available right now but a few days later we're going to announce
it in the uh in the workshop lit by josh uh and the same time we're going to give everyone open uh release
the documentation and also like all the templates the the cli every stuff to the public so you can
try it out uh and by the way specifically for this hack zone is only for the fat function which is the
javascript code yeah amazing amazing thank you thank you just a reminder for all like yeah you're still
working with the same stack with javascript and solidity so like you're not having to learn
anything new so if you got your hands dirty with the first one the only thing that's going to change
is the ability to call more apis right or just get creative with the api call so you're not having to
like learn something new you just have a bigger price pool to work with and i know zoe we have yeah
zoe we have a very big thing happening after the hackathon too for those that may be interested
can you follow up on that too yeah sure um a builders program so we want to encourage everyone
that's building on the hacks to stick in our ecosystem and come out thank you for the the
compliments to our tech um if you guys are interested to work further with the with our tech stack and to
also get some funds from father directly we have the father builders program where we sponsor specific
teams and um yeah product ideas with up to 50k um we provide technical support marketing support if
you want to launch a debt using fed contract or the uh the fed functions feature that we will present
next week so um yeah we want to mention this so you now can try out to work with it and we would
love to also inspire you and motivate you to to stay in our ecosystem afterwards
yeah and by the way uh writing the fed function is a good way to create your own service on top of
fed uh on top of uh file network so basically if you uh create some fed function that's not only useful
for yourself but also for some other developers then we'll be happy to convert it as a blueprint and host it
for your project so that everyone else can also discover and use that
awesome awesome so just just to recap for those that were a little bit late to the space
and and missed a little bit everything uh we are having our second falla hackathon that's going to be
on mainnet if you submitted on the first lens api hack you're automatically allow listed for the
fob token airdrop with some magic tokens to get you running on mainnet if you missed that and you
want to you know participate or or add to it you can follow up with the signup form that will be going
out very very soon if you missed that reach out to the falla team with your idea of what you want to
build and they will make it happen uh it is a much much bigger price pool than the last one this is
thirteen thousand dollars in prizes uh for the two fattest submission prizes two runner-ups three quality
submissions and then we have five technical blog winners five starter kit winners and five video
submissions and a little bit of alpha that falla network is hiring so you know bring in your best
work you never know i'm not promising but you'd never know definitely bring that out there and then
be featured right so like if you make a killer blueprint uh for fat contract or something that may be hosted on
the primary one for others to use so there's a lot of opportunities so i mean it's it's free to
join it's open to anybody you don't have to be a developer dial member you can you know become a
developer dial member by participating in the hackathon so i mean i don't see why not and we're here for
support uh and so we'll catch you on the first workshop showing how this new functions work on
september 5th and the hackathon starts september 6th through the 11th so we are here to support if you have
any questions reach out um you can reach me you can reach the follow team uh follow zoe follow josh
follow hang you know follow us we have all we're more than happy to help if you didn't see the last
hackathon we were always available and just answering questions so um definitely check out for the launch
thread coming up pretty soon and uh you know i'm just going to have everybody put their final words
so there's nothing else to to add to
maybe just add you to add some more pressure so to say to all the hackers no it's just just
appreciation because you mentioned we are hiring and all the submissions also i mean we have the
the team here josh for developer relations and hung our cto but also our ceo and lead researcher are
reviewing these submissions so we just want to show that we really um go deep into these submissions
and if we see something that really sparks our eyes or where we see a lot of motivation and effort
we we want to continue to work with you guys right so we also want to say that we really take all the
submissions very serious and we really look forward for the for the second hack so thank you guys
uh i'll pass it over to josh or hang hang shout out to you for staying up like super super late
and is speaking to us i know this is a really late moment for you so any final words yeah i enjoy that
yeah um i guess like final words for me is like uh thank you all for like participating and then
engaging and then joining us really excited to see what uh the next talkathon looks like and i look
forward to communicating with y'all if you ever need anything just reach out to me directly i'll answer
uh and uh yeah uh let's go yeah keep yeah keep posted and uh yeah see you in the next axle
all right guys well and if you are in the states enjoy your long weekend get some rest take some
naps because next week is grind time uh hope to see you guys soon and on that note have a good one guys
talk to you soon thank you everyone bye bye thank you bye