Polymorphic-VM
Polymorphic Virtual Machine (PVM)
The PVM provides a universal blockchain FACADE, which can help developers to ignore the difference between blockchains. The only thing that needs to be done by developers is studying PVM-SDKs and PVM Omni Protocol.
Universal development platform
PVM is a development platform, which helps Web2 developers move to blockchain, ignoring the technical details. PVM follows the FACADE design pattern, which makes the difference between blockchains transparent by providing a set of universal APIs. If developers want to switch from a blockchain to another blockchain, the only thing they need to do is change the dialect in config file. PVM provides Go/Java/JavaScript SDKs to manipulate different blockchains.
Fee agregation
Fee aggregation is a multi-chain fee solution to simplify the gas processing procedure and to lower on-chain costs. The technologies behind fee aggregation include fee pools, transaction aggregation, state indexer, cross-chain bridge, and oracle.
PVM Protocol
PVM protocol is a set of universal, human-readable, well structured, extendable protocols, which can be manipulated by SDKs. PVM protocols are based on popular smart contract use cases, such as fungible assets and non-fungible assets. For a certain smart contract use case, the corresponding protocol covers all the operations. Take a fungible asset as an example. The protocol contains Create, Transfer, Approval, TransferFrom,TotalSupply, BalanceOf, Allowance.
PVM Interpreter
As we mentioned earlier, developers can initiate transactions that can be executed on various blockchains through the same protocol (PVM protocol). Because the tech details are different from one blockchain to another, we need a component to translate the same protocol into different on chain standards. So it is reasonable to design a translator component called PVM-Interpreter.
Workflow:
- Developer configs the dialect and chain info
- Developer builds a transaction (take transfer of fungible asset as an example), which follows the PVM Omni Protocol.
- The PVM interpreter will translate the transaction into ton executable on chain transaction.
- The user signs the transaction.
- Send the on-chain transaction to service node.