@sparkdreamnft/sparkdreamjs 0.0.17 → 0.0.19

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 (275) 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 +113 -52
  6. package/esm/sparkdream/blog/v1/tx.js +583 -2
  7. package/esm/sparkdream/blog/v1/tx.registry.js +74 -2
  8. package/esm/sparkdream/blog/v1/tx.rpc.msg.js +33 -3
  9. package/esm/sparkdream/bundle.js +448 -346
  10. package/esm/sparkdream/client.js +7 -1
  11. package/esm/sparkdream/collect/v1/params.js +121 -1
  12. package/esm/sparkdream/collect/v1/tx.js +293 -1
  13. package/esm/sparkdream/collect/v1/tx.registry.js +38 -2
  14. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +17 -2
  15. package/esm/sparkdream/collect/v1/types.js +147 -3
  16. package/esm/sparkdream/commons/v1/genesis.js +29 -1
  17. package/esm/sparkdream/commons/v1/query.js +317 -0
  18. package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
  19. package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
  20. package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
  21. package/esm/sparkdream/commons/v1/tx.js +693 -0
  22. package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
  23. package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
  24. package/esm/sparkdream/federation/v1/genesis.js +10 -10
  25. package/esm/sparkdream/federation/v1/params.js +29 -54
  26. package/esm/sparkdream/federation/v1/query.js +216 -71
  27. package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
  28. package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  29. package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
  30. package/esm/sparkdream/federation/v1/tx.js +1146 -1105
  31. package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
  32. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
  33. package/esm/sparkdream/federation/v1/types.js +355 -99
  34. package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
  35. package/esm/sparkdream/forum/v1/params.js +389 -148
  36. package/esm/sparkdream/forum/v1/post.js +25 -1
  37. package/esm/sparkdream/forum/v1/tx.js +460 -0
  38. package/esm/sparkdream/forum/v1/tx.registry.js +56 -2
  39. package/esm/sparkdream/forum/v1/tx.rpc.msg.js +30 -1
  40. package/esm/sparkdream/forum/v1/types.js +355 -0
  41. package/esm/sparkdream/forum/v1/user_rate_limit.js +41 -2
  42. package/esm/sparkdream/guardian/module/v1/module.js +68 -0
  43. package/esm/sparkdream/guardian/v1/query.js +128 -0
  44. package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
  45. package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
  46. package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
  47. package/esm/sparkdream/guardian/v1/tx.js +175 -0
  48. package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
  49. package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
  50. package/esm/sparkdream/identity/module/v1/module.js +71 -0
  51. package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
  52. package/esm/sparkdream/identity/v1/genesis.js +84 -0
  53. package/esm/sparkdream/identity/v1/query.js +372 -0
  54. package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
  55. package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
  56. package/esm/sparkdream/lcd.js +15 -0
  57. package/esm/sparkdream/name/v1/params.js +19 -18
  58. package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
  59. package/esm/sparkdream/rep/v1/member.js +209 -1
  60. package/esm/sparkdream/rep/v1/tag.js +6 -13
  61. package/esm/sparkdream/rpc.query.js +9 -0
  62. package/esm/sparkdream/rpc.tx.js +6 -0
  63. package/esm/sparkdream/service/module/v1/module.js +71 -0
  64. package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
  65. package/esm/sparkdream/service/v1/genesis.js +240 -0
  66. package/esm/sparkdream/service/v1/operator.js +250 -0
  67. package/esm/sparkdream/service/v1/params.js +355 -0
  68. package/esm/sparkdream/service/v1/query.js +1582 -0
  69. package/esm/sparkdream/service/v1/query.lcd.js +107 -0
  70. package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
  71. package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
  72. package/esm/sparkdream/service/v1/report.js +212 -0
  73. package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
  74. package/esm/sparkdream/service/v1/service_type_config.js +264 -0
  75. package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
  76. package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
  77. package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
  78. package/esm/sparkdream/service/v1/tx.amino.js +69 -0
  79. package/esm/sparkdream/service/v1/tx.js +2124 -0
  80. package/esm/sparkdream/service/v1/tx.registry.js +249 -0
  81. package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
  82. package/esm/sparkdream/service/v1/types.js +353 -0
  83. package/esm/sparkdream/session/v1/genesis.js +136 -10
  84. package/esm/sparkdream/session/v1/grant.js +1020 -0
  85. package/esm/sparkdream/session/v1/params.js +543 -19
  86. package/esm/sparkdream/session/v1/query.js +487 -0
  87. package/esm/sparkdream/session/v1/query.lcd.js +41 -3
  88. package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
  89. package/esm/sparkdream/session/v1/session.js +6 -0
  90. package/esm/sparkdream/session/v1/tx.js +1066 -0
  91. package/esm/sparkdream/session/v1/tx.registry.js +110 -2
  92. package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
  93. package/esm/tendermint/bundle.js +20 -20
  94. package/ibc/bundle.d.ts +90 -90
  95. package/ibc/bundle.js +106 -106
  96. package/package.json +1 -1
  97. package/sparkdream/blog/v1/params.d.ts +89 -28
  98. package/sparkdream/blog/v1/params.js +113 -52
  99. package/sparkdream/blog/v1/post.d.ts +2 -2
  100. package/sparkdream/blog/v1/tx.d.ts +385 -10
  101. package/sparkdream/blog/v1/tx.js +584 -3
  102. package/sparkdream/blog/v1/tx.registry.d.ts +49 -1
  103. package/sparkdream/blog/v1/tx.registry.js +73 -1
  104. package/sparkdream/blog/v1/tx.rpc.msg.d.ts +27 -3
  105. package/sparkdream/blog/v1/tx.rpc.msg.js +32 -2
  106. package/sparkdream/bundle.d.ts +15308 -12896
  107. package/sparkdream/bundle.js +448 -346
  108. package/sparkdream/client.d.ts +90 -20
  109. package/sparkdream/client.js +7 -1
  110. package/sparkdream/collect/v1/params.d.ts +140 -0
  111. package/sparkdream/collect/v1/params.js +121 -1
  112. package/sparkdream/collect/v1/tx.d.ts +195 -3
  113. package/sparkdream/collect/v1/tx.js +294 -2
  114. package/sparkdream/collect/v1/tx.registry.d.ts +25 -1
  115. package/sparkdream/collect/v1/tx.registry.js +37 -1
  116. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +15 -2
  117. package/sparkdream/collect/v1/tx.rpc.msg.js +16 -1
  118. package/sparkdream/collect/v1/types.d.ts +114 -0
  119. package/sparkdream/collect/v1/types.js +147 -3
  120. package/sparkdream/commons/v1/genesis.d.ts +17 -0
  121. package/sparkdream/commons/v1/genesis.js +29 -1
  122. package/sparkdream/commons/v1/query.d.ts +186 -0
  123. package/sparkdream/commons/v1/query.js +318 -1
  124. package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
  125. package/sparkdream/commons/v1/query.lcd.js +23 -0
  126. package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
  127. package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
  128. package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
  129. package/sparkdream/commons/v1/recurring_spend.js +301 -0
  130. package/sparkdream/commons/v1/tx.d.ts +472 -0
  131. package/sparkdream/commons/v1/tx.js +694 -1
  132. package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
  133. package/sparkdream/commons/v1/tx.registry.js +73 -1
  134. package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
  135. package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
  136. package/sparkdream/federation/v1/genesis.d.ts +3 -3
  137. package/sparkdream/federation/v1/genesis.js +9 -9
  138. package/sparkdream/federation/v1/params.d.ts +64 -13
  139. package/sparkdream/federation/v1/params.js +29 -54
  140. package/sparkdream/federation/v1/query.d.ts +209 -100
  141. package/sparkdream/federation/v1/query.js +216 -71
  142. package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
  143. package/sparkdream/federation/v1/query.lcd.js +11 -6
  144. package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
  145. package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  146. package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
  147. package/sparkdream/federation/v1/tx.amino.js +20 -20
  148. package/sparkdream/federation/v1/tx.d.ts +479 -352
  149. package/sparkdream/federation/v1/tx.js +1147 -1106
  150. package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
  151. package/sparkdream/federation/v1/tx.registry.js +73 -73
  152. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
  153. package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
  154. package/sparkdream/federation/v1/types.d.ts +307 -41
  155. package/sparkdream/federation/v1/types.js +360 -100
  156. package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
  157. package/sparkdream/federation/v1/verifier_activity.js +13 -1
  158. package/sparkdream/forum/v1/params.d.ts +309 -62
  159. package/sparkdream/forum/v1/params.js +389 -148
  160. package/sparkdream/forum/v1/post.d.ts +28 -0
  161. package/sparkdream/forum/v1/post.js +25 -1
  162. package/sparkdream/forum/v1/tx.d.ts +291 -0
  163. package/sparkdream/forum/v1/tx.js +462 -2
  164. package/sparkdream/forum/v1/tx.registry.d.ts +37 -1
  165. package/sparkdream/forum/v1/tx.registry.js +55 -1
  166. package/sparkdream/forum/v1/tx.rpc.msg.d.ts +27 -1
  167. package/sparkdream/forum/v1/tx.rpc.msg.js +29 -0
  168. package/sparkdream/forum/v1/types.d.ts +247 -0
  169. package/sparkdream/forum/v1/types.js +356 -1
  170. package/sparkdream/forum/v1/user_rate_limit.d.ts +24 -3
  171. package/sparkdream/forum/v1/user_rate_limit.js +41 -2
  172. package/sparkdream/guardian/module/v1/module.d.ts +74 -0
  173. package/sparkdream/guardian/module/v1/module.js +71 -0
  174. package/sparkdream/guardian/v1/query.d.ts +88 -0
  175. package/sparkdream/guardian/v1/query.js +131 -0
  176. package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
  177. package/sparkdream/guardian/v1/query.lcd.js +17 -0
  178. package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
  179. package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
  180. package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
  181. package/sparkdream/guardian/v1/tx.amino.js +12 -0
  182. package/sparkdream/guardian/v1/tx.d.ts +138 -0
  183. package/sparkdream/guardian/v1/tx.js +181 -0
  184. package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
  185. package/sparkdream/guardian/v1/tx.registry.js +37 -0
  186. package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
  187. package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
  188. package/sparkdream/identity/module/v1/module.d.ts +54 -0
  189. package/sparkdream/identity/module/v1/module.js +74 -0
  190. package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
  191. package/sparkdream/identity/v1/chain_identity.js +202 -0
  192. package/sparkdream/identity/v1/genesis.d.ts +65 -0
  193. package/sparkdream/identity/v1/genesis.js +87 -0
  194. package/sparkdream/identity/v1/query.d.ts +243 -0
  195. package/sparkdream/identity/v1/query.js +375 -0
  196. package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
  197. package/sparkdream/identity/v1/query.lcd.js +25 -0
  198. package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
  199. package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
  200. package/sparkdream/lcd.d.ts +9 -0
  201. package/sparkdream/lcd.js +15 -0
  202. package/sparkdream/name/v1/params.d.ts +25 -8
  203. package/sparkdream/name/v1/params.js +19 -18
  204. package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
  205. package/sparkdream/rep/v1/bonded_role.js +48 -2
  206. package/sparkdream/rep/v1/member.d.ts +134 -0
  207. package/sparkdream/rep/v1/member.js +210 -2
  208. package/sparkdream/rep/v1/tag.d.ts +15 -2
  209. package/sparkdream/rep/v1/tag.js +6 -13
  210. package/sparkdream/rpc.query.d.ts +34 -2
  211. package/sparkdream/rpc.query.js +9 -0
  212. package/sparkdream/rpc.tx.d.ts +6 -0
  213. package/sparkdream/rpc.tx.js +6 -0
  214. package/sparkdream/service/module/v1/module.d.ts +54 -0
  215. package/sparkdream/service/module/v1/module.js +74 -0
  216. package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
  217. package/sparkdream/service/v1/controller_transfer_case.js +158 -0
  218. package/sparkdream/service/v1/genesis.d.ts +172 -0
  219. package/sparkdream/service/v1/genesis.js +243 -0
  220. package/sparkdream/service/v1/operator.d.ts +215 -0
  221. package/sparkdream/service/v1/operator.js +253 -0
  222. package/sparkdream/service/v1/params.d.ts +346 -0
  223. package/sparkdream/service/v1/params.js +358 -0
  224. package/sparkdream/service/v1/query.d.ts +964 -0
  225. package/sparkdream/service/v1/query.js +1585 -0
  226. package/sparkdream/service/v1/query.lcd.d.ts +18 -0
  227. package/sparkdream/service/v1/query.lcd.js +111 -0
  228. package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
  229. package/sparkdream/service/v1/query.rpc.Query.js +114 -0
  230. package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
  231. package/sparkdream/service/v1/refile_cooldown.js +124 -0
  232. package/sparkdream/service/v1/report.d.ts +174 -0
  233. package/sparkdream/service/v1/report.js +215 -0
  234. package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
  235. package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
  236. package/sparkdream/service/v1/service_type_config.d.ts +222 -0
  237. package/sparkdream/service/v1/service_type_config.js +269 -0
  238. package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
  239. package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
  240. package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
  241. package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
  242. package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
  243. package/sparkdream/service/v1/tier1_last_slash.js +124 -0
  244. package/sparkdream/service/v1/tx.amino.d.ts +68 -0
  245. package/sparkdream/service/v1/tx.amino.js +72 -0
  246. package/sparkdream/service/v1/tx.d.ts +1264 -0
  247. package/sparkdream/service/v1/tx.js +2127 -0
  248. package/sparkdream/service/v1/tx.registry.d.ts +169 -0
  249. package/sparkdream/service/v1/tx.registry.js +253 -0
  250. package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
  251. package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
  252. package/sparkdream/service/v1/types.d.ts +94 -0
  253. package/sparkdream/service/v1/types.js +370 -0
  254. package/sparkdream/session/v1/genesis.d.ts +93 -9
  255. package/sparkdream/session/v1/genesis.js +137 -11
  256. package/sparkdream/session/v1/grant.d.ts +517 -0
  257. package/sparkdream/session/v1/grant.js +1027 -0
  258. package/sparkdream/session/v1/params.d.ts +338 -7
  259. package/sparkdream/session/v1/params.js +543 -19
  260. package/sparkdream/session/v1/query.d.ts +265 -0
  261. package/sparkdream/session/v1/query.js +488 -1
  262. package/sparkdream/session/v1/query.lcd.d.ts +4 -1
  263. package/sparkdream/session/v1/query.lcd.js +41 -3
  264. package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
  265. package/sparkdream/session/v1/query.rpc.Query.js +35 -3
  266. package/sparkdream/session/v1/session.d.ts +18 -0
  267. package/sparkdream/session/v1/session.js +6 -0
  268. package/sparkdream/session/v1/tx.d.ts +660 -0
  269. package/sparkdream/session/v1/tx.js +1067 -1
  270. package/sparkdream/session/v1/tx.registry.d.ts +73 -1
  271. package/sparkdream/session/v1/tx.registry.js +109 -1
  272. package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
  273. package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
  274. package/tendermint/bundle.d.ts +844 -844
  275. package/tendermint/bundle.js +20 -20
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ForumOperationalParams = exports.Params = void 0;
4
4
  //@ts-nocheck
5
- const coin_1 = require("../../../cosmos/base/v1beta1/coin");
6
5
  const binary_1 = require("../../../binary");
7
6
  const math_1 = require("@interchainjs/math");
8
7
  function createBaseParams() {
@@ -13,14 +12,14 @@ function createBaseParams() {
13
12
  reactionsEnabled: false,
14
13
  appealsPaused: false,
15
14
  editingEnabled: false,
16
- spamTax: coin_1.Coin.fromPartial({}),
17
- reactionSpamTax: coin_1.Coin.fromPartial({}),
18
- flagSpamTax: coin_1.Coin.fromPartial({}),
19
- downvoteDeposit: coin_1.Coin.fromPartial({}),
20
- appealFee: coin_1.Coin.fromPartial({}),
21
- lockAppealFee: coin_1.Coin.fromPartial({}),
22
- moveAppealFee: coin_1.Coin.fromPartial({}),
23
- editFee: coin_1.Coin.fromPartial({}),
15
+ spamTaxAmount: "",
16
+ reactionSpamTaxAmount: "",
17
+ flagSpamTaxAmount: "",
18
+ downvoteDepositAmount: "",
19
+ appealFeeAmount: "",
20
+ lockAppealFeeAmount: "",
21
+ moveAppealFeeAmount: "",
22
+ editFeeAmount: "",
24
23
  bountyCancellationFeePercent: BigInt(0),
25
24
  maxContentSize: BigInt(0),
26
25
  dailyPostLimit: BigInt(0),
@@ -34,7 +33,7 @@ function createBaseParams() {
34
33
  hideAppealCooldown: BigInt(0),
35
34
  lockAppealCooldown: BigInt(0),
36
35
  moveAppealCooldown: BigInt(0),
37
- costPerByte: coin_1.Coin.fromPartial({}),
36
+ costPerByteAmount: "",
38
37
  costPerByteExempt: false,
39
38
  ephemeralTtl: BigInt(0),
40
39
  convictionRenewalThreshold: "",
@@ -45,11 +44,23 @@ function createBaseParams() {
45
44
  minSentinelAgeBlocks: BigInt(0),
46
45
  sentinelDemotionCooldown: BigInt(0),
47
46
  sentinelDemotionThreshold: "",
48
- sentinelUnhideWindow: BigInt(0)
47
+ sentinelUnhideWindow: BigInt(0),
48
+ sentinelUnbondCooldown: BigInt(0),
49
+ makePermanentMinTrustLevel: 0,
50
+ maxPromotionsPerBlock: 0,
51
+ authorRepSlash: "",
52
+ maxMakePermanentPerDay: BigInt(0),
53
+ minPostConvictionStake: "",
54
+ postConvictionLockSeconds: BigInt(0),
55
+ postConvictionStreamRatePerBlock: "",
56
+ maxForumRepPerTagPerEpoch: "",
57
+ postConvictionStakerSlashBps: BigInt(0)
49
58
  };
50
59
  }
51
60
  /**
52
- * Params defines the parameters for the module.
61
+ * Params defines the parameters for the module. Fee/cost fields are stored
62
+ * as bare amounts in the chain's bond denom (resolved at runtime from
63
+ * x/identity); the keeper wraps them into sdk.Coin at the point of use.
53
64
  * @name Params
54
65
  * @package sparkdream.forum.v1
55
66
  * @see proto type: sparkdream.forum.v1.Params
@@ -76,29 +87,29 @@ exports.Params = {
76
87
  if (message.editingEnabled === true) {
77
88
  writer.uint32(48).bool(message.editingEnabled);
78
89
  }
79
- if (message.spamTax !== undefined) {
80
- coin_1.Coin.encode(message.spamTax, writer.uint32(58).fork()).ldelim();
90
+ if (message.spamTaxAmount !== "") {
91
+ writer.uint32(58).string(message.spamTaxAmount);
81
92
  }
82
- if (message.reactionSpamTax !== undefined) {
83
- coin_1.Coin.encode(message.reactionSpamTax, writer.uint32(66).fork()).ldelim();
93
+ if (message.reactionSpamTaxAmount !== "") {
94
+ writer.uint32(66).string(message.reactionSpamTaxAmount);
84
95
  }
85
- if (message.flagSpamTax !== undefined) {
86
- coin_1.Coin.encode(message.flagSpamTax, writer.uint32(74).fork()).ldelim();
96
+ if (message.flagSpamTaxAmount !== "") {
97
+ writer.uint32(74).string(message.flagSpamTaxAmount);
87
98
  }
88
- if (message.downvoteDeposit !== undefined) {
89
- coin_1.Coin.encode(message.downvoteDeposit, writer.uint32(82).fork()).ldelim();
99
+ if (message.downvoteDepositAmount !== "") {
100
+ writer.uint32(82).string(message.downvoteDepositAmount);
90
101
  }
91
- if (message.appealFee !== undefined) {
92
- coin_1.Coin.encode(message.appealFee, writer.uint32(90).fork()).ldelim();
102
+ if (message.appealFeeAmount !== "") {
103
+ writer.uint32(90).string(message.appealFeeAmount);
93
104
  }
94
- if (message.lockAppealFee !== undefined) {
95
- coin_1.Coin.encode(message.lockAppealFee, writer.uint32(98).fork()).ldelim();
105
+ if (message.lockAppealFeeAmount !== "") {
106
+ writer.uint32(98).string(message.lockAppealFeeAmount);
96
107
  }
97
- if (message.moveAppealFee !== undefined) {
98
- coin_1.Coin.encode(message.moveAppealFee, writer.uint32(106).fork()).ldelim();
108
+ if (message.moveAppealFeeAmount !== "") {
109
+ writer.uint32(106).string(message.moveAppealFeeAmount);
99
110
  }
100
- if (message.editFee !== undefined) {
101
- coin_1.Coin.encode(message.editFee, writer.uint32(114).fork()).ldelim();
111
+ if (message.editFeeAmount !== "") {
112
+ writer.uint32(114).string(message.editFeeAmount);
102
113
  }
103
114
  if (message.bountyCancellationFeePercent !== BigInt(0)) {
104
115
  writer.uint32(120).uint64(message.bountyCancellationFeePercent);
@@ -139,8 +150,8 @@ exports.Params = {
139
150
  if (message.moveAppealCooldown !== BigInt(0)) {
140
151
  writer.uint32(216).int64(message.moveAppealCooldown);
141
152
  }
142
- if (message.costPerByte !== undefined) {
143
- coin_1.Coin.encode(message.costPerByte, writer.uint32(226).fork()).ldelim();
153
+ if (message.costPerByteAmount !== "") {
154
+ writer.uint32(226).string(message.costPerByteAmount);
144
155
  }
145
156
  if (message.costPerByteExempt === true) {
146
157
  writer.uint32(232).bool(message.costPerByteExempt);
@@ -175,6 +186,36 @@ exports.Params = {
175
186
  if (message.sentinelUnhideWindow !== BigInt(0)) {
176
187
  writer.uint32(368).int64(message.sentinelUnhideWindow);
177
188
  }
189
+ if (message.sentinelUnbondCooldown !== BigInt(0)) {
190
+ writer.uint32(376).int64(message.sentinelUnbondCooldown);
191
+ }
192
+ if (message.makePermanentMinTrustLevel !== 0) {
193
+ writer.uint32(384).uint32(message.makePermanentMinTrustLevel);
194
+ }
195
+ if (message.maxPromotionsPerBlock !== 0) {
196
+ writer.uint32(392).uint32(message.maxPromotionsPerBlock);
197
+ }
198
+ if (message.authorRepSlash !== "") {
199
+ writer.uint32(402).string(math_1.Decimal.fromUserInput(message.authorRepSlash, 18).atomics);
200
+ }
201
+ if (message.maxMakePermanentPerDay !== BigInt(0)) {
202
+ writer.uint32(408).uint64(message.maxMakePermanentPerDay);
203
+ }
204
+ if (message.minPostConvictionStake !== "") {
205
+ writer.uint32(482).string(message.minPostConvictionStake);
206
+ }
207
+ if (message.postConvictionLockSeconds !== BigInt(0)) {
208
+ writer.uint32(488).int64(message.postConvictionLockSeconds);
209
+ }
210
+ if (message.postConvictionStreamRatePerBlock !== "") {
211
+ writer.uint32(498).string(math_1.Decimal.fromUserInput(message.postConvictionStreamRatePerBlock, 18).atomics);
212
+ }
213
+ if (message.maxForumRepPerTagPerEpoch !== "") {
214
+ writer.uint32(506).string(math_1.Decimal.fromUserInput(message.maxForumRepPerTagPerEpoch, 18).atomics);
215
+ }
216
+ if (message.postConvictionStakerSlashBps !== BigInt(0)) {
217
+ writer.uint32(512).uint64(message.postConvictionStakerSlashBps);
218
+ }
178
219
  return writer;
179
220
  },
180
221
  decode(input, length) {
@@ -203,28 +244,28 @@ exports.Params = {
203
244
  message.editingEnabled = reader.bool();
204
245
  break;
205
246
  case 7:
206
- message.spamTax = coin_1.Coin.decode(reader, reader.uint32());
247
+ message.spamTaxAmount = reader.string();
207
248
  break;
208
249
  case 8:
209
- message.reactionSpamTax = coin_1.Coin.decode(reader, reader.uint32());
250
+ message.reactionSpamTaxAmount = reader.string();
210
251
  break;
211
252
  case 9:
212
- message.flagSpamTax = coin_1.Coin.decode(reader, reader.uint32());
253
+ message.flagSpamTaxAmount = reader.string();
213
254
  break;
214
255
  case 10:
215
- message.downvoteDeposit = coin_1.Coin.decode(reader, reader.uint32());
256
+ message.downvoteDepositAmount = reader.string();
216
257
  break;
217
258
  case 11:
218
- message.appealFee = coin_1.Coin.decode(reader, reader.uint32());
259
+ message.appealFeeAmount = reader.string();
219
260
  break;
220
261
  case 12:
221
- message.lockAppealFee = coin_1.Coin.decode(reader, reader.uint32());
262
+ message.lockAppealFeeAmount = reader.string();
222
263
  break;
223
264
  case 13:
224
- message.moveAppealFee = coin_1.Coin.decode(reader, reader.uint32());
265
+ message.moveAppealFeeAmount = reader.string();
225
266
  break;
226
267
  case 14:
227
- message.editFee = coin_1.Coin.decode(reader, reader.uint32());
268
+ message.editFeeAmount = reader.string();
228
269
  break;
229
270
  case 15:
230
271
  message.bountyCancellationFeePercent = reader.uint64();
@@ -266,7 +307,7 @@ exports.Params = {
266
307
  message.moveAppealCooldown = reader.int64();
267
308
  break;
268
309
  case 28:
269
- message.costPerByte = coin_1.Coin.decode(reader, reader.uint32());
310
+ message.costPerByteAmount = reader.string();
270
311
  break;
271
312
  case 29:
272
313
  message.costPerByteExempt = reader.bool();
@@ -301,6 +342,36 @@ exports.Params = {
301
342
  case 46:
302
343
  message.sentinelUnhideWindow = reader.int64();
303
344
  break;
345
+ case 47:
346
+ message.sentinelUnbondCooldown = reader.int64();
347
+ break;
348
+ case 48:
349
+ message.makePermanentMinTrustLevel = reader.uint32();
350
+ break;
351
+ case 49:
352
+ message.maxPromotionsPerBlock = reader.uint32();
353
+ break;
354
+ case 50:
355
+ message.authorRepSlash = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
356
+ break;
357
+ case 51:
358
+ message.maxMakePermanentPerDay = reader.uint64();
359
+ break;
360
+ case 60:
361
+ message.minPostConvictionStake = reader.string();
362
+ break;
363
+ case 61:
364
+ message.postConvictionLockSeconds = reader.int64();
365
+ break;
366
+ case 62:
367
+ message.postConvictionStreamRatePerBlock = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
368
+ break;
369
+ case 63:
370
+ message.maxForumRepPerTagPerEpoch = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
371
+ break;
372
+ case 64:
373
+ message.postConvictionStakerSlashBps = reader.uint64();
374
+ break;
304
375
  default:
305
376
  reader.skipType(tag & 7);
306
377
  break;
@@ -316,14 +387,14 @@ exports.Params = {
316
387
  message.reactionsEnabled = object.reactionsEnabled ?? false;
317
388
  message.appealsPaused = object.appealsPaused ?? false;
318
389
  message.editingEnabled = object.editingEnabled ?? false;
319
- message.spamTax = object.spamTax !== undefined && object.spamTax !== null ? coin_1.Coin.fromPartial(object.spamTax) : undefined;
320
- message.reactionSpamTax = object.reactionSpamTax !== undefined && object.reactionSpamTax !== null ? coin_1.Coin.fromPartial(object.reactionSpamTax) : undefined;
321
- message.flagSpamTax = object.flagSpamTax !== undefined && object.flagSpamTax !== null ? coin_1.Coin.fromPartial(object.flagSpamTax) : undefined;
322
- message.downvoteDeposit = object.downvoteDeposit !== undefined && object.downvoteDeposit !== null ? coin_1.Coin.fromPartial(object.downvoteDeposit) : undefined;
323
- message.appealFee = object.appealFee !== undefined && object.appealFee !== null ? coin_1.Coin.fromPartial(object.appealFee) : undefined;
324
- message.lockAppealFee = object.lockAppealFee !== undefined && object.lockAppealFee !== null ? coin_1.Coin.fromPartial(object.lockAppealFee) : undefined;
325
- message.moveAppealFee = object.moveAppealFee !== undefined && object.moveAppealFee !== null ? coin_1.Coin.fromPartial(object.moveAppealFee) : undefined;
326
- message.editFee = object.editFee !== undefined && object.editFee !== null ? coin_1.Coin.fromPartial(object.editFee) : undefined;
390
+ message.spamTaxAmount = object.spamTaxAmount ?? "";
391
+ message.reactionSpamTaxAmount = object.reactionSpamTaxAmount ?? "";
392
+ message.flagSpamTaxAmount = object.flagSpamTaxAmount ?? "";
393
+ message.downvoteDepositAmount = object.downvoteDepositAmount ?? "";
394
+ message.appealFeeAmount = object.appealFeeAmount ?? "";
395
+ message.lockAppealFeeAmount = object.lockAppealFeeAmount ?? "";
396
+ message.moveAppealFeeAmount = object.moveAppealFeeAmount ?? "";
397
+ message.editFeeAmount = object.editFeeAmount ?? "";
327
398
  message.bountyCancellationFeePercent = object.bountyCancellationFeePercent !== undefined && object.bountyCancellationFeePercent !== null ? BigInt(object.bountyCancellationFeePercent.toString()) : BigInt(0);
328
399
  message.maxContentSize = object.maxContentSize !== undefined && object.maxContentSize !== null ? BigInt(object.maxContentSize.toString()) : BigInt(0);
329
400
  message.dailyPostLimit = object.dailyPostLimit !== undefined && object.dailyPostLimit !== null ? BigInt(object.dailyPostLimit.toString()) : BigInt(0);
@@ -337,7 +408,7 @@ exports.Params = {
337
408
  message.hideAppealCooldown = object.hideAppealCooldown !== undefined && object.hideAppealCooldown !== null ? BigInt(object.hideAppealCooldown.toString()) : BigInt(0);
338
409
  message.lockAppealCooldown = object.lockAppealCooldown !== undefined && object.lockAppealCooldown !== null ? BigInt(object.lockAppealCooldown.toString()) : BigInt(0);
339
410
  message.moveAppealCooldown = object.moveAppealCooldown !== undefined && object.moveAppealCooldown !== null ? BigInt(object.moveAppealCooldown.toString()) : BigInt(0);
340
- message.costPerByte = object.costPerByte !== undefined && object.costPerByte !== null ? coin_1.Coin.fromPartial(object.costPerByte) : undefined;
411
+ message.costPerByteAmount = object.costPerByteAmount ?? "";
341
412
  message.costPerByteExempt = object.costPerByteExempt ?? false;
342
413
  message.ephemeralTtl = object.ephemeralTtl !== undefined && object.ephemeralTtl !== null ? BigInt(object.ephemeralTtl.toString()) : BigInt(0);
343
414
  message.convictionRenewalThreshold = object.convictionRenewalThreshold ?? "";
@@ -349,6 +420,16 @@ exports.Params = {
349
420
  message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
350
421
  message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
351
422
  message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
423
+ message.sentinelUnbondCooldown = object.sentinelUnbondCooldown !== undefined && object.sentinelUnbondCooldown !== null ? BigInt(object.sentinelUnbondCooldown.toString()) : BigInt(0);
424
+ message.makePermanentMinTrustLevel = object.makePermanentMinTrustLevel ?? 0;
425
+ message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
426
+ message.authorRepSlash = object.authorRepSlash ?? "";
427
+ message.maxMakePermanentPerDay = object.maxMakePermanentPerDay !== undefined && object.maxMakePermanentPerDay !== null ? BigInt(object.maxMakePermanentPerDay.toString()) : BigInt(0);
428
+ message.minPostConvictionStake = object.minPostConvictionStake ?? "";
429
+ message.postConvictionLockSeconds = object.postConvictionLockSeconds !== undefined && object.postConvictionLockSeconds !== null ? BigInt(object.postConvictionLockSeconds.toString()) : BigInt(0);
430
+ message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
431
+ message.maxForumRepPerTagPerEpoch = object.maxForumRepPerTagPerEpoch ?? "";
432
+ message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
352
433
  return message;
353
434
  },
354
435
  fromAmino(object) {
@@ -371,29 +452,29 @@ exports.Params = {
371
452
  if (object.editing_enabled !== undefined && object.editing_enabled !== null) {
372
453
  message.editingEnabled = object.editing_enabled;
373
454
  }
374
- if (object.spam_tax !== undefined && object.spam_tax !== null) {
375
- message.spamTax = coin_1.Coin.fromAmino(object.spam_tax);
455
+ if (object.spam_tax_amount !== undefined && object.spam_tax_amount !== null) {
456
+ message.spamTaxAmount = object.spam_tax_amount;
376
457
  }
377
- if (object.reaction_spam_tax !== undefined && object.reaction_spam_tax !== null) {
378
- message.reactionSpamTax = coin_1.Coin.fromAmino(object.reaction_spam_tax);
458
+ if (object.reaction_spam_tax_amount !== undefined && object.reaction_spam_tax_amount !== null) {
459
+ message.reactionSpamTaxAmount = object.reaction_spam_tax_amount;
379
460
  }
380
- if (object.flag_spam_tax !== undefined && object.flag_spam_tax !== null) {
381
- message.flagSpamTax = coin_1.Coin.fromAmino(object.flag_spam_tax);
461
+ if (object.flag_spam_tax_amount !== undefined && object.flag_spam_tax_amount !== null) {
462
+ message.flagSpamTaxAmount = object.flag_spam_tax_amount;
382
463
  }
383
- if (object.downvote_deposit !== undefined && object.downvote_deposit !== null) {
384
- message.downvoteDeposit = coin_1.Coin.fromAmino(object.downvote_deposit);
464
+ if (object.downvote_deposit_amount !== undefined && object.downvote_deposit_amount !== null) {
465
+ message.downvoteDepositAmount = object.downvote_deposit_amount;
385
466
  }
386
- if (object.appeal_fee !== undefined && object.appeal_fee !== null) {
387
- message.appealFee = coin_1.Coin.fromAmino(object.appeal_fee);
467
+ if (object.appeal_fee_amount !== undefined && object.appeal_fee_amount !== null) {
468
+ message.appealFeeAmount = object.appeal_fee_amount;
388
469
  }
389
- if (object.lock_appeal_fee !== undefined && object.lock_appeal_fee !== null) {
390
- message.lockAppealFee = coin_1.Coin.fromAmino(object.lock_appeal_fee);
470
+ if (object.lock_appeal_fee_amount !== undefined && object.lock_appeal_fee_amount !== null) {
471
+ message.lockAppealFeeAmount = object.lock_appeal_fee_amount;
391
472
  }
392
- if (object.move_appeal_fee !== undefined && object.move_appeal_fee !== null) {
393
- message.moveAppealFee = coin_1.Coin.fromAmino(object.move_appeal_fee);
473
+ if (object.move_appeal_fee_amount !== undefined && object.move_appeal_fee_amount !== null) {
474
+ message.moveAppealFeeAmount = object.move_appeal_fee_amount;
394
475
  }
395
- if (object.edit_fee !== undefined && object.edit_fee !== null) {
396
- message.editFee = coin_1.Coin.fromAmino(object.edit_fee);
476
+ if (object.edit_fee_amount !== undefined && object.edit_fee_amount !== null) {
477
+ message.editFeeAmount = object.edit_fee_amount;
397
478
  }
398
479
  if (object.bounty_cancellation_fee_percent !== undefined && object.bounty_cancellation_fee_percent !== null) {
399
480
  message.bountyCancellationFeePercent = BigInt(object.bounty_cancellation_fee_percent);
@@ -434,8 +515,8 @@ exports.Params = {
434
515
  if (object.move_appeal_cooldown !== undefined && object.move_appeal_cooldown !== null) {
435
516
  message.moveAppealCooldown = BigInt(object.move_appeal_cooldown);
436
517
  }
437
- if (object.cost_per_byte !== undefined && object.cost_per_byte !== null) {
438
- message.costPerByte = coin_1.Coin.fromAmino(object.cost_per_byte);
518
+ if (object.cost_per_byte_amount !== undefined && object.cost_per_byte_amount !== null) {
519
+ message.costPerByteAmount = object.cost_per_byte_amount;
439
520
  }
440
521
  if (object.cost_per_byte_exempt !== undefined && object.cost_per_byte_exempt !== null) {
441
522
  message.costPerByteExempt = object.cost_per_byte_exempt;
@@ -470,6 +551,36 @@ exports.Params = {
470
551
  if (object.sentinel_unhide_window !== undefined && object.sentinel_unhide_window !== null) {
471
552
  message.sentinelUnhideWindow = BigInt(object.sentinel_unhide_window);
472
553
  }
554
+ if (object.sentinel_unbond_cooldown !== undefined && object.sentinel_unbond_cooldown !== null) {
555
+ message.sentinelUnbondCooldown = BigInt(object.sentinel_unbond_cooldown);
556
+ }
557
+ if (object.make_permanent_min_trust_level !== undefined && object.make_permanent_min_trust_level !== null) {
558
+ message.makePermanentMinTrustLevel = object.make_permanent_min_trust_level;
559
+ }
560
+ if (object.max_promotions_per_block !== undefined && object.max_promotions_per_block !== null) {
561
+ message.maxPromotionsPerBlock = object.max_promotions_per_block;
562
+ }
563
+ if (object.author_rep_slash !== undefined && object.author_rep_slash !== null) {
564
+ message.authorRepSlash = object.author_rep_slash;
565
+ }
566
+ if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
567
+ message.maxMakePermanentPerDay = BigInt(object.max_make_permanent_per_day);
568
+ }
569
+ if (object.min_post_conviction_stake !== undefined && object.min_post_conviction_stake !== null) {
570
+ message.minPostConvictionStake = object.min_post_conviction_stake;
571
+ }
572
+ if (object.post_conviction_lock_seconds !== undefined && object.post_conviction_lock_seconds !== null) {
573
+ message.postConvictionLockSeconds = BigInt(object.post_conviction_lock_seconds);
574
+ }
575
+ if (object.post_conviction_stream_rate_per_block !== undefined && object.post_conviction_stream_rate_per_block !== null) {
576
+ message.postConvictionStreamRatePerBlock = object.post_conviction_stream_rate_per_block;
577
+ }
578
+ if (object.max_forum_rep_per_tag_per_epoch !== undefined && object.max_forum_rep_per_tag_per_epoch !== null) {
579
+ message.maxForumRepPerTagPerEpoch = object.max_forum_rep_per_tag_per_epoch;
580
+ }
581
+ if (object.post_conviction_staker_slash_bps !== undefined && object.post_conviction_staker_slash_bps !== null) {
582
+ message.postConvictionStakerSlashBps = BigInt(object.post_conviction_staker_slash_bps);
583
+ }
473
584
  return message;
474
585
  },
475
586
  toAmino(message) {
@@ -480,14 +591,14 @@ exports.Params = {
480
591
  obj.reactions_enabled = message.reactionsEnabled === false ? undefined : message.reactionsEnabled;
481
592
  obj.appeals_paused = message.appealsPaused === false ? undefined : message.appealsPaused;
482
593
  obj.editing_enabled = message.editingEnabled === false ? undefined : message.editingEnabled;
483
- obj.spam_tax = message.spamTax ? coin_1.Coin.toAmino(message.spamTax) : undefined;
484
- obj.reaction_spam_tax = message.reactionSpamTax ? coin_1.Coin.toAmino(message.reactionSpamTax) : undefined;
485
- obj.flag_spam_tax = message.flagSpamTax ? coin_1.Coin.toAmino(message.flagSpamTax) : undefined;
486
- obj.downvote_deposit = message.downvoteDeposit ? coin_1.Coin.toAmino(message.downvoteDeposit) : undefined;
487
- obj.appeal_fee = message.appealFee ? coin_1.Coin.toAmino(message.appealFee) : undefined;
488
- obj.lock_appeal_fee = message.lockAppealFee ? coin_1.Coin.toAmino(message.lockAppealFee) : undefined;
489
- obj.move_appeal_fee = message.moveAppealFee ? coin_1.Coin.toAmino(message.moveAppealFee) : undefined;
490
- obj.edit_fee = message.editFee ? coin_1.Coin.toAmino(message.editFee) : undefined;
594
+ obj.spam_tax_amount = message.spamTaxAmount === "" ? undefined : message.spamTaxAmount;
595
+ obj.reaction_spam_tax_amount = message.reactionSpamTaxAmount === "" ? undefined : message.reactionSpamTaxAmount;
596
+ obj.flag_spam_tax_amount = message.flagSpamTaxAmount === "" ? undefined : message.flagSpamTaxAmount;
597
+ obj.downvote_deposit_amount = message.downvoteDepositAmount === "" ? undefined : message.downvoteDepositAmount;
598
+ obj.appeal_fee_amount = message.appealFeeAmount === "" ? undefined : message.appealFeeAmount;
599
+ obj.lock_appeal_fee_amount = message.lockAppealFeeAmount === "" ? undefined : message.lockAppealFeeAmount;
600
+ obj.move_appeal_fee_amount = message.moveAppealFeeAmount === "" ? undefined : message.moveAppealFeeAmount;
601
+ obj.edit_fee_amount = message.editFeeAmount === "" ? undefined : message.editFeeAmount;
491
602
  obj.bounty_cancellation_fee_percent = message.bountyCancellationFeePercent !== BigInt(0) ? message.bountyCancellationFeePercent?.toString() : undefined;
492
603
  obj.max_content_size = message.maxContentSize !== BigInt(0) ? message.maxContentSize?.toString() : undefined;
493
604
  obj.daily_post_limit = message.dailyPostLimit !== BigInt(0) ? message.dailyPostLimit?.toString() : undefined;
@@ -501,7 +612,7 @@ exports.Params = {
501
612
  obj.hide_appeal_cooldown = message.hideAppealCooldown !== BigInt(0) ? message.hideAppealCooldown?.toString() : undefined;
502
613
  obj.lock_appeal_cooldown = message.lockAppealCooldown !== BigInt(0) ? message.lockAppealCooldown?.toString() : undefined;
503
614
  obj.move_appeal_cooldown = message.moveAppealCooldown !== BigInt(0) ? message.moveAppealCooldown?.toString() : undefined;
504
- obj.cost_per_byte = message.costPerByte ? coin_1.Coin.toAmino(message.costPerByte) : undefined;
615
+ obj.cost_per_byte_amount = message.costPerByteAmount === "" ? undefined : message.costPerByteAmount;
505
616
  obj.cost_per_byte_exempt = message.costPerByteExempt === false ? undefined : message.costPerByteExempt;
506
617
  obj.ephemeral_ttl = message.ephemeralTtl !== BigInt(0) ? message.ephemeralTtl?.toString() : undefined;
507
618
  obj.conviction_renewal_threshold = message.convictionRenewalThreshold === "" ? undefined : message.convictionRenewalThreshold;
@@ -513,6 +624,16 @@ exports.Params = {
513
624
  obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
514
625
  obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
515
626
  obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
627
+ obj.sentinel_unbond_cooldown = message.sentinelUnbondCooldown !== BigInt(0) ? message.sentinelUnbondCooldown?.toString() : undefined;
628
+ obj.make_permanent_min_trust_level = message.makePermanentMinTrustLevel === 0 ? undefined : message.makePermanentMinTrustLevel;
629
+ obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
630
+ obj.author_rep_slash = message.authorRepSlash === "" ? undefined : message.authorRepSlash;
631
+ obj.max_make_permanent_per_day = message.maxMakePermanentPerDay !== BigInt(0) ? message.maxMakePermanentPerDay?.toString() : undefined;
632
+ obj.min_post_conviction_stake = message.minPostConvictionStake === "" ? undefined : message.minPostConvictionStake;
633
+ obj.post_conviction_lock_seconds = message.postConvictionLockSeconds !== BigInt(0) ? message.postConvictionLockSeconds?.toString() : undefined;
634
+ obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
635
+ obj.max_forum_rep_per_tag_per_epoch = message.maxForumRepPerTagPerEpoch === "" ? undefined : message.maxForumRepPerTagPerEpoch;
636
+ obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
516
637
  return obj;
517
638
  },
518
639
  fromAminoMsg(object) {
@@ -542,15 +663,15 @@ function createBaseForumOperationalParams() {
542
663
  bountiesEnabled: false,
543
664
  reactionsEnabled: false,
544
665
  editingEnabled: false,
545
- spamTax: coin_1.Coin.fromPartial({}),
546
- reactionSpamTax: coin_1.Coin.fromPartial({}),
547
- flagSpamTax: coin_1.Coin.fromPartial({}),
548
- downvoteDeposit: coin_1.Coin.fromPartial({}),
549
- appealFee: coin_1.Coin.fromPartial({}),
550
- lockAppealFee: coin_1.Coin.fromPartial({}),
551
- moveAppealFee: coin_1.Coin.fromPartial({}),
552
- editFee: coin_1.Coin.fromPartial({}),
553
- costPerByte: coin_1.Coin.fromPartial({}),
666
+ spamTaxAmount: "",
667
+ reactionSpamTaxAmount: "",
668
+ flagSpamTaxAmount: "",
669
+ downvoteDepositAmount: "",
670
+ appealFeeAmount: "",
671
+ lockAppealFeeAmount: "",
672
+ moveAppealFeeAmount: "",
673
+ editFeeAmount: "",
674
+ costPerByteAmount: "",
554
675
  costPerByteExempt: false,
555
676
  maxContentSize: BigInt(0),
556
677
  dailyPostLimit: BigInt(0),
@@ -574,7 +695,17 @@ function createBaseForumOperationalParams() {
574
695
  minSentinelAgeBlocks: BigInt(0),
575
696
  sentinelDemotionCooldown: BigInt(0),
576
697
  sentinelDemotionThreshold: "",
577
- sentinelUnhideWindow: BigInt(0)
698
+ sentinelUnhideWindow: BigInt(0),
699
+ sentinelUnbondCooldown: BigInt(0),
700
+ makePermanentMinTrustLevel: 0,
701
+ maxPromotionsPerBlock: 0,
702
+ authorRepSlash: "",
703
+ maxMakePermanentPerDay: BigInt(0),
704
+ minPostConvictionStake: "",
705
+ postConvictionLockSeconds: BigInt(0),
706
+ postConvictionStreamRatePerBlock: "",
707
+ maxForumRepPerTagPerEpoch: "",
708
+ postConvictionStakerSlashBps: BigInt(0)
578
709
  };
579
710
  }
580
711
  /**
@@ -599,32 +730,32 @@ exports.ForumOperationalParams = {
599
730
  if (message.editingEnabled === true) {
600
731
  writer.uint32(24).bool(message.editingEnabled);
601
732
  }
602
- if (message.spamTax !== undefined) {
603
- coin_1.Coin.encode(message.spamTax, writer.uint32(34).fork()).ldelim();
733
+ if (message.spamTaxAmount !== "") {
734
+ writer.uint32(34).string(message.spamTaxAmount);
604
735
  }
605
- if (message.reactionSpamTax !== undefined) {
606
- coin_1.Coin.encode(message.reactionSpamTax, writer.uint32(42).fork()).ldelim();
736
+ if (message.reactionSpamTaxAmount !== "") {
737
+ writer.uint32(42).string(message.reactionSpamTaxAmount);
607
738
  }
608
- if (message.flagSpamTax !== undefined) {
609
- coin_1.Coin.encode(message.flagSpamTax, writer.uint32(50).fork()).ldelim();
739
+ if (message.flagSpamTaxAmount !== "") {
740
+ writer.uint32(50).string(message.flagSpamTaxAmount);
610
741
  }
611
- if (message.downvoteDeposit !== undefined) {
612
- coin_1.Coin.encode(message.downvoteDeposit, writer.uint32(58).fork()).ldelim();
742
+ if (message.downvoteDepositAmount !== "") {
743
+ writer.uint32(58).string(message.downvoteDepositAmount);
613
744
  }
614
- if (message.appealFee !== undefined) {
615
- coin_1.Coin.encode(message.appealFee, writer.uint32(66).fork()).ldelim();
745
+ if (message.appealFeeAmount !== "") {
746
+ writer.uint32(66).string(message.appealFeeAmount);
616
747
  }
617
- if (message.lockAppealFee !== undefined) {
618
- coin_1.Coin.encode(message.lockAppealFee, writer.uint32(74).fork()).ldelim();
748
+ if (message.lockAppealFeeAmount !== "") {
749
+ writer.uint32(74).string(message.lockAppealFeeAmount);
619
750
  }
620
- if (message.moveAppealFee !== undefined) {
621
- coin_1.Coin.encode(message.moveAppealFee, writer.uint32(82).fork()).ldelim();
751
+ if (message.moveAppealFeeAmount !== "") {
752
+ writer.uint32(82).string(message.moveAppealFeeAmount);
622
753
  }
623
- if (message.editFee !== undefined) {
624
- coin_1.Coin.encode(message.editFee, writer.uint32(90).fork()).ldelim();
754
+ if (message.editFeeAmount !== "") {
755
+ writer.uint32(90).string(message.editFeeAmount);
625
756
  }
626
- if (message.costPerByte !== undefined) {
627
- coin_1.Coin.encode(message.costPerByte, writer.uint32(98).fork()).ldelim();
757
+ if (message.costPerByteAmount !== "") {
758
+ writer.uint32(98).string(message.costPerByteAmount);
628
759
  }
629
760
  if (message.costPerByteExempt === true) {
630
761
  writer.uint32(104).bool(message.costPerByteExempt);
@@ -698,6 +829,36 @@ exports.ForumOperationalParams = {
698
829
  if (message.sentinelUnhideWindow !== BigInt(0)) {
699
830
  writer.uint32(368).int64(message.sentinelUnhideWindow);
700
831
  }
832
+ if (message.sentinelUnbondCooldown !== BigInt(0)) {
833
+ writer.uint32(376).int64(message.sentinelUnbondCooldown);
834
+ }
835
+ if (message.makePermanentMinTrustLevel !== 0) {
836
+ writer.uint32(384).uint32(message.makePermanentMinTrustLevel);
837
+ }
838
+ if (message.maxPromotionsPerBlock !== 0) {
839
+ writer.uint32(392).uint32(message.maxPromotionsPerBlock);
840
+ }
841
+ if (message.authorRepSlash !== "") {
842
+ writer.uint32(402).string(math_1.Decimal.fromUserInput(message.authorRepSlash, 18).atomics);
843
+ }
844
+ if (message.maxMakePermanentPerDay !== BigInt(0)) {
845
+ writer.uint32(408).uint64(message.maxMakePermanentPerDay);
846
+ }
847
+ if (message.minPostConvictionStake !== "") {
848
+ writer.uint32(482).string(message.minPostConvictionStake);
849
+ }
850
+ if (message.postConvictionLockSeconds !== BigInt(0)) {
851
+ writer.uint32(488).int64(message.postConvictionLockSeconds);
852
+ }
853
+ if (message.postConvictionStreamRatePerBlock !== "") {
854
+ writer.uint32(498).string(math_1.Decimal.fromUserInput(message.postConvictionStreamRatePerBlock, 18).atomics);
855
+ }
856
+ if (message.maxForumRepPerTagPerEpoch !== "") {
857
+ writer.uint32(506).string(math_1.Decimal.fromUserInput(message.maxForumRepPerTagPerEpoch, 18).atomics);
858
+ }
859
+ if (message.postConvictionStakerSlashBps !== BigInt(0)) {
860
+ writer.uint32(512).uint64(message.postConvictionStakerSlashBps);
861
+ }
701
862
  return writer;
702
863
  },
703
864
  decode(input, length) {
@@ -717,31 +878,31 @@ exports.ForumOperationalParams = {
717
878
  message.editingEnabled = reader.bool();
718
879
  break;
719
880
  case 4:
720
- message.spamTax = coin_1.Coin.decode(reader, reader.uint32());
881
+ message.spamTaxAmount = reader.string();
721
882
  break;
722
883
  case 5:
723
- message.reactionSpamTax = coin_1.Coin.decode(reader, reader.uint32());
884
+ message.reactionSpamTaxAmount = reader.string();
724
885
  break;
725
886
  case 6:
726
- message.flagSpamTax = coin_1.Coin.decode(reader, reader.uint32());
887
+ message.flagSpamTaxAmount = reader.string();
727
888
  break;
728
889
  case 7:
729
- message.downvoteDeposit = coin_1.Coin.decode(reader, reader.uint32());
890
+ message.downvoteDepositAmount = reader.string();
730
891
  break;
731
892
  case 8:
732
- message.appealFee = coin_1.Coin.decode(reader, reader.uint32());
893
+ message.appealFeeAmount = reader.string();
733
894
  break;
734
895
  case 9:
735
- message.lockAppealFee = coin_1.Coin.decode(reader, reader.uint32());
896
+ message.lockAppealFeeAmount = reader.string();
736
897
  break;
737
898
  case 10:
738
- message.moveAppealFee = coin_1.Coin.decode(reader, reader.uint32());
899
+ message.moveAppealFeeAmount = reader.string();
739
900
  break;
740
901
  case 11:
741
- message.editFee = coin_1.Coin.decode(reader, reader.uint32());
902
+ message.editFeeAmount = reader.string();
742
903
  break;
743
904
  case 12:
744
- message.costPerByte = coin_1.Coin.decode(reader, reader.uint32());
905
+ message.costPerByteAmount = reader.string();
745
906
  break;
746
907
  case 13:
747
908
  message.costPerByteExempt = reader.bool();
@@ -815,6 +976,36 @@ exports.ForumOperationalParams = {
815
976
  case 46:
816
977
  message.sentinelUnhideWindow = reader.int64();
817
978
  break;
979
+ case 47:
980
+ message.sentinelUnbondCooldown = reader.int64();
981
+ break;
982
+ case 48:
983
+ message.makePermanentMinTrustLevel = reader.uint32();
984
+ break;
985
+ case 49:
986
+ message.maxPromotionsPerBlock = reader.uint32();
987
+ break;
988
+ case 50:
989
+ message.authorRepSlash = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
990
+ break;
991
+ case 51:
992
+ message.maxMakePermanentPerDay = reader.uint64();
993
+ break;
994
+ case 60:
995
+ message.minPostConvictionStake = reader.string();
996
+ break;
997
+ case 61:
998
+ message.postConvictionLockSeconds = reader.int64();
999
+ break;
1000
+ case 62:
1001
+ message.postConvictionStreamRatePerBlock = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1002
+ break;
1003
+ case 63:
1004
+ message.maxForumRepPerTagPerEpoch = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1005
+ break;
1006
+ case 64:
1007
+ message.postConvictionStakerSlashBps = reader.uint64();
1008
+ break;
818
1009
  default:
819
1010
  reader.skipType(tag & 7);
820
1011
  break;
@@ -827,15 +1018,15 @@ exports.ForumOperationalParams = {
827
1018
  message.bountiesEnabled = object.bountiesEnabled ?? false;
828
1019
  message.reactionsEnabled = object.reactionsEnabled ?? false;
829
1020
  message.editingEnabled = object.editingEnabled ?? false;
830
- message.spamTax = object.spamTax !== undefined && object.spamTax !== null ? coin_1.Coin.fromPartial(object.spamTax) : undefined;
831
- message.reactionSpamTax = object.reactionSpamTax !== undefined && object.reactionSpamTax !== null ? coin_1.Coin.fromPartial(object.reactionSpamTax) : undefined;
832
- message.flagSpamTax = object.flagSpamTax !== undefined && object.flagSpamTax !== null ? coin_1.Coin.fromPartial(object.flagSpamTax) : undefined;
833
- message.downvoteDeposit = object.downvoteDeposit !== undefined && object.downvoteDeposit !== null ? coin_1.Coin.fromPartial(object.downvoteDeposit) : undefined;
834
- message.appealFee = object.appealFee !== undefined && object.appealFee !== null ? coin_1.Coin.fromPartial(object.appealFee) : undefined;
835
- message.lockAppealFee = object.lockAppealFee !== undefined && object.lockAppealFee !== null ? coin_1.Coin.fromPartial(object.lockAppealFee) : undefined;
836
- message.moveAppealFee = object.moveAppealFee !== undefined && object.moveAppealFee !== null ? coin_1.Coin.fromPartial(object.moveAppealFee) : undefined;
837
- message.editFee = object.editFee !== undefined && object.editFee !== null ? coin_1.Coin.fromPartial(object.editFee) : undefined;
838
- message.costPerByte = object.costPerByte !== undefined && object.costPerByte !== null ? coin_1.Coin.fromPartial(object.costPerByte) : undefined;
1021
+ message.spamTaxAmount = object.spamTaxAmount ?? "";
1022
+ message.reactionSpamTaxAmount = object.reactionSpamTaxAmount ?? "";
1023
+ message.flagSpamTaxAmount = object.flagSpamTaxAmount ?? "";
1024
+ message.downvoteDepositAmount = object.downvoteDepositAmount ?? "";
1025
+ message.appealFeeAmount = object.appealFeeAmount ?? "";
1026
+ message.lockAppealFeeAmount = object.lockAppealFeeAmount ?? "";
1027
+ message.moveAppealFeeAmount = object.moveAppealFeeAmount ?? "";
1028
+ message.editFeeAmount = object.editFeeAmount ?? "";
1029
+ message.costPerByteAmount = object.costPerByteAmount ?? "";
839
1030
  message.costPerByteExempt = object.costPerByteExempt ?? false;
840
1031
  message.maxContentSize = object.maxContentSize !== undefined && object.maxContentSize !== null ? BigInt(object.maxContentSize.toString()) : BigInt(0);
841
1032
  message.dailyPostLimit = object.dailyPostLimit !== undefined && object.dailyPostLimit !== null ? BigInt(object.dailyPostLimit.toString()) : BigInt(0);
@@ -860,6 +1051,16 @@ exports.ForumOperationalParams = {
860
1051
  message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
861
1052
  message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
862
1053
  message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
1054
+ message.sentinelUnbondCooldown = object.sentinelUnbondCooldown !== undefined && object.sentinelUnbondCooldown !== null ? BigInt(object.sentinelUnbondCooldown.toString()) : BigInt(0);
1055
+ message.makePermanentMinTrustLevel = object.makePermanentMinTrustLevel ?? 0;
1056
+ message.maxPromotionsPerBlock = object.maxPromotionsPerBlock ?? 0;
1057
+ message.authorRepSlash = object.authorRepSlash ?? "";
1058
+ message.maxMakePermanentPerDay = object.maxMakePermanentPerDay !== undefined && object.maxMakePermanentPerDay !== null ? BigInt(object.maxMakePermanentPerDay.toString()) : BigInt(0);
1059
+ message.minPostConvictionStake = object.minPostConvictionStake ?? "";
1060
+ message.postConvictionLockSeconds = object.postConvictionLockSeconds !== undefined && object.postConvictionLockSeconds !== null ? BigInt(object.postConvictionLockSeconds.toString()) : BigInt(0);
1061
+ message.postConvictionStreamRatePerBlock = object.postConvictionStreamRatePerBlock ?? "";
1062
+ message.maxForumRepPerTagPerEpoch = object.maxForumRepPerTagPerEpoch ?? "";
1063
+ message.postConvictionStakerSlashBps = object.postConvictionStakerSlashBps !== undefined && object.postConvictionStakerSlashBps !== null ? BigInt(object.postConvictionStakerSlashBps.toString()) : BigInt(0);
863
1064
  return message;
864
1065
  },
865
1066
  fromAmino(object) {
@@ -873,32 +1074,32 @@ exports.ForumOperationalParams = {
873
1074
  if (object.editing_enabled !== undefined && object.editing_enabled !== null) {
874
1075
  message.editingEnabled = object.editing_enabled;
875
1076
  }
876
- if (object.spam_tax !== undefined && object.spam_tax !== null) {
877
- message.spamTax = coin_1.Coin.fromAmino(object.spam_tax);
1077
+ if (object.spam_tax_amount !== undefined && object.spam_tax_amount !== null) {
1078
+ message.spamTaxAmount = object.spam_tax_amount;
878
1079
  }
879
- if (object.reaction_spam_tax !== undefined && object.reaction_spam_tax !== null) {
880
- message.reactionSpamTax = coin_1.Coin.fromAmino(object.reaction_spam_tax);
1080
+ if (object.reaction_spam_tax_amount !== undefined && object.reaction_spam_tax_amount !== null) {
1081
+ message.reactionSpamTaxAmount = object.reaction_spam_tax_amount;
881
1082
  }
882
- if (object.flag_spam_tax !== undefined && object.flag_spam_tax !== null) {
883
- message.flagSpamTax = coin_1.Coin.fromAmino(object.flag_spam_tax);
1083
+ if (object.flag_spam_tax_amount !== undefined && object.flag_spam_tax_amount !== null) {
1084
+ message.flagSpamTaxAmount = object.flag_spam_tax_amount;
884
1085
  }
885
- if (object.downvote_deposit !== undefined && object.downvote_deposit !== null) {
886
- message.downvoteDeposit = coin_1.Coin.fromAmino(object.downvote_deposit);
1086
+ if (object.downvote_deposit_amount !== undefined && object.downvote_deposit_amount !== null) {
1087
+ message.downvoteDepositAmount = object.downvote_deposit_amount;
887
1088
  }
888
- if (object.appeal_fee !== undefined && object.appeal_fee !== null) {
889
- message.appealFee = coin_1.Coin.fromAmino(object.appeal_fee);
1089
+ if (object.appeal_fee_amount !== undefined && object.appeal_fee_amount !== null) {
1090
+ message.appealFeeAmount = object.appeal_fee_amount;
890
1091
  }
891
- if (object.lock_appeal_fee !== undefined && object.lock_appeal_fee !== null) {
892
- message.lockAppealFee = coin_1.Coin.fromAmino(object.lock_appeal_fee);
1092
+ if (object.lock_appeal_fee_amount !== undefined && object.lock_appeal_fee_amount !== null) {
1093
+ message.lockAppealFeeAmount = object.lock_appeal_fee_amount;
893
1094
  }
894
- if (object.move_appeal_fee !== undefined && object.move_appeal_fee !== null) {
895
- message.moveAppealFee = coin_1.Coin.fromAmino(object.move_appeal_fee);
1095
+ if (object.move_appeal_fee_amount !== undefined && object.move_appeal_fee_amount !== null) {
1096
+ message.moveAppealFeeAmount = object.move_appeal_fee_amount;
896
1097
  }
897
- if (object.edit_fee !== undefined && object.edit_fee !== null) {
898
- message.editFee = coin_1.Coin.fromAmino(object.edit_fee);
1098
+ if (object.edit_fee_amount !== undefined && object.edit_fee_amount !== null) {
1099
+ message.editFeeAmount = object.edit_fee_amount;
899
1100
  }
900
- if (object.cost_per_byte !== undefined && object.cost_per_byte !== null) {
901
- message.costPerByte = coin_1.Coin.fromAmino(object.cost_per_byte);
1101
+ if (object.cost_per_byte_amount !== undefined && object.cost_per_byte_amount !== null) {
1102
+ message.costPerByteAmount = object.cost_per_byte_amount;
902
1103
  }
903
1104
  if (object.cost_per_byte_exempt !== undefined && object.cost_per_byte_exempt !== null) {
904
1105
  message.costPerByteExempt = object.cost_per_byte_exempt;
@@ -972,6 +1173,36 @@ exports.ForumOperationalParams = {
972
1173
  if (object.sentinel_unhide_window !== undefined && object.sentinel_unhide_window !== null) {
973
1174
  message.sentinelUnhideWindow = BigInt(object.sentinel_unhide_window);
974
1175
  }
1176
+ if (object.sentinel_unbond_cooldown !== undefined && object.sentinel_unbond_cooldown !== null) {
1177
+ message.sentinelUnbondCooldown = BigInt(object.sentinel_unbond_cooldown);
1178
+ }
1179
+ if (object.make_permanent_min_trust_level !== undefined && object.make_permanent_min_trust_level !== null) {
1180
+ message.makePermanentMinTrustLevel = object.make_permanent_min_trust_level;
1181
+ }
1182
+ if (object.max_promotions_per_block !== undefined && object.max_promotions_per_block !== null) {
1183
+ message.maxPromotionsPerBlock = object.max_promotions_per_block;
1184
+ }
1185
+ if (object.author_rep_slash !== undefined && object.author_rep_slash !== null) {
1186
+ message.authorRepSlash = object.author_rep_slash;
1187
+ }
1188
+ if (object.max_make_permanent_per_day !== undefined && object.max_make_permanent_per_day !== null) {
1189
+ message.maxMakePermanentPerDay = BigInt(object.max_make_permanent_per_day);
1190
+ }
1191
+ if (object.min_post_conviction_stake !== undefined && object.min_post_conviction_stake !== null) {
1192
+ message.minPostConvictionStake = object.min_post_conviction_stake;
1193
+ }
1194
+ if (object.post_conviction_lock_seconds !== undefined && object.post_conviction_lock_seconds !== null) {
1195
+ message.postConvictionLockSeconds = BigInt(object.post_conviction_lock_seconds);
1196
+ }
1197
+ if (object.post_conviction_stream_rate_per_block !== undefined && object.post_conviction_stream_rate_per_block !== null) {
1198
+ message.postConvictionStreamRatePerBlock = object.post_conviction_stream_rate_per_block;
1199
+ }
1200
+ if (object.max_forum_rep_per_tag_per_epoch !== undefined && object.max_forum_rep_per_tag_per_epoch !== null) {
1201
+ message.maxForumRepPerTagPerEpoch = object.max_forum_rep_per_tag_per_epoch;
1202
+ }
1203
+ if (object.post_conviction_staker_slash_bps !== undefined && object.post_conviction_staker_slash_bps !== null) {
1204
+ message.postConvictionStakerSlashBps = BigInt(object.post_conviction_staker_slash_bps);
1205
+ }
975
1206
  return message;
976
1207
  },
977
1208
  toAmino(message) {
@@ -979,15 +1210,15 @@ exports.ForumOperationalParams = {
979
1210
  obj.bounties_enabled = message.bountiesEnabled === false ? undefined : message.bountiesEnabled;
980
1211
  obj.reactions_enabled = message.reactionsEnabled === false ? undefined : message.reactionsEnabled;
981
1212
  obj.editing_enabled = message.editingEnabled === false ? undefined : message.editingEnabled;
982
- obj.spam_tax = message.spamTax ? coin_1.Coin.toAmino(message.spamTax) : undefined;
983
- obj.reaction_spam_tax = message.reactionSpamTax ? coin_1.Coin.toAmino(message.reactionSpamTax) : undefined;
984
- obj.flag_spam_tax = message.flagSpamTax ? coin_1.Coin.toAmino(message.flagSpamTax) : undefined;
985
- obj.downvote_deposit = message.downvoteDeposit ? coin_1.Coin.toAmino(message.downvoteDeposit) : undefined;
986
- obj.appeal_fee = message.appealFee ? coin_1.Coin.toAmino(message.appealFee) : undefined;
987
- obj.lock_appeal_fee = message.lockAppealFee ? coin_1.Coin.toAmino(message.lockAppealFee) : undefined;
988
- obj.move_appeal_fee = message.moveAppealFee ? coin_1.Coin.toAmino(message.moveAppealFee) : undefined;
989
- obj.edit_fee = message.editFee ? coin_1.Coin.toAmino(message.editFee) : undefined;
990
- obj.cost_per_byte = message.costPerByte ? coin_1.Coin.toAmino(message.costPerByte) : undefined;
1213
+ obj.spam_tax_amount = message.spamTaxAmount === "" ? undefined : message.spamTaxAmount;
1214
+ obj.reaction_spam_tax_amount = message.reactionSpamTaxAmount === "" ? undefined : message.reactionSpamTaxAmount;
1215
+ obj.flag_spam_tax_amount = message.flagSpamTaxAmount === "" ? undefined : message.flagSpamTaxAmount;
1216
+ obj.downvote_deposit_amount = message.downvoteDepositAmount === "" ? undefined : message.downvoteDepositAmount;
1217
+ obj.appeal_fee_amount = message.appealFeeAmount === "" ? undefined : message.appealFeeAmount;
1218
+ obj.lock_appeal_fee_amount = message.lockAppealFeeAmount === "" ? undefined : message.lockAppealFeeAmount;
1219
+ obj.move_appeal_fee_amount = message.moveAppealFeeAmount === "" ? undefined : message.moveAppealFeeAmount;
1220
+ obj.edit_fee_amount = message.editFeeAmount === "" ? undefined : message.editFeeAmount;
1221
+ obj.cost_per_byte_amount = message.costPerByteAmount === "" ? undefined : message.costPerByteAmount;
991
1222
  obj.cost_per_byte_exempt = message.costPerByteExempt === false ? undefined : message.costPerByteExempt;
992
1223
  obj.max_content_size = message.maxContentSize !== BigInt(0) ? message.maxContentSize?.toString() : undefined;
993
1224
  obj.daily_post_limit = message.dailyPostLimit !== BigInt(0) ? message.dailyPostLimit?.toString() : undefined;
@@ -1012,6 +1243,16 @@ exports.ForumOperationalParams = {
1012
1243
  obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
1013
1244
  obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
1014
1245
  obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
1246
+ obj.sentinel_unbond_cooldown = message.sentinelUnbondCooldown !== BigInt(0) ? message.sentinelUnbondCooldown?.toString() : undefined;
1247
+ obj.make_permanent_min_trust_level = message.makePermanentMinTrustLevel === 0 ? undefined : message.makePermanentMinTrustLevel;
1248
+ obj.max_promotions_per_block = message.maxPromotionsPerBlock === 0 ? undefined : message.maxPromotionsPerBlock;
1249
+ obj.author_rep_slash = message.authorRepSlash === "" ? undefined : message.authorRepSlash;
1250
+ obj.max_make_permanent_per_day = message.maxMakePermanentPerDay !== BigInt(0) ? message.maxMakePermanentPerDay?.toString() : undefined;
1251
+ obj.min_post_conviction_stake = message.minPostConvictionStake === "" ? undefined : message.minPostConvictionStake;
1252
+ obj.post_conviction_lock_seconds = message.postConvictionLockSeconds !== BigInt(0) ? message.postConvictionLockSeconds?.toString() : undefined;
1253
+ obj.post_conviction_stream_rate_per_block = message.postConvictionStreamRatePerBlock === "" ? undefined : message.postConvictionStreamRatePerBlock;
1254
+ obj.max_forum_rep_per_tag_per_epoch = message.maxForumRepPerTagPerEpoch === "" ? undefined : message.maxForumRepPerTagPerEpoch;
1255
+ obj.post_conviction_staker_slash_bps = message.postConvictionStakerSlashBps !== BigInt(0) ? message.postConvictionStakerSlashBps?.toString() : undefined;
1015
1256
  return obj;
1016
1257
  },
1017
1258
  fromAminoMsg(object) {