@curvefi/api 2.2.1 → 2.3.2

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