@sparkdreamnft/sparkdreamjs 0.0.26 → 0.0.28

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 (56) hide show
  1. package/cosmos/bundle.d.ts +160 -160
  2. package/cosmos/bundle.js +181 -181
  3. package/esm/cosmos/bundle.js +181 -181
  4. package/esm/ibc/bundle.js +105 -105
  5. package/esm/sparkdream/bundle.js +275 -273
  6. package/esm/sparkdream/collect/v1/params.js +24 -0
  7. package/esm/sparkdream/collect/v1/query.js +165 -0
  8. package/esm/sparkdream/collect/v1/query.lcd.js +11 -0
  9. package/esm/sparkdream/collect/v1/query.rpc.Query.js +10 -1
  10. package/esm/sparkdream/collect/v1/tx.js +216 -1
  11. package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
  12. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +11 -1
  13. package/esm/sparkdream/collect/v1/types.js +92 -2
  14. package/esm/sparkdream/forum/v1/sentinel_activity.js +58 -1
  15. package/esm/sparkdream/forum/v1/tx.js +1 -1
  16. package/esm/sparkdream/rep/v1/bonded_role.js +17 -5
  17. package/esm/sparkdream/rep/v1/genesis.js +17 -1
  18. package/esm/sparkdream/rep/v1/query.js +13 -34
  19. package/esm/sparkdream/rep/v1/role_activity.js +670 -0
  20. package/esm/tendermint/bundle.js +17 -17
  21. package/ibc/bundle.d.ts +90 -90
  22. package/ibc/bundle.js +105 -105
  23. package/package.json +1 -1
  24. package/sparkdream/bundle.d.ts +7194 -7061
  25. package/sparkdream/bundle.js +275 -273
  26. package/sparkdream/collect/v1/params.d.ts +28 -0
  27. package/sparkdream/collect/v1/params.js +24 -0
  28. package/sparkdream/collect/v1/query.d.ts +92 -0
  29. package/sparkdream/collect/v1/query.js +167 -1
  30. package/sparkdream/collect/v1/query.lcd.d.ts +2 -1
  31. package/sparkdream/collect/v1/query.lcd.js +11 -0
  32. package/sparkdream/collect/v1/query.rpc.Query.d.ts +5 -1
  33. package/sparkdream/collect/v1/query.rpc.Query.js +9 -0
  34. package/sparkdream/collect/v1/tx.d.ts +130 -6
  35. package/sparkdream/collect/v1/tx.js +220 -3
  36. package/sparkdream/collect/v1/tx.registry.d.ts +13 -1
  37. package/sparkdream/collect/v1/tx.registry.js +19 -1
  38. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +10 -1
  39. package/sparkdream/collect/v1/tx.rpc.msg.js +10 -0
  40. package/sparkdream/collect/v1/types.d.ts +72 -0
  41. package/sparkdream/collect/v1/types.js +92 -2
  42. package/sparkdream/forum/v1/sentinel_activity.d.ts +53 -0
  43. package/sparkdream/forum/v1/sentinel_activity.js +58 -1
  44. package/sparkdream/forum/v1/tx.d.ts +1 -1
  45. package/sparkdream/forum/v1/tx.js +1 -1
  46. package/sparkdream/rep/v1/bonded_role.d.ts +13 -1
  47. package/sparkdream/rep/v1/bonded_role.js +17 -5
  48. package/sparkdream/rep/v1/genesis.d.ts +3 -0
  49. package/sparkdream/rep/v1/genesis.js +17 -1
  50. package/sparkdream/rep/v1/query.d.ts +2 -6
  51. package/sparkdream/rep/v1/query.js +13 -34
  52. package/sparkdream/rep/v1/role_activity.d.ts +395 -0
  53. package/sparkdream/rep/v1/role_activity.js +673 -0
  54. package/sparkdream/rpc.query.d.ts +1 -0
  55. package/tendermint/bundle.d.ts +844 -844
  56. package/tendermint/bundle.js +17 -17
@@ -2404,7 +2404,9 @@ function createBaseCollectOperationalParams() {
2404
2404
  nonMemberCollabBurnFraction: "",
2405
2405
  endorserRepPenalty: "",
2406
2406
  collabInviterRepPenalty: "",
2407
- authorRepPenalty: ""
2407
+ authorRepPenalty: "",
2408
+ sentinelUnhideWindowBlocks: BigInt(0),
2409
+ maxHidesPerSentinelPerDay: 0
2408
2410
  };
2409
2411
  }
2410
2412
  /**
@@ -2569,6 +2571,12 @@ export const CollectOperationalParams = {
2569
2571
  if (message.authorRepPenalty !== "") {
2570
2572
  writer.uint32(434).string(Decimal.fromUserInput(message.authorRepPenalty, 18).atomics);
2571
2573
  }
2574
+ if (message.sentinelUnhideWindowBlocks !== BigInt(0)) {
2575
+ writer.uint32(448).int64(message.sentinelUnhideWindowBlocks);
2576
+ }
2577
+ if (message.maxHidesPerSentinelPerDay !== 0) {
2578
+ writer.uint32(456).uint32(message.maxHidesPerSentinelPerDay);
2579
+ }
2572
2580
  return writer;
2573
2581
  },
2574
2582
  decode(input, length) {
@@ -2731,6 +2739,12 @@ export const CollectOperationalParams = {
2731
2739
  case 54:
2732
2740
  message.authorRepPenalty = Decimal.fromAtomics(reader.string(), 18).toString();
2733
2741
  break;
2742
+ case 56:
2743
+ message.sentinelUnhideWindowBlocks = reader.int64();
2744
+ break;
2745
+ case 57:
2746
+ message.maxHidesPerSentinelPerDay = reader.uint32();
2747
+ break;
2734
2748
  default:
2735
2749
  reader.skipType(tag & 7);
2736
2750
  break;
@@ -2791,6 +2805,8 @@ export const CollectOperationalParams = {
2791
2805
  message.endorserRepPenalty = object.endorserRepPenalty ?? "";
2792
2806
  message.collabInviterRepPenalty = object.collabInviterRepPenalty ?? "";
2793
2807
  message.authorRepPenalty = object.authorRepPenalty ?? "";
2808
+ message.sentinelUnhideWindowBlocks = object.sentinelUnhideWindowBlocks !== undefined && object.sentinelUnhideWindowBlocks !== null ? BigInt(object.sentinelUnhideWindowBlocks.toString()) : BigInt(0);
2809
+ message.maxHidesPerSentinelPerDay = object.maxHidesPerSentinelPerDay ?? 0;
2794
2810
  return message;
2795
2811
  },
2796
2812
  fromAmino(object) {
@@ -2948,6 +2964,12 @@ export const CollectOperationalParams = {
2948
2964
  if (object.author_rep_penalty !== undefined && object.author_rep_penalty !== null) {
2949
2965
  message.authorRepPenalty = object.author_rep_penalty;
2950
2966
  }
2967
+ if (object.sentinel_unhide_window_blocks !== undefined && object.sentinel_unhide_window_blocks !== null) {
2968
+ message.sentinelUnhideWindowBlocks = BigInt(object.sentinel_unhide_window_blocks);
2969
+ }
2970
+ if (object.max_hides_per_sentinel_per_day !== undefined && object.max_hides_per_sentinel_per_day !== null) {
2971
+ message.maxHidesPerSentinelPerDay = object.max_hides_per_sentinel_per_day;
2972
+ }
2951
2973
  return message;
2952
2974
  },
2953
2975
  toAmino(message) {
@@ -3003,6 +3025,8 @@ export const CollectOperationalParams = {
3003
3025
  obj.endorser_rep_penalty = message.endorserRepPenalty === "" ? undefined : message.endorserRepPenalty;
3004
3026
  obj.collab_inviter_rep_penalty = message.collabInviterRepPenalty === "" ? undefined : message.collabInviterRepPenalty;
3005
3027
  obj.author_rep_penalty = message.authorRepPenalty === "" ? undefined : message.authorRepPenalty;
3028
+ obj.sentinel_unhide_window_blocks = message.sentinelUnhideWindowBlocks !== BigInt(0) ? message.sentinelUnhideWindowBlocks?.toString() : undefined;
3029
+ obj.max_hides_per_sentinel_per_day = message.maxHidesPerSentinelPerDay === 0 ? undefined : message.maxHidesPerSentinelPerDay;
3006
3030
  return obj;
3007
3031
  },
3008
3032
  fromAminoMsg(object) {
@@ -3177,7 +3201,12 @@ function createBaseHideRecord() {
3177
3201
  reasonText: "",
3178
3202
  appealDeadline: BigInt(0),
3179
3203
  appealed: false,
3180
- resolved: false
3204
+ resolved: false,
3205
+ selfCorrected: false,
3206
+ authorBondAmount: "",
3207
+ authorRepPenalty: "",
3208
+ repPenaltyTags: [],
3209
+ repPenaltyAmounts: []
3181
3210
  };
3182
3211
  }
3183
3212
  /**
@@ -3222,6 +3251,21 @@ export const HideRecord = {
3222
3251
  if (message.resolved === true) {
3223
3252
  writer.uint32(88).bool(message.resolved);
3224
3253
  }
3254
+ if (message.selfCorrected === true) {
3255
+ writer.uint32(96).bool(message.selfCorrected);
3256
+ }
3257
+ if (message.authorBondAmount !== "") {
3258
+ writer.uint32(106).string(message.authorBondAmount);
3259
+ }
3260
+ if (message.authorRepPenalty !== "") {
3261
+ writer.uint32(114).string(Decimal.fromUserInput(message.authorRepPenalty, 18).atomics);
3262
+ }
3263
+ for (const v of message.repPenaltyTags) {
3264
+ writer.uint32(122).string(v);
3265
+ }
3266
+ for (const v of message.repPenaltyAmounts) {
3267
+ writer.uint32(130).string(v);
3268
+ }
3225
3269
  return writer;
3226
3270
  },
3227
3271
  decode(input, length) {
@@ -3264,6 +3308,21 @@ export const HideRecord = {
3264
3308
  case 11:
3265
3309
  message.resolved = reader.bool();
3266
3310
  break;
3311
+ case 12:
3312
+ message.selfCorrected = reader.bool();
3313
+ break;
3314
+ case 13:
3315
+ message.authorBondAmount = reader.string();
3316
+ break;
3317
+ case 14:
3318
+ message.authorRepPenalty = Decimal.fromAtomics(reader.string(), 18).toString();
3319
+ break;
3320
+ case 15:
3321
+ message.repPenaltyTags.push(reader.string());
3322
+ break;
3323
+ case 16:
3324
+ message.repPenaltyAmounts.push(reader.string());
3325
+ break;
3267
3326
  default:
3268
3327
  reader.skipType(tag & 7);
3269
3328
  break;
@@ -3284,6 +3343,11 @@ export const HideRecord = {
3284
3343
  message.appealDeadline = object.appealDeadline !== undefined && object.appealDeadline !== null ? BigInt(object.appealDeadline.toString()) : BigInt(0);
3285
3344
  message.appealed = object.appealed ?? false;
3286
3345
  message.resolved = object.resolved ?? false;
3346
+ message.selfCorrected = object.selfCorrected ?? false;
3347
+ message.authorBondAmount = object.authorBondAmount ?? "";
3348
+ message.authorRepPenalty = object.authorRepPenalty ?? "";
3349
+ message.repPenaltyTags = object.repPenaltyTags?.map(e => e) || [];
3350
+ message.repPenaltyAmounts = object.repPenaltyAmounts?.map(e => e) || [];
3287
3351
  return message;
3288
3352
  },
3289
3353
  fromAmino(object) {
@@ -3321,6 +3385,17 @@ export const HideRecord = {
3321
3385
  if (object.resolved !== undefined && object.resolved !== null) {
3322
3386
  message.resolved = object.resolved;
3323
3387
  }
3388
+ if (object.self_corrected !== undefined && object.self_corrected !== null) {
3389
+ message.selfCorrected = object.self_corrected;
3390
+ }
3391
+ if (object.author_bond_amount !== undefined && object.author_bond_amount !== null) {
3392
+ message.authorBondAmount = object.author_bond_amount;
3393
+ }
3394
+ if (object.author_rep_penalty !== undefined && object.author_rep_penalty !== null) {
3395
+ message.authorRepPenalty = object.author_rep_penalty;
3396
+ }
3397
+ message.repPenaltyTags = object.rep_penalty_tags?.map(e => e) || [];
3398
+ message.repPenaltyAmounts = object.rep_penalty_amounts?.map(e => e) || [];
3324
3399
  return message;
3325
3400
  },
3326
3401
  toAmino(message) {
@@ -3336,6 +3411,21 @@ export const HideRecord = {
3336
3411
  obj.appeal_deadline = message.appealDeadline !== BigInt(0) ? message.appealDeadline?.toString() : undefined;
3337
3412
  obj.appealed = message.appealed === false ? undefined : message.appealed;
3338
3413
  obj.resolved = message.resolved === false ? undefined : message.resolved;
3414
+ obj.self_corrected = message.selfCorrected === false ? undefined : message.selfCorrected;
3415
+ obj.author_bond_amount = message.authorBondAmount === "" ? undefined : message.authorBondAmount;
3416
+ obj.author_rep_penalty = message.authorRepPenalty === "" ? undefined : message.authorRepPenalty;
3417
+ if (message.repPenaltyTags) {
3418
+ obj.rep_penalty_tags = message.repPenaltyTags.map(e => e);
3419
+ }
3420
+ else {
3421
+ obj.rep_penalty_tags = message.repPenaltyTags;
3422
+ }
3423
+ if (message.repPenaltyAmounts) {
3424
+ obj.rep_penalty_amounts = message.repPenaltyAmounts.map(e => e);
3425
+ }
3426
+ else {
3427
+ obj.rep_penalty_amounts = message.repPenaltyAmounts;
3428
+ }
3339
3429
  return obj;
3340
3430
  },
3341
3431
  fromAminoMsg(object) {
@@ -126,13 +126,26 @@ function createBaseSentinelActivity() {
126
126
  confirmedProposals: BigInt(0),
127
127
  rejectedProposals: BigInt(0),
128
128
  epochCurations: BigInt(0),
129
- accuracyWindow: []
129
+ accuracyWindow: [],
130
+ totalCollectHides: BigInt(0),
131
+ upheldCollectHides: BigInt(0),
132
+ overturnedCollectHides: BigInt(0),
133
+ epochCollectHides: BigInt(0)
130
134
  };
131
135
  }
132
136
  /**
133
137
  * SentinelActivity holds forum-specific action counters and local cooldowns
134
138
  * for a sentinel. The accountability record (bond, bond status, activity
135
139
  * stamps) lives in sparkdream.rep.v1.SentinelActivity.
140
+ * STORAGE vs PROJECTION: the shared accountability record lives on
141
+ * x/rep's RoleActivity (see docs/x-rep-spec.md); forum PERSISTS only the
142
+ * forum-local fields — pending_hide_count, unchallenged_hides, and the
143
+ * curation-proposal lifecycle counters (total/confirmed/rejected_proposals).
144
+ * Every other field (per-action totals/upheld/overturned/epoch counters,
145
+ * streaks, overturn_cooldown_until, accuracy_window, collect counters) is
146
+ * PROJECTION-ONLY: sourced from x/rep's shared RoleActivity record at query
147
+ * time by get-sentinel-activity so client field paths stay stable. Those
148
+ * fields are zero in stored records and must not be written.
136
149
  * @name SentinelActivity
137
150
  * @package sparkdream.forum.v1
138
151
  * @see proto type: sparkdream.forum.v1.SentinelActivity
@@ -227,6 +240,18 @@ export const SentinelActivity = {
227
240
  for (const v of message.accuracyWindow) {
228
241
  AccuracyEpochBucket.encode(v, writer.uint32(234).fork()).ldelim();
229
242
  }
243
+ if (message.totalCollectHides !== BigInt(0)) {
244
+ writer.uint32(240).uint64(message.totalCollectHides);
245
+ }
246
+ if (message.upheldCollectHides !== BigInt(0)) {
247
+ writer.uint32(248).uint64(message.upheldCollectHides);
248
+ }
249
+ if (message.overturnedCollectHides !== BigInt(0)) {
250
+ writer.uint32(256).uint64(message.overturnedCollectHides);
251
+ }
252
+ if (message.epochCollectHides !== BigInt(0)) {
253
+ writer.uint32(264).uint64(message.epochCollectHides);
254
+ }
230
255
  return writer;
231
256
  },
232
257
  decode(input, length) {
@@ -323,6 +348,18 @@ export const SentinelActivity = {
323
348
  case 29:
324
349
  message.accuracyWindow.push(AccuracyEpochBucket.decode(reader, reader.uint32()));
325
350
  break;
351
+ case 30:
352
+ message.totalCollectHides = reader.uint64();
353
+ break;
354
+ case 31:
355
+ message.upheldCollectHides = reader.uint64();
356
+ break;
357
+ case 32:
358
+ message.overturnedCollectHides = reader.uint64();
359
+ break;
360
+ case 33:
361
+ message.epochCollectHides = reader.uint64();
362
+ break;
326
363
  default:
327
364
  reader.skipType(tag & 7);
328
365
  break;
@@ -361,6 +398,10 @@ export const SentinelActivity = {
361
398
  message.rejectedProposals = object.rejectedProposals !== undefined && object.rejectedProposals !== null ? BigInt(object.rejectedProposals.toString()) : BigInt(0);
362
399
  message.epochCurations = object.epochCurations !== undefined && object.epochCurations !== null ? BigInt(object.epochCurations.toString()) : BigInt(0);
363
400
  message.accuracyWindow = object.accuracyWindow?.map(e => AccuracyEpochBucket.fromPartial(e)) || [];
401
+ message.totalCollectHides = object.totalCollectHides !== undefined && object.totalCollectHides !== null ? BigInt(object.totalCollectHides.toString()) : BigInt(0);
402
+ message.upheldCollectHides = object.upheldCollectHides !== undefined && object.upheldCollectHides !== null ? BigInt(object.upheldCollectHides.toString()) : BigInt(0);
403
+ message.overturnedCollectHides = object.overturnedCollectHides !== undefined && object.overturnedCollectHides !== null ? BigInt(object.overturnedCollectHides.toString()) : BigInt(0);
404
+ message.epochCollectHides = object.epochCollectHides !== undefined && object.epochCollectHides !== null ? BigInt(object.epochCollectHides.toString()) : BigInt(0);
364
405
  return message;
365
406
  },
366
407
  fromAmino(object) {
@@ -450,6 +491,18 @@ export const SentinelActivity = {
450
491
  message.epochCurations = BigInt(object.epoch_curations);
451
492
  }
452
493
  message.accuracyWindow = object.accuracy_window?.map(e => AccuracyEpochBucket.fromAmino(e)) || [];
494
+ if (object.total_collect_hides !== undefined && object.total_collect_hides !== null) {
495
+ message.totalCollectHides = BigInt(object.total_collect_hides);
496
+ }
497
+ if (object.upheld_collect_hides !== undefined && object.upheld_collect_hides !== null) {
498
+ message.upheldCollectHides = BigInt(object.upheld_collect_hides);
499
+ }
500
+ if (object.overturned_collect_hides !== undefined && object.overturned_collect_hides !== null) {
501
+ message.overturnedCollectHides = BigInt(object.overturned_collect_hides);
502
+ }
503
+ if (object.epoch_collect_hides !== undefined && object.epoch_collect_hides !== null) {
504
+ message.epochCollectHides = BigInt(object.epoch_collect_hides);
505
+ }
453
506
  return message;
454
507
  },
455
508
  toAmino(message) {
@@ -488,6 +541,10 @@ export const SentinelActivity = {
488
541
  else {
489
542
  obj.accuracy_window = message.accuracyWindow;
490
543
  }
544
+ obj.total_collect_hides = message.totalCollectHides !== BigInt(0) ? message.totalCollectHides?.toString() : undefined;
545
+ obj.upheld_collect_hides = message.upheldCollectHides !== BigInt(0) ? message.upheldCollectHides?.toString() : undefined;
546
+ obj.overturned_collect_hides = message.overturnedCollectHides !== BigInt(0) ? message.overturnedCollectHides?.toString() : undefined;
547
+ obj.epoch_collect_hides = message.epochCollectHides !== BigInt(0) ? message.epochCollectHides?.toString() : undefined;
491
548
  return obj;
492
549
  },
493
550
  fromAminoMsg(object) {
@@ -7,7 +7,7 @@ import { BinaryReader, BinaryWriter } from "../../../binary";
7
7
  * where an account is BOTH a bonded forum sentinel and a Commons Operations
8
8
  * Committee member: without it the handler would silently pick the council
9
9
  * (gov) path — a strictly more powerful, less accountable action chosen by
10
- * accident. See docs/HANDOFF_HIDE_AUTHORITY_DISAMBIGUATION.md.
10
+ * accident. See docs/x-forum-spec.md (Shared ModerationAuthority).
11
11
  */
12
12
  export var ModerationAuthority;
13
13
  (function (ModerationAuthority) {
@@ -7,11 +7,23 @@ import { BinaryReader, BinaryWriter } from "../../../binary";
7
7
  * BondedRoleConfig. Independent bond pools, configs, and slashing surfaces per
8
8
  * role; cross-role coupling (if ever needed) belongs in the gaining module, not
9
9
  * in this primitive.
10
+ *
11
+ * CONTENT_SENTINEL is the deliberate exception to the owning-module naming
12
+ * convention: one moderation corps (one bond, one accountability record)
13
+ * spans every content surface — forum posts/threads AND collect
14
+ * collections/items. x/forum is the role's CONFIG STEWARD: it is the sole
15
+ * writer of the role's BondedRoleConfig (via its sentinel operational
16
+ * params). The shared accountability record (RoleActivity: per-kind action
17
+ * counters, verdict streaks, overturn cooldown, accuracy ring) is owned by
18
+ * x/rep itself; forum and collect report actions and verdicts into it.
19
+ * Formerly named ROLE_TYPE_FORUM_SENTINEL (renamed pre-launch; see the
20
+ * docs/bonded-role-generalization.md addendum and docs/x-rep-spec.md,
21
+ * RoleActivity).
10
22
  */
11
23
  export var RoleType;
12
24
  (function (RoleType) {
13
25
  RoleType[RoleType["ROLE_TYPE_UNSPECIFIED"] = 0] = "ROLE_TYPE_UNSPECIFIED";
14
- RoleType[RoleType["ROLE_TYPE_FORUM_SENTINEL"] = 1] = "ROLE_TYPE_FORUM_SENTINEL";
26
+ RoleType[RoleType["ROLE_TYPE_CONTENT_SENTINEL"] = 1] = "ROLE_TYPE_CONTENT_SENTINEL";
15
27
  RoleType[RoleType["ROLE_TYPE_COLLECT_CURATOR"] = 2] = "ROLE_TYPE_COLLECT_CURATOR";
16
28
  RoleType[RoleType["ROLE_TYPE_FEDERATION_VERIFIER"] = 3] = "ROLE_TYPE_FEDERATION_VERIFIER";
17
29
  RoleType[RoleType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
@@ -23,8 +35,8 @@ export function roleTypeFromJSON(object) {
23
35
  case "ROLE_TYPE_UNSPECIFIED":
24
36
  return RoleType.ROLE_TYPE_UNSPECIFIED;
25
37
  case 1:
26
- case "ROLE_TYPE_FORUM_SENTINEL":
27
- return RoleType.ROLE_TYPE_FORUM_SENTINEL;
38
+ case "ROLE_TYPE_CONTENT_SENTINEL":
39
+ return RoleType.ROLE_TYPE_CONTENT_SENTINEL;
28
40
  case 2:
29
41
  case "ROLE_TYPE_COLLECT_CURATOR":
30
42
  return RoleType.ROLE_TYPE_COLLECT_CURATOR;
@@ -41,8 +53,8 @@ export function roleTypeToJSON(object) {
41
53
  switch (object) {
42
54
  case RoleType.ROLE_TYPE_UNSPECIFIED:
43
55
  return "ROLE_TYPE_UNSPECIFIED";
44
- case RoleType.ROLE_TYPE_FORUM_SENTINEL:
45
- return "ROLE_TYPE_FORUM_SENTINEL";
56
+ case RoleType.ROLE_TYPE_CONTENT_SENTINEL:
57
+ return "ROLE_TYPE_CONTENT_SENTINEL";
46
58
  case RoleType.ROLE_TYPE_COLLECT_CURATOR:
47
59
  return "ROLE_TYPE_COLLECT_CURATOR";
48
60
  case RoleType.ROLE_TYPE_FEDERATION_VERIFIER:
@@ -20,6 +20,7 @@ import { MemberReport } from "./member_report";
20
20
  import { MemberWarning } from "./member_warning";
21
21
  import { GovActionAppeal } from "./gov_action_appeal";
22
22
  import { BondedRole, BondedRoleConfig } from "./bonded_role";
23
+ import { RoleActivity } from "./role_activity";
23
24
  import { BinaryReader, BinaryWriter } from "../../../binary";
24
25
  function createBaseGenesisState() {
25
26
  return {
@@ -60,7 +61,8 @@ function createBaseGenesisState() {
60
61
  govActionAppealList: [],
61
62
  govActionAppealCount: BigInt(0),
62
63
  bondedRoleList: [],
63
- bondedRoleConfigList: []
64
+ bondedRoleConfigList: [],
65
+ roleActivityList: []
64
66
  };
65
67
  }
66
68
  /**
@@ -186,6 +188,9 @@ export const GenesisState = {
186
188
  for (const v of message.bondedRoleConfigList) {
187
189
  BondedRoleConfig.encode(v, writer.uint32(314).fork()).ldelim();
188
190
  }
191
+ for (const v of message.roleActivityList) {
192
+ RoleActivity.encode(v, writer.uint32(322).fork()).ldelim();
193
+ }
189
194
  return writer;
190
195
  },
191
196
  decode(input, length) {
@@ -309,6 +314,9 @@ export const GenesisState = {
309
314
  case 39:
310
315
  message.bondedRoleConfigList.push(BondedRoleConfig.decode(reader, reader.uint32()));
311
316
  break;
317
+ case 40:
318
+ message.roleActivityList.push(RoleActivity.decode(reader, reader.uint32()));
319
+ break;
312
320
  default:
313
321
  reader.skipType(tag & 7);
314
322
  break;
@@ -356,6 +364,7 @@ export const GenesisState = {
356
364
  message.govActionAppealCount = object.govActionAppealCount !== undefined && object.govActionAppealCount !== null ? BigInt(object.govActionAppealCount.toString()) : BigInt(0);
357
365
  message.bondedRoleList = object.bondedRoleList?.map(e => BondedRole.fromPartial(e)) || [];
358
366
  message.bondedRoleConfigList = object.bondedRoleConfigList?.map(e => BondedRoleConfig.fromPartial(e)) || [];
367
+ message.roleActivityList = object.roleActivityList?.map(e => RoleActivity.fromPartial(e)) || [];
359
368
  return message;
360
369
  },
361
370
  fromAmino(object) {
@@ -424,6 +433,7 @@ export const GenesisState = {
424
433
  }
425
434
  message.bondedRoleList = object.bonded_role_list?.map(e => BondedRole.fromAmino(e)) || [];
426
435
  message.bondedRoleConfigList = object.bonded_role_config_list?.map(e => BondedRoleConfig.fromAmino(e)) || [];
436
+ message.roleActivityList = object.role_activity_list?.map(e => RoleActivity.fromAmino(e)) || [];
427
437
  return message;
428
438
  },
429
439
  toAmino(message) {
@@ -591,6 +601,12 @@ export const GenesisState = {
591
601
  else {
592
602
  obj.bonded_role_config_list = message.bondedRoleConfigList;
593
603
  }
604
+ if (message.roleActivityList) {
605
+ obj.role_activity_list = message.roleActivityList.map(e => e ? RoleActivity.toAmino(e) : undefined);
606
+ }
607
+ else {
608
+ obj.role_activity_list = message.roleActivityList;
609
+ }
594
610
  return obj;
595
611
  },
596
612
  fromAminoMsg(object) {
@@ -3015,9 +3015,7 @@ export const QueryInvitationsByInviterRequest = {
3015
3015
  };
3016
3016
  function createBaseQueryInvitationsByInviterResponse() {
3017
3017
  return {
3018
- invitationId: BigInt(0),
3019
- inviteeAddress: "",
3020
- status: BigInt(0),
3018
+ invitation: [],
3021
3019
  pagination: undefined
3022
3020
  };
3023
3021
  }
@@ -3030,17 +3028,11 @@ function createBaseQueryInvitationsByInviterResponse() {
3030
3028
  export const QueryInvitationsByInviterResponse = {
3031
3029
  typeUrl: "/sparkdream.rep.v1.QueryInvitationsByInviterResponse",
3032
3030
  encode(message, writer = BinaryWriter.create()) {
3033
- if (message.invitationId !== BigInt(0)) {
3034
- writer.uint32(8).uint64(message.invitationId);
3035
- }
3036
- if (message.inviteeAddress !== "") {
3037
- writer.uint32(18).string(message.inviteeAddress);
3038
- }
3039
- if (message.status !== BigInt(0)) {
3040
- writer.uint32(24).uint64(message.status);
3031
+ for (const v of message.invitation) {
3032
+ Invitation.encode(v, writer.uint32(10).fork()).ldelim();
3041
3033
  }
3042
3034
  if (message.pagination !== undefined) {
3043
- PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
3035
+ PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
3044
3036
  }
3045
3037
  return writer;
3046
3038
  },
@@ -3052,15 +3044,9 @@ export const QueryInvitationsByInviterResponse = {
3052
3044
  const tag = reader.uint32();
3053
3045
  switch (tag >>> 3) {
3054
3046
  case 1:
3055
- message.invitationId = reader.uint64();
3047
+ message.invitation.push(Invitation.decode(reader, reader.uint32()));
3056
3048
  break;
3057
3049
  case 2:
3058
- message.inviteeAddress = reader.string();
3059
- break;
3060
- case 3:
3061
- message.status = reader.uint64();
3062
- break;
3063
- case 4:
3064
3050
  message.pagination = PageResponse.decode(reader, reader.uint32());
3065
3051
  break;
3066
3052
  default:
@@ -3072,23 +3058,13 @@ export const QueryInvitationsByInviterResponse = {
3072
3058
  },
3073
3059
  fromPartial(object) {
3074
3060
  const message = createBaseQueryInvitationsByInviterResponse();
3075
- message.invitationId = object.invitationId !== undefined && object.invitationId !== null ? BigInt(object.invitationId.toString()) : BigInt(0);
3076
- message.inviteeAddress = object.inviteeAddress ?? "";
3077
- message.status = object.status !== undefined && object.status !== null ? BigInt(object.status.toString()) : BigInt(0);
3061
+ message.invitation = object.invitation?.map(e => Invitation.fromPartial(e)) || [];
3078
3062
  message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
3079
3063
  return message;
3080
3064
  },
3081
3065
  fromAmino(object) {
3082
3066
  const message = createBaseQueryInvitationsByInviterResponse();
3083
- if (object.invitation_id !== undefined && object.invitation_id !== null) {
3084
- message.invitationId = BigInt(object.invitation_id);
3085
- }
3086
- if (object.invitee_address !== undefined && object.invitee_address !== null) {
3087
- message.inviteeAddress = object.invitee_address;
3088
- }
3089
- if (object.status !== undefined && object.status !== null) {
3090
- message.status = BigInt(object.status);
3091
- }
3067
+ message.invitation = object.invitation?.map(e => Invitation.fromAmino(e)) || [];
3092
3068
  if (object.pagination !== undefined && object.pagination !== null) {
3093
3069
  message.pagination = PageResponse.fromAmino(object.pagination);
3094
3070
  }
@@ -3096,9 +3072,12 @@ export const QueryInvitationsByInviterResponse = {
3096
3072
  },
3097
3073
  toAmino(message) {
3098
3074
  const obj = {};
3099
- obj.invitation_id = message.invitationId !== BigInt(0) ? message.invitationId?.toString() : undefined;
3100
- obj.invitee_address = message.inviteeAddress === "" ? undefined : message.inviteeAddress;
3101
- obj.status = message.status !== BigInt(0) ? message.status?.toString() : undefined;
3075
+ if (message.invitation) {
3076
+ obj.invitation = message.invitation.map(e => e ? Invitation.toAmino(e) : undefined);
3077
+ }
3078
+ else {
3079
+ obj.invitation = message.invitation;
3080
+ }
3102
3081
  obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
3103
3082
  return obj;
3104
3083
  },