@atomiqlabs/base 10.0.0-dev.17 → 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.
@@ -30,6 +30,12 @@ export interface ChainInterface<TX = any, Signer extends AbstractSigner = Abstra
30
30
  * @param lenient Whether a lenient parsing should be used (i.e. don't strictly enforce the Starknet address lengths)
31
31
  */
32
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;
33
39
  /**
34
40
  * Checks if a given string is a valid token identifier
35
41
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/base",
3
- "version": "10.0.0-dev.17",
3
+ "version": "10.0.0-dev.18",
4
4
  "description": "Base classes and interfaces for atomiq protocol",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -45,6 +45,13 @@ export interface ChainInterface<
45
45
  */
46
46
  isValidAddress(address: string, lenient?: boolean): boolean;
47
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;
54
+
48
55
  /**
49
56
  * Checks if a given string is a valid token identifier
50
57
  *