Dapp
Languages
In Nebulas, there are two supported smart contract languages:
They are supported by the integration of Chrome V8, a widely used JavaScript engine developed by The Chromium Project for Google Chrome and Chromium web browsers.
Execution Model
The diagram below is the Execution Model of Smart Contract:

All src of Smart Contract and arguments are packaged in Transaction and deployed on Nebulas.
The execution of Smart Contract are divided into two phases:
Preprocess: inject tracing instruction, etc.
Execute: generate executable src and execute it.
Contracts
Contracts in Nebulas are similar to classes in object-oriented languages. They contain persistent data in state variables and functions that can modify these variables.
Last updated