@sparkdreamnft/sparkdreamjs 0.0.48 → 0.0.49

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 +86 -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 +196 -0
  32. package/esm/sparkdream/federation/v1/tx.registry.js +20 -2
  33. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +8 -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 +17095 -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 +138 -0
  128. package/sparkdream/federation/v1/tx.js +198 -1
  129. package/sparkdream/federation/v1/tx.registry.d.ts +13 -1
  130. package/sparkdream/federation/v1/tx.registry.js +19 -1
  131. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +7 -1
  132. package/sparkdream/federation/v1/tx.rpc.msg.js +7 -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
@@ -15,7 +15,10 @@ function createBaseNomination() {
15
15
  totalStaked: "",
16
16
  conviction: "",
17
17
  rewardAmount: "",
18
- rewarded: false
18
+ rewarded: false,
19
+ payoutAttempts: 0,
20
+ payoutAbandoned: false,
21
+ author: ""
19
22
  };
20
23
  }
21
24
  /**
@@ -59,6 +62,15 @@ exports.Nomination = {
59
62
  if (message.rewarded === true) {
60
63
  writer.uint32(80).bool(message.rewarded);
61
64
  }
65
+ if (message.payoutAttempts !== 0) {
66
+ writer.uint32(88).uint32(message.payoutAttempts);
67
+ }
68
+ if (message.payoutAbandoned === true) {
69
+ writer.uint32(96).bool(message.payoutAbandoned);
70
+ }
71
+ if (message.author !== "") {
72
+ writer.uint32(106).string(message.author);
73
+ }
62
74
  return writer;
63
75
  },
64
76
  decode(input, length) {
@@ -98,6 +110,15 @@ exports.Nomination = {
98
110
  case 10:
99
111
  message.rewarded = reader.bool();
100
112
  break;
113
+ case 11:
114
+ message.payoutAttempts = reader.uint32();
115
+ break;
116
+ case 12:
117
+ message.payoutAbandoned = reader.bool();
118
+ break;
119
+ case 13:
120
+ message.author = reader.string();
121
+ break;
101
122
  default:
102
123
  reader.skipType(tag & 7);
103
124
  break;
@@ -117,6 +138,9 @@ exports.Nomination = {
117
138
  message.conviction = object.conviction ?? "";
118
139
  message.rewardAmount = object.rewardAmount ?? "";
119
140
  message.rewarded = object.rewarded ?? false;
141
+ message.payoutAttempts = object.payoutAttempts ?? 0;
142
+ message.payoutAbandoned = object.payoutAbandoned ?? false;
143
+ message.author = object.author ?? "";
120
144
  return message;
121
145
  },
122
146
  fromAmino(object) {
@@ -151,6 +175,15 @@ exports.Nomination = {
151
175
  if (object.rewarded !== undefined && object.rewarded !== null) {
152
176
  message.rewarded = object.rewarded;
153
177
  }
178
+ if (object.payout_attempts !== undefined && object.payout_attempts !== null) {
179
+ message.payoutAttempts = object.payout_attempts;
180
+ }
181
+ if (object.payout_abandoned !== undefined && object.payout_abandoned !== null) {
182
+ message.payoutAbandoned = object.payout_abandoned;
183
+ }
184
+ if (object.author !== undefined && object.author !== null) {
185
+ message.author = object.author;
186
+ }
154
187
  return message;
155
188
  },
156
189
  toAmino(message) {
@@ -165,6 +198,9 @@ exports.Nomination = {
165
198
  obj.conviction = message.conviction === "" ? undefined : message.conviction;
166
199
  obj.reward_amount = message.rewardAmount === "" ? undefined : message.rewardAmount;
167
200
  obj.rewarded = message.rewarded === false ? undefined : message.rewarded;
201
+ obj.payout_attempts = message.payoutAttempts === 0 ? undefined : message.payoutAttempts;
202
+ obj.payout_abandoned = message.payoutAbandoned === false ? undefined : message.payoutAbandoned;
203
+ obj.author = message.author === "" ? undefined : message.author;
168
204
  return obj;
169
205
  },
170
206
  fromAminoMsg(object) {
@@ -1243,6 +1243,7 @@ export interface QueryAllGuildMembershipResponseAminoMsg {
1243
1243
  */
1244
1244
  export interface QueryGetGuildInviteRequest {
1245
1245
  guildInvitee: string;
1246
+ guildId: bigint;
1246
1247
  }
1247
1248
  export interface QueryGetGuildInviteRequestProtoMsg {
1248
1249
  typeUrl: "/sparkdream.season.v1.QueryGetGuildInviteRequest";
@@ -1256,6 +1257,7 @@ export interface QueryGetGuildInviteRequestProtoMsg {
1256
1257
  */
1257
1258
  export interface QueryGetGuildInviteRequestAmino {
1258
1259
  guild_invitee?: string;
1260
+ guild_id?: string;
1259
1261
  }
1260
1262
  export interface QueryGetGuildInviteRequestAminoMsg {
1261
1263
  type: "/sparkdream.season.v1.QueryGetGuildInviteRequest";
@@ -3450,9 +3452,10 @@ export interface QueryAvailableQuestsRequestAminoMsg {
3450
3452
  * @see proto type: sparkdream.season.v1.QueryAvailableQuestsResponse
3451
3453
  */
3452
3454
  export interface QueryAvailableQuestsResponse {
3453
- id: string;
3454
- name: string;
3455
- xpReward: bigint;
3455
+ /**
3456
+ * Quests the member can start now (the same checks as MsgStartQuest).
3457
+ */
3458
+ quests: Quest[];
3456
3459
  pagination?: PageResponse;
3457
3460
  }
3458
3461
  export interface QueryAvailableQuestsResponseProtoMsg {
@@ -3466,9 +3469,10 @@ export interface QueryAvailableQuestsResponseProtoMsg {
3466
3469
  * @see proto type: sparkdream.season.v1.QueryAvailableQuestsResponse
3467
3470
  */
3468
3471
  export interface QueryAvailableQuestsResponseAmino {
3469
- id?: string;
3470
- name?: string;
3471
- xp_reward?: string;
3472
+ /**
3473
+ * Quests the member can start now (the same checks as MsgStartQuest).
3474
+ */
3475
+ quests?: QuestAmino[];
3472
3476
  pagination?: PageResponseAmino;
3473
3477
  }
3474
3478
  export interface QueryAvailableQuestsResponseAminoMsg {
@@ -3276,7 +3276,8 @@ exports.QueryAllGuildMembershipResponse = {
3276
3276
  };
3277
3277
  function createBaseQueryGetGuildInviteRequest() {
3278
3278
  return {
3279
- guildInvitee: ""
3279
+ guildInvitee: "",
3280
+ guildId: BigInt(0)
3280
3281
  };
3281
3282
  }
3282
3283
  /**
@@ -3291,6 +3292,9 @@ exports.QueryGetGuildInviteRequest = {
3291
3292
  if (message.guildInvitee !== "") {
3292
3293
  writer.uint32(10).string(message.guildInvitee);
3293
3294
  }
3295
+ if (message.guildId !== BigInt(0)) {
3296
+ writer.uint32(16).uint64(message.guildId);
3297
+ }
3294
3298
  return writer;
3295
3299
  },
3296
3300
  decode(input, length) {
@@ -3303,6 +3307,9 @@ exports.QueryGetGuildInviteRequest = {
3303
3307
  case 1:
3304
3308
  message.guildInvitee = reader.string();
3305
3309
  break;
3310
+ case 2:
3311
+ message.guildId = reader.uint64();
3312
+ break;
3306
3313
  default:
3307
3314
  reader.skipType(tag & 7);
3308
3315
  break;
@@ -3313,6 +3320,7 @@ exports.QueryGetGuildInviteRequest = {
3313
3320
  fromPartial(object) {
3314
3321
  const message = createBaseQueryGetGuildInviteRequest();
3315
3322
  message.guildInvitee = object.guildInvitee ?? "";
3323
+ message.guildId = object.guildId !== undefined && object.guildId !== null ? BigInt(object.guildId.toString()) : BigInt(0);
3316
3324
  return message;
3317
3325
  },
3318
3326
  fromAmino(object) {
@@ -3320,11 +3328,15 @@ exports.QueryGetGuildInviteRequest = {
3320
3328
  if (object.guild_invitee !== undefined && object.guild_invitee !== null) {
3321
3329
  message.guildInvitee = object.guild_invitee;
3322
3330
  }
3331
+ if (object.guild_id !== undefined && object.guild_id !== null) {
3332
+ message.guildId = BigInt(object.guild_id);
3333
+ }
3323
3334
  return message;
3324
3335
  },
3325
3336
  toAmino(message) {
3326
3337
  const obj = {};
3327
3338
  obj.guild_invitee = message.guildInvitee === "" ? undefined : message.guildInvitee;
3339
+ obj.guild_id = message.guildId !== BigInt(0) ? message.guildId?.toString() : undefined;
3328
3340
  return obj;
3329
3341
  },
3330
3342
  fromAminoMsg(object) {
@@ -9683,9 +9695,7 @@ exports.QueryAvailableQuestsRequest = {
9683
9695
  };
9684
9696
  function createBaseQueryAvailableQuestsResponse() {
9685
9697
  return {
9686
- id: "",
9687
- name: "",
9688
- xpReward: BigInt(0),
9698
+ quests: [],
9689
9699
  pagination: undefined
9690
9700
  };
9691
9701
  }
@@ -9698,17 +9708,11 @@ function createBaseQueryAvailableQuestsResponse() {
9698
9708
  exports.QueryAvailableQuestsResponse = {
9699
9709
  typeUrl: "/sparkdream.season.v1.QueryAvailableQuestsResponse",
9700
9710
  encode(message, writer = binary_1.BinaryWriter.create()) {
9701
- if (message.id !== "") {
9702
- writer.uint32(10).string(message.id);
9703
- }
9704
- if (message.name !== "") {
9705
- writer.uint32(18).string(message.name);
9706
- }
9707
- if (message.xpReward !== BigInt(0)) {
9708
- writer.uint32(24).uint64(message.xpReward);
9711
+ for (const v of message.quests) {
9712
+ quest_1.Quest.encode(v, writer.uint32(10).fork()).ldelim();
9709
9713
  }
9710
9714
  if (message.pagination !== undefined) {
9711
- pagination_1.PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
9715
+ pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
9712
9716
  }
9713
9717
  return writer;
9714
9718
  },
@@ -9720,15 +9724,9 @@ exports.QueryAvailableQuestsResponse = {
9720
9724
  const tag = reader.uint32();
9721
9725
  switch (tag >>> 3) {
9722
9726
  case 1:
9723
- message.id = reader.string();
9727
+ message.quests.push(quest_1.Quest.decode(reader, reader.uint32()));
9724
9728
  break;
9725
9729
  case 2:
9726
- message.name = reader.string();
9727
- break;
9728
- case 3:
9729
- message.xpReward = reader.uint64();
9730
- break;
9731
- case 4:
9732
9730
  message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
9733
9731
  break;
9734
9732
  default:
@@ -9740,23 +9738,13 @@ exports.QueryAvailableQuestsResponse = {
9740
9738
  },
9741
9739
  fromPartial(object) {
9742
9740
  const message = createBaseQueryAvailableQuestsResponse();
9743
- message.id = object.id ?? "";
9744
- message.name = object.name ?? "";
9745
- message.xpReward = object.xpReward !== undefined && object.xpReward !== null ? BigInt(object.xpReward.toString()) : BigInt(0);
9741
+ message.quests = object.quests?.map(e => quest_1.Quest.fromPartial(e)) || [];
9746
9742
  message.pagination = object.pagination !== undefined && object.pagination !== null ? pagination_1.PageResponse.fromPartial(object.pagination) : undefined;
9747
9743
  return message;
9748
9744
  },
9749
9745
  fromAmino(object) {
9750
9746
  const message = createBaseQueryAvailableQuestsResponse();
9751
- if (object.id !== undefined && object.id !== null) {
9752
- message.id = object.id;
9753
- }
9754
- if (object.name !== undefined && object.name !== null) {
9755
- message.name = object.name;
9756
- }
9757
- if (object.xp_reward !== undefined && object.xp_reward !== null) {
9758
- message.xpReward = BigInt(object.xp_reward);
9759
- }
9747
+ message.quests = object.quests?.map(e => quest_1.Quest.fromAmino(e)) || [];
9760
9748
  if (object.pagination !== undefined && object.pagination !== null) {
9761
9749
  message.pagination = pagination_1.PageResponse.fromAmino(object.pagination);
9762
9750
  }
@@ -9764,9 +9752,12 @@ exports.QueryAvailableQuestsResponse = {
9764
9752
  },
9765
9753
  toAmino(message) {
9766
9754
  const obj = {};
9767
- obj.id = message.id === "" ? undefined : message.id;
9768
- obj.name = message.name === "" ? undefined : message.name;
9769
- obj.xp_reward = message.xpReward !== BigInt(0) ? message.xpReward?.toString() : undefined;
9755
+ if (message.quests) {
9756
+ obj.quests = message.quests.map(e => e ? quest_1.Quest.toAmino(e) : undefined);
9757
+ }
9758
+ else {
9759
+ obj.quests = message.quests;
9760
+ }
9770
9761
  obj.pagination = message.pagination ? pagination_1.PageResponse.toAmino(message.pagination) : undefined;
9771
9762
  return obj;
9772
9763
  },
@@ -197,7 +197,7 @@ class LCDQueryClient {
197
197
  };
198
198
  /* ListGuildInvite Queries a list of GuildInvite items. */
199
199
  getGuildInvite = async (params) => {
200
- const endpoint = `sparkdream/season/v1/guild_invite/${params.guildInvitee}`;
200
+ const endpoint = `sparkdream/season/v1/guild_invite/${params.guildId}/${params.guildInvitee}`;
201
201
  return await this.req.get(endpoint);
202
202
  };
203
203
  /* ListGuildInvite defines the ListGuildInvite RPC. */
@@ -116,6 +116,12 @@ export interface Quest {
116
116
  * Quest objectives
117
117
  */
118
118
  objectives: QuestObjective[];
119
+ /**
120
+ * Bumped by MsgUpdateQuest whenever the objectives change (SEA-32).
121
+ * Progress recorded against another version is stale and restarts from
122
+ * zero, so a reorder or retarget never re-reads old counters.
123
+ */
124
+ objectivesVersion: bigint;
119
125
  }
120
126
  export interface QuestProtoMsg {
121
127
  typeUrl: "/sparkdream.season.v1.Quest";
@@ -188,6 +194,12 @@ export interface QuestAmino {
188
194
  * Quest objectives
189
195
  */
190
196
  objectives?: QuestObjectiveAmino[];
197
+ /**
198
+ * Bumped by MsgUpdateQuest whenever the objectives change (SEA-32).
199
+ * Progress recorded against another version is stale and restarts from
200
+ * zero, so a reorder or retarget never re-reads old counters.
201
+ */
202
+ objectives_version?: string;
191
203
  }
192
204
  export interface QuestAminoMsg {
193
205
  type: "/sparkdream.season.v1.Quest";
@@ -111,7 +111,8 @@ function createBaseQuest() {
111
111
  requiredAchievement: "",
112
112
  prerequisiteQuest: "",
113
113
  questChain: "",
114
- objectives: []
114
+ objectives: [],
115
+ objectivesVersion: BigInt(0)
115
116
  };
116
117
  }
117
118
  /**
@@ -168,6 +169,9 @@ exports.Quest = {
168
169
  for (const v of message.objectives) {
169
170
  exports.QuestObjective.encode(v, writer.uint32(122).fork()).ldelim();
170
171
  }
172
+ if (message.objectivesVersion !== BigInt(0)) {
173
+ writer.uint32(128).uint64(message.objectivesVersion);
174
+ }
171
175
  return writer;
172
176
  },
173
177
  decode(input, length) {
@@ -222,6 +226,9 @@ exports.Quest = {
222
226
  case 15:
223
227
  message.objectives.push(exports.QuestObjective.decode(reader, reader.uint32()));
224
228
  break;
229
+ case 16:
230
+ message.objectivesVersion = reader.uint64();
231
+ break;
225
232
  default:
226
233
  reader.skipType(tag & 7);
227
234
  break;
@@ -246,6 +253,7 @@ exports.Quest = {
246
253
  message.prerequisiteQuest = object.prerequisiteQuest ?? "";
247
254
  message.questChain = object.questChain ?? "";
248
255
  message.objectives = object.objectives?.map(e => exports.QuestObjective.fromPartial(e)) || [];
256
+ message.objectivesVersion = object.objectivesVersion !== undefined && object.objectivesVersion !== null ? BigInt(object.objectivesVersion.toString()) : BigInt(0);
249
257
  return message;
250
258
  },
251
259
  fromAmino(object) {
@@ -293,6 +301,9 @@ exports.Quest = {
293
301
  message.questChain = object.quest_chain;
294
302
  }
295
303
  message.objectives = object.objectives?.map(e => exports.QuestObjective.fromAmino(e)) || [];
304
+ if (object.objectives_version !== undefined && object.objectives_version !== null) {
305
+ message.objectivesVersion = BigInt(object.objectives_version);
306
+ }
296
307
  return message;
297
308
  },
298
309
  toAmino(message) {
@@ -317,6 +328,7 @@ exports.Quest = {
317
328
  else {
318
329
  obj.objectives = message.objectives;
319
330
  }
331
+ obj.objectives_version = message.objectivesVersion !== BigInt(0) ? message.objectivesVersion?.toString() : undefined;
320
332
  return obj;
321
333
  },
322
334
  fromAminoMsg(object) {
@@ -44,6 +44,12 @@ export interface Season {
44
44
  * Original end block before any extensions
45
45
  */
46
46
  originalEndBlock: bigint;
47
+ /**
48
+ * Block time (unix seconds) when the season started; 0 for a season
49
+ * started at genesis. Retro-PGF nominations of time-stamped content (blog
50
+ * and forum posts) must be created at or after it.
51
+ */
52
+ startTime: bigint;
47
53
  }
48
54
  export interface SeasonProtoMsg {
49
55
  typeUrl: "/sparkdream.season.v1.Season";
@@ -92,6 +98,12 @@ export interface SeasonAmino {
92
98
  * Original end block before any extensions
93
99
  */
94
100
  original_end_block?: string;
101
+ /**
102
+ * Block time (unix seconds) when the season started; 0 for a season
103
+ * started at genesis. Retro-PGF nominations of time-stamped content (blog
104
+ * and forum posts) must be created at or after it.
105
+ */
106
+ start_time?: string;
95
107
  }
96
108
  export interface SeasonAminoMsg {
97
109
  type: "/sparkdream.season.v1.Season";
@@ -12,7 +12,8 @@ function createBaseSeason() {
12
12
  status: 0,
13
13
  extensionsCount: BigInt(0),
14
14
  totalExtensionEpochs: BigInt(0),
15
- originalEndBlock: BigInt(0)
15
+ originalEndBlock: BigInt(0),
16
+ startTime: BigInt(0)
16
17
  };
17
18
  }
18
19
  /**
@@ -51,6 +52,9 @@ exports.Season = {
51
52
  if (message.originalEndBlock !== BigInt(0)) {
52
53
  writer.uint32(72).int64(message.originalEndBlock);
53
54
  }
55
+ if (message.startTime !== BigInt(0)) {
56
+ writer.uint32(80).int64(message.startTime);
57
+ }
54
58
  return writer;
55
59
  },
56
60
  decode(input, length) {
@@ -87,6 +91,9 @@ exports.Season = {
87
91
  case 9:
88
92
  message.originalEndBlock = reader.int64();
89
93
  break;
94
+ case 10:
95
+ message.startTime = reader.int64();
96
+ break;
90
97
  default:
91
98
  reader.skipType(tag & 7);
92
99
  break;
@@ -105,6 +112,7 @@ exports.Season = {
105
112
  message.extensionsCount = object.extensionsCount !== undefined && object.extensionsCount !== null ? BigInt(object.extensionsCount.toString()) : BigInt(0);
106
113
  message.totalExtensionEpochs = object.totalExtensionEpochs !== undefined && object.totalExtensionEpochs !== null ? BigInt(object.totalExtensionEpochs.toString()) : BigInt(0);
107
114
  message.originalEndBlock = object.originalEndBlock !== undefined && object.originalEndBlock !== null ? BigInt(object.originalEndBlock.toString()) : BigInt(0);
115
+ message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0);
108
116
  return message;
109
117
  },
110
118
  fromAmino(object) {
@@ -136,6 +144,9 @@ exports.Season = {
136
144
  if (object.original_end_block !== undefined && object.original_end_block !== null) {
137
145
  message.originalEndBlock = BigInt(object.original_end_block);
138
146
  }
147
+ if (object.start_time !== undefined && object.start_time !== null) {
148
+ message.startTime = BigInt(object.start_time);
149
+ }
139
150
  return message;
140
151
  },
141
152
  toAmino(message) {
@@ -149,6 +160,7 @@ exports.Season = {
149
160
  obj.extensions_count = message.extensionsCount !== BigInt(0) ? message.extensionsCount?.toString() : undefined;
150
161
  obj.total_extension_epochs = message.totalExtensionEpochs !== BigInt(0) ? message.totalExtensionEpochs?.toString() : undefined;
151
162
  obj.original_end_block = message.originalEndBlock !== BigInt(0) ? message.originalEndBlock?.toString() : undefined;
163
+ obj.start_time = message.startTime !== BigInt(0) ? message.startTime?.toString() : undefined;
152
164
  return obj;
153
165
  },
154
166
  fromAminoMsg(object) {
@@ -0,0 +1,86 @@
1
+ import { BinaryReader, BinaryWriter } from "../../../binary";
2
+ import { DeepPartial } from "../../../helpers";
3
+ /**
4
+ * SeasonStatsCounters holds the running aggregates of one season, updated
5
+ * where the events happen so the SeasonStats query reads them instead of
6
+ * scanning every profile and quest (SEA-35).
7
+ * @name SeasonStatsCounters
8
+ * @package sparkdream.season.v1
9
+ * @see proto type: sparkdream.season.v1.SeasonStatsCounters
10
+ */
11
+ export interface SeasonStatsCounters {
12
+ season: bigint;
13
+ /**
14
+ * Sum of season XP held by members (XP granted this season, less XP
15
+ * removed by zeroing).
16
+ */
17
+ totalXpEarned: bigint;
18
+ /**
19
+ * Members holding season XP > 0.
20
+ */
21
+ activeMembers: bigint;
22
+ /**
23
+ * Initiatives completed this season (x/rep completion hook).
24
+ */
25
+ initiativesCompleted: bigint;
26
+ /**
27
+ * Quest rewards claimed this season.
28
+ */
29
+ questsCompleted: bigint;
30
+ }
31
+ export interface SeasonStatsCountersProtoMsg {
32
+ typeUrl: "/sparkdream.season.v1.SeasonStatsCounters";
33
+ value: Uint8Array;
34
+ }
35
+ /**
36
+ * SeasonStatsCounters holds the running aggregates of one season, updated
37
+ * where the events happen so the SeasonStats query reads them instead of
38
+ * scanning every profile and quest (SEA-35).
39
+ * @name SeasonStatsCountersAmino
40
+ * @package sparkdream.season.v1
41
+ * @see proto type: sparkdream.season.v1.SeasonStatsCounters
42
+ */
43
+ export interface SeasonStatsCountersAmino {
44
+ season?: string;
45
+ /**
46
+ * Sum of season XP held by members (XP granted this season, less XP
47
+ * removed by zeroing).
48
+ */
49
+ total_xp_earned?: string;
50
+ /**
51
+ * Members holding season XP > 0.
52
+ */
53
+ active_members?: string;
54
+ /**
55
+ * Initiatives completed this season (x/rep completion hook).
56
+ */
57
+ initiatives_completed?: string;
58
+ /**
59
+ * Quest rewards claimed this season.
60
+ */
61
+ quests_completed?: string;
62
+ }
63
+ export interface SeasonStatsCountersAminoMsg {
64
+ type: "/sparkdream.season.v1.SeasonStatsCounters";
65
+ value: SeasonStatsCountersAmino;
66
+ }
67
+ /**
68
+ * SeasonStatsCounters holds the running aggregates of one season, updated
69
+ * where the events happen so the SeasonStats query reads them instead of
70
+ * scanning every profile and quest (SEA-35).
71
+ * @name SeasonStatsCounters
72
+ * @package sparkdream.season.v1
73
+ * @see proto type: sparkdream.season.v1.SeasonStatsCounters
74
+ */
75
+ export declare const SeasonStatsCounters: {
76
+ typeUrl: string;
77
+ encode(message: SeasonStatsCounters, writer?: BinaryWriter): BinaryWriter;
78
+ decode(input: BinaryReader | Uint8Array, length?: number): SeasonStatsCounters;
79
+ fromPartial(object: DeepPartial<SeasonStatsCounters>): SeasonStatsCounters;
80
+ fromAmino(object: SeasonStatsCountersAmino): SeasonStatsCounters;
81
+ toAmino(message: SeasonStatsCounters): SeasonStatsCountersAmino;
82
+ fromAminoMsg(object: SeasonStatsCountersAminoMsg): SeasonStatsCounters;
83
+ fromProtoMsg(message: SeasonStatsCountersProtoMsg): SeasonStatsCounters;
84
+ toProto(message: SeasonStatsCounters): Uint8Array;
85
+ toProtoMsg(message: SeasonStatsCounters): SeasonStatsCountersProtoMsg;
86
+ };
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SeasonStatsCounters = void 0;
4
+ //@ts-nocheck
5
+ const binary_1 = require("../../../binary");
6
+ function createBaseSeasonStatsCounters() {
7
+ return {
8
+ season: BigInt(0),
9
+ totalXpEarned: BigInt(0),
10
+ activeMembers: BigInt(0),
11
+ initiativesCompleted: BigInt(0),
12
+ questsCompleted: BigInt(0)
13
+ };
14
+ }
15
+ /**
16
+ * SeasonStatsCounters holds the running aggregates of one season, updated
17
+ * where the events happen so the SeasonStats query reads them instead of
18
+ * scanning every profile and quest (SEA-35).
19
+ * @name SeasonStatsCounters
20
+ * @package sparkdream.season.v1
21
+ * @see proto type: sparkdream.season.v1.SeasonStatsCounters
22
+ */
23
+ exports.SeasonStatsCounters = {
24
+ typeUrl: "/sparkdream.season.v1.SeasonStatsCounters",
25
+ encode(message, writer = binary_1.BinaryWriter.create()) {
26
+ if (message.season !== BigInt(0)) {
27
+ writer.uint32(8).uint64(message.season);
28
+ }
29
+ if (message.totalXpEarned !== BigInt(0)) {
30
+ writer.uint32(16).uint64(message.totalXpEarned);
31
+ }
32
+ if (message.activeMembers !== BigInt(0)) {
33
+ writer.uint32(24).uint64(message.activeMembers);
34
+ }
35
+ if (message.initiativesCompleted !== BigInt(0)) {
36
+ writer.uint32(32).uint64(message.initiativesCompleted);
37
+ }
38
+ if (message.questsCompleted !== BigInt(0)) {
39
+ writer.uint32(40).uint64(message.questsCompleted);
40
+ }
41
+ return writer;
42
+ },
43
+ decode(input, length) {
44
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
45
+ let end = length === undefined ? reader.len : reader.pos + length;
46
+ const message = createBaseSeasonStatsCounters();
47
+ while (reader.pos < end) {
48
+ const tag = reader.uint32();
49
+ switch (tag >>> 3) {
50
+ case 1:
51
+ message.season = reader.uint64();
52
+ break;
53
+ case 2:
54
+ message.totalXpEarned = reader.uint64();
55
+ break;
56
+ case 3:
57
+ message.activeMembers = reader.uint64();
58
+ break;
59
+ case 4:
60
+ message.initiativesCompleted = reader.uint64();
61
+ break;
62
+ case 5:
63
+ message.questsCompleted = reader.uint64();
64
+ break;
65
+ default:
66
+ reader.skipType(tag & 7);
67
+ break;
68
+ }
69
+ }
70
+ return message;
71
+ },
72
+ fromPartial(object) {
73
+ const message = createBaseSeasonStatsCounters();
74
+ message.season = object.season !== undefined && object.season !== null ? BigInt(object.season.toString()) : BigInt(0);
75
+ message.totalXpEarned = object.totalXpEarned !== undefined && object.totalXpEarned !== null ? BigInt(object.totalXpEarned.toString()) : BigInt(0);
76
+ message.activeMembers = object.activeMembers !== undefined && object.activeMembers !== null ? BigInt(object.activeMembers.toString()) : BigInt(0);
77
+ message.initiativesCompleted = object.initiativesCompleted !== undefined && object.initiativesCompleted !== null ? BigInt(object.initiativesCompleted.toString()) : BigInt(0);
78
+ message.questsCompleted = object.questsCompleted !== undefined && object.questsCompleted !== null ? BigInt(object.questsCompleted.toString()) : BigInt(0);
79
+ return message;
80
+ },
81
+ fromAmino(object) {
82
+ const message = createBaseSeasonStatsCounters();
83
+ if (object.season !== undefined && object.season !== null) {
84
+ message.season = BigInt(object.season);
85
+ }
86
+ if (object.total_xp_earned !== undefined && object.total_xp_earned !== null) {
87
+ message.totalXpEarned = BigInt(object.total_xp_earned);
88
+ }
89
+ if (object.active_members !== undefined && object.active_members !== null) {
90
+ message.activeMembers = BigInt(object.active_members);
91
+ }
92
+ if (object.initiatives_completed !== undefined && object.initiatives_completed !== null) {
93
+ message.initiativesCompleted = BigInt(object.initiatives_completed);
94
+ }
95
+ if (object.quests_completed !== undefined && object.quests_completed !== null) {
96
+ message.questsCompleted = BigInt(object.quests_completed);
97
+ }
98
+ return message;
99
+ },
100
+ toAmino(message) {
101
+ const obj = {};
102
+ obj.season = message.season !== BigInt(0) ? message.season?.toString() : undefined;
103
+ obj.total_xp_earned = message.totalXpEarned !== BigInt(0) ? message.totalXpEarned?.toString() : undefined;
104
+ obj.active_members = message.activeMembers !== BigInt(0) ? message.activeMembers?.toString() : undefined;
105
+ obj.initiatives_completed = message.initiativesCompleted !== BigInt(0) ? message.initiativesCompleted?.toString() : undefined;
106
+ obj.quests_completed = message.questsCompleted !== BigInt(0) ? message.questsCompleted?.toString() : undefined;
107
+ return obj;
108
+ },
109
+ fromAminoMsg(object) {
110
+ return exports.SeasonStatsCounters.fromAmino(object.value);
111
+ },
112
+ fromProtoMsg(message) {
113
+ return exports.SeasonStatsCounters.decode(message.value);
114
+ },
115
+ toProto(message) {
116
+ return exports.SeasonStatsCounters.encode(message).finish();
117
+ },
118
+ toProtoMsg(message) {
119
+ return {
120
+ typeUrl: "/sparkdream.season.v1.SeasonStatsCounters",
121
+ value: exports.SeasonStatsCounters.encode(message).finish()
122
+ };
123
+ }
124
+ };