@metadaoproject/futarchy 0.4.0-alpha.41 → 0.4.0-alpha.43

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.
@@ -29,16 +29,6 @@ export type Autocrat = {
29
29
  name: "usdcMint";
30
30
  isMut: false;
31
31
  isSigner: false;
32
- },
33
- {
34
- name: "eventAuthority";
35
- isMut: false;
36
- isSigner: false;
37
- },
38
- {
39
- name: "program";
40
- isMut: false;
41
- isSigner: false;
42
32
  }
43
33
  ];
44
34
  args: [
@@ -132,16 +122,6 @@ export type Autocrat = {
132
122
  name: "systemProgram";
133
123
  isMut: false;
134
124
  isSigner: false;
135
- },
136
- {
137
- name: "eventAuthority";
138
- isMut: false;
139
- isSigner: false;
140
- },
141
- {
142
- name: "program";
143
- isMut: false;
144
- isSigner: false;
145
125
  }
146
126
  ];
147
127
  args: [
@@ -220,16 +200,6 @@ export type Autocrat = {
220
200
  name: "vaultEventAuthority";
221
201
  isMut: false;
222
202
  isSigner: false;
223
- },
224
- {
225
- name: "eventAuthority";
226
- isMut: false;
227
- isSigner: false;
228
- },
229
- {
230
- name: "program";
231
- isMut: false;
232
- isSigner: false;
233
203
  }
234
204
  ];
235
205
  args: [];
@@ -246,16 +216,6 @@ export type Autocrat = {
246
216
  name: "dao";
247
217
  isMut: false;
248
218
  isSigner: false;
249
- },
250
- {
251
- name: "eventAuthority";
252
- isMut: false;
253
- isSigner: false;
254
- },
255
- {
256
- name: "program";
257
- isMut: false;
258
- isSigner: false;
259
219
  }
260
220
  ];
261
221
  args: [];
@@ -272,16 +232,6 @@ export type Autocrat = {
272
232
  name: "treasury";
273
233
  isMut: false;
274
234
  isSigner: true;
275
- },
276
- {
277
- name: "eventAuthority";
278
- isMut: false;
279
- isSigner: false;
280
- },
281
- {
282
- name: "program";
283
- isMut: false;
284
- isSigner: false;
285
235
  }
286
236
  ];
287
237
  args: [
@@ -352,6 +302,13 @@ export type Autocrat = {
352
302
  name: "twapMaxObservationChangePerUpdate";
353
303
  type: "u128";
354
304
  },
305
+ {
306
+ name: "twapStartDelaySlots";
307
+ docs: [
308
+ "Forces TWAP calculation to start after amm.created_at_slot + twap_start_delay_slots"
309
+ ];
310
+ type: "u64";
311
+ },
355
312
  {
356
313
  name: "minQuoteFutarchicLiquidity";
357
314
  docs: [
@@ -367,10 +324,6 @@ export type Autocrat = {
367
324
  {
368
325
  name: "minBaseFutarchicLiquidity";
369
326
  type: "u64";
370
- },
371
- {
372
- name: "seqNum";
373
- type: "u64";
374
327
  }
375
328
  ];
376
329
  };
@@ -459,22 +412,6 @@ export type Autocrat = {
459
412
  }
460
413
  ];
461
414
  types: [
462
- {
463
- name: "CommonFields";
464
- type: {
465
- kind: "struct";
466
- fields: [
467
- {
468
- name: "slot";
469
- type: "u64";
470
- },
471
- {
472
- name: "unixTimestamp";
473
- type: "i64";
474
- }
475
- ];
476
- };
477
- },
478
415
  {
479
416
  name: "InitializeDaoParams";
480
417
  type: {
@@ -488,6 +425,10 @@ export type Autocrat = {
488
425
  name: "twapMaxObservationChangePerUpdate";
489
426
  type: "u128";
490
427
  },
428
+ {
429
+ name: "twapStartDelaySlots";
430
+ type: "u64";
431
+ },
491
432
  {
492
433
  name: "minQuoteFutarchicLiquidity";
493
434
  type: "u64";
@@ -650,277 +591,6 @@ export type Autocrat = {
650
591
  };
651
592
  }
652
593
  ];
653
- events: [
654
- {
655
- name: "InitializeDaoEvent";
656
- fields: [
657
- {
658
- name: "common";
659
- type: {
660
- defined: "CommonFields";
661
- };
662
- index: false;
663
- },
664
- {
665
- name: "dao";
666
- type: "publicKey";
667
- index: false;
668
- },
669
- {
670
- name: "tokenMint";
671
- type: "publicKey";
672
- index: false;
673
- },
674
- {
675
- name: "usdcMint";
676
- type: "publicKey";
677
- index: false;
678
- },
679
- {
680
- name: "treasury";
681
- type: "publicKey";
682
- index: false;
683
- },
684
- {
685
- name: "passThresholdBps";
686
- type: "u16";
687
- index: false;
688
- },
689
- {
690
- name: "slotsPerProposal";
691
- type: "u64";
692
- index: false;
693
- },
694
- {
695
- name: "twapInitialObservation";
696
- type: "u128";
697
- index: false;
698
- },
699
- {
700
- name: "twapMaxObservationChangePerUpdate";
701
- type: "u128";
702
- index: false;
703
- },
704
- {
705
- name: "minQuoteFutarchicLiquidity";
706
- type: "u64";
707
- index: false;
708
- },
709
- {
710
- name: "minBaseFutarchicLiquidity";
711
- type: "u64";
712
- index: false;
713
- }
714
- ];
715
- },
716
- {
717
- name: "UpdateDaoEvent";
718
- fields: [
719
- {
720
- name: "common";
721
- type: {
722
- defined: "CommonFields";
723
- };
724
- index: false;
725
- },
726
- {
727
- name: "dao";
728
- type: "publicKey";
729
- index: false;
730
- },
731
- {
732
- name: "passThresholdBps";
733
- type: "u16";
734
- index: false;
735
- },
736
- {
737
- name: "slotsPerProposal";
738
- type: "u64";
739
- index: false;
740
- },
741
- {
742
- name: "twapInitialObservation";
743
- type: "u128";
744
- index: false;
745
- },
746
- {
747
- name: "twapMaxObservationChangePerUpdate";
748
- type: "u128";
749
- index: false;
750
- },
751
- {
752
- name: "minQuoteFutarchicLiquidity";
753
- type: "u64";
754
- index: false;
755
- },
756
- {
757
- name: "minBaseFutarchicLiquidity";
758
- type: "u64";
759
- index: false;
760
- }
761
- ];
762
- },
763
- {
764
- name: "InitializeProposalEvent";
765
- fields: [
766
- {
767
- name: "common";
768
- type: {
769
- defined: "CommonFields";
770
- };
771
- index: false;
772
- },
773
- {
774
- name: "proposal";
775
- type: "publicKey";
776
- index: false;
777
- },
778
- {
779
- name: "dao";
780
- type: "publicKey";
781
- index: false;
782
- },
783
- {
784
- name: "question";
785
- type: "publicKey";
786
- index: false;
787
- },
788
- {
789
- name: "quoteVault";
790
- type: "publicKey";
791
- index: false;
792
- },
793
- {
794
- name: "baseVault";
795
- type: "publicKey";
796
- index: false;
797
- },
798
- {
799
- name: "passAmm";
800
- type: "publicKey";
801
- index: false;
802
- },
803
- {
804
- name: "failAmm";
805
- type: "publicKey";
806
- index: false;
807
- },
808
- {
809
- name: "passLpMint";
810
- type: "publicKey";
811
- index: false;
812
- },
813
- {
814
- name: "failLpMint";
815
- type: "publicKey";
816
- index: false;
817
- },
818
- {
819
- name: "proposer";
820
- type: "publicKey";
821
- index: false;
822
- },
823
- {
824
- name: "nonce";
825
- type: "u64";
826
- index: false;
827
- },
828
- {
829
- name: "number";
830
- type: "u32";
831
- index: false;
832
- },
833
- {
834
- name: "passLpTokensLocked";
835
- type: "u64";
836
- index: false;
837
- },
838
- {
839
- name: "failLpTokensLocked";
840
- type: "u64";
841
- index: false;
842
- },
843
- {
844
- name: "pdaBump";
845
- type: "u8";
846
- index: false;
847
- },
848
- {
849
- name: "instruction";
850
- type: {
851
- defined: "ProposalInstruction";
852
- };
853
- index: false;
854
- }
855
- ];
856
- },
857
- {
858
- name: "FinalizeProposalEvent";
859
- fields: [
860
- {
861
- name: "common";
862
- type: {
863
- defined: "CommonFields";
864
- };
865
- index: false;
866
- },
867
- {
868
- name: "proposal";
869
- type: "publicKey";
870
- index: false;
871
- },
872
- {
873
- name: "dao";
874
- type: "publicKey";
875
- index: false;
876
- },
877
- {
878
- name: "passMarketTwap";
879
- type: "u128";
880
- index: false;
881
- },
882
- {
883
- name: "failMarketTwap";
884
- type: "u128";
885
- index: false;
886
- },
887
- {
888
- name: "threshold";
889
- type: "u128";
890
- index: false;
891
- },
892
- {
893
- name: "state";
894
- type: {
895
- defined: "ProposalState";
896
- };
897
- index: false;
898
- }
899
- ];
900
- },
901
- {
902
- name: "ExecuteProposalEvent";
903
- fields: [
904
- {
905
- name: "common";
906
- type: {
907
- defined: "CommonFields";
908
- };
909
- index: false;
910
- },
911
- {
912
- name: "proposal";
913
- type: "publicKey";
914
- index: false;
915
- },
916
- {
917
- name: "dao";
918
- type: "publicKey";
919
- index: false;
920
- }
921
- ];
922
- }
923
- ];
924
594
  errors: [
925
595
  {
926
596
  code: 6000;
@@ -939,41 +609,46 @@ export type Autocrat = {
939
609
  },
940
610
  {
941
611
  code: 6003;
612
+ name: "InvalidStartDelaySlots";
613
+ msg: "An amm has a `start_delay_slots` that doesn't match the `dao`'s config";
614
+ },
615
+ {
616
+ code: 6004;
942
617
  name: "InvalidSettlementAuthority";
943
618
  msg: "One of the vaults has an invalid `settlement_authority`";
944
619
  },
945
620
  {
946
- code: 6004;
621
+ code: 6005;
947
622
  name: "ProposalTooYoung";
948
623
  msg: "Proposal is too young to be executed or rejected";
949
624
  },
950
625
  {
951
- code: 6005;
626
+ code: 6006;
952
627
  name: "MarketsTooYoung";
953
628
  msg: "Markets too young for proposal to be finalized. TWAP might need to be cranked";
954
629
  },
955
630
  {
956
- code: 6006;
631
+ code: 6007;
957
632
  name: "ProposalAlreadyFinalized";
958
633
  msg: "This proposal has already been finalized";
959
634
  },
960
635
  {
961
- code: 6007;
636
+ code: 6008;
962
637
  name: "InvalidVaultNonce";
963
638
  msg: "A conditional vault has an invalid nonce. A nonce should encode the proposal number";
964
639
  },
965
640
  {
966
- code: 6008;
641
+ code: 6009;
967
642
  name: "ProposalNotPassed";
968
643
  msg: "This proposal can't be executed because it isn't in the passed state";
969
644
  },
970
645
  {
971
- code: 6009;
646
+ code: 6010;
972
647
  name: "InsufficientLpTokenBalance";
973
648
  msg: "The proposer has fewer pass or fail LP tokens than they requested to lock";
974
649
  },
975
650
  {
976
- code: 6010;
651
+ code: 6011;
977
652
  name: "InsufficientLpTokenLock";
978
653
  msg: "The LP tokens passed in have less liquidity than the DAO's `min_quote_futarchic_liquidity` or `min_base_futachic_liquidity`";
979
654
  }