@sparkdreamnft/sparkdreamjs 0.0.7 → 0.0.8

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 (637) 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/genesis.js +87 -1
  6. package/esm/sparkdream/blog/v1/params.js +433 -5
  7. package/esm/sparkdream/blog/v1/post.js +205 -2
  8. package/esm/sparkdream/blog/v1/query.js +1363 -0
  9. package/esm/sparkdream/blog/v1/query.lcd.js +105 -2
  10. package/esm/sparkdream/blog/v1/query.rpc.Query.js +75 -3
  11. package/esm/sparkdream/blog/v1/tx.amino.js +61 -1
  12. package/esm/sparkdream/blog/v1/tx.js +1861 -3
  13. package/esm/sparkdream/blog/v1/tx.registry.js +218 -2
  14. package/esm/sparkdream/blog/v1/tx.rpc.msg.js +77 -4
  15. package/esm/sparkdream/blog/v1/types.js +809 -0
  16. package/esm/sparkdream/bundle.js +549 -36
  17. package/esm/sparkdream/client.js +38 -2
  18. package/esm/sparkdream/collect/module/v1/module.js +71 -0
  19. package/esm/sparkdream/collect/v1/genesis.js +271 -0
  20. package/esm/sparkdream/collect/v1/params.js +763 -0
  21. package/esm/sparkdream/collect/v1/query.js +3790 -0
  22. package/esm/sparkdream/collect/v1/query.lcd.js +223 -0
  23. package/esm/sparkdream/collect/v1/query.rpc.Query.js +252 -0
  24. package/esm/sparkdream/collect/v1/tx.amino.js +149 -0
  25. package/esm/sparkdream/collect/v1/tx.js +4767 -0
  26. package/esm/sparkdream/collect/v1/tx.registry.js +537 -0
  27. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +185 -0
  28. package/esm/sparkdream/collect/v1/types.js +3434 -0
  29. package/esm/sparkdream/common/v1/content_type.js +96 -0
  30. package/esm/sparkdream/common/v1/flag_record.js +119 -0
  31. package/esm/sparkdream/common/v1/moderation_reason.js +115 -0
  32. package/esm/sparkdream/common/v1/reserved_tag.js +96 -0
  33. package/esm/sparkdream/common/v1/tag.js +120 -0
  34. package/esm/sparkdream/commons/module/v1/module.js +71 -0
  35. package/esm/sparkdream/commons/v1/genesis.js +533 -0
  36. package/esm/sparkdream/commons/v1/group.js +1116 -0
  37. package/esm/sparkdream/commons/v1/params.js +78 -0
  38. package/esm/sparkdream/commons/v1/policy_permissions.js +86 -0
  39. package/esm/sparkdream/commons/v1/query.js +1337 -0
  40. package/esm/sparkdream/commons/v1/query.lcd.js +78 -0
  41. package/esm/sparkdream/commons/v1/query.rpc.Query.js +100 -0
  42. package/esm/sparkdream/commons/v1/tx.amino.js +94 -0
  43. package/esm/sparkdream/commons/v1/tx.js +3282 -0
  44. package/esm/sparkdream/commons/v1/tx.registry.js +339 -0
  45. package/esm/sparkdream/commons/v1/tx.rpc.msg.js +122 -0
  46. package/esm/sparkdream/ecosystem/module/v1/module.js +71 -0
  47. package/esm/sparkdream/ecosystem/v1/genesis.js +72 -0
  48. package/esm/sparkdream/ecosystem/v1/params.js +65 -0
  49. package/esm/sparkdream/ecosystem/v1/query.js +128 -0
  50. package/esm/sparkdream/ecosystem/v1/query.lcd.js +11 -0
  51. package/esm/sparkdream/ecosystem/v1/query.rpc.Query.js +24 -0
  52. package/esm/sparkdream/ecosystem/v1/tx.amino.js +14 -0
  53. package/esm/sparkdream/ecosystem/v1/tx.js +308 -0
  54. package/esm/sparkdream/ecosystem/v1/tx.registry.js +51 -0
  55. package/esm/sparkdream/ecosystem/v1/tx.rpc.msg.js +24 -0
  56. package/esm/sparkdream/forum/module/v1/module.js +71 -0
  57. package/esm/sparkdream/forum/v1/archive_metadata.js +119 -0
  58. package/esm/sparkdream/forum/v1/bounty.js +183 -0
  59. package/esm/sparkdream/forum/v1/category.js +119 -0
  60. package/esm/sparkdream/forum/v1/genesis.js +516 -0
  61. package/esm/sparkdream/forum/v1/gov_action_appeal.js +202 -0
  62. package/esm/sparkdream/forum/v1/hide_record.js +154 -0
  63. package/esm/sparkdream/forum/v1/jury_participation.js +131 -0
  64. package/esm/sparkdream/forum/v1/member_report.js +219 -0
  65. package/esm/sparkdream/forum/v1/member_salvation_status.js +119 -0
  66. package/esm/sparkdream/forum/v1/member_warning.js +156 -0
  67. package/esm/sparkdream/forum/v1/params.js +867 -0
  68. package/esm/sparkdream/forum/v1/post.js +397 -0
  69. package/esm/sparkdream/forum/v1/post_flag.js +254 -0
  70. package/esm/sparkdream/forum/v1/query.js +12470 -0
  71. package/esm/sparkdream/forum/v1/query.lcd.js +730 -0
  72. package/esm/sparkdream/forum/v1/query.rpc.Query.js +799 -0
  73. package/esm/sparkdream/forum/v1/sentinel_activity.js +490 -0
  74. package/esm/sparkdream/forum/v1/tag_budget.js +143 -0
  75. package/esm/sparkdream/forum/v1/tag_budget_award.js +155 -0
  76. package/esm/sparkdream/forum/v1/tag_report.js +122 -0
  77. package/esm/sparkdream/forum/v1/thread_follow.js +95 -0
  78. package/esm/sparkdream/forum/v1/thread_follow_count.js +83 -0
  79. package/esm/sparkdream/forum/v1/thread_lock_record.js +155 -0
  80. package/esm/sparkdream/forum/v1/thread_metadata.js +184 -0
  81. package/esm/sparkdream/forum/v1/thread_move_record.js +179 -0
  82. package/esm/sparkdream/forum/v1/tx.amino.js +254 -0
  83. package/esm/sparkdream/forum/v1/tx.js +7464 -0
  84. package/esm/sparkdream/forum/v1/tx.registry.js +915 -0
  85. package/esm/sparkdream/forum/v1/tx.rpc.msg.js +313 -0
  86. package/esm/sparkdream/forum/v1/types.js +758 -0
  87. package/esm/sparkdream/forum/v1/user_rate_limit.js +119 -0
  88. package/esm/sparkdream/forum/v1/user_reaction_limit.js +107 -0
  89. package/esm/sparkdream/futarchy/module/v1/module.js +71 -0
  90. package/esm/sparkdream/futarchy/v1/genesis.js +88 -0
  91. package/esm/sparkdream/futarchy/v1/market.js +240 -0
  92. package/esm/sparkdream/futarchy/v1/params.js +241 -0
  93. package/esm/sparkdream/futarchy/v1/query.js +596 -0
  94. package/esm/sparkdream/futarchy/v1/query.lcd.js +45 -0
  95. package/esm/sparkdream/futarchy/v1/query.rpc.Query.js +53 -0
  96. package/esm/sparkdream/futarchy/v1/tx.amino.js +39 -0
  97. package/esm/sparkdream/futarchy/v1/tx.js +1097 -0
  98. package/esm/sparkdream/futarchy/v1/tx.registry.js +141 -0
  99. package/esm/sparkdream/futarchy/v1/tx.rpc.msg.js +55 -0
  100. package/esm/sparkdream/lcd.js +60 -0
  101. package/esm/sparkdream/name/module/v1/module.js +71 -0
  102. package/esm/sparkdream/name/v1/dispute.js +341 -0
  103. package/esm/sparkdream/name/v1/genesis.js +120 -0
  104. package/esm/sparkdream/name/v1/name_record.js +95 -0
  105. package/esm/sparkdream/name/v1/owner_info.js +95 -0
  106. package/esm/sparkdream/name/v1/params.js +306 -0
  107. package/esm/sparkdream/name/v1/query.js +863 -0
  108. package/esm/sparkdream/name/v1/query.lcd.js +52 -0
  109. package/esm/sparkdream/name/v1/query.rpc.Query.js +71 -0
  110. package/esm/sparkdream/name/v1/tx.amino.js +44 -0
  111. package/esm/sparkdream/name/v1/tx.js +1222 -0
  112. package/esm/sparkdream/name/v1/tx.registry.js +159 -0
  113. package/esm/sparkdream/name/v1/tx.rpc.msg.js +62 -0
  114. package/esm/sparkdream/rep/module/v1/module.js +71 -0
  115. package/esm/sparkdream/rep/v1/challenge.js +226 -0
  116. package/esm/sparkdream/rep/v1/content_challenge.js +303 -0
  117. package/esm/sparkdream/rep/v1/genesis.js +481 -0
  118. package/esm/sparkdream/rep/v1/initiative.js +558 -0
  119. package/esm/sparkdream/rep/v1/interim.js +426 -0
  120. package/esm/sparkdream/rep/v1/interim_template.js +291 -0
  121. package/esm/sparkdream/rep/v1/invitation.js +251 -0
  122. package/esm/sparkdream/rep/v1/jury_review.js +635 -0
  123. package/esm/sparkdream/rep/v1/member.js +857 -0
  124. package/esm/sparkdream/rep/v1/params.js +1819 -0
  125. package/esm/sparkdream/rep/v1/project.js +545 -0
  126. package/esm/sparkdream/rep/v1/query.js +6896 -0
  127. package/esm/sparkdream/rep/v1/query.lcd.js +377 -0
  128. package/esm/sparkdream/rep/v1/query.rpc.Query.js +424 -0
  129. package/esm/sparkdream/rep/v1/stake.js +575 -0
  130. package/esm/sparkdream/rep/v1/tx.amino.js +159 -0
  131. package/esm/sparkdream/rep/v1/tx.js +5198 -0
  132. package/esm/sparkdream/rep/v1/tx.registry.js +573 -0
  133. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +199 -0
  134. package/esm/sparkdream/reveal/module/v1/module.js +71 -0
  135. package/esm/sparkdream/reveal/v1/genesis.js +142 -0
  136. package/esm/sparkdream/reveal/v1/params.js +235 -0
  137. package/esm/sparkdream/reveal/v1/query.js +1700 -0
  138. package/esm/sparkdream/reveal/v1/query.lcd.js +101 -0
  139. package/esm/sparkdream/reveal/v1/query.rpc.Query.js +116 -0
  140. package/esm/sparkdream/reveal/v1/tx.amino.js +54 -0
  141. package/esm/sparkdream/reveal/v1/tx.js +1699 -0
  142. package/esm/sparkdream/reveal/v1/tx.registry.js +195 -0
  143. package/esm/sparkdream/reveal/v1/tx.rpc.msg.js +72 -0
  144. package/esm/sparkdream/reveal/v1/types.js +1141 -0
  145. package/esm/sparkdream/rpc.query.js +36 -0
  146. package/esm/sparkdream/rpc.tx.js +36 -0
  147. package/esm/sparkdream/season/module/v1/module.js +71 -0
  148. package/esm/sparkdream/season/v1/achievement.js +142 -0
  149. package/esm/sparkdream/season/v1/display_name_appeal_stake.js +95 -0
  150. package/esm/sparkdream/season/v1/display_name_moderation.js +155 -0
  151. package/esm/sparkdream/season/v1/display_name_report_stake.js +95 -0
  152. package/esm/sparkdream/season/v1/enums.js +391 -0
  153. package/esm/sparkdream/season/v1/epoch_xp_tracker.js +119 -0
  154. package/esm/sparkdream/season/v1/forum_xp_cooldown.js +83 -0
  155. package/esm/sparkdream/season/v1/genesis.js +482 -0
  156. package/esm/sparkdream/season/v1/guild.js +172 -0
  157. package/esm/sparkdream/season/v1/guild_invite.js +107 -0
  158. package/esm/sparkdream/season/v1/guild_membership.js +119 -0
  159. package/esm/sparkdream/season/v1/member_profile.js +296 -0
  160. package/esm/sparkdream/season/v1/member_quest_progress.js +132 -0
  161. package/esm/sparkdream/season/v1/member_registration.js +83 -0
  162. package/esm/sparkdream/season/v1/member_season_snapshot.js +238 -0
  163. package/esm/sparkdream/season/v1/next_season_info.js +83 -0
  164. package/esm/sparkdream/season/v1/nomination.js +428 -0
  165. package/esm/sparkdream/season/v1/params.js +1597 -0
  166. package/esm/sparkdream/season/v1/query.js +10569 -0
  167. package/esm/sparkdream/season/v1/query.lcd.js +598 -0
  168. package/esm/sparkdream/season/v1/query.rpc.Query.js +673 -0
  169. package/esm/sparkdream/season/v1/quest.js +334 -0
  170. package/esm/sparkdream/season/v1/season.js +166 -0
  171. package/esm/sparkdream/season/v1/season_snapshot.js +83 -0
  172. package/esm/sparkdream/season/v1/season_title_eligibility.js +194 -0
  173. package/esm/sparkdream/season/v1/season_transition_state.js +130 -0
  174. package/esm/sparkdream/season/v1/title.js +154 -0
  175. package/esm/sparkdream/season/v1/transition_recovery_state.js +118 -0
  176. package/esm/sparkdream/season/v1/tx.amino.js +219 -0
  177. package/esm/sparkdream/season/v1/tx.js +6823 -0
  178. package/esm/sparkdream/season/v1/tx.registry.js +789 -0
  179. package/esm/sparkdream/season/v1/tx.rpc.msg.js +272 -0
  180. package/esm/sparkdream/season/v1/vote_xp_record.js +83 -0
  181. package/esm/sparkdream/session/module/v1/module.js +71 -0
  182. package/esm/sparkdream/session/v1/genesis.js +88 -0
  183. package/esm/sparkdream/session/v1/params.js +275 -0
  184. package/esm/sparkdream/session/v1/query.js +743 -0
  185. package/esm/sparkdream/session/v1/query.lcd.js +45 -0
  186. package/esm/sparkdream/session/v1/query.rpc.Query.js +60 -0
  187. package/esm/sparkdream/session/v1/session.js +185 -0
  188. package/esm/sparkdream/session/v1/tx.amino.js +29 -0
  189. package/esm/sparkdream/session/v1/tx.js +768 -0
  190. package/esm/sparkdream/session/v1/tx.registry.js +105 -0
  191. package/esm/sparkdream/session/v1/tx.rpc.msg.js +43 -0
  192. package/esm/sparkdream/shield/module/v1/module.js +71 -0
  193. package/esm/sparkdream/shield/v1/genesis.js +301 -0
  194. package/esm/sparkdream/shield/v1/params.js +282 -0
  195. package/esm/sparkdream/shield/v1/query.js +2323 -0
  196. package/esm/sparkdream/shield/v1/query.lcd.js +110 -0
  197. package/esm/sparkdream/shield/v1/query.rpc.Query.js +170 -0
  198. package/esm/sparkdream/shield/v1/tx.amino.js +29 -0
  199. package/esm/sparkdream/shield/v1/tx.js +838 -0
  200. package/esm/sparkdream/shield/v1/tx.registry.js +105 -0
  201. package/esm/sparkdream/shield/v1/tx.rpc.msg.js +43 -0
  202. package/esm/sparkdream/shield/v1/types.js +2385 -0
  203. package/esm/sparkdream/split/module/v1/module.js +71 -0
  204. package/esm/sparkdream/split/v1/genesis.js +88 -0
  205. package/esm/sparkdream/split/v1/params.js +65 -0
  206. package/esm/sparkdream/split/v1/query.js +421 -0
  207. package/esm/sparkdream/split/v1/query.lcd.js +31 -0
  208. package/esm/sparkdream/split/v1/query.rpc.Query.js +44 -0
  209. package/esm/sparkdream/split/v1/share.js +83 -0
  210. package/esm/sparkdream/split/v1/tx.amino.js +9 -0
  211. package/esm/sparkdream/split/v1/tx.js +148 -0
  212. package/esm/sparkdream/split/v1/tx.registry.js +33 -0
  213. package/esm/sparkdream/split/v1/tx.rpc.msg.js +18 -0
  214. package/esm/tendermint/bundle.js +20 -20
  215. package/ibc/bundle.d.ts +90 -90
  216. package/ibc/bundle.js +106 -106
  217. package/package.json +1 -1
  218. package/sparkdream/blog/v1/genesis.d.ts +50 -0
  219. package/sparkdream/blog/v1/genesis.js +87 -1
  220. package/sparkdream/blog/v1/params.d.ts +292 -4
  221. package/sparkdream/blog/v1/params.js +434 -6
  222. package/sparkdream/blog/v1/post.d.ts +162 -0
  223. package/sparkdream/blog/v1/post.js +205 -2
  224. package/sparkdream/blog/v1/query.d.ts +751 -0
  225. package/sparkdream/blog/v1/query.js +1364 -1
  226. package/sparkdream/blog/v1/query.lcd.d.ts +9 -1
  227. package/sparkdream/blog/v1/query.lcd.js +105 -2
  228. package/sparkdream/blog/v1/query.rpc.Query.d.ts +35 -3
  229. package/sparkdream/blog/v1/query.rpc.Query.js +74 -2
  230. package/sparkdream/blog/v1/tx.amino.d.ts +61 -1
  231. package/sparkdream/blog/v1/tx.amino.js +60 -0
  232. package/sparkdream/blog/v1/tx.d.ts +1155 -1
  233. package/sparkdream/blog/v1/tx.js +1861 -3
  234. package/sparkdream/blog/v1/tx.registry.d.ts +145 -1
  235. package/sparkdream/blog/v1/tx.registry.js +217 -1
  236. package/sparkdream/blog/v1/tx.rpc.msg.d.ts +43 -4
  237. package/sparkdream/blog/v1/tx.rpc.msg.js +76 -3
  238. package/sparkdream/blog/v1/types.d.ts +463 -0
  239. package/sparkdream/blog/v1/types.js +818 -0
  240. package/sparkdream/bundle.d.ts +19847 -226
  241. package/sparkdream/bundle.js +549 -36
  242. package/sparkdream/client.d.ts +1105 -0
  243. package/sparkdream/client.js +38 -2
  244. package/sparkdream/collect/module/v1/module.d.ts +54 -0
  245. package/sparkdream/collect/module/v1/module.js +74 -0
  246. package/sparkdream/collect/v1/genesis.d.ts +82 -0
  247. package/sparkdream/collect/v1/genesis.js +274 -0
  248. package/sparkdream/collect/v1/params.d.ts +240 -0
  249. package/sparkdream/collect/v1/params.js +766 -0
  250. package/sparkdream/collect/v1/query.d.ts +2157 -0
  251. package/sparkdream/collect/v1/query.js +3793 -0
  252. package/sparkdream/collect/v1/query.lcd.d.ts +33 -0
  253. package/sparkdream/collect/v1/query.lcd.js +227 -0
  254. package/sparkdream/collect/v1/query.rpc.Query.d.ts +101 -0
  255. package/sparkdream/collect/v1/query.rpc.Query.js +257 -0
  256. package/sparkdream/collect/v1/tx.amino.d.ts +148 -0
  257. package/sparkdream/collect/v1/tx.amino.js +152 -0
  258. package/sparkdream/collect/v1/tx.d.ts +2581 -0
  259. package/sparkdream/collect/v1/tx.js +4771 -0
  260. package/sparkdream/collect/v1/tx.registry.d.ts +361 -0
  261. package/sparkdream/collect/v1/tx.registry.js +541 -0
  262. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +76 -0
  263. package/sparkdream/collect/v1/tx.rpc.msg.js +190 -0
  264. package/sparkdream/collect/v1/types.d.ts +1205 -0
  265. package/sparkdream/collect/v1/types.js +3453 -0
  266. package/sparkdream/common/v1/content_type.d.ts +31 -0
  267. package/sparkdream/common/v1/content_type.js +101 -0
  268. package/sparkdream/common/v1/flag_record.d.ts +58 -0
  269. package/sparkdream/common/v1/flag_record.js +122 -0
  270. package/sparkdream/common/v1/moderation_reason.d.ts +35 -0
  271. package/sparkdream/common/v1/moderation_reason.js +120 -0
  272. package/sparkdream/common/v1/reserved_tag.d.ts +53 -0
  273. package/sparkdream/common/v1/reserved_tag.js +99 -0
  274. package/sparkdream/common/v1/tag.d.ts +57 -0
  275. package/sparkdream/common/v1/tag.js +123 -0
  276. package/sparkdream/commons/module/v1/module.d.ts +54 -0
  277. package/sparkdream/commons/module/v1/module.js +74 -0
  278. package/sparkdream/commons/v1/genesis.d.ts +299 -0
  279. package/sparkdream/commons/v1/genesis.js +536 -0
  280. package/sparkdream/commons/v1/group.d.ts +529 -0
  281. package/sparkdream/commons/v1/group.js +1123 -0
  282. package/sparkdream/commons/v1/params.d.ts +48 -0
  283. package/sparkdream/commons/v1/params.js +81 -0
  284. package/sparkdream/commons/v1/policy_permissions.d.ts +48 -0
  285. package/sparkdream/commons/v1/policy_permissions.js +89 -0
  286. package/sparkdream/commons/v1/query.d.ts +822 -0
  287. package/sparkdream/commons/v1/query.js +1340 -0
  288. package/sparkdream/commons/v1/query.lcd.d.ts +17 -0
  289. package/sparkdream/commons/v1/query.lcd.js +82 -0
  290. package/sparkdream/commons/v1/query.rpc.Query.d.ts +48 -0
  291. package/sparkdream/commons/v1/query.rpc.Query.js +105 -0
  292. package/sparkdream/commons/v1/tx.amino.d.ts +93 -0
  293. package/sparkdream/commons/v1/tx.amino.js +97 -0
  294. package/sparkdream/commons/v1/tx.d.ts +1930 -0
  295. package/sparkdream/commons/v1/tx.js +3285 -0
  296. package/sparkdream/commons/v1/tx.registry.d.ts +229 -0
  297. package/sparkdream/commons/v1/tx.registry.js +343 -0
  298. package/sparkdream/commons/v1/tx.rpc.msg.d.ts +73 -0
  299. package/sparkdream/commons/v1/tx.rpc.msg.js +127 -0
  300. package/sparkdream/ecosystem/module/v1/module.d.ts +54 -0
  301. package/sparkdream/ecosystem/module/v1/module.js +74 -0
  302. package/sparkdream/ecosystem/v1/genesis.d.ts +53 -0
  303. package/sparkdream/ecosystem/v1/genesis.js +75 -0
  304. package/sparkdream/ecosystem/v1/params.d.ts +46 -0
  305. package/sparkdream/ecosystem/v1/params.js +68 -0
  306. package/sparkdream/ecosystem/v1/query.d.ts +95 -0
  307. package/sparkdream/ecosystem/v1/query.js +131 -0
  308. package/sparkdream/ecosystem/v1/query.lcd.d.ts +9 -0
  309. package/sparkdream/ecosystem/v1/query.lcd.js +15 -0
  310. package/sparkdream/ecosystem/v1/query.rpc.Query.d.ts +16 -0
  311. package/sparkdream/ecosystem/v1/query.rpc.Query.js +29 -0
  312. package/sparkdream/ecosystem/v1/tx.amino.d.ts +13 -0
  313. package/sparkdream/ecosystem/v1/tx.amino.js +17 -0
  314. package/sparkdream/ecosystem/v1/tx.d.ts +201 -0
  315. package/sparkdream/ecosystem/v1/tx.js +311 -0
  316. package/sparkdream/ecosystem/v1/tx.registry.d.ts +37 -0
  317. package/sparkdream/ecosystem/v1/tx.registry.js +55 -0
  318. package/sparkdream/ecosystem/v1/tx.rpc.msg.d.ts +19 -0
  319. package/sparkdream/ecosystem/v1/tx.rpc.msg.js +29 -0
  320. package/sparkdream/forum/module/v1/module.d.ts +54 -0
  321. package/sparkdream/forum/module/v1/module.js +74 -0
  322. package/sparkdream/forum/v1/archive_metadata.d.ts +54 -0
  323. package/sparkdream/forum/v1/archive_metadata.js +122 -0
  324. package/sparkdream/forum/v1/bounty.d.ts +65 -0
  325. package/sparkdream/forum/v1/bounty.js +186 -0
  326. package/sparkdream/forum/v1/category.d.ts +54 -0
  327. package/sparkdream/forum/v1/category.js +122 -0
  328. package/sparkdream/forum/v1/genesis.d.ts +135 -0
  329. package/sparkdream/forum/v1/genesis.js +519 -0
  330. package/sparkdream/forum/v1/gov_action_appeal.d.ts +69 -0
  331. package/sparkdream/forum/v1/gov_action_appeal.js +205 -0
  332. package/sparkdream/forum/v1/hide_record.d.ts +61 -0
  333. package/sparkdream/forum/v1/hide_record.js +157 -0
  334. package/sparkdream/forum/v1/jury_participation.d.ts +56 -0
  335. package/sparkdream/forum/v1/jury_participation.js +134 -0
  336. package/sparkdream/forum/v1/member_report.d.ts +67 -0
  337. package/sparkdream/forum/v1/member_report.js +222 -0
  338. package/sparkdream/forum/v1/member_salvation_status.d.ts +54 -0
  339. package/sparkdream/forum/v1/member_salvation_status.js +122 -0
  340. package/sparkdream/forum/v1/member_warning.d.ts +58 -0
  341. package/sparkdream/forum/v1/member_warning.js +159 -0
  342. package/sparkdream/forum/v1/params.d.ts +450 -0
  343. package/sparkdream/forum/v1/params.js +870 -0
  344. package/sparkdream/forum/v1/post.d.ts +102 -0
  345. package/sparkdream/forum/v1/post.js +400 -0
  346. package/sparkdream/forum/v1/post_flag.d.ts +106 -0
  347. package/sparkdream/forum/v1/post_flag.js +257 -0
  348. package/sparkdream/forum/v1/query.d.ts +7296 -0
  349. package/sparkdream/forum/v1/query.js +12476 -0
  350. package/sparkdream/forum/v1/query.lcd.d.ts +88 -0
  351. package/sparkdream/forum/v1/query.lcd.js +734 -0
  352. package/sparkdream/forum/v1/query.rpc.Query.d.ts +332 -0
  353. package/sparkdream/forum/v1/query.rpc.Query.js +804 -0
  354. package/sparkdream/forum/v1/sentinel_activity.d.ts +117 -0
  355. package/sparkdream/forum/v1/sentinel_activity.js +493 -0
  356. package/sparkdream/forum/v1/tag_budget.d.ts +58 -0
  357. package/sparkdream/forum/v1/tag_budget.js +146 -0
  358. package/sparkdream/forum/v1/tag_budget_award.d.ts +60 -0
  359. package/sparkdream/forum/v1/tag_budget_award.js +158 -0
  360. package/sparkdream/forum/v1/tag_report.d.ts +54 -0
  361. package/sparkdream/forum/v1/tag_report.js +125 -0
  362. package/sparkdream/forum/v1/thread_follow.d.ts +50 -0
  363. package/sparkdream/forum/v1/thread_follow.js +98 -0
  364. package/sparkdream/forum/v1/thread_follow_count.d.ts +48 -0
  365. package/sparkdream/forum/v1/thread_follow_count.js +86 -0
  366. package/sparkdream/forum/v1/thread_lock_record.d.ts +60 -0
  367. package/sparkdream/forum/v1/thread_lock_record.js +158 -0
  368. package/sparkdream/forum/v1/thread_metadata.d.ts +63 -0
  369. package/sparkdream/forum/v1/thread_metadata.js +187 -0
  370. package/sparkdream/forum/v1/thread_move_record.d.ts +64 -0
  371. package/sparkdream/forum/v1/thread_move_record.js +182 -0
  372. package/sparkdream/forum/v1/tx.amino.d.ts +253 -0
  373. package/sparkdream/forum/v1/tx.amino.js +257 -0
  374. package/sparkdream/forum/v1/tx.d.ts +4551 -0
  375. package/sparkdream/forum/v1/tx.js +7468 -0
  376. package/sparkdream/forum/v1/tx.registry.d.ts +613 -0
  377. package/sparkdream/forum/v1/tx.registry.js +919 -0
  378. package/sparkdream/forum/v1/tx.rpc.msg.d.ts +166 -0
  379. package/sparkdream/forum/v1/tx.rpc.msg.js +318 -0
  380. package/sparkdream/forum/v1/types.d.ts +221 -0
  381. package/sparkdream/forum/v1/types.js +777 -0
  382. package/sparkdream/forum/v1/user_rate_limit.d.ts +54 -0
  383. package/sparkdream/forum/v1/user_rate_limit.js +122 -0
  384. package/sparkdream/forum/v1/user_reaction_limit.d.ts +52 -0
  385. package/sparkdream/forum/v1/user_reaction_limit.js +110 -0
  386. package/sparkdream/futarchy/module/v1/module.d.ts +54 -0
  387. package/sparkdream/futarchy/module/v1/module.js +74 -0
  388. package/sparkdream/futarchy/v1/genesis.d.ts +56 -0
  389. package/sparkdream/futarchy/v1/genesis.js +91 -0
  390. package/sparkdream/futarchy/v1/market.d.ts +104 -0
  391. package/sparkdream/futarchy/v1/market.js +243 -0
  392. package/sparkdream/futarchy/v1/params.d.ts +171 -0
  393. package/sparkdream/futarchy/v1/params.js +244 -0
  394. package/sparkdream/futarchy/v1/query.d.ts +381 -0
  395. package/sparkdream/futarchy/v1/query.js +599 -0
  396. package/sparkdream/futarchy/v1/query.lcd.d.ts +12 -0
  397. package/sparkdream/futarchy/v1/query.lcd.js +49 -0
  398. package/sparkdream/futarchy/v1/query.rpc.Query.d.ts +28 -0
  399. package/sparkdream/futarchy/v1/query.rpc.Query.js +58 -0
  400. package/sparkdream/futarchy/v1/tx.amino.d.ts +38 -0
  401. package/sparkdream/futarchy/v1/tx.amino.js +42 -0
  402. package/sparkdream/futarchy/v1/tx.d.ts +688 -0
  403. package/sparkdream/futarchy/v1/tx.js +1100 -0
  404. package/sparkdream/futarchy/v1/tx.registry.d.ts +97 -0
  405. package/sparkdream/futarchy/v1/tx.registry.js +145 -0
  406. package/sparkdream/futarchy/v1/tx.rpc.msg.d.ts +37 -0
  407. package/sparkdream/futarchy/v1/tx.rpc.msg.js +60 -0
  408. package/sparkdream/lcd.d.ts +36 -0
  409. package/sparkdream/lcd.js +60 -0
  410. package/sparkdream/name/module/v1/module.d.ts +54 -0
  411. package/sparkdream/name/module/v1/module.js +74 -0
  412. package/sparkdream/name/v1/dispute.d.ts +216 -0
  413. package/sparkdream/name/v1/dispute.js +344 -0
  414. package/sparkdream/name/v1/genesis.d.ts +62 -0
  415. package/sparkdream/name/v1/genesis.js +123 -0
  416. package/sparkdream/name/v1/name_record.d.ts +50 -0
  417. package/sparkdream/name/v1/name_record.js +98 -0
  418. package/sparkdream/name/v1/owner_info.d.ts +50 -0
  419. package/sparkdream/name/v1/owner_info.js +98 -0
  420. package/sparkdream/name/v1/params.d.ts +165 -0
  421. package/sparkdream/name/v1/params.js +309 -0
  422. package/sparkdream/name/v1/query.d.ts +544 -0
  423. package/sparkdream/name/v1/query.js +866 -0
  424. package/sparkdream/name/v1/query.lcd.d.ts +14 -0
  425. package/sparkdream/name/v1/query.lcd.js +56 -0
  426. package/sparkdream/name/v1/query.rpc.Query.d.ts +36 -0
  427. package/sparkdream/name/v1/query.rpc.Query.js +76 -0
  428. package/sparkdream/name/v1/tx.amino.d.ts +43 -0
  429. package/sparkdream/name/v1/tx.amino.js +47 -0
  430. package/sparkdream/name/v1/tx.d.ts +804 -0
  431. package/sparkdream/name/v1/tx.js +1225 -0
  432. package/sparkdream/name/v1/tx.registry.d.ts +109 -0
  433. package/sparkdream/name/v1/tx.registry.js +163 -0
  434. package/sparkdream/name/v1/tx.rpc.msg.d.ts +43 -0
  435. package/sparkdream/name/v1/tx.rpc.msg.js +67 -0
  436. package/sparkdream/rep/module/v1/module.d.ts +54 -0
  437. package/sparkdream/rep/module/v1/module.js +74 -0
  438. package/sparkdream/rep/v1/challenge.d.ts +74 -0
  439. package/sparkdream/rep/v1/challenge.js +231 -0
  440. package/sparkdream/rep/v1/content_challenge.d.ts +154 -0
  441. package/sparkdream/rep/v1/content_challenge.js +308 -0
  442. package/sparkdream/rep/v1/genesis.d.ts +185 -0
  443. package/sparkdream/rep/v1/genesis.js +484 -0
  444. package/sparkdream/rep/v1/initiative.d.ts +140 -0
  445. package/sparkdream/rep/v1/initiative.js +567 -0
  446. package/sparkdream/rep/v1/interim.d.ts +163 -0
  447. package/sparkdream/rep/v1/interim.js +435 -0
  448. package/sparkdream/rep/v1/interim_template.d.ts +114 -0
  449. package/sparkdream/rep/v1/interim_template.js +296 -0
  450. package/sparkdream/rep/v1/invitation.d.ts +78 -0
  451. package/sparkdream/rep/v1/invitation.js +256 -0
  452. package/sparkdream/rep/v1/jury_review.d.ts +235 -0
  453. package/sparkdream/rep/v1/jury_review.js +640 -0
  454. package/sparkdream/rep/v1/member.d.ts +408 -0
  455. package/sparkdream/rep/v1/member.js +864 -0
  456. package/sparkdream/rep/v1/params.d.ts +730 -0
  457. package/sparkdream/rep/v1/params.js +1822 -0
  458. package/sparkdream/rep/v1/project.d.ts +162 -0
  459. package/sparkdream/rep/v1/project.js +554 -0
  460. package/sparkdream/rep/v1/query.d.ts +4030 -0
  461. package/sparkdream/rep/v1/query.js +6900 -0
  462. package/sparkdream/rep/v1/query.lcd.d.ts +51 -0
  463. package/sparkdream/rep/v1/query.lcd.js +381 -0
  464. package/sparkdream/rep/v1/query.rpc.Query.d.ts +184 -0
  465. package/sparkdream/rep/v1/query.rpc.Query.js +429 -0
  466. package/sparkdream/rep/v1/stake.d.ts +266 -0
  467. package/sparkdream/rep/v1/stake.js +580 -0
  468. package/sparkdream/rep/v1/tx.amino.d.ts +158 -0
  469. package/sparkdream/rep/v1/tx.amino.js +162 -0
  470. package/sparkdream/rep/v1/tx.d.ts +2940 -0
  471. package/sparkdream/rep/v1/tx.js +5204 -0
  472. package/sparkdream/rep/v1/tx.registry.d.ts +385 -0
  473. package/sparkdream/rep/v1/tx.registry.js +577 -0
  474. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +109 -0
  475. package/sparkdream/rep/v1/tx.rpc.msg.js +204 -0
  476. package/sparkdream/reveal/module/v1/module.d.ts +54 -0
  477. package/sparkdream/reveal/module/v1/module.js +74 -0
  478. package/sparkdream/reveal/v1/genesis.d.ts +64 -0
  479. package/sparkdream/reveal/v1/genesis.js +145 -0
  480. package/sparkdream/reveal/v1/params.d.ts +140 -0
  481. package/sparkdream/reveal/v1/params.js +238 -0
  482. package/sparkdream/reveal/v1/query.d.ts +949 -0
  483. package/sparkdream/reveal/v1/query.js +1703 -0
  484. package/sparkdream/reveal/v1/query.lcd.d.ts +19 -0
  485. package/sparkdream/reveal/v1/query.lcd.js +105 -0
  486. package/sparkdream/reveal/v1/query.rpc.Query.d.ts +56 -0
  487. package/sparkdream/reveal/v1/query.rpc.Query.js +121 -0
  488. package/sparkdream/reveal/v1/tx.amino.d.ts +53 -0
  489. package/sparkdream/reveal/v1/tx.amino.js +57 -0
  490. package/sparkdream/reveal/v1/tx.d.ts +1043 -0
  491. package/sparkdream/reveal/v1/tx.js +1702 -0
  492. package/sparkdream/reveal/v1/tx.registry.d.ts +133 -0
  493. package/sparkdream/reveal/v1/tx.registry.js +199 -0
  494. package/sparkdream/reveal/v1/tx.rpc.msg.d.ts +43 -0
  495. package/sparkdream/reveal/v1/tx.rpc.msg.js +77 -0
  496. package/sparkdream/reveal/v1/types.d.ts +455 -0
  497. package/sparkdream/reveal/v1/types.js +1150 -0
  498. package/sparkdream/rpc.query.d.ts +328 -0
  499. package/sparkdream/rpc.query.js +36 -0
  500. package/sparkdream/rpc.tx.d.ts +36 -0
  501. package/sparkdream/rpc.tx.js +36 -0
  502. package/sparkdream/season/module/v1/module.d.ts +54 -0
  503. package/sparkdream/season/module/v1/module.js +74 -0
  504. package/sparkdream/season/v1/achievement.d.ts +101 -0
  505. package/sparkdream/season/v1/achievement.js +145 -0
  506. package/sparkdream/season/v1/display_name_appeal_stake.d.ts +68 -0
  507. package/sparkdream/season/v1/display_name_appeal_stake.js +98 -0
  508. package/sparkdream/season/v1/display_name_moderation.d.ts +60 -0
  509. package/sparkdream/season/v1/display_name_moderation.js +158 -0
  510. package/sparkdream/season/v1/display_name_report_stake.d.ts +68 -0
  511. package/sparkdream/season/v1/display_name_report_stake.js +98 -0
  512. package/sparkdream/season/v1/enums.d.ts +86 -0
  513. package/sparkdream/season/v1/enums.js +406 -0
  514. package/sparkdream/season/v1/epoch_xp_tracker.d.ts +54 -0
  515. package/sparkdream/season/v1/epoch_xp_tracker.js +122 -0
  516. package/sparkdream/season/v1/forum_xp_cooldown.d.ts +48 -0
  517. package/sparkdream/season/v1/forum_xp_cooldown.js +86 -0
  518. package/sparkdream/season/v1/genesis.d.ts +136 -0
  519. package/sparkdream/season/v1/genesis.js +485 -0
  520. package/sparkdream/season/v1/guild.d.ts +117 -0
  521. package/sparkdream/season/v1/guild.js +175 -0
  522. package/sparkdream/season/v1/guild_invite.d.ts +52 -0
  523. package/sparkdream/season/v1/guild_invite.js +110 -0
  524. package/sparkdream/season/v1/guild_membership.d.ts +54 -0
  525. package/sparkdream/season/v1/guild_membership.js +122 -0
  526. package/sparkdream/season/v1/member_profile.d.ts +196 -0
  527. package/sparkdream/season/v1/member_profile.js +299 -0
  528. package/sparkdream/season/v1/member_quest_progress.d.ts +84 -0
  529. package/sparkdream/season/v1/member_quest_progress.js +135 -0
  530. package/sparkdream/season/v1/member_registration.d.ts +48 -0
  531. package/sparkdream/season/v1/member_registration.js +86 -0
  532. package/sparkdream/season/v1/member_season_snapshot.d.ts +145 -0
  533. package/sparkdream/season/v1/member_season_snapshot.js +241 -0
  534. package/sparkdream/season/v1/next_season_info.d.ts +48 -0
  535. package/sparkdream/season/v1/next_season_info.js +86 -0
  536. package/sparkdream/season/v1/nomination.d.ts +194 -0
  537. package/sparkdream/season/v1/nomination.js +431 -0
  538. package/sparkdream/season/v1/params.d.ts +611 -0
  539. package/sparkdream/season/v1/params.js +1600 -0
  540. package/sparkdream/season/v1/query.d.ts +6199 -0
  541. package/sparkdream/season/v1/query.js +10574 -0
  542. package/sparkdream/season/v1/query.lcd.d.ts +76 -0
  543. package/sparkdream/season/v1/query.lcd.js +602 -0
  544. package/sparkdream/season/v1/query.rpc.Query.d.ts +284 -0
  545. package/sparkdream/season/v1/query.rpc.Query.js +678 -0
  546. package/sparkdream/season/v1/quest.d.ts +231 -0
  547. package/sparkdream/season/v1/quest.js +337 -0
  548. package/sparkdream/season/v1/season.d.ts +117 -0
  549. package/sparkdream/season/v1/season.js +169 -0
  550. package/sparkdream/season/v1/season_snapshot.d.ts +48 -0
  551. package/sparkdream/season/v1/season_snapshot.js +86 -0
  552. package/sparkdream/season/v1/season_title_eligibility.d.ts +134 -0
  553. package/sparkdream/season/v1/season_title_eligibility.js +197 -0
  554. package/sparkdream/season/v1/season_transition_state.d.ts +93 -0
  555. package/sparkdream/season/v1/season_transition_state.js +133 -0
  556. package/sparkdream/season/v1/title.d.ts +109 -0
  557. package/sparkdream/season/v1/title.js +157 -0
  558. package/sparkdream/season/v1/transition_recovery_state.d.ts +85 -0
  559. package/sparkdream/season/v1/transition_recovery_state.js +121 -0
  560. package/sparkdream/season/v1/tx.amino.d.ts +218 -0
  561. package/sparkdream/season/v1/tx.amino.js +222 -0
  562. package/sparkdream/season/v1/tx.d.ts +4133 -0
  563. package/sparkdream/season/v1/tx.js +6827 -0
  564. package/sparkdream/season/v1/tx.registry.d.ts +529 -0
  565. package/sparkdream/season/v1/tx.registry.js +793 -0
  566. package/sparkdream/season/v1/tx.rpc.msg.d.ts +144 -0
  567. package/sparkdream/season/v1/tx.rpc.msg.js +277 -0
  568. package/sparkdream/season/v1/vote_xp_record.d.ts +48 -0
  569. package/sparkdream/season/v1/vote_xp_record.js +86 -0
  570. package/sparkdream/session/module/v1/module.d.ts +54 -0
  571. package/sparkdream/session/module/v1/module.js +74 -0
  572. package/sparkdream/session/v1/genesis.d.ts +62 -0
  573. package/sparkdream/session/v1/genesis.js +91 -0
  574. package/sparkdream/session/v1/params.d.ts +168 -0
  575. package/sparkdream/session/v1/params.js +278 -0
  576. package/sparkdream/session/v1/query.d.ts +423 -0
  577. package/sparkdream/session/v1/query.js +746 -0
  578. package/sparkdream/session/v1/query.lcd.d.ts +13 -0
  579. package/sparkdream/session/v1/query.lcd.js +49 -0
  580. package/sparkdream/session/v1/query.rpc.Query.d.ts +32 -0
  581. package/sparkdream/session/v1/query.rpc.Query.js +65 -0
  582. package/sparkdream/session/v1/session.d.ts +125 -0
  583. package/sparkdream/session/v1/session.js +188 -0
  584. package/sparkdream/session/v1/tx.amino.d.ts +28 -0
  585. package/sparkdream/session/v1/tx.amino.js +32 -0
  586. package/sparkdream/session/v1/tx.d.ts +481 -0
  587. package/sparkdream/session/v1/tx.js +771 -0
  588. package/sparkdream/session/v1/tx.registry.d.ts +73 -0
  589. package/sparkdream/session/v1/tx.registry.js +109 -0
  590. package/sparkdream/session/v1/tx.rpc.msg.d.ts +31 -0
  591. package/sparkdream/session/v1/tx.rpc.msg.js +48 -0
  592. package/sparkdream/shield/module/v1/module.d.ts +54 -0
  593. package/sparkdream/shield/module/v1/module.js +74 -0
  594. package/sparkdream/shield/v1/genesis.d.ts +182 -0
  595. package/sparkdream/shield/v1/genesis.js +304 -0
  596. package/sparkdream/shield/v1/params.d.ts +192 -0
  597. package/sparkdream/shield/v1/params.js +285 -0
  598. package/sparkdream/shield/v1/query.d.ts +1406 -0
  599. package/sparkdream/shield/v1/query.js +2326 -0
  600. package/sparkdream/shield/v1/query.lcd.d.ts +25 -0
  601. package/sparkdream/shield/v1/query.lcd.js +114 -0
  602. package/sparkdream/shield/v1/query.rpc.Query.d.ts +80 -0
  603. package/sparkdream/shield/v1/query.rpc.Query.js +175 -0
  604. package/sparkdream/shield/v1/tx.amino.d.ts +28 -0
  605. package/sparkdream/shield/v1/tx.amino.js +32 -0
  606. package/sparkdream/shield/v1/tx.d.ts +542 -0
  607. package/sparkdream/shield/v1/tx.js +841 -0
  608. package/sparkdream/shield/v1/tx.registry.d.ts +73 -0
  609. package/sparkdream/shield/v1/tx.registry.js +109 -0
  610. package/sparkdream/shield/v1/tx.rpc.msg.d.ts +29 -0
  611. package/sparkdream/shield/v1/tx.rpc.msg.js +48 -0
  612. package/sparkdream/shield/v1/types.d.ts +1412 -0
  613. package/sparkdream/shield/v1/types.js +2398 -0
  614. package/sparkdream/split/module/v1/module.d.ts +54 -0
  615. package/sparkdream/split/module/v1/module.js +74 -0
  616. package/sparkdream/split/v1/genesis.d.ts +56 -0
  617. package/sparkdream/split/v1/genesis.js +91 -0
  618. package/sparkdream/split/v1/params.d.ts +46 -0
  619. package/sparkdream/split/v1/params.js +68 -0
  620. package/sparkdream/split/v1/query.d.ts +275 -0
  621. package/sparkdream/split/v1/query.js +424 -0
  622. package/sparkdream/split/v1/query.lcd.d.ts +11 -0
  623. package/sparkdream/split/v1/query.lcd.js +35 -0
  624. package/sparkdream/split/v1/query.rpc.Query.d.ts +24 -0
  625. package/sparkdream/split/v1/query.rpc.Query.js +49 -0
  626. package/sparkdream/split/v1/share.d.ts +48 -0
  627. package/sparkdream/split/v1/share.js +86 -0
  628. package/sparkdream/split/v1/tx.amino.d.ts +8 -0
  629. package/sparkdream/split/v1/tx.amino.js +12 -0
  630. package/sparkdream/split/v1/tx.d.ts +108 -0
  631. package/sparkdream/split/v1/tx.js +151 -0
  632. package/sparkdream/split/v1/tx.registry.d.ts +25 -0
  633. package/sparkdream/split/v1/tx.registry.js +37 -0
  634. package/sparkdream/split/v1/tx.rpc.msg.d.ts +16 -0
  635. package/sparkdream/split/v1/tx.rpc.msg.js +23 -0
  636. package/tendermint/bundle.d.ts +844 -844
  637. package/tendermint/bundle.js +20 -20
@@ -0,0 +1,1822 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RepOperationalParams = exports.Params = exports.TrustLevelConfig = exports.TierConfig = void 0;
4
+ //@ts-nocheck
5
+ const binary_1 = require("../../../binary");
6
+ const math_1 = require("@interchainjs/math");
7
+ function createBaseTierConfig() {
8
+ return {
9
+ maxBudget: "",
10
+ minReputation: "",
11
+ reputationCap: "",
12
+ rewardMultiplier: ""
13
+ };
14
+ }
15
+ /**
16
+ * TierConfig defines configuration for an initiative tier
17
+ * @name TierConfig
18
+ * @package sparkdream.rep.v1
19
+ * @see proto type: sparkdream.rep.v1.TierConfig
20
+ */
21
+ exports.TierConfig = {
22
+ typeUrl: "/sparkdream.rep.v1.TierConfig",
23
+ encode(message, writer = binary_1.BinaryWriter.create()) {
24
+ if (message.maxBudget !== "") {
25
+ writer.uint32(10).string(message.maxBudget);
26
+ }
27
+ if (message.minReputation !== "") {
28
+ writer.uint32(18).string(math_1.Decimal.fromUserInput(message.minReputation, 18).atomics);
29
+ }
30
+ if (message.reputationCap !== "") {
31
+ writer.uint32(26).string(math_1.Decimal.fromUserInput(message.reputationCap, 18).atomics);
32
+ }
33
+ if (message.rewardMultiplier !== "") {
34
+ writer.uint32(34).string(math_1.Decimal.fromUserInput(message.rewardMultiplier, 18).atomics);
35
+ }
36
+ return writer;
37
+ },
38
+ decode(input, length) {
39
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
40
+ let end = length === undefined ? reader.len : reader.pos + length;
41
+ const message = createBaseTierConfig();
42
+ while (reader.pos < end) {
43
+ const tag = reader.uint32();
44
+ switch (tag >>> 3) {
45
+ case 1:
46
+ message.maxBudget = reader.string();
47
+ break;
48
+ case 2:
49
+ message.minReputation = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
50
+ break;
51
+ case 3:
52
+ message.reputationCap = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
53
+ break;
54
+ case 4:
55
+ message.rewardMultiplier = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
56
+ break;
57
+ default:
58
+ reader.skipType(tag & 7);
59
+ break;
60
+ }
61
+ }
62
+ return message;
63
+ },
64
+ fromPartial(object) {
65
+ const message = createBaseTierConfig();
66
+ message.maxBudget = object.maxBudget ?? "";
67
+ message.minReputation = object.minReputation ?? "";
68
+ message.reputationCap = object.reputationCap ?? "";
69
+ message.rewardMultiplier = object.rewardMultiplier ?? "";
70
+ return message;
71
+ },
72
+ fromAmino(object) {
73
+ const message = createBaseTierConfig();
74
+ if (object.max_budget !== undefined && object.max_budget !== null) {
75
+ message.maxBudget = object.max_budget;
76
+ }
77
+ if (object.min_reputation !== undefined && object.min_reputation !== null) {
78
+ message.minReputation = object.min_reputation;
79
+ }
80
+ if (object.reputation_cap !== undefined && object.reputation_cap !== null) {
81
+ message.reputationCap = object.reputation_cap;
82
+ }
83
+ if (object.reward_multiplier !== undefined && object.reward_multiplier !== null) {
84
+ message.rewardMultiplier = object.reward_multiplier;
85
+ }
86
+ return message;
87
+ },
88
+ toAmino(message) {
89
+ const obj = {};
90
+ obj.max_budget = message.maxBudget === "" ? undefined : message.maxBudget;
91
+ obj.min_reputation = message.minReputation === "" ? undefined : message.minReputation;
92
+ obj.reputation_cap = message.reputationCap === "" ? undefined : message.reputationCap;
93
+ obj.reward_multiplier = message.rewardMultiplier === "" ? undefined : message.rewardMultiplier;
94
+ return obj;
95
+ },
96
+ fromAminoMsg(object) {
97
+ return exports.TierConfig.fromAmino(object.value);
98
+ },
99
+ fromProtoMsg(message) {
100
+ return exports.TierConfig.decode(message.value);
101
+ },
102
+ toProto(message) {
103
+ return exports.TierConfig.encode(message).finish();
104
+ },
105
+ toProtoMsg(message) {
106
+ return {
107
+ typeUrl: "/sparkdream.rep.v1.TierConfig",
108
+ value: exports.TierConfig.encode(message).finish()
109
+ };
110
+ }
111
+ };
112
+ function createBaseTrustLevelConfig() {
113
+ return {
114
+ provisionalMinRep: "",
115
+ provisionalMinInterims: 0,
116
+ establishedMinRep: "",
117
+ establishedMinInterims: 0,
118
+ trustedMinRep: "",
119
+ trustedMinSeasons: 0,
120
+ coreMinRep: "",
121
+ coreMinSeasons: 0,
122
+ newInvitationCredits: 0,
123
+ provisionalInvitationCredits: 0,
124
+ establishedInvitationCredits: 0,
125
+ trustedInvitationCredits: 0,
126
+ coreInvitationCredits: 0
127
+ };
128
+ }
129
+ /**
130
+ * TrustLevelConfig defines thresholds for trust level progression
131
+ * @name TrustLevelConfig
132
+ * @package sparkdream.rep.v1
133
+ * @see proto type: sparkdream.rep.v1.TrustLevelConfig
134
+ */
135
+ exports.TrustLevelConfig = {
136
+ typeUrl: "/sparkdream.rep.v1.TrustLevelConfig",
137
+ encode(message, writer = binary_1.BinaryWriter.create()) {
138
+ if (message.provisionalMinRep !== "") {
139
+ writer.uint32(10).string(math_1.Decimal.fromUserInput(message.provisionalMinRep, 18).atomics);
140
+ }
141
+ if (message.provisionalMinInterims !== 0) {
142
+ writer.uint32(16).uint32(message.provisionalMinInterims);
143
+ }
144
+ if (message.establishedMinRep !== "") {
145
+ writer.uint32(26).string(math_1.Decimal.fromUserInput(message.establishedMinRep, 18).atomics);
146
+ }
147
+ if (message.establishedMinInterims !== 0) {
148
+ writer.uint32(32).uint32(message.establishedMinInterims);
149
+ }
150
+ if (message.trustedMinRep !== "") {
151
+ writer.uint32(42).string(math_1.Decimal.fromUserInput(message.trustedMinRep, 18).atomics);
152
+ }
153
+ if (message.trustedMinSeasons !== 0) {
154
+ writer.uint32(48).uint32(message.trustedMinSeasons);
155
+ }
156
+ if (message.coreMinRep !== "") {
157
+ writer.uint32(58).string(math_1.Decimal.fromUserInput(message.coreMinRep, 18).atomics);
158
+ }
159
+ if (message.coreMinSeasons !== 0) {
160
+ writer.uint32(64).uint32(message.coreMinSeasons);
161
+ }
162
+ if (message.newInvitationCredits !== 0) {
163
+ writer.uint32(72).uint32(message.newInvitationCredits);
164
+ }
165
+ if (message.provisionalInvitationCredits !== 0) {
166
+ writer.uint32(80).uint32(message.provisionalInvitationCredits);
167
+ }
168
+ if (message.establishedInvitationCredits !== 0) {
169
+ writer.uint32(88).uint32(message.establishedInvitationCredits);
170
+ }
171
+ if (message.trustedInvitationCredits !== 0) {
172
+ writer.uint32(96).uint32(message.trustedInvitationCredits);
173
+ }
174
+ if (message.coreInvitationCredits !== 0) {
175
+ writer.uint32(104).uint32(message.coreInvitationCredits);
176
+ }
177
+ return writer;
178
+ },
179
+ decode(input, length) {
180
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
181
+ let end = length === undefined ? reader.len : reader.pos + length;
182
+ const message = createBaseTrustLevelConfig();
183
+ while (reader.pos < end) {
184
+ const tag = reader.uint32();
185
+ switch (tag >>> 3) {
186
+ case 1:
187
+ message.provisionalMinRep = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
188
+ break;
189
+ case 2:
190
+ message.provisionalMinInterims = reader.uint32();
191
+ break;
192
+ case 3:
193
+ message.establishedMinRep = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
194
+ break;
195
+ case 4:
196
+ message.establishedMinInterims = reader.uint32();
197
+ break;
198
+ case 5:
199
+ message.trustedMinRep = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
200
+ break;
201
+ case 6:
202
+ message.trustedMinSeasons = reader.uint32();
203
+ break;
204
+ case 7:
205
+ message.coreMinRep = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
206
+ break;
207
+ case 8:
208
+ message.coreMinSeasons = reader.uint32();
209
+ break;
210
+ case 9:
211
+ message.newInvitationCredits = reader.uint32();
212
+ break;
213
+ case 10:
214
+ message.provisionalInvitationCredits = reader.uint32();
215
+ break;
216
+ case 11:
217
+ message.establishedInvitationCredits = reader.uint32();
218
+ break;
219
+ case 12:
220
+ message.trustedInvitationCredits = reader.uint32();
221
+ break;
222
+ case 13:
223
+ message.coreInvitationCredits = reader.uint32();
224
+ break;
225
+ default:
226
+ reader.skipType(tag & 7);
227
+ break;
228
+ }
229
+ }
230
+ return message;
231
+ },
232
+ fromPartial(object) {
233
+ const message = createBaseTrustLevelConfig();
234
+ message.provisionalMinRep = object.provisionalMinRep ?? "";
235
+ message.provisionalMinInterims = object.provisionalMinInterims ?? 0;
236
+ message.establishedMinRep = object.establishedMinRep ?? "";
237
+ message.establishedMinInterims = object.establishedMinInterims ?? 0;
238
+ message.trustedMinRep = object.trustedMinRep ?? "";
239
+ message.trustedMinSeasons = object.trustedMinSeasons ?? 0;
240
+ message.coreMinRep = object.coreMinRep ?? "";
241
+ message.coreMinSeasons = object.coreMinSeasons ?? 0;
242
+ message.newInvitationCredits = object.newInvitationCredits ?? 0;
243
+ message.provisionalInvitationCredits = object.provisionalInvitationCredits ?? 0;
244
+ message.establishedInvitationCredits = object.establishedInvitationCredits ?? 0;
245
+ message.trustedInvitationCredits = object.trustedInvitationCredits ?? 0;
246
+ message.coreInvitationCredits = object.coreInvitationCredits ?? 0;
247
+ return message;
248
+ },
249
+ fromAmino(object) {
250
+ const message = createBaseTrustLevelConfig();
251
+ if (object.provisional_min_rep !== undefined && object.provisional_min_rep !== null) {
252
+ message.provisionalMinRep = object.provisional_min_rep;
253
+ }
254
+ if (object.provisional_min_interims !== undefined && object.provisional_min_interims !== null) {
255
+ message.provisionalMinInterims = object.provisional_min_interims;
256
+ }
257
+ if (object.established_min_rep !== undefined && object.established_min_rep !== null) {
258
+ message.establishedMinRep = object.established_min_rep;
259
+ }
260
+ if (object.established_min_interims !== undefined && object.established_min_interims !== null) {
261
+ message.establishedMinInterims = object.established_min_interims;
262
+ }
263
+ if (object.trusted_min_rep !== undefined && object.trusted_min_rep !== null) {
264
+ message.trustedMinRep = object.trusted_min_rep;
265
+ }
266
+ if (object.trusted_min_seasons !== undefined && object.trusted_min_seasons !== null) {
267
+ message.trustedMinSeasons = object.trusted_min_seasons;
268
+ }
269
+ if (object.core_min_rep !== undefined && object.core_min_rep !== null) {
270
+ message.coreMinRep = object.core_min_rep;
271
+ }
272
+ if (object.core_min_seasons !== undefined && object.core_min_seasons !== null) {
273
+ message.coreMinSeasons = object.core_min_seasons;
274
+ }
275
+ if (object.new_invitation_credits !== undefined && object.new_invitation_credits !== null) {
276
+ message.newInvitationCredits = object.new_invitation_credits;
277
+ }
278
+ if (object.provisional_invitation_credits !== undefined && object.provisional_invitation_credits !== null) {
279
+ message.provisionalInvitationCredits = object.provisional_invitation_credits;
280
+ }
281
+ if (object.established_invitation_credits !== undefined && object.established_invitation_credits !== null) {
282
+ message.establishedInvitationCredits = object.established_invitation_credits;
283
+ }
284
+ if (object.trusted_invitation_credits !== undefined && object.trusted_invitation_credits !== null) {
285
+ message.trustedInvitationCredits = object.trusted_invitation_credits;
286
+ }
287
+ if (object.core_invitation_credits !== undefined && object.core_invitation_credits !== null) {
288
+ message.coreInvitationCredits = object.core_invitation_credits;
289
+ }
290
+ return message;
291
+ },
292
+ toAmino(message) {
293
+ const obj = {};
294
+ obj.provisional_min_rep = message.provisionalMinRep === "" ? undefined : message.provisionalMinRep;
295
+ obj.provisional_min_interims = message.provisionalMinInterims === 0 ? undefined : message.provisionalMinInterims;
296
+ obj.established_min_rep = message.establishedMinRep === "" ? undefined : message.establishedMinRep;
297
+ obj.established_min_interims = message.establishedMinInterims === 0 ? undefined : message.establishedMinInterims;
298
+ obj.trusted_min_rep = message.trustedMinRep === "" ? undefined : message.trustedMinRep;
299
+ obj.trusted_min_seasons = message.trustedMinSeasons === 0 ? undefined : message.trustedMinSeasons;
300
+ obj.core_min_rep = message.coreMinRep === "" ? undefined : message.coreMinRep;
301
+ obj.core_min_seasons = message.coreMinSeasons === 0 ? undefined : message.coreMinSeasons;
302
+ obj.new_invitation_credits = message.newInvitationCredits === 0 ? undefined : message.newInvitationCredits;
303
+ obj.provisional_invitation_credits = message.provisionalInvitationCredits === 0 ? undefined : message.provisionalInvitationCredits;
304
+ obj.established_invitation_credits = message.establishedInvitationCredits === 0 ? undefined : message.establishedInvitationCredits;
305
+ obj.trusted_invitation_credits = message.trustedInvitationCredits === 0 ? undefined : message.trustedInvitationCredits;
306
+ obj.core_invitation_credits = message.coreInvitationCredits === 0 ? undefined : message.coreInvitationCredits;
307
+ return obj;
308
+ },
309
+ fromAminoMsg(object) {
310
+ return exports.TrustLevelConfig.fromAmino(object.value);
311
+ },
312
+ fromProtoMsg(message) {
313
+ return exports.TrustLevelConfig.decode(message.value);
314
+ },
315
+ toProto(message) {
316
+ return exports.TrustLevelConfig.encode(message).finish();
317
+ },
318
+ toProtoMsg(message) {
319
+ return {
320
+ typeUrl: "/sparkdream.rep.v1.TrustLevelConfig",
321
+ value: exports.TrustLevelConfig.encode(message).finish()
322
+ };
323
+ }
324
+ };
325
+ function createBaseParams() {
326
+ return {
327
+ epochBlocks: BigInt(0),
328
+ seasonDurationEpochs: BigInt(0),
329
+ stakingApy: "",
330
+ unstakedDecayRate: "",
331
+ transferTaxRate: "",
332
+ maxTipAmount: "",
333
+ maxTipsPerEpoch: 0,
334
+ maxGiftAmount: "",
335
+ giftOnlyToInvitees: false,
336
+ completerShare: "",
337
+ treasuryShare: "",
338
+ minReputationMultiplier: "",
339
+ apprenticeTier: exports.TierConfig.fromPartial({}),
340
+ standardTier: exports.TierConfig.fromPartial({}),
341
+ expertTier: exports.TierConfig.fromPartial({}),
342
+ epicTier: exports.TierConfig.fromPartial({}),
343
+ convictionHalfLifeEpochs: BigInt(0),
344
+ externalConvictionRatio: "",
345
+ convictionPerDream: "",
346
+ defaultReviewPeriodEpochs: BigInt(0),
347
+ defaultChallengePeriodEpochs: BigInt(0),
348
+ minInvitationStake: "",
349
+ invitationAccountabilityEpochs: BigInt(0),
350
+ referralRewardRate: "",
351
+ invitationCostMultiplier: "",
352
+ trustLevelConfig: exports.TrustLevelConfig.fromPartial({}),
353
+ minChallengeStake: "",
354
+ challengerRewardRate: "",
355
+ jurySize: 0,
356
+ jurySuperMajority: "",
357
+ minJurorReputation: "",
358
+ simpleComplexityBudget: "",
359
+ standardComplexityBudget: "",
360
+ complexComplexityBudget: "",
361
+ expertComplexityBudget: "",
362
+ soloExpertBonusRate: "",
363
+ interimDeadlineEpochs: BigInt(0),
364
+ maxActiveChallengesPerCommittee: 0,
365
+ maxNewChallengesPerEpoch: 0,
366
+ challengeQueueMaxSize: 0,
367
+ minorSlashPenalty: "",
368
+ moderateSlashPenalty: "",
369
+ severeSlashPenalty: "",
370
+ zeroingSlashPenalty: "",
371
+ projectStakingApy: "",
372
+ projectCompletionBonusRate: "",
373
+ memberStakeRevenueShare: "",
374
+ tagStakeRevenueShare: "",
375
+ minStakeDurationSeconds: BigInt(0),
376
+ allowSelfMemberStake: false,
377
+ challengeResponseDeadlineEpochs: BigInt(0),
378
+ giftCooldownBlocks: BigInt(0),
379
+ maxGiftsPerSenderEpoch: "",
380
+ contentConvictionHalfLifeEpochs: BigInt(0),
381
+ maxContentStakePerMember: "",
382
+ maxAuthorBondPerContent: "",
383
+ authorBondSlashOnModeration: false,
384
+ contentChallengeRewardShare: "",
385
+ convictionPropagationRatio: "",
386
+ maxTagsPerInitiative: 0,
387
+ reputationDecayRate: "",
388
+ maxConvictionSharePerMember: "",
389
+ invitationStakeBurnRate: "",
390
+ maxReputationGainPerEpoch: ""
391
+ };
392
+ }
393
+ /**
394
+ * Params defines the parameters for the module.
395
+ * @name Params
396
+ * @package sparkdream.rep.v1
397
+ * @see proto type: sparkdream.rep.v1.Params
398
+ */
399
+ exports.Params = {
400
+ typeUrl: "/sparkdream.rep.v1.Params",
401
+ aminoType: "sparkdream/x/rep/Params",
402
+ encode(message, writer = binary_1.BinaryWriter.create()) {
403
+ if (message.epochBlocks !== BigInt(0)) {
404
+ writer.uint32(8).int64(message.epochBlocks);
405
+ }
406
+ if (message.seasonDurationEpochs !== BigInt(0)) {
407
+ writer.uint32(16).int64(message.seasonDurationEpochs);
408
+ }
409
+ if (message.stakingApy !== "") {
410
+ writer.uint32(26).string(math_1.Decimal.fromUserInput(message.stakingApy, 18).atomics);
411
+ }
412
+ if (message.unstakedDecayRate !== "") {
413
+ writer.uint32(34).string(math_1.Decimal.fromUserInput(message.unstakedDecayRate, 18).atomics);
414
+ }
415
+ if (message.transferTaxRate !== "") {
416
+ writer.uint32(42).string(math_1.Decimal.fromUserInput(message.transferTaxRate, 18).atomics);
417
+ }
418
+ if (message.maxTipAmount !== "") {
419
+ writer.uint32(50).string(message.maxTipAmount);
420
+ }
421
+ if (message.maxTipsPerEpoch !== 0) {
422
+ writer.uint32(56).uint32(message.maxTipsPerEpoch);
423
+ }
424
+ if (message.maxGiftAmount !== "") {
425
+ writer.uint32(66).string(message.maxGiftAmount);
426
+ }
427
+ if (message.giftOnlyToInvitees === true) {
428
+ writer.uint32(72).bool(message.giftOnlyToInvitees);
429
+ }
430
+ if (message.completerShare !== "") {
431
+ writer.uint32(82).string(math_1.Decimal.fromUserInput(message.completerShare, 18).atomics);
432
+ }
433
+ if (message.treasuryShare !== "") {
434
+ writer.uint32(90).string(math_1.Decimal.fromUserInput(message.treasuryShare, 18).atomics);
435
+ }
436
+ if (message.minReputationMultiplier !== "") {
437
+ writer.uint32(98).string(math_1.Decimal.fromUserInput(message.minReputationMultiplier, 18).atomics);
438
+ }
439
+ if (message.apprenticeTier !== undefined) {
440
+ exports.TierConfig.encode(message.apprenticeTier, writer.uint32(106).fork()).ldelim();
441
+ }
442
+ if (message.standardTier !== undefined) {
443
+ exports.TierConfig.encode(message.standardTier, writer.uint32(114).fork()).ldelim();
444
+ }
445
+ if (message.expertTier !== undefined) {
446
+ exports.TierConfig.encode(message.expertTier, writer.uint32(122).fork()).ldelim();
447
+ }
448
+ if (message.epicTier !== undefined) {
449
+ exports.TierConfig.encode(message.epicTier, writer.uint32(130).fork()).ldelim();
450
+ }
451
+ if (message.convictionHalfLifeEpochs !== BigInt(0)) {
452
+ writer.uint32(136).int64(message.convictionHalfLifeEpochs);
453
+ }
454
+ if (message.externalConvictionRatio !== "") {
455
+ writer.uint32(146).string(math_1.Decimal.fromUserInput(message.externalConvictionRatio, 18).atomics);
456
+ }
457
+ if (message.convictionPerDream !== "") {
458
+ writer.uint32(154).string(math_1.Decimal.fromUserInput(message.convictionPerDream, 18).atomics);
459
+ }
460
+ if (message.defaultReviewPeriodEpochs !== BigInt(0)) {
461
+ writer.uint32(160).int64(message.defaultReviewPeriodEpochs);
462
+ }
463
+ if (message.defaultChallengePeriodEpochs !== BigInt(0)) {
464
+ writer.uint32(168).int64(message.defaultChallengePeriodEpochs);
465
+ }
466
+ if (message.minInvitationStake !== "") {
467
+ writer.uint32(178).string(message.minInvitationStake);
468
+ }
469
+ if (message.invitationAccountabilityEpochs !== BigInt(0)) {
470
+ writer.uint32(184).int64(message.invitationAccountabilityEpochs);
471
+ }
472
+ if (message.referralRewardRate !== "") {
473
+ writer.uint32(194).string(math_1.Decimal.fromUserInput(message.referralRewardRate, 18).atomics);
474
+ }
475
+ if (message.invitationCostMultiplier !== "") {
476
+ writer.uint32(202).string(math_1.Decimal.fromUserInput(message.invitationCostMultiplier, 18).atomics);
477
+ }
478
+ if (message.trustLevelConfig !== undefined) {
479
+ exports.TrustLevelConfig.encode(message.trustLevelConfig, writer.uint32(210).fork()).ldelim();
480
+ }
481
+ if (message.minChallengeStake !== "") {
482
+ writer.uint32(218).string(message.minChallengeStake);
483
+ }
484
+ if (message.challengerRewardRate !== "") {
485
+ writer.uint32(226).string(math_1.Decimal.fromUserInput(message.challengerRewardRate, 18).atomics);
486
+ }
487
+ if (message.jurySize !== 0) {
488
+ writer.uint32(232).uint32(message.jurySize);
489
+ }
490
+ if (message.jurySuperMajority !== "") {
491
+ writer.uint32(242).string(math_1.Decimal.fromUserInput(message.jurySuperMajority, 18).atomics);
492
+ }
493
+ if (message.minJurorReputation !== "") {
494
+ writer.uint32(250).string(math_1.Decimal.fromUserInput(message.minJurorReputation, 18).atomics);
495
+ }
496
+ if (message.simpleComplexityBudget !== "") {
497
+ writer.uint32(258).string(message.simpleComplexityBudget);
498
+ }
499
+ if (message.standardComplexityBudget !== "") {
500
+ writer.uint32(266).string(message.standardComplexityBudget);
501
+ }
502
+ if (message.complexComplexityBudget !== "") {
503
+ writer.uint32(274).string(message.complexComplexityBudget);
504
+ }
505
+ if (message.expertComplexityBudget !== "") {
506
+ writer.uint32(282).string(message.expertComplexityBudget);
507
+ }
508
+ if (message.soloExpertBonusRate !== "") {
509
+ writer.uint32(290).string(math_1.Decimal.fromUserInput(message.soloExpertBonusRate, 18).atomics);
510
+ }
511
+ if (message.interimDeadlineEpochs !== BigInt(0)) {
512
+ writer.uint32(296).int64(message.interimDeadlineEpochs);
513
+ }
514
+ if (message.maxActiveChallengesPerCommittee !== 0) {
515
+ writer.uint32(304).uint32(message.maxActiveChallengesPerCommittee);
516
+ }
517
+ if (message.maxNewChallengesPerEpoch !== 0) {
518
+ writer.uint32(312).uint32(message.maxNewChallengesPerEpoch);
519
+ }
520
+ if (message.challengeQueueMaxSize !== 0) {
521
+ writer.uint32(320).uint32(message.challengeQueueMaxSize);
522
+ }
523
+ if (message.minorSlashPenalty !== "") {
524
+ writer.uint32(330).string(math_1.Decimal.fromUserInput(message.minorSlashPenalty, 18).atomics);
525
+ }
526
+ if (message.moderateSlashPenalty !== "") {
527
+ writer.uint32(338).string(math_1.Decimal.fromUserInput(message.moderateSlashPenalty, 18).atomics);
528
+ }
529
+ if (message.severeSlashPenalty !== "") {
530
+ writer.uint32(346).string(math_1.Decimal.fromUserInput(message.severeSlashPenalty, 18).atomics);
531
+ }
532
+ if (message.zeroingSlashPenalty !== "") {
533
+ writer.uint32(354).string(math_1.Decimal.fromUserInput(message.zeroingSlashPenalty, 18).atomics);
534
+ }
535
+ if (message.projectStakingApy !== "") {
536
+ writer.uint32(362).string(math_1.Decimal.fromUserInput(message.projectStakingApy, 18).atomics);
537
+ }
538
+ if (message.projectCompletionBonusRate !== "") {
539
+ writer.uint32(370).string(math_1.Decimal.fromUserInput(message.projectCompletionBonusRate, 18).atomics);
540
+ }
541
+ if (message.memberStakeRevenueShare !== "") {
542
+ writer.uint32(378).string(math_1.Decimal.fromUserInput(message.memberStakeRevenueShare, 18).atomics);
543
+ }
544
+ if (message.tagStakeRevenueShare !== "") {
545
+ writer.uint32(386).string(math_1.Decimal.fromUserInput(message.tagStakeRevenueShare, 18).atomics);
546
+ }
547
+ if (message.minStakeDurationSeconds !== BigInt(0)) {
548
+ writer.uint32(392).int64(message.minStakeDurationSeconds);
549
+ }
550
+ if (message.allowSelfMemberStake === true) {
551
+ writer.uint32(400).bool(message.allowSelfMemberStake);
552
+ }
553
+ if (message.challengeResponseDeadlineEpochs !== BigInt(0)) {
554
+ writer.uint32(408).int64(message.challengeResponseDeadlineEpochs);
555
+ }
556
+ if (message.giftCooldownBlocks !== BigInt(0)) {
557
+ writer.uint32(416).int64(message.giftCooldownBlocks);
558
+ }
559
+ if (message.maxGiftsPerSenderEpoch !== "") {
560
+ writer.uint32(426).string(message.maxGiftsPerSenderEpoch);
561
+ }
562
+ if (message.contentConvictionHalfLifeEpochs !== BigInt(0)) {
563
+ writer.uint32(432).int64(message.contentConvictionHalfLifeEpochs);
564
+ }
565
+ if (message.maxContentStakePerMember !== "") {
566
+ writer.uint32(442).string(message.maxContentStakePerMember);
567
+ }
568
+ if (message.maxAuthorBondPerContent !== "") {
569
+ writer.uint32(450).string(message.maxAuthorBondPerContent);
570
+ }
571
+ if (message.authorBondSlashOnModeration === true) {
572
+ writer.uint32(456).bool(message.authorBondSlashOnModeration);
573
+ }
574
+ if (message.contentChallengeRewardShare !== "") {
575
+ writer.uint32(466).string(math_1.Decimal.fromUserInput(message.contentChallengeRewardShare, 18).atomics);
576
+ }
577
+ if (message.convictionPropagationRatio !== "") {
578
+ writer.uint32(474).string(math_1.Decimal.fromUserInput(message.convictionPropagationRatio, 18).atomics);
579
+ }
580
+ if (message.maxTagsPerInitiative !== 0) {
581
+ writer.uint32(480).uint32(message.maxTagsPerInitiative);
582
+ }
583
+ if (message.reputationDecayRate !== "") {
584
+ writer.uint32(490).string(math_1.Decimal.fromUserInput(message.reputationDecayRate, 18).atomics);
585
+ }
586
+ if (message.maxConvictionSharePerMember !== "") {
587
+ writer.uint32(498).string(math_1.Decimal.fromUserInput(message.maxConvictionSharePerMember, 18).atomics);
588
+ }
589
+ if (message.invitationStakeBurnRate !== "") {
590
+ writer.uint32(506).string(math_1.Decimal.fromUserInput(message.invitationStakeBurnRate, 18).atomics);
591
+ }
592
+ if (message.maxReputationGainPerEpoch !== "") {
593
+ writer.uint32(514).string(math_1.Decimal.fromUserInput(message.maxReputationGainPerEpoch, 18).atomics);
594
+ }
595
+ return writer;
596
+ },
597
+ decode(input, length) {
598
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
599
+ let end = length === undefined ? reader.len : reader.pos + length;
600
+ const message = createBaseParams();
601
+ while (reader.pos < end) {
602
+ const tag = reader.uint32();
603
+ switch (tag >>> 3) {
604
+ case 1:
605
+ message.epochBlocks = reader.int64();
606
+ break;
607
+ case 2:
608
+ message.seasonDurationEpochs = reader.int64();
609
+ break;
610
+ case 3:
611
+ message.stakingApy = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
612
+ break;
613
+ case 4:
614
+ message.unstakedDecayRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
615
+ break;
616
+ case 5:
617
+ message.transferTaxRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
618
+ break;
619
+ case 6:
620
+ message.maxTipAmount = reader.string();
621
+ break;
622
+ case 7:
623
+ message.maxTipsPerEpoch = reader.uint32();
624
+ break;
625
+ case 8:
626
+ message.maxGiftAmount = reader.string();
627
+ break;
628
+ case 9:
629
+ message.giftOnlyToInvitees = reader.bool();
630
+ break;
631
+ case 10:
632
+ message.completerShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
633
+ break;
634
+ case 11:
635
+ message.treasuryShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
636
+ break;
637
+ case 12:
638
+ message.minReputationMultiplier = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
639
+ break;
640
+ case 13:
641
+ message.apprenticeTier = exports.TierConfig.decode(reader, reader.uint32());
642
+ break;
643
+ case 14:
644
+ message.standardTier = exports.TierConfig.decode(reader, reader.uint32());
645
+ break;
646
+ case 15:
647
+ message.expertTier = exports.TierConfig.decode(reader, reader.uint32());
648
+ break;
649
+ case 16:
650
+ message.epicTier = exports.TierConfig.decode(reader, reader.uint32());
651
+ break;
652
+ case 17:
653
+ message.convictionHalfLifeEpochs = reader.int64();
654
+ break;
655
+ case 18:
656
+ message.externalConvictionRatio = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
657
+ break;
658
+ case 19:
659
+ message.convictionPerDream = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
660
+ break;
661
+ case 20:
662
+ message.defaultReviewPeriodEpochs = reader.int64();
663
+ break;
664
+ case 21:
665
+ message.defaultChallengePeriodEpochs = reader.int64();
666
+ break;
667
+ case 22:
668
+ message.minInvitationStake = reader.string();
669
+ break;
670
+ case 23:
671
+ message.invitationAccountabilityEpochs = reader.int64();
672
+ break;
673
+ case 24:
674
+ message.referralRewardRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
675
+ break;
676
+ case 25:
677
+ message.invitationCostMultiplier = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
678
+ break;
679
+ case 26:
680
+ message.trustLevelConfig = exports.TrustLevelConfig.decode(reader, reader.uint32());
681
+ break;
682
+ case 27:
683
+ message.minChallengeStake = reader.string();
684
+ break;
685
+ case 28:
686
+ message.challengerRewardRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
687
+ break;
688
+ case 29:
689
+ message.jurySize = reader.uint32();
690
+ break;
691
+ case 30:
692
+ message.jurySuperMajority = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
693
+ break;
694
+ case 31:
695
+ message.minJurorReputation = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
696
+ break;
697
+ case 32:
698
+ message.simpleComplexityBudget = reader.string();
699
+ break;
700
+ case 33:
701
+ message.standardComplexityBudget = reader.string();
702
+ break;
703
+ case 34:
704
+ message.complexComplexityBudget = reader.string();
705
+ break;
706
+ case 35:
707
+ message.expertComplexityBudget = reader.string();
708
+ break;
709
+ case 36:
710
+ message.soloExpertBonusRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
711
+ break;
712
+ case 37:
713
+ message.interimDeadlineEpochs = reader.int64();
714
+ break;
715
+ case 38:
716
+ message.maxActiveChallengesPerCommittee = reader.uint32();
717
+ break;
718
+ case 39:
719
+ message.maxNewChallengesPerEpoch = reader.uint32();
720
+ break;
721
+ case 40:
722
+ message.challengeQueueMaxSize = reader.uint32();
723
+ break;
724
+ case 41:
725
+ message.minorSlashPenalty = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
726
+ break;
727
+ case 42:
728
+ message.moderateSlashPenalty = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
729
+ break;
730
+ case 43:
731
+ message.severeSlashPenalty = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
732
+ break;
733
+ case 44:
734
+ message.zeroingSlashPenalty = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
735
+ break;
736
+ case 45:
737
+ message.projectStakingApy = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
738
+ break;
739
+ case 46:
740
+ message.projectCompletionBonusRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
741
+ break;
742
+ case 47:
743
+ message.memberStakeRevenueShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
744
+ break;
745
+ case 48:
746
+ message.tagStakeRevenueShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
747
+ break;
748
+ case 49:
749
+ message.minStakeDurationSeconds = reader.int64();
750
+ break;
751
+ case 50:
752
+ message.allowSelfMemberStake = reader.bool();
753
+ break;
754
+ case 51:
755
+ message.challengeResponseDeadlineEpochs = reader.int64();
756
+ break;
757
+ case 52:
758
+ message.giftCooldownBlocks = reader.int64();
759
+ break;
760
+ case 53:
761
+ message.maxGiftsPerSenderEpoch = reader.string();
762
+ break;
763
+ case 54:
764
+ message.contentConvictionHalfLifeEpochs = reader.int64();
765
+ break;
766
+ case 55:
767
+ message.maxContentStakePerMember = reader.string();
768
+ break;
769
+ case 56:
770
+ message.maxAuthorBondPerContent = reader.string();
771
+ break;
772
+ case 57:
773
+ message.authorBondSlashOnModeration = reader.bool();
774
+ break;
775
+ case 58:
776
+ message.contentChallengeRewardShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
777
+ break;
778
+ case 59:
779
+ message.convictionPropagationRatio = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
780
+ break;
781
+ case 60:
782
+ message.maxTagsPerInitiative = reader.uint32();
783
+ break;
784
+ case 61:
785
+ message.reputationDecayRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
786
+ break;
787
+ case 62:
788
+ message.maxConvictionSharePerMember = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
789
+ break;
790
+ case 63:
791
+ message.invitationStakeBurnRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
792
+ break;
793
+ case 64:
794
+ message.maxReputationGainPerEpoch = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
795
+ break;
796
+ default:
797
+ reader.skipType(tag & 7);
798
+ break;
799
+ }
800
+ }
801
+ return message;
802
+ },
803
+ fromPartial(object) {
804
+ const message = createBaseParams();
805
+ message.epochBlocks = object.epochBlocks !== undefined && object.epochBlocks !== null ? BigInt(object.epochBlocks.toString()) : BigInt(0);
806
+ message.seasonDurationEpochs = object.seasonDurationEpochs !== undefined && object.seasonDurationEpochs !== null ? BigInt(object.seasonDurationEpochs.toString()) : BigInt(0);
807
+ message.stakingApy = object.stakingApy ?? "";
808
+ message.unstakedDecayRate = object.unstakedDecayRate ?? "";
809
+ message.transferTaxRate = object.transferTaxRate ?? "";
810
+ message.maxTipAmount = object.maxTipAmount ?? "";
811
+ message.maxTipsPerEpoch = object.maxTipsPerEpoch ?? 0;
812
+ message.maxGiftAmount = object.maxGiftAmount ?? "";
813
+ message.giftOnlyToInvitees = object.giftOnlyToInvitees ?? false;
814
+ message.completerShare = object.completerShare ?? "";
815
+ message.treasuryShare = object.treasuryShare ?? "";
816
+ message.minReputationMultiplier = object.minReputationMultiplier ?? "";
817
+ message.apprenticeTier = object.apprenticeTier !== undefined && object.apprenticeTier !== null ? exports.TierConfig.fromPartial(object.apprenticeTier) : undefined;
818
+ message.standardTier = object.standardTier !== undefined && object.standardTier !== null ? exports.TierConfig.fromPartial(object.standardTier) : undefined;
819
+ message.expertTier = object.expertTier !== undefined && object.expertTier !== null ? exports.TierConfig.fromPartial(object.expertTier) : undefined;
820
+ message.epicTier = object.epicTier !== undefined && object.epicTier !== null ? exports.TierConfig.fromPartial(object.epicTier) : undefined;
821
+ message.convictionHalfLifeEpochs = object.convictionHalfLifeEpochs !== undefined && object.convictionHalfLifeEpochs !== null ? BigInt(object.convictionHalfLifeEpochs.toString()) : BigInt(0);
822
+ message.externalConvictionRatio = object.externalConvictionRatio ?? "";
823
+ message.convictionPerDream = object.convictionPerDream ?? "";
824
+ message.defaultReviewPeriodEpochs = object.defaultReviewPeriodEpochs !== undefined && object.defaultReviewPeriodEpochs !== null ? BigInt(object.defaultReviewPeriodEpochs.toString()) : BigInt(0);
825
+ message.defaultChallengePeriodEpochs = object.defaultChallengePeriodEpochs !== undefined && object.defaultChallengePeriodEpochs !== null ? BigInt(object.defaultChallengePeriodEpochs.toString()) : BigInt(0);
826
+ message.minInvitationStake = object.minInvitationStake ?? "";
827
+ message.invitationAccountabilityEpochs = object.invitationAccountabilityEpochs !== undefined && object.invitationAccountabilityEpochs !== null ? BigInt(object.invitationAccountabilityEpochs.toString()) : BigInt(0);
828
+ message.referralRewardRate = object.referralRewardRate ?? "";
829
+ message.invitationCostMultiplier = object.invitationCostMultiplier ?? "";
830
+ message.trustLevelConfig = object.trustLevelConfig !== undefined && object.trustLevelConfig !== null ? exports.TrustLevelConfig.fromPartial(object.trustLevelConfig) : undefined;
831
+ message.minChallengeStake = object.minChallengeStake ?? "";
832
+ message.challengerRewardRate = object.challengerRewardRate ?? "";
833
+ message.jurySize = object.jurySize ?? 0;
834
+ message.jurySuperMajority = object.jurySuperMajority ?? "";
835
+ message.minJurorReputation = object.minJurorReputation ?? "";
836
+ message.simpleComplexityBudget = object.simpleComplexityBudget ?? "";
837
+ message.standardComplexityBudget = object.standardComplexityBudget ?? "";
838
+ message.complexComplexityBudget = object.complexComplexityBudget ?? "";
839
+ message.expertComplexityBudget = object.expertComplexityBudget ?? "";
840
+ message.soloExpertBonusRate = object.soloExpertBonusRate ?? "";
841
+ message.interimDeadlineEpochs = object.interimDeadlineEpochs !== undefined && object.interimDeadlineEpochs !== null ? BigInt(object.interimDeadlineEpochs.toString()) : BigInt(0);
842
+ message.maxActiveChallengesPerCommittee = object.maxActiveChallengesPerCommittee ?? 0;
843
+ message.maxNewChallengesPerEpoch = object.maxNewChallengesPerEpoch ?? 0;
844
+ message.challengeQueueMaxSize = object.challengeQueueMaxSize ?? 0;
845
+ message.minorSlashPenalty = object.minorSlashPenalty ?? "";
846
+ message.moderateSlashPenalty = object.moderateSlashPenalty ?? "";
847
+ message.severeSlashPenalty = object.severeSlashPenalty ?? "";
848
+ message.zeroingSlashPenalty = object.zeroingSlashPenalty ?? "";
849
+ message.projectStakingApy = object.projectStakingApy ?? "";
850
+ message.projectCompletionBonusRate = object.projectCompletionBonusRate ?? "";
851
+ message.memberStakeRevenueShare = object.memberStakeRevenueShare ?? "";
852
+ message.tagStakeRevenueShare = object.tagStakeRevenueShare ?? "";
853
+ message.minStakeDurationSeconds = object.minStakeDurationSeconds !== undefined && object.minStakeDurationSeconds !== null ? BigInt(object.minStakeDurationSeconds.toString()) : BigInt(0);
854
+ message.allowSelfMemberStake = object.allowSelfMemberStake ?? false;
855
+ message.challengeResponseDeadlineEpochs = object.challengeResponseDeadlineEpochs !== undefined && object.challengeResponseDeadlineEpochs !== null ? BigInt(object.challengeResponseDeadlineEpochs.toString()) : BigInt(0);
856
+ message.giftCooldownBlocks = object.giftCooldownBlocks !== undefined && object.giftCooldownBlocks !== null ? BigInt(object.giftCooldownBlocks.toString()) : BigInt(0);
857
+ message.maxGiftsPerSenderEpoch = object.maxGiftsPerSenderEpoch ?? "";
858
+ message.contentConvictionHalfLifeEpochs = object.contentConvictionHalfLifeEpochs !== undefined && object.contentConvictionHalfLifeEpochs !== null ? BigInt(object.contentConvictionHalfLifeEpochs.toString()) : BigInt(0);
859
+ message.maxContentStakePerMember = object.maxContentStakePerMember ?? "";
860
+ message.maxAuthorBondPerContent = object.maxAuthorBondPerContent ?? "";
861
+ message.authorBondSlashOnModeration = object.authorBondSlashOnModeration ?? false;
862
+ message.contentChallengeRewardShare = object.contentChallengeRewardShare ?? "";
863
+ message.convictionPropagationRatio = object.convictionPropagationRatio ?? "";
864
+ message.maxTagsPerInitiative = object.maxTagsPerInitiative ?? 0;
865
+ message.reputationDecayRate = object.reputationDecayRate ?? "";
866
+ message.maxConvictionSharePerMember = object.maxConvictionSharePerMember ?? "";
867
+ message.invitationStakeBurnRate = object.invitationStakeBurnRate ?? "";
868
+ message.maxReputationGainPerEpoch = object.maxReputationGainPerEpoch ?? "";
869
+ return message;
870
+ },
871
+ fromAmino(object) {
872
+ const message = createBaseParams();
873
+ if (object.epoch_blocks !== undefined && object.epoch_blocks !== null) {
874
+ message.epochBlocks = BigInt(object.epoch_blocks);
875
+ }
876
+ if (object.season_duration_epochs !== undefined && object.season_duration_epochs !== null) {
877
+ message.seasonDurationEpochs = BigInt(object.season_duration_epochs);
878
+ }
879
+ if (object.staking_apy !== undefined && object.staking_apy !== null) {
880
+ message.stakingApy = object.staking_apy;
881
+ }
882
+ if (object.unstaked_decay_rate !== undefined && object.unstaked_decay_rate !== null) {
883
+ message.unstakedDecayRate = object.unstaked_decay_rate;
884
+ }
885
+ if (object.transfer_tax_rate !== undefined && object.transfer_tax_rate !== null) {
886
+ message.transferTaxRate = object.transfer_tax_rate;
887
+ }
888
+ if (object.max_tip_amount !== undefined && object.max_tip_amount !== null) {
889
+ message.maxTipAmount = object.max_tip_amount;
890
+ }
891
+ if (object.max_tips_per_epoch !== undefined && object.max_tips_per_epoch !== null) {
892
+ message.maxTipsPerEpoch = object.max_tips_per_epoch;
893
+ }
894
+ if (object.max_gift_amount !== undefined && object.max_gift_amount !== null) {
895
+ message.maxGiftAmount = object.max_gift_amount;
896
+ }
897
+ if (object.gift_only_to_invitees !== undefined && object.gift_only_to_invitees !== null) {
898
+ message.giftOnlyToInvitees = object.gift_only_to_invitees;
899
+ }
900
+ if (object.completer_share !== undefined && object.completer_share !== null) {
901
+ message.completerShare = object.completer_share;
902
+ }
903
+ if (object.treasury_share !== undefined && object.treasury_share !== null) {
904
+ message.treasuryShare = object.treasury_share;
905
+ }
906
+ if (object.min_reputation_multiplier !== undefined && object.min_reputation_multiplier !== null) {
907
+ message.minReputationMultiplier = object.min_reputation_multiplier;
908
+ }
909
+ if (object.apprentice_tier !== undefined && object.apprentice_tier !== null) {
910
+ message.apprenticeTier = exports.TierConfig.fromAmino(object.apprentice_tier);
911
+ }
912
+ if (object.standard_tier !== undefined && object.standard_tier !== null) {
913
+ message.standardTier = exports.TierConfig.fromAmino(object.standard_tier);
914
+ }
915
+ if (object.expert_tier !== undefined && object.expert_tier !== null) {
916
+ message.expertTier = exports.TierConfig.fromAmino(object.expert_tier);
917
+ }
918
+ if (object.epic_tier !== undefined && object.epic_tier !== null) {
919
+ message.epicTier = exports.TierConfig.fromAmino(object.epic_tier);
920
+ }
921
+ if (object.conviction_half_life_epochs !== undefined && object.conviction_half_life_epochs !== null) {
922
+ message.convictionHalfLifeEpochs = BigInt(object.conviction_half_life_epochs);
923
+ }
924
+ if (object.external_conviction_ratio !== undefined && object.external_conviction_ratio !== null) {
925
+ message.externalConvictionRatio = object.external_conviction_ratio;
926
+ }
927
+ if (object.conviction_per_dream !== undefined && object.conviction_per_dream !== null) {
928
+ message.convictionPerDream = object.conviction_per_dream;
929
+ }
930
+ if (object.default_review_period_epochs !== undefined && object.default_review_period_epochs !== null) {
931
+ message.defaultReviewPeriodEpochs = BigInt(object.default_review_period_epochs);
932
+ }
933
+ if (object.default_challenge_period_epochs !== undefined && object.default_challenge_period_epochs !== null) {
934
+ message.defaultChallengePeriodEpochs = BigInt(object.default_challenge_period_epochs);
935
+ }
936
+ if (object.min_invitation_stake !== undefined && object.min_invitation_stake !== null) {
937
+ message.minInvitationStake = object.min_invitation_stake;
938
+ }
939
+ if (object.invitation_accountability_epochs !== undefined && object.invitation_accountability_epochs !== null) {
940
+ message.invitationAccountabilityEpochs = BigInt(object.invitation_accountability_epochs);
941
+ }
942
+ if (object.referral_reward_rate !== undefined && object.referral_reward_rate !== null) {
943
+ message.referralRewardRate = object.referral_reward_rate;
944
+ }
945
+ if (object.invitation_cost_multiplier !== undefined && object.invitation_cost_multiplier !== null) {
946
+ message.invitationCostMultiplier = object.invitation_cost_multiplier;
947
+ }
948
+ if (object.trust_level_config !== undefined && object.trust_level_config !== null) {
949
+ message.trustLevelConfig = exports.TrustLevelConfig.fromAmino(object.trust_level_config);
950
+ }
951
+ if (object.min_challenge_stake !== undefined && object.min_challenge_stake !== null) {
952
+ message.minChallengeStake = object.min_challenge_stake;
953
+ }
954
+ if (object.challenger_reward_rate !== undefined && object.challenger_reward_rate !== null) {
955
+ message.challengerRewardRate = object.challenger_reward_rate;
956
+ }
957
+ if (object.jury_size !== undefined && object.jury_size !== null) {
958
+ message.jurySize = object.jury_size;
959
+ }
960
+ if (object.jury_super_majority !== undefined && object.jury_super_majority !== null) {
961
+ message.jurySuperMajority = object.jury_super_majority;
962
+ }
963
+ if (object.min_juror_reputation !== undefined && object.min_juror_reputation !== null) {
964
+ message.minJurorReputation = object.min_juror_reputation;
965
+ }
966
+ if (object.simple_complexity_budget !== undefined && object.simple_complexity_budget !== null) {
967
+ message.simpleComplexityBudget = object.simple_complexity_budget;
968
+ }
969
+ if (object.standard_complexity_budget !== undefined && object.standard_complexity_budget !== null) {
970
+ message.standardComplexityBudget = object.standard_complexity_budget;
971
+ }
972
+ if (object.complex_complexity_budget !== undefined && object.complex_complexity_budget !== null) {
973
+ message.complexComplexityBudget = object.complex_complexity_budget;
974
+ }
975
+ if (object.expert_complexity_budget !== undefined && object.expert_complexity_budget !== null) {
976
+ message.expertComplexityBudget = object.expert_complexity_budget;
977
+ }
978
+ if (object.solo_expert_bonus_rate !== undefined && object.solo_expert_bonus_rate !== null) {
979
+ message.soloExpertBonusRate = object.solo_expert_bonus_rate;
980
+ }
981
+ if (object.interim_deadline_epochs !== undefined && object.interim_deadline_epochs !== null) {
982
+ message.interimDeadlineEpochs = BigInt(object.interim_deadline_epochs);
983
+ }
984
+ if (object.max_active_challenges_per_committee !== undefined && object.max_active_challenges_per_committee !== null) {
985
+ message.maxActiveChallengesPerCommittee = object.max_active_challenges_per_committee;
986
+ }
987
+ if (object.max_new_challenges_per_epoch !== undefined && object.max_new_challenges_per_epoch !== null) {
988
+ message.maxNewChallengesPerEpoch = object.max_new_challenges_per_epoch;
989
+ }
990
+ if (object.challenge_queue_max_size !== undefined && object.challenge_queue_max_size !== null) {
991
+ message.challengeQueueMaxSize = object.challenge_queue_max_size;
992
+ }
993
+ if (object.minor_slash_penalty !== undefined && object.minor_slash_penalty !== null) {
994
+ message.minorSlashPenalty = object.minor_slash_penalty;
995
+ }
996
+ if (object.moderate_slash_penalty !== undefined && object.moderate_slash_penalty !== null) {
997
+ message.moderateSlashPenalty = object.moderate_slash_penalty;
998
+ }
999
+ if (object.severe_slash_penalty !== undefined && object.severe_slash_penalty !== null) {
1000
+ message.severeSlashPenalty = object.severe_slash_penalty;
1001
+ }
1002
+ if (object.zeroing_slash_penalty !== undefined && object.zeroing_slash_penalty !== null) {
1003
+ message.zeroingSlashPenalty = object.zeroing_slash_penalty;
1004
+ }
1005
+ if (object.project_staking_apy !== undefined && object.project_staking_apy !== null) {
1006
+ message.projectStakingApy = object.project_staking_apy;
1007
+ }
1008
+ if (object.project_completion_bonus_rate !== undefined && object.project_completion_bonus_rate !== null) {
1009
+ message.projectCompletionBonusRate = object.project_completion_bonus_rate;
1010
+ }
1011
+ if (object.member_stake_revenue_share !== undefined && object.member_stake_revenue_share !== null) {
1012
+ message.memberStakeRevenueShare = object.member_stake_revenue_share;
1013
+ }
1014
+ if (object.tag_stake_revenue_share !== undefined && object.tag_stake_revenue_share !== null) {
1015
+ message.tagStakeRevenueShare = object.tag_stake_revenue_share;
1016
+ }
1017
+ if (object.min_stake_duration_seconds !== undefined && object.min_stake_duration_seconds !== null) {
1018
+ message.minStakeDurationSeconds = BigInt(object.min_stake_duration_seconds);
1019
+ }
1020
+ if (object.allow_self_member_stake !== undefined && object.allow_self_member_stake !== null) {
1021
+ message.allowSelfMemberStake = object.allow_self_member_stake;
1022
+ }
1023
+ if (object.challenge_response_deadline_epochs !== undefined && object.challenge_response_deadline_epochs !== null) {
1024
+ message.challengeResponseDeadlineEpochs = BigInt(object.challenge_response_deadline_epochs);
1025
+ }
1026
+ if (object.gift_cooldown_blocks !== undefined && object.gift_cooldown_blocks !== null) {
1027
+ message.giftCooldownBlocks = BigInt(object.gift_cooldown_blocks);
1028
+ }
1029
+ if (object.max_gifts_per_sender_epoch !== undefined && object.max_gifts_per_sender_epoch !== null) {
1030
+ message.maxGiftsPerSenderEpoch = object.max_gifts_per_sender_epoch;
1031
+ }
1032
+ if (object.content_conviction_half_life_epochs !== undefined && object.content_conviction_half_life_epochs !== null) {
1033
+ message.contentConvictionHalfLifeEpochs = BigInt(object.content_conviction_half_life_epochs);
1034
+ }
1035
+ if (object.max_content_stake_per_member !== undefined && object.max_content_stake_per_member !== null) {
1036
+ message.maxContentStakePerMember = object.max_content_stake_per_member;
1037
+ }
1038
+ if (object.max_author_bond_per_content !== undefined && object.max_author_bond_per_content !== null) {
1039
+ message.maxAuthorBondPerContent = object.max_author_bond_per_content;
1040
+ }
1041
+ if (object.author_bond_slash_on_moderation !== undefined && object.author_bond_slash_on_moderation !== null) {
1042
+ message.authorBondSlashOnModeration = object.author_bond_slash_on_moderation;
1043
+ }
1044
+ if (object.content_challenge_reward_share !== undefined && object.content_challenge_reward_share !== null) {
1045
+ message.contentChallengeRewardShare = object.content_challenge_reward_share;
1046
+ }
1047
+ if (object.conviction_propagation_ratio !== undefined && object.conviction_propagation_ratio !== null) {
1048
+ message.convictionPropagationRatio = object.conviction_propagation_ratio;
1049
+ }
1050
+ if (object.max_tags_per_initiative !== undefined && object.max_tags_per_initiative !== null) {
1051
+ message.maxTagsPerInitiative = object.max_tags_per_initiative;
1052
+ }
1053
+ if (object.reputation_decay_rate !== undefined && object.reputation_decay_rate !== null) {
1054
+ message.reputationDecayRate = object.reputation_decay_rate;
1055
+ }
1056
+ if (object.max_conviction_share_per_member !== undefined && object.max_conviction_share_per_member !== null) {
1057
+ message.maxConvictionSharePerMember = object.max_conviction_share_per_member;
1058
+ }
1059
+ if (object.invitation_stake_burn_rate !== undefined && object.invitation_stake_burn_rate !== null) {
1060
+ message.invitationStakeBurnRate = object.invitation_stake_burn_rate;
1061
+ }
1062
+ if (object.max_reputation_gain_per_epoch !== undefined && object.max_reputation_gain_per_epoch !== null) {
1063
+ message.maxReputationGainPerEpoch = object.max_reputation_gain_per_epoch;
1064
+ }
1065
+ return message;
1066
+ },
1067
+ toAmino(message) {
1068
+ const obj = {};
1069
+ obj.epoch_blocks = message.epochBlocks !== BigInt(0) ? message.epochBlocks?.toString() : undefined;
1070
+ obj.season_duration_epochs = message.seasonDurationEpochs !== BigInt(0) ? message.seasonDurationEpochs?.toString() : undefined;
1071
+ obj.staking_apy = message.stakingApy === "" ? undefined : message.stakingApy;
1072
+ obj.unstaked_decay_rate = message.unstakedDecayRate === "" ? undefined : message.unstakedDecayRate;
1073
+ obj.transfer_tax_rate = message.transferTaxRate === "" ? undefined : message.transferTaxRate;
1074
+ obj.max_tip_amount = message.maxTipAmount === "" ? undefined : message.maxTipAmount;
1075
+ obj.max_tips_per_epoch = message.maxTipsPerEpoch === 0 ? undefined : message.maxTipsPerEpoch;
1076
+ obj.max_gift_amount = message.maxGiftAmount === "" ? undefined : message.maxGiftAmount;
1077
+ obj.gift_only_to_invitees = message.giftOnlyToInvitees === false ? undefined : message.giftOnlyToInvitees;
1078
+ obj.completer_share = message.completerShare === "" ? undefined : message.completerShare;
1079
+ obj.treasury_share = message.treasuryShare === "" ? undefined : message.treasuryShare;
1080
+ obj.min_reputation_multiplier = message.minReputationMultiplier === "" ? undefined : message.minReputationMultiplier;
1081
+ obj.apprentice_tier = message.apprenticeTier ? exports.TierConfig.toAmino(message.apprenticeTier) : undefined;
1082
+ obj.standard_tier = message.standardTier ? exports.TierConfig.toAmino(message.standardTier) : undefined;
1083
+ obj.expert_tier = message.expertTier ? exports.TierConfig.toAmino(message.expertTier) : undefined;
1084
+ obj.epic_tier = message.epicTier ? exports.TierConfig.toAmino(message.epicTier) : undefined;
1085
+ obj.conviction_half_life_epochs = message.convictionHalfLifeEpochs !== BigInt(0) ? message.convictionHalfLifeEpochs?.toString() : undefined;
1086
+ obj.external_conviction_ratio = message.externalConvictionRatio === "" ? undefined : message.externalConvictionRatio;
1087
+ obj.conviction_per_dream = message.convictionPerDream === "" ? undefined : message.convictionPerDream;
1088
+ obj.default_review_period_epochs = message.defaultReviewPeriodEpochs !== BigInt(0) ? message.defaultReviewPeriodEpochs?.toString() : undefined;
1089
+ obj.default_challenge_period_epochs = message.defaultChallengePeriodEpochs !== BigInt(0) ? message.defaultChallengePeriodEpochs?.toString() : undefined;
1090
+ obj.min_invitation_stake = message.minInvitationStake === "" ? undefined : message.minInvitationStake;
1091
+ obj.invitation_accountability_epochs = message.invitationAccountabilityEpochs !== BigInt(0) ? message.invitationAccountabilityEpochs?.toString() : undefined;
1092
+ obj.referral_reward_rate = message.referralRewardRate === "" ? undefined : message.referralRewardRate;
1093
+ obj.invitation_cost_multiplier = message.invitationCostMultiplier === "" ? undefined : message.invitationCostMultiplier;
1094
+ obj.trust_level_config = message.trustLevelConfig ? exports.TrustLevelConfig.toAmino(message.trustLevelConfig) : undefined;
1095
+ obj.min_challenge_stake = message.minChallengeStake === "" ? undefined : message.minChallengeStake;
1096
+ obj.challenger_reward_rate = message.challengerRewardRate === "" ? undefined : message.challengerRewardRate;
1097
+ obj.jury_size = message.jurySize === 0 ? undefined : message.jurySize;
1098
+ obj.jury_super_majority = message.jurySuperMajority === "" ? undefined : message.jurySuperMajority;
1099
+ obj.min_juror_reputation = message.minJurorReputation === "" ? undefined : message.minJurorReputation;
1100
+ obj.simple_complexity_budget = message.simpleComplexityBudget === "" ? undefined : message.simpleComplexityBudget;
1101
+ obj.standard_complexity_budget = message.standardComplexityBudget === "" ? undefined : message.standardComplexityBudget;
1102
+ obj.complex_complexity_budget = message.complexComplexityBudget === "" ? undefined : message.complexComplexityBudget;
1103
+ obj.expert_complexity_budget = message.expertComplexityBudget === "" ? undefined : message.expertComplexityBudget;
1104
+ obj.solo_expert_bonus_rate = message.soloExpertBonusRate === "" ? undefined : message.soloExpertBonusRate;
1105
+ obj.interim_deadline_epochs = message.interimDeadlineEpochs !== BigInt(0) ? message.interimDeadlineEpochs?.toString() : undefined;
1106
+ obj.max_active_challenges_per_committee = message.maxActiveChallengesPerCommittee === 0 ? undefined : message.maxActiveChallengesPerCommittee;
1107
+ obj.max_new_challenges_per_epoch = message.maxNewChallengesPerEpoch === 0 ? undefined : message.maxNewChallengesPerEpoch;
1108
+ obj.challenge_queue_max_size = message.challengeQueueMaxSize === 0 ? undefined : message.challengeQueueMaxSize;
1109
+ obj.minor_slash_penalty = message.minorSlashPenalty === "" ? undefined : message.minorSlashPenalty;
1110
+ obj.moderate_slash_penalty = message.moderateSlashPenalty === "" ? undefined : message.moderateSlashPenalty;
1111
+ obj.severe_slash_penalty = message.severeSlashPenalty === "" ? undefined : message.severeSlashPenalty;
1112
+ obj.zeroing_slash_penalty = message.zeroingSlashPenalty === "" ? undefined : message.zeroingSlashPenalty;
1113
+ obj.project_staking_apy = message.projectStakingApy === "" ? undefined : message.projectStakingApy;
1114
+ obj.project_completion_bonus_rate = message.projectCompletionBonusRate === "" ? undefined : message.projectCompletionBonusRate;
1115
+ obj.member_stake_revenue_share = message.memberStakeRevenueShare === "" ? undefined : message.memberStakeRevenueShare;
1116
+ obj.tag_stake_revenue_share = message.tagStakeRevenueShare === "" ? undefined : message.tagStakeRevenueShare;
1117
+ obj.min_stake_duration_seconds = message.minStakeDurationSeconds !== BigInt(0) ? message.minStakeDurationSeconds?.toString() : undefined;
1118
+ obj.allow_self_member_stake = message.allowSelfMemberStake === false ? undefined : message.allowSelfMemberStake;
1119
+ obj.challenge_response_deadline_epochs = message.challengeResponseDeadlineEpochs !== BigInt(0) ? message.challengeResponseDeadlineEpochs?.toString() : undefined;
1120
+ obj.gift_cooldown_blocks = message.giftCooldownBlocks !== BigInt(0) ? message.giftCooldownBlocks?.toString() : undefined;
1121
+ obj.max_gifts_per_sender_epoch = message.maxGiftsPerSenderEpoch === "" ? undefined : message.maxGiftsPerSenderEpoch;
1122
+ obj.content_conviction_half_life_epochs = message.contentConvictionHalfLifeEpochs !== BigInt(0) ? message.contentConvictionHalfLifeEpochs?.toString() : undefined;
1123
+ obj.max_content_stake_per_member = message.maxContentStakePerMember === "" ? undefined : message.maxContentStakePerMember;
1124
+ obj.max_author_bond_per_content = message.maxAuthorBondPerContent === "" ? undefined : message.maxAuthorBondPerContent;
1125
+ obj.author_bond_slash_on_moderation = message.authorBondSlashOnModeration === false ? undefined : message.authorBondSlashOnModeration;
1126
+ obj.content_challenge_reward_share = message.contentChallengeRewardShare === "" ? undefined : message.contentChallengeRewardShare;
1127
+ obj.conviction_propagation_ratio = message.convictionPropagationRatio === "" ? undefined : message.convictionPropagationRatio;
1128
+ obj.max_tags_per_initiative = message.maxTagsPerInitiative === 0 ? undefined : message.maxTagsPerInitiative;
1129
+ obj.reputation_decay_rate = message.reputationDecayRate === "" ? undefined : message.reputationDecayRate;
1130
+ obj.max_conviction_share_per_member = message.maxConvictionSharePerMember === "" ? undefined : message.maxConvictionSharePerMember;
1131
+ obj.invitation_stake_burn_rate = message.invitationStakeBurnRate === "" ? undefined : message.invitationStakeBurnRate;
1132
+ obj.max_reputation_gain_per_epoch = message.maxReputationGainPerEpoch === "" ? undefined : message.maxReputationGainPerEpoch;
1133
+ return obj;
1134
+ },
1135
+ fromAminoMsg(object) {
1136
+ return exports.Params.fromAmino(object.value);
1137
+ },
1138
+ toAminoMsg(message) {
1139
+ return {
1140
+ type: "sparkdream/x/rep/Params",
1141
+ value: exports.Params.toAmino(message)
1142
+ };
1143
+ },
1144
+ fromProtoMsg(message) {
1145
+ return exports.Params.decode(message.value);
1146
+ },
1147
+ toProto(message) {
1148
+ return exports.Params.encode(message).finish();
1149
+ },
1150
+ toProtoMsg(message) {
1151
+ return {
1152
+ typeUrl: "/sparkdream.rep.v1.Params",
1153
+ value: exports.Params.encode(message).finish()
1154
+ };
1155
+ }
1156
+ };
1157
+ function createBaseRepOperationalParams() {
1158
+ return {
1159
+ epochBlocks: BigInt(0),
1160
+ seasonDurationEpochs: BigInt(0),
1161
+ stakingApy: "",
1162
+ unstakedDecayRate: "",
1163
+ transferTaxRate: "",
1164
+ maxTipAmount: "",
1165
+ maxTipsPerEpoch: 0,
1166
+ maxGiftAmount: "",
1167
+ giftOnlyToInvitees: false,
1168
+ minReputationMultiplier: "",
1169
+ defaultReviewPeriodEpochs: BigInt(0),
1170
+ defaultChallengePeriodEpochs: BigInt(0),
1171
+ minInvitationStake: "",
1172
+ invitationAccountabilityEpochs: BigInt(0),
1173
+ referralRewardRate: "",
1174
+ invitationCostMultiplier: "",
1175
+ minChallengeStake: "",
1176
+ challengerRewardRate: "",
1177
+ jurySize: 0,
1178
+ jurySuperMajority: "",
1179
+ minJurorReputation: "",
1180
+ simpleComplexityBudget: "",
1181
+ standardComplexityBudget: "",
1182
+ complexComplexityBudget: "",
1183
+ expertComplexityBudget: "",
1184
+ soloExpertBonusRate: "",
1185
+ interimDeadlineEpochs: BigInt(0),
1186
+ maxActiveChallengesPerCommittee: 0,
1187
+ maxNewChallengesPerEpoch: 0,
1188
+ challengeQueueMaxSize: 0,
1189
+ projectStakingApy: "",
1190
+ projectCompletionBonusRate: "",
1191
+ memberStakeRevenueShare: "",
1192
+ tagStakeRevenueShare: "",
1193
+ minStakeDurationSeconds: BigInt(0),
1194
+ allowSelfMemberStake: false,
1195
+ challengeResponseDeadlineEpochs: BigInt(0),
1196
+ giftCooldownBlocks: BigInt(0),
1197
+ maxGiftsPerSenderEpoch: "",
1198
+ contentConvictionHalfLifeEpochs: BigInt(0),
1199
+ maxContentStakePerMember: "",
1200
+ maxAuthorBondPerContent: "",
1201
+ authorBondSlashOnModeration: false,
1202
+ contentChallengeRewardShare: "",
1203
+ convictionPropagationRatio: "",
1204
+ maxTagsPerInitiative: 0,
1205
+ reputationDecayRate: "",
1206
+ maxConvictionSharePerMember: "",
1207
+ invitationStakeBurnRate: "",
1208
+ maxReputationGainPerEpoch: ""
1209
+ };
1210
+ }
1211
+ /**
1212
+ * RepOperationalParams defines the operational parameters that can be updated
1213
+ * by committee/council authority without full governance. These are day-to-day
1214
+ * tuning knobs that do not affect core economic incentives or tier structures.
1215
+ * @name RepOperationalParams
1216
+ * @package sparkdream.rep.v1
1217
+ * @see proto type: sparkdream.rep.v1.RepOperationalParams
1218
+ */
1219
+ exports.RepOperationalParams = {
1220
+ typeUrl: "/sparkdream.rep.v1.RepOperationalParams",
1221
+ aminoType: "sparkdream/x/rep/RepOperationalParams",
1222
+ encode(message, writer = binary_1.BinaryWriter.create()) {
1223
+ if (message.epochBlocks !== BigInt(0)) {
1224
+ writer.uint32(8).int64(message.epochBlocks);
1225
+ }
1226
+ if (message.seasonDurationEpochs !== BigInt(0)) {
1227
+ writer.uint32(16).int64(message.seasonDurationEpochs);
1228
+ }
1229
+ if (message.stakingApy !== "") {
1230
+ writer.uint32(26).string(math_1.Decimal.fromUserInput(message.stakingApy, 18).atomics);
1231
+ }
1232
+ if (message.unstakedDecayRate !== "") {
1233
+ writer.uint32(34).string(math_1.Decimal.fromUserInput(message.unstakedDecayRate, 18).atomics);
1234
+ }
1235
+ if (message.transferTaxRate !== "") {
1236
+ writer.uint32(42).string(math_1.Decimal.fromUserInput(message.transferTaxRate, 18).atomics);
1237
+ }
1238
+ if (message.maxTipAmount !== "") {
1239
+ writer.uint32(50).string(message.maxTipAmount);
1240
+ }
1241
+ if (message.maxTipsPerEpoch !== 0) {
1242
+ writer.uint32(56).uint32(message.maxTipsPerEpoch);
1243
+ }
1244
+ if (message.maxGiftAmount !== "") {
1245
+ writer.uint32(66).string(message.maxGiftAmount);
1246
+ }
1247
+ if (message.giftOnlyToInvitees === true) {
1248
+ writer.uint32(72).bool(message.giftOnlyToInvitees);
1249
+ }
1250
+ if (message.minReputationMultiplier !== "") {
1251
+ writer.uint32(82).string(math_1.Decimal.fromUserInput(message.minReputationMultiplier, 18).atomics);
1252
+ }
1253
+ if (message.defaultReviewPeriodEpochs !== BigInt(0)) {
1254
+ writer.uint32(88).int64(message.defaultReviewPeriodEpochs);
1255
+ }
1256
+ if (message.defaultChallengePeriodEpochs !== BigInt(0)) {
1257
+ writer.uint32(96).int64(message.defaultChallengePeriodEpochs);
1258
+ }
1259
+ if (message.minInvitationStake !== "") {
1260
+ writer.uint32(106).string(message.minInvitationStake);
1261
+ }
1262
+ if (message.invitationAccountabilityEpochs !== BigInt(0)) {
1263
+ writer.uint32(112).int64(message.invitationAccountabilityEpochs);
1264
+ }
1265
+ if (message.referralRewardRate !== "") {
1266
+ writer.uint32(122).string(math_1.Decimal.fromUserInput(message.referralRewardRate, 18).atomics);
1267
+ }
1268
+ if (message.invitationCostMultiplier !== "") {
1269
+ writer.uint32(130).string(math_1.Decimal.fromUserInput(message.invitationCostMultiplier, 18).atomics);
1270
+ }
1271
+ if (message.minChallengeStake !== "") {
1272
+ writer.uint32(138).string(message.minChallengeStake);
1273
+ }
1274
+ if (message.challengerRewardRate !== "") {
1275
+ writer.uint32(146).string(math_1.Decimal.fromUserInput(message.challengerRewardRate, 18).atomics);
1276
+ }
1277
+ if (message.jurySize !== 0) {
1278
+ writer.uint32(152).uint32(message.jurySize);
1279
+ }
1280
+ if (message.jurySuperMajority !== "") {
1281
+ writer.uint32(162).string(math_1.Decimal.fromUserInput(message.jurySuperMajority, 18).atomics);
1282
+ }
1283
+ if (message.minJurorReputation !== "") {
1284
+ writer.uint32(170).string(math_1.Decimal.fromUserInput(message.minJurorReputation, 18).atomics);
1285
+ }
1286
+ if (message.simpleComplexityBudget !== "") {
1287
+ writer.uint32(178).string(message.simpleComplexityBudget);
1288
+ }
1289
+ if (message.standardComplexityBudget !== "") {
1290
+ writer.uint32(186).string(message.standardComplexityBudget);
1291
+ }
1292
+ if (message.complexComplexityBudget !== "") {
1293
+ writer.uint32(194).string(message.complexComplexityBudget);
1294
+ }
1295
+ if (message.expertComplexityBudget !== "") {
1296
+ writer.uint32(202).string(message.expertComplexityBudget);
1297
+ }
1298
+ if (message.soloExpertBonusRate !== "") {
1299
+ writer.uint32(210).string(math_1.Decimal.fromUserInput(message.soloExpertBonusRate, 18).atomics);
1300
+ }
1301
+ if (message.interimDeadlineEpochs !== BigInt(0)) {
1302
+ writer.uint32(216).int64(message.interimDeadlineEpochs);
1303
+ }
1304
+ if (message.maxActiveChallengesPerCommittee !== 0) {
1305
+ writer.uint32(224).uint32(message.maxActiveChallengesPerCommittee);
1306
+ }
1307
+ if (message.maxNewChallengesPerEpoch !== 0) {
1308
+ writer.uint32(232).uint32(message.maxNewChallengesPerEpoch);
1309
+ }
1310
+ if (message.challengeQueueMaxSize !== 0) {
1311
+ writer.uint32(240).uint32(message.challengeQueueMaxSize);
1312
+ }
1313
+ if (message.projectStakingApy !== "") {
1314
+ writer.uint32(250).string(math_1.Decimal.fromUserInput(message.projectStakingApy, 18).atomics);
1315
+ }
1316
+ if (message.projectCompletionBonusRate !== "") {
1317
+ writer.uint32(258).string(math_1.Decimal.fromUserInput(message.projectCompletionBonusRate, 18).atomics);
1318
+ }
1319
+ if (message.memberStakeRevenueShare !== "") {
1320
+ writer.uint32(266).string(math_1.Decimal.fromUserInput(message.memberStakeRevenueShare, 18).atomics);
1321
+ }
1322
+ if (message.tagStakeRevenueShare !== "") {
1323
+ writer.uint32(274).string(math_1.Decimal.fromUserInput(message.tagStakeRevenueShare, 18).atomics);
1324
+ }
1325
+ if (message.minStakeDurationSeconds !== BigInt(0)) {
1326
+ writer.uint32(280).int64(message.minStakeDurationSeconds);
1327
+ }
1328
+ if (message.allowSelfMemberStake === true) {
1329
+ writer.uint32(288).bool(message.allowSelfMemberStake);
1330
+ }
1331
+ if (message.challengeResponseDeadlineEpochs !== BigInt(0)) {
1332
+ writer.uint32(296).int64(message.challengeResponseDeadlineEpochs);
1333
+ }
1334
+ if (message.giftCooldownBlocks !== BigInt(0)) {
1335
+ writer.uint32(304).int64(message.giftCooldownBlocks);
1336
+ }
1337
+ if (message.maxGiftsPerSenderEpoch !== "") {
1338
+ writer.uint32(314).string(message.maxGiftsPerSenderEpoch);
1339
+ }
1340
+ if (message.contentConvictionHalfLifeEpochs !== BigInt(0)) {
1341
+ writer.uint32(320).int64(message.contentConvictionHalfLifeEpochs);
1342
+ }
1343
+ if (message.maxContentStakePerMember !== "") {
1344
+ writer.uint32(330).string(message.maxContentStakePerMember);
1345
+ }
1346
+ if (message.maxAuthorBondPerContent !== "") {
1347
+ writer.uint32(338).string(message.maxAuthorBondPerContent);
1348
+ }
1349
+ if (message.authorBondSlashOnModeration === true) {
1350
+ writer.uint32(344).bool(message.authorBondSlashOnModeration);
1351
+ }
1352
+ if (message.contentChallengeRewardShare !== "") {
1353
+ writer.uint32(354).string(math_1.Decimal.fromUserInput(message.contentChallengeRewardShare, 18).atomics);
1354
+ }
1355
+ if (message.convictionPropagationRatio !== "") {
1356
+ writer.uint32(362).string(math_1.Decimal.fromUserInput(message.convictionPropagationRatio, 18).atomics);
1357
+ }
1358
+ if (message.maxTagsPerInitiative !== 0) {
1359
+ writer.uint32(368).uint32(message.maxTagsPerInitiative);
1360
+ }
1361
+ if (message.reputationDecayRate !== "") {
1362
+ writer.uint32(378).string(math_1.Decimal.fromUserInput(message.reputationDecayRate, 18).atomics);
1363
+ }
1364
+ if (message.maxConvictionSharePerMember !== "") {
1365
+ writer.uint32(386).string(math_1.Decimal.fromUserInput(message.maxConvictionSharePerMember, 18).atomics);
1366
+ }
1367
+ if (message.invitationStakeBurnRate !== "") {
1368
+ writer.uint32(394).string(math_1.Decimal.fromUserInput(message.invitationStakeBurnRate, 18).atomics);
1369
+ }
1370
+ if (message.maxReputationGainPerEpoch !== "") {
1371
+ writer.uint32(402).string(math_1.Decimal.fromUserInput(message.maxReputationGainPerEpoch, 18).atomics);
1372
+ }
1373
+ return writer;
1374
+ },
1375
+ decode(input, length) {
1376
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
1377
+ let end = length === undefined ? reader.len : reader.pos + length;
1378
+ const message = createBaseRepOperationalParams();
1379
+ while (reader.pos < end) {
1380
+ const tag = reader.uint32();
1381
+ switch (tag >>> 3) {
1382
+ case 1:
1383
+ message.epochBlocks = reader.int64();
1384
+ break;
1385
+ case 2:
1386
+ message.seasonDurationEpochs = reader.int64();
1387
+ break;
1388
+ case 3:
1389
+ message.stakingApy = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1390
+ break;
1391
+ case 4:
1392
+ message.unstakedDecayRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1393
+ break;
1394
+ case 5:
1395
+ message.transferTaxRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1396
+ break;
1397
+ case 6:
1398
+ message.maxTipAmount = reader.string();
1399
+ break;
1400
+ case 7:
1401
+ message.maxTipsPerEpoch = reader.uint32();
1402
+ break;
1403
+ case 8:
1404
+ message.maxGiftAmount = reader.string();
1405
+ break;
1406
+ case 9:
1407
+ message.giftOnlyToInvitees = reader.bool();
1408
+ break;
1409
+ case 10:
1410
+ message.minReputationMultiplier = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1411
+ break;
1412
+ case 11:
1413
+ message.defaultReviewPeriodEpochs = reader.int64();
1414
+ break;
1415
+ case 12:
1416
+ message.defaultChallengePeriodEpochs = reader.int64();
1417
+ break;
1418
+ case 13:
1419
+ message.minInvitationStake = reader.string();
1420
+ break;
1421
+ case 14:
1422
+ message.invitationAccountabilityEpochs = reader.int64();
1423
+ break;
1424
+ case 15:
1425
+ message.referralRewardRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1426
+ break;
1427
+ case 16:
1428
+ message.invitationCostMultiplier = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1429
+ break;
1430
+ case 17:
1431
+ message.minChallengeStake = reader.string();
1432
+ break;
1433
+ case 18:
1434
+ message.challengerRewardRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1435
+ break;
1436
+ case 19:
1437
+ message.jurySize = reader.uint32();
1438
+ break;
1439
+ case 20:
1440
+ message.jurySuperMajority = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1441
+ break;
1442
+ case 21:
1443
+ message.minJurorReputation = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1444
+ break;
1445
+ case 22:
1446
+ message.simpleComplexityBudget = reader.string();
1447
+ break;
1448
+ case 23:
1449
+ message.standardComplexityBudget = reader.string();
1450
+ break;
1451
+ case 24:
1452
+ message.complexComplexityBudget = reader.string();
1453
+ break;
1454
+ case 25:
1455
+ message.expertComplexityBudget = reader.string();
1456
+ break;
1457
+ case 26:
1458
+ message.soloExpertBonusRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1459
+ break;
1460
+ case 27:
1461
+ message.interimDeadlineEpochs = reader.int64();
1462
+ break;
1463
+ case 28:
1464
+ message.maxActiveChallengesPerCommittee = reader.uint32();
1465
+ break;
1466
+ case 29:
1467
+ message.maxNewChallengesPerEpoch = reader.uint32();
1468
+ break;
1469
+ case 30:
1470
+ message.challengeQueueMaxSize = reader.uint32();
1471
+ break;
1472
+ case 31:
1473
+ message.projectStakingApy = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1474
+ break;
1475
+ case 32:
1476
+ message.projectCompletionBonusRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1477
+ break;
1478
+ case 33:
1479
+ message.memberStakeRevenueShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1480
+ break;
1481
+ case 34:
1482
+ message.tagStakeRevenueShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1483
+ break;
1484
+ case 35:
1485
+ message.minStakeDurationSeconds = reader.int64();
1486
+ break;
1487
+ case 36:
1488
+ message.allowSelfMemberStake = reader.bool();
1489
+ break;
1490
+ case 37:
1491
+ message.challengeResponseDeadlineEpochs = reader.int64();
1492
+ break;
1493
+ case 38:
1494
+ message.giftCooldownBlocks = reader.int64();
1495
+ break;
1496
+ case 39:
1497
+ message.maxGiftsPerSenderEpoch = reader.string();
1498
+ break;
1499
+ case 40:
1500
+ message.contentConvictionHalfLifeEpochs = reader.int64();
1501
+ break;
1502
+ case 41:
1503
+ message.maxContentStakePerMember = reader.string();
1504
+ break;
1505
+ case 42:
1506
+ message.maxAuthorBondPerContent = reader.string();
1507
+ break;
1508
+ case 43:
1509
+ message.authorBondSlashOnModeration = reader.bool();
1510
+ break;
1511
+ case 44:
1512
+ message.contentChallengeRewardShare = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1513
+ break;
1514
+ case 45:
1515
+ message.convictionPropagationRatio = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1516
+ break;
1517
+ case 46:
1518
+ message.maxTagsPerInitiative = reader.uint32();
1519
+ break;
1520
+ case 47:
1521
+ message.reputationDecayRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1522
+ break;
1523
+ case 48:
1524
+ message.maxConvictionSharePerMember = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1525
+ break;
1526
+ case 49:
1527
+ message.invitationStakeBurnRate = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1528
+ break;
1529
+ case 50:
1530
+ message.maxReputationGainPerEpoch = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
1531
+ break;
1532
+ default:
1533
+ reader.skipType(tag & 7);
1534
+ break;
1535
+ }
1536
+ }
1537
+ return message;
1538
+ },
1539
+ fromPartial(object) {
1540
+ const message = createBaseRepOperationalParams();
1541
+ message.epochBlocks = object.epochBlocks !== undefined && object.epochBlocks !== null ? BigInt(object.epochBlocks.toString()) : BigInt(0);
1542
+ message.seasonDurationEpochs = object.seasonDurationEpochs !== undefined && object.seasonDurationEpochs !== null ? BigInt(object.seasonDurationEpochs.toString()) : BigInt(0);
1543
+ message.stakingApy = object.stakingApy ?? "";
1544
+ message.unstakedDecayRate = object.unstakedDecayRate ?? "";
1545
+ message.transferTaxRate = object.transferTaxRate ?? "";
1546
+ message.maxTipAmount = object.maxTipAmount ?? "";
1547
+ message.maxTipsPerEpoch = object.maxTipsPerEpoch ?? 0;
1548
+ message.maxGiftAmount = object.maxGiftAmount ?? "";
1549
+ message.giftOnlyToInvitees = object.giftOnlyToInvitees ?? false;
1550
+ message.minReputationMultiplier = object.minReputationMultiplier ?? "";
1551
+ message.defaultReviewPeriodEpochs = object.defaultReviewPeriodEpochs !== undefined && object.defaultReviewPeriodEpochs !== null ? BigInt(object.defaultReviewPeriodEpochs.toString()) : BigInt(0);
1552
+ message.defaultChallengePeriodEpochs = object.defaultChallengePeriodEpochs !== undefined && object.defaultChallengePeriodEpochs !== null ? BigInt(object.defaultChallengePeriodEpochs.toString()) : BigInt(0);
1553
+ message.minInvitationStake = object.minInvitationStake ?? "";
1554
+ message.invitationAccountabilityEpochs = object.invitationAccountabilityEpochs !== undefined && object.invitationAccountabilityEpochs !== null ? BigInt(object.invitationAccountabilityEpochs.toString()) : BigInt(0);
1555
+ message.referralRewardRate = object.referralRewardRate ?? "";
1556
+ message.invitationCostMultiplier = object.invitationCostMultiplier ?? "";
1557
+ message.minChallengeStake = object.minChallengeStake ?? "";
1558
+ message.challengerRewardRate = object.challengerRewardRate ?? "";
1559
+ message.jurySize = object.jurySize ?? 0;
1560
+ message.jurySuperMajority = object.jurySuperMajority ?? "";
1561
+ message.minJurorReputation = object.minJurorReputation ?? "";
1562
+ message.simpleComplexityBudget = object.simpleComplexityBudget ?? "";
1563
+ message.standardComplexityBudget = object.standardComplexityBudget ?? "";
1564
+ message.complexComplexityBudget = object.complexComplexityBudget ?? "";
1565
+ message.expertComplexityBudget = object.expertComplexityBudget ?? "";
1566
+ message.soloExpertBonusRate = object.soloExpertBonusRate ?? "";
1567
+ message.interimDeadlineEpochs = object.interimDeadlineEpochs !== undefined && object.interimDeadlineEpochs !== null ? BigInt(object.interimDeadlineEpochs.toString()) : BigInt(0);
1568
+ message.maxActiveChallengesPerCommittee = object.maxActiveChallengesPerCommittee ?? 0;
1569
+ message.maxNewChallengesPerEpoch = object.maxNewChallengesPerEpoch ?? 0;
1570
+ message.challengeQueueMaxSize = object.challengeQueueMaxSize ?? 0;
1571
+ message.projectStakingApy = object.projectStakingApy ?? "";
1572
+ message.projectCompletionBonusRate = object.projectCompletionBonusRate ?? "";
1573
+ message.memberStakeRevenueShare = object.memberStakeRevenueShare ?? "";
1574
+ message.tagStakeRevenueShare = object.tagStakeRevenueShare ?? "";
1575
+ message.minStakeDurationSeconds = object.minStakeDurationSeconds !== undefined && object.minStakeDurationSeconds !== null ? BigInt(object.minStakeDurationSeconds.toString()) : BigInt(0);
1576
+ message.allowSelfMemberStake = object.allowSelfMemberStake ?? false;
1577
+ message.challengeResponseDeadlineEpochs = object.challengeResponseDeadlineEpochs !== undefined && object.challengeResponseDeadlineEpochs !== null ? BigInt(object.challengeResponseDeadlineEpochs.toString()) : BigInt(0);
1578
+ message.giftCooldownBlocks = object.giftCooldownBlocks !== undefined && object.giftCooldownBlocks !== null ? BigInt(object.giftCooldownBlocks.toString()) : BigInt(0);
1579
+ message.maxGiftsPerSenderEpoch = object.maxGiftsPerSenderEpoch ?? "";
1580
+ message.contentConvictionHalfLifeEpochs = object.contentConvictionHalfLifeEpochs !== undefined && object.contentConvictionHalfLifeEpochs !== null ? BigInt(object.contentConvictionHalfLifeEpochs.toString()) : BigInt(0);
1581
+ message.maxContentStakePerMember = object.maxContentStakePerMember ?? "";
1582
+ message.maxAuthorBondPerContent = object.maxAuthorBondPerContent ?? "";
1583
+ message.authorBondSlashOnModeration = object.authorBondSlashOnModeration ?? false;
1584
+ message.contentChallengeRewardShare = object.contentChallengeRewardShare ?? "";
1585
+ message.convictionPropagationRatio = object.convictionPropagationRatio ?? "";
1586
+ message.maxTagsPerInitiative = object.maxTagsPerInitiative ?? 0;
1587
+ message.reputationDecayRate = object.reputationDecayRate ?? "";
1588
+ message.maxConvictionSharePerMember = object.maxConvictionSharePerMember ?? "";
1589
+ message.invitationStakeBurnRate = object.invitationStakeBurnRate ?? "";
1590
+ message.maxReputationGainPerEpoch = object.maxReputationGainPerEpoch ?? "";
1591
+ return message;
1592
+ },
1593
+ fromAmino(object) {
1594
+ const message = createBaseRepOperationalParams();
1595
+ if (object.epoch_blocks !== undefined && object.epoch_blocks !== null) {
1596
+ message.epochBlocks = BigInt(object.epoch_blocks);
1597
+ }
1598
+ if (object.season_duration_epochs !== undefined && object.season_duration_epochs !== null) {
1599
+ message.seasonDurationEpochs = BigInt(object.season_duration_epochs);
1600
+ }
1601
+ if (object.staking_apy !== undefined && object.staking_apy !== null) {
1602
+ message.stakingApy = object.staking_apy;
1603
+ }
1604
+ if (object.unstaked_decay_rate !== undefined && object.unstaked_decay_rate !== null) {
1605
+ message.unstakedDecayRate = object.unstaked_decay_rate;
1606
+ }
1607
+ if (object.transfer_tax_rate !== undefined && object.transfer_tax_rate !== null) {
1608
+ message.transferTaxRate = object.transfer_tax_rate;
1609
+ }
1610
+ if (object.max_tip_amount !== undefined && object.max_tip_amount !== null) {
1611
+ message.maxTipAmount = object.max_tip_amount;
1612
+ }
1613
+ if (object.max_tips_per_epoch !== undefined && object.max_tips_per_epoch !== null) {
1614
+ message.maxTipsPerEpoch = object.max_tips_per_epoch;
1615
+ }
1616
+ if (object.max_gift_amount !== undefined && object.max_gift_amount !== null) {
1617
+ message.maxGiftAmount = object.max_gift_amount;
1618
+ }
1619
+ if (object.gift_only_to_invitees !== undefined && object.gift_only_to_invitees !== null) {
1620
+ message.giftOnlyToInvitees = object.gift_only_to_invitees;
1621
+ }
1622
+ if (object.min_reputation_multiplier !== undefined && object.min_reputation_multiplier !== null) {
1623
+ message.minReputationMultiplier = object.min_reputation_multiplier;
1624
+ }
1625
+ if (object.default_review_period_epochs !== undefined && object.default_review_period_epochs !== null) {
1626
+ message.defaultReviewPeriodEpochs = BigInt(object.default_review_period_epochs);
1627
+ }
1628
+ if (object.default_challenge_period_epochs !== undefined && object.default_challenge_period_epochs !== null) {
1629
+ message.defaultChallengePeriodEpochs = BigInt(object.default_challenge_period_epochs);
1630
+ }
1631
+ if (object.min_invitation_stake !== undefined && object.min_invitation_stake !== null) {
1632
+ message.minInvitationStake = object.min_invitation_stake;
1633
+ }
1634
+ if (object.invitation_accountability_epochs !== undefined && object.invitation_accountability_epochs !== null) {
1635
+ message.invitationAccountabilityEpochs = BigInt(object.invitation_accountability_epochs);
1636
+ }
1637
+ if (object.referral_reward_rate !== undefined && object.referral_reward_rate !== null) {
1638
+ message.referralRewardRate = object.referral_reward_rate;
1639
+ }
1640
+ if (object.invitation_cost_multiplier !== undefined && object.invitation_cost_multiplier !== null) {
1641
+ message.invitationCostMultiplier = object.invitation_cost_multiplier;
1642
+ }
1643
+ if (object.min_challenge_stake !== undefined && object.min_challenge_stake !== null) {
1644
+ message.minChallengeStake = object.min_challenge_stake;
1645
+ }
1646
+ if (object.challenger_reward_rate !== undefined && object.challenger_reward_rate !== null) {
1647
+ message.challengerRewardRate = object.challenger_reward_rate;
1648
+ }
1649
+ if (object.jury_size !== undefined && object.jury_size !== null) {
1650
+ message.jurySize = object.jury_size;
1651
+ }
1652
+ if (object.jury_super_majority !== undefined && object.jury_super_majority !== null) {
1653
+ message.jurySuperMajority = object.jury_super_majority;
1654
+ }
1655
+ if (object.min_juror_reputation !== undefined && object.min_juror_reputation !== null) {
1656
+ message.minJurorReputation = object.min_juror_reputation;
1657
+ }
1658
+ if (object.simple_complexity_budget !== undefined && object.simple_complexity_budget !== null) {
1659
+ message.simpleComplexityBudget = object.simple_complexity_budget;
1660
+ }
1661
+ if (object.standard_complexity_budget !== undefined && object.standard_complexity_budget !== null) {
1662
+ message.standardComplexityBudget = object.standard_complexity_budget;
1663
+ }
1664
+ if (object.complex_complexity_budget !== undefined && object.complex_complexity_budget !== null) {
1665
+ message.complexComplexityBudget = object.complex_complexity_budget;
1666
+ }
1667
+ if (object.expert_complexity_budget !== undefined && object.expert_complexity_budget !== null) {
1668
+ message.expertComplexityBudget = object.expert_complexity_budget;
1669
+ }
1670
+ if (object.solo_expert_bonus_rate !== undefined && object.solo_expert_bonus_rate !== null) {
1671
+ message.soloExpertBonusRate = object.solo_expert_bonus_rate;
1672
+ }
1673
+ if (object.interim_deadline_epochs !== undefined && object.interim_deadline_epochs !== null) {
1674
+ message.interimDeadlineEpochs = BigInt(object.interim_deadline_epochs);
1675
+ }
1676
+ if (object.max_active_challenges_per_committee !== undefined && object.max_active_challenges_per_committee !== null) {
1677
+ message.maxActiveChallengesPerCommittee = object.max_active_challenges_per_committee;
1678
+ }
1679
+ if (object.max_new_challenges_per_epoch !== undefined && object.max_new_challenges_per_epoch !== null) {
1680
+ message.maxNewChallengesPerEpoch = object.max_new_challenges_per_epoch;
1681
+ }
1682
+ if (object.challenge_queue_max_size !== undefined && object.challenge_queue_max_size !== null) {
1683
+ message.challengeQueueMaxSize = object.challenge_queue_max_size;
1684
+ }
1685
+ if (object.project_staking_apy !== undefined && object.project_staking_apy !== null) {
1686
+ message.projectStakingApy = object.project_staking_apy;
1687
+ }
1688
+ if (object.project_completion_bonus_rate !== undefined && object.project_completion_bonus_rate !== null) {
1689
+ message.projectCompletionBonusRate = object.project_completion_bonus_rate;
1690
+ }
1691
+ if (object.member_stake_revenue_share !== undefined && object.member_stake_revenue_share !== null) {
1692
+ message.memberStakeRevenueShare = object.member_stake_revenue_share;
1693
+ }
1694
+ if (object.tag_stake_revenue_share !== undefined && object.tag_stake_revenue_share !== null) {
1695
+ message.tagStakeRevenueShare = object.tag_stake_revenue_share;
1696
+ }
1697
+ if (object.min_stake_duration_seconds !== undefined && object.min_stake_duration_seconds !== null) {
1698
+ message.minStakeDurationSeconds = BigInt(object.min_stake_duration_seconds);
1699
+ }
1700
+ if (object.allow_self_member_stake !== undefined && object.allow_self_member_stake !== null) {
1701
+ message.allowSelfMemberStake = object.allow_self_member_stake;
1702
+ }
1703
+ if (object.challenge_response_deadline_epochs !== undefined && object.challenge_response_deadline_epochs !== null) {
1704
+ message.challengeResponseDeadlineEpochs = BigInt(object.challenge_response_deadline_epochs);
1705
+ }
1706
+ if (object.gift_cooldown_blocks !== undefined && object.gift_cooldown_blocks !== null) {
1707
+ message.giftCooldownBlocks = BigInt(object.gift_cooldown_blocks);
1708
+ }
1709
+ if (object.max_gifts_per_sender_epoch !== undefined && object.max_gifts_per_sender_epoch !== null) {
1710
+ message.maxGiftsPerSenderEpoch = object.max_gifts_per_sender_epoch;
1711
+ }
1712
+ if (object.content_conviction_half_life_epochs !== undefined && object.content_conviction_half_life_epochs !== null) {
1713
+ message.contentConvictionHalfLifeEpochs = BigInt(object.content_conviction_half_life_epochs);
1714
+ }
1715
+ if (object.max_content_stake_per_member !== undefined && object.max_content_stake_per_member !== null) {
1716
+ message.maxContentStakePerMember = object.max_content_stake_per_member;
1717
+ }
1718
+ if (object.max_author_bond_per_content !== undefined && object.max_author_bond_per_content !== null) {
1719
+ message.maxAuthorBondPerContent = object.max_author_bond_per_content;
1720
+ }
1721
+ if (object.author_bond_slash_on_moderation !== undefined && object.author_bond_slash_on_moderation !== null) {
1722
+ message.authorBondSlashOnModeration = object.author_bond_slash_on_moderation;
1723
+ }
1724
+ if (object.content_challenge_reward_share !== undefined && object.content_challenge_reward_share !== null) {
1725
+ message.contentChallengeRewardShare = object.content_challenge_reward_share;
1726
+ }
1727
+ if (object.conviction_propagation_ratio !== undefined && object.conviction_propagation_ratio !== null) {
1728
+ message.convictionPropagationRatio = object.conviction_propagation_ratio;
1729
+ }
1730
+ if (object.max_tags_per_initiative !== undefined && object.max_tags_per_initiative !== null) {
1731
+ message.maxTagsPerInitiative = object.max_tags_per_initiative;
1732
+ }
1733
+ if (object.reputation_decay_rate !== undefined && object.reputation_decay_rate !== null) {
1734
+ message.reputationDecayRate = object.reputation_decay_rate;
1735
+ }
1736
+ if (object.max_conviction_share_per_member !== undefined && object.max_conviction_share_per_member !== null) {
1737
+ message.maxConvictionSharePerMember = object.max_conviction_share_per_member;
1738
+ }
1739
+ if (object.invitation_stake_burn_rate !== undefined && object.invitation_stake_burn_rate !== null) {
1740
+ message.invitationStakeBurnRate = object.invitation_stake_burn_rate;
1741
+ }
1742
+ if (object.max_reputation_gain_per_epoch !== undefined && object.max_reputation_gain_per_epoch !== null) {
1743
+ message.maxReputationGainPerEpoch = object.max_reputation_gain_per_epoch;
1744
+ }
1745
+ return message;
1746
+ },
1747
+ toAmino(message) {
1748
+ const obj = {};
1749
+ obj.epoch_blocks = message.epochBlocks !== BigInt(0) ? message.epochBlocks?.toString() : undefined;
1750
+ obj.season_duration_epochs = message.seasonDurationEpochs !== BigInt(0) ? message.seasonDurationEpochs?.toString() : undefined;
1751
+ obj.staking_apy = message.stakingApy === "" ? undefined : message.stakingApy;
1752
+ obj.unstaked_decay_rate = message.unstakedDecayRate === "" ? undefined : message.unstakedDecayRate;
1753
+ obj.transfer_tax_rate = message.transferTaxRate === "" ? undefined : message.transferTaxRate;
1754
+ obj.max_tip_amount = message.maxTipAmount === "" ? undefined : message.maxTipAmount;
1755
+ obj.max_tips_per_epoch = message.maxTipsPerEpoch === 0 ? undefined : message.maxTipsPerEpoch;
1756
+ obj.max_gift_amount = message.maxGiftAmount === "" ? undefined : message.maxGiftAmount;
1757
+ obj.gift_only_to_invitees = message.giftOnlyToInvitees === false ? undefined : message.giftOnlyToInvitees;
1758
+ obj.min_reputation_multiplier = message.minReputationMultiplier === "" ? undefined : message.minReputationMultiplier;
1759
+ obj.default_review_period_epochs = message.defaultReviewPeriodEpochs !== BigInt(0) ? message.defaultReviewPeriodEpochs?.toString() : undefined;
1760
+ obj.default_challenge_period_epochs = message.defaultChallengePeriodEpochs !== BigInt(0) ? message.defaultChallengePeriodEpochs?.toString() : undefined;
1761
+ obj.min_invitation_stake = message.minInvitationStake === "" ? undefined : message.minInvitationStake;
1762
+ obj.invitation_accountability_epochs = message.invitationAccountabilityEpochs !== BigInt(0) ? message.invitationAccountabilityEpochs?.toString() : undefined;
1763
+ obj.referral_reward_rate = message.referralRewardRate === "" ? undefined : message.referralRewardRate;
1764
+ obj.invitation_cost_multiplier = message.invitationCostMultiplier === "" ? undefined : message.invitationCostMultiplier;
1765
+ obj.min_challenge_stake = message.minChallengeStake === "" ? undefined : message.minChallengeStake;
1766
+ obj.challenger_reward_rate = message.challengerRewardRate === "" ? undefined : message.challengerRewardRate;
1767
+ obj.jury_size = message.jurySize === 0 ? undefined : message.jurySize;
1768
+ obj.jury_super_majority = message.jurySuperMajority === "" ? undefined : message.jurySuperMajority;
1769
+ obj.min_juror_reputation = message.minJurorReputation === "" ? undefined : message.minJurorReputation;
1770
+ obj.simple_complexity_budget = message.simpleComplexityBudget === "" ? undefined : message.simpleComplexityBudget;
1771
+ obj.standard_complexity_budget = message.standardComplexityBudget === "" ? undefined : message.standardComplexityBudget;
1772
+ obj.complex_complexity_budget = message.complexComplexityBudget === "" ? undefined : message.complexComplexityBudget;
1773
+ obj.expert_complexity_budget = message.expertComplexityBudget === "" ? undefined : message.expertComplexityBudget;
1774
+ obj.solo_expert_bonus_rate = message.soloExpertBonusRate === "" ? undefined : message.soloExpertBonusRate;
1775
+ obj.interim_deadline_epochs = message.interimDeadlineEpochs !== BigInt(0) ? message.interimDeadlineEpochs?.toString() : undefined;
1776
+ obj.max_active_challenges_per_committee = message.maxActiveChallengesPerCommittee === 0 ? undefined : message.maxActiveChallengesPerCommittee;
1777
+ obj.max_new_challenges_per_epoch = message.maxNewChallengesPerEpoch === 0 ? undefined : message.maxNewChallengesPerEpoch;
1778
+ obj.challenge_queue_max_size = message.challengeQueueMaxSize === 0 ? undefined : message.challengeQueueMaxSize;
1779
+ obj.project_staking_apy = message.projectStakingApy === "" ? undefined : message.projectStakingApy;
1780
+ obj.project_completion_bonus_rate = message.projectCompletionBonusRate === "" ? undefined : message.projectCompletionBonusRate;
1781
+ obj.member_stake_revenue_share = message.memberStakeRevenueShare === "" ? undefined : message.memberStakeRevenueShare;
1782
+ obj.tag_stake_revenue_share = message.tagStakeRevenueShare === "" ? undefined : message.tagStakeRevenueShare;
1783
+ obj.min_stake_duration_seconds = message.minStakeDurationSeconds !== BigInt(0) ? message.minStakeDurationSeconds?.toString() : undefined;
1784
+ obj.allow_self_member_stake = message.allowSelfMemberStake === false ? undefined : message.allowSelfMemberStake;
1785
+ obj.challenge_response_deadline_epochs = message.challengeResponseDeadlineEpochs !== BigInt(0) ? message.challengeResponseDeadlineEpochs?.toString() : undefined;
1786
+ obj.gift_cooldown_blocks = message.giftCooldownBlocks !== BigInt(0) ? message.giftCooldownBlocks?.toString() : undefined;
1787
+ obj.max_gifts_per_sender_epoch = message.maxGiftsPerSenderEpoch === "" ? undefined : message.maxGiftsPerSenderEpoch;
1788
+ obj.content_conviction_half_life_epochs = message.contentConvictionHalfLifeEpochs !== BigInt(0) ? message.contentConvictionHalfLifeEpochs?.toString() : undefined;
1789
+ obj.max_content_stake_per_member = message.maxContentStakePerMember === "" ? undefined : message.maxContentStakePerMember;
1790
+ obj.max_author_bond_per_content = message.maxAuthorBondPerContent === "" ? undefined : message.maxAuthorBondPerContent;
1791
+ obj.author_bond_slash_on_moderation = message.authorBondSlashOnModeration === false ? undefined : message.authorBondSlashOnModeration;
1792
+ obj.content_challenge_reward_share = message.contentChallengeRewardShare === "" ? undefined : message.contentChallengeRewardShare;
1793
+ obj.conviction_propagation_ratio = message.convictionPropagationRatio === "" ? undefined : message.convictionPropagationRatio;
1794
+ obj.max_tags_per_initiative = message.maxTagsPerInitiative === 0 ? undefined : message.maxTagsPerInitiative;
1795
+ obj.reputation_decay_rate = message.reputationDecayRate === "" ? undefined : message.reputationDecayRate;
1796
+ obj.max_conviction_share_per_member = message.maxConvictionSharePerMember === "" ? undefined : message.maxConvictionSharePerMember;
1797
+ obj.invitation_stake_burn_rate = message.invitationStakeBurnRate === "" ? undefined : message.invitationStakeBurnRate;
1798
+ obj.max_reputation_gain_per_epoch = message.maxReputationGainPerEpoch === "" ? undefined : message.maxReputationGainPerEpoch;
1799
+ return obj;
1800
+ },
1801
+ fromAminoMsg(object) {
1802
+ return exports.RepOperationalParams.fromAmino(object.value);
1803
+ },
1804
+ toAminoMsg(message) {
1805
+ return {
1806
+ type: "sparkdream/x/rep/RepOperationalParams",
1807
+ value: exports.RepOperationalParams.toAmino(message)
1808
+ };
1809
+ },
1810
+ fromProtoMsg(message) {
1811
+ return exports.RepOperationalParams.decode(message.value);
1812
+ },
1813
+ toProto(message) {
1814
+ return exports.RepOperationalParams.encode(message).finish();
1815
+ },
1816
+ toProtoMsg(message) {
1817
+ return {
1818
+ typeUrl: "/sparkdream.rep.v1.RepOperationalParams",
1819
+ value: exports.RepOperationalParams.encode(message).finish()
1820
+ };
1821
+ }
1822
+ };