@sparkdreamnft/sparkdreamjs 0.0.48 → 0.0.50

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 (231) hide show
  1. package/akash/bundle.d.ts +134 -134
  2. package/akash/bundle.js +150 -150
  3. package/amino-schema.d.ts +94 -0
  4. package/amino-schema.js +1 -1
  5. package/cosmos/bundle.d.ts +160 -160
  6. package/cosmos/bundle.js +182 -182
  7. package/esm/akash/bundle.js +150 -150
  8. package/esm/amino-schema.js +1 -1
  9. package/esm/cosmos/bundle.js +182 -182
  10. package/esm/ibc/bundle.js +116 -116
  11. package/esm/sparkdream/artifact/v1/types.js +25 -1
  12. package/esm/sparkdream/blog/v1/genesis.js +97 -1
  13. package/esm/sparkdream/bundle.js +447 -439
  14. package/esm/sparkdream/collect/v1/genesis.js +308 -3
  15. package/esm/sparkdream/collect/v1/tx.js +170 -0
  16. package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
  17. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +10 -1
  18. package/esm/sparkdream/collect/v1/types.js +51 -3
  19. package/esm/sparkdream/commons/v1/genesis.js +756 -27
  20. package/esm/sparkdream/commons/v1/group.js +130 -2
  21. package/esm/sparkdream/commons/v1/poll.js +281 -0
  22. package/esm/sparkdream/commons/v1/poll_vote.js +107 -0
  23. package/esm/sparkdream/commons/v1/query.js +759 -0
  24. package/esm/sparkdream/commons/v1/query.lcd.js +46 -0
  25. package/esm/sparkdream/commons/v1/query.rpc.Query.js +49 -1
  26. package/esm/sparkdream/commons/v1/tx.js +730 -4
  27. package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
  28. package/esm/sparkdream/commons/v1/tx.rpc.msg.js +25 -1
  29. package/esm/sparkdream/commons/v1/voter_tree.js +208 -0
  30. package/esm/sparkdream/federation/v1/genesis.js +212 -2
  31. package/esm/sparkdream/federation/v1/tx.js +365 -0
  32. package/esm/sparkdream/federation/v1/tx.registry.js +38 -2
  33. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +14 -1
  34. package/esm/sparkdream/federation/v1/types.js +194 -2
  35. package/esm/sparkdream/forum/v1/archive_metadata.js +13 -1
  36. package/esm/sparkdream/forum/v1/genesis.js +428 -1
  37. package/esm/sparkdream/forum/v1/params.js +182 -254
  38. package/esm/sparkdream/forum/v1/query.js +112 -7
  39. package/esm/sparkdream/forum/v1/user_reaction_limit.js +62 -1
  40. package/esm/sparkdream/futarchy/v1/market.js +37 -1
  41. package/esm/sparkdream/futarchy/v1/tx.js +13 -1
  42. package/esm/sparkdream/name/v1/dispute.js +13 -1
  43. package/esm/sparkdream/rep/v1/genesis.js +272 -2
  44. package/esm/sparkdream/rep/v1/initiative_review.js +13 -1
  45. package/esm/sparkdream/rep/v1/invitation.js +25 -1
  46. package/esm/sparkdream/rep/v1/member_report.js +335 -1
  47. package/esm/sparkdream/rep/v1/migration.js +27 -2
  48. package/esm/sparkdream/rep/v1/params.js +13 -1
  49. package/esm/sparkdream/rep/v1/stake.js +10 -0
  50. package/esm/sparkdream/rep/v1/tx.js +372 -14
  51. package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
  52. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -2
  53. package/esm/sparkdream/reveal/v1/types.js +9 -21
  54. package/esm/sparkdream/season/v1/display_name_moderation.js +40 -1
  55. package/esm/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
  56. package/esm/sparkdream/season/v1/genesis.js +125 -1
  57. package/esm/sparkdream/season/v1/guild_invite.js +13 -1
  58. package/esm/sparkdream/season/v1/guild_membership.js +13 -1
  59. package/esm/sparkdream/season/v1/member_profile.js +13 -1
  60. package/esm/sparkdream/season/v1/member_quest_progress.js +13 -1
  61. package/esm/sparkdream/season/v1/member_season_snapshot.js +16 -1
  62. package/esm/sparkdream/season/v1/nomination.js +37 -1
  63. package/esm/sparkdream/season/v1/query.js +26 -35
  64. package/esm/sparkdream/season/v1/query.lcd.js +1 -1
  65. package/esm/sparkdream/season/v1/quest.js +13 -1
  66. package/esm/sparkdream/season/v1/season.js +13 -1
  67. package/esm/sparkdream/season/v1/season_stats_counters.js +121 -0
  68. package/esm/sparkdream/season/v1/season_title_eligibility.js +4 -1
  69. package/esm/sparkdream/service/v1/genesis.js +126 -1
  70. package/esm/sparkdream/service/v1/refile_cooldown.js +20 -7
  71. package/esm/sparkdream/session/v1/genesis.js +303 -1
  72. package/esm/sparkdream/session/v1/params.js +24 -0
  73. package/esm/sparkdream/shield/v1/genesis.js +56 -2
  74. package/esm/sparkdream/shield/v1/params.js +13 -1
  75. package/esm/sparkdream/shield/v1/types.js +202 -1
  76. package/esm/sparkdream/vault/v1/genesis.js +25 -1
  77. package/esm/sparkdream/vault/v1/query.js +15 -2
  78. package/esm/sparkdream/vault/v1/query.lcd.js +3 -0
  79. package/esm/sparkdream/vault/v1/tx.js +301 -0
  80. package/esm/sparkdream/vault/v1/tx.registry.js +38 -2
  81. package/esm/sparkdream/vault/v1/tx.rpc.msg.js +13 -1
  82. package/esm/sparkdream/vault/v1/vault_signer.js +15 -2
  83. package/esm/tendermint/bundle.js +20 -20
  84. package/ibc/bundle.d.ts +99 -99
  85. package/ibc/bundle.js +116 -116
  86. package/package.json +1 -1
  87. package/sparkdream/artifact/v1/types.d.ts +14 -0
  88. package/sparkdream/artifact/v1/types.js +25 -1
  89. package/sparkdream/blog/v1/genesis.d.ts +60 -0
  90. package/sparkdream/blog/v1/genesis.js +98 -2
  91. package/sparkdream/bundle.d.ts +17133 -16171
  92. package/sparkdream/bundle.js +447 -439
  93. package/sparkdream/collect/v1/genesis.d.ts +186 -0
  94. package/sparkdream/collect/v1/genesis.js +309 -4
  95. package/sparkdream/collect/v1/tx.d.ts +100 -0
  96. package/sparkdream/collect/v1/tx.js +171 -1
  97. package/sparkdream/collect/v1/tx.registry.d.ts +13 -1
  98. package/sparkdream/collect/v1/tx.registry.js +19 -1
  99. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +9 -1
  100. package/sparkdream/collect/v1/tx.rpc.msg.js +9 -0
  101. package/sparkdream/collect/v1/types.d.ts +52 -0
  102. package/sparkdream/collect/v1/types.js +51 -3
  103. package/sparkdream/commons/v1/genesis.d.ts +443 -22
  104. package/sparkdream/commons/v1/genesis.js +756 -27
  105. package/sparkdream/commons/v1/group.d.ts +75 -0
  106. package/sparkdream/commons/v1/group.js +133 -3
  107. package/sparkdream/commons/v1/poll.d.ts +135 -0
  108. package/sparkdream/commons/v1/poll.js +286 -0
  109. package/sparkdream/commons/v1/poll_vote.d.ts +58 -0
  110. package/sparkdream/commons/v1/poll_vote.js +110 -0
  111. package/sparkdream/commons/v1/query.d.ts +465 -0
  112. package/sparkdream/commons/v1/query.js +760 -1
  113. package/sparkdream/commons/v1/query.lcd.d.ts +6 -1
  114. package/sparkdream/commons/v1/query.lcd.js +46 -0
  115. package/sparkdream/commons/v1/query.rpc.Query.d.ts +30 -1
  116. package/sparkdream/commons/v1/query.rpc.Query.js +48 -0
  117. package/sparkdream/commons/v1/tx.d.ts +475 -1
  118. package/sparkdream/commons/v1/tx.js +731 -4
  119. package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
  120. package/sparkdream/commons/v1/tx.registry.js +73 -1
  121. package/sparkdream/commons/v1/tx.rpc.msg.d.ts +13 -1
  122. package/sparkdream/commons/v1/tx.rpc.msg.js +24 -0
  123. package/sparkdream/commons/v1/voter_tree.d.ts +132 -0
  124. package/sparkdream/commons/v1/voter_tree.js +211 -0
  125. package/sparkdream/federation/v1/genesis.d.ts +136 -1
  126. package/sparkdream/federation/v1/genesis.js +212 -2
  127. package/sparkdream/federation/v1/tx.d.ts +235 -0
  128. package/sparkdream/federation/v1/tx.js +367 -1
  129. package/sparkdream/federation/v1/tx.registry.d.ts +25 -1
  130. package/sparkdream/federation/v1/tx.registry.js +37 -1
  131. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +9 -1
  132. package/sparkdream/federation/v1/tx.rpc.msg.js +13 -0
  133. package/sparkdream/federation/v1/types.d.ts +166 -0
  134. package/sparkdream/federation/v1/types.js +197 -3
  135. package/sparkdream/forum/v1/archive_metadata.d.ts +12 -0
  136. package/sparkdream/forum/v1/archive_metadata.js +13 -1
  137. package/sparkdream/forum/v1/genesis.d.ts +256 -0
  138. package/sparkdream/forum/v1/genesis.js +429 -2
  139. package/sparkdream/forum/v1/params.d.ts +0 -30
  140. package/sparkdream/forum/v1/params.js +182 -254
  141. package/sparkdream/forum/v1/query.d.ts +70 -0
  142. package/sparkdream/forum/v1/query.js +112 -7
  143. package/sparkdream/forum/v1/user_reaction_limit.d.ts +25 -0
  144. package/sparkdream/forum/v1/user_reaction_limit.js +65 -2
  145. package/sparkdream/futarchy/v1/market.d.ts +32 -0
  146. package/sparkdream/futarchy/v1/market.js +37 -1
  147. package/sparkdream/futarchy/v1/tx.d.ts +10 -0
  148. package/sparkdream/futarchy/v1/tx.js +13 -1
  149. package/sparkdream/name/v1/dispute.d.ts +14 -0
  150. package/sparkdream/name/v1/dispute.js +13 -1
  151. package/sparkdream/rep/v1/genesis.d.ts +151 -1
  152. package/sparkdream/rep/v1/genesis.js +272 -2
  153. package/sparkdream/rep/v1/initiative_review.d.ts +14 -0
  154. package/sparkdream/rep/v1/initiative_review.js +13 -1
  155. package/sparkdream/rep/v1/invitation.d.ts +32 -0
  156. package/sparkdream/rep/v1/invitation.js +25 -1
  157. package/sparkdream/rep/v1/member_report.d.ts +215 -0
  158. package/sparkdream/rep/v1/member_report.js +336 -2
  159. package/sparkdream/rep/v1/migration.d.ts +34 -1
  160. package/sparkdream/rep/v1/migration.js +27 -2
  161. package/sparkdream/rep/v1/params.d.ts +18 -0
  162. package/sparkdream/rep/v1/params.js +13 -1
  163. package/sparkdream/rep/v1/stake.d.ts +5 -0
  164. package/sparkdream/rep/v1/stake.js +10 -0
  165. package/sparkdream/rep/v1/tx.d.ts +340 -39
  166. package/sparkdream/rep/v1/tx.js +375 -17
  167. package/sparkdream/rep/v1/tx.registry.d.ts +25 -1
  168. package/sparkdream/rep/v1/tx.registry.js +37 -1
  169. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +12 -2
  170. package/sparkdream/rep/v1/tx.rpc.msg.js +15 -1
  171. package/sparkdream/reveal/v1/types.d.ts +0 -8
  172. package/sparkdream/reveal/v1/types.js +9 -21
  173. package/sparkdream/rpc.query.d.ts +5 -0
  174. package/sparkdream/season/v1/display_name_moderation.d.ts +28 -0
  175. package/sparkdream/season/v1/display_name_moderation.js +40 -1
  176. package/sparkdream/season/v1/epoch_xp_tracker.d.ts +10 -0
  177. package/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
  178. package/sparkdream/season/v1/genesis.d.ts +75 -0
  179. package/sparkdream/season/v1/genesis.js +126 -2
  180. package/sparkdream/season/v1/guild_invite.d.ts +10 -0
  181. package/sparkdream/season/v1/guild_invite.js +13 -1
  182. package/sparkdream/season/v1/guild_membership.d.ts +12 -0
  183. package/sparkdream/season/v1/guild_membership.js +13 -1
  184. package/sparkdream/season/v1/member_profile.d.ts +12 -0
  185. package/sparkdream/season/v1/member_profile.js +13 -1
  186. package/sparkdream/season/v1/member_quest_progress.d.ts +8 -0
  187. package/sparkdream/season/v1/member_quest_progress.js +13 -1
  188. package/sparkdream/season/v1/member_season_snapshot.d.ts +14 -0
  189. package/sparkdream/season/v1/member_season_snapshot.js +16 -1
  190. package/sparkdream/season/v1/nomination.d.ts +32 -0
  191. package/sparkdream/season/v1/nomination.js +37 -1
  192. package/sparkdream/season/v1/query.d.ts +10 -6
  193. package/sparkdream/season/v1/query.js +26 -35
  194. package/sparkdream/season/v1/query.lcd.js +1 -1
  195. package/sparkdream/season/v1/quest.d.ts +12 -0
  196. package/sparkdream/season/v1/quest.js +13 -1
  197. package/sparkdream/season/v1/season.d.ts +12 -0
  198. package/sparkdream/season/v1/season.js +13 -1
  199. package/sparkdream/season/v1/season_stats_counters.d.ts +86 -0
  200. package/sparkdream/season/v1/season_stats_counters.js +124 -0
  201. package/sparkdream/season/v1/season_title_eligibility.d.ts +12 -3
  202. package/sparkdream/season/v1/season_title_eligibility.js +4 -1
  203. package/sparkdream/service/v1/genesis.d.ts +71 -0
  204. package/sparkdream/service/v1/genesis.js +127 -2
  205. package/sparkdream/service/v1/refile_cooldown.d.ts +35 -22
  206. package/sparkdream/service/v1/refile_cooldown.js +20 -7
  207. package/sparkdream/session/v1/genesis.d.ts +190 -0
  208. package/sparkdream/session/v1/genesis.js +304 -2
  209. package/sparkdream/session/v1/params.d.ts +18 -0
  210. package/sparkdream/session/v1/params.js +24 -0
  211. package/sparkdream/shield/v1/genesis.d.ts +37 -1
  212. package/sparkdream/shield/v1/genesis.js +55 -1
  213. package/sparkdream/shield/v1/params.d.ts +26 -2
  214. package/sparkdream/shield/v1/params.js +13 -1
  215. package/sparkdream/shield/v1/types.d.ts +122 -0
  216. package/sparkdream/shield/v1/types.js +203 -2
  217. package/sparkdream/vault/v1/genesis.d.ts +14 -0
  218. package/sparkdream/vault/v1/genesis.js +25 -1
  219. package/sparkdream/vault/v1/query.d.ts +16 -3
  220. package/sparkdream/vault/v1/query.js +15 -2
  221. package/sparkdream/vault/v1/query.lcd.js +3 -0
  222. package/sparkdream/vault/v1/tx.d.ts +219 -0
  223. package/sparkdream/vault/v1/tx.js +302 -1
  224. package/sparkdream/vault/v1/tx.registry.d.ts +25 -1
  225. package/sparkdream/vault/v1/tx.registry.js +37 -1
  226. package/sparkdream/vault/v1/tx.rpc.msg.d.ts +7 -1
  227. package/sparkdream/vault/v1/tx.rpc.msg.js +12 -0
  228. package/sparkdream/vault/v1/vault_signer.d.ts +22 -3
  229. package/sparkdream/vault/v1/vault_signer.js +15 -2
  230. package/tendermint/bundle.d.ts +844 -844
  231. package/tendermint/bundle.js +20 -20
@@ -4967,7 +4967,8 @@ function createBaseQueryPinnedPostsResponse() {
4967
4967
  postId: BigInt(0),
4968
4968
  priority: BigInt(0),
4969
4969
  pinnedBy: "",
4970
- pagination: undefined
4970
+ pagination: undefined,
4971
+ posts: []
4971
4972
  };
4972
4973
  }
4973
4974
  /**
@@ -4991,6 +4992,9 @@ export const QueryPinnedPostsResponse = {
4991
4992
  if (message.pagination !== undefined) {
4992
4993
  PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
4993
4994
  }
4995
+ for (const v of message.posts) {
4996
+ Post.encode(v, writer.uint32(42).fork()).ldelim();
4997
+ }
4994
4998
  return writer;
4995
4999
  },
4996
5000
  decode(input, length) {
@@ -5012,6 +5016,9 @@ export const QueryPinnedPostsResponse = {
5012
5016
  case 4:
5013
5017
  message.pagination = PageResponse.decode(reader, reader.uint32());
5014
5018
  break;
5019
+ case 5:
5020
+ message.posts.push(Post.decode(reader, reader.uint32()));
5021
+ break;
5015
5022
  default:
5016
5023
  reader.skipType(tag & 7);
5017
5024
  break;
@@ -5025,6 +5032,7 @@ export const QueryPinnedPostsResponse = {
5025
5032
  message.priority = object.priority !== undefined && object.priority !== null ? BigInt(object.priority.toString()) : BigInt(0);
5026
5033
  message.pinnedBy = object.pinnedBy ?? "";
5027
5034
  message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
5035
+ message.posts = object.posts?.map(e => Post.fromPartial(e)) || [];
5028
5036
  return message;
5029
5037
  },
5030
5038
  fromAmino(object) {
@@ -5041,6 +5049,7 @@ export const QueryPinnedPostsResponse = {
5041
5049
  if (object.pagination !== undefined && object.pagination !== null) {
5042
5050
  message.pagination = PageResponse.fromAmino(object.pagination);
5043
5051
  }
5052
+ message.posts = object.posts?.map(e => Post.fromAmino(e)) || [];
5044
5053
  return message;
5045
5054
  },
5046
5055
  toAmino(message) {
@@ -5049,6 +5058,12 @@ export const QueryPinnedPostsResponse = {
5049
5058
  obj.priority = message.priority !== BigInt(0) ? message.priority?.toString() : undefined;
5050
5059
  obj.pinned_by = message.pinnedBy === "" ? undefined : message.pinnedBy;
5051
5060
  obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
5061
+ if (message.posts) {
5062
+ obj.posts = message.posts.map(e => e ? Post.toAmino(e) : undefined);
5063
+ }
5064
+ else {
5065
+ obj.posts = message.posts;
5066
+ }
5052
5067
  return obj;
5053
5068
  },
5054
5069
  fromAminoMsg(object) {
@@ -5141,7 +5156,8 @@ function createBaseQueryLockedThreadsResponse() {
5141
5156
  rootId: BigInt(0),
5142
5157
  lockedBy: "",
5143
5158
  lockedAt: BigInt(0),
5144
- pagination: undefined
5159
+ pagination: undefined,
5160
+ posts: []
5145
5161
  };
5146
5162
  }
5147
5163
  /**
@@ -5165,6 +5181,9 @@ export const QueryLockedThreadsResponse = {
5165
5181
  if (message.pagination !== undefined) {
5166
5182
  PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
5167
5183
  }
5184
+ for (const v of message.posts) {
5185
+ Post.encode(v, writer.uint32(42).fork()).ldelim();
5186
+ }
5168
5187
  return writer;
5169
5188
  },
5170
5189
  decode(input, length) {
@@ -5186,6 +5205,9 @@ export const QueryLockedThreadsResponse = {
5186
5205
  case 4:
5187
5206
  message.pagination = PageResponse.decode(reader, reader.uint32());
5188
5207
  break;
5208
+ case 5:
5209
+ message.posts.push(Post.decode(reader, reader.uint32()));
5210
+ break;
5189
5211
  default:
5190
5212
  reader.skipType(tag & 7);
5191
5213
  break;
@@ -5199,6 +5221,7 @@ export const QueryLockedThreadsResponse = {
5199
5221
  message.lockedBy = object.lockedBy ?? "";
5200
5222
  message.lockedAt = object.lockedAt !== undefined && object.lockedAt !== null ? BigInt(object.lockedAt.toString()) : BigInt(0);
5201
5223
  message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
5224
+ message.posts = object.posts?.map(e => Post.fromPartial(e)) || [];
5202
5225
  return message;
5203
5226
  },
5204
5227
  fromAmino(object) {
@@ -5215,6 +5238,7 @@ export const QueryLockedThreadsResponse = {
5215
5238
  if (object.pagination !== undefined && object.pagination !== null) {
5216
5239
  message.pagination = PageResponse.fromAmino(object.pagination);
5217
5240
  }
5241
+ message.posts = object.posts?.map(e => Post.fromAmino(e)) || [];
5218
5242
  return message;
5219
5243
  },
5220
5244
  toAmino(message) {
@@ -5223,6 +5247,12 @@ export const QueryLockedThreadsResponse = {
5223
5247
  obj.locked_by = message.lockedBy === "" ? undefined : message.lockedBy;
5224
5248
  obj.locked_at = message.lockedAt !== BigInt(0) ? message.lockedAt?.toString() : undefined;
5225
5249
  obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
5250
+ if (message.posts) {
5251
+ obj.posts = message.posts.map(e => e ? Post.toAmino(e) : undefined);
5252
+ }
5253
+ else {
5254
+ obj.posts = message.posts;
5255
+ }
5226
5256
  return obj;
5227
5257
  },
5228
5258
  fromAminoMsg(object) {
@@ -5513,7 +5543,8 @@ function createBaseQueryTopPostsResponse() {
5513
5543
  postId: BigInt(0),
5514
5544
  upvoteCount: BigInt(0),
5515
5545
  downvoteCount: BigInt(0),
5516
- pagination: undefined
5546
+ pagination: undefined,
5547
+ posts: []
5517
5548
  };
5518
5549
  }
5519
5550
  /**
@@ -5537,6 +5568,9 @@ export const QueryTopPostsResponse = {
5537
5568
  if (message.pagination !== undefined) {
5538
5569
  PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
5539
5570
  }
5571
+ for (const v of message.posts) {
5572
+ Post.encode(v, writer.uint32(42).fork()).ldelim();
5573
+ }
5540
5574
  return writer;
5541
5575
  },
5542
5576
  decode(input, length) {
@@ -5558,6 +5592,9 @@ export const QueryTopPostsResponse = {
5558
5592
  case 4:
5559
5593
  message.pagination = PageResponse.decode(reader, reader.uint32());
5560
5594
  break;
5595
+ case 5:
5596
+ message.posts.push(Post.decode(reader, reader.uint32()));
5597
+ break;
5561
5598
  default:
5562
5599
  reader.skipType(tag & 7);
5563
5600
  break;
@@ -5571,6 +5608,7 @@ export const QueryTopPostsResponse = {
5571
5608
  message.upvoteCount = object.upvoteCount !== undefined && object.upvoteCount !== null ? BigInt(object.upvoteCount.toString()) : BigInt(0);
5572
5609
  message.downvoteCount = object.downvoteCount !== undefined && object.downvoteCount !== null ? BigInt(object.downvoteCount.toString()) : BigInt(0);
5573
5610
  message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
5611
+ message.posts = object.posts?.map(e => Post.fromPartial(e)) || [];
5574
5612
  return message;
5575
5613
  },
5576
5614
  fromAmino(object) {
@@ -5587,6 +5625,7 @@ export const QueryTopPostsResponse = {
5587
5625
  if (object.pagination !== undefined && object.pagination !== null) {
5588
5626
  message.pagination = PageResponse.fromAmino(object.pagination);
5589
5627
  }
5628
+ message.posts = object.posts?.map(e => Post.fromAmino(e)) || [];
5590
5629
  return message;
5591
5630
  },
5592
5631
  toAmino(message) {
@@ -5595,6 +5634,12 @@ export const QueryTopPostsResponse = {
5595
5634
  obj.upvote_count = message.upvoteCount !== BigInt(0) ? message.upvoteCount?.toString() : undefined;
5596
5635
  obj.downvote_count = message.downvoteCount !== BigInt(0) ? message.downvoteCount?.toString() : undefined;
5597
5636
  obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
5637
+ if (message.posts) {
5638
+ obj.posts = message.posts.map(e => e ? Post.toAmino(e) : undefined);
5639
+ }
5640
+ else {
5641
+ obj.posts = message.posts;
5642
+ }
5598
5643
  return obj;
5599
5644
  },
5600
5645
  fromAminoMsg(object) {
@@ -6371,7 +6416,8 @@ function createBaseQueryActiveBountiesResponse() {
6371
6416
  bountyId: BigInt(0),
6372
6417
  threadId: BigInt(0),
6373
6418
  amount: "",
6374
- pagination: undefined
6419
+ pagination: undefined,
6420
+ bounties: []
6375
6421
  };
6376
6422
  }
6377
6423
  /**
@@ -6395,6 +6441,9 @@ export const QueryActiveBountiesResponse = {
6395
6441
  if (message.pagination !== undefined) {
6396
6442
  PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
6397
6443
  }
6444
+ for (const v of message.bounties) {
6445
+ Bounty.encode(v, writer.uint32(42).fork()).ldelim();
6446
+ }
6398
6447
  return writer;
6399
6448
  },
6400
6449
  decode(input, length) {
@@ -6416,6 +6465,9 @@ export const QueryActiveBountiesResponse = {
6416
6465
  case 4:
6417
6466
  message.pagination = PageResponse.decode(reader, reader.uint32());
6418
6467
  break;
6468
+ case 5:
6469
+ message.bounties.push(Bounty.decode(reader, reader.uint32()));
6470
+ break;
6419
6471
  default:
6420
6472
  reader.skipType(tag & 7);
6421
6473
  break;
@@ -6429,6 +6481,7 @@ export const QueryActiveBountiesResponse = {
6429
6481
  message.threadId = object.threadId !== undefined && object.threadId !== null ? BigInt(object.threadId.toString()) : BigInt(0);
6430
6482
  message.amount = object.amount ?? "";
6431
6483
  message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
6484
+ message.bounties = object.bounties?.map(e => Bounty.fromPartial(e)) || [];
6432
6485
  return message;
6433
6486
  },
6434
6487
  fromAmino(object) {
@@ -6445,6 +6498,7 @@ export const QueryActiveBountiesResponse = {
6445
6498
  if (object.pagination !== undefined && object.pagination !== null) {
6446
6499
  message.pagination = PageResponse.fromAmino(object.pagination);
6447
6500
  }
6501
+ message.bounties = object.bounties?.map(e => Bounty.fromAmino(e)) || [];
6448
6502
  return message;
6449
6503
  },
6450
6504
  toAmino(message) {
@@ -6453,6 +6507,12 @@ export const QueryActiveBountiesResponse = {
6453
6507
  obj.thread_id = message.threadId !== BigInt(0) ? message.threadId?.toString() : undefined;
6454
6508
  obj.amount = message.amount === "" ? undefined : message.amount;
6455
6509
  obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
6510
+ if (message.bounties) {
6511
+ obj.bounties = message.bounties.map(e => e ? Bounty.toAmino(e) : undefined);
6512
+ }
6513
+ else {
6514
+ obj.bounties = message.bounties;
6515
+ }
6456
6516
  return obj;
6457
6517
  },
6458
6518
  fromAminoMsg(object) {
@@ -6557,7 +6617,8 @@ function createBaseQueryUserBountiesResponse() {
6557
6617
  bountyId: BigInt(0),
6558
6618
  threadId: BigInt(0),
6559
6619
  status: BigInt(0),
6560
- pagination: undefined
6620
+ pagination: undefined,
6621
+ bounties: []
6561
6622
  };
6562
6623
  }
6563
6624
  /**
@@ -6581,6 +6642,9 @@ export const QueryUserBountiesResponse = {
6581
6642
  if (message.pagination !== undefined) {
6582
6643
  PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
6583
6644
  }
6645
+ for (const v of message.bounties) {
6646
+ Bounty.encode(v, writer.uint32(42).fork()).ldelim();
6647
+ }
6584
6648
  return writer;
6585
6649
  },
6586
6650
  decode(input, length) {
@@ -6602,6 +6666,9 @@ export const QueryUserBountiesResponse = {
6602
6666
  case 4:
6603
6667
  message.pagination = PageResponse.decode(reader, reader.uint32());
6604
6668
  break;
6669
+ case 5:
6670
+ message.bounties.push(Bounty.decode(reader, reader.uint32()));
6671
+ break;
6605
6672
  default:
6606
6673
  reader.skipType(tag & 7);
6607
6674
  break;
@@ -6615,6 +6682,7 @@ export const QueryUserBountiesResponse = {
6615
6682
  message.threadId = object.threadId !== undefined && object.threadId !== null ? BigInt(object.threadId.toString()) : BigInt(0);
6616
6683
  message.status = object.status !== undefined && object.status !== null ? BigInt(object.status.toString()) : BigInt(0);
6617
6684
  message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
6685
+ message.bounties = object.bounties?.map(e => Bounty.fromPartial(e)) || [];
6618
6686
  return message;
6619
6687
  },
6620
6688
  fromAmino(object) {
@@ -6631,6 +6699,7 @@ export const QueryUserBountiesResponse = {
6631
6699
  if (object.pagination !== undefined && object.pagination !== null) {
6632
6700
  message.pagination = PageResponse.fromAmino(object.pagination);
6633
6701
  }
6702
+ message.bounties = object.bounties?.map(e => Bounty.fromAmino(e)) || [];
6634
6703
  return message;
6635
6704
  },
6636
6705
  toAmino(message) {
@@ -6639,6 +6708,12 @@ export const QueryUserBountiesResponse = {
6639
6708
  obj.thread_id = message.threadId !== BigInt(0) ? message.threadId?.toString() : undefined;
6640
6709
  obj.status = message.status !== BigInt(0) ? message.status?.toString() : undefined;
6641
6710
  obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
6711
+ if (message.bounties) {
6712
+ obj.bounties = message.bounties.map(e => e ? Bounty.toAmino(e) : undefined);
6713
+ }
6714
+ else {
6715
+ obj.bounties = message.bounties;
6716
+ }
6642
6717
  return obj;
6643
6718
  },
6644
6719
  fromAminoMsg(object) {
@@ -6743,7 +6818,8 @@ function createBaseQueryBountyExpiringSoonResponse() {
6743
6818
  bountyId: BigInt(0),
6744
6819
  threadId: BigInt(0),
6745
6820
  expiresAt: BigInt(0),
6746
- pagination: undefined
6821
+ pagination: undefined,
6822
+ bounties: []
6747
6823
  };
6748
6824
  }
6749
6825
  /**
@@ -6767,6 +6843,9 @@ export const QueryBountyExpiringSoonResponse = {
6767
6843
  if (message.pagination !== undefined) {
6768
6844
  PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
6769
6845
  }
6846
+ for (const v of message.bounties) {
6847
+ Bounty.encode(v, writer.uint32(42).fork()).ldelim();
6848
+ }
6770
6849
  return writer;
6771
6850
  },
6772
6851
  decode(input, length) {
@@ -6788,6 +6867,9 @@ export const QueryBountyExpiringSoonResponse = {
6788
6867
  case 4:
6789
6868
  message.pagination = PageResponse.decode(reader, reader.uint32());
6790
6869
  break;
6870
+ case 5:
6871
+ message.bounties.push(Bounty.decode(reader, reader.uint32()));
6872
+ break;
6791
6873
  default:
6792
6874
  reader.skipType(tag & 7);
6793
6875
  break;
@@ -6801,6 +6883,7 @@ export const QueryBountyExpiringSoonResponse = {
6801
6883
  message.threadId = object.threadId !== undefined && object.threadId !== null ? BigInt(object.threadId.toString()) : BigInt(0);
6802
6884
  message.expiresAt = object.expiresAt !== undefined && object.expiresAt !== null ? BigInt(object.expiresAt.toString()) : BigInt(0);
6803
6885
  message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
6886
+ message.bounties = object.bounties?.map(e => Bounty.fromPartial(e)) || [];
6804
6887
  return message;
6805
6888
  },
6806
6889
  fromAmino(object) {
@@ -6817,6 +6900,7 @@ export const QueryBountyExpiringSoonResponse = {
6817
6900
  if (object.pagination !== undefined && object.pagination !== null) {
6818
6901
  message.pagination = PageResponse.fromAmino(object.pagination);
6819
6902
  }
6903
+ message.bounties = object.bounties?.map(e => Bounty.fromAmino(e)) || [];
6820
6904
  return message;
6821
6905
  },
6822
6906
  toAmino(message) {
@@ -6825,6 +6909,12 @@ export const QueryBountyExpiringSoonResponse = {
6825
6909
  obj.thread_id = message.threadId !== BigInt(0) ? message.threadId?.toString() : undefined;
6826
6910
  obj.expires_at = message.expiresAt !== BigInt(0) ? message.expiresAt?.toString() : undefined;
6827
6911
  obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
6912
+ if (message.bounties) {
6913
+ obj.bounties = message.bounties.map(e => e ? Bounty.toAmino(e) : undefined);
6914
+ }
6915
+ else {
6916
+ obj.bounties = message.bounties;
6917
+ }
6828
6918
  return obj;
6829
6919
  },
6830
6920
  fromAminoMsg(object) {
@@ -7078,7 +7168,8 @@ function createBaseQueryFlagReviewQueueResponse() {
7078
7168
  return {
7079
7169
  postId: BigInt(0),
7080
7170
  totalWeight: "",
7081
- pagination: undefined
7171
+ pagination: undefined,
7172
+ flags: []
7082
7173
  };
7083
7174
  }
7084
7175
  /**
@@ -7099,6 +7190,9 @@ export const QueryFlagReviewQueueResponse = {
7099
7190
  if (message.pagination !== undefined) {
7100
7191
  PageResponse.encode(message.pagination, writer.uint32(26).fork()).ldelim();
7101
7192
  }
7193
+ for (const v of message.flags) {
7194
+ PostFlag.encode(v, writer.uint32(34).fork()).ldelim();
7195
+ }
7102
7196
  return writer;
7103
7197
  },
7104
7198
  decode(input, length) {
@@ -7117,6 +7211,9 @@ export const QueryFlagReviewQueueResponse = {
7117
7211
  case 3:
7118
7212
  message.pagination = PageResponse.decode(reader, reader.uint32());
7119
7213
  break;
7214
+ case 4:
7215
+ message.flags.push(PostFlag.decode(reader, reader.uint32()));
7216
+ break;
7120
7217
  default:
7121
7218
  reader.skipType(tag & 7);
7122
7219
  break;
@@ -7129,6 +7226,7 @@ export const QueryFlagReviewQueueResponse = {
7129
7226
  message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
7130
7227
  message.totalWeight = object.totalWeight ?? "";
7131
7228
  message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
7229
+ message.flags = object.flags?.map(e => PostFlag.fromPartial(e)) || [];
7132
7230
  return message;
7133
7231
  },
7134
7232
  fromAmino(object) {
@@ -7142,6 +7240,7 @@ export const QueryFlagReviewQueueResponse = {
7142
7240
  if (object.pagination !== undefined && object.pagination !== null) {
7143
7241
  message.pagination = PageResponse.fromAmino(object.pagination);
7144
7242
  }
7243
+ message.flags = object.flags?.map(e => PostFlag.fromAmino(e)) || [];
7145
7244
  return message;
7146
7245
  },
7147
7246
  toAmino(message) {
@@ -7149,6 +7248,12 @@ export const QueryFlagReviewQueueResponse = {
7149
7248
  obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
7150
7249
  obj.total_weight = message.totalWeight === "" ? undefined : message.totalWeight;
7151
7250
  obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
7251
+ if (message.flags) {
7252
+ obj.flags = message.flags.map(e => e ? PostFlag.toAmino(e) : undefined);
7253
+ }
7254
+ else {
7255
+ obj.flags = message.flags;
7256
+ }
7152
7257
  return obj;
7153
7258
  },
7154
7259
  fromAminoMsg(object) {
@@ -1,11 +1,61 @@
1
1
  //@ts-nocheck
2
2
  import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ /**
4
+ * ReactionLimitKind names the daily budget a UserReactionLimit tracks. Each
5
+ * kind is stored under its own key (see UserReactionLimitKey).
6
+ */
7
+ export var ReactionLimitKind;
8
+ (function (ReactionLimitKind) {
9
+ /** REACTION_LIMIT_KIND_REACTION - Upvotes and the shared reaction budget, keyed by the bare address. */
10
+ ReactionLimitKind[ReactionLimitKind["REACTION_LIMIT_KIND_REACTION"] = 0] = "REACTION_LIMIT_KIND_REACTION";
11
+ ReactionLimitKind[ReactionLimitKind["REACTION_LIMIT_KIND_FLAG"] = 1] = "REACTION_LIMIT_KIND_FLAG";
12
+ ReactionLimitKind[ReactionLimitKind["REACTION_LIMIT_KIND_DOWNVOTE"] = 2] = "REACTION_LIMIT_KIND_DOWNVOTE";
13
+ ReactionLimitKind[ReactionLimitKind["REACTION_LIMIT_KIND_FOLLOW"] = 3] = "REACTION_LIMIT_KIND_FOLLOW";
14
+ ReactionLimitKind[ReactionLimitKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
15
+ })(ReactionLimitKind || (ReactionLimitKind = {}));
16
+ export const ReactionLimitKindAmino = ReactionLimitKind;
17
+ export function reactionLimitKindFromJSON(object) {
18
+ switch (object) {
19
+ case 0:
20
+ case "REACTION_LIMIT_KIND_REACTION":
21
+ return ReactionLimitKind.REACTION_LIMIT_KIND_REACTION;
22
+ case 1:
23
+ case "REACTION_LIMIT_KIND_FLAG":
24
+ return ReactionLimitKind.REACTION_LIMIT_KIND_FLAG;
25
+ case 2:
26
+ case "REACTION_LIMIT_KIND_DOWNVOTE":
27
+ return ReactionLimitKind.REACTION_LIMIT_KIND_DOWNVOTE;
28
+ case 3:
29
+ case "REACTION_LIMIT_KIND_FOLLOW":
30
+ return ReactionLimitKind.REACTION_LIMIT_KIND_FOLLOW;
31
+ case -1:
32
+ case "UNRECOGNIZED":
33
+ default:
34
+ return ReactionLimitKind.UNRECOGNIZED;
35
+ }
36
+ }
37
+ export function reactionLimitKindToJSON(object) {
38
+ switch (object) {
39
+ case ReactionLimitKind.REACTION_LIMIT_KIND_REACTION:
40
+ return "REACTION_LIMIT_KIND_REACTION";
41
+ case ReactionLimitKind.REACTION_LIMIT_KIND_FLAG:
42
+ return "REACTION_LIMIT_KIND_FLAG";
43
+ case ReactionLimitKind.REACTION_LIMIT_KIND_DOWNVOTE:
44
+ return "REACTION_LIMIT_KIND_DOWNVOTE";
45
+ case ReactionLimitKind.REACTION_LIMIT_KIND_FOLLOW:
46
+ return "REACTION_LIMIT_KIND_FOLLOW";
47
+ case ReactionLimitKind.UNRECOGNIZED:
48
+ default:
49
+ return "UNRECOGNIZED";
50
+ }
51
+ }
3
52
  function createBaseUserReactionLimit() {
4
53
  return {
5
54
  userAddress: "",
6
55
  currentDayCount: BigInt(0),
7
56
  previousDayCount: BigInt(0),
8
- currentDayStart: BigInt(0)
57
+ currentDayStart: BigInt(0),
58
+ kind: 0
9
59
  };
10
60
  }
11
61
  /**
@@ -29,6 +79,9 @@ export const UserReactionLimit = {
29
79
  if (message.currentDayStart !== BigInt(0)) {
30
80
  writer.uint32(32).int64(message.currentDayStart);
31
81
  }
82
+ if (message.kind !== 0) {
83
+ writer.uint32(40).int32(message.kind);
84
+ }
32
85
  return writer;
33
86
  },
34
87
  decode(input, length) {
@@ -50,6 +103,9 @@ export const UserReactionLimit = {
50
103
  case 4:
51
104
  message.currentDayStart = reader.int64();
52
105
  break;
106
+ case 5:
107
+ message.kind = reader.int32();
108
+ break;
53
109
  default:
54
110
  reader.skipType(tag & 7);
55
111
  break;
@@ -63,6 +119,7 @@ export const UserReactionLimit = {
63
119
  message.currentDayCount = object.currentDayCount !== undefined && object.currentDayCount !== null ? BigInt(object.currentDayCount.toString()) : BigInt(0);
64
120
  message.previousDayCount = object.previousDayCount !== undefined && object.previousDayCount !== null ? BigInt(object.previousDayCount.toString()) : BigInt(0);
65
121
  message.currentDayStart = object.currentDayStart !== undefined && object.currentDayStart !== null ? BigInt(object.currentDayStart.toString()) : BigInt(0);
122
+ message.kind = object.kind ?? 0;
66
123
  return message;
67
124
  },
68
125
  fromAmino(object) {
@@ -79,6 +136,9 @@ export const UserReactionLimit = {
79
136
  if (object.current_day_start !== undefined && object.current_day_start !== null) {
80
137
  message.currentDayStart = BigInt(object.current_day_start);
81
138
  }
139
+ if (object.kind !== undefined && object.kind !== null) {
140
+ message.kind = object.kind;
141
+ }
82
142
  return message;
83
143
  },
84
144
  toAmino(message) {
@@ -87,6 +147,7 @@ export const UserReactionLimit = {
87
147
  obj.current_day_count = message.currentDayCount !== BigInt(0) ? message.currentDayCount?.toString() : undefined;
88
148
  obj.previous_day_count = message.previousDayCount !== BigInt(0) ? message.previousDayCount?.toString() : undefined;
89
149
  obj.current_day_start = message.currentDayStart !== BigInt(0) ? message.currentDayStart?.toString() : undefined;
150
+ obj.kind = message.kind === 0 ? undefined : message.kind;
90
151
  return obj;
91
152
  },
92
153
  fromAminoMsg(object) {
@@ -18,7 +18,10 @@ function createBaseMarket() {
18
18
  poolNo: "",
19
19
  initialLiquidity: "",
20
20
  liquidityWithdrawn: "",
21
- settlementPriceYes: ""
21
+ settlementPriceYes: "",
22
+ twapAccumulator: "",
23
+ twapLastHeight: BigInt(0),
24
+ startHeight: BigInt(0)
22
25
  };
23
26
  }
24
27
  /**
@@ -78,6 +81,15 @@ export const Market = {
78
81
  if (message.settlementPriceYes !== "") {
79
82
  writer.uint32(130).string(Decimal.fromUserInput(message.settlementPriceYes, 18).atomics);
80
83
  }
84
+ if (message.twapAccumulator !== "") {
85
+ writer.uint32(138).string(Decimal.fromUserInput(message.twapAccumulator, 18).atomics);
86
+ }
87
+ if (message.twapLastHeight !== BigInt(0)) {
88
+ writer.uint32(144).int64(message.twapLastHeight);
89
+ }
90
+ if (message.startHeight !== BigInt(0)) {
91
+ writer.uint32(152).int64(message.startHeight);
92
+ }
81
93
  return writer;
82
94
  },
83
95
  decode(input, length) {
@@ -135,6 +147,15 @@ export const Market = {
135
147
  case 16:
136
148
  message.settlementPriceYes = Decimal.fromAtomics(reader.string(), 18).toString();
137
149
  break;
150
+ case 17:
151
+ message.twapAccumulator = Decimal.fromAtomics(reader.string(), 18).toString();
152
+ break;
153
+ case 18:
154
+ message.twapLastHeight = reader.int64();
155
+ break;
156
+ case 19:
157
+ message.startHeight = reader.int64();
158
+ break;
138
159
  default:
139
160
  reader.skipType(tag & 7);
140
161
  break;
@@ -160,6 +181,9 @@ export const Market = {
160
181
  message.initialLiquidity = object.initialLiquidity ?? "";
161
182
  message.liquidityWithdrawn = object.liquidityWithdrawn ?? "";
162
183
  message.settlementPriceYes = object.settlementPriceYes ?? "";
184
+ message.twapAccumulator = object.twapAccumulator ?? "";
185
+ message.twapLastHeight = object.twapLastHeight !== undefined && object.twapLastHeight !== null ? BigInt(object.twapLastHeight.toString()) : BigInt(0);
186
+ message.startHeight = object.startHeight !== undefined && object.startHeight !== null ? BigInt(object.startHeight.toString()) : BigInt(0);
163
187
  return message;
164
188
  },
165
189
  fromAmino(object) {
@@ -212,6 +236,15 @@ export const Market = {
212
236
  if (object.settlement_price_yes !== undefined && object.settlement_price_yes !== null) {
213
237
  message.settlementPriceYes = object.settlement_price_yes;
214
238
  }
239
+ if (object.twap_accumulator !== undefined && object.twap_accumulator !== null) {
240
+ message.twapAccumulator = object.twap_accumulator;
241
+ }
242
+ if (object.twap_last_height !== undefined && object.twap_last_height !== null) {
243
+ message.twapLastHeight = BigInt(object.twap_last_height);
244
+ }
245
+ if (object.start_height !== undefined && object.start_height !== null) {
246
+ message.startHeight = BigInt(object.start_height);
247
+ }
215
248
  return message;
216
249
  },
217
250
  toAmino(message) {
@@ -232,6 +265,9 @@ export const Market = {
232
265
  obj.initial_liquidity = message.initialLiquidity === "" ? undefined : message.initialLiquidity;
233
266
  obj.liquidity_withdrawn = message.liquidityWithdrawn === "" ? undefined : message.liquidityWithdrawn;
234
267
  obj.settlement_price_yes = message.settlementPriceYes === "" ? undefined : message.settlementPriceYes;
268
+ obj.twap_accumulator = message.twapAccumulator === "" ? undefined : message.twapAccumulator;
269
+ obj.twap_last_height = message.twapLastHeight !== BigInt(0) ? message.twapLastHeight?.toString() : undefined;
270
+ obj.start_height = message.startHeight !== BigInt(0) ? message.startHeight?.toString() : undefined;
235
271
  return obj;
236
272
  },
237
273
  fromAminoMsg(object) {
@@ -490,7 +490,8 @@ function createBaseMsgTrade() {
490
490
  creator: "",
491
491
  marketId: BigInt(0),
492
492
  isYes: false,
493
- amountIn: ""
493
+ amountIn: "",
494
+ minSharesOut: ""
494
495
  };
495
496
  }
496
497
  /**
@@ -515,6 +516,9 @@ export const MsgTrade = {
515
516
  if (message.amountIn !== "") {
516
517
  writer.uint32(34).string(message.amountIn);
517
518
  }
519
+ if (message.minSharesOut !== "") {
520
+ writer.uint32(42).string(message.minSharesOut);
521
+ }
518
522
  return writer;
519
523
  },
520
524
  decode(input, length) {
@@ -536,6 +540,9 @@ export const MsgTrade = {
536
540
  case 4:
537
541
  message.amountIn = reader.string();
538
542
  break;
543
+ case 5:
544
+ message.minSharesOut = reader.string();
545
+ break;
539
546
  default:
540
547
  reader.skipType(tag & 7);
541
548
  break;
@@ -549,6 +556,7 @@ export const MsgTrade = {
549
556
  message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0);
550
557
  message.isYes = object.isYes ?? false;
551
558
  message.amountIn = object.amountIn ?? "";
559
+ message.minSharesOut = object.minSharesOut ?? "";
552
560
  return message;
553
561
  },
554
562
  fromAmino(object) {
@@ -565,6 +573,9 @@ export const MsgTrade = {
565
573
  if (object.amount_in !== undefined && object.amount_in !== null) {
566
574
  message.amountIn = object.amount_in;
567
575
  }
576
+ if (object.min_shares_out !== undefined && object.min_shares_out !== null) {
577
+ message.minSharesOut = object.min_shares_out;
578
+ }
568
579
  return message;
569
580
  },
570
581
  toAmino(message) {
@@ -573,6 +584,7 @@ export const MsgTrade = {
573
584
  obj.market_id = message.marketId !== BigInt(0) ? message.marketId?.toString() : undefined;
574
585
  obj.is_yes = message.isYes === false ? undefined : message.isYes;
575
586
  obj.amount_in = message.amountIn === "" ? undefined : message.amountIn;
587
+ obj.min_shares_out = message.minSharesOut === "" ? undefined : message.minSharesOut;
576
588
  return obj;
577
589
  },
578
590
  fromAminoMsg(object) {