@sparkdreamnft/sparkdreamjs 0.0.17 → 0.0.19
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/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +106 -106
- package/esm/sparkdream/blog/v1/params.js +113 -52
- 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/bundle.js +448 -346
- package/esm/sparkdream/client.js +7 -1
- package/esm/sparkdream/collect/v1/params.js +121 -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 +147 -3
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +317 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
- package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
- package/esm/sparkdream/commons/v1/tx.js +693 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
- package/esm/sparkdream/federation/v1/genesis.js +10 -10
- package/esm/sparkdream/federation/v1/params.js +29 -54
- package/esm/sparkdream/federation/v1/query.js +216 -71
- package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
- package/esm/sparkdream/federation/v1/tx.js +1146 -1105
- package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
- package/esm/sparkdream/federation/v1/types.js +355 -99
- package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/esm/sparkdream/forum/v1/params.js +389 -148
- package/esm/sparkdream/forum/v1/post.js +25 -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/guardian/module/v1/module.js +68 -0
- package/esm/sparkdream/guardian/v1/query.js +128 -0
- package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
- package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
- package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
- package/esm/sparkdream/guardian/v1/tx.js +175 -0
- package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
- package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
- package/esm/sparkdream/identity/module/v1/module.js +71 -0
- package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
- package/esm/sparkdream/identity/v1/genesis.js +84 -0
- package/esm/sparkdream/identity/v1/query.js +372 -0
- package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
- package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
- package/esm/sparkdream/lcd.js +15 -0
- package/esm/sparkdream/name/v1/params.js +19 -18
- package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
- package/esm/sparkdream/rep/v1/member.js +209 -1
- package/esm/sparkdream/rep/v1/tag.js +6 -13
- package/esm/sparkdream/rpc.query.js +9 -0
- package/esm/sparkdream/rpc.tx.js +6 -0
- package/esm/sparkdream/service/module/v1/module.js +71 -0
- package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
- package/esm/sparkdream/service/v1/genesis.js +240 -0
- package/esm/sparkdream/service/v1/operator.js +250 -0
- package/esm/sparkdream/service/v1/params.js +355 -0
- package/esm/sparkdream/service/v1/query.js +1582 -0
- package/esm/sparkdream/service/v1/query.lcd.js +107 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
- package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
- package/esm/sparkdream/service/v1/report.js +212 -0
- package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
- package/esm/sparkdream/service/v1/service_type_config.js +264 -0
- package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
- package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
- package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
- package/esm/sparkdream/service/v1/tx.amino.js +69 -0
- package/esm/sparkdream/service/v1/tx.js +2124 -0
- package/esm/sparkdream/service/v1/tx.registry.js +249 -0
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
- package/esm/sparkdream/service/v1/types.js +353 -0
- package/esm/sparkdream/session/v1/genesis.js +136 -10
- package/esm/sparkdream/session/v1/grant.js +1020 -0
- package/esm/sparkdream/session/v1/params.js +543 -19
- package/esm/sparkdream/session/v1/query.js +487 -0
- package/esm/sparkdream/session/v1/query.lcd.js +41 -3
- package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
- package/esm/sparkdream/session/v1/session.js +6 -0
- package/esm/sparkdream/session/v1/tx.js +1066 -0
- package/esm/sparkdream/session/v1/tx.registry.js +110 -2
- package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +106 -106
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +89 -28
- package/sparkdream/blog/v1/params.js +113 -52
- package/sparkdream/blog/v1/post.d.ts +2 -2
- package/sparkdream/blog/v1/tx.d.ts +385 -10
- 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 +15308 -12896
- package/sparkdream/bundle.js +448 -346
- package/sparkdream/client.d.ts +90 -20
- package/sparkdream/client.js +7 -1
- package/sparkdream/collect/v1/params.d.ts +140 -0
- package/sparkdream/collect/v1/params.js +121 -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 +114 -0
- package/sparkdream/collect/v1/types.js +147 -3
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +186 -0
- package/sparkdream/commons/v1/query.js +318 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +23 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
- package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
- package/sparkdream/commons/v1/recurring_spend.js +301 -0
- package/sparkdream/commons/v1/tx.d.ts +472 -0
- package/sparkdream/commons/v1/tx.js +694 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
- package/sparkdream/commons/v1/tx.registry.js +73 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
- package/sparkdream/federation/v1/genesis.d.ts +3 -3
- package/sparkdream/federation/v1/genesis.js +9 -9
- package/sparkdream/federation/v1/params.d.ts +64 -13
- package/sparkdream/federation/v1/params.js +29 -54
- package/sparkdream/federation/v1/query.d.ts +209 -100
- package/sparkdream/federation/v1/query.js +216 -71
- package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
- package/sparkdream/federation/v1/query.lcd.js +11 -6
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
- package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
- package/sparkdream/federation/v1/tx.amino.js +20 -20
- package/sparkdream/federation/v1/tx.d.ts +479 -352
- package/sparkdream/federation/v1/tx.js +1147 -1106
- package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
- package/sparkdream/federation/v1/tx.registry.js +73 -73
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
- package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
- package/sparkdream/federation/v1/types.d.ts +307 -41
- package/sparkdream/federation/v1/types.js +360 -100
- package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
- package/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/sparkdream/forum/v1/params.d.ts +309 -62
- package/sparkdream/forum/v1/params.js +389 -148
- package/sparkdream/forum/v1/post.d.ts +28 -0
- package/sparkdream/forum/v1/post.js +25 -1
- 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/guardian/module/v1/module.d.ts +74 -0
- package/sparkdream/guardian/module/v1/module.js +71 -0
- package/sparkdream/guardian/v1/query.d.ts +88 -0
- package/sparkdream/guardian/v1/query.js +131 -0
- package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
- package/sparkdream/guardian/v1/query.lcd.js +17 -0
- package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
- package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
- package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
- package/sparkdream/guardian/v1/tx.amino.js +12 -0
- package/sparkdream/guardian/v1/tx.d.ts +138 -0
- package/sparkdream/guardian/v1/tx.js +181 -0
- package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
- package/sparkdream/guardian/v1/tx.registry.js +37 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
- package/sparkdream/identity/module/v1/module.d.ts +54 -0
- package/sparkdream/identity/module/v1/module.js +74 -0
- package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
- package/sparkdream/identity/v1/chain_identity.js +202 -0
- package/sparkdream/identity/v1/genesis.d.ts +65 -0
- package/sparkdream/identity/v1/genesis.js +87 -0
- package/sparkdream/identity/v1/query.d.ts +243 -0
- package/sparkdream/identity/v1/query.js +375 -0
- package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
- package/sparkdream/identity/v1/query.lcd.js +25 -0
- package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
- package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
- package/sparkdream/lcd.d.ts +9 -0
- package/sparkdream/lcd.js +15 -0
- package/sparkdream/name/v1/params.d.ts +25 -8
- package/sparkdream/name/v1/params.js +19 -18
- package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
- package/sparkdream/rep/v1/bonded_role.js +48 -2
- package/sparkdream/rep/v1/member.d.ts +134 -0
- package/sparkdream/rep/v1/member.js +210 -2
- package/sparkdream/rep/v1/tag.d.ts +15 -2
- package/sparkdream/rep/v1/tag.js +6 -13
- package/sparkdream/rpc.query.d.ts +34 -2
- package/sparkdream/rpc.query.js +9 -0
- package/sparkdream/rpc.tx.d.ts +6 -0
- package/sparkdream/rpc.tx.js +6 -0
- package/sparkdream/service/module/v1/module.d.ts +54 -0
- package/sparkdream/service/module/v1/module.js +74 -0
- package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
- package/sparkdream/service/v1/controller_transfer_case.js +158 -0
- package/sparkdream/service/v1/genesis.d.ts +172 -0
- package/sparkdream/service/v1/genesis.js +243 -0
- package/sparkdream/service/v1/operator.d.ts +215 -0
- package/sparkdream/service/v1/operator.js +253 -0
- package/sparkdream/service/v1/params.d.ts +346 -0
- package/sparkdream/service/v1/params.js +358 -0
- package/sparkdream/service/v1/query.d.ts +964 -0
- package/sparkdream/service/v1/query.js +1585 -0
- package/sparkdream/service/v1/query.lcd.d.ts +18 -0
- package/sparkdream/service/v1/query.lcd.js +111 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
- package/sparkdream/service/v1/query.rpc.Query.js +114 -0
- package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
- package/sparkdream/service/v1/refile_cooldown.js +124 -0
- package/sparkdream/service/v1/report.d.ts +174 -0
- package/sparkdream/service/v1/report.js +215 -0
- package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
- package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
- package/sparkdream/service/v1/service_type_config.d.ts +222 -0
- package/sparkdream/service/v1/service_type_config.js +269 -0
- package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
- package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
- package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
- package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
- package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
- package/sparkdream/service/v1/tier1_last_slash.js +124 -0
- package/sparkdream/service/v1/tx.amino.d.ts +68 -0
- package/sparkdream/service/v1/tx.amino.js +72 -0
- package/sparkdream/service/v1/tx.d.ts +1264 -0
- package/sparkdream/service/v1/tx.js +2127 -0
- package/sparkdream/service/v1/tx.registry.d.ts +169 -0
- package/sparkdream/service/v1/tx.registry.js +253 -0
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
- package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
- package/sparkdream/service/v1/types.d.ts +94 -0
- package/sparkdream/service/v1/types.js +370 -0
- package/sparkdream/session/v1/genesis.d.ts +93 -9
- package/sparkdream/session/v1/genesis.js +137 -11
- package/sparkdream/session/v1/grant.d.ts +517 -0
- package/sparkdream/session/v1/grant.js +1027 -0
- package/sparkdream/session/v1/params.d.ts +338 -7
- package/sparkdream/session/v1/params.js +543 -19
- package/sparkdream/session/v1/query.d.ts +265 -0
- package/sparkdream/session/v1/query.js +488 -1
- package/sparkdream/session/v1/query.lcd.d.ts +4 -1
- package/sparkdream/session/v1/query.lcd.js +41 -3
- package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
- package/sparkdream/session/v1/query.rpc.Query.js +35 -3
- package/sparkdream/session/v1/session.d.ts +18 -0
- package/sparkdream/session/v1/session.js +6 -0
- package/sparkdream/session/v1/tx.d.ts +660 -0
- package/sparkdream/session/v1/tx.js +1067 -1
- package/sparkdream/session/v1/tx.registry.d.ts +73 -1
- package/sparkdream/session/v1/tx.registry.js +109 -1
- package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
- package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -28,7 +28,9 @@ function createBasePost() {
|
|
|
28
28
|
tags: [],
|
|
29
29
|
contentType: 0,
|
|
30
30
|
initiativeId: BigInt(0),
|
|
31
|
-
convictionSustained: false
|
|
31
|
+
convictionSustained: false,
|
|
32
|
+
promotedBy: "",
|
|
33
|
+
promotedAt: BigInt(0)
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
@@ -124,6 +126,12 @@ export const Post = {
|
|
|
124
126
|
if (message.convictionSustained === true) {
|
|
125
127
|
writer.uint32(264).bool(message.convictionSustained);
|
|
126
128
|
}
|
|
129
|
+
if (message.promotedBy !== "") {
|
|
130
|
+
writer.uint32(274).string(message.promotedBy);
|
|
131
|
+
}
|
|
132
|
+
if (message.promotedAt !== BigInt(0)) {
|
|
133
|
+
writer.uint32(280).int64(message.promotedAt);
|
|
134
|
+
}
|
|
127
135
|
return writer;
|
|
128
136
|
},
|
|
129
137
|
decode(input, length) {
|
|
@@ -217,6 +225,12 @@ export const Post = {
|
|
|
217
225
|
case 33:
|
|
218
226
|
message.convictionSustained = reader.bool();
|
|
219
227
|
break;
|
|
228
|
+
case 34:
|
|
229
|
+
message.promotedBy = reader.string();
|
|
230
|
+
break;
|
|
231
|
+
case 35:
|
|
232
|
+
message.promotedAt = reader.int64();
|
|
233
|
+
break;
|
|
220
234
|
default:
|
|
221
235
|
reader.skipType(tag & 7);
|
|
222
236
|
break;
|
|
@@ -254,6 +268,8 @@ export const Post = {
|
|
|
254
268
|
message.contentType = object.contentType ?? 0;
|
|
255
269
|
message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
|
|
256
270
|
message.convictionSustained = object.convictionSustained ?? false;
|
|
271
|
+
message.promotedBy = object.promotedBy ?? "";
|
|
272
|
+
message.promotedAt = object.promotedAt !== undefined && object.promotedAt !== null ? BigInt(object.promotedAt.toString()) : BigInt(0);
|
|
257
273
|
return message;
|
|
258
274
|
},
|
|
259
275
|
fromAmino(object) {
|
|
@@ -340,6 +356,12 @@ export const Post = {
|
|
|
340
356
|
if (object.conviction_sustained !== undefined && object.conviction_sustained !== null) {
|
|
341
357
|
message.convictionSustained = object.conviction_sustained;
|
|
342
358
|
}
|
|
359
|
+
if (object.promoted_by !== undefined && object.promoted_by !== null) {
|
|
360
|
+
message.promotedBy = object.promoted_by;
|
|
361
|
+
}
|
|
362
|
+
if (object.promoted_at !== undefined && object.promoted_at !== null) {
|
|
363
|
+
message.promotedAt = BigInt(object.promoted_at);
|
|
364
|
+
}
|
|
343
365
|
return message;
|
|
344
366
|
},
|
|
345
367
|
toAmino(message) {
|
|
@@ -377,6 +399,8 @@ export const Post = {
|
|
|
377
399
|
obj.content_type = message.contentType === 0 ? undefined : message.contentType;
|
|
378
400
|
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
379
401
|
obj.conviction_sustained = message.convictionSustained === false ? undefined : message.convictionSustained;
|
|
402
|
+
obj.promoted_by = message.promotedBy === "" ? undefined : message.promotedBy;
|
|
403
|
+
obj.promoted_at = message.promotedAt !== BigInt(0) ? message.promotedAt?.toString() : undefined;
|
|
380
404
|
return obj;
|
|
381
405
|
},
|
|
382
406
|
fromAminoMsg(object) {
|
|
@@ -1426,6 +1426,151 @@ export const MsgUnpinPostResponse = {
|
|
|
1426
1426
|
};
|
|
1427
1427
|
}
|
|
1428
1428
|
};
|
|
1429
|
+
function createBaseMsgMakePostPermanent() {
|
|
1430
|
+
return {
|
|
1431
|
+
creator: "",
|
|
1432
|
+
postId: BigInt(0)
|
|
1433
|
+
};
|
|
1434
|
+
}
|
|
1435
|
+
/**
|
|
1436
|
+
* MsgMakePostPermanent promotes an ephemeral post (root post or reply) to
|
|
1437
|
+
* permanent.
|
|
1438
|
+
* @name MsgMakePostPermanent
|
|
1439
|
+
* @package sparkdream.forum.v1
|
|
1440
|
+
* @see proto type: sparkdream.forum.v1.MsgMakePostPermanent
|
|
1441
|
+
*/
|
|
1442
|
+
export const MsgMakePostPermanent = {
|
|
1443
|
+
typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanent",
|
|
1444
|
+
aminoType: "sparkdream/x/forum/MsgMakePostPermanent",
|
|
1445
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
1446
|
+
if (message.creator !== "") {
|
|
1447
|
+
writer.uint32(10).string(message.creator);
|
|
1448
|
+
}
|
|
1449
|
+
if (message.postId !== BigInt(0)) {
|
|
1450
|
+
writer.uint32(16).uint64(message.postId);
|
|
1451
|
+
}
|
|
1452
|
+
return writer;
|
|
1453
|
+
},
|
|
1454
|
+
decode(input, length) {
|
|
1455
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1456
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1457
|
+
const message = createBaseMsgMakePostPermanent();
|
|
1458
|
+
while (reader.pos < end) {
|
|
1459
|
+
const tag = reader.uint32();
|
|
1460
|
+
switch (tag >>> 3) {
|
|
1461
|
+
case 1:
|
|
1462
|
+
message.creator = reader.string();
|
|
1463
|
+
break;
|
|
1464
|
+
case 2:
|
|
1465
|
+
message.postId = reader.uint64();
|
|
1466
|
+
break;
|
|
1467
|
+
default:
|
|
1468
|
+
reader.skipType(tag & 7);
|
|
1469
|
+
break;
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
return message;
|
|
1473
|
+
},
|
|
1474
|
+
fromPartial(object) {
|
|
1475
|
+
const message = createBaseMsgMakePostPermanent();
|
|
1476
|
+
message.creator = object.creator ?? "";
|
|
1477
|
+
message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
|
|
1478
|
+
return message;
|
|
1479
|
+
},
|
|
1480
|
+
fromAmino(object) {
|
|
1481
|
+
const message = createBaseMsgMakePostPermanent();
|
|
1482
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
1483
|
+
message.creator = object.creator;
|
|
1484
|
+
}
|
|
1485
|
+
if (object.post_id !== undefined && object.post_id !== null) {
|
|
1486
|
+
message.postId = BigInt(object.post_id);
|
|
1487
|
+
}
|
|
1488
|
+
return message;
|
|
1489
|
+
},
|
|
1490
|
+
toAmino(message) {
|
|
1491
|
+
const obj = {};
|
|
1492
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
1493
|
+
obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
|
|
1494
|
+
return obj;
|
|
1495
|
+
},
|
|
1496
|
+
fromAminoMsg(object) {
|
|
1497
|
+
return MsgMakePostPermanent.fromAmino(object.value);
|
|
1498
|
+
},
|
|
1499
|
+
toAminoMsg(message) {
|
|
1500
|
+
return {
|
|
1501
|
+
type: "sparkdream/x/forum/MsgMakePostPermanent",
|
|
1502
|
+
value: MsgMakePostPermanent.toAmino(message)
|
|
1503
|
+
};
|
|
1504
|
+
},
|
|
1505
|
+
fromProtoMsg(message) {
|
|
1506
|
+
return MsgMakePostPermanent.decode(message.value);
|
|
1507
|
+
},
|
|
1508
|
+
toProto(message) {
|
|
1509
|
+
return MsgMakePostPermanent.encode(message).finish();
|
|
1510
|
+
},
|
|
1511
|
+
toProtoMsg(message) {
|
|
1512
|
+
return {
|
|
1513
|
+
typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanent",
|
|
1514
|
+
value: MsgMakePostPermanent.encode(message).finish()
|
|
1515
|
+
};
|
|
1516
|
+
}
|
|
1517
|
+
};
|
|
1518
|
+
function createBaseMsgMakePostPermanentResponse() {
|
|
1519
|
+
return {};
|
|
1520
|
+
}
|
|
1521
|
+
/**
|
|
1522
|
+
* MsgMakePostPermanentResponse defines the MsgMakePostPermanent response.
|
|
1523
|
+
* @name MsgMakePostPermanentResponse
|
|
1524
|
+
* @package sparkdream.forum.v1
|
|
1525
|
+
* @see proto type: sparkdream.forum.v1.MsgMakePostPermanentResponse
|
|
1526
|
+
*/
|
|
1527
|
+
export const MsgMakePostPermanentResponse = {
|
|
1528
|
+
typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanentResponse",
|
|
1529
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
1530
|
+
return writer;
|
|
1531
|
+
},
|
|
1532
|
+
decode(input, length) {
|
|
1533
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1534
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1535
|
+
const message = createBaseMsgMakePostPermanentResponse();
|
|
1536
|
+
while (reader.pos < end) {
|
|
1537
|
+
const tag = reader.uint32();
|
|
1538
|
+
switch (tag >>> 3) {
|
|
1539
|
+
default:
|
|
1540
|
+
reader.skipType(tag & 7);
|
|
1541
|
+
break;
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
return message;
|
|
1545
|
+
},
|
|
1546
|
+
fromPartial(_) {
|
|
1547
|
+
const message = createBaseMsgMakePostPermanentResponse();
|
|
1548
|
+
return message;
|
|
1549
|
+
},
|
|
1550
|
+
fromAmino(_) {
|
|
1551
|
+
const message = createBaseMsgMakePostPermanentResponse();
|
|
1552
|
+
return message;
|
|
1553
|
+
},
|
|
1554
|
+
toAmino(_) {
|
|
1555
|
+
const obj = {};
|
|
1556
|
+
return obj;
|
|
1557
|
+
},
|
|
1558
|
+
fromAminoMsg(object) {
|
|
1559
|
+
return MsgMakePostPermanentResponse.fromAmino(object.value);
|
|
1560
|
+
},
|
|
1561
|
+
fromProtoMsg(message) {
|
|
1562
|
+
return MsgMakePostPermanentResponse.decode(message.value);
|
|
1563
|
+
},
|
|
1564
|
+
toProto(message) {
|
|
1565
|
+
return MsgMakePostPermanentResponse.encode(message).finish();
|
|
1566
|
+
},
|
|
1567
|
+
toProtoMsg(message) {
|
|
1568
|
+
return {
|
|
1569
|
+
typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanentResponse",
|
|
1570
|
+
value: MsgMakePostPermanentResponse.encode(message).finish()
|
|
1571
|
+
};
|
|
1572
|
+
}
|
|
1573
|
+
};
|
|
1429
1574
|
function createBaseMsgLockThread() {
|
|
1430
1575
|
return {
|
|
1431
1576
|
creator: "",
|
|
@@ -2470,6 +2615,321 @@ export const MsgDownvotePostResponse = {
|
|
|
2470
2615
|
};
|
|
2471
2616
|
}
|
|
2472
2617
|
};
|
|
2618
|
+
function createBaseMsgStakePostConviction() {
|
|
2619
|
+
return {
|
|
2620
|
+
creator: "",
|
|
2621
|
+
postId: BigInt(0),
|
|
2622
|
+
amount: ""
|
|
2623
|
+
};
|
|
2624
|
+
}
|
|
2625
|
+
/**
|
|
2626
|
+
* MsgStakePostConviction opens a PostConvictionStake. The signer is the
|
|
2627
|
+
* staker; the post's author cannot stake on their own post.
|
|
2628
|
+
* @name MsgStakePostConviction
|
|
2629
|
+
* @package sparkdream.forum.v1
|
|
2630
|
+
* @see proto type: sparkdream.forum.v1.MsgStakePostConviction
|
|
2631
|
+
*/
|
|
2632
|
+
export const MsgStakePostConviction = {
|
|
2633
|
+
typeUrl: "/sparkdream.forum.v1.MsgStakePostConviction",
|
|
2634
|
+
aminoType: "sparkdream/x/forum/MsgStakePostConviction",
|
|
2635
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2636
|
+
if (message.creator !== "") {
|
|
2637
|
+
writer.uint32(10).string(message.creator);
|
|
2638
|
+
}
|
|
2639
|
+
if (message.postId !== BigInt(0)) {
|
|
2640
|
+
writer.uint32(16).uint64(message.postId);
|
|
2641
|
+
}
|
|
2642
|
+
if (message.amount !== "") {
|
|
2643
|
+
writer.uint32(26).string(message.amount);
|
|
2644
|
+
}
|
|
2645
|
+
return writer;
|
|
2646
|
+
},
|
|
2647
|
+
decode(input, length) {
|
|
2648
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2649
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2650
|
+
const message = createBaseMsgStakePostConviction();
|
|
2651
|
+
while (reader.pos < end) {
|
|
2652
|
+
const tag = reader.uint32();
|
|
2653
|
+
switch (tag >>> 3) {
|
|
2654
|
+
case 1:
|
|
2655
|
+
message.creator = reader.string();
|
|
2656
|
+
break;
|
|
2657
|
+
case 2:
|
|
2658
|
+
message.postId = reader.uint64();
|
|
2659
|
+
break;
|
|
2660
|
+
case 3:
|
|
2661
|
+
message.amount = reader.string();
|
|
2662
|
+
break;
|
|
2663
|
+
default:
|
|
2664
|
+
reader.skipType(tag & 7);
|
|
2665
|
+
break;
|
|
2666
|
+
}
|
|
2667
|
+
}
|
|
2668
|
+
return message;
|
|
2669
|
+
},
|
|
2670
|
+
fromPartial(object) {
|
|
2671
|
+
const message = createBaseMsgStakePostConviction();
|
|
2672
|
+
message.creator = object.creator ?? "";
|
|
2673
|
+
message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
|
|
2674
|
+
message.amount = object.amount ?? "";
|
|
2675
|
+
return message;
|
|
2676
|
+
},
|
|
2677
|
+
fromAmino(object) {
|
|
2678
|
+
const message = createBaseMsgStakePostConviction();
|
|
2679
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
2680
|
+
message.creator = object.creator;
|
|
2681
|
+
}
|
|
2682
|
+
if (object.post_id !== undefined && object.post_id !== null) {
|
|
2683
|
+
message.postId = BigInt(object.post_id);
|
|
2684
|
+
}
|
|
2685
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
2686
|
+
message.amount = object.amount;
|
|
2687
|
+
}
|
|
2688
|
+
return message;
|
|
2689
|
+
},
|
|
2690
|
+
toAmino(message) {
|
|
2691
|
+
const obj = {};
|
|
2692
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
2693
|
+
obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
|
|
2694
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
2695
|
+
return obj;
|
|
2696
|
+
},
|
|
2697
|
+
fromAminoMsg(object) {
|
|
2698
|
+
return MsgStakePostConviction.fromAmino(object.value);
|
|
2699
|
+
},
|
|
2700
|
+
toAminoMsg(message) {
|
|
2701
|
+
return {
|
|
2702
|
+
type: "sparkdream/x/forum/MsgStakePostConviction",
|
|
2703
|
+
value: MsgStakePostConviction.toAmino(message)
|
|
2704
|
+
};
|
|
2705
|
+
},
|
|
2706
|
+
fromProtoMsg(message) {
|
|
2707
|
+
return MsgStakePostConviction.decode(message.value);
|
|
2708
|
+
},
|
|
2709
|
+
toProto(message) {
|
|
2710
|
+
return MsgStakePostConviction.encode(message).finish();
|
|
2711
|
+
},
|
|
2712
|
+
toProtoMsg(message) {
|
|
2713
|
+
return {
|
|
2714
|
+
typeUrl: "/sparkdream.forum.v1.MsgStakePostConviction",
|
|
2715
|
+
value: MsgStakePostConviction.encode(message).finish()
|
|
2716
|
+
};
|
|
2717
|
+
}
|
|
2718
|
+
};
|
|
2719
|
+
function createBaseMsgStakePostConvictionResponse() {
|
|
2720
|
+
return {
|
|
2721
|
+
stakeId: BigInt(0)
|
|
2722
|
+
};
|
|
2723
|
+
}
|
|
2724
|
+
/**
|
|
2725
|
+
* MsgStakePostConvictionResponse returns the new stake's id.
|
|
2726
|
+
* @name MsgStakePostConvictionResponse
|
|
2727
|
+
* @package sparkdream.forum.v1
|
|
2728
|
+
* @see proto type: sparkdream.forum.v1.MsgStakePostConvictionResponse
|
|
2729
|
+
*/
|
|
2730
|
+
export const MsgStakePostConvictionResponse = {
|
|
2731
|
+
typeUrl: "/sparkdream.forum.v1.MsgStakePostConvictionResponse",
|
|
2732
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2733
|
+
if (message.stakeId !== BigInt(0)) {
|
|
2734
|
+
writer.uint32(8).uint64(message.stakeId);
|
|
2735
|
+
}
|
|
2736
|
+
return writer;
|
|
2737
|
+
},
|
|
2738
|
+
decode(input, length) {
|
|
2739
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2740
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2741
|
+
const message = createBaseMsgStakePostConvictionResponse();
|
|
2742
|
+
while (reader.pos < end) {
|
|
2743
|
+
const tag = reader.uint32();
|
|
2744
|
+
switch (tag >>> 3) {
|
|
2745
|
+
case 1:
|
|
2746
|
+
message.stakeId = reader.uint64();
|
|
2747
|
+
break;
|
|
2748
|
+
default:
|
|
2749
|
+
reader.skipType(tag & 7);
|
|
2750
|
+
break;
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
return message;
|
|
2754
|
+
},
|
|
2755
|
+
fromPartial(object) {
|
|
2756
|
+
const message = createBaseMsgStakePostConvictionResponse();
|
|
2757
|
+
message.stakeId = object.stakeId !== undefined && object.stakeId !== null ? BigInt(object.stakeId.toString()) : BigInt(0);
|
|
2758
|
+
return message;
|
|
2759
|
+
},
|
|
2760
|
+
fromAmino(object) {
|
|
2761
|
+
const message = createBaseMsgStakePostConvictionResponse();
|
|
2762
|
+
if (object.stake_id !== undefined && object.stake_id !== null) {
|
|
2763
|
+
message.stakeId = BigInt(object.stake_id);
|
|
2764
|
+
}
|
|
2765
|
+
return message;
|
|
2766
|
+
},
|
|
2767
|
+
toAmino(message) {
|
|
2768
|
+
const obj = {};
|
|
2769
|
+
obj.stake_id = message.stakeId !== BigInt(0) ? message.stakeId?.toString() : undefined;
|
|
2770
|
+
return obj;
|
|
2771
|
+
},
|
|
2772
|
+
fromAminoMsg(object) {
|
|
2773
|
+
return MsgStakePostConvictionResponse.fromAmino(object.value);
|
|
2774
|
+
},
|
|
2775
|
+
fromProtoMsg(message) {
|
|
2776
|
+
return MsgStakePostConvictionResponse.decode(message.value);
|
|
2777
|
+
},
|
|
2778
|
+
toProto(message) {
|
|
2779
|
+
return MsgStakePostConvictionResponse.encode(message).finish();
|
|
2780
|
+
},
|
|
2781
|
+
toProtoMsg(message) {
|
|
2782
|
+
return {
|
|
2783
|
+
typeUrl: "/sparkdream.forum.v1.MsgStakePostConvictionResponse",
|
|
2784
|
+
value: MsgStakePostConvictionResponse.encode(message).finish()
|
|
2785
|
+
};
|
|
2786
|
+
}
|
|
2787
|
+
};
|
|
2788
|
+
function createBaseMsgReleasePostConviction() {
|
|
2789
|
+
return {
|
|
2790
|
+
creator: "",
|
|
2791
|
+
stakeId: BigInt(0)
|
|
2792
|
+
};
|
|
2793
|
+
}
|
|
2794
|
+
/**
|
|
2795
|
+
* MsgReleasePostConviction closes a PostConvictionStake. Only the original
|
|
2796
|
+
* staker may release; release before unlocks_at is rejected.
|
|
2797
|
+
* @name MsgReleasePostConviction
|
|
2798
|
+
* @package sparkdream.forum.v1
|
|
2799
|
+
* @see proto type: sparkdream.forum.v1.MsgReleasePostConviction
|
|
2800
|
+
*/
|
|
2801
|
+
export const MsgReleasePostConviction = {
|
|
2802
|
+
typeUrl: "/sparkdream.forum.v1.MsgReleasePostConviction",
|
|
2803
|
+
aminoType: "sparkdream/x/forum/MsgReleasePostConviction",
|
|
2804
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2805
|
+
if (message.creator !== "") {
|
|
2806
|
+
writer.uint32(10).string(message.creator);
|
|
2807
|
+
}
|
|
2808
|
+
if (message.stakeId !== BigInt(0)) {
|
|
2809
|
+
writer.uint32(16).uint64(message.stakeId);
|
|
2810
|
+
}
|
|
2811
|
+
return writer;
|
|
2812
|
+
},
|
|
2813
|
+
decode(input, length) {
|
|
2814
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2815
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2816
|
+
const message = createBaseMsgReleasePostConviction();
|
|
2817
|
+
while (reader.pos < end) {
|
|
2818
|
+
const tag = reader.uint32();
|
|
2819
|
+
switch (tag >>> 3) {
|
|
2820
|
+
case 1:
|
|
2821
|
+
message.creator = reader.string();
|
|
2822
|
+
break;
|
|
2823
|
+
case 2:
|
|
2824
|
+
message.stakeId = reader.uint64();
|
|
2825
|
+
break;
|
|
2826
|
+
default:
|
|
2827
|
+
reader.skipType(tag & 7);
|
|
2828
|
+
break;
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
return message;
|
|
2832
|
+
},
|
|
2833
|
+
fromPartial(object) {
|
|
2834
|
+
const message = createBaseMsgReleasePostConviction();
|
|
2835
|
+
message.creator = object.creator ?? "";
|
|
2836
|
+
message.stakeId = object.stakeId !== undefined && object.stakeId !== null ? BigInt(object.stakeId.toString()) : BigInt(0);
|
|
2837
|
+
return message;
|
|
2838
|
+
},
|
|
2839
|
+
fromAmino(object) {
|
|
2840
|
+
const message = createBaseMsgReleasePostConviction();
|
|
2841
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
2842
|
+
message.creator = object.creator;
|
|
2843
|
+
}
|
|
2844
|
+
if (object.stake_id !== undefined && object.stake_id !== null) {
|
|
2845
|
+
message.stakeId = BigInt(object.stake_id);
|
|
2846
|
+
}
|
|
2847
|
+
return message;
|
|
2848
|
+
},
|
|
2849
|
+
toAmino(message) {
|
|
2850
|
+
const obj = {};
|
|
2851
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
2852
|
+
obj.stake_id = message.stakeId !== BigInt(0) ? message.stakeId?.toString() : undefined;
|
|
2853
|
+
return obj;
|
|
2854
|
+
},
|
|
2855
|
+
fromAminoMsg(object) {
|
|
2856
|
+
return MsgReleasePostConviction.fromAmino(object.value);
|
|
2857
|
+
},
|
|
2858
|
+
toAminoMsg(message) {
|
|
2859
|
+
return {
|
|
2860
|
+
type: "sparkdream/x/forum/MsgReleasePostConviction",
|
|
2861
|
+
value: MsgReleasePostConviction.toAmino(message)
|
|
2862
|
+
};
|
|
2863
|
+
},
|
|
2864
|
+
fromProtoMsg(message) {
|
|
2865
|
+
return MsgReleasePostConviction.decode(message.value);
|
|
2866
|
+
},
|
|
2867
|
+
toProto(message) {
|
|
2868
|
+
return MsgReleasePostConviction.encode(message).finish();
|
|
2869
|
+
},
|
|
2870
|
+
toProtoMsg(message) {
|
|
2871
|
+
return {
|
|
2872
|
+
typeUrl: "/sparkdream.forum.v1.MsgReleasePostConviction",
|
|
2873
|
+
value: MsgReleasePostConviction.encode(message).finish()
|
|
2874
|
+
};
|
|
2875
|
+
}
|
|
2876
|
+
};
|
|
2877
|
+
function createBaseMsgReleasePostConvictionResponse() {
|
|
2878
|
+
return {};
|
|
2879
|
+
}
|
|
2880
|
+
/**
|
|
2881
|
+
* MsgReleasePostConvictionResponse defines the MsgReleasePostConviction response.
|
|
2882
|
+
* @name MsgReleasePostConvictionResponse
|
|
2883
|
+
* @package sparkdream.forum.v1
|
|
2884
|
+
* @see proto type: sparkdream.forum.v1.MsgReleasePostConvictionResponse
|
|
2885
|
+
*/
|
|
2886
|
+
export const MsgReleasePostConvictionResponse = {
|
|
2887
|
+
typeUrl: "/sparkdream.forum.v1.MsgReleasePostConvictionResponse",
|
|
2888
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
2889
|
+
return writer;
|
|
2890
|
+
},
|
|
2891
|
+
decode(input, length) {
|
|
2892
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2893
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2894
|
+
const message = createBaseMsgReleasePostConvictionResponse();
|
|
2895
|
+
while (reader.pos < end) {
|
|
2896
|
+
const tag = reader.uint32();
|
|
2897
|
+
switch (tag >>> 3) {
|
|
2898
|
+
default:
|
|
2899
|
+
reader.skipType(tag & 7);
|
|
2900
|
+
break;
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
return message;
|
|
2904
|
+
},
|
|
2905
|
+
fromPartial(_) {
|
|
2906
|
+
const message = createBaseMsgReleasePostConvictionResponse();
|
|
2907
|
+
return message;
|
|
2908
|
+
},
|
|
2909
|
+
fromAmino(_) {
|
|
2910
|
+
const message = createBaseMsgReleasePostConvictionResponse();
|
|
2911
|
+
return message;
|
|
2912
|
+
},
|
|
2913
|
+
toAmino(_) {
|
|
2914
|
+
const obj = {};
|
|
2915
|
+
return obj;
|
|
2916
|
+
},
|
|
2917
|
+
fromAminoMsg(object) {
|
|
2918
|
+
return MsgReleasePostConvictionResponse.fromAmino(object.value);
|
|
2919
|
+
},
|
|
2920
|
+
fromProtoMsg(message) {
|
|
2921
|
+
return MsgReleasePostConvictionResponse.decode(message.value);
|
|
2922
|
+
},
|
|
2923
|
+
toProto(message) {
|
|
2924
|
+
return MsgReleasePostConvictionResponse.encode(message).finish();
|
|
2925
|
+
},
|
|
2926
|
+
toProtoMsg(message) {
|
|
2927
|
+
return {
|
|
2928
|
+
typeUrl: "/sparkdream.forum.v1.MsgReleasePostConvictionResponse",
|
|
2929
|
+
value: MsgReleasePostConvictionResponse.encode(message).finish()
|
|
2930
|
+
};
|
|
2931
|
+
}
|
|
2932
|
+
};
|
|
2473
2933
|
function createBaseMsgFlagPost() {
|
|
2474
2934
|
return {
|
|
2475
2935
|
creator: "",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgUnhidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused } from "./tx";
|
|
2
|
-
export const registry = [["/sparkdream.forum.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", MsgUnpinPost], ["/sparkdream.forum.v1.MsgLockThread", MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", MsgDownvotePost], ["/sparkdream.forum.v1.MsgFlagPost", MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", MsgHidePost], ["/sparkdream.forum.v1.MsgUnhidePost", MsgUnhidePost], ["/sparkdream.forum.v1.MsgAppealPost", MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", MsgSetModerationPaused]];
|
|
1
|
+
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";
|
|
2
|
+
export const registry = [["/sparkdream.forum.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", MsgUnpinPost], ["/sparkdream.forum.v1.MsgMakePostPermanent", MsgMakePostPermanent], ["/sparkdream.forum.v1.MsgLockThread", MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", MsgDownvotePost], ["/sparkdream.forum.v1.MsgStakePostConviction", MsgStakePostConviction], ["/sparkdream.forum.v1.MsgReleasePostConviction", MsgReleasePostConviction], ["/sparkdream.forum.v1.MsgFlagPost", MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", MsgHidePost], ["/sparkdream.forum.v1.MsgUnhidePost", MsgUnhidePost], ["/sparkdream.forum.v1.MsgAppealPost", MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", MsgSetModerationPaused]];
|
|
3
3
|
export const load = (protoRegistry) => {
|
|
4
4
|
registry.forEach(([typeUrl, mod]) => {
|
|
5
5
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -61,6 +61,12 @@ export const MessageComposer = {
|
|
|
61
61
|
value: MsgUnpinPost.encode(value).finish()
|
|
62
62
|
};
|
|
63
63
|
},
|
|
64
|
+
makePostPermanent(value) {
|
|
65
|
+
return {
|
|
66
|
+
typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanent",
|
|
67
|
+
value: MsgMakePostPermanent.encode(value).finish()
|
|
68
|
+
};
|
|
69
|
+
},
|
|
64
70
|
lockThread(value) {
|
|
65
71
|
return {
|
|
66
72
|
typeUrl: "/sparkdream.forum.v1.MsgLockThread",
|
|
@@ -103,6 +109,18 @@ export const MessageComposer = {
|
|
|
103
109
|
value: MsgDownvotePost.encode(value).finish()
|
|
104
110
|
};
|
|
105
111
|
},
|
|
112
|
+
stakePostConviction(value) {
|
|
113
|
+
return {
|
|
114
|
+
typeUrl: "/sparkdream.forum.v1.MsgStakePostConviction",
|
|
115
|
+
value: MsgStakePostConviction.encode(value).finish()
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
releasePostConviction(value) {
|
|
119
|
+
return {
|
|
120
|
+
typeUrl: "/sparkdream.forum.v1.MsgReleasePostConviction",
|
|
121
|
+
value: MsgReleasePostConviction.encode(value).finish()
|
|
122
|
+
};
|
|
123
|
+
},
|
|
106
124
|
flagPost(value) {
|
|
107
125
|
return {
|
|
108
126
|
typeUrl: "/sparkdream.forum.v1.MsgFlagPost",
|
|
@@ -279,6 +297,12 @@ export const MessageComposer = {
|
|
|
279
297
|
value
|
|
280
298
|
};
|
|
281
299
|
},
|
|
300
|
+
makePostPermanent(value) {
|
|
301
|
+
return {
|
|
302
|
+
typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanent",
|
|
303
|
+
value
|
|
304
|
+
};
|
|
305
|
+
},
|
|
282
306
|
lockThread(value) {
|
|
283
307
|
return {
|
|
284
308
|
typeUrl: "/sparkdream.forum.v1.MsgLockThread",
|
|
@@ -321,6 +345,18 @@ export const MessageComposer = {
|
|
|
321
345
|
value
|
|
322
346
|
};
|
|
323
347
|
},
|
|
348
|
+
stakePostConviction(value) {
|
|
349
|
+
return {
|
|
350
|
+
typeUrl: "/sparkdream.forum.v1.MsgStakePostConviction",
|
|
351
|
+
value
|
|
352
|
+
};
|
|
353
|
+
},
|
|
354
|
+
releasePostConviction(value) {
|
|
355
|
+
return {
|
|
356
|
+
typeUrl: "/sparkdream.forum.v1.MsgReleasePostConviction",
|
|
357
|
+
value
|
|
358
|
+
};
|
|
359
|
+
},
|
|
324
360
|
flagPost(value) {
|
|
325
361
|
return {
|
|
326
362
|
typeUrl: "/sparkdream.forum.v1.MsgFlagPost",
|
|
@@ -497,6 +533,12 @@ export const MessageComposer = {
|
|
|
497
533
|
value: MsgUnpinPost.fromPartial(value)
|
|
498
534
|
};
|
|
499
535
|
},
|
|
536
|
+
makePostPermanent(value) {
|
|
537
|
+
return {
|
|
538
|
+
typeUrl: "/sparkdream.forum.v1.MsgMakePostPermanent",
|
|
539
|
+
value: MsgMakePostPermanent.fromPartial(value)
|
|
540
|
+
};
|
|
541
|
+
},
|
|
500
542
|
lockThread(value) {
|
|
501
543
|
return {
|
|
502
544
|
typeUrl: "/sparkdream.forum.v1.MsgLockThread",
|
|
@@ -539,6 +581,18 @@ export const MessageComposer = {
|
|
|
539
581
|
value: MsgDownvotePost.fromPartial(value)
|
|
540
582
|
};
|
|
541
583
|
},
|
|
584
|
+
stakePostConviction(value) {
|
|
585
|
+
return {
|
|
586
|
+
typeUrl: "/sparkdream.forum.v1.MsgStakePostConviction",
|
|
587
|
+
value: MsgStakePostConviction.fromPartial(value)
|
|
588
|
+
};
|
|
589
|
+
},
|
|
590
|
+
releasePostConviction(value) {
|
|
591
|
+
return {
|
|
592
|
+
typeUrl: "/sparkdream.forum.v1.MsgReleasePostConviction",
|
|
593
|
+
value: MsgReleasePostConviction.fromPartial(value)
|
|
594
|
+
};
|
|
595
|
+
},
|
|
542
596
|
flagPost(value) {
|
|
543
597
|
return {
|
|
544
598
|
typeUrl: "/sparkdream.forum.v1.MsgFlagPost",
|