@sparkdreamnft/sparkdreamjs 0.0.13 → 0.0.15
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/commons/v1/tx.js +147 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +20 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +7 -1
- package/esm/sparkdream/forum/v1/hide_record.js +19 -1
- package/esm/sparkdream/forum/v1/params.js +26 -2
- package/esm/sparkdream/forum/v1/tx.amino.js +6 -1
- package/esm/sparkdream/forum/v1/tx.js +144 -0
- package/esm/sparkdream/forum/v1/tx.registry.js +20 -2
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +12 -1
- package/esm/sparkdream/rep/v1/params.js +74 -2
- package/esm/sparkdream/rep/v1/project.js +24 -1
- package/esm/sparkdream/session/v1/params.js +26 -2
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +81 -0
- package/sparkdream/client.d.ts +5 -0
- package/sparkdream/commons/v1/tx.d.ts +99 -0
- package/sparkdream/commons/v1/tx.js +148 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +13 -1
- package/sparkdream/commons/v1/tx.registry.js +19 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +3 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +6 -0
- package/sparkdream/forum/v1/hide_record.d.ts +50 -0
- package/sparkdream/forum/v1/hide_record.js +19 -1
- package/sparkdream/forum/v1/params.d.ts +28 -0
- package/sparkdream/forum/v1/params.js +26 -2
- package/sparkdream/forum/v1/tx.amino.d.ts +6 -1
- package/sparkdream/forum/v1/tx.amino.js +5 -0
- package/sparkdream/forum/v1/tx.d.ts +90 -0
- package/sparkdream/forum/v1/tx.js +146 -2
- 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 +11 -1
- package/sparkdream/forum/v1/tx.rpc.msg.js +11 -0
- package/sparkdream/rep/v1/params.d.ts +52 -0
- package/sparkdream/rep/v1/params.js +74 -2
- package/sparkdream/rep/v1/project.d.ts +22 -0
- package/sparkdream/rep/v1/project.js +24 -1
- package/sparkdream/session/v1/params.d.ts +12 -0
- package/sparkdream/session/v1/params.js +26 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MsgCreateCategoryResponse = exports.MsgCreateCategory = exports.MsgAnonymousVoteProposalResponse = exports.MsgAnonymousVoteProposal = exports.MsgSubmitAnonymousProposalResponse = exports.MsgSubmitAnonymousProposal = exports.MsgExecuteProposalResponse = exports.MsgExecuteProposal = exports.MsgVoteProposalResponse = exports.MsgVoteProposal = exports.MsgSubmitProposalResponse = exports.MsgSubmitProposal = exports.MsgVetoGroupProposalsResponse = exports.MsgVetoGroupProposals = exports.MsgDeleteGroupResponse = exports.MsgDeleteGroup = exports.BoolValue = exports.MsgForceUpgradeResponse = exports.UpgradePlan = exports.MsgForceUpgrade = exports.MsgUpdateGroupMembersResponse = exports.MsgUpdateGroupMembers = exports.MsgUpdateGroupConfigResponse = exports.MsgUpdateGroupConfig = exports.MsgRenewGroupResponse = exports.MsgRenewGroup = exports.MsgRegisterGroupResponse = exports.MsgRegisterGroup = exports.MsgDeletePolicyPermissionsResponse = exports.MsgDeletePolicyPermissions = exports.MsgUpdatePolicyPermissionsResponse = exports.MsgUpdatePolicyPermissions = exports.MsgCreatePolicyPermissionsResponse = exports.MsgCreatePolicyPermissions = exports.MsgEmergencyCancelGovProposalResponse = exports.MsgEmergencyCancelGovProposal = exports.MsgSpendFromCommonsResponse = exports.MsgSpendFromCommons = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = void 0;
|
|
3
|
+
exports.MsgDeleteCategoryResponse = exports.MsgDeleteCategory = exports.MsgCreateCategoryResponse = exports.MsgCreateCategory = exports.MsgAnonymousVoteProposalResponse = exports.MsgAnonymousVoteProposal = exports.MsgSubmitAnonymousProposalResponse = exports.MsgSubmitAnonymousProposal = exports.MsgExecuteProposalResponse = exports.MsgExecuteProposal = exports.MsgVoteProposalResponse = exports.MsgVoteProposal = exports.MsgSubmitProposalResponse = exports.MsgSubmitProposal = exports.MsgVetoGroupProposalsResponse = exports.MsgVetoGroupProposals = exports.MsgDeleteGroupResponse = exports.MsgDeleteGroup = exports.BoolValue = exports.MsgForceUpgradeResponse = exports.UpgradePlan = exports.MsgForceUpgrade = exports.MsgUpdateGroupMembersResponse = exports.MsgUpdateGroupMembers = exports.MsgUpdateGroupConfigResponse = exports.MsgUpdateGroupConfig = exports.MsgRenewGroupResponse = exports.MsgRenewGroup = exports.MsgRegisterGroupResponse = exports.MsgRegisterGroup = exports.MsgDeletePolicyPermissionsResponse = exports.MsgDeletePolicyPermissions = exports.MsgUpdatePolicyPermissionsResponse = exports.MsgUpdatePolicyPermissions = exports.MsgCreatePolicyPermissionsResponse = exports.MsgCreatePolicyPermissions = exports.MsgEmergencyCancelGovProposalResponse = exports.MsgEmergencyCancelGovProposal = exports.MsgSpendFromCommonsResponse = exports.MsgSpendFromCommons = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
const params_1 = require("./params");
|
|
6
6
|
const coin_1 = require("../../../cosmos/base/v1beta1/coin");
|
|
@@ -3567,3 +3567,150 @@ exports.MsgCreateCategoryResponse = {
|
|
|
3567
3567
|
};
|
|
3568
3568
|
}
|
|
3569
3569
|
};
|
|
3570
|
+
function createBaseMsgDeleteCategory() {
|
|
3571
|
+
return {
|
|
3572
|
+
creator: "",
|
|
3573
|
+
categoryId: BigInt(0)
|
|
3574
|
+
};
|
|
3575
|
+
}
|
|
3576
|
+
/**
|
|
3577
|
+
* MsgDeleteCategory removes a shared content category. Restricted to
|
|
3578
|
+
* governance or the Commons Council Operations Committee. Refuses to
|
|
3579
|
+
* delete a category that still has forum posts attached — admins must
|
|
3580
|
+
* move/archive those first.
|
|
3581
|
+
* @name MsgDeleteCategory
|
|
3582
|
+
* @package sparkdream.commons.v1
|
|
3583
|
+
* @see proto type: sparkdream.commons.v1.MsgDeleteCategory
|
|
3584
|
+
*/
|
|
3585
|
+
exports.MsgDeleteCategory = {
|
|
3586
|
+
typeUrl: "/sparkdream.commons.v1.MsgDeleteCategory",
|
|
3587
|
+
aminoType: "sparkdream/x/commons/MsgDeleteCategory",
|
|
3588
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
3589
|
+
if (message.creator !== "") {
|
|
3590
|
+
writer.uint32(10).string(message.creator);
|
|
3591
|
+
}
|
|
3592
|
+
if (message.categoryId !== BigInt(0)) {
|
|
3593
|
+
writer.uint32(16).uint64(message.categoryId);
|
|
3594
|
+
}
|
|
3595
|
+
return writer;
|
|
3596
|
+
},
|
|
3597
|
+
decode(input, length) {
|
|
3598
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3599
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3600
|
+
const message = createBaseMsgDeleteCategory();
|
|
3601
|
+
while (reader.pos < end) {
|
|
3602
|
+
const tag = reader.uint32();
|
|
3603
|
+
switch (tag >>> 3) {
|
|
3604
|
+
case 1:
|
|
3605
|
+
message.creator = reader.string();
|
|
3606
|
+
break;
|
|
3607
|
+
case 2:
|
|
3608
|
+
message.categoryId = reader.uint64();
|
|
3609
|
+
break;
|
|
3610
|
+
default:
|
|
3611
|
+
reader.skipType(tag & 7);
|
|
3612
|
+
break;
|
|
3613
|
+
}
|
|
3614
|
+
}
|
|
3615
|
+
return message;
|
|
3616
|
+
},
|
|
3617
|
+
fromPartial(object) {
|
|
3618
|
+
const message = createBaseMsgDeleteCategory();
|
|
3619
|
+
message.creator = object.creator ?? "";
|
|
3620
|
+
message.categoryId = object.categoryId !== undefined && object.categoryId !== null ? BigInt(object.categoryId.toString()) : BigInt(0);
|
|
3621
|
+
return message;
|
|
3622
|
+
},
|
|
3623
|
+
fromAmino(object) {
|
|
3624
|
+
const message = createBaseMsgDeleteCategory();
|
|
3625
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3626
|
+
message.creator = object.creator;
|
|
3627
|
+
}
|
|
3628
|
+
if (object.category_id !== undefined && object.category_id !== null) {
|
|
3629
|
+
message.categoryId = BigInt(object.category_id);
|
|
3630
|
+
}
|
|
3631
|
+
return message;
|
|
3632
|
+
},
|
|
3633
|
+
toAmino(message) {
|
|
3634
|
+
const obj = {};
|
|
3635
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
3636
|
+
obj.category_id = message.categoryId !== BigInt(0) ? message.categoryId?.toString() : undefined;
|
|
3637
|
+
return obj;
|
|
3638
|
+
},
|
|
3639
|
+
fromAminoMsg(object) {
|
|
3640
|
+
return exports.MsgDeleteCategory.fromAmino(object.value);
|
|
3641
|
+
},
|
|
3642
|
+
toAminoMsg(message) {
|
|
3643
|
+
return {
|
|
3644
|
+
type: "sparkdream/x/commons/MsgDeleteCategory",
|
|
3645
|
+
value: exports.MsgDeleteCategory.toAmino(message)
|
|
3646
|
+
};
|
|
3647
|
+
},
|
|
3648
|
+
fromProtoMsg(message) {
|
|
3649
|
+
return exports.MsgDeleteCategory.decode(message.value);
|
|
3650
|
+
},
|
|
3651
|
+
toProto(message) {
|
|
3652
|
+
return exports.MsgDeleteCategory.encode(message).finish();
|
|
3653
|
+
},
|
|
3654
|
+
toProtoMsg(message) {
|
|
3655
|
+
return {
|
|
3656
|
+
typeUrl: "/sparkdream.commons.v1.MsgDeleteCategory",
|
|
3657
|
+
value: exports.MsgDeleteCategory.encode(message).finish()
|
|
3658
|
+
};
|
|
3659
|
+
}
|
|
3660
|
+
};
|
|
3661
|
+
function createBaseMsgDeleteCategoryResponse() {
|
|
3662
|
+
return {};
|
|
3663
|
+
}
|
|
3664
|
+
/**
|
|
3665
|
+
* MsgDeleteCategoryResponse defines the MsgDeleteCategoryResponse message.
|
|
3666
|
+
* @name MsgDeleteCategoryResponse
|
|
3667
|
+
* @package sparkdream.commons.v1
|
|
3668
|
+
* @see proto type: sparkdream.commons.v1.MsgDeleteCategoryResponse
|
|
3669
|
+
*/
|
|
3670
|
+
exports.MsgDeleteCategoryResponse = {
|
|
3671
|
+
typeUrl: "/sparkdream.commons.v1.MsgDeleteCategoryResponse",
|
|
3672
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3673
|
+
return writer;
|
|
3674
|
+
},
|
|
3675
|
+
decode(input, length) {
|
|
3676
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3677
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3678
|
+
const message = createBaseMsgDeleteCategoryResponse();
|
|
3679
|
+
while (reader.pos < end) {
|
|
3680
|
+
const tag = reader.uint32();
|
|
3681
|
+
switch (tag >>> 3) {
|
|
3682
|
+
default:
|
|
3683
|
+
reader.skipType(tag & 7);
|
|
3684
|
+
break;
|
|
3685
|
+
}
|
|
3686
|
+
}
|
|
3687
|
+
return message;
|
|
3688
|
+
},
|
|
3689
|
+
fromPartial(_) {
|
|
3690
|
+
const message = createBaseMsgDeleteCategoryResponse();
|
|
3691
|
+
return message;
|
|
3692
|
+
},
|
|
3693
|
+
fromAmino(_) {
|
|
3694
|
+
const message = createBaseMsgDeleteCategoryResponse();
|
|
3695
|
+
return message;
|
|
3696
|
+
},
|
|
3697
|
+
toAmino(_) {
|
|
3698
|
+
const obj = {};
|
|
3699
|
+
return obj;
|
|
3700
|
+
},
|
|
3701
|
+
fromAminoMsg(object) {
|
|
3702
|
+
return exports.MsgDeleteCategoryResponse.fromAmino(object.value);
|
|
3703
|
+
},
|
|
3704
|
+
fromProtoMsg(message) {
|
|
3705
|
+
return exports.MsgDeleteCategoryResponse.decode(message.value);
|
|
3706
|
+
},
|
|
3707
|
+
toProto(message) {
|
|
3708
|
+
return exports.MsgDeleteCategoryResponse.encode(message).finish();
|
|
3709
|
+
},
|
|
3710
|
+
toProtoMsg(message) {
|
|
3711
|
+
return {
|
|
3712
|
+
typeUrl: "/sparkdream.commons.v1.MsgDeleteCategoryResponse",
|
|
3713
|
+
value: exports.MsgDeleteCategoryResponse.encode(message).finish()
|
|
3714
|
+
};
|
|
3715
|
+
}
|
|
3716
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TelescopeGeneratedType } from "../../../types";
|
|
2
2
|
import { Registry } from "@cosmjs/proto-signing";
|
|
3
|
-
import { MsgUpdateParams, MsgSpendFromCommons, MsgEmergencyCancelGovProposal, MsgCreatePolicyPermissions, MsgUpdatePolicyPermissions, MsgDeletePolicyPermissions, MsgRegisterGroup, MsgRenewGroup, MsgUpdateGroupMembers, MsgUpdateGroupConfig, MsgForceUpgrade, MsgDeleteGroup, MsgVetoGroupProposals, MsgSubmitProposal, MsgVoteProposal, MsgExecuteProposal, MsgSubmitAnonymousProposal, MsgAnonymousVoteProposal, MsgCreateCategory } from "./tx";
|
|
3
|
+
import { MsgUpdateParams, MsgSpendFromCommons, MsgEmergencyCancelGovProposal, MsgCreatePolicyPermissions, MsgUpdatePolicyPermissions, MsgDeletePolicyPermissions, MsgRegisterGroup, MsgRenewGroup, MsgUpdateGroupMembers, MsgUpdateGroupConfig, MsgForceUpgrade, MsgDeleteGroup, MsgVetoGroupProposals, MsgSubmitProposal, MsgVoteProposal, MsgExecuteProposal, MsgSubmitAnonymousProposal, MsgAnonymousVoteProposal, MsgCreateCategory, MsgDeleteCategory } 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: {
|
|
@@ -81,6 +81,10 @@ export declare const MessageComposer: {
|
|
|
81
81
|
typeUrl: string;
|
|
82
82
|
value: Uint8Array<ArrayBufferLike>;
|
|
83
83
|
};
|
|
84
|
+
deleteCategory(value: MsgDeleteCategory): {
|
|
85
|
+
typeUrl: string;
|
|
86
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
87
|
+
};
|
|
84
88
|
};
|
|
85
89
|
withTypeUrl: {
|
|
86
90
|
updateParams(value: MsgUpdateParams): {
|
|
@@ -159,6 +163,10 @@ export declare const MessageComposer: {
|
|
|
159
163
|
typeUrl: string;
|
|
160
164
|
value: MsgCreateCategory;
|
|
161
165
|
};
|
|
166
|
+
deleteCategory(value: MsgDeleteCategory): {
|
|
167
|
+
typeUrl: string;
|
|
168
|
+
value: MsgDeleteCategory;
|
|
169
|
+
};
|
|
162
170
|
};
|
|
163
171
|
fromPartial: {
|
|
164
172
|
updateParams(value: MsgUpdateParams): {
|
|
@@ -237,5 +245,9 @@ export declare const MessageComposer: {
|
|
|
237
245
|
typeUrl: string;
|
|
238
246
|
value: MsgCreateCategory;
|
|
239
247
|
};
|
|
248
|
+
deleteCategory(value: MsgDeleteCategory): {
|
|
249
|
+
typeUrl: string;
|
|
250
|
+
value: MsgDeleteCategory;
|
|
251
|
+
};
|
|
240
252
|
};
|
|
241
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.commons.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.commons.v1.MsgSpendFromCommons", tx_1.MsgSpendFromCommons], ["/sparkdream.commons.v1.MsgEmergencyCancelGovProposal", tx_1.MsgEmergencyCancelGovProposal], ["/sparkdream.commons.v1.MsgCreatePolicyPermissions", tx_1.MsgCreatePolicyPermissions], ["/sparkdream.commons.v1.MsgUpdatePolicyPermissions", tx_1.MsgUpdatePolicyPermissions], ["/sparkdream.commons.v1.MsgDeletePolicyPermissions", tx_1.MsgDeletePolicyPermissions], ["/sparkdream.commons.v1.MsgRegisterGroup", tx_1.MsgRegisterGroup], ["/sparkdream.commons.v1.MsgRenewGroup", tx_1.MsgRenewGroup], ["/sparkdream.commons.v1.MsgUpdateGroupMembers", tx_1.MsgUpdateGroupMembers], ["/sparkdream.commons.v1.MsgUpdateGroupConfig", tx_1.MsgUpdateGroupConfig], ["/sparkdream.commons.v1.MsgForceUpgrade", tx_1.MsgForceUpgrade], ["/sparkdream.commons.v1.MsgDeleteGroup", tx_1.MsgDeleteGroup], ["/sparkdream.commons.v1.MsgVetoGroupProposals", tx_1.MsgVetoGroupProposals], ["/sparkdream.commons.v1.MsgSubmitProposal", tx_1.MsgSubmitProposal], ["/sparkdream.commons.v1.MsgVoteProposal", tx_1.MsgVoteProposal], ["/sparkdream.commons.v1.MsgExecuteProposal", tx_1.MsgExecuteProposal], ["/sparkdream.commons.v1.MsgSubmitAnonymousProposal", tx_1.MsgSubmitAnonymousProposal], ["/sparkdream.commons.v1.MsgAnonymousVoteProposal", tx_1.MsgAnonymousVoteProposal], ["/sparkdream.commons.v1.MsgCreateCategory", tx_1.MsgCreateCategory]];
|
|
5
|
+
exports.registry = [["/sparkdream.commons.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.commons.v1.MsgSpendFromCommons", tx_1.MsgSpendFromCommons], ["/sparkdream.commons.v1.MsgEmergencyCancelGovProposal", tx_1.MsgEmergencyCancelGovProposal], ["/sparkdream.commons.v1.MsgCreatePolicyPermissions", tx_1.MsgCreatePolicyPermissions], ["/sparkdream.commons.v1.MsgUpdatePolicyPermissions", tx_1.MsgUpdatePolicyPermissions], ["/sparkdream.commons.v1.MsgDeletePolicyPermissions", tx_1.MsgDeletePolicyPermissions], ["/sparkdream.commons.v1.MsgRegisterGroup", tx_1.MsgRegisterGroup], ["/sparkdream.commons.v1.MsgRenewGroup", tx_1.MsgRenewGroup], ["/sparkdream.commons.v1.MsgUpdateGroupMembers", tx_1.MsgUpdateGroupMembers], ["/sparkdream.commons.v1.MsgUpdateGroupConfig", tx_1.MsgUpdateGroupConfig], ["/sparkdream.commons.v1.MsgForceUpgrade", tx_1.MsgForceUpgrade], ["/sparkdream.commons.v1.MsgDeleteGroup", tx_1.MsgDeleteGroup], ["/sparkdream.commons.v1.MsgVetoGroupProposals", tx_1.MsgVetoGroupProposals], ["/sparkdream.commons.v1.MsgSubmitProposal", tx_1.MsgSubmitProposal], ["/sparkdream.commons.v1.MsgVoteProposal", tx_1.MsgVoteProposal], ["/sparkdream.commons.v1.MsgExecuteProposal", tx_1.MsgExecuteProposal], ["/sparkdream.commons.v1.MsgSubmitAnonymousProposal", tx_1.MsgSubmitAnonymousProposal], ["/sparkdream.commons.v1.MsgAnonymousVoteProposal", tx_1.MsgAnonymousVoteProposal], ["/sparkdream.commons.v1.MsgCreateCategory", tx_1.MsgCreateCategory], ["/sparkdream.commons.v1.MsgDeleteCategory", tx_1.MsgDeleteCategory]];
|
|
6
6
|
const load = (protoRegistry) => {
|
|
7
7
|
exports.registry.forEach(([typeUrl, mod]) => {
|
|
8
8
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -124,6 +124,12 @@ exports.MessageComposer = {
|
|
|
124
124
|
typeUrl: "/sparkdream.commons.v1.MsgCreateCategory",
|
|
125
125
|
value: tx_1.MsgCreateCategory.encode(value).finish()
|
|
126
126
|
};
|
|
127
|
+
},
|
|
128
|
+
deleteCategory(value) {
|
|
129
|
+
return {
|
|
130
|
+
typeUrl: "/sparkdream.commons.v1.MsgDeleteCategory",
|
|
131
|
+
value: tx_1.MsgDeleteCategory.encode(value).finish()
|
|
132
|
+
};
|
|
127
133
|
}
|
|
128
134
|
},
|
|
129
135
|
withTypeUrl: {
|
|
@@ -240,6 +246,12 @@ exports.MessageComposer = {
|
|
|
240
246
|
typeUrl: "/sparkdream.commons.v1.MsgCreateCategory",
|
|
241
247
|
value
|
|
242
248
|
};
|
|
249
|
+
},
|
|
250
|
+
deleteCategory(value) {
|
|
251
|
+
return {
|
|
252
|
+
typeUrl: "/sparkdream.commons.v1.MsgDeleteCategory",
|
|
253
|
+
value
|
|
254
|
+
};
|
|
243
255
|
}
|
|
244
256
|
},
|
|
245
257
|
fromPartial: {
|
|
@@ -356,6 +368,12 @@ exports.MessageComposer = {
|
|
|
356
368
|
typeUrl: "/sparkdream.commons.v1.MsgCreateCategory",
|
|
357
369
|
value: tx_1.MsgCreateCategory.fromPartial(value)
|
|
358
370
|
};
|
|
371
|
+
},
|
|
372
|
+
deleteCategory(value) {
|
|
373
|
+
return {
|
|
374
|
+
typeUrl: "/sparkdream.commons.v1.MsgDeleteCategory",
|
|
375
|
+
value: tx_1.MsgDeleteCategory.fromPartial(value)
|
|
376
|
+
};
|
|
359
377
|
}
|
|
360
378
|
}
|
|
361
379
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TxRpc } from "../../../types";
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgSpendFromCommons, MsgSpendFromCommonsResponse, MsgEmergencyCancelGovProposal, MsgEmergencyCancelGovProposalResponse, MsgCreatePolicyPermissions, MsgCreatePolicyPermissionsResponse, MsgUpdatePolicyPermissions, MsgUpdatePolicyPermissionsResponse, MsgDeletePolicyPermissions, MsgDeletePolicyPermissionsResponse, MsgRegisterGroup, MsgRegisterGroupResponse, MsgRenewGroup, MsgRenewGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupConfig, MsgUpdateGroupConfigResponse, MsgForceUpgrade, MsgForceUpgradeResponse, MsgDeleteGroup, MsgDeleteGroupResponse, MsgVetoGroupProposals, MsgVetoGroupProposalsResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgVoteProposal, MsgVoteProposalResponse, MsgExecuteProposal, MsgExecuteProposalResponse, MsgSubmitAnonymousProposal, MsgSubmitAnonymousProposalResponse, MsgAnonymousVoteProposal, MsgAnonymousVoteProposalResponse, MsgCreateCategory, MsgCreateCategoryResponse } from "./tx";
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgSpendFromCommons, MsgSpendFromCommonsResponse, MsgEmergencyCancelGovProposal, MsgEmergencyCancelGovProposalResponse, MsgCreatePolicyPermissions, MsgCreatePolicyPermissionsResponse, MsgUpdatePolicyPermissions, MsgUpdatePolicyPermissionsResponse, MsgDeletePolicyPermissions, MsgDeletePolicyPermissionsResponse, MsgRegisterGroup, MsgRegisterGroupResponse, MsgRenewGroup, MsgRenewGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupConfig, MsgUpdateGroupConfigResponse, MsgForceUpgrade, MsgForceUpgradeResponse, MsgDeleteGroup, MsgDeleteGroupResponse, MsgVetoGroupProposals, MsgVetoGroupProposalsResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgVoteProposal, MsgVoteProposalResponse, MsgExecuteProposal, MsgExecuteProposalResponse, MsgSubmitAnonymousProposal, MsgSubmitAnonymousProposalResponse, MsgAnonymousVoteProposal, MsgAnonymousVoteProposalResponse, MsgCreateCategory, MsgCreateCategoryResponse, MsgDeleteCategory, MsgDeleteCategoryResponse } from "./tx";
|
|
3
3
|
/** Msg defines the Msg service. */
|
|
4
4
|
export interface Msg {
|
|
5
5
|
/**
|
|
@@ -52,6 +52,7 @@ export interface Msg {
|
|
|
52
52
|
* governance or the Commons Council Operations Committee.
|
|
53
53
|
*/
|
|
54
54
|
createCategory(request: MsgCreateCategory): Promise<MsgCreateCategoryResponse>;
|
|
55
|
+
deleteCategory(request: MsgDeleteCategory): Promise<MsgDeleteCategoryResponse>;
|
|
55
56
|
}
|
|
56
57
|
export declare class MsgClientImpl implements Msg {
|
|
57
58
|
private readonly rpc;
|
|
@@ -75,5 +76,6 @@ export declare class MsgClientImpl implements Msg {
|
|
|
75
76
|
submitAnonymousProposal: (request: MsgSubmitAnonymousProposal) => Promise<MsgSubmitAnonymousProposalResponse>;
|
|
76
77
|
anonymousVoteProposal: (request: MsgAnonymousVoteProposal) => Promise<MsgAnonymousVoteProposalResponse>;
|
|
77
78
|
createCategory: (request: MsgCreateCategory) => Promise<MsgCreateCategoryResponse>;
|
|
79
|
+
deleteCategory: (request: MsgDeleteCategory) => Promise<MsgDeleteCategoryResponse>;
|
|
78
80
|
}
|
|
79
81
|
export declare const createClientImpl: (rpc: TxRpc) => MsgClientImpl;
|
|
@@ -126,6 +126,12 @@ class MsgClientImpl {
|
|
|
126
126
|
const promise = this.rpc.request("sparkdream.commons.v1.Msg", "CreateCategory", data);
|
|
127
127
|
return promise.then(data => tx_1.MsgCreateCategoryResponse.decode(new binary_1.BinaryReader(data)));
|
|
128
128
|
};
|
|
129
|
+
/* DeleteCategory */
|
|
130
|
+
deleteCategory = async (request) => {
|
|
131
|
+
const data = tx_1.MsgDeleteCategory.encode(request).finish();
|
|
132
|
+
const promise = this.rpc.request("sparkdream.commons.v1.Msg", "DeleteCategory", data);
|
|
133
|
+
return promise.then(data => tx_1.MsgDeleteCategoryResponse.decode(new binary_1.BinaryReader(data)));
|
|
134
|
+
};
|
|
129
135
|
}
|
|
130
136
|
exports.MsgClientImpl = MsgClientImpl;
|
|
131
137
|
const createClientImpl = (rpc) => {
|
|
@@ -3,12 +3,24 @@ import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
|
3
3
|
import { DeepPartial } from "../../../helpers";
|
|
4
4
|
/**
|
|
5
5
|
* HideRecord defines the HideRecord message.
|
|
6
|
+
*
|
|
7
|
+
* Created by MsgHidePost for both sentinel hides and gov-authority hides.
|
|
8
|
+
* The `sentinel` field distinguishes the two: a non-empty address means a
|
|
9
|
+
* sentinel performed the hide and the record drives the appeal flow; an
|
|
10
|
+
* empty string is the gov-hide marker and the record exists only to enable
|
|
11
|
+
* council-driven reversal (author-bond restore + HideRecord cleanup).
|
|
6
12
|
* @name HideRecord
|
|
7
13
|
* @package sparkdream.forum.v1
|
|
8
14
|
* @see proto type: sparkdream.forum.v1.HideRecord
|
|
9
15
|
*/
|
|
10
16
|
export interface HideRecord {
|
|
11
17
|
postId: bigint;
|
|
18
|
+
/**
|
|
19
|
+
* Address of the sentinel who hid the post. Empty string is the gov-hide
|
|
20
|
+
* marker: AppealPost rejects these as ErrGovLockNotAppealable (must go
|
|
21
|
+
* through MsgAppealGovAction); GetActionSentinel / RecordSentinelAction*
|
|
22
|
+
* helpers soft-skip on empty.
|
|
23
|
+
*/
|
|
12
24
|
sentinel: string;
|
|
13
25
|
hiddenAt: bigint;
|
|
14
26
|
sentinelBondSnapshot: string;
|
|
@@ -16,6 +28,16 @@ export interface HideRecord {
|
|
|
16
28
|
committedAmount: string;
|
|
17
29
|
reasonCode: ModerationReason;
|
|
18
30
|
reasonText: string;
|
|
31
|
+
/**
|
|
32
|
+
* author_bond_amount captures the author bond that was slashed by MsgHidePost
|
|
33
|
+
* (math.Int as string; empty / "0" means no bond was attached). On reversal
|
|
34
|
+
* (MsgUnhidePost or appeal-OVERTURNED via ReverseSentinelAction) this amount
|
|
35
|
+
* is minted back to the author and re-locked as a fresh author bond, so the
|
|
36
|
+
* round-trip net DREAM supply change is zero. Populated for BOTH sentinel
|
|
37
|
+
* hides and gov-authority hides — see the `sentinel` field for how the two
|
|
38
|
+
* hide flavors are distinguished.
|
|
39
|
+
*/
|
|
40
|
+
authorBondAmount: string;
|
|
19
41
|
}
|
|
20
42
|
export interface HideRecordProtoMsg {
|
|
21
43
|
typeUrl: "/sparkdream.forum.v1.HideRecord";
|
|
@@ -23,12 +45,24 @@ export interface HideRecordProtoMsg {
|
|
|
23
45
|
}
|
|
24
46
|
/**
|
|
25
47
|
* HideRecord defines the HideRecord message.
|
|
48
|
+
*
|
|
49
|
+
* Created by MsgHidePost for both sentinel hides and gov-authority hides.
|
|
50
|
+
* The `sentinel` field distinguishes the two: a non-empty address means a
|
|
51
|
+
* sentinel performed the hide and the record drives the appeal flow; an
|
|
52
|
+
* empty string is the gov-hide marker and the record exists only to enable
|
|
53
|
+
* council-driven reversal (author-bond restore + HideRecord cleanup).
|
|
26
54
|
* @name HideRecordAmino
|
|
27
55
|
* @package sparkdream.forum.v1
|
|
28
56
|
* @see proto type: sparkdream.forum.v1.HideRecord
|
|
29
57
|
*/
|
|
30
58
|
export interface HideRecordAmino {
|
|
31
59
|
post_id?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Address of the sentinel who hid the post. Empty string is the gov-hide
|
|
62
|
+
* marker: AppealPost rejects these as ErrGovLockNotAppealable (must go
|
|
63
|
+
* through MsgAppealGovAction); GetActionSentinel / RecordSentinelAction*
|
|
64
|
+
* helpers soft-skip on empty.
|
|
65
|
+
*/
|
|
32
66
|
sentinel?: string;
|
|
33
67
|
hidden_at?: string;
|
|
34
68
|
sentinel_bond_snapshot?: string;
|
|
@@ -36,6 +70,16 @@ export interface HideRecordAmino {
|
|
|
36
70
|
committed_amount?: string;
|
|
37
71
|
reason_code?: ModerationReason;
|
|
38
72
|
reason_text?: string;
|
|
73
|
+
/**
|
|
74
|
+
* author_bond_amount captures the author bond that was slashed by MsgHidePost
|
|
75
|
+
* (math.Int as string; empty / "0" means no bond was attached). On reversal
|
|
76
|
+
* (MsgUnhidePost or appeal-OVERTURNED via ReverseSentinelAction) this amount
|
|
77
|
+
* is minted back to the author and re-locked as a fresh author bond, so the
|
|
78
|
+
* round-trip net DREAM supply change is zero. Populated for BOTH sentinel
|
|
79
|
+
* hides and gov-authority hides — see the `sentinel` field for how the two
|
|
80
|
+
* hide flavors are distinguished.
|
|
81
|
+
*/
|
|
82
|
+
author_bond_amount?: string;
|
|
39
83
|
}
|
|
40
84
|
export interface HideRecordAminoMsg {
|
|
41
85
|
type: "/sparkdream.forum.v1.HideRecord";
|
|
@@ -43,6 +87,12 @@ export interface HideRecordAminoMsg {
|
|
|
43
87
|
}
|
|
44
88
|
/**
|
|
45
89
|
* HideRecord defines the HideRecord message.
|
|
90
|
+
*
|
|
91
|
+
* Created by MsgHidePost for both sentinel hides and gov-authority hides.
|
|
92
|
+
* The `sentinel` field distinguishes the two: a non-empty address means a
|
|
93
|
+
* sentinel performed the hide and the record drives the appeal flow; an
|
|
94
|
+
* empty string is the gov-hide marker and the record exists only to enable
|
|
95
|
+
* council-driven reversal (author-bond restore + HideRecord cleanup).
|
|
46
96
|
* @name HideRecord
|
|
47
97
|
* @package sparkdream.forum.v1
|
|
48
98
|
* @see proto type: sparkdream.forum.v1.HideRecord
|
|
@@ -11,11 +11,18 @@ function createBaseHideRecord() {
|
|
|
11
11
|
sentinelBackingSnapshot: "",
|
|
12
12
|
committedAmount: "",
|
|
13
13
|
reasonCode: 0,
|
|
14
|
-
reasonText: ""
|
|
14
|
+
reasonText: "",
|
|
15
|
+
authorBondAmount: ""
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* HideRecord defines the HideRecord message.
|
|
20
|
+
*
|
|
21
|
+
* Created by MsgHidePost for both sentinel hides and gov-authority hides.
|
|
22
|
+
* The `sentinel` field distinguishes the two: a non-empty address means a
|
|
23
|
+
* sentinel performed the hide and the record drives the appeal flow; an
|
|
24
|
+
* empty string is the gov-hide marker and the record exists only to enable
|
|
25
|
+
* council-driven reversal (author-bond restore + HideRecord cleanup).
|
|
19
26
|
* @name HideRecord
|
|
20
27
|
* @package sparkdream.forum.v1
|
|
21
28
|
* @see proto type: sparkdream.forum.v1.HideRecord
|
|
@@ -47,6 +54,9 @@ exports.HideRecord = {
|
|
|
47
54
|
if (message.reasonText !== "") {
|
|
48
55
|
writer.uint32(66).string(message.reasonText);
|
|
49
56
|
}
|
|
57
|
+
if (message.authorBondAmount !== "") {
|
|
58
|
+
writer.uint32(74).string(message.authorBondAmount);
|
|
59
|
+
}
|
|
50
60
|
return writer;
|
|
51
61
|
},
|
|
52
62
|
decode(input, length) {
|
|
@@ -80,6 +90,9 @@ exports.HideRecord = {
|
|
|
80
90
|
case 8:
|
|
81
91
|
message.reasonText = reader.string();
|
|
82
92
|
break;
|
|
93
|
+
case 9:
|
|
94
|
+
message.authorBondAmount = reader.string();
|
|
95
|
+
break;
|
|
83
96
|
default:
|
|
84
97
|
reader.skipType(tag & 7);
|
|
85
98
|
break;
|
|
@@ -97,6 +110,7 @@ exports.HideRecord = {
|
|
|
97
110
|
message.committedAmount = object.committedAmount ?? "";
|
|
98
111
|
message.reasonCode = object.reasonCode ?? 0;
|
|
99
112
|
message.reasonText = object.reasonText ?? "";
|
|
113
|
+
message.authorBondAmount = object.authorBondAmount ?? "";
|
|
100
114
|
return message;
|
|
101
115
|
},
|
|
102
116
|
fromAmino(object) {
|
|
@@ -125,6 +139,9 @@ exports.HideRecord = {
|
|
|
125
139
|
if (object.reason_text !== undefined && object.reason_text !== null) {
|
|
126
140
|
message.reasonText = object.reason_text;
|
|
127
141
|
}
|
|
142
|
+
if (object.author_bond_amount !== undefined && object.author_bond_amount !== null) {
|
|
143
|
+
message.authorBondAmount = object.author_bond_amount;
|
|
144
|
+
}
|
|
128
145
|
return message;
|
|
129
146
|
},
|
|
130
147
|
toAmino(message) {
|
|
@@ -137,6 +154,7 @@ exports.HideRecord = {
|
|
|
137
154
|
obj.committed_amount = message.committedAmount === "" ? undefined : message.committedAmount;
|
|
138
155
|
obj.reason_code = message.reasonCode === 0 ? undefined : message.reasonCode;
|
|
139
156
|
obj.reason_text = message.reasonText === "" ? undefined : message.reasonText;
|
|
157
|
+
obj.author_bond_amount = message.authorBondAmount === "" ? undefined : message.authorBondAmount;
|
|
140
158
|
return obj;
|
|
141
159
|
},
|
|
142
160
|
fromAminoMsg(object) {
|
|
@@ -160,6 +160,13 @@ export interface Params {
|
|
|
160
160
|
* sentinel_demotion_threshold — see ForumOperationalParams.sentinel_demotion_threshold.
|
|
161
161
|
*/
|
|
162
162
|
sentinelDemotionThreshold: string;
|
|
163
|
+
/**
|
|
164
|
+
* sentinel_unhide_window in seconds. A sentinel who hid a post may
|
|
165
|
+
* self-correct (call MsgUnhidePost) within this window of the original
|
|
166
|
+
* hide; after it expires, only the Commons Operations Committee or
|
|
167
|
+
* governance can unhide. Analogous to edit_max_window for authors.
|
|
168
|
+
*/
|
|
169
|
+
sentinelUnhideWindow: bigint;
|
|
163
170
|
}
|
|
164
171
|
export interface ParamsProtoMsg {
|
|
165
172
|
typeUrl: "/sparkdream.forum.v1.Params";
|
|
@@ -324,6 +331,13 @@ export interface ParamsAmino {
|
|
|
324
331
|
* sentinel_demotion_threshold — see ForumOperationalParams.sentinel_demotion_threshold.
|
|
325
332
|
*/
|
|
326
333
|
sentinel_demotion_threshold?: string;
|
|
334
|
+
/**
|
|
335
|
+
* sentinel_unhide_window in seconds. A sentinel who hid a post may
|
|
336
|
+
* self-correct (call MsgUnhidePost) within this window of the original
|
|
337
|
+
* hide; after it expires, only the Commons Operations Committee or
|
|
338
|
+
* governance can unhide. Analogous to edit_max_window for authors.
|
|
339
|
+
*/
|
|
340
|
+
sentinel_unhide_window?: string;
|
|
327
341
|
}
|
|
328
342
|
export interface ParamsAminoMsg {
|
|
329
343
|
type: "sparkdream/x/forum/Params";
|
|
@@ -418,6 +432,13 @@ export interface ForumOperationalParams {
|
|
|
418
432
|
* transitions from RECOVERY to DEMOTED (math.Int string).
|
|
419
433
|
*/
|
|
420
434
|
sentinelDemotionThreshold: string;
|
|
435
|
+
/**
|
|
436
|
+
* sentinel_unhide_window in seconds. A sentinel who hid a post may
|
|
437
|
+
* self-correct (call MsgUnhidePost) within this window of the original
|
|
438
|
+
* hide; after it expires, only the Commons Operations Committee or
|
|
439
|
+
* governance can unhide.
|
|
440
|
+
*/
|
|
441
|
+
sentinelUnhideWindow: bigint;
|
|
421
442
|
}
|
|
422
443
|
export interface ForumOperationalParamsProtoMsg {
|
|
423
444
|
typeUrl: "/sparkdream.forum.v1.ForumOperationalParams";
|
|
@@ -512,6 +533,13 @@ export interface ForumOperationalParamsAmino {
|
|
|
512
533
|
* transitions from RECOVERY to DEMOTED (math.Int string).
|
|
513
534
|
*/
|
|
514
535
|
sentinel_demotion_threshold?: string;
|
|
536
|
+
/**
|
|
537
|
+
* sentinel_unhide_window in seconds. A sentinel who hid a post may
|
|
538
|
+
* self-correct (call MsgUnhidePost) within this window of the original
|
|
539
|
+
* hide; after it expires, only the Commons Operations Committee or
|
|
540
|
+
* governance can unhide.
|
|
541
|
+
*/
|
|
542
|
+
sentinel_unhide_window?: string;
|
|
515
543
|
}
|
|
516
544
|
export interface ForumOperationalParamsAminoMsg {
|
|
517
545
|
type: "sparkdream/x/forum/ForumOperationalParams";
|
|
@@ -44,7 +44,8 @@ function createBaseParams() {
|
|
|
44
44
|
minSentinelTrustLevel: "",
|
|
45
45
|
minSentinelAgeBlocks: BigInt(0),
|
|
46
46
|
sentinelDemotionCooldown: BigInt(0),
|
|
47
|
-
sentinelDemotionThreshold: ""
|
|
47
|
+
sentinelDemotionThreshold: "",
|
|
48
|
+
sentinelUnhideWindow: BigInt(0)
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
/**
|
|
@@ -171,6 +172,9 @@ exports.Params = {
|
|
|
171
172
|
if (message.sentinelDemotionThreshold !== "") {
|
|
172
173
|
writer.uint32(362).string(message.sentinelDemotionThreshold);
|
|
173
174
|
}
|
|
175
|
+
if (message.sentinelUnhideWindow !== BigInt(0)) {
|
|
176
|
+
writer.uint32(368).int64(message.sentinelUnhideWindow);
|
|
177
|
+
}
|
|
174
178
|
return writer;
|
|
175
179
|
},
|
|
176
180
|
decode(input, length) {
|
|
@@ -294,6 +298,9 @@ exports.Params = {
|
|
|
294
298
|
case 45:
|
|
295
299
|
message.sentinelDemotionThreshold = reader.string();
|
|
296
300
|
break;
|
|
301
|
+
case 46:
|
|
302
|
+
message.sentinelUnhideWindow = reader.int64();
|
|
303
|
+
break;
|
|
297
304
|
default:
|
|
298
305
|
reader.skipType(tag & 7);
|
|
299
306
|
break;
|
|
@@ -341,6 +348,7 @@ exports.Params = {
|
|
|
341
348
|
message.minSentinelAgeBlocks = object.minSentinelAgeBlocks !== undefined && object.minSentinelAgeBlocks !== null ? BigInt(object.minSentinelAgeBlocks.toString()) : BigInt(0);
|
|
342
349
|
message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
|
|
343
350
|
message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
|
|
351
|
+
message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
|
|
344
352
|
return message;
|
|
345
353
|
},
|
|
346
354
|
fromAmino(object) {
|
|
@@ -459,6 +467,9 @@ exports.Params = {
|
|
|
459
467
|
if (object.sentinel_demotion_threshold !== undefined && object.sentinel_demotion_threshold !== null) {
|
|
460
468
|
message.sentinelDemotionThreshold = object.sentinel_demotion_threshold;
|
|
461
469
|
}
|
|
470
|
+
if (object.sentinel_unhide_window !== undefined && object.sentinel_unhide_window !== null) {
|
|
471
|
+
message.sentinelUnhideWindow = BigInt(object.sentinel_unhide_window);
|
|
472
|
+
}
|
|
462
473
|
return message;
|
|
463
474
|
},
|
|
464
475
|
toAmino(message) {
|
|
@@ -501,6 +512,7 @@ exports.Params = {
|
|
|
501
512
|
obj.min_sentinel_age_blocks = message.minSentinelAgeBlocks !== BigInt(0) ? message.minSentinelAgeBlocks?.toString() : undefined;
|
|
502
513
|
obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
|
|
503
514
|
obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
|
|
515
|
+
obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
|
|
504
516
|
return obj;
|
|
505
517
|
},
|
|
506
518
|
fromAminoMsg(object) {
|
|
@@ -561,7 +573,8 @@ function createBaseForumOperationalParams() {
|
|
|
561
573
|
minSentinelTrustLevel: "",
|
|
562
574
|
minSentinelAgeBlocks: BigInt(0),
|
|
563
575
|
sentinelDemotionCooldown: BigInt(0),
|
|
564
|
-
sentinelDemotionThreshold: ""
|
|
576
|
+
sentinelDemotionThreshold: "",
|
|
577
|
+
sentinelUnhideWindow: BigInt(0)
|
|
565
578
|
};
|
|
566
579
|
}
|
|
567
580
|
/**
|
|
@@ -682,6 +695,9 @@ exports.ForumOperationalParams = {
|
|
|
682
695
|
if (message.sentinelDemotionThreshold !== "") {
|
|
683
696
|
writer.uint32(362).string(message.sentinelDemotionThreshold);
|
|
684
697
|
}
|
|
698
|
+
if (message.sentinelUnhideWindow !== BigInt(0)) {
|
|
699
|
+
writer.uint32(368).int64(message.sentinelUnhideWindow);
|
|
700
|
+
}
|
|
685
701
|
return writer;
|
|
686
702
|
},
|
|
687
703
|
decode(input, length) {
|
|
@@ -796,6 +812,9 @@ exports.ForumOperationalParams = {
|
|
|
796
812
|
case 45:
|
|
797
813
|
message.sentinelDemotionThreshold = reader.string();
|
|
798
814
|
break;
|
|
815
|
+
case 46:
|
|
816
|
+
message.sentinelUnhideWindow = reader.int64();
|
|
817
|
+
break;
|
|
799
818
|
default:
|
|
800
819
|
reader.skipType(tag & 7);
|
|
801
820
|
break;
|
|
@@ -840,6 +859,7 @@ exports.ForumOperationalParams = {
|
|
|
840
859
|
message.minSentinelAgeBlocks = object.minSentinelAgeBlocks !== undefined && object.minSentinelAgeBlocks !== null ? BigInt(object.minSentinelAgeBlocks.toString()) : BigInt(0);
|
|
841
860
|
message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
|
|
842
861
|
message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
|
|
862
|
+
message.sentinelUnhideWindow = object.sentinelUnhideWindow !== undefined && object.sentinelUnhideWindow !== null ? BigInt(object.sentinelUnhideWindow.toString()) : BigInt(0);
|
|
843
863
|
return message;
|
|
844
864
|
},
|
|
845
865
|
fromAmino(object) {
|
|
@@ -949,6 +969,9 @@ exports.ForumOperationalParams = {
|
|
|
949
969
|
if (object.sentinel_demotion_threshold !== undefined && object.sentinel_demotion_threshold !== null) {
|
|
950
970
|
message.sentinelDemotionThreshold = object.sentinel_demotion_threshold;
|
|
951
971
|
}
|
|
972
|
+
if (object.sentinel_unhide_window !== undefined && object.sentinel_unhide_window !== null) {
|
|
973
|
+
message.sentinelUnhideWindow = BigInt(object.sentinel_unhide_window);
|
|
974
|
+
}
|
|
952
975
|
return message;
|
|
953
976
|
},
|
|
954
977
|
toAmino(message) {
|
|
@@ -988,6 +1011,7 @@ exports.ForumOperationalParams = {
|
|
|
988
1011
|
obj.min_sentinel_age_blocks = message.minSentinelAgeBlocks !== BigInt(0) ? message.minSentinelAgeBlocks?.toString() : undefined;
|
|
989
1012
|
obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
|
|
990
1013
|
obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
|
|
1014
|
+
obj.sentinel_unhide_window = message.sentinelUnhideWindow !== BigInt(0) ? message.sentinelUnhideWindow?.toString() : undefined;
|
|
991
1015
|
return obj;
|
|
992
1016
|
},
|
|
993
1017
|
fromAminoMsg(object) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused } from "./tx";
|
|
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
2
|
export declare const AminoConverter: {
|
|
3
3
|
"/sparkdream.forum.v1.MsgUpdateParams": {
|
|
4
4
|
aminoType: string;
|
|
@@ -95,6 +95,11 @@ export declare const AminoConverter: {
|
|
|
95
95
|
toAmino: (message: MsgHidePost) => import("./tx").MsgHidePostAmino;
|
|
96
96
|
fromAmino: (object: import("./tx").MsgHidePostAmino) => MsgHidePost;
|
|
97
97
|
};
|
|
98
|
+
"/sparkdream.forum.v1.MsgUnhidePost": {
|
|
99
|
+
aminoType: string;
|
|
100
|
+
toAmino: (message: MsgUnhidePost) => import("./tx").MsgUnhidePostAmino;
|
|
101
|
+
fromAmino: (object: import("./tx").MsgUnhidePostAmino) => MsgUnhidePost;
|
|
102
|
+
};
|
|
98
103
|
"/sparkdream.forum.v1.MsgAppealPost": {
|
|
99
104
|
aminoType: string;
|
|
100
105
|
toAmino: (message: MsgAppealPost) => import("./tx").MsgAppealPostAmino;
|
|
@@ -99,6 +99,11 @@ exports.AminoConverter = {
|
|
|
99
99
|
toAmino: tx_1.MsgHidePost.toAmino,
|
|
100
100
|
fromAmino: tx_1.MsgHidePost.fromAmino
|
|
101
101
|
},
|
|
102
|
+
"/sparkdream.forum.v1.MsgUnhidePost": {
|
|
103
|
+
aminoType: "sparkdream/x/forum/MsgUnhidePost",
|
|
104
|
+
toAmino: tx_1.MsgUnhidePost.toAmino,
|
|
105
|
+
fromAmino: tx_1.MsgUnhidePost.fromAmino
|
|
106
|
+
},
|
|
102
107
|
"/sparkdream.forum.v1.MsgAppealPost": {
|
|
103
108
|
aminoType: "sparkdream/x/forum/MsgAppealPost",
|
|
104
109
|
toAmino: tx_1.MsgAppealPost.toAmino,
|