Welcome to a hands-on demonstration of how to interact with contracts using the NovaX library. This repository not only showcases the potential of Novax but also provides a practical solution to fetch token prices on xExchange.
- Token Price Retrieval: Extract the price of any fungible token listed on xExchange, provided it has a trading pair against WEGLD.
- Dual-Use: This project can be utilized both as a crate for integration into other Rust projects or as a standalone binary for direct execution.
- Mock Blockchain for Testing: Discover how Novax can be employed to craft integration tests by simulating a blockchain environment, ensuring that your applications run as expected.
Novax provides an elegant way to mock the blockchain for integration testing. Delve into the tests/
directory to see how this is achieved and how you can emulate a blockchain environment to validate your contract interactions.