Learn to deploy smart contracts to TestNet
When we say "application" on NEAR we usually mean software that has been written to define:
We have looked at many contracts and applications this week and now we will deploy them.
Deploying to MainNet is out of scope so we will focus on TestNet and, as bonus activity, LocalNet where you can build in private. Anything that runs on TestNet should work just as well on MainNet. This is the only purpose of TestNet, in fact: to provide a full preview of our work before we take it live on MainNet.
Reserve your demo spot by completing the form below. You must participate (with a team or by yourself) in the development of a demo to earn a certificate.
If your demo is solo (just you) then please fill out the form below with your information. If your demo is team (you and others) then fill out the form below ONLY ONCE and include all the names of people on the team.
[ REGISTER for your demo slot ]
To earn your certificate of completion, you MUST deliver a demonstration of your work at the end of this week (tomorrow). If you are not ready for a demo tomrrow then you are welcome to wait until the next time we run this course and deliver a demo on that Friday - Demo Day
Watch this orientation video about today's challenge.
Deploy at least one application to TestNet
yarn dev
for most applications but you can just as easily deploy an application using NEAR CLI with near dev-deploy
for TestNet (or near deploy
if you have already created an account).Verify the application was deployed
near state <contract-account>
and notice that the code_hash
is not the default value of all 1
sVerify your use of the application
If you have the time to look around the corner, here's a little more for you.
Install nearup
and get a local node running. This will include:
nearup
and nearcore
prerequisitesnearcore
(this can take a long while)nearup
with reference to the previously compiled nearcore
binaryMake sure you read through the nearup
documentation (the README of the repository) for details on setup.
You will end up with a 4-node LocalNet. To create an account you will have to use one of the node validator keys which you will find in your home directory (below is from MacOS)
This is what the filesystem will look like for your LocalNet keystore
If you're feeling fearless, here's about as far as you might take this road in a day
It's time to prepare for your demos!