@helium/spl-utils 0.9.19 → 0.9.20

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 (47) hide show
  1. package/lib/cjs/fetchBackwardsCompatibleIdl.js +31 -15475
  2. package/lib/cjs/fetchBackwardsCompatibleIdl.js.map +1 -1
  3. package/lib/cjs/idl/circuit_breaker.json +550 -0
  4. package/lib/cjs/idl/data_credits.json +1235 -0
  5. package/lib/cjs/idl/fanout.json +736 -0
  6. package/lib/cjs/idl/helium_entity_manager.json +4602 -0
  7. package/lib/cjs/idl/helium_sub_daos.json +3286 -0
  8. package/lib/cjs/idl/hexboosting.json +651 -0
  9. package/lib/cjs/idl/lazy_distributor.json +1239 -0
  10. package/lib/cjs/idl/lazy_transactions.json +538 -0
  11. package/lib/cjs/idl/mobile_entity_manager.json +1374 -0
  12. package/lib/cjs/idl/no_emit.json +92 -0
  13. package/lib/cjs/idl/price_oracle.json +256 -0
  14. package/lib/cjs/idl/rewards_oracle.json +167 -0
  15. package/lib/cjs/idl/treasury_management.json +423 -0
  16. package/lib/cjs/idl/voter_stake_registry.json +2224 -0
  17. package/lib/cjs/priorityFees.js +9 -6
  18. package/lib/cjs/priorityFees.js.map +1 -1
  19. package/lib/cjs/transaction.js +2 -2
  20. package/lib/cjs/transaction.js.map +1 -1
  21. package/lib/esm/src/fetchBackwardsCompatibleIdl.js +28 -15475
  22. package/lib/esm/src/fetchBackwardsCompatibleIdl.js.map +1 -1
  23. package/lib/esm/src/idl/circuit_breaker.json +550 -0
  24. package/lib/esm/src/idl/data_credits.json +1235 -0
  25. package/lib/esm/src/idl/fanout.json +736 -0
  26. package/lib/esm/src/idl/helium_entity_manager.json +4602 -0
  27. package/lib/esm/src/idl/helium_sub_daos.json +3286 -0
  28. package/lib/esm/src/idl/hexboosting.json +651 -0
  29. package/lib/esm/src/idl/lazy_distributor.json +1239 -0
  30. package/lib/esm/src/idl/lazy_transactions.json +538 -0
  31. package/lib/esm/src/idl/mobile_entity_manager.json +1374 -0
  32. package/lib/esm/src/idl/no_emit.json +92 -0
  33. package/lib/esm/src/idl/price_oracle.json +256 -0
  34. package/lib/esm/src/idl/rewards_oracle.json +167 -0
  35. package/lib/esm/src/idl/treasury_management.json +423 -0
  36. package/lib/esm/src/idl/voter_stake_registry.json +2224 -0
  37. package/lib/esm/src/priorityFees.js +12 -5
  38. package/lib/esm/src/priorityFees.js.map +1 -1
  39. package/lib/esm/src/transaction.js +3 -3
  40. package/lib/esm/src/transaction.js.map +1 -1
  41. package/lib/esm/tsconfig.esm.tsbuildinfo +1 -1
  42. package/lib/types/src/fetchBackwardsCompatibleIdl.d.ts.map +1 -1
  43. package/lib/types/src/priorityFees.d.ts +5 -2
  44. package/lib/types/src/priorityFees.d.ts.map +1 -1
  45. package/lib/types/src/transaction.d.ts +3 -1
  46. package/lib/types/src/transaction.d.ts.map +1 -1
  47. package/package.json +4 -4
@@ -0,0 +1,2224 @@
1
+ {
2
+ "version": "0.3.4",
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": "collection",
39
+ "isMut": true,
40
+ "isSigner": false,
41
+ "pda": {
42
+ "seeds": [
43
+ {
44
+ "kind": "const",
45
+ "type": "string",
46
+ "value": "collection"
47
+ },
48
+ {
49
+ "kind": "account",
50
+ "type": "publicKey",
51
+ "account": "Registrar",
52
+ "path": "registrar"
53
+ }
54
+ ]
55
+ }
56
+ },
57
+ {
58
+ "name": "metadata",
59
+ "isMut": true,
60
+ "isSigner": false,
61
+ "pda": {
62
+ "seeds": [
63
+ {
64
+ "kind": "const",
65
+ "type": "string",
66
+ "value": "metadata"
67
+ },
68
+ {
69
+ "kind": "account",
70
+ "type": "publicKey",
71
+ "path": "token_metadata_program"
72
+ },
73
+ {
74
+ "kind": "account",
75
+ "type": "publicKey",
76
+ "account": "Mint",
77
+ "path": "collection"
78
+ }
79
+ ],
80
+ "programId": {
81
+ "kind": "account",
82
+ "type": "publicKey",
83
+ "path": "token_metadata_program"
84
+ }
85
+ }
86
+ },
87
+ {
88
+ "name": "masterEdition",
89
+ "isMut": true,
90
+ "isSigner": false,
91
+ "pda": {
92
+ "seeds": [
93
+ {
94
+ "kind": "const",
95
+ "type": "string",
96
+ "value": "metadata"
97
+ },
98
+ {
99
+ "kind": "account",
100
+ "type": "publicKey",
101
+ "path": "token_metadata_program"
102
+ },
103
+ {
104
+ "kind": "account",
105
+ "type": "publicKey",
106
+ "account": "Mint",
107
+ "path": "collection"
108
+ },
109
+ {
110
+ "kind": "const",
111
+ "type": "string",
112
+ "value": "edition"
113
+ }
114
+ ],
115
+ "programId": {
116
+ "kind": "account",
117
+ "type": "publicKey",
118
+ "path": "token_metadata_program"
119
+ }
120
+ }
121
+ },
122
+ {
123
+ "name": "tokenAccount",
124
+ "isMut": true,
125
+ "isSigner": false
126
+ },
127
+ {
128
+ "name": "realm",
129
+ "isMut": false,
130
+ "isSigner": false,
131
+ "docs": [
132
+ "An spl-governance realm",
133
+ "",
134
+ "realm is validated in the instruction:",
135
+ "- realm is owned by the governance_program_id",
136
+ "- realm_governing_token_mint must be the community or council mint",
137
+ "- realm_authority is realm.authority"
138
+ ]
139
+ },
140
+ {
141
+ "name": "governanceProgramId",
142
+ "isMut": false,
143
+ "isSigner": false,
144
+ "docs": [
145
+ "The program id of the spl-governance program the realm belongs to."
146
+ ]
147
+ },
148
+ {
149
+ "name": "realmGoverningTokenMint",
150
+ "isMut": false,
151
+ "isSigner": false,
152
+ "docs": [
153
+ "Either the realm community mint or the council mint."
154
+ ]
155
+ },
156
+ {
157
+ "name": "realmAuthority",
158
+ "isMut": false,
159
+ "isSigner": true
160
+ },
161
+ {
162
+ "name": "payer",
163
+ "isMut": true,
164
+ "isSigner": true
165
+ },
166
+ {
167
+ "name": "tokenMetadataProgram",
168
+ "isMut": false,
169
+ "isSigner": false
170
+ },
171
+ {
172
+ "name": "associatedTokenProgram",
173
+ "isMut": false,
174
+ "isSigner": false
175
+ },
176
+ {
177
+ "name": "systemProgram",
178
+ "isMut": false,
179
+ "isSigner": false
180
+ },
181
+ {
182
+ "name": "tokenProgram",
183
+ "isMut": false,
184
+ "isSigner": false
185
+ },
186
+ {
187
+ "name": "proxyConfig",
188
+ "isMut": false,
189
+ "isSigner": false,
190
+ "isOptional": true
191
+ }
192
+ ],
193
+ "args": [
194
+ {
195
+ "name": "args",
196
+ "type": {
197
+ "defined": "InitializeRegistrarArgsV0"
198
+ }
199
+ }
200
+ ]
201
+ },
202
+ {
203
+ "name": "configureVotingMintV0",
204
+ "accounts": [
205
+ {
206
+ "name": "registrar",
207
+ "isMut": true,
208
+ "isSigner": false,
209
+ "relations": [
210
+ "realm_authority"
211
+ ]
212
+ },
213
+ {
214
+ "name": "realmAuthority",
215
+ "isMut": false,
216
+ "isSigner": true
217
+ },
218
+ {
219
+ "name": "mint",
220
+ "isMut": false,
221
+ "isSigner": false,
222
+ "docs": [
223
+ "Tokens of this mint will produce vote weight"
224
+ ]
225
+ },
226
+ {
227
+ "name": "payer",
228
+ "isMut": true,
229
+ "isSigner": true
230
+ },
231
+ {
232
+ "name": "systemProgram",
233
+ "isMut": false,
234
+ "isSigner": false
235
+ }
236
+ ],
237
+ "args": [
238
+ {
239
+ "name": "args",
240
+ "type": {
241
+ "defined": "ConfigureVotingMintArgsV0"
242
+ }
243
+ }
244
+ ]
245
+ },
246
+ {
247
+ "name": "initializePositionV0",
248
+ "accounts": [
249
+ {
250
+ "name": "registrar",
251
+ "isMut": false,
252
+ "isSigner": false,
253
+ "relations": [
254
+ "collection"
255
+ ]
256
+ },
257
+ {
258
+ "name": "collection",
259
+ "isMut": false,
260
+ "isSigner": false
261
+ },
262
+ {
263
+ "name": "collectionMetadata",
264
+ "isMut": true,
265
+ "isSigner": false,
266
+ "pda": {
267
+ "seeds": [
268
+ {
269
+ "kind": "const",
270
+ "type": "string",
271
+ "value": "metadata"
272
+ },
273
+ {
274
+ "kind": "account",
275
+ "type": "publicKey",
276
+ "path": "token_metadata_program"
277
+ },
278
+ {
279
+ "kind": "account",
280
+ "type": "publicKey",
281
+ "account": "Mint",
282
+ "path": "collection"
283
+ }
284
+ ],
285
+ "programId": {
286
+ "kind": "account",
287
+ "type": "publicKey",
288
+ "path": "token_metadata_program"
289
+ }
290
+ }
291
+ },
292
+ {
293
+ "name": "collectionMasterEdition",
294
+ "isMut": false,
295
+ "isSigner": false,
296
+ "pda": {
297
+ "seeds": [
298
+ {
299
+ "kind": "const",
300
+ "type": "string",
301
+ "value": "metadata"
302
+ },
303
+ {
304
+ "kind": "account",
305
+ "type": "publicKey",
306
+ "path": "token_metadata_program"
307
+ },
308
+ {
309
+ "kind": "account",
310
+ "type": "publicKey",
311
+ "account": "Mint",
312
+ "path": "collection"
313
+ },
314
+ {
315
+ "kind": "const",
316
+ "type": "string",
317
+ "value": "edition"
318
+ }
319
+ ],
320
+ "programId": {
321
+ "kind": "account",
322
+ "type": "publicKey",
323
+ "path": "token_metadata_program"
324
+ }
325
+ }
326
+ },
327
+ {
328
+ "name": "position",
329
+ "isMut": true,
330
+ "isSigner": false,
331
+ "pda": {
332
+ "seeds": [
333
+ {
334
+ "kind": "const",
335
+ "type": "string",
336
+ "value": "position"
337
+ },
338
+ {
339
+ "kind": "account",
340
+ "type": "publicKey",
341
+ "account": "Mint",
342
+ "path": "mint"
343
+ }
344
+ ]
345
+ }
346
+ },
347
+ {
348
+ "name": "mint",
349
+ "isMut": true,
350
+ "isSigner": false
351
+ },
352
+ {
353
+ "name": "metadata",
354
+ "isMut": true,
355
+ "isSigner": false,
356
+ "pda": {
357
+ "seeds": [
358
+ {
359
+ "kind": "const",
360
+ "type": "string",
361
+ "value": "metadata"
362
+ },
363
+ {
364
+ "kind": "account",
365
+ "type": "publicKey",
366
+ "path": "token_metadata_program"
367
+ },
368
+ {
369
+ "kind": "account",
370
+ "type": "publicKey",
371
+ "account": "Mint",
372
+ "path": "mint"
373
+ }
374
+ ],
375
+ "programId": {
376
+ "kind": "account",
377
+ "type": "publicKey",
378
+ "path": "token_metadata_program"
379
+ }
380
+ }
381
+ },
382
+ {
383
+ "name": "masterEdition",
384
+ "isMut": true,
385
+ "isSigner": false,
386
+ "pda": {
387
+ "seeds": [
388
+ {
389
+ "kind": "const",
390
+ "type": "string",
391
+ "value": "metadata"
392
+ },
393
+ {
394
+ "kind": "account",
395
+ "type": "publicKey",
396
+ "path": "token_metadata_program"
397
+ },
398
+ {
399
+ "kind": "account",
400
+ "type": "publicKey",
401
+ "account": "Mint",
402
+ "path": "mint"
403
+ },
404
+ {
405
+ "kind": "const",
406
+ "type": "string",
407
+ "value": "edition"
408
+ }
409
+ ],
410
+ "programId": {
411
+ "kind": "account",
412
+ "type": "publicKey",
413
+ "path": "token_metadata_program"
414
+ }
415
+ }
416
+ },
417
+ {
418
+ "name": "positionTokenAccount",
419
+ "isMut": true,
420
+ "isSigner": false
421
+ },
422
+ {
423
+ "name": "recipient",
424
+ "isMut": false,
425
+ "isSigner": false
426
+ },
427
+ {
428
+ "name": "vault",
429
+ "isMut": true,
430
+ "isSigner": false
431
+ },
432
+ {
433
+ "name": "payer",
434
+ "isMut": true,
435
+ "isSigner": true
436
+ },
437
+ {
438
+ "name": "depositMint",
439
+ "isMut": false,
440
+ "isSigner": false
441
+ },
442
+ {
443
+ "name": "systemProgram",
444
+ "isMut": false,
445
+ "isSigner": false
446
+ },
447
+ {
448
+ "name": "tokenProgram",
449
+ "isMut": false,
450
+ "isSigner": false
451
+ },
452
+ {
453
+ "name": "associatedTokenProgram",
454
+ "isMut": false,
455
+ "isSigner": false
456
+ },
457
+ {
458
+ "name": "tokenMetadataProgram",
459
+ "isMut": false,
460
+ "isSigner": false
461
+ }
462
+ ],
463
+ "args": [
464
+ {
465
+ "name": "args",
466
+ "type": {
467
+ "defined": "InitializePositionArgsV0"
468
+ }
469
+ }
470
+ ]
471
+ },
472
+ {
473
+ "name": "depositV0",
474
+ "accounts": [
475
+ {
476
+ "name": "registrar",
477
+ "isMut": false,
478
+ "isSigner": false
479
+ },
480
+ {
481
+ "name": "position",
482
+ "isMut": true,
483
+ "isSigner": false,
484
+ "relations": [
485
+ "registrar"
486
+ ]
487
+ },
488
+ {
489
+ "name": "vault",
490
+ "isMut": true,
491
+ "isSigner": false
492
+ },
493
+ {
494
+ "name": "mint",
495
+ "isMut": false,
496
+ "isSigner": false
497
+ },
498
+ {
499
+ "name": "depositToken",
500
+ "isMut": true,
501
+ "isSigner": false,
502
+ "relations": [
503
+ "mint"
504
+ ]
505
+ },
506
+ {
507
+ "name": "depositAuthority",
508
+ "isMut": false,
509
+ "isSigner": true
510
+ },
511
+ {
512
+ "name": "tokenProgram",
513
+ "isMut": false,
514
+ "isSigner": false
515
+ }
516
+ ],
517
+ "args": [
518
+ {
519
+ "name": "args",
520
+ "type": {
521
+ "defined": "DepositArgsV0"
522
+ }
523
+ }
524
+ ]
525
+ },
526
+ {
527
+ "name": "withdrawV0",
528
+ "accounts": [
529
+ {
530
+ "name": "positionAuthority",
531
+ "isMut": true,
532
+ "isSigner": true
533
+ },
534
+ {
535
+ "name": "registrar",
536
+ "isMut": false,
537
+ "isSigner": false
538
+ },
539
+ {
540
+ "name": "position",
541
+ "isMut": true,
542
+ "isSigner": false,
543
+ "pda": {
544
+ "seeds": [
545
+ {
546
+ "kind": "const",
547
+ "type": "string",
548
+ "value": "position"
549
+ },
550
+ {
551
+ "kind": "account",
552
+ "type": "publicKey",
553
+ "account": "Mint",
554
+ "path": "mint"
555
+ }
556
+ ]
557
+ },
558
+ "relations": [
559
+ "registrar",
560
+ "mint"
561
+ ]
562
+ },
563
+ {
564
+ "name": "mint",
565
+ "isMut": false,
566
+ "isSigner": false
567
+ },
568
+ {
569
+ "name": "positionTokenAccount",
570
+ "isMut": true,
571
+ "isSigner": false
572
+ },
573
+ {
574
+ "name": "vault",
575
+ "isMut": true,
576
+ "isSigner": false
577
+ },
578
+ {
579
+ "name": "depositMint",
580
+ "isMut": false,
581
+ "isSigner": false
582
+ },
583
+ {
584
+ "name": "destination",
585
+ "isMut": true,
586
+ "isSigner": false
587
+ },
588
+ {
589
+ "name": "associatedTokenProgram",
590
+ "isMut": false,
591
+ "isSigner": false
592
+ },
593
+ {
594
+ "name": "tokenProgram",
595
+ "isMut": false,
596
+ "isSigner": false
597
+ },
598
+ {
599
+ "name": "systemProgram",
600
+ "isMut": false,
601
+ "isSigner": false
602
+ }
603
+ ],
604
+ "args": [
605
+ {
606
+ "name": "args",
607
+ "type": {
608
+ "defined": "WithdrawArgsV0"
609
+ }
610
+ }
611
+ ]
612
+ },
613
+ {
614
+ "name": "closePositionV0",
615
+ "accounts": [
616
+ {
617
+ "name": "solDestination",
618
+ "isMut": true,
619
+ "isSigner": false
620
+ },
621
+ {
622
+ "name": "position",
623
+ "isMut": true,
624
+ "isSigner": false,
625
+ "pda": {
626
+ "seeds": [
627
+ {
628
+ "kind": "const",
629
+ "type": "string",
630
+ "value": "position"
631
+ },
632
+ {
633
+ "kind": "account",
634
+ "type": "publicKey",
635
+ "account": "Mint",
636
+ "path": "mint"
637
+ }
638
+ ]
639
+ },
640
+ "relations": [
641
+ "mint",
642
+ "registrar"
643
+ ]
644
+ },
645
+ {
646
+ "name": "registrar",
647
+ "isMut": false,
648
+ "isSigner": false
649
+ },
650
+ {
651
+ "name": "mint",
652
+ "isMut": true,
653
+ "isSigner": false
654
+ },
655
+ {
656
+ "name": "positionTokenAccount",
657
+ "isMut": true,
658
+ "isSigner": false
659
+ },
660
+ {
661
+ "name": "positionAuthority",
662
+ "isMut": false,
663
+ "isSigner": true
664
+ },
665
+ {
666
+ "name": "tokenProgram",
667
+ "isMut": false,
668
+ "isSigner": false
669
+ },
670
+ {
671
+ "name": "tokenMetadataProgram",
672
+ "isMut": false,
673
+ "isSigner": false
674
+ }
675
+ ],
676
+ "args": []
677
+ },
678
+ {
679
+ "name": "resetLockupV0",
680
+ "accounts": [
681
+ {
682
+ "name": "registrar",
683
+ "isMut": false,
684
+ "isSigner": false
685
+ },
686
+ {
687
+ "name": "positionUpdateAuthority",
688
+ "isMut": false,
689
+ "isSigner": true
690
+ },
691
+ {
692
+ "name": "position",
693
+ "isMut": true,
694
+ "isSigner": false,
695
+ "pda": {
696
+ "seeds": [
697
+ {
698
+ "kind": "const",
699
+ "type": "string",
700
+ "value": "position"
701
+ },
702
+ {
703
+ "kind": "account",
704
+ "type": "publicKey",
705
+ "account": "Mint",
706
+ "path": "mint"
707
+ }
708
+ ]
709
+ },
710
+ "relations": [
711
+ "registrar",
712
+ "mint"
713
+ ]
714
+ },
715
+ {
716
+ "name": "mint",
717
+ "isMut": false,
718
+ "isSigner": false
719
+ },
720
+ {
721
+ "name": "positionTokenAccount",
722
+ "isMut": false,
723
+ "isSigner": false
724
+ },
725
+ {
726
+ "name": "positionAuthority",
727
+ "isMut": false,
728
+ "isSigner": true
729
+ }
730
+ ],
731
+ "args": [
732
+ {
733
+ "name": "args",
734
+ "type": {
735
+ "defined": "ResetLockupArgsV0"
736
+ }
737
+ }
738
+ ]
739
+ },
740
+ {
741
+ "name": "transferV0",
742
+ "accounts": [
743
+ {
744
+ "name": "registrar",
745
+ "isMut": false,
746
+ "isSigner": false
747
+ },
748
+ {
749
+ "name": "positionUpdateAuthority",
750
+ "isMut": false,
751
+ "isSigner": true
752
+ },
753
+ {
754
+ "name": "sourcePosition",
755
+ "isMut": true,
756
+ "isSigner": false,
757
+ "pda": {
758
+ "seeds": [
759
+ {
760
+ "kind": "const",
761
+ "type": "string",
762
+ "value": "position"
763
+ },
764
+ {
765
+ "kind": "account",
766
+ "type": "publicKey",
767
+ "account": "Mint",
768
+ "path": "mint"
769
+ }
770
+ ]
771
+ },
772
+ "relations": [
773
+ "registrar",
774
+ "mint"
775
+ ]
776
+ },
777
+ {
778
+ "name": "mint",
779
+ "isMut": false,
780
+ "isSigner": false
781
+ },
782
+ {
783
+ "name": "positionTokenAccount",
784
+ "isMut": false,
785
+ "isSigner": false
786
+ },
787
+ {
788
+ "name": "positionAuthority",
789
+ "isMut": false,
790
+ "isSigner": true
791
+ },
792
+ {
793
+ "name": "targetPosition",
794
+ "isMut": true,
795
+ "isSigner": false,
796
+ "relations": [
797
+ "registrar"
798
+ ]
799
+ },
800
+ {
801
+ "name": "depositMint",
802
+ "isMut": false,
803
+ "isSigner": false
804
+ },
805
+ {
806
+ "name": "sourceVault",
807
+ "isMut": true,
808
+ "isSigner": false
809
+ },
810
+ {
811
+ "name": "targetVault",
812
+ "isMut": true,
813
+ "isSigner": false
814
+ },
815
+ {
816
+ "name": "tokenProgram",
817
+ "isMut": false,
818
+ "isSigner": false
819
+ },
820
+ {
821
+ "name": "associatedTokenProgram",
822
+ "isMut": false,
823
+ "isSigner": false
824
+ }
825
+ ],
826
+ "args": [
827
+ {
828
+ "name": "args",
829
+ "type": {
830
+ "defined": "TransferArgsV0"
831
+ }
832
+ }
833
+ ]
834
+ },
835
+ {
836
+ "name": "setTimeOffsetV0",
837
+ "accounts": [
838
+ {
839
+ "name": "registrar",
840
+ "isMut": true,
841
+ "isSigner": false,
842
+ "relations": [
843
+ "realm_authority"
844
+ ]
845
+ },
846
+ {
847
+ "name": "realmAuthority",
848
+ "isMut": false,
849
+ "isSigner": true
850
+ }
851
+ ],
852
+ "args": [
853
+ {
854
+ "name": "timeOffset",
855
+ "type": "i64"
856
+ }
857
+ ]
858
+ },
859
+ {
860
+ "name": "ledgerTransferPositionV0",
861
+ "accounts": [
862
+ {
863
+ "name": "payer",
864
+ "isMut": true,
865
+ "isSigner": true
866
+ },
867
+ {
868
+ "name": "position",
869
+ "isMut": false,
870
+ "isSigner": false,
871
+ "pda": {
872
+ "seeds": [
873
+ {
874
+ "kind": "const",
875
+ "type": "string",
876
+ "value": "position"
877
+ },
878
+ {
879
+ "kind": "account",
880
+ "type": "publicKey",
881
+ "account": "Mint",
882
+ "path": "mint"
883
+ }
884
+ ]
885
+ },
886
+ "relations": [
887
+ "mint"
888
+ ]
889
+ },
890
+ {
891
+ "name": "mint",
892
+ "isMut": true,
893
+ "isSigner": false
894
+ },
895
+ {
896
+ "name": "fromTokenAccount",
897
+ "isMut": true,
898
+ "isSigner": false
899
+ },
900
+ {
901
+ "name": "toTokenAccount",
902
+ "isMut": true,
903
+ "isSigner": false
904
+ },
905
+ {
906
+ "name": "from",
907
+ "isMut": false,
908
+ "isSigner": true
909
+ },
910
+ {
911
+ "name": "to",
912
+ "isMut": false,
913
+ "isSigner": true
914
+ },
915
+ {
916
+ "name": "approver",
917
+ "isMut": false,
918
+ "isSigner": true
919
+ },
920
+ {
921
+ "name": "systemProgram",
922
+ "isMut": false,
923
+ "isSigner": false
924
+ },
925
+ {
926
+ "name": "tokenProgram",
927
+ "isMut": false,
928
+ "isSigner": false
929
+ },
930
+ {
931
+ "name": "associatedTokenProgram",
932
+ "isMut": false,
933
+ "isSigner": false
934
+ }
935
+ ],
936
+ "args": []
937
+ },
938
+ {
939
+ "name": "updateRegistrarAuthorityV0",
940
+ "accounts": [
941
+ {
942
+ "name": "registrar",
943
+ "isMut": true,
944
+ "isSigner": false,
945
+ "relations": [
946
+ "realm_authority"
947
+ ]
948
+ },
949
+ {
950
+ "name": "realmAuthority",
951
+ "isMut": false,
952
+ "isSigner": true
953
+ }
954
+ ],
955
+ "args": [
956
+ {
957
+ "name": "args",
958
+ "type": {
959
+ "defined": "UpdateRegistrarAuthorityArgsV0"
960
+ }
961
+ }
962
+ ]
963
+ },
964
+ {
965
+ "name": "voteV0",
966
+ "accounts": [
967
+ {
968
+ "name": "payer",
969
+ "isMut": true,
970
+ "isSigner": true
971
+ },
972
+ {
973
+ "name": "marker",
974
+ "isMut": true,
975
+ "isSigner": false,
976
+ "pda": {
977
+ "seeds": [
978
+ {
979
+ "kind": "const",
980
+ "type": "string",
981
+ "value": "marker"
982
+ },
983
+ {
984
+ "kind": "account",
985
+ "type": "publicKey",
986
+ "account": "Mint",
987
+ "path": "mint"
988
+ },
989
+ {
990
+ "kind": "account",
991
+ "type": "publicKey",
992
+ "account": "ProposalV0",
993
+ "path": "proposal"
994
+ }
995
+ ]
996
+ }
997
+ },
998
+ {
999
+ "name": "registrar",
1000
+ "isMut": false,
1001
+ "isSigner": false
1002
+ },
1003
+ {
1004
+ "name": "voter",
1005
+ "isMut": false,
1006
+ "isSigner": true
1007
+ },
1008
+ {
1009
+ "name": "position",
1010
+ "isMut": true,
1011
+ "isSigner": false,
1012
+ "relations": [
1013
+ "mint",
1014
+ "registrar"
1015
+ ]
1016
+ },
1017
+ {
1018
+ "name": "mint",
1019
+ "isMut": false,
1020
+ "isSigner": false
1021
+ },
1022
+ {
1023
+ "name": "tokenAccount",
1024
+ "isMut": false,
1025
+ "isSigner": false
1026
+ },
1027
+ {
1028
+ "name": "proposal",
1029
+ "isMut": true,
1030
+ "isSigner": false,
1031
+ "relations": [
1032
+ "proposal_config"
1033
+ ]
1034
+ },
1035
+ {
1036
+ "name": "proposalConfig",
1037
+ "isMut": false,
1038
+ "isSigner": false,
1039
+ "relations": [
1040
+ "on_vote_hook",
1041
+ "state_controller"
1042
+ ]
1043
+ },
1044
+ {
1045
+ "name": "stateController",
1046
+ "isMut": true,
1047
+ "isSigner": false
1048
+ },
1049
+ {
1050
+ "name": "onVoteHook",
1051
+ "isMut": false,
1052
+ "isSigner": false
1053
+ },
1054
+ {
1055
+ "name": "proposalProgram",
1056
+ "isMut": false,
1057
+ "isSigner": false
1058
+ },
1059
+ {
1060
+ "name": "systemProgram",
1061
+ "isMut": false,
1062
+ "isSigner": false
1063
+ }
1064
+ ],
1065
+ "args": [
1066
+ {
1067
+ "name": "args",
1068
+ "type": {
1069
+ "defined": "VoteArgsV0"
1070
+ }
1071
+ }
1072
+ ]
1073
+ },
1074
+ {
1075
+ "name": "relinquishVoteV1",
1076
+ "accounts": [
1077
+ {
1078
+ "name": "marker",
1079
+ "isMut": true,
1080
+ "isSigner": false,
1081
+ "pda": {
1082
+ "seeds": [
1083
+ {
1084
+ "kind": "const",
1085
+ "type": "string",
1086
+ "value": "marker"
1087
+ },
1088
+ {
1089
+ "kind": "account",
1090
+ "type": "publicKey",
1091
+ "account": "Mint",
1092
+ "path": "mint"
1093
+ },
1094
+ {
1095
+ "kind": "account",
1096
+ "type": "publicKey",
1097
+ "account": "ProposalV0",
1098
+ "path": "proposal"
1099
+ }
1100
+ ]
1101
+ },
1102
+ "relations": [
1103
+ "registrar",
1104
+ "mint",
1105
+ "rent_refund"
1106
+ ]
1107
+ },
1108
+ {
1109
+ "name": "registrar",
1110
+ "isMut": false,
1111
+ "isSigner": false
1112
+ },
1113
+ {
1114
+ "name": "voter",
1115
+ "isMut": false,
1116
+ "isSigner": true
1117
+ },
1118
+ {
1119
+ "name": "position",
1120
+ "isMut": true,
1121
+ "isSigner": false,
1122
+ "relations": [
1123
+ "mint",
1124
+ "registrar"
1125
+ ]
1126
+ },
1127
+ {
1128
+ "name": "mint",
1129
+ "isMut": false,
1130
+ "isSigner": false
1131
+ },
1132
+ {
1133
+ "name": "tokenAccount",
1134
+ "isMut": false,
1135
+ "isSigner": false
1136
+ },
1137
+ {
1138
+ "name": "proposal",
1139
+ "isMut": true,
1140
+ "isSigner": false,
1141
+ "relations": [
1142
+ "proposal_config"
1143
+ ]
1144
+ },
1145
+ {
1146
+ "name": "proposalConfig",
1147
+ "isMut": false,
1148
+ "isSigner": false,
1149
+ "relations": [
1150
+ "on_vote_hook",
1151
+ "state_controller"
1152
+ ]
1153
+ },
1154
+ {
1155
+ "name": "stateController",
1156
+ "isMut": true,
1157
+ "isSigner": false
1158
+ },
1159
+ {
1160
+ "name": "onVoteHook",
1161
+ "isMut": false,
1162
+ "isSigner": false
1163
+ },
1164
+ {
1165
+ "name": "proposalProgram",
1166
+ "isMut": false,
1167
+ "isSigner": false
1168
+ },
1169
+ {
1170
+ "name": "systemProgram",
1171
+ "isMut": false,
1172
+ "isSigner": false
1173
+ },
1174
+ {
1175
+ "name": "rentRefund",
1176
+ "isMut": true,
1177
+ "isSigner": false
1178
+ }
1179
+ ],
1180
+ "args": [
1181
+ {
1182
+ "name": "args",
1183
+ "type": {
1184
+ "defined": "RelinquishVoteArgsV1"
1185
+ }
1186
+ }
1187
+ ]
1188
+ },
1189
+ {
1190
+ "name": "relinquishExpiredVoteV0",
1191
+ "accounts": [
1192
+ {
1193
+ "name": "rentRefund",
1194
+ "isMut": true,
1195
+ "isSigner": false
1196
+ },
1197
+ {
1198
+ "name": "marker",
1199
+ "isMut": true,
1200
+ "isSigner": false,
1201
+ "pda": {
1202
+ "seeds": [
1203
+ {
1204
+ "kind": "const",
1205
+ "type": "string",
1206
+ "value": "marker"
1207
+ },
1208
+ {
1209
+ "kind": "account",
1210
+ "type": "publicKey",
1211
+ "account": "VoteMarkerV0",
1212
+ "path": "marker.mint"
1213
+ },
1214
+ {
1215
+ "kind": "account",
1216
+ "type": "publicKey",
1217
+ "account": "ProposalV0",
1218
+ "path": "proposal"
1219
+ }
1220
+ ]
1221
+ },
1222
+ "relations": [
1223
+ "proposal",
1224
+ "rent_refund"
1225
+ ]
1226
+ },
1227
+ {
1228
+ "name": "position",
1229
+ "isMut": true,
1230
+ "isSigner": false
1231
+ },
1232
+ {
1233
+ "name": "proposal",
1234
+ "isMut": false,
1235
+ "isSigner": false
1236
+ },
1237
+ {
1238
+ "name": "systemProgram",
1239
+ "isMut": false,
1240
+ "isSigner": false
1241
+ }
1242
+ ],
1243
+ "args": []
1244
+ },
1245
+ {
1246
+ "name": "proxiedRelinquishVoteV0",
1247
+ "accounts": [
1248
+ {
1249
+ "name": "rentRefund",
1250
+ "isMut": true,
1251
+ "isSigner": false
1252
+ },
1253
+ {
1254
+ "name": "marker",
1255
+ "isMut": true,
1256
+ "isSigner": false,
1257
+ "pda": {
1258
+ "seeds": [
1259
+ {
1260
+ "kind": "const",
1261
+ "type": "string",
1262
+ "value": "marker"
1263
+ },
1264
+ {
1265
+ "kind": "account",
1266
+ "type": "publicKey",
1267
+ "account": "Mint",
1268
+ "path": "mint"
1269
+ },
1270
+ {
1271
+ "kind": "account",
1272
+ "type": "publicKey",
1273
+ "account": "ProposalV0",
1274
+ "path": "proposal"
1275
+ }
1276
+ ]
1277
+ },
1278
+ "relations": [
1279
+ "registrar",
1280
+ "mint",
1281
+ "rent_refund"
1282
+ ]
1283
+ },
1284
+ {
1285
+ "name": "registrar",
1286
+ "isMut": false,
1287
+ "isSigner": false
1288
+ },
1289
+ {
1290
+ "name": "voter",
1291
+ "isMut": false,
1292
+ "isSigner": true
1293
+ },
1294
+ {
1295
+ "name": "proxyAssignment",
1296
+ "isMut": false,
1297
+ "isSigner": false,
1298
+ "relations": [
1299
+ "voter"
1300
+ ]
1301
+ },
1302
+ {
1303
+ "name": "position",
1304
+ "isMut": true,
1305
+ "isSigner": false,
1306
+ "relations": [
1307
+ "mint",
1308
+ "registrar"
1309
+ ]
1310
+ },
1311
+ {
1312
+ "name": "mint",
1313
+ "isMut": false,
1314
+ "isSigner": false
1315
+ },
1316
+ {
1317
+ "name": "proposal",
1318
+ "isMut": true,
1319
+ "isSigner": false,
1320
+ "relations": [
1321
+ "proposal_config"
1322
+ ]
1323
+ },
1324
+ {
1325
+ "name": "proposalConfig",
1326
+ "isMut": false,
1327
+ "isSigner": false,
1328
+ "relations": [
1329
+ "on_vote_hook",
1330
+ "state_controller"
1331
+ ]
1332
+ },
1333
+ {
1334
+ "name": "stateController",
1335
+ "isMut": true,
1336
+ "isSigner": false
1337
+ },
1338
+ {
1339
+ "name": "onVoteHook",
1340
+ "isMut": false,
1341
+ "isSigner": false
1342
+ },
1343
+ {
1344
+ "name": "proposalProgram",
1345
+ "isMut": false,
1346
+ "isSigner": false
1347
+ },
1348
+ {
1349
+ "name": "systemProgram",
1350
+ "isMut": false,
1351
+ "isSigner": false
1352
+ }
1353
+ ],
1354
+ "args": [
1355
+ {
1356
+ "name": "args",
1357
+ "type": {
1358
+ "defined": "RelinquishVoteArgsV1"
1359
+ }
1360
+ }
1361
+ ]
1362
+ },
1363
+ {
1364
+ "name": "proxiedVoteV0",
1365
+ "accounts": [
1366
+ {
1367
+ "name": "payer",
1368
+ "isMut": true,
1369
+ "isSigner": true
1370
+ },
1371
+ {
1372
+ "name": "marker",
1373
+ "isMut": true,
1374
+ "isSigner": false,
1375
+ "pda": {
1376
+ "seeds": [
1377
+ {
1378
+ "kind": "const",
1379
+ "type": "string",
1380
+ "value": "marker"
1381
+ },
1382
+ {
1383
+ "kind": "account",
1384
+ "type": "publicKey",
1385
+ "account": "PositionV0",
1386
+ "path": "position.mint"
1387
+ },
1388
+ {
1389
+ "kind": "account",
1390
+ "type": "publicKey",
1391
+ "account": "ProposalV0",
1392
+ "path": "proposal"
1393
+ }
1394
+ ]
1395
+ }
1396
+ },
1397
+ {
1398
+ "name": "registrar",
1399
+ "isMut": true,
1400
+ "isSigner": false
1401
+ },
1402
+ {
1403
+ "name": "voter",
1404
+ "isMut": false,
1405
+ "isSigner": true
1406
+ },
1407
+ {
1408
+ "name": "position",
1409
+ "isMut": true,
1410
+ "isSigner": false,
1411
+ "relations": [
1412
+ "registrar"
1413
+ ]
1414
+ },
1415
+ {
1416
+ "name": "proxyAssignment",
1417
+ "isMut": false,
1418
+ "isSigner": false,
1419
+ "relations": [
1420
+ "voter"
1421
+ ]
1422
+ },
1423
+ {
1424
+ "name": "proposal",
1425
+ "isMut": true,
1426
+ "isSigner": false,
1427
+ "relations": [
1428
+ "proposal_config"
1429
+ ]
1430
+ },
1431
+ {
1432
+ "name": "proposalConfig",
1433
+ "isMut": false,
1434
+ "isSigner": false,
1435
+ "relations": [
1436
+ "on_vote_hook",
1437
+ "state_controller"
1438
+ ]
1439
+ },
1440
+ {
1441
+ "name": "stateController",
1442
+ "isMut": true,
1443
+ "isSigner": false
1444
+ },
1445
+ {
1446
+ "name": "onVoteHook",
1447
+ "isMut": false,
1448
+ "isSigner": false
1449
+ },
1450
+ {
1451
+ "name": "proposalProgram",
1452
+ "isMut": false,
1453
+ "isSigner": false
1454
+ },
1455
+ {
1456
+ "name": "systemProgram",
1457
+ "isMut": false,
1458
+ "isSigner": false
1459
+ }
1460
+ ],
1461
+ "args": [
1462
+ {
1463
+ "name": "args",
1464
+ "type": {
1465
+ "defined": "VoteArgsV0"
1466
+ }
1467
+ }
1468
+ ]
1469
+ },
1470
+ {
1471
+ "name": "updateRegistrarV0",
1472
+ "accounts": [
1473
+ {
1474
+ "name": "registrar",
1475
+ "isMut": true,
1476
+ "isSigner": false,
1477
+ "relations": [
1478
+ "realm_authority"
1479
+ ]
1480
+ },
1481
+ {
1482
+ "name": "realmAuthority",
1483
+ "isMut": false,
1484
+ "isSigner": true
1485
+ },
1486
+ {
1487
+ "name": "proxyConfig",
1488
+ "isMut": false,
1489
+ "isSigner": false,
1490
+ "isOptional": true
1491
+ }
1492
+ ],
1493
+ "args": []
1494
+ },
1495
+ {
1496
+ "name": "tempReleasePositionV0",
1497
+ "accounts": [
1498
+ {
1499
+ "name": "authority",
1500
+ "isMut": false,
1501
+ "isSigner": true
1502
+ },
1503
+ {
1504
+ "name": "position",
1505
+ "isMut": true,
1506
+ "isSigner": false
1507
+ }
1508
+ ],
1509
+ "args": []
1510
+ }
1511
+ ],
1512
+ "accounts": [
1513
+ {
1514
+ "name": "VoteMarkerV0",
1515
+ "type": {
1516
+ "kind": "struct",
1517
+ "fields": [
1518
+ {
1519
+ "name": "voter",
1520
+ "type": "publicKey"
1521
+ },
1522
+ {
1523
+ "name": "registrar",
1524
+ "type": "publicKey"
1525
+ },
1526
+ {
1527
+ "name": "proposal",
1528
+ "type": "publicKey"
1529
+ },
1530
+ {
1531
+ "name": "mint",
1532
+ "type": "publicKey"
1533
+ },
1534
+ {
1535
+ "name": "choices",
1536
+ "type": {
1537
+ "vec": "u16"
1538
+ }
1539
+ },
1540
+ {
1541
+ "name": "weight",
1542
+ "type": "u128"
1543
+ },
1544
+ {
1545
+ "name": "bumpSeed",
1546
+ "type": "u8"
1547
+ },
1548
+ {
1549
+ "name": "deprecatedRelinquished",
1550
+ "docs": [
1551
+ "Whether this vote has been cleared on the position after proposal expired",
1552
+ "DEPRECATED. New votes will have markers closed after the vote completes."
1553
+ ],
1554
+ "type": "bool"
1555
+ },
1556
+ {
1557
+ "name": "proxyIndex",
1558
+ "type": "u16"
1559
+ },
1560
+ {
1561
+ "name": "rentRefund",
1562
+ "type": "publicKey"
1563
+ }
1564
+ ]
1565
+ }
1566
+ },
1567
+ {
1568
+ "name": "PositionV0",
1569
+ "type": {
1570
+ "kind": "struct",
1571
+ "fields": [
1572
+ {
1573
+ "name": "registrar",
1574
+ "type": "publicKey"
1575
+ },
1576
+ {
1577
+ "name": "mint",
1578
+ "type": "publicKey"
1579
+ },
1580
+ {
1581
+ "name": "lockup",
1582
+ "type": {
1583
+ "defined": "Lockup"
1584
+ }
1585
+ },
1586
+ {
1587
+ "name": "amountDepositedNative",
1588
+ "type": "u64"
1589
+ },
1590
+ {
1591
+ "name": "votingMintConfigIdx",
1592
+ "type": "u8"
1593
+ },
1594
+ {
1595
+ "name": "numActiveVotes",
1596
+ "type": "u16"
1597
+ },
1598
+ {
1599
+ "name": "genesisEnd",
1600
+ "type": "i64"
1601
+ },
1602
+ {
1603
+ "name": "bumpSeed",
1604
+ "type": "u8"
1605
+ },
1606
+ {
1607
+ "name": "voteController",
1608
+ "type": "publicKey"
1609
+ }
1610
+ ]
1611
+ }
1612
+ },
1613
+ {
1614
+ "name": "Registrar",
1615
+ "type": {
1616
+ "kind": "struct",
1617
+ "fields": [
1618
+ {
1619
+ "name": "governanceProgramId",
1620
+ "type": "publicKey"
1621
+ },
1622
+ {
1623
+ "name": "realm",
1624
+ "type": "publicKey"
1625
+ },
1626
+ {
1627
+ "name": "realmGoverningTokenMint",
1628
+ "type": "publicKey"
1629
+ },
1630
+ {
1631
+ "name": "realmAuthority",
1632
+ "type": "publicKey"
1633
+ },
1634
+ {
1635
+ "name": "timeOffset",
1636
+ "type": "i64"
1637
+ },
1638
+ {
1639
+ "name": "positionUpdateAuthority",
1640
+ "type": {
1641
+ "option": "publicKey"
1642
+ }
1643
+ },
1644
+ {
1645
+ "name": "collection",
1646
+ "type": "publicKey"
1647
+ },
1648
+ {
1649
+ "name": "bumpSeed",
1650
+ "type": "u8"
1651
+ },
1652
+ {
1653
+ "name": "collectionBumpSeed",
1654
+ "type": "u8"
1655
+ },
1656
+ {
1657
+ "name": "reserved1",
1658
+ "type": {
1659
+ "array": [
1660
+ "u8",
1661
+ 4
1662
+ ]
1663
+ }
1664
+ },
1665
+ {
1666
+ "name": "reserved2",
1667
+ "type": {
1668
+ "array": [
1669
+ "u64",
1670
+ 3
1671
+ ]
1672
+ }
1673
+ },
1674
+ {
1675
+ "name": "proxyConfig",
1676
+ "type": "publicKey"
1677
+ },
1678
+ {
1679
+ "name": "votingMints",
1680
+ "type": {
1681
+ "vec": {
1682
+ "defined": "VotingMintConfigV0"
1683
+ }
1684
+ }
1685
+ }
1686
+ ]
1687
+ }
1688
+ }
1689
+ ],
1690
+ "types": [
1691
+ {
1692
+ "name": "ConfigureVotingMintArgsV0",
1693
+ "type": {
1694
+ "kind": "struct",
1695
+ "fields": [
1696
+ {
1697
+ "name": "idx",
1698
+ "type": "u16"
1699
+ },
1700
+ {
1701
+ "name": "baselineVoteWeightScaledFactor",
1702
+ "type": "u64"
1703
+ },
1704
+ {
1705
+ "name": "maxExtraLockupVoteWeightScaledFactor",
1706
+ "type": "u64"
1707
+ },
1708
+ {
1709
+ "name": "genesisVotePowerMultiplier",
1710
+ "type": "u8"
1711
+ },
1712
+ {
1713
+ "name": "genesisVotePowerMultiplierExpirationTs",
1714
+ "type": "i64"
1715
+ },
1716
+ {
1717
+ "name": "lockupSaturationSecs",
1718
+ "type": "u64"
1719
+ }
1720
+ ]
1721
+ }
1722
+ },
1723
+ {
1724
+ "name": "DepositArgsV0",
1725
+ "type": {
1726
+ "kind": "struct",
1727
+ "fields": [
1728
+ {
1729
+ "name": "amount",
1730
+ "type": "u64"
1731
+ }
1732
+ ]
1733
+ }
1734
+ },
1735
+ {
1736
+ "name": "InitializePositionArgsV0",
1737
+ "type": {
1738
+ "kind": "struct",
1739
+ "fields": [
1740
+ {
1741
+ "name": "kind",
1742
+ "type": {
1743
+ "defined": "LockupKind"
1744
+ }
1745
+ },
1746
+ {
1747
+ "name": "periods",
1748
+ "type": "u32"
1749
+ }
1750
+ ]
1751
+ }
1752
+ },
1753
+ {
1754
+ "name": "InitializeRegistrarArgsV0",
1755
+ "type": {
1756
+ "kind": "struct",
1757
+ "fields": [
1758
+ {
1759
+ "name": "positionUpdateAuthority",
1760
+ "type": {
1761
+ "option": "publicKey"
1762
+ }
1763
+ }
1764
+ ]
1765
+ }
1766
+ },
1767
+ {
1768
+ "name": "RelinquishVoteArgsV1",
1769
+ "type": {
1770
+ "kind": "struct",
1771
+ "fields": [
1772
+ {
1773
+ "name": "choice",
1774
+ "type": "u16"
1775
+ }
1776
+ ]
1777
+ }
1778
+ },
1779
+ {
1780
+ "name": "ResetLockupArgsV0",
1781
+ "type": {
1782
+ "kind": "struct",
1783
+ "fields": [
1784
+ {
1785
+ "name": "kind",
1786
+ "type": {
1787
+ "defined": "LockupKind"
1788
+ }
1789
+ },
1790
+ {
1791
+ "name": "periods",
1792
+ "type": "u32"
1793
+ }
1794
+ ]
1795
+ }
1796
+ },
1797
+ {
1798
+ "name": "TransferArgsV0",
1799
+ "type": {
1800
+ "kind": "struct",
1801
+ "fields": [
1802
+ {
1803
+ "name": "amount",
1804
+ "type": "u64"
1805
+ }
1806
+ ]
1807
+ }
1808
+ },
1809
+ {
1810
+ "name": "UpdateRegistrarAuthorityArgsV0",
1811
+ "type": {
1812
+ "kind": "struct",
1813
+ "fields": [
1814
+ {
1815
+ "name": "authority",
1816
+ "type": "publicKey"
1817
+ }
1818
+ ]
1819
+ }
1820
+ },
1821
+ {
1822
+ "name": "VoteArgsV0",
1823
+ "type": {
1824
+ "kind": "struct",
1825
+ "fields": [
1826
+ {
1827
+ "name": "choice",
1828
+ "type": "u16"
1829
+ }
1830
+ ]
1831
+ }
1832
+ },
1833
+ {
1834
+ "name": "WithdrawArgsV0",
1835
+ "type": {
1836
+ "kind": "struct",
1837
+ "fields": [
1838
+ {
1839
+ "name": "amount",
1840
+ "type": "u64"
1841
+ }
1842
+ ]
1843
+ }
1844
+ },
1845
+ {
1846
+ "name": "Lockup",
1847
+ "type": {
1848
+ "kind": "struct",
1849
+ "fields": [
1850
+ {
1851
+ "name": "startTs",
1852
+ "type": "i64"
1853
+ },
1854
+ {
1855
+ "name": "endTs",
1856
+ "type": "i64"
1857
+ },
1858
+ {
1859
+ "name": "kind",
1860
+ "type": {
1861
+ "defined": "LockupKind"
1862
+ }
1863
+ }
1864
+ ]
1865
+ }
1866
+ },
1867
+ {
1868
+ "name": "VotingMintConfigV0",
1869
+ "type": {
1870
+ "kind": "struct",
1871
+ "fields": [
1872
+ {
1873
+ "name": "mint",
1874
+ "type": "publicKey"
1875
+ },
1876
+ {
1877
+ "name": "baselineVoteWeightScaledFactor",
1878
+ "type": "u64"
1879
+ },
1880
+ {
1881
+ "name": "maxExtraLockupVoteWeightScaledFactor",
1882
+ "type": "u64"
1883
+ },
1884
+ {
1885
+ "name": "genesisVotePowerMultiplier",
1886
+ "type": "u8"
1887
+ },
1888
+ {
1889
+ "name": "genesisVotePowerMultiplierExpirationTs",
1890
+ "type": "i64"
1891
+ },
1892
+ {
1893
+ "name": "lockupSaturationSecs",
1894
+ "type": "u64"
1895
+ },
1896
+ {
1897
+ "name": "reserved",
1898
+ "type": "i8"
1899
+ }
1900
+ ]
1901
+ }
1902
+ },
1903
+ {
1904
+ "name": "LockupKind",
1905
+ "type": {
1906
+ "kind": "enum",
1907
+ "variants": [
1908
+ {
1909
+ "name": "None"
1910
+ },
1911
+ {
1912
+ "name": "Cliff"
1913
+ },
1914
+ {
1915
+ "name": "Constant"
1916
+ }
1917
+ ]
1918
+ }
1919
+ }
1920
+ ],
1921
+ "errors": [
1922
+ {
1923
+ "code": 6000,
1924
+ "name": "InvalidRate",
1925
+ "msg": "Exchange rate must be greater than zero"
1926
+ },
1927
+ {
1928
+ "code": 6001,
1929
+ "name": "RatesFull",
1930
+ "msg": ""
1931
+ },
1932
+ {
1933
+ "code": 6002,
1934
+ "name": "VotingMintNotFound",
1935
+ "msg": ""
1936
+ },
1937
+ {
1938
+ "code": 6003,
1939
+ "name": "DepositEntryNotFound",
1940
+ "msg": ""
1941
+ },
1942
+ {
1943
+ "code": 6004,
1944
+ "name": "DepositEntryFull",
1945
+ "msg": ""
1946
+ },
1947
+ {
1948
+ "code": 6005,
1949
+ "name": "VotingTokenNonZero",
1950
+ "msg": ""
1951
+ },
1952
+ {
1953
+ "code": 6006,
1954
+ "name": "OutOfBoundsDepositEntryIndex",
1955
+ "msg": ""
1956
+ },
1957
+ {
1958
+ "code": 6007,
1959
+ "name": "UnusedDepositEntryIndex",
1960
+ "msg": ""
1961
+ },
1962
+ {
1963
+ "code": 6008,
1964
+ "name": "InsufficientUnlockedTokens",
1965
+ "msg": ""
1966
+ },
1967
+ {
1968
+ "code": 6009,
1969
+ "name": "UnableToConvert",
1970
+ "msg": ""
1971
+ },
1972
+ {
1973
+ "code": 6010,
1974
+ "name": "InvalidLockupPeriod",
1975
+ "msg": ""
1976
+ },
1977
+ {
1978
+ "code": 6011,
1979
+ "name": "InvalidEndTs",
1980
+ "msg": ""
1981
+ },
1982
+ {
1983
+ "code": 6012,
1984
+ "name": "InvalidDays",
1985
+ "msg": ""
1986
+ },
1987
+ {
1988
+ "code": 6013,
1989
+ "name": "VotingMintConfigIndexAlreadyInUse",
1990
+ "msg": ""
1991
+ },
1992
+ {
1993
+ "code": 6014,
1994
+ "name": "OutOfBoundsVotingMintConfigIndex",
1995
+ "msg": ""
1996
+ },
1997
+ {
1998
+ "code": 6015,
1999
+ "name": "InvalidDecimals",
2000
+ "msg": "Exchange rate decimals cannot be larger than registrar decimals"
2001
+ },
2002
+ {
2003
+ "code": 6016,
2004
+ "name": "InvalidToDepositAndWithdrawInOneSlot",
2005
+ "msg": ""
2006
+ },
2007
+ {
2008
+ "code": 6017,
2009
+ "name": "ShouldBeTheFirstIxInATx",
2010
+ "msg": ""
2011
+ },
2012
+ {
2013
+ "code": 6018,
2014
+ "name": "ForbiddenCpi",
2015
+ "msg": ""
2016
+ },
2017
+ {
2018
+ "code": 6019,
2019
+ "name": "InvalidMint",
2020
+ "msg": ""
2021
+ },
2022
+ {
2023
+ "code": 6020,
2024
+ "name": "DebugInstruction",
2025
+ "msg": ""
2026
+ },
2027
+ {
2028
+ "code": 6021,
2029
+ "name": "ClawbackNotAllowedOnDeposit",
2030
+ "msg": ""
2031
+ },
2032
+ {
2033
+ "code": 6022,
2034
+ "name": "DepositStillLocked",
2035
+ "msg": ""
2036
+ },
2037
+ {
2038
+ "code": 6023,
2039
+ "name": "InvalidAuthority",
2040
+ "msg": ""
2041
+ },
2042
+ {
2043
+ "code": 6024,
2044
+ "name": "InvalidTokenOwnerRecord",
2045
+ "msg": ""
2046
+ },
2047
+ {
2048
+ "code": 6025,
2049
+ "name": "InvalidRealmAuthority",
2050
+ "msg": ""
2051
+ },
2052
+ {
2053
+ "code": 6026,
2054
+ "name": "VoterWeightOverflow",
2055
+ "msg": ""
2056
+ },
2057
+ {
2058
+ "code": 6027,
2059
+ "name": "LockupSaturationMustBePositive",
2060
+ "msg": ""
2061
+ },
2062
+ {
2063
+ "code": 6028,
2064
+ "name": "VotingMintConfiguredWithDifferentIndex",
2065
+ "msg": ""
2066
+ },
2067
+ {
2068
+ "code": 6029,
2069
+ "name": "InternalProgramError",
2070
+ "msg": ""
2071
+ },
2072
+ {
2073
+ "code": 6030,
2074
+ "name": "InsufficientLockedTokens",
2075
+ "msg": ""
2076
+ },
2077
+ {
2078
+ "code": 6031,
2079
+ "name": "MustKeepTokensLocked",
2080
+ "msg": ""
2081
+ },
2082
+ {
2083
+ "code": 6032,
2084
+ "name": "InvalidLockupKind",
2085
+ "msg": ""
2086
+ },
2087
+ {
2088
+ "code": 6033,
2089
+ "name": "InvalidChangeToClawbackDepositEntry",
2090
+ "msg": ""
2091
+ },
2092
+ {
2093
+ "code": 6034,
2094
+ "name": "InternalErrorBadLockupVoteWeight",
2095
+ "msg": ""
2096
+ },
2097
+ {
2098
+ "code": 6035,
2099
+ "name": "DepositStartTooFarInFuture",
2100
+ "msg": ""
2101
+ },
2102
+ {
2103
+ "code": 6036,
2104
+ "name": "VaultTokenNonZero",
2105
+ "msg": ""
2106
+ },
2107
+ {
2108
+ "code": 6037,
2109
+ "name": "InvalidTimestampArguments",
2110
+ "msg": ""
2111
+ },
2112
+ {
2113
+ "code": 6038,
2114
+ "name": "CastVoteIsNotAllowed",
2115
+ "msg": "Cast vote is not allowed on update_voter_weight_record_v0 endpoint"
2116
+ },
2117
+ {
2118
+ "code": 6039,
2119
+ "name": "InvalidProgramId",
2120
+ "msg": "Program id was not what was expected"
2121
+ },
2122
+ {
2123
+ "code": 6040,
2124
+ "name": "InvalidMintOwner",
2125
+ "msg": ""
2126
+ },
2127
+ {
2128
+ "code": 6041,
2129
+ "name": "InvalidMintAmount",
2130
+ "msg": ""
2131
+ },
2132
+ {
2133
+ "code": 6042,
2134
+ "name": "DuplicatedNftDetected",
2135
+ "msg": ""
2136
+ },
2137
+ {
2138
+ "code": 6043,
2139
+ "name": "InvalidTokenOwnerForVoterWeightRecord",
2140
+ "msg": ""
2141
+ },
2142
+ {
2143
+ "code": 6044,
2144
+ "name": "NftAlreadyVoted",
2145
+ "msg": ""
2146
+ },
2147
+ {
2148
+ "code": 6045,
2149
+ "name": "InvalidProposalForNftVoteRecord",
2150
+ "msg": ""
2151
+ },
2152
+ {
2153
+ "code": 6046,
2154
+ "name": "InvalidTokenOwnerForNftVoteRecord",
2155
+ "msg": ""
2156
+ },
2157
+ {
2158
+ "code": 6047,
2159
+ "name": "UninitializedAccount",
2160
+ "msg": ""
2161
+ },
2162
+ {
2163
+ "code": 6048,
2164
+ "name": "PositionNotWritable",
2165
+ "msg": ""
2166
+ },
2167
+ {
2168
+ "code": 6049,
2169
+ "name": "InvalidVoteRecordForNftVoteRecord",
2170
+ "msg": ""
2171
+ },
2172
+ {
2173
+ "code": 6050,
2174
+ "name": "VoteRecordMustBeWithdrawn",
2175
+ "msg": ""
2176
+ },
2177
+ {
2178
+ "code": 6051,
2179
+ "name": "VoterWeightRecordMustBeExpired",
2180
+ "msg": ""
2181
+ },
2182
+ {
2183
+ "code": 6052,
2184
+ "name": "InvalidMintForPosition",
2185
+ "msg": ""
2186
+ },
2187
+ {
2188
+ "code": 6053,
2189
+ "name": "InvalidOwner",
2190
+ "msg": ""
2191
+ },
2192
+ {
2193
+ "code": 6054,
2194
+ "name": "NoDepositOnGenesisPositions",
2195
+ "msg": "You may not deposit additional tokens on a position created during the genesis period that still has the genesis multiplier"
2196
+ },
2197
+ {
2198
+ "code": 6055,
2199
+ "name": "ActiveVotesExist",
2200
+ "msg": "Cannot change a position while active votes exist"
2201
+ },
2202
+ {
2203
+ "code": 6056,
2204
+ "name": "UnauthorizedPositionUpdateAuthority",
2205
+ "msg": "Position update authority must sign off on this transaction"
2206
+ },
2207
+ {
2208
+ "code": 6057,
2209
+ "name": "SamePosition",
2210
+ "msg": "Cannot transfer to the same position"
2211
+ },
2212
+ {
2213
+ "code": 6058,
2214
+ "name": "MaxChoicesExceeded"
2215
+ },
2216
+ {
2217
+ "code": 6059,
2218
+ "name": "NoVoteForThisChoice"
2219
+ }
2220
+ ],
2221
+ "metadata": {
2222
+ "address": "hvsrNC3NKbcryqDs2DocYHZ9yPKEVzdSjQG6RVtK1s8"
2223
+ }
2224
+ }