@curvefi/api 1.18.0 → 1.19.0

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.
@@ -0,0 +1,635 @@
1
+ [
2
+ {
3
+ "name": "CryptoPoolDeployed",
4
+ "inputs": [
5
+ {
6
+ "name": "token",
7
+ "type": "address",
8
+ "indexed": false
9
+ },
10
+ {
11
+ "name": "coins",
12
+ "type": "address[2]",
13
+ "indexed": false
14
+ },
15
+ {
16
+ "name": "A",
17
+ "type": "uint256",
18
+ "indexed": false
19
+ },
20
+ {
21
+ "name": "gamma",
22
+ "type": "uint256",
23
+ "indexed": false
24
+ },
25
+ {
26
+ "name": "mid_fee",
27
+ "type": "uint256",
28
+ "indexed": false
29
+ },
30
+ {
31
+ "name": "out_fee",
32
+ "type": "uint256",
33
+ "indexed": false
34
+ },
35
+ {
36
+ "name": "allowed_extra_profit",
37
+ "type": "uint256",
38
+ "indexed": false
39
+ },
40
+ {
41
+ "name": "fee_gamma",
42
+ "type": "uint256",
43
+ "indexed": false
44
+ },
45
+ {
46
+ "name": "adjustment_step",
47
+ "type": "uint256",
48
+ "indexed": false
49
+ },
50
+ {
51
+ "name": "admin_fee",
52
+ "type": "uint256",
53
+ "indexed": false
54
+ },
55
+ {
56
+ "name": "ma_half_time",
57
+ "type": "uint256",
58
+ "indexed": false
59
+ },
60
+ {
61
+ "name": "initial_price",
62
+ "type": "uint256",
63
+ "indexed": false
64
+ },
65
+ {
66
+ "name": "deployer",
67
+ "type": "address",
68
+ "indexed": false
69
+ }
70
+ ],
71
+ "anonymous": false,
72
+ "type": "event"
73
+ },
74
+ {
75
+ "name": "LiquidityGaugeDeployed",
76
+ "inputs": [
77
+ {
78
+ "name": "pool",
79
+ "type": "address",
80
+ "indexed": false
81
+ },
82
+ {
83
+ "name": "token",
84
+ "type": "address",
85
+ "indexed": false
86
+ },
87
+ {
88
+ "name": "gauge",
89
+ "type": "address",
90
+ "indexed": false
91
+ }
92
+ ],
93
+ "anonymous": false,
94
+ "type": "event"
95
+ },
96
+ {
97
+ "name": "UpdateFeeReceiver",
98
+ "inputs": [
99
+ {
100
+ "name": "_old_fee_receiver",
101
+ "type": "address",
102
+ "indexed": false
103
+ },
104
+ {
105
+ "name": "_new_fee_receiver",
106
+ "type": "address",
107
+ "indexed": false
108
+ }
109
+ ],
110
+ "anonymous": false,
111
+ "type": "event"
112
+ },
113
+ {
114
+ "name": "UpdatePoolImplementation",
115
+ "inputs": [
116
+ {
117
+ "name": "_old_pool_implementation",
118
+ "type": "address",
119
+ "indexed": false
120
+ },
121
+ {
122
+ "name": "_new_pool_implementation",
123
+ "type": "address",
124
+ "indexed": false
125
+ }
126
+ ],
127
+ "anonymous": false,
128
+ "type": "event"
129
+ },
130
+ {
131
+ "name": "UpdateTokenImplementation",
132
+ "inputs": [
133
+ {
134
+ "name": "_old_token_implementation",
135
+ "type": "address",
136
+ "indexed": false
137
+ },
138
+ {
139
+ "name": "_new_token_implementation",
140
+ "type": "address",
141
+ "indexed": false
142
+ }
143
+ ],
144
+ "anonymous": false,
145
+ "type": "event"
146
+ },
147
+ {
148
+ "name": "UpdateGaugeImplementation",
149
+ "inputs": [
150
+ {
151
+ "name": "_old_gauge_implementation",
152
+ "type": "address",
153
+ "indexed": false
154
+ },
155
+ {
156
+ "name": "_new_gauge_implementation",
157
+ "type": "address",
158
+ "indexed": false
159
+ }
160
+ ],
161
+ "anonymous": false,
162
+ "type": "event"
163
+ },
164
+ {
165
+ "name": "TransferOwnership",
166
+ "inputs": [
167
+ {
168
+ "name": "_old_owner",
169
+ "type": "address",
170
+ "indexed": false
171
+ },
172
+ {
173
+ "name": "_new_owner",
174
+ "type": "address",
175
+ "indexed": false
176
+ }
177
+ ],
178
+ "anonymous": false,
179
+ "type": "event"
180
+ },
181
+ {
182
+ "stateMutability": "nonpayable",
183
+ "type": "constructor",
184
+ "inputs": [
185
+ {
186
+ "name": "_fee_receiver",
187
+ "type": "address"
188
+ },
189
+ {
190
+ "name": "_pool_implementation",
191
+ "type": "address"
192
+ },
193
+ {
194
+ "name": "_token_implementation",
195
+ "type": "address"
196
+ },
197
+ {
198
+ "name": "_gauge_implementation",
199
+ "type": "address"
200
+ },
201
+ {
202
+ "name": "_weth",
203
+ "type": "address"
204
+ }
205
+ ],
206
+ "outputs": []
207
+ },
208
+ {
209
+ "stateMutability": "nonpayable",
210
+ "type": "function",
211
+ "name": "deploy_pool",
212
+ "inputs": [
213
+ {
214
+ "name": "_name",
215
+ "type": "string"
216
+ },
217
+ {
218
+ "name": "_symbol",
219
+ "type": "string"
220
+ },
221
+ {
222
+ "name": "_coins",
223
+ "type": "address[2]"
224
+ },
225
+ {
226
+ "name": "A",
227
+ "type": "uint256"
228
+ },
229
+ {
230
+ "name": "gamma",
231
+ "type": "uint256"
232
+ },
233
+ {
234
+ "name": "mid_fee",
235
+ "type": "uint256"
236
+ },
237
+ {
238
+ "name": "out_fee",
239
+ "type": "uint256"
240
+ },
241
+ {
242
+ "name": "allowed_extra_profit",
243
+ "type": "uint256"
244
+ },
245
+ {
246
+ "name": "fee_gamma",
247
+ "type": "uint256"
248
+ },
249
+ {
250
+ "name": "adjustment_step",
251
+ "type": "uint256"
252
+ },
253
+ {
254
+ "name": "admin_fee",
255
+ "type": "uint256"
256
+ },
257
+ {
258
+ "name": "ma_half_time",
259
+ "type": "uint256"
260
+ },
261
+ {
262
+ "name": "initial_price",
263
+ "type": "uint256"
264
+ }
265
+ ],
266
+ "outputs": [
267
+ {
268
+ "name": "",
269
+ "type": "address"
270
+ }
271
+ ]
272
+ },
273
+ {
274
+ "stateMutability": "nonpayable",
275
+ "type": "function",
276
+ "name": "deploy_gauge",
277
+ "inputs": [
278
+ {
279
+ "name": "_pool",
280
+ "type": "address"
281
+ }
282
+ ],
283
+ "outputs": [
284
+ {
285
+ "name": "",
286
+ "type": "address"
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ "stateMutability": "nonpayable",
292
+ "type": "function",
293
+ "name": "set_fee_receiver",
294
+ "inputs": [
295
+ {
296
+ "name": "_fee_receiver",
297
+ "type": "address"
298
+ }
299
+ ],
300
+ "outputs": []
301
+ },
302
+ {
303
+ "stateMutability": "nonpayable",
304
+ "type": "function",
305
+ "name": "set_pool_implementation",
306
+ "inputs": [
307
+ {
308
+ "name": "_pool_implementation",
309
+ "type": "address"
310
+ }
311
+ ],
312
+ "outputs": []
313
+ },
314
+ {
315
+ "stateMutability": "nonpayable",
316
+ "type": "function",
317
+ "name": "set_token_implementation",
318
+ "inputs": [
319
+ {
320
+ "name": "_token_implementation",
321
+ "type": "address"
322
+ }
323
+ ],
324
+ "outputs": []
325
+ },
326
+ {
327
+ "stateMutability": "nonpayable",
328
+ "type": "function",
329
+ "name": "set_gauge_implementation",
330
+ "inputs": [
331
+ {
332
+ "name": "_gauge_implementation",
333
+ "type": "address"
334
+ }
335
+ ],
336
+ "outputs": []
337
+ },
338
+ {
339
+ "stateMutability": "nonpayable",
340
+ "type": "function",
341
+ "name": "commit_transfer_ownership",
342
+ "inputs": [
343
+ {
344
+ "name": "_addr",
345
+ "type": "address"
346
+ }
347
+ ],
348
+ "outputs": []
349
+ },
350
+ {
351
+ "stateMutability": "nonpayable",
352
+ "type": "function",
353
+ "name": "accept_transfer_ownership",
354
+ "inputs": [],
355
+ "outputs": []
356
+ },
357
+ {
358
+ "stateMutability": "view",
359
+ "type": "function",
360
+ "name": "find_pool_for_coins",
361
+ "inputs": [
362
+ {
363
+ "name": "_from",
364
+ "type": "address"
365
+ },
366
+ {
367
+ "name": "_to",
368
+ "type": "address"
369
+ }
370
+ ],
371
+ "outputs": [
372
+ {
373
+ "name": "",
374
+ "type": "address"
375
+ }
376
+ ]
377
+ },
378
+ {
379
+ "stateMutability": "view",
380
+ "type": "function",
381
+ "name": "find_pool_for_coins",
382
+ "inputs": [
383
+ {
384
+ "name": "_from",
385
+ "type": "address"
386
+ },
387
+ {
388
+ "name": "_to",
389
+ "type": "address"
390
+ },
391
+ {
392
+ "name": "i",
393
+ "type": "uint256"
394
+ }
395
+ ],
396
+ "outputs": [
397
+ {
398
+ "name": "",
399
+ "type": "address"
400
+ }
401
+ ]
402
+ },
403
+ {
404
+ "stateMutability": "view",
405
+ "type": "function",
406
+ "name": "get_coins",
407
+ "inputs": [
408
+ {
409
+ "name": "_pool",
410
+ "type": "address"
411
+ }
412
+ ],
413
+ "outputs": [
414
+ {
415
+ "name": "",
416
+ "type": "address[2]"
417
+ }
418
+ ]
419
+ },
420
+ {
421
+ "stateMutability": "view",
422
+ "type": "function",
423
+ "name": "get_decimals",
424
+ "inputs": [
425
+ {
426
+ "name": "_pool",
427
+ "type": "address"
428
+ }
429
+ ],
430
+ "outputs": [
431
+ {
432
+ "name": "",
433
+ "type": "uint256[2]"
434
+ }
435
+ ]
436
+ },
437
+ {
438
+ "stateMutability": "view",
439
+ "type": "function",
440
+ "name": "get_balances",
441
+ "inputs": [
442
+ {
443
+ "name": "_pool",
444
+ "type": "address"
445
+ }
446
+ ],
447
+ "outputs": [
448
+ {
449
+ "name": "",
450
+ "type": "uint256[2]"
451
+ }
452
+ ]
453
+ },
454
+ {
455
+ "stateMutability": "view",
456
+ "type": "function",
457
+ "name": "get_coin_indices",
458
+ "inputs": [
459
+ {
460
+ "name": "_pool",
461
+ "type": "address"
462
+ },
463
+ {
464
+ "name": "_from",
465
+ "type": "address"
466
+ },
467
+ {
468
+ "name": "_to",
469
+ "type": "address"
470
+ }
471
+ ],
472
+ "outputs": [
473
+ {
474
+ "name": "",
475
+ "type": "uint256"
476
+ },
477
+ {
478
+ "name": "",
479
+ "type": "uint256"
480
+ }
481
+ ]
482
+ },
483
+ {
484
+ "stateMutability": "view",
485
+ "type": "function",
486
+ "name": "get_gauge",
487
+ "inputs": [
488
+ {
489
+ "name": "_pool",
490
+ "type": "address"
491
+ }
492
+ ],
493
+ "outputs": [
494
+ {
495
+ "name": "",
496
+ "type": "address"
497
+ }
498
+ ]
499
+ },
500
+ {
501
+ "stateMutability": "view",
502
+ "type": "function",
503
+ "name": "get_eth_index",
504
+ "inputs": [
505
+ {
506
+ "name": "_pool",
507
+ "type": "address"
508
+ }
509
+ ],
510
+ "outputs": [
511
+ {
512
+ "name": "",
513
+ "type": "uint256"
514
+ }
515
+ ]
516
+ },
517
+ {
518
+ "stateMutability": "view",
519
+ "type": "function",
520
+ "name": "get_token",
521
+ "inputs": [
522
+ {
523
+ "name": "_pool",
524
+ "type": "address"
525
+ }
526
+ ],
527
+ "outputs": [
528
+ {
529
+ "name": "",
530
+ "type": "address"
531
+ }
532
+ ]
533
+ },
534
+ {
535
+ "stateMutability": "view",
536
+ "type": "function",
537
+ "name": "admin",
538
+ "inputs": [],
539
+ "outputs": [
540
+ {
541
+ "name": "",
542
+ "type": "address"
543
+ }
544
+ ]
545
+ },
546
+ {
547
+ "stateMutability": "view",
548
+ "type": "function",
549
+ "name": "future_admin",
550
+ "inputs": [],
551
+ "outputs": [
552
+ {
553
+ "name": "",
554
+ "type": "address"
555
+ }
556
+ ]
557
+ },
558
+ {
559
+ "stateMutability": "view",
560
+ "type": "function",
561
+ "name": "fee_receiver",
562
+ "inputs": [],
563
+ "outputs": [
564
+ {
565
+ "name": "",
566
+ "type": "address"
567
+ }
568
+ ]
569
+ },
570
+ {
571
+ "stateMutability": "view",
572
+ "type": "function",
573
+ "name": "pool_implementation",
574
+ "inputs": [],
575
+ "outputs": [
576
+ {
577
+ "name": "",
578
+ "type": "address"
579
+ }
580
+ ]
581
+ },
582
+ {
583
+ "stateMutability": "view",
584
+ "type": "function",
585
+ "name": "token_implementation",
586
+ "inputs": [],
587
+ "outputs": [
588
+ {
589
+ "name": "",
590
+ "type": "address"
591
+ }
592
+ ]
593
+ },
594
+ {
595
+ "stateMutability": "view",
596
+ "type": "function",
597
+ "name": "gauge_implementation",
598
+ "inputs": [],
599
+ "outputs": [
600
+ {
601
+ "name": "",
602
+ "type": "address"
603
+ }
604
+ ]
605
+ },
606
+ {
607
+ "stateMutability": "view",
608
+ "type": "function",
609
+ "name": "pool_count",
610
+ "inputs": [],
611
+ "outputs": [
612
+ {
613
+ "name": "",
614
+ "type": "uint256"
615
+ }
616
+ ]
617
+ },
618
+ {
619
+ "stateMutability": "view",
620
+ "type": "function",
621
+ "name": "pool_list",
622
+ "inputs": [
623
+ {
624
+ "name": "arg0",
625
+ "type": "uint256"
626
+ }
627
+ ],
628
+ "outputs": [
629
+ {
630
+ "name": "",
631
+ "type": "address"
632
+ }
633
+ ]
634
+ }
635
+ ]
@@ -7,6 +7,7 @@ export declare const ALIASES_ETHEREUM: {
7
7
  router: string;
8
8
  deposit_and_stake: string;
9
9
  factory: string;
10
+ crypto_factory: string;
10
11
  registry_exchange: string;
11
12
  };
12
13
  export declare const ALIASES_POLYGON: {
@@ -18,5 +19,6 @@ export declare const ALIASES_POLYGON: {
18
19
  router: string;
19
20
  deposit_and_stake: string;
20
21
  factory: string;
22
+ crypto_factory: string;
21
23
  registry_exchange: string;
22
24
  };
@@ -10,6 +10,7 @@ exports.ALIASES_ETHEREUM = {
10
10
  "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
11
11
  "deposit_and_stake": "0x271fbE8aB7f1fB262f81C77Ea5303F03DA9d3d6A",
12
12
  "factory": '0xb9fc157394af804a3578134a6585c0dc9cc990d4',
13
+ "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
13
14
  "registry_exchange": "",
14
15
  };
15
16
  exports.ALIASES_POLYGON = {
@@ -21,5 +22,6 @@ exports.ALIASES_POLYGON = {
21
22
  "router": "0xfA9a30350048B2BF66865ee20363067c66f67e58",
22
23
  "deposit_and_stake": "0x43FF7b96808988C9d19C1d05Ef19658B03e8a143",
23
24
  "factory": '0x722272d36ef0da72ff51c5a65db7b870e2e8d4ee',
25
+ "crypto_factory": '0xF18056Bbd320E96A48e3Fbf8bC061322531aac99',
24
26
  "registry_exchange": "",
25
27
  };
package/lib/curve.d.ts CHANGED
@@ -29,6 +29,7 @@ export declare let ALIASES: {
29
29
  router: string;
30
30
  deposit_and_stake: string;
31
31
  factory: string;
32
+ crypto_factory: string;
32
33
  registry_exchange: string;
33
34
  };
34
35
  declare class Curve {
@@ -73,6 +74,7 @@ declare class Curve {
73
74
  chainId?: number;
74
75
  }): Promise<void>;
75
76
  fetchFactoryPools(): Promise<void>;
77
+ fetchCryptoFactoryPools(): Promise<void>;
76
78
  setCustomFeeData(customFeeData: {
77
79
  gasPrice?: number;
78
80
  maxFeePerGas?: number;