@sparkdreamnft/sparkdreamjs 0.0.13 → 0.0.14
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/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/bundle.d.ts
CHANGED
|
@@ -3589,6 +3589,10 @@ export declare namespace sparkdream {
|
|
|
3589
3589
|
typeUrl: string;
|
|
3590
3590
|
value: Uint8Array<ArrayBufferLike>;
|
|
3591
3591
|
};
|
|
3592
|
+
deleteCategory(value: _199.MsgDeleteCategory): {
|
|
3593
|
+
typeUrl: string;
|
|
3594
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
3595
|
+
};
|
|
3592
3596
|
};
|
|
3593
3597
|
withTypeUrl: {
|
|
3594
3598
|
updateParams(value: _199.MsgUpdateParams): {
|
|
@@ -3667,6 +3671,10 @@ export declare namespace sparkdream {
|
|
|
3667
3671
|
typeUrl: string;
|
|
3668
3672
|
value: _199.MsgCreateCategory;
|
|
3669
3673
|
};
|
|
3674
|
+
deleteCategory(value: _199.MsgDeleteCategory): {
|
|
3675
|
+
typeUrl: string;
|
|
3676
|
+
value: _199.MsgDeleteCategory;
|
|
3677
|
+
};
|
|
3670
3678
|
};
|
|
3671
3679
|
fromPartial: {
|
|
3672
3680
|
updateParams(value: _199.MsgUpdateParams): {
|
|
@@ -3745,6 +3753,10 @@ export declare namespace sparkdream {
|
|
|
3745
3753
|
typeUrl: string;
|
|
3746
3754
|
value: _199.MsgCreateCategory;
|
|
3747
3755
|
};
|
|
3756
|
+
deleteCategory(value: _199.MsgDeleteCategory): {
|
|
3757
|
+
typeUrl: string;
|
|
3758
|
+
value: _199.MsgDeleteCategory;
|
|
3759
|
+
};
|
|
3748
3760
|
};
|
|
3749
3761
|
};
|
|
3750
3762
|
configureNestedAminoConverter: typeof _480.configureNestedAminoConverter;
|
|
@@ -4363,6 +4375,32 @@ export declare namespace sparkdream {
|
|
|
4363
4375
|
toProto(message: _199.MsgCreateCategoryResponse): Uint8Array;
|
|
4364
4376
|
toProtoMsg(message: _199.MsgCreateCategoryResponse): _199.MsgCreateCategoryResponseProtoMsg;
|
|
4365
4377
|
};
|
|
4378
|
+
MsgDeleteCategory: {
|
|
4379
|
+
typeUrl: string;
|
|
4380
|
+
aminoType: string;
|
|
4381
|
+
encode(message: _199.MsgDeleteCategory, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
4382
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _199.MsgDeleteCategory;
|
|
4383
|
+
fromPartial(object: import("../helpers").DeepPartial<_199.MsgDeleteCategory>): _199.MsgDeleteCategory;
|
|
4384
|
+
fromAmino(object: _199.MsgDeleteCategoryAmino): _199.MsgDeleteCategory;
|
|
4385
|
+
toAmino(message: _199.MsgDeleteCategory): _199.MsgDeleteCategoryAmino;
|
|
4386
|
+
fromAminoMsg(object: _199.MsgDeleteCategoryAminoMsg): _199.MsgDeleteCategory;
|
|
4387
|
+
toAminoMsg(message: _199.MsgDeleteCategory): _199.MsgDeleteCategoryAminoMsg;
|
|
4388
|
+
fromProtoMsg(message: _199.MsgDeleteCategoryProtoMsg): _199.MsgDeleteCategory;
|
|
4389
|
+
toProto(message: _199.MsgDeleteCategory): Uint8Array;
|
|
4390
|
+
toProtoMsg(message: _199.MsgDeleteCategory): _199.MsgDeleteCategoryProtoMsg;
|
|
4391
|
+
};
|
|
4392
|
+
MsgDeleteCategoryResponse: {
|
|
4393
|
+
typeUrl: string;
|
|
4394
|
+
encode(_: _199.MsgDeleteCategoryResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
4395
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _199.MsgDeleteCategoryResponse;
|
|
4396
|
+
fromPartial(_: import("../helpers").DeepPartial<_199.MsgDeleteCategoryResponse>): _199.MsgDeleteCategoryResponse;
|
|
4397
|
+
fromAmino(_: _199.MsgDeleteCategoryResponseAmino): _199.MsgDeleteCategoryResponse;
|
|
4398
|
+
toAmino(_: _199.MsgDeleteCategoryResponse): _199.MsgDeleteCategoryResponseAmino;
|
|
4399
|
+
fromAminoMsg(object: _199.MsgDeleteCategoryResponseAminoMsg): _199.MsgDeleteCategoryResponse;
|
|
4400
|
+
fromProtoMsg(message: _199.MsgDeleteCategoryResponseProtoMsg): _199.MsgDeleteCategoryResponse;
|
|
4401
|
+
toProto(message: _199.MsgDeleteCategoryResponse): Uint8Array;
|
|
4402
|
+
toProtoMsg(message: _199.MsgDeleteCategoryResponse): _199.MsgDeleteCategoryResponseProtoMsg;
|
|
4403
|
+
};
|
|
4366
4404
|
QueryParamsRequest: {
|
|
4367
4405
|
typeUrl: string;
|
|
4368
4406
|
encode(_: _198.QueryParamsRequest, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
@@ -7056,6 +7094,10 @@ export declare namespace sparkdream {
|
|
|
7056
7094
|
typeUrl: string;
|
|
7057
7095
|
value: Uint8Array<ArrayBufferLike>;
|
|
7058
7096
|
};
|
|
7097
|
+
unhidePost(value: _228.MsgUnhidePost): {
|
|
7098
|
+
typeUrl: string;
|
|
7099
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
7100
|
+
};
|
|
7059
7101
|
appealPost(value: _228.MsgAppealPost): {
|
|
7060
7102
|
typeUrl: string;
|
|
7061
7103
|
value: Uint8Array<ArrayBufferLike>;
|
|
@@ -7198,6 +7240,10 @@ export declare namespace sparkdream {
|
|
|
7198
7240
|
typeUrl: string;
|
|
7199
7241
|
value: _228.MsgHidePost;
|
|
7200
7242
|
};
|
|
7243
|
+
unhidePost(value: _228.MsgUnhidePost): {
|
|
7244
|
+
typeUrl: string;
|
|
7245
|
+
value: _228.MsgUnhidePost;
|
|
7246
|
+
};
|
|
7201
7247
|
appealPost(value: _228.MsgAppealPost): {
|
|
7202
7248
|
typeUrl: string;
|
|
7203
7249
|
value: _228.MsgAppealPost;
|
|
@@ -7340,6 +7386,10 @@ export declare namespace sparkdream {
|
|
|
7340
7386
|
typeUrl: string;
|
|
7341
7387
|
value: _228.MsgHidePost;
|
|
7342
7388
|
};
|
|
7389
|
+
unhidePost(value: _228.MsgUnhidePost): {
|
|
7390
|
+
typeUrl: string;
|
|
7391
|
+
value: _228.MsgUnhidePost;
|
|
7392
|
+
};
|
|
7343
7393
|
appealPost(value: _228.MsgAppealPost): {
|
|
7344
7394
|
typeUrl: string;
|
|
7345
7395
|
value: _228.MsgAppealPost;
|
|
@@ -7502,6 +7552,11 @@ export declare namespace sparkdream {
|
|
|
7502
7552
|
toAmino: (message: _228.MsgHidePost) => _228.MsgHidePostAmino;
|
|
7503
7553
|
fromAmino: (object: _228.MsgHidePostAmino) => _228.MsgHidePost;
|
|
7504
7554
|
};
|
|
7555
|
+
"/sparkdream.forum.v1.MsgUnhidePost": {
|
|
7556
|
+
aminoType: string;
|
|
7557
|
+
toAmino: (message: _228.MsgUnhidePost) => _228.MsgUnhidePostAmino;
|
|
7558
|
+
fromAmino: (object: _228.MsgUnhidePostAmino) => _228.MsgUnhidePost;
|
|
7559
|
+
};
|
|
7505
7560
|
"/sparkdream.forum.v1.MsgAppealPost": {
|
|
7506
7561
|
aminoType: string;
|
|
7507
7562
|
toAmino: (message: _228.MsgAppealPost) => _228.MsgAppealPostAmino;
|
|
@@ -8141,6 +8196,32 @@ export declare namespace sparkdream {
|
|
|
8141
8196
|
toProto(message: _228.MsgHidePostResponse): Uint8Array;
|
|
8142
8197
|
toProtoMsg(message: _228.MsgHidePostResponse): _228.MsgHidePostResponseProtoMsg;
|
|
8143
8198
|
};
|
|
8199
|
+
MsgUnhidePost: {
|
|
8200
|
+
typeUrl: string;
|
|
8201
|
+
aminoType: string;
|
|
8202
|
+
encode(message: _228.MsgUnhidePost, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
8203
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _228.MsgUnhidePost;
|
|
8204
|
+
fromPartial(object: import("../helpers").DeepPartial<_228.MsgUnhidePost>): _228.MsgUnhidePost;
|
|
8205
|
+
fromAmino(object: _228.MsgUnhidePostAmino): _228.MsgUnhidePost;
|
|
8206
|
+
toAmino(message: _228.MsgUnhidePost): _228.MsgUnhidePostAmino;
|
|
8207
|
+
fromAminoMsg(object: _228.MsgUnhidePostAminoMsg): _228.MsgUnhidePost;
|
|
8208
|
+
toAminoMsg(message: _228.MsgUnhidePost): _228.MsgUnhidePostAminoMsg;
|
|
8209
|
+
fromProtoMsg(message: _228.MsgUnhidePostProtoMsg): _228.MsgUnhidePost;
|
|
8210
|
+
toProto(message: _228.MsgUnhidePost): Uint8Array;
|
|
8211
|
+
toProtoMsg(message: _228.MsgUnhidePost): _228.MsgUnhidePostProtoMsg;
|
|
8212
|
+
};
|
|
8213
|
+
MsgUnhidePostResponse: {
|
|
8214
|
+
typeUrl: string;
|
|
8215
|
+
encode(_: _228.MsgUnhidePostResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
8216
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _228.MsgUnhidePostResponse;
|
|
8217
|
+
fromPartial(_: import("../helpers").DeepPartial<_228.MsgUnhidePostResponse>): _228.MsgUnhidePostResponse;
|
|
8218
|
+
fromAmino(_: _228.MsgUnhidePostResponseAmino): _228.MsgUnhidePostResponse;
|
|
8219
|
+
toAmino(_: _228.MsgUnhidePostResponse): _228.MsgUnhidePostResponseAmino;
|
|
8220
|
+
fromAminoMsg(object: _228.MsgUnhidePostResponseAminoMsg): _228.MsgUnhidePostResponse;
|
|
8221
|
+
fromProtoMsg(message: _228.MsgUnhidePostResponseProtoMsg): _228.MsgUnhidePostResponse;
|
|
8222
|
+
toProto(message: _228.MsgUnhidePostResponse): Uint8Array;
|
|
8223
|
+
toProtoMsg(message: _228.MsgUnhidePostResponse): _228.MsgUnhidePostResponseProtoMsg;
|
|
8224
|
+
};
|
|
8144
8225
|
MsgAppealPost: {
|
|
8145
8226
|
typeUrl: string;
|
|
8146
8227
|
aminoType: string;
|
package/sparkdream/client.d.ts
CHANGED
|
@@ -752,6 +752,11 @@ export declare const sparkdreamAminoConverters: {
|
|
|
752
752
|
toAmino: (message: import("./forum/v1/tx").MsgHidePost) => import("./forum/v1/tx").MsgHidePostAmino;
|
|
753
753
|
fromAmino: (object: import("./forum/v1/tx").MsgHidePostAmino) => import("./forum/v1/tx").MsgHidePost;
|
|
754
754
|
};
|
|
755
|
+
"/sparkdream.forum.v1.MsgUnhidePost": {
|
|
756
|
+
aminoType: string;
|
|
757
|
+
toAmino: (message: import("./forum/v1/tx").MsgUnhidePost) => import("./forum/v1/tx").MsgUnhidePostAmino;
|
|
758
|
+
fromAmino: (object: import("./forum/v1/tx").MsgUnhidePostAmino) => import("./forum/v1/tx").MsgUnhidePost;
|
|
759
|
+
};
|
|
755
760
|
"/sparkdream.forum.v1.MsgAppealPost": {
|
|
756
761
|
aminoType: string;
|
|
757
762
|
toAmino: (message: import("./forum/v1/tx").MsgAppealPost) => import("./forum/v1/tx").MsgAppealPostAmino;
|
|
@@ -1286,6 +1286,64 @@ export interface MsgCreateCategoryResponseAminoMsg {
|
|
|
1286
1286
|
type: "/sparkdream.commons.v1.MsgCreateCategoryResponse";
|
|
1287
1287
|
value: MsgCreateCategoryResponseAmino;
|
|
1288
1288
|
}
|
|
1289
|
+
/**
|
|
1290
|
+
* MsgDeleteCategory removes a shared content category. Restricted to
|
|
1291
|
+
* governance or the Commons Council Operations Committee. Refuses to
|
|
1292
|
+
* delete a category that still has forum posts attached — admins must
|
|
1293
|
+
* move/archive those first.
|
|
1294
|
+
* @name MsgDeleteCategory
|
|
1295
|
+
* @package sparkdream.commons.v1
|
|
1296
|
+
* @see proto type: sparkdream.commons.v1.MsgDeleteCategory
|
|
1297
|
+
*/
|
|
1298
|
+
export interface MsgDeleteCategory {
|
|
1299
|
+
creator: string;
|
|
1300
|
+
categoryId: bigint;
|
|
1301
|
+
}
|
|
1302
|
+
export interface MsgDeleteCategoryProtoMsg {
|
|
1303
|
+
typeUrl: "/sparkdream.commons.v1.MsgDeleteCategory";
|
|
1304
|
+
value: Uint8Array;
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* MsgDeleteCategory removes a shared content category. Restricted to
|
|
1308
|
+
* governance or the Commons Council Operations Committee. Refuses to
|
|
1309
|
+
* delete a category that still has forum posts attached — admins must
|
|
1310
|
+
* move/archive those first.
|
|
1311
|
+
* @name MsgDeleteCategoryAmino
|
|
1312
|
+
* @package sparkdream.commons.v1
|
|
1313
|
+
* @see proto type: sparkdream.commons.v1.MsgDeleteCategory
|
|
1314
|
+
*/
|
|
1315
|
+
export interface MsgDeleteCategoryAmino {
|
|
1316
|
+
creator?: string;
|
|
1317
|
+
category_id?: string;
|
|
1318
|
+
}
|
|
1319
|
+
export interface MsgDeleteCategoryAminoMsg {
|
|
1320
|
+
type: "sparkdream/x/commons/MsgDeleteCategory";
|
|
1321
|
+
value: MsgDeleteCategoryAmino;
|
|
1322
|
+
}
|
|
1323
|
+
/**
|
|
1324
|
+
* MsgDeleteCategoryResponse defines the MsgDeleteCategoryResponse message.
|
|
1325
|
+
* @name MsgDeleteCategoryResponse
|
|
1326
|
+
* @package sparkdream.commons.v1
|
|
1327
|
+
* @see proto type: sparkdream.commons.v1.MsgDeleteCategoryResponse
|
|
1328
|
+
*/
|
|
1329
|
+
export interface MsgDeleteCategoryResponse {
|
|
1330
|
+
}
|
|
1331
|
+
export interface MsgDeleteCategoryResponseProtoMsg {
|
|
1332
|
+
typeUrl: "/sparkdream.commons.v1.MsgDeleteCategoryResponse";
|
|
1333
|
+
value: Uint8Array;
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* MsgDeleteCategoryResponse defines the MsgDeleteCategoryResponse message.
|
|
1337
|
+
* @name MsgDeleteCategoryResponseAmino
|
|
1338
|
+
* @package sparkdream.commons.v1
|
|
1339
|
+
* @see proto type: sparkdream.commons.v1.MsgDeleteCategoryResponse
|
|
1340
|
+
*/
|
|
1341
|
+
export interface MsgDeleteCategoryResponseAmino {
|
|
1342
|
+
}
|
|
1343
|
+
export interface MsgDeleteCategoryResponseAminoMsg {
|
|
1344
|
+
type: "/sparkdream.commons.v1.MsgDeleteCategoryResponse";
|
|
1345
|
+
value: MsgDeleteCategoryResponseAmino;
|
|
1346
|
+
}
|
|
1289
1347
|
/**
|
|
1290
1348
|
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
1291
1349
|
* @name MsgUpdateParams
|
|
@@ -2052,3 +2110,44 @@ export declare const MsgCreateCategoryResponse: {
|
|
|
2052
2110
|
toProto(message: MsgCreateCategoryResponse): Uint8Array;
|
|
2053
2111
|
toProtoMsg(message: MsgCreateCategoryResponse): MsgCreateCategoryResponseProtoMsg;
|
|
2054
2112
|
};
|
|
2113
|
+
/**
|
|
2114
|
+
* MsgDeleteCategory removes a shared content category. Restricted to
|
|
2115
|
+
* governance or the Commons Council Operations Committee. Refuses to
|
|
2116
|
+
* delete a category that still has forum posts attached — admins must
|
|
2117
|
+
* move/archive those first.
|
|
2118
|
+
* @name MsgDeleteCategory
|
|
2119
|
+
* @package sparkdream.commons.v1
|
|
2120
|
+
* @see proto type: sparkdream.commons.v1.MsgDeleteCategory
|
|
2121
|
+
*/
|
|
2122
|
+
export declare const MsgDeleteCategory: {
|
|
2123
|
+
typeUrl: string;
|
|
2124
|
+
aminoType: string;
|
|
2125
|
+
encode(message: MsgDeleteCategory, writer?: BinaryWriter): BinaryWriter;
|
|
2126
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgDeleteCategory;
|
|
2127
|
+
fromPartial(object: DeepPartial<MsgDeleteCategory>): MsgDeleteCategory;
|
|
2128
|
+
fromAmino(object: MsgDeleteCategoryAmino): MsgDeleteCategory;
|
|
2129
|
+
toAmino(message: MsgDeleteCategory): MsgDeleteCategoryAmino;
|
|
2130
|
+
fromAminoMsg(object: MsgDeleteCategoryAminoMsg): MsgDeleteCategory;
|
|
2131
|
+
toAminoMsg(message: MsgDeleteCategory): MsgDeleteCategoryAminoMsg;
|
|
2132
|
+
fromProtoMsg(message: MsgDeleteCategoryProtoMsg): MsgDeleteCategory;
|
|
2133
|
+
toProto(message: MsgDeleteCategory): Uint8Array;
|
|
2134
|
+
toProtoMsg(message: MsgDeleteCategory): MsgDeleteCategoryProtoMsg;
|
|
2135
|
+
};
|
|
2136
|
+
/**
|
|
2137
|
+
* MsgDeleteCategoryResponse defines the MsgDeleteCategoryResponse message.
|
|
2138
|
+
* @name MsgDeleteCategoryResponse
|
|
2139
|
+
* @package sparkdream.commons.v1
|
|
2140
|
+
* @see proto type: sparkdream.commons.v1.MsgDeleteCategoryResponse
|
|
2141
|
+
*/
|
|
2142
|
+
export declare const MsgDeleteCategoryResponse: {
|
|
2143
|
+
typeUrl: string;
|
|
2144
|
+
encode(_: MsgDeleteCategoryResponse, writer?: BinaryWriter): BinaryWriter;
|
|
2145
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgDeleteCategoryResponse;
|
|
2146
|
+
fromPartial(_: DeepPartial<MsgDeleteCategoryResponse>): MsgDeleteCategoryResponse;
|
|
2147
|
+
fromAmino(_: MsgDeleteCategoryResponseAmino): MsgDeleteCategoryResponse;
|
|
2148
|
+
toAmino(_: MsgDeleteCategoryResponse): MsgDeleteCategoryResponseAmino;
|
|
2149
|
+
fromAminoMsg(object: MsgDeleteCategoryResponseAminoMsg): MsgDeleteCategoryResponse;
|
|
2150
|
+
fromProtoMsg(message: MsgDeleteCategoryResponseProtoMsg): MsgDeleteCategoryResponse;
|
|
2151
|
+
toProto(message: MsgDeleteCategoryResponse): Uint8Array;
|
|
2152
|
+
toProtoMsg(message: MsgDeleteCategoryResponse): MsgDeleteCategoryResponseProtoMsg;
|
|
2153
|
+
};
|
|
@@ -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
|