@d9-network/spec 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -63,6 +63,18 @@ if (result.success) {
63
63
  | `parseAmount` | Parse balance string to bigint |
64
64
  | `isValidAddress` | Validate SS58 address |
65
65
 
66
+ ### Byte Utilities
67
+
68
+ | Export | Description |
69
+ | ------------------- | ------------------------------------- |
70
+ | `hexToBytes` | Convert hex string to Uint8Array |
71
+ | `bytesToHex` | Convert Uint8Array to hex string |
72
+ | `concatBytes` | Concatenate multiple Uint8Arrays |
73
+ | `bytesEqual` | Compare two Uint8Arrays |
74
+ | `extractSelector` | Extract 4-byte selector from calldata |
75
+ | `extractSelectorHex`| Extract selector as hex string |
76
+ | `normalizeHex` | Normalize hex string (0x prefix, lowercase) |
77
+
66
78
  ### Constants
67
79
 
68
80
  | Export | Description |