@curvefi/api 2.46.6 → 2.47.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.
@@ -1,590 +0,0 @@
1
- [
2
- {
3
- "anonymous": false,
4
- "inputs": [
5
- {
6
- "indexed": true,
7
- "name": "buyer",
8
- "type": "address"
9
- },
10
- {
11
- "indexed": true,
12
- "name": "receiver",
13
- "type": "address"
14
- },
15
- {
16
- "indexed": true,
17
- "name": "pool",
18
- "type": "address"
19
- },
20
- {
21
- "indexed": false,
22
- "name": "token_sold",
23
- "type": "address"
24
- },
25
- {
26
- "indexed": false,
27
- "name": "token_bought",
28
- "type": "address"
29
- },
30
- {
31
- "indexed": false,
32
- "name": "amount_sold",
33
- "type": "uint256"
34
- },
35
- {
36
- "indexed": false,
37
- "name": "amount_bought",
38
- "type": "uint256"
39
- }
40
- ],
41
- "name": "TokenExchange",
42
- "type": "event"
43
- },
44
- {
45
- "inputs": [
46
- {
47
- "name": "_address_provider",
48
- "type": "address"
49
- },
50
- {
51
- "name": "_calculator",
52
- "type": "address"
53
- }
54
- ],
55
- "name": "constructor",
56
- "outputs": [],
57
- "stateMutability": "nonpayable",
58
- "type": "constructor"
59
- },
60
- {
61
- "stateMutability": "payable",
62
- "type": "fallback"
63
- },
64
- {
65
- "gas": "490981085",
66
- "inputs": [
67
- {
68
- "name": "_from",
69
- "type": "address"
70
- },
71
- {
72
- "name": "_to",
73
- "type": "address"
74
- },
75
- {
76
- "name": "_amount",
77
- "type": "uint256"
78
- },
79
- {
80
- "name": "_expected",
81
- "type": "uint256"
82
- }
83
- ],
84
- "name": "exchange_with_best_rate",
85
- "outputs": [
86
- {
87
- "name": "",
88
- "type": "uint256"
89
- }
90
- ],
91
- "stateMutability": "payable",
92
- "type": "function"
93
- },
94
- {
95
- "gas": "490981085",
96
- "inputs": [
97
- {
98
- "name": "_from",
99
- "type": "address"
100
- },
101
- {
102
- "name": "_to",
103
- "type": "address"
104
- },
105
- {
106
- "name": "_amount",
107
- "type": "uint256"
108
- },
109
- {
110
- "name": "_expected",
111
- "type": "uint256"
112
- },
113
- {
114
- "name": "_receiver",
115
- "type": "address"
116
- }
117
- ],
118
- "name": "exchange_with_best_rate",
119
- "outputs": [
120
- {
121
- "name": "",
122
- "type": "uint256"
123
- }
124
- ],
125
- "stateMutability": "payable",
126
- "type": "function"
127
- },
128
- {
129
- "gas": "308925",
130
- "inputs": [
131
- {
132
- "name": "_pool",
133
- "type": "address"
134
- },
135
- {
136
- "name": "_from",
137
- "type": "address"
138
- },
139
- {
140
- "name": "_to",
141
- "type": "address"
142
- },
143
- {
144
- "name": "_amount",
145
- "type": "uint256"
146
- },
147
- {
148
- "name": "_expected",
149
- "type": "uint256"
150
- }
151
- ],
152
- "name": "exchange",
153
- "outputs": [
154
- {
155
- "name": "",
156
- "type": "uint256"
157
- }
158
- ],
159
- "stateMutability": "payable",
160
- "type": "function"
161
- },
162
- {
163
- "gas": "308925",
164
- "inputs": [
165
- {
166
- "name": "_pool",
167
- "type": "address"
168
- },
169
- {
170
- "name": "_from",
171
- "type": "address"
172
- },
173
- {
174
- "name": "_to",
175
- "type": "address"
176
- },
177
- {
178
- "name": "_amount",
179
- "type": "uint256"
180
- },
181
- {
182
- "name": "_expected",
183
- "type": "uint256"
184
- },
185
- {
186
- "name": "_receiver",
187
- "type": "address"
188
- }
189
- ],
190
- "name": "exchange",
191
- "outputs": [
192
- {
193
- "name": "",
194
- "type": "uint256"
195
- }
196
- ],
197
- "stateMutability": "payable",
198
- "type": "function"
199
- },
200
- {
201
- "gas": "278915",
202
- "inputs": [
203
- {
204
- "name": "_route",
205
- "type": "address[9]"
206
- },
207
- {
208
- "name": "_swap_params",
209
- "type": "uint256[3][4]"
210
- },
211
- {
212
- "name": "_amount",
213
- "type": "uint256"
214
- },
215
- {
216
- "name": "_expected",
217
- "type": "uint256"
218
- },
219
- {
220
- "name": "_pools",
221
- "type": "address[4]"
222
- }
223
- ],
224
- "name": "exchange_multiple",
225
- "outputs": [
226
- {
227
- "name": "",
228
- "type": "uint256"
229
- }
230
- ],
231
- "stateMutability": "payable",
232
- "type": "function"
233
- },
234
- {
235
- "gas": "1584665657",
236
- "inputs": [
237
- {
238
- "name": "_from",
239
- "type": "address"
240
- },
241
- {
242
- "name": "_to",
243
- "type": "address"
244
- },
245
- {
246
- "name": "_amount",
247
- "type": "uint256"
248
- }
249
- ],
250
- "name": "get_best_rate",
251
- "outputs": [
252
- {
253
- "name": "",
254
- "type": "address"
255
- },
256
- {
257
- "name": "",
258
- "type": "uint256"
259
- }
260
- ],
261
- "stateMutability": "view",
262
- "type": "function"
263
- },
264
- {
265
- "gas": "1584665657",
266
- "inputs": [
267
- {
268
- "name": "_from",
269
- "type": "address"
270
- },
271
- {
272
- "name": "_to",
273
- "type": "address"
274
- },
275
- {
276
- "name": "_amount",
277
- "type": "uint256"
278
- },
279
- {
280
- "name": "_exclude_pools",
281
- "type": "address[8]"
282
- }
283
- ],
284
- "name": "get_best_rate",
285
- "outputs": [
286
- {
287
- "name": "",
288
- "type": "address"
289
- },
290
- {
291
- "name": "",
292
- "type": "uint256"
293
- }
294
- ],
295
- "stateMutability": "view",
296
- "type": "function"
297
- },
298
- {
299
- "gas": "14635",
300
- "inputs": [
301
- {
302
- "name": "_pool",
303
- "type": "address"
304
- },
305
- {
306
- "name": "_from",
307
- "type": "address"
308
- },
309
- {
310
- "name": "_to",
311
- "type": "address"
312
- },
313
- {
314
- "name": "_amount",
315
- "type": "uint256"
316
- }
317
- ],
318
- "name": "get_exchange_amount",
319
- "outputs": [
320
- {
321
- "name": "",
322
- "type": "uint256"
323
- }
324
- ],
325
- "stateMutability": "view",
326
- "type": "function"
327
- },
328
- {
329
- "gas": "21156",
330
- "inputs": [
331
- {
332
- "name": "_pool",
333
- "type": "address"
334
- },
335
- {
336
- "name": "_from",
337
- "type": "address"
338
- },
339
- {
340
- "name": "_to",
341
- "type": "address"
342
- },
343
- {
344
- "name": "_amount",
345
- "type": "uint256"
346
- }
347
- ],
348
- "name": "get_input_amount",
349
- "outputs": [
350
- {
351
- "name": "",
352
- "type": "uint256"
353
- }
354
- ],
355
- "stateMutability": "view",
356
- "type": "function"
357
- },
358
- {
359
- "gas": "24943",
360
- "inputs": [
361
- {
362
- "name": "_pool",
363
- "type": "address"
364
- },
365
- {
366
- "name": "_from",
367
- "type": "address"
368
- },
369
- {
370
- "name": "_to",
371
- "type": "address"
372
- },
373
- {
374
- "name": "_amounts",
375
- "type": "uint256[100]"
376
- }
377
- ],
378
- "name": "get_exchange_amounts",
379
- "outputs": [
380
- {
381
- "name": "",
382
- "type": "uint256[100]"
383
- }
384
- ],
385
- "stateMutability": "view",
386
- "type": "function"
387
- },
388
- {
389
- "gas": "278915",
390
- "inputs": [
391
- {
392
- "name": "_route",
393
- "type": "address[9]"
394
- },
395
- {
396
- "name": "_swap_params",
397
- "type": "uint256[3][4]"
398
- },
399
- {
400
- "name": "_amount",
401
- "type": "uint256"
402
- },
403
- {
404
- "name": "_pools",
405
- "type": "address[4]"
406
- }
407
- ],
408
- "name": "get_exchange_multiple_amount",
409
- "outputs": [
410
- {
411
- "name": "",
412
- "type": "uint256"
413
- }
414
- ],
415
- "stateMutability": "view",
416
- "type": "function"
417
- },
418
- {
419
- "gas": "2654",
420
- "inputs": [
421
- {
422
- "name": "_pool",
423
- "type": "address"
424
- }
425
- ],
426
- "name": "get_calculator",
427
- "outputs": [
428
- {
429
- "name": "",
430
- "type": "address"
431
- }
432
- ],
433
- "stateMutability": "view",
434
- "type": "function"
435
- },
436
- {
437
- "gas": "109973",
438
- "inputs": [],
439
- "name": "update_registry_address",
440
- "outputs": [
441
- {
442
- "name": "",
443
- "type": "bool"
444
- }
445
- ],
446
- "stateMutability": "nonpayable",
447
- "type": "function"
448
- },
449
- {
450
- "gas": "38057",
451
- "inputs": [
452
- {
453
- "name": "_pool",
454
- "type": "address"
455
- },
456
- {
457
- "name": "_calculator",
458
- "type": "address"
459
- }
460
- ],
461
- "name": "set_calculator",
462
- "outputs": [
463
- {
464
- "name": "",
465
- "type": "bool"
466
- }
467
- ],
468
- "stateMutability": "nonpayable",
469
- "type": "function"
470
- },
471
- {
472
- "gas": "37815",
473
- "inputs": [
474
- {
475
- "name": "_calculator",
476
- "type": "address"
477
- }
478
- ],
479
- "name": "set_default_calculator",
480
- "outputs": [
481
- {
482
- "name": "",
483
- "type": "bool"
484
- }
485
- ],
486
- "stateMutability": "nonpayable",
487
- "type": "function"
488
- },
489
- {
490
- "gas": "38659",
491
- "inputs": [
492
- {
493
- "name": "_token",
494
- "type": "address"
495
- }
496
- ],
497
- "name": "claim_balance",
498
- "outputs": [
499
- {
500
- "name": "",
501
- "type": "bool"
502
- }
503
- ],
504
- "stateMutability": "nonpayable",
505
- "type": "function"
506
- },
507
- {
508
- "gas": "37875",
509
- "inputs": [
510
- {
511
- "name": "_is_killed",
512
- "type": "bool"
513
- }
514
- ],
515
- "name": "set_killed",
516
- "outputs": [
517
- {
518
- "name": "",
519
- "type": "bool"
520
- }
521
- ],
522
- "stateMutability": "nonpayable",
523
- "type": "function"
524
- },
525
- {
526
- "gas": "1706",
527
- "inputs": [],
528
- "name": "registry",
529
- "outputs": [
530
- {
531
- "name": "",
532
- "type": "address"
533
- }
534
- ],
535
- "stateMutability": "view",
536
- "type": "function"
537
- },
538
- {
539
- "gas": "1736",
540
- "inputs": [],
541
- "name": "factory_registry",
542
- "outputs": [
543
- {
544
- "name": "",
545
- "type": "address"
546
- }
547
- ],
548
- "stateMutability": "view",
549
- "type": "function"
550
- },
551
- {
552
- "gas": "1766",
553
- "inputs": [],
554
- "name": "crypto_registry",
555
- "outputs": [
556
- {
557
- "name": "",
558
- "type": "address"
559
- }
560
- ],
561
- "stateMutability": "view",
562
- "type": "function"
563
- },
564
- {
565
- "gas": "1796",
566
- "inputs": [],
567
- "name": "default_calculator",
568
- "outputs": [
569
- {
570
- "name": "",
571
- "type": "address"
572
- }
573
- ],
574
- "stateMutability": "view",
575
- "type": "function"
576
- },
577
- {
578
- "gas": "1826",
579
- "inputs": [],
580
- "name": "is_killed",
581
- "outputs": [
582
- {
583
- "name": "",
584
- "type": "bool"
585
- }
586
- ],
587
- "stateMutability": "view",
588
- "type": "function"
589
- }
590
- ]