Expand description
Helper functions for Stellar-specific operations.
This module provides utility functions for working with Stellar-specific data types and formatting, including address normalization, XDR value parsing, and operation processing.
Enums§
- Represents all possible Stellar smart contract types
- Represents all possible Stellar smart contract values
Functions§
- Compares two Stellar addresses for equality, ignoring case and whitespace.
- Compares two Stellar function signatures for equality, ignoring case and whitespace.
- Compare two JSON values with the given operator.
- Compare a JSON
Value
with a plain string using a specific operator. - Compare two plain strings with the given operator.
- Extracts contract code ledger key from a contract’s XDR-encoded executable.
- Creates a LedgerKey for the contract instance.
- Parse a WASM contract from hex and return a vector of ScSpecEntry.
- Get contract spec functions from a contract spec.
- Parse contract spec functions and populate input parameters.
- Gets the function signature for a Stellar host function operation.
- Get the kind of a value from a JSON value.
- Recursively navigate through a JSON structure using dot notation.
- Get WASM code from a contract’s XDR-encoded executable.
- Get WASM hash from a contract’s XDR-encoded executable.
- Convert a hexadecimal string to a byte vector.
- Checks if a string is a valid Stellar address.
- Normalizes a Stellar address by removing whitespace and converting to lowercase.
- Normalizes a Stellar function signature by removing whitespace and converting to lowercase.
- Safely parse a string into a
serde_json::Value
. - Parses a Stellar Contract Value into a decoded parameter entry.
- Parses XDR-encoded bytes into a decoded parameter entry.
- Processes a Stellar host function operation into a parsed result.