@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
@@ -12,7 +12,10 @@ function createBaseNomination() {
12
12
  totalStaked: "",
13
13
  conviction: "",
14
14
  rewardAmount: "",
15
- rewarded: false
15
+ rewarded: false,
16
+ payoutAttempts: 0,
17
+ payoutAbandoned: false,
18
+ author: ""
16
19
  };
17
20
  }
18
21
  /**
@@ -56,6 +59,15 @@ export const Nomination = {
56
59
  if (message.rewarded === true) {
57
60
  writer.uint32(80).bool(message.rewarded);
58
61
  }
62
+ if (message.payoutAttempts !== 0) {
63
+ writer.uint32(88).uint32(message.payoutAttempts);
64
+ }
65
+ if (message.payoutAbandoned === true) {
66
+ writer.uint32(96).bool(message.payoutAbandoned);
67
+ }
68
+ if (message.author !== "") {
69
+ writer.uint32(106).string(message.author);
70
+ }
59
71
  return writer;
60
72
  },
61
73
  decode(input, length) {
@@ -95,6 +107,15 @@ export const Nomination = {
95
107
  case 10:
96
108
  message.rewarded = reader.bool();
97
109
  break;
110
+ case 11:
111
+ message.payoutAttempts = reader.uint32();
112
+ break;
113
+ case 12:
114
+ message.payoutAbandoned = reader.bool();
115
+ break;
116
+ case 13:
117
+ message.author = reader.string();
118
+ break;
98
119
  default:
99
120
  reader.skipType(tag & 7);
100
121
  break;
@@ -114,6 +135,9 @@ export const Nomination = {
114
135
  message.conviction = object.conviction ?? "";
115
136
  message.rewardAmount = object.rewardAmount ?? "";
116
137
  message.rewarded = object.rewarded ?? false;
138
+ message.payoutAttempts = object.payoutAttempts ?? 0;
139
+ message.payoutAbandoned = object.payoutAbandoned ?? false;
140
+ message.author = object.author ?? "";
117
141
  return message;
118
142
  },
119
143
  fromAmino(object) {
@@ -148,6 +172,15 @@ export const Nomination = {
148
172
  if (object.rewarded !== undefined && object.rewarded !== null) {
149
173
  message.rewarded = object.rewarded;
150
174
  }
175
+ if (object.payout_attempts !== undefined && object.payout_attempts !== null) {
176
+ message.payoutAttempts = object.payout_attempts;
177
+ }
178
+ if (object.payout_abandoned !== undefined && object.payout_abandoned !== null) {
179
+ message.payoutAbandoned = object.payout_abandoned;
180
+ }
181
+ if (object.author !== undefined && object.author !== null) {
182
+ message.author = object.author;
183
+ }
151
184
  return message;
152
185
  },
153
186
  toAmino(message) {
@@ -162,6 +195,9 @@ export const Nomination = {
162
195
  obj.conviction = message.conviction === "" ? undefined : message.conviction;
163
196
  obj.reward_amount = message.rewardAmount === "" ? undefined : message.rewardAmount;
164
197
  obj.rewarded = message.rewarded === false ? undefined : message.rewarded;
198
+ obj.payout_attempts = message.payoutAttempts === 0 ? undefined : message.payoutAttempts;
199
+ obj.payout_abandoned = message.payoutAbandoned === false ? undefined : message.payoutAbandoned;
200
+ obj.author = message.author === "" ? undefined : message.author;
165
201
  return obj;
166
202
  },
167
203
  fromAminoMsg(object) {
@@ -3271,7 +3271,8 @@ export const QueryAllGuildMembershipResponse = {
3271
3271
  };
3272
3272
  function createBaseQueryGetGuildInviteRequest() {
3273
3273
  return {
3274
- guildInvitee: ""
3274
+ guildInvitee: "",
3275
+ guildId: BigInt(0)
3275
3276
  };
3276
3277
  }
3277
3278
  /**
@@ -3286,6 +3287,9 @@ export const QueryGetGuildInviteRequest = {
3286
3287
  if (message.guildInvitee !== "") {
3287
3288
  writer.uint32(10).string(message.guildInvitee);
3288
3289
  }
3290
+ if (message.guildId !== BigInt(0)) {
3291
+ writer.uint32(16).uint64(message.guildId);
3292
+ }
3289
3293
  return writer;
3290
3294
  },
3291
3295
  decode(input, length) {
@@ -3298,6 +3302,9 @@ export const QueryGetGuildInviteRequest = {
3298
3302
  case 1:
3299
3303
  message.guildInvitee = reader.string();
3300
3304
  break;
3305
+ case 2:
3306
+ message.guildId = reader.uint64();
3307
+ break;
3301
3308
  default:
3302
3309
  reader.skipType(tag & 7);
3303
3310
  break;
@@ -3308,6 +3315,7 @@ export const QueryGetGuildInviteRequest = {
3308
3315
  fromPartial(object) {
3309
3316
  const message = createBaseQueryGetGuildInviteRequest();
3310
3317
  message.guildInvitee = object.guildInvitee ?? "";
3318
+ message.guildId = object.guildId !== undefined && object.guildId !== null ? BigInt(object.guildId.toString()) : BigInt(0);
3311
3319
  return message;
3312
3320
  },
3313
3321
  fromAmino(object) {
@@ -3315,11 +3323,15 @@ export const QueryGetGuildInviteRequest = {
3315
3323
  if (object.guild_invitee !== undefined && object.guild_invitee !== null) {
3316
3324
  message.guildInvitee = object.guild_invitee;
3317
3325
  }
3326
+ if (object.guild_id !== undefined && object.guild_id !== null) {
3327
+ message.guildId = BigInt(object.guild_id);
3328
+ }
3318
3329
  return message;
3319
3330
  },
3320
3331
  toAmino(message) {
3321
3332
  const obj = {};
3322
3333
  obj.guild_invitee = message.guildInvitee === "" ? undefined : message.guildInvitee;
3334
+ obj.guild_id = message.guildId !== BigInt(0) ? message.guildId?.toString() : undefined;
3323
3335
  return obj;
3324
3336
  },
3325
3337
  fromAminoMsg(object) {
@@ -9678,9 +9690,7 @@ export const QueryAvailableQuestsRequest = {
9678
9690
  };
9679
9691
  function createBaseQueryAvailableQuestsResponse() {
9680
9692
  return {
9681
- id: "",
9682
- name: "",
9683
- xpReward: BigInt(0),
9693
+ quests: [],
9684
9694
  pagination: undefined
9685
9695
  };
9686
9696
  }
@@ -9693,17 +9703,11 @@ function createBaseQueryAvailableQuestsResponse() {
9693
9703
  export const QueryAvailableQuestsResponse = {
9694
9704
  typeUrl: "/sparkdream.season.v1.QueryAvailableQuestsResponse",
9695
9705
  encode(message, writer = BinaryWriter.create()) {
9696
- if (message.id !== "") {
9697
- writer.uint32(10).string(message.id);
9698
- }
9699
- if (message.name !== "") {
9700
- writer.uint32(18).string(message.name);
9701
- }
9702
- if (message.xpReward !== BigInt(0)) {
9703
- writer.uint32(24).uint64(message.xpReward);
9706
+ for (const v of message.quests) {
9707
+ Quest.encode(v, writer.uint32(10).fork()).ldelim();
9704
9708
  }
9705
9709
  if (message.pagination !== undefined) {
9706
- PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
9710
+ PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
9707
9711
  }
9708
9712
  return writer;
9709
9713
  },
@@ -9715,15 +9719,9 @@ export const QueryAvailableQuestsResponse = {
9715
9719
  const tag = reader.uint32();
9716
9720
  switch (tag >>> 3) {
9717
9721
  case 1:
9718
- message.id = reader.string();
9722
+ message.quests.push(Quest.decode(reader, reader.uint32()));
9719
9723
  break;
9720
9724
  case 2:
9721
- message.name = reader.string();
9722
- break;
9723
- case 3:
9724
- message.xpReward = reader.uint64();
9725
- break;
9726
- case 4:
9727
9725
  message.pagination = PageResponse.decode(reader, reader.uint32());
9728
9726
  break;
9729
9727
  default:
@@ -9735,23 +9733,13 @@ export const QueryAvailableQuestsResponse = {
9735
9733
  },
9736
9734
  fromPartial(object) {
9737
9735
  const message = createBaseQueryAvailableQuestsResponse();
9738
- message.id = object.id ?? "";
9739
- message.name = object.name ?? "";
9740
- message.xpReward = object.xpReward !== undefined && object.xpReward !== null ? BigInt(object.xpReward.toString()) : BigInt(0);
9736
+ message.quests = object.quests?.map(e => Quest.fromPartial(e)) || [];
9741
9737
  message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
9742
9738
  return message;
9743
9739
  },
9744
9740
  fromAmino(object) {
9745
9741
  const message = createBaseQueryAvailableQuestsResponse();
9746
- if (object.id !== undefined && object.id !== null) {
9747
- message.id = object.id;
9748
- }
9749
- if (object.name !== undefined && object.name !== null) {
9750
- message.name = object.name;
9751
- }
9752
- if (object.xp_reward !== undefined && object.xp_reward !== null) {
9753
- message.xpReward = BigInt(object.xp_reward);
9754
- }
9742
+ message.quests = object.quests?.map(e => Quest.fromAmino(e)) || [];
9755
9743
  if (object.pagination !== undefined && object.pagination !== null) {
9756
9744
  message.pagination = PageResponse.fromAmino(object.pagination);
9757
9745
  }
@@ -9759,9 +9747,12 @@ export const QueryAvailableQuestsResponse = {
9759
9747
  },
9760
9748
  toAmino(message) {
9761
9749
  const obj = {};
9762
- obj.id = message.id === "" ? undefined : message.id;
9763
- obj.name = message.name === "" ? undefined : message.name;
9764
- obj.xp_reward = message.xpReward !== BigInt(0) ? message.xpReward?.toString() : undefined;
9750
+ if (message.quests) {
9751
+ obj.quests = message.quests.map(e => e ? Quest.toAmino(e) : undefined);
9752
+ }
9753
+ else {
9754
+ obj.quests = message.quests;
9755
+ }
9765
9756
  obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
9766
9757
  return obj;
9767
9758
  },
@@ -194,7 +194,7 @@ export class LCDQueryClient {
194
194
  };
195
195
  /* ListGuildInvite Queries a list of GuildInvite items. */
196
196
  getGuildInvite = async (params) => {
197
- const endpoint = `sparkdream/season/v1/guild_invite/${params.guildInvitee}`;
197
+ const endpoint = `sparkdream/season/v1/guild_invite/${params.guildId}/${params.guildInvitee}`;
198
198
  return await this.req.get(endpoint);
199
199
  };
200
200
  /* ListGuildInvite defines the ListGuildInvite RPC. */
@@ -108,7 +108,8 @@ function createBaseQuest() {
108
108
  requiredAchievement: "",
109
109
  prerequisiteQuest: "",
110
110
  questChain: "",
111
- objectives: []
111
+ objectives: [],
112
+ objectivesVersion: BigInt(0)
112
113
  };
113
114
  }
114
115
  /**
@@ -165,6 +166,9 @@ export const Quest = {
165
166
  for (const v of message.objectives) {
166
167
  QuestObjective.encode(v, writer.uint32(122).fork()).ldelim();
167
168
  }
169
+ if (message.objectivesVersion !== BigInt(0)) {
170
+ writer.uint32(128).uint64(message.objectivesVersion);
171
+ }
168
172
  return writer;
169
173
  },
170
174
  decode(input, length) {
@@ -219,6 +223,9 @@ export const Quest = {
219
223
  case 15:
220
224
  message.objectives.push(QuestObjective.decode(reader, reader.uint32()));
221
225
  break;
226
+ case 16:
227
+ message.objectivesVersion = reader.uint64();
228
+ break;
222
229
  default:
223
230
  reader.skipType(tag & 7);
224
231
  break;
@@ -243,6 +250,7 @@ export const Quest = {
243
250
  message.prerequisiteQuest = object.prerequisiteQuest ?? "";
244
251
  message.questChain = object.questChain ?? "";
245
252
  message.objectives = object.objectives?.map(e => QuestObjective.fromPartial(e)) || [];
253
+ message.objectivesVersion = object.objectivesVersion !== undefined && object.objectivesVersion !== null ? BigInt(object.objectivesVersion.toString()) : BigInt(0);
246
254
  return message;
247
255
  },
248
256
  fromAmino(object) {
@@ -290,6 +298,9 @@ export const Quest = {
290
298
  message.questChain = object.quest_chain;
291
299
  }
292
300
  message.objectives = object.objectives?.map(e => QuestObjective.fromAmino(e)) || [];
301
+ if (object.objectives_version !== undefined && object.objectives_version !== null) {
302
+ message.objectivesVersion = BigInt(object.objectives_version);
303
+ }
293
304
  return message;
294
305
  },
295
306
  toAmino(message) {
@@ -314,6 +325,7 @@ export const Quest = {
314
325
  else {
315
326
  obj.objectives = message.objectives;
316
327
  }
328
+ obj.objectives_version = message.objectivesVersion !== BigInt(0) ? message.objectivesVersion?.toString() : undefined;
317
329
  return obj;
318
330
  },
319
331
  fromAminoMsg(object) {
@@ -9,7 +9,8 @@ function createBaseSeason() {
9
9
  status: 0,
10
10
  extensionsCount: BigInt(0),
11
11
  totalExtensionEpochs: BigInt(0),
12
- originalEndBlock: BigInt(0)
12
+ originalEndBlock: BigInt(0),
13
+ startTime: BigInt(0)
13
14
  };
14
15
  }
15
16
  /**
@@ -48,6 +49,9 @@ export const Season = {
48
49
  if (message.originalEndBlock !== BigInt(0)) {
49
50
  writer.uint32(72).int64(message.originalEndBlock);
50
51
  }
52
+ if (message.startTime !== BigInt(0)) {
53
+ writer.uint32(80).int64(message.startTime);
54
+ }
51
55
  return writer;
52
56
  },
53
57
  decode(input, length) {
@@ -84,6 +88,9 @@ export const Season = {
84
88
  case 9:
85
89
  message.originalEndBlock = reader.int64();
86
90
  break;
91
+ case 10:
92
+ message.startTime = reader.int64();
93
+ break;
87
94
  default:
88
95
  reader.skipType(tag & 7);
89
96
  break;
@@ -102,6 +109,7 @@ export const Season = {
102
109
  message.extensionsCount = object.extensionsCount !== undefined && object.extensionsCount !== null ? BigInt(object.extensionsCount.toString()) : BigInt(0);
103
110
  message.totalExtensionEpochs = object.totalExtensionEpochs !== undefined && object.totalExtensionEpochs !== null ? BigInt(object.totalExtensionEpochs.toString()) : BigInt(0);
104
111
  message.originalEndBlock = object.originalEndBlock !== undefined && object.originalEndBlock !== null ? BigInt(object.originalEndBlock.toString()) : BigInt(0);
112
+ message.startTime = object.startTime !== undefined && object.startTime !== null ? BigInt(object.startTime.toString()) : BigInt(0);
105
113
  return message;
106
114
  },
107
115
  fromAmino(object) {
@@ -133,6 +141,9 @@ export const Season = {
133
141
  if (object.original_end_block !== undefined && object.original_end_block !== null) {
134
142
  message.originalEndBlock = BigInt(object.original_end_block);
135
143
  }
144
+ if (object.start_time !== undefined && object.start_time !== null) {
145
+ message.startTime = BigInt(object.start_time);
146
+ }
136
147
  return message;
137
148
  },
138
149
  toAmino(message) {
@@ -146,6 +157,7 @@ export const Season = {
146
157
  obj.extensions_count = message.extensionsCount !== BigInt(0) ? message.extensionsCount?.toString() : undefined;
147
158
  obj.total_extension_epochs = message.totalExtensionEpochs !== BigInt(0) ? message.totalExtensionEpochs?.toString() : undefined;
148
159
  obj.original_end_block = message.originalEndBlock !== BigInt(0) ? message.originalEndBlock?.toString() : undefined;
160
+ obj.start_time = message.startTime !== BigInt(0) ? message.startTime?.toString() : undefined;
149
161
  return obj;
150
162
  },
151
163
  fromAminoMsg(object) {
@@ -0,0 +1,121 @@
1
+ //@ts-nocheck
2
+ import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ function createBaseSeasonStatsCounters() {
4
+ return {
5
+ season: BigInt(0),
6
+ totalXpEarned: BigInt(0),
7
+ activeMembers: BigInt(0),
8
+ initiativesCompleted: BigInt(0),
9
+ questsCompleted: BigInt(0)
10
+ };
11
+ }
12
+ /**
13
+ * SeasonStatsCounters holds the running aggregates of one season, updated
14
+ * where the events happen so the SeasonStats query reads them instead of
15
+ * scanning every profile and quest (SEA-35).
16
+ * @name SeasonStatsCounters
17
+ * @package sparkdream.season.v1
18
+ * @see proto type: sparkdream.season.v1.SeasonStatsCounters
19
+ */
20
+ export const SeasonStatsCounters = {
21
+ typeUrl: "/sparkdream.season.v1.SeasonStatsCounters",
22
+ encode(message, writer = BinaryWriter.create()) {
23
+ if (message.season !== BigInt(0)) {
24
+ writer.uint32(8).uint64(message.season);
25
+ }
26
+ if (message.totalXpEarned !== BigInt(0)) {
27
+ writer.uint32(16).uint64(message.totalXpEarned);
28
+ }
29
+ if (message.activeMembers !== BigInt(0)) {
30
+ writer.uint32(24).uint64(message.activeMembers);
31
+ }
32
+ if (message.initiativesCompleted !== BigInt(0)) {
33
+ writer.uint32(32).uint64(message.initiativesCompleted);
34
+ }
35
+ if (message.questsCompleted !== BigInt(0)) {
36
+ writer.uint32(40).uint64(message.questsCompleted);
37
+ }
38
+ return writer;
39
+ },
40
+ decode(input, length) {
41
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
42
+ let end = length === undefined ? reader.len : reader.pos + length;
43
+ const message = createBaseSeasonStatsCounters();
44
+ while (reader.pos < end) {
45
+ const tag = reader.uint32();
46
+ switch (tag >>> 3) {
47
+ case 1:
48
+ message.season = reader.uint64();
49
+ break;
50
+ case 2:
51
+ message.totalXpEarned = reader.uint64();
52
+ break;
53
+ case 3:
54
+ message.activeMembers = reader.uint64();
55
+ break;
56
+ case 4:
57
+ message.initiativesCompleted = reader.uint64();
58
+ break;
59
+ case 5:
60
+ message.questsCompleted = reader.uint64();
61
+ break;
62
+ default:
63
+ reader.skipType(tag & 7);
64
+ break;
65
+ }
66
+ }
67
+ return message;
68
+ },
69
+ fromPartial(object) {
70
+ const message = createBaseSeasonStatsCounters();
71
+ message.season = object.season !== undefined && object.season !== null ? BigInt(object.season.toString()) : BigInt(0);
72
+ message.totalXpEarned = object.totalXpEarned !== undefined && object.totalXpEarned !== null ? BigInt(object.totalXpEarned.toString()) : BigInt(0);
73
+ message.activeMembers = object.activeMembers !== undefined && object.activeMembers !== null ? BigInt(object.activeMembers.toString()) : BigInt(0);
74
+ message.initiativesCompleted = object.initiativesCompleted !== undefined && object.initiativesCompleted !== null ? BigInt(object.initiativesCompleted.toString()) : BigInt(0);
75
+ message.questsCompleted = object.questsCompleted !== undefined && object.questsCompleted !== null ? BigInt(object.questsCompleted.toString()) : BigInt(0);
76
+ return message;
77
+ },
78
+ fromAmino(object) {
79
+ const message = createBaseSeasonStatsCounters();
80
+ if (object.season !== undefined && object.season !== null) {
81
+ message.season = BigInt(object.season);
82
+ }
83
+ if (object.total_xp_earned !== undefined && object.total_xp_earned !== null) {
84
+ message.totalXpEarned = BigInt(object.total_xp_earned);
85
+ }
86
+ if (object.active_members !== undefined && object.active_members !== null) {
87
+ message.activeMembers = BigInt(object.active_members);
88
+ }
89
+ if (object.initiatives_completed !== undefined && object.initiatives_completed !== null) {
90
+ message.initiativesCompleted = BigInt(object.initiatives_completed);
91
+ }
92
+ if (object.quests_completed !== undefined && object.quests_completed !== null) {
93
+ message.questsCompleted = BigInt(object.quests_completed);
94
+ }
95
+ return message;
96
+ },
97
+ toAmino(message) {
98
+ const obj = {};
99
+ obj.season = message.season !== BigInt(0) ? message.season?.toString() : undefined;
100
+ obj.total_xp_earned = message.totalXpEarned !== BigInt(0) ? message.totalXpEarned?.toString() : undefined;
101
+ obj.active_members = message.activeMembers !== BigInt(0) ? message.activeMembers?.toString() : undefined;
102
+ obj.initiatives_completed = message.initiativesCompleted !== BigInt(0) ? message.initiativesCompleted?.toString() : undefined;
103
+ obj.quests_completed = message.questsCompleted !== BigInt(0) ? message.questsCompleted?.toString() : undefined;
104
+ return obj;
105
+ },
106
+ fromAminoMsg(object) {
107
+ return SeasonStatsCounters.fromAmino(object.value);
108
+ },
109
+ fromProtoMsg(message) {
110
+ return SeasonStatsCounters.decode(message.value);
111
+ },
112
+ toProto(message) {
113
+ return SeasonStatsCounters.encode(message).finish();
114
+ },
115
+ toProtoMsg(message) {
116
+ return {
117
+ typeUrl: "/sparkdream.season.v1.SeasonStatsCounters",
118
+ value: SeasonStatsCounters.encode(message).finish()
119
+ };
120
+ }
121
+ };
@@ -104,7 +104,10 @@ function createBaseSeasonTitleEligibility() {
104
104
  };
105
105
  }
106
106
  /**
107
- * SeasonTitleEligibility tracks title grants for a season.
107
+ * SeasonTitleEligibility tracks the ranked (TOP_XP) title grants for a
108
+ * season. It is built incrementally across the SNAPSHOT batches and holds at
109
+ * most the title's threshold (capped) members per grant; threshold titles are
110
+ * recorded per member on MemberSeasonSnapshot.eligible_title_ids.
108
111
  * @name SeasonTitleEligibility
109
112
  * @package sparkdream.season.v1
110
113
  * @see proto type: sparkdream.season.v1.SeasonTitleEligibility
@@ -9,7 +9,9 @@ import { ReporterRateLimit } from "./reporter_rate_limit";
9
9
  import { RefileCooldown } from "./refile_cooldown";
10
10
  import { Tier1LastSlash } from "./tier1_last_slash";
11
11
  import { Checkpoint } from "./checkpoint";
12
+ import { SystemReportRateLimit } from "./system_report_rate_limit";
12
13
  import { BinaryReader, BinaryWriter } from "../../../binary";
14
+ import { bytesFromBase64, base64FromBytes } from "../../../helpers";
13
15
  function createBaseGenesisState() {
14
16
  return {
15
17
  params: Params.fromPartial({}),
@@ -24,7 +26,9 @@ function createBaseGenesisState() {
24
26
  tier1LastSlash: [],
25
27
  nextReportId: BigInt(0),
26
28
  nextEscrowId: BigInt(0),
27
- checkpoints: []
29
+ checkpoints: [],
30
+ systemReportDedup: [],
31
+ systemReportRateLimits: []
28
32
  };
29
33
  }
30
34
  /**
@@ -76,6 +80,12 @@ export const GenesisState = {
76
80
  for (const v of message.checkpoints) {
77
81
  Checkpoint.encode(v, writer.uint32(106).fork()).ldelim();
78
82
  }
83
+ for (const v of message.systemReportDedup) {
84
+ SystemReportDedupEntry.encode(v, writer.uint32(114).fork()).ldelim();
85
+ }
86
+ for (const v of message.systemReportRateLimits) {
87
+ SystemReportRateLimit.encode(v, writer.uint32(122).fork()).ldelim();
88
+ }
79
89
  return writer;
80
90
  },
81
91
  decode(input, length) {
@@ -124,6 +134,12 @@ export const GenesisState = {
124
134
  case 13:
125
135
  message.checkpoints.push(Checkpoint.decode(reader, reader.uint32()));
126
136
  break;
137
+ case 14:
138
+ message.systemReportDedup.push(SystemReportDedupEntry.decode(reader, reader.uint32()));
139
+ break;
140
+ case 15:
141
+ message.systemReportRateLimits.push(SystemReportRateLimit.decode(reader, reader.uint32()));
142
+ break;
127
143
  default:
128
144
  reader.skipType(tag & 7);
129
145
  break;
@@ -146,6 +162,8 @@ export const GenesisState = {
146
162
  message.nextReportId = object.nextReportId !== undefined && object.nextReportId !== null ? BigInt(object.nextReportId.toString()) : BigInt(0);
147
163
  message.nextEscrowId = object.nextEscrowId !== undefined && object.nextEscrowId !== null ? BigInt(object.nextEscrowId.toString()) : BigInt(0);
148
164
  message.checkpoints = object.checkpoints?.map(e => Checkpoint.fromPartial(e)) || [];
165
+ message.systemReportDedup = object.systemReportDedup?.map(e => SystemReportDedupEntry.fromPartial(e)) || [];
166
+ message.systemReportRateLimits = object.systemReportRateLimits?.map(e => SystemReportRateLimit.fromPartial(e)) || [];
149
167
  return message;
150
168
  },
151
169
  fromAmino(object) {
@@ -169,6 +187,8 @@ export const GenesisState = {
169
187
  message.nextEscrowId = BigInt(object.next_escrow_id);
170
188
  }
171
189
  message.checkpoints = object.checkpoints?.map(e => Checkpoint.fromAmino(e)) || [];
190
+ message.systemReportDedup = object.system_report_dedup?.map(e => SystemReportDedupEntry.fromAmino(e)) || [];
191
+ message.systemReportRateLimits = object.system_report_rate_limits?.map(e => SystemReportRateLimit.fromAmino(e)) || [];
172
192
  return message;
173
193
  },
174
194
  toAmino(message) {
@@ -236,6 +256,18 @@ export const GenesisState = {
236
256
  else {
237
257
  obj.checkpoints = message.checkpoints;
238
258
  }
259
+ if (message.systemReportDedup) {
260
+ obj.system_report_dedup = message.systemReportDedup.map(e => e ? SystemReportDedupEntry.toAmino(e) : undefined);
261
+ }
262
+ else {
263
+ obj.system_report_dedup = message.systemReportDedup;
264
+ }
265
+ if (message.systemReportRateLimits) {
266
+ obj.system_report_rate_limits = message.systemReportRateLimits.map(e => e ? SystemReportRateLimit.toAmino(e) : undefined);
267
+ }
268
+ else {
269
+ obj.system_report_rate_limits = message.systemReportRateLimits;
270
+ }
239
271
  return obj;
240
272
  },
241
273
  fromAminoMsg(object) {
@@ -254,3 +286,96 @@ export const GenesisState = {
254
286
  };
255
287
  }
256
288
  };
289
+ function createBaseSystemReportDedupEntry() {
290
+ return {
291
+ callerModule: "",
292
+ dedupeKey: new Uint8Array(),
293
+ reportId: BigInt(0)
294
+ };
295
+ }
296
+ /**
297
+ * SystemReportDedupEntry is one SystemReportDedup map entry.
298
+ * @name SystemReportDedupEntry
299
+ * @package sparkdream.service.v1
300
+ * @see proto type: sparkdream.service.v1.SystemReportDedupEntry
301
+ */
302
+ export const SystemReportDedupEntry = {
303
+ typeUrl: "/sparkdream.service.v1.SystemReportDedupEntry",
304
+ encode(message, writer = BinaryWriter.create()) {
305
+ if (message.callerModule !== "") {
306
+ writer.uint32(10).string(message.callerModule);
307
+ }
308
+ if (message.dedupeKey.length !== 0) {
309
+ writer.uint32(18).bytes(message.dedupeKey);
310
+ }
311
+ if (message.reportId !== BigInt(0)) {
312
+ writer.uint32(24).uint64(message.reportId);
313
+ }
314
+ return writer;
315
+ },
316
+ decode(input, length) {
317
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
318
+ let end = length === undefined ? reader.len : reader.pos + length;
319
+ const message = createBaseSystemReportDedupEntry();
320
+ while (reader.pos < end) {
321
+ const tag = reader.uint32();
322
+ switch (tag >>> 3) {
323
+ case 1:
324
+ message.callerModule = reader.string();
325
+ break;
326
+ case 2:
327
+ message.dedupeKey = reader.bytes();
328
+ break;
329
+ case 3:
330
+ message.reportId = reader.uint64();
331
+ break;
332
+ default:
333
+ reader.skipType(tag & 7);
334
+ break;
335
+ }
336
+ }
337
+ return message;
338
+ },
339
+ fromPartial(object) {
340
+ const message = createBaseSystemReportDedupEntry();
341
+ message.callerModule = object.callerModule ?? "";
342
+ message.dedupeKey = object.dedupeKey ?? new Uint8Array();
343
+ message.reportId = object.reportId !== undefined && object.reportId !== null ? BigInt(object.reportId.toString()) : BigInt(0);
344
+ return message;
345
+ },
346
+ fromAmino(object) {
347
+ const message = createBaseSystemReportDedupEntry();
348
+ if (object.caller_module !== undefined && object.caller_module !== null) {
349
+ message.callerModule = object.caller_module;
350
+ }
351
+ if (object.dedupe_key !== undefined && object.dedupe_key !== null) {
352
+ message.dedupeKey = bytesFromBase64(object.dedupe_key);
353
+ }
354
+ if (object.report_id !== undefined && object.report_id !== null) {
355
+ message.reportId = BigInt(object.report_id);
356
+ }
357
+ return message;
358
+ },
359
+ toAmino(message) {
360
+ const obj = {};
361
+ obj.caller_module = message.callerModule === "" ? undefined : message.callerModule;
362
+ obj.dedupe_key = message.dedupeKey ? base64FromBytes(message.dedupeKey) : undefined;
363
+ obj.report_id = message.reportId !== BigInt(0) ? message.reportId?.toString() : undefined;
364
+ return obj;
365
+ },
366
+ fromAminoMsg(object) {
367
+ return SystemReportDedupEntry.fromAmino(object.value);
368
+ },
369
+ fromProtoMsg(message) {
370
+ return SystemReportDedupEntry.decode(message.value);
371
+ },
372
+ toProto(message) {
373
+ return SystemReportDedupEntry.encode(message).finish();
374
+ },
375
+ toProtoMsg(message) {
376
+ return {
377
+ typeUrl: "/sparkdream.service.v1.SystemReportDedupEntry",
378
+ value: SystemReportDedupEntry.encode(message).finish()
379
+ };
380
+ }
381
+ };