Expand description
ERC-7730 v2 clear signing library — decodes and formats contract calldata and EIP-712 typed data for human-readable display using JSON descriptors.
Entry points: format_calldata(), format_typed_data().
Re-exports§
pub use engine::DisplayEntry;pub use engine::DisplayItem;pub use engine::DisplayModel;pub use error::FormatFailure;pub use merge::merge_descriptors;pub use outcome::DescriptorResolutionOutcome;pub use outcome::DiagnosticSeverity;pub use outcome::FallbackReason;pub use outcome::FormatDiagnostic;pub use outcome::FormatOutcome;pub use outcome::ResolvedDescriptorResolution;pub use provider::DataProvider;pub use provider::EmptyDataProvider;pub use resolver::resolve_descriptors_for_typed_data;pub use resolver::resolve_descriptors_for_tx;pub use resolver::DescriptorSource;pub use resolver::ResolvedDescriptor;pub use resolver::TypedDescriptorLookup;pub use token::CompositeDataProvider;pub use token::TokenMeta;pub use token::WellKnownTokenSource;pub use types::descriptor::Descriptor;
Modules§
- decoder
- Solidity function signature parsing and ABI calldata decoding. No JSON ABI needed — signatures are parsed directly from descriptor format keys.
- eip712
- EIP-712 typed data formatting — parses structured typed data and produces
a
DisplayModelusing the same descriptor format as calldata. - engine
- Formatting pipeline: resolves display fields, formats decoded values,
and produces a
DisplayModelwith labeled entries for wallet UIs. - error
- Error types for decoding, resolution, and rendering failures.
- merge
- JSON-level merge for ERC-7730
includesmechanism. - outcome
- provider
- Unified async data provider trait for external data resolution.
- resolver
- Pluggable descriptor resolution facade.
- token
- Token metadata types and built-in providers.
Uses CAIP-19 keys (
eip155:{chain}/erc20:{addr}) for cross-chain lookups. - types
- Data model types for ERC-7730 descriptors: context, display, metadata.
- uniffi_
compat
Structs§
- Transaction
Context - Transaction context for calldata formatting.
Functions§
- format_
calldata - Format contract calldata for clear signing display.
- format_
typed_ data - Format EIP-712 typed data for clear signing display.