@sparkdreamnft/sparkdreamjs 0.0.21 → 0.0.22
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.
|
@@ -1,6 +1,66 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { Params, ForumOperationalParams } from "./params";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
/**
|
|
5
|
+
* HideAuthority selects which authority the caller of MsgHidePost is invoking.
|
|
6
|
+
* It disambiguates the case where an account is BOTH a bonded forum sentinel
|
|
7
|
+
* and a Commons Operations Committee member: without it the handler would
|
|
8
|
+
* silently pick the council (gov) path — a strictly more powerful, less
|
|
9
|
+
* accountable action chosen by accident. See
|
|
10
|
+
* docs/HANDOFF_HIDE_AUTHORITY_DISAMBIGUATION.md.
|
|
11
|
+
*/
|
|
12
|
+
export var HideAuthority;
|
|
13
|
+
(function (HideAuthority) {
|
|
14
|
+
/**
|
|
15
|
+
* HIDE_AUTHORITY_AUTO - AUTO (default, back-compat): resolve to the sentinel path whenever the
|
|
16
|
+
* account holds an eligible sentinel bond (NORMAL/RECOVERY), else fall
|
|
17
|
+
* through to the council path if council-authorized, else error. AUTO
|
|
18
|
+
* prefers the accountable (bonded + author-appealable) sentinel path.
|
|
19
|
+
*/
|
|
20
|
+
HideAuthority[HideAuthority["HIDE_AUTHORITY_AUTO"] = 0] = "HIDE_AUTHORITY_AUTO";
|
|
21
|
+
/**
|
|
22
|
+
* HIDE_AUTHORITY_SENTINEL - SENTINEL: force the sentinel path; error if the account is not an
|
|
23
|
+
* eligible sentinel (no silent fallback to council).
|
|
24
|
+
*/
|
|
25
|
+
HideAuthority[HideAuthority["HIDE_AUTHORITY_SENTINEL"] = 1] = "HIDE_AUTHORITY_SENTINEL";
|
|
26
|
+
/**
|
|
27
|
+
* HIDE_AUTHORITY_COUNCIL - COUNCIL: force the council (gov-authority) path; error if the account is
|
|
28
|
+
* not council-authorized. The deliberate "act as committee" choice.
|
|
29
|
+
*/
|
|
30
|
+
HideAuthority[HideAuthority["HIDE_AUTHORITY_COUNCIL"] = 2] = "HIDE_AUTHORITY_COUNCIL";
|
|
31
|
+
HideAuthority[HideAuthority["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
32
|
+
})(HideAuthority || (HideAuthority = {}));
|
|
33
|
+
export const HideAuthorityAmino = HideAuthority;
|
|
34
|
+
export function hideAuthorityFromJSON(object) {
|
|
35
|
+
switch (object) {
|
|
36
|
+
case 0:
|
|
37
|
+
case "HIDE_AUTHORITY_AUTO":
|
|
38
|
+
return HideAuthority.HIDE_AUTHORITY_AUTO;
|
|
39
|
+
case 1:
|
|
40
|
+
case "HIDE_AUTHORITY_SENTINEL":
|
|
41
|
+
return HideAuthority.HIDE_AUTHORITY_SENTINEL;
|
|
42
|
+
case 2:
|
|
43
|
+
case "HIDE_AUTHORITY_COUNCIL":
|
|
44
|
+
return HideAuthority.HIDE_AUTHORITY_COUNCIL;
|
|
45
|
+
case -1:
|
|
46
|
+
case "UNRECOGNIZED":
|
|
47
|
+
default:
|
|
48
|
+
return HideAuthority.UNRECOGNIZED;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export function hideAuthorityToJSON(object) {
|
|
52
|
+
switch (object) {
|
|
53
|
+
case HideAuthority.HIDE_AUTHORITY_AUTO:
|
|
54
|
+
return "HIDE_AUTHORITY_AUTO";
|
|
55
|
+
case HideAuthority.HIDE_AUTHORITY_SENTINEL:
|
|
56
|
+
return "HIDE_AUTHORITY_SENTINEL";
|
|
57
|
+
case HideAuthority.HIDE_AUTHORITY_COUNCIL:
|
|
58
|
+
return "HIDE_AUTHORITY_COUNCIL";
|
|
59
|
+
case HideAuthority.UNRECOGNIZED:
|
|
60
|
+
default:
|
|
61
|
+
return "UNRECOGNIZED";
|
|
62
|
+
}
|
|
63
|
+
}
|
|
4
64
|
function createBaseMsgUpdateParams() {
|
|
5
65
|
return {
|
|
6
66
|
authority: "",
|
|
@@ -3259,7 +3319,8 @@ function createBaseMsgHidePost() {
|
|
|
3259
3319
|
creator: "",
|
|
3260
3320
|
postId: BigInt(0),
|
|
3261
3321
|
reasonCode: BigInt(0),
|
|
3262
|
-
reasonText: ""
|
|
3322
|
+
reasonText: "",
|
|
3323
|
+
authority: 0
|
|
3263
3324
|
};
|
|
3264
3325
|
}
|
|
3265
3326
|
/**
|
|
@@ -3284,6 +3345,9 @@ export const MsgHidePost = {
|
|
|
3284
3345
|
if (message.reasonText !== "") {
|
|
3285
3346
|
writer.uint32(34).string(message.reasonText);
|
|
3286
3347
|
}
|
|
3348
|
+
if (message.authority !== 0) {
|
|
3349
|
+
writer.uint32(40).int32(message.authority);
|
|
3350
|
+
}
|
|
3287
3351
|
return writer;
|
|
3288
3352
|
},
|
|
3289
3353
|
decode(input, length) {
|
|
@@ -3305,6 +3369,9 @@ export const MsgHidePost = {
|
|
|
3305
3369
|
case 4:
|
|
3306
3370
|
message.reasonText = reader.string();
|
|
3307
3371
|
break;
|
|
3372
|
+
case 5:
|
|
3373
|
+
message.authority = reader.int32();
|
|
3374
|
+
break;
|
|
3308
3375
|
default:
|
|
3309
3376
|
reader.skipType(tag & 7);
|
|
3310
3377
|
break;
|
|
@@ -3318,6 +3385,7 @@ export const MsgHidePost = {
|
|
|
3318
3385
|
message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
|
|
3319
3386
|
message.reasonCode = object.reasonCode !== undefined && object.reasonCode !== null ? BigInt(object.reasonCode.toString()) : BigInt(0);
|
|
3320
3387
|
message.reasonText = object.reasonText ?? "";
|
|
3388
|
+
message.authority = object.authority ?? 0;
|
|
3321
3389
|
return message;
|
|
3322
3390
|
},
|
|
3323
3391
|
fromAmino(object) {
|
|
@@ -3334,6 +3402,9 @@ export const MsgHidePost = {
|
|
|
3334
3402
|
if (object.reason_text !== undefined && object.reason_text !== null) {
|
|
3335
3403
|
message.reasonText = object.reason_text;
|
|
3336
3404
|
}
|
|
3405
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
3406
|
+
message.authority = object.authority;
|
|
3407
|
+
}
|
|
3337
3408
|
return message;
|
|
3338
3409
|
},
|
|
3339
3410
|
toAmino(message) {
|
|
@@ -3342,6 +3413,7 @@ export const MsgHidePost = {
|
|
|
3342
3413
|
obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
|
|
3343
3414
|
obj.reason_code = message.reasonCode !== BigInt(0) ? message.reasonCode?.toString() : undefined;
|
|
3344
3415
|
obj.reason_text = message.reasonText === "" ? undefined : message.reasonText;
|
|
3416
|
+
obj.authority = message.authority === 0 ? undefined : message.authority;
|
|
3345
3417
|
return obj;
|
|
3346
3418
|
},
|
|
3347
3419
|
fromAminoMsg(object) {
|
package/package.json
CHANGED
package/sparkdream/bundle.d.ts
CHANGED
|
@@ -8305,6 +8305,10 @@ export declare namespace sparkdream {
|
|
|
8305
8305
|
toProto(message: _230.PostConvictionStake): Uint8Array;
|
|
8306
8306
|
toProtoMsg(message: _230.PostConvictionStake): _230.PostConvictionStakeProtoMsg;
|
|
8307
8307
|
};
|
|
8308
|
+
hideAuthorityFromJSON(object: any): _229.HideAuthority;
|
|
8309
|
+
hideAuthorityToJSON(object: _229.HideAuthority): string;
|
|
8310
|
+
HideAuthority: typeof _229.HideAuthority;
|
|
8311
|
+
HideAuthorityAmino: typeof _229.HideAuthority;
|
|
8308
8312
|
MsgUpdateParams: {
|
|
8309
8313
|
typeUrl: string;
|
|
8310
8314
|
aminoType: string;
|
|
@@ -2,6 +2,37 @@ import { Params, ParamsAmino, ForumOperationalParams, ForumOperationalParamsAmin
|
|
|
2
2
|
import { ContentType } from "../../common/v1/content_type";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
4
|
import { DeepPartial } from "../../../helpers";
|
|
5
|
+
/**
|
|
6
|
+
* HideAuthority selects which authority the caller of MsgHidePost is invoking.
|
|
7
|
+
* It disambiguates the case where an account is BOTH a bonded forum sentinel
|
|
8
|
+
* and a Commons Operations Committee member: without it the handler would
|
|
9
|
+
* silently pick the council (gov) path — a strictly more powerful, less
|
|
10
|
+
* accountable action chosen by accident. See
|
|
11
|
+
* docs/HANDOFF_HIDE_AUTHORITY_DISAMBIGUATION.md.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum HideAuthority {
|
|
14
|
+
/**
|
|
15
|
+
* HIDE_AUTHORITY_AUTO - AUTO (default, back-compat): resolve to the sentinel path whenever the
|
|
16
|
+
* account holds an eligible sentinel bond (NORMAL/RECOVERY), else fall
|
|
17
|
+
* through to the council path if council-authorized, else error. AUTO
|
|
18
|
+
* prefers the accountable (bonded + author-appealable) sentinel path.
|
|
19
|
+
*/
|
|
20
|
+
HIDE_AUTHORITY_AUTO = 0,
|
|
21
|
+
/**
|
|
22
|
+
* HIDE_AUTHORITY_SENTINEL - SENTINEL: force the sentinel path; error if the account is not an
|
|
23
|
+
* eligible sentinel (no silent fallback to council).
|
|
24
|
+
*/
|
|
25
|
+
HIDE_AUTHORITY_SENTINEL = 1,
|
|
26
|
+
/**
|
|
27
|
+
* HIDE_AUTHORITY_COUNCIL - COUNCIL: force the council (gov-authority) path; error if the account is
|
|
28
|
+
* not council-authorized. The deliberate "act as committee" choice.
|
|
29
|
+
*/
|
|
30
|
+
HIDE_AUTHORITY_COUNCIL = 2,
|
|
31
|
+
UNRECOGNIZED = -1
|
|
32
|
+
}
|
|
33
|
+
export declare const HideAuthorityAmino: typeof HideAuthority;
|
|
34
|
+
export declare function hideAuthorityFromJSON(object: any): HideAuthority;
|
|
35
|
+
export declare function hideAuthorityToJSON(object: HideAuthority): string;
|
|
5
36
|
/**
|
|
6
37
|
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
7
38
|
* @name MsgUpdateParams
|
|
@@ -1197,6 +1228,11 @@ export interface MsgHidePost {
|
|
|
1197
1228
|
postId: bigint;
|
|
1198
1229
|
reasonCode: bigint;
|
|
1199
1230
|
reasonText: string;
|
|
1231
|
+
/**
|
|
1232
|
+
* authority selects which moderation authority the caller is invoking.
|
|
1233
|
+
* Defaults to AUTO for backward compatibility.
|
|
1234
|
+
*/
|
|
1235
|
+
authority: HideAuthority;
|
|
1200
1236
|
}
|
|
1201
1237
|
export interface MsgHidePostProtoMsg {
|
|
1202
1238
|
typeUrl: "/sparkdream.forum.v1.MsgHidePost";
|
|
@@ -1213,6 +1249,11 @@ export interface MsgHidePostAmino {
|
|
|
1213
1249
|
post_id?: string;
|
|
1214
1250
|
reason_code?: string;
|
|
1215
1251
|
reason_text?: string;
|
|
1252
|
+
/**
|
|
1253
|
+
* authority selects which moderation authority the caller is invoking.
|
|
1254
|
+
* Defaults to AUTO for backward compatibility.
|
|
1255
|
+
*/
|
|
1256
|
+
authority?: HideAuthority;
|
|
1216
1257
|
}
|
|
1217
1258
|
export interface MsgHidePostAminoMsg {
|
|
1218
1259
|
type: "sparkdream/x/forum/MsgHidePost";
|
|
@@ -1,10 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.MsgSetModerationPausedResponse = exports.MsgSetModerationPaused = exports.MsgSetForumPausedResponse = exports.MsgSetForumPaused = exports.MsgRejectProposedReplyResponse = exports.MsgRejectProposedReply = exports.MsgConfirmProposedReplyResponse = exports.MsgConfirmProposedReply = exports.MsgMarkAcceptedReplyResponse = exports.MsgMarkAcceptedReply = exports.MsgDisputePinResponse = exports.MsgDisputePin = exports.MsgUnpinReplyResponse = exports.MsgUnpinReply = exports.MsgPinReplyResponse = exports.MsgPinReply = exports.MsgAssignBountyToReplyResponse = exports.MsgAssignBountyToReply = exports.MsgCancelBountyResponse = exports.MsgCancelBounty = exports.MsgIncreaseBountyResponse = exports.MsgIncreaseBounty = exports.MsgAwardBountyResponse = exports.MsgAwardBounty = exports.MsgCreateBountyResponse = exports.MsgCreateBounty = exports.MsgAppealThreadMoveResponse = exports.MsgAppealThreadMove = void 0;
|
|
3
|
+
exports.MsgAppealPostResponse = exports.MsgAppealPost = exports.MsgUnhidePostResponse = exports.MsgUnhidePost = exports.MsgHidePostResponse = exports.MsgHidePost = exports.MsgDismissFlagsResponse = exports.MsgDismissFlags = exports.MsgFlagPostResponse = exports.MsgFlagPost = exports.MsgReleasePostConvictionResponse = exports.MsgReleasePostConviction = exports.MsgStakePostConvictionResponse = exports.MsgStakePostConviction = exports.MsgDownvotePostResponse = exports.MsgDownvotePost = exports.MsgUpvotePostResponse = exports.MsgUpvotePost = exports.MsgUnfollowThreadResponse = exports.MsgUnfollowThread = exports.MsgFollowThreadResponse = exports.MsgFollowThread = exports.MsgMoveThreadResponse = exports.MsgMoveThread = exports.MsgUnlockThreadResponse = exports.MsgUnlockThread = exports.MsgLockThreadResponse = exports.MsgLockThread = exports.MsgMakePostPermanentResponse = exports.MsgMakePostPermanent = exports.MsgUnpinPostResponse = exports.MsgUnpinPost = exports.MsgPinPostResponse = exports.MsgPinPost = exports.MsgUnarchiveThreadResponse = exports.MsgUnarchiveThread = exports.MsgFreezeThreadResponse = exports.MsgFreezeThread = exports.MsgDeletePostResponse = exports.MsgDeletePost = exports.MsgEditPostResponse = exports.MsgEditPost = exports.MsgCreatePostResponse = exports.MsgCreatePost = exports.MsgUpdateOperationalParamsResponse = exports.MsgUpdateOperationalParams = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.HideAuthorityAmino = exports.HideAuthority = void 0;
|
|
4
|
+
exports.MsgSetModerationPausedResponse = exports.MsgSetModerationPaused = exports.MsgSetForumPausedResponse = exports.MsgSetForumPaused = exports.MsgRejectProposedReplyResponse = exports.MsgRejectProposedReply = exports.MsgConfirmProposedReplyResponse = exports.MsgConfirmProposedReply = exports.MsgMarkAcceptedReplyResponse = exports.MsgMarkAcceptedReply = exports.MsgDisputePinResponse = exports.MsgDisputePin = exports.MsgUnpinReplyResponse = exports.MsgUnpinReply = exports.MsgPinReplyResponse = exports.MsgPinReply = exports.MsgAssignBountyToReplyResponse = exports.MsgAssignBountyToReply = exports.MsgCancelBountyResponse = exports.MsgCancelBounty = exports.MsgIncreaseBountyResponse = exports.MsgIncreaseBounty = exports.MsgAwardBountyResponse = exports.MsgAwardBounty = exports.MsgCreateBountyResponse = exports.MsgCreateBounty = exports.MsgAppealThreadMoveResponse = exports.MsgAppealThreadMove = exports.MsgAppealThreadLockResponse = exports.MsgAppealThreadLock = void 0;
|
|
5
|
+
exports.hideAuthorityFromJSON = hideAuthorityFromJSON;
|
|
6
|
+
exports.hideAuthorityToJSON = hideAuthorityToJSON;
|
|
5
7
|
//@ts-nocheck
|
|
6
8
|
const params_1 = require("./params");
|
|
7
9
|
const binary_1 = require("../../../binary");
|
|
10
|
+
/**
|
|
11
|
+
* HideAuthority selects which authority the caller of MsgHidePost is invoking.
|
|
12
|
+
* It disambiguates the case where an account is BOTH a bonded forum sentinel
|
|
13
|
+
* and a Commons Operations Committee member: without it the handler would
|
|
14
|
+
* silently pick the council (gov) path — a strictly more powerful, less
|
|
15
|
+
* accountable action chosen by accident. See
|
|
16
|
+
* docs/HANDOFF_HIDE_AUTHORITY_DISAMBIGUATION.md.
|
|
17
|
+
*/
|
|
18
|
+
var HideAuthority;
|
|
19
|
+
(function (HideAuthority) {
|
|
20
|
+
/**
|
|
21
|
+
* HIDE_AUTHORITY_AUTO - AUTO (default, back-compat): resolve to the sentinel path whenever the
|
|
22
|
+
* account holds an eligible sentinel bond (NORMAL/RECOVERY), else fall
|
|
23
|
+
* through to the council path if council-authorized, else error. AUTO
|
|
24
|
+
* prefers the accountable (bonded + author-appealable) sentinel path.
|
|
25
|
+
*/
|
|
26
|
+
HideAuthority[HideAuthority["HIDE_AUTHORITY_AUTO"] = 0] = "HIDE_AUTHORITY_AUTO";
|
|
27
|
+
/**
|
|
28
|
+
* HIDE_AUTHORITY_SENTINEL - SENTINEL: force the sentinel path; error if the account is not an
|
|
29
|
+
* eligible sentinel (no silent fallback to council).
|
|
30
|
+
*/
|
|
31
|
+
HideAuthority[HideAuthority["HIDE_AUTHORITY_SENTINEL"] = 1] = "HIDE_AUTHORITY_SENTINEL";
|
|
32
|
+
/**
|
|
33
|
+
* HIDE_AUTHORITY_COUNCIL - COUNCIL: force the council (gov-authority) path; error if the account is
|
|
34
|
+
* not council-authorized. The deliberate "act as committee" choice.
|
|
35
|
+
*/
|
|
36
|
+
HideAuthority[HideAuthority["HIDE_AUTHORITY_COUNCIL"] = 2] = "HIDE_AUTHORITY_COUNCIL";
|
|
37
|
+
HideAuthority[HideAuthority["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
38
|
+
})(HideAuthority || (exports.HideAuthority = HideAuthority = {}));
|
|
39
|
+
exports.HideAuthorityAmino = HideAuthority;
|
|
40
|
+
function hideAuthorityFromJSON(object) {
|
|
41
|
+
switch (object) {
|
|
42
|
+
case 0:
|
|
43
|
+
case "HIDE_AUTHORITY_AUTO":
|
|
44
|
+
return HideAuthority.HIDE_AUTHORITY_AUTO;
|
|
45
|
+
case 1:
|
|
46
|
+
case "HIDE_AUTHORITY_SENTINEL":
|
|
47
|
+
return HideAuthority.HIDE_AUTHORITY_SENTINEL;
|
|
48
|
+
case 2:
|
|
49
|
+
case "HIDE_AUTHORITY_COUNCIL":
|
|
50
|
+
return HideAuthority.HIDE_AUTHORITY_COUNCIL;
|
|
51
|
+
case -1:
|
|
52
|
+
case "UNRECOGNIZED":
|
|
53
|
+
default:
|
|
54
|
+
return HideAuthority.UNRECOGNIZED;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function hideAuthorityToJSON(object) {
|
|
58
|
+
switch (object) {
|
|
59
|
+
case HideAuthority.HIDE_AUTHORITY_AUTO:
|
|
60
|
+
return "HIDE_AUTHORITY_AUTO";
|
|
61
|
+
case HideAuthority.HIDE_AUTHORITY_SENTINEL:
|
|
62
|
+
return "HIDE_AUTHORITY_SENTINEL";
|
|
63
|
+
case HideAuthority.HIDE_AUTHORITY_COUNCIL:
|
|
64
|
+
return "HIDE_AUTHORITY_COUNCIL";
|
|
65
|
+
case HideAuthority.UNRECOGNIZED:
|
|
66
|
+
default:
|
|
67
|
+
return "UNRECOGNIZED";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
8
70
|
function createBaseMsgUpdateParams() {
|
|
9
71
|
return {
|
|
10
72
|
authority: "",
|
|
@@ -3263,7 +3325,8 @@ function createBaseMsgHidePost() {
|
|
|
3263
3325
|
creator: "",
|
|
3264
3326
|
postId: BigInt(0),
|
|
3265
3327
|
reasonCode: BigInt(0),
|
|
3266
|
-
reasonText: ""
|
|
3328
|
+
reasonText: "",
|
|
3329
|
+
authority: 0
|
|
3267
3330
|
};
|
|
3268
3331
|
}
|
|
3269
3332
|
/**
|
|
@@ -3288,6 +3351,9 @@ exports.MsgHidePost = {
|
|
|
3288
3351
|
if (message.reasonText !== "") {
|
|
3289
3352
|
writer.uint32(34).string(message.reasonText);
|
|
3290
3353
|
}
|
|
3354
|
+
if (message.authority !== 0) {
|
|
3355
|
+
writer.uint32(40).int32(message.authority);
|
|
3356
|
+
}
|
|
3291
3357
|
return writer;
|
|
3292
3358
|
},
|
|
3293
3359
|
decode(input, length) {
|
|
@@ -3309,6 +3375,9 @@ exports.MsgHidePost = {
|
|
|
3309
3375
|
case 4:
|
|
3310
3376
|
message.reasonText = reader.string();
|
|
3311
3377
|
break;
|
|
3378
|
+
case 5:
|
|
3379
|
+
message.authority = reader.int32();
|
|
3380
|
+
break;
|
|
3312
3381
|
default:
|
|
3313
3382
|
reader.skipType(tag & 7);
|
|
3314
3383
|
break;
|
|
@@ -3322,6 +3391,7 @@ exports.MsgHidePost = {
|
|
|
3322
3391
|
message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
|
|
3323
3392
|
message.reasonCode = object.reasonCode !== undefined && object.reasonCode !== null ? BigInt(object.reasonCode.toString()) : BigInt(0);
|
|
3324
3393
|
message.reasonText = object.reasonText ?? "";
|
|
3394
|
+
message.authority = object.authority ?? 0;
|
|
3325
3395
|
return message;
|
|
3326
3396
|
},
|
|
3327
3397
|
fromAmino(object) {
|
|
@@ -3338,6 +3408,9 @@ exports.MsgHidePost = {
|
|
|
3338
3408
|
if (object.reason_text !== undefined && object.reason_text !== null) {
|
|
3339
3409
|
message.reasonText = object.reason_text;
|
|
3340
3410
|
}
|
|
3411
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
3412
|
+
message.authority = object.authority;
|
|
3413
|
+
}
|
|
3341
3414
|
return message;
|
|
3342
3415
|
},
|
|
3343
3416
|
toAmino(message) {
|
|
@@ -3346,6 +3419,7 @@ exports.MsgHidePost = {
|
|
|
3346
3419
|
obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
|
|
3347
3420
|
obj.reason_code = message.reasonCode !== BigInt(0) ? message.reasonCode?.toString() : undefined;
|
|
3348
3421
|
obj.reason_text = message.reasonText === "" ? undefined : message.reasonText;
|
|
3422
|
+
obj.authority = message.authority === 0 ? undefined : message.authority;
|
|
3349
3423
|
return obj;
|
|
3350
3424
|
},
|
|
3351
3425
|
fromAminoMsg(object) {
|