@sparkdreamnft/sparkdreamjs 0.0.9 → 0.0.10

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 (138) hide show
  1. package/cosmos/bundle.d.ts +160 -160
  2. package/cosmos/bundle.js +182 -182
  3. package/esm/cosmos/bundle.js +182 -182
  4. package/esm/ibc/bundle.js +106 -106
  5. package/esm/sparkdream/blog/v1/params.js +25 -1
  6. package/esm/sparkdream/blog/v1/post.js +16 -1
  7. package/esm/sparkdream/blog/v1/query.js +165 -0
  8. package/esm/sparkdream/blog/v1/query.lcd.js +11 -0
  9. package/esm/sparkdream/blog/v1/query.rpc.Query.js +10 -1
  10. package/esm/sparkdream/blog/v1/tx.js +32 -2
  11. package/esm/sparkdream/bundle.js +343 -339
  12. package/esm/sparkdream/collect/v1/curator_activity.js +158 -0
  13. package/esm/sparkdream/collect/v1/genesis.js +12 -11
  14. package/esm/sparkdream/collect/v1/params.js +37 -1
  15. package/esm/sparkdream/collect/v1/query.js +201 -186
  16. package/esm/sparkdream/collect/v1/query.lcd.js +16 -16
  17. package/esm/sparkdream/collect/v1/query.rpc.Query.js +19 -19
  18. package/esm/sparkdream/collect/v1/tx.amino.js +1 -11
  19. package/esm/sparkdream/collect/v1/tx.js +0 -258
  20. package/esm/sparkdream/collect/v1/tx.registry.js +2 -38
  21. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +3 -14
  22. package/esm/sparkdream/collect/v1/types.js +50 -143
  23. package/esm/sparkdream/federation/v1/genesis.js +12 -11
  24. package/esm/sparkdream/federation/v1/query.js +37 -187
  25. package/esm/sparkdream/federation/v1/query.lcd.js +6 -16
  26. package/esm/sparkdream/federation/v1/query.rpc.Query.js +11 -19
  27. package/esm/sparkdream/federation/v1/tx.amino.js +1 -11
  28. package/esm/sparkdream/federation/v1/tx.js +0 -270
  29. package/esm/sparkdream/federation/v1/tx.registry.js +2 -38
  30. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +4 -14
  31. package/esm/sparkdream/federation/v1/types.js +13 -318
  32. package/esm/sparkdream/federation/v1/verifier_activity.js +194 -0
  33. package/esm/sparkdream/forum/v1/params.js +146 -2
  34. package/esm/sparkdream/futarchy/v1/market.js +13 -1
  35. package/esm/sparkdream/rep/v1/bonded_role.js +446 -0
  36. package/esm/sparkdream/rep/v1/genesis.js +32 -17
  37. package/esm/sparkdream/rep/v1/member_report.js +98 -1
  38. package/esm/sparkdream/rep/v1/query.js +297 -306
  39. package/esm/sparkdream/rep/v1/query.lcd.js +23 -16
  40. package/esm/sparkdream/rep/v1/query.rpc.Query.js +36 -35
  41. package/esm/sparkdream/rep/v1/tx.amino.js +9 -9
  42. package/esm/sparkdream/rep/v1/tx.js +86 -58
  43. package/esm/sparkdream/rep/v1/tx.registry.js +18 -18
  44. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -14
  45. package/esm/sparkdream/season/v1/enums.js +10 -0
  46. package/esm/tendermint/bundle.js +18 -18
  47. package/ibc/bundle.d.ts +90 -90
  48. package/ibc/bundle.js +106 -106
  49. package/package.json +1 -1
  50. package/sparkdream/blog/v1/params.d.ts +16 -0
  51. package/sparkdream/blog/v1/params.js +25 -1
  52. package/sparkdream/blog/v1/post.d.ts +8 -0
  53. package/sparkdream/blog/v1/post.js +16 -1
  54. package/sparkdream/blog/v1/query.d.ts +92 -0
  55. package/sparkdream/blog/v1/query.js +166 -1
  56. package/sparkdream/blog/v1/query.lcd.d.ts +2 -1
  57. package/sparkdream/blog/v1/query.lcd.js +11 -0
  58. package/sparkdream/blog/v1/query.rpc.Query.d.ts +5 -1
  59. package/sparkdream/blog/v1/query.rpc.Query.js +9 -0
  60. package/sparkdream/blog/v1/tx.d.ts +16 -0
  61. package/sparkdream/blog/v1/tx.js +32 -2
  62. package/sparkdream/bundle.d.ts +14376 -14514
  63. package/sparkdream/bundle.js +343 -339
  64. package/sparkdream/client.d.ts +6 -26
  65. package/sparkdream/collect/v1/curator_activity.d.ts +123 -0
  66. package/sparkdream/collect/v1/curator_activity.js +161 -0
  67. package/sparkdream/collect/v1/genesis.d.ts +4 -3
  68. package/sparkdream/collect/v1/genesis.js +11 -10
  69. package/sparkdream/collect/v1/params.d.ts +32 -0
  70. package/sparkdream/collect/v1/params.js +37 -1
  71. package/sparkdream/collect/v1/query.d.ts +142 -133
  72. package/sparkdream/collect/v1/query.js +201 -186
  73. package/sparkdream/collect/v1/query.lcd.d.ts +3 -3
  74. package/sparkdream/collect/v1/query.lcd.js +16 -16
  75. package/sparkdream/collect/v1/query.rpc.Query.d.ts +13 -7
  76. package/sparkdream/collect/v1/query.rpc.Query.js +18 -18
  77. package/sparkdream/collect/v1/tx.amino.d.ts +1 -11
  78. package/sparkdream/collect/v1/tx.amino.js +0 -10
  79. package/sparkdream/collect/v1/tx.d.ts +0 -162
  80. package/sparkdream/collect/v1/tx.js +2 -260
  81. package/sparkdream/collect/v1/tx.registry.d.ts +1 -25
  82. package/sparkdream/collect/v1/tx.registry.js +1 -37
  83. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +5 -5
  84. package/sparkdream/collect/v1/tx.rpc.msg.js +2 -13
  85. package/sparkdream/collect/v1/types.d.ts +26 -56
  86. package/sparkdream/collect/v1/types.js +51 -144
  87. package/sparkdream/federation/v1/genesis.d.ts +4 -3
  88. package/sparkdream/federation/v1/genesis.js +11 -10
  89. package/sparkdream/federation/v1/query.d.ts +53 -136
  90. package/sparkdream/federation/v1/query.js +37 -187
  91. package/sparkdream/federation/v1/query.lcd.d.ts +2 -3
  92. package/sparkdream/federation/v1/query.lcd.js +6 -16
  93. package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
  94. package/sparkdream/federation/v1/query.rpc.Query.js +10 -18
  95. package/sparkdream/federation/v1/tx.amino.d.ts +1 -11
  96. package/sparkdream/federation/v1/tx.amino.js +0 -10
  97. package/sparkdream/federation/v1/tx.d.ts +0 -164
  98. package/sparkdream/federation/v1/tx.js +1 -272
  99. package/sparkdream/federation/v1/tx.registry.d.ts +1 -25
  100. package/sparkdream/federation/v1/tx.registry.js +1 -37
  101. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +6 -5
  102. package/sparkdream/federation/v1/tx.rpc.msg.js +3 -13
  103. package/sparkdream/federation/v1/types.d.ts +10 -106
  104. package/sparkdream/federation/v1/types.js +14 -321
  105. package/sparkdream/federation/v1/verifier_activity.d.ts +113 -0
  106. package/sparkdream/federation/v1/verifier_activity.js +197 -0
  107. package/sparkdream/forum/v1/params.d.ts +112 -0
  108. package/sparkdream/forum/v1/params.js +146 -2
  109. package/sparkdream/futarchy/v1/market.d.ts +14 -0
  110. package/sparkdream/futarchy/v1/market.js +13 -1
  111. package/sparkdream/rep/v1/bonded_role.d.ts +330 -0
  112. package/sparkdream/rep/v1/bonded_role.js +453 -0
  113. package/sparkdream/rep/v1/genesis.d.ts +11 -9
  114. package/sparkdream/rep/v1/genesis.js +32 -17
  115. package/sparkdream/rep/v1/member_report.d.ts +61 -0
  116. package/sparkdream/rep/v1/member_report.js +99 -2
  117. package/sparkdream/rep/v1/query.d.ts +259 -261
  118. package/sparkdream/rep/v1/query.js +299 -308
  119. package/sparkdream/rep/v1/query.lcd.d.ts +5 -5
  120. package/sparkdream/rep/v1/query.lcd.js +23 -16
  121. package/sparkdream/rep/v1/query.rpc.Query.d.ts +20 -17
  122. package/sparkdream/rep/v1/query.rpc.Query.js +35 -34
  123. package/sparkdream/rep/v1/tx.amino.d.ts +7 -7
  124. package/sparkdream/rep/v1/tx.amino.js +9 -9
  125. package/sparkdream/rep/v1/tx.d.ts +121 -104
  126. package/sparkdream/rep/v1/tx.js +87 -59
  127. package/sparkdream/rep/v1/tx.registry.d.ts +11 -11
  128. package/sparkdream/rep/v1/tx.registry.js +17 -17
  129. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +11 -9
  130. package/sparkdream/rep/v1/tx.rpc.msg.js +15 -13
  131. package/sparkdream/rpc.query.d.ts +8 -8
  132. package/sparkdream/season/v1/enums.d.ts +5 -0
  133. package/sparkdream/season/v1/enums.js +10 -0
  134. package/tendermint/bundle.d.ts +844 -844
  135. package/tendermint/bundle.js +18 -18
  136. package/esm/sparkdream/rep/v1/sentinel_activity.js +0 -214
  137. package/sparkdream/rep/v1/sentinel_activity.d.ts +0 -79
  138. package/sparkdream/rep/v1/sentinel_activity.js +0 -219
@@ -0,0 +1,158 @@
1
+ //@ts-nocheck
2
+ import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ function createBaseCuratorActivity() {
4
+ return {
5
+ address: "",
6
+ totalReviews: BigInt(0),
7
+ challengedReviews: BigInt(0),
8
+ upheldReviews: BigInt(0),
9
+ overturnedReviews: BigInt(0),
10
+ consecutiveOverturns: BigInt(0),
11
+ consecutiveUpheld: BigInt(0),
12
+ epochReviews: BigInt(0)
13
+ };
14
+ }
15
+ /**
16
+ * CuratorActivity holds collect-specific per-curator counters. The generic
17
+ * bond/status/activity record lives in x/rep as BondedRole
18
+ * (ROLE_TYPE_COLLECT_CURATOR) — this proto only tracks what's collect-specific:
19
+ * review counts and dispute outcomes.
20
+ * @name CuratorActivity
21
+ * @package sparkdream.collect.v1
22
+ * @see proto type: sparkdream.collect.v1.CuratorActivity
23
+ */
24
+ export const CuratorActivity = {
25
+ typeUrl: "/sparkdream.collect.v1.CuratorActivity",
26
+ encode(message, writer = BinaryWriter.create()) {
27
+ if (message.address !== "") {
28
+ writer.uint32(10).string(message.address);
29
+ }
30
+ if (message.totalReviews !== BigInt(0)) {
31
+ writer.uint32(16).uint64(message.totalReviews);
32
+ }
33
+ if (message.challengedReviews !== BigInt(0)) {
34
+ writer.uint32(24).uint64(message.challengedReviews);
35
+ }
36
+ if (message.upheldReviews !== BigInt(0)) {
37
+ writer.uint32(32).uint64(message.upheldReviews);
38
+ }
39
+ if (message.overturnedReviews !== BigInt(0)) {
40
+ writer.uint32(40).uint64(message.overturnedReviews);
41
+ }
42
+ if (message.consecutiveOverturns !== BigInt(0)) {
43
+ writer.uint32(48).uint64(message.consecutiveOverturns);
44
+ }
45
+ if (message.consecutiveUpheld !== BigInt(0)) {
46
+ writer.uint32(56).uint64(message.consecutiveUpheld);
47
+ }
48
+ if (message.epochReviews !== BigInt(0)) {
49
+ writer.uint32(64).uint64(message.epochReviews);
50
+ }
51
+ return writer;
52
+ },
53
+ decode(input, length) {
54
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
55
+ let end = length === undefined ? reader.len : reader.pos + length;
56
+ const message = createBaseCuratorActivity();
57
+ while (reader.pos < end) {
58
+ const tag = reader.uint32();
59
+ switch (tag >>> 3) {
60
+ case 1:
61
+ message.address = reader.string();
62
+ break;
63
+ case 2:
64
+ message.totalReviews = reader.uint64();
65
+ break;
66
+ case 3:
67
+ message.challengedReviews = reader.uint64();
68
+ break;
69
+ case 4:
70
+ message.upheldReviews = reader.uint64();
71
+ break;
72
+ case 5:
73
+ message.overturnedReviews = reader.uint64();
74
+ break;
75
+ case 6:
76
+ message.consecutiveOverturns = reader.uint64();
77
+ break;
78
+ case 7:
79
+ message.consecutiveUpheld = reader.uint64();
80
+ break;
81
+ case 8:
82
+ message.epochReviews = reader.uint64();
83
+ break;
84
+ default:
85
+ reader.skipType(tag & 7);
86
+ break;
87
+ }
88
+ }
89
+ return message;
90
+ },
91
+ fromPartial(object) {
92
+ const message = createBaseCuratorActivity();
93
+ message.address = object.address ?? "";
94
+ message.totalReviews = object.totalReviews !== undefined && object.totalReviews !== null ? BigInt(object.totalReviews.toString()) : BigInt(0);
95
+ message.challengedReviews = object.challengedReviews !== undefined && object.challengedReviews !== null ? BigInt(object.challengedReviews.toString()) : BigInt(0);
96
+ message.upheldReviews = object.upheldReviews !== undefined && object.upheldReviews !== null ? BigInt(object.upheldReviews.toString()) : BigInt(0);
97
+ message.overturnedReviews = object.overturnedReviews !== undefined && object.overturnedReviews !== null ? BigInt(object.overturnedReviews.toString()) : BigInt(0);
98
+ message.consecutiveOverturns = object.consecutiveOverturns !== undefined && object.consecutiveOverturns !== null ? BigInt(object.consecutiveOverturns.toString()) : BigInt(0);
99
+ message.consecutiveUpheld = object.consecutiveUpheld !== undefined && object.consecutiveUpheld !== null ? BigInt(object.consecutiveUpheld.toString()) : BigInt(0);
100
+ message.epochReviews = object.epochReviews !== undefined && object.epochReviews !== null ? BigInt(object.epochReviews.toString()) : BigInt(0);
101
+ return message;
102
+ },
103
+ fromAmino(object) {
104
+ const message = createBaseCuratorActivity();
105
+ if (object.address !== undefined && object.address !== null) {
106
+ message.address = object.address;
107
+ }
108
+ if (object.total_reviews !== undefined && object.total_reviews !== null) {
109
+ message.totalReviews = BigInt(object.total_reviews);
110
+ }
111
+ if (object.challenged_reviews !== undefined && object.challenged_reviews !== null) {
112
+ message.challengedReviews = BigInt(object.challenged_reviews);
113
+ }
114
+ if (object.upheld_reviews !== undefined && object.upheld_reviews !== null) {
115
+ message.upheldReviews = BigInt(object.upheld_reviews);
116
+ }
117
+ if (object.overturned_reviews !== undefined && object.overturned_reviews !== null) {
118
+ message.overturnedReviews = BigInt(object.overturned_reviews);
119
+ }
120
+ if (object.consecutive_overturns !== undefined && object.consecutive_overturns !== null) {
121
+ message.consecutiveOverturns = BigInt(object.consecutive_overturns);
122
+ }
123
+ if (object.consecutive_upheld !== undefined && object.consecutive_upheld !== null) {
124
+ message.consecutiveUpheld = BigInt(object.consecutive_upheld);
125
+ }
126
+ if (object.epoch_reviews !== undefined && object.epoch_reviews !== null) {
127
+ message.epochReviews = BigInt(object.epoch_reviews);
128
+ }
129
+ return message;
130
+ },
131
+ toAmino(message) {
132
+ const obj = {};
133
+ obj.address = message.address === "" ? undefined : message.address;
134
+ obj.total_reviews = message.totalReviews !== BigInt(0) ? message.totalReviews?.toString() : undefined;
135
+ obj.challenged_reviews = message.challengedReviews !== BigInt(0) ? message.challengedReviews?.toString() : undefined;
136
+ obj.upheld_reviews = message.upheldReviews !== BigInt(0) ? message.upheldReviews?.toString() : undefined;
137
+ obj.overturned_reviews = message.overturnedReviews !== BigInt(0) ? message.overturnedReviews?.toString() : undefined;
138
+ obj.consecutive_overturns = message.consecutiveOverturns !== BigInt(0) ? message.consecutiveOverturns?.toString() : undefined;
139
+ obj.consecutive_upheld = message.consecutiveUpheld !== BigInt(0) ? message.consecutiveUpheld?.toString() : undefined;
140
+ obj.epoch_reviews = message.epochReviews !== BigInt(0) ? message.epochReviews?.toString() : undefined;
141
+ return obj;
142
+ },
143
+ fromAminoMsg(object) {
144
+ return CuratorActivity.fromAmino(object.value);
145
+ },
146
+ fromProtoMsg(message) {
147
+ return CuratorActivity.decode(message.value);
148
+ },
149
+ toProto(message) {
150
+ return CuratorActivity.encode(message).finish();
151
+ },
152
+ toProtoMsg(message) {
153
+ return {
154
+ typeUrl: "/sparkdream.collect.v1.CuratorActivity",
155
+ value: CuratorActivity.encode(message).finish()
156
+ };
157
+ }
158
+ };
@@ -1,6 +1,7 @@
1
1
  //@ts-nocheck
2
2
  import { Params } from "./params";
3
- import { Collection, Item, Collaborator, Curator, CurationReview, CurationSummary, SponsorshipRequest, CollectionFlag, HideRecord, Endorsement } from "./types";
3
+ import { Collection, Item, Collaborator, CurationReview, CurationSummary, SponsorshipRequest, CollectionFlag, HideRecord, Endorsement } from "./types";
4
+ import { CuratorActivity } from "./curator_activity";
4
5
  import { BinaryReader, BinaryWriter } from "../../../binary";
5
6
  function createBaseGenesisState() {
6
7
  return {
@@ -10,7 +11,7 @@ function createBaseGenesisState() {
10
11
  items: [],
11
12
  itemCount: BigInt(0),
12
13
  collaborators: [],
13
- curators: [],
14
+ curatorActivities: [],
14
15
  curationReviews: [],
15
16
  curationReviewCount: BigInt(0),
16
17
  curationSummaries: [],
@@ -48,8 +49,8 @@ export const GenesisState = {
48
49
  for (const v of message.collaborators) {
49
50
  Collaborator.encode(v, writer.uint32(50).fork()).ldelim();
50
51
  }
51
- for (const v of message.curators) {
52
- Curator.encode(v, writer.uint32(58).fork()).ldelim();
52
+ for (const v of message.curatorActivities) {
53
+ CuratorActivity.encode(v, writer.uint32(130).fork()).ldelim();
53
54
  }
54
55
  for (const v of message.curationReviews) {
55
56
  CurationReview.encode(v, writer.uint32(66).fork()).ldelim();
@@ -102,8 +103,8 @@ export const GenesisState = {
102
103
  case 6:
103
104
  message.collaborators.push(Collaborator.decode(reader, reader.uint32()));
104
105
  break;
105
- case 7:
106
- message.curators.push(Curator.decode(reader, reader.uint32()));
106
+ case 16:
107
+ message.curatorActivities.push(CuratorActivity.decode(reader, reader.uint32()));
107
108
  break;
108
109
  case 8:
109
110
  message.curationReviews.push(CurationReview.decode(reader, reader.uint32()));
@@ -144,7 +145,7 @@ export const GenesisState = {
144
145
  message.items = object.items?.map(e => Item.fromPartial(e)) || [];
145
146
  message.itemCount = object.itemCount !== undefined && object.itemCount !== null ? BigInt(object.itemCount.toString()) : BigInt(0);
146
147
  message.collaborators = object.collaborators?.map(e => Collaborator.fromPartial(e)) || [];
147
- message.curators = object.curators?.map(e => Curator.fromPartial(e)) || [];
148
+ message.curatorActivities = object.curatorActivities?.map(e => CuratorActivity.fromPartial(e)) || [];
148
149
  message.curationReviews = object.curationReviews?.map(e => CurationReview.fromPartial(e)) || [];
149
150
  message.curationReviewCount = object.curationReviewCount !== undefined && object.curationReviewCount !== null ? BigInt(object.curationReviewCount.toString()) : BigInt(0);
150
151
  message.curationSummaries = object.curationSummaries?.map(e => CurationSummary.fromPartial(e)) || [];
@@ -169,7 +170,7 @@ export const GenesisState = {
169
170
  message.itemCount = BigInt(object.item_count);
170
171
  }
171
172
  message.collaborators = object.collaborators?.map(e => Collaborator.fromAmino(e)) || [];
172
- message.curators = object.curators?.map(e => Curator.fromAmino(e)) || [];
173
+ message.curatorActivities = object.curator_activities?.map(e => CuratorActivity.fromAmino(e)) || [];
173
174
  message.curationReviews = object.curation_reviews?.map(e => CurationReview.fromAmino(e)) || [];
174
175
  if (object.curation_review_count !== undefined && object.curation_review_count !== null) {
175
176
  message.curationReviewCount = BigInt(object.curation_review_count);
@@ -207,11 +208,11 @@ export const GenesisState = {
207
208
  else {
208
209
  obj.collaborators = message.collaborators;
209
210
  }
210
- if (message.curators) {
211
- obj.curators = message.curators.map(e => e ? Curator.toAmino(e) : undefined);
211
+ if (message.curatorActivities) {
212
+ obj.curator_activities = message.curatorActivities.map(e => e ? CuratorActivity.toAmino(e) : undefined);
212
213
  }
213
214
  else {
214
- obj.curators = message.curators;
215
+ obj.curator_activities = message.curatorActivities;
215
216
  }
216
217
  if (message.curationReviews) {
217
218
  obj.curation_reviews = message.curationReviews.map(e => e ? CurationReview.toAmino(e) : undefined);
@@ -60,7 +60,10 @@ function createBaseParams() {
60
60
  convictionRenewalThreshold: "",
61
61
  convictionRenewalPeriod: BigInt(0),
62
62
  pinMinTrustLevel: 0,
63
- maxPinsPerDay: 0
63
+ maxPinsPerDay: 0,
64
+ curatorDemotionCooldown: BigInt(0),
65
+ curatorDemotionThreshold: "",
66
+ curatorOverturnDemotionStreak: BigInt(0)
64
67
  };
65
68
  }
66
69
  /**
@@ -247,6 +250,15 @@ export const Params = {
247
250
  if (message.maxPinsPerDay !== 0) {
248
251
  writer.uint32(496).uint32(message.maxPinsPerDay);
249
252
  }
253
+ if (message.curatorDemotionCooldown !== BigInt(0)) {
254
+ writer.uint32(504).int64(message.curatorDemotionCooldown);
255
+ }
256
+ if (message.curatorDemotionThreshold !== "") {
257
+ writer.uint32(514).string(message.curatorDemotionThreshold);
258
+ }
259
+ if (message.curatorOverturnDemotionStreak !== BigInt(0)) {
260
+ writer.uint32(520).uint64(message.curatorOverturnDemotionStreak);
261
+ }
250
262
  return writer;
251
263
  },
252
264
  decode(input, length) {
@@ -430,6 +442,15 @@ export const Params = {
430
442
  case 62:
431
443
  message.maxPinsPerDay = reader.uint32();
432
444
  break;
445
+ case 63:
446
+ message.curatorDemotionCooldown = reader.int64();
447
+ break;
448
+ case 64:
449
+ message.curatorDemotionThreshold = reader.string();
450
+ break;
451
+ case 65:
452
+ message.curatorOverturnDemotionStreak = reader.uint64();
453
+ break;
433
454
  default:
434
455
  reader.skipType(tag & 7);
435
456
  break;
@@ -497,6 +518,9 @@ export const Params = {
497
518
  message.convictionRenewalPeriod = object.convictionRenewalPeriod !== undefined && object.convictionRenewalPeriod !== null ? BigInt(object.convictionRenewalPeriod.toString()) : BigInt(0);
498
519
  message.pinMinTrustLevel = object.pinMinTrustLevel ?? 0;
499
520
  message.maxPinsPerDay = object.maxPinsPerDay ?? 0;
521
+ message.curatorDemotionCooldown = object.curatorDemotionCooldown !== undefined && object.curatorDemotionCooldown !== null ? BigInt(object.curatorDemotionCooldown.toString()) : BigInt(0);
522
+ message.curatorDemotionThreshold = object.curatorDemotionThreshold ?? "";
523
+ message.curatorOverturnDemotionStreak = object.curatorOverturnDemotionStreak !== undefined && object.curatorOverturnDemotionStreak !== null ? BigInt(object.curatorOverturnDemotionStreak.toString()) : BigInt(0);
500
524
  return message;
501
525
  },
502
526
  fromAmino(object) {
@@ -675,6 +699,15 @@ export const Params = {
675
699
  if (object.max_pins_per_day !== undefined && object.max_pins_per_day !== null) {
676
700
  message.maxPinsPerDay = object.max_pins_per_day;
677
701
  }
702
+ if (object.curator_demotion_cooldown !== undefined && object.curator_demotion_cooldown !== null) {
703
+ message.curatorDemotionCooldown = BigInt(object.curator_demotion_cooldown);
704
+ }
705
+ if (object.curator_demotion_threshold !== undefined && object.curator_demotion_threshold !== null) {
706
+ message.curatorDemotionThreshold = object.curator_demotion_threshold;
707
+ }
708
+ if (object.curator_overturn_demotion_streak !== undefined && object.curator_overturn_demotion_streak !== null) {
709
+ message.curatorOverturnDemotionStreak = BigInt(object.curator_overturn_demotion_streak);
710
+ }
678
711
  return message;
679
712
  },
680
713
  toAmino(message) {
@@ -737,6 +770,9 @@ export const Params = {
737
770
  obj.conviction_renewal_period = message.convictionRenewalPeriod !== BigInt(0) ? message.convictionRenewalPeriod?.toString() : undefined;
738
771
  obj.pin_min_trust_level = message.pinMinTrustLevel === 0 ? undefined : message.pinMinTrustLevel;
739
772
  obj.max_pins_per_day = message.maxPinsPerDay === 0 ? undefined : message.maxPinsPerDay;
773
+ obj.curator_demotion_cooldown = message.curatorDemotionCooldown !== BigInt(0) ? message.curatorDemotionCooldown?.toString() : undefined;
774
+ obj.curator_demotion_threshold = message.curatorDemotionThreshold === "" ? undefined : message.curatorDemotionThreshold;
775
+ obj.curator_overturn_demotion_streak = message.curatorOverturnDemotionStreak !== BigInt(0) ? message.curatorOverturnDemotionStreak?.toString() : undefined;
740
776
  return obj;
741
777
  },
742
778
  fromAminoMsg(object) {