@gearbox-protocol/sdk 4.1.2 → 4.1.4
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.
|
@@ -211,9 +211,6 @@ const chains = {
|
|
|
211
211
|
defaultMarketConfigurators: {
|
|
212
212
|
"0x5BCF14d8470e1a6110916371aacC8E1C947A7D9d": "Chaos Labs"
|
|
213
213
|
},
|
|
214
|
-
testMarketConfigurators: {
|
|
215
|
-
"0x537F5F2032e75Fa586E48ad635DF6f79c06205b9": "Chaos Labs"
|
|
216
|
-
},
|
|
217
214
|
isPublic: false,
|
|
218
215
|
wellKnownToken: {
|
|
219
216
|
address: "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
|
|
@@ -38,7 +38,7 @@ class AbstractAddressProviderContract extends import_base.BaseContract {
|
|
|
38
38
|
this.#addresses[k] = {};
|
|
39
39
|
}
|
|
40
40
|
this.#addresses[k][version] = address;
|
|
41
|
-
if (!this.#latest[k] || version > this.#latest[
|
|
41
|
+
if (!this.#latest[k] || version > this.#latest[k]) {
|
|
42
42
|
this.#latest[k] = version;
|
|
43
43
|
}
|
|
44
44
|
this.logger?.debug(`Set address for ${k}@${version} to ${address}`);
|
|
@@ -67,7 +67,8 @@ class AbstractAddressProviderContract extends import_base.BaseContract {
|
|
|
67
67
|
}
|
|
68
68
|
let version = 0;
|
|
69
69
|
let address;
|
|
70
|
-
for (const [
|
|
70
|
+
for (const [vStr, a] of import_mappers.TypedObjectUtils.entries(allVersions)) {
|
|
71
|
+
const v = Number(vStr);
|
|
71
72
|
if (v >= range[0] && v <= range[1] && v >= version) {
|
|
72
73
|
version = v;
|
|
73
74
|
address = a;
|
|
@@ -194,9 +194,6 @@ const chains = {
|
|
|
194
194
|
defaultMarketConfigurators: {
|
|
195
195
|
"0x5BCF14d8470e1a6110916371aacC8E1C947A7D9d": "Chaos Labs"
|
|
196
196
|
},
|
|
197
|
-
testMarketConfigurators: {
|
|
198
|
-
"0x537F5F2032e75Fa586E48ad635DF6f79c06205b9": "Chaos Labs"
|
|
199
|
-
},
|
|
200
197
|
isPublic: false,
|
|
201
198
|
wellKnownToken: {
|
|
202
199
|
address: "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
|
|
@@ -15,7 +15,7 @@ class AbstractAddressProviderContract extends BaseContract {
|
|
|
15
15
|
this.#addresses[k] = {};
|
|
16
16
|
}
|
|
17
17
|
this.#addresses[k][version] = address;
|
|
18
|
-
if (!this.#latest[k] || version > this.#latest[
|
|
18
|
+
if (!this.#latest[k] || version > this.#latest[k]) {
|
|
19
19
|
this.#latest[k] = version;
|
|
20
20
|
}
|
|
21
21
|
this.logger?.debug(`Set address for ${k}@${version} to ${address}`);
|
|
@@ -44,7 +44,8 @@ class AbstractAddressProviderContract extends BaseContract {
|
|
|
44
44
|
}
|
|
45
45
|
let version = 0;
|
|
46
46
|
let address;
|
|
47
|
-
for (const [
|
|
47
|
+
for (const [vStr, a] of TypedObjectUtils.entries(allVersions)) {
|
|
48
|
+
const v = Number(vStr);
|
|
48
49
|
if (v >= range[0] && v <= range[1] && v >= version) {
|
|
49
50
|
version = v;
|
|
50
51
|
address = a;
|