@curvefi/api 2.2.0 → 2.3.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.
@@ -1 +1,482 @@
1
- [{ "inputs": [{ "internalType": "address", "name": "_nexus", "type": "address" }, { "internalType": "address", "name": "_stakingToken", "type": "address" }, { "internalType": "address", "name": "_rewardsToken", "type": "address" }, { "internalType": "address", "name": "_rewardsDistributor", "type": "address" }], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "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" }, { "indexed": false, "internalType": "address", "name": "payer", "type": "address" }], "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": true, "inputs": [{ "internalType": "address", "name": "_account", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "claimReward", "outputs": [], "payable": false, "stateMutability": "nonpayable", "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": true, "inputs": [], "name": "getRewardToken", "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }], "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": true, "inputs": [], "name": "nexus", "outputs": [{ "internalType": "contract INexus", "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": "periodFinish", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "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": "rewardsDistributor", "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": "_rewardsDistributor", "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": false, "inputs": [{ "internalType": "address", "name": "_beneficiary", "type": "address" }, { "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": "_nexus",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_stakingToken",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_rewardsToken",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "internalType": "address",
21
+ "name": "_rewardsDistributor",
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": "uint256",
35
+ "name": "reward",
36
+ "type": "uint256"
37
+ }
38
+ ],
39
+ "name": "RewardAdded",
40
+ "type": "event"
41
+ },
42
+ {
43
+ "anonymous": false,
44
+ "inputs": [
45
+ {
46
+ "indexed": true,
47
+ "internalType": "address",
48
+ "name": "user",
49
+ "type": "address"
50
+ },
51
+ {
52
+ "indexed": false,
53
+ "internalType": "uint256",
54
+ "name": "reward",
55
+ "type": "uint256"
56
+ }
57
+ ],
58
+ "name": "RewardPaid",
59
+ "type": "event"
60
+ },
61
+ {
62
+ "anonymous": false,
63
+ "inputs": [
64
+ {
65
+ "indexed": true,
66
+ "internalType": "address",
67
+ "name": "user",
68
+ "type": "address"
69
+ },
70
+ {
71
+ "indexed": false,
72
+ "internalType": "uint256",
73
+ "name": "amount",
74
+ "type": "uint256"
75
+ },
76
+ {
77
+ "indexed": false,
78
+ "internalType": "address",
79
+ "name": "payer",
80
+ "type": "address"
81
+ }
82
+ ],
83
+ "name": "Staked",
84
+ "type": "event"
85
+ },
86
+ {
87
+ "anonymous": false,
88
+ "inputs": [
89
+ {
90
+ "indexed": true,
91
+ "internalType": "address",
92
+ "name": "user",
93
+ "type": "address"
94
+ },
95
+ {
96
+ "indexed": false,
97
+ "internalType": "uint256",
98
+ "name": "amount",
99
+ "type": "uint256"
100
+ }
101
+ ],
102
+ "name": "Withdrawn",
103
+ "type": "event"
104
+ },
105
+ {
106
+ "constant": true,
107
+ "inputs": [],
108
+ "name": "DURATION",
109
+ "outputs": [
110
+ {
111
+ "internalType": "uint256",
112
+ "name": "",
113
+ "type": "uint256"
114
+ }
115
+ ],
116
+ "payable": false,
117
+ "stateMutability": "view",
118
+ "type": "function"
119
+ },
120
+ {
121
+ "constant": true,
122
+ "inputs": [
123
+ {
124
+ "internalType": "address",
125
+ "name": "_account",
126
+ "type": "address"
127
+ }
128
+ ],
129
+ "name": "balanceOf",
130
+ "outputs": [
131
+ {
132
+ "internalType": "uint256",
133
+ "name": "",
134
+ "type": "uint256"
135
+ }
136
+ ],
137
+ "payable": false,
138
+ "stateMutability": "view",
139
+ "type": "function"
140
+ },
141
+ {
142
+ "constant": false,
143
+ "inputs": [],
144
+ "name": "claimReward",
145
+ "outputs": [],
146
+ "payable": false,
147
+ "stateMutability": "nonpayable",
148
+ "type": "function"
149
+ },
150
+ {
151
+ "constant": true,
152
+ "inputs": [
153
+ {
154
+ "internalType": "address",
155
+ "name": "_account",
156
+ "type": "address"
157
+ }
158
+ ],
159
+ "name": "earned",
160
+ "outputs": [
161
+ {
162
+ "internalType": "uint256",
163
+ "name": "",
164
+ "type": "uint256"
165
+ }
166
+ ],
167
+ "payable": false,
168
+ "stateMutability": "view",
169
+ "type": "function"
170
+ },
171
+ {
172
+ "constant": false,
173
+ "inputs": [],
174
+ "name": "exit",
175
+ "outputs": [],
176
+ "payable": false,
177
+ "stateMutability": "nonpayable",
178
+ "type": "function"
179
+ },
180
+ {
181
+ "constant": true,
182
+ "inputs": [],
183
+ "name": "getRewardToken",
184
+ "outputs": [
185
+ {
186
+ "internalType": "contract IERC20",
187
+ "name": "",
188
+ "type": "address"
189
+ }
190
+ ],
191
+ "payable": false,
192
+ "stateMutability": "view",
193
+ "type": "function"
194
+ },
195
+ {
196
+ "constant": true,
197
+ "inputs": [],
198
+ "name": "lastTimeRewardApplicable",
199
+ "outputs": [
200
+ {
201
+ "internalType": "uint256",
202
+ "name": "",
203
+ "type": "uint256"
204
+ }
205
+ ],
206
+ "payable": false,
207
+ "stateMutability": "view",
208
+ "type": "function"
209
+ },
210
+ {
211
+ "constant": true,
212
+ "inputs": [],
213
+ "name": "lastUpdateTime",
214
+ "outputs": [
215
+ {
216
+ "internalType": "uint256",
217
+ "name": "",
218
+ "type": "uint256"
219
+ }
220
+ ],
221
+ "payable": false,
222
+ "stateMutability": "view",
223
+ "type": "function"
224
+ },
225
+ {
226
+ "constant": true,
227
+ "inputs": [],
228
+ "name": "nexus",
229
+ "outputs": [
230
+ {
231
+ "internalType": "contract INexus",
232
+ "name": "",
233
+ "type": "address"
234
+ }
235
+ ],
236
+ "payable": false,
237
+ "stateMutability": "view",
238
+ "type": "function"
239
+ },
240
+ {
241
+ "constant": false,
242
+ "inputs": [
243
+ {
244
+ "internalType": "uint256",
245
+ "name": "_reward",
246
+ "type": "uint256"
247
+ }
248
+ ],
249
+ "name": "notifyRewardAmount",
250
+ "outputs": [],
251
+ "payable": false,
252
+ "stateMutability": "nonpayable",
253
+ "type": "function"
254
+ },
255
+ {
256
+ "constant": true,
257
+ "inputs": [],
258
+ "name": "periodFinish",
259
+ "outputs": [
260
+ {
261
+ "internalType": "uint256",
262
+ "name": "",
263
+ "type": "uint256"
264
+ }
265
+ ],
266
+ "payable": false,
267
+ "stateMutability": "view",
268
+ "type": "function"
269
+ },
270
+ {
271
+ "constant": true,
272
+ "inputs": [],
273
+ "name": "rewardPerToken",
274
+ "outputs": [
275
+ {
276
+ "internalType": "uint256",
277
+ "name": "",
278
+ "type": "uint256"
279
+ }
280
+ ],
281
+ "payable": false,
282
+ "stateMutability": "view",
283
+ "type": "function"
284
+ },
285
+ {
286
+ "constant": true,
287
+ "inputs": [],
288
+ "name": "rewardPerTokenStored",
289
+ "outputs": [
290
+ {
291
+ "internalType": "uint256",
292
+ "name": "",
293
+ "type": "uint256"
294
+ }
295
+ ],
296
+ "payable": false,
297
+ "stateMutability": "view",
298
+ "type": "function"
299
+ },
300
+ {
301
+ "constant": true,
302
+ "inputs": [],
303
+ "name": "rewardRate",
304
+ "outputs": [
305
+ {
306
+ "internalType": "uint256",
307
+ "name": "",
308
+ "type": "uint256"
309
+ }
310
+ ],
311
+ "payable": false,
312
+ "stateMutability": "view",
313
+ "type": "function"
314
+ },
315
+ {
316
+ "constant": true,
317
+ "inputs": [
318
+ {
319
+ "internalType": "address",
320
+ "name": "",
321
+ "type": "address"
322
+ }
323
+ ],
324
+ "name": "rewards",
325
+ "outputs": [
326
+ {
327
+ "internalType": "uint256",
328
+ "name": "",
329
+ "type": "uint256"
330
+ }
331
+ ],
332
+ "payable": false,
333
+ "stateMutability": "view",
334
+ "type": "function"
335
+ },
336
+ {
337
+ "constant": true,
338
+ "inputs": [],
339
+ "name": "rewardsDistributor",
340
+ "outputs": [
341
+ {
342
+ "internalType": "address",
343
+ "name": "",
344
+ "type": "address"
345
+ }
346
+ ],
347
+ "payable": false,
348
+ "stateMutability": "view",
349
+ "type": "function"
350
+ },
351
+ {
352
+ "constant": true,
353
+ "inputs": [],
354
+ "name": "rewardsToken",
355
+ "outputs": [
356
+ {
357
+ "internalType": "contract IERC20",
358
+ "name": "",
359
+ "type": "address"
360
+ }
361
+ ],
362
+ "payable": false,
363
+ "stateMutability": "view",
364
+ "type": "function"
365
+ },
366
+ {
367
+ "constant": false,
368
+ "inputs": [
369
+ {
370
+ "internalType": "address",
371
+ "name": "_rewardsDistributor",
372
+ "type": "address"
373
+ }
374
+ ],
375
+ "name": "setRewardsDistribution",
376
+ "outputs": [],
377
+ "payable": false,
378
+ "stateMutability": "nonpayable",
379
+ "type": "function"
380
+ },
381
+ {
382
+ "constant": false,
383
+ "inputs": [
384
+ {
385
+ "internalType": "uint256",
386
+ "name": "_amount",
387
+ "type": "uint256"
388
+ }
389
+ ],
390
+ "name": "stake",
391
+ "outputs": [],
392
+ "payable": false,
393
+ "stateMutability": "nonpayable",
394
+ "type": "function"
395
+ },
396
+ {
397
+ "constant": false,
398
+ "inputs": [
399
+ {
400
+ "internalType": "address",
401
+ "name": "_beneficiary",
402
+ "type": "address"
403
+ },
404
+ {
405
+ "internalType": "uint256",
406
+ "name": "_amount",
407
+ "type": "uint256"
408
+ }
409
+ ],
410
+ "name": "stake",
411
+ "outputs": [],
412
+ "payable": false,
413
+ "stateMutability": "nonpayable",
414
+ "type": "function"
415
+ },
416
+ {
417
+ "constant": true,
418
+ "inputs": [],
419
+ "name": "stakingToken",
420
+ "outputs": [
421
+ {
422
+ "internalType": "contract IERC20",
423
+ "name": "",
424
+ "type": "address"
425
+ }
426
+ ],
427
+ "payable": false,
428
+ "stateMutability": "view",
429
+ "type": "function"
430
+ },
431
+ {
432
+ "constant": true,
433
+ "inputs": [],
434
+ "name": "totalSupply",
435
+ "outputs": [
436
+ {
437
+ "internalType": "uint256",
438
+ "name": "",
439
+ "type": "uint256"
440
+ }
441
+ ],
442
+ "payable": false,
443
+ "stateMutability": "view",
444
+ "type": "function"
445
+ },
446
+ {
447
+ "constant": true,
448
+ "inputs": [
449
+ {
450
+ "internalType": "address",
451
+ "name": "",
452
+ "type": "address"
453
+ }
454
+ ],
455
+ "name": "userRewardPerTokenPaid",
456
+ "outputs": [
457
+ {
458
+ "internalType": "uint256",
459
+ "name": "",
460
+ "type": "uint256"
461
+ }
462
+ ],
463
+ "payable": false,
464
+ "stateMutability": "view",
465
+ "type": "function"
466
+ },
467
+ {
468
+ "constant": false,
469
+ "inputs": [
470
+ {
471
+ "internalType": "uint256",
472
+ "name": "_amount",
473
+ "type": "uint256"
474
+ }
475
+ ],
476
+ "name": "withdraw",
477
+ "outputs": [],
478
+ "payable": false,
479
+ "stateMutability": "nonpayable",
480
+ "type": "function"
481
+ }
482
+ ]