NEAR Protocol Delegation for Validators
Nothing is loaded from YouTube until you press play, and then without tracking cookies.
About this video
Follow the latest from NEAR Protocol on,
Website: near.org Community: near.chat Blog: near.org/blog Twitter: near.ai/twitter GitHub: near.ai/github
#Validator #Blockchain #FutureIsNEAR
Transcript
8,811 wordsCaptions as YouTube publishes them, usually machine-generated, so product and people names can be misheard.
- 0:00
I know that this meeting is recorded so this is my first AMA ever up near and a few words about myself I'm the product manager for the ecosystem and I'm working on the body dealers program which means that I am the person who's building the new steak wars and after you know few months of working and learning and understanding how we can make something that you know makes sense for the validators community we've come
- 0:31
up with some ideas which I will start to introduce today and will be launched next week about myself I spent the last few years in the blockchain space I'm a co-founder and CEO of digital identity startup which is this blockchain for IOT I joined near joining me around November and you know we are already ready to go so the plan for today is to spend the first 10 minutes 50 minutes to deploy the delegation contract which is a
- 1:12
specific feature of here I will show you the shell how I'm working on it and and at the same time to learn how delegation essentially works with new protocol and then we will do any an AMA until 10 and 30 Pacific with all the questions there is also India we have Bowen so we have a nice good portion of the team he's here to reply any of your questions and concerns before starting do you guys
- 1:44
have any burning questions that you need to know before we begin we can write in the chat and an ace will help me with that turn on your microphone depending on how well your microphone is working all right so I will yes yes the goal today is use better net now right now that you're talking we have some issues so I will have to check sometimes if I can you know see if I can if we can work since
- 2:37
probably it's not gonna it's not going to work the whole time maybe we can switch on test net there is no real there is no big difference between the two so we can use either you can go to your nose if you having some problem yes so essentially what I'm what he what I would like to do is to show you how to deploy a contract so essentially as you can see from here this is the near repo
- 3:16
on github so get up calms linear and what to build we're building from here is a set of tools for the community and from them you know probably near shelf we have also the initial contracts so initial contracts is containing some example and some core contracts in the in the protocol of which probably the most interesting for us a pollinators is this taking pool now this is a wrapper that is constantly working progress so
- 3:46
what I suggest first of all for this guide is to go on the token-based sticking pool this branch will be most probably merged into the master one later on I expect shortly but by now we have to work on this branch so what is important is to open the staking pool which is the way that we use to delegate tokens and then download them compile this record so how the sticking pool works so as you know with mere protocol you essentially have
- 4:25
a transaction which is called which is colored by the comment New York steak so you take an amount of token you stake these tokens to the server you decided public key in the name of the server you stake this money and the server after three bucks will become a validator if you actually stately enough tokens now the staking pool essentially is doing the same in the principal but
- 4:48
instead of requiring that you have as a validator all the tokens needed stake you can essentially generate some sort of a wallet some sort of a contract where other users can deposit and stake their tokens and for you so essentially when you deposit and when you stake these tokens in the staking pool you will essentially receive additional stake but you don't have to control the
- 5:15
private keys and you don't have to you know manage that portion of the wallet it's gonna be all automated and all based from the from the wallet of the user so the more the users that are sticking to your contract the higher will be your steak and the higher it would be you know the number of seats that you can have in your protocol any questions so far well how is it different from so the principle are more
- 5:50
or less the same but the difference with mere protocol is that all the delegation comes from smart contracts it's not at the protocol level so the protocol level you can only stay with your own wallet near stake a certain amount of our certain amount of tokens and that's only if it's your stake your wallet the delegation can happen via smart contracts so you have to deploy your smart contract which is this one but this is a demo so the opportunity here
- 6:21
is that anyone can build and deploy their own smart contract with their own features so you can decide how the how did the fees are gonna work you can make variable fees you can make Laak duration you can you can have multiple ways of manage your contract of course you have to respect the base protocol principles for example the lock-in period for fans is three box but the rest is really up to you so you can really design your own smart contract
- 6:52
this makes sense does that make sense and is it allowed to buy votes so if I'm a block well a producer a validator then I get like block reward rewards can I share them with the rewards with the voter well the person that's stayed at my contract absolutely so new protocol actually has an automated restate process so your stake will compound over time which means that also the stake of your delegator will compound over time and
- 7:34
essentially every one of them will have a share in your contract and this share will essentially reflect how many rewards this person will receive when they a mistake because the user will have to unstick portion of these money to withdraw essentially their their tokens so yes absolutely you share the you share the rewards so what I would like to do let's begin with the let's begin with question like does everybody
- 8:10
understand how like like actual staking like valid Araki's access keys like accounts like general understanding how that usually works or like that be per face does anybody not understand how this works so I think that a good answer to what he is asking is to go on docks near dot-org here when you open the main page of the dots you will find a clear indication where to go validators bottom-left
- 8:49
and you have the quick start and then for example the question that Ilya asked can be answered by going on keys where you can see that you have the signer keys pretty wallet the validator keys which is for validation and creation of nodes and the node key which is used at the network level so these are the you know the explanation of the kids and I really strongly suggest anybody later in this code really spend some time to read
- 9:22
you supplementation as you can see is not that long in less than one how are you can cover everything and you can essentially know you know how the keys work and you know for example how to run a know that how to install so this is really important and I think that 90% of the questions that I can see on our chat for troubleshooting are most hold it most of the time coded by the QuickStart
- 9:58
so I think we are ready we can try to compile as mention it we have a little bit of some some issues with with a better met but should should should work we should make it so the first thing that they want to do right now is to clone the initial contracts rebel so as I mention it this is a this is work in progress so the best way to get the latest release of the contract is to use
- 10:30
this version here so we won't get up then a second the second thing the second most important thing that we have to do is to go on the right on the right branch so the right branch is token-based is the token based I can make it based a hidden pool so what I'm gonna do here is to check out so can based staking cool I guess maybe to go in the right and then ish game interesting can you guys help me oh yeah
- 11:32
alright so now that we are on the right branch and we have our new sticking pool running we can build using the Rasta I suppose that you already did the parasites on your machine so what we're gonna do is simply should build command with which we service taking which we did with recipe install should run by itself essentially so the common is entering in the sticking pool directory because we have multiple initial contracts what we want to use the stick
- 12:09
in pool and then launch the build script this is all happening in real time I didn't record anything so what we're doing now is to download and compile the the contract what we are talking we can start to give a look to the usage so as a validator I have to do essentially three commands one is create a new account it's not mandatory but it suggested which means create an account that will control this mark contract so you need to create a new essentially the
- 12:52
equivalent of a new wallet then we want to deploy the contract by giving the right link and then call the validator so so while this is building I think I can open a new window what we will have to do here is do a near login now the real problem here is that we want to have a new account so hold it and this is the moment that so this is the address that I normally use to create a new wallet so it's you know using better net is important because we are working on
- 13:51
better net I will know yes can I have a question of course what is the difference between this my validator account and the master count so actually there is no real difference in terms of the protocol and how near works it's more like a logic a logical different difference so what I what I suggest to do is to deploy the contract not on the on the main wallet and I mean counter that you have but to create as a
- 14:33
different account so to create a different account from your master account that makes the management easier for the keys and also make it possible to deploy multiple contracts under your same top-level domain so I'm not sure if you bow and want to expand the concept between you know master accountants to be specific the the contract you'll be staking with like in in practice it should not contain any master keys like
- 15:08
any fool ya fool access keys right because otherwise you can just steal all the money from it oh it will be so versus like your wallet like your master account is where you you know you actually have access to the money in it so usually you would create this new contract and deploy deploy the code that ya new account deploys the code in it and then remove the access keys to it so that the only way to operate with issues of function calls right and now it doesn't deploy and you
- 15:38
can validate with it but you cannot like steal money or do anything and then if for example this contract is outdated there's a new version you can just withdrawal the money ask everybody to read delegate to a new contract for example yeah make sense I see thank you alright so I think it thanks Leah really let's so I'm happy that this helped I'm creating any contract so we need to understand if I can okay so essentially what is happening is
- 16:12
that we have some issues on meta net so I I think I can feel full back on test net this was really timely so I will show you in general from scratch okay so we can create a new account it's gonna be in your cat one test net I decided to apply the same name of my server but it's not needed I like that you over the recovery phase praise you will now see my private key please don't do this
- 16:57
don't do this don't do this you know in other in other in other moments see this is a throwaway yes do it don't do it at home so at this point I verified the passphrase and I have my wallet ready to be used now what I need to do is to log in from my machine so imagine this this machine that I'm using is not really the validator node this machine is a Linux machine that is only handling the keys
- 17:36
and it's handling the contract so just to to be more clear you don't have to install near shell and to run your wallet and to deploy the contract from the same machine that is running there validator you can run it from anywhere else for example I'm running all of my notes from my lab from a laptop so I got my laptop I got a virtual machine I login in the virtual machine and I got my my
- 18:03
information there so what I'm gonna do is to be sure that I will login with this machine and we'll have access to this wallet okay so the best way to do is first of all and this is actually one of the things that we want to improve user experience but today is like this understand on which node environment we are working and this this is clearly saying that we are not working on any specific environment so what I'm gonna
- 18:35
do is to export just give the common node environment and and set it to test net we are using test net for this record because you know the wallet is a test net and so on so if you work on test net this is gonna be the parameter if we're working on better net is important to change into by the net of course and of course if it's going to be mean that you will have to set me at this point you're near shell will be
- 19:07
connected will be capable to talk with us net so if I issue become a near state near cat one dot test net I will see that I have my account I can clearly see that is a test net network and I see that I have five hundred you know test net tokens ready to read mistake so at this point Michael my my wallet my minor shell is ready my wallet is ready what we do what you need to do is to login so near login okay near login since it's a
- 19:48
remote machine cannot control your browser so what you have to do is to copy and past the string here okay we need to visit this URL so what I'm gonna do at this point is to manually do the login okay double check here test net protocol so we are on test net the wallet is there I'm pretty much sure that this point I will be able to authorize nope interesting you're interested for some reason it's asking me to create not I'm not you know problems let's try
- 20:33
to okay let's recover sometimes can happen that you know I mean it's really sometimes stress that not better nerd yeah but I created an account on test net because we want to avoid the issues that are right we are facing a better net right now and also the steak wars will be run on test net so essentially I cannot login from the screen so I can recover okay cover your count its cat one that's net
- 21:20
and then I can copy and past game the super secure way of storing private keys I don't know why I cannot login case but it's fine let's let's try to the bag I mean this is really happening in real time so don't really know what's up I can try to clean up the URL here what really the this she'll use needs is the public key okay so we need to authorize this public key this is mostly what we need so let's try at least I saw you
- 22:08
create an account on better net that's why it's probably not recovering let's see so we added the keys but didn't didn't run but also your Susan euros near the door and redirect URL is near protocol calm so oh so you you may want to just like copies a URL and edit it and then it will work yeah that's that's totally yeah also we should might we should Tate yeah that's that's totally fine I mean it's good that we you know we're finding all these tiny glitches and also they're appearing here in the video
- 22:47
because you know can happen to anyone so let's try alright so this is the login page I'm sure that they want to authorize near one New York at one dot that's net lowing near cat one that's not again and should be done so this point you know nothing is gonna happen okay we have the authorized apps we don't expect anything else from here what we need to do here is near Cat Cat one that's not okay we need to type this that's at this point we authorized my
- 23:28
near shell this is important is a really important step because without doing the login we cannot deploy the contract to your validator okay now at this point we should need the validator key and the end the name okay so I will show you that I don't have the validator key and we will generate that so / better net slash so this is a brief light yagami better net lobbying with tetanus so I'm showing you one of the multiple ways to
- 24:25
understand that there is no that there is nobody Turkey so we need to configure the validator okay so there's nobody other key so what I need to do is again now let's assume that this is another um these are two different machines okay so I'm using two windows it's the same machine again you don't have to run near shell on the same machine that is running the node for simplicity I'm
- 24:53
using this one so what we can do is near up test mad on this machine I don't need really to use docker so what is happening is that the application is asking me what is the account ID and we have this so the counter D is near CAC one got test net so ya see I see colorless your your your question that's a good question we will ask Bowen in a moment so near cut one does that dot s net
- 25:34
will generate the key you will see that these are there multiple keys in the screen we have this is the public key that we need to use to deploy our contract but but I still prefer to you know give this command okay so as soon as nice can let him commit in some people can ask two questions in the meantime absolutely all right so I'm basically two steps ahead because I tried it earlier today but didn't didn't try that particular branch I tried the master branch for the for the for the
- 26:15
initial contract so of course didn't really probably work so what I found out right now is that the next step will basically fail because the build told us H script doesn't build is taking pool with shares was in contract but just a staking pool was in contract not sure if that's on purpose but I guess we will stumble into some struggle there and the second one isn't actually a question so when you initialize the contract so when
- 26:47
you call the new function provide a stake public key and I have no clue what it is and we're at you get that from so we're getting there so fair enough yes so the other node that's one of this is my notepad so when I when I work on this I essentially copy and past some information so that I have it at hand more specifically my node is this one so the account ID is this one and the public key it's gonna be this one okay
- 27:28
and Oliver sorry yeah I mean that is why I was asking about it does everybody understands keys because like your questions pretty much about that is like near has pretty much two types of keys one is the key you use to sign things and one is a key that your validator would use to sign blocks right so sign a key for signing transactions and validate a key for signing blocks and so now that a key is usually generated when you create when
- 28:01
you start a node and that's what like here definitely are showing but pretty much if you say near like if you use near app it actually asks you for a guy count ID and then prints you a valid that a key to the generates what's on the screen right now if you're doing it manually you probably ran like near in it or some form of that and or key Jen which also generated like you know I mean I got that part but I never
- 28:31
stumbled across a stake public key right so it's specifically asked to provide or you have to provide the initialization of the contract with a stake public key yeah is that the same as the validator public key or yes yes okay okay that's that was unclear to me I do understand the keys okay well never see the term stake public key before yeah it's the same as like if you just stay directly right to say an ear stake and then the validator or sticky
- 29:03
all right okay got it yeah and it's like we want to distinguish it from the kind of sticky you signed transactions with which is just usually just publicly admit that makes all sense to have a different ballot is a key to an actual yeah signing key yeah I think that we are that so I think I can proceed a nice so the contract is here we are on the right I'm just you know resetting I won't go through the old pre-flight again it's a good it's a good you know
- 29:43
habit to know if the null environment is the correct one again we I see that it's empty so we want to be sure that you know we are on the right we're on the right on the right set of our pcs on the right ledger essentially so going back to the to the contract these are they let's go back to here to this let's try to deploy this contract we can make it so we need to do the command deploy with accounting B and the wasn't file there wasn't file that we
- 30:22
here is the contract it's taking pool with God with with shares so what I'm gonna do is to copy and pass on my notepad this command because I know that the account might be will be this one so near cat one that's net and planner will have to find the right wasn't file path I discovered that it's important to have the absolute path for that so I will have to find my so I think it's better
- 30:59
to do in this way so this is the path where we find our we found our file so I essentially do have to count the puffs here so I can do this painstaking thing then deploy this when I'm ready I can definitely copy this and this is a comma so I'm gonna deploy the compiled contract test net we'll take a moment and apparently the contest has been deployed the right way to see if this was successful is to go
- 31:58
to the test net Explorer so X arc and I can see already in the liberation transactions here that this contract was deployed okay I design I deploy the contract the name is Kinnear cat wanna test net which is exactly what we issued empowerment ago so at this point we are ready to set up the validator so we need to go back to the problem of zoom is that is occupying the top of my screen here so what we need to do is to call
- 32:54
this entire structure so what we are gonna do is the next step okay so I'm gonna call the contract which is near cat one dot test met the owner ID will be your cat that's not the stake public key is exactly what was the question second ago we need to copy and past the public key that we have here now from what you learned is not it's not important to have this part so to have the type of curve use it for the for the public key it's not a problem
- 33:43
just copy and past the public key and the last one is the fees so the fees here are 10% they are calculated numerator and denominator so it's 10 out of 100 okay can be 100 out of 1000 it's up to you I will keep nice the standard 210 and the last one is again who is the owner of the wallet that is issuing this contract and again okay at this point we should be able to deploy this contract okay and stake essentially the moment that we issue this contract is the equivalent of writing a new transaction
- 34:25
which says near state is the equivalent of saying I want a steak so I will pass here the comment and I will at this point we should see again in the Explorer we should be able to see that reason you know this is the better net we don't need it so we have a counter call here as you see we are not alone for example flux Protocol is using that's net with us right now so if you want to really be sure the best way is to go in our page of the account so
- 35:17
there is a specific link in the home page you go on accounts here from the Explorer you tie cut one test map and you can see there's also search part you can touch yeah this is also search bar of course so here we can see that we call the method and succeeded so we successfully deployed and configured our sticking pool contract on test net ok and we can essentially see the steam parameters that we issued a
- 35:52
moment ago so what is the owner ID if the public key is in the correct one I can see that is the correct one ECC D and you know look at the last few character is this one I'm pretty much sure that is the correct one and I can also see that we have fees of 10 over 100 so it's 10% at this point our body leader is ready to stake so how everybody is ready now the point is that we still have zero stake so what we
- 36:24
should do is to create a new contract I will give you an example let from wallet I can create a new account I will call it delegate or one dot that's not not sure yes it's available ok we can create the account this is just for the sake of testing ok I can have again the recovery phrase I got this I will bring this peer maybe let's separate them and we can practice here and call
- 37:16
it okay let's put the word number 12 we should be fog and we're set this point we need again clogging don't forget that we have to login with another account now let's assume that we have a new machine okay this is another user we are not using the same shell but we we have to you know I have another user that will essentially call the endpoint for the delegation so again we have to
- 38:00
correct this tiny part and if we want we can clean up this part should be almost there so we want to authorize delegator one last night I know that you asked me if we can do this from near shell we will go over it shortly so the good one not that's night let's confirm as soon as we have the page we should be ready to okay test that right at this point we are we are ready to as
- 39:05
soon as we got the confirmation we are ready to sign transactions for the delegator now imagine that this part will be automated using normal user interface so with the stick Wars will come a delegator app that will run on a normal website so what we are seeing now is how it works for two tests so what you can do from the from the shell okay but instead all of this part so the delegation will be done by you and by
- 39:40
your users and your community would be done through an application so what we need to do now is to call the deposit again I like the idea of copying and pasting here because it's much better so first of all what are we going to call the call is the contract which is near kept one the test net we call the endpoint deposit which is the function on the concert that we just deployed they are the account ID that we are
- 40:13
sending the money so this is the destination and this is the recipient sorry the source of the money is delegate or one dot test net okay and we want to stake 100 tokens I'm pretty much sure that we have that because every new account is starts with 500 tokens so 100 tokens is you know a fair amount the the delegator will have that so I will simply paste here the command and I will
- 40:46
deposit the money so the first part of the action the first action that we require is deposit money so remove this money from the stock in these tokens from the wallet of the user delegator and it will be deposited in the staking pool is not yet state so it's just the cosseted there now this distinction from the user will be transparent there will be no different you just press one button and we'll say stake but in a lot from a logical point of you we have firstly deposit like you
- 41:19
know bringing this money on your ex they couldn't of bringing that money on an exchanger in or on your wallet address and then we can stake which is this common here again I want to do this I will call for everyone who uses Mac there is a trick to make sure the numbers are correct so I mean ideally we'll kind of fix this needing to have put a lot of zeros but right now at least in assessing as arguments you don't need to put pass in
- 41:58
New York ten year which is one to 24 one to the minus 24 oven year so it's a lot of zeros and it's really easy to like mess it up so in on Mac you can open spotlight and paste this number yeah and we'll show you in scientific notation so if you divide this by one to eat 24 that's how much near it is right so this is e 26 this is 100 near so you can quit the check if you have not serious or not
- 42:27
enough this is you know one yeah so this is a really useful trick to quickly convert near to your own year so we're sure here that is one e 26 as mentioned by Ilya is one year is 124 so means that we have two more zeroes which is from one between 84 2026 so this is the right amount of course if I if I got the wrong number and if I thought just once even more the contract will fail so the last part is
- 42:59
so getting back to this to this New York near coal steak we will have to add the last component which is the alligator one dot test net okay so this comment will officially stake the deposited all the deposited amount in the Indus Mar contract we go to your sticking pool so near cut one the test net with this command will essentially receive 100 talk to stake at this point we can go back to
- 43:34
the Explorer it was here I want to find it we can go here I can reload the page but I see that it's really there and we have a new delegation a new delegator see so we have deposit transaction which was successful three minutes ago and we have the stake method which was successful 30 seconds ago at this point you can see the balance of this account which has 500 tokens on its available
- 44:13
balance and 100 tokens that are locked this is the amount of this staked so this is the confirmation that your account now has 100 near stake on the test net there is one additional way to check this and this is the last one and then we can go into the AMA what you see here is postman you don't have to use postman you can do whatever you want what I'm going to do is to call the RTC
- 44:46
and call a method which is validators I'm not sure that in test net is already deployed let's try I sent the query so I I can responsibility on how to send a correct query on the RTC but what I see is that we have a response here from the JSON okay so if we look at the JSON I know that it's not a pretty but we can scroll down and know from this JSON which are the current value letters which are the next validators we are not yet there and we have the current
- 45:24
fishermen which is again nothing that has to do with what you're doing with a twenty fishermen all of them with the equivalent of 500 tokens and then we have next fisherman which is another component that we don't want to see we need to scroll down and look at the proposals and here we go the we have near cat1 the test met with a public key that we had here it's important that the public key that it's here is the same that we have in our
- 45:56
validator which is this one must be the same okay sorry I lost it must be the same that we have here and then we have also the stake which is 100 100 year so this is the confirmation that our staking pool is correctly staking in order to get to get a seat as a validate or you have first to have enough stake which is going to be pretty large on maenette and secondly you have to wait
- 46:26
three epochs which an test net is 30 hours I think so it's 320 bucks up is one-one in pop series is less than is more than 30 hours so it's after three bucks is 36 hours up to Thursday 36 hours on battlenet is only nine hours because we have a much faster you know to be specific it's not 3d box it's end of Zeus epoch and with this next epoch and then you'll be validator in epoch after next yeah so it's a thief right now well you won't become an auditor in a third box
- 47:08
it's it's like if you're staking right at the end of the epoch then it will be 12 hours which is taking at the beginning of the epoch it will be 24 hours awesome so thanks for for for these specification so yeah I think that that's it the contract is working the balance is locked now if we want we can we can stick a bit more so I really don't suggest to do this multiple times by now so every user will do this once
- 47:43
essentially every time that you call deposit and mistake you will spend gas so it's better to be frugal now I deposited another 200 years I can see that they really appear down here see I got a new the policy so what I can do now is to take again I will put the right number here and so now I we should see 300 token staked from their PC so I see that the transaction was successful I send again the requested RPC I can quickly scroll down to the end and you
- 48:25
can see that now we have two proposals of course the bigger one will overwrite there the smaller one or at least the most present one will overwrite the previous one I think I'm set questions yeah I just have a quick question is it possible to have like two method calls in the same transaction like steak and well first deposit and then steak in the same transaction instead of signing
- 48:58
twice yes it's possible but near shell doesn't have set functionality so you will need to write like a piece of JavaScript yourself or Python or rest okay yeah it's fine yeah yeah yeah yeah so the way transactions are structure there is an array of actions so you can actually in one action like create account deploy a contract on it transfer money call some functions delete account like and yeah sign once
- 49:33
but like near shell the command-line options are only for one one action is done okay yeah I'm just comparing with us yeah well you can have multiple actions in the same transaction so I was wondering if it's possible here yeah if the cooler Clee is not supporting it and yeah that's fine as long as javascript is supported so if the RPC notes support it then it's fine yeah yeah actually like when you create an account it's actually three actions it's creating count transferring money
- 50:09
and adding an access key and it's like you can actually create account without any access keys and then you cannot do anything with it this is like the proper way to deploy contracts that will not be changed going forward there's actually two any one action create account and deploy contract and to not add any access keys to it and then this like contract and lives on right based on the contracts logic but yeah like right now kind of
- 50:36
command-line options has its prepackaged things that you can use but yeah I can I'll put a link in the chat for the code that doesn't thanks stefano could you open the delegate one in the explorer delegate oh yes this one right no the delegator of course the delegate areas yes so let's open a new window let's find delegator one I already have it here yes this is the delegator okay yes
- 51:17
Ramiz didn't deduct the balance from my account when I deposited to my validators son contract not actual I just I just wanted to see if it worked for you totally so essentially yet I there multiple possibilities for example for me knowing that succeeded is important because sometimes you think that the transactions went through but then you have an explorer and can be fail in this case you see that the balance is now lower is 200 yeah I think it's important
- 51:52
to explain that it's better that you don't spend all the Yocto that you have on your account to not zero your balance because otherwise it will be you will not have money to pay for the gas Oh usually zero your account there is a stage space at play so you have to have some amount of tokens on your account to pay for the magician log you shouldn't lock everything you can lock everything but you shouldn't oh
- 52:18
yeah that's so don't don't lock all of your fans down to the Yocto because you will be you will not have gas - you will know that money to you know pay your gas you'll need to send some money like a gamma yes so better net right now has an issue with RBC it's been fixed right now but important important information we are playing with better net now because better net is built and designed to run with validators but the stake wars will run
- 52:55
on on test net so we will essentially all the accounts and everything that is happening on better net will not be you will not exist on tests that we will start every one from scratch so this tutorial running of test net is also proposed to helps to to see how which tools we are going to use so which is test net for wallets and Explorer any other questions even oh yes after building icon a file
- 53:32
named stinking pool touch awasum not the way the shares in the in the red meat dogs what about yours after building you got right some name with shares or not you have to use the one without chairs there is no such thing as shares so the readme is wrong okay well the delegation country the sticking pool so in the readme in me then the the path to the blossom file is wrong it's just taking underscore pooled
- 54:14
Azam even if the contract itself is with shares but the filename of the contract is just taking pool yeah it's called a sticking pool period yeah yeah and agreed me it has taken for the shares that that's confusion so we we can see here the shares okay so there are the shares so in the in the the contract the query will return then I'm the number of shares that the user now has now we can have fun and and and because it also
- 54:49
from another account and you and we will see that the shares will increase and and will change based on everyone that owns some you know some some shares of this poor and these shares will be used to redistribute the rewards of course so you have a total number of shares and you have how many shares the user will get and based on the total number of shares you know the rewards will be distributed across the pool - of course
- 55:21
when we set up at the beginning the 10% that will stay in the under control of the validator so I think it's worth and then I think that to call someone to show you also that we have the new methods to know the total balance so we have some end points here again this will happen the user interface but for example we can know the balance of a 16 account owner you know sticking for gain I like to use
- 56:00
this in past the view they get a total account and the account ID will be delegator 1 so if we copy and past this comment this is a way to know what is the balance of the account delegator 1 and as you see we have a 300 near tokens this is pretty useful if you want to build you know your own user interface and you want to show today to the user how his stake is allocated now the
- 56:47
important aspect is that this phase of the stake Wars will test the staking pool and we'll test the delegator application but later on we strongly suggest everybody data to build and integrate this process into their own website if they have a back-end if they have a user a user wallet to integrate this interface with their existing platform so all of these experience will be totally transparent for the user and
- 57:20
would be perfectly integrated with your platform honest I think we are running out of time do we have any other question in chat or that we want to answer suppose she's busy fighting the trolls you guys can you guys hear me I'm just going through the chat okay we'll try I say I'm delegate methods as well in the guide yeah well there is the camel we have accounts try it now yes we have to wait we can a mistake now the problem is that even if I stake and unstick
- 58:25
instantly there will be the lock period so we cannot read roll em out they they they we cannot redraw the defense we can just a mistake and wait that it will be unlocked so what we can do is take a little mistake let's let's take a bit of funds sorry meerkat but later we run stake 100 pretty sure that is the same amount above yeah it will take as mentioned you have a lot period but it's a good question because we can also show that point which is essentially controlling that your stake is available so at this
- 59:29
point you can unstick 100 we wait of course that is confirmed we have a less sure now 100,000 well I don't know if it's thousands just 200 but what we need to say is in Explorer ham steak and was successful at this point we can we cannot yet the we draw because we need to wait that the amount is unlocked and again we need to wait certain number of epochs three epochs or the third epoch because you know it's important to me this specific delay is the third epoch right I think
- 1:00:22
this is actually we stressed it slightly different from becoming body there is actually one more epoch so pretty much if you try to our state a Deepak key or your thumbs will be unlocked at the beginning of epochs t + 3 T plus 3 so the 30 book from now delegator one will be able to - mistake so we have again is common we have the get accountants take balance which is a specific end point
- 1:00:59
should be able to bring it to add the account ID at the end and we should be able to see ok so I see that there is one one hundred near on stick balance I'm not sure let's try let's try this we draw so since the validator didn't probably III really don't have a clear answer but we're testing right should be
- 1:02:06
possible no we can we cannot unstick of course because it's not yet available so there is a small error in the RTC because says that 100 is a mistake but it's not yet available we need to wait you know unsticking delay which is what we were mentioning three books so it's important to provide to the user an interface which takes track of when the user unstick the funds and then they can withdraw after you know a certain period of time and this is also happening a
- 1:02:42
large number of possibilities for like liquid staking and so on this is really up to validators I seen myself I see myself an opportunity for liquids taking for example so so this three epochs is it it is a minimum interval in protocol or English contract code coding this is the minimum interval no like I don't know why this is how it works it would it's not I mean it's not like you can adjust this I mean I can't I can extend
- 1:03:28
this interval I can you me you know including my contract cannot only do any more questions I would like to have a little one yes about stake words what will be the motivation for users to delegate tokens I understand about opening a note but about delegation so delegation at this stage is just interesting but I cannot reveal more but the real I'll stake wars will be launched later this month
- 1:04:16
and will have something that is engaging for the community so the community will be really really engaged to join stake wars and delegate so what they will see is a list of validators which would be yours and all the others in this call and they will be really incentivized to test the delegation and state that coins take their tokens to the validators on test net now this is you know the this
- 1:04:46
is how the whole of this initiative is needed to make not only validators used and confident with with a delegation but also the end users so end users by now will just click around and we learn how it works but later on later this month we will do launch to toward the community as a whole which will give them an incentive to participate I cannot tell you any more right now okay
- 1:05:11
cool thanks at that stage and this is really an important element that I wanted that come out from this call at that stage when the community will be completely committed and we completely completely you know engage in this initiative would be really great if some of you have their own interface their own delegation up or they integrated the delegation sorry the sticking pool in their website or in their tools so we can essentially hand over the experience
- 1:05:43
of the users through your website okay I think we run even more than planned one last question and then we can we can close it here I think the last one is to clarify it stay course there's one question yes so if I could if I understood correctly right now we're using better net because better net is the only network well together we definitely better net is the network where validators anybody did or can just join and stake their tokens that's net and still locked
- 1:06:37
we will unlock test net as soon as we will launch stake wars in this phase number two where we can have a staking pool and so everyone everything will run on test net starting we planned next week now depends also we have other initiative isn't progress like the hackathon so we need to work around sinking and aligning validators for that phase but we will run a stick works definitely on test net okay I think I
- 1:07:14
can stop it here just really awesome thank you so much for joining I'm sorry for the noise created by those poor guys that you know I want to crash our webinar our AMA I think that we can close it here join us on near dot chat where you can find our state where slack channels where we can provide troubleshooting and answer questions join us on github.com slash near protocol slash steak wars where i am publishing all the information that you need for to participate and to deploy
- 1:08:00
your contract and to do your own sticking pool and also use always the dogs on Doc's not near that art because that's where also we write documentation that