@curvefi/api 2.55.4 → 2.56.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.
- package/lib/constants/abis/gauge_factory_mainnet_for_fraxtal.json +395 -0
- package/lib/constants/aliases.js +9 -8
- package/lib/constants/coins/fraxtal.d.ts +6 -0
- package/lib/constants/coins/fraxtal.js +10 -0
- package/lib/constants/pools/fraxtal.d.ts +2 -0
- package/lib/constants/pools/fraxtal.js +2 -0
- package/lib/constants/pools/index.d.ts +2 -1
- package/lib/constants/pools/index.js +2 -1
- package/lib/constants/tricryptoDeployImplementations.d.ts +5 -0
- package/lib/constants/tricryptoDeployImplementations.js +5 -0
- package/lib/constants/volumeNetworks.js +1 -1
- package/lib/curve.js +25 -6
- package/lib/factory/constants.d.ts +5 -0
- package/lib/factory/constants.js +10 -0
- package/lib/factory/deploy.js +1 -1
- package/lib/interfaces.d.ts +2 -2
- package/lib/utils.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "BridgerUpdated",
|
|
4
|
+
"inputs": [
|
|
5
|
+
{
|
|
6
|
+
"name": "_chain_id",
|
|
7
|
+
"type": "uint256",
|
|
8
|
+
"indexed": true
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "_old_bridger",
|
|
12
|
+
"type": "address",
|
|
13
|
+
"indexed": false
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "_new_bridger",
|
|
17
|
+
"type": "address",
|
|
18
|
+
"indexed": false
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"anonymous": false,
|
|
22
|
+
"type": "event"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "DeployedGauge",
|
|
26
|
+
"inputs": [
|
|
27
|
+
{
|
|
28
|
+
"name": "_implementation",
|
|
29
|
+
"type": "address",
|
|
30
|
+
"indexed": true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "_chain_id",
|
|
34
|
+
"type": "uint256",
|
|
35
|
+
"indexed": true
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "_deployer",
|
|
39
|
+
"type": "address",
|
|
40
|
+
"indexed": true
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "_salt",
|
|
44
|
+
"type": "bytes32",
|
|
45
|
+
"indexed": false
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "_gauge",
|
|
49
|
+
"type": "address",
|
|
50
|
+
"indexed": false
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"anonymous": false,
|
|
54
|
+
"type": "event"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "TransferOwnership",
|
|
58
|
+
"inputs": [
|
|
59
|
+
{
|
|
60
|
+
"name": "_old_owner",
|
|
61
|
+
"type": "address",
|
|
62
|
+
"indexed": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "_new_owner",
|
|
66
|
+
"type": "address",
|
|
67
|
+
"indexed": false
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"anonymous": false,
|
|
71
|
+
"type": "event"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "UpdateCallProxy",
|
|
75
|
+
"inputs": [
|
|
76
|
+
{
|
|
77
|
+
"name": "_old_call_proxy",
|
|
78
|
+
"type": "address",
|
|
79
|
+
"indexed": false
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "_new_call_proxy",
|
|
83
|
+
"type": "address",
|
|
84
|
+
"indexed": false
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"anonymous": false,
|
|
88
|
+
"type": "event"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "UpdateImplementation",
|
|
92
|
+
"inputs": [
|
|
93
|
+
{
|
|
94
|
+
"name": "_old_implementation",
|
|
95
|
+
"type": "address",
|
|
96
|
+
"indexed": false
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "_new_implementation",
|
|
100
|
+
"type": "address",
|
|
101
|
+
"indexed": false
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"anonymous": false,
|
|
105
|
+
"type": "event"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"stateMutability": "nonpayable",
|
|
109
|
+
"type": "constructor",
|
|
110
|
+
"inputs": [
|
|
111
|
+
{
|
|
112
|
+
"name": "_call_proxy",
|
|
113
|
+
"type": "address"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "_owner",
|
|
117
|
+
"type": "address"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"outputs": []
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"stateMutability": "nonpayable",
|
|
124
|
+
"type": "function",
|
|
125
|
+
"name": "transmit_emissions",
|
|
126
|
+
"inputs": [
|
|
127
|
+
{
|
|
128
|
+
"name": "_gauge",
|
|
129
|
+
"type": "address"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"outputs": [],
|
|
133
|
+
"gas": 10132
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"stateMutability": "payable",
|
|
137
|
+
"type": "function",
|
|
138
|
+
"name": "deploy_gauge",
|
|
139
|
+
"inputs": [
|
|
140
|
+
{
|
|
141
|
+
"name": "_chain_id",
|
|
142
|
+
"type": "uint256"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "_salt",
|
|
146
|
+
"type": "bytes32"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"outputs": [
|
|
150
|
+
{
|
|
151
|
+
"name": "",
|
|
152
|
+
"type": "address"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"gas": 165352
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"stateMutability": "nonpayable",
|
|
159
|
+
"type": "function",
|
|
160
|
+
"name": "deploy_child_gauge",
|
|
161
|
+
"inputs": [
|
|
162
|
+
{
|
|
163
|
+
"name": "_chain_id",
|
|
164
|
+
"type": "uint256"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "_lp_token",
|
|
168
|
+
"type": "address"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "_salt",
|
|
172
|
+
"type": "bytes32"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"outputs": [],
|
|
176
|
+
"gas": 18165
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"stateMutability": "nonpayable",
|
|
180
|
+
"type": "function",
|
|
181
|
+
"name": "deploy_child_gauge",
|
|
182
|
+
"inputs": [
|
|
183
|
+
{
|
|
184
|
+
"name": "_chain_id",
|
|
185
|
+
"type": "uint256"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "_lp_token",
|
|
189
|
+
"type": "address"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "_salt",
|
|
193
|
+
"type": "bytes32"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "_manager",
|
|
197
|
+
"type": "address"
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"outputs": [],
|
|
201
|
+
"gas": 18165
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"stateMutability": "nonpayable",
|
|
205
|
+
"type": "function",
|
|
206
|
+
"name": "set_bridger",
|
|
207
|
+
"inputs": [
|
|
208
|
+
{
|
|
209
|
+
"name": "_chain_id",
|
|
210
|
+
"type": "uint256"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "_bridger",
|
|
214
|
+
"type": "address"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"outputs": [],
|
|
218
|
+
"gas": 42889
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"stateMutability": "nonpayable",
|
|
222
|
+
"type": "function",
|
|
223
|
+
"name": "set_implementation",
|
|
224
|
+
"inputs": [
|
|
225
|
+
{
|
|
226
|
+
"name": "_implementation",
|
|
227
|
+
"type": "address"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"outputs": [],
|
|
231
|
+
"gas": 41933
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"stateMutability": "nonpayable",
|
|
235
|
+
"type": "function",
|
|
236
|
+
"name": "set_call_proxy",
|
|
237
|
+
"inputs": [
|
|
238
|
+
{
|
|
239
|
+
"name": "_new_call_proxy",
|
|
240
|
+
"type": "address"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"outputs": [],
|
|
244
|
+
"gas": 41963
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"stateMutability": "nonpayable",
|
|
248
|
+
"type": "function",
|
|
249
|
+
"name": "commit_transfer_ownership",
|
|
250
|
+
"inputs": [
|
|
251
|
+
{
|
|
252
|
+
"name": "_future_owner",
|
|
253
|
+
"type": "address"
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"outputs": [],
|
|
257
|
+
"gas": 37785
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"stateMutability": "nonpayable",
|
|
261
|
+
"type": "function",
|
|
262
|
+
"name": "accept_transfer_ownership",
|
|
263
|
+
"inputs": [],
|
|
264
|
+
"outputs": [],
|
|
265
|
+
"gas": 41864
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"stateMutability": "view",
|
|
269
|
+
"type": "function",
|
|
270
|
+
"name": "call_proxy",
|
|
271
|
+
"inputs": [],
|
|
272
|
+
"outputs": [
|
|
273
|
+
{
|
|
274
|
+
"name": "",
|
|
275
|
+
"type": "address"
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"gas": 2700
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"stateMutability": "view",
|
|
282
|
+
"type": "function",
|
|
283
|
+
"name": "get_bridger",
|
|
284
|
+
"inputs": [
|
|
285
|
+
{
|
|
286
|
+
"name": "arg0",
|
|
287
|
+
"type": "uint256"
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"outputs": [
|
|
291
|
+
{
|
|
292
|
+
"name": "",
|
|
293
|
+
"type": "address"
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"gas": 2845
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"stateMutability": "view",
|
|
300
|
+
"type": "function",
|
|
301
|
+
"name": "get_implementation",
|
|
302
|
+
"inputs": [],
|
|
303
|
+
"outputs": [
|
|
304
|
+
{
|
|
305
|
+
"name": "",
|
|
306
|
+
"type": "address"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"gas": 2760
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"stateMutability": "view",
|
|
313
|
+
"type": "function",
|
|
314
|
+
"name": "get_gauge",
|
|
315
|
+
"inputs": [
|
|
316
|
+
{
|
|
317
|
+
"name": "arg0",
|
|
318
|
+
"type": "uint256"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "arg1",
|
|
322
|
+
"type": "uint256"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"outputs": [
|
|
326
|
+
{
|
|
327
|
+
"name": "",
|
|
328
|
+
"type": "address"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"gas": 2950
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"stateMutability": "view",
|
|
335
|
+
"type": "function",
|
|
336
|
+
"name": "get_gauge_count",
|
|
337
|
+
"inputs": [
|
|
338
|
+
{
|
|
339
|
+
"name": "arg0",
|
|
340
|
+
"type": "uint256"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"outputs": [
|
|
344
|
+
{
|
|
345
|
+
"name": "",
|
|
346
|
+
"type": "uint256"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"gas": 2935
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"stateMutability": "view",
|
|
353
|
+
"type": "function",
|
|
354
|
+
"name": "is_valid_gauge",
|
|
355
|
+
"inputs": [
|
|
356
|
+
{
|
|
357
|
+
"name": "arg0",
|
|
358
|
+
"type": "address"
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"outputs": [
|
|
362
|
+
{
|
|
363
|
+
"name": "",
|
|
364
|
+
"type": "bool"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"gas": 3116
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"stateMutability": "view",
|
|
371
|
+
"type": "function",
|
|
372
|
+
"name": "owner",
|
|
373
|
+
"inputs": [],
|
|
374
|
+
"outputs": [
|
|
375
|
+
{
|
|
376
|
+
"name": "",
|
|
377
|
+
"type": "address"
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"gas": 2880
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"stateMutability": "view",
|
|
384
|
+
"type": "function",
|
|
385
|
+
"name": "future_owner",
|
|
386
|
+
"inputs": [],
|
|
387
|
+
"outputs": [
|
|
388
|
+
{
|
|
389
|
+
"name": "",
|
|
390
|
+
"type": "address"
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
"gas": 2910
|
|
394
|
+
}
|
|
395
|
+
]
|
package/lib/constants/aliases.js
CHANGED
|
@@ -3,6 +3,7 @@ export var ALIASES_ETHEREUM = lowerCaseValues({
|
|
|
3
3
|
"crv": "0xD533a949740bb3306d119CC777fa900bA034cd52",
|
|
4
4
|
"minter": '0xd061D61a4d941c39E5453435B6345Dc261C2fcE0',
|
|
5
5
|
"gauge_factory": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
|
|
6
|
+
"gauge_factory_fraxtal": "0xeF672bD94913CB6f1d2812a6e18c1fFdEd8eFf5c",
|
|
6
7
|
"voting_escrow": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
|
|
7
8
|
"fee_distributor": "0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc",
|
|
8
9
|
"gauge_controller": "0x2F50D538606Fa9EDD2B11E2446BEb18C9D5846bB",
|
|
@@ -286,23 +287,23 @@ export var ALIASES_BSC = lowerCaseValues({
|
|
|
286
287
|
"factory_admin": '0x0000000000000000000000000000000000000000',
|
|
287
288
|
});
|
|
288
289
|
export var ALIASES_FRAXTAL = lowerCaseValues({
|
|
289
|
-
"crv": "
|
|
290
|
-
"gauge_factory": "
|
|
290
|
+
"crv": "0x331B9182088e2A7d6D3Fe4742AbA1fB231aEcc56",
|
|
291
|
+
"gauge_factory": "0xeF672bD94913CB6f1d2812a6e18c1fFdEd8eFf5c",
|
|
291
292
|
"voting_escrow": "0x0000000000000000000000000000000000000000",
|
|
292
293
|
"fee_distributor": "0x0000000000000000000000000000000000000000",
|
|
293
294
|
"gauge_controller": "0x0000000000000000000000000000000000000000",
|
|
294
295
|
"address_provider": "0x0000000000000000000000000000000000000000",
|
|
295
|
-
"router": "
|
|
296
|
-
"deposit_and_stake": "
|
|
297
|
-
"stable_calc": "
|
|
298
|
-
"crypto_calc": '
|
|
296
|
+
"router": "0x4f37A9d177470499A2dD084621020b023fcffc1F",
|
|
297
|
+
"deposit_and_stake": "0x0fE38dCC905eC14F6099a83Ac5C93BF2601300CF",
|
|
298
|
+
"stable_calc": "0xCA8d0747B5573D69653C3aC22242e6341C36e4b4",
|
|
299
|
+
"crypto_calc": '0x69522fb5337663d3B4dFB0030b881c1A750Adb4f',
|
|
299
300
|
"factory": '0x0000000000000000000000000000000000000000',
|
|
300
301
|
"crvusd_factory": '0x0000000000000000000000000000000000000000',
|
|
301
302
|
"eywa_factory": '0x0000000000000000000000000000000000000000',
|
|
302
303
|
"crypto_factory": '0x0000000000000000000000000000000000000000',
|
|
303
304
|
"twocrypto_factory": '0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F',
|
|
304
|
-
"tricrypto_factory": '
|
|
305
|
-
"stable_ng_factory": '
|
|
305
|
+
"tricrypto_factory": '0xc9Fe0C63Af9A39402e8a5514f9c43Af0322b665F',
|
|
306
|
+
"stable_ng_factory": '0xd2002373543Ce3527023C75e7518C274A51ce712',
|
|
306
307
|
"factory_admin": '0x0000000000000000000000000000000000000000',
|
|
307
308
|
});
|
|
308
309
|
var registry_exchange_deprecated = {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IDict } from "../../interfaces.js";
|
|
2
|
+
export declare const COINS_FRAXTAL: IDict<string>;
|
|
3
|
+
export declare const cTokensFraxtal: never[];
|
|
4
|
+
export declare const yTokensFraxtal: never[];
|
|
5
|
+
export declare const ycTokensFraxtal: never[];
|
|
6
|
+
export declare const aTokensFraxtal: never[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { lowerCaseValues } from "../utils.js";
|
|
2
|
+
export var COINS_FRAXTAL = lowerCaseValues({
|
|
3
|
+
crv: '0x331B9182088e2A7d6D3Fe4742AbA1fB231aEcc56',
|
|
4
|
+
// --- FRAXTAL ---
|
|
5
|
+
frxETH: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
|
|
6
|
+
});
|
|
7
|
+
export var cTokensFraxtal = []; //.map((a) => a.toLowerCase());
|
|
8
|
+
export var yTokensFraxtal = []; //.map((a) => a.toLowerCase());
|
|
9
|
+
export var ycTokensFraxtal = []; //.map((a) => a.toLowerCase());
|
|
10
|
+
export var aTokensFraxtal = []; //.map((a) => a.toLowerCase());
|
|
@@ -13,4 +13,5 @@ import { POOLS_DATA_CELO } from "./celo.js";
|
|
|
13
13
|
import { POOLS_DATA_ZKSYNC } from "./zksync.js";
|
|
14
14
|
import { POOLS_DATA_BASE } from "./base.js";
|
|
15
15
|
import { POOLS_DATA_BSC } from "./bsc.js";
|
|
16
|
-
|
|
16
|
+
import { POOLS_DATA_FRAXTAL } from "./fraxtal";
|
|
17
|
+
export { POOLS_DATA_ETHEREUM, LLAMMAS_DATA_ETHEREUM, POOLS_DATA_POLYGON, POOLS_DATA_FANTOM, POOLS_DATA_AVALANCHE, POOLS_DATA_ARBITRUM, POOLS_DATA_OPTIMISM, POOLS_DATA_XDAI, POOLS_DATA_MOONBEAM, POOLS_DATA_AURORA, POOLS_DATA_KAVA, POOLS_DATA_CELO, POOLS_DATA_ZKSYNC, POOLS_DATA_BASE, POOLS_DATA_BSC, POOLS_DATA_FRAXTAL, };
|
|
@@ -13,4 +13,5 @@ import { POOLS_DATA_CELO } from "./celo.js";
|
|
|
13
13
|
import { POOLS_DATA_ZKSYNC } from "./zksync.js";
|
|
14
14
|
import { POOLS_DATA_BASE } from "./base.js";
|
|
15
15
|
import { POOLS_DATA_BSC } from "./bsc.js";
|
|
16
|
-
|
|
16
|
+
import { POOLS_DATA_FRAXTAL } from "./fraxtal";
|
|
17
|
+
export { POOLS_DATA_ETHEREUM, LLAMMAS_DATA_ETHEREUM, POOLS_DATA_POLYGON, POOLS_DATA_FANTOM, POOLS_DATA_AVALANCHE, POOLS_DATA_ARBITRUM, POOLS_DATA_OPTIMISM, POOLS_DATA_XDAI, POOLS_DATA_MOONBEAM, POOLS_DATA_AURORA, POOLS_DATA_KAVA, POOLS_DATA_CELO, POOLS_DATA_ZKSYNC, POOLS_DATA_BASE, POOLS_DATA_BSC, POOLS_DATA_FRAXTAL, };
|
|
@@ -29,6 +29,11 @@ export declare const tricryptoDeployImplementations: {
|
|
|
29
29
|
amm_native_transfers_enabled: string;
|
|
30
30
|
implementationIdx: number;
|
|
31
31
|
};
|
|
32
|
+
252: {
|
|
33
|
+
amm_native_transfers_disabled: string;
|
|
34
|
+
amm_native_transfers_enabled: string;
|
|
35
|
+
implementationIdx: number;
|
|
36
|
+
};
|
|
32
37
|
324: {
|
|
33
38
|
implementationIdx: number;
|
|
34
39
|
};
|
|
@@ -29,6 +29,11 @@ export var tricryptoDeployImplementations = {
|
|
|
29
29
|
amm_native_transfers_enabled: '0x76303e4fDcA0AbF28aB3ee42Ce086E6503431F1D',
|
|
30
30
|
implementationIdx: 1,
|
|
31
31
|
},
|
|
32
|
+
252: {
|
|
33
|
+
amm_native_transfers_disabled: '0x1A83348F9cCFD3Fe1A8C0adBa580Ac4e267Fe495',
|
|
34
|
+
amm_native_transfers_enabled: '0xd3b17f862956464ae4403ccf829ce69199856e1e',
|
|
35
|
+
implementationIdx: 1,
|
|
36
|
+
},
|
|
32
37
|
324: {
|
|
33
38
|
implementationIdx: 0,
|
|
34
39
|
},
|
package/lib/curve.js
CHANGED
|
@@ -64,6 +64,7 @@ import ERC20Abi from './constants/abis/ERC20.json' assert { type: 'json' };
|
|
|
64
64
|
import cERC20Abi from './constants/abis/cERC20.json' assert { type: 'json' };
|
|
65
65
|
import yERC20Abi from './constants/abis/yERC20.json' assert { type: 'json' };
|
|
66
66
|
import gaugeFactoryABI from './constants/abis/gauge_factory_mainnet.json' assert { type: 'json' };
|
|
67
|
+
import gaugeFactoryForFraxtalABI from './constants/abis/gauge_factory_mainnet_for_fraxtal.json' assert { type: 'json' };
|
|
67
68
|
import gaugeFactorySidechainABI from './constants/abis/gauge_factory_sidechain.json' assert { type: 'json' };
|
|
68
69
|
import minterMainnetABI from './constants/abis/minter_mainnet.json' assert { type: 'json' };
|
|
69
70
|
import votingEscrowABI from './constants/abis/votingescrow.json' assert { type: 'json' };
|
|
@@ -88,8 +89,8 @@ import stableNgFactoryABI from './constants/abis/factory-stable-ng.json' assert
|
|
|
88
89
|
import gasOracleABI from './constants/abis/gas_oracle_optimism.json' assert { type: 'json' };
|
|
89
90
|
import votingProposalABI from './constants/abis/voting_proposal.json' assert { type: 'json' };
|
|
90
91
|
import circulatingSupplyABI from './constants/abis/circulating_supply.json' assert { type: 'json' };
|
|
91
|
-
import { POOLS_DATA_ETHEREUM, LLAMMAS_DATA_ETHEREUM, POOLS_DATA_POLYGON, POOLS_DATA_FANTOM, POOLS_DATA_AVALANCHE, POOLS_DATA_ARBITRUM, POOLS_DATA_OPTIMISM, POOLS_DATA_XDAI, POOLS_DATA_MOONBEAM, POOLS_DATA_AURORA, POOLS_DATA_KAVA, POOLS_DATA_CELO, POOLS_DATA_ZKSYNC, POOLS_DATA_BASE, POOLS_DATA_BSC, } from './constants/pools/index.js';
|
|
92
|
-
import { ALIASES_ETHEREUM, ALIASES_OPTIMISM, ALIASES_POLYGON, ALIASES_FANTOM, ALIASES_AVALANCHE, ALIASES_ARBITRUM, ALIASES_XDAI, ALIASES_MOONBEAM, ALIASES_AURORA, ALIASES_KAVA, ALIASES_CELO, ALIASES_ZKSYNC, ALIASES_BASE, ALIASES_BSC, } from "./constants/aliases.js";
|
|
92
|
+
import { POOLS_DATA_ETHEREUM, LLAMMAS_DATA_ETHEREUM, POOLS_DATA_POLYGON, POOLS_DATA_FANTOM, POOLS_DATA_AVALANCHE, POOLS_DATA_ARBITRUM, POOLS_DATA_OPTIMISM, POOLS_DATA_XDAI, POOLS_DATA_MOONBEAM, POOLS_DATA_AURORA, POOLS_DATA_KAVA, POOLS_DATA_CELO, POOLS_DATA_ZKSYNC, POOLS_DATA_BASE, POOLS_DATA_BSC, POOLS_DATA_FRAXTAL, } from './constants/pools/index.js';
|
|
93
|
+
import { ALIASES_ETHEREUM, ALIASES_OPTIMISM, ALIASES_POLYGON, ALIASES_FANTOM, ALIASES_AVALANCHE, ALIASES_ARBITRUM, ALIASES_XDAI, ALIASES_MOONBEAM, ALIASES_AURORA, ALIASES_KAVA, ALIASES_CELO, ALIASES_ZKSYNC, ALIASES_BASE, ALIASES_BSC, ALIASES_FRAXTAL, } from "./constants/aliases.js";
|
|
93
94
|
import { COINS_ETHEREUM, cTokensEthereum, yTokensEthereum, ycTokensEthereum, aTokensEthereum } from "./constants/coins/ethereum.js";
|
|
94
95
|
import { COINS_OPTIMISM, cTokensOptimism, yTokensOptimism, ycTokensOptimism, aTokensOptimism } from "./constants/coins/optimism.js";
|
|
95
96
|
import { COINS_POLYGON, cTokensPolygon, yTokensPolygon, ycTokensPolygon, aTokensPolygon } from "./constants/coins/polygon.js";
|
|
@@ -104,6 +105,7 @@ import { COINS_CELO, cTokensCelo, yTokensCelo, ycTokensCelo, aTokensCelo } from
|
|
|
104
105
|
import { COINS_ZKSYNC, cTokensZkSync, yTokensZkSync, ycTokensZkSync, aTokensZkSync } from "./constants/coins/zksync.js";
|
|
105
106
|
import { COINS_BASE, cTokensBase, yTokensBase, ycTokensBase, aTokensBase } from "./constants/coins/base.js";
|
|
106
107
|
import { COINS_BSC, cTokensBsc, yTokensBsc, ycTokensBsc, aTokensBsc } from "./constants/coins/bsc.js";
|
|
108
|
+
import { COINS_FRAXTAL, cTokensFraxtal, yTokensFraxtal, ycTokensFraxtal, aTokensFraxtal } from "./constants/coins/fraxtal.js";
|
|
107
109
|
import { lowerCasePoolDataAddresses, extractDecimals, extractGauges } from "./constants/utils.js";
|
|
108
110
|
import { _getAllGauges, _getHiddenPools } from "./external-api.js";
|
|
109
111
|
import { L2Networks } from "./constants/L2Networks.js";
|
|
@@ -171,6 +173,12 @@ export var NATIVE_TOKENS = {
|
|
|
171
173
|
address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
172
174
|
wrappedAddress: '0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83'.toLowerCase(),
|
|
173
175
|
},
|
|
176
|
+
252: {
|
|
177
|
+
symbol: 'frxETH',
|
|
178
|
+
wrappedSymbol: 'wfrxETH',
|
|
179
|
+
address: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
|
|
180
|
+
wrappedAddress: '0xfc00000000000000000000000000000000000006'.toLowerCase(),
|
|
181
|
+
},
|
|
174
182
|
324: {
|
|
175
183
|
symbol: 'ETH',
|
|
176
184
|
wrappedSymbol: 'WETH',
|
|
@@ -282,6 +290,16 @@ export var NETWORK_CONSTANTS = {
|
|
|
282
290
|
ycTokens: ycTokensFantom,
|
|
283
291
|
aTokens: aTokensFantom,
|
|
284
292
|
},
|
|
293
|
+
252: {
|
|
294
|
+
NAME: 'fraxtal',
|
|
295
|
+
ALIASES: ALIASES_FRAXTAL,
|
|
296
|
+
POOLS_DATA: POOLS_DATA_FRAXTAL,
|
|
297
|
+
COINS: COINS_FRAXTAL,
|
|
298
|
+
cTokens: cTokensFraxtal,
|
|
299
|
+
yTokens: yTokensFraxtal,
|
|
300
|
+
ycTokens: ycTokensFraxtal,
|
|
301
|
+
aTokens: aTokensFraxtal,
|
|
302
|
+
},
|
|
285
303
|
324: {
|
|
286
304
|
NAME: 'zksync',
|
|
287
305
|
ALIASES: ALIASES_ZKSYNC,
|
|
@@ -373,7 +391,7 @@ var Curve = /** @class */ (function () {
|
|
|
373
391
|
return __generator(this, function (_h) {
|
|
374
392
|
switch (_h.label) {
|
|
375
393
|
case 0:
|
|
376
|
-
if (this.chainId
|
|
394
|
+
if ([252, 1313161554].includes(this.chainId))
|
|
377
395
|
return [2 /*return*/];
|
|
378
396
|
if (!useApi) return [3 /*break*/, 2];
|
|
379
397
|
_a = this.constants;
|
|
@@ -661,7 +679,7 @@ var Curve = /** @class */ (function () {
|
|
|
661
679
|
return __generator(this, function (_b) {
|
|
662
680
|
switch (_b.label) {
|
|
663
681
|
case 0:
|
|
664
|
-
if (this.chainId
|
|
682
|
+
if ([252, 1313161554].includes(this.chainId))
|
|
665
683
|
return [2 /*return*/, []];
|
|
666
684
|
currentPoolIds = Object.keys(this.constants.FACTORY_POOLS_DATA);
|
|
667
685
|
lastPoolIdx = currentPoolIds.length === 0 ? -1 : Number(currentPoolIds[currentPoolIds.length - 1].split("-")[2]);
|
|
@@ -754,7 +772,7 @@ var Curve = /** @class */ (function () {
|
|
|
754
772
|
return __generator(this, function (_b) {
|
|
755
773
|
switch (_b.label) {
|
|
756
774
|
case 0:
|
|
757
|
-
if (this.chainId
|
|
775
|
+
if ([252, 1313161554].includes(this.chainId))
|
|
758
776
|
return [2 /*return*/, ''];
|
|
759
777
|
_a = lowerCasePoolDataAddresses;
|
|
760
778
|
return [4 /*yield*/, getFactoryPoolData.call(this, 0, poolAddress)];
|
|
@@ -1080,6 +1098,7 @@ var Curve = /** @class */ (function () {
|
|
|
1080
1098
|
this.setContract(this.constants.ALIASES.gauge_factory, _gaugeFactoryABI);
|
|
1081
1099
|
if (this.chainId === 1) {
|
|
1082
1100
|
this.setContract(this.constants.ALIASES.minter, minterMainnetABI);
|
|
1101
|
+
this.setContract(this.constants.ALIASES.gauge_factory_fraxtal, gaugeFactoryForFraxtalABI);
|
|
1083
1102
|
}
|
|
1084
1103
|
this.setContract(this.constants.ALIASES.voting_escrow, votingEscrowABI);
|
|
1085
1104
|
this.setContract(this.constants.ALIASES.fee_distributor, feeDistributorABI);
|
|
@@ -1094,7 +1113,7 @@ var Curve = /** @class */ (function () {
|
|
|
1094
1113
|
this.setContract(this.constants.ALIASES.crypto_calc, cryptoCalcZapABI);
|
|
1095
1114
|
this.setContract(this.constants.ALIASES.stable_calc, StableCalcZapABI);
|
|
1096
1115
|
this.setContract(this.constants.ALIASES.factory, factoryABI);
|
|
1097
|
-
if (!(this.chainId !== 1313161554)) return [3 /*break*/, 20];
|
|
1116
|
+
if (!(this.chainId !== 1313161554 && this.chainId !== 252)) return [3 /*break*/, 20];
|
|
1098
1117
|
factoryContract = this.contracts[this.constants.ALIASES.factory].contract;
|
|
1099
1118
|
_o = this.constants.ALIASES;
|
|
1100
1119
|
return [4 /*yield*/, factoryContract.admin(this.constantOptions)];
|
|
@@ -12,6 +12,7 @@ export declare const implementationABIDictCelo: IDict<any>;
|
|
|
12
12
|
export declare const implementationABIDictZkSync: IDict<any>;
|
|
13
13
|
export declare const implementationABIDictBase: IDict<any>;
|
|
14
14
|
export declare const implementationABIDictBsc: IDict<any>;
|
|
15
|
+
export declare const implementationABIDictFraxtal: IDict<any>;
|
|
15
16
|
export declare const basePoolIdZapDictEthereum: IDict<{
|
|
16
17
|
address: string;
|
|
17
18
|
ABI: any;
|
|
@@ -64,6 +65,10 @@ export declare const basePoolIdZapDictBsc: IDict<{
|
|
|
64
65
|
address: string;
|
|
65
66
|
ABI: any;
|
|
66
67
|
}>;
|
|
68
|
+
export declare const basePoolIdZapDictFraxtal: IDict<{
|
|
69
|
+
address: string;
|
|
70
|
+
ABI: any;
|
|
71
|
+
}>;
|
|
67
72
|
export declare const stableNgBasePoolZap: {
|
|
68
73
|
ABI: any;
|
|
69
74
|
address: string;
|
package/lib/factory/constants.js
CHANGED
|
@@ -344,6 +344,10 @@ export var implementationABIDictBsc = lowerCaseKeys({
|
|
|
344
344
|
"0x505d666E4DD174DcDD7FA090ed95554486d2Be44": PlainStableSwapNGABI,
|
|
345
345
|
"0x5a8C93EE12a8Df4455BA111647AdA41f29D5CfcC": MetaStableSwapNGABI,
|
|
346
346
|
});
|
|
347
|
+
export var implementationABIDictFraxtal = lowerCaseKeys({
|
|
348
|
+
"0x1764ee18e8B3ccA4787249Ceb249356192594585": PlainStableSwapNGABI,
|
|
349
|
+
"0x5eeE3091f747E60a045a2E715a4c71e600e31F6E": MetaStableSwapNGABI,
|
|
350
|
+
});
|
|
347
351
|
export var basePoolIdZapDictEthereum = {
|
|
348
352
|
'3pool': {
|
|
349
353
|
address: "0xA79828DF1850E8a3A3064576f380D90aECDD3359".toLowerCase(),
|
|
@@ -440,6 +444,7 @@ export var basePoolIdZapDictCelo = {};
|
|
|
440
444
|
export var basePoolIdZapDictZkSync = {};
|
|
441
445
|
export var basePoolIdZapDictBase = {};
|
|
442
446
|
export var basePoolIdZapDictBsc = {};
|
|
447
|
+
export var basePoolIdZapDictFraxtal = {};
|
|
443
448
|
export var stableNgBasePoolZap = {
|
|
444
449
|
ABI: StableNgBasePoolZapABI,
|
|
445
450
|
address: '0xe07a16358aa878cbda2d49a88e5106871e0db307'.toLowerCase(),
|
|
@@ -475,6 +480,11 @@ export var FACTORY_CONSTANTS = {
|
|
|
475
480
|
basePoolIdZapDict: basePoolIdZapDictFantom,
|
|
476
481
|
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
477
482
|
},
|
|
483
|
+
252: {
|
|
484
|
+
implementationABIDict: implementationABIDictFraxtal,
|
|
485
|
+
basePoolIdZapDict: basePoolIdZapDictFraxtal,
|
|
486
|
+
stableNgBasePoolZap: stableNgBasePoolZap,
|
|
487
|
+
},
|
|
478
488
|
324: {
|
|
479
489
|
implementationABIDict: implementationABIDictZkSync,
|
|
480
490
|
basePoolIdZapDict: basePoolIdZapDictZkSync,
|
package/lib/factory/deploy.js
CHANGED
|
@@ -863,7 +863,7 @@ var _deployGaugeMirror = function (chainId, salt, estimateGas) { return __awaite
|
|
|
863
863
|
case 0:
|
|
864
864
|
if (curve.chainId !== 1)
|
|
865
865
|
throw Error("There is no deployGaugeMirror method on sidechain network");
|
|
866
|
-
contract = curve.contracts[curve.constants.ALIASES.gauge_factory].contract;
|
|
866
|
+
contract = chainId === 252 ? curve.contracts[curve.constants.ALIASES.gauge_factory_fraxtal].contract : curve.contracts[curve.constants.ALIASES.gauge_factory].contract;
|
|
867
867
|
_salt = ethers.encodeBytes32String(salt);
|
|
868
868
|
return [4 /*yield*/, contract.deploy_gauge.estimateGas(chainId, Typed.bytes32(_salt), curve.constantOptions)];
|
|
869
869
|
case 1:
|
package/lib/interfaces.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { Contract as MulticallContract, Provider as MulticallProvider } from "et
|
|
|
3
3
|
export interface IDict<T> {
|
|
4
4
|
[index: string]: T;
|
|
5
5
|
}
|
|
6
|
-
export type INetworkName = "ethereum" | "bsc" | "optimism" | "xdai" | "polygon" | "fantom" | "zksync" | "moonbeam" | "kava" | "base" | "arbitrum" | "celo" | "avalanche" | "aurora";
|
|
7
|
-
export type IChainId = 1 | 10 | 56 | 100 | 137 | 250 | 324 | 1284 | 2222 | 8453 | 42161 | 42220 | 43114 | 1313161554;
|
|
6
|
+
export type INetworkName = "ethereum" | "bsc" | "optimism" | "xdai" | "polygon" | "fantom" | "fraxtal" | "zksync" | "moonbeam" | "kava" | "base" | "arbitrum" | "celo" | "avalanche" | "aurora";
|
|
7
|
+
export type IChainId = 1 | 10 | 56 | 100 | 137 | 250 | 252 | 324 | 1284 | 2222 | 8453 | 42161 | 42220 | 43114 | 1313161554;
|
|
8
8
|
export type IFactoryPoolType = "factory" | "factory-crvusd" | "factory-eywa" | "factory-crypto" | "factory-twocrypto" | "factory-tricrypto" | "factory-stable-ng";
|
|
9
9
|
export type IPoolType = "main" | "crypto" | IFactoryPoolType;
|
|
10
10
|
export type ISwapType = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
package/lib/utils.js
CHANGED
|
@@ -627,6 +627,7 @@ export var _getUsdRate = function (assetId) { return __awaiter(void 0, void 0, v
|
|
|
627
627
|
100: 'xdai',
|
|
628
628
|
137: 'polygon-pos',
|
|
629
629
|
250: 'fantom',
|
|
630
|
+
252: 'fraxtal',
|
|
630
631
|
324: 'zksync',
|
|
631
632
|
1284: 'moonbeam',
|
|
632
633
|
2222: 'kava',
|
|
@@ -643,6 +644,7 @@ export var _getUsdRate = function (assetId) { return __awaiter(void 0, void 0, v
|
|
|
643
644
|
100: 'xdai',
|
|
644
645
|
137: 'matic-network',
|
|
645
646
|
250: 'fantom',
|
|
647
|
+
252: 'frax-ether',
|
|
646
648
|
324: 'ethereum',
|
|
647
649
|
1284: 'moonbeam',
|
|
648
650
|
2222: 'kava',
|