@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,857 @@
1
+ //@ts-nocheck
2
+ import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ import { bytesFromBase64, base64FromBytes } from "../../../helpers";
4
+ export var TrustLevel;
5
+ (function (TrustLevel) {
6
+ TrustLevel[TrustLevel["TRUST_LEVEL_NEW"] = 0] = "TRUST_LEVEL_NEW";
7
+ TrustLevel[TrustLevel["TRUST_LEVEL_PROVISIONAL"] = 1] = "TRUST_LEVEL_PROVISIONAL";
8
+ TrustLevel[TrustLevel["TRUST_LEVEL_ESTABLISHED"] = 2] = "TRUST_LEVEL_ESTABLISHED";
9
+ TrustLevel[TrustLevel["TRUST_LEVEL_TRUSTED"] = 3] = "TRUST_LEVEL_TRUSTED";
10
+ TrustLevel[TrustLevel["TRUST_LEVEL_CORE"] = 4] = "TRUST_LEVEL_CORE";
11
+ TrustLevel[TrustLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
12
+ })(TrustLevel || (TrustLevel = {}));
13
+ export const TrustLevelAmino = TrustLevel;
14
+ export function trustLevelFromJSON(object) {
15
+ switch (object) {
16
+ case 0:
17
+ case "TRUST_LEVEL_NEW":
18
+ return TrustLevel.TRUST_LEVEL_NEW;
19
+ case 1:
20
+ case "TRUST_LEVEL_PROVISIONAL":
21
+ return TrustLevel.TRUST_LEVEL_PROVISIONAL;
22
+ case 2:
23
+ case "TRUST_LEVEL_ESTABLISHED":
24
+ return TrustLevel.TRUST_LEVEL_ESTABLISHED;
25
+ case 3:
26
+ case "TRUST_LEVEL_TRUSTED":
27
+ return TrustLevel.TRUST_LEVEL_TRUSTED;
28
+ case 4:
29
+ case "TRUST_LEVEL_CORE":
30
+ return TrustLevel.TRUST_LEVEL_CORE;
31
+ case -1:
32
+ case "UNRECOGNIZED":
33
+ default:
34
+ return TrustLevel.UNRECOGNIZED;
35
+ }
36
+ }
37
+ export function trustLevelToJSON(object) {
38
+ switch (object) {
39
+ case TrustLevel.TRUST_LEVEL_NEW:
40
+ return "TRUST_LEVEL_NEW";
41
+ case TrustLevel.TRUST_LEVEL_PROVISIONAL:
42
+ return "TRUST_LEVEL_PROVISIONAL";
43
+ case TrustLevel.TRUST_LEVEL_ESTABLISHED:
44
+ return "TRUST_LEVEL_ESTABLISHED";
45
+ case TrustLevel.TRUST_LEVEL_TRUSTED:
46
+ return "TRUST_LEVEL_TRUSTED";
47
+ case TrustLevel.TRUST_LEVEL_CORE:
48
+ return "TRUST_LEVEL_CORE";
49
+ case TrustLevel.UNRECOGNIZED:
50
+ default:
51
+ return "UNRECOGNIZED";
52
+ }
53
+ }
54
+ export var MemberStatus;
55
+ (function (MemberStatus) {
56
+ MemberStatus[MemberStatus["MEMBER_STATUS_ACTIVE"] = 0] = "MEMBER_STATUS_ACTIVE";
57
+ MemberStatus[MemberStatus["MEMBER_STATUS_INACTIVE"] = 1] = "MEMBER_STATUS_INACTIVE";
58
+ MemberStatus[MemberStatus["MEMBER_STATUS_ZEROED"] = 2] = "MEMBER_STATUS_ZEROED";
59
+ MemberStatus[MemberStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
60
+ })(MemberStatus || (MemberStatus = {}));
61
+ export const MemberStatusAmino = MemberStatus;
62
+ export function memberStatusFromJSON(object) {
63
+ switch (object) {
64
+ case 0:
65
+ case "MEMBER_STATUS_ACTIVE":
66
+ return MemberStatus.MEMBER_STATUS_ACTIVE;
67
+ case 1:
68
+ case "MEMBER_STATUS_INACTIVE":
69
+ return MemberStatus.MEMBER_STATUS_INACTIVE;
70
+ case 2:
71
+ case "MEMBER_STATUS_ZEROED":
72
+ return MemberStatus.MEMBER_STATUS_ZEROED;
73
+ case -1:
74
+ case "UNRECOGNIZED":
75
+ default:
76
+ return MemberStatus.UNRECOGNIZED;
77
+ }
78
+ }
79
+ export function memberStatusToJSON(object) {
80
+ switch (object) {
81
+ case MemberStatus.MEMBER_STATUS_ACTIVE:
82
+ return "MEMBER_STATUS_ACTIVE";
83
+ case MemberStatus.MEMBER_STATUS_INACTIVE:
84
+ return "MEMBER_STATUS_INACTIVE";
85
+ case MemberStatus.MEMBER_STATUS_ZEROED:
86
+ return "MEMBER_STATUS_ZEROED";
87
+ case MemberStatus.UNRECOGNIZED:
88
+ default:
89
+ return "UNRECOGNIZED";
90
+ }
91
+ }
92
+ function createBaseMember_ReputationScoresEntry() {
93
+ return {
94
+ key: "",
95
+ value: ""
96
+ };
97
+ }
98
+ /**
99
+ * @name Member_ReputationScoresEntry
100
+ * @package sparkdream.rep.v1
101
+ * @see proto type: sparkdream.rep.v1.undefined
102
+ */
103
+ export const Member_ReputationScoresEntry = {
104
+ encode(message, writer = BinaryWriter.create()) {
105
+ if (message.key !== "") {
106
+ writer.uint32(10).string(message.key);
107
+ }
108
+ if (message.value !== "") {
109
+ writer.uint32(18).string(message.value);
110
+ }
111
+ return writer;
112
+ },
113
+ decode(input, length) {
114
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
115
+ let end = length === undefined ? reader.len : reader.pos + length;
116
+ const message = createBaseMember_ReputationScoresEntry();
117
+ while (reader.pos < end) {
118
+ const tag = reader.uint32();
119
+ switch (tag >>> 3) {
120
+ case 1:
121
+ message.key = reader.string();
122
+ break;
123
+ case 2:
124
+ message.value = reader.string();
125
+ break;
126
+ default:
127
+ reader.skipType(tag & 7);
128
+ break;
129
+ }
130
+ }
131
+ return message;
132
+ },
133
+ fromPartial(object) {
134
+ const message = createBaseMember_ReputationScoresEntry();
135
+ message.key = object.key ?? "";
136
+ message.value = object.value ?? "";
137
+ return message;
138
+ },
139
+ fromAmino(object) {
140
+ const message = createBaseMember_ReputationScoresEntry();
141
+ if (object.key !== undefined && object.key !== null) {
142
+ message.key = object.key;
143
+ }
144
+ if (object.value !== undefined && object.value !== null) {
145
+ message.value = object.value;
146
+ }
147
+ return message;
148
+ },
149
+ toAmino(message) {
150
+ const obj = {};
151
+ obj.key = message.key === "" ? undefined : message.key;
152
+ obj.value = message.value === "" ? undefined : message.value;
153
+ return obj;
154
+ },
155
+ fromAminoMsg(object) {
156
+ return Member_ReputationScoresEntry.fromAmino(object.value);
157
+ },
158
+ fromProtoMsg(message) {
159
+ return Member_ReputationScoresEntry.decode(message.value);
160
+ },
161
+ toProto(message) {
162
+ return Member_ReputationScoresEntry.encode(message).finish();
163
+ }
164
+ };
165
+ function createBaseMember_LifetimeReputationEntry() {
166
+ return {
167
+ key: "",
168
+ value: ""
169
+ };
170
+ }
171
+ /**
172
+ * @name Member_LifetimeReputationEntry
173
+ * @package sparkdream.rep.v1
174
+ * @see proto type: sparkdream.rep.v1.undefined
175
+ */
176
+ export const Member_LifetimeReputationEntry = {
177
+ encode(message, writer = BinaryWriter.create()) {
178
+ if (message.key !== "") {
179
+ writer.uint32(10).string(message.key);
180
+ }
181
+ if (message.value !== "") {
182
+ writer.uint32(18).string(message.value);
183
+ }
184
+ return writer;
185
+ },
186
+ decode(input, length) {
187
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
188
+ let end = length === undefined ? reader.len : reader.pos + length;
189
+ const message = createBaseMember_LifetimeReputationEntry();
190
+ while (reader.pos < end) {
191
+ const tag = reader.uint32();
192
+ switch (tag >>> 3) {
193
+ case 1:
194
+ message.key = reader.string();
195
+ break;
196
+ case 2:
197
+ message.value = reader.string();
198
+ break;
199
+ default:
200
+ reader.skipType(tag & 7);
201
+ break;
202
+ }
203
+ }
204
+ return message;
205
+ },
206
+ fromPartial(object) {
207
+ const message = createBaseMember_LifetimeReputationEntry();
208
+ message.key = object.key ?? "";
209
+ message.value = object.value ?? "";
210
+ return message;
211
+ },
212
+ fromAmino(object) {
213
+ const message = createBaseMember_LifetimeReputationEntry();
214
+ if (object.key !== undefined && object.key !== null) {
215
+ message.key = object.key;
216
+ }
217
+ if (object.value !== undefined && object.value !== null) {
218
+ message.value = object.value;
219
+ }
220
+ return message;
221
+ },
222
+ toAmino(message) {
223
+ const obj = {};
224
+ obj.key = message.key === "" ? undefined : message.key;
225
+ obj.value = message.value === "" ? undefined : message.value;
226
+ return obj;
227
+ },
228
+ fromAminoMsg(object) {
229
+ return Member_LifetimeReputationEntry.fromAmino(object.value);
230
+ },
231
+ fromProtoMsg(message) {
232
+ return Member_LifetimeReputationEntry.decode(message.value);
233
+ },
234
+ toProto(message) {
235
+ return Member_LifetimeReputationEntry.encode(message).finish();
236
+ }
237
+ };
238
+ function createBaseMember_ReputationGainedThisEpochEntry() {
239
+ return {
240
+ key: "",
241
+ value: ""
242
+ };
243
+ }
244
+ /**
245
+ * @name Member_ReputationGainedThisEpochEntry
246
+ * @package sparkdream.rep.v1
247
+ * @see proto type: sparkdream.rep.v1.undefined
248
+ */
249
+ export const Member_ReputationGainedThisEpochEntry = {
250
+ encode(message, writer = BinaryWriter.create()) {
251
+ if (message.key !== "") {
252
+ writer.uint32(10).string(message.key);
253
+ }
254
+ if (message.value !== "") {
255
+ writer.uint32(18).string(message.value);
256
+ }
257
+ return writer;
258
+ },
259
+ decode(input, length) {
260
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
261
+ let end = length === undefined ? reader.len : reader.pos + length;
262
+ const message = createBaseMember_ReputationGainedThisEpochEntry();
263
+ while (reader.pos < end) {
264
+ const tag = reader.uint32();
265
+ switch (tag >>> 3) {
266
+ case 1:
267
+ message.key = reader.string();
268
+ break;
269
+ case 2:
270
+ message.value = reader.string();
271
+ break;
272
+ default:
273
+ reader.skipType(tag & 7);
274
+ break;
275
+ }
276
+ }
277
+ return message;
278
+ },
279
+ fromPartial(object) {
280
+ const message = createBaseMember_ReputationGainedThisEpochEntry();
281
+ message.key = object.key ?? "";
282
+ message.value = object.value ?? "";
283
+ return message;
284
+ },
285
+ fromAmino(object) {
286
+ const message = createBaseMember_ReputationGainedThisEpochEntry();
287
+ if (object.key !== undefined && object.key !== null) {
288
+ message.key = object.key;
289
+ }
290
+ if (object.value !== undefined && object.value !== null) {
291
+ message.value = object.value;
292
+ }
293
+ return message;
294
+ },
295
+ toAmino(message) {
296
+ const obj = {};
297
+ obj.key = message.key === "" ? undefined : message.key;
298
+ obj.value = message.value === "" ? undefined : message.value;
299
+ return obj;
300
+ },
301
+ fromAminoMsg(object) {
302
+ return Member_ReputationGainedThisEpochEntry.fromAmino(object.value);
303
+ },
304
+ fromProtoMsg(message) {
305
+ return Member_ReputationGainedThisEpochEntry.decode(message.value);
306
+ },
307
+ toProto(message) {
308
+ return Member_ReputationGainedThisEpochEntry.encode(message).finish();
309
+ }
310
+ };
311
+ function createBaseMember() {
312
+ return {
313
+ address: "",
314
+ dreamBalance: "",
315
+ stakedDream: "",
316
+ lifetimeEarned: "",
317
+ lifetimeBurned: "",
318
+ reputationScores: {},
319
+ lifetimeReputation: {},
320
+ trustLevel: 0,
321
+ trustLevelUpdatedAt: BigInt(0),
322
+ joinedSeason: 0,
323
+ joinedAt: BigInt(0),
324
+ invitedBy: "",
325
+ invitationChain: [],
326
+ invitationCredits: 0,
327
+ status: 0,
328
+ zeroedAt: BigInt(0),
329
+ zeroedCount: 0,
330
+ lastDecayEpoch: BigInt(0),
331
+ tipsGivenThisEpoch: 0,
332
+ lastTipEpoch: BigInt(0),
333
+ completedInterimsCount: 0,
334
+ completedInitiativesCount: 0,
335
+ giftsSentThisEpoch: "",
336
+ lastGiftEpoch: BigInt(0),
337
+ lastCreditResetSeason: BigInt(0),
338
+ reputationGainedThisEpoch: {},
339
+ lastRepGainEpoch: BigInt(0),
340
+ zkPublicKey: new Uint8Array()
341
+ };
342
+ }
343
+ /**
344
+ * Member defines the Member message.
345
+ * @name Member
346
+ * @package sparkdream.rep.v1
347
+ * @see proto type: sparkdream.rep.v1.Member
348
+ */
349
+ export const Member = {
350
+ typeUrl: "/sparkdream.rep.v1.Member",
351
+ encode(message, writer = BinaryWriter.create()) {
352
+ if (message.address !== "") {
353
+ writer.uint32(10).string(message.address);
354
+ }
355
+ if (message.dreamBalance !== "") {
356
+ writer.uint32(18).string(message.dreamBalance);
357
+ }
358
+ if (message.stakedDream !== "") {
359
+ writer.uint32(26).string(message.stakedDream);
360
+ }
361
+ if (message.lifetimeEarned !== "") {
362
+ writer.uint32(34).string(message.lifetimeEarned);
363
+ }
364
+ if (message.lifetimeBurned !== "") {
365
+ writer.uint32(42).string(message.lifetimeBurned);
366
+ }
367
+ Object.entries(message.reputationScores).forEach(([key, value]) => {
368
+ Member_ReputationScoresEntry.encode({
369
+ key: key,
370
+ value
371
+ }, writer.uint32(50).fork()).ldelim();
372
+ });
373
+ Object.entries(message.lifetimeReputation).forEach(([key, value]) => {
374
+ Member_LifetimeReputationEntry.encode({
375
+ key: key,
376
+ value
377
+ }, writer.uint32(58).fork()).ldelim();
378
+ });
379
+ if (message.trustLevel !== 0) {
380
+ writer.uint32(64).int32(message.trustLevel);
381
+ }
382
+ if (message.trustLevelUpdatedAt !== BigInt(0)) {
383
+ writer.uint32(72).int64(message.trustLevelUpdatedAt);
384
+ }
385
+ if (message.joinedSeason !== 0) {
386
+ writer.uint32(80).uint32(message.joinedSeason);
387
+ }
388
+ if (message.joinedAt !== BigInt(0)) {
389
+ writer.uint32(88).int64(message.joinedAt);
390
+ }
391
+ if (message.invitedBy !== "") {
392
+ writer.uint32(98).string(message.invitedBy);
393
+ }
394
+ for (const v of message.invitationChain) {
395
+ writer.uint32(106).string(v);
396
+ }
397
+ if (message.invitationCredits !== 0) {
398
+ writer.uint32(112).uint32(message.invitationCredits);
399
+ }
400
+ if (message.status !== 0) {
401
+ writer.uint32(120).int32(message.status);
402
+ }
403
+ if (message.zeroedAt !== BigInt(0)) {
404
+ writer.uint32(128).int64(message.zeroedAt);
405
+ }
406
+ if (message.zeroedCount !== 0) {
407
+ writer.uint32(136).uint32(message.zeroedCount);
408
+ }
409
+ if (message.lastDecayEpoch !== BigInt(0)) {
410
+ writer.uint32(144).int64(message.lastDecayEpoch);
411
+ }
412
+ if (message.tipsGivenThisEpoch !== 0) {
413
+ writer.uint32(152).uint32(message.tipsGivenThisEpoch);
414
+ }
415
+ if (message.lastTipEpoch !== BigInt(0)) {
416
+ writer.uint32(160).int64(message.lastTipEpoch);
417
+ }
418
+ if (message.completedInterimsCount !== 0) {
419
+ writer.uint32(168).uint32(message.completedInterimsCount);
420
+ }
421
+ if (message.completedInitiativesCount !== 0) {
422
+ writer.uint32(176).uint32(message.completedInitiativesCount);
423
+ }
424
+ if (message.giftsSentThisEpoch !== "") {
425
+ writer.uint32(186).string(message.giftsSentThisEpoch);
426
+ }
427
+ if (message.lastGiftEpoch !== BigInt(0)) {
428
+ writer.uint32(192).int64(message.lastGiftEpoch);
429
+ }
430
+ if (message.lastCreditResetSeason !== BigInt(0)) {
431
+ writer.uint32(200).int64(message.lastCreditResetSeason);
432
+ }
433
+ Object.entries(message.reputationGainedThisEpoch).forEach(([key, value]) => {
434
+ Member_ReputationGainedThisEpochEntry.encode({
435
+ key: key,
436
+ value
437
+ }, writer.uint32(210).fork()).ldelim();
438
+ });
439
+ if (message.lastRepGainEpoch !== BigInt(0)) {
440
+ writer.uint32(216).int64(message.lastRepGainEpoch);
441
+ }
442
+ if (message.zkPublicKey.length !== 0) {
443
+ writer.uint32(226).bytes(message.zkPublicKey);
444
+ }
445
+ return writer;
446
+ },
447
+ decode(input, length) {
448
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
449
+ let end = length === undefined ? reader.len : reader.pos + length;
450
+ const message = createBaseMember();
451
+ while (reader.pos < end) {
452
+ const tag = reader.uint32();
453
+ switch (tag >>> 3) {
454
+ case 1:
455
+ message.address = reader.string();
456
+ break;
457
+ case 2:
458
+ message.dreamBalance = reader.string();
459
+ break;
460
+ case 3:
461
+ message.stakedDream = reader.string();
462
+ break;
463
+ case 4:
464
+ message.lifetimeEarned = reader.string();
465
+ break;
466
+ case 5:
467
+ message.lifetimeBurned = reader.string();
468
+ break;
469
+ case 6:
470
+ const entry6 = Member_ReputationScoresEntry.decode(reader, reader.uint32());
471
+ if (entry6.value !== undefined) {
472
+ message.reputationScores[entry6.key] = entry6.value;
473
+ }
474
+ break;
475
+ case 7:
476
+ const entry7 = Member_LifetimeReputationEntry.decode(reader, reader.uint32());
477
+ if (entry7.value !== undefined) {
478
+ message.lifetimeReputation[entry7.key] = entry7.value;
479
+ }
480
+ break;
481
+ case 8:
482
+ message.trustLevel = reader.int32();
483
+ break;
484
+ case 9:
485
+ message.trustLevelUpdatedAt = reader.int64();
486
+ break;
487
+ case 10:
488
+ message.joinedSeason = reader.uint32();
489
+ break;
490
+ case 11:
491
+ message.joinedAt = reader.int64();
492
+ break;
493
+ case 12:
494
+ message.invitedBy = reader.string();
495
+ break;
496
+ case 13:
497
+ message.invitationChain.push(reader.string());
498
+ break;
499
+ case 14:
500
+ message.invitationCredits = reader.uint32();
501
+ break;
502
+ case 15:
503
+ message.status = reader.int32();
504
+ break;
505
+ case 16:
506
+ message.zeroedAt = reader.int64();
507
+ break;
508
+ case 17:
509
+ message.zeroedCount = reader.uint32();
510
+ break;
511
+ case 18:
512
+ message.lastDecayEpoch = reader.int64();
513
+ break;
514
+ case 19:
515
+ message.tipsGivenThisEpoch = reader.uint32();
516
+ break;
517
+ case 20:
518
+ message.lastTipEpoch = reader.int64();
519
+ break;
520
+ case 21:
521
+ message.completedInterimsCount = reader.uint32();
522
+ break;
523
+ case 22:
524
+ message.completedInitiativesCount = reader.uint32();
525
+ break;
526
+ case 23:
527
+ message.giftsSentThisEpoch = reader.string();
528
+ break;
529
+ case 24:
530
+ message.lastGiftEpoch = reader.int64();
531
+ break;
532
+ case 25:
533
+ message.lastCreditResetSeason = reader.int64();
534
+ break;
535
+ case 26:
536
+ const entry26 = Member_ReputationGainedThisEpochEntry.decode(reader, reader.uint32());
537
+ if (entry26.value !== undefined) {
538
+ message.reputationGainedThisEpoch[entry26.key] = entry26.value;
539
+ }
540
+ break;
541
+ case 27:
542
+ message.lastRepGainEpoch = reader.int64();
543
+ break;
544
+ case 28:
545
+ message.zkPublicKey = reader.bytes();
546
+ break;
547
+ default:
548
+ reader.skipType(tag & 7);
549
+ break;
550
+ }
551
+ }
552
+ return message;
553
+ },
554
+ fromPartial(object) {
555
+ const message = createBaseMember();
556
+ message.address = object.address ?? "";
557
+ message.dreamBalance = object.dreamBalance ?? "";
558
+ message.stakedDream = object.stakedDream ?? "";
559
+ message.lifetimeEarned = object.lifetimeEarned ?? "";
560
+ message.lifetimeBurned = object.lifetimeBurned ?? "";
561
+ message.reputationScores = Object.entries(object.reputationScores ?? {}).reduce((acc, [key, value]) => {
562
+ if (value !== undefined) {
563
+ acc[key] = String(value);
564
+ }
565
+ return acc;
566
+ }, {});
567
+ message.lifetimeReputation = Object.entries(object.lifetimeReputation ?? {}).reduce((acc, [key, value]) => {
568
+ if (value !== undefined) {
569
+ acc[key] = String(value);
570
+ }
571
+ return acc;
572
+ }, {});
573
+ message.trustLevel = object.trustLevel ?? 0;
574
+ message.trustLevelUpdatedAt = object.trustLevelUpdatedAt !== undefined && object.trustLevelUpdatedAt !== null ? BigInt(object.trustLevelUpdatedAt.toString()) : BigInt(0);
575
+ message.joinedSeason = object.joinedSeason ?? 0;
576
+ message.joinedAt = object.joinedAt !== undefined && object.joinedAt !== null ? BigInt(object.joinedAt.toString()) : BigInt(0);
577
+ message.invitedBy = object.invitedBy ?? "";
578
+ message.invitationChain = object.invitationChain?.map(e => e) || [];
579
+ message.invitationCredits = object.invitationCredits ?? 0;
580
+ message.status = object.status ?? 0;
581
+ message.zeroedAt = object.zeroedAt !== undefined && object.zeroedAt !== null ? BigInt(object.zeroedAt.toString()) : BigInt(0);
582
+ message.zeroedCount = object.zeroedCount ?? 0;
583
+ message.lastDecayEpoch = object.lastDecayEpoch !== undefined && object.lastDecayEpoch !== null ? BigInt(object.lastDecayEpoch.toString()) : BigInt(0);
584
+ message.tipsGivenThisEpoch = object.tipsGivenThisEpoch ?? 0;
585
+ message.lastTipEpoch = object.lastTipEpoch !== undefined && object.lastTipEpoch !== null ? BigInt(object.lastTipEpoch.toString()) : BigInt(0);
586
+ message.completedInterimsCount = object.completedInterimsCount ?? 0;
587
+ message.completedInitiativesCount = object.completedInitiativesCount ?? 0;
588
+ message.giftsSentThisEpoch = object.giftsSentThisEpoch ?? "";
589
+ message.lastGiftEpoch = object.lastGiftEpoch !== undefined && object.lastGiftEpoch !== null ? BigInt(object.lastGiftEpoch.toString()) : BigInt(0);
590
+ message.lastCreditResetSeason = object.lastCreditResetSeason !== undefined && object.lastCreditResetSeason !== null ? BigInt(object.lastCreditResetSeason.toString()) : BigInt(0);
591
+ message.reputationGainedThisEpoch = Object.entries(object.reputationGainedThisEpoch ?? {}).reduce((acc, [key, value]) => {
592
+ if (value !== undefined) {
593
+ acc[key] = String(value);
594
+ }
595
+ return acc;
596
+ }, {});
597
+ message.lastRepGainEpoch = object.lastRepGainEpoch !== undefined && object.lastRepGainEpoch !== null ? BigInt(object.lastRepGainEpoch.toString()) : BigInt(0);
598
+ message.zkPublicKey = object.zkPublicKey ?? new Uint8Array();
599
+ return message;
600
+ },
601
+ fromAmino(object) {
602
+ const message = createBaseMember();
603
+ if (object.address !== undefined && object.address !== null) {
604
+ message.address = object.address;
605
+ }
606
+ if (object.dream_balance !== undefined && object.dream_balance !== null) {
607
+ message.dreamBalance = object.dream_balance;
608
+ }
609
+ if (object.staked_dream !== undefined && object.staked_dream !== null) {
610
+ message.stakedDream = object.staked_dream;
611
+ }
612
+ if (object.lifetime_earned !== undefined && object.lifetime_earned !== null) {
613
+ message.lifetimeEarned = object.lifetime_earned;
614
+ }
615
+ if (object.lifetime_burned !== undefined && object.lifetime_burned !== null) {
616
+ message.lifetimeBurned = object.lifetime_burned;
617
+ }
618
+ message.reputationScores = Object.entries(object.reputation_scores ?? {}).reduce((acc, [key, value]) => {
619
+ if (value !== undefined) {
620
+ acc[key] = String(value);
621
+ }
622
+ return acc;
623
+ }, {});
624
+ message.lifetimeReputation = Object.entries(object.lifetime_reputation ?? {}).reduce((acc, [key, value]) => {
625
+ if (value !== undefined) {
626
+ acc[key] = String(value);
627
+ }
628
+ return acc;
629
+ }, {});
630
+ if (object.trust_level !== undefined && object.trust_level !== null) {
631
+ message.trustLevel = object.trust_level;
632
+ }
633
+ if (object.trust_level_updated_at !== undefined && object.trust_level_updated_at !== null) {
634
+ message.trustLevelUpdatedAt = BigInt(object.trust_level_updated_at);
635
+ }
636
+ if (object.joined_season !== undefined && object.joined_season !== null) {
637
+ message.joinedSeason = object.joined_season;
638
+ }
639
+ if (object.joined_at !== undefined && object.joined_at !== null) {
640
+ message.joinedAt = BigInt(object.joined_at);
641
+ }
642
+ if (object.invited_by !== undefined && object.invited_by !== null) {
643
+ message.invitedBy = object.invited_by;
644
+ }
645
+ message.invitationChain = object.invitation_chain?.map(e => e) || [];
646
+ if (object.invitation_credits !== undefined && object.invitation_credits !== null) {
647
+ message.invitationCredits = object.invitation_credits;
648
+ }
649
+ if (object.status !== undefined && object.status !== null) {
650
+ message.status = object.status;
651
+ }
652
+ if (object.zeroed_at !== undefined && object.zeroed_at !== null) {
653
+ message.zeroedAt = BigInt(object.zeroed_at);
654
+ }
655
+ if (object.zeroed_count !== undefined && object.zeroed_count !== null) {
656
+ message.zeroedCount = object.zeroed_count;
657
+ }
658
+ if (object.last_decay_epoch !== undefined && object.last_decay_epoch !== null) {
659
+ message.lastDecayEpoch = BigInt(object.last_decay_epoch);
660
+ }
661
+ if (object.tips_given_this_epoch !== undefined && object.tips_given_this_epoch !== null) {
662
+ message.tipsGivenThisEpoch = object.tips_given_this_epoch;
663
+ }
664
+ if (object.last_tip_epoch !== undefined && object.last_tip_epoch !== null) {
665
+ message.lastTipEpoch = BigInt(object.last_tip_epoch);
666
+ }
667
+ if (object.completed_interims_count !== undefined && object.completed_interims_count !== null) {
668
+ message.completedInterimsCount = object.completed_interims_count;
669
+ }
670
+ if (object.completed_initiatives_count !== undefined && object.completed_initiatives_count !== null) {
671
+ message.completedInitiativesCount = object.completed_initiatives_count;
672
+ }
673
+ if (object.gifts_sent_this_epoch !== undefined && object.gifts_sent_this_epoch !== null) {
674
+ message.giftsSentThisEpoch = object.gifts_sent_this_epoch;
675
+ }
676
+ if (object.last_gift_epoch !== undefined && object.last_gift_epoch !== null) {
677
+ message.lastGiftEpoch = BigInt(object.last_gift_epoch);
678
+ }
679
+ if (object.last_credit_reset_season !== undefined && object.last_credit_reset_season !== null) {
680
+ message.lastCreditResetSeason = BigInt(object.last_credit_reset_season);
681
+ }
682
+ message.reputationGainedThisEpoch = Object.entries(object.reputation_gained_this_epoch ?? {}).reduce((acc, [key, value]) => {
683
+ if (value !== undefined) {
684
+ acc[key] = String(value);
685
+ }
686
+ return acc;
687
+ }, {});
688
+ if (object.last_rep_gain_epoch !== undefined && object.last_rep_gain_epoch !== null) {
689
+ message.lastRepGainEpoch = BigInt(object.last_rep_gain_epoch);
690
+ }
691
+ if (object.zk_public_key !== undefined && object.zk_public_key !== null) {
692
+ message.zkPublicKey = bytesFromBase64(object.zk_public_key);
693
+ }
694
+ return message;
695
+ },
696
+ toAmino(message) {
697
+ const obj = {};
698
+ obj.address = message.address === "" ? undefined : message.address;
699
+ obj.dream_balance = message.dreamBalance === "" ? undefined : message.dreamBalance;
700
+ obj.staked_dream = message.stakedDream === "" ? undefined : message.stakedDream;
701
+ obj.lifetime_earned = message.lifetimeEarned === "" ? undefined : message.lifetimeEarned;
702
+ obj.lifetime_burned = message.lifetimeBurned === "" ? undefined : message.lifetimeBurned;
703
+ obj.reputation_scores = {};
704
+ if (message.reputationScores) {
705
+ Object.entries(message.reputationScores).forEach(([k, v]) => {
706
+ obj.reputation_scores[k] = v;
707
+ });
708
+ }
709
+ obj.lifetime_reputation = {};
710
+ if (message.lifetimeReputation) {
711
+ Object.entries(message.lifetimeReputation).forEach(([k, v]) => {
712
+ obj.lifetime_reputation[k] = v;
713
+ });
714
+ }
715
+ obj.trust_level = message.trustLevel === 0 ? undefined : message.trustLevel;
716
+ obj.trust_level_updated_at = message.trustLevelUpdatedAt !== BigInt(0) ? message.trustLevelUpdatedAt?.toString() : undefined;
717
+ obj.joined_season = message.joinedSeason === 0 ? undefined : message.joinedSeason;
718
+ obj.joined_at = message.joinedAt !== BigInt(0) ? message.joinedAt?.toString() : undefined;
719
+ obj.invited_by = message.invitedBy === "" ? undefined : message.invitedBy;
720
+ if (message.invitationChain) {
721
+ obj.invitation_chain = message.invitationChain.map(e => e);
722
+ }
723
+ else {
724
+ obj.invitation_chain = message.invitationChain;
725
+ }
726
+ obj.invitation_credits = message.invitationCredits === 0 ? undefined : message.invitationCredits;
727
+ obj.status = message.status === 0 ? undefined : message.status;
728
+ obj.zeroed_at = message.zeroedAt !== BigInt(0) ? message.zeroedAt?.toString() : undefined;
729
+ obj.zeroed_count = message.zeroedCount === 0 ? undefined : message.zeroedCount;
730
+ obj.last_decay_epoch = message.lastDecayEpoch !== BigInt(0) ? message.lastDecayEpoch?.toString() : undefined;
731
+ obj.tips_given_this_epoch = message.tipsGivenThisEpoch === 0 ? undefined : message.tipsGivenThisEpoch;
732
+ obj.last_tip_epoch = message.lastTipEpoch !== BigInt(0) ? message.lastTipEpoch?.toString() : undefined;
733
+ obj.completed_interims_count = message.completedInterimsCount === 0 ? undefined : message.completedInterimsCount;
734
+ obj.completed_initiatives_count = message.completedInitiativesCount === 0 ? undefined : message.completedInitiativesCount;
735
+ obj.gifts_sent_this_epoch = message.giftsSentThisEpoch === "" ? undefined : message.giftsSentThisEpoch;
736
+ obj.last_gift_epoch = message.lastGiftEpoch !== BigInt(0) ? message.lastGiftEpoch?.toString() : undefined;
737
+ obj.last_credit_reset_season = message.lastCreditResetSeason !== BigInt(0) ? message.lastCreditResetSeason?.toString() : undefined;
738
+ obj.reputation_gained_this_epoch = {};
739
+ if (message.reputationGainedThisEpoch) {
740
+ Object.entries(message.reputationGainedThisEpoch).forEach(([k, v]) => {
741
+ obj.reputation_gained_this_epoch[k] = v;
742
+ });
743
+ }
744
+ obj.last_rep_gain_epoch = message.lastRepGainEpoch !== BigInt(0) ? message.lastRepGainEpoch?.toString() : undefined;
745
+ obj.zk_public_key = message.zkPublicKey ? base64FromBytes(message.zkPublicKey) : undefined;
746
+ return obj;
747
+ },
748
+ fromAminoMsg(object) {
749
+ return Member.fromAmino(object.value);
750
+ },
751
+ fromProtoMsg(message) {
752
+ return Member.decode(message.value);
753
+ },
754
+ toProto(message) {
755
+ return Member.encode(message).finish();
756
+ },
757
+ toProtoMsg(message) {
758
+ return {
759
+ typeUrl: "/sparkdream.rep.v1.Member",
760
+ value: Member.encode(message).finish()
761
+ };
762
+ }
763
+ };
764
+ function createBaseGiftRecord() {
765
+ return {
766
+ sender: "",
767
+ recipient: "",
768
+ lastGiftBlock: BigInt(0)
769
+ };
770
+ }
771
+ /**
772
+ * GiftRecord tracks the last time a sender gifted a specific recipient
773
+ * Used to enforce per-recipient cooldown periods
774
+ * @name GiftRecord
775
+ * @package sparkdream.rep.v1
776
+ * @see proto type: sparkdream.rep.v1.GiftRecord
777
+ */
778
+ export const GiftRecord = {
779
+ typeUrl: "/sparkdream.rep.v1.GiftRecord",
780
+ encode(message, writer = BinaryWriter.create()) {
781
+ if (message.sender !== "") {
782
+ writer.uint32(10).string(message.sender);
783
+ }
784
+ if (message.recipient !== "") {
785
+ writer.uint32(18).string(message.recipient);
786
+ }
787
+ if (message.lastGiftBlock !== BigInt(0)) {
788
+ writer.uint32(24).int64(message.lastGiftBlock);
789
+ }
790
+ return writer;
791
+ },
792
+ decode(input, length) {
793
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
794
+ let end = length === undefined ? reader.len : reader.pos + length;
795
+ const message = createBaseGiftRecord();
796
+ while (reader.pos < end) {
797
+ const tag = reader.uint32();
798
+ switch (tag >>> 3) {
799
+ case 1:
800
+ message.sender = reader.string();
801
+ break;
802
+ case 2:
803
+ message.recipient = reader.string();
804
+ break;
805
+ case 3:
806
+ message.lastGiftBlock = reader.int64();
807
+ break;
808
+ default:
809
+ reader.skipType(tag & 7);
810
+ break;
811
+ }
812
+ }
813
+ return message;
814
+ },
815
+ fromPartial(object) {
816
+ const message = createBaseGiftRecord();
817
+ message.sender = object.sender ?? "";
818
+ message.recipient = object.recipient ?? "";
819
+ message.lastGiftBlock = object.lastGiftBlock !== undefined && object.lastGiftBlock !== null ? BigInt(object.lastGiftBlock.toString()) : BigInt(0);
820
+ return message;
821
+ },
822
+ fromAmino(object) {
823
+ const message = createBaseGiftRecord();
824
+ if (object.sender !== undefined && object.sender !== null) {
825
+ message.sender = object.sender;
826
+ }
827
+ if (object.recipient !== undefined && object.recipient !== null) {
828
+ message.recipient = object.recipient;
829
+ }
830
+ if (object.last_gift_block !== undefined && object.last_gift_block !== null) {
831
+ message.lastGiftBlock = BigInt(object.last_gift_block);
832
+ }
833
+ return message;
834
+ },
835
+ toAmino(message) {
836
+ const obj = {};
837
+ obj.sender = message.sender === "" ? undefined : message.sender;
838
+ obj.recipient = message.recipient === "" ? undefined : message.recipient;
839
+ obj.last_gift_block = message.lastGiftBlock !== BigInt(0) ? message.lastGiftBlock?.toString() : undefined;
840
+ return obj;
841
+ },
842
+ fromAminoMsg(object) {
843
+ return GiftRecord.fromAmino(object.value);
844
+ },
845
+ fromProtoMsg(message) {
846
+ return GiftRecord.decode(message.value);
847
+ },
848
+ toProto(message) {
849
+ return GiftRecord.encode(message).finish();
850
+ },
851
+ toProtoMsg(message) {
852
+ return {
853
+ typeUrl: "/sparkdream.rep.v1.GiftRecord",
854
+ value: GiftRecord.encode(message).finish()
855
+ };
856
+ }
857
+ };