@curvefi/api 2.53.1 → 2.53.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.
- package/lib/curve.js +3 -3
- package/lib/factory/constants.js +22 -0
- package/package.json +1 -1
package/lib/curve.js
CHANGED
|
@@ -638,12 +638,12 @@ var Curve = /** @class */ (function () {
|
|
|
638
638
|
switch (_b.label) {
|
|
639
639
|
case 0:
|
|
640
640
|
currentPoolIds = Object.keys(this.constants.STABLE_NG_FACTORY_POOLS_DATA);
|
|
641
|
-
lastPoolIdx = currentPoolIds.length === 0 ? -1 : Number(currentPoolIds[currentPoolIds.length - 1].split("-")[
|
|
641
|
+
lastPoolIdx = currentPoolIds.length === 0 ? -1 : Number(currentPoolIds[currentPoolIds.length - 1].split("-")[3]);
|
|
642
642
|
_a = lowerCasePoolDataAddresses;
|
|
643
|
-
return [4 /*yield*/, getFactoryPoolData.call(this, lastPoolIdx + 1)];
|
|
643
|
+
return [4 /*yield*/, getFactoryPoolData.call(this, lastPoolIdx + 1, undefined, this.constants.ALIASES.stable_ng_factory)];
|
|
644
644
|
case 1:
|
|
645
645
|
poolData = _a.apply(void 0, [_b.sent()]);
|
|
646
|
-
this.constants.STABLE_NG_FACTORY_POOLS_DATA = __assign(__assign({}, this.constants.
|
|
646
|
+
this.constants.STABLE_NG_FACTORY_POOLS_DATA = __assign(__assign({}, this.constants.STABLE_NG_FACTORY_POOLS_DATA), poolData);
|
|
647
647
|
this._updateDecimalsAndGauges(this.constants.STABLE_NG_FACTORY_POOLS_DATA);
|
|
648
648
|
return [2 /*return*/, Object.keys(poolData)];
|
|
649
649
|
}
|
package/lib/factory/constants.js
CHANGED
|
@@ -79,6 +79,8 @@ export var implementationABIDictEthereum = lowerCaseKeys({
|
|
|
79
79
|
//"0x1f7C86AffE5bCF7a1D74a8c8E2ef9E03BF31c1BD": MetaStableSwapNGABI,
|
|
80
80
|
"0x933f4769DCC27fC7345D9d5975AE48EC4D0F829C": PlainStableSwapNGABI,
|
|
81
81
|
"0xDD7EBB1C49780519dD9755B8B1A23a6f42CE099E": MetaStableSwapNGABI,
|
|
82
|
+
"0xDCc91f930b42619377C200BA05b7513f2958b202": PlainStableSwapNGABI,
|
|
83
|
+
"0xede71F77d7c900dCA5892720E76316C6E575F0F7": MetaStableSwapNGABI,
|
|
82
84
|
});
|
|
83
85
|
export var implementationABIDictPolygon = lowerCaseKeys({
|
|
84
86
|
"0x4fb93D7d320E8A263F22f62C2059dFC2A8bCbC4c": MetaUSDABI,
|
|
@@ -101,6 +103,8 @@ export var implementationABIDictPolygon = lowerCaseKeys({
|
|
|
101
103
|
//"0x87FE17697D0f14A222e8bEf386a0860eCffDD617": MetaStableSwapNGABI,
|
|
102
104
|
"0xa7Ba18EeFcD9513230987eC2faB6711AF5AbD9c2": PlainStableSwapNGABI,
|
|
103
105
|
"0x7C2085419BE6a04f4ad88ea91bC9F5C6E6C463D8": MetaStableSwapNGABI,
|
|
106
|
+
"0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3": PlainStableSwapNGABI,
|
|
107
|
+
"0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26": MetaStableSwapNGABI,
|
|
104
108
|
});
|
|
105
109
|
export var implementationABIDictFantom = lowerCaseKeys({
|
|
106
110
|
"0xfCE359115dFe1533a2458650123F86C454BC0213": MetaUSDABI,
|
|
@@ -130,6 +134,8 @@ export var implementationABIDictFantom = lowerCaseKeys({
|
|
|
130
134
|
//"0x686bdb3D24Bc6F3ED89ed3d3B659765c54aC78B4": MetaStableSwapNGABI,
|
|
131
135
|
"0xd7E72f3615aa65b92A4DBdC211E296a35512988B": PlainStableSwapNGABI,
|
|
132
136
|
"0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8": MetaStableSwapNGABI,
|
|
137
|
+
"0x5702BDB1Ec244704E3cBBaAE11a0275aE5b07499": PlainStableSwapNGABI,
|
|
138
|
+
"0x046207cB759F527b6c10C2D61DBaca45513685CC": MetaStableSwapNGABI,
|
|
133
139
|
});
|
|
134
140
|
export var implementationABIDictAvalanche = lowerCaseKeys({
|
|
135
141
|
"0xA237034249290De2B07988Ac64b96f22c0E76fE0": MetaUSDABI,
|
|
@@ -150,6 +156,8 @@ export var implementationABIDictAvalanche = lowerCaseKeys({
|
|
|
150
156
|
"0xCE94D3E5b0D80565D7B713A687b39a3Dc81780BA": Plain4OptimizedABI,
|
|
151
157
|
"0xa7Ba18EeFcD9513230987eC2faB6711AF5AbD9c2": PlainStableSwapNGABI,
|
|
152
158
|
"0x7C2085419BE6a04f4ad88ea91bC9F5C6E6C463D8": MetaStableSwapNGABI,
|
|
159
|
+
"0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3": PlainStableSwapNGABI,
|
|
160
|
+
"0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26": MetaStableSwapNGABI,
|
|
153
161
|
});
|
|
154
162
|
export var implementationABIDictArbitrum = lowerCaseKeys({
|
|
155
163
|
"0x09672362833d8f703D5395ef3252D4Bfa51c15ca": MetaUSDABI,
|
|
@@ -176,6 +184,8 @@ export var implementationABIDictArbitrum = lowerCaseKeys({
|
|
|
176
184
|
//"0xd125E7a0cEddF89c6473412d85835450897be6Dc": MetaStableSwapNGABI,
|
|
177
185
|
"0x0458ea5f4cd00e873264be2031ceb8f9d9b3116c": PlainStableSwapNGABI,
|
|
178
186
|
"0xc6c09471ee39c7e30a067952fcc89c8922f9ab53": MetaStableSwapNGABI,
|
|
187
|
+
"0xf6841C27fe35ED7069189aFD5b81513578AFD7FF": PlainStableSwapNGABI,
|
|
188
|
+
"0xFf02cBD91F57A778Bab7218DA562594a680B8B61": MetaStableSwapNGABI,
|
|
179
189
|
});
|
|
180
190
|
export var implementationABIDictOptimism = lowerCaseKeys({
|
|
181
191
|
"0x78CF256256C8089d68Cde634Cf7cDEFb39286470": MetaUSDABI,
|
|
@@ -200,6 +210,8 @@ export var implementationABIDictOptimism = lowerCaseKeys({
|
|
|
200
210
|
//"0x1764ee18e8B3ccA4787249Ceb249356192594585": MetaStableSwapNGABI,
|
|
201
211
|
"0x06452f9c013fc37169B57Eab8F50A7A48c9198A3": PlainStableSwapNGABI,
|
|
202
212
|
"0xd7E72f3615aa65b92A4DBdC211E296a35512988B": MetaStableSwapNGABI,
|
|
213
|
+
"0x635742dCC8313DCf8c904206037d962c042EAfBd": PlainStableSwapNGABI,
|
|
214
|
+
"0x5702BDB1Ec244704E3cBBaAE11a0275aE5b07499": MetaStableSwapNGABI,
|
|
203
215
|
});
|
|
204
216
|
export var implementationABIDictXDai = lowerCaseKeys({
|
|
205
217
|
"0x4A5bF7Ab9A8202692051c19B102d3eDD62aaBAE6": MetaUSDABI,
|
|
@@ -220,6 +232,8 @@ export var implementationABIDictXDai = lowerCaseKeys({
|
|
|
220
232
|
//"0xd3B17f862956464ae4403cCF829CE69199856e1e": MetaStableSwapNGABI,
|
|
221
233
|
"0xc9Fe0C63Af9A39402e8a5514f9c43Af0322b665F": PlainStableSwapNGABI,
|
|
222
234
|
"0x166c4084Ad2434E8F2425C64dabFE6875A0D45c5": MetaStableSwapNGABI,
|
|
235
|
+
"0x3d6cb2f6dcf47cdd9c13e4e3beae9af041d8796a": PlainStableSwapNGABI,
|
|
236
|
+
"0xC1b393EfEF38140662b91441C6710Aa704973228": MetaStableSwapNGABI,
|
|
223
237
|
});
|
|
224
238
|
export var implementationABIDictMoonbeam = lowerCaseKeys({
|
|
225
239
|
"0x6842E0412AC1c00464dc48961330156a07268d14": Plain2BasicABI,
|
|
@@ -252,6 +266,8 @@ export var implementationABIDictKava = lowerCaseKeys({
|
|
|
252
266
|
//"0x87FE17697D0f14A222e8bEf386a0860eCffDD617": MetaStableSwapNGABI,
|
|
253
267
|
"0xa7Ba18EeFcD9513230987eC2faB6711AF5AbD9c2": PlainStableSwapNGABI,
|
|
254
268
|
"0x7C2085419BE6a04f4ad88ea91bC9F5C6E6C463D8": MetaStableSwapNGABI,
|
|
269
|
+
"0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3": PlainStableSwapNGABI,
|
|
270
|
+
"0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26": MetaStableSwapNGABI,
|
|
255
271
|
});
|
|
256
272
|
export var implementationABIDictCelo = lowerCaseKeys({
|
|
257
273
|
"0xfEE7166C32Bdf6356Ef60636f43400AA55551A96": Plain2BasicABI,
|
|
@@ -270,6 +286,8 @@ export var implementationABIDictCelo = lowerCaseKeys({
|
|
|
270
286
|
//"0x87FE17697D0f14A222e8bEf386a0860eCffDD617": MetaStableSwapNGABI,
|
|
271
287
|
"0xa7Ba18EeFcD9513230987eC2faB6711AF5AbD9c2": PlainStableSwapNGABI,
|
|
272
288
|
"0x7C2085419BE6a04f4ad88ea91bC9F5C6E6C463D8": MetaStableSwapNGABI,
|
|
289
|
+
"0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3": PlainStableSwapNGABI,
|
|
290
|
+
"0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26": MetaStableSwapNGABI,
|
|
273
291
|
});
|
|
274
292
|
export var implementationABIDictZkSync = lowerCaseKeys({
|
|
275
293
|
"0x7c2a205C52361410233540008f7095dEF5915843": Plain2BasicABI,
|
|
@@ -302,6 +320,8 @@ export var implementationABIDictBase = lowerCaseKeys({
|
|
|
302
320
|
//"0x5eee3091f747e60a045a2e715a4c71e600e31f6e": MetaStableSwapNGABI,
|
|
303
321
|
"0x604388Bb1159AFd21eB5191cE22b4DeCdEE2Ae22": PlainStableSwapNGABI,
|
|
304
322
|
"0x06452f9c013fc37169B57Eab8F50A7A48c9198A3": MetaStableSwapNGABI,
|
|
323
|
+
"0xf3A6aa40cf048a3960E9664847E9a7be025a390a": PlainStableSwapNGABI,
|
|
324
|
+
"0x635742dCC8313DCf8c904206037d962c042EAfBd": MetaStableSwapNGABI,
|
|
305
325
|
});
|
|
306
326
|
export var implementationABIDictBsc = lowerCaseKeys({
|
|
307
327
|
"0xB90B9B1F91a01Ea22A182CD84C1E22222e39B415": Plain2BasicABI,
|
|
@@ -320,6 +340,8 @@ export var implementationABIDictBsc = lowerCaseKeys({
|
|
|
320
340
|
//"0x06452f9c013fc37169B57Eab8F50A7A48c9198A3": MetaStableSwapNGABI,
|
|
321
341
|
"0x64379C265Fc6595065D7d835AAaa731c0584dB80": PlainStableSwapNGABI,
|
|
322
342
|
"0xd3B17f862956464ae4403cCF829CE69199856e1e": MetaStableSwapNGABI,
|
|
343
|
+
"0x505d666E4DD174DcDD7FA090ed95554486d2Be44": PlainStableSwapNGABI,
|
|
344
|
+
"0x5a8C93EE12a8Df4455BA111647AdA41f29D5CfcC": MetaStableSwapNGABI,
|
|
323
345
|
});
|
|
324
346
|
export var basePoolIdZapDictEthereum = {
|
|
325
347
|
'3pool': {
|