@gearbox-protocol/sdk 13.7.0-kyc.1 → 13.7.0-kyc.3
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.
|
@@ -173,19 +173,10 @@ class TokensMeta extends import_utils.AddressMap {
|
|
|
173
173
|
batchSize: 0
|
|
174
174
|
});
|
|
175
175
|
this.#logger?.debug(`loaded ${resp.length} contract types`);
|
|
176
|
-
const kycFactories = new import_utils.AddressSet();
|
|
177
176
|
for (let i = 0; i < tokensToLoad.length; i++) {
|
|
178
|
-
|
|
179
|
-
tokensToLoad[i],
|
|
180
|
-
resp[2 * i],
|
|
181
|
-
resp[2 * i + 1]
|
|
182
|
-
);
|
|
177
|
+
this.#overrideTokenMeta(tokensToLoad[i], resp[2 * i], resp[2 * i + 1]);
|
|
183
178
|
this.#tokenDataLoaded.add(tokensToLoad[i]);
|
|
184
|
-
if (this.isKYCUnderlying(meta)) {
|
|
185
|
-
kycFactories.add(meta.kycFactory);
|
|
186
|
-
}
|
|
187
179
|
}
|
|
188
|
-
this.#logger?.debug(`found ${kycFactories.size} KYC factories`);
|
|
189
180
|
}
|
|
190
181
|
#overrideTokenMeta(token, contractTypeResp, _serializeResp) {
|
|
191
182
|
const meta = this.mustGet(token);
|
|
@@ -80,7 +80,7 @@ const chains = {
|
|
|
80
80
|
},
|
|
81
81
|
testMarketConfigurators: {
|
|
82
82
|
"0x99df7330bf42d596af2e9d9836d4fc2077c574aa": "M11 Credit",
|
|
83
|
-
"
|
|
83
|
+
"0x610627d8d01a413bdd9b0a0b60070da7dd1e54ad": "Securitize"
|
|
84
84
|
},
|
|
85
85
|
isPublic: true,
|
|
86
86
|
wellKnownToken: {
|
|
@@ -155,19 +155,10 @@ class TokensMeta extends AddressMap {
|
|
|
155
155
|
batchSize: 0
|
|
156
156
|
});
|
|
157
157
|
this.#logger?.debug(`loaded ${resp.length} contract types`);
|
|
158
|
-
const kycFactories = new AddressSet();
|
|
159
158
|
for (let i = 0; i < tokensToLoad.length; i++) {
|
|
160
|
-
|
|
161
|
-
tokensToLoad[i],
|
|
162
|
-
resp[2 * i],
|
|
163
|
-
resp[2 * i + 1]
|
|
164
|
-
);
|
|
159
|
+
this.#overrideTokenMeta(tokensToLoad[i], resp[2 * i], resp[2 * i + 1]);
|
|
165
160
|
this.#tokenDataLoaded.add(tokensToLoad[i]);
|
|
166
|
-
if (this.isKYCUnderlying(meta)) {
|
|
167
|
-
kycFactories.add(meta.kycFactory);
|
|
168
|
-
}
|
|
169
161
|
}
|
|
170
|
-
this.#logger?.debug(`found ${kycFactories.size} KYC factories`);
|
|
171
162
|
}
|
|
172
163
|
#overrideTokenMeta(token, contractTypeResp, _serializeResp) {
|
|
173
164
|
const meta = this.mustGet(token);
|
|
@@ -66,7 +66,7 @@ const chains = {
|
|
|
66
66
|
},
|
|
67
67
|
testMarketConfigurators: {
|
|
68
68
|
"0x99df7330bf42d596af2e9d9836d4fc2077c574aa": "M11 Credit",
|
|
69
|
-
"
|
|
69
|
+
"0x610627d8d01a413bdd9b0a0b60070da7dd1e54ad": "Securitize"
|
|
70
70
|
},
|
|
71
71
|
isPublic: true,
|
|
72
72
|
wellKnownToken: {
|