Introducing Neo-Fairy-Test: Empowering Neo N3 Smart Contract Developers with Advanced Testing and Debugging Capabilities
Neo-fairy-test is a groundbreaking suite of tools meticulously crafted to elevate the testing and debugging experience for Neo N3 smart contract developers. Developed and maintained by esteemed Neo blockchain developer Hecate2, this game-changing solution serves as a plugin for NeoCLI, enabling developers to test and debug transactions and smart contracts against real-world network state.
Revolutionary Fairy Operations
Distinguished by its unique approach, neo-fairy-test offers a remarkably distinct testing environment compared to Neo Express’s private networks. With neo-fairy-test, developers can effortlessly send “fairy transactions” or deploy “fairy contracts” to their customized versions of public networks, such as MainNet or TestNet. These operations run locally in memory on the node, without being published to MainNet blocks. This ingenious feature empowers developers to conduct comprehensive testing against genuine on-chain environments, mitigating the need for code redeployment, complex setup procedures, gas fees, or unintended alterations to the global state.
Seamless Debugging Capabilities
Beyond revolutionizing the testing landscape, neo-fairy-test also offers unparalleled debugging capabilities. Leveraging the DumpNef plugin, developers gain access to a spectrum of functionalities, including setting debug information, defining breakpoints, and invoking contracts via the debug API. This advanced functionality provides a detailed execution trace, significantly streamlining the debugging process.
The FairyEngine, a core component of neo-fairy-test, facilitates meticulous control over system time and random numbers. Developers exploring time-locked smart contracts or handling code made non-deterministic by randomness will find this feature particularly invaluable.
Comprehensive Resources
In addition to its practical tools, neo-fairy-test provides a comprehensive guide to debugging Neo N3. This guide, utilizing Visual Studio, equips developers with the knowledge to debug contract exceptions down to the Neo source code level. It delves into essential Neo core concepts, elucidating remote nodes, transactions, blocks, verification, dBFT consensus, and more to empower developers with comprehensive understanding.
Moreover, a Python client is available, simplifying interactions with a Neo node running the Fairy plugin. The accompanying documentation guides users through using the client to call fairy contracts, clone snapshots, and conduct debugging. Sample usage scenarios, such as performing an NFT loan, further illuminate the tool’s immense capabilities and real-world applications.
Embark on your neo-fairy-test journey by accessing the repository at the link below:
https://github.com/Hecate2/neo-fairy-test/
