@sonarwatch/portfolio-plugins 0.12.122 → 0.12.124
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/plugins/kamino/constants.js +1 -1
- package/src/plugins/quarry/constants.d.ts +10 -0
- package/src/plugins/quarry/constants.js +24 -0
- package/src/plugins/quarry/constants.js.map +1 -0
- package/src/plugins/quarry/helpers.d.ts +17 -0
- package/src/plugins/quarry/helpers.js +63 -0
- package/src/plugins/quarry/helpers.js.map +1 -0
- package/src/plugins/quarry/index.d.ts +6 -0
- package/src/plugins/quarry/index.js +13 -0
- package/src/plugins/quarry/index.js.map +1 -0
- package/src/plugins/quarry/mineIdl.d.ts +125 -0
- package/src/plugins/quarry/mineIdl.js +1333 -0
- package/src/plugins/quarry/mineIdl.js.map +1 -0
- package/src/plugins/quarry/positionsFetcher.d.ts +3 -0
- package/src/plugins/quarry/positionsFetcher.js +110 -0
- package/src/plugins/quarry/positionsFetcher.js.map +1 -0
- package/src/plugins/quarry/rewardersJob.d.ts +3 -0
- package/src/plugins/quarry/rewardersJob.js +42 -0
- package/src/plugins/quarry/rewardersJob.js.map +1 -0
- package/src/plugins/quarry/types.d.ts +54 -0
- package/src/plugins/quarry/types.js +3 -0
- package/src/plugins/quarry/types.js.map +1 -0
@@ -0,0 +1,1333 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.mineIdl = void 0;
|
4
|
+
exports.mineIdl = {
|
5
|
+
version: '5.0.2',
|
6
|
+
name: 'quarry_mine',
|
7
|
+
instructions: [
|
8
|
+
{
|
9
|
+
name: 'newRewarder',
|
10
|
+
accounts: [
|
11
|
+
{
|
12
|
+
name: 'base',
|
13
|
+
isMut: !1,
|
14
|
+
isSigner: !0,
|
15
|
+
},
|
16
|
+
{
|
17
|
+
name: 'rewarder',
|
18
|
+
isMut: !0,
|
19
|
+
isSigner: !1,
|
20
|
+
pda: {
|
21
|
+
seeds: [
|
22
|
+
{
|
23
|
+
kind: 'const',
|
24
|
+
type: 'string',
|
25
|
+
value: 'Rewarder',
|
26
|
+
},
|
27
|
+
{
|
28
|
+
kind: 'account',
|
29
|
+
type: 'publicKey',
|
30
|
+
path: 'base',
|
31
|
+
},
|
32
|
+
],
|
33
|
+
},
|
34
|
+
},
|
35
|
+
{
|
36
|
+
name: 'initialAuthority',
|
37
|
+
isMut: !1,
|
38
|
+
isSigner: !1,
|
39
|
+
},
|
40
|
+
{
|
41
|
+
name: 'payer',
|
42
|
+
isMut: !0,
|
43
|
+
isSigner: !0,
|
44
|
+
},
|
45
|
+
{
|
46
|
+
name: 'systemProgram',
|
47
|
+
isMut: !1,
|
48
|
+
isSigner: !1,
|
49
|
+
},
|
50
|
+
{
|
51
|
+
name: 'unusedAccount',
|
52
|
+
isMut: !1,
|
53
|
+
isSigner: !1,
|
54
|
+
},
|
55
|
+
{
|
56
|
+
name: 'mintWrapper',
|
57
|
+
isMut: !1,
|
58
|
+
isSigner: !1,
|
59
|
+
},
|
60
|
+
{
|
61
|
+
name: 'rewardsTokenMint',
|
62
|
+
isMut: !1,
|
63
|
+
isSigner: !1,
|
64
|
+
},
|
65
|
+
{
|
66
|
+
name: 'claimFeeTokenAccount',
|
67
|
+
isMut: !1,
|
68
|
+
isSigner: !1,
|
69
|
+
},
|
70
|
+
],
|
71
|
+
args: [
|
72
|
+
{
|
73
|
+
name: 'bump',
|
74
|
+
type: 'u8',
|
75
|
+
},
|
76
|
+
],
|
77
|
+
},
|
78
|
+
{
|
79
|
+
name: 'newRewarderV2',
|
80
|
+
accounts: [
|
81
|
+
{
|
82
|
+
name: 'base',
|
83
|
+
isMut: !1,
|
84
|
+
isSigner: !0,
|
85
|
+
},
|
86
|
+
{
|
87
|
+
name: 'rewarder',
|
88
|
+
isMut: !0,
|
89
|
+
isSigner: !1,
|
90
|
+
pda: {
|
91
|
+
seeds: [
|
92
|
+
{
|
93
|
+
kind: 'const',
|
94
|
+
type: 'string',
|
95
|
+
value: 'Rewarder',
|
96
|
+
},
|
97
|
+
{
|
98
|
+
kind: 'account',
|
99
|
+
type: 'publicKey',
|
100
|
+
path: 'base',
|
101
|
+
},
|
102
|
+
],
|
103
|
+
},
|
104
|
+
},
|
105
|
+
{
|
106
|
+
name: 'initialAuthority',
|
107
|
+
isMut: !1,
|
108
|
+
isSigner: !1,
|
109
|
+
},
|
110
|
+
{
|
111
|
+
name: 'payer',
|
112
|
+
isMut: !0,
|
113
|
+
isSigner: !0,
|
114
|
+
},
|
115
|
+
{
|
116
|
+
name: 'systemProgram',
|
117
|
+
isMut: !1,
|
118
|
+
isSigner: !1,
|
119
|
+
},
|
120
|
+
{
|
121
|
+
name: 'mintWrapper',
|
122
|
+
isMut: !1,
|
123
|
+
isSigner: !1,
|
124
|
+
},
|
125
|
+
{
|
126
|
+
name: 'rewardsTokenMint',
|
127
|
+
isMut: !1,
|
128
|
+
isSigner: !1,
|
129
|
+
},
|
130
|
+
{
|
131
|
+
name: 'claimFeeTokenAccount',
|
132
|
+
isMut: !1,
|
133
|
+
isSigner: !1,
|
134
|
+
},
|
135
|
+
],
|
136
|
+
args: [],
|
137
|
+
},
|
138
|
+
{
|
139
|
+
name: 'setPauseAuthority',
|
140
|
+
accounts: [
|
141
|
+
{
|
142
|
+
name: 'auth',
|
143
|
+
accounts: [
|
144
|
+
{
|
145
|
+
name: 'authority',
|
146
|
+
isMut: !1,
|
147
|
+
isSigner: !0,
|
148
|
+
},
|
149
|
+
{
|
150
|
+
name: 'rewarder',
|
151
|
+
isMut: !0,
|
152
|
+
isSigner: !1,
|
153
|
+
},
|
154
|
+
],
|
155
|
+
},
|
156
|
+
{
|
157
|
+
name: 'newPauseAuthority',
|
158
|
+
isMut: !1,
|
159
|
+
isSigner: !1,
|
160
|
+
},
|
161
|
+
],
|
162
|
+
args: [],
|
163
|
+
},
|
164
|
+
{
|
165
|
+
name: 'pause',
|
166
|
+
accounts: [
|
167
|
+
{
|
168
|
+
name: 'pauseAuthority',
|
169
|
+
isMut: !1,
|
170
|
+
isSigner: !0,
|
171
|
+
},
|
172
|
+
{
|
173
|
+
name: 'rewarder',
|
174
|
+
isMut: !0,
|
175
|
+
isSigner: !1,
|
176
|
+
},
|
177
|
+
],
|
178
|
+
args: [],
|
179
|
+
},
|
180
|
+
{
|
181
|
+
name: 'unpause',
|
182
|
+
accounts: [
|
183
|
+
{
|
184
|
+
name: 'pauseAuthority',
|
185
|
+
isMut: !1,
|
186
|
+
isSigner: !0,
|
187
|
+
},
|
188
|
+
{
|
189
|
+
name: 'rewarder',
|
190
|
+
isMut: !0,
|
191
|
+
isSigner: !1,
|
192
|
+
},
|
193
|
+
],
|
194
|
+
args: [],
|
195
|
+
},
|
196
|
+
{
|
197
|
+
name: 'transferAuthority',
|
198
|
+
accounts: [
|
199
|
+
{
|
200
|
+
name: 'authority',
|
201
|
+
isMut: !1,
|
202
|
+
isSigner: !0,
|
203
|
+
},
|
204
|
+
{
|
205
|
+
name: 'rewarder',
|
206
|
+
isMut: !0,
|
207
|
+
isSigner: !1,
|
208
|
+
},
|
209
|
+
],
|
210
|
+
args: [
|
211
|
+
{
|
212
|
+
name: 'newAuthority',
|
213
|
+
type: 'publicKey',
|
214
|
+
},
|
215
|
+
],
|
216
|
+
},
|
217
|
+
{
|
218
|
+
name: 'acceptAuthority',
|
219
|
+
accounts: [
|
220
|
+
{
|
221
|
+
name: 'authority',
|
222
|
+
isMut: !1,
|
223
|
+
isSigner: !0,
|
224
|
+
},
|
225
|
+
{
|
226
|
+
name: 'rewarder',
|
227
|
+
isMut: !0,
|
228
|
+
isSigner: !1,
|
229
|
+
},
|
230
|
+
],
|
231
|
+
args: [],
|
232
|
+
},
|
233
|
+
{
|
234
|
+
name: 'setAnnualRewards',
|
235
|
+
accounts: [
|
236
|
+
{
|
237
|
+
name: 'auth',
|
238
|
+
accounts: [
|
239
|
+
{
|
240
|
+
name: 'authority',
|
241
|
+
isMut: !1,
|
242
|
+
isSigner: !0,
|
243
|
+
},
|
244
|
+
{
|
245
|
+
name: 'rewarder',
|
246
|
+
isMut: !0,
|
247
|
+
isSigner: !1,
|
248
|
+
},
|
249
|
+
],
|
250
|
+
},
|
251
|
+
],
|
252
|
+
args: [
|
253
|
+
{
|
254
|
+
name: 'newRate',
|
255
|
+
type: 'u64',
|
256
|
+
},
|
257
|
+
],
|
258
|
+
},
|
259
|
+
{
|
260
|
+
name: 'createQuarry',
|
261
|
+
accounts: [
|
262
|
+
{
|
263
|
+
name: 'quarry',
|
264
|
+
isMut: !0,
|
265
|
+
isSigner: !1,
|
266
|
+
pda: {
|
267
|
+
seeds: [
|
268
|
+
{
|
269
|
+
kind: 'const',
|
270
|
+
type: 'string',
|
271
|
+
value: 'Quarry',
|
272
|
+
},
|
273
|
+
{
|
274
|
+
kind: 'account',
|
275
|
+
type: {
|
276
|
+
defined: "Account<'info,Rewarder>",
|
277
|
+
},
|
278
|
+
account: 'MutableRewarderWithAuthority',
|
279
|
+
path: 'auth.rewarder',
|
280
|
+
},
|
281
|
+
{
|
282
|
+
kind: 'account',
|
283
|
+
type: 'publicKey',
|
284
|
+
account: 'Mint',
|
285
|
+
path: 'token_mint',
|
286
|
+
},
|
287
|
+
],
|
288
|
+
},
|
289
|
+
},
|
290
|
+
{
|
291
|
+
name: 'auth',
|
292
|
+
accounts: [
|
293
|
+
{
|
294
|
+
name: 'authority',
|
295
|
+
isMut: !1,
|
296
|
+
isSigner: !0,
|
297
|
+
},
|
298
|
+
{
|
299
|
+
name: 'rewarder',
|
300
|
+
isMut: !0,
|
301
|
+
isSigner: !1,
|
302
|
+
},
|
303
|
+
],
|
304
|
+
},
|
305
|
+
{
|
306
|
+
name: 'tokenMint',
|
307
|
+
isMut: !1,
|
308
|
+
isSigner: !1,
|
309
|
+
},
|
310
|
+
{
|
311
|
+
name: 'payer',
|
312
|
+
isMut: !0,
|
313
|
+
isSigner: !0,
|
314
|
+
},
|
315
|
+
{
|
316
|
+
name: 'unusedAccount',
|
317
|
+
isMut: !1,
|
318
|
+
isSigner: !1,
|
319
|
+
},
|
320
|
+
{
|
321
|
+
name: 'systemProgram',
|
322
|
+
isMut: !1,
|
323
|
+
isSigner: !1,
|
324
|
+
},
|
325
|
+
],
|
326
|
+
args: [
|
327
|
+
{
|
328
|
+
name: 'bump',
|
329
|
+
type: 'u8',
|
330
|
+
},
|
331
|
+
],
|
332
|
+
},
|
333
|
+
{
|
334
|
+
name: 'createQuarryV2',
|
335
|
+
accounts: [
|
336
|
+
{
|
337
|
+
name: 'quarry',
|
338
|
+
isMut: !0,
|
339
|
+
isSigner: !1,
|
340
|
+
pda: {
|
341
|
+
seeds: [
|
342
|
+
{
|
343
|
+
kind: 'const',
|
344
|
+
type: 'string',
|
345
|
+
value: 'Quarry',
|
346
|
+
},
|
347
|
+
{
|
348
|
+
kind: 'account',
|
349
|
+
type: {
|
350
|
+
defined: "Account<'info,Rewarder>",
|
351
|
+
},
|
352
|
+
account: 'MutableRewarderWithAuthority',
|
353
|
+
path: 'auth.rewarder',
|
354
|
+
},
|
355
|
+
{
|
356
|
+
kind: 'account',
|
357
|
+
type: 'publicKey',
|
358
|
+
account: 'Mint',
|
359
|
+
path: 'token_mint',
|
360
|
+
},
|
361
|
+
],
|
362
|
+
},
|
363
|
+
},
|
364
|
+
{
|
365
|
+
name: 'auth',
|
366
|
+
accounts: [
|
367
|
+
{
|
368
|
+
name: 'authority',
|
369
|
+
isMut: !1,
|
370
|
+
isSigner: !0,
|
371
|
+
},
|
372
|
+
{
|
373
|
+
name: 'rewarder',
|
374
|
+
isMut: !0,
|
375
|
+
isSigner: !1,
|
376
|
+
},
|
377
|
+
],
|
378
|
+
},
|
379
|
+
{
|
380
|
+
name: 'tokenMint',
|
381
|
+
isMut: !1,
|
382
|
+
isSigner: !1,
|
383
|
+
},
|
384
|
+
{
|
385
|
+
name: 'payer',
|
386
|
+
isMut: !0,
|
387
|
+
isSigner: !0,
|
388
|
+
},
|
389
|
+
{
|
390
|
+
name: 'systemProgram',
|
391
|
+
isMut: !1,
|
392
|
+
isSigner: !1,
|
393
|
+
},
|
394
|
+
],
|
395
|
+
args: [],
|
396
|
+
},
|
397
|
+
{
|
398
|
+
name: 'setRewardsShare',
|
399
|
+
accounts: [
|
400
|
+
{
|
401
|
+
name: 'auth',
|
402
|
+
accounts: [
|
403
|
+
{
|
404
|
+
name: 'authority',
|
405
|
+
isMut: !1,
|
406
|
+
isSigner: !0,
|
407
|
+
},
|
408
|
+
{
|
409
|
+
name: 'rewarder',
|
410
|
+
isMut: !0,
|
411
|
+
isSigner: !1,
|
412
|
+
},
|
413
|
+
],
|
414
|
+
},
|
415
|
+
{
|
416
|
+
name: 'quarry',
|
417
|
+
isMut: !0,
|
418
|
+
isSigner: !1,
|
419
|
+
},
|
420
|
+
],
|
421
|
+
args: [
|
422
|
+
{
|
423
|
+
name: 'newShare',
|
424
|
+
type: 'u64',
|
425
|
+
},
|
426
|
+
],
|
427
|
+
},
|
428
|
+
{
|
429
|
+
name: 'setFamine',
|
430
|
+
accounts: [
|
431
|
+
{
|
432
|
+
name: 'auth',
|
433
|
+
accounts: [
|
434
|
+
{
|
435
|
+
name: 'authority',
|
436
|
+
isMut: !1,
|
437
|
+
isSigner: !0,
|
438
|
+
},
|
439
|
+
{
|
440
|
+
name: 'rewarder',
|
441
|
+
isMut: !1,
|
442
|
+
isSigner: !1,
|
443
|
+
},
|
444
|
+
],
|
445
|
+
},
|
446
|
+
{
|
447
|
+
name: 'quarry',
|
448
|
+
isMut: !0,
|
449
|
+
isSigner: !1,
|
450
|
+
},
|
451
|
+
],
|
452
|
+
args: [
|
453
|
+
{
|
454
|
+
name: 'famineTs',
|
455
|
+
type: 'i64',
|
456
|
+
},
|
457
|
+
],
|
458
|
+
},
|
459
|
+
{
|
460
|
+
name: 'updateQuarryRewards',
|
461
|
+
accounts: [
|
462
|
+
{
|
463
|
+
name: 'quarry',
|
464
|
+
isMut: !0,
|
465
|
+
isSigner: !1,
|
466
|
+
},
|
467
|
+
{
|
468
|
+
name: 'rewarder',
|
469
|
+
isMut: !1,
|
470
|
+
isSigner: !1,
|
471
|
+
},
|
472
|
+
],
|
473
|
+
args: [],
|
474
|
+
},
|
475
|
+
{
|
476
|
+
name: 'createMiner',
|
477
|
+
accounts: [
|
478
|
+
{
|
479
|
+
name: 'authority',
|
480
|
+
isMut: !1,
|
481
|
+
isSigner: !0,
|
482
|
+
},
|
483
|
+
{
|
484
|
+
name: 'miner',
|
485
|
+
isMut: !0,
|
486
|
+
isSigner: !1,
|
487
|
+
pda: {
|
488
|
+
seeds: [
|
489
|
+
{
|
490
|
+
kind: 'const',
|
491
|
+
type: 'string',
|
492
|
+
value: 'Miner',
|
493
|
+
},
|
494
|
+
{
|
495
|
+
kind: 'account',
|
496
|
+
type: 'publicKey',
|
497
|
+
account: 'Quarry',
|
498
|
+
path: 'quarry',
|
499
|
+
},
|
500
|
+
{
|
501
|
+
kind: 'account',
|
502
|
+
type: 'publicKey',
|
503
|
+
path: 'authority',
|
504
|
+
},
|
505
|
+
],
|
506
|
+
},
|
507
|
+
},
|
508
|
+
{
|
509
|
+
name: 'quarry',
|
510
|
+
isMut: !0,
|
511
|
+
isSigner: !1,
|
512
|
+
},
|
513
|
+
{
|
514
|
+
name: 'rewarder',
|
515
|
+
isMut: !1,
|
516
|
+
isSigner: !1,
|
517
|
+
},
|
518
|
+
{
|
519
|
+
name: 'systemProgram',
|
520
|
+
isMut: !1,
|
521
|
+
isSigner: !1,
|
522
|
+
},
|
523
|
+
{
|
524
|
+
name: 'payer',
|
525
|
+
isMut: !0,
|
526
|
+
isSigner: !0,
|
527
|
+
},
|
528
|
+
{
|
529
|
+
name: 'tokenMint',
|
530
|
+
isMut: !1,
|
531
|
+
isSigner: !1,
|
532
|
+
},
|
533
|
+
{
|
534
|
+
name: 'minerVault',
|
535
|
+
isMut: !1,
|
536
|
+
isSigner: !1,
|
537
|
+
},
|
538
|
+
{
|
539
|
+
name: 'tokenProgram',
|
540
|
+
isMut: !1,
|
541
|
+
isSigner: !1,
|
542
|
+
},
|
543
|
+
],
|
544
|
+
args: [
|
545
|
+
{
|
546
|
+
name: 'bump',
|
547
|
+
type: 'u8',
|
548
|
+
},
|
549
|
+
],
|
550
|
+
},
|
551
|
+
{
|
552
|
+
name: 'createMinerV2',
|
553
|
+
accounts: [
|
554
|
+
{
|
555
|
+
name: 'authority',
|
556
|
+
isMut: !1,
|
557
|
+
isSigner: !0,
|
558
|
+
},
|
559
|
+
{
|
560
|
+
name: 'miner',
|
561
|
+
isMut: !0,
|
562
|
+
isSigner: !1,
|
563
|
+
pda: {
|
564
|
+
seeds: [
|
565
|
+
{
|
566
|
+
kind: 'const',
|
567
|
+
type: 'string',
|
568
|
+
value: 'Miner',
|
569
|
+
},
|
570
|
+
{
|
571
|
+
kind: 'account',
|
572
|
+
type: 'publicKey',
|
573
|
+
account: 'Quarry',
|
574
|
+
path: 'quarry',
|
575
|
+
},
|
576
|
+
{
|
577
|
+
kind: 'account',
|
578
|
+
type: 'publicKey',
|
579
|
+
path: 'authority',
|
580
|
+
},
|
581
|
+
],
|
582
|
+
},
|
583
|
+
},
|
584
|
+
{
|
585
|
+
name: 'quarry',
|
586
|
+
isMut: !0,
|
587
|
+
isSigner: !1,
|
588
|
+
},
|
589
|
+
{
|
590
|
+
name: 'rewarder',
|
591
|
+
isMut: !1,
|
592
|
+
isSigner: !1,
|
593
|
+
},
|
594
|
+
{
|
595
|
+
name: 'systemProgram',
|
596
|
+
isMut: !1,
|
597
|
+
isSigner: !1,
|
598
|
+
},
|
599
|
+
{
|
600
|
+
name: 'payer',
|
601
|
+
isMut: !0,
|
602
|
+
isSigner: !0,
|
603
|
+
},
|
604
|
+
{
|
605
|
+
name: 'tokenMint',
|
606
|
+
isMut: !1,
|
607
|
+
isSigner: !1,
|
608
|
+
},
|
609
|
+
{
|
610
|
+
name: 'minerVault',
|
611
|
+
isMut: !1,
|
612
|
+
isSigner: !1,
|
613
|
+
},
|
614
|
+
{
|
615
|
+
name: 'tokenProgram',
|
616
|
+
isMut: !1,
|
617
|
+
isSigner: !1,
|
618
|
+
},
|
619
|
+
],
|
620
|
+
args: [],
|
621
|
+
},
|
622
|
+
{
|
623
|
+
name: 'claimRewards',
|
624
|
+
accounts: [
|
625
|
+
{
|
626
|
+
name: 'mintWrapper',
|
627
|
+
isMut: !0,
|
628
|
+
isSigner: !1,
|
629
|
+
},
|
630
|
+
{
|
631
|
+
name: 'mintWrapperProgram',
|
632
|
+
isMut: !1,
|
633
|
+
isSigner: !1,
|
634
|
+
},
|
635
|
+
{
|
636
|
+
name: 'minter',
|
637
|
+
isMut: !0,
|
638
|
+
isSigner: !1,
|
639
|
+
},
|
640
|
+
{
|
641
|
+
name: 'rewardsTokenMint',
|
642
|
+
isMut: !0,
|
643
|
+
isSigner: !1,
|
644
|
+
},
|
645
|
+
{
|
646
|
+
name: 'rewardsTokenAccount',
|
647
|
+
isMut: !0,
|
648
|
+
isSigner: !1,
|
649
|
+
},
|
650
|
+
{
|
651
|
+
name: 'claimFeeTokenAccount',
|
652
|
+
isMut: !0,
|
653
|
+
isSigner: !1,
|
654
|
+
},
|
655
|
+
{
|
656
|
+
name: 'claim',
|
657
|
+
accounts: [
|
658
|
+
{
|
659
|
+
name: 'authority',
|
660
|
+
isMut: !1,
|
661
|
+
isSigner: !0,
|
662
|
+
},
|
663
|
+
{
|
664
|
+
name: 'miner',
|
665
|
+
isMut: !0,
|
666
|
+
isSigner: !1,
|
667
|
+
},
|
668
|
+
{
|
669
|
+
name: 'quarry',
|
670
|
+
isMut: !0,
|
671
|
+
isSigner: !1,
|
672
|
+
},
|
673
|
+
{
|
674
|
+
name: 'unusedMinerVault',
|
675
|
+
isMut: !1,
|
676
|
+
isSigner: !1,
|
677
|
+
},
|
678
|
+
{
|
679
|
+
name: 'unusedTokenAccount',
|
680
|
+
isMut: !1,
|
681
|
+
isSigner: !1,
|
682
|
+
},
|
683
|
+
{
|
684
|
+
name: 'tokenProgram',
|
685
|
+
isMut: !1,
|
686
|
+
isSigner: !1,
|
687
|
+
},
|
688
|
+
{
|
689
|
+
name: 'rewarder',
|
690
|
+
isMut: !1,
|
691
|
+
isSigner: !1,
|
692
|
+
},
|
693
|
+
],
|
694
|
+
},
|
695
|
+
],
|
696
|
+
args: [],
|
697
|
+
},
|
698
|
+
{
|
699
|
+
name: 'claimRewardsV2',
|
700
|
+
accounts: [
|
701
|
+
{
|
702
|
+
name: 'mintWrapper',
|
703
|
+
isMut: !0,
|
704
|
+
isSigner: !1,
|
705
|
+
},
|
706
|
+
{
|
707
|
+
name: 'mintWrapperProgram',
|
708
|
+
isMut: !1,
|
709
|
+
isSigner: !1,
|
710
|
+
},
|
711
|
+
{
|
712
|
+
name: 'minter',
|
713
|
+
isMut: !0,
|
714
|
+
isSigner: !1,
|
715
|
+
},
|
716
|
+
{
|
717
|
+
name: 'rewardsTokenMint',
|
718
|
+
isMut: !0,
|
719
|
+
isSigner: !1,
|
720
|
+
},
|
721
|
+
{
|
722
|
+
name: 'rewardsTokenAccount',
|
723
|
+
isMut: !0,
|
724
|
+
isSigner: !1,
|
725
|
+
},
|
726
|
+
{
|
727
|
+
name: 'claimFeeTokenAccount',
|
728
|
+
isMut: !0,
|
729
|
+
isSigner: !1,
|
730
|
+
},
|
731
|
+
{
|
732
|
+
name: 'claim',
|
733
|
+
accounts: [
|
734
|
+
{
|
735
|
+
name: 'authority',
|
736
|
+
isMut: !1,
|
737
|
+
isSigner: !0,
|
738
|
+
},
|
739
|
+
{
|
740
|
+
name: 'miner',
|
741
|
+
isMut: !0,
|
742
|
+
isSigner: !1,
|
743
|
+
},
|
744
|
+
{
|
745
|
+
name: 'quarry',
|
746
|
+
isMut: !0,
|
747
|
+
isSigner: !1,
|
748
|
+
},
|
749
|
+
{
|
750
|
+
name: 'tokenProgram',
|
751
|
+
isMut: !1,
|
752
|
+
isSigner: !1,
|
753
|
+
},
|
754
|
+
{
|
755
|
+
name: 'rewarder',
|
756
|
+
isMut: !1,
|
757
|
+
isSigner: !1,
|
758
|
+
},
|
759
|
+
],
|
760
|
+
},
|
761
|
+
],
|
762
|
+
args: [],
|
763
|
+
},
|
764
|
+
{
|
765
|
+
name: 'stakeTokens',
|
766
|
+
accounts: [
|
767
|
+
{
|
768
|
+
name: 'authority',
|
769
|
+
isMut: !1,
|
770
|
+
isSigner: !0,
|
771
|
+
},
|
772
|
+
{
|
773
|
+
name: 'miner',
|
774
|
+
isMut: !0,
|
775
|
+
isSigner: !1,
|
776
|
+
},
|
777
|
+
{
|
778
|
+
name: 'quarry',
|
779
|
+
isMut: !0,
|
780
|
+
isSigner: !1,
|
781
|
+
},
|
782
|
+
{
|
783
|
+
name: 'minerVault',
|
784
|
+
isMut: !0,
|
785
|
+
isSigner: !1,
|
786
|
+
},
|
787
|
+
{
|
788
|
+
name: 'tokenAccount',
|
789
|
+
isMut: !0,
|
790
|
+
isSigner: !1,
|
791
|
+
},
|
792
|
+
{
|
793
|
+
name: 'tokenProgram',
|
794
|
+
isMut: !1,
|
795
|
+
isSigner: !1,
|
796
|
+
},
|
797
|
+
{
|
798
|
+
name: 'rewarder',
|
799
|
+
isMut: !1,
|
800
|
+
isSigner: !1,
|
801
|
+
},
|
802
|
+
],
|
803
|
+
args: [
|
804
|
+
{
|
805
|
+
name: 'amount',
|
806
|
+
type: 'u64',
|
807
|
+
},
|
808
|
+
],
|
809
|
+
},
|
810
|
+
{
|
811
|
+
name: 'withdrawTokens',
|
812
|
+
accounts: [
|
813
|
+
{
|
814
|
+
name: 'authority',
|
815
|
+
isMut: !1,
|
816
|
+
isSigner: !0,
|
817
|
+
},
|
818
|
+
{
|
819
|
+
name: 'miner',
|
820
|
+
isMut: !0,
|
821
|
+
isSigner: !1,
|
822
|
+
},
|
823
|
+
{
|
824
|
+
name: 'quarry',
|
825
|
+
isMut: !0,
|
826
|
+
isSigner: !1,
|
827
|
+
},
|
828
|
+
{
|
829
|
+
name: 'minerVault',
|
830
|
+
isMut: !0,
|
831
|
+
isSigner: !1,
|
832
|
+
},
|
833
|
+
{
|
834
|
+
name: 'tokenAccount',
|
835
|
+
isMut: !0,
|
836
|
+
isSigner: !1,
|
837
|
+
},
|
838
|
+
{
|
839
|
+
name: 'tokenProgram',
|
840
|
+
isMut: !1,
|
841
|
+
isSigner: !1,
|
842
|
+
},
|
843
|
+
{
|
844
|
+
name: 'rewarder',
|
845
|
+
isMut: !1,
|
846
|
+
isSigner: !1,
|
847
|
+
},
|
848
|
+
],
|
849
|
+
args: [
|
850
|
+
{
|
851
|
+
name: 'amount',
|
852
|
+
type: 'u64',
|
853
|
+
},
|
854
|
+
],
|
855
|
+
},
|
856
|
+
{
|
857
|
+
name: 'rescueTokens',
|
858
|
+
accounts: [
|
859
|
+
{
|
860
|
+
name: 'miner',
|
861
|
+
isMut: !1,
|
862
|
+
isSigner: !1,
|
863
|
+
},
|
864
|
+
{
|
865
|
+
name: 'authority',
|
866
|
+
isMut: !1,
|
867
|
+
isSigner: !0,
|
868
|
+
},
|
869
|
+
{
|
870
|
+
name: 'minerTokenAccount',
|
871
|
+
isMut: !0,
|
872
|
+
isSigner: !1,
|
873
|
+
},
|
874
|
+
{
|
875
|
+
name: 'destinationTokenAccount',
|
876
|
+
isMut: !0,
|
877
|
+
isSigner: !1,
|
878
|
+
},
|
879
|
+
{
|
880
|
+
name: 'tokenProgram',
|
881
|
+
isMut: !1,
|
882
|
+
isSigner: !1,
|
883
|
+
},
|
884
|
+
],
|
885
|
+
args: [],
|
886
|
+
},
|
887
|
+
{
|
888
|
+
name: 'extractFees',
|
889
|
+
accounts: [
|
890
|
+
{
|
891
|
+
name: 'rewarder',
|
892
|
+
isMut: !1,
|
893
|
+
isSigner: !1,
|
894
|
+
},
|
895
|
+
{
|
896
|
+
name: 'claimFeeTokenAccount',
|
897
|
+
isMut: !0,
|
898
|
+
isSigner: !1,
|
899
|
+
},
|
900
|
+
{
|
901
|
+
name: 'feeToTokenAccount',
|
902
|
+
isMut: !0,
|
903
|
+
isSigner: !1,
|
904
|
+
},
|
905
|
+
{
|
906
|
+
name: 'tokenProgram',
|
907
|
+
isMut: !1,
|
908
|
+
isSigner: !1,
|
909
|
+
},
|
910
|
+
],
|
911
|
+
args: [],
|
912
|
+
},
|
913
|
+
],
|
914
|
+
accounts: [
|
915
|
+
{
|
916
|
+
name: 'Rewarder',
|
917
|
+
type: {
|
918
|
+
kind: 'struct',
|
919
|
+
fields: [
|
920
|
+
{
|
921
|
+
name: 'base',
|
922
|
+
type: 'publicKey',
|
923
|
+
},
|
924
|
+
{
|
925
|
+
name: 'bump',
|
926
|
+
type: 'u8',
|
927
|
+
},
|
928
|
+
{
|
929
|
+
name: 'authority',
|
930
|
+
type: 'publicKey',
|
931
|
+
},
|
932
|
+
{
|
933
|
+
name: 'pendingAuthority',
|
934
|
+
type: 'publicKey',
|
935
|
+
},
|
936
|
+
{
|
937
|
+
name: 'numQuarries',
|
938
|
+
type: 'u16',
|
939
|
+
},
|
940
|
+
{
|
941
|
+
name: 'annualRewardsRate',
|
942
|
+
type: 'u64',
|
943
|
+
},
|
944
|
+
{
|
945
|
+
name: 'totalRewardsShares',
|
946
|
+
type: 'u64',
|
947
|
+
},
|
948
|
+
{
|
949
|
+
name: 'mintWrapper',
|
950
|
+
type: 'publicKey',
|
951
|
+
},
|
952
|
+
{
|
953
|
+
name: 'rewardsTokenMint',
|
954
|
+
type: 'publicKey',
|
955
|
+
},
|
956
|
+
{
|
957
|
+
name: 'claimFeeTokenAccount',
|
958
|
+
type: 'publicKey',
|
959
|
+
},
|
960
|
+
{
|
961
|
+
name: 'maxClaimFeeMillibps',
|
962
|
+
type: 'u64',
|
963
|
+
},
|
964
|
+
{
|
965
|
+
name: 'pauseAuthority',
|
966
|
+
type: 'publicKey',
|
967
|
+
},
|
968
|
+
{
|
969
|
+
name: 'isPaused',
|
970
|
+
type: 'bool',
|
971
|
+
},
|
972
|
+
],
|
973
|
+
},
|
974
|
+
},
|
975
|
+
{
|
976
|
+
name: 'Quarry',
|
977
|
+
type: {
|
978
|
+
kind: 'struct',
|
979
|
+
fields: [
|
980
|
+
{
|
981
|
+
name: 'rewarder',
|
982
|
+
type: 'publicKey',
|
983
|
+
},
|
984
|
+
{
|
985
|
+
name: 'tokenMintKey',
|
986
|
+
type: 'publicKey',
|
987
|
+
},
|
988
|
+
{
|
989
|
+
name: 'bump',
|
990
|
+
type: 'u8',
|
991
|
+
},
|
992
|
+
{
|
993
|
+
name: 'index',
|
994
|
+
type: 'u16',
|
995
|
+
},
|
996
|
+
{
|
997
|
+
name: 'tokenMintDecimals',
|
998
|
+
type: 'u8',
|
999
|
+
},
|
1000
|
+
{
|
1001
|
+
name: 'famineTs',
|
1002
|
+
type: 'i64',
|
1003
|
+
},
|
1004
|
+
{
|
1005
|
+
name: 'lastUpdateTs',
|
1006
|
+
type: 'i64',
|
1007
|
+
},
|
1008
|
+
{
|
1009
|
+
name: 'rewardsPerTokenStored',
|
1010
|
+
type: 'u128',
|
1011
|
+
},
|
1012
|
+
{
|
1013
|
+
name: 'annualRewardsRate',
|
1014
|
+
type: 'u64',
|
1015
|
+
},
|
1016
|
+
{
|
1017
|
+
name: 'rewardsShare',
|
1018
|
+
type: 'u64',
|
1019
|
+
},
|
1020
|
+
{
|
1021
|
+
name: 'totalTokensDeposited',
|
1022
|
+
type: 'u64',
|
1023
|
+
},
|
1024
|
+
{
|
1025
|
+
name: 'numMiners',
|
1026
|
+
type: 'u64',
|
1027
|
+
},
|
1028
|
+
],
|
1029
|
+
},
|
1030
|
+
},
|
1031
|
+
{
|
1032
|
+
name: 'Miner',
|
1033
|
+
type: {
|
1034
|
+
kind: 'struct',
|
1035
|
+
fields: [
|
1036
|
+
{
|
1037
|
+
name: 'quarry',
|
1038
|
+
type: 'publicKey',
|
1039
|
+
},
|
1040
|
+
{
|
1041
|
+
name: 'authority',
|
1042
|
+
type: 'publicKey',
|
1043
|
+
},
|
1044
|
+
{
|
1045
|
+
name: 'bump',
|
1046
|
+
type: 'u8',
|
1047
|
+
},
|
1048
|
+
{
|
1049
|
+
name: 'tokenVaultKey',
|
1050
|
+
type: 'publicKey',
|
1051
|
+
},
|
1052
|
+
{
|
1053
|
+
name: 'rewardsEarned',
|
1054
|
+
type: 'u64',
|
1055
|
+
},
|
1056
|
+
{
|
1057
|
+
name: 'rewardsPerTokenPaid',
|
1058
|
+
type: 'u128',
|
1059
|
+
},
|
1060
|
+
{
|
1061
|
+
name: 'balance',
|
1062
|
+
type: 'u64',
|
1063
|
+
},
|
1064
|
+
{
|
1065
|
+
name: 'index',
|
1066
|
+
type: 'u64',
|
1067
|
+
},
|
1068
|
+
],
|
1069
|
+
},
|
1070
|
+
},
|
1071
|
+
],
|
1072
|
+
types: [
|
1073
|
+
{
|
1074
|
+
name: 'StakeAction',
|
1075
|
+
type: {
|
1076
|
+
kind: 'enum',
|
1077
|
+
variants: [
|
1078
|
+
{
|
1079
|
+
name: 'Stake',
|
1080
|
+
},
|
1081
|
+
{
|
1082
|
+
name: 'Withdraw',
|
1083
|
+
},
|
1084
|
+
],
|
1085
|
+
},
|
1086
|
+
},
|
1087
|
+
],
|
1088
|
+
events: [
|
1089
|
+
{
|
1090
|
+
name: 'MinerCreateEvent',
|
1091
|
+
fields: [
|
1092
|
+
{
|
1093
|
+
name: 'authority',
|
1094
|
+
type: 'publicKey',
|
1095
|
+
index: !1,
|
1096
|
+
},
|
1097
|
+
{
|
1098
|
+
name: 'quarry',
|
1099
|
+
type: 'publicKey',
|
1100
|
+
index: !1,
|
1101
|
+
},
|
1102
|
+
{
|
1103
|
+
name: 'miner',
|
1104
|
+
type: 'publicKey',
|
1105
|
+
index: !1,
|
1106
|
+
},
|
1107
|
+
],
|
1108
|
+
},
|
1109
|
+
{
|
1110
|
+
name: 'NewRewarderEvent',
|
1111
|
+
fields: [
|
1112
|
+
{
|
1113
|
+
name: 'authority',
|
1114
|
+
type: 'publicKey',
|
1115
|
+
index: !1,
|
1116
|
+
},
|
1117
|
+
{
|
1118
|
+
name: 'timestamp',
|
1119
|
+
type: 'i64',
|
1120
|
+
index: !1,
|
1121
|
+
},
|
1122
|
+
],
|
1123
|
+
},
|
1124
|
+
{
|
1125
|
+
name: 'ClaimEvent',
|
1126
|
+
fields: [
|
1127
|
+
{
|
1128
|
+
name: 'authority',
|
1129
|
+
type: 'publicKey',
|
1130
|
+
index: !1,
|
1131
|
+
},
|
1132
|
+
{
|
1133
|
+
name: 'stakedToken',
|
1134
|
+
type: 'publicKey',
|
1135
|
+
index: !1,
|
1136
|
+
},
|
1137
|
+
{
|
1138
|
+
name: 'rewardsToken',
|
1139
|
+
type: 'publicKey',
|
1140
|
+
index: !1,
|
1141
|
+
},
|
1142
|
+
{
|
1143
|
+
name: 'amount',
|
1144
|
+
type: 'u64',
|
1145
|
+
index: !1,
|
1146
|
+
},
|
1147
|
+
{
|
1148
|
+
name: 'fees',
|
1149
|
+
type: 'u64',
|
1150
|
+
index: !1,
|
1151
|
+
},
|
1152
|
+
{
|
1153
|
+
name: 'timestamp',
|
1154
|
+
type: 'i64',
|
1155
|
+
index: !1,
|
1156
|
+
},
|
1157
|
+
],
|
1158
|
+
},
|
1159
|
+
{
|
1160
|
+
name: 'StakeEvent',
|
1161
|
+
fields: [
|
1162
|
+
{
|
1163
|
+
name: 'authority',
|
1164
|
+
type: 'publicKey',
|
1165
|
+
index: !1,
|
1166
|
+
},
|
1167
|
+
{
|
1168
|
+
name: 'token',
|
1169
|
+
type: 'publicKey',
|
1170
|
+
index: !1,
|
1171
|
+
},
|
1172
|
+
{
|
1173
|
+
name: 'amount',
|
1174
|
+
type: 'u64',
|
1175
|
+
index: !1,
|
1176
|
+
},
|
1177
|
+
{
|
1178
|
+
name: 'timestamp',
|
1179
|
+
type: 'i64',
|
1180
|
+
index: !1,
|
1181
|
+
},
|
1182
|
+
],
|
1183
|
+
},
|
1184
|
+
{
|
1185
|
+
name: 'WithdrawEvent',
|
1186
|
+
fields: [
|
1187
|
+
{
|
1188
|
+
name: 'authority',
|
1189
|
+
type: 'publicKey',
|
1190
|
+
index: !1,
|
1191
|
+
},
|
1192
|
+
{
|
1193
|
+
name: 'token',
|
1194
|
+
type: 'publicKey',
|
1195
|
+
index: !1,
|
1196
|
+
},
|
1197
|
+
{
|
1198
|
+
name: 'amount',
|
1199
|
+
type: 'u64',
|
1200
|
+
index: !1,
|
1201
|
+
},
|
1202
|
+
{
|
1203
|
+
name: 'timestamp',
|
1204
|
+
type: 'i64',
|
1205
|
+
index: !1,
|
1206
|
+
},
|
1207
|
+
],
|
1208
|
+
},
|
1209
|
+
{
|
1210
|
+
name: 'RewarderAnnualRewardsUpdateEvent',
|
1211
|
+
fields: [
|
1212
|
+
{
|
1213
|
+
name: 'previousRate',
|
1214
|
+
type: 'u64',
|
1215
|
+
index: !1,
|
1216
|
+
},
|
1217
|
+
{
|
1218
|
+
name: 'newRate',
|
1219
|
+
type: 'u64',
|
1220
|
+
index: !1,
|
1221
|
+
},
|
1222
|
+
{
|
1223
|
+
name: 'timestamp',
|
1224
|
+
type: 'i64',
|
1225
|
+
index: !1,
|
1226
|
+
},
|
1227
|
+
],
|
1228
|
+
},
|
1229
|
+
{
|
1230
|
+
name: 'QuarryCreateEvent',
|
1231
|
+
fields: [
|
1232
|
+
{
|
1233
|
+
name: 'tokenMint',
|
1234
|
+
type: 'publicKey',
|
1235
|
+
index: !1,
|
1236
|
+
},
|
1237
|
+
{
|
1238
|
+
name: 'timestamp',
|
1239
|
+
type: 'i64',
|
1240
|
+
index: !1,
|
1241
|
+
},
|
1242
|
+
],
|
1243
|
+
},
|
1244
|
+
{
|
1245
|
+
name: 'QuarryRewardsUpdateEvent',
|
1246
|
+
fields: [
|
1247
|
+
{
|
1248
|
+
name: 'tokenMint',
|
1249
|
+
type: 'publicKey',
|
1250
|
+
index: !1,
|
1251
|
+
},
|
1252
|
+
{
|
1253
|
+
name: 'annualRewardsRate',
|
1254
|
+
type: 'u64',
|
1255
|
+
index: !1,
|
1256
|
+
},
|
1257
|
+
{
|
1258
|
+
name: 'rewardsShare',
|
1259
|
+
type: 'u64',
|
1260
|
+
index: !1,
|
1261
|
+
},
|
1262
|
+
{
|
1263
|
+
name: 'timestamp',
|
1264
|
+
type: 'i64',
|
1265
|
+
index: !1,
|
1266
|
+
},
|
1267
|
+
],
|
1268
|
+
},
|
1269
|
+
],
|
1270
|
+
errors: [
|
1271
|
+
{
|
1272
|
+
code: 6e3,
|
1273
|
+
name: 'Unauthorized',
|
1274
|
+
msg: 'You are not authorized to perform this action.',
|
1275
|
+
},
|
1276
|
+
{
|
1277
|
+
code: 6001,
|
1278
|
+
name: 'InsufficientBalance',
|
1279
|
+
msg: 'Insufficient staked balance for withdraw request.',
|
1280
|
+
},
|
1281
|
+
{
|
1282
|
+
code: 6002,
|
1283
|
+
name: 'PendingAuthorityNotSet',
|
1284
|
+
msg: 'Pending authority not set',
|
1285
|
+
},
|
1286
|
+
{
|
1287
|
+
code: 6003,
|
1288
|
+
name: 'InvalidRewardsShare',
|
1289
|
+
msg: 'Invalid quarry rewards share',
|
1290
|
+
},
|
1291
|
+
{
|
1292
|
+
code: 6004,
|
1293
|
+
name: 'InsufficientAllowance',
|
1294
|
+
msg: 'Insufficient allowance.',
|
1295
|
+
},
|
1296
|
+
{
|
1297
|
+
code: 6005,
|
1298
|
+
name: 'NewVaultNotEmpty',
|
1299
|
+
msg: 'New vault not empty.',
|
1300
|
+
},
|
1301
|
+
{
|
1302
|
+
code: 6006,
|
1303
|
+
name: 'NotEnoughTokens',
|
1304
|
+
msg: 'Not enough tokens.',
|
1305
|
+
},
|
1306
|
+
{
|
1307
|
+
code: 6007,
|
1308
|
+
name: 'InvalidTimestamp',
|
1309
|
+
msg: 'Invalid timestamp.',
|
1310
|
+
},
|
1311
|
+
{
|
1312
|
+
code: 6008,
|
1313
|
+
name: 'InvalidMaxClaimFee',
|
1314
|
+
msg: 'Invalid max claim fee.',
|
1315
|
+
},
|
1316
|
+
{
|
1317
|
+
code: 6009,
|
1318
|
+
name: 'MaxAnnualRewardsRateExceeded',
|
1319
|
+
msg: 'Max annual rewards rate exceeded.',
|
1320
|
+
},
|
1321
|
+
{
|
1322
|
+
code: 6010,
|
1323
|
+
name: 'Paused',
|
1324
|
+
msg: 'Rewarder is paused.',
|
1325
|
+
},
|
1326
|
+
{
|
1327
|
+
code: 6011,
|
1328
|
+
name: 'UpperboundExceeded',
|
1329
|
+
msg: "Rewards earned exceeded quarry's upper bound.",
|
1330
|
+
},
|
1331
|
+
],
|
1332
|
+
};
|
1333
|
+
//# sourceMappingURL=mineIdl.js.map
|