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