@aragon/gov-ui-kit 2.5.2 → 2.6.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.
|
@@ -20,6 +20,13 @@ declare class AddressUtils {
|
|
|
20
20
|
* @returns The truncated address when the address input is valid, the address input as is otherwise.
|
|
21
21
|
*/
|
|
22
22
|
truncateAddress: (address?: string) => string;
|
|
23
|
+
/**
|
|
24
|
+
* Truncates the input hash (e.g. a merkle root, transaction or block hash) by displaying the first 10 and last 8 characters.
|
|
25
|
+
* @param hash The 32-byte hash to truncate
|
|
26
|
+
* @returns The truncated hash when the input is a valid 32-byte hash, the input as is otherwise.
|
|
27
|
+
*/
|
|
28
|
+
truncateHash: (hash?: string) => string;
|
|
29
|
+
private truncate;
|
|
23
30
|
/**
|
|
24
31
|
* Returns the address on its checksum format
|
|
25
32
|
* @param address The address to be formatted
|