Virtual Machine Compile & Execute
Mainly for smart contract development and publishing, it has two features:
Mainly for execution of on-chain contracts, it has two features, too:
|Blockchain||Node.js-like modular system, including module caching, pre-compilation, cycle calls, etc.|
|NativeModule||Blockchain-related functions including transfer, withdraw and obtaining information on current block and Tx.|
Terminatethe current run when there is an error, insufficient resource, or timeout, and return abnormal results.
The smart contract engine of IOST consists of three parts: monitor, VM, host. Monitor is the global control unit that gateways ABI calls to the right VM. VM is a virtual machine implementation of smart contracts. Host packs the runtime environments and makes sure the contracts run in the right context.