@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.
- package/akash/bundle.d.ts +134 -134
- package/akash/bundle.js +150 -150
- package/amino-schema.d.ts +94 -0
- package/amino-schema.js +1 -1
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/amino-schema.js +1 -1
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/artifact/v1/types.js +25 -1
- package/esm/sparkdream/blog/v1/genesis.js +97 -1
- package/esm/sparkdream/bundle.js +447 -439
- package/esm/sparkdream/collect/v1/genesis.js +308 -3
- package/esm/sparkdream/collect/v1/tx.js +170 -0
- package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +10 -1
- package/esm/sparkdream/collect/v1/types.js +51 -3
- package/esm/sparkdream/commons/v1/genesis.js +756 -27
- package/esm/sparkdream/commons/v1/group.js +130 -2
- package/esm/sparkdream/commons/v1/poll.js +281 -0
- package/esm/sparkdream/commons/v1/poll_vote.js +107 -0
- package/esm/sparkdream/commons/v1/query.js +759 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +46 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +49 -1
- package/esm/sparkdream/commons/v1/tx.js +730 -4
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +25 -1
- package/esm/sparkdream/commons/v1/voter_tree.js +208 -0
- package/esm/sparkdream/federation/v1/genesis.js +212 -2
- package/esm/sparkdream/federation/v1/tx.js +365 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +38 -2
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +14 -1
- package/esm/sparkdream/federation/v1/types.js +194 -2
- package/esm/sparkdream/forum/v1/archive_metadata.js +13 -1
- package/esm/sparkdream/forum/v1/genesis.js +428 -1
- package/esm/sparkdream/forum/v1/params.js +182 -254
- package/esm/sparkdream/forum/v1/query.js +112 -7
- package/esm/sparkdream/forum/v1/user_reaction_limit.js +62 -1
- package/esm/sparkdream/futarchy/v1/market.js +37 -1
- package/esm/sparkdream/futarchy/v1/tx.js +13 -1
- package/esm/sparkdream/name/v1/dispute.js +13 -1
- package/esm/sparkdream/rep/v1/genesis.js +272 -2
- package/esm/sparkdream/rep/v1/initiative_review.js +13 -1
- package/esm/sparkdream/rep/v1/invitation.js +25 -1
- package/esm/sparkdream/rep/v1/member_report.js +335 -1
- package/esm/sparkdream/rep/v1/migration.js +27 -2
- package/esm/sparkdream/rep/v1/params.js +13 -1
- package/esm/sparkdream/rep/v1/stake.js +10 -0
- package/esm/sparkdream/rep/v1/tx.js +372 -14
- package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -2
- package/esm/sparkdream/reveal/v1/types.js +9 -21
- package/esm/sparkdream/season/v1/display_name_moderation.js +40 -1
- package/esm/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
- package/esm/sparkdream/season/v1/genesis.js +125 -1
- package/esm/sparkdream/season/v1/guild_invite.js +13 -1
- package/esm/sparkdream/season/v1/guild_membership.js +13 -1
- package/esm/sparkdream/season/v1/member_profile.js +13 -1
- package/esm/sparkdream/season/v1/member_quest_progress.js +13 -1
- package/esm/sparkdream/season/v1/member_season_snapshot.js +16 -1
- package/esm/sparkdream/season/v1/nomination.js +37 -1
- package/esm/sparkdream/season/v1/query.js +26 -35
- package/esm/sparkdream/season/v1/query.lcd.js +1 -1
- package/esm/sparkdream/season/v1/quest.js +13 -1
- package/esm/sparkdream/season/v1/season.js +13 -1
- package/esm/sparkdream/season/v1/season_stats_counters.js +121 -0
- package/esm/sparkdream/season/v1/season_title_eligibility.js +4 -1
- package/esm/sparkdream/service/v1/genesis.js +126 -1
- package/esm/sparkdream/service/v1/refile_cooldown.js +20 -7
- package/esm/sparkdream/session/v1/genesis.js +303 -1
- package/esm/sparkdream/session/v1/params.js +24 -0
- package/esm/sparkdream/shield/v1/genesis.js +56 -2
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +202 -1
- package/esm/sparkdream/vault/v1/genesis.js +25 -1
- package/esm/sparkdream/vault/v1/query.js +15 -2
- package/esm/sparkdream/vault/v1/query.lcd.js +3 -0
- package/esm/sparkdream/vault/v1/tx.js +301 -0
- package/esm/sparkdream/vault/v1/tx.registry.js +38 -2
- package/esm/sparkdream/vault/v1/tx.rpc.msg.js +13 -1
- package/esm/sparkdream/vault/v1/vault_signer.js +15 -2
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/package.json +1 -1
- package/sparkdream/artifact/v1/types.d.ts +14 -0
- package/sparkdream/artifact/v1/types.js +25 -1
- package/sparkdream/blog/v1/genesis.d.ts +60 -0
- package/sparkdream/blog/v1/genesis.js +98 -2
- package/sparkdream/bundle.d.ts +17133 -16171
- package/sparkdream/bundle.js +447 -439
- package/sparkdream/collect/v1/genesis.d.ts +186 -0
- package/sparkdream/collect/v1/genesis.js +309 -4
- package/sparkdream/collect/v1/tx.d.ts +100 -0
- package/sparkdream/collect/v1/tx.js +171 -1
- package/sparkdream/collect/v1/tx.registry.d.ts +13 -1
- package/sparkdream/collect/v1/tx.registry.js +19 -1
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/collect/v1/tx.rpc.msg.js +9 -0
- package/sparkdream/collect/v1/types.d.ts +52 -0
- package/sparkdream/collect/v1/types.js +51 -3
- package/sparkdream/commons/v1/genesis.d.ts +443 -22
- package/sparkdream/commons/v1/genesis.js +756 -27
- package/sparkdream/commons/v1/group.d.ts +75 -0
- package/sparkdream/commons/v1/group.js +133 -3
- package/sparkdream/commons/v1/poll.d.ts +135 -0
- package/sparkdream/commons/v1/poll.js +286 -0
- package/sparkdream/commons/v1/poll_vote.d.ts +58 -0
- package/sparkdream/commons/v1/poll_vote.js +110 -0
- package/sparkdream/commons/v1/query.d.ts +465 -0
- package/sparkdream/commons/v1/query.js +760 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +6 -1
- package/sparkdream/commons/v1/query.lcd.js +46 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +30 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +48 -0
- package/sparkdream/commons/v1/tx.d.ts +475 -1
- package/sparkdream/commons/v1/tx.js +731 -4
- package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
- package/sparkdream/commons/v1/tx.registry.js +73 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +13 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +24 -0
- package/sparkdream/commons/v1/voter_tree.d.ts +132 -0
- package/sparkdream/commons/v1/voter_tree.js +211 -0
- package/sparkdream/federation/v1/genesis.d.ts +136 -1
- package/sparkdream/federation/v1/genesis.js +212 -2
- package/sparkdream/federation/v1/tx.d.ts +235 -0
- package/sparkdream/federation/v1/tx.js +367 -1
- package/sparkdream/federation/v1/tx.registry.d.ts +25 -1
- package/sparkdream/federation/v1/tx.registry.js +37 -1
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/federation/v1/tx.rpc.msg.js +13 -0
- package/sparkdream/federation/v1/types.d.ts +166 -0
- package/sparkdream/federation/v1/types.js +197 -3
- package/sparkdream/forum/v1/archive_metadata.d.ts +12 -0
- package/sparkdream/forum/v1/archive_metadata.js +13 -1
- package/sparkdream/forum/v1/genesis.d.ts +256 -0
- package/sparkdream/forum/v1/genesis.js +429 -2
- package/sparkdream/forum/v1/params.d.ts +0 -30
- package/sparkdream/forum/v1/params.js +182 -254
- package/sparkdream/forum/v1/query.d.ts +70 -0
- package/sparkdream/forum/v1/query.js +112 -7
- package/sparkdream/forum/v1/user_reaction_limit.d.ts +25 -0
- package/sparkdream/forum/v1/user_reaction_limit.js +65 -2
- package/sparkdream/futarchy/v1/market.d.ts +32 -0
- package/sparkdream/futarchy/v1/market.js +37 -1
- package/sparkdream/futarchy/v1/tx.d.ts +10 -0
- package/sparkdream/futarchy/v1/tx.js +13 -1
- package/sparkdream/name/v1/dispute.d.ts +14 -0
- package/sparkdream/name/v1/dispute.js +13 -1
- package/sparkdream/rep/v1/genesis.d.ts +151 -1
- package/sparkdream/rep/v1/genesis.js +272 -2
- package/sparkdream/rep/v1/initiative_review.d.ts +14 -0
- package/sparkdream/rep/v1/initiative_review.js +13 -1
- package/sparkdream/rep/v1/invitation.d.ts +32 -0
- package/sparkdream/rep/v1/invitation.js +25 -1
- package/sparkdream/rep/v1/member_report.d.ts +215 -0
- package/sparkdream/rep/v1/member_report.js +336 -2
- package/sparkdream/rep/v1/migration.d.ts +34 -1
- package/sparkdream/rep/v1/migration.js +27 -2
- package/sparkdream/rep/v1/params.d.ts +18 -0
- package/sparkdream/rep/v1/params.js +13 -1
- package/sparkdream/rep/v1/stake.d.ts +5 -0
- package/sparkdream/rep/v1/stake.js +10 -0
- package/sparkdream/rep/v1/tx.d.ts +340 -39
- package/sparkdream/rep/v1/tx.js +375 -17
- package/sparkdream/rep/v1/tx.registry.d.ts +25 -1
- package/sparkdream/rep/v1/tx.registry.js +37 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +12 -2
- package/sparkdream/rep/v1/tx.rpc.msg.js +15 -1
- package/sparkdream/reveal/v1/types.d.ts +0 -8
- package/sparkdream/reveal/v1/types.js +9 -21
- package/sparkdream/rpc.query.d.ts +5 -0
- package/sparkdream/season/v1/display_name_moderation.d.ts +28 -0
- package/sparkdream/season/v1/display_name_moderation.js +40 -1
- package/sparkdream/season/v1/epoch_xp_tracker.d.ts +10 -0
- package/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
- package/sparkdream/season/v1/genesis.d.ts +75 -0
- package/sparkdream/season/v1/genesis.js +126 -2
- package/sparkdream/season/v1/guild_invite.d.ts +10 -0
- package/sparkdream/season/v1/guild_invite.js +13 -1
- package/sparkdream/season/v1/guild_membership.d.ts +12 -0
- package/sparkdream/season/v1/guild_membership.js +13 -1
- package/sparkdream/season/v1/member_profile.d.ts +12 -0
- package/sparkdream/season/v1/member_profile.js +13 -1
- package/sparkdream/season/v1/member_quest_progress.d.ts +8 -0
- package/sparkdream/season/v1/member_quest_progress.js +13 -1
- package/sparkdream/season/v1/member_season_snapshot.d.ts +14 -0
- package/sparkdream/season/v1/member_season_snapshot.js +16 -1
- package/sparkdream/season/v1/nomination.d.ts +32 -0
- package/sparkdream/season/v1/nomination.js +37 -1
- package/sparkdream/season/v1/query.d.ts +10 -6
- package/sparkdream/season/v1/query.js +26 -35
- package/sparkdream/season/v1/query.lcd.js +1 -1
- package/sparkdream/season/v1/quest.d.ts +12 -0
- package/sparkdream/season/v1/quest.js +13 -1
- package/sparkdream/season/v1/season.d.ts +12 -0
- package/sparkdream/season/v1/season.js +13 -1
- package/sparkdream/season/v1/season_stats_counters.d.ts +86 -0
- package/sparkdream/season/v1/season_stats_counters.js +124 -0
- package/sparkdream/season/v1/season_title_eligibility.d.ts +12 -3
- package/sparkdream/season/v1/season_title_eligibility.js +4 -1
- package/sparkdream/service/v1/genesis.d.ts +71 -0
- package/sparkdream/service/v1/genesis.js +127 -2
- package/sparkdream/service/v1/refile_cooldown.d.ts +35 -22
- package/sparkdream/service/v1/refile_cooldown.js +20 -7
- package/sparkdream/session/v1/genesis.d.ts +190 -0
- package/sparkdream/session/v1/genesis.js +304 -2
- package/sparkdream/session/v1/params.d.ts +18 -0
- package/sparkdream/session/v1/params.js +24 -0
- package/sparkdream/shield/v1/genesis.d.ts +37 -1
- package/sparkdream/shield/v1/genesis.js +55 -1
- package/sparkdream/shield/v1/params.d.ts +26 -2
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/types.d.ts +122 -0
- package/sparkdream/shield/v1/types.js +203 -2
- package/sparkdream/vault/v1/genesis.d.ts +14 -0
- package/sparkdream/vault/v1/genesis.js +25 -1
- package/sparkdream/vault/v1/query.d.ts +16 -3
- package/sparkdream/vault/v1/query.js +15 -2
- package/sparkdream/vault/v1/query.lcd.js +3 -0
- package/sparkdream/vault/v1/tx.d.ts +219 -0
- package/sparkdream/vault/v1/tx.js +302 -1
- package/sparkdream/vault/v1/tx.registry.d.ts +25 -1
- package/sparkdream/vault/v1/tx.registry.js +37 -1
- package/sparkdream/vault/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/vault/v1/tx.rpc.msg.js +12 -0
- package/sparkdream/vault/v1/vault_signer.d.ts +22 -3
- package/sparkdream/vault/v1/vault_signer.js +15 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GenesisState = void 0;
|
|
3
|
+
exports.TransitionAbortCount = exports.GenesisState = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
const params_1 = require("./params");
|
|
6
6
|
const season_1 = require("./season");
|
|
@@ -26,6 +26,7 @@ const display_name_moderation_1 = require("./display_name_moderation");
|
|
|
26
26
|
const display_name_report_stake_1 = require("./display_name_report_stake");
|
|
27
27
|
const display_name_appeal_stake_1 = require("./display_name_appeal_stake");
|
|
28
28
|
const nomination_1 = require("./nomination");
|
|
29
|
+
const season_stats_counters_1 = require("./season_stats_counters");
|
|
29
30
|
const binary_1 = require("../../../binary");
|
|
30
31
|
function createBaseGenesisState() {
|
|
31
32
|
return {
|
|
@@ -56,7 +57,10 @@ function createBaseGenesisState() {
|
|
|
56
57
|
nominationList: [],
|
|
57
58
|
nominationCount: BigInt(0),
|
|
58
59
|
nominationStakeList: [],
|
|
59
|
-
retroRewardRecordList: []
|
|
60
|
+
retroRewardRecordList: [],
|
|
61
|
+
transitionAbortList: [],
|
|
62
|
+
pendingSeasonalPoolInit: BigInt(0),
|
|
63
|
+
seasonStatsCountersList: []
|
|
60
64
|
};
|
|
61
65
|
}
|
|
62
66
|
/**
|
|
@@ -152,6 +156,15 @@ exports.GenesisState = {
|
|
|
152
156
|
for (const v of message.retroRewardRecordList) {
|
|
153
157
|
nomination_1.RetroRewardRecord.encode(v, writer.uint32(226).fork()).ldelim();
|
|
154
158
|
}
|
|
159
|
+
for (const v of message.transitionAbortList) {
|
|
160
|
+
exports.TransitionAbortCount.encode(v, writer.uint32(234).fork()).ldelim();
|
|
161
|
+
}
|
|
162
|
+
if (message.pendingSeasonalPoolInit !== BigInt(0)) {
|
|
163
|
+
writer.uint32(240).uint64(message.pendingSeasonalPoolInit);
|
|
164
|
+
}
|
|
165
|
+
for (const v of message.seasonStatsCountersList) {
|
|
166
|
+
season_stats_counters_1.SeasonStatsCounters.encode(v, writer.uint32(250).fork()).ldelim();
|
|
167
|
+
}
|
|
155
168
|
return writer;
|
|
156
169
|
},
|
|
157
170
|
decode(input, length) {
|
|
@@ -245,6 +258,15 @@ exports.GenesisState = {
|
|
|
245
258
|
case 28:
|
|
246
259
|
message.retroRewardRecordList.push(nomination_1.RetroRewardRecord.decode(reader, reader.uint32()));
|
|
247
260
|
break;
|
|
261
|
+
case 29:
|
|
262
|
+
message.transitionAbortList.push(exports.TransitionAbortCount.decode(reader, reader.uint32()));
|
|
263
|
+
break;
|
|
264
|
+
case 30:
|
|
265
|
+
message.pendingSeasonalPoolInit = reader.uint64();
|
|
266
|
+
break;
|
|
267
|
+
case 31:
|
|
268
|
+
message.seasonStatsCountersList.push(season_stats_counters_1.SeasonStatsCounters.decode(reader, reader.uint32()));
|
|
269
|
+
break;
|
|
248
270
|
default:
|
|
249
271
|
reader.skipType(tag & 7);
|
|
250
272
|
break;
|
|
@@ -282,6 +304,9 @@ exports.GenesisState = {
|
|
|
282
304
|
message.nominationCount = object.nominationCount !== undefined && object.nominationCount !== null ? BigInt(object.nominationCount.toString()) : BigInt(0);
|
|
283
305
|
message.nominationStakeList = object.nominationStakeList?.map(e => nomination_1.NominationStake.fromPartial(e)) || [];
|
|
284
306
|
message.retroRewardRecordList = object.retroRewardRecordList?.map(e => nomination_1.RetroRewardRecord.fromPartial(e)) || [];
|
|
307
|
+
message.transitionAbortList = object.transitionAbortList?.map(e => exports.TransitionAbortCount.fromPartial(e)) || [];
|
|
308
|
+
message.pendingSeasonalPoolInit = object.pendingSeasonalPoolInit !== undefined && object.pendingSeasonalPoolInit !== null ? BigInt(object.pendingSeasonalPoolInit.toString()) : BigInt(0);
|
|
309
|
+
message.seasonStatsCountersList = object.seasonStatsCountersList?.map(e => season_stats_counters_1.SeasonStatsCounters.fromPartial(e)) || [];
|
|
285
310
|
return message;
|
|
286
311
|
},
|
|
287
312
|
fromAmino(object) {
|
|
@@ -328,6 +353,11 @@ exports.GenesisState = {
|
|
|
328
353
|
}
|
|
329
354
|
message.nominationStakeList = object.nomination_stake_list?.map(e => nomination_1.NominationStake.fromAmino(e)) || [];
|
|
330
355
|
message.retroRewardRecordList = object.retro_reward_record_list?.map(e => nomination_1.RetroRewardRecord.fromAmino(e)) || [];
|
|
356
|
+
message.transitionAbortList = object.transition_abort_list?.map(e => exports.TransitionAbortCount.fromAmino(e)) || [];
|
|
357
|
+
if (object.pending_seasonal_pool_init !== undefined && object.pending_seasonal_pool_init !== null) {
|
|
358
|
+
message.pendingSeasonalPoolInit = BigInt(object.pending_seasonal_pool_init);
|
|
359
|
+
}
|
|
360
|
+
message.seasonStatsCountersList = object.season_stats_counters_list?.map(e => season_stats_counters_1.SeasonStatsCounters.fromAmino(e)) || [];
|
|
331
361
|
return message;
|
|
332
362
|
},
|
|
333
363
|
toAmino(message) {
|
|
@@ -465,6 +495,19 @@ exports.GenesisState = {
|
|
|
465
495
|
else {
|
|
466
496
|
obj.retro_reward_record_list = message.retroRewardRecordList;
|
|
467
497
|
}
|
|
498
|
+
if (message.transitionAbortList) {
|
|
499
|
+
obj.transition_abort_list = message.transitionAbortList.map(e => e ? exports.TransitionAbortCount.toAmino(e) : undefined);
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
obj.transition_abort_list = message.transitionAbortList;
|
|
503
|
+
}
|
|
504
|
+
obj.pending_seasonal_pool_init = message.pendingSeasonalPoolInit !== BigInt(0) ? message.pendingSeasonalPoolInit?.toString() : undefined;
|
|
505
|
+
if (message.seasonStatsCountersList) {
|
|
506
|
+
obj.season_stats_counters_list = message.seasonStatsCountersList.map(e => e ? season_stats_counters_1.SeasonStatsCounters.toAmino(e) : undefined);
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
obj.season_stats_counters_list = message.seasonStatsCountersList;
|
|
510
|
+
}
|
|
468
511
|
return obj;
|
|
469
512
|
},
|
|
470
513
|
fromAminoMsg(object) {
|
|
@@ -483,3 +526,84 @@ exports.GenesisState = {
|
|
|
483
526
|
};
|
|
484
527
|
}
|
|
485
528
|
};
|
|
529
|
+
function createBaseTransitionAbortCount() {
|
|
530
|
+
return {
|
|
531
|
+
season: BigInt(0),
|
|
532
|
+
aborts: BigInt(0)
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* TransitionAbortCount is one entry of the per-season abort counter.
|
|
537
|
+
* @name TransitionAbortCount
|
|
538
|
+
* @package sparkdream.season.v1
|
|
539
|
+
* @see proto type: sparkdream.season.v1.TransitionAbortCount
|
|
540
|
+
*/
|
|
541
|
+
exports.TransitionAbortCount = {
|
|
542
|
+
typeUrl: "/sparkdream.season.v1.TransitionAbortCount",
|
|
543
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
544
|
+
if (message.season !== BigInt(0)) {
|
|
545
|
+
writer.uint32(8).uint64(message.season);
|
|
546
|
+
}
|
|
547
|
+
if (message.aborts !== BigInt(0)) {
|
|
548
|
+
writer.uint32(16).uint64(message.aborts);
|
|
549
|
+
}
|
|
550
|
+
return writer;
|
|
551
|
+
},
|
|
552
|
+
decode(input, length) {
|
|
553
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
554
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
555
|
+
const message = createBaseTransitionAbortCount();
|
|
556
|
+
while (reader.pos < end) {
|
|
557
|
+
const tag = reader.uint32();
|
|
558
|
+
switch (tag >>> 3) {
|
|
559
|
+
case 1:
|
|
560
|
+
message.season = reader.uint64();
|
|
561
|
+
break;
|
|
562
|
+
case 2:
|
|
563
|
+
message.aborts = reader.uint64();
|
|
564
|
+
break;
|
|
565
|
+
default:
|
|
566
|
+
reader.skipType(tag & 7);
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
return message;
|
|
571
|
+
},
|
|
572
|
+
fromPartial(object) {
|
|
573
|
+
const message = createBaseTransitionAbortCount();
|
|
574
|
+
message.season = object.season !== undefined && object.season !== null ? BigInt(object.season.toString()) : BigInt(0);
|
|
575
|
+
message.aborts = object.aborts !== undefined && object.aborts !== null ? BigInt(object.aborts.toString()) : BigInt(0);
|
|
576
|
+
return message;
|
|
577
|
+
},
|
|
578
|
+
fromAmino(object) {
|
|
579
|
+
const message = createBaseTransitionAbortCount();
|
|
580
|
+
if (object.season !== undefined && object.season !== null) {
|
|
581
|
+
message.season = BigInt(object.season);
|
|
582
|
+
}
|
|
583
|
+
if (object.aborts !== undefined && object.aborts !== null) {
|
|
584
|
+
message.aborts = BigInt(object.aborts);
|
|
585
|
+
}
|
|
586
|
+
return message;
|
|
587
|
+
},
|
|
588
|
+
toAmino(message) {
|
|
589
|
+
const obj = {};
|
|
590
|
+
obj.season = message.season !== BigInt(0) ? message.season?.toString() : undefined;
|
|
591
|
+
obj.aborts = message.aborts !== BigInt(0) ? message.aborts?.toString() : undefined;
|
|
592
|
+
return obj;
|
|
593
|
+
},
|
|
594
|
+
fromAminoMsg(object) {
|
|
595
|
+
return exports.TransitionAbortCount.fromAmino(object.value);
|
|
596
|
+
},
|
|
597
|
+
fromProtoMsg(message) {
|
|
598
|
+
return exports.TransitionAbortCount.decode(message.value);
|
|
599
|
+
},
|
|
600
|
+
toProto(message) {
|
|
601
|
+
return exports.TransitionAbortCount.encode(message).finish();
|
|
602
|
+
},
|
|
603
|
+
toProtoMsg(message) {
|
|
604
|
+
return {
|
|
605
|
+
typeUrl: "/sparkdream.season.v1.TransitionAbortCount",
|
|
606
|
+
value: exports.TransitionAbortCount.encode(message).finish()
|
|
607
|
+
};
|
|
608
|
+
}
|
|
609
|
+
};
|
|
@@ -11,6 +11,11 @@ export interface GuildInvite {
|
|
|
11
11
|
inviter: string;
|
|
12
12
|
createdEpoch: bigint;
|
|
13
13
|
expiresEpoch: bigint;
|
|
14
|
+
/**
|
|
15
|
+
* Guild the invite is for. Together with guild_invitee it forms the store
|
|
16
|
+
* key "<guild_id>:<guild_invitee>" (SEA-25).
|
|
17
|
+
*/
|
|
18
|
+
guildId: bigint;
|
|
14
19
|
}
|
|
15
20
|
export interface GuildInviteProtoMsg {
|
|
16
21
|
typeUrl: "/sparkdream.season.v1.GuildInvite";
|
|
@@ -27,6 +32,11 @@ export interface GuildInviteAmino {
|
|
|
27
32
|
inviter?: string;
|
|
28
33
|
created_epoch?: string;
|
|
29
34
|
expires_epoch?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Guild the invite is for. Together with guild_invitee it forms the store
|
|
37
|
+
* key "<guild_id>:<guild_invitee>" (SEA-25).
|
|
38
|
+
*/
|
|
39
|
+
guild_id?: string;
|
|
30
40
|
}
|
|
31
41
|
export interface GuildInviteAminoMsg {
|
|
32
42
|
type: "/sparkdream.season.v1.GuildInvite";
|
|
@@ -8,7 +8,8 @@ function createBaseGuildInvite() {
|
|
|
8
8
|
guildInvitee: "",
|
|
9
9
|
inviter: "",
|
|
10
10
|
createdEpoch: BigInt(0),
|
|
11
|
-
expiresEpoch: BigInt(0)
|
|
11
|
+
expiresEpoch: BigInt(0),
|
|
12
|
+
guildId: BigInt(0)
|
|
12
13
|
};
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
@@ -32,6 +33,9 @@ exports.GuildInvite = {
|
|
|
32
33
|
if (message.expiresEpoch !== BigInt(0)) {
|
|
33
34
|
writer.uint32(32).int64(message.expiresEpoch);
|
|
34
35
|
}
|
|
36
|
+
if (message.guildId !== BigInt(0)) {
|
|
37
|
+
writer.uint32(40).uint64(message.guildId);
|
|
38
|
+
}
|
|
35
39
|
return writer;
|
|
36
40
|
},
|
|
37
41
|
decode(input, length) {
|
|
@@ -53,6 +57,9 @@ exports.GuildInvite = {
|
|
|
53
57
|
case 4:
|
|
54
58
|
message.expiresEpoch = reader.int64();
|
|
55
59
|
break;
|
|
60
|
+
case 5:
|
|
61
|
+
message.guildId = reader.uint64();
|
|
62
|
+
break;
|
|
56
63
|
default:
|
|
57
64
|
reader.skipType(tag & 7);
|
|
58
65
|
break;
|
|
@@ -66,6 +73,7 @@ exports.GuildInvite = {
|
|
|
66
73
|
message.inviter = object.inviter ?? "";
|
|
67
74
|
message.createdEpoch = object.createdEpoch !== undefined && object.createdEpoch !== null ? BigInt(object.createdEpoch.toString()) : BigInt(0);
|
|
68
75
|
message.expiresEpoch = object.expiresEpoch !== undefined && object.expiresEpoch !== null ? BigInt(object.expiresEpoch.toString()) : BigInt(0);
|
|
76
|
+
message.guildId = object.guildId !== undefined && object.guildId !== null ? BigInt(object.guildId.toString()) : BigInt(0);
|
|
69
77
|
return message;
|
|
70
78
|
},
|
|
71
79
|
fromAmino(object) {
|
|
@@ -82,6 +90,9 @@ exports.GuildInvite = {
|
|
|
82
90
|
if (object.expires_epoch !== undefined && object.expires_epoch !== null) {
|
|
83
91
|
message.expiresEpoch = BigInt(object.expires_epoch);
|
|
84
92
|
}
|
|
93
|
+
if (object.guild_id !== undefined && object.guild_id !== null) {
|
|
94
|
+
message.guildId = BigInt(object.guild_id);
|
|
95
|
+
}
|
|
85
96
|
return message;
|
|
86
97
|
},
|
|
87
98
|
toAmino(message) {
|
|
@@ -90,6 +101,7 @@ exports.GuildInvite = {
|
|
|
90
101
|
obj.inviter = message.inviter === "" ? undefined : message.inviter;
|
|
91
102
|
obj.created_epoch = message.createdEpoch !== BigInt(0) ? message.createdEpoch?.toString() : undefined;
|
|
92
103
|
obj.expires_epoch = message.expiresEpoch !== BigInt(0) ? message.expiresEpoch?.toString() : undefined;
|
|
104
|
+
obj.guild_id = message.guildId !== BigInt(0) ? message.guildId?.toString() : undefined;
|
|
93
105
|
return obj;
|
|
94
106
|
},
|
|
95
107
|
fromAminoMsg(object) {
|
|
@@ -12,6 +12,12 @@ export interface GuildMembership {
|
|
|
12
12
|
joinedEpoch: bigint;
|
|
13
13
|
leftEpoch: bigint;
|
|
14
14
|
guildsJoinedThisSeason: bigint;
|
|
15
|
+
/**
|
|
16
|
+
* Season number guilds_joined_this_season counts for. A different season
|
|
17
|
+
* reads as zero, so the per-season cap resets without a transition walk
|
|
18
|
+
* (SEA-27).
|
|
19
|
+
*/
|
|
20
|
+
guildsJoinedSeason: bigint;
|
|
15
21
|
}
|
|
16
22
|
export interface GuildMembershipProtoMsg {
|
|
17
23
|
typeUrl: "/sparkdream.season.v1.GuildMembership";
|
|
@@ -29,6 +35,12 @@ export interface GuildMembershipAmino {
|
|
|
29
35
|
joined_epoch?: string;
|
|
30
36
|
left_epoch?: string;
|
|
31
37
|
guilds_joined_this_season?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Season number guilds_joined_this_season counts for. A different season
|
|
40
|
+
* reads as zero, so the per-season cap resets without a transition walk
|
|
41
|
+
* (SEA-27).
|
|
42
|
+
*/
|
|
43
|
+
guilds_joined_season?: string;
|
|
32
44
|
}
|
|
33
45
|
export interface GuildMembershipAminoMsg {
|
|
34
46
|
type: "/sparkdream.season.v1.GuildMembership";
|
|
@@ -9,7 +9,8 @@ function createBaseGuildMembership() {
|
|
|
9
9
|
guildId: BigInt(0),
|
|
10
10
|
joinedEpoch: BigInt(0),
|
|
11
11
|
leftEpoch: BigInt(0),
|
|
12
|
-
guildsJoinedThisSeason: BigInt(0)
|
|
12
|
+
guildsJoinedThisSeason: BigInt(0),
|
|
13
|
+
guildsJoinedSeason: BigInt(0)
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
@@ -36,6 +37,9 @@ exports.GuildMembership = {
|
|
|
36
37
|
if (message.guildsJoinedThisSeason !== BigInt(0)) {
|
|
37
38
|
writer.uint32(40).uint64(message.guildsJoinedThisSeason);
|
|
38
39
|
}
|
|
40
|
+
if (message.guildsJoinedSeason !== BigInt(0)) {
|
|
41
|
+
writer.uint32(48).uint64(message.guildsJoinedSeason);
|
|
42
|
+
}
|
|
39
43
|
return writer;
|
|
40
44
|
},
|
|
41
45
|
decode(input, length) {
|
|
@@ -60,6 +64,9 @@ exports.GuildMembership = {
|
|
|
60
64
|
case 5:
|
|
61
65
|
message.guildsJoinedThisSeason = reader.uint64();
|
|
62
66
|
break;
|
|
67
|
+
case 6:
|
|
68
|
+
message.guildsJoinedSeason = reader.uint64();
|
|
69
|
+
break;
|
|
63
70
|
default:
|
|
64
71
|
reader.skipType(tag & 7);
|
|
65
72
|
break;
|
|
@@ -74,6 +81,7 @@ exports.GuildMembership = {
|
|
|
74
81
|
message.joinedEpoch = object.joinedEpoch !== undefined && object.joinedEpoch !== null ? BigInt(object.joinedEpoch.toString()) : BigInt(0);
|
|
75
82
|
message.leftEpoch = object.leftEpoch !== undefined && object.leftEpoch !== null ? BigInt(object.leftEpoch.toString()) : BigInt(0);
|
|
76
83
|
message.guildsJoinedThisSeason = object.guildsJoinedThisSeason !== undefined && object.guildsJoinedThisSeason !== null ? BigInt(object.guildsJoinedThisSeason.toString()) : BigInt(0);
|
|
84
|
+
message.guildsJoinedSeason = object.guildsJoinedSeason !== undefined && object.guildsJoinedSeason !== null ? BigInt(object.guildsJoinedSeason.toString()) : BigInt(0);
|
|
77
85
|
return message;
|
|
78
86
|
},
|
|
79
87
|
fromAmino(object) {
|
|
@@ -93,6 +101,9 @@ exports.GuildMembership = {
|
|
|
93
101
|
if (object.guilds_joined_this_season !== undefined && object.guilds_joined_this_season !== null) {
|
|
94
102
|
message.guildsJoinedThisSeason = BigInt(object.guilds_joined_this_season);
|
|
95
103
|
}
|
|
104
|
+
if (object.guilds_joined_season !== undefined && object.guilds_joined_season !== null) {
|
|
105
|
+
message.guildsJoinedSeason = BigInt(object.guilds_joined_season);
|
|
106
|
+
}
|
|
96
107
|
return message;
|
|
97
108
|
},
|
|
98
109
|
toAmino(message) {
|
|
@@ -102,6 +113,7 @@ exports.GuildMembership = {
|
|
|
102
113
|
obj.joined_epoch = message.joinedEpoch !== BigInt(0) ? message.joinedEpoch?.toString() : undefined;
|
|
103
114
|
obj.left_epoch = message.leftEpoch !== BigInt(0) ? message.leftEpoch?.toString() : undefined;
|
|
104
115
|
obj.guilds_joined_this_season = message.guildsJoinedThisSeason !== BigInt(0) ? message.guildsJoinedThisSeason?.toString() : undefined;
|
|
116
|
+
obj.guilds_joined_season = message.guildsJoinedSeason !== BigInt(0) ? message.guildsJoinedSeason?.toString() : undefined;
|
|
105
117
|
return obj;
|
|
106
118
|
},
|
|
107
119
|
fromAminoMsg(object) {
|
|
@@ -83,6 +83,12 @@ export interface MemberProfile {
|
|
|
83
83
|
* Archived seasonal titles from past seasons
|
|
84
84
|
*/
|
|
85
85
|
archivedTitles: string[];
|
|
86
|
+
/**
|
|
87
|
+
* Season of the member's last completed jury duty (0 = never). A
|
|
88
|
+
* rep/jury retro-PGF nomination needs it to equal the current season
|
|
89
|
+
* (SEA-30).
|
|
90
|
+
*/
|
|
91
|
+
lastJuryDutySeason: bigint;
|
|
86
92
|
}
|
|
87
93
|
export interface MemberProfileProtoMsg {
|
|
88
94
|
typeUrl: "/sparkdream.season.v1.MemberProfile";
|
|
@@ -171,6 +177,12 @@ export interface MemberProfileAmino {
|
|
|
171
177
|
* Archived seasonal titles from past seasons
|
|
172
178
|
*/
|
|
173
179
|
archived_titles?: string[];
|
|
180
|
+
/**
|
|
181
|
+
* Season of the member's last completed jury duty (0 = never). A
|
|
182
|
+
* rep/jury retro-PGF nomination needs it to equal the current season
|
|
183
|
+
* (SEA-30).
|
|
184
|
+
*/
|
|
185
|
+
last_jury_duty_season?: string;
|
|
174
186
|
}
|
|
175
187
|
export interface MemberProfileAminoMsg {
|
|
176
188
|
type: "/sparkdream.season.v1.MemberProfile";
|
|
@@ -23,7 +23,8 @@ function createBaseMemberProfile() {
|
|
|
23
23
|
lastActiveEpoch: BigInt(0),
|
|
24
24
|
unlockedTitles: [],
|
|
25
25
|
achievements: [],
|
|
26
|
-
archivedTitles: []
|
|
26
|
+
archivedTitles: [],
|
|
27
|
+
lastJuryDutySeason: BigInt(0)
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
@@ -92,6 +93,9 @@ exports.MemberProfile = {
|
|
|
92
93
|
for (const v of message.archivedTitles) {
|
|
93
94
|
writer.uint32(154).string(v);
|
|
94
95
|
}
|
|
96
|
+
if (message.lastJuryDutySeason !== BigInt(0)) {
|
|
97
|
+
writer.uint32(160).uint64(message.lastJuryDutySeason);
|
|
98
|
+
}
|
|
95
99
|
return writer;
|
|
96
100
|
},
|
|
97
101
|
decode(input, length) {
|
|
@@ -158,6 +162,9 @@ exports.MemberProfile = {
|
|
|
158
162
|
case 19:
|
|
159
163
|
message.archivedTitles.push(reader.string());
|
|
160
164
|
break;
|
|
165
|
+
case 20:
|
|
166
|
+
message.lastJuryDutySeason = reader.uint64();
|
|
167
|
+
break;
|
|
161
168
|
default:
|
|
162
169
|
reader.skipType(tag & 7);
|
|
163
170
|
break;
|
|
@@ -186,6 +193,7 @@ exports.MemberProfile = {
|
|
|
186
193
|
message.unlockedTitles = object.unlockedTitles?.map(e => e) || [];
|
|
187
194
|
message.achievements = object.achievements?.map(e => e) || [];
|
|
188
195
|
message.archivedTitles = object.archivedTitles?.map(e => e) || [];
|
|
196
|
+
message.lastJuryDutySeason = object.lastJuryDutySeason !== undefined && object.lastJuryDutySeason !== null ? BigInt(object.lastJuryDutySeason.toString()) : BigInt(0);
|
|
189
197
|
return message;
|
|
190
198
|
},
|
|
191
199
|
fromAmino(object) {
|
|
@@ -241,6 +249,9 @@ exports.MemberProfile = {
|
|
|
241
249
|
message.unlockedTitles = object.unlocked_titles?.map(e => e) || [];
|
|
242
250
|
message.achievements = object.achievements?.map(e => e) || [];
|
|
243
251
|
message.archivedTitles = object.archived_titles?.map(e => e) || [];
|
|
252
|
+
if (object.last_jury_duty_season !== undefined && object.last_jury_duty_season !== null) {
|
|
253
|
+
message.lastJuryDutySeason = BigInt(object.last_jury_duty_season);
|
|
254
|
+
}
|
|
244
255
|
return message;
|
|
245
256
|
},
|
|
246
257
|
toAmino(message) {
|
|
@@ -279,6 +290,7 @@ exports.MemberProfile = {
|
|
|
279
290
|
else {
|
|
280
291
|
obj.archived_titles = message.archivedTitles;
|
|
281
292
|
}
|
|
293
|
+
obj.last_jury_duty_season = message.lastJuryDutySeason !== BigInt(0) ? message.lastJuryDutySeason?.toString() : undefined;
|
|
282
294
|
return obj;
|
|
283
295
|
},
|
|
284
296
|
fromAminoMsg(object) {
|
|
@@ -27,6 +27,10 @@ export interface MemberQuestProgress {
|
|
|
27
27
|
* Progress on each objective (parallel array with quest objectives)
|
|
28
28
|
*/
|
|
29
29
|
objectiveProgress: bigint[];
|
|
30
|
+
/**
|
|
31
|
+
* Quest.objectives_version the progress was recorded against (SEA-32).
|
|
32
|
+
*/
|
|
33
|
+
objectivesVersion: bigint;
|
|
30
34
|
}
|
|
31
35
|
export interface MemberQuestProgressProtoMsg {
|
|
32
36
|
typeUrl: "/sparkdream.season.v1.MemberQuestProgress";
|
|
@@ -59,6 +63,10 @@ export interface MemberQuestProgressAmino {
|
|
|
59
63
|
* Progress on each objective (parallel array with quest objectives)
|
|
60
64
|
*/
|
|
61
65
|
objective_progress?: string[];
|
|
66
|
+
/**
|
|
67
|
+
* Quest.objectives_version the progress was recorded against (SEA-32).
|
|
68
|
+
*/
|
|
69
|
+
objectives_version?: string;
|
|
62
70
|
}
|
|
63
71
|
export interface MemberQuestProgressAminoMsg {
|
|
64
72
|
type: "/sparkdream.season.v1.MemberQuestProgress";
|
|
@@ -9,7 +9,8 @@ function createBaseMemberQuestProgress() {
|
|
|
9
9
|
completed: false,
|
|
10
10
|
completedBlock: BigInt(0),
|
|
11
11
|
lastAttemptBlock: BigInt(0),
|
|
12
|
-
objectiveProgress: []
|
|
12
|
+
objectiveProgress: [],
|
|
13
|
+
objectivesVersion: BigInt(0)
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
@@ -38,6 +39,9 @@ exports.MemberQuestProgress = {
|
|
|
38
39
|
writer.uint64(v);
|
|
39
40
|
}
|
|
40
41
|
writer.ldelim();
|
|
42
|
+
if (message.objectivesVersion !== BigInt(0)) {
|
|
43
|
+
writer.uint32(48).uint64(message.objectivesVersion);
|
|
44
|
+
}
|
|
41
45
|
return writer;
|
|
42
46
|
},
|
|
43
47
|
decode(input, length) {
|
|
@@ -70,6 +74,9 @@ exports.MemberQuestProgress = {
|
|
|
70
74
|
message.objectiveProgress.push(reader.uint64());
|
|
71
75
|
}
|
|
72
76
|
break;
|
|
77
|
+
case 6:
|
|
78
|
+
message.objectivesVersion = reader.uint64();
|
|
79
|
+
break;
|
|
73
80
|
default:
|
|
74
81
|
reader.skipType(tag & 7);
|
|
75
82
|
break;
|
|
@@ -84,6 +91,7 @@ exports.MemberQuestProgress = {
|
|
|
84
91
|
message.completedBlock = object.completedBlock !== undefined && object.completedBlock !== null ? BigInt(object.completedBlock.toString()) : BigInt(0);
|
|
85
92
|
message.lastAttemptBlock = object.lastAttemptBlock !== undefined && object.lastAttemptBlock !== null ? BigInt(object.lastAttemptBlock.toString()) : BigInt(0);
|
|
86
93
|
message.objectiveProgress = object.objectiveProgress?.map(e => BigInt(e.toString())) || [];
|
|
94
|
+
message.objectivesVersion = object.objectivesVersion !== undefined && object.objectivesVersion !== null ? BigInt(object.objectivesVersion.toString()) : BigInt(0);
|
|
87
95
|
return message;
|
|
88
96
|
},
|
|
89
97
|
fromAmino(object) {
|
|
@@ -101,6 +109,9 @@ exports.MemberQuestProgress = {
|
|
|
101
109
|
message.lastAttemptBlock = BigInt(object.last_attempt_block);
|
|
102
110
|
}
|
|
103
111
|
message.objectiveProgress = object.objective_progress?.map(e => BigInt(e)) || [];
|
|
112
|
+
if (object.objectives_version !== undefined && object.objectives_version !== null) {
|
|
113
|
+
message.objectivesVersion = BigInt(object.objectives_version);
|
|
114
|
+
}
|
|
104
115
|
return message;
|
|
105
116
|
},
|
|
106
117
|
toAmino(message) {
|
|
@@ -115,6 +126,7 @@ exports.MemberQuestProgress = {
|
|
|
115
126
|
else {
|
|
116
127
|
obj.objective_progress = message.objectiveProgress;
|
|
117
128
|
}
|
|
129
|
+
obj.objectives_version = message.objectivesVersion !== BigInt(0) ? message.objectivesVersion?.toString() : undefined;
|
|
118
130
|
return obj;
|
|
119
131
|
},
|
|
120
132
|
fromAminoMsg(object) {
|
|
@@ -63,6 +63,13 @@ export interface MemberSeasonSnapshot {
|
|
|
63
63
|
* Achievements earned during this season
|
|
64
64
|
*/
|
|
65
65
|
achievementsEarned: string[];
|
|
66
|
+
/**
|
|
67
|
+
* Seasonal title definitions (threshold requirements) this member met
|
|
68
|
+
* when the SNAPSHOT phase evaluated them, before RESET_XP. The TITLES
|
|
69
|
+
* phase grants `s<N>_<title_id>` from this list. TOP_XP titles are
|
|
70
|
+
* ranked across members and live in SeasonTitleEligibility instead.
|
|
71
|
+
*/
|
|
72
|
+
eligibleTitleIds: string[];
|
|
66
73
|
}
|
|
67
74
|
export interface MemberSeasonSnapshotProtoMsg {
|
|
68
75
|
typeUrl: "/sparkdream.season.v1.MemberSeasonSnapshot";
|
|
@@ -105,6 +112,13 @@ export interface MemberSeasonSnapshotAmino {
|
|
|
105
112
|
* Achievements earned during this season
|
|
106
113
|
*/
|
|
107
114
|
achievements_earned?: string[];
|
|
115
|
+
/**
|
|
116
|
+
* Seasonal title definitions (threshold requirements) this member met
|
|
117
|
+
* when the SNAPSHOT phase evaluated them, before RESET_XP. The TITLES
|
|
118
|
+
* phase grants `s<N>_<title_id>` from this list. TOP_XP titles are
|
|
119
|
+
* ranked across members and live in SeasonTitleEligibility instead.
|
|
120
|
+
*/
|
|
121
|
+
eligible_title_ids?: string[];
|
|
108
122
|
}
|
|
109
123
|
export interface MemberSeasonSnapshotAminoMsg {
|
|
110
124
|
type: "/sparkdream.season.v1.MemberSeasonSnapshot";
|
|
@@ -84,7 +84,8 @@ function createBaseMemberSeasonSnapshot() {
|
|
|
84
84
|
initiativesCompleted: BigInt(0),
|
|
85
85
|
xpEarned: BigInt(0),
|
|
86
86
|
seasonLevel: BigInt(0),
|
|
87
|
-
achievementsEarned: []
|
|
87
|
+
achievementsEarned: [],
|
|
88
|
+
eligibleTitleIds: []
|
|
88
89
|
};
|
|
89
90
|
}
|
|
90
91
|
/**
|
|
@@ -120,6 +121,9 @@ exports.MemberSeasonSnapshot = {
|
|
|
120
121
|
for (const v of message.achievementsEarned) {
|
|
121
122
|
writer.uint32(58).string(v);
|
|
122
123
|
}
|
|
124
|
+
for (const v of message.eligibleTitleIds) {
|
|
125
|
+
writer.uint32(66).string(v);
|
|
126
|
+
}
|
|
123
127
|
return writer;
|
|
124
128
|
},
|
|
125
129
|
decode(input, length) {
|
|
@@ -153,6 +157,9 @@ exports.MemberSeasonSnapshot = {
|
|
|
153
157
|
case 7:
|
|
154
158
|
message.achievementsEarned.push(reader.string());
|
|
155
159
|
break;
|
|
160
|
+
case 8:
|
|
161
|
+
message.eligibleTitleIds.push(reader.string());
|
|
162
|
+
break;
|
|
156
163
|
default:
|
|
157
164
|
reader.skipType(tag & 7);
|
|
158
165
|
break;
|
|
@@ -174,6 +181,7 @@ exports.MemberSeasonSnapshot = {
|
|
|
174
181
|
message.xpEarned = object.xpEarned !== undefined && object.xpEarned !== null ? BigInt(object.xpEarned.toString()) : BigInt(0);
|
|
175
182
|
message.seasonLevel = object.seasonLevel !== undefined && object.seasonLevel !== null ? BigInt(object.seasonLevel.toString()) : BigInt(0);
|
|
176
183
|
message.achievementsEarned = object.achievementsEarned?.map(e => e) || [];
|
|
184
|
+
message.eligibleTitleIds = object.eligibleTitleIds?.map(e => e) || [];
|
|
177
185
|
return message;
|
|
178
186
|
},
|
|
179
187
|
fromAmino(object) {
|
|
@@ -200,6 +208,7 @@ exports.MemberSeasonSnapshot = {
|
|
|
200
208
|
message.seasonLevel = BigInt(object.season_level);
|
|
201
209
|
}
|
|
202
210
|
message.achievementsEarned = object.achievements_earned?.map(e => e) || [];
|
|
211
|
+
message.eligibleTitleIds = object.eligible_title_ids?.map(e => e) || [];
|
|
203
212
|
return message;
|
|
204
213
|
},
|
|
205
214
|
toAmino(message) {
|
|
@@ -221,6 +230,12 @@ exports.MemberSeasonSnapshot = {
|
|
|
221
230
|
else {
|
|
222
231
|
obj.achievements_earned = message.achievementsEarned;
|
|
223
232
|
}
|
|
233
|
+
if (message.eligibleTitleIds) {
|
|
234
|
+
obj.eligible_title_ids = message.eligibleTitleIds.map(e => e);
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
obj.eligible_title_ids = message.eligibleTitleIds;
|
|
238
|
+
}
|
|
224
239
|
return obj;
|
|
225
240
|
},
|
|
226
241
|
fromAminoMsg(object) {
|
|
@@ -25,6 +25,22 @@ export interface Nomination {
|
|
|
25
25
|
conviction: string;
|
|
26
26
|
rewardAmount: string;
|
|
27
27
|
rewarded: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Failed payout attempts of a positive reward (SEA-21). A nomination with
|
|
30
|
+
* a positive reward_amount that is neither rewarded nor abandoned is
|
|
31
|
+
* queued for retry.
|
|
32
|
+
*/
|
|
33
|
+
payoutAttempts: number;
|
|
34
|
+
/**
|
|
35
|
+
* Set once the payout retries are exhausted; never paid after that.
|
|
36
|
+
*/
|
|
37
|
+
payoutAbandoned: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Content author resolved at Nominate (SEA-30). StakeNomination refuses
|
|
40
|
+
* stakes by this member, so the ban holds even when the content is later
|
|
41
|
+
* hidden and can no longer be resolved.
|
|
42
|
+
*/
|
|
43
|
+
author: string;
|
|
28
44
|
}
|
|
29
45
|
export interface NominationProtoMsg {
|
|
30
46
|
typeUrl: "/sparkdream.season.v1.Nomination";
|
|
@@ -55,6 +71,22 @@ export interface NominationAmino {
|
|
|
55
71
|
conviction?: string;
|
|
56
72
|
reward_amount?: string;
|
|
57
73
|
rewarded?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Failed payout attempts of a positive reward (SEA-21). A nomination with
|
|
76
|
+
* a positive reward_amount that is neither rewarded nor abandoned is
|
|
77
|
+
* queued for retry.
|
|
78
|
+
*/
|
|
79
|
+
payout_attempts?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Set once the payout retries are exhausted; never paid after that.
|
|
82
|
+
*/
|
|
83
|
+
payout_abandoned?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Content author resolved at Nominate (SEA-30). StakeNomination refuses
|
|
86
|
+
* stakes by this member, so the ban holds even when the content is later
|
|
87
|
+
* hidden and can no longer be resolved.
|
|
88
|
+
*/
|
|
89
|
+
author?: string;
|
|
58
90
|
}
|
|
59
91
|
export interface NominationAminoMsg {
|
|
60
92
|
type: "/sparkdream.season.v1.Nomination";
|