@sparkdreamnft/sparkdreamjs 0.0.38 → 0.0.40

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,5 +1,5 @@
1
1
  import { Params, ParamsAmino } from "./params";
2
- import { Member, MemberAmino } from "./member";
2
+ import { Member, MemberAmino, GiftRecord, GiftRecordAmino } from "./member";
3
3
  import { Invitation, InvitationAmino } from "./invitation";
4
4
  import { Project, ProjectAmino } from "./project";
5
5
  import { Initiative, InitiativeAmino } from "./initiative";
@@ -118,6 +118,21 @@ export interface GenesisState {
118
118
  * on import would strand the escrow with nothing able to pay or refund it.
119
119
  */
120
120
  reviewBountyList: ReviewBounty[];
121
+ /**
122
+ * The module's own token ledger and accumulators. x/rep keeps DREAM outside
123
+ * x/bank, so none of this is recoverable from anywhere else — an export that
124
+ * omits it hands the importing chain a zero treasury, zero season counters
125
+ * (re-opening every per-season cap mid-season), a zero seasonal pool (so the
126
+ * "only seed an uninitialised pool" guard in InitGenesis refills a whole
127
+ * season budget on every import), a reset per-epoch mint allowance, and a
128
+ * decay clock that re-applies an extra epoch.
129
+ */
130
+ economicState?: EconomicState;
131
+ /**
132
+ * Per-recipient gift cooldown records. Not exported meant a capped gift
133
+ * re-enabled itself across a restart.
134
+ */
135
+ giftRecordList: GiftRecordEntry[];
121
136
  }
122
137
  export interface GenesisStateProtoMsg {
123
138
  typeUrl: "/sparkdream.rep.v1.GenesisState";
@@ -218,11 +233,126 @@ export interface GenesisStateAmino {
218
233
  * on import would strand the escrow with nothing able to pay or refund it.
219
234
  */
220
235
  review_bounty_list?: ReviewBountyAmino[];
236
+ /**
237
+ * The module's own token ledger and accumulators. x/rep keeps DREAM outside
238
+ * x/bank, so none of this is recoverable from anywhere else — an export that
239
+ * omits it hands the importing chain a zero treasury, zero season counters
240
+ * (re-opening every per-season cap mid-season), a zero seasonal pool (so the
241
+ * "only seed an uninitialised pool" guard in InitGenesis refills a whole
242
+ * season budget on every import), a reset per-epoch mint allowance, and a
243
+ * decay clock that re-applies an extra epoch.
244
+ */
245
+ economic_state?: EconomicStateAmino;
246
+ /**
247
+ * Per-recipient gift cooldown records. Not exported meant a capped gift
248
+ * re-enabled itself across a restart.
249
+ */
250
+ gift_record_list?: GiftRecordEntryAmino[];
221
251
  }
222
252
  export interface GenesisStateAminoMsg {
223
253
  type: "/sparkdream.rep.v1.GenesisState";
224
254
  value: GenesisStateAmino;
225
255
  }
256
+ /**
257
+ * EconomicState carries x/rep's token ledger across a genesis round trip.
258
+ * Int and Dec values travel as strings so an absent field reads as zero rather
259
+ * than as a malformed number.
260
+ * @name EconomicState
261
+ * @package sparkdream.rep.v1
262
+ * @see proto type: sparkdream.rep.v1.EconomicState
263
+ */
264
+ export interface EconomicState {
265
+ treasuryBalance: string;
266
+ seasonMinted: string;
267
+ seasonBurned: string;
268
+ seasonInitiativeRewardsMinted: string;
269
+ seasonStakingRewardsMinted: string;
270
+ seasonInterimRewardsMinted: string;
271
+ seasonTreasuryInflow: string;
272
+ seasonTreasuryOutflow: string;
273
+ seasonalPoolRemaining: string;
274
+ /**
275
+ * Monotonic for the life of the chain. Exporting it is what lets
276
+ * RebaseStakeRewardDebt be a no-op on a faithful round trip instead of the
277
+ * repair it has to be when the accumulator resets to zero.
278
+ */
279
+ seasonalPoolAccPerShare: string;
280
+ seasonalPoolSeason: bigint;
281
+ seasonalPoolStartEpoch: bigint;
282
+ epochMintedEpoch: bigint;
283
+ epochMintedAmount: string;
284
+ decayLastProcessedEpoch: bigint;
285
+ }
286
+ export interface EconomicStateProtoMsg {
287
+ typeUrl: "/sparkdream.rep.v1.EconomicState";
288
+ value: Uint8Array;
289
+ }
290
+ /**
291
+ * EconomicState carries x/rep's token ledger across a genesis round trip.
292
+ * Int and Dec values travel as strings so an absent field reads as zero rather
293
+ * than as a malformed number.
294
+ * @name EconomicStateAmino
295
+ * @package sparkdream.rep.v1
296
+ * @see proto type: sparkdream.rep.v1.EconomicState
297
+ */
298
+ export interface EconomicStateAmino {
299
+ treasury_balance?: string;
300
+ season_minted?: string;
301
+ season_burned?: string;
302
+ season_initiative_rewards_minted?: string;
303
+ season_staking_rewards_minted?: string;
304
+ season_interim_rewards_minted?: string;
305
+ season_treasury_inflow?: string;
306
+ season_treasury_outflow?: string;
307
+ seasonal_pool_remaining?: string;
308
+ /**
309
+ * Monotonic for the life of the chain. Exporting it is what lets
310
+ * RebaseStakeRewardDebt be a no-op on a faithful round trip instead of the
311
+ * repair it has to be when the accumulator resets to zero.
312
+ */
313
+ seasonal_pool_acc_per_share?: string;
314
+ seasonal_pool_season?: string;
315
+ seasonal_pool_start_epoch?: string;
316
+ epoch_minted_epoch?: string;
317
+ epoch_minted_amount?: string;
318
+ decay_last_processed_epoch?: string;
319
+ }
320
+ export interface EconomicStateAminoMsg {
321
+ type: "/sparkdream.rep.v1.EconomicState";
322
+ value: EconomicStateAmino;
323
+ }
324
+ /**
325
+ * GiftRecordEntry is one (sender, recipient) gift cooldown record, flattened
326
+ * for genesis because the live collection is keyed by the pair.
327
+ * @name GiftRecordEntry
328
+ * @package sparkdream.rep.v1
329
+ * @see proto type: sparkdream.rep.v1.GiftRecordEntry
330
+ */
331
+ export interface GiftRecordEntry {
332
+ sender: string;
333
+ recipient: string;
334
+ record?: GiftRecord;
335
+ }
336
+ export interface GiftRecordEntryProtoMsg {
337
+ typeUrl: "/sparkdream.rep.v1.GiftRecordEntry";
338
+ value: Uint8Array;
339
+ }
340
+ /**
341
+ * GiftRecordEntry is one (sender, recipient) gift cooldown record, flattened
342
+ * for genesis because the live collection is keyed by the pair.
343
+ * @name GiftRecordEntryAmino
344
+ * @package sparkdream.rep.v1
345
+ * @see proto type: sparkdream.rep.v1.GiftRecordEntry
346
+ */
347
+ export interface GiftRecordEntryAmino {
348
+ sender?: string;
349
+ recipient?: string;
350
+ record?: GiftRecordAmino;
351
+ }
352
+ export interface GiftRecordEntryAminoMsg {
353
+ type: "/sparkdream.rep.v1.GiftRecordEntry";
354
+ value: GiftRecordEntryAmino;
355
+ }
226
356
  /**
227
357
  * RoleRewardDayFunding is one UTC day's community-pool draw for the
228
358
  * bonded-role reward pools, ledgered so role_reward_daily_funding bounds a day
@@ -315,6 +445,45 @@ export declare const GenesisState: {
315
445
  toProto(message: GenesisState): Uint8Array;
316
446
  toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
317
447
  };
448
+ /**
449
+ * EconomicState carries x/rep's token ledger across a genesis round trip.
450
+ * Int and Dec values travel as strings so an absent field reads as zero rather
451
+ * than as a malformed number.
452
+ * @name EconomicState
453
+ * @package sparkdream.rep.v1
454
+ * @see proto type: sparkdream.rep.v1.EconomicState
455
+ */
456
+ export declare const EconomicState: {
457
+ typeUrl: string;
458
+ encode(message: EconomicState, writer?: BinaryWriter): BinaryWriter;
459
+ decode(input: BinaryReader | Uint8Array, length?: number): EconomicState;
460
+ fromPartial(object: DeepPartial<EconomicState>): EconomicState;
461
+ fromAmino(object: EconomicStateAmino): EconomicState;
462
+ toAmino(message: EconomicState): EconomicStateAmino;
463
+ fromAminoMsg(object: EconomicStateAminoMsg): EconomicState;
464
+ fromProtoMsg(message: EconomicStateProtoMsg): EconomicState;
465
+ toProto(message: EconomicState): Uint8Array;
466
+ toProtoMsg(message: EconomicState): EconomicStateProtoMsg;
467
+ };
468
+ /**
469
+ * GiftRecordEntry is one (sender, recipient) gift cooldown record, flattened
470
+ * for genesis because the live collection is keyed by the pair.
471
+ * @name GiftRecordEntry
472
+ * @package sparkdream.rep.v1
473
+ * @see proto type: sparkdream.rep.v1.GiftRecordEntry
474
+ */
475
+ export declare const GiftRecordEntry: {
476
+ typeUrl: string;
477
+ encode(message: GiftRecordEntry, writer?: BinaryWriter): BinaryWriter;
478
+ decode(input: BinaryReader | Uint8Array, length?: number): GiftRecordEntry;
479
+ fromPartial(object: DeepPartial<GiftRecordEntry>): GiftRecordEntry;
480
+ fromAmino(object: GiftRecordEntryAmino): GiftRecordEntry;
481
+ toAmino(message: GiftRecordEntry): GiftRecordEntryAmino;
482
+ fromAminoMsg(object: GiftRecordEntryAminoMsg): GiftRecordEntry;
483
+ fromProtoMsg(message: GiftRecordEntryProtoMsg): GiftRecordEntry;
484
+ toProto(message: GiftRecordEntry): Uint8Array;
485
+ toProtoMsg(message: GiftRecordEntry): GiftRecordEntryProtoMsg;
486
+ };
318
487
  /**
319
488
  * RoleRewardDayFunding is one UTC day's community-pool draw for the
320
489
  * bonded-role reward pools, ledgered so role_reward_daily_funding bounds a day
@@ -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";