@atomiqlabs/base 10.0.0-dev.16 → 10.0.0-dev.17

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,9 @@ 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;
32
33
  /**
33
34
  * Checks if a given string is a valid token identifier
34
35
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/base",
3
- "version": "10.0.0-dev.16",
3
+ "version": "10.0.0-dev.17",
4
4
  "description": "Base classes and interfaces for atomiq protocol",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -41,8 +41,9 @@ 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;
46
47
 
47
48
  /**
48
49
  * Checks if a given string is a valid token identifier