@atomiqlabs/base 10.0.0-dev.16 → 10.0.0-dev.18
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.
|
@@ -27,8 +27,15 @@ export interface ChainInterface<TX = any, Signer extends AbstractSigner = Abstra
|
|
|
27
27
|
* Checks if a given string is a valid wallet address
|
|
28
28
|
*
|
|
29
29
|
* @param address
|
|
30
|
+
* @param lenient Whether a lenient parsing should be used (i.e. don't strictly enforce the Starknet address lengths)
|
|
30
31
|
*/
|
|
31
|
-
isValidAddress(address: string): boolean;
|
|
32
|
+
isValidAddress(address: string, lenient?: boolean): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Normalizes a given address i.e. pads it to the specific size
|
|
35
|
+
*
|
|
36
|
+
* @param address
|
|
37
|
+
*/
|
|
38
|
+
normalizeAddress(address: string): string;
|
|
32
39
|
/**
|
|
33
40
|
* Checks if a given string is a valid token identifier
|
|
34
41
|
*
|
package/package.json
CHANGED
|
@@ -41,8 +41,16 @@ export interface ChainInterface<
|
|
|
41
41
|
* Checks if a given string is a valid wallet address
|
|
42
42
|
*
|
|
43
43
|
* @param address
|
|
44
|
+
* @param lenient Whether a lenient parsing should be used (i.e. don't strictly enforce the Starknet address lengths)
|
|
44
45
|
*/
|
|
45
|
-
isValidAddress(address: string): boolean;
|
|
46
|
+
isValidAddress(address: string, lenient?: boolean): boolean;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Normalizes a given address i.e. pads it to the specific size
|
|
50
|
+
*
|
|
51
|
+
* @param address
|
|
52
|
+
*/
|
|
53
|
+
normalizeAddress(address: string): string;
|
|
46
54
|
|
|
47
55
|
/**
|
|
48
56
|
* Checks if a given string is a valid token identifier
|