@helium/idls 0.0.10 → 0.0.12

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