@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,4 +1,5 @@
|
|
|
1
1
|
import { GovActionType, MemberReportStatus } from "./accountability";
|
|
2
|
+
import { MemberStatus, TrustLevel } from "./member";
|
|
2
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
4
|
import { DeepPartial } from "../../../helpers";
|
|
4
5
|
/**
|
|
@@ -25,6 +26,16 @@ export interface MemberReport {
|
|
|
25
26
|
* an averaged share, to prevent cross-signer bond theft.
|
|
26
27
|
*/
|
|
27
28
|
reporterBonds: ReporterBondEntry[];
|
|
29
|
+
/**
|
|
30
|
+
* resolved_action is the action MsgResolveMemberReport applied
|
|
31
|
+
* (UNSPECIFIED = dismissed). Together with resolved_at it opens the
|
|
32
|
+
* member's MsgAppealGovAction filing window.
|
|
33
|
+
*/
|
|
34
|
+
resolvedAction: GovActionType;
|
|
35
|
+
/**
|
|
36
|
+
* resolved_at is the block time of the resolution (0 while open).
|
|
37
|
+
*/
|
|
38
|
+
resolvedAt: bigint;
|
|
28
39
|
}
|
|
29
40
|
export interface MemberReportProtoMsg {
|
|
30
41
|
typeUrl: "/sparkdream.rep.v1.MemberReport";
|
|
@@ -54,6 +65,16 @@ export interface MemberReportAmino {
|
|
|
54
65
|
* an averaged share, to prevent cross-signer bond theft.
|
|
55
66
|
*/
|
|
56
67
|
reporter_bonds?: ReporterBondEntryAmino[];
|
|
68
|
+
/**
|
|
69
|
+
* resolved_action is the action MsgResolveMemberReport applied
|
|
70
|
+
* (UNSPECIFIED = dismissed). Together with resolved_at it opens the
|
|
71
|
+
* member's MsgAppealGovAction filing window.
|
|
72
|
+
*/
|
|
73
|
+
resolved_action?: GovActionType;
|
|
74
|
+
/**
|
|
75
|
+
* resolved_at is the block time of the resolution (0 while open).
|
|
76
|
+
*/
|
|
77
|
+
resolved_at?: string;
|
|
57
78
|
}
|
|
58
79
|
export interface MemberReportAminoMsg {
|
|
59
80
|
type: "/sparkdream.rep.v1.MemberReport";
|
|
@@ -89,6 +110,162 @@ export interface ReporterBondEntryAminoMsg {
|
|
|
89
110
|
type: "/sparkdream.rep.v1.ReporterBondEntry";
|
|
90
111
|
value: ReporterBondEntryAmino;
|
|
91
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* @name MemberActionRestoration_ReputationEntry
|
|
115
|
+
* @package sparkdream.rep.v1
|
|
116
|
+
* @see proto type: sparkdream.rep.v1.undefined
|
|
117
|
+
*/
|
|
118
|
+
export interface MemberActionRestoration_ReputationEntry {
|
|
119
|
+
key: string;
|
|
120
|
+
value: string;
|
|
121
|
+
}
|
|
122
|
+
export interface MemberActionRestoration_ReputationEntryProtoMsg {
|
|
123
|
+
typeUrl: string;
|
|
124
|
+
value: Uint8Array;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @name MemberActionRestoration_ReputationEntryAmino
|
|
128
|
+
* @package sparkdream.rep.v1
|
|
129
|
+
* @see proto type: sparkdream.rep.v1.MemberActionRestoration_ReputationEntry
|
|
130
|
+
*/
|
|
131
|
+
export interface MemberActionRestoration_ReputationEntryAmino {
|
|
132
|
+
key?: string;
|
|
133
|
+
value?: string;
|
|
134
|
+
}
|
|
135
|
+
export interface MemberActionRestoration_ReputationEntryAminoMsg {
|
|
136
|
+
type: string;
|
|
137
|
+
value: MemberActionRestoration_ReputationEntryAmino;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* MemberActionRestoration is what an OVERTURNED member-action appeal needs to
|
|
141
|
+
* undo the action MsgResolveMemberReport applied. Written at resolution, keyed
|
|
142
|
+
* by the member's canonical address (re-keyed by a migration), and deleted when
|
|
143
|
+
* the appeal reaches any terminal outcome or the filing window closes with no
|
|
144
|
+
* appeal, so at most one exists per member and only while the action is
|
|
145
|
+
* appealable.
|
|
146
|
+
* @name MemberActionRestoration
|
|
147
|
+
* @package sparkdream.rep.v1
|
|
148
|
+
* @see proto type: sparkdream.rep.v1.MemberActionRestoration
|
|
149
|
+
*/
|
|
150
|
+
export interface MemberActionRestoration {
|
|
151
|
+
member: string;
|
|
152
|
+
/**
|
|
153
|
+
* action is WARNING, DEMOTION or ZEROING.
|
|
154
|
+
*/
|
|
155
|
+
action: GovActionType;
|
|
156
|
+
/**
|
|
157
|
+
* resolved_at is the block time of the resolution; the filing window closes
|
|
158
|
+
* at resolved_at + DefaultAppealDeadline.
|
|
159
|
+
*/
|
|
160
|
+
resolvedAt: bigint;
|
|
161
|
+
/**
|
|
162
|
+
* season is the season the action was applied in. Reputation restored in a
|
|
163
|
+
* later season goes to the lifetime archive, which the season reset would
|
|
164
|
+
* have moved it to.
|
|
165
|
+
*/
|
|
166
|
+
season: bigint;
|
|
167
|
+
/**
|
|
168
|
+
* warning_id is the MemberWarning a WARNING created.
|
|
169
|
+
*/
|
|
170
|
+
warningId: bigint;
|
|
171
|
+
/**
|
|
172
|
+
* reputation is, for DEMOTION, the reputation the slash took per tag and,
|
|
173
|
+
* for ZEROING, the member's per-tag seasonal reputation before the zeroing.
|
|
174
|
+
*/
|
|
175
|
+
reputation: {
|
|
176
|
+
[key: string]: string;
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* ZEROING only: the member's state before the zeroing, and the zeroed_count
|
|
180
|
+
* the zeroing produced (a later, unrelated zeroing changes it and blocks
|
|
181
|
+
* the restoration).
|
|
182
|
+
*/
|
|
183
|
+
priorStatus: MemberStatus;
|
|
184
|
+
priorTrustLevel: TrustLevel;
|
|
185
|
+
priorInvitationCredits: number;
|
|
186
|
+
/**
|
|
187
|
+
* burned_dream is the liquid DREAM the zeroing burned from the balance.
|
|
188
|
+
* Escrows the zeroing forfeited (challenge stakes, invitation stakes, role
|
|
189
|
+
* and report bonds) are not included and are never restored.
|
|
190
|
+
*/
|
|
191
|
+
burnedDream: string;
|
|
192
|
+
zeroedCount: number;
|
|
193
|
+
/**
|
|
194
|
+
* appealed is set once MsgAppealGovAction files the (single) appeal of the
|
|
195
|
+
* action; appeal_id is that appeal. Its outcome settles the record.
|
|
196
|
+
*/
|
|
197
|
+
appealed: boolean;
|
|
198
|
+
appealId: bigint;
|
|
199
|
+
}
|
|
200
|
+
export interface MemberActionRestorationProtoMsg {
|
|
201
|
+
typeUrl: "/sparkdream.rep.v1.MemberActionRestoration";
|
|
202
|
+
value: Uint8Array;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* MemberActionRestoration is what an OVERTURNED member-action appeal needs to
|
|
206
|
+
* undo the action MsgResolveMemberReport applied. Written at resolution, keyed
|
|
207
|
+
* by the member's canonical address (re-keyed by a migration), and deleted when
|
|
208
|
+
* the appeal reaches any terminal outcome or the filing window closes with no
|
|
209
|
+
* appeal, so at most one exists per member and only while the action is
|
|
210
|
+
* appealable.
|
|
211
|
+
* @name MemberActionRestorationAmino
|
|
212
|
+
* @package sparkdream.rep.v1
|
|
213
|
+
* @see proto type: sparkdream.rep.v1.MemberActionRestoration
|
|
214
|
+
*/
|
|
215
|
+
export interface MemberActionRestorationAmino {
|
|
216
|
+
member?: string;
|
|
217
|
+
/**
|
|
218
|
+
* action is WARNING, DEMOTION or ZEROING.
|
|
219
|
+
*/
|
|
220
|
+
action?: GovActionType;
|
|
221
|
+
/**
|
|
222
|
+
* resolved_at is the block time of the resolution; the filing window closes
|
|
223
|
+
* at resolved_at + DefaultAppealDeadline.
|
|
224
|
+
*/
|
|
225
|
+
resolved_at?: string;
|
|
226
|
+
/**
|
|
227
|
+
* season is the season the action was applied in. Reputation restored in a
|
|
228
|
+
* later season goes to the lifetime archive, which the season reset would
|
|
229
|
+
* have moved it to.
|
|
230
|
+
*/
|
|
231
|
+
season?: string;
|
|
232
|
+
/**
|
|
233
|
+
* warning_id is the MemberWarning a WARNING created.
|
|
234
|
+
*/
|
|
235
|
+
warning_id?: string;
|
|
236
|
+
/**
|
|
237
|
+
* reputation is, for DEMOTION, the reputation the slash took per tag and,
|
|
238
|
+
* for ZEROING, the member's per-tag seasonal reputation before the zeroing.
|
|
239
|
+
*/
|
|
240
|
+
reputation?: {
|
|
241
|
+
[key: string]: string;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* ZEROING only: the member's state before the zeroing, and the zeroed_count
|
|
245
|
+
* the zeroing produced (a later, unrelated zeroing changes it and blocks
|
|
246
|
+
* the restoration).
|
|
247
|
+
*/
|
|
248
|
+
prior_status?: MemberStatus;
|
|
249
|
+
prior_trust_level?: TrustLevel;
|
|
250
|
+
prior_invitation_credits?: number;
|
|
251
|
+
/**
|
|
252
|
+
* burned_dream is the liquid DREAM the zeroing burned from the balance.
|
|
253
|
+
* Escrows the zeroing forfeited (challenge stakes, invitation stakes, role
|
|
254
|
+
* and report bonds) are not included and are never restored.
|
|
255
|
+
*/
|
|
256
|
+
burned_dream?: string;
|
|
257
|
+
zeroed_count?: number;
|
|
258
|
+
/**
|
|
259
|
+
* appealed is set once MsgAppealGovAction files the (single) appeal of the
|
|
260
|
+
* action; appeal_id is that appeal. Its outcome settles the record.
|
|
261
|
+
*/
|
|
262
|
+
appealed?: boolean;
|
|
263
|
+
appeal_id?: string;
|
|
264
|
+
}
|
|
265
|
+
export interface MemberActionRestorationAminoMsg {
|
|
266
|
+
type: "/sparkdream.rep.v1.MemberActionRestoration";
|
|
267
|
+
value: MemberActionRestorationAmino;
|
|
268
|
+
}
|
|
92
269
|
/**
|
|
93
270
|
* MemberReport defines the MemberReport message.
|
|
94
271
|
* @name MemberReport
|
|
@@ -126,3 +303,41 @@ export declare const ReporterBondEntry: {
|
|
|
126
303
|
toProto(message: ReporterBondEntry): Uint8Array;
|
|
127
304
|
toProtoMsg(message: ReporterBondEntry): ReporterBondEntryProtoMsg;
|
|
128
305
|
};
|
|
306
|
+
/**
|
|
307
|
+
* @name MemberActionRestoration_ReputationEntry
|
|
308
|
+
* @package sparkdream.rep.v1
|
|
309
|
+
* @see proto type: sparkdream.rep.v1.undefined
|
|
310
|
+
*/
|
|
311
|
+
export declare const MemberActionRestoration_ReputationEntry: {
|
|
312
|
+
encode(message: MemberActionRestoration_ReputationEntry, writer?: BinaryWriter): BinaryWriter;
|
|
313
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MemberActionRestoration_ReputationEntry;
|
|
314
|
+
fromPartial(object: DeepPartial<MemberActionRestoration_ReputationEntry>): MemberActionRestoration_ReputationEntry;
|
|
315
|
+
fromAmino(object: MemberActionRestoration_ReputationEntryAmino): MemberActionRestoration_ReputationEntry;
|
|
316
|
+
toAmino(message: MemberActionRestoration_ReputationEntry): MemberActionRestoration_ReputationEntryAmino;
|
|
317
|
+
fromAminoMsg(object: MemberActionRestoration_ReputationEntryAminoMsg): MemberActionRestoration_ReputationEntry;
|
|
318
|
+
fromProtoMsg(message: MemberActionRestoration_ReputationEntryProtoMsg): MemberActionRestoration_ReputationEntry;
|
|
319
|
+
toProto(message: MemberActionRestoration_ReputationEntry): Uint8Array;
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* MemberActionRestoration is what an OVERTURNED member-action appeal needs to
|
|
323
|
+
* undo the action MsgResolveMemberReport applied. Written at resolution, keyed
|
|
324
|
+
* by the member's canonical address (re-keyed by a migration), and deleted when
|
|
325
|
+
* the appeal reaches any terminal outcome or the filing window closes with no
|
|
326
|
+
* appeal, so at most one exists per member and only while the action is
|
|
327
|
+
* appealable.
|
|
328
|
+
* @name MemberActionRestoration
|
|
329
|
+
* @package sparkdream.rep.v1
|
|
330
|
+
* @see proto type: sparkdream.rep.v1.MemberActionRestoration
|
|
331
|
+
*/
|
|
332
|
+
export declare const MemberActionRestoration: {
|
|
333
|
+
typeUrl: string;
|
|
334
|
+
encode(message: MemberActionRestoration, writer?: BinaryWriter): BinaryWriter;
|
|
335
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MemberActionRestoration;
|
|
336
|
+
fromPartial(object: DeepPartial<MemberActionRestoration>): MemberActionRestoration;
|
|
337
|
+
fromAmino(object: MemberActionRestorationAmino): MemberActionRestoration;
|
|
338
|
+
toAmino(message: MemberActionRestoration): MemberActionRestorationAmino;
|
|
339
|
+
fromAminoMsg(object: MemberActionRestorationAminoMsg): MemberActionRestoration;
|
|
340
|
+
fromProtoMsg(message: MemberActionRestorationProtoMsg): MemberActionRestoration;
|
|
341
|
+
toProto(message: MemberActionRestoration): Uint8Array;
|
|
342
|
+
toProtoMsg(message: MemberActionRestoration): MemberActionRestorationProtoMsg;
|
|
343
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReporterBondEntry = exports.MemberReport = void 0;
|
|
3
|
+
exports.MemberActionRestoration = exports.MemberActionRestoration_ReputationEntry = exports.ReporterBondEntry = exports.MemberReport = void 0;
|
|
4
4
|
const binary_1 = require("../../../binary");
|
|
5
5
|
function createBaseMemberReport() {
|
|
6
6
|
return {
|
|
@@ -15,7 +15,9 @@ function createBaseMemberReport() {
|
|
|
15
15
|
reporters: [],
|
|
16
16
|
evidencePostIds: [],
|
|
17
17
|
defensePostIds: [],
|
|
18
|
-
reporterBonds: []
|
|
18
|
+
reporterBonds: [],
|
|
19
|
+
resolvedAction: 0,
|
|
20
|
+
resolvedAt: BigInt(0)
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
@@ -67,6 +69,12 @@ exports.MemberReport = {
|
|
|
67
69
|
for (const v of message.reporterBonds) {
|
|
68
70
|
exports.ReporterBondEntry.encode(v, writer.uint32(98).fork()).ldelim();
|
|
69
71
|
}
|
|
72
|
+
if (message.resolvedAction !== 0) {
|
|
73
|
+
writer.uint32(104).int32(message.resolvedAction);
|
|
74
|
+
}
|
|
75
|
+
if (message.resolvedAt !== BigInt(0)) {
|
|
76
|
+
writer.uint32(112).int64(message.resolvedAt);
|
|
77
|
+
}
|
|
70
78
|
return writer;
|
|
71
79
|
},
|
|
72
80
|
decode(input, length) {
|
|
@@ -128,6 +136,12 @@ exports.MemberReport = {
|
|
|
128
136
|
case 12:
|
|
129
137
|
message.reporterBonds.push(exports.ReporterBondEntry.decode(reader, reader.uint32()));
|
|
130
138
|
break;
|
|
139
|
+
case 13:
|
|
140
|
+
message.resolvedAction = reader.int32();
|
|
141
|
+
break;
|
|
142
|
+
case 14:
|
|
143
|
+
message.resolvedAt = reader.int64();
|
|
144
|
+
break;
|
|
131
145
|
default:
|
|
132
146
|
reader.skipType(tag & 7);
|
|
133
147
|
break;
|
|
@@ -149,6 +163,8 @@ exports.MemberReport = {
|
|
|
149
163
|
message.evidencePostIds = object.evidencePostIds?.map(e => BigInt(e.toString())) || [];
|
|
150
164
|
message.defensePostIds = object.defensePostIds?.map(e => BigInt(e.toString())) || [];
|
|
151
165
|
message.reporterBonds = object.reporterBonds?.map(e => exports.ReporterBondEntry.fromPartial(e)) || [];
|
|
166
|
+
message.resolvedAction = object.resolvedAction ?? 0;
|
|
167
|
+
message.resolvedAt = object.resolvedAt !== undefined && object.resolvedAt !== null ? BigInt(object.resolvedAt.toString()) : BigInt(0);
|
|
152
168
|
return message;
|
|
153
169
|
},
|
|
154
170
|
fromAmino(object) {
|
|
@@ -181,6 +197,12 @@ exports.MemberReport = {
|
|
|
181
197
|
message.evidencePostIds = object.evidence_post_ids?.map(e => BigInt(e)) || [];
|
|
182
198
|
message.defensePostIds = object.defense_post_ids?.map(e => BigInt(e)) || [];
|
|
183
199
|
message.reporterBonds = object.reporter_bonds?.map(e => exports.ReporterBondEntry.fromAmino(e)) || [];
|
|
200
|
+
if (object.resolved_action !== undefined && object.resolved_action !== null) {
|
|
201
|
+
message.resolvedAction = object.resolved_action;
|
|
202
|
+
}
|
|
203
|
+
if (object.resolved_at !== undefined && object.resolved_at !== null) {
|
|
204
|
+
message.resolvedAt = BigInt(object.resolved_at);
|
|
205
|
+
}
|
|
184
206
|
return message;
|
|
185
207
|
},
|
|
186
208
|
toAmino(message) {
|
|
@@ -217,6 +239,8 @@ exports.MemberReport = {
|
|
|
217
239
|
else {
|
|
218
240
|
obj.reporter_bonds = message.reporterBonds;
|
|
219
241
|
}
|
|
242
|
+
obj.resolved_action = message.resolvedAction === 0 ? undefined : message.resolvedAction;
|
|
243
|
+
obj.resolved_at = message.resolvedAt !== BigInt(0) ? message.resolvedAt?.toString() : undefined;
|
|
220
244
|
return obj;
|
|
221
245
|
},
|
|
222
246
|
fromAminoMsg(object) {
|
|
@@ -317,3 +341,313 @@ exports.ReporterBondEntry = {
|
|
|
317
341
|
};
|
|
318
342
|
}
|
|
319
343
|
};
|
|
344
|
+
function createBaseMemberActionRestoration_ReputationEntry() {
|
|
345
|
+
return {
|
|
346
|
+
key: "",
|
|
347
|
+
value: ""
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* @name MemberActionRestoration_ReputationEntry
|
|
352
|
+
* @package sparkdream.rep.v1
|
|
353
|
+
* @see proto type: sparkdream.rep.v1.undefined
|
|
354
|
+
*/
|
|
355
|
+
exports.MemberActionRestoration_ReputationEntry = {
|
|
356
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
357
|
+
if (message.key !== "") {
|
|
358
|
+
writer.uint32(10).string(message.key);
|
|
359
|
+
}
|
|
360
|
+
if (message.value !== "") {
|
|
361
|
+
writer.uint32(18).string(message.value);
|
|
362
|
+
}
|
|
363
|
+
return writer;
|
|
364
|
+
},
|
|
365
|
+
decode(input, length) {
|
|
366
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
367
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
368
|
+
const message = createBaseMemberActionRestoration_ReputationEntry();
|
|
369
|
+
while (reader.pos < end) {
|
|
370
|
+
const tag = reader.uint32();
|
|
371
|
+
switch (tag >>> 3) {
|
|
372
|
+
case 1:
|
|
373
|
+
message.key = reader.string();
|
|
374
|
+
break;
|
|
375
|
+
case 2:
|
|
376
|
+
message.value = reader.string();
|
|
377
|
+
break;
|
|
378
|
+
default:
|
|
379
|
+
reader.skipType(tag & 7);
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
return message;
|
|
384
|
+
},
|
|
385
|
+
fromPartial(object) {
|
|
386
|
+
const message = createBaseMemberActionRestoration_ReputationEntry();
|
|
387
|
+
message.key = object.key ?? "";
|
|
388
|
+
message.value = object.value ?? "";
|
|
389
|
+
return message;
|
|
390
|
+
},
|
|
391
|
+
fromAmino(object) {
|
|
392
|
+
const message = createBaseMemberActionRestoration_ReputationEntry();
|
|
393
|
+
if (object.key !== undefined && object.key !== null) {
|
|
394
|
+
message.key = object.key;
|
|
395
|
+
}
|
|
396
|
+
if (object.value !== undefined && object.value !== null) {
|
|
397
|
+
message.value = object.value;
|
|
398
|
+
}
|
|
399
|
+
return message;
|
|
400
|
+
},
|
|
401
|
+
toAmino(message) {
|
|
402
|
+
const obj = {};
|
|
403
|
+
obj.key = message.key === "" ? undefined : message.key;
|
|
404
|
+
obj.value = message.value === "" ? undefined : message.value;
|
|
405
|
+
return obj;
|
|
406
|
+
},
|
|
407
|
+
fromAminoMsg(object) {
|
|
408
|
+
return exports.MemberActionRestoration_ReputationEntry.fromAmino(object.value);
|
|
409
|
+
},
|
|
410
|
+
fromProtoMsg(message) {
|
|
411
|
+
return exports.MemberActionRestoration_ReputationEntry.decode(message.value);
|
|
412
|
+
},
|
|
413
|
+
toProto(message) {
|
|
414
|
+
return exports.MemberActionRestoration_ReputationEntry.encode(message).finish();
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
function createBaseMemberActionRestoration() {
|
|
418
|
+
return {
|
|
419
|
+
member: "",
|
|
420
|
+
action: 0,
|
|
421
|
+
resolvedAt: BigInt(0),
|
|
422
|
+
season: BigInt(0),
|
|
423
|
+
warningId: BigInt(0),
|
|
424
|
+
reputation: {},
|
|
425
|
+
priorStatus: 0,
|
|
426
|
+
priorTrustLevel: 0,
|
|
427
|
+
priorInvitationCredits: 0,
|
|
428
|
+
burnedDream: "",
|
|
429
|
+
zeroedCount: 0,
|
|
430
|
+
appealed: false,
|
|
431
|
+
appealId: BigInt(0)
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* MemberActionRestoration is what an OVERTURNED member-action appeal needs to
|
|
436
|
+
* undo the action MsgResolveMemberReport applied. Written at resolution, keyed
|
|
437
|
+
* by the member's canonical address (re-keyed by a migration), and deleted when
|
|
438
|
+
* the appeal reaches any terminal outcome or the filing window closes with no
|
|
439
|
+
* appeal, so at most one exists per member and only while the action is
|
|
440
|
+
* appealable.
|
|
441
|
+
* @name MemberActionRestoration
|
|
442
|
+
* @package sparkdream.rep.v1
|
|
443
|
+
* @see proto type: sparkdream.rep.v1.MemberActionRestoration
|
|
444
|
+
*/
|
|
445
|
+
exports.MemberActionRestoration = {
|
|
446
|
+
typeUrl: "/sparkdream.rep.v1.MemberActionRestoration",
|
|
447
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
448
|
+
if (message.member !== "") {
|
|
449
|
+
writer.uint32(10).string(message.member);
|
|
450
|
+
}
|
|
451
|
+
if (message.action !== 0) {
|
|
452
|
+
writer.uint32(16).int32(message.action);
|
|
453
|
+
}
|
|
454
|
+
if (message.resolvedAt !== BigInt(0)) {
|
|
455
|
+
writer.uint32(24).int64(message.resolvedAt);
|
|
456
|
+
}
|
|
457
|
+
if (message.season !== BigInt(0)) {
|
|
458
|
+
writer.uint32(32).int64(message.season);
|
|
459
|
+
}
|
|
460
|
+
if (message.warningId !== BigInt(0)) {
|
|
461
|
+
writer.uint32(40).uint64(message.warningId);
|
|
462
|
+
}
|
|
463
|
+
Object.entries(message.reputation).forEach(([key, value]) => {
|
|
464
|
+
exports.MemberActionRestoration_ReputationEntry.encode({
|
|
465
|
+
key: key,
|
|
466
|
+
value
|
|
467
|
+
}, writer.uint32(50).fork()).ldelim();
|
|
468
|
+
});
|
|
469
|
+
if (message.priorStatus !== 0) {
|
|
470
|
+
writer.uint32(56).int32(message.priorStatus);
|
|
471
|
+
}
|
|
472
|
+
if (message.priorTrustLevel !== 0) {
|
|
473
|
+
writer.uint32(64).int32(message.priorTrustLevel);
|
|
474
|
+
}
|
|
475
|
+
if (message.priorInvitationCredits !== 0) {
|
|
476
|
+
writer.uint32(72).uint32(message.priorInvitationCredits);
|
|
477
|
+
}
|
|
478
|
+
if (message.burnedDream !== "") {
|
|
479
|
+
writer.uint32(82).string(message.burnedDream);
|
|
480
|
+
}
|
|
481
|
+
if (message.zeroedCount !== 0) {
|
|
482
|
+
writer.uint32(88).uint32(message.zeroedCount);
|
|
483
|
+
}
|
|
484
|
+
if (message.appealed === true) {
|
|
485
|
+
writer.uint32(96).bool(message.appealed);
|
|
486
|
+
}
|
|
487
|
+
if (message.appealId !== BigInt(0)) {
|
|
488
|
+
writer.uint32(104).uint64(message.appealId);
|
|
489
|
+
}
|
|
490
|
+
return writer;
|
|
491
|
+
},
|
|
492
|
+
decode(input, length) {
|
|
493
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
494
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
495
|
+
const message = createBaseMemberActionRestoration();
|
|
496
|
+
while (reader.pos < end) {
|
|
497
|
+
const tag = reader.uint32();
|
|
498
|
+
switch (tag >>> 3) {
|
|
499
|
+
case 1:
|
|
500
|
+
message.member = reader.string();
|
|
501
|
+
break;
|
|
502
|
+
case 2:
|
|
503
|
+
message.action = reader.int32();
|
|
504
|
+
break;
|
|
505
|
+
case 3:
|
|
506
|
+
message.resolvedAt = reader.int64();
|
|
507
|
+
break;
|
|
508
|
+
case 4:
|
|
509
|
+
message.season = reader.int64();
|
|
510
|
+
break;
|
|
511
|
+
case 5:
|
|
512
|
+
message.warningId = reader.uint64();
|
|
513
|
+
break;
|
|
514
|
+
case 6:
|
|
515
|
+
const entry6 = exports.MemberActionRestoration_ReputationEntry.decode(reader, reader.uint32());
|
|
516
|
+
if (entry6.value !== undefined) {
|
|
517
|
+
message.reputation[entry6.key] = entry6.value;
|
|
518
|
+
}
|
|
519
|
+
break;
|
|
520
|
+
case 7:
|
|
521
|
+
message.priorStatus = reader.int32();
|
|
522
|
+
break;
|
|
523
|
+
case 8:
|
|
524
|
+
message.priorTrustLevel = reader.int32();
|
|
525
|
+
break;
|
|
526
|
+
case 9:
|
|
527
|
+
message.priorInvitationCredits = reader.uint32();
|
|
528
|
+
break;
|
|
529
|
+
case 10:
|
|
530
|
+
message.burnedDream = reader.string();
|
|
531
|
+
break;
|
|
532
|
+
case 11:
|
|
533
|
+
message.zeroedCount = reader.uint32();
|
|
534
|
+
break;
|
|
535
|
+
case 12:
|
|
536
|
+
message.appealed = reader.bool();
|
|
537
|
+
break;
|
|
538
|
+
case 13:
|
|
539
|
+
message.appealId = reader.uint64();
|
|
540
|
+
break;
|
|
541
|
+
default:
|
|
542
|
+
reader.skipType(tag & 7);
|
|
543
|
+
break;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
return message;
|
|
547
|
+
},
|
|
548
|
+
fromPartial(object) {
|
|
549
|
+
const message = createBaseMemberActionRestoration();
|
|
550
|
+
message.member = object.member ?? "";
|
|
551
|
+
message.action = object.action ?? 0;
|
|
552
|
+
message.resolvedAt = object.resolvedAt !== undefined && object.resolvedAt !== null ? BigInt(object.resolvedAt.toString()) : BigInt(0);
|
|
553
|
+
message.season = object.season !== undefined && object.season !== null ? BigInt(object.season.toString()) : BigInt(0);
|
|
554
|
+
message.warningId = object.warningId !== undefined && object.warningId !== null ? BigInt(object.warningId.toString()) : BigInt(0);
|
|
555
|
+
message.reputation = Object.entries(object.reputation ?? {}).reduce((acc, [key, value]) => {
|
|
556
|
+
if (value !== undefined) {
|
|
557
|
+
acc[key] = String(value);
|
|
558
|
+
}
|
|
559
|
+
return acc;
|
|
560
|
+
}, {});
|
|
561
|
+
message.priorStatus = object.priorStatus ?? 0;
|
|
562
|
+
message.priorTrustLevel = object.priorTrustLevel ?? 0;
|
|
563
|
+
message.priorInvitationCredits = object.priorInvitationCredits ?? 0;
|
|
564
|
+
message.burnedDream = object.burnedDream ?? "";
|
|
565
|
+
message.zeroedCount = object.zeroedCount ?? 0;
|
|
566
|
+
message.appealed = object.appealed ?? false;
|
|
567
|
+
message.appealId = object.appealId !== undefined && object.appealId !== null ? BigInt(object.appealId.toString()) : BigInt(0);
|
|
568
|
+
return message;
|
|
569
|
+
},
|
|
570
|
+
fromAmino(object) {
|
|
571
|
+
const message = createBaseMemberActionRestoration();
|
|
572
|
+
if (object.member !== undefined && object.member !== null) {
|
|
573
|
+
message.member = object.member;
|
|
574
|
+
}
|
|
575
|
+
if (object.action !== undefined && object.action !== null) {
|
|
576
|
+
message.action = object.action;
|
|
577
|
+
}
|
|
578
|
+
if (object.resolved_at !== undefined && object.resolved_at !== null) {
|
|
579
|
+
message.resolvedAt = BigInt(object.resolved_at);
|
|
580
|
+
}
|
|
581
|
+
if (object.season !== undefined && object.season !== null) {
|
|
582
|
+
message.season = BigInt(object.season);
|
|
583
|
+
}
|
|
584
|
+
if (object.warning_id !== undefined && object.warning_id !== null) {
|
|
585
|
+
message.warningId = BigInt(object.warning_id);
|
|
586
|
+
}
|
|
587
|
+
message.reputation = Object.entries(object.reputation ?? {}).reduce((acc, [key, value]) => {
|
|
588
|
+
if (value !== undefined) {
|
|
589
|
+
acc[key] = String(value);
|
|
590
|
+
}
|
|
591
|
+
return acc;
|
|
592
|
+
}, {});
|
|
593
|
+
if (object.prior_status !== undefined && object.prior_status !== null) {
|
|
594
|
+
message.priorStatus = object.prior_status;
|
|
595
|
+
}
|
|
596
|
+
if (object.prior_trust_level !== undefined && object.prior_trust_level !== null) {
|
|
597
|
+
message.priorTrustLevel = object.prior_trust_level;
|
|
598
|
+
}
|
|
599
|
+
if (object.prior_invitation_credits !== undefined && object.prior_invitation_credits !== null) {
|
|
600
|
+
message.priorInvitationCredits = object.prior_invitation_credits;
|
|
601
|
+
}
|
|
602
|
+
if (object.burned_dream !== undefined && object.burned_dream !== null) {
|
|
603
|
+
message.burnedDream = object.burned_dream;
|
|
604
|
+
}
|
|
605
|
+
if (object.zeroed_count !== undefined && object.zeroed_count !== null) {
|
|
606
|
+
message.zeroedCount = object.zeroed_count;
|
|
607
|
+
}
|
|
608
|
+
if (object.appealed !== undefined && object.appealed !== null) {
|
|
609
|
+
message.appealed = object.appealed;
|
|
610
|
+
}
|
|
611
|
+
if (object.appeal_id !== undefined && object.appeal_id !== null) {
|
|
612
|
+
message.appealId = BigInt(object.appeal_id);
|
|
613
|
+
}
|
|
614
|
+
return message;
|
|
615
|
+
},
|
|
616
|
+
toAmino(message) {
|
|
617
|
+
const obj = {};
|
|
618
|
+
obj.member = message.member === "" ? undefined : message.member;
|
|
619
|
+
obj.action = message.action === 0 ? undefined : message.action;
|
|
620
|
+
obj.resolved_at = message.resolvedAt !== BigInt(0) ? message.resolvedAt?.toString() : undefined;
|
|
621
|
+
obj.season = message.season !== BigInt(0) ? message.season?.toString() : undefined;
|
|
622
|
+
obj.warning_id = message.warningId !== BigInt(0) ? message.warningId?.toString() : undefined;
|
|
623
|
+
obj.reputation = {};
|
|
624
|
+
if (message.reputation) {
|
|
625
|
+
Object.entries(message.reputation).forEach(([k, v]) => {
|
|
626
|
+
obj.reputation[k] = v;
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
obj.prior_status = message.priorStatus === 0 ? undefined : message.priorStatus;
|
|
630
|
+
obj.prior_trust_level = message.priorTrustLevel === 0 ? undefined : message.priorTrustLevel;
|
|
631
|
+
obj.prior_invitation_credits = message.priorInvitationCredits === 0 ? undefined : message.priorInvitationCredits;
|
|
632
|
+
obj.burned_dream = message.burnedDream === "" ? undefined : message.burnedDream;
|
|
633
|
+
obj.zeroed_count = message.zeroedCount === 0 ? undefined : message.zeroedCount;
|
|
634
|
+
obj.appealed = message.appealed === false ? undefined : message.appealed;
|
|
635
|
+
obj.appeal_id = message.appealId !== BigInt(0) ? message.appealId?.toString() : undefined;
|
|
636
|
+
return obj;
|
|
637
|
+
},
|
|
638
|
+
fromAminoMsg(object) {
|
|
639
|
+
return exports.MemberActionRestoration.fromAmino(object.value);
|
|
640
|
+
},
|
|
641
|
+
fromProtoMsg(message) {
|
|
642
|
+
return exports.MemberActionRestoration.decode(message.value);
|
|
643
|
+
},
|
|
644
|
+
toProto(message) {
|
|
645
|
+
return exports.MemberActionRestoration.encode(message).finish();
|
|
646
|
+
},
|
|
647
|
+
toProtoMsg(message) {
|
|
648
|
+
return {
|
|
649
|
+
typeUrl: "/sparkdream.rep.v1.MemberActionRestoration",
|
|
650
|
+
value: exports.MemberActionRestoration.encode(message).finish()
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
};
|
|
@@ -45,7 +45,8 @@ export declare enum MigrationStatus {
|
|
|
45
45
|
MIGRATION_STATUS_ACCEPTED = 2,
|
|
46
46
|
/**
|
|
47
47
|
* MIGRATION_STATUS_OBJECTED - OBJECTED: (COUNCIL path) the old address objected during the delay and
|
|
48
|
-
* a jury review decides. The queue entry is removed until the verdict.
|
|
48
|
+
* a jury review decides. The queue entry is removed until the verdict. An
|
|
49
|
+
* inconclusive jury escalates the objection to x/gov (escalated_until).
|
|
49
50
|
*/
|
|
50
51
|
MIGRATION_STATUS_OBJECTED = 3,
|
|
51
52
|
/** MIGRATION_STATUS_FINALIZED - FINALIZED: the identity moved; the old address is a tombstone. */
|
|
@@ -119,6 +120,22 @@ export interface MemberMigration {
|
|
|
119
120
|
* finalized_at is the block time of finalization (0 until then).
|
|
120
121
|
*/
|
|
121
122
|
finalizedAt: bigint;
|
|
123
|
+
/**
|
|
124
|
+
* accept_by is the block time by which the new address must accept
|
|
125
|
+
* (requested_at + migration_accept_window at request time). Stored so the
|
|
126
|
+
* accept-expiry queue key never drifts when the param changes.
|
|
127
|
+
*/
|
|
128
|
+
acceptBy: bigint;
|
|
129
|
+
/**
|
|
130
|
+
* escalated_until is set (COUNCIL path) when the objection jury reached no
|
|
131
|
+
* verdict (INCONCLUSIVE, including a jury that could not be seated). The
|
|
132
|
+
* objection is escalated to x/gov: the migration stays OBJECTED and the
|
|
133
|
+
* bond stays locked until governance cancels the migration (objection
|
|
134
|
+
* upheld, bond refunded) or re-forces it (objection rejected, bond paid to
|
|
135
|
+
* to_address). If governance has not decided by this block time the
|
|
136
|
+
* objection is rejected. 0 when not escalated.
|
|
137
|
+
*/
|
|
138
|
+
escalatedUntil: bigint;
|
|
122
139
|
}
|
|
123
140
|
export interface MemberMigrationProtoMsg {
|
|
124
141
|
typeUrl: "/sparkdream.rep.v1.MemberMigration";
|
|
@@ -176,6 +193,22 @@ export interface MemberMigrationAmino {
|
|
|
176
193
|
* finalized_at is the block time of finalization (0 until then).
|
|
177
194
|
*/
|
|
178
195
|
finalized_at?: string;
|
|
196
|
+
/**
|
|
197
|
+
* accept_by is the block time by which the new address must accept
|
|
198
|
+
* (requested_at + migration_accept_window at request time). Stored so the
|
|
199
|
+
* accept-expiry queue key never drifts when the param changes.
|
|
200
|
+
*/
|
|
201
|
+
accept_by?: string;
|
|
202
|
+
/**
|
|
203
|
+
* escalated_until is set (COUNCIL path) when the objection jury reached no
|
|
204
|
+
* verdict (INCONCLUSIVE, including a jury that could not be seated). The
|
|
205
|
+
* objection is escalated to x/gov: the migration stays OBJECTED and the
|
|
206
|
+
* bond stays locked until governance cancels the migration (objection
|
|
207
|
+
* upheld, bond refunded) or re-forces it (objection rejected, bond paid to
|
|
208
|
+
* to_address). If governance has not decided by this block time the
|
|
209
|
+
* objection is rejected. 0 when not escalated.
|
|
210
|
+
*/
|
|
211
|
+
escalated_until?: string;
|
|
179
212
|
}
|
|
180
213
|
export interface MemberMigrationAminoMsg {
|
|
181
214
|
type: "/sparkdream.rep.v1.MemberMigration";
|