@sparkdreamnft/sparkdreamjs 0.0.38 → 0.0.39

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContentInitiativeLink = exports.RoleRewardDayFunding = exports.GenesisState = void 0;
3
+ exports.ContentInitiativeLink = exports.RoleRewardDayFunding = exports.GiftRecordEntry = exports.EconomicState = exports.GenesisState = void 0;
4
4
  //@ts-nocheck
5
5
  const params_1 = require("./params");
6
6
  const member_1 = require("./member");
@@ -69,7 +69,9 @@ function createBaseGenesisState() {
69
69
  initiativeReviewList: [],
70
70
  escalatedReviewList: [],
71
71
  roleRewardDayFundingList: [],
72
- reviewBountyList: []
72
+ reviewBountyList: [],
73
+ economicState: undefined,
74
+ giftRecordList: []
73
75
  };
74
76
  }
75
77
  /**
@@ -209,6 +211,12 @@ exports.GenesisState = {
209
211
  for (const v of message.reviewBountyList) {
210
212
  review_bounty_1.ReviewBounty.encode(v, writer.uint32(338).fork()).ldelim();
211
213
  }
214
+ if (message.economicState !== undefined) {
215
+ exports.EconomicState.encode(message.economicState, writer.uint32(346).fork()).ldelim();
216
+ }
217
+ for (const v of message.giftRecordList) {
218
+ exports.GiftRecordEntry.encode(v, writer.uint32(354).fork()).ldelim();
219
+ }
212
220
  return writer;
213
221
  },
214
222
  decode(input, length) {
@@ -352,6 +360,12 @@ exports.GenesisState = {
352
360
  case 42:
353
361
  message.reviewBountyList.push(review_bounty_1.ReviewBounty.decode(reader, reader.uint32()));
354
362
  break;
363
+ case 43:
364
+ message.economicState = exports.EconomicState.decode(reader, reader.uint32());
365
+ break;
366
+ case 44:
367
+ message.giftRecordList.push(exports.GiftRecordEntry.decode(reader, reader.uint32()));
368
+ break;
355
369
  default:
356
370
  reader.skipType(tag & 7);
357
371
  break;
@@ -403,6 +417,8 @@ exports.GenesisState = {
403
417
  message.escalatedReviewList = object.escalatedReviewList?.map(e => BigInt(e.toString())) || [];
404
418
  message.roleRewardDayFundingList = object.roleRewardDayFundingList?.map(e => exports.RoleRewardDayFunding.fromPartial(e)) || [];
405
419
  message.reviewBountyList = object.reviewBountyList?.map(e => review_bounty_1.ReviewBounty.fromPartial(e)) || [];
420
+ message.economicState = object.economicState !== undefined && object.economicState !== null ? exports.EconomicState.fromPartial(object.economicState) : undefined;
421
+ message.giftRecordList = object.giftRecordList?.map(e => exports.GiftRecordEntry.fromPartial(e)) || [];
406
422
  return message;
407
423
  },
408
424
  fromAmino(object) {
@@ -475,6 +491,10 @@ exports.GenesisState = {
475
491
  message.escalatedReviewList = object.escalated_review_list?.map(e => BigInt(e)) || [];
476
492
  message.roleRewardDayFundingList = object.role_reward_day_funding_list?.map(e => exports.RoleRewardDayFunding.fromAmino(e)) || [];
477
493
  message.reviewBountyList = object.review_bounty_list?.map(e => review_bounty_1.ReviewBounty.fromAmino(e)) || [];
494
+ if (object.economic_state !== undefined && object.economic_state !== null) {
495
+ message.economicState = exports.EconomicState.fromAmino(object.economic_state);
496
+ }
497
+ message.giftRecordList = object.gift_record_list?.map(e => exports.GiftRecordEntry.fromAmino(e)) || [];
478
498
  return message;
479
499
  },
480
500
  toAmino(message) {
@@ -666,6 +686,13 @@ exports.GenesisState = {
666
686
  else {
667
687
  obj.review_bounty_list = message.reviewBountyList;
668
688
  }
689
+ obj.economic_state = message.economicState ? exports.EconomicState.toAmino(message.economicState) : undefined;
690
+ if (message.giftRecordList) {
691
+ obj.gift_record_list = message.giftRecordList.map(e => e ? exports.GiftRecordEntry.toAmino(e) : undefined);
692
+ }
693
+ else {
694
+ obj.gift_record_list = message.giftRecordList;
695
+ }
669
696
  return obj;
670
697
  },
671
698
  fromAminoMsg(object) {
@@ -684,6 +711,339 @@ exports.GenesisState = {
684
711
  };
685
712
  }
686
713
  };
714
+ function createBaseEconomicState() {
715
+ return {
716
+ treasuryBalance: "",
717
+ seasonMinted: "",
718
+ seasonBurned: "",
719
+ seasonInitiativeRewardsMinted: "",
720
+ seasonStakingRewardsMinted: "",
721
+ seasonInterimRewardsMinted: "",
722
+ seasonTreasuryInflow: "",
723
+ seasonTreasuryOutflow: "",
724
+ seasonalPoolRemaining: "",
725
+ seasonalPoolAccPerShare: "",
726
+ seasonalPoolSeason: BigInt(0),
727
+ seasonalPoolStartEpoch: BigInt(0),
728
+ epochMintedEpoch: BigInt(0),
729
+ epochMintedAmount: "",
730
+ decayLastProcessedEpoch: BigInt(0)
731
+ };
732
+ }
733
+ /**
734
+ * EconomicState carries x/rep's token ledger across a genesis round trip.
735
+ * Int and Dec values travel as strings so an absent field reads as zero rather
736
+ * than as a malformed number.
737
+ * @name EconomicState
738
+ * @package sparkdream.rep.v1
739
+ * @see proto type: sparkdream.rep.v1.EconomicState
740
+ */
741
+ exports.EconomicState = {
742
+ typeUrl: "/sparkdream.rep.v1.EconomicState",
743
+ encode(message, writer = binary_1.BinaryWriter.create()) {
744
+ if (message.treasuryBalance !== "") {
745
+ writer.uint32(10).string(message.treasuryBalance);
746
+ }
747
+ if (message.seasonMinted !== "") {
748
+ writer.uint32(18).string(message.seasonMinted);
749
+ }
750
+ if (message.seasonBurned !== "") {
751
+ writer.uint32(26).string(message.seasonBurned);
752
+ }
753
+ if (message.seasonInitiativeRewardsMinted !== "") {
754
+ writer.uint32(34).string(message.seasonInitiativeRewardsMinted);
755
+ }
756
+ if (message.seasonStakingRewardsMinted !== "") {
757
+ writer.uint32(42).string(message.seasonStakingRewardsMinted);
758
+ }
759
+ if (message.seasonInterimRewardsMinted !== "") {
760
+ writer.uint32(50).string(message.seasonInterimRewardsMinted);
761
+ }
762
+ if (message.seasonTreasuryInflow !== "") {
763
+ writer.uint32(58).string(message.seasonTreasuryInflow);
764
+ }
765
+ if (message.seasonTreasuryOutflow !== "") {
766
+ writer.uint32(66).string(message.seasonTreasuryOutflow);
767
+ }
768
+ if (message.seasonalPoolRemaining !== "") {
769
+ writer.uint32(74).string(message.seasonalPoolRemaining);
770
+ }
771
+ if (message.seasonalPoolAccPerShare !== "") {
772
+ writer.uint32(82).string(message.seasonalPoolAccPerShare);
773
+ }
774
+ if (message.seasonalPoolSeason !== BigInt(0)) {
775
+ writer.uint32(88).uint64(message.seasonalPoolSeason);
776
+ }
777
+ if (message.seasonalPoolStartEpoch !== BigInt(0)) {
778
+ writer.uint32(96).uint64(message.seasonalPoolStartEpoch);
779
+ }
780
+ if (message.epochMintedEpoch !== BigInt(0)) {
781
+ writer.uint32(104).uint64(message.epochMintedEpoch);
782
+ }
783
+ if (message.epochMintedAmount !== "") {
784
+ writer.uint32(114).string(message.epochMintedAmount);
785
+ }
786
+ if (message.decayLastProcessedEpoch !== BigInt(0)) {
787
+ writer.uint32(120).uint64(message.decayLastProcessedEpoch);
788
+ }
789
+ return writer;
790
+ },
791
+ decode(input, length) {
792
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
793
+ let end = length === undefined ? reader.len : reader.pos + length;
794
+ const message = createBaseEconomicState();
795
+ while (reader.pos < end) {
796
+ const tag = reader.uint32();
797
+ switch (tag >>> 3) {
798
+ case 1:
799
+ message.treasuryBalance = reader.string();
800
+ break;
801
+ case 2:
802
+ message.seasonMinted = reader.string();
803
+ break;
804
+ case 3:
805
+ message.seasonBurned = reader.string();
806
+ break;
807
+ case 4:
808
+ message.seasonInitiativeRewardsMinted = reader.string();
809
+ break;
810
+ case 5:
811
+ message.seasonStakingRewardsMinted = reader.string();
812
+ break;
813
+ case 6:
814
+ message.seasonInterimRewardsMinted = reader.string();
815
+ break;
816
+ case 7:
817
+ message.seasonTreasuryInflow = reader.string();
818
+ break;
819
+ case 8:
820
+ message.seasonTreasuryOutflow = reader.string();
821
+ break;
822
+ case 9:
823
+ message.seasonalPoolRemaining = reader.string();
824
+ break;
825
+ case 10:
826
+ message.seasonalPoolAccPerShare = reader.string();
827
+ break;
828
+ case 11:
829
+ message.seasonalPoolSeason = reader.uint64();
830
+ break;
831
+ case 12:
832
+ message.seasonalPoolStartEpoch = reader.uint64();
833
+ break;
834
+ case 13:
835
+ message.epochMintedEpoch = reader.uint64();
836
+ break;
837
+ case 14:
838
+ message.epochMintedAmount = reader.string();
839
+ break;
840
+ case 15:
841
+ message.decayLastProcessedEpoch = reader.uint64();
842
+ break;
843
+ default:
844
+ reader.skipType(tag & 7);
845
+ break;
846
+ }
847
+ }
848
+ return message;
849
+ },
850
+ fromPartial(object) {
851
+ const message = createBaseEconomicState();
852
+ message.treasuryBalance = object.treasuryBalance ?? "";
853
+ message.seasonMinted = object.seasonMinted ?? "";
854
+ message.seasonBurned = object.seasonBurned ?? "";
855
+ message.seasonInitiativeRewardsMinted = object.seasonInitiativeRewardsMinted ?? "";
856
+ message.seasonStakingRewardsMinted = object.seasonStakingRewardsMinted ?? "";
857
+ message.seasonInterimRewardsMinted = object.seasonInterimRewardsMinted ?? "";
858
+ message.seasonTreasuryInflow = object.seasonTreasuryInflow ?? "";
859
+ message.seasonTreasuryOutflow = object.seasonTreasuryOutflow ?? "";
860
+ message.seasonalPoolRemaining = object.seasonalPoolRemaining ?? "";
861
+ message.seasonalPoolAccPerShare = object.seasonalPoolAccPerShare ?? "";
862
+ message.seasonalPoolSeason = object.seasonalPoolSeason !== undefined && object.seasonalPoolSeason !== null ? BigInt(object.seasonalPoolSeason.toString()) : BigInt(0);
863
+ message.seasonalPoolStartEpoch = object.seasonalPoolStartEpoch !== undefined && object.seasonalPoolStartEpoch !== null ? BigInt(object.seasonalPoolStartEpoch.toString()) : BigInt(0);
864
+ message.epochMintedEpoch = object.epochMintedEpoch !== undefined && object.epochMintedEpoch !== null ? BigInt(object.epochMintedEpoch.toString()) : BigInt(0);
865
+ message.epochMintedAmount = object.epochMintedAmount ?? "";
866
+ message.decayLastProcessedEpoch = object.decayLastProcessedEpoch !== undefined && object.decayLastProcessedEpoch !== null ? BigInt(object.decayLastProcessedEpoch.toString()) : BigInt(0);
867
+ return message;
868
+ },
869
+ fromAmino(object) {
870
+ const message = createBaseEconomicState();
871
+ if (object.treasury_balance !== undefined && object.treasury_balance !== null) {
872
+ message.treasuryBalance = object.treasury_balance;
873
+ }
874
+ if (object.season_minted !== undefined && object.season_minted !== null) {
875
+ message.seasonMinted = object.season_minted;
876
+ }
877
+ if (object.season_burned !== undefined && object.season_burned !== null) {
878
+ message.seasonBurned = object.season_burned;
879
+ }
880
+ if (object.season_initiative_rewards_minted !== undefined && object.season_initiative_rewards_minted !== null) {
881
+ message.seasonInitiativeRewardsMinted = object.season_initiative_rewards_minted;
882
+ }
883
+ if (object.season_staking_rewards_minted !== undefined && object.season_staking_rewards_minted !== null) {
884
+ message.seasonStakingRewardsMinted = object.season_staking_rewards_minted;
885
+ }
886
+ if (object.season_interim_rewards_minted !== undefined && object.season_interim_rewards_minted !== null) {
887
+ message.seasonInterimRewardsMinted = object.season_interim_rewards_minted;
888
+ }
889
+ if (object.season_treasury_inflow !== undefined && object.season_treasury_inflow !== null) {
890
+ message.seasonTreasuryInflow = object.season_treasury_inflow;
891
+ }
892
+ if (object.season_treasury_outflow !== undefined && object.season_treasury_outflow !== null) {
893
+ message.seasonTreasuryOutflow = object.season_treasury_outflow;
894
+ }
895
+ if (object.seasonal_pool_remaining !== undefined && object.seasonal_pool_remaining !== null) {
896
+ message.seasonalPoolRemaining = object.seasonal_pool_remaining;
897
+ }
898
+ if (object.seasonal_pool_acc_per_share !== undefined && object.seasonal_pool_acc_per_share !== null) {
899
+ message.seasonalPoolAccPerShare = object.seasonal_pool_acc_per_share;
900
+ }
901
+ if (object.seasonal_pool_season !== undefined && object.seasonal_pool_season !== null) {
902
+ message.seasonalPoolSeason = BigInt(object.seasonal_pool_season);
903
+ }
904
+ if (object.seasonal_pool_start_epoch !== undefined && object.seasonal_pool_start_epoch !== null) {
905
+ message.seasonalPoolStartEpoch = BigInt(object.seasonal_pool_start_epoch);
906
+ }
907
+ if (object.epoch_minted_epoch !== undefined && object.epoch_minted_epoch !== null) {
908
+ message.epochMintedEpoch = BigInt(object.epoch_minted_epoch);
909
+ }
910
+ if (object.epoch_minted_amount !== undefined && object.epoch_minted_amount !== null) {
911
+ message.epochMintedAmount = object.epoch_minted_amount;
912
+ }
913
+ if (object.decay_last_processed_epoch !== undefined && object.decay_last_processed_epoch !== null) {
914
+ message.decayLastProcessedEpoch = BigInt(object.decay_last_processed_epoch);
915
+ }
916
+ return message;
917
+ },
918
+ toAmino(message) {
919
+ const obj = {};
920
+ obj.treasury_balance = message.treasuryBalance === "" ? undefined : message.treasuryBalance;
921
+ obj.season_minted = message.seasonMinted === "" ? undefined : message.seasonMinted;
922
+ obj.season_burned = message.seasonBurned === "" ? undefined : message.seasonBurned;
923
+ obj.season_initiative_rewards_minted = message.seasonInitiativeRewardsMinted === "" ? undefined : message.seasonInitiativeRewardsMinted;
924
+ obj.season_staking_rewards_minted = message.seasonStakingRewardsMinted === "" ? undefined : message.seasonStakingRewardsMinted;
925
+ obj.season_interim_rewards_minted = message.seasonInterimRewardsMinted === "" ? undefined : message.seasonInterimRewardsMinted;
926
+ obj.season_treasury_inflow = message.seasonTreasuryInflow === "" ? undefined : message.seasonTreasuryInflow;
927
+ obj.season_treasury_outflow = message.seasonTreasuryOutflow === "" ? undefined : message.seasonTreasuryOutflow;
928
+ obj.seasonal_pool_remaining = message.seasonalPoolRemaining === "" ? undefined : message.seasonalPoolRemaining;
929
+ obj.seasonal_pool_acc_per_share = message.seasonalPoolAccPerShare === "" ? undefined : message.seasonalPoolAccPerShare;
930
+ obj.seasonal_pool_season = message.seasonalPoolSeason !== BigInt(0) ? message.seasonalPoolSeason?.toString() : undefined;
931
+ obj.seasonal_pool_start_epoch = message.seasonalPoolStartEpoch !== BigInt(0) ? message.seasonalPoolStartEpoch?.toString() : undefined;
932
+ obj.epoch_minted_epoch = message.epochMintedEpoch !== BigInt(0) ? message.epochMintedEpoch?.toString() : undefined;
933
+ obj.epoch_minted_amount = message.epochMintedAmount === "" ? undefined : message.epochMintedAmount;
934
+ obj.decay_last_processed_epoch = message.decayLastProcessedEpoch !== BigInt(0) ? message.decayLastProcessedEpoch?.toString() : undefined;
935
+ return obj;
936
+ },
937
+ fromAminoMsg(object) {
938
+ return exports.EconomicState.fromAmino(object.value);
939
+ },
940
+ fromProtoMsg(message) {
941
+ return exports.EconomicState.decode(message.value);
942
+ },
943
+ toProto(message) {
944
+ return exports.EconomicState.encode(message).finish();
945
+ },
946
+ toProtoMsg(message) {
947
+ return {
948
+ typeUrl: "/sparkdream.rep.v1.EconomicState",
949
+ value: exports.EconomicState.encode(message).finish()
950
+ };
951
+ }
952
+ };
953
+ function createBaseGiftRecordEntry() {
954
+ return {
955
+ sender: "",
956
+ recipient: "",
957
+ record: undefined
958
+ };
959
+ }
960
+ /**
961
+ * GiftRecordEntry is one (sender, recipient) gift cooldown record, flattened
962
+ * for genesis because the live collection is keyed by the pair.
963
+ * @name GiftRecordEntry
964
+ * @package sparkdream.rep.v1
965
+ * @see proto type: sparkdream.rep.v1.GiftRecordEntry
966
+ */
967
+ exports.GiftRecordEntry = {
968
+ typeUrl: "/sparkdream.rep.v1.GiftRecordEntry",
969
+ encode(message, writer = binary_1.BinaryWriter.create()) {
970
+ if (message.sender !== "") {
971
+ writer.uint32(10).string(message.sender);
972
+ }
973
+ if (message.recipient !== "") {
974
+ writer.uint32(18).string(message.recipient);
975
+ }
976
+ if (message.record !== undefined) {
977
+ member_1.GiftRecord.encode(message.record, writer.uint32(26).fork()).ldelim();
978
+ }
979
+ return writer;
980
+ },
981
+ decode(input, length) {
982
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
983
+ let end = length === undefined ? reader.len : reader.pos + length;
984
+ const message = createBaseGiftRecordEntry();
985
+ while (reader.pos < end) {
986
+ const tag = reader.uint32();
987
+ switch (tag >>> 3) {
988
+ case 1:
989
+ message.sender = reader.string();
990
+ break;
991
+ case 2:
992
+ message.recipient = reader.string();
993
+ break;
994
+ case 3:
995
+ message.record = member_1.GiftRecord.decode(reader, reader.uint32());
996
+ break;
997
+ default:
998
+ reader.skipType(tag & 7);
999
+ break;
1000
+ }
1001
+ }
1002
+ return message;
1003
+ },
1004
+ fromPartial(object) {
1005
+ const message = createBaseGiftRecordEntry();
1006
+ message.sender = object.sender ?? "";
1007
+ message.recipient = object.recipient ?? "";
1008
+ message.record = object.record !== undefined && object.record !== null ? member_1.GiftRecord.fromPartial(object.record) : undefined;
1009
+ return message;
1010
+ },
1011
+ fromAmino(object) {
1012
+ const message = createBaseGiftRecordEntry();
1013
+ if (object.sender !== undefined && object.sender !== null) {
1014
+ message.sender = object.sender;
1015
+ }
1016
+ if (object.recipient !== undefined && object.recipient !== null) {
1017
+ message.recipient = object.recipient;
1018
+ }
1019
+ if (object.record !== undefined && object.record !== null) {
1020
+ message.record = member_1.GiftRecord.fromAmino(object.record);
1021
+ }
1022
+ return message;
1023
+ },
1024
+ toAmino(message) {
1025
+ const obj = {};
1026
+ obj.sender = message.sender === "" ? undefined : message.sender;
1027
+ obj.recipient = message.recipient === "" ? undefined : message.recipient;
1028
+ obj.record = message.record ? member_1.GiftRecord.toAmino(message.record) : undefined;
1029
+ return obj;
1030
+ },
1031
+ fromAminoMsg(object) {
1032
+ return exports.GiftRecordEntry.fromAmino(object.value);
1033
+ },
1034
+ fromProtoMsg(message) {
1035
+ return exports.GiftRecordEntry.decode(message.value);
1036
+ },
1037
+ toProto(message) {
1038
+ return exports.GiftRecordEntry.encode(message).finish();
1039
+ },
1040
+ toProtoMsg(message) {
1041
+ return {
1042
+ typeUrl: "/sparkdream.rep.v1.GiftRecordEntry",
1043
+ value: exports.GiftRecordEntry.encode(message).finish()
1044
+ };
1045
+ }
1046
+ };
687
1047
  function createBaseRoleRewardDayFunding() {
688
1048
  return {
689
1049
  day: BigInt(0),
@@ -1,5 +1,21 @@
1
1
  import { BinaryReader, BinaryWriter } from "../../../binary";
2
2
  import { DeepPartial } from "../../../helpers";
3
+ /**
4
+ * AdjudicationDecision is the Operations Committee's verdict on the challenge
5
+ * an ADJUDICATION interim was raised to settle — the terminal path for an
6
+ * inconclusive jury, and for challenges escalated when no jury could be seated.
7
+ */
8
+ export declare enum AdjudicationDecision {
9
+ ADJUDICATION_DECISION_UNSPECIFIED = 0,
10
+ /** ADJUDICATION_DECISION_UPHOLD - The challenge stands: the work failed. Resolves the challenge as UPHELD. */
11
+ ADJUDICATION_DECISION_UPHOLD = 1,
12
+ /** ADJUDICATION_DECISION_REJECT - The challenge fails: the work stands. Resolves the challenge as REJECTED. */
13
+ ADJUDICATION_DECISION_REJECT = 2,
14
+ UNRECOGNIZED = -1
15
+ }
16
+ export declare const AdjudicationDecisionAmino: typeof AdjudicationDecision;
17
+ export declare function adjudicationDecisionFromJSON(object: any): AdjudicationDecision;
18
+ export declare function adjudicationDecisionToJSON(object: AdjudicationDecision): string;
3
19
  export declare enum InterimType {
4
20
  /** INTERIM_TYPE_JURY_DUTY - Jury and dispute resolution */
5
21
  INTERIM_TYPE_JURY_DUTY = 0,
@@ -92,6 +108,14 @@ export interface Interim {
92
108
  */
93
109
  status: InterimStatus;
94
110
  completionNotes: string;
111
+ /**
112
+ * The committee's verdict, set when an ADJUDICATION interim is completed.
113
+ * Unset on every other type. Structured rather than parsed out of
114
+ * completion_notes: a free-text keyword that fails to match (or matches the
115
+ * wrong branch) used to leave the challenge it was raised to settle
116
+ * unresolved forever, with the interim completed and nothing left to retry.
117
+ */
118
+ decision: AdjudicationDecision;
95
119
  }
96
120
  export interface InterimProtoMsg {
97
121
  typeUrl: "/sparkdream.rep.v1.Interim";
@@ -138,6 +162,14 @@ export interface InterimAmino {
138
162
  */
139
163
  status?: InterimStatus;
140
164
  completion_notes?: string;
165
+ /**
166
+ * The committee's verdict, set when an ADJUDICATION interim is completed.
167
+ * Unset on every other type. Structured rather than parsed out of
168
+ * completion_notes: a free-text keyword that fails to match (or matches the
169
+ * wrong branch) used to leave the challenge it was raised to settle
170
+ * unresolved forever, with the interim completed and nothing left to retry.
171
+ */
172
+ decision?: AdjudicationDecision;
141
173
  }
142
174
  export interface InterimAminoMsg {
143
175
  type: "/sparkdream.rep.v1.Interim";
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Interim = exports.InterimStatusAmino = exports.InterimStatus = exports.InterimComplexityAmino = exports.InterimComplexity = exports.InterimTypeAmino = exports.InterimType = void 0;
3
+ exports.Interim = exports.InterimStatusAmino = exports.InterimStatus = exports.InterimComplexityAmino = exports.InterimComplexity = exports.InterimTypeAmino = exports.InterimType = exports.AdjudicationDecisionAmino = exports.AdjudicationDecision = void 0;
4
+ exports.adjudicationDecisionFromJSON = adjudicationDecisionFromJSON;
5
+ exports.adjudicationDecisionToJSON = adjudicationDecisionToJSON;
4
6
  exports.interimTypeFromJSON = interimTypeFromJSON;
5
7
  exports.interimTypeToJSON = interimTypeToJSON;
6
8
  exports.interimComplexityFromJSON = interimComplexityFromJSON;
@@ -9,6 +11,51 @@ exports.interimStatusFromJSON = interimStatusFromJSON;
9
11
  exports.interimStatusToJSON = interimStatusToJSON;
10
12
  //@ts-nocheck
11
13
  const binary_1 = require("../../../binary");
14
+ /**
15
+ * AdjudicationDecision is the Operations Committee's verdict on the challenge
16
+ * an ADJUDICATION interim was raised to settle — the terminal path for an
17
+ * inconclusive jury, and for challenges escalated when no jury could be seated.
18
+ */
19
+ var AdjudicationDecision;
20
+ (function (AdjudicationDecision) {
21
+ AdjudicationDecision[AdjudicationDecision["ADJUDICATION_DECISION_UNSPECIFIED"] = 0] = "ADJUDICATION_DECISION_UNSPECIFIED";
22
+ /** ADJUDICATION_DECISION_UPHOLD - The challenge stands: the work failed. Resolves the challenge as UPHELD. */
23
+ AdjudicationDecision[AdjudicationDecision["ADJUDICATION_DECISION_UPHOLD"] = 1] = "ADJUDICATION_DECISION_UPHOLD";
24
+ /** ADJUDICATION_DECISION_REJECT - The challenge fails: the work stands. Resolves the challenge as REJECTED. */
25
+ AdjudicationDecision[AdjudicationDecision["ADJUDICATION_DECISION_REJECT"] = 2] = "ADJUDICATION_DECISION_REJECT";
26
+ AdjudicationDecision[AdjudicationDecision["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
27
+ })(AdjudicationDecision || (exports.AdjudicationDecision = AdjudicationDecision = {}));
28
+ exports.AdjudicationDecisionAmino = AdjudicationDecision;
29
+ function adjudicationDecisionFromJSON(object) {
30
+ switch (object) {
31
+ case 0:
32
+ case "ADJUDICATION_DECISION_UNSPECIFIED":
33
+ return AdjudicationDecision.ADJUDICATION_DECISION_UNSPECIFIED;
34
+ case 1:
35
+ case "ADJUDICATION_DECISION_UPHOLD":
36
+ return AdjudicationDecision.ADJUDICATION_DECISION_UPHOLD;
37
+ case 2:
38
+ case "ADJUDICATION_DECISION_REJECT":
39
+ return AdjudicationDecision.ADJUDICATION_DECISION_REJECT;
40
+ case -1:
41
+ case "UNRECOGNIZED":
42
+ default:
43
+ return AdjudicationDecision.UNRECOGNIZED;
44
+ }
45
+ }
46
+ function adjudicationDecisionToJSON(object) {
47
+ switch (object) {
48
+ case AdjudicationDecision.ADJUDICATION_DECISION_UNSPECIFIED:
49
+ return "ADJUDICATION_DECISION_UNSPECIFIED";
50
+ case AdjudicationDecision.ADJUDICATION_DECISION_UPHOLD:
51
+ return "ADJUDICATION_DECISION_UPHOLD";
52
+ case AdjudicationDecision.ADJUDICATION_DECISION_REJECT:
53
+ return "ADJUDICATION_DECISION_REJECT";
54
+ case AdjudicationDecision.UNRECOGNIZED:
55
+ default:
56
+ return "UNRECOGNIZED";
57
+ }
58
+ }
12
59
  var InterimType;
13
60
  (function (InterimType) {
14
61
  /** INTERIM_TYPE_JURY_DUTY - Jury and dispute resolution */
@@ -231,7 +278,8 @@ function createBaseInterim() {
231
278
  createdAt: BigInt(0),
232
279
  completedAt: BigInt(0),
233
280
  status: 0,
234
- completionNotes: ""
281
+ completionNotes: "",
282
+ decision: 0
235
283
  };
236
284
  }
237
285
  /**
@@ -282,6 +330,9 @@ exports.Interim = {
282
330
  if (message.completionNotes !== "") {
283
331
  writer.uint32(106).string(message.completionNotes);
284
332
  }
333
+ if (message.decision !== 0) {
334
+ writer.uint32(112).int32(message.decision);
335
+ }
285
336
  return writer;
286
337
  },
287
338
  decode(input, length) {
@@ -330,6 +381,9 @@ exports.Interim = {
330
381
  case 13:
331
382
  message.completionNotes = reader.string();
332
383
  break;
384
+ case 14:
385
+ message.decision = reader.int32();
386
+ break;
333
387
  default:
334
388
  reader.skipType(tag & 7);
335
389
  break;
@@ -352,6 +406,7 @@ exports.Interim = {
352
406
  message.completedAt = object.completedAt !== undefined && object.completedAt !== null ? BigInt(object.completedAt.toString()) : BigInt(0);
353
407
  message.status = object.status ?? 0;
354
408
  message.completionNotes = object.completionNotes ?? "";
409
+ message.decision = object.decision ?? 0;
355
410
  return message;
356
411
  },
357
412
  fromAmino(object) {
@@ -393,6 +448,9 @@ exports.Interim = {
393
448
  if (object.completion_notes !== undefined && object.completion_notes !== null) {
394
449
  message.completionNotes = object.completion_notes;
395
450
  }
451
+ if (object.decision !== undefined && object.decision !== null) {
452
+ message.decision = object.decision;
453
+ }
396
454
  return message;
397
455
  },
398
456
  toAmino(message) {
@@ -415,6 +473,7 @@ exports.Interim = {
415
473
  obj.completed_at = message.completedAt !== BigInt(0) ? message.completedAt?.toString() : undefined;
416
474
  obj.status = message.status === 0 ? undefined : message.status;
417
475
  obj.completion_notes = message.completionNotes === "" ? undefined : message.completionNotes;
476
+ obj.decision = message.decision === 0 ? undefined : message.decision;
418
477
  return obj;
419
478
  },
420
479
  fromAminoMsg(object) {
@@ -273,6 +273,33 @@ export interface Member {
273
273
  lifetimeForumRepPerTag: {
274
274
  [key: string]: string;
275
275
  };
276
+ /**
277
+ * Block height at which the member joined. This is the height-domain
278
+ * twin of joined_at (a unix timestamp): the new-member decay grace
279
+ * window is denominated in epochs — height / epoch_blocks — so it must
280
+ * be measured against a height, not a timestamp. Dividing the unix
281
+ * timestamp by epoch_blocks produced an astronomically large "join
282
+ * epoch", a deeply negative member age, and a grace window that never
283
+ * expired for invited members (genesis-seeded members with joined_at=0
284
+ * were unaffected). Members restored from genesis written before this
285
+ * field carry 0, which reads as "joined at genesis" — they exit grace
286
+ * after NewMemberDecayGraceEpochs epochs, the same behaviour
287
+ * genesis-seeded members have always had.
288
+ */
289
+ joinedAtHeight: bigint;
290
+ /**
291
+ * Aggregate DREAM this member currently holds in content-conviction stakes
292
+ * across ALL content items (blog, forum, collection). Backs the per-member
293
+ * max_total_content_stake_per_member cap: the per-item cap only sets the
294
+ * granularity of parking DREAM here, so the aggregate is what bounds the
295
+ * total. (Content stakes earn no DREAM but do decay.) Maintained
296
+ * by updateStakePoolTotals — the single choke point for stake-amount
297
+ * mutations — and recomputed by ReconcileStakePoolTotals on genesis import.
298
+ * Author bonds are not counted here; they are slashable escrow with their
299
+ * own per-item cap. Nil on records written before this field existed;
300
+ * readers must treat nil as zero.
301
+ */
302
+ contentStakedDream: string;
276
303
  }
277
304
  export interface MemberProtoMsg {
278
305
  typeUrl: "/sparkdream.rep.v1.Member";
@@ -401,6 +428,33 @@ export interface MemberAmino {
401
428
  lifetime_forum_rep_per_tag?: {
402
429
  [key: string]: string;
403
430
  };
431
+ /**
432
+ * Block height at which the member joined. This is the height-domain
433
+ * twin of joined_at (a unix timestamp): the new-member decay grace
434
+ * window is denominated in epochs — height / epoch_blocks — so it must
435
+ * be measured against a height, not a timestamp. Dividing the unix
436
+ * timestamp by epoch_blocks produced an astronomically large "join
437
+ * epoch", a deeply negative member age, and a grace window that never
438
+ * expired for invited members (genesis-seeded members with joined_at=0
439
+ * were unaffected). Members restored from genesis written before this
440
+ * field carry 0, which reads as "joined at genesis" — they exit grace
441
+ * after NewMemberDecayGraceEpochs epochs, the same behaviour
442
+ * genesis-seeded members have always had.
443
+ */
444
+ joined_at_height?: string;
445
+ /**
446
+ * Aggregate DREAM this member currently holds in content-conviction stakes
447
+ * across ALL content items (blog, forum, collection). Backs the per-member
448
+ * max_total_content_stake_per_member cap: the per-item cap only sets the
449
+ * granularity of parking DREAM here, so the aggregate is what bounds the
450
+ * total. (Content stakes earn no DREAM but do decay.) Maintained
451
+ * by updateStakePoolTotals — the single choke point for stake-amount
452
+ * mutations — and recomputed by ReconcileStakePoolTotals on genesis import.
453
+ * Author bonds are not counted here; they are slashable escrow with their
454
+ * own per-item cap. Nil on records written before this field existed;
455
+ * readers must treat nil as zero.
456
+ */
457
+ content_staked_dream?: string;
404
458
  }
405
459
  export interface MemberAminoMsg {
406
460
  type: "/sparkdream.rep.v1.Member";