@helium/idls 0.0.9 → 0.0.11

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.
Files changed (49) hide show
  1. package/lib/cjs/circuit_breaker.js +2 -51
  2. package/lib/cjs/circuit_breaker.js.map +1 -1
  3. package/lib/cjs/data_credits.js +167 -76
  4. package/lib/cjs/data_credits.js.map +1 -1
  5. package/lib/cjs/helium_entity_manager.js +40 -75
  6. package/lib/cjs/helium_entity_manager.js.map +1 -1
  7. package/lib/cjs/helium_sub_daos.js +1293 -115
  8. package/lib/cjs/helium_sub_daos.js.map +1 -1
  9. package/lib/cjs/lazy_distributor.js +0 -25
  10. package/lib/cjs/lazy_distributor.js.map +1 -1
  11. package/lib/cjs/lazy_transactions.js +127 -8
  12. package/lib/cjs/lazy_transactions.js.map +1 -1
  13. package/lib/cjs/treasury_management.js +0 -10
  14. package/lib/cjs/treasury_management.js.map +1 -1
  15. package/lib/cjs/voter_stake_registry.js +1930 -0
  16. package/lib/cjs/voter_stake_registry.js.map +1 -0
  17. package/lib/esm/circuit_breaker.js +2 -51
  18. package/lib/esm/circuit_breaker.js.map +1 -1
  19. package/lib/esm/data_credits.js +167 -76
  20. package/lib/esm/data_credits.js.map +1 -1
  21. package/lib/esm/helium_entity_manager.js +40 -75
  22. package/lib/esm/helium_entity_manager.js.map +1 -1
  23. package/lib/esm/helium_sub_daos.js +1293 -115
  24. package/lib/esm/helium_sub_daos.js.map +1 -1
  25. package/lib/esm/lazy_distributor.js +0 -25
  26. package/lib/esm/lazy_distributor.js.map +1 -1
  27. package/lib/esm/lazy_transactions.js +127 -8
  28. package/lib/esm/lazy_transactions.js.map +1 -1
  29. package/lib/esm/treasury_management.js +0 -10
  30. package/lib/esm/treasury_management.js.map +1 -1
  31. package/lib/esm/voter_stake_registry.js +1927 -0
  32. package/lib/esm/voter_stake_registry.js.map +1 -0
  33. package/lib/types/circuit_breaker.d.ts +3 -52
  34. package/lib/types/circuit_breaker.d.ts.map +1 -1
  35. package/lib/types/data_credits.d.ts +167 -76
  36. package/lib/types/data_credits.d.ts.map +1 -1
  37. package/lib/types/helium_entity_manager.d.ts +40 -75
  38. package/lib/types/helium_entity_manager.d.ts.map +1 -1
  39. package/lib/types/helium_sub_daos.d.ts +1300 -122
  40. package/lib/types/helium_sub_daos.d.ts.map +1 -1
  41. package/lib/types/lazy_distributor.d.ts +1 -26
  42. package/lib/types/lazy_distributor.d.ts.map +1 -1
  43. package/lib/types/lazy_transactions.d.ts +127 -8
  44. package/lib/types/lazy_transactions.d.ts.map +1 -1
  45. package/lib/types/treasury_management.d.ts +1 -11
  46. package/lib/types/treasury_management.d.ts.map +1 -1
  47. package/lib/types/voter_stake_registry.d.ts +1928 -0
  48. package/lib/types/voter_stake_registry.d.ts.map +1 -0
  49. package/package.json +3 -3
@@ -0,0 +1,1927 @@
1
+ export const IDL = {
2
+ "version": "0.0.1",
3
+ "name": "voter_stake_registry",
4
+ "instructions": [
5
+ {
6
+ "name": "initializeRegistrarV0",
7
+ "accounts": [
8
+ {
9
+ "name": "registrar",
10
+ "isMut": true,
11
+ "isSigner": false,
12
+ "docs": [
13
+ "The voting registrar. There can only be a single registrar",
14
+ "per governance realm and governing mint."
15
+ ],
16
+ "pda": {
17
+ "seeds": [
18
+ {
19
+ "kind": "account",
20
+ "type": "publicKey",
21
+ "path": "realm"
22
+ },
23
+ {
24
+ "kind": "const",
25
+ "type": "string",
26
+ "value": "registrar"
27
+ },
28
+ {
29
+ "kind": "account",
30
+ "type": "publicKey",
31
+ "account": "Mint",
32
+ "path": "realm_governing_token_mint"
33
+ }
34
+ ]
35
+ }
36
+ },
37
+ {
38
+ "name": "realm",
39
+ "isMut": false,
40
+ "isSigner": false,
41
+ "docs": [
42
+ "An spl-governance realm",
43
+ "",
44
+ "realm is validated in the instruction:",
45
+ "- realm is owned by the governance_program_id",
46
+ "- realm_governing_token_mint must be the community or council mint",
47
+ "- realm_authority is realm.authority"
48
+ ]
49
+ },
50
+ {
51
+ "name": "governanceProgramId",
52
+ "isMut": false,
53
+ "isSigner": false,
54
+ "docs": [
55
+ "The program id of the spl-governance program the realm belongs to."
56
+ ]
57
+ },
58
+ {
59
+ "name": "realmGoverningTokenMint",
60
+ "isMut": false,
61
+ "isSigner": false,
62
+ "docs": [
63
+ "Either the realm community mint or the council mint."
64
+ ]
65
+ },
66
+ {
67
+ "name": "realmAuthority",
68
+ "isMut": false,
69
+ "isSigner": true
70
+ },
71
+ {
72
+ "name": "payer",
73
+ "isMut": true,
74
+ "isSigner": true
75
+ },
76
+ {
77
+ "name": "systemProgram",
78
+ "isMut": false,
79
+ "isSigner": false
80
+ }
81
+ ],
82
+ "args": [
83
+ {
84
+ "name": "args",
85
+ "type": {
86
+ "defined": "InitializeRegistrarArgsV0"
87
+ }
88
+ }
89
+ ]
90
+ },
91
+ {
92
+ "name": "configureVotingMintV0",
93
+ "accounts": [
94
+ {
95
+ "name": "registrar",
96
+ "isMut": true,
97
+ "isSigner": false,
98
+ "relations": [
99
+ "realm_authority"
100
+ ]
101
+ },
102
+ {
103
+ "name": "realmAuthority",
104
+ "isMut": false,
105
+ "isSigner": true
106
+ },
107
+ {
108
+ "name": "mint",
109
+ "isMut": false,
110
+ "isSigner": false,
111
+ "docs": [
112
+ "Tokens of this mint will produce vote weight"
113
+ ]
114
+ }
115
+ ],
116
+ "args": [
117
+ {
118
+ "name": "args",
119
+ "type": {
120
+ "defined": "ConfigureVotingMintArgsV0"
121
+ }
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "updateMaxVoterWeightV0",
127
+ "accounts": [
128
+ {
129
+ "name": "maxVoterWeightRecord",
130
+ "isMut": true,
131
+ "isSigner": false,
132
+ "pda": {
133
+ "seeds": [
134
+ {
135
+ "kind": "const",
136
+ "type": "string",
137
+ "value": "max-voter-weight-record"
138
+ },
139
+ {
140
+ "kind": "account",
141
+ "type": "publicKey",
142
+ "path": "registrar"
143
+ },
144
+ {
145
+ "kind": "account",
146
+ "type": "publicKey",
147
+ "path": "registrar"
148
+ }
149
+ ]
150
+ }
151
+ },
152
+ {
153
+ "name": "registrar",
154
+ "isMut": false,
155
+ "isSigner": false,
156
+ "relations": [
157
+ "realm_governing_token_mint"
158
+ ]
159
+ },
160
+ {
161
+ "name": "realmGoverningTokenMint",
162
+ "isMut": false,
163
+ "isSigner": false
164
+ },
165
+ {
166
+ "name": "payer",
167
+ "isMut": true,
168
+ "isSigner": true
169
+ },
170
+ {
171
+ "name": "systemProgram",
172
+ "isMut": false,
173
+ "isSigner": false
174
+ }
175
+ ],
176
+ "args": []
177
+ },
178
+ {
179
+ "name": "initializePositionV0",
180
+ "accounts": [
181
+ {
182
+ "name": "registrar",
183
+ "isMut": false,
184
+ "isSigner": false
185
+ },
186
+ {
187
+ "name": "position",
188
+ "isMut": true,
189
+ "isSigner": false,
190
+ "pda": {
191
+ "seeds": [
192
+ {
193
+ "kind": "const",
194
+ "type": "string",
195
+ "value": "position"
196
+ },
197
+ {
198
+ "kind": "account",
199
+ "type": "publicKey",
200
+ "account": "Mint",
201
+ "path": "mint"
202
+ }
203
+ ]
204
+ }
205
+ },
206
+ {
207
+ "name": "mint",
208
+ "isMut": true,
209
+ "isSigner": false
210
+ },
211
+ {
212
+ "name": "metadata",
213
+ "isMut": true,
214
+ "isSigner": false,
215
+ "pda": {
216
+ "seeds": [
217
+ {
218
+ "kind": "const",
219
+ "type": "string",
220
+ "value": "metadata"
221
+ },
222
+ {
223
+ "kind": "account",
224
+ "type": "publicKey",
225
+ "path": "token_metadata_program"
226
+ },
227
+ {
228
+ "kind": "account",
229
+ "type": "publicKey",
230
+ "account": "Mint",
231
+ "path": "mint"
232
+ }
233
+ ],
234
+ "programId": {
235
+ "kind": "account",
236
+ "type": "publicKey",
237
+ "path": "token_metadata_program"
238
+ }
239
+ }
240
+ },
241
+ {
242
+ "name": "masterEdition",
243
+ "isMut": true,
244
+ "isSigner": false,
245
+ "pda": {
246
+ "seeds": [
247
+ {
248
+ "kind": "const",
249
+ "type": "string",
250
+ "value": "metadata"
251
+ },
252
+ {
253
+ "kind": "account",
254
+ "type": "publicKey",
255
+ "path": "token_metadata_program"
256
+ },
257
+ {
258
+ "kind": "account",
259
+ "type": "publicKey",
260
+ "account": "Mint",
261
+ "path": "mint"
262
+ },
263
+ {
264
+ "kind": "const",
265
+ "type": "string",
266
+ "value": "edition"
267
+ }
268
+ ],
269
+ "programId": {
270
+ "kind": "account",
271
+ "type": "publicKey",
272
+ "path": "token_metadata_program"
273
+ }
274
+ }
275
+ },
276
+ {
277
+ "name": "positionTokenAccount",
278
+ "isMut": true,
279
+ "isSigner": false
280
+ },
281
+ {
282
+ "name": "recipient",
283
+ "isMut": false,
284
+ "isSigner": false
285
+ },
286
+ {
287
+ "name": "vault",
288
+ "isMut": true,
289
+ "isSigner": false
290
+ },
291
+ {
292
+ "name": "payer",
293
+ "isMut": true,
294
+ "isSigner": true
295
+ },
296
+ {
297
+ "name": "depositMint",
298
+ "isMut": false,
299
+ "isSigner": false
300
+ },
301
+ {
302
+ "name": "systemProgram",
303
+ "isMut": false,
304
+ "isSigner": false
305
+ },
306
+ {
307
+ "name": "tokenProgram",
308
+ "isMut": false,
309
+ "isSigner": false
310
+ },
311
+ {
312
+ "name": "associatedTokenProgram",
313
+ "isMut": false,
314
+ "isSigner": false
315
+ },
316
+ {
317
+ "name": "tokenMetadataProgram",
318
+ "isMut": false,
319
+ "isSigner": false
320
+ },
321
+ {
322
+ "name": "rent",
323
+ "isMut": false,
324
+ "isSigner": false
325
+ }
326
+ ],
327
+ "args": [
328
+ {
329
+ "name": "args",
330
+ "type": {
331
+ "defined": "InitializePositionArgsV0"
332
+ }
333
+ }
334
+ ]
335
+ },
336
+ {
337
+ "name": "depositV0",
338
+ "accounts": [
339
+ {
340
+ "name": "registrar",
341
+ "isMut": false,
342
+ "isSigner": false
343
+ },
344
+ {
345
+ "name": "position",
346
+ "isMut": true,
347
+ "isSigner": false,
348
+ "relations": [
349
+ "registrar"
350
+ ]
351
+ },
352
+ {
353
+ "name": "vault",
354
+ "isMut": true,
355
+ "isSigner": false
356
+ },
357
+ {
358
+ "name": "mint",
359
+ "isMut": false,
360
+ "isSigner": false
361
+ },
362
+ {
363
+ "name": "depositToken",
364
+ "isMut": true,
365
+ "isSigner": false,
366
+ "relations": [
367
+ "mint"
368
+ ]
369
+ },
370
+ {
371
+ "name": "depositAuthority",
372
+ "isMut": false,
373
+ "isSigner": true
374
+ },
375
+ {
376
+ "name": "tokenProgram",
377
+ "isMut": false,
378
+ "isSigner": false
379
+ }
380
+ ],
381
+ "args": [
382
+ {
383
+ "name": "args",
384
+ "type": {
385
+ "defined": "DepositArgsV0"
386
+ }
387
+ }
388
+ ]
389
+ },
390
+ {
391
+ "name": "withdrawV0",
392
+ "accounts": [
393
+ {
394
+ "name": "registrar",
395
+ "isMut": false,
396
+ "isSigner": false
397
+ },
398
+ {
399
+ "name": "position",
400
+ "isMut": true,
401
+ "isSigner": false,
402
+ "pda": {
403
+ "seeds": [
404
+ {
405
+ "kind": "const",
406
+ "type": "string",
407
+ "value": "position"
408
+ },
409
+ {
410
+ "kind": "account",
411
+ "type": "publicKey",
412
+ "account": "Mint",
413
+ "path": "mint"
414
+ }
415
+ ]
416
+ },
417
+ "relations": [
418
+ "registrar",
419
+ "mint"
420
+ ]
421
+ },
422
+ {
423
+ "name": "mint",
424
+ "isMut": false,
425
+ "isSigner": false
426
+ },
427
+ {
428
+ "name": "positionTokenAccount",
429
+ "isMut": false,
430
+ "isSigner": false
431
+ },
432
+ {
433
+ "name": "positionAuthority",
434
+ "isMut": false,
435
+ "isSigner": true
436
+ },
437
+ {
438
+ "name": "vault",
439
+ "isMut": true,
440
+ "isSigner": false
441
+ },
442
+ {
443
+ "name": "depositMint",
444
+ "isMut": false,
445
+ "isSigner": false
446
+ },
447
+ {
448
+ "name": "destination",
449
+ "isMut": true,
450
+ "isSigner": false
451
+ },
452
+ {
453
+ "name": "tokenProgram",
454
+ "isMut": false,
455
+ "isSigner": false
456
+ }
457
+ ],
458
+ "args": [
459
+ {
460
+ "name": "args",
461
+ "type": {
462
+ "defined": "WithdrawArgsV0"
463
+ }
464
+ }
465
+ ]
466
+ },
467
+ {
468
+ "name": "closePositionV0",
469
+ "accounts": [
470
+ {
471
+ "name": "solDestination",
472
+ "isMut": true,
473
+ "isSigner": false
474
+ },
475
+ {
476
+ "name": "position",
477
+ "isMut": true,
478
+ "isSigner": false,
479
+ "pda": {
480
+ "seeds": [
481
+ {
482
+ "kind": "const",
483
+ "type": "string",
484
+ "value": "position"
485
+ },
486
+ {
487
+ "kind": "account",
488
+ "type": "publicKey",
489
+ "account": "Mint",
490
+ "path": "mint"
491
+ }
492
+ ]
493
+ },
494
+ "relations": [
495
+ "mint"
496
+ ]
497
+ },
498
+ {
499
+ "name": "mint",
500
+ "isMut": true,
501
+ "isSigner": false
502
+ },
503
+ {
504
+ "name": "metadata",
505
+ "isMut": true,
506
+ "isSigner": false,
507
+ "pda": {
508
+ "seeds": [
509
+ {
510
+ "kind": "const",
511
+ "type": "string",
512
+ "value": "metadata"
513
+ },
514
+ {
515
+ "kind": "account",
516
+ "type": "publicKey",
517
+ "path": "token_metadata_program"
518
+ },
519
+ {
520
+ "kind": "account",
521
+ "type": "publicKey",
522
+ "account": "Mint",
523
+ "path": "mint"
524
+ }
525
+ ],
526
+ "programId": {
527
+ "kind": "account",
528
+ "type": "publicKey",
529
+ "path": "token_metadata_program"
530
+ }
531
+ }
532
+ },
533
+ {
534
+ "name": "masterEdition",
535
+ "isMut": true,
536
+ "isSigner": false,
537
+ "pda": {
538
+ "seeds": [
539
+ {
540
+ "kind": "const",
541
+ "type": "string",
542
+ "value": "metadata"
543
+ },
544
+ {
545
+ "kind": "account",
546
+ "type": "publicKey",
547
+ "path": "token_metadata_program"
548
+ },
549
+ {
550
+ "kind": "account",
551
+ "type": "publicKey",
552
+ "account": "Mint",
553
+ "path": "mint"
554
+ },
555
+ {
556
+ "kind": "const",
557
+ "type": "string",
558
+ "value": "edition"
559
+ }
560
+ ],
561
+ "programId": {
562
+ "kind": "account",
563
+ "type": "publicKey",
564
+ "path": "token_metadata_program"
565
+ }
566
+ }
567
+ },
568
+ {
569
+ "name": "positionTokenAccount",
570
+ "isMut": true,
571
+ "isSigner": false
572
+ },
573
+ {
574
+ "name": "positionAuthority",
575
+ "isMut": false,
576
+ "isSigner": true
577
+ },
578
+ {
579
+ "name": "tokenProgram",
580
+ "isMut": false,
581
+ "isSigner": false
582
+ },
583
+ {
584
+ "name": "tokenMetadataProgram",
585
+ "isMut": false,
586
+ "isSigner": false
587
+ }
588
+ ],
589
+ "args": []
590
+ },
591
+ {
592
+ "name": "resetLockupV0",
593
+ "accounts": [
594
+ {
595
+ "name": "registrar",
596
+ "isMut": false,
597
+ "isSigner": false
598
+ },
599
+ {
600
+ "name": "positionUpdateAuthority",
601
+ "isMut": false,
602
+ "isSigner": true
603
+ },
604
+ {
605
+ "name": "position",
606
+ "isMut": true,
607
+ "isSigner": false,
608
+ "pda": {
609
+ "seeds": [
610
+ {
611
+ "kind": "const",
612
+ "type": "string",
613
+ "value": "position"
614
+ },
615
+ {
616
+ "kind": "account",
617
+ "type": "publicKey",
618
+ "account": "Mint",
619
+ "path": "mint"
620
+ }
621
+ ]
622
+ },
623
+ "relations": [
624
+ "registrar",
625
+ "mint"
626
+ ]
627
+ },
628
+ {
629
+ "name": "mint",
630
+ "isMut": false,
631
+ "isSigner": false
632
+ },
633
+ {
634
+ "name": "positionTokenAccount",
635
+ "isMut": false,
636
+ "isSigner": false
637
+ },
638
+ {
639
+ "name": "positionAuthority",
640
+ "isMut": false,
641
+ "isSigner": true
642
+ }
643
+ ],
644
+ "args": [
645
+ {
646
+ "name": "args",
647
+ "type": {
648
+ "defined": "ResetLockupArgsV0"
649
+ }
650
+ }
651
+ ]
652
+ },
653
+ {
654
+ "name": "transferV0",
655
+ "accounts": [
656
+ {
657
+ "name": "registrar",
658
+ "isMut": false,
659
+ "isSigner": false
660
+ },
661
+ {
662
+ "name": "positionUpdateAuthority",
663
+ "isMut": false,
664
+ "isSigner": true
665
+ },
666
+ {
667
+ "name": "sourcePosition",
668
+ "isMut": true,
669
+ "isSigner": false,
670
+ "pda": {
671
+ "seeds": [
672
+ {
673
+ "kind": "const",
674
+ "type": "string",
675
+ "value": "position"
676
+ },
677
+ {
678
+ "kind": "account",
679
+ "type": "publicKey",
680
+ "account": "Mint",
681
+ "path": "mint"
682
+ }
683
+ ]
684
+ },
685
+ "relations": [
686
+ "registrar",
687
+ "mint"
688
+ ]
689
+ },
690
+ {
691
+ "name": "mint",
692
+ "isMut": false,
693
+ "isSigner": false
694
+ },
695
+ {
696
+ "name": "positionTokenAccount",
697
+ "isMut": false,
698
+ "isSigner": false
699
+ },
700
+ {
701
+ "name": "positionAuthority",
702
+ "isMut": false,
703
+ "isSigner": true
704
+ },
705
+ {
706
+ "name": "targetPosition",
707
+ "isMut": true,
708
+ "isSigner": false,
709
+ "relations": [
710
+ "registrar"
711
+ ]
712
+ },
713
+ {
714
+ "name": "depositMint",
715
+ "isMut": false,
716
+ "isSigner": false
717
+ },
718
+ {
719
+ "name": "sourceVault",
720
+ "isMut": true,
721
+ "isSigner": false
722
+ },
723
+ {
724
+ "name": "targetVault",
725
+ "isMut": true,
726
+ "isSigner": false
727
+ },
728
+ {
729
+ "name": "tokenProgram",
730
+ "isMut": false,
731
+ "isSigner": false
732
+ },
733
+ {
734
+ "name": "associatedTokenProgram",
735
+ "isMut": false,
736
+ "isSigner": false
737
+ }
738
+ ],
739
+ "args": [
740
+ {
741
+ "name": "args",
742
+ "type": {
743
+ "defined": "TransferArgsV0"
744
+ }
745
+ }
746
+ ]
747
+ },
748
+ {
749
+ "name": "updateVoterWeightRecordV0",
750
+ "accounts": [
751
+ {
752
+ "name": "payer",
753
+ "isMut": true,
754
+ "isSigner": true
755
+ },
756
+ {
757
+ "name": "registrar",
758
+ "isMut": false,
759
+ "isSigner": false
760
+ },
761
+ {
762
+ "name": "voterWeightRecord",
763
+ "isMut": true,
764
+ "isSigner": false,
765
+ "pda": {
766
+ "seeds": [
767
+ {
768
+ "kind": "account",
769
+ "type": "publicKey",
770
+ "path": "registrar"
771
+ },
772
+ {
773
+ "kind": "const",
774
+ "type": "string",
775
+ "value": "voter-weight-record"
776
+ },
777
+ {
778
+ "kind": "arg",
779
+ "type": {
780
+ "defined": "UpdateVoterWeightRecordArgsV0"
781
+ },
782
+ "path": "args.owner"
783
+ }
784
+ ]
785
+ }
786
+ },
787
+ {
788
+ "name": "systemProgram",
789
+ "isMut": false,
790
+ "isSigner": false
791
+ }
792
+ ],
793
+ "args": [
794
+ {
795
+ "name": "args",
796
+ "type": {
797
+ "defined": "UpdateVoterWeightRecordArgsV0"
798
+ }
799
+ }
800
+ ]
801
+ },
802
+ {
803
+ "name": "setTimeOffsetV0",
804
+ "accounts": [
805
+ {
806
+ "name": "registrar",
807
+ "isMut": true,
808
+ "isSigner": false,
809
+ "relations": [
810
+ "realm_authority"
811
+ ]
812
+ },
813
+ {
814
+ "name": "realmAuthority",
815
+ "isMut": false,
816
+ "isSigner": true
817
+ }
818
+ ],
819
+ "args": [
820
+ {
821
+ "name": "timeOffset",
822
+ "type": "i64"
823
+ }
824
+ ]
825
+ },
826
+ {
827
+ "name": "castVoteV0",
828
+ "accounts": [
829
+ {
830
+ "name": "registrar",
831
+ "isMut": false,
832
+ "isSigner": false
833
+ },
834
+ {
835
+ "name": "voterWeightRecord",
836
+ "isMut": true,
837
+ "isSigner": false,
838
+ "pda": {
839
+ "seeds": [
840
+ {
841
+ "kind": "account",
842
+ "type": "publicKey",
843
+ "path": "registrar"
844
+ },
845
+ {
846
+ "kind": "const",
847
+ "type": "string",
848
+ "value": "voter-weight-record"
849
+ },
850
+ {
851
+ "kind": "arg",
852
+ "type": {
853
+ "defined": "CastVoteArgsV0"
854
+ },
855
+ "path": "args.owner"
856
+ }
857
+ ]
858
+ }
859
+ },
860
+ {
861
+ "name": "voterTokenOwnerRecord",
862
+ "isMut": false,
863
+ "isSigner": false
864
+ },
865
+ {
866
+ "name": "voterAuthority",
867
+ "isMut": false,
868
+ "isSigner": true,
869
+ "docs": [
870
+ "Authority of the voter who casts the vote",
871
+ "It can be either governing_token_owner or its delegate and must sign this instruction"
872
+ ]
873
+ },
874
+ {
875
+ "name": "payer",
876
+ "isMut": true,
877
+ "isSigner": true,
878
+ "docs": [
879
+ "The account which pays for the transaction"
880
+ ]
881
+ },
882
+ {
883
+ "name": "systemProgram",
884
+ "isMut": false,
885
+ "isSigner": false
886
+ }
887
+ ],
888
+ "args": [
889
+ {
890
+ "name": "args",
891
+ "type": {
892
+ "defined": "CastVoteArgsV0"
893
+ }
894
+ }
895
+ ]
896
+ },
897
+ {
898
+ "name": "relinquishVoteV0",
899
+ "accounts": [
900
+ {
901
+ "name": "registrar",
902
+ "isMut": false,
903
+ "isSigner": false
904
+ },
905
+ {
906
+ "name": "voterWeightRecord",
907
+ "isMut": true,
908
+ "isSigner": false
909
+ },
910
+ {
911
+ "name": "governance",
912
+ "isMut": false,
913
+ "isSigner": false,
914
+ "docs": [
915
+ "Governance account the Proposal is for"
916
+ ]
917
+ },
918
+ {
919
+ "name": "proposal",
920
+ "isMut": false,
921
+ "isSigner": false
922
+ },
923
+ {
924
+ "name": "voterTokenOwnerRecord",
925
+ "isMut": false,
926
+ "isSigner": false,
927
+ "docs": [
928
+ "TokenOwnerRecord of the voter who cast the original vote"
929
+ ]
930
+ },
931
+ {
932
+ "name": "voterAuthority",
933
+ "isMut": false,
934
+ "isSigner": true,
935
+ "docs": [
936
+ "Authority of the voter who cast the original vote",
937
+ "It can be either governing_token_owner or its delegate and must sign this instruction"
938
+ ]
939
+ },
940
+ {
941
+ "name": "voteRecord",
942
+ "isMut": false,
943
+ "isSigner": false,
944
+ "docs": [
945
+ "The account is used to validate that it doesn't exist and if it doesn't then Anchor owner check throws error",
946
+ "The check is disabled here and performed inside the instruction",
947
+ "#[account(owner = registrar.governance_program_id)]"
948
+ ]
949
+ },
950
+ {
951
+ "name": "beneficiary",
952
+ "isMut": true,
953
+ "isSigner": false
954
+ }
955
+ ],
956
+ "args": []
957
+ }
958
+ ],
959
+ "accounts": [
960
+ {
961
+ "name": "maxVoterWeightRecord",
962
+ "docs": [
963
+ "MaxVoterWeightRecord account as defined in spl-governance-addin-api",
964
+ "It's redefined here without account_discriminator for Anchor to treat it as native account",
965
+ "",
966
+ "The account is used as an api interface to provide max voting power to the governance program from external addin contracts"
967
+ ],
968
+ "type": {
969
+ "kind": "struct",
970
+ "fields": [
971
+ {
972
+ "name": "realm",
973
+ "docs": [
974
+ "The Realm the MaxVoterWeightRecord belongs to"
975
+ ],
976
+ "type": "publicKey"
977
+ },
978
+ {
979
+ "name": "governingTokenMint",
980
+ "docs": [
981
+ "Governing Token Mint the MaxVoterWeightRecord is associated with",
982
+ "Note: The addin can take deposits of any tokens and is not restricted to the community or council tokens only"
983
+ ],
984
+ "type": "publicKey"
985
+ },
986
+ {
987
+ "name": "maxVoterWeight",
988
+ "docs": [
989
+ "Max voter weight",
990
+ "The max voter weight provided by the addin for the given realm and governing_token_mint"
991
+ ],
992
+ "type": "u64"
993
+ },
994
+ {
995
+ "name": "maxVoterWeightExpiry",
996
+ "docs": [
997
+ "The slot when the max voting weight expires",
998
+ "It should be set to None if the weight never expires",
999
+ "If the max vote weight decays with time, for example for time locked based weights, then the expiry must be set",
1000
+ "As a pattern Revise instruction to update the max weight should be invoked before governance instruction within the same transaction",
1001
+ "and the expiry set to the current slot to provide up to date weight"
1002
+ ],
1003
+ "type": {
1004
+ "option": "u64"
1005
+ }
1006
+ },
1007
+ {
1008
+ "name": "reserved",
1009
+ "docs": [
1010
+ "Reserved space for future versions"
1011
+ ],
1012
+ "type": {
1013
+ "array": [
1014
+ "u8",
1015
+ 8
1016
+ ]
1017
+ }
1018
+ }
1019
+ ]
1020
+ }
1021
+ },
1022
+ {
1023
+ "name": "positionV0",
1024
+ "type": {
1025
+ "kind": "struct",
1026
+ "fields": [
1027
+ {
1028
+ "name": "registrar",
1029
+ "type": "publicKey"
1030
+ },
1031
+ {
1032
+ "name": "mint",
1033
+ "type": "publicKey"
1034
+ },
1035
+ {
1036
+ "name": "lockup",
1037
+ "type": {
1038
+ "defined": "Lockup"
1039
+ }
1040
+ },
1041
+ {
1042
+ "name": "amountDepositedNative",
1043
+ "docs": [
1044
+ "Amount in deposited, in native currency. Withdraws of vested tokens",
1045
+ "directly reduce this amount.",
1046
+ "",
1047
+ "This directly tracks the total amount added by the user. They may",
1048
+ "never withdraw more than this amount."
1049
+ ],
1050
+ "type": "u64"
1051
+ },
1052
+ {
1053
+ "name": "votingMintConfigIdx",
1054
+ "type": "u8"
1055
+ },
1056
+ {
1057
+ "name": "numActiveVotes",
1058
+ "type": "u16"
1059
+ },
1060
+ {
1061
+ "name": "genesisEnd",
1062
+ "type": "i64"
1063
+ },
1064
+ {
1065
+ "name": "bumpSeed",
1066
+ "type": "u8"
1067
+ }
1068
+ ]
1069
+ }
1070
+ },
1071
+ {
1072
+ "name": "registrar",
1073
+ "docs": [
1074
+ "Instance of a voting rights distributor."
1075
+ ],
1076
+ "type": {
1077
+ "kind": "struct",
1078
+ "fields": [
1079
+ {
1080
+ "name": "governanceProgramId",
1081
+ "type": "publicKey"
1082
+ },
1083
+ {
1084
+ "name": "realm",
1085
+ "type": "publicKey"
1086
+ },
1087
+ {
1088
+ "name": "realmGoverningTokenMint",
1089
+ "type": "publicKey"
1090
+ },
1091
+ {
1092
+ "name": "realmAuthority",
1093
+ "type": "publicKey"
1094
+ },
1095
+ {
1096
+ "name": "timeOffset",
1097
+ "docs": [
1098
+ "Debug only: time offset, to allow tests to move forward in time."
1099
+ ],
1100
+ "type": "i64"
1101
+ },
1102
+ {
1103
+ "name": "positionUpdateAuthority",
1104
+ "docs": [
1105
+ "Allows a program to wrap updates to the position (transfer or reset lockup)"
1106
+ ],
1107
+ "type": {
1108
+ "option": "publicKey"
1109
+ }
1110
+ },
1111
+ {
1112
+ "name": "votingMints",
1113
+ "docs": [
1114
+ "Storage for voting mints and their configuration.",
1115
+ "The length should be adjusted for one's use case."
1116
+ ],
1117
+ "type": {
1118
+ "array": [
1119
+ {
1120
+ "defined": "VotingMintConfigV0"
1121
+ },
1122
+ 4
1123
+ ]
1124
+ }
1125
+ },
1126
+ {
1127
+ "name": "bump",
1128
+ "type": "u8"
1129
+ }
1130
+ ]
1131
+ }
1132
+ },
1133
+ {
1134
+ "name": "voterWeightRecord",
1135
+ "docs": [
1136
+ "VoterWeightRecord account as defined in spl-governance-addin-api",
1137
+ "It's redefined here without account_discriminator for Anchor to treat it as native account",
1138
+ "",
1139
+ "The account is used as an api interface to provide voting power to the governance program from external addin contracts"
1140
+ ],
1141
+ "type": {
1142
+ "kind": "struct",
1143
+ "fields": [
1144
+ {
1145
+ "name": "realm",
1146
+ "docs": [
1147
+ "The Realm the VoterWeightRecord belongs to"
1148
+ ],
1149
+ "type": "publicKey"
1150
+ },
1151
+ {
1152
+ "name": "governingTokenMint",
1153
+ "docs": [
1154
+ "Governing Token Mint the VoterWeightRecord is associated with",
1155
+ "Note: The addin can take deposits of any tokens and is not restricted to the community or council tokens only"
1156
+ ],
1157
+ "type": "publicKey"
1158
+ },
1159
+ {
1160
+ "name": "governingTokenOwner",
1161
+ "docs": [
1162
+ "The owner of the governing token and voter",
1163
+ "This is the actual owner (voter) and corresponds to TokenOwnerRecord.governing_token_owner"
1164
+ ],
1165
+ "type": "publicKey"
1166
+ },
1167
+ {
1168
+ "name": "voterWeight",
1169
+ "docs": [
1170
+ "Voter's weight",
1171
+ "The weight of the voter provided by the addin for the given realm, governing_token_mint and governing_token_owner (voter)"
1172
+ ],
1173
+ "type": "u64"
1174
+ },
1175
+ {
1176
+ "name": "voterWeightExpiry",
1177
+ "docs": [
1178
+ "The slot when the voting weight expires",
1179
+ "It should be set to None if the weight never expires",
1180
+ "If the voter weight decays with time, for example for time locked based weights, then the expiry must be set",
1181
+ "As a common pattern Revise instruction to update the weight should be invoked before governance instruction within the same transaction",
1182
+ "and the expiry set to the current slot to provide up to date weight"
1183
+ ],
1184
+ "type": {
1185
+ "option": "u64"
1186
+ }
1187
+ },
1188
+ {
1189
+ "name": "weightAction",
1190
+ "docs": [
1191
+ "The governance action the voter's weight pertains to",
1192
+ "It allows to provided voter's weight specific to the particular action the weight is evaluated for",
1193
+ "When the action is provided then the governance program asserts the executing action is the same as specified by the addin"
1194
+ ],
1195
+ "type": {
1196
+ "option": {
1197
+ "defined": "VoterWeightAction"
1198
+ }
1199
+ }
1200
+ },
1201
+ {
1202
+ "name": "weightActionTarget",
1203
+ "docs": [
1204
+ "The target the voter's weight action pertains to",
1205
+ "It allows to provided voter's weight specific to the target the weight is evaluated for",
1206
+ "For example when addin supplies weight to vote on a particular proposal then it must specify the proposal as the action target",
1207
+ "When the target is provided then the governance program asserts the target is the same as specified by the addin"
1208
+ ],
1209
+ "type": {
1210
+ "option": "publicKey"
1211
+ }
1212
+ },
1213
+ {
1214
+ "name": "reserved",
1215
+ "docs": [
1216
+ "Reserved space for future versions"
1217
+ ],
1218
+ "type": {
1219
+ "array": [
1220
+ "u8",
1221
+ 8
1222
+ ]
1223
+ }
1224
+ }
1225
+ ]
1226
+ }
1227
+ }
1228
+ ],
1229
+ "types": [
1230
+ {
1231
+ "name": "LockingInfo",
1232
+ "type": {
1233
+ "kind": "struct",
1234
+ "fields": [
1235
+ {
1236
+ "name": "amount",
1237
+ "docs": [
1238
+ "Amount of locked tokens"
1239
+ ],
1240
+ "type": "u64"
1241
+ },
1242
+ {
1243
+ "name": "endTimestamp",
1244
+ "docs": [
1245
+ "Time at which the lockup fully ends (None for Constant lockup)"
1246
+ ],
1247
+ "type": {
1248
+ "option": "u64"
1249
+ }
1250
+ }
1251
+ ]
1252
+ }
1253
+ },
1254
+ {
1255
+ "name": "CastVoteArgsV0",
1256
+ "type": {
1257
+ "kind": "struct",
1258
+ "fields": [
1259
+ {
1260
+ "name": "proposal",
1261
+ "type": "publicKey"
1262
+ },
1263
+ {
1264
+ "name": "owner",
1265
+ "type": "publicKey"
1266
+ }
1267
+ ]
1268
+ }
1269
+ },
1270
+ {
1271
+ "name": "ConfigureVotingMintArgsV0",
1272
+ "type": {
1273
+ "kind": "struct",
1274
+ "fields": [
1275
+ {
1276
+ "name": "idx",
1277
+ "type": "u16"
1278
+ },
1279
+ {
1280
+ "name": "digitShift",
1281
+ "type": "i8"
1282
+ },
1283
+ {
1284
+ "name": "lockedVoteWeightScaledFactor",
1285
+ "type": "u64"
1286
+ },
1287
+ {
1288
+ "name": "minimumRequiredLockupSecs",
1289
+ "type": "u64"
1290
+ },
1291
+ {
1292
+ "name": "maxExtraLockupVoteWeightScaledFactor",
1293
+ "type": "u64"
1294
+ },
1295
+ {
1296
+ "name": "genesisVotePowerMultiplier",
1297
+ "type": "u8"
1298
+ },
1299
+ {
1300
+ "name": "genesisVotePowerMultiplierExpirationTs",
1301
+ "type": "i64"
1302
+ },
1303
+ {
1304
+ "name": "lockupSaturationSecs",
1305
+ "type": "u64"
1306
+ }
1307
+ ]
1308
+ }
1309
+ },
1310
+ {
1311
+ "name": "DepositArgsV0",
1312
+ "type": {
1313
+ "kind": "struct",
1314
+ "fields": [
1315
+ {
1316
+ "name": "amount",
1317
+ "type": "u64"
1318
+ }
1319
+ ]
1320
+ }
1321
+ },
1322
+ {
1323
+ "name": "InitializePositionArgsV0",
1324
+ "type": {
1325
+ "kind": "struct",
1326
+ "fields": [
1327
+ {
1328
+ "name": "kind",
1329
+ "type": {
1330
+ "defined": "LockupKind"
1331
+ }
1332
+ },
1333
+ {
1334
+ "name": "periods",
1335
+ "type": "u32"
1336
+ }
1337
+ ]
1338
+ }
1339
+ },
1340
+ {
1341
+ "name": "InitializeRegistrarArgsV0",
1342
+ "type": {
1343
+ "kind": "struct",
1344
+ "fields": [
1345
+ {
1346
+ "name": "positionUpdateAuthority",
1347
+ "type": {
1348
+ "option": "publicKey"
1349
+ }
1350
+ }
1351
+ ]
1352
+ }
1353
+ },
1354
+ {
1355
+ "name": "ResetLockupArgsV0",
1356
+ "type": {
1357
+ "kind": "struct",
1358
+ "fields": [
1359
+ {
1360
+ "name": "kind",
1361
+ "type": {
1362
+ "defined": "LockupKind"
1363
+ }
1364
+ },
1365
+ {
1366
+ "name": "periods",
1367
+ "type": "u32"
1368
+ }
1369
+ ]
1370
+ }
1371
+ },
1372
+ {
1373
+ "name": "TransferArgsV0",
1374
+ "type": {
1375
+ "kind": "struct",
1376
+ "fields": [
1377
+ {
1378
+ "name": "amount",
1379
+ "type": "u64"
1380
+ }
1381
+ ]
1382
+ }
1383
+ },
1384
+ {
1385
+ "name": "UpdateVoterWeightRecordArgsV0",
1386
+ "type": {
1387
+ "kind": "struct",
1388
+ "fields": [
1389
+ {
1390
+ "name": "voterWeightAction",
1391
+ "type": {
1392
+ "defined": "VoterWeightAction"
1393
+ }
1394
+ },
1395
+ {
1396
+ "name": "owner",
1397
+ "type": "publicKey"
1398
+ }
1399
+ ]
1400
+ }
1401
+ },
1402
+ {
1403
+ "name": "WithdrawArgsV0",
1404
+ "type": {
1405
+ "kind": "struct",
1406
+ "fields": [
1407
+ {
1408
+ "name": "amount",
1409
+ "type": "u64"
1410
+ }
1411
+ ]
1412
+ }
1413
+ },
1414
+ {
1415
+ "name": "Lockup",
1416
+ "type": {
1417
+ "kind": "struct",
1418
+ "fields": [
1419
+ {
1420
+ "name": "startTs",
1421
+ "docs": [
1422
+ "Start of the lockup.",
1423
+ "",
1424
+ "Note, that if start_ts is in the future, the funds are nevertheless",
1425
+ "locked up!",
1426
+ "",
1427
+ "Similarly vote power computations don't care about start_ts and always",
1428
+ "assume the full interval from now to end_ts."
1429
+ ],
1430
+ "type": "i64"
1431
+ },
1432
+ {
1433
+ "name": "endTs",
1434
+ "docs": [
1435
+ "End of the lockup."
1436
+ ],
1437
+ "type": "i64"
1438
+ },
1439
+ {
1440
+ "name": "kind",
1441
+ "docs": [
1442
+ "Type of lockup."
1443
+ ],
1444
+ "type": {
1445
+ "defined": "LockupKind"
1446
+ }
1447
+ }
1448
+ ]
1449
+ }
1450
+ },
1451
+ {
1452
+ "name": "VotingMintConfigV0",
1453
+ "docs": [
1454
+ "Exchange rate for an asset that can be used to mint voting rights.",
1455
+ "",
1456
+ "See documentation of configure_voting_mint for details on how",
1457
+ "native token amounts convert to vote weight."
1458
+ ],
1459
+ "type": {
1460
+ "kind": "struct",
1461
+ "fields": [
1462
+ {
1463
+ "name": "mint",
1464
+ "docs": [
1465
+ "Mint for this entry."
1466
+ ],
1467
+ "type": "publicKey"
1468
+ },
1469
+ {
1470
+ "name": "lockedVoteWeightScaledFactor",
1471
+ "docs": [
1472
+ "Vote weight factor for all funds in the account when locked up",
1473
+ "for minimum_required_lockup_secs, must be >= 0",
1474
+ "",
1475
+ "In 1/SCALED_FACTOR_BASE units."
1476
+ ],
1477
+ "type": "u64"
1478
+ },
1479
+ {
1480
+ "name": "minimumRequiredLockupSecs",
1481
+ "docs": [
1482
+ "Number of seconds of lockup needed to reach the locked_baseline_vote_weight_scaled_factor."
1483
+ ],
1484
+ "type": "u64"
1485
+ },
1486
+ {
1487
+ "name": "maxExtraLockupVoteWeightScaledFactor",
1488
+ "docs": [
1489
+ "Maximum extra vote weight factor for lockups.",
1490
+ "",
1491
+ "This is the extra votes gained for lockups lasting lockup_saturation_secs or",
1492
+ "longer. Shorter lockups receive only a fraction of the maximum extra vote weight,",
1493
+ "based on lockup_time divided by lockup_saturation_secs.",
1494
+ "",
1495
+ "In 1/SCALED_FACTOR_BASE units."
1496
+ ],
1497
+ "type": "u64"
1498
+ },
1499
+ {
1500
+ "name": "genesisVotePowerMultiplier",
1501
+ "docs": [
1502
+ "Genesis vote power multipliers for lockups.",
1503
+ "",
1504
+ "This is a multiplier applied to voting power for lockups created before",
1505
+ "genesis_extra_lockup_expiration"
1506
+ ],
1507
+ "type": "u8"
1508
+ },
1509
+ {
1510
+ "name": "genesisVotePowerMultiplierExpirationTs",
1511
+ "docs": [
1512
+ "Timestamp of when to stop applying the genesis_extra_lockup_vote_weight_scaled_factor"
1513
+ ],
1514
+ "type": "i64"
1515
+ },
1516
+ {
1517
+ "name": "lockupSaturationSecs",
1518
+ "docs": [
1519
+ "Number of seconds of lockup needed to reach the maximum lockup bonus."
1520
+ ],
1521
+ "type": "u64"
1522
+ },
1523
+ {
1524
+ "name": "digitShift",
1525
+ "docs": [
1526
+ "Number of digits to shift native amounts, applying a 10^digit_shift factor."
1527
+ ],
1528
+ "type": "i8"
1529
+ }
1530
+ ]
1531
+ }
1532
+ },
1533
+ {
1534
+ "name": "LockupKind",
1535
+ "type": {
1536
+ "kind": "enum",
1537
+ "variants": [
1538
+ {
1539
+ "name": "None"
1540
+ },
1541
+ {
1542
+ "name": "Cliff"
1543
+ },
1544
+ {
1545
+ "name": "Constant"
1546
+ }
1547
+ ]
1548
+ }
1549
+ },
1550
+ {
1551
+ "name": "VoterWeightAction",
1552
+ "docs": [
1553
+ "VoterWeightAction enum as defined in spl-governance-addin-api",
1554
+ "It's redefined here for Anchor to export it to IDL"
1555
+ ],
1556
+ "type": {
1557
+ "kind": "enum",
1558
+ "variants": [
1559
+ {
1560
+ "name": "CastVote"
1561
+ },
1562
+ {
1563
+ "name": "CommentProposal"
1564
+ },
1565
+ {
1566
+ "name": "CreateGovernance"
1567
+ },
1568
+ {
1569
+ "name": "CreateProposal"
1570
+ },
1571
+ {
1572
+ "name": "SignOffProposal"
1573
+ }
1574
+ ]
1575
+ }
1576
+ }
1577
+ ],
1578
+ "events": [
1579
+ {
1580
+ "name": "VoterInfo",
1581
+ "fields": [
1582
+ {
1583
+ "name": "votingPower",
1584
+ "type": "u64",
1585
+ "index": false
1586
+ },
1587
+ {
1588
+ "name": "votingPowerLocked",
1589
+ "type": "u64",
1590
+ "index": false
1591
+ }
1592
+ ]
1593
+ },
1594
+ {
1595
+ "name": "DepositEntryInfo",
1596
+ "fields": [
1597
+ {
1598
+ "name": "depositEntryIndex",
1599
+ "type": "u8",
1600
+ "index": false
1601
+ },
1602
+ {
1603
+ "name": "votingMintConfigIndex",
1604
+ "type": "u8",
1605
+ "index": false
1606
+ },
1607
+ {
1608
+ "name": "unlocked",
1609
+ "type": "u64",
1610
+ "index": false
1611
+ },
1612
+ {
1613
+ "name": "votingPower",
1614
+ "type": "u64",
1615
+ "index": false
1616
+ },
1617
+ {
1618
+ "name": "votingPowerLocked",
1619
+ "type": "u64",
1620
+ "index": false
1621
+ },
1622
+ {
1623
+ "name": "locking",
1624
+ "type": {
1625
+ "option": {
1626
+ "defined": "LockingInfo"
1627
+ }
1628
+ },
1629
+ "index": false
1630
+ }
1631
+ ]
1632
+ }
1633
+ ],
1634
+ "errors": [
1635
+ {
1636
+ "code": 6000,
1637
+ "name": "InvalidRate",
1638
+ "msg": "Exchange rate must be greater than zero"
1639
+ },
1640
+ {
1641
+ "code": 6001,
1642
+ "name": "RatesFull",
1643
+ "msg": ""
1644
+ },
1645
+ {
1646
+ "code": 6002,
1647
+ "name": "VotingMintNotFound",
1648
+ "msg": ""
1649
+ },
1650
+ {
1651
+ "code": 6003,
1652
+ "name": "DepositEntryNotFound",
1653
+ "msg": ""
1654
+ },
1655
+ {
1656
+ "code": 6004,
1657
+ "name": "DepositEntryFull",
1658
+ "msg": ""
1659
+ },
1660
+ {
1661
+ "code": 6005,
1662
+ "name": "VotingTokenNonZero",
1663
+ "msg": ""
1664
+ },
1665
+ {
1666
+ "code": 6006,
1667
+ "name": "OutOfBoundsDepositEntryIndex",
1668
+ "msg": ""
1669
+ },
1670
+ {
1671
+ "code": 6007,
1672
+ "name": "UnusedDepositEntryIndex",
1673
+ "msg": ""
1674
+ },
1675
+ {
1676
+ "code": 6008,
1677
+ "name": "InsufficientUnlockedTokens",
1678
+ "msg": ""
1679
+ },
1680
+ {
1681
+ "code": 6009,
1682
+ "name": "UnableToConvert",
1683
+ "msg": ""
1684
+ },
1685
+ {
1686
+ "code": 6010,
1687
+ "name": "InvalidLockupPeriod",
1688
+ "msg": ""
1689
+ },
1690
+ {
1691
+ "code": 6011,
1692
+ "name": "InvalidEndTs",
1693
+ "msg": ""
1694
+ },
1695
+ {
1696
+ "code": 6012,
1697
+ "name": "InvalidDays",
1698
+ "msg": ""
1699
+ },
1700
+ {
1701
+ "code": 6013,
1702
+ "name": "VotingMintConfigIndexAlreadyInUse",
1703
+ "msg": ""
1704
+ },
1705
+ {
1706
+ "code": 6014,
1707
+ "name": "OutOfBoundsVotingMintConfigIndex",
1708
+ "msg": ""
1709
+ },
1710
+ {
1711
+ "code": 6015,
1712
+ "name": "InvalidDecimals",
1713
+ "msg": "Exchange rate decimals cannot be larger than registrar decimals"
1714
+ },
1715
+ {
1716
+ "code": 6016,
1717
+ "name": "InvalidToDepositAndWithdrawInOneSlot",
1718
+ "msg": ""
1719
+ },
1720
+ {
1721
+ "code": 6017,
1722
+ "name": "ShouldBeTheFirstIxInATx",
1723
+ "msg": ""
1724
+ },
1725
+ {
1726
+ "code": 6018,
1727
+ "name": "ForbiddenCpi",
1728
+ "msg": ""
1729
+ },
1730
+ {
1731
+ "code": 6019,
1732
+ "name": "InvalidMint",
1733
+ "msg": ""
1734
+ },
1735
+ {
1736
+ "code": 6020,
1737
+ "name": "DebugInstruction",
1738
+ "msg": ""
1739
+ },
1740
+ {
1741
+ "code": 6021,
1742
+ "name": "ClawbackNotAllowedOnDeposit",
1743
+ "msg": ""
1744
+ },
1745
+ {
1746
+ "code": 6022,
1747
+ "name": "DepositStillLocked",
1748
+ "msg": ""
1749
+ },
1750
+ {
1751
+ "code": 6023,
1752
+ "name": "InvalidAuthority",
1753
+ "msg": ""
1754
+ },
1755
+ {
1756
+ "code": 6024,
1757
+ "name": "InvalidTokenOwnerRecord",
1758
+ "msg": ""
1759
+ },
1760
+ {
1761
+ "code": 6025,
1762
+ "name": "InvalidRealmAuthority",
1763
+ "msg": ""
1764
+ },
1765
+ {
1766
+ "code": 6026,
1767
+ "name": "VoterWeightOverflow",
1768
+ "msg": ""
1769
+ },
1770
+ {
1771
+ "code": 6027,
1772
+ "name": "LockupSaturationMustBePositive",
1773
+ "msg": ""
1774
+ },
1775
+ {
1776
+ "code": 6028,
1777
+ "name": "VotingMintConfiguredWithDifferentIndex",
1778
+ "msg": ""
1779
+ },
1780
+ {
1781
+ "code": 6029,
1782
+ "name": "InternalProgramError",
1783
+ "msg": ""
1784
+ },
1785
+ {
1786
+ "code": 6030,
1787
+ "name": "InsufficientLockedTokens",
1788
+ "msg": ""
1789
+ },
1790
+ {
1791
+ "code": 6031,
1792
+ "name": "MustKeepTokensLocked",
1793
+ "msg": ""
1794
+ },
1795
+ {
1796
+ "code": 6032,
1797
+ "name": "InvalidLockupKind",
1798
+ "msg": ""
1799
+ },
1800
+ {
1801
+ "code": 6033,
1802
+ "name": "InvalidChangeToClawbackDepositEntry",
1803
+ "msg": ""
1804
+ },
1805
+ {
1806
+ "code": 6034,
1807
+ "name": "InternalErrorBadLockupVoteWeight",
1808
+ "msg": ""
1809
+ },
1810
+ {
1811
+ "code": 6035,
1812
+ "name": "DepositStartTooFarInFuture",
1813
+ "msg": ""
1814
+ },
1815
+ {
1816
+ "code": 6036,
1817
+ "name": "VaultTokenNonZero",
1818
+ "msg": ""
1819
+ },
1820
+ {
1821
+ "code": 6037,
1822
+ "name": "InvalidTimestampArguments",
1823
+ "msg": ""
1824
+ },
1825
+ {
1826
+ "code": 6038,
1827
+ "name": "DepositLockupLessThanVotingMintConfigMinRequired",
1828
+ "msg": ""
1829
+ },
1830
+ {
1831
+ "code": 6039,
1832
+ "name": "CastVoteIsNotAllowed",
1833
+ "msg": "Cast vote is not allowed on update_voter_weight_record_v0 endpoint"
1834
+ },
1835
+ {
1836
+ "code": 6040,
1837
+ "name": "InvalidProgramId",
1838
+ "msg": "Program id was not what was expected"
1839
+ },
1840
+ {
1841
+ "code": 6041,
1842
+ "name": "InvalidMintOwner",
1843
+ "msg": ""
1844
+ },
1845
+ {
1846
+ "code": 6042,
1847
+ "name": "InvalidMintAmount",
1848
+ "msg": ""
1849
+ },
1850
+ {
1851
+ "code": 6043,
1852
+ "name": "DuplicatedNftDetected",
1853
+ "msg": ""
1854
+ },
1855
+ {
1856
+ "code": 6044,
1857
+ "name": "InvalidTokenOwnerForVoterWeightRecord",
1858
+ "msg": ""
1859
+ },
1860
+ {
1861
+ "code": 6045,
1862
+ "name": "NftAlreadyVoted",
1863
+ "msg": ""
1864
+ },
1865
+ {
1866
+ "code": 6046,
1867
+ "name": "InvalidProposalForNftVoteRecord",
1868
+ "msg": ""
1869
+ },
1870
+ {
1871
+ "code": 6047,
1872
+ "name": "InvalidTokenOwnerForNftVoteRecord",
1873
+ "msg": ""
1874
+ },
1875
+ {
1876
+ "code": 6048,
1877
+ "name": "UninitializedAccount",
1878
+ "msg": ""
1879
+ },
1880
+ {
1881
+ "code": 6049,
1882
+ "name": "PositionNotWritable",
1883
+ "msg": ""
1884
+ },
1885
+ {
1886
+ "code": 6050,
1887
+ "name": "InvalidVoteRecordForNftVoteRecord",
1888
+ "msg": ""
1889
+ },
1890
+ {
1891
+ "code": 6051,
1892
+ "name": "VoteRecordMustBeWithdrawn",
1893
+ "msg": ""
1894
+ },
1895
+ {
1896
+ "code": 6052,
1897
+ "name": "VoterWeightRecordMustBeExpired",
1898
+ "msg": ""
1899
+ },
1900
+ {
1901
+ "code": 6053,
1902
+ "name": "InvalidMintForPosition",
1903
+ "msg": ""
1904
+ },
1905
+ {
1906
+ "code": 6054,
1907
+ "name": "InvalidOwner",
1908
+ "msg": ""
1909
+ },
1910
+ {
1911
+ "code": 6055,
1912
+ "name": "NoDepositOnGenesisPositions",
1913
+ "msg": "You may not deposit additional tokens on a position created during the genesis period that still has the genesis multiplier"
1914
+ },
1915
+ {
1916
+ "code": 6056,
1917
+ "name": "ActiveVotesExist",
1918
+ "msg": "Cannot change a position while active votes exist"
1919
+ },
1920
+ {
1921
+ "code": 6057,
1922
+ "name": "UnauthorizedPositionUpdateAuthority",
1923
+ "msg": "Position update authority must sign off on this transaction"
1924
+ }
1925
+ ]
1926
+ };
1927
+ //# sourceMappingURL=voter_stake_registry.js.map