@gearbox-protocol/sdk 8.18.2 → 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.
|
@@ -223,10 +223,8 @@ const chains = {
|
|
|
223
223
|
...import_chains.bsc,
|
|
224
224
|
network: "BNB",
|
|
225
225
|
defaultMarketConfigurators: {
|
|
226
|
-
"0x19037a281025b83fa37e3264b77af523ff87a3a4": "Chaos Labs"
|
|
227
|
-
|
|
228
|
-
testMarketConfigurators: {
|
|
229
|
-
"0x92DC4Ee43e9B207e16FbF3fD1a6933563C0A0D35": "Re7"
|
|
226
|
+
"0x19037a281025b83fa37e3264b77af523ff87a3a4": "Chaos Labs",
|
|
227
|
+
"0x92dc4ee43e9b207e16fbf3fd1a6933563c0a0d35": "Re7"
|
|
230
228
|
},
|
|
231
229
|
isPublic: true,
|
|
232
230
|
wellKnownToken: {
|
|
@@ -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
|
}
|
|
@@ -208,10 +208,8 @@ const chains = {
|
|
|
208
208
|
...bsc,
|
|
209
209
|
network: "BNB",
|
|
210
210
|
defaultMarketConfigurators: {
|
|
211
|
-
"0x19037a281025b83fa37e3264b77af523ff87a3a4": "Chaos Labs"
|
|
212
|
-
|
|
213
|
-
testMarketConfigurators: {
|
|
214
|
-
"0x92DC4Ee43e9B207e16FbF3fD1a6933563C0A0D35": "Re7"
|
|
211
|
+
"0x19037a281025b83fa37e3264b77af523ff87a3a4": "Chaos Labs",
|
|
212
|
+
"0x92dc4ee43e9b207e16fbf3fd1a6933563c0a0d35": "Re7"
|
|
215
213
|
},
|
|
216
214
|
isPublic: true,
|
|
217
215
|
wellKnownToken: {
|
|
@@ -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[];
|