As we have promised, smart contracts are up and running. We have introduced a new section called Applications. It has 4 sub sections
New Sections :
----------------------------------------------------
- Applications Directory : in order for your application to be visible, you need to publish it to app directory. This section is different from App Store section.
- Applications Store : here are listed applications for rent. As you already know, everything on MaskNetwork is rented. Everything expire after a while so applications can't be bought, only rented.
- My applications : Here are displayed your installed applications.
- Write Application : Using this section you will be able to write dapps. It comes with an online compiler.
About MaskNetwork Scripting Language (MSL)
----------------------------------------------------------
MSL is a low level turing complete scripting language, that allows you to write decentralized applications that will run inside the network. There is nothing to download. The wallet comes with an integrated compiler (Main Menu > Applications > Write Applications). It also comes with one click installer that broadcast and install your app to the network. All applications are run on the main chain inside MaskNetwork Virtual Machine (MVM).
Application creation workflow :
----------------------------------------------------------
- You login into your account on one of wallets and write an app.
- After compiling, if there are no syntax errors, you are ready to install the app to network. Until then the code is saved on your wallet but it will not run.
- In order for your app to run it has to be installed. It's a one click process. Just go to Write Applications section and choose "Deploy to Network". It costs 0.0001 MSk / day.
- After your app is accepted by the network, you can start use it. Depending on your code the application will wake up after it receives a transaction, a message or at specified intervals. It can run for example every 5 blocks.
- From this point, you have multiple options :
a. Publish your application to directory for other to use it. It's a form of advertising.
b. Publish your application to market and rent it for a price.
c. Seal it : a seal application can't be modified by owner. It becomes 100% autonomus and it will run until it run out of funds. This is an essential feature.
d. Froze it : a frozen application i stii installed on the network but it's "inactive". It will not run.
e. Unistall application: if the application is not sealed, you can uninstall it (the nodes will delete your app drom db).
This is sample application that will wake up after it receives a transaction and will send a message back. It will also post a tweet :
http://maskwallet.com/pages/app/directory/app.php?ID=4049758653We will come back with details in the following days. This is a complex and inportant section. We will upload next week the full MSL language reference.