@sparkdreamnft/sparkdreamjs 0.0.12 → 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/nested-amino.js +52 -0
- package/esm/sparkdream/commons/v1/tx.amino.js +68 -29
- 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/session/v1/tx.amino.js +30 -8
- package/nested-amino.d.ts +76 -0
- package/nested-amino.js +57 -0
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +89 -6
- package/sparkdream/client.d.ts +11 -6
- package/sparkdream/commons/v1/tx.amino.d.ts +6 -5
- package/sparkdream/commons/v1/tx.amino.js +70 -30
- 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/session/v1/tx.amino.d.ts +3 -3
- package/sparkdream/session/v1/tx.amino.js +30 -8
package/sparkdream/client.d.ts
CHANGED
|
@@ -59,8 +59,8 @@ export declare const sparkdreamAminoConverters: {
|
|
|
59
59
|
};
|
|
60
60
|
"/sparkdream.session.v1.MsgExecSession": {
|
|
61
61
|
aminoType: string;
|
|
62
|
-
toAmino
|
|
63
|
-
fromAmino
|
|
62
|
+
toAmino(message: any): any;
|
|
63
|
+
fromAmino(object: any): any;
|
|
64
64
|
};
|
|
65
65
|
"/sparkdream.season.v1.MsgUpdateParams": {
|
|
66
66
|
aminoType: string;
|
|
@@ -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;
|
|
@@ -1034,8 +1039,8 @@ export declare const sparkdreamAminoConverters: {
|
|
|
1034
1039
|
};
|
|
1035
1040
|
"/sparkdream.commons.v1.MsgSubmitProposal": {
|
|
1036
1041
|
aminoType: string;
|
|
1037
|
-
toAmino
|
|
1038
|
-
fromAmino
|
|
1042
|
+
toAmino(message: any): any;
|
|
1043
|
+
fromAmino(object: any): any;
|
|
1039
1044
|
};
|
|
1040
1045
|
"/sparkdream.commons.v1.MsgVoteProposal": {
|
|
1041
1046
|
aminoType: string;
|
|
@@ -1049,8 +1054,8 @@ export declare const sparkdreamAminoConverters: {
|
|
|
1049
1054
|
};
|
|
1050
1055
|
"/sparkdream.commons.v1.MsgSubmitAnonymousProposal": {
|
|
1051
1056
|
aminoType: string;
|
|
1052
|
-
toAmino
|
|
1053
|
-
fromAmino
|
|
1057
|
+
toAmino(message: any): any;
|
|
1058
|
+
fromAmino(object: any): any;
|
|
1054
1059
|
};
|
|
1055
1060
|
"/sparkdream.commons.v1.MsgAnonymousVoteProposal": {
|
|
1056
1061
|
aminoType: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { MsgUpdateParams, MsgSpendFromCommons, MsgEmergencyCancelGovProposal, MsgCreatePolicyPermissions, MsgUpdatePolicyPermissions, MsgDeletePolicyPermissions, MsgRegisterGroup, MsgRenewGroup, MsgUpdateGroupMembers, MsgUpdateGroupConfig, MsgForceUpgrade, MsgDeleteGroup, MsgVetoGroupProposals,
|
|
1
|
+
import { MsgUpdateParams, MsgSpendFromCommons, MsgEmergencyCancelGovProposal, MsgCreatePolicyPermissions, MsgUpdatePolicyPermissions, MsgDeletePolicyPermissions, MsgRegisterGroup, MsgRenewGroup, MsgUpdateGroupMembers, MsgUpdateGroupConfig, MsgForceUpgrade, MsgDeleteGroup, MsgVetoGroupProposals, MsgVoteProposal, MsgExecuteProposal, MsgAnonymousVoteProposal, MsgCreateCategory } from "./tx";
|
|
2
|
+
export { configureNestedAminoConverter } from "../../../nested-amino";
|
|
2
3
|
export declare const AminoConverter: {
|
|
3
4
|
"/sparkdream.commons.v1.MsgUpdateParams": {
|
|
4
5
|
aminoType: string;
|
|
@@ -67,8 +68,8 @@ export declare const AminoConverter: {
|
|
|
67
68
|
};
|
|
68
69
|
"/sparkdream.commons.v1.MsgSubmitProposal": {
|
|
69
70
|
aminoType: string;
|
|
70
|
-
toAmino
|
|
71
|
-
fromAmino
|
|
71
|
+
toAmino(message: any): any;
|
|
72
|
+
fromAmino(object: any): any;
|
|
72
73
|
};
|
|
73
74
|
"/sparkdream.commons.v1.MsgVoteProposal": {
|
|
74
75
|
aminoType: string;
|
|
@@ -82,8 +83,8 @@ export declare const AminoConverter: {
|
|
|
82
83
|
};
|
|
83
84
|
"/sparkdream.commons.v1.MsgSubmitAnonymousProposal": {
|
|
84
85
|
aminoType: string;
|
|
85
|
-
toAmino
|
|
86
|
-
fromAmino
|
|
86
|
+
toAmino(message: any): any;
|
|
87
|
+
fromAmino(object: any): any;
|
|
87
88
|
};
|
|
88
89
|
"/sparkdream.commons.v1.MsgAnonymousVoteProposal": {
|
|
89
90
|
aminoType: string;
|
|
@@ -1,102 +1,142 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AminoConverter = void 0;
|
|
4
2
|
//@ts-nocheck
|
|
3
|
+
// HAND-WRITTEN OVERRIDE — overlaid on top of the Telescope-generated tx.amino.ts
|
|
4
|
+
// by scripts/codegen.ts after each codegen run. Do not let codegen wipe this.
|
|
5
|
+
//
|
|
6
|
+
// Why: Telescope emits a flat AminoConverter that hands each entry's toAmino
|
|
7
|
+
// straight through to the message's auto-generated toAmino. For
|
|
8
|
+
// MsgSubmitProposal and MsgSubmitAnonymousProposal (both have
|
|
9
|
+
// `repeated google.protobuf.Any messages`), the auto-generated toAmino calls
|
|
10
|
+
// Any.toAmino which just attaches the raw Uint8Array bytes — Ledger rejects
|
|
11
|
+
// the resulting JSON ("Dictionaries are not sorted") and the chain produces
|
|
12
|
+
// different sign bytes ("signature verification failed").
|
|
13
|
+
//
|
|
14
|
+
// This override delegates the inner Any conversion to a consumer-supplied
|
|
15
|
+
// proto registry + AminoTypes via `configureNestedAminoConverter`. The rest of
|
|
16
|
+
// the converters are unchanged.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.AminoConverter = exports.configureNestedAminoConverter = void 0;
|
|
5
19
|
const tx_1 = require("./tx");
|
|
20
|
+
const nested_amino_1 = require("../../../nested-amino");
|
|
21
|
+
var nested_amino_2 = require("../../../nested-amino");
|
|
22
|
+
Object.defineProperty(exports, "configureNestedAminoConverter", { enumerable: true, get: function () { return nested_amino_2.configureNestedAminoConverter; } });
|
|
23
|
+
// Both proposal-submission messages share the same shape, so they share a
|
|
24
|
+
// converter factory.
|
|
25
|
+
function buildProposalConverter(aminoType) {
|
|
26
|
+
return {
|
|
27
|
+
aminoType,
|
|
28
|
+
toAmino(message) {
|
|
29
|
+
const obj = {};
|
|
30
|
+
obj.proposer = message.proposer === "" ? undefined : message.proposer;
|
|
31
|
+
obj.policy_address = message.policyAddress === "" ? undefined : message.policyAddress;
|
|
32
|
+
// Mirror cosmossdk.io/x/tx/signing/aminojson's omitempty default for
|
|
33
|
+
// repeated fields: omit when empty rather than emitting `[]`. Otherwise
|
|
34
|
+
// the JS side signs `"messages":[]` and the chain reconstructs without
|
|
35
|
+
// the key, causing signature verification to fail.
|
|
36
|
+
obj.messages = (message.messages?.length ?? 0) > 0
|
|
37
|
+
? message.messages.map((a) => (0, nested_amino_1.anyToAmino)(a))
|
|
38
|
+
: undefined;
|
|
39
|
+
obj.metadata = message.metadata === "" ? undefined : message.metadata;
|
|
40
|
+
return obj;
|
|
41
|
+
},
|
|
42
|
+
fromAmino(object) {
|
|
43
|
+
return {
|
|
44
|
+
proposer: object.proposer ?? "",
|
|
45
|
+
policyAddress: object.policy_address ?? "",
|
|
46
|
+
messages: (object.messages ?? []).map((e) => (0, nested_amino_1.aminoToAny)(e)),
|
|
47
|
+
metadata: object.metadata ?? "",
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
6
52
|
exports.AminoConverter = {
|
|
7
53
|
"/sparkdream.commons.v1.MsgUpdateParams": {
|
|
8
54
|
aminoType: "sparkdream/x/commons/MsgUpdateParams",
|
|
9
55
|
toAmino: tx_1.MsgUpdateParams.toAmino,
|
|
10
|
-
fromAmino: tx_1.MsgUpdateParams.fromAmino
|
|
56
|
+
fromAmino: tx_1.MsgUpdateParams.fromAmino,
|
|
11
57
|
},
|
|
12
58
|
"/sparkdream.commons.v1.MsgSpendFromCommons": {
|
|
13
59
|
aminoType: "sparkdream/x/commons/MsgSpendFromCommons",
|
|
14
60
|
toAmino: tx_1.MsgSpendFromCommons.toAmino,
|
|
15
|
-
fromAmino: tx_1.MsgSpendFromCommons.fromAmino
|
|
61
|
+
fromAmino: tx_1.MsgSpendFromCommons.fromAmino,
|
|
16
62
|
},
|
|
17
63
|
"/sparkdream.commons.v1.MsgEmergencyCancelGovProposal": {
|
|
18
64
|
aminoType: "sparkdream/x/commons/MsgEmergencyCancelGovProposal",
|
|
19
65
|
toAmino: tx_1.MsgEmergencyCancelGovProposal.toAmino,
|
|
20
|
-
fromAmino: tx_1.MsgEmergencyCancelGovProposal.fromAmino
|
|
66
|
+
fromAmino: tx_1.MsgEmergencyCancelGovProposal.fromAmino,
|
|
21
67
|
},
|
|
22
68
|
"/sparkdream.commons.v1.MsgCreatePolicyPermissions": {
|
|
23
69
|
aminoType: "sparkdream/x/commons/MsgCreatePolicyPermissions",
|
|
24
70
|
toAmino: tx_1.MsgCreatePolicyPermissions.toAmino,
|
|
25
|
-
fromAmino: tx_1.MsgCreatePolicyPermissions.fromAmino
|
|
71
|
+
fromAmino: tx_1.MsgCreatePolicyPermissions.fromAmino,
|
|
26
72
|
},
|
|
27
73
|
"/sparkdream.commons.v1.MsgUpdatePolicyPermissions": {
|
|
28
74
|
aminoType: "sparkdream/x/commons/MsgUpdatePolicyPermissions",
|
|
29
75
|
toAmino: tx_1.MsgUpdatePolicyPermissions.toAmino,
|
|
30
|
-
fromAmino: tx_1.MsgUpdatePolicyPermissions.fromAmino
|
|
76
|
+
fromAmino: tx_1.MsgUpdatePolicyPermissions.fromAmino,
|
|
31
77
|
},
|
|
32
78
|
"/sparkdream.commons.v1.MsgDeletePolicyPermissions": {
|
|
33
79
|
aminoType: "sparkdream/x/commons/MsgDeletePolicyPermissions",
|
|
34
80
|
toAmino: tx_1.MsgDeletePolicyPermissions.toAmino,
|
|
35
|
-
fromAmino: tx_1.MsgDeletePolicyPermissions.fromAmino
|
|
81
|
+
fromAmino: tx_1.MsgDeletePolicyPermissions.fromAmino,
|
|
36
82
|
},
|
|
37
83
|
"/sparkdream.commons.v1.MsgRegisterGroup": {
|
|
38
84
|
aminoType: "sparkdream/x/commons/MsgRegisterGroup",
|
|
39
85
|
toAmino: tx_1.MsgRegisterGroup.toAmino,
|
|
40
|
-
fromAmino: tx_1.MsgRegisterGroup.fromAmino
|
|
86
|
+
fromAmino: tx_1.MsgRegisterGroup.fromAmino,
|
|
41
87
|
},
|
|
42
88
|
"/sparkdream.commons.v1.MsgRenewGroup": {
|
|
43
89
|
aminoType: "sparkdream/x/commons/MsgRenewGroup",
|
|
44
90
|
toAmino: tx_1.MsgRenewGroup.toAmino,
|
|
45
|
-
fromAmino: tx_1.MsgRenewGroup.fromAmino
|
|
91
|
+
fromAmino: tx_1.MsgRenewGroup.fromAmino,
|
|
46
92
|
},
|
|
47
93
|
"/sparkdream.commons.v1.MsgUpdateGroupMembers": {
|
|
48
94
|
aminoType: "sparkdream/x/commons/MsgUpdateGroupMembers",
|
|
49
95
|
toAmino: tx_1.MsgUpdateGroupMembers.toAmino,
|
|
50
|
-
fromAmino: tx_1.MsgUpdateGroupMembers.fromAmino
|
|
96
|
+
fromAmino: tx_1.MsgUpdateGroupMembers.fromAmino,
|
|
51
97
|
},
|
|
52
98
|
"/sparkdream.commons.v1.MsgUpdateGroupConfig": {
|
|
53
99
|
aminoType: "sparkdream/x/commons/MsgUpdateGroupConfig",
|
|
54
100
|
toAmino: tx_1.MsgUpdateGroupConfig.toAmino,
|
|
55
|
-
fromAmino: tx_1.MsgUpdateGroupConfig.fromAmino
|
|
101
|
+
fromAmino: tx_1.MsgUpdateGroupConfig.fromAmino,
|
|
56
102
|
},
|
|
57
103
|
"/sparkdream.commons.v1.MsgForceUpgrade": {
|
|
58
104
|
aminoType: "sparkdream/x/commons/MsgForceUpgrade",
|
|
59
105
|
toAmino: tx_1.MsgForceUpgrade.toAmino,
|
|
60
|
-
fromAmino: tx_1.MsgForceUpgrade.fromAmino
|
|
106
|
+
fromAmino: tx_1.MsgForceUpgrade.fromAmino,
|
|
61
107
|
},
|
|
62
108
|
"/sparkdream.commons.v1.MsgDeleteGroup": {
|
|
63
109
|
aminoType: "sparkdream/x/commons/MsgDeleteGroup",
|
|
64
110
|
toAmino: tx_1.MsgDeleteGroup.toAmino,
|
|
65
|
-
fromAmino: tx_1.MsgDeleteGroup.fromAmino
|
|
111
|
+
fromAmino: tx_1.MsgDeleteGroup.fromAmino,
|
|
66
112
|
},
|
|
67
113
|
"/sparkdream.commons.v1.MsgVetoGroupProposals": {
|
|
68
114
|
aminoType: "sparkdream/x/commons/MsgVetoGroupProposals",
|
|
69
115
|
toAmino: tx_1.MsgVetoGroupProposals.toAmino,
|
|
70
|
-
fromAmino: tx_1.MsgVetoGroupProposals.fromAmino
|
|
71
|
-
},
|
|
72
|
-
"/sparkdream.commons.v1.MsgSubmitProposal": {
|
|
73
|
-
aminoType: "sparkdream/x/commons/MsgSubmitProposal",
|
|
74
|
-
toAmino: tx_1.MsgSubmitProposal.toAmino,
|
|
75
|
-
fromAmino: tx_1.MsgSubmitProposal.fromAmino
|
|
116
|
+
fromAmino: tx_1.MsgVetoGroupProposals.fromAmino,
|
|
76
117
|
},
|
|
118
|
+
// Recursive Any handling — see top-of-file comment.
|
|
119
|
+
"/sparkdream.commons.v1.MsgSubmitProposal": buildProposalConverter("sparkdream/x/commons/MsgSubmitProposal"),
|
|
77
120
|
"/sparkdream.commons.v1.MsgVoteProposal": {
|
|
78
121
|
aminoType: "sparkdream/x/commons/MsgVoteProposal",
|
|
79
122
|
toAmino: tx_1.MsgVoteProposal.toAmino,
|
|
80
|
-
fromAmino: tx_1.MsgVoteProposal.fromAmino
|
|
123
|
+
fromAmino: tx_1.MsgVoteProposal.fromAmino,
|
|
81
124
|
},
|
|
82
125
|
"/sparkdream.commons.v1.MsgExecuteProposal": {
|
|
83
126
|
aminoType: "sparkdream/x/commons/MsgExecuteProposal",
|
|
84
127
|
toAmino: tx_1.MsgExecuteProposal.toAmino,
|
|
85
|
-
fromAmino: tx_1.MsgExecuteProposal.fromAmino
|
|
86
|
-
},
|
|
87
|
-
"/sparkdream.commons.v1.MsgSubmitAnonymousProposal": {
|
|
88
|
-
aminoType: "sparkdream/x/commons/MsgSubmitAnonymousProposal",
|
|
89
|
-
toAmino: tx_1.MsgSubmitAnonymousProposal.toAmino,
|
|
90
|
-
fromAmino: tx_1.MsgSubmitAnonymousProposal.fromAmino
|
|
128
|
+
fromAmino: tx_1.MsgExecuteProposal.fromAmino,
|
|
91
129
|
},
|
|
130
|
+
// Recursive Any handling — see top-of-file comment.
|
|
131
|
+
"/sparkdream.commons.v1.MsgSubmitAnonymousProposal": buildProposalConverter("sparkdream/x/commons/MsgSubmitAnonymousProposal"),
|
|
92
132
|
"/sparkdream.commons.v1.MsgAnonymousVoteProposal": {
|
|
93
133
|
aminoType: "sparkdream/x/commons/MsgAnonymousVoteProposal",
|
|
94
134
|
toAmino: tx_1.MsgAnonymousVoteProposal.toAmino,
|
|
95
|
-
fromAmino: tx_1.MsgAnonymousVoteProposal.fromAmino
|
|
135
|
+
fromAmino: tx_1.MsgAnonymousVoteProposal.fromAmino,
|
|
96
136
|
},
|
|
97
137
|
"/sparkdream.commons.v1.MsgCreateCategory": {
|
|
98
138
|
aminoType: "sparkdream/x/commons/MsgCreateCategory",
|
|
99
139
|
toAmino: tx_1.MsgCreateCategory.toAmino,
|
|
100
|
-
fromAmino: tx_1.MsgCreateCategory.fromAmino
|
|
101
|
-
}
|
|
140
|
+
fromAmino: tx_1.MsgCreateCategory.fromAmino,
|
|
141
|
+
},
|
|
102
142
|
};
|
|
@@ -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) => {
|