@sparkdreamnft/sparkdreamjs 0.0.16 → 0.0.18

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 (264) 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 +51 -50
  6. package/esm/sparkdream/blog/v1/tx.amino.js +53 -20
  7. package/esm/sparkdream/bundle.js +448 -346
  8. package/esm/sparkdream/client.js +7 -1
  9. package/esm/sparkdream/collect/v1/params.js +13 -1
  10. package/esm/sparkdream/collect/v1/tx.amino.js +138 -36
  11. package/esm/sparkdream/collect/v1/types.js +13 -1
  12. package/esm/sparkdream/commons/v1/genesis.js +29 -1
  13. package/esm/sparkdream/commons/v1/query.js +317 -0
  14. package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
  15. package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
  16. package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
  17. package/esm/sparkdream/commons/v1/tx.amino.js +76 -6
  18. package/esm/sparkdream/commons/v1/tx.js +693 -0
  19. package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
  20. package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
  21. package/esm/sparkdream/ecosystem/v1/tx.amino.js +18 -4
  22. package/esm/sparkdream/federation/v1/genesis.js +10 -10
  23. package/esm/sparkdream/federation/v1/params.js +29 -54
  24. package/esm/sparkdream/federation/v1/query.js +216 -71
  25. package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
  26. package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  27. package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
  28. package/esm/sparkdream/federation/v1/tx.js +1146 -1105
  29. package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
  30. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
  31. package/esm/sparkdream/federation/v1/types.js +355 -99
  32. package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
  33. package/esm/sparkdream/forum/v1/params.js +173 -148
  34. package/esm/sparkdream/forum/v1/tx.amino.js +69 -40
  35. package/esm/sparkdream/guardian/module/v1/module.js +68 -0
  36. package/esm/sparkdream/guardian/v1/query.js +128 -0
  37. package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
  38. package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
  39. package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
  40. package/esm/sparkdream/guardian/v1/tx.js +175 -0
  41. package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
  42. package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
  43. package/esm/sparkdream/identity/module/v1/module.js +71 -0
  44. package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
  45. package/esm/sparkdream/identity/v1/genesis.js +84 -0
  46. package/esm/sparkdream/identity/v1/query.js +372 -0
  47. package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
  48. package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
  49. package/esm/sparkdream/lcd.js +15 -0
  50. package/esm/sparkdream/name/v1/params.js +19 -18
  51. package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
  52. package/esm/sparkdream/rep/v1/tag.js +6 -13
  53. package/esm/sparkdream/rep/v1/tx.amino.js +177 -58
  54. package/esm/sparkdream/reveal/v1/tx.amino.js +34 -13
  55. package/esm/sparkdream/rpc.query.js +9 -0
  56. package/esm/sparkdream/rpc.tx.js +6 -0
  57. package/esm/sparkdream/service/module/v1/module.js +71 -0
  58. package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
  59. package/esm/sparkdream/service/v1/genesis.js +240 -0
  60. package/esm/sparkdream/service/v1/operator.js +250 -0
  61. package/esm/sparkdream/service/v1/params.js +355 -0
  62. package/esm/sparkdream/service/v1/query.js +1582 -0
  63. package/esm/sparkdream/service/v1/query.lcd.js +107 -0
  64. package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
  65. package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
  66. package/esm/sparkdream/service/v1/report.js +212 -0
  67. package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
  68. package/esm/sparkdream/service/v1/service_type_config.js +264 -0
  69. package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
  70. package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
  71. package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
  72. package/esm/sparkdream/service/v1/tx.amino.js +69 -0
  73. package/esm/sparkdream/service/v1/tx.js +2124 -0
  74. package/esm/sparkdream/service/v1/tx.registry.js +249 -0
  75. package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
  76. package/esm/sparkdream/service/v1/types.js +353 -0
  77. package/esm/sparkdream/session/v1/genesis.js +136 -10
  78. package/esm/sparkdream/session/v1/grant.js +1020 -0
  79. package/esm/sparkdream/session/v1/params.js +543 -19
  80. package/esm/sparkdream/session/v1/query.js +487 -0
  81. package/esm/sparkdream/session/v1/query.lcd.js +41 -3
  82. package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
  83. package/esm/sparkdream/session/v1/session.js +6 -0
  84. package/esm/sparkdream/session/v1/tx.amino.js +17 -1
  85. package/esm/sparkdream/session/v1/tx.js +1066 -0
  86. package/esm/sparkdream/session/v1/tx.registry.js +110 -2
  87. package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
  88. package/esm/sparkdream/shield/v1/tx.amino.js +61 -8
  89. package/esm/tendermint/bundle.js +20 -20
  90. package/ibc/bundle.d.ts +90 -90
  91. package/ibc/bundle.js +106 -106
  92. package/package.json +1 -1
  93. package/sparkdream/blog/v1/params.d.ts +37 -28
  94. package/sparkdream/blog/v1/params.js +51 -50
  95. package/sparkdream/blog/v1/post.d.ts +2 -2
  96. package/sparkdream/blog/v1/tx.amino.d.ts +2 -2
  97. package/sparkdream/blog/v1/tx.amino.js +53 -20
  98. package/sparkdream/blog/v1/tx.d.ts +4 -4
  99. package/sparkdream/bundle.d.ts +14945 -12924
  100. package/sparkdream/bundle.js +448 -346
  101. package/sparkdream/client.d.ts +125 -50
  102. package/sparkdream/client.js +7 -1
  103. package/sparkdream/collect/v1/params.d.ts +16 -0
  104. package/sparkdream/collect/v1/params.js +13 -1
  105. package/sparkdream/collect/v1/tx.amino.d.ts +7 -7
  106. package/sparkdream/collect/v1/tx.amino.js +138 -36
  107. package/sparkdream/collect/v1/types.d.ts +2 -0
  108. package/sparkdream/collect/v1/types.js +13 -1
  109. package/sparkdream/commons/v1/genesis.d.ts +17 -0
  110. package/sparkdream/commons/v1/genesis.js +29 -1
  111. package/sparkdream/commons/v1/query.d.ts +186 -0
  112. package/sparkdream/commons/v1/query.js +318 -1
  113. package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
  114. package/sparkdream/commons/v1/query.lcd.js +23 -0
  115. package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
  116. package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
  117. package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
  118. package/sparkdream/commons/v1/recurring_spend.js +301 -0
  119. package/sparkdream/commons/v1/tx.amino.d.ts +11 -6
  120. package/sparkdream/commons/v1/tx.amino.js +75 -5
  121. package/sparkdream/commons/v1/tx.d.ts +472 -0
  122. package/sparkdream/commons/v1/tx.js +694 -1
  123. package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
  124. package/sparkdream/commons/v1/tx.registry.js +73 -1
  125. package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
  126. package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
  127. package/sparkdream/ecosystem/v1/tx.amino.d.ts +1 -1
  128. package/sparkdream/ecosystem/v1/tx.amino.js +19 -5
  129. package/sparkdream/federation/v1/genesis.d.ts +3 -3
  130. package/sparkdream/federation/v1/genesis.js +9 -9
  131. package/sparkdream/federation/v1/params.d.ts +64 -13
  132. package/sparkdream/federation/v1/params.js +29 -54
  133. package/sparkdream/federation/v1/query.d.ts +209 -100
  134. package/sparkdream/federation/v1/query.js +216 -71
  135. package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
  136. package/sparkdream/federation/v1/query.lcd.js +11 -6
  137. package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
  138. package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  139. package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
  140. package/sparkdream/federation/v1/tx.amino.js +20 -20
  141. package/sparkdream/federation/v1/tx.d.ts +479 -352
  142. package/sparkdream/federation/v1/tx.js +1147 -1106
  143. package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
  144. package/sparkdream/federation/v1/tx.registry.js +73 -73
  145. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
  146. package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
  147. package/sparkdream/federation/v1/types.d.ts +307 -41
  148. package/sparkdream/federation/v1/types.js +360 -100
  149. package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
  150. package/sparkdream/federation/v1/verifier_activity.js +13 -1
  151. package/sparkdream/forum/v1/params.d.ts +99 -62
  152. package/sparkdream/forum/v1/params.js +173 -148
  153. package/sparkdream/forum/v1/tx.amino.d.ts +2 -2
  154. package/sparkdream/forum/v1/tx.amino.js +69 -40
  155. package/sparkdream/guardian/module/v1/module.d.ts +74 -0
  156. package/sparkdream/guardian/module/v1/module.js +71 -0
  157. package/sparkdream/guardian/v1/query.d.ts +88 -0
  158. package/sparkdream/guardian/v1/query.js +131 -0
  159. package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
  160. package/sparkdream/guardian/v1/query.lcd.js +17 -0
  161. package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
  162. package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
  163. package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
  164. package/sparkdream/guardian/v1/tx.amino.js +12 -0
  165. package/sparkdream/guardian/v1/tx.d.ts +138 -0
  166. package/sparkdream/guardian/v1/tx.js +181 -0
  167. package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
  168. package/sparkdream/guardian/v1/tx.registry.js +37 -0
  169. package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
  170. package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
  171. package/sparkdream/identity/module/v1/module.d.ts +54 -0
  172. package/sparkdream/identity/module/v1/module.js +74 -0
  173. package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
  174. package/sparkdream/identity/v1/chain_identity.js +202 -0
  175. package/sparkdream/identity/v1/genesis.d.ts +65 -0
  176. package/sparkdream/identity/v1/genesis.js +87 -0
  177. package/sparkdream/identity/v1/query.d.ts +243 -0
  178. package/sparkdream/identity/v1/query.js +375 -0
  179. package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
  180. package/sparkdream/identity/v1/query.lcd.js +25 -0
  181. package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
  182. package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
  183. package/sparkdream/lcd.d.ts +9 -0
  184. package/sparkdream/lcd.js +15 -0
  185. package/sparkdream/name/v1/params.d.ts +25 -8
  186. package/sparkdream/name/v1/params.js +19 -18
  187. package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
  188. package/sparkdream/rep/v1/bonded_role.js +48 -2
  189. package/sparkdream/rep/v1/tag.d.ts +15 -2
  190. package/sparkdream/rep/v1/tag.js +6 -13
  191. package/sparkdream/rep/v1/tx.amino.d.ts +9 -9
  192. package/sparkdream/rep/v1/tx.amino.js +177 -58
  193. package/sparkdream/reveal/v1/tx.amino.d.ts +1 -1
  194. package/sparkdream/reveal/v1/tx.amino.js +34 -13
  195. package/sparkdream/rpc.query.d.ts +34 -2
  196. package/sparkdream/rpc.query.js +9 -0
  197. package/sparkdream/rpc.tx.d.ts +6 -0
  198. package/sparkdream/rpc.tx.js +6 -0
  199. package/sparkdream/service/module/v1/module.d.ts +54 -0
  200. package/sparkdream/service/module/v1/module.js +74 -0
  201. package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
  202. package/sparkdream/service/v1/controller_transfer_case.js +158 -0
  203. package/sparkdream/service/v1/genesis.d.ts +172 -0
  204. package/sparkdream/service/v1/genesis.js +243 -0
  205. package/sparkdream/service/v1/operator.d.ts +215 -0
  206. package/sparkdream/service/v1/operator.js +253 -0
  207. package/sparkdream/service/v1/params.d.ts +346 -0
  208. package/sparkdream/service/v1/params.js +358 -0
  209. package/sparkdream/service/v1/query.d.ts +964 -0
  210. package/sparkdream/service/v1/query.js +1585 -0
  211. package/sparkdream/service/v1/query.lcd.d.ts +18 -0
  212. package/sparkdream/service/v1/query.lcd.js +111 -0
  213. package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
  214. package/sparkdream/service/v1/query.rpc.Query.js +114 -0
  215. package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
  216. package/sparkdream/service/v1/refile_cooldown.js +124 -0
  217. package/sparkdream/service/v1/report.d.ts +174 -0
  218. package/sparkdream/service/v1/report.js +215 -0
  219. package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
  220. package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
  221. package/sparkdream/service/v1/service_type_config.d.ts +222 -0
  222. package/sparkdream/service/v1/service_type_config.js +269 -0
  223. package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
  224. package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
  225. package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
  226. package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
  227. package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
  228. package/sparkdream/service/v1/tier1_last_slash.js +124 -0
  229. package/sparkdream/service/v1/tx.amino.d.ts +68 -0
  230. package/sparkdream/service/v1/tx.amino.js +72 -0
  231. package/sparkdream/service/v1/tx.d.ts +1264 -0
  232. package/sparkdream/service/v1/tx.js +2127 -0
  233. package/sparkdream/service/v1/tx.registry.d.ts +169 -0
  234. package/sparkdream/service/v1/tx.registry.js +253 -0
  235. package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
  236. package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
  237. package/sparkdream/service/v1/types.d.ts +94 -0
  238. package/sparkdream/service/v1/types.js +370 -0
  239. package/sparkdream/session/v1/genesis.d.ts +93 -9
  240. package/sparkdream/session/v1/genesis.js +137 -11
  241. package/sparkdream/session/v1/grant.d.ts +517 -0
  242. package/sparkdream/session/v1/grant.js +1027 -0
  243. package/sparkdream/session/v1/params.d.ts +338 -7
  244. package/sparkdream/session/v1/params.js +543 -19
  245. package/sparkdream/session/v1/query.d.ts +265 -0
  246. package/sparkdream/session/v1/query.js +488 -1
  247. package/sparkdream/session/v1/query.lcd.d.ts +4 -1
  248. package/sparkdream/session/v1/query.lcd.js +41 -3
  249. package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
  250. package/sparkdream/session/v1/query.rpc.Query.js +35 -3
  251. package/sparkdream/session/v1/session.d.ts +18 -0
  252. package/sparkdream/session/v1/session.js +6 -0
  253. package/sparkdream/session/v1/tx.amino.d.ts +1 -1
  254. package/sparkdream/session/v1/tx.amino.js +17 -1
  255. package/sparkdream/session/v1/tx.d.ts +660 -0
  256. package/sparkdream/session/v1/tx.js +1067 -1
  257. package/sparkdream/session/v1/tx.registry.d.ts +73 -1
  258. package/sparkdream/session/v1/tx.registry.js +109 -1
  259. package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
  260. package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
  261. package/sparkdream/shield/v1/tx.amino.d.ts +3 -3
  262. package/sparkdream/shield/v1/tx.amino.js +61 -8
  263. package/tendermint/bundle.d.ts +844 -844
  264. package/tendermint/bundle.js +20 -20
@@ -40,6 +40,15 @@ export interface VerifierActivity {
40
40
  * slashed (overturn verdicts).
41
41
  */
42
42
  slashCount: bigint;
43
+ /**
44
+ * last_slash_epoch records the Phase 11 reward-epoch number
45
+ * (height / GetVerifierRewardEpochBlocks) in which this verifier was
46
+ * most recently slashed. Phase 11's "no slashing this epoch"
47
+ * eligibility gate compares this against the current reward epoch —
48
+ * an exact match disqualifies the verifier for the current epoch's
49
+ * payout. Zero means "never slashed under the current accounting".
50
+ */
51
+ lastSlashEpoch: bigint;
43
52
  }
44
53
  export interface VerifierActivityProtoMsg {
45
54
  typeUrl: "/sparkdream.federation.v1.VerifierActivity";
@@ -85,6 +94,15 @@ export interface VerifierActivityAmino {
85
94
  * slashed (overturn verdicts).
86
95
  */
87
96
  slash_count?: string;
97
+ /**
98
+ * last_slash_epoch records the Phase 11 reward-epoch number
99
+ * (height / GetVerifierRewardEpochBlocks) in which this verifier was
100
+ * most recently slashed. Phase 11's "no slashing this epoch"
101
+ * eligibility gate compares this against the current reward epoch —
102
+ * an exact match disqualifies the verifier for the current epoch's
103
+ * payout. Zero means "never slashed under the current accounting".
104
+ */
105
+ last_slash_epoch?: string;
88
106
  }
89
107
  export interface VerifierActivityAminoMsg {
90
108
  type: "/sparkdream.federation.v1.VerifierActivity";
@@ -15,7 +15,8 @@ function createBaseVerifierActivity() {
15
15
  consecutiveOverturns: BigInt(0),
16
16
  consecutiveUpheld: BigInt(0),
17
17
  overturnCooldownUntil: BigInt(0),
18
- slashCount: BigInt(0)
18
+ slashCount: BigInt(0),
19
+ lastSlashEpoch: BigInt(0)
19
20
  };
20
21
  }
21
22
  /**
@@ -63,6 +64,9 @@ exports.VerifierActivity = {
63
64
  if (message.slashCount !== BigInt(0)) {
64
65
  writer.uint32(88).uint64(message.slashCount);
65
66
  }
67
+ if (message.lastSlashEpoch !== BigInt(0)) {
68
+ writer.uint32(96).int64(message.lastSlashEpoch);
69
+ }
66
70
  return writer;
67
71
  },
68
72
  decode(input, length) {
@@ -105,6 +109,9 @@ exports.VerifierActivity = {
105
109
  case 11:
106
110
  message.slashCount = reader.uint64();
107
111
  break;
112
+ case 12:
113
+ message.lastSlashEpoch = reader.int64();
114
+ break;
108
115
  default:
109
116
  reader.skipType(tag & 7);
110
117
  break;
@@ -125,6 +132,7 @@ exports.VerifierActivity = {
125
132
  message.consecutiveUpheld = object.consecutiveUpheld !== undefined && object.consecutiveUpheld !== null ? BigInt(object.consecutiveUpheld.toString()) : BigInt(0);
126
133
  message.overturnCooldownUntil = object.overturnCooldownUntil !== undefined && object.overturnCooldownUntil !== null ? BigInt(object.overturnCooldownUntil.toString()) : BigInt(0);
127
134
  message.slashCount = object.slashCount !== undefined && object.slashCount !== null ? BigInt(object.slashCount.toString()) : BigInt(0);
135
+ message.lastSlashEpoch = object.lastSlashEpoch !== undefined && object.lastSlashEpoch !== null ? BigInt(object.lastSlashEpoch.toString()) : BigInt(0);
128
136
  return message;
129
137
  },
130
138
  fromAmino(object) {
@@ -162,6 +170,9 @@ exports.VerifierActivity = {
162
170
  if (object.slash_count !== undefined && object.slash_count !== null) {
163
171
  message.slashCount = BigInt(object.slash_count);
164
172
  }
173
+ if (object.last_slash_epoch !== undefined && object.last_slash_epoch !== null) {
174
+ message.lastSlashEpoch = BigInt(object.last_slash_epoch);
175
+ }
165
176
  return message;
166
177
  },
167
178
  toAmino(message) {
@@ -177,6 +188,7 @@ exports.VerifierActivity = {
177
188
  obj.consecutive_upheld = message.consecutiveUpheld !== BigInt(0) ? message.consecutiveUpheld?.toString() : undefined;
178
189
  obj.overturn_cooldown_until = message.overturnCooldownUntil !== BigInt(0) ? message.overturnCooldownUntil?.toString() : undefined;
179
190
  obj.slash_count = message.slashCount !== BigInt(0) ? message.slashCount?.toString() : undefined;
191
+ obj.last_slash_epoch = message.lastSlashEpoch !== BigInt(0) ? message.lastSlashEpoch?.toString() : undefined;
180
192
  return obj;
181
193
  },
182
194
  fromAminoMsg(object) {
@@ -1,8 +1,9 @@
1
- import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
2
1
  import { BinaryReader, BinaryWriter } from "../../../binary";
3
2
  import { DeepPartial } from "../../../helpers";
4
3
  /**
5
- * Params defines the parameters for the module.
4
+ * Params defines the parameters for the module. Fee/cost fields are stored
5
+ * as bare amounts in the chain's bond denom (resolved at runtime from
6
+ * x/identity); the keeper wraps them into sdk.Coin at the point of use.
6
7
  * @name Params
7
8
  * @package sparkdream.forum.v1
8
9
  * @see proto type: sparkdream.forum.v1.Params
@@ -33,37 +34,37 @@ export interface Params {
33
34
  */
34
35
  editingEnabled: boolean;
35
36
  /**
36
- * spam_tax charged to non-members for posting
37
+ * spam_tax_amount charged to non-members for posting, in bond-denom micro-units.
37
38
  */
38
- spamTax: Coin;
39
+ spamTaxAmount: string;
39
40
  /**
40
- * reaction_spam_tax charged to non-members for reactions
41
+ * reaction_spam_tax_amount charged to non-members for reactions, in bond-denom micro-units.
41
42
  */
42
- reactionSpamTax: Coin;
43
+ reactionSpamTaxAmount: string;
43
44
  /**
44
- * flag_spam_tax charged to non-members for flagging
45
+ * flag_spam_tax_amount charged to non-members for flagging, in bond-denom micro-units.
45
46
  */
46
- flagSpamTax: Coin;
47
+ flagSpamTaxAmount: string;
47
48
  /**
48
- * downvote_deposit burned when downvoting
49
+ * downvote_deposit_amount burned when downvoting, in bond-denom micro-units.
49
50
  */
50
- downvoteDeposit: Coin;
51
+ downvoteDepositAmount: string;
51
52
  /**
52
- * appeal_fee charged for appeals
53
+ * appeal_fee_amount charged for appeals, in bond-denom micro-units.
53
54
  */
54
- appealFee: Coin;
55
+ appealFeeAmount: string;
55
56
  /**
56
- * lock_appeal_fee charged for thread lock appeals
57
+ * lock_appeal_fee_amount charged for thread lock appeals, in bond-denom micro-units.
57
58
  */
58
- lockAppealFee: Coin;
59
+ lockAppealFeeAmount: string;
59
60
  /**
60
- * move_appeal_fee charged for thread move appeals
61
+ * move_appeal_fee_amount charged for thread move appeals, in bond-denom micro-units.
61
62
  */
62
- moveAppealFee: Coin;
63
+ moveAppealFeeAmount: string;
63
64
  /**
64
- * edit_fee charged for edits past grace period
65
+ * edit_fee_amount charged for edits past grace period, in bond-denom micro-units.
65
66
  */
66
- editFee: Coin;
67
+ editFeeAmount: string;
67
68
  /**
68
69
  * bounty_cancellation_fee_percent percentage of bounty taken on cancellation (0-100)
69
70
  */
@@ -117,9 +118,10 @@ export interface Params {
117
118
  */
118
119
  moveAppealCooldown: bigint;
119
120
  /**
120
- * cost_per_byte charged for on-chain content storage (applies to all posts, burned)
121
+ * cost_per_byte_amount charged for on-chain content storage (applies to all
122
+ * posts, burned), in bond-denom micro-units.
121
123
  */
122
- costPerByte: Coin;
124
+ costPerByteAmount: string;
123
125
  /**
124
126
  * cost_per_byte_exempt when true, disables cost_per_byte fee collection
125
127
  */
@@ -167,13 +169,23 @@ export interface Params {
167
169
  * governance can unhide. Analogous to edit_max_window for authors.
168
170
  */
169
171
  sentinelUnhideWindow: bigint;
172
+ /**
173
+ * sentinel_unbond_cooldown is the number of seconds a sentinel's bond stays
174
+ * locked and slashable after MsgUnbondRole. During the cooldown, the
175
+ * BondedRole status is UNBONDING and forum action gates refuse authority.
176
+ * Propagated to x/rep BondedRoleConfig via SyncSentinelBondedRoleConfig.
177
+ * Zero = immediate withdrawal (legacy behavior).
178
+ */
179
+ sentinelUnbondCooldown: bigint;
170
180
  }
171
181
  export interface ParamsProtoMsg {
172
182
  typeUrl: "/sparkdream.forum.v1.Params";
173
183
  value: Uint8Array;
174
184
  }
175
185
  /**
176
- * Params defines the parameters for the module.
186
+ * Params defines the parameters for the module. Fee/cost fields are stored
187
+ * as bare amounts in the chain's bond denom (resolved at runtime from
188
+ * x/identity); the keeper wraps them into sdk.Coin at the point of use.
177
189
  * @name ParamsAmino
178
190
  * @package sparkdream.forum.v1
179
191
  * @see proto type: sparkdream.forum.v1.Params
@@ -204,37 +216,37 @@ export interface ParamsAmino {
204
216
  */
205
217
  editing_enabled?: boolean;
206
218
  /**
207
- * spam_tax charged to non-members for posting
219
+ * spam_tax_amount charged to non-members for posting, in bond-denom micro-units.
208
220
  */
209
- spam_tax?: CoinAmino;
221
+ spam_tax_amount?: string;
210
222
  /**
211
- * reaction_spam_tax charged to non-members for reactions
223
+ * reaction_spam_tax_amount charged to non-members for reactions, in bond-denom micro-units.
212
224
  */
213
- reaction_spam_tax?: CoinAmino;
225
+ reaction_spam_tax_amount?: string;
214
226
  /**
215
- * flag_spam_tax charged to non-members for flagging
227
+ * flag_spam_tax_amount charged to non-members for flagging, in bond-denom micro-units.
216
228
  */
217
- flag_spam_tax?: CoinAmino;
229
+ flag_spam_tax_amount?: string;
218
230
  /**
219
- * downvote_deposit burned when downvoting
231
+ * downvote_deposit_amount burned when downvoting, in bond-denom micro-units.
220
232
  */
221
- downvote_deposit?: CoinAmino;
233
+ downvote_deposit_amount?: string;
222
234
  /**
223
- * appeal_fee charged for appeals
235
+ * appeal_fee_amount charged for appeals, in bond-denom micro-units.
224
236
  */
225
- appeal_fee?: CoinAmino;
237
+ appeal_fee_amount?: string;
226
238
  /**
227
- * lock_appeal_fee charged for thread lock appeals
239
+ * lock_appeal_fee_amount charged for thread lock appeals, in bond-denom micro-units.
228
240
  */
229
- lock_appeal_fee?: CoinAmino;
241
+ lock_appeal_fee_amount?: string;
230
242
  /**
231
- * move_appeal_fee charged for thread move appeals
243
+ * move_appeal_fee_amount charged for thread move appeals, in bond-denom micro-units.
232
244
  */
233
- move_appeal_fee?: CoinAmino;
245
+ move_appeal_fee_amount?: string;
234
246
  /**
235
- * edit_fee charged for edits past grace period
247
+ * edit_fee_amount charged for edits past grace period, in bond-denom micro-units.
236
248
  */
237
- edit_fee?: CoinAmino;
249
+ edit_fee_amount?: string;
238
250
  /**
239
251
  * bounty_cancellation_fee_percent percentage of bounty taken on cancellation (0-100)
240
252
  */
@@ -288,9 +300,10 @@ export interface ParamsAmino {
288
300
  */
289
301
  move_appeal_cooldown?: string;
290
302
  /**
291
- * cost_per_byte charged for on-chain content storage (applies to all posts, burned)
303
+ * cost_per_byte_amount charged for on-chain content storage (applies to all
304
+ * posts, burned), in bond-denom micro-units.
292
305
  */
293
- cost_per_byte?: CoinAmino;
306
+ cost_per_byte_amount?: string;
294
307
  /**
295
308
  * cost_per_byte_exempt when true, disables cost_per_byte fee collection
296
309
  */
@@ -338,6 +351,14 @@ export interface ParamsAmino {
338
351
  * governance can unhide. Analogous to edit_max_window for authors.
339
352
  */
340
353
  sentinel_unhide_window?: string;
354
+ /**
355
+ * sentinel_unbond_cooldown is the number of seconds a sentinel's bond stays
356
+ * locked and slashable after MsgUnbondRole. During the cooldown, the
357
+ * BondedRole status is UNBONDING and forum action gates refuse authority.
358
+ * Propagated to x/rep BondedRoleConfig via SyncSentinelBondedRoleConfig.
359
+ * Zero = immediate withdrawal (legacy behavior).
360
+ */
361
+ sentinel_unbond_cooldown?: string;
341
362
  }
342
363
  export interface ParamsAminoMsg {
343
364
  type: "sparkdream/x/forum/Params";
@@ -360,17 +381,17 @@ export interface ForumOperationalParams {
360
381
  reactionsEnabled: boolean;
361
382
  editingEnabled: boolean;
362
383
  /**
363
- * Fees
364
- */
365
- spamTax: Coin;
366
- reactionSpamTax: Coin;
367
- flagSpamTax: Coin;
368
- downvoteDeposit: Coin;
369
- appealFee: Coin;
370
- lockAppealFee: Coin;
371
- moveAppealFee: Coin;
372
- editFee: Coin;
373
- costPerByte: Coin;
384
+ * Fees, all in bond-denom micro-units.
385
+ */
386
+ spamTaxAmount: string;
387
+ reactionSpamTaxAmount: string;
388
+ flagSpamTaxAmount: string;
389
+ downvoteDepositAmount: string;
390
+ appealFeeAmount: string;
391
+ lockAppealFeeAmount: string;
392
+ moveAppealFeeAmount: string;
393
+ editFeeAmount: string;
394
+ costPerByteAmount: string;
374
395
  costPerByteExempt: boolean;
375
396
  /**
376
397
  * Limits
@@ -439,6 +460,13 @@ export interface ForumOperationalParams {
439
460
  * governance can unhide.
440
461
  */
441
462
  sentinelUnhideWindow: bigint;
463
+ /**
464
+ * sentinel_unbond_cooldown is the number of seconds a sentinel's bond stays
465
+ * locked and slashable after MsgUnbondRole. During the cooldown the
466
+ * BondedRole is in UNBONDING status and forum action gates refuse
467
+ * authority. Zero = immediate withdrawal.
468
+ */
469
+ sentinelUnbondCooldown: bigint;
442
470
  }
443
471
  export interface ForumOperationalParamsProtoMsg {
444
472
  typeUrl: "/sparkdream.forum.v1.ForumOperationalParams";
@@ -461,17 +489,17 @@ export interface ForumOperationalParamsAmino {
461
489
  reactions_enabled?: boolean;
462
490
  editing_enabled?: boolean;
463
491
  /**
464
- * Fees
465
- */
466
- spam_tax?: CoinAmino;
467
- reaction_spam_tax?: CoinAmino;
468
- flag_spam_tax?: CoinAmino;
469
- downvote_deposit?: CoinAmino;
470
- appeal_fee?: CoinAmino;
471
- lock_appeal_fee?: CoinAmino;
472
- move_appeal_fee?: CoinAmino;
473
- edit_fee?: CoinAmino;
474
- cost_per_byte?: CoinAmino;
492
+ * Fees, all in bond-denom micro-units.
493
+ */
494
+ spam_tax_amount?: string;
495
+ reaction_spam_tax_amount?: string;
496
+ flag_spam_tax_amount?: string;
497
+ downvote_deposit_amount?: string;
498
+ appeal_fee_amount?: string;
499
+ lock_appeal_fee_amount?: string;
500
+ move_appeal_fee_amount?: string;
501
+ edit_fee_amount?: string;
502
+ cost_per_byte_amount?: string;
475
503
  cost_per_byte_exempt?: boolean;
476
504
  /**
477
505
  * Limits
@@ -540,13 +568,22 @@ export interface ForumOperationalParamsAmino {
540
568
  * governance can unhide.
541
569
  */
542
570
  sentinel_unhide_window?: string;
571
+ /**
572
+ * sentinel_unbond_cooldown is the number of seconds a sentinel's bond stays
573
+ * locked and slashable after MsgUnbondRole. During the cooldown the
574
+ * BondedRole is in UNBONDING status and forum action gates refuse
575
+ * authority. Zero = immediate withdrawal.
576
+ */
577
+ sentinel_unbond_cooldown?: string;
543
578
  }
544
579
  export interface ForumOperationalParamsAminoMsg {
545
580
  type: "sparkdream/x/forum/ForumOperationalParams";
546
581
  value: ForumOperationalParamsAmino;
547
582
  }
548
583
  /**
549
- * Params defines the parameters for the module.
584
+ * Params defines the parameters for the module. Fee/cost fields are stored
585
+ * as bare amounts in the chain's bond denom (resolved at runtime from
586
+ * x/identity); the keeper wraps them into sdk.Coin at the point of use.
550
587
  * @name Params
551
588
  * @package sparkdream.forum.v1
552
589
  * @see proto type: sparkdream.forum.v1.Params