Supercontracts
Supercontract (SC) is a file generated by Supercontract SDK that contains a user algorithm which should be executed by executors. Every new SC is a new multisig account created by the client while deploying a new SC. All executors perform SC operations on VM.
Function (func) - some function that is contained in a SC and invoked by name.
Operation is is called any one action. A function can consist of many operations. For example, one function can include two operations: create a file and move it to some dir.
Every "super file" is uploaded by the ordinary way on an earlier created Drive and stored by Storage Replicator Nodes as an ordinary file. The main difference is that the file must have the *.wat extension. When SC starts all Storage Replicator Nodes become executors. Each of them has a virtual machine (VM) that executes the SCs.
Properties
Drive
Every SC should be attached to the Drive where it is stored and where it is executed.
FileHash
Since the SC is the ordinary file it has a hash. To deploy a new SC, you should indicate this file hash.
VM Version
When the client deploys a new SC he should pass a version of VM to the deploy transaction
. It is needed when some of executors have not actual VM version and they cannot execute the SC. In this case, this executor will not sign the deploy transaction
.