@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,453 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BondedRoleConfig = exports.BondedRole = exports.BondedRoleStatusAmino = exports.BondedRoleStatus = exports.RoleTypeAmino = exports.RoleType = void 0;
4
+ exports.roleTypeFromJSON = roleTypeFromJSON;
5
+ exports.roleTypeToJSON = roleTypeToJSON;
6
+ exports.bondedRoleStatusFromJSON = bondedRoleStatusFromJSON;
7
+ exports.bondedRoleStatusToJSON = bondedRoleStatusToJSON;
8
+ //@ts-nocheck
9
+ const binary_1 = require("../../../binary");
10
+ /**
11
+ * RoleType identifies a kind of bonded role across the chain. Values are
12
+ * module-scoped: naming convention is ROLE_TYPE_<OWNING_MODULE>_<ROLE>. A role
13
+ * is owned by exactly one module, which is the sole writer of its
14
+ * BondedRoleConfig. Independent bond pools, configs, and slashing surfaces per
15
+ * role; cross-role coupling (if ever needed) belongs in the gaining module, not
16
+ * in this primitive.
17
+ */
18
+ var RoleType;
19
+ (function (RoleType) {
20
+ RoleType[RoleType["ROLE_TYPE_UNSPECIFIED"] = 0] = "ROLE_TYPE_UNSPECIFIED";
21
+ RoleType[RoleType["ROLE_TYPE_FORUM_SENTINEL"] = 1] = "ROLE_TYPE_FORUM_SENTINEL";
22
+ RoleType[RoleType["ROLE_TYPE_COLLECT_CURATOR"] = 2] = "ROLE_TYPE_COLLECT_CURATOR";
23
+ RoleType[RoleType["ROLE_TYPE_FEDERATION_VERIFIER"] = 3] = "ROLE_TYPE_FEDERATION_VERIFIER";
24
+ RoleType[RoleType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
25
+ })(RoleType || (exports.RoleType = RoleType = {}));
26
+ exports.RoleTypeAmino = RoleType;
27
+ function roleTypeFromJSON(object) {
28
+ switch (object) {
29
+ case 0:
30
+ case "ROLE_TYPE_UNSPECIFIED":
31
+ return RoleType.ROLE_TYPE_UNSPECIFIED;
32
+ case 1:
33
+ case "ROLE_TYPE_FORUM_SENTINEL":
34
+ return RoleType.ROLE_TYPE_FORUM_SENTINEL;
35
+ case 2:
36
+ case "ROLE_TYPE_COLLECT_CURATOR":
37
+ return RoleType.ROLE_TYPE_COLLECT_CURATOR;
38
+ case 3:
39
+ case "ROLE_TYPE_FEDERATION_VERIFIER":
40
+ return RoleType.ROLE_TYPE_FEDERATION_VERIFIER;
41
+ case -1:
42
+ case "UNRECOGNIZED":
43
+ default:
44
+ return RoleType.UNRECOGNIZED;
45
+ }
46
+ }
47
+ function roleTypeToJSON(object) {
48
+ switch (object) {
49
+ case RoleType.ROLE_TYPE_UNSPECIFIED:
50
+ return "ROLE_TYPE_UNSPECIFIED";
51
+ case RoleType.ROLE_TYPE_FORUM_SENTINEL:
52
+ return "ROLE_TYPE_FORUM_SENTINEL";
53
+ case RoleType.ROLE_TYPE_COLLECT_CURATOR:
54
+ return "ROLE_TYPE_COLLECT_CURATOR";
55
+ case RoleType.ROLE_TYPE_FEDERATION_VERIFIER:
56
+ return "ROLE_TYPE_FEDERATION_VERIFIER";
57
+ case RoleType.UNRECOGNIZED:
58
+ default:
59
+ return "UNRECOGNIZED";
60
+ }
61
+ }
62
+ /**
63
+ * BondedRoleStatus represents the lifecycle status of a bonded role record.
64
+ * NORMAL: full privileges; bond at or above min_bond.
65
+ * RECOVERY: bond dropped below min_bond but at or above demotion_threshold;
66
+ * reduced privileges depending on role, rewards may auto-bond.
67
+ * DEMOTED: bond below demotion_threshold; privileges revoked; cooldown
68
+ * enforced before re-bonding.
69
+ */
70
+ var BondedRoleStatus;
71
+ (function (BondedRoleStatus) {
72
+ BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_UNSPECIFIED"] = 0] = "BONDED_ROLE_STATUS_UNSPECIFIED";
73
+ BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_NORMAL"] = 1] = "BONDED_ROLE_STATUS_NORMAL";
74
+ BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_RECOVERY"] = 2] = "BONDED_ROLE_STATUS_RECOVERY";
75
+ BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_DEMOTED"] = 3] = "BONDED_ROLE_STATUS_DEMOTED";
76
+ BondedRoleStatus[BondedRoleStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
77
+ })(BondedRoleStatus || (exports.BondedRoleStatus = BondedRoleStatus = {}));
78
+ exports.BondedRoleStatusAmino = BondedRoleStatus;
79
+ function bondedRoleStatusFromJSON(object) {
80
+ switch (object) {
81
+ case 0:
82
+ case "BONDED_ROLE_STATUS_UNSPECIFIED":
83
+ return BondedRoleStatus.BONDED_ROLE_STATUS_UNSPECIFIED;
84
+ case 1:
85
+ case "BONDED_ROLE_STATUS_NORMAL":
86
+ return BondedRoleStatus.BONDED_ROLE_STATUS_NORMAL;
87
+ case 2:
88
+ case "BONDED_ROLE_STATUS_RECOVERY":
89
+ return BondedRoleStatus.BONDED_ROLE_STATUS_RECOVERY;
90
+ case 3:
91
+ case "BONDED_ROLE_STATUS_DEMOTED":
92
+ return BondedRoleStatus.BONDED_ROLE_STATUS_DEMOTED;
93
+ case -1:
94
+ case "UNRECOGNIZED":
95
+ default:
96
+ return BondedRoleStatus.UNRECOGNIZED;
97
+ }
98
+ }
99
+ function bondedRoleStatusToJSON(object) {
100
+ switch (object) {
101
+ case BondedRoleStatus.BONDED_ROLE_STATUS_UNSPECIFIED:
102
+ return "BONDED_ROLE_STATUS_UNSPECIFIED";
103
+ case BondedRoleStatus.BONDED_ROLE_STATUS_NORMAL:
104
+ return "BONDED_ROLE_STATUS_NORMAL";
105
+ case BondedRoleStatus.BONDED_ROLE_STATUS_RECOVERY:
106
+ return "BONDED_ROLE_STATUS_RECOVERY";
107
+ case BondedRoleStatus.BONDED_ROLE_STATUS_DEMOTED:
108
+ return "BONDED_ROLE_STATUS_DEMOTED";
109
+ case BondedRoleStatus.UNRECOGNIZED:
110
+ default:
111
+ return "UNRECOGNIZED";
112
+ }
113
+ }
114
+ function createBaseBondedRole() {
115
+ return {
116
+ address: "",
117
+ roleType: 0,
118
+ bondStatus: 0,
119
+ currentBond: "",
120
+ totalCommittedBond: "",
121
+ registeredAt: BigInt(0),
122
+ lastActiveEpoch: BigInt(0),
123
+ consecutiveInactiveEpochs: BigInt(0),
124
+ demotionCooldownUntil: BigInt(0),
125
+ cumulativeRewards: "",
126
+ lastRewardEpoch: BigInt(0)
127
+ };
128
+ }
129
+ /**
130
+ * BondedRole is the generic accountability record for a role-playing member:
131
+ * identity, bond, bond status, and activity stamps. Module-specific action
132
+ * counters (hides, reviews, verifications, etc.) live in per-module activity
133
+ * protos owned by the role's module.
134
+ * @name BondedRole
135
+ * @package sparkdream.rep.v1
136
+ * @see proto type: sparkdream.rep.v1.BondedRole
137
+ */
138
+ exports.BondedRole = {
139
+ typeUrl: "/sparkdream.rep.v1.BondedRole",
140
+ encode(message, writer = binary_1.BinaryWriter.create()) {
141
+ if (message.address !== "") {
142
+ writer.uint32(10).string(message.address);
143
+ }
144
+ if (message.roleType !== 0) {
145
+ writer.uint32(16).int32(message.roleType);
146
+ }
147
+ if (message.bondStatus !== 0) {
148
+ writer.uint32(24).int32(message.bondStatus);
149
+ }
150
+ if (message.currentBond !== "") {
151
+ writer.uint32(34).string(message.currentBond);
152
+ }
153
+ if (message.totalCommittedBond !== "") {
154
+ writer.uint32(42).string(message.totalCommittedBond);
155
+ }
156
+ if (message.registeredAt !== BigInt(0)) {
157
+ writer.uint32(48).int64(message.registeredAt);
158
+ }
159
+ if (message.lastActiveEpoch !== BigInt(0)) {
160
+ writer.uint32(56).int64(message.lastActiveEpoch);
161
+ }
162
+ if (message.consecutiveInactiveEpochs !== BigInt(0)) {
163
+ writer.uint32(64).uint64(message.consecutiveInactiveEpochs);
164
+ }
165
+ if (message.demotionCooldownUntil !== BigInt(0)) {
166
+ writer.uint32(72).int64(message.demotionCooldownUntil);
167
+ }
168
+ if (message.cumulativeRewards !== "") {
169
+ writer.uint32(82).string(message.cumulativeRewards);
170
+ }
171
+ if (message.lastRewardEpoch !== BigInt(0)) {
172
+ writer.uint32(88).int64(message.lastRewardEpoch);
173
+ }
174
+ return writer;
175
+ },
176
+ decode(input, length) {
177
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
178
+ let end = length === undefined ? reader.len : reader.pos + length;
179
+ const message = createBaseBondedRole();
180
+ while (reader.pos < end) {
181
+ const tag = reader.uint32();
182
+ switch (tag >>> 3) {
183
+ case 1:
184
+ message.address = reader.string();
185
+ break;
186
+ case 2:
187
+ message.roleType = reader.int32();
188
+ break;
189
+ case 3:
190
+ message.bondStatus = reader.int32();
191
+ break;
192
+ case 4:
193
+ message.currentBond = reader.string();
194
+ break;
195
+ case 5:
196
+ message.totalCommittedBond = reader.string();
197
+ break;
198
+ case 6:
199
+ message.registeredAt = reader.int64();
200
+ break;
201
+ case 7:
202
+ message.lastActiveEpoch = reader.int64();
203
+ break;
204
+ case 8:
205
+ message.consecutiveInactiveEpochs = reader.uint64();
206
+ break;
207
+ case 9:
208
+ message.demotionCooldownUntil = reader.int64();
209
+ break;
210
+ case 10:
211
+ message.cumulativeRewards = reader.string();
212
+ break;
213
+ case 11:
214
+ message.lastRewardEpoch = reader.int64();
215
+ break;
216
+ default:
217
+ reader.skipType(tag & 7);
218
+ break;
219
+ }
220
+ }
221
+ return message;
222
+ },
223
+ fromPartial(object) {
224
+ const message = createBaseBondedRole();
225
+ message.address = object.address ?? "";
226
+ message.roleType = object.roleType ?? 0;
227
+ message.bondStatus = object.bondStatus ?? 0;
228
+ message.currentBond = object.currentBond ?? "";
229
+ message.totalCommittedBond = object.totalCommittedBond ?? "";
230
+ message.registeredAt = object.registeredAt !== undefined && object.registeredAt !== null ? BigInt(object.registeredAt.toString()) : BigInt(0);
231
+ message.lastActiveEpoch = object.lastActiveEpoch !== undefined && object.lastActiveEpoch !== null ? BigInt(object.lastActiveEpoch.toString()) : BigInt(0);
232
+ message.consecutiveInactiveEpochs = object.consecutiveInactiveEpochs !== undefined && object.consecutiveInactiveEpochs !== null ? BigInt(object.consecutiveInactiveEpochs.toString()) : BigInt(0);
233
+ message.demotionCooldownUntil = object.demotionCooldownUntil !== undefined && object.demotionCooldownUntil !== null ? BigInt(object.demotionCooldownUntil.toString()) : BigInt(0);
234
+ message.cumulativeRewards = object.cumulativeRewards ?? "";
235
+ message.lastRewardEpoch = object.lastRewardEpoch !== undefined && object.lastRewardEpoch !== null ? BigInt(object.lastRewardEpoch.toString()) : BigInt(0);
236
+ return message;
237
+ },
238
+ fromAmino(object) {
239
+ const message = createBaseBondedRole();
240
+ if (object.address !== undefined && object.address !== null) {
241
+ message.address = object.address;
242
+ }
243
+ if (object.role_type !== undefined && object.role_type !== null) {
244
+ message.roleType = object.role_type;
245
+ }
246
+ if (object.bond_status !== undefined && object.bond_status !== null) {
247
+ message.bondStatus = object.bond_status;
248
+ }
249
+ if (object.current_bond !== undefined && object.current_bond !== null) {
250
+ message.currentBond = object.current_bond;
251
+ }
252
+ if (object.total_committed_bond !== undefined && object.total_committed_bond !== null) {
253
+ message.totalCommittedBond = object.total_committed_bond;
254
+ }
255
+ if (object.registered_at !== undefined && object.registered_at !== null) {
256
+ message.registeredAt = BigInt(object.registered_at);
257
+ }
258
+ if (object.last_active_epoch !== undefined && object.last_active_epoch !== null) {
259
+ message.lastActiveEpoch = BigInt(object.last_active_epoch);
260
+ }
261
+ if (object.consecutive_inactive_epochs !== undefined && object.consecutive_inactive_epochs !== null) {
262
+ message.consecutiveInactiveEpochs = BigInt(object.consecutive_inactive_epochs);
263
+ }
264
+ if (object.demotion_cooldown_until !== undefined && object.demotion_cooldown_until !== null) {
265
+ message.demotionCooldownUntil = BigInt(object.demotion_cooldown_until);
266
+ }
267
+ if (object.cumulative_rewards !== undefined && object.cumulative_rewards !== null) {
268
+ message.cumulativeRewards = object.cumulative_rewards;
269
+ }
270
+ if (object.last_reward_epoch !== undefined && object.last_reward_epoch !== null) {
271
+ message.lastRewardEpoch = BigInt(object.last_reward_epoch);
272
+ }
273
+ return message;
274
+ },
275
+ toAmino(message) {
276
+ const obj = {};
277
+ obj.address = message.address === "" ? undefined : message.address;
278
+ obj.role_type = message.roleType === 0 ? undefined : message.roleType;
279
+ obj.bond_status = message.bondStatus === 0 ? undefined : message.bondStatus;
280
+ obj.current_bond = message.currentBond === "" ? undefined : message.currentBond;
281
+ obj.total_committed_bond = message.totalCommittedBond === "" ? undefined : message.totalCommittedBond;
282
+ obj.registered_at = message.registeredAt !== BigInt(0) ? message.registeredAt?.toString() : undefined;
283
+ obj.last_active_epoch = message.lastActiveEpoch !== BigInt(0) ? message.lastActiveEpoch?.toString() : undefined;
284
+ obj.consecutive_inactive_epochs = message.consecutiveInactiveEpochs !== BigInt(0) ? message.consecutiveInactiveEpochs?.toString() : undefined;
285
+ obj.demotion_cooldown_until = message.demotionCooldownUntil !== BigInt(0) ? message.demotionCooldownUntil?.toString() : undefined;
286
+ obj.cumulative_rewards = message.cumulativeRewards === "" ? undefined : message.cumulativeRewards;
287
+ obj.last_reward_epoch = message.lastRewardEpoch !== BigInt(0) ? message.lastRewardEpoch?.toString() : undefined;
288
+ return obj;
289
+ },
290
+ fromAminoMsg(object) {
291
+ return exports.BondedRole.fromAmino(object.value);
292
+ },
293
+ fromProtoMsg(message) {
294
+ return exports.BondedRole.decode(message.value);
295
+ },
296
+ toProto(message) {
297
+ return exports.BondedRole.encode(message).finish();
298
+ },
299
+ toProtoMsg(message) {
300
+ return {
301
+ typeUrl: "/sparkdream.rep.v1.BondedRole",
302
+ value: exports.BondedRole.encode(message).finish()
303
+ };
304
+ }
305
+ };
306
+ function createBaseBondedRoleConfig() {
307
+ return {
308
+ roleType: 0,
309
+ minBond: "",
310
+ minRepTier: BigInt(0),
311
+ minTrustLevel: "",
312
+ minAgeBlocks: BigInt(0),
313
+ demotionCooldown: BigInt(0),
314
+ demotionThreshold: ""
315
+ };
316
+ }
317
+ /**
318
+ * BondedRoleConfig holds the per-role policy knobs enforced by x/rep at
319
+ * MsgBondRole time. The source-of-truth field values live on the owning
320
+ * module's operational params (flattened); the owning module write-throughs
321
+ * the full config via SetBondedRoleConfig on change and at InitGenesis.
322
+ *
323
+ * Every field is mutable via the owning module's operational-params flow. No
324
+ * chain-upgrade gates — these are operational accountability knobs, not
325
+ * monetary policy.
326
+ * @name BondedRoleConfig
327
+ * @package sparkdream.rep.v1
328
+ * @see proto type: sparkdream.rep.v1.BondedRoleConfig
329
+ */
330
+ exports.BondedRoleConfig = {
331
+ typeUrl: "/sparkdream.rep.v1.BondedRoleConfig",
332
+ encode(message, writer = binary_1.BinaryWriter.create()) {
333
+ if (message.roleType !== 0) {
334
+ writer.uint32(8).int32(message.roleType);
335
+ }
336
+ if (message.minBond !== "") {
337
+ writer.uint32(18).string(message.minBond);
338
+ }
339
+ if (message.minRepTier !== BigInt(0)) {
340
+ writer.uint32(24).uint64(message.minRepTier);
341
+ }
342
+ if (message.minTrustLevel !== "") {
343
+ writer.uint32(34).string(message.minTrustLevel);
344
+ }
345
+ if (message.minAgeBlocks !== BigInt(0)) {
346
+ writer.uint32(40).int64(message.minAgeBlocks);
347
+ }
348
+ if (message.demotionCooldown !== BigInt(0)) {
349
+ writer.uint32(48).int64(message.demotionCooldown);
350
+ }
351
+ if (message.demotionThreshold !== "") {
352
+ writer.uint32(58).string(message.demotionThreshold);
353
+ }
354
+ return writer;
355
+ },
356
+ decode(input, length) {
357
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
358
+ let end = length === undefined ? reader.len : reader.pos + length;
359
+ const message = createBaseBondedRoleConfig();
360
+ while (reader.pos < end) {
361
+ const tag = reader.uint32();
362
+ switch (tag >>> 3) {
363
+ case 1:
364
+ message.roleType = reader.int32();
365
+ break;
366
+ case 2:
367
+ message.minBond = reader.string();
368
+ break;
369
+ case 3:
370
+ message.minRepTier = reader.uint64();
371
+ break;
372
+ case 4:
373
+ message.minTrustLevel = reader.string();
374
+ break;
375
+ case 5:
376
+ message.minAgeBlocks = reader.int64();
377
+ break;
378
+ case 6:
379
+ message.demotionCooldown = reader.int64();
380
+ break;
381
+ case 7:
382
+ message.demotionThreshold = reader.string();
383
+ break;
384
+ default:
385
+ reader.skipType(tag & 7);
386
+ break;
387
+ }
388
+ }
389
+ return message;
390
+ },
391
+ fromPartial(object) {
392
+ const message = createBaseBondedRoleConfig();
393
+ message.roleType = object.roleType ?? 0;
394
+ message.minBond = object.minBond ?? "";
395
+ message.minRepTier = object.minRepTier !== undefined && object.minRepTier !== null ? BigInt(object.minRepTier.toString()) : BigInt(0);
396
+ message.minTrustLevel = object.minTrustLevel ?? "";
397
+ message.minAgeBlocks = object.minAgeBlocks !== undefined && object.minAgeBlocks !== null ? BigInt(object.minAgeBlocks.toString()) : BigInt(0);
398
+ message.demotionCooldown = object.demotionCooldown !== undefined && object.demotionCooldown !== null ? BigInt(object.demotionCooldown.toString()) : BigInt(0);
399
+ message.demotionThreshold = object.demotionThreshold ?? "";
400
+ return message;
401
+ },
402
+ fromAmino(object) {
403
+ const message = createBaseBondedRoleConfig();
404
+ if (object.role_type !== undefined && object.role_type !== null) {
405
+ message.roleType = object.role_type;
406
+ }
407
+ if (object.min_bond !== undefined && object.min_bond !== null) {
408
+ message.minBond = object.min_bond;
409
+ }
410
+ if (object.min_rep_tier !== undefined && object.min_rep_tier !== null) {
411
+ message.minRepTier = BigInt(object.min_rep_tier);
412
+ }
413
+ if (object.min_trust_level !== undefined && object.min_trust_level !== null) {
414
+ message.minTrustLevel = object.min_trust_level;
415
+ }
416
+ if (object.min_age_blocks !== undefined && object.min_age_blocks !== null) {
417
+ message.minAgeBlocks = BigInt(object.min_age_blocks);
418
+ }
419
+ if (object.demotion_cooldown !== undefined && object.demotion_cooldown !== null) {
420
+ message.demotionCooldown = BigInt(object.demotion_cooldown);
421
+ }
422
+ if (object.demotion_threshold !== undefined && object.demotion_threshold !== null) {
423
+ message.demotionThreshold = object.demotion_threshold;
424
+ }
425
+ return message;
426
+ },
427
+ toAmino(message) {
428
+ const obj = {};
429
+ obj.role_type = message.roleType === 0 ? undefined : message.roleType;
430
+ obj.min_bond = message.minBond === "" ? undefined : message.minBond;
431
+ obj.min_rep_tier = message.minRepTier !== BigInt(0) ? message.minRepTier?.toString() : undefined;
432
+ obj.min_trust_level = message.minTrustLevel === "" ? undefined : message.minTrustLevel;
433
+ obj.min_age_blocks = message.minAgeBlocks !== BigInt(0) ? message.minAgeBlocks?.toString() : undefined;
434
+ obj.demotion_cooldown = message.demotionCooldown !== BigInt(0) ? message.demotionCooldown?.toString() : undefined;
435
+ obj.demotion_threshold = message.demotionThreshold === "" ? undefined : message.demotionThreshold;
436
+ return obj;
437
+ },
438
+ fromAminoMsg(object) {
439
+ return exports.BondedRoleConfig.fromAmino(object.value);
440
+ },
441
+ fromProtoMsg(message) {
442
+ return exports.BondedRoleConfig.decode(message.value);
443
+ },
444
+ toProto(message) {
445
+ return exports.BondedRoleConfig.encode(message).finish();
446
+ },
447
+ toProtoMsg(message) {
448
+ return {
449
+ typeUrl: "/sparkdream.rep.v1.BondedRoleConfig",
450
+ value: exports.BondedRoleConfig.encode(message).finish()
451
+ };
452
+ }
453
+ };
@@ -14,11 +14,11 @@ import { ReservedTag, ReservedTagAmino } from "./reserved_tag";
14
14
  import { TagReport, TagReportAmino } from "./tag_report";
15
15
  import { TagBudget, TagBudgetAmino } from "./tag_budget";
16
16
  import { TagBudgetAward, TagBudgetAwardAmino } from "./tag_budget_award";
17
- import { SentinelActivity, SentinelActivityAmino } from "./sentinel_activity";
18
17
  import { JuryParticipation, JuryParticipationAmino } from "./jury_participation";
19
18
  import { MemberReport, MemberReportAmino } from "./member_report";
20
19
  import { MemberWarning, MemberWarningAmino } from "./member_warning";
21
20
  import { GovActionAppeal, GovActionAppealAmino } from "./gov_action_appeal";
21
+ import { BondedRole, BondedRoleAmino, BondedRoleConfig, BondedRoleConfigAmino } from "./bonded_role";
22
22
  import { BinaryReader, BinaryWriter } from "../../../binary";
23
23
  import { DeepPartial } from "../../../helpers";
24
24
  /**
@@ -79,10 +79,6 @@ export interface GenesisState {
79
79
  tagBudgetCount: bigint;
80
80
  tagBudgetAwardList: TagBudgetAward[];
81
81
  tagBudgetAwardCount: bigint;
82
- /**
83
- * Sentinel accountability records
84
- */
85
- sentinelActivityMap: SentinelActivity[];
86
82
  /**
87
83
  * Accountability state
88
84
  */
@@ -92,6 +88,11 @@ export interface GenesisState {
92
88
  memberWarningCount: bigint;
93
89
  govActionAppealList: GovActionAppeal[];
94
90
  govActionAppealCount: bigint;
91
+ /**
92
+ * Bonded-role primitive (Phase 1 of bonded-role generalization).
93
+ */
94
+ bondedRoleList: BondedRole[];
95
+ bondedRoleConfigList: BondedRoleConfig[];
95
96
  }
96
97
  export interface GenesisStateProtoMsg {
97
98
  typeUrl: "/sparkdream.rep.v1.GenesisState";
@@ -155,10 +156,6 @@ export interface GenesisStateAmino {
155
156
  tag_budget_count?: string;
156
157
  tag_budget_award_list?: TagBudgetAwardAmino[];
157
158
  tag_budget_award_count?: string;
158
- /**
159
- * Sentinel accountability records
160
- */
161
- sentinel_activity_map?: SentinelActivityAmino[];
162
159
  /**
163
160
  * Accountability state
164
161
  */
@@ -168,6 +165,11 @@ export interface GenesisStateAmino {
168
165
  member_warning_count?: string;
169
166
  gov_action_appeal_list?: GovActionAppealAmino[];
170
167
  gov_action_appeal_count?: string;
168
+ /**
169
+ * Bonded-role primitive (Phase 1 of bonded-role generalization).
170
+ */
171
+ bonded_role_list?: BondedRoleAmino[];
172
+ bonded_role_config_list?: BondedRoleConfigAmino[];
171
173
  }
172
174
  export interface GenesisStateAminoMsg {
173
175
  type: "/sparkdream.rep.v1.GenesisState";
@@ -18,11 +18,11 @@ const reserved_tag_1 = require("./reserved_tag");
18
18
  const tag_report_1 = require("./tag_report");
19
19
  const tag_budget_1 = require("./tag_budget");
20
20
  const tag_budget_award_1 = require("./tag_budget_award");
21
- const sentinel_activity_1 = require("./sentinel_activity");
22
21
  const jury_participation_1 = require("./jury_participation");
23
22
  const member_report_1 = require("./member_report");
24
23
  const member_warning_1 = require("./member_warning");
25
24
  const gov_action_appeal_1 = require("./gov_action_appeal");
25
+ const bonded_role_1 = require("./bonded_role");
26
26
  const binary_1 = require("../../../binary");
27
27
  function createBaseGenesisState() {
28
28
  return {
@@ -56,13 +56,14 @@ function createBaseGenesisState() {
56
56
  tagBudgetCount: BigInt(0),
57
57
  tagBudgetAwardList: [],
58
58
  tagBudgetAwardCount: BigInt(0),
59
- sentinelActivityMap: [],
60
59
  juryParticipationMap: [],
61
60
  memberReportMap: [],
62
61
  memberWarningList: [],
63
62
  memberWarningCount: BigInt(0),
64
63
  govActionAppealList: [],
65
- govActionAppealCount: BigInt(0)
64
+ govActionAppealCount: BigInt(0),
65
+ bondedRoleList: [],
66
+ bondedRoleConfigList: []
66
67
  };
67
68
  }
68
69
  /**
@@ -164,9 +165,6 @@ exports.GenesisState = {
164
165
  if (message.tagBudgetAwardCount !== BigInt(0)) {
165
166
  writer.uint32(240).uint64(message.tagBudgetAwardCount);
166
167
  }
167
- for (const v of message.sentinelActivityMap) {
168
- sentinel_activity_1.SentinelActivity.encode(v, writer.uint32(250).fork()).ldelim();
169
- }
170
168
  for (const v of message.juryParticipationMap) {
171
169
  jury_participation_1.JuryParticipation.encode(v, writer.uint32(258).fork()).ldelim();
172
170
  }
@@ -185,6 +183,12 @@ exports.GenesisState = {
185
183
  if (message.govActionAppealCount !== BigInt(0)) {
186
184
  writer.uint32(296).uint64(message.govActionAppealCount);
187
185
  }
186
+ for (const v of message.bondedRoleList) {
187
+ bonded_role_1.BondedRole.encode(v, writer.uint32(306).fork()).ldelim();
188
+ }
189
+ for (const v of message.bondedRoleConfigList) {
190
+ bonded_role_1.BondedRoleConfig.encode(v, writer.uint32(314).fork()).ldelim();
191
+ }
188
192
  return writer;
189
193
  },
190
194
  decode(input, length) {
@@ -284,9 +288,6 @@ exports.GenesisState = {
284
288
  case 30:
285
289
  message.tagBudgetAwardCount = reader.uint64();
286
290
  break;
287
- case 31:
288
- message.sentinelActivityMap.push(sentinel_activity_1.SentinelActivity.decode(reader, reader.uint32()));
289
- break;
290
291
  case 32:
291
292
  message.juryParticipationMap.push(jury_participation_1.JuryParticipation.decode(reader, reader.uint32()));
292
293
  break;
@@ -305,6 +306,12 @@ exports.GenesisState = {
305
306
  case 37:
306
307
  message.govActionAppealCount = reader.uint64();
307
308
  break;
309
+ case 38:
310
+ message.bondedRoleList.push(bonded_role_1.BondedRole.decode(reader, reader.uint32()));
311
+ break;
312
+ case 39:
313
+ message.bondedRoleConfigList.push(bonded_role_1.BondedRoleConfig.decode(reader, reader.uint32()));
314
+ break;
308
315
  default:
309
316
  reader.skipType(tag & 7);
310
317
  break;
@@ -344,13 +351,14 @@ exports.GenesisState = {
344
351
  message.tagBudgetCount = object.tagBudgetCount !== undefined && object.tagBudgetCount !== null ? BigInt(object.tagBudgetCount.toString()) : BigInt(0);
345
352
  message.tagBudgetAwardList = object.tagBudgetAwardList?.map(e => tag_budget_award_1.TagBudgetAward.fromPartial(e)) || [];
346
353
  message.tagBudgetAwardCount = object.tagBudgetAwardCount !== undefined && object.tagBudgetAwardCount !== null ? BigInt(object.tagBudgetAwardCount.toString()) : BigInt(0);
347
- message.sentinelActivityMap = object.sentinelActivityMap?.map(e => sentinel_activity_1.SentinelActivity.fromPartial(e)) || [];
348
354
  message.juryParticipationMap = object.juryParticipationMap?.map(e => jury_participation_1.JuryParticipation.fromPartial(e)) || [];
349
355
  message.memberReportMap = object.memberReportMap?.map(e => member_report_1.MemberReport.fromPartial(e)) || [];
350
356
  message.memberWarningList = object.memberWarningList?.map(e => member_warning_1.MemberWarning.fromPartial(e)) || [];
351
357
  message.memberWarningCount = object.memberWarningCount !== undefined && object.memberWarningCount !== null ? BigInt(object.memberWarningCount.toString()) : BigInt(0);
352
358
  message.govActionAppealList = object.govActionAppealList?.map(e => gov_action_appeal_1.GovActionAppeal.fromPartial(e)) || [];
353
359
  message.govActionAppealCount = object.govActionAppealCount !== undefined && object.govActionAppealCount !== null ? BigInt(object.govActionAppealCount.toString()) : BigInt(0);
360
+ message.bondedRoleList = object.bondedRoleList?.map(e => bonded_role_1.BondedRole.fromPartial(e)) || [];
361
+ message.bondedRoleConfigList = object.bondedRoleConfigList?.map(e => bonded_role_1.BondedRoleConfig.fromPartial(e)) || [];
354
362
  return message;
355
363
  },
356
364
  fromAmino(object) {
@@ -407,7 +415,6 @@ exports.GenesisState = {
407
415
  if (object.tag_budget_award_count !== undefined && object.tag_budget_award_count !== null) {
408
416
  message.tagBudgetAwardCount = BigInt(object.tag_budget_award_count);
409
417
  }
410
- message.sentinelActivityMap = object.sentinel_activity_map?.map(e => sentinel_activity_1.SentinelActivity.fromAmino(e)) || [];
411
418
  message.juryParticipationMap = object.jury_participation_map?.map(e => jury_participation_1.JuryParticipation.fromAmino(e)) || [];
412
419
  message.memberReportMap = object.member_report_map?.map(e => member_report_1.MemberReport.fromAmino(e)) || [];
413
420
  message.memberWarningList = object.member_warning_list?.map(e => member_warning_1.MemberWarning.fromAmino(e)) || [];
@@ -418,6 +425,8 @@ exports.GenesisState = {
418
425
  if (object.gov_action_appeal_count !== undefined && object.gov_action_appeal_count !== null) {
419
426
  message.govActionAppealCount = BigInt(object.gov_action_appeal_count);
420
427
  }
428
+ message.bondedRoleList = object.bonded_role_list?.map(e => bonded_role_1.BondedRole.fromAmino(e)) || [];
429
+ message.bondedRoleConfigList = object.bonded_role_config_list?.map(e => bonded_role_1.BondedRoleConfig.fromAmino(e)) || [];
421
430
  return message;
422
431
  },
423
432
  toAmino(message) {
@@ -547,12 +556,6 @@ exports.GenesisState = {
547
556
  obj.tag_budget_award_list = message.tagBudgetAwardList;
548
557
  }
549
558
  obj.tag_budget_award_count = message.tagBudgetAwardCount !== BigInt(0) ? message.tagBudgetAwardCount?.toString() : undefined;
550
- if (message.sentinelActivityMap) {
551
- obj.sentinel_activity_map = message.sentinelActivityMap.map(e => e ? sentinel_activity_1.SentinelActivity.toAmino(e) : undefined);
552
- }
553
- else {
554
- obj.sentinel_activity_map = message.sentinelActivityMap;
555
- }
556
559
  if (message.juryParticipationMap) {
557
560
  obj.jury_participation_map = message.juryParticipationMap.map(e => e ? jury_participation_1.JuryParticipation.toAmino(e) : undefined);
558
561
  }
@@ -579,6 +582,18 @@ exports.GenesisState = {
579
582
  obj.gov_action_appeal_list = message.govActionAppealList;
580
583
  }
581
584
  obj.gov_action_appeal_count = message.govActionAppealCount !== BigInt(0) ? message.govActionAppealCount?.toString() : undefined;
585
+ if (message.bondedRoleList) {
586
+ obj.bonded_role_list = message.bondedRoleList.map(e => e ? bonded_role_1.BondedRole.toAmino(e) : undefined);
587
+ }
588
+ else {
589
+ obj.bonded_role_list = message.bondedRoleList;
590
+ }
591
+ if (message.bondedRoleConfigList) {
592
+ obj.bonded_role_config_list = message.bondedRoleConfigList.map(e => e ? bonded_role_1.BondedRoleConfig.toAmino(e) : undefined);
593
+ }
594
+ else {
595
+ obj.bonded_role_config_list = message.bondedRoleConfigList;
596
+ }
582
597
  return obj;
583
598
  },
584
599
  fromAminoMsg(object) {