@sparkdreamnft/sparkdreamjs 0.0.18 → 0.0.20
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/blog/v1/params.js +62 -2
- package/esm/sparkdream/blog/v1/tx.js +583 -2
- package/esm/sparkdream/blog/v1/tx.registry.js +74 -2
- package/esm/sparkdream/blog/v1/tx.rpc.msg.js +33 -3
- package/esm/sparkdream/collect/v1/params.js +109 -1
- package/esm/sparkdream/collect/v1/tx.js +293 -1
- package/esm/sparkdream/collect/v1/tx.registry.js +38 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +17 -2
- package/esm/sparkdream/collect/v1/types.js +135 -3
- package/esm/sparkdream/forum/v1/params.js +218 -2
- package/esm/sparkdream/forum/v1/post.js +25 -1
- package/esm/sparkdream/forum/v1/query.js +469 -0
- package/esm/sparkdream/forum/v1/query.lcd.js +30 -0
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +31 -1
- package/esm/sparkdream/forum/v1/tx.js +460 -0
- package/esm/sparkdream/forum/v1/tx.registry.js +56 -2
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +30 -1
- package/esm/sparkdream/forum/v1/types.js +355 -0
- package/esm/sparkdream/forum/v1/user_rate_limit.js +41 -2
- package/esm/sparkdream/rep/v1/member.js +209 -1
- package/esm/sparkdream/rep/v1/query.js +13 -22
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +52 -0
- package/sparkdream/blog/v1/params.js +62 -2
- package/sparkdream/blog/v1/tx.d.ts +381 -6
- package/sparkdream/blog/v1/tx.js +584 -3
- package/sparkdream/blog/v1/tx.registry.d.ts +49 -1
- package/sparkdream/blog/v1/tx.registry.js +73 -1
- package/sparkdream/blog/v1/tx.rpc.msg.d.ts +27 -3
- package/sparkdream/blog/v1/tx.rpc.msg.js +32 -2
- package/sparkdream/bundle.d.ts +474 -0
- package/sparkdream/collect/v1/params.d.ts +124 -0
- package/sparkdream/collect/v1/params.js +109 -1
- package/sparkdream/collect/v1/tx.d.ts +195 -3
- package/sparkdream/collect/v1/tx.js +294 -2
- package/sparkdream/collect/v1/tx.registry.d.ts +25 -1
- package/sparkdream/collect/v1/tx.registry.js +37 -1
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +15 -2
- package/sparkdream/collect/v1/tx.rpc.msg.js +16 -1
- package/sparkdream/collect/v1/types.d.ts +112 -0
- package/sparkdream/collect/v1/types.js +135 -3
- package/sparkdream/forum/v1/params.d.ts +210 -0
- package/sparkdream/forum/v1/params.js +218 -2
- package/sparkdream/forum/v1/post.d.ts +28 -0
- package/sparkdream/forum/v1/post.js +25 -1
- package/sparkdream/forum/v1/query.d.ts +273 -0
- package/sparkdream/forum/v1/query.js +470 -1
- package/sparkdream/forum/v1/query.lcd.d.ts +4 -1
- package/sparkdream/forum/v1/query.lcd.js +30 -0
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +18 -1
- package/sparkdream/forum/v1/query.rpc.Query.js +30 -0
- package/sparkdream/forum/v1/tx.d.ts +291 -0
- package/sparkdream/forum/v1/tx.js +462 -2
- package/sparkdream/forum/v1/tx.registry.d.ts +37 -1
- package/sparkdream/forum/v1/tx.registry.js +55 -1
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +27 -1
- package/sparkdream/forum/v1/tx.rpc.msg.js +29 -0
- package/sparkdream/forum/v1/types.d.ts +247 -0
- package/sparkdream/forum/v1/types.js +356 -1
- package/sparkdream/forum/v1/user_rate_limit.d.ts +24 -3
- package/sparkdream/forum/v1/user_rate_limit.js +41 -2
- package/sparkdream/rep/v1/member.d.ts +134 -0
- package/sparkdream/rep/v1/member.js +210 -2
- package/sparkdream/rep/v1/query.d.ts +2 -4
- package/sparkdream/rep/v1/query.js +13 -22
- package/sparkdream/rpc.query.d.ts +3 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TelescopeGeneratedType } from "../../../types";
|
|
2
2
|
import { Registry } from "@cosmjs/proto-signing";
|
|
3
|
-
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgUpdatePost, MsgDeletePost, MsgHidePost, MsgUnhidePost, MsgCreateReply, MsgUpdateReply, MsgDeleteReply, MsgHideReply, MsgUnhideReply, MsgReact, MsgRemoveReaction, MsgPinPost, MsgPinReply } from "./tx";
|
|
3
|
+
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgUpdatePost, MsgDeletePost, MsgHidePost, MsgUnhidePost, MsgCreateReply, MsgUpdateReply, MsgDeleteReply, MsgHideReply, MsgUnhideReply, MsgReact, MsgRemoveReaction, MsgMakePostPermanent, MsgMakeReplyPermanent, MsgPinPost, MsgUnpinPost, MsgPinReply, MsgUnpinReply } 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: {
|
|
@@ -61,14 +61,30 @@ export declare const MessageComposer: {
|
|
|
61
61
|
typeUrl: string;
|
|
62
62
|
value: Uint8Array<ArrayBufferLike>;
|
|
63
63
|
};
|
|
64
|
+
makePostPermanent(value: MsgMakePostPermanent): {
|
|
65
|
+
typeUrl: string;
|
|
66
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
67
|
+
};
|
|
68
|
+
makeReplyPermanent(value: MsgMakeReplyPermanent): {
|
|
69
|
+
typeUrl: string;
|
|
70
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
71
|
+
};
|
|
64
72
|
pinPost(value: MsgPinPost): {
|
|
65
73
|
typeUrl: string;
|
|
66
74
|
value: Uint8Array<ArrayBufferLike>;
|
|
67
75
|
};
|
|
76
|
+
unpinPost(value: MsgUnpinPost): {
|
|
77
|
+
typeUrl: string;
|
|
78
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
79
|
+
};
|
|
68
80
|
pinReply(value: MsgPinReply): {
|
|
69
81
|
typeUrl: string;
|
|
70
82
|
value: Uint8Array<ArrayBufferLike>;
|
|
71
83
|
};
|
|
84
|
+
unpinReply(value: MsgUnpinReply): {
|
|
85
|
+
typeUrl: string;
|
|
86
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
87
|
+
};
|
|
72
88
|
};
|
|
73
89
|
withTypeUrl: {
|
|
74
90
|
updateParams(value: MsgUpdateParams): {
|
|
@@ -127,14 +143,30 @@ export declare const MessageComposer: {
|
|
|
127
143
|
typeUrl: string;
|
|
128
144
|
value: MsgRemoveReaction;
|
|
129
145
|
};
|
|
146
|
+
makePostPermanent(value: MsgMakePostPermanent): {
|
|
147
|
+
typeUrl: string;
|
|
148
|
+
value: MsgMakePostPermanent;
|
|
149
|
+
};
|
|
150
|
+
makeReplyPermanent(value: MsgMakeReplyPermanent): {
|
|
151
|
+
typeUrl: string;
|
|
152
|
+
value: MsgMakeReplyPermanent;
|
|
153
|
+
};
|
|
130
154
|
pinPost(value: MsgPinPost): {
|
|
131
155
|
typeUrl: string;
|
|
132
156
|
value: MsgPinPost;
|
|
133
157
|
};
|
|
158
|
+
unpinPost(value: MsgUnpinPost): {
|
|
159
|
+
typeUrl: string;
|
|
160
|
+
value: MsgUnpinPost;
|
|
161
|
+
};
|
|
134
162
|
pinReply(value: MsgPinReply): {
|
|
135
163
|
typeUrl: string;
|
|
136
164
|
value: MsgPinReply;
|
|
137
165
|
};
|
|
166
|
+
unpinReply(value: MsgUnpinReply): {
|
|
167
|
+
typeUrl: string;
|
|
168
|
+
value: MsgUnpinReply;
|
|
169
|
+
};
|
|
138
170
|
};
|
|
139
171
|
fromPartial: {
|
|
140
172
|
updateParams(value: MsgUpdateParams): {
|
|
@@ -193,13 +225,29 @@ export declare const MessageComposer: {
|
|
|
193
225
|
typeUrl: string;
|
|
194
226
|
value: MsgRemoveReaction;
|
|
195
227
|
};
|
|
228
|
+
makePostPermanent(value: MsgMakePostPermanent): {
|
|
229
|
+
typeUrl: string;
|
|
230
|
+
value: MsgMakePostPermanent;
|
|
231
|
+
};
|
|
232
|
+
makeReplyPermanent(value: MsgMakeReplyPermanent): {
|
|
233
|
+
typeUrl: string;
|
|
234
|
+
value: MsgMakeReplyPermanent;
|
|
235
|
+
};
|
|
196
236
|
pinPost(value: MsgPinPost): {
|
|
197
237
|
typeUrl: string;
|
|
198
238
|
value: MsgPinPost;
|
|
199
239
|
};
|
|
240
|
+
unpinPost(value: MsgUnpinPost): {
|
|
241
|
+
typeUrl: string;
|
|
242
|
+
value: MsgUnpinPost;
|
|
243
|
+
};
|
|
200
244
|
pinReply(value: MsgPinReply): {
|
|
201
245
|
typeUrl: string;
|
|
202
246
|
value: MsgPinReply;
|
|
203
247
|
};
|
|
248
|
+
unpinReply(value: MsgUnpinReply): {
|
|
249
|
+
typeUrl: string;
|
|
250
|
+
value: MsgUnpinReply;
|
|
251
|
+
};
|
|
204
252
|
};
|
|
205
253
|
};
|
|
@@ -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.blog.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.blog.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.blog.v1.MsgCreatePost", tx_1.MsgCreatePost], ["/sparkdream.blog.v1.MsgUpdatePost", tx_1.MsgUpdatePost], ["/sparkdream.blog.v1.MsgDeletePost", tx_1.MsgDeletePost], ["/sparkdream.blog.v1.MsgHidePost", tx_1.MsgHidePost], ["/sparkdream.blog.v1.MsgUnhidePost", tx_1.MsgUnhidePost], ["/sparkdream.blog.v1.MsgCreateReply", tx_1.MsgCreateReply], ["/sparkdream.blog.v1.MsgUpdateReply", tx_1.MsgUpdateReply], ["/sparkdream.blog.v1.MsgDeleteReply", tx_1.MsgDeleteReply], ["/sparkdream.blog.v1.MsgHideReply", tx_1.MsgHideReply], ["/sparkdream.blog.v1.MsgUnhideReply", tx_1.MsgUnhideReply], ["/sparkdream.blog.v1.MsgReact", tx_1.MsgReact], ["/sparkdream.blog.v1.MsgRemoveReaction", tx_1.MsgRemoveReaction], ["/sparkdream.blog.v1.MsgPinPost", tx_1.MsgPinPost], ["/sparkdream.blog.v1.MsgPinReply", tx_1.MsgPinReply]];
|
|
5
|
+
exports.registry = [["/sparkdream.blog.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.blog.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.blog.v1.MsgCreatePost", tx_1.MsgCreatePost], ["/sparkdream.blog.v1.MsgUpdatePost", tx_1.MsgUpdatePost], ["/sparkdream.blog.v1.MsgDeletePost", tx_1.MsgDeletePost], ["/sparkdream.blog.v1.MsgHidePost", tx_1.MsgHidePost], ["/sparkdream.blog.v1.MsgUnhidePost", tx_1.MsgUnhidePost], ["/sparkdream.blog.v1.MsgCreateReply", tx_1.MsgCreateReply], ["/sparkdream.blog.v1.MsgUpdateReply", tx_1.MsgUpdateReply], ["/sparkdream.blog.v1.MsgDeleteReply", tx_1.MsgDeleteReply], ["/sparkdream.blog.v1.MsgHideReply", tx_1.MsgHideReply], ["/sparkdream.blog.v1.MsgUnhideReply", tx_1.MsgUnhideReply], ["/sparkdream.blog.v1.MsgReact", tx_1.MsgReact], ["/sparkdream.blog.v1.MsgRemoveReaction", tx_1.MsgRemoveReaction], ["/sparkdream.blog.v1.MsgMakePostPermanent", tx_1.MsgMakePostPermanent], ["/sparkdream.blog.v1.MsgMakeReplyPermanent", tx_1.MsgMakeReplyPermanent], ["/sparkdream.blog.v1.MsgPinPost", tx_1.MsgPinPost], ["/sparkdream.blog.v1.MsgUnpinPost", tx_1.MsgUnpinPost], ["/sparkdream.blog.v1.MsgPinReply", tx_1.MsgPinReply], ["/sparkdream.blog.v1.MsgUnpinReply", tx_1.MsgUnpinReply]];
|
|
6
6
|
const load = (protoRegistry) => {
|
|
7
7
|
exports.registry.forEach(([typeUrl, mod]) => {
|
|
8
8
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -95,17 +95,41 @@ exports.MessageComposer = {
|
|
|
95
95
|
value: tx_1.MsgRemoveReaction.encode(value).finish()
|
|
96
96
|
};
|
|
97
97
|
},
|
|
98
|
+
makePostPermanent(value) {
|
|
99
|
+
return {
|
|
100
|
+
typeUrl: "/sparkdream.blog.v1.MsgMakePostPermanent",
|
|
101
|
+
value: tx_1.MsgMakePostPermanent.encode(value).finish()
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
makeReplyPermanent(value) {
|
|
105
|
+
return {
|
|
106
|
+
typeUrl: "/sparkdream.blog.v1.MsgMakeReplyPermanent",
|
|
107
|
+
value: tx_1.MsgMakeReplyPermanent.encode(value).finish()
|
|
108
|
+
};
|
|
109
|
+
},
|
|
98
110
|
pinPost(value) {
|
|
99
111
|
return {
|
|
100
112
|
typeUrl: "/sparkdream.blog.v1.MsgPinPost",
|
|
101
113
|
value: tx_1.MsgPinPost.encode(value).finish()
|
|
102
114
|
};
|
|
103
115
|
},
|
|
116
|
+
unpinPost(value) {
|
|
117
|
+
return {
|
|
118
|
+
typeUrl: "/sparkdream.blog.v1.MsgUnpinPost",
|
|
119
|
+
value: tx_1.MsgUnpinPost.encode(value).finish()
|
|
120
|
+
};
|
|
121
|
+
},
|
|
104
122
|
pinReply(value) {
|
|
105
123
|
return {
|
|
106
124
|
typeUrl: "/sparkdream.blog.v1.MsgPinReply",
|
|
107
125
|
value: tx_1.MsgPinReply.encode(value).finish()
|
|
108
126
|
};
|
|
127
|
+
},
|
|
128
|
+
unpinReply(value) {
|
|
129
|
+
return {
|
|
130
|
+
typeUrl: "/sparkdream.blog.v1.MsgUnpinReply",
|
|
131
|
+
value: tx_1.MsgUnpinReply.encode(value).finish()
|
|
132
|
+
};
|
|
109
133
|
}
|
|
110
134
|
},
|
|
111
135
|
withTypeUrl: {
|
|
@@ -193,17 +217,41 @@ exports.MessageComposer = {
|
|
|
193
217
|
value
|
|
194
218
|
};
|
|
195
219
|
},
|
|
220
|
+
makePostPermanent(value) {
|
|
221
|
+
return {
|
|
222
|
+
typeUrl: "/sparkdream.blog.v1.MsgMakePostPermanent",
|
|
223
|
+
value
|
|
224
|
+
};
|
|
225
|
+
},
|
|
226
|
+
makeReplyPermanent(value) {
|
|
227
|
+
return {
|
|
228
|
+
typeUrl: "/sparkdream.blog.v1.MsgMakeReplyPermanent",
|
|
229
|
+
value
|
|
230
|
+
};
|
|
231
|
+
},
|
|
196
232
|
pinPost(value) {
|
|
197
233
|
return {
|
|
198
234
|
typeUrl: "/sparkdream.blog.v1.MsgPinPost",
|
|
199
235
|
value
|
|
200
236
|
};
|
|
201
237
|
},
|
|
238
|
+
unpinPost(value) {
|
|
239
|
+
return {
|
|
240
|
+
typeUrl: "/sparkdream.blog.v1.MsgUnpinPost",
|
|
241
|
+
value
|
|
242
|
+
};
|
|
243
|
+
},
|
|
202
244
|
pinReply(value) {
|
|
203
245
|
return {
|
|
204
246
|
typeUrl: "/sparkdream.blog.v1.MsgPinReply",
|
|
205
247
|
value
|
|
206
248
|
};
|
|
249
|
+
},
|
|
250
|
+
unpinReply(value) {
|
|
251
|
+
return {
|
|
252
|
+
typeUrl: "/sparkdream.blog.v1.MsgUnpinReply",
|
|
253
|
+
value
|
|
254
|
+
};
|
|
207
255
|
}
|
|
208
256
|
},
|
|
209
257
|
fromPartial: {
|
|
@@ -291,17 +339,41 @@ exports.MessageComposer = {
|
|
|
291
339
|
value: tx_1.MsgRemoveReaction.fromPartial(value)
|
|
292
340
|
};
|
|
293
341
|
},
|
|
342
|
+
makePostPermanent(value) {
|
|
343
|
+
return {
|
|
344
|
+
typeUrl: "/sparkdream.blog.v1.MsgMakePostPermanent",
|
|
345
|
+
value: tx_1.MsgMakePostPermanent.fromPartial(value)
|
|
346
|
+
};
|
|
347
|
+
},
|
|
348
|
+
makeReplyPermanent(value) {
|
|
349
|
+
return {
|
|
350
|
+
typeUrl: "/sparkdream.blog.v1.MsgMakeReplyPermanent",
|
|
351
|
+
value: tx_1.MsgMakeReplyPermanent.fromPartial(value)
|
|
352
|
+
};
|
|
353
|
+
},
|
|
294
354
|
pinPost(value) {
|
|
295
355
|
return {
|
|
296
356
|
typeUrl: "/sparkdream.blog.v1.MsgPinPost",
|
|
297
357
|
value: tx_1.MsgPinPost.fromPartial(value)
|
|
298
358
|
};
|
|
299
359
|
},
|
|
360
|
+
unpinPost(value) {
|
|
361
|
+
return {
|
|
362
|
+
typeUrl: "/sparkdream.blog.v1.MsgUnpinPost",
|
|
363
|
+
value: tx_1.MsgUnpinPost.fromPartial(value)
|
|
364
|
+
};
|
|
365
|
+
},
|
|
300
366
|
pinReply(value) {
|
|
301
367
|
return {
|
|
302
368
|
typeUrl: "/sparkdream.blog.v1.MsgPinReply",
|
|
303
369
|
value: tx_1.MsgPinReply.fromPartial(value)
|
|
304
370
|
};
|
|
371
|
+
},
|
|
372
|
+
unpinReply(value) {
|
|
373
|
+
return {
|
|
374
|
+
typeUrl: "/sparkdream.blog.v1.MsgUnpinReply",
|
|
375
|
+
value: tx_1.MsgUnpinReply.fromPartial(value)
|
|
376
|
+
};
|
|
305
377
|
}
|
|
306
378
|
}
|
|
307
379
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TxRpc } from "../../../types";
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreatePost, MsgCreatePostResponse, MsgUpdatePost, MsgUpdatePostResponse, MsgDeletePost, MsgDeletePostResponse, MsgHidePost, MsgHidePostResponse, MsgUnhidePost, MsgUnhidePostResponse, MsgCreateReply, MsgCreateReplyResponse, MsgUpdateReply, MsgUpdateReplyResponse, MsgDeleteReply, MsgDeleteReplyResponse, MsgHideReply, MsgHideReplyResponse, MsgUnhideReply, MsgUnhideReplyResponse, MsgReact, MsgReactResponse, MsgRemoveReaction, MsgRemoveReactionResponse, MsgPinPost, MsgPinPostResponse, MsgPinReply, MsgPinReplyResponse } from "./tx";
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreatePost, MsgCreatePostResponse, MsgUpdatePost, MsgUpdatePostResponse, MsgDeletePost, MsgDeletePostResponse, MsgHidePost, MsgHidePostResponse, MsgUnhidePost, MsgUnhidePostResponse, MsgCreateReply, MsgCreateReplyResponse, MsgUpdateReply, MsgUpdateReplyResponse, MsgDeleteReply, MsgDeleteReplyResponse, MsgHideReply, MsgHideReplyResponse, MsgUnhideReply, MsgUnhideReplyResponse, MsgReact, MsgReactResponse, MsgRemoveReaction, MsgRemoveReactionResponse, MsgMakePostPermanent, MsgMakePostPermanentResponse, MsgMakeReplyPermanent, MsgMakeReplyPermanentResponse, MsgPinPost, MsgPinPostResponse, MsgUnpinPost, MsgUnpinPostResponse, MsgPinReply, MsgPinReplyResponse, MsgUnpinReply, MsgUnpinReplyResponse } from "./tx";
|
|
3
3
|
/** Msg defines the Msg service. */
|
|
4
4
|
export interface Msg {
|
|
5
5
|
/**
|
|
@@ -36,10 +36,30 @@ export interface Msg {
|
|
|
36
36
|
react(request: MsgReact): Promise<MsgReactResponse>;
|
|
37
37
|
/** RemoveReaction removes your reaction from a post or reply. */
|
|
38
38
|
removeReaction(request: MsgRemoveReaction): Promise<MsgRemoveReactionResponse>;
|
|
39
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* MakePostPermanent promotes an ephemeral post to permanent by clearing
|
|
41
|
+
* expires_at and removing the expiry-index entry. Idempotent on already-
|
|
42
|
+
* permanent posts. Display markers (pinned_by) are untouched. Gated on
|
|
43
|
+
* params.pin_min_trust_level and shares the per-day pin rate-limit counter.
|
|
44
|
+
*/
|
|
45
|
+
makePostPermanent(request: MsgMakePostPermanent): Promise<MsgMakePostPermanentResponse>;
|
|
46
|
+
/** MakeReplyPermanent mirrors MakePostPermanent for replies. */
|
|
47
|
+
makeReplyPermanent(request: MsgMakeReplyPermanent): Promise<MsgMakeReplyPermanentResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* PinPost sets the pinned marker on a post (curator "feature this"). The
|
|
50
|
+
* post must already be permanent — call MakePostPermanent first to promote
|
|
51
|
+
* ephemeral content. Gated on params.pin_min_trust_level.
|
|
52
|
+
*/
|
|
40
53
|
pinPost(request: MsgPinPost): Promise<MsgPinPostResponse>;
|
|
41
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* UnpinPost clears the pinned marker on a post. The post stays permanent.
|
|
56
|
+
* Gated on the same trust level as Pin.
|
|
57
|
+
*/
|
|
58
|
+
unpinPost(request: MsgUnpinPost): Promise<MsgUnpinPostResponse>;
|
|
59
|
+
/** PinReply mirrors PinPost. Requires the reply to already be permanent. */
|
|
42
60
|
pinReply(request: MsgPinReply): Promise<MsgPinReplyResponse>;
|
|
61
|
+
/** UnpinReply clears the pinned marker on a reply. The reply stays permanent. */
|
|
62
|
+
unpinReply(request: MsgUnpinReply): Promise<MsgUnpinReplyResponse>;
|
|
43
63
|
}
|
|
44
64
|
export declare class MsgClientImpl implements Msg {
|
|
45
65
|
private readonly rpc;
|
|
@@ -58,7 +78,11 @@ export declare class MsgClientImpl implements Msg {
|
|
|
58
78
|
unhideReply: (request: MsgUnhideReply) => Promise<MsgUnhideReplyResponse>;
|
|
59
79
|
react: (request: MsgReact) => Promise<MsgReactResponse>;
|
|
60
80
|
removeReaction: (request: MsgRemoveReaction) => Promise<MsgRemoveReactionResponse>;
|
|
81
|
+
makePostPermanent: (request: MsgMakePostPermanent) => Promise<MsgMakePostPermanentResponse>;
|
|
82
|
+
makeReplyPermanent: (request: MsgMakeReplyPermanent) => Promise<MsgMakeReplyPermanentResponse>;
|
|
61
83
|
pinPost: (request: MsgPinPost) => Promise<MsgPinPostResponse>;
|
|
84
|
+
unpinPost: (request: MsgUnpinPost) => Promise<MsgUnpinPostResponse>;
|
|
62
85
|
pinReply: (request: MsgPinReply) => Promise<MsgPinReplyResponse>;
|
|
86
|
+
unpinReply: (request: MsgUnpinReply) => Promise<MsgUnpinReplyResponse>;
|
|
63
87
|
}
|
|
64
88
|
export declare const createClientImpl: (rpc: TxRpc) => MsgClientImpl;
|
|
@@ -94,18 +94,48 @@ class MsgClientImpl {
|
|
|
94
94
|
const promise = this.rpc.request("sparkdream.blog.v1.Msg", "RemoveReaction", data);
|
|
95
95
|
return promise.then(data => tx_1.MsgRemoveReactionResponse.decode(new binary_1.BinaryReader(data)));
|
|
96
96
|
};
|
|
97
|
-
/*
|
|
97
|
+
/* MakePostPermanent promotes an ephemeral post to permanent by clearing
|
|
98
|
+
expires_at and removing the expiry-index entry. Idempotent on already-
|
|
99
|
+
permanent posts. Display markers (pinned_by) are untouched. Gated on
|
|
100
|
+
params.pin_min_trust_level and shares the per-day pin rate-limit counter. */
|
|
101
|
+
makePostPermanent = async (request) => {
|
|
102
|
+
const data = tx_1.MsgMakePostPermanent.encode(request).finish();
|
|
103
|
+
const promise = this.rpc.request("sparkdream.blog.v1.Msg", "MakePostPermanent", data);
|
|
104
|
+
return promise.then(data => tx_1.MsgMakePostPermanentResponse.decode(new binary_1.BinaryReader(data)));
|
|
105
|
+
};
|
|
106
|
+
/* MakeReplyPermanent mirrors MakePostPermanent for replies. */
|
|
107
|
+
makeReplyPermanent = async (request) => {
|
|
108
|
+
const data = tx_1.MsgMakeReplyPermanent.encode(request).finish();
|
|
109
|
+
const promise = this.rpc.request("sparkdream.blog.v1.Msg", "MakeReplyPermanent", data);
|
|
110
|
+
return promise.then(data => tx_1.MsgMakeReplyPermanentResponse.decode(new binary_1.BinaryReader(data)));
|
|
111
|
+
};
|
|
112
|
+
/* PinPost sets the pinned marker on a post (curator "feature this"). The
|
|
113
|
+
post must already be permanent — call MakePostPermanent first to promote
|
|
114
|
+
ephemeral content. Gated on params.pin_min_trust_level. */
|
|
98
115
|
pinPost = async (request) => {
|
|
99
116
|
const data = tx_1.MsgPinPost.encode(request).finish();
|
|
100
117
|
const promise = this.rpc.request("sparkdream.blog.v1.Msg", "PinPost", data);
|
|
101
118
|
return promise.then(data => tx_1.MsgPinPostResponse.decode(new binary_1.BinaryReader(data)));
|
|
102
119
|
};
|
|
103
|
-
/*
|
|
120
|
+
/* UnpinPost clears the pinned marker on a post. The post stays permanent.
|
|
121
|
+
Gated on the same trust level as Pin. */
|
|
122
|
+
unpinPost = async (request) => {
|
|
123
|
+
const data = tx_1.MsgUnpinPost.encode(request).finish();
|
|
124
|
+
const promise = this.rpc.request("sparkdream.blog.v1.Msg", "UnpinPost", data);
|
|
125
|
+
return promise.then(data => tx_1.MsgUnpinPostResponse.decode(new binary_1.BinaryReader(data)));
|
|
126
|
+
};
|
|
127
|
+
/* PinReply mirrors PinPost. Requires the reply to already be permanent. */
|
|
104
128
|
pinReply = async (request) => {
|
|
105
129
|
const data = tx_1.MsgPinReply.encode(request).finish();
|
|
106
130
|
const promise = this.rpc.request("sparkdream.blog.v1.Msg", "PinReply", data);
|
|
107
131
|
return promise.then(data => tx_1.MsgPinReplyResponse.decode(new binary_1.BinaryReader(data)));
|
|
108
132
|
};
|
|
133
|
+
/* UnpinReply clears the pinned marker on a reply. The reply stays permanent. */
|
|
134
|
+
unpinReply = async (request) => {
|
|
135
|
+
const data = tx_1.MsgUnpinReply.encode(request).finish();
|
|
136
|
+
const promise = this.rpc.request("sparkdream.blog.v1.Msg", "UnpinReply", data);
|
|
137
|
+
return promise.then(data => tx_1.MsgUnpinReplyResponse.decode(new binary_1.BinaryReader(data)));
|
|
138
|
+
};
|
|
109
139
|
}
|
|
110
140
|
exports.MsgClientImpl = MsgClientImpl;
|
|
111
141
|
const createClientImpl = (rpc) => {
|