@sonarwatch/portfolio-plugins 0.12.46 → 0.12.47
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/plugins/jito/helper.d.ts +3 -0
- package/src/plugins/jito/helper.js +21 -0
- package/src/plugins/jito/helper.js.map +1 -0
- package/src/plugins/native-stake/solana/constants.d.ts +1 -1
- package/src/plugins/native-stake/solana/constants.js +2 -2
- package/src/plugins/native-stake/solana/constants.js.map +1 -1
- package/src/plugins/native-stake/solana/solanaFetcher.js +1 -1
- package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
- package/src/plugins/native-stake/solana/solanaValidatorsJob.js +17 -38
- package/src/plugins/native-stake/solana/solanaValidatorsJob.js.map +1 -1
- package/src/plugins/native-stake/solana/types.d.ts +7 -11
- package/src/plugins/zeta/airdropFetcher.js +8 -0
- package/src/plugins/zeta/airdropFetcher.js.map +1 -1
- package/src/plugins/zeta/constants.d.ts +5 -0
- package/src/plugins/zeta/constants.js +46 -1
- package/src/plugins/zeta/constants.js.map +1 -1
- package/src/plugins/zeta/helpers.d.ts +3 -0
- package/src/plugins/zeta/helpers.js +27 -1
- package/src/plugins/zeta/helpers.js.map +1 -1
- package/src/plugins/zeta/idls.d.ts +70 -0
- package/src/plugins/zeta/idls.js +749 -0
- package/src/plugins/zeta/idls.js.map +1 -0
- package/src/plugins/zeta/index.js +6 -1
- package/src/plugins/zeta/index.js.map +1 -1
- package/src/plugins/zeta/stakingFetcher.d.ts +3 -0
- package/src/plugins/zeta/stakingFetcher.js +69 -0
- package/src/plugins/zeta/stakingFetcher.js.map +1 -0
- package/src/plugins/zeta/structs.d.ts +7 -0
- package/src/plugins/zeta/structs.js +7 -1
- package/src/plugins/zeta/structs.js.map +1 -1
- package/src/plugins/zeta/types.d.ts +26 -0
- package/src/plugins/zeta/types.js +7 -0
- package/src/plugins/zeta/types.js.map +1 -1
- package/src/utils/solana/das/getAssetBatchDas.js +3 -2
- package/src/utils/solana/das/getAssetBatchDas.js.map +1 -1
- package/src/utils/solana/das/heliusAssetToAssetCollectible.js +6 -4
- package/src/utils/solana/das/heliusAssetToAssetCollectible.js.map +1 -1
@@ -0,0 +1,749 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.idls = void 0;
|
4
|
+
exports.idls = {
|
5
|
+
version: '0.1.0',
|
6
|
+
name: 'zeta_staking',
|
7
|
+
instructions: [
|
8
|
+
{
|
9
|
+
name: 'initProtocol',
|
10
|
+
accounts: [
|
11
|
+
{
|
12
|
+
name: 'protocolState',
|
13
|
+
isMut: true,
|
14
|
+
isSigner: false,
|
15
|
+
},
|
16
|
+
{
|
17
|
+
name: 'authority',
|
18
|
+
isMut: true,
|
19
|
+
isSigner: true,
|
20
|
+
},
|
21
|
+
{
|
22
|
+
name: 'zetaMint',
|
23
|
+
isMut: false,
|
24
|
+
isSigner: false,
|
25
|
+
},
|
26
|
+
{
|
27
|
+
name: 'systemProgram',
|
28
|
+
isMut: false,
|
29
|
+
isSigner: false,
|
30
|
+
},
|
31
|
+
],
|
32
|
+
args: [
|
33
|
+
{
|
34
|
+
name: 'epochDurationSeconds',
|
35
|
+
type: 'u32',
|
36
|
+
},
|
37
|
+
{
|
38
|
+
name: 'maxNEpochs',
|
39
|
+
type: 'u32',
|
40
|
+
},
|
41
|
+
{
|
42
|
+
name: 'minStakeDurationEpochs',
|
43
|
+
type: 'u32',
|
44
|
+
},
|
45
|
+
],
|
46
|
+
},
|
47
|
+
{
|
48
|
+
name: 'udpateAuthority',
|
49
|
+
accounts: [
|
50
|
+
{
|
51
|
+
name: 'protocolState',
|
52
|
+
isMut: true,
|
53
|
+
isSigner: false,
|
54
|
+
},
|
55
|
+
{
|
56
|
+
name: 'authority',
|
57
|
+
isMut: false,
|
58
|
+
isSigner: true,
|
59
|
+
},
|
60
|
+
{
|
61
|
+
name: 'newAuthority',
|
62
|
+
isMut: false,
|
63
|
+
isSigner: false,
|
64
|
+
},
|
65
|
+
],
|
66
|
+
args: [],
|
67
|
+
},
|
68
|
+
{
|
69
|
+
name: 'initStakeAccountManager',
|
70
|
+
accounts: [
|
71
|
+
{
|
72
|
+
name: 'stakeAccountManager',
|
73
|
+
isMut: true,
|
74
|
+
isSigner: false,
|
75
|
+
},
|
76
|
+
{
|
77
|
+
name: 'authority',
|
78
|
+
isMut: true,
|
79
|
+
isSigner: true,
|
80
|
+
},
|
81
|
+
{
|
82
|
+
name: 'systemProgram',
|
83
|
+
isMut: false,
|
84
|
+
isSigner: false,
|
85
|
+
},
|
86
|
+
],
|
87
|
+
args: [],
|
88
|
+
},
|
89
|
+
{
|
90
|
+
name: 'stake',
|
91
|
+
accounts: [
|
92
|
+
{
|
93
|
+
name: 'protocolState',
|
94
|
+
isMut: true,
|
95
|
+
isSigner: false,
|
96
|
+
},
|
97
|
+
{
|
98
|
+
name: 'zetaTokenAccount',
|
99
|
+
isMut: true,
|
100
|
+
isSigner: false,
|
101
|
+
},
|
102
|
+
{
|
103
|
+
name: 'stakeAccountManager',
|
104
|
+
isMut: true,
|
105
|
+
isSigner: false,
|
106
|
+
},
|
107
|
+
{
|
108
|
+
name: 'stakeAccount',
|
109
|
+
isMut: true,
|
110
|
+
isSigner: false,
|
111
|
+
},
|
112
|
+
{
|
113
|
+
name: 'stakeVault',
|
114
|
+
isMut: true,
|
115
|
+
isSigner: false,
|
116
|
+
},
|
117
|
+
{
|
118
|
+
name: 'authority',
|
119
|
+
isMut: true,
|
120
|
+
isSigner: true,
|
121
|
+
},
|
122
|
+
{
|
123
|
+
name: 'zetaMint',
|
124
|
+
isMut: false,
|
125
|
+
isSigner: false,
|
126
|
+
},
|
127
|
+
{
|
128
|
+
name: 'systemProgram',
|
129
|
+
isMut: false,
|
130
|
+
isSigner: false,
|
131
|
+
},
|
132
|
+
{
|
133
|
+
name: 'tokenProgram',
|
134
|
+
isMut: false,
|
135
|
+
isSigner: false,
|
136
|
+
},
|
137
|
+
],
|
138
|
+
args: [
|
139
|
+
{
|
140
|
+
name: 'bitToUse',
|
141
|
+
type: 'u8',
|
142
|
+
},
|
143
|
+
{
|
144
|
+
name: 'stakeDurationEpochs',
|
145
|
+
type: 'u32',
|
146
|
+
},
|
147
|
+
{
|
148
|
+
name: 'amountToStake',
|
149
|
+
type: 'u64',
|
150
|
+
},
|
151
|
+
{
|
152
|
+
name: 'stakeAccName',
|
153
|
+
type: 'string',
|
154
|
+
},
|
155
|
+
],
|
156
|
+
},
|
157
|
+
{
|
158
|
+
name: 'toggleStakeAccount',
|
159
|
+
accounts: [
|
160
|
+
{
|
161
|
+
name: 'protocolState',
|
162
|
+
isMut: false,
|
163
|
+
isSigner: false,
|
164
|
+
},
|
165
|
+
{
|
166
|
+
name: 'stakeAccount',
|
167
|
+
isMut: true,
|
168
|
+
isSigner: false,
|
169
|
+
},
|
170
|
+
{
|
171
|
+
name: 'authority',
|
172
|
+
isMut: false,
|
173
|
+
isSigner: true,
|
174
|
+
},
|
175
|
+
],
|
176
|
+
args: [],
|
177
|
+
},
|
178
|
+
{
|
179
|
+
name: 'editStakeAccountName',
|
180
|
+
accounts: [
|
181
|
+
{
|
182
|
+
name: 'stakeAccount',
|
183
|
+
isMut: true,
|
184
|
+
isSigner: false,
|
185
|
+
},
|
186
|
+
{
|
187
|
+
name: 'authority',
|
188
|
+
isMut: false,
|
189
|
+
isSigner: true,
|
190
|
+
},
|
191
|
+
],
|
192
|
+
args: [
|
193
|
+
{
|
194
|
+
name: 'newStakeAccName',
|
195
|
+
type: 'string',
|
196
|
+
},
|
197
|
+
],
|
198
|
+
},
|
199
|
+
{
|
200
|
+
name: 'claim',
|
201
|
+
accounts: [
|
202
|
+
{
|
203
|
+
name: 'protocolState',
|
204
|
+
isMut: true,
|
205
|
+
isSigner: false,
|
206
|
+
},
|
207
|
+
{
|
208
|
+
name: 'stakeAccountManager',
|
209
|
+
isMut: true,
|
210
|
+
isSigner: false,
|
211
|
+
},
|
212
|
+
{
|
213
|
+
name: 'stakeAccount',
|
214
|
+
isMut: true,
|
215
|
+
isSigner: false,
|
216
|
+
},
|
217
|
+
{
|
218
|
+
name: 'stakeVault',
|
219
|
+
isMut: true,
|
220
|
+
isSigner: false,
|
221
|
+
},
|
222
|
+
{
|
223
|
+
name: 'userZetaTokenAccount',
|
224
|
+
isMut: true,
|
225
|
+
isSigner: false,
|
226
|
+
},
|
227
|
+
{
|
228
|
+
name: 'authority',
|
229
|
+
isMut: true,
|
230
|
+
isSigner: true,
|
231
|
+
},
|
232
|
+
{
|
233
|
+
name: 'tokenProgram',
|
234
|
+
isMut: false,
|
235
|
+
isSigner: false,
|
236
|
+
},
|
237
|
+
],
|
238
|
+
args: [],
|
239
|
+
},
|
240
|
+
{
|
241
|
+
name: 'extendLockupDuration',
|
242
|
+
accounts: [
|
243
|
+
{
|
244
|
+
name: 'protocolState',
|
245
|
+
isMut: false,
|
246
|
+
isSigner: false,
|
247
|
+
},
|
248
|
+
{
|
249
|
+
name: 'stakeAccount',
|
250
|
+
isMut: true,
|
251
|
+
isSigner: false,
|
252
|
+
},
|
253
|
+
{
|
254
|
+
name: 'authority',
|
255
|
+
isMut: false,
|
256
|
+
isSigner: true,
|
257
|
+
},
|
258
|
+
],
|
259
|
+
args: [
|
260
|
+
{
|
261
|
+
name: 'epochsToExtend',
|
262
|
+
type: 'u32',
|
263
|
+
},
|
264
|
+
],
|
265
|
+
},
|
266
|
+
{
|
267
|
+
name: 'addStake',
|
268
|
+
accounts: [
|
269
|
+
{
|
270
|
+
name: 'protocolState',
|
271
|
+
isMut: false,
|
272
|
+
isSigner: false,
|
273
|
+
},
|
274
|
+
{
|
275
|
+
name: 'stakeAccount',
|
276
|
+
isMut: true,
|
277
|
+
isSigner: false,
|
278
|
+
},
|
279
|
+
{
|
280
|
+
name: 'stakeVault',
|
281
|
+
isMut: true,
|
282
|
+
isSigner: false,
|
283
|
+
},
|
284
|
+
{
|
285
|
+
name: 'userZetaTokenAccount',
|
286
|
+
isMut: true,
|
287
|
+
isSigner: false,
|
288
|
+
},
|
289
|
+
{
|
290
|
+
name: 'authority',
|
291
|
+
isMut: false,
|
292
|
+
isSigner: true,
|
293
|
+
},
|
294
|
+
{
|
295
|
+
name: 'tokenProgram',
|
296
|
+
isMut: false,
|
297
|
+
isSigner: false,
|
298
|
+
},
|
299
|
+
],
|
300
|
+
args: [
|
301
|
+
{
|
302
|
+
name: 'stakeToAdd',
|
303
|
+
type: 'u64',
|
304
|
+
},
|
305
|
+
],
|
306
|
+
},
|
307
|
+
{
|
308
|
+
name: 'mergeStakeAccounts',
|
309
|
+
accounts: [
|
310
|
+
{
|
311
|
+
name: 'protocolState',
|
312
|
+
isMut: true,
|
313
|
+
isSigner: false,
|
314
|
+
},
|
315
|
+
{
|
316
|
+
name: 'stakeAccountManager',
|
317
|
+
isMut: true,
|
318
|
+
isSigner: false,
|
319
|
+
},
|
320
|
+
{
|
321
|
+
name: 'stakeAccount',
|
322
|
+
isMut: true,
|
323
|
+
isSigner: false,
|
324
|
+
},
|
325
|
+
{
|
326
|
+
name: 'stakeVault',
|
327
|
+
isMut: true,
|
328
|
+
isSigner: false,
|
329
|
+
},
|
330
|
+
{
|
331
|
+
name: 'stakeAccountToMerge',
|
332
|
+
isMut: true,
|
333
|
+
isSigner: false,
|
334
|
+
},
|
335
|
+
{
|
336
|
+
name: 'stakeVaultToMerge',
|
337
|
+
isMut: true,
|
338
|
+
isSigner: false,
|
339
|
+
},
|
340
|
+
{
|
341
|
+
name: 'authority',
|
342
|
+
isMut: true,
|
343
|
+
isSigner: true,
|
344
|
+
},
|
345
|
+
{
|
346
|
+
name: 'tokenProgram',
|
347
|
+
isMut: false,
|
348
|
+
isSigner: false,
|
349
|
+
},
|
350
|
+
],
|
351
|
+
args: [],
|
352
|
+
},
|
353
|
+
],
|
354
|
+
accounts: [
|
355
|
+
{
|
356
|
+
name: 'ProtocolState',
|
357
|
+
type: {
|
358
|
+
kind: 'struct',
|
359
|
+
fields: [
|
360
|
+
{
|
361
|
+
name: 'epochDurationSeconds',
|
362
|
+
type: 'u32',
|
363
|
+
},
|
364
|
+
{
|
365
|
+
name: 'maxNEpochs',
|
366
|
+
type: 'u32',
|
367
|
+
},
|
368
|
+
{
|
369
|
+
name: 'minStakeDurationEpochs',
|
370
|
+
type: 'u32',
|
371
|
+
},
|
372
|
+
{
|
373
|
+
name: 'epochZeroTs',
|
374
|
+
type: 'u64',
|
375
|
+
},
|
376
|
+
{
|
377
|
+
name: 'zetaMint',
|
378
|
+
type: 'publicKey',
|
379
|
+
},
|
380
|
+
{
|
381
|
+
name: 'authority',
|
382
|
+
type: 'publicKey',
|
383
|
+
},
|
384
|
+
],
|
385
|
+
},
|
386
|
+
},
|
387
|
+
{
|
388
|
+
name: 'StakeAccountManager',
|
389
|
+
type: {
|
390
|
+
kind: 'struct',
|
391
|
+
fields: [
|
392
|
+
{
|
393
|
+
name: 'bits',
|
394
|
+
type: 'u64',
|
395
|
+
},
|
396
|
+
{
|
397
|
+
name: 'authority',
|
398
|
+
type: 'publicKey',
|
399
|
+
},
|
400
|
+
],
|
401
|
+
},
|
402
|
+
},
|
403
|
+
{
|
404
|
+
name: 'StakeAccount',
|
405
|
+
type: {
|
406
|
+
kind: 'struct',
|
407
|
+
fields: [
|
408
|
+
{
|
409
|
+
name: 'name',
|
410
|
+
type: {
|
411
|
+
array: ['u8', 10],
|
412
|
+
},
|
413
|
+
},
|
414
|
+
{
|
415
|
+
name: 'vaultNonce',
|
416
|
+
type: 'u8',
|
417
|
+
},
|
418
|
+
{
|
419
|
+
name: 'bitInUse',
|
420
|
+
type: 'u8',
|
421
|
+
},
|
422
|
+
{
|
423
|
+
name: 'stakeState',
|
424
|
+
type: {
|
425
|
+
defined: 'StakeState',
|
426
|
+
},
|
427
|
+
},
|
428
|
+
{
|
429
|
+
name: 'initialStakeAmount',
|
430
|
+
type: 'u64',
|
431
|
+
},
|
432
|
+
{
|
433
|
+
name: 'amountStillStaked',
|
434
|
+
type: 'u64',
|
435
|
+
},
|
436
|
+
{
|
437
|
+
name: 'amountClaimed',
|
438
|
+
type: 'u64',
|
439
|
+
},
|
440
|
+
{
|
441
|
+
name: 'stakeDurationEpochs',
|
442
|
+
type: 'u32',
|
443
|
+
},
|
444
|
+
{
|
445
|
+
name: 'authority',
|
446
|
+
type: 'publicKey',
|
447
|
+
},
|
448
|
+
],
|
449
|
+
},
|
450
|
+
},
|
451
|
+
],
|
452
|
+
types: [
|
453
|
+
{
|
454
|
+
name: 'StakeState',
|
455
|
+
type: {
|
456
|
+
kind: 'enum',
|
457
|
+
variants: [
|
458
|
+
{
|
459
|
+
name: 'Uninitialized',
|
460
|
+
},
|
461
|
+
{
|
462
|
+
name: 'Vesting',
|
463
|
+
fields: [
|
464
|
+
{
|
465
|
+
name: 'stake_start_epoch',
|
466
|
+
type: 'u32',
|
467
|
+
},
|
468
|
+
{
|
469
|
+
name: 'last_claim_ts',
|
470
|
+
type: 'u64',
|
471
|
+
},
|
472
|
+
],
|
473
|
+
},
|
474
|
+
{
|
475
|
+
name: 'Locked',
|
476
|
+
},
|
477
|
+
],
|
478
|
+
},
|
479
|
+
},
|
480
|
+
],
|
481
|
+
events: [
|
482
|
+
{
|
483
|
+
name: 'StakeEvent',
|
484
|
+
fields: [
|
485
|
+
{
|
486
|
+
name: 'authority',
|
487
|
+
type: 'publicKey',
|
488
|
+
index: false,
|
489
|
+
},
|
490
|
+
{
|
491
|
+
name: 'stakeAccount',
|
492
|
+
type: 'publicKey',
|
493
|
+
index: false,
|
494
|
+
},
|
495
|
+
{
|
496
|
+
name: 'epoch',
|
497
|
+
type: 'u32',
|
498
|
+
index: false,
|
499
|
+
},
|
500
|
+
{
|
501
|
+
name: 'stakeAmount',
|
502
|
+
type: 'u64',
|
503
|
+
index: false,
|
504
|
+
},
|
505
|
+
{
|
506
|
+
name: 'stakeDurationEpochs',
|
507
|
+
type: 'u32',
|
508
|
+
index: false,
|
509
|
+
},
|
510
|
+
],
|
511
|
+
},
|
512
|
+
{
|
513
|
+
name: 'AddStakeEvent',
|
514
|
+
fields: [
|
515
|
+
{
|
516
|
+
name: 'authority',
|
517
|
+
type: 'publicKey',
|
518
|
+
index: false,
|
519
|
+
},
|
520
|
+
{
|
521
|
+
name: 'stakeAccount',
|
522
|
+
type: 'publicKey',
|
523
|
+
index: false,
|
524
|
+
},
|
525
|
+
{
|
526
|
+
name: 'epoch',
|
527
|
+
type: 'u32',
|
528
|
+
index: false,
|
529
|
+
},
|
530
|
+
{
|
531
|
+
name: 'newStakeAmount',
|
532
|
+
type: 'u64',
|
533
|
+
index: false,
|
534
|
+
},
|
535
|
+
{
|
536
|
+
name: 'addStakeAmount',
|
537
|
+
type: 'u64',
|
538
|
+
index: false,
|
539
|
+
},
|
540
|
+
],
|
541
|
+
},
|
542
|
+
{
|
543
|
+
name: 'ClaimEvent',
|
544
|
+
fields: [
|
545
|
+
{
|
546
|
+
name: 'authority',
|
547
|
+
type: 'publicKey',
|
548
|
+
index: false,
|
549
|
+
},
|
550
|
+
{
|
551
|
+
name: 'stakeAccount',
|
552
|
+
type: 'publicKey',
|
553
|
+
index: false,
|
554
|
+
},
|
555
|
+
{
|
556
|
+
name: 'epoch',
|
557
|
+
type: 'u32',
|
558
|
+
index: false,
|
559
|
+
},
|
560
|
+
{
|
561
|
+
name: 'newStakeAmount',
|
562
|
+
type: 'u64',
|
563
|
+
index: false,
|
564
|
+
},
|
565
|
+
{
|
566
|
+
name: 'claimAmount',
|
567
|
+
type: 'u64',
|
568
|
+
index: false,
|
569
|
+
},
|
570
|
+
],
|
571
|
+
},
|
572
|
+
{
|
573
|
+
name: 'ExtendLockupDurationEvent',
|
574
|
+
fields: [
|
575
|
+
{
|
576
|
+
name: 'authority',
|
577
|
+
type: 'publicKey',
|
578
|
+
index: false,
|
579
|
+
},
|
580
|
+
{
|
581
|
+
name: 'stakeAccount',
|
582
|
+
type: 'publicKey',
|
583
|
+
index: false,
|
584
|
+
},
|
585
|
+
{
|
586
|
+
name: 'epoch',
|
587
|
+
type: 'u32',
|
588
|
+
index: false,
|
589
|
+
},
|
590
|
+
{
|
591
|
+
name: 'oldStakeDurationEpochs',
|
592
|
+
type: 'u32',
|
593
|
+
index: false,
|
594
|
+
},
|
595
|
+
{
|
596
|
+
name: 'newStakeDurationEpochs',
|
597
|
+
type: 'u32',
|
598
|
+
index: false,
|
599
|
+
},
|
600
|
+
],
|
601
|
+
},
|
602
|
+
{
|
603
|
+
name: 'MergeStakeAccountsEvent',
|
604
|
+
fields: [
|
605
|
+
{
|
606
|
+
name: 'authority',
|
607
|
+
type: 'publicKey',
|
608
|
+
index: false,
|
609
|
+
},
|
610
|
+
{
|
611
|
+
name: 'stakeAccount',
|
612
|
+
type: 'publicKey',
|
613
|
+
index: false,
|
614
|
+
},
|
615
|
+
{
|
616
|
+
name: 'stakeAccountToMerge',
|
617
|
+
type: 'publicKey',
|
618
|
+
index: false,
|
619
|
+
},
|
620
|
+
{
|
621
|
+
name: 'epoch',
|
622
|
+
type: 'u32',
|
623
|
+
index: false,
|
624
|
+
},
|
625
|
+
{
|
626
|
+
name: 'newStakeAmount',
|
627
|
+
type: 'u64',
|
628
|
+
index: false,
|
629
|
+
},
|
630
|
+
{
|
631
|
+
name: 'stakeAmountMerged',
|
632
|
+
type: 'u64',
|
633
|
+
index: false,
|
634
|
+
},
|
635
|
+
],
|
636
|
+
},
|
637
|
+
{
|
638
|
+
name: 'ToggleStakeAccountEvent',
|
639
|
+
fields: [
|
640
|
+
{
|
641
|
+
name: 'authority',
|
642
|
+
type: 'publicKey',
|
643
|
+
index: false,
|
644
|
+
},
|
645
|
+
{
|
646
|
+
name: 'stakeAccount',
|
647
|
+
type: 'publicKey',
|
648
|
+
index: false,
|
649
|
+
},
|
650
|
+
{
|
651
|
+
name: 'epoch',
|
652
|
+
type: 'u32',
|
653
|
+
index: false,
|
654
|
+
},
|
655
|
+
],
|
656
|
+
},
|
657
|
+
],
|
658
|
+
errors: [
|
659
|
+
{
|
660
|
+
code: 6000,
|
661
|
+
name: 'InvalidAuthority',
|
662
|
+
msg: 'Invalid authority',
|
663
|
+
},
|
664
|
+
{
|
665
|
+
code: 6001,
|
666
|
+
name: 'InvalidStakeAccountManagerBit',
|
667
|
+
msg: 'Stake account manager bit is not free',
|
668
|
+
},
|
669
|
+
{
|
670
|
+
code: 6002,
|
671
|
+
name: 'StakeAccountNameTooLong',
|
672
|
+
msg: 'Stake account name is too long',
|
673
|
+
},
|
674
|
+
{
|
675
|
+
code: 6003,
|
676
|
+
name: 'InvalidToggleWithNoEpochsLeft',
|
677
|
+
msg: "Can't toggle a staking account from locked/vesting with no epochs left",
|
678
|
+
},
|
679
|
+
{
|
680
|
+
code: 6004,
|
681
|
+
name: 'InvalidExtendLockupDurationEpochs',
|
682
|
+
msg: "Can't extend lockup duration beyond max lockup duration",
|
683
|
+
},
|
684
|
+
{
|
685
|
+
code: 6005,
|
686
|
+
name: 'InvalidMergeStakeAccountsSameAccount',
|
687
|
+
msg: "Can't merge the same stake account",
|
688
|
+
},
|
689
|
+
{
|
690
|
+
code: 6006,
|
691
|
+
name: 'InvalidClaimOnLockedAccount',
|
692
|
+
msg: "Can't claim on a locked account",
|
693
|
+
},
|
694
|
+
{
|
695
|
+
code: 6007,
|
696
|
+
name: 'InvalidStakeZeroTokens',
|
697
|
+
msg: "Can't stake zero tokens",
|
698
|
+
},
|
699
|
+
{
|
700
|
+
code: 6008,
|
701
|
+
name: 'InvalidStakeDuration',
|
702
|
+
msg: 'Invalid number of epochs to stake',
|
703
|
+
},
|
704
|
+
{
|
705
|
+
code: 6009,
|
706
|
+
name: 'CanOnlyMergeLockedStakedAccounts',
|
707
|
+
msg: 'Can only merge two locked staked accounts',
|
708
|
+
},
|
709
|
+
{
|
710
|
+
code: 6010,
|
711
|
+
name: 'StakeAccountToMergeMustHaveShorterRemainingLockup',
|
712
|
+
msg: 'Stake account to merge must have shorted remaining lockup than stake account',
|
713
|
+
},
|
714
|
+
{
|
715
|
+
code: 6011,
|
716
|
+
name: 'LockedStakeHasNoStakeEnd',
|
717
|
+
msg: 'Locked account has no stake_end_epoch',
|
718
|
+
},
|
719
|
+
{
|
720
|
+
code: 6012,
|
721
|
+
name: 'InvalidStakeAccountState',
|
722
|
+
msg: 'Invalid stake account state',
|
723
|
+
},
|
724
|
+
{
|
725
|
+
code: 6013,
|
726
|
+
name: 'HasOutstandingClaim',
|
727
|
+
msg: 'Stake account last claim timestamp is not up-to-date',
|
728
|
+
},
|
729
|
+
{
|
730
|
+
code: 6014,
|
731
|
+
name: 'ExtendDurationOnLockedOnly',
|
732
|
+
msg: "Can't extend lockup duration of vesting account",
|
733
|
+
},
|
734
|
+
{
|
735
|
+
code: 6015,
|
736
|
+
name: 'CannotModifyAlreadyUnlockedStakeAccount',
|
737
|
+
msg: 'Cannot modify a stake account that is already fully unlocked',
|
738
|
+
},
|
739
|
+
{
|
740
|
+
code: 6016,
|
741
|
+
name: 'StakeAccountManagerFull',
|
742
|
+
msg: 'Stake account manager full',
|
743
|
+
},
|
744
|
+
],
|
745
|
+
metadata: {
|
746
|
+
address: '4DUapvWZDDCkfWJpdwvX2QjwAE9Yq4wU8792RMMv7Csg',
|
747
|
+
},
|
748
|
+
};
|
749
|
+
//# sourceMappingURL=idls.js.map
|