NESTcraft, which is a combination of martingales functions similar to the Ethereum virtual machine, will greatly broaden the scope of NEST's application, transforming it into a chain infrastructure that will enable anyone to create more NEST-based applications.
NEST inherits Ethereum's genes. The essence of EVM is that each program is a combination of some base code that can be invoked by paying a certain amount of gas. The revenue of each product on PVM can be seen as a linear combination of some base revenue functions that can be obtained by paying a certain cost (i.e., the discounted value of this revenue). PVM’s underlying logic is identical to that of EVM, which means that all EVM development can be implemented on PVM.
Considering the resource constraints of smart contracts, we will selec- tively determine some basic transformation function clusters. Generally speaking, polynomial functions, exponential functions, logarithmic func- tions, and most value functions are often used in reality. We design basic function clusters based on these more common functions. Each basic func- tion corresponds to a martingale cost, which needs to be paid when calling the function.
We call this system the martingale library, or NESTcraft. If the com- munity is willing, it can provide a front-end page for NESTcraft and link to EVM. Only the necessary function combination needs to be written, and the contract can be generated with a simple interaction, and then the martingale trading of the expression can be realized continuously. The schematic diagram of NESTcraft is as follows:
NESTcraft can continue to expand the basic function library according to the needs of the on chain world, thereby improving the application range of the NEST. This is a basic feature of the NEST’s greater scalability.