Currently, developing and debugging features in the Incognito Blockchain is difficult and time-consuming. Most of the design test requires running a real environment which need a large amount of resources. Real environment tests also cannot cover special cases, such as network-related tests. In this proposal, we aim to solve this pain by providing tools for our dev and tester, that:
- allow one to easily learn about Incognito blockchain by simulating a whole Incognito blockchain with single process
- offer more control of the environment and easily capture and check state by both code & RPC
- runs a consistent pre-defined scenario without waiting days for testing
- allows TDD(test-driven development) processes
The first version of this framework would be:
- Running a simple simulation of whole Incognito blockchain, including the beacon and shards producing blocks
- Quickly generate blocks using commands
- Create tx using commands
- Stop and resume simulation for checking state with RPC server
- Hook functions before and after creating, and insert operation
Length: 3 months