@sparkdreamnft/sparkdreamjs 0.0.22 → 0.0.24
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/esm/sparkdream/forum/v1/hide_record.js +13 -1
- package/esm/sparkdream/forum/v1/params.js +132 -0
- package/esm/sparkdream/forum/v1/sentinel_activity.js +1 -49
- package/esm/sparkdream/forum/v1/thread_lock_record.js +13 -1
- package/esm/sparkdream/forum/v1/thread_move_record.js +13 -1
- package/esm/sparkdream/forum/v1/tx.js +64 -39
- package/esm/sparkdream/forum/v1/types.js +13 -1
- package/esm/sparkdream/rep/v1/accountability.js +12 -0
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +4 -4
- package/sparkdream/forum/v1/hide_record.d.ts +14 -0
- package/sparkdream/forum/v1/hide_record.js +13 -1
- package/sparkdream/forum/v1/params.d.ts +108 -0
- package/sparkdream/forum/v1/params.js +132 -0
- package/sparkdream/forum/v1/sentinel_activity.d.ts +12 -8
- package/sparkdream/forum/v1/sentinel_activity.js +1 -49
- package/sparkdream/forum/v1/thread_lock_record.d.ts +12 -0
- package/sparkdream/forum/v1/thread_lock_record.js +13 -1
- package/sparkdream/forum/v1/thread_move_record.d.ts +12 -0
- package/sparkdream/forum/v1/thread_move_record.js +13 -1
- package/sparkdream/forum/v1/tx.d.ts +44 -23
- package/sparkdream/forum/v1/tx.js +67 -42
- package/sparkdream/forum/v1/types.d.ts +12 -0
- package/sparkdream/forum/v1/types.js +13 -1
- package/sparkdream/rep/v1/accountability.d.ts +2 -0
- package/sparkdream/rep/v1/accountability.js +12 -0
|
@@ -1,68 +1,69 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.
|
|
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.ModerationAuthorityAmino = exports.ModerationAuthority = void 0;
|
|
4
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.
|
|
6
|
-
exports.
|
|
5
|
+
exports.moderationAuthorityFromJSON = moderationAuthorityFromJSON;
|
|
6
|
+
exports.moderationAuthorityToJSON = moderationAuthorityToJSON;
|
|
7
7
|
//@ts-nocheck
|
|
8
8
|
const params_1 = require("./params");
|
|
9
9
|
const binary_1 = require("../../../binary");
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* accountable action chosen by
|
|
16
|
-
* docs/HANDOFF_HIDE_AUTHORITY_DISAMBIGUATION.md.
|
|
11
|
+
* ModerationAuthority selects which authority the caller of a sentinel/council
|
|
12
|
+
* moderation message (hide, lock, move) is invoking. It disambiguates the case
|
|
13
|
+
* where an account is BOTH a bonded forum sentinel and a Commons Operations
|
|
14
|
+
* Committee member: without it the handler would silently pick the council
|
|
15
|
+
* (gov) path — a strictly more powerful, less accountable action chosen by
|
|
16
|
+
* accident. See docs/HANDOFF_HIDE_AUTHORITY_DISAMBIGUATION.md.
|
|
17
17
|
*/
|
|
18
|
-
var
|
|
19
|
-
(function (
|
|
18
|
+
var ModerationAuthority;
|
|
19
|
+
(function (ModerationAuthority) {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
* account
|
|
23
|
-
*
|
|
24
|
-
*
|
|
21
|
+
* MODERATION_AUTHORITY_AUTO - AUTO (default, back-compat): resolve to the sentinel path whenever the
|
|
22
|
+
* account is eligible for that specific action (bonded sentinel in
|
|
23
|
+
* NORMAL/RECOVERY plus the action's own requirements), else fall through to
|
|
24
|
+
* the council path if council-authorized, else error. AUTO prefers the
|
|
25
|
+
* accountable (bonded + author-appealable) sentinel path.
|
|
25
26
|
*/
|
|
26
|
-
|
|
27
|
+
ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_AUTO"] = 0] = "MODERATION_AUTHORITY_AUTO";
|
|
27
28
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
29
|
+
* MODERATION_AUTHORITY_SENTINEL - SENTINEL: force the sentinel path; error if the account is not eligible
|
|
30
|
+
* for the action (no silent fallback to council).
|
|
30
31
|
*/
|
|
31
|
-
|
|
32
|
+
ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_SENTINEL"] = 1] = "MODERATION_AUTHORITY_SENTINEL";
|
|
32
33
|
/**
|
|
33
|
-
*
|
|
34
|
+
* MODERATION_AUTHORITY_COUNCIL - COUNCIL: force the council (gov-authority) path; error if the account is
|
|
34
35
|
* not council-authorized. The deliberate "act as committee" choice.
|
|
35
36
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
})(
|
|
39
|
-
exports.
|
|
40
|
-
function
|
|
37
|
+
ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_COUNCIL"] = 2] = "MODERATION_AUTHORITY_COUNCIL";
|
|
38
|
+
ModerationAuthority[ModerationAuthority["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
39
|
+
})(ModerationAuthority || (exports.ModerationAuthority = ModerationAuthority = {}));
|
|
40
|
+
exports.ModerationAuthorityAmino = ModerationAuthority;
|
|
41
|
+
function moderationAuthorityFromJSON(object) {
|
|
41
42
|
switch (object) {
|
|
42
43
|
case 0:
|
|
43
|
-
case "
|
|
44
|
-
return
|
|
44
|
+
case "MODERATION_AUTHORITY_AUTO":
|
|
45
|
+
return ModerationAuthority.MODERATION_AUTHORITY_AUTO;
|
|
45
46
|
case 1:
|
|
46
|
-
case "
|
|
47
|
-
return
|
|
47
|
+
case "MODERATION_AUTHORITY_SENTINEL":
|
|
48
|
+
return ModerationAuthority.MODERATION_AUTHORITY_SENTINEL;
|
|
48
49
|
case 2:
|
|
49
|
-
case "
|
|
50
|
-
return
|
|
50
|
+
case "MODERATION_AUTHORITY_COUNCIL":
|
|
51
|
+
return ModerationAuthority.MODERATION_AUTHORITY_COUNCIL;
|
|
51
52
|
case -1:
|
|
52
53
|
case "UNRECOGNIZED":
|
|
53
54
|
default:
|
|
54
|
-
return
|
|
55
|
+
return ModerationAuthority.UNRECOGNIZED;
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
+
function moderationAuthorityToJSON(object) {
|
|
58
59
|
switch (object) {
|
|
59
|
-
case
|
|
60
|
-
return "
|
|
61
|
-
case
|
|
62
|
-
return "
|
|
63
|
-
case
|
|
64
|
-
return "
|
|
65
|
-
case
|
|
60
|
+
case ModerationAuthority.MODERATION_AUTHORITY_AUTO:
|
|
61
|
+
return "MODERATION_AUTHORITY_AUTO";
|
|
62
|
+
case ModerationAuthority.MODERATION_AUTHORITY_SENTINEL:
|
|
63
|
+
return "MODERATION_AUTHORITY_SENTINEL";
|
|
64
|
+
case ModerationAuthority.MODERATION_AUTHORITY_COUNCIL:
|
|
65
|
+
return "MODERATION_AUTHORITY_COUNCIL";
|
|
66
|
+
case ModerationAuthority.UNRECOGNIZED:
|
|
66
67
|
default:
|
|
67
68
|
return "UNRECOGNIZED";
|
|
68
69
|
}
|
|
@@ -1641,7 +1642,8 @@ function createBaseMsgLockThread() {
|
|
|
1641
1642
|
return {
|
|
1642
1643
|
creator: "",
|
|
1643
1644
|
rootId: BigInt(0),
|
|
1644
|
-
reason: ""
|
|
1645
|
+
reason: "",
|
|
1646
|
+
authority: 0
|
|
1645
1647
|
};
|
|
1646
1648
|
}
|
|
1647
1649
|
/**
|
|
@@ -1663,6 +1665,9 @@ exports.MsgLockThread = {
|
|
|
1663
1665
|
if (message.reason !== "") {
|
|
1664
1666
|
writer.uint32(26).string(message.reason);
|
|
1665
1667
|
}
|
|
1668
|
+
if (message.authority !== 0) {
|
|
1669
|
+
writer.uint32(32).int32(message.authority);
|
|
1670
|
+
}
|
|
1666
1671
|
return writer;
|
|
1667
1672
|
},
|
|
1668
1673
|
decode(input, length) {
|
|
@@ -1681,6 +1686,9 @@ exports.MsgLockThread = {
|
|
|
1681
1686
|
case 3:
|
|
1682
1687
|
message.reason = reader.string();
|
|
1683
1688
|
break;
|
|
1689
|
+
case 4:
|
|
1690
|
+
message.authority = reader.int32();
|
|
1691
|
+
break;
|
|
1684
1692
|
default:
|
|
1685
1693
|
reader.skipType(tag & 7);
|
|
1686
1694
|
break;
|
|
@@ -1693,6 +1701,7 @@ exports.MsgLockThread = {
|
|
|
1693
1701
|
message.creator = object.creator ?? "";
|
|
1694
1702
|
message.rootId = object.rootId !== undefined && object.rootId !== null ? BigInt(object.rootId.toString()) : BigInt(0);
|
|
1695
1703
|
message.reason = object.reason ?? "";
|
|
1704
|
+
message.authority = object.authority ?? 0;
|
|
1696
1705
|
return message;
|
|
1697
1706
|
},
|
|
1698
1707
|
fromAmino(object) {
|
|
@@ -1706,6 +1715,9 @@ exports.MsgLockThread = {
|
|
|
1706
1715
|
if (object.reason !== undefined && object.reason !== null) {
|
|
1707
1716
|
message.reason = object.reason;
|
|
1708
1717
|
}
|
|
1718
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
1719
|
+
message.authority = object.authority;
|
|
1720
|
+
}
|
|
1709
1721
|
return message;
|
|
1710
1722
|
},
|
|
1711
1723
|
toAmino(message) {
|
|
@@ -1713,6 +1725,7 @@ exports.MsgLockThread = {
|
|
|
1713
1725
|
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
1714
1726
|
obj.root_id = message.rootId !== BigInt(0) ? message.rootId?.toString() : undefined;
|
|
1715
1727
|
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
1728
|
+
obj.authority = message.authority === 0 ? undefined : message.authority;
|
|
1716
1729
|
return obj;
|
|
1717
1730
|
},
|
|
1718
1731
|
fromAminoMsg(object) {
|
|
@@ -1942,7 +1955,8 @@ function createBaseMsgMoveThread() {
|
|
|
1942
1955
|
creator: "",
|
|
1943
1956
|
rootId: BigInt(0),
|
|
1944
1957
|
newCategoryId: BigInt(0),
|
|
1945
|
-
reason: ""
|
|
1958
|
+
reason: "",
|
|
1959
|
+
authority: 0
|
|
1946
1960
|
};
|
|
1947
1961
|
}
|
|
1948
1962
|
/**
|
|
@@ -1967,6 +1981,9 @@ exports.MsgMoveThread = {
|
|
|
1967
1981
|
if (message.reason !== "") {
|
|
1968
1982
|
writer.uint32(34).string(message.reason);
|
|
1969
1983
|
}
|
|
1984
|
+
if (message.authority !== 0) {
|
|
1985
|
+
writer.uint32(40).int32(message.authority);
|
|
1986
|
+
}
|
|
1970
1987
|
return writer;
|
|
1971
1988
|
},
|
|
1972
1989
|
decode(input, length) {
|
|
@@ -1988,6 +2005,9 @@ exports.MsgMoveThread = {
|
|
|
1988
2005
|
case 4:
|
|
1989
2006
|
message.reason = reader.string();
|
|
1990
2007
|
break;
|
|
2008
|
+
case 5:
|
|
2009
|
+
message.authority = reader.int32();
|
|
2010
|
+
break;
|
|
1991
2011
|
default:
|
|
1992
2012
|
reader.skipType(tag & 7);
|
|
1993
2013
|
break;
|
|
@@ -2001,6 +2021,7 @@ exports.MsgMoveThread = {
|
|
|
2001
2021
|
message.rootId = object.rootId !== undefined && object.rootId !== null ? BigInt(object.rootId.toString()) : BigInt(0);
|
|
2002
2022
|
message.newCategoryId = object.newCategoryId !== undefined && object.newCategoryId !== null ? BigInt(object.newCategoryId.toString()) : BigInt(0);
|
|
2003
2023
|
message.reason = object.reason ?? "";
|
|
2024
|
+
message.authority = object.authority ?? 0;
|
|
2004
2025
|
return message;
|
|
2005
2026
|
},
|
|
2006
2027
|
fromAmino(object) {
|
|
@@ -2017,6 +2038,9 @@ exports.MsgMoveThread = {
|
|
|
2017
2038
|
if (object.reason !== undefined && object.reason !== null) {
|
|
2018
2039
|
message.reason = object.reason;
|
|
2019
2040
|
}
|
|
2041
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
2042
|
+
message.authority = object.authority;
|
|
2043
|
+
}
|
|
2020
2044
|
return message;
|
|
2021
2045
|
},
|
|
2022
2046
|
toAmino(message) {
|
|
@@ -2025,6 +2049,7 @@ exports.MsgMoveThread = {
|
|
|
2025
2049
|
obj.root_id = message.rootId !== BigInt(0) ? message.rootId?.toString() : undefined;
|
|
2026
2050
|
obj.new_category_id = message.newCategoryId !== BigInt(0) ? message.newCategoryId?.toString() : undefined;
|
|
2027
2051
|
obj.reason = message.reason === "" ? undefined : message.reason;
|
|
2052
|
+
obj.authority = message.authority === 0 ? undefined : message.authority;
|
|
2028
2053
|
return obj;
|
|
2029
2054
|
},
|
|
2030
2055
|
fromAminoMsg(object) {
|
|
@@ -110,6 +110,12 @@ export interface PinnedReplyRecord {
|
|
|
110
110
|
isSentinelPin: boolean;
|
|
111
111
|
disputed: boolean;
|
|
112
112
|
initiativeId: bigint;
|
|
113
|
+
/**
|
|
114
|
+
* committed_amount is the sentinel bond (in udream, as a string) reserved at
|
|
115
|
+
* pin time, released on an upheld dispute and available to slash on an
|
|
116
|
+
* overturn. Empty for governance-authority pins (no bond reserved).
|
|
117
|
+
*/
|
|
118
|
+
committedAmount: string;
|
|
113
119
|
}
|
|
114
120
|
export interface PinnedReplyRecordProtoMsg {
|
|
115
121
|
typeUrl: "/sparkdream.forum.v1.PinnedReplyRecord";
|
|
@@ -128,6 +134,12 @@ export interface PinnedReplyRecordAmino {
|
|
|
128
134
|
is_sentinel_pin?: boolean;
|
|
129
135
|
disputed?: boolean;
|
|
130
136
|
initiative_id?: string;
|
|
137
|
+
/**
|
|
138
|
+
* committed_amount is the sentinel bond (in udream, as a string) reserved at
|
|
139
|
+
* pin time, released on an upheld dispute and available to slash on an
|
|
140
|
+
* overturn. Empty for governance-authority pins (no bond reserved).
|
|
141
|
+
*/
|
|
142
|
+
committed_amount?: string;
|
|
131
143
|
}
|
|
132
144
|
export interface PinnedReplyRecordAminoMsg {
|
|
133
145
|
type: "/sparkdream.forum.v1.PinnedReplyRecord";
|
|
@@ -430,7 +430,8 @@ function createBasePinnedReplyRecord() {
|
|
|
430
430
|
pinnedAt: BigInt(0),
|
|
431
431
|
isSentinelPin: false,
|
|
432
432
|
disputed: false,
|
|
433
|
-
initiativeId: BigInt(0)
|
|
433
|
+
initiativeId: BigInt(0),
|
|
434
|
+
committedAmount: ""
|
|
434
435
|
};
|
|
435
436
|
}
|
|
436
437
|
/**
|
|
@@ -460,6 +461,9 @@ exports.PinnedReplyRecord = {
|
|
|
460
461
|
if (message.initiativeId !== BigInt(0)) {
|
|
461
462
|
writer.uint32(48).uint64(message.initiativeId);
|
|
462
463
|
}
|
|
464
|
+
if (message.committedAmount !== "") {
|
|
465
|
+
writer.uint32(58).string(message.committedAmount);
|
|
466
|
+
}
|
|
463
467
|
return writer;
|
|
464
468
|
},
|
|
465
469
|
decode(input, length) {
|
|
@@ -487,6 +491,9 @@ exports.PinnedReplyRecord = {
|
|
|
487
491
|
case 6:
|
|
488
492
|
message.initiativeId = reader.uint64();
|
|
489
493
|
break;
|
|
494
|
+
case 7:
|
|
495
|
+
message.committedAmount = reader.string();
|
|
496
|
+
break;
|
|
490
497
|
default:
|
|
491
498
|
reader.skipType(tag & 7);
|
|
492
499
|
break;
|
|
@@ -502,6 +509,7 @@ exports.PinnedReplyRecord = {
|
|
|
502
509
|
message.isSentinelPin = object.isSentinelPin ?? false;
|
|
503
510
|
message.disputed = object.disputed ?? false;
|
|
504
511
|
message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
|
|
512
|
+
message.committedAmount = object.committedAmount ?? "";
|
|
505
513
|
return message;
|
|
506
514
|
},
|
|
507
515
|
fromAmino(object) {
|
|
@@ -524,6 +532,9 @@ exports.PinnedReplyRecord = {
|
|
|
524
532
|
if (object.initiative_id !== undefined && object.initiative_id !== null) {
|
|
525
533
|
message.initiativeId = BigInt(object.initiative_id);
|
|
526
534
|
}
|
|
535
|
+
if (object.committed_amount !== undefined && object.committed_amount !== null) {
|
|
536
|
+
message.committedAmount = object.committed_amount;
|
|
537
|
+
}
|
|
527
538
|
return message;
|
|
528
539
|
},
|
|
529
540
|
toAmino(message) {
|
|
@@ -534,6 +545,7 @@ exports.PinnedReplyRecord = {
|
|
|
534
545
|
obj.is_sentinel_pin = message.isSentinelPin === false ? undefined : message.isSentinelPin;
|
|
535
546
|
obj.disputed = message.disputed === false ? undefined : message.disputed;
|
|
536
547
|
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
548
|
+
obj.committed_amount = message.committedAmount === "" ? undefined : message.committedAmount;
|
|
537
549
|
return obj;
|
|
538
550
|
},
|
|
539
551
|
fromAminoMsg(object) {
|
|
@@ -8,6 +8,8 @@ export declare enum GovActionType {
|
|
|
8
8
|
GOV_ACTION_TYPE_FORUM_PAUSE = 5,
|
|
9
9
|
GOV_ACTION_TYPE_THREAD_LOCK = 6,
|
|
10
10
|
GOV_ACTION_TYPE_THREAD_MOVE = 7,
|
|
11
|
+
GOV_ACTION_TYPE_REPLY_PIN = 8,
|
|
12
|
+
GOV_ACTION_TYPE_POST_HIDE = 9,
|
|
11
13
|
UNRECOGNIZED = -1
|
|
12
14
|
}
|
|
13
15
|
export declare const GovActionTypeAmino: typeof GovActionType;
|
|
@@ -19,6 +19,8 @@ var GovActionType;
|
|
|
19
19
|
GovActionType[GovActionType["GOV_ACTION_TYPE_FORUM_PAUSE"] = 5] = "GOV_ACTION_TYPE_FORUM_PAUSE";
|
|
20
20
|
GovActionType[GovActionType["GOV_ACTION_TYPE_THREAD_LOCK"] = 6] = "GOV_ACTION_TYPE_THREAD_LOCK";
|
|
21
21
|
GovActionType[GovActionType["GOV_ACTION_TYPE_THREAD_MOVE"] = 7] = "GOV_ACTION_TYPE_THREAD_MOVE";
|
|
22
|
+
GovActionType[GovActionType["GOV_ACTION_TYPE_REPLY_PIN"] = 8] = "GOV_ACTION_TYPE_REPLY_PIN";
|
|
23
|
+
GovActionType[GovActionType["GOV_ACTION_TYPE_POST_HIDE"] = 9] = "GOV_ACTION_TYPE_POST_HIDE";
|
|
22
24
|
GovActionType[GovActionType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
23
25
|
})(GovActionType || (exports.GovActionType = GovActionType = {}));
|
|
24
26
|
exports.GovActionTypeAmino = GovActionType;
|
|
@@ -48,6 +50,12 @@ function govActionTypeFromJSON(object) {
|
|
|
48
50
|
case 7:
|
|
49
51
|
case "GOV_ACTION_TYPE_THREAD_MOVE":
|
|
50
52
|
return GovActionType.GOV_ACTION_TYPE_THREAD_MOVE;
|
|
53
|
+
case 8:
|
|
54
|
+
case "GOV_ACTION_TYPE_REPLY_PIN":
|
|
55
|
+
return GovActionType.GOV_ACTION_TYPE_REPLY_PIN;
|
|
56
|
+
case 9:
|
|
57
|
+
case "GOV_ACTION_TYPE_POST_HIDE":
|
|
58
|
+
return GovActionType.GOV_ACTION_TYPE_POST_HIDE;
|
|
51
59
|
case -1:
|
|
52
60
|
case "UNRECOGNIZED":
|
|
53
61
|
default:
|
|
@@ -72,6 +80,10 @@ function govActionTypeToJSON(object) {
|
|
|
72
80
|
return "GOV_ACTION_TYPE_THREAD_LOCK";
|
|
73
81
|
case GovActionType.GOV_ACTION_TYPE_THREAD_MOVE:
|
|
74
82
|
return "GOV_ACTION_TYPE_THREAD_MOVE";
|
|
83
|
+
case GovActionType.GOV_ACTION_TYPE_REPLY_PIN:
|
|
84
|
+
return "GOV_ACTION_TYPE_REPLY_PIN";
|
|
85
|
+
case GovActionType.GOV_ACTION_TYPE_POST_HIDE:
|
|
86
|
+
return "GOV_ACTION_TYPE_POST_HIDE";
|
|
75
87
|
case GovActionType.UNRECOGNIZED:
|
|
76
88
|
default:
|
|
77
89
|
return "UNRECOGNIZED";
|