@sparkdreamnft/sparkdreamjs 0.0.24 → 0.0.26
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/genesis.js +110 -1
- package/esm/sparkdream/forum/v1/params.js +74 -2
- package/esm/sparkdream/forum/v1/sentinel_activity.js +160 -1
- package/esm/sparkdream/forum/v1/thread_metadata.js +37 -1
- package/esm/sparkdream/forum/v1/tx.js +156 -0
- package/esm/sparkdream/forum/v1/tx.registry.js +20 -2
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +7 -1
- package/esm/sparkdream/rep/v1/params.js +24 -0
- package/esm/sparkdream/rep/v1/tx.js +159 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +20 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +8 -1
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +100 -0
- package/sparkdream/forum/v1/genesis.d.ts +65 -0
- package/sparkdream/forum/v1/genesis.js +111 -2
- package/sparkdream/forum/v1/params.d.ts +78 -0
- package/sparkdream/forum/v1/params.js +74 -2
- package/sparkdream/forum/v1/sentinel_activity.d.ts +125 -0
- package/sparkdream/forum/v1/sentinel_activity.js +161 -2
- package/sparkdream/forum/v1/thread_metadata.d.ts +48 -0
- package/sparkdream/forum/v1/thread_metadata.js +37 -1
- package/sparkdream/forum/v1/tx.d.ts +92 -6
- package/sparkdream/forum/v1/tx.js +157 -1
- package/sparkdream/forum/v1/tx.registry.d.ts +13 -1
- package/sparkdream/forum/v1/tx.registry.js +19 -1
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +4 -1
- package/sparkdream/forum/v1/tx.rpc.msg.js +6 -0
- package/sparkdream/rep/v1/params.d.ts +24 -0
- package/sparkdream/rep/v1/params.js +24 -0
- package/sparkdream/rep/v1/tx.d.ts +101 -0
- package/sparkdream/rep/v1/tx.js +160 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +13 -1
- package/sparkdream/rep/v1/tx.registry.js +19 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +7 -0
|
@@ -13,8 +13,11 @@ function createBaseThreadMetadata() {
|
|
|
13
13
|
proposedReplyId: BigInt(0),
|
|
14
14
|
proposedBy: "",
|
|
15
15
|
proposedAt: BigInt(0),
|
|
16
|
+
proposalExtended: false,
|
|
17
|
+
proposalFireAt: BigInt(0),
|
|
16
18
|
pinnedReplyIds: [],
|
|
17
|
-
pinnedRecords: []
|
|
19
|
+
pinnedRecords: [],
|
|
20
|
+
proposalsLocked: false
|
|
18
21
|
};
|
|
19
22
|
}
|
|
20
23
|
/**
|
|
@@ -47,6 +50,12 @@ exports.ThreadMetadata = {
|
|
|
47
50
|
if (message.proposedAt !== BigInt(0)) {
|
|
48
51
|
writer.uint32(56).int64(message.proposedAt);
|
|
49
52
|
}
|
|
53
|
+
if (message.proposalExtended === true) {
|
|
54
|
+
writer.uint32(64).bool(message.proposalExtended);
|
|
55
|
+
}
|
|
56
|
+
if (message.proposalFireAt !== BigInt(0)) {
|
|
57
|
+
writer.uint32(72).int64(message.proposalFireAt);
|
|
58
|
+
}
|
|
50
59
|
writer.uint32(82).fork();
|
|
51
60
|
for (const v of message.pinnedReplyIds) {
|
|
52
61
|
writer.uint64(v);
|
|
@@ -55,6 +64,9 @@ exports.ThreadMetadata = {
|
|
|
55
64
|
for (const v of message.pinnedRecords) {
|
|
56
65
|
types_1.PinnedReplyRecord.encode(v, writer.uint32(90).fork()).ldelim();
|
|
57
66
|
}
|
|
67
|
+
if (message.proposalsLocked === true) {
|
|
68
|
+
writer.uint32(96).bool(message.proposalsLocked);
|
|
69
|
+
}
|
|
58
70
|
return writer;
|
|
59
71
|
},
|
|
60
72
|
decode(input, length) {
|
|
@@ -85,6 +97,12 @@ exports.ThreadMetadata = {
|
|
|
85
97
|
case 7:
|
|
86
98
|
message.proposedAt = reader.int64();
|
|
87
99
|
break;
|
|
100
|
+
case 8:
|
|
101
|
+
message.proposalExtended = reader.bool();
|
|
102
|
+
break;
|
|
103
|
+
case 9:
|
|
104
|
+
message.proposalFireAt = reader.int64();
|
|
105
|
+
break;
|
|
88
106
|
case 10:
|
|
89
107
|
if ((tag & 7) === 2) {
|
|
90
108
|
const end2 = reader.uint32() + reader.pos;
|
|
@@ -99,6 +117,9 @@ exports.ThreadMetadata = {
|
|
|
99
117
|
case 11:
|
|
100
118
|
message.pinnedRecords.push(types_1.PinnedReplyRecord.decode(reader, reader.uint32()));
|
|
101
119
|
break;
|
|
120
|
+
case 12:
|
|
121
|
+
message.proposalsLocked = reader.bool();
|
|
122
|
+
break;
|
|
102
123
|
default:
|
|
103
124
|
reader.skipType(tag & 7);
|
|
104
125
|
break;
|
|
@@ -115,8 +136,11 @@ exports.ThreadMetadata = {
|
|
|
115
136
|
message.proposedReplyId = object.proposedReplyId !== undefined && object.proposedReplyId !== null ? BigInt(object.proposedReplyId.toString()) : BigInt(0);
|
|
116
137
|
message.proposedBy = object.proposedBy ?? "";
|
|
117
138
|
message.proposedAt = object.proposedAt !== undefined && object.proposedAt !== null ? BigInt(object.proposedAt.toString()) : BigInt(0);
|
|
139
|
+
message.proposalExtended = object.proposalExtended ?? false;
|
|
140
|
+
message.proposalFireAt = object.proposalFireAt !== undefined && object.proposalFireAt !== null ? BigInt(object.proposalFireAt.toString()) : BigInt(0);
|
|
118
141
|
message.pinnedReplyIds = object.pinnedReplyIds?.map(e => BigInt(e.toString())) || [];
|
|
119
142
|
message.pinnedRecords = object.pinnedRecords?.map(e => types_1.PinnedReplyRecord.fromPartial(e)) || [];
|
|
143
|
+
message.proposalsLocked = object.proposalsLocked ?? false;
|
|
120
144
|
return message;
|
|
121
145
|
},
|
|
122
146
|
fromAmino(object) {
|
|
@@ -142,8 +166,17 @@ exports.ThreadMetadata = {
|
|
|
142
166
|
if (object.proposed_at !== undefined && object.proposed_at !== null) {
|
|
143
167
|
message.proposedAt = BigInt(object.proposed_at);
|
|
144
168
|
}
|
|
169
|
+
if (object.proposal_extended !== undefined && object.proposal_extended !== null) {
|
|
170
|
+
message.proposalExtended = object.proposal_extended;
|
|
171
|
+
}
|
|
172
|
+
if (object.proposal_fire_at !== undefined && object.proposal_fire_at !== null) {
|
|
173
|
+
message.proposalFireAt = BigInt(object.proposal_fire_at);
|
|
174
|
+
}
|
|
145
175
|
message.pinnedReplyIds = object.pinned_reply_ids?.map(e => BigInt(e)) || [];
|
|
146
176
|
message.pinnedRecords = object.pinned_records?.map(e => types_1.PinnedReplyRecord.fromAmino(e)) || [];
|
|
177
|
+
if (object.proposals_locked !== undefined && object.proposals_locked !== null) {
|
|
178
|
+
message.proposalsLocked = object.proposals_locked;
|
|
179
|
+
}
|
|
147
180
|
return message;
|
|
148
181
|
},
|
|
149
182
|
toAmino(message) {
|
|
@@ -155,6 +188,8 @@ exports.ThreadMetadata = {
|
|
|
155
188
|
obj.proposed_reply_id = message.proposedReplyId !== BigInt(0) ? message.proposedReplyId?.toString() : undefined;
|
|
156
189
|
obj.proposed_by = message.proposedBy === "" ? undefined : message.proposedBy;
|
|
157
190
|
obj.proposed_at = message.proposedAt !== BigInt(0) ? message.proposedAt?.toString() : undefined;
|
|
191
|
+
obj.proposal_extended = message.proposalExtended === false ? undefined : message.proposalExtended;
|
|
192
|
+
obj.proposal_fire_at = message.proposalFireAt !== BigInt(0) ? message.proposalFireAt?.toString() : undefined;
|
|
158
193
|
if (message.pinnedReplyIds) {
|
|
159
194
|
obj.pinned_reply_ids = message.pinnedReplyIds.map(e => e.toString());
|
|
160
195
|
}
|
|
@@ -167,6 +202,7 @@ exports.ThreadMetadata = {
|
|
|
167
202
|
else {
|
|
168
203
|
obj.pinned_records = message.pinnedRecords;
|
|
169
204
|
}
|
|
205
|
+
obj.proposals_locked = message.proposalsLocked === false ? undefined : message.proposalsLocked;
|
|
170
206
|
return obj;
|
|
171
207
|
},
|
|
172
208
|
fromAminoMsg(object) {
|
|
@@ -187,9 +187,6 @@ export interface MsgCreatePost {
|
|
|
187
187
|
content: string;
|
|
188
188
|
tags: string[];
|
|
189
189
|
contentType: ContentType;
|
|
190
|
-
/**
|
|
191
|
-
* Optional DREAM amount to lock as author bond
|
|
192
|
-
*/
|
|
193
190
|
authorBond?: string;
|
|
194
191
|
initiativeId: bigint;
|
|
195
192
|
}
|
|
@@ -210,9 +207,6 @@ export interface MsgCreatePostAmino {
|
|
|
210
207
|
content?: string;
|
|
211
208
|
tags?: string[];
|
|
212
209
|
content_type?: ContentType;
|
|
213
|
-
/**
|
|
214
|
-
* Optional DREAM amount to lock as author bond
|
|
215
|
-
*/
|
|
216
210
|
author_bond?: string;
|
|
217
211
|
initiative_id?: string;
|
|
218
212
|
}
|
|
@@ -2210,6 +2204,60 @@ export interface MsgSetModerationPausedResponseAminoMsg {
|
|
|
2210
2204
|
type: "/sparkdream.forum.v1.MsgSetModerationPausedResponse";
|
|
2211
2205
|
value: MsgSetModerationPausedResponseAmino;
|
|
2212
2206
|
}
|
|
2207
|
+
/**
|
|
2208
|
+
* MsgSetThreadProposalsLock defines the MsgSetThreadProposalsLock message.
|
|
2209
|
+
* @name MsgSetThreadProposalsLock
|
|
2210
|
+
* @package sparkdream.forum.v1
|
|
2211
|
+
* @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLock
|
|
2212
|
+
*/
|
|
2213
|
+
export interface MsgSetThreadProposalsLock {
|
|
2214
|
+
creator: string;
|
|
2215
|
+
threadId: bigint;
|
|
2216
|
+
locked: boolean;
|
|
2217
|
+
}
|
|
2218
|
+
export interface MsgSetThreadProposalsLockProtoMsg {
|
|
2219
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock";
|
|
2220
|
+
value: Uint8Array;
|
|
2221
|
+
}
|
|
2222
|
+
/**
|
|
2223
|
+
* MsgSetThreadProposalsLock defines the MsgSetThreadProposalsLock message.
|
|
2224
|
+
* @name MsgSetThreadProposalsLockAmino
|
|
2225
|
+
* @package sparkdream.forum.v1
|
|
2226
|
+
* @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLock
|
|
2227
|
+
*/
|
|
2228
|
+
export interface MsgSetThreadProposalsLockAmino {
|
|
2229
|
+
creator?: string;
|
|
2230
|
+
thread_id?: string;
|
|
2231
|
+
locked?: boolean;
|
|
2232
|
+
}
|
|
2233
|
+
export interface MsgSetThreadProposalsLockAminoMsg {
|
|
2234
|
+
type: "sparkdream/x/forum/MsgSetThreadProposalsLock";
|
|
2235
|
+
value: MsgSetThreadProposalsLockAmino;
|
|
2236
|
+
}
|
|
2237
|
+
/**
|
|
2238
|
+
* MsgSetThreadProposalsLockResponse defines the MsgSetThreadProposalsLockResponse message.
|
|
2239
|
+
* @name MsgSetThreadProposalsLockResponse
|
|
2240
|
+
* @package sparkdream.forum.v1
|
|
2241
|
+
* @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLockResponse
|
|
2242
|
+
*/
|
|
2243
|
+
export interface MsgSetThreadProposalsLockResponse {
|
|
2244
|
+
}
|
|
2245
|
+
export interface MsgSetThreadProposalsLockResponseProtoMsg {
|
|
2246
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLockResponse";
|
|
2247
|
+
value: Uint8Array;
|
|
2248
|
+
}
|
|
2249
|
+
/**
|
|
2250
|
+
* MsgSetThreadProposalsLockResponse defines the MsgSetThreadProposalsLockResponse message.
|
|
2251
|
+
* @name MsgSetThreadProposalsLockResponseAmino
|
|
2252
|
+
* @package sparkdream.forum.v1
|
|
2253
|
+
* @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLockResponse
|
|
2254
|
+
*/
|
|
2255
|
+
export interface MsgSetThreadProposalsLockResponseAmino {
|
|
2256
|
+
}
|
|
2257
|
+
export interface MsgSetThreadProposalsLockResponseAminoMsg {
|
|
2258
|
+
type: "/sparkdream.forum.v1.MsgSetThreadProposalsLockResponse";
|
|
2259
|
+
value: MsgSetThreadProposalsLockResponseAmino;
|
|
2260
|
+
}
|
|
2213
2261
|
/**
|
|
2214
2262
|
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
2215
2263
|
* @name MsgUpdateParams
|
|
@@ -3698,3 +3746,41 @@ export declare const MsgSetModerationPausedResponse: {
|
|
|
3698
3746
|
toProto(message: MsgSetModerationPausedResponse): Uint8Array;
|
|
3699
3747
|
toProtoMsg(message: MsgSetModerationPausedResponse): MsgSetModerationPausedResponseProtoMsg;
|
|
3700
3748
|
};
|
|
3749
|
+
/**
|
|
3750
|
+
* MsgSetThreadProposalsLock defines the MsgSetThreadProposalsLock message.
|
|
3751
|
+
* @name MsgSetThreadProposalsLock
|
|
3752
|
+
* @package sparkdream.forum.v1
|
|
3753
|
+
* @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLock
|
|
3754
|
+
*/
|
|
3755
|
+
export declare const MsgSetThreadProposalsLock: {
|
|
3756
|
+
typeUrl: string;
|
|
3757
|
+
aminoType: string;
|
|
3758
|
+
encode(message: MsgSetThreadProposalsLock, writer?: BinaryWriter): BinaryWriter;
|
|
3759
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgSetThreadProposalsLock;
|
|
3760
|
+
fromPartial(object: DeepPartial<MsgSetThreadProposalsLock>): MsgSetThreadProposalsLock;
|
|
3761
|
+
fromAmino(object: MsgSetThreadProposalsLockAmino): MsgSetThreadProposalsLock;
|
|
3762
|
+
toAmino(message: MsgSetThreadProposalsLock): MsgSetThreadProposalsLockAmino;
|
|
3763
|
+
fromAminoMsg(object: MsgSetThreadProposalsLockAminoMsg): MsgSetThreadProposalsLock;
|
|
3764
|
+
toAminoMsg(message: MsgSetThreadProposalsLock): MsgSetThreadProposalsLockAminoMsg;
|
|
3765
|
+
fromProtoMsg(message: MsgSetThreadProposalsLockProtoMsg): MsgSetThreadProposalsLock;
|
|
3766
|
+
toProto(message: MsgSetThreadProposalsLock): Uint8Array;
|
|
3767
|
+
toProtoMsg(message: MsgSetThreadProposalsLock): MsgSetThreadProposalsLockProtoMsg;
|
|
3768
|
+
};
|
|
3769
|
+
/**
|
|
3770
|
+
* MsgSetThreadProposalsLockResponse defines the MsgSetThreadProposalsLockResponse message.
|
|
3771
|
+
* @name MsgSetThreadProposalsLockResponse
|
|
3772
|
+
* @package sparkdream.forum.v1
|
|
3773
|
+
* @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLockResponse
|
|
3774
|
+
*/
|
|
3775
|
+
export declare const MsgSetThreadProposalsLockResponse: {
|
|
3776
|
+
typeUrl: string;
|
|
3777
|
+
encode(_: MsgSetThreadProposalsLockResponse, writer?: BinaryWriter): BinaryWriter;
|
|
3778
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgSetThreadProposalsLockResponse;
|
|
3779
|
+
fromPartial(_: DeepPartial<MsgSetThreadProposalsLockResponse>): MsgSetThreadProposalsLockResponse;
|
|
3780
|
+
fromAmino(_: MsgSetThreadProposalsLockResponseAmino): MsgSetThreadProposalsLockResponse;
|
|
3781
|
+
toAmino(_: MsgSetThreadProposalsLockResponse): MsgSetThreadProposalsLockResponseAmino;
|
|
3782
|
+
fromAminoMsg(object: MsgSetThreadProposalsLockResponseAminoMsg): MsgSetThreadProposalsLockResponse;
|
|
3783
|
+
fromProtoMsg(message: MsgSetThreadProposalsLockResponseProtoMsg): MsgSetThreadProposalsLockResponse;
|
|
3784
|
+
toProto(message: MsgSetThreadProposalsLockResponse): Uint8Array;
|
|
3785
|
+
toProtoMsg(message: MsgSetThreadProposalsLockResponse): MsgSetThreadProposalsLockResponseProtoMsg;
|
|
3786
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
|
-
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;
|
|
4
|
+
exports.MsgSetThreadProposalsLockResponse = exports.MsgSetThreadProposalsLock = 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
5
|
exports.moderationAuthorityFromJSON = moderationAuthorityFromJSON;
|
|
6
6
|
exports.moderationAuthorityToJSON = moderationAuthorityToJSON;
|
|
7
7
|
//@ts-nocheck
|
|
@@ -6105,3 +6105,159 @@ exports.MsgSetModerationPausedResponse = {
|
|
|
6105
6105
|
};
|
|
6106
6106
|
}
|
|
6107
6107
|
};
|
|
6108
|
+
function createBaseMsgSetThreadProposalsLock() {
|
|
6109
|
+
return {
|
|
6110
|
+
creator: "",
|
|
6111
|
+
threadId: BigInt(0),
|
|
6112
|
+
locked: false
|
|
6113
|
+
};
|
|
6114
|
+
}
|
|
6115
|
+
/**
|
|
6116
|
+
* MsgSetThreadProposalsLock defines the MsgSetThreadProposalsLock message.
|
|
6117
|
+
* @name MsgSetThreadProposalsLock
|
|
6118
|
+
* @package sparkdream.forum.v1
|
|
6119
|
+
* @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLock
|
|
6120
|
+
*/
|
|
6121
|
+
exports.MsgSetThreadProposalsLock = {
|
|
6122
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
|
|
6123
|
+
aminoType: "sparkdream/x/forum/MsgSetThreadProposalsLock",
|
|
6124
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
6125
|
+
if (message.creator !== "") {
|
|
6126
|
+
writer.uint32(10).string(message.creator);
|
|
6127
|
+
}
|
|
6128
|
+
if (message.threadId !== BigInt(0)) {
|
|
6129
|
+
writer.uint32(16).uint64(message.threadId);
|
|
6130
|
+
}
|
|
6131
|
+
if (message.locked === true) {
|
|
6132
|
+
writer.uint32(24).bool(message.locked);
|
|
6133
|
+
}
|
|
6134
|
+
return writer;
|
|
6135
|
+
},
|
|
6136
|
+
decode(input, length) {
|
|
6137
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
6138
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6139
|
+
const message = createBaseMsgSetThreadProposalsLock();
|
|
6140
|
+
while (reader.pos < end) {
|
|
6141
|
+
const tag = reader.uint32();
|
|
6142
|
+
switch (tag >>> 3) {
|
|
6143
|
+
case 1:
|
|
6144
|
+
message.creator = reader.string();
|
|
6145
|
+
break;
|
|
6146
|
+
case 2:
|
|
6147
|
+
message.threadId = reader.uint64();
|
|
6148
|
+
break;
|
|
6149
|
+
case 3:
|
|
6150
|
+
message.locked = reader.bool();
|
|
6151
|
+
break;
|
|
6152
|
+
default:
|
|
6153
|
+
reader.skipType(tag & 7);
|
|
6154
|
+
break;
|
|
6155
|
+
}
|
|
6156
|
+
}
|
|
6157
|
+
return message;
|
|
6158
|
+
},
|
|
6159
|
+
fromPartial(object) {
|
|
6160
|
+
const message = createBaseMsgSetThreadProposalsLock();
|
|
6161
|
+
message.creator = object.creator ?? "";
|
|
6162
|
+
message.threadId = object.threadId !== undefined && object.threadId !== null ? BigInt(object.threadId.toString()) : BigInt(0);
|
|
6163
|
+
message.locked = object.locked ?? false;
|
|
6164
|
+
return message;
|
|
6165
|
+
},
|
|
6166
|
+
fromAmino(object) {
|
|
6167
|
+
const message = createBaseMsgSetThreadProposalsLock();
|
|
6168
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
6169
|
+
message.creator = object.creator;
|
|
6170
|
+
}
|
|
6171
|
+
if (object.thread_id !== undefined && object.thread_id !== null) {
|
|
6172
|
+
message.threadId = BigInt(object.thread_id);
|
|
6173
|
+
}
|
|
6174
|
+
if (object.locked !== undefined && object.locked !== null) {
|
|
6175
|
+
message.locked = object.locked;
|
|
6176
|
+
}
|
|
6177
|
+
return message;
|
|
6178
|
+
},
|
|
6179
|
+
toAmino(message) {
|
|
6180
|
+
const obj = {};
|
|
6181
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
6182
|
+
obj.thread_id = message.threadId !== BigInt(0) ? message.threadId?.toString() : undefined;
|
|
6183
|
+
obj.locked = message.locked === false ? undefined : message.locked;
|
|
6184
|
+
return obj;
|
|
6185
|
+
},
|
|
6186
|
+
fromAminoMsg(object) {
|
|
6187
|
+
return exports.MsgSetThreadProposalsLock.fromAmino(object.value);
|
|
6188
|
+
},
|
|
6189
|
+
toAminoMsg(message) {
|
|
6190
|
+
return {
|
|
6191
|
+
type: "sparkdream/x/forum/MsgSetThreadProposalsLock",
|
|
6192
|
+
value: exports.MsgSetThreadProposalsLock.toAmino(message)
|
|
6193
|
+
};
|
|
6194
|
+
},
|
|
6195
|
+
fromProtoMsg(message) {
|
|
6196
|
+
return exports.MsgSetThreadProposalsLock.decode(message.value);
|
|
6197
|
+
},
|
|
6198
|
+
toProto(message) {
|
|
6199
|
+
return exports.MsgSetThreadProposalsLock.encode(message).finish();
|
|
6200
|
+
},
|
|
6201
|
+
toProtoMsg(message) {
|
|
6202
|
+
return {
|
|
6203
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
|
|
6204
|
+
value: exports.MsgSetThreadProposalsLock.encode(message).finish()
|
|
6205
|
+
};
|
|
6206
|
+
}
|
|
6207
|
+
};
|
|
6208
|
+
function createBaseMsgSetThreadProposalsLockResponse() {
|
|
6209
|
+
return {};
|
|
6210
|
+
}
|
|
6211
|
+
/**
|
|
6212
|
+
* MsgSetThreadProposalsLockResponse defines the MsgSetThreadProposalsLockResponse message.
|
|
6213
|
+
* @name MsgSetThreadProposalsLockResponse
|
|
6214
|
+
* @package sparkdream.forum.v1
|
|
6215
|
+
* @see proto type: sparkdream.forum.v1.MsgSetThreadProposalsLockResponse
|
|
6216
|
+
*/
|
|
6217
|
+
exports.MsgSetThreadProposalsLockResponse = {
|
|
6218
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLockResponse",
|
|
6219
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
6220
|
+
return writer;
|
|
6221
|
+
},
|
|
6222
|
+
decode(input, length) {
|
|
6223
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
6224
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6225
|
+
const message = createBaseMsgSetThreadProposalsLockResponse();
|
|
6226
|
+
while (reader.pos < end) {
|
|
6227
|
+
const tag = reader.uint32();
|
|
6228
|
+
switch (tag >>> 3) {
|
|
6229
|
+
default:
|
|
6230
|
+
reader.skipType(tag & 7);
|
|
6231
|
+
break;
|
|
6232
|
+
}
|
|
6233
|
+
}
|
|
6234
|
+
return message;
|
|
6235
|
+
},
|
|
6236
|
+
fromPartial(_) {
|
|
6237
|
+
const message = createBaseMsgSetThreadProposalsLockResponse();
|
|
6238
|
+
return message;
|
|
6239
|
+
},
|
|
6240
|
+
fromAmino(_) {
|
|
6241
|
+
const message = createBaseMsgSetThreadProposalsLockResponse();
|
|
6242
|
+
return message;
|
|
6243
|
+
},
|
|
6244
|
+
toAmino(_) {
|
|
6245
|
+
const obj = {};
|
|
6246
|
+
return obj;
|
|
6247
|
+
},
|
|
6248
|
+
fromAminoMsg(object) {
|
|
6249
|
+
return exports.MsgSetThreadProposalsLockResponse.fromAmino(object.value);
|
|
6250
|
+
},
|
|
6251
|
+
fromProtoMsg(message) {
|
|
6252
|
+
return exports.MsgSetThreadProposalsLockResponse.decode(message.value);
|
|
6253
|
+
},
|
|
6254
|
+
toProto(message) {
|
|
6255
|
+
return exports.MsgSetThreadProposalsLockResponse.encode(message).finish();
|
|
6256
|
+
},
|
|
6257
|
+
toProtoMsg(message) {
|
|
6258
|
+
return {
|
|
6259
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLockResponse",
|
|
6260
|
+
value: exports.MsgSetThreadProposalsLockResponse.encode(message).finish()
|
|
6261
|
+
};
|
|
6262
|
+
}
|
|
6263
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TelescopeGeneratedType } from "../../../types";
|
|
2
2
|
import { Registry } from "@cosmjs/proto-signing";
|
|
3
|
-
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgMakePostPermanent, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgStakePostConviction, MsgReleasePostConviction, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgUnhidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused } from "./tx";
|
|
3
|
+
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgMakePostPermanent, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgStakePostConviction, MsgReleasePostConviction, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgUnhidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused, MsgSetThreadProposalsLock } from "./tx";
|
|
4
4
|
export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
|
|
5
5
|
export declare const load: (protoRegistry: Registry) => void;
|
|
6
6
|
export declare const MessageComposer: {
|
|
@@ -161,6 +161,10 @@ export declare const MessageComposer: {
|
|
|
161
161
|
typeUrl: string;
|
|
162
162
|
value: Uint8Array<ArrayBufferLike>;
|
|
163
163
|
};
|
|
164
|
+
setThreadProposalsLock(value: MsgSetThreadProposalsLock): {
|
|
165
|
+
typeUrl: string;
|
|
166
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
167
|
+
};
|
|
164
168
|
};
|
|
165
169
|
withTypeUrl: {
|
|
166
170
|
updateParams(value: MsgUpdateParams): {
|
|
@@ -319,6 +323,10 @@ export declare const MessageComposer: {
|
|
|
319
323
|
typeUrl: string;
|
|
320
324
|
value: MsgSetModerationPaused;
|
|
321
325
|
};
|
|
326
|
+
setThreadProposalsLock(value: MsgSetThreadProposalsLock): {
|
|
327
|
+
typeUrl: string;
|
|
328
|
+
value: MsgSetThreadProposalsLock;
|
|
329
|
+
};
|
|
322
330
|
};
|
|
323
331
|
fromPartial: {
|
|
324
332
|
updateParams(value: MsgUpdateParams): {
|
|
@@ -477,5 +485,9 @@ export declare const MessageComposer: {
|
|
|
477
485
|
typeUrl: string;
|
|
478
486
|
value: MsgSetModerationPaused;
|
|
479
487
|
};
|
|
488
|
+
setThreadProposalsLock(value: MsgSetThreadProposalsLock): {
|
|
489
|
+
typeUrl: string;
|
|
490
|
+
value: MsgSetThreadProposalsLock;
|
|
491
|
+
};
|
|
480
492
|
};
|
|
481
493
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MessageComposer = exports.load = exports.registry = void 0;
|
|
4
4
|
const tx_1 = require("./tx");
|
|
5
|
-
exports.registry = [["/sparkdream.forum.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", tx_1.MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", tx_1.MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", tx_1.MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", tx_1.MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", tx_1.MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", tx_1.MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", tx_1.MsgUnpinPost], ["/sparkdream.forum.v1.MsgMakePostPermanent", tx_1.MsgMakePostPermanent], ["/sparkdream.forum.v1.MsgLockThread", tx_1.MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", tx_1.MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", tx_1.MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", tx_1.MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", tx_1.MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", tx_1.MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", tx_1.MsgDownvotePost], ["/sparkdream.forum.v1.MsgStakePostConviction", tx_1.MsgStakePostConviction], ["/sparkdream.forum.v1.MsgReleasePostConviction", tx_1.MsgReleasePostConviction], ["/sparkdream.forum.v1.MsgFlagPost", tx_1.MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", tx_1.MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", tx_1.MsgHidePost], ["/sparkdream.forum.v1.MsgUnhidePost", tx_1.MsgUnhidePost], ["/sparkdream.forum.v1.MsgAppealPost", tx_1.MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", tx_1.MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", tx_1.MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", tx_1.MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", tx_1.MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", tx_1.MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", tx_1.MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", tx_1.MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", tx_1.MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", tx_1.MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", tx_1.MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", tx_1.MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", tx_1.MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", tx_1.MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", tx_1.MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", tx_1.MsgSetModerationPaused]];
|
|
5
|
+
exports.registry = [["/sparkdream.forum.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", tx_1.MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", tx_1.MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", tx_1.MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", tx_1.MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", tx_1.MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", tx_1.MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", tx_1.MsgUnpinPost], ["/sparkdream.forum.v1.MsgMakePostPermanent", tx_1.MsgMakePostPermanent], ["/sparkdream.forum.v1.MsgLockThread", tx_1.MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", tx_1.MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", tx_1.MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", tx_1.MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", tx_1.MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", tx_1.MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", tx_1.MsgDownvotePost], ["/sparkdream.forum.v1.MsgStakePostConviction", tx_1.MsgStakePostConviction], ["/sparkdream.forum.v1.MsgReleasePostConviction", tx_1.MsgReleasePostConviction], ["/sparkdream.forum.v1.MsgFlagPost", tx_1.MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", tx_1.MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", tx_1.MsgHidePost], ["/sparkdream.forum.v1.MsgUnhidePost", tx_1.MsgUnhidePost], ["/sparkdream.forum.v1.MsgAppealPost", tx_1.MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", tx_1.MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", tx_1.MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", tx_1.MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", tx_1.MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", tx_1.MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", tx_1.MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", tx_1.MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", tx_1.MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", tx_1.MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", tx_1.MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", tx_1.MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", tx_1.MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", tx_1.MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", tx_1.MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", tx_1.MsgSetModerationPaused], ["/sparkdream.forum.v1.MsgSetThreadProposalsLock", tx_1.MsgSetThreadProposalsLock]];
|
|
6
6
|
const load = (protoRegistry) => {
|
|
7
7
|
exports.registry.forEach(([typeUrl, mod]) => {
|
|
8
8
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -244,6 +244,12 @@ exports.MessageComposer = {
|
|
|
244
244
|
typeUrl: "/sparkdream.forum.v1.MsgSetModerationPaused",
|
|
245
245
|
value: tx_1.MsgSetModerationPaused.encode(value).finish()
|
|
246
246
|
};
|
|
247
|
+
},
|
|
248
|
+
setThreadProposalsLock(value) {
|
|
249
|
+
return {
|
|
250
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
|
|
251
|
+
value: tx_1.MsgSetThreadProposalsLock.encode(value).finish()
|
|
252
|
+
};
|
|
247
253
|
}
|
|
248
254
|
},
|
|
249
255
|
withTypeUrl: {
|
|
@@ -480,6 +486,12 @@ exports.MessageComposer = {
|
|
|
480
486
|
typeUrl: "/sparkdream.forum.v1.MsgSetModerationPaused",
|
|
481
487
|
value
|
|
482
488
|
};
|
|
489
|
+
},
|
|
490
|
+
setThreadProposalsLock(value) {
|
|
491
|
+
return {
|
|
492
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
|
|
493
|
+
value
|
|
494
|
+
};
|
|
483
495
|
}
|
|
484
496
|
},
|
|
485
497
|
fromPartial: {
|
|
@@ -716,6 +728,12 @@ exports.MessageComposer = {
|
|
|
716
728
|
typeUrl: "/sparkdream.forum.v1.MsgSetModerationPaused",
|
|
717
729
|
value: tx_1.MsgSetModerationPaused.fromPartial(value)
|
|
718
730
|
};
|
|
731
|
+
},
|
|
732
|
+
setThreadProposalsLock(value) {
|
|
733
|
+
return {
|
|
734
|
+
typeUrl: "/sparkdream.forum.v1.MsgSetThreadProposalsLock",
|
|
735
|
+
value: tx_1.MsgSetThreadProposalsLock.fromPartial(value)
|
|
736
|
+
};
|
|
719
737
|
}
|
|
720
738
|
}
|
|
721
739
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TxRpc } from "../../../types";
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreatePost, MsgCreatePostResponse, MsgEditPost, MsgEditPostResponse, MsgDeletePost, MsgDeletePostResponse, MsgFreezeThread, MsgFreezeThreadResponse, MsgUnarchiveThread, MsgUnarchiveThreadResponse, MsgPinPost, MsgPinPostResponse, MsgUnpinPost, MsgUnpinPostResponse, MsgMakePostPermanent, MsgMakePostPermanentResponse, MsgLockThread, MsgLockThreadResponse, MsgUnlockThread, MsgUnlockThreadResponse, MsgMoveThread, MsgMoveThreadResponse, MsgFollowThread, MsgFollowThreadResponse, MsgUnfollowThread, MsgUnfollowThreadResponse, MsgUpvotePost, MsgUpvotePostResponse, MsgDownvotePost, MsgDownvotePostResponse, MsgStakePostConviction, MsgStakePostConvictionResponse, MsgReleasePostConviction, MsgReleasePostConvictionResponse, MsgFlagPost, MsgFlagPostResponse, MsgDismissFlags, MsgDismissFlagsResponse, MsgHidePost, MsgHidePostResponse, MsgUnhidePost, MsgUnhidePostResponse, MsgAppealPost, MsgAppealPostResponse, MsgAppealThreadLock, MsgAppealThreadLockResponse, MsgAppealThreadMove, MsgAppealThreadMoveResponse, MsgCreateBounty, MsgCreateBountyResponse, MsgAwardBounty, MsgAwardBountyResponse, MsgIncreaseBounty, MsgIncreaseBountyResponse, MsgCancelBounty, MsgCancelBountyResponse, MsgAssignBountyToReply, MsgAssignBountyToReplyResponse, MsgPinReply, MsgPinReplyResponse, MsgUnpinReply, MsgUnpinReplyResponse, MsgDisputePin, MsgDisputePinResponse, MsgMarkAcceptedReply, MsgMarkAcceptedReplyResponse, MsgConfirmProposedReply, MsgConfirmProposedReplyResponse, MsgRejectProposedReply, MsgRejectProposedReplyResponse, MsgSetForumPaused, MsgSetForumPausedResponse, MsgSetModerationPaused, MsgSetModerationPausedResponse } from "./tx";
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreatePost, MsgCreatePostResponse, MsgEditPost, MsgEditPostResponse, MsgDeletePost, MsgDeletePostResponse, MsgFreezeThread, MsgFreezeThreadResponse, MsgUnarchiveThread, MsgUnarchiveThreadResponse, MsgPinPost, MsgPinPostResponse, MsgUnpinPost, MsgUnpinPostResponse, MsgMakePostPermanent, MsgMakePostPermanentResponse, MsgLockThread, MsgLockThreadResponse, MsgUnlockThread, MsgUnlockThreadResponse, MsgMoveThread, MsgMoveThreadResponse, MsgFollowThread, MsgFollowThreadResponse, MsgUnfollowThread, MsgUnfollowThreadResponse, MsgUpvotePost, MsgUpvotePostResponse, MsgDownvotePost, MsgDownvotePostResponse, MsgStakePostConviction, MsgStakePostConvictionResponse, MsgReleasePostConviction, MsgReleasePostConvictionResponse, MsgFlagPost, MsgFlagPostResponse, MsgDismissFlags, MsgDismissFlagsResponse, MsgHidePost, MsgHidePostResponse, MsgUnhidePost, MsgUnhidePostResponse, MsgAppealPost, MsgAppealPostResponse, MsgAppealThreadLock, MsgAppealThreadLockResponse, MsgAppealThreadMove, MsgAppealThreadMoveResponse, MsgCreateBounty, MsgCreateBountyResponse, MsgAwardBounty, MsgAwardBountyResponse, MsgIncreaseBounty, MsgIncreaseBountyResponse, MsgCancelBounty, MsgCancelBountyResponse, MsgAssignBountyToReply, MsgAssignBountyToReplyResponse, MsgPinReply, MsgPinReplyResponse, MsgUnpinReply, MsgUnpinReplyResponse, MsgDisputePin, MsgDisputePinResponse, MsgMarkAcceptedReply, MsgMarkAcceptedReplyResponse, MsgConfirmProposedReply, MsgConfirmProposedReplyResponse, MsgRejectProposedReply, MsgRejectProposedReplyResponse, MsgSetForumPaused, MsgSetForumPausedResponse, MsgSetModerationPaused, MsgSetModerationPausedResponse, MsgSetThreadProposalsLock, MsgSetThreadProposalsLockResponse } from "./tx";
|
|
3
3
|
/** Msg defines the Msg service. */
|
|
4
4
|
export interface Msg {
|
|
5
5
|
/**
|
|
@@ -110,6 +110,8 @@ export interface Msg {
|
|
|
110
110
|
setForumPaused(request: MsgSetForumPaused): Promise<MsgSetForumPausedResponse>;
|
|
111
111
|
/** SetModerationPaused defines the SetModerationPaused RPC. */
|
|
112
112
|
setModerationPaused(request: MsgSetModerationPaused): Promise<MsgSetModerationPausedResponse>;
|
|
113
|
+
/** SetThreadProposalsLock defines the SetThreadProposalsLock RPC. */
|
|
114
|
+
setThreadProposalsLock(request: MsgSetThreadProposalsLock): Promise<MsgSetThreadProposalsLockResponse>;
|
|
113
115
|
}
|
|
114
116
|
export declare class MsgClientImpl implements Msg {
|
|
115
117
|
private readonly rpc;
|
|
@@ -153,5 +155,6 @@ export declare class MsgClientImpl implements Msg {
|
|
|
153
155
|
rejectProposedReply: (request: MsgRejectProposedReply) => Promise<MsgRejectProposedReplyResponse>;
|
|
154
156
|
setForumPaused: (request: MsgSetForumPaused) => Promise<MsgSetForumPausedResponse>;
|
|
155
157
|
setModerationPaused: (request: MsgSetModerationPaused) => Promise<MsgSetModerationPausedResponse>;
|
|
158
|
+
setThreadProposalsLock: (request: MsgSetThreadProposalsLock) => Promise<MsgSetThreadProposalsLockResponse>;
|
|
156
159
|
}
|
|
157
160
|
export declare const createClientImpl: (rpc: TxRpc) => MsgClientImpl;
|
|
@@ -260,6 +260,12 @@ class MsgClientImpl {
|
|
|
260
260
|
const promise = this.rpc.request("sparkdream.forum.v1.Msg", "SetModerationPaused", data);
|
|
261
261
|
return promise.then(data => tx_1.MsgSetModerationPausedResponse.decode(new binary_1.BinaryReader(data)));
|
|
262
262
|
};
|
|
263
|
+
/* SetThreadProposalsLock defines the SetThreadProposalsLock RPC. */
|
|
264
|
+
setThreadProposalsLock = async (request) => {
|
|
265
|
+
const data = tx_1.MsgSetThreadProposalsLock.encode(request).finish();
|
|
266
|
+
const promise = this.rpc.request("sparkdream.forum.v1.Msg", "SetThreadProposalsLock", data);
|
|
267
|
+
return promise.then(data => tx_1.MsgSetThreadProposalsLockResponse.decode(new binary_1.BinaryReader(data)));
|
|
268
|
+
};
|
|
263
269
|
}
|
|
264
270
|
exports.MsgClientImpl = MsgClientImpl;
|
|
265
271
|
const createClientImpl = (rpc) => {
|
|
@@ -335,6 +335,13 @@ export interface Params {
|
|
|
335
335
|
* Minimum appeal rate (appeals / actions) to qualify for a reward (default 0.05).
|
|
336
336
|
*/
|
|
337
337
|
minAppealRate: string;
|
|
338
|
+
/**
|
|
339
|
+
* Rolling window (in reward epochs) over which sentinel reward accuracy is
|
|
340
|
+
* measured. Recent overturns move the ratio; inactivity ages a sentinel out.
|
|
341
|
+
* Bounded 1 <= W <= MaxSentinelAccuracyWindowEpochs (== the forum
|
|
342
|
+
* SentinelAccuracyRingSize). Default 6.
|
|
343
|
+
*/
|
|
344
|
+
sentinelAccuracyWindowEpochs: bigint;
|
|
338
345
|
/**
|
|
339
346
|
* Per-member active work caps (anti-monopolization). 0 = unbounded.
|
|
340
347
|
*/
|
|
@@ -618,6 +625,13 @@ export interface ParamsAmino {
|
|
|
618
625
|
* Minimum appeal rate (appeals / actions) to qualify for a reward (default 0.05).
|
|
619
626
|
*/
|
|
620
627
|
min_appeal_rate?: string;
|
|
628
|
+
/**
|
|
629
|
+
* Rolling window (in reward epochs) over which sentinel reward accuracy is
|
|
630
|
+
* measured. Recent overturns move the ratio; inactivity ages a sentinel out.
|
|
631
|
+
* Bounded 1 <= W <= MaxSentinelAccuracyWindowEpochs (== the forum
|
|
632
|
+
* SentinelAccuracyRingSize). Default 6.
|
|
633
|
+
*/
|
|
634
|
+
sentinel_accuracy_window_epochs?: string;
|
|
621
635
|
/**
|
|
622
636
|
* Per-member active work caps (anti-monopolization). 0 = unbounded.
|
|
623
637
|
*/
|
|
@@ -830,6 +844,11 @@ export interface RepOperationalParams {
|
|
|
830
844
|
* Minimum appeal rate (appeals / actions) to qualify for a reward (default 0.05).
|
|
831
845
|
*/
|
|
832
846
|
minAppealRate: string;
|
|
847
|
+
/**
|
|
848
|
+
* Rolling window (in reward epochs) for sentinel reward accuracy (mirrors
|
|
849
|
+
* Params.sentinel_accuracy_window_epochs). Default 6.
|
|
850
|
+
*/
|
|
851
|
+
sentinelAccuracyWindowEpochs: bigint;
|
|
833
852
|
/**
|
|
834
853
|
* Per-member active work caps (mirrors Params.max_active_{initiatives,interims}_per_member). 0 = unbounded.
|
|
835
854
|
*/
|
|
@@ -1025,6 +1044,11 @@ export interface RepOperationalParamsAmino {
|
|
|
1025
1044
|
* Minimum appeal rate (appeals / actions) to qualify for a reward (default 0.05).
|
|
1026
1045
|
*/
|
|
1027
1046
|
min_appeal_rate?: string;
|
|
1047
|
+
/**
|
|
1048
|
+
* Rolling window (in reward epochs) for sentinel reward accuracy (mirrors
|
|
1049
|
+
* Params.sentinel_accuracy_window_epochs). Default 6.
|
|
1050
|
+
*/
|
|
1051
|
+
sentinel_accuracy_window_epochs?: string;
|
|
1028
1052
|
/**
|
|
1029
1053
|
* Per-member active work caps (mirrors Params.max_active_{initiatives,interims}_per_member). 0 = unbounded.
|
|
1030
1054
|
*/
|