Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
novax-data is a crate designed to facilitate data handling and conversions in blockchain-based applications.
This crate provides a robust set of types and utility functions to ease the conversion and management of data structures when working with MultiversX virtual machine and the associated blockchain technology. It encompasses common patterns for data conversion and parsing, especially around address representations, and error handling.
Core Concepts
-
Native and Managed Type Conversion:
NativeConvertibleandManagedConvertibleare traits provided to bridge the gap between complex smart contract types managed by the MultiversX virtual machine and common Rust types. They facilitate seamless conversions back and forth, supporting a variety of scenarios such as converting aStringto aManagedBufferorTokenIdentifier. -
Address Handling: The
Addressstruct along with its associated methods simplify the operations and transformations required when dealing with address representations on the blockchain. -
Data Parsing and Error Handling: Utility functions like
parse_query_return_string_dataandparse_query_return_bytes_dataare provided to parse and decode data from blockchain queries. Comprehensive error types likeDataError,AddressError, andUtilsErrorcentralize error handling, making error propagation and management straightforward.
Usage
Most of the time, developers won't have to include novax-data directly as a dependency. Its primary purpose is
to serve as a foundational utility crate used by other "novax" crates such as "novax", "novax-executor", "novax-token", etc.
However, if direct usage is required:
use ;
// ... your code here ...
For detailed examples and usage of each type and utility function, refer to their respective module and function documentation.
Modules
types: Defines core types likeAddress, and the conversion traitsNativeConvertibleandManagedConvertible.constants: (Further details can be provided as needed)error: Centralizes error definitions includingDataError,AddressError, andUtilsErrorfor robust error handling.utils: Provides utility functions for data parsing and other common operations.
For a deep dive into each module and to understand the various types, traits, and functions provided, navigate through the module documentation below.