@gearbox-protocol/sdk 8.19.0 → 8.19.1

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.
@@ -99,6 +99,14 @@ class AddressMap {
99
99
  }
100
100
  return this.#map.get(key);
101
101
  }
102
+ /**
103
+ * Deletes address from map
104
+ * @param address
105
+ */
106
+ delete(address) {
107
+ const key = (0, import_viem.getAddress)(address);
108
+ this.#map.delete(key);
109
+ }
102
110
  clear() {
103
111
  this.#map.clear();
104
112
  }
@@ -76,6 +76,14 @@ class AddressMap {
76
76
  }
77
77
  return this.#map.get(key);
78
78
  }
79
+ /**
80
+ * Deletes address from map
81
+ * @param address
82
+ */
83
+ delete(address) {
84
+ const key = getAddress(address);
85
+ this.#map.delete(key);
86
+ }
79
87
  clear() {
80
88
  this.#map.clear();
81
89
  }
@@ -32,6 +32,11 @@ export declare class AddressMap<T> {
32
32
  * @returns
33
33
  */
34
34
  mustGet(address: string): T;
35
+ /**
36
+ * Deletes address from map
37
+ * @param address
38
+ */
39
+ delete(address: string): void;
35
40
  clear(): void;
36
41
  entries(): Array<[Address, T]>;
37
42
  values(): T[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "8.19.0",
3
+ "version": "8.19.1",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",