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

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,6 +29,16 @@ 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;
32
42
  }
33
43
  ];
34
44
  args: [
@@ -122,6 +132,16 @@ export type Autocrat = {
122
132
  name: "systemProgram";
123
133
  isMut: false;
124
134
  isSigner: false;
135
+ },
136
+ {
137
+ name: "eventAuthority";
138
+ isMut: false;
139
+ isSigner: false;
140
+ },
141
+ {
142
+ name: "program";
143
+ isMut: false;
144
+ isSigner: false;
125
145
  }
126
146
  ];
127
147
  args: [
@@ -200,6 +220,16 @@ export type Autocrat = {
200
220
  name: "vaultEventAuthority";
201
221
  isMut: false;
202
222
  isSigner: false;
223
+ },
224
+ {
225
+ name: "eventAuthority";
226
+ isMut: false;
227
+ isSigner: false;
228
+ },
229
+ {
230
+ name: "program";
231
+ isMut: false;
232
+ isSigner: false;
203
233
  }
204
234
  ];
205
235
  args: [];
@@ -216,6 +246,16 @@ export type Autocrat = {
216
246
  name: "dao";
217
247
  isMut: false;
218
248
  isSigner: false;
249
+ },
250
+ {
251
+ name: "eventAuthority";
252
+ isMut: false;
253
+ isSigner: false;
254
+ },
255
+ {
256
+ name: "program";
257
+ isMut: false;
258
+ isSigner: false;
219
259
  }
220
260
  ];
221
261
  args: [];
@@ -232,6 +272,16 @@ export type Autocrat = {
232
272
  name: "treasury";
233
273
  isMut: false;
234
274
  isSigner: true;
275
+ },
276
+ {
277
+ name: "eventAuthority";
278
+ isMut: false;
279
+ isSigner: false;
280
+ },
281
+ {
282
+ name: "program";
283
+ isMut: false;
284
+ isSigner: false;
235
285
  }
236
286
  ];
237
287
  args: [
@@ -302,13 +352,6 @@ export type Autocrat = {
302
352
  name: "twapMaxObservationChangePerUpdate";
303
353
  type: "u128";
304
354
  },
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
- },
312
355
  {
313
356
  name: "minQuoteFutarchicLiquidity";
314
357
  docs: [
@@ -324,6 +367,10 @@ export type Autocrat = {
324
367
  {
325
368
  name: "minBaseFutarchicLiquidity";
326
369
  type: "u64";
370
+ },
371
+ {
372
+ name: "seqNum";
373
+ type: "u64";
327
374
  }
328
375
  ];
329
376
  };
@@ -412,6 +459,22 @@ export type Autocrat = {
412
459
  }
413
460
  ];
414
461
  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
+ },
415
478
  {
416
479
  name: "InitializeDaoParams";
417
480
  type: {
@@ -425,10 +488,6 @@ export type Autocrat = {
425
488
  name: "twapMaxObservationChangePerUpdate";
426
489
  type: "u128";
427
490
  },
428
- {
429
- name: "twapStartDelaySlots";
430
- type: "u64";
431
- },
432
491
  {
433
492
  name: "minQuoteFutarchicLiquidity";
434
493
  type: "u64";
@@ -591,6 +650,277 @@ export type Autocrat = {
591
650
  };
592
651
  }
593
652
  ];
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
+ ];
594
924
  errors: [
595
925
  {
596
926
  code: 6000;
@@ -609,46 +939,41 @@ export type Autocrat = {
609
939
  },
610
940
  {
611
941
  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;
617
942
  name: "InvalidSettlementAuthority";
618
943
  msg: "One of the vaults has an invalid `settlement_authority`";
619
944
  },
620
945
  {
621
- code: 6005;
946
+ code: 6004;
622
947
  name: "ProposalTooYoung";
623
948
  msg: "Proposal is too young to be executed or rejected";
624
949
  },
625
950
  {
626
- code: 6006;
951
+ code: 6005;
627
952
  name: "MarketsTooYoung";
628
953
  msg: "Markets too young for proposal to be finalized. TWAP might need to be cranked";
629
954
  },
630
955
  {
631
- code: 6007;
956
+ code: 6006;
632
957
  name: "ProposalAlreadyFinalized";
633
958
  msg: "This proposal has already been finalized";
634
959
  },
635
960
  {
636
- code: 6008;
961
+ code: 6007;
637
962
  name: "InvalidVaultNonce";
638
963
  msg: "A conditional vault has an invalid nonce. A nonce should encode the proposal number";
639
964
  },
640
965
  {
641
- code: 6009;
966
+ code: 6008;
642
967
  name: "ProposalNotPassed";
643
968
  msg: "This proposal can't be executed because it isn't in the passed state";
644
969
  },
645
970
  {
646
- code: 6010;
971
+ code: 6009;
647
972
  name: "InsufficientLpTokenBalance";
648
973
  msg: "The proposer has fewer pass or fail LP tokens than they requested to lock";
649
974
  },
650
975
  {
651
- code: 6011;
976
+ code: 6010;
652
977
  name: "InsufficientLpTokenLock";
653
978
  msg: "The LP tokens passed in have less liquidity than the DAO's `min_quote_futarchic_liquidity` or `min_base_futachic_liquidity`";
654
979
  }