@sparkdreamnft/sparkdreamjs 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +106 -106
- package/esm/sparkdream/blog/v1/params.js +51 -50
- package/esm/sparkdream/blog/v1/tx.amino.js +53 -20
- package/esm/sparkdream/bundle.js +448 -346
- package/esm/sparkdream/client.js +7 -1
- package/esm/sparkdream/collect/v1/params.js +13 -1
- package/esm/sparkdream/collect/v1/tx.amino.js +138 -36
- package/esm/sparkdream/collect/v1/types.js +13 -1
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +317 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
- package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
- package/esm/sparkdream/commons/v1/tx.amino.js +76 -6
- package/esm/sparkdream/commons/v1/tx.js +693 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
- package/esm/sparkdream/ecosystem/v1/tx.amino.js +18 -4
- package/esm/sparkdream/federation/v1/genesis.js +10 -10
- package/esm/sparkdream/federation/v1/params.js +29 -54
- package/esm/sparkdream/federation/v1/query.js +216 -71
- package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
- package/esm/sparkdream/federation/v1/tx.js +1146 -1105
- package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
- package/esm/sparkdream/federation/v1/types.js +355 -99
- package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/esm/sparkdream/forum/v1/params.js +173 -148
- package/esm/sparkdream/forum/v1/tx.amino.js +69 -40
- package/esm/sparkdream/guardian/module/v1/module.js +68 -0
- package/esm/sparkdream/guardian/v1/query.js +128 -0
- package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
- package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
- package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
- package/esm/sparkdream/guardian/v1/tx.js +175 -0
- package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
- package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
- package/esm/sparkdream/identity/module/v1/module.js +71 -0
- package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
- package/esm/sparkdream/identity/v1/genesis.js +84 -0
- package/esm/sparkdream/identity/v1/query.js +372 -0
- package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
- package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
- package/esm/sparkdream/lcd.js +15 -0
- package/esm/sparkdream/name/v1/params.js +19 -18
- package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
- package/esm/sparkdream/rep/v1/tag.js +6 -13
- package/esm/sparkdream/rep/v1/tx.amino.js +177 -58
- package/esm/sparkdream/reveal/v1/tx.amino.js +34 -13
- package/esm/sparkdream/rpc.query.js +9 -0
- package/esm/sparkdream/rpc.tx.js +6 -0
- package/esm/sparkdream/service/module/v1/module.js +71 -0
- package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
- package/esm/sparkdream/service/v1/genesis.js +240 -0
- package/esm/sparkdream/service/v1/operator.js +250 -0
- package/esm/sparkdream/service/v1/params.js +355 -0
- package/esm/sparkdream/service/v1/query.js +1582 -0
- package/esm/sparkdream/service/v1/query.lcd.js +107 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
- package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
- package/esm/sparkdream/service/v1/report.js +212 -0
- package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
- package/esm/sparkdream/service/v1/service_type_config.js +264 -0
- package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
- package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
- package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
- package/esm/sparkdream/service/v1/tx.amino.js +69 -0
- package/esm/sparkdream/service/v1/tx.js +2124 -0
- package/esm/sparkdream/service/v1/tx.registry.js +249 -0
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
- package/esm/sparkdream/service/v1/types.js +353 -0
- package/esm/sparkdream/session/v1/genesis.js +136 -10
- package/esm/sparkdream/session/v1/grant.js +1020 -0
- package/esm/sparkdream/session/v1/params.js +543 -19
- package/esm/sparkdream/session/v1/query.js +487 -0
- package/esm/sparkdream/session/v1/query.lcd.js +41 -3
- package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
- package/esm/sparkdream/session/v1/session.js +6 -0
- package/esm/sparkdream/session/v1/tx.amino.js +17 -1
- package/esm/sparkdream/session/v1/tx.js +1066 -0
- package/esm/sparkdream/session/v1/tx.registry.js +110 -2
- package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
- package/esm/sparkdream/shield/v1/tx.amino.js +61 -8
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +106 -106
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +37 -28
- package/sparkdream/blog/v1/params.js +51 -50
- package/sparkdream/blog/v1/post.d.ts +2 -2
- package/sparkdream/blog/v1/tx.amino.d.ts +2 -2
- package/sparkdream/blog/v1/tx.amino.js +53 -20
- package/sparkdream/blog/v1/tx.d.ts +4 -4
- package/sparkdream/bundle.d.ts +14945 -12924
- package/sparkdream/bundle.js +448 -346
- package/sparkdream/client.d.ts +125 -50
- package/sparkdream/client.js +7 -1
- package/sparkdream/collect/v1/params.d.ts +16 -0
- package/sparkdream/collect/v1/params.js +13 -1
- package/sparkdream/collect/v1/tx.amino.d.ts +7 -7
- package/sparkdream/collect/v1/tx.amino.js +138 -36
- package/sparkdream/collect/v1/types.d.ts +2 -0
- package/sparkdream/collect/v1/types.js +13 -1
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +186 -0
- package/sparkdream/commons/v1/query.js +318 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +23 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
- package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
- package/sparkdream/commons/v1/recurring_spend.js +301 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +11 -6
- package/sparkdream/commons/v1/tx.amino.js +75 -5
- package/sparkdream/commons/v1/tx.d.ts +472 -0
- package/sparkdream/commons/v1/tx.js +694 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
- package/sparkdream/commons/v1/tx.registry.js +73 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
- package/sparkdream/ecosystem/v1/tx.amino.d.ts +1 -1
- package/sparkdream/ecosystem/v1/tx.amino.js +19 -5
- package/sparkdream/federation/v1/genesis.d.ts +3 -3
- package/sparkdream/federation/v1/genesis.js +9 -9
- package/sparkdream/federation/v1/params.d.ts +64 -13
- package/sparkdream/federation/v1/params.js +29 -54
- package/sparkdream/federation/v1/query.d.ts +209 -100
- package/sparkdream/federation/v1/query.js +216 -71
- package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
- package/sparkdream/federation/v1/query.lcd.js +11 -6
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
- package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
- package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
- package/sparkdream/federation/v1/tx.amino.js +20 -20
- package/sparkdream/federation/v1/tx.d.ts +479 -352
- package/sparkdream/federation/v1/tx.js +1147 -1106
- package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
- package/sparkdream/federation/v1/tx.registry.js +73 -73
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
- package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
- package/sparkdream/federation/v1/types.d.ts +307 -41
- package/sparkdream/federation/v1/types.js +360 -100
- package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
- package/sparkdream/federation/v1/verifier_activity.js +13 -1
- package/sparkdream/forum/v1/params.d.ts +99 -62
- package/sparkdream/forum/v1/params.js +173 -148
- package/sparkdream/forum/v1/tx.amino.d.ts +2 -2
- package/sparkdream/forum/v1/tx.amino.js +69 -40
- package/sparkdream/guardian/module/v1/module.d.ts +74 -0
- package/sparkdream/guardian/module/v1/module.js +71 -0
- package/sparkdream/guardian/v1/query.d.ts +88 -0
- package/sparkdream/guardian/v1/query.js +131 -0
- package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
- package/sparkdream/guardian/v1/query.lcd.js +17 -0
- package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
- package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
- package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
- package/sparkdream/guardian/v1/tx.amino.js +12 -0
- package/sparkdream/guardian/v1/tx.d.ts +138 -0
- package/sparkdream/guardian/v1/tx.js +181 -0
- package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
- package/sparkdream/guardian/v1/tx.registry.js +37 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
- package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
- package/sparkdream/identity/module/v1/module.d.ts +54 -0
- package/sparkdream/identity/module/v1/module.js +74 -0
- package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
- package/sparkdream/identity/v1/chain_identity.js +202 -0
- package/sparkdream/identity/v1/genesis.d.ts +65 -0
- package/sparkdream/identity/v1/genesis.js +87 -0
- package/sparkdream/identity/v1/query.d.ts +243 -0
- package/sparkdream/identity/v1/query.js +375 -0
- package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
- package/sparkdream/identity/v1/query.lcd.js +25 -0
- package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
- package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
- package/sparkdream/lcd.d.ts +9 -0
- package/sparkdream/lcd.js +15 -0
- package/sparkdream/name/v1/params.d.ts +25 -8
- package/sparkdream/name/v1/params.js +19 -18
- package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
- package/sparkdream/rep/v1/bonded_role.js +48 -2
- package/sparkdream/rep/v1/tag.d.ts +15 -2
- package/sparkdream/rep/v1/tag.js +6 -13
- package/sparkdream/rep/v1/tx.amino.d.ts +9 -9
- package/sparkdream/rep/v1/tx.amino.js +177 -58
- package/sparkdream/reveal/v1/tx.amino.d.ts +1 -1
- package/sparkdream/reveal/v1/tx.amino.js +34 -13
- package/sparkdream/rpc.query.d.ts +34 -2
- package/sparkdream/rpc.query.js +9 -0
- package/sparkdream/rpc.tx.d.ts +6 -0
- package/sparkdream/rpc.tx.js +6 -0
- package/sparkdream/service/module/v1/module.d.ts +54 -0
- package/sparkdream/service/module/v1/module.js +74 -0
- package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
- package/sparkdream/service/v1/controller_transfer_case.js +158 -0
- package/sparkdream/service/v1/genesis.d.ts +172 -0
- package/sparkdream/service/v1/genesis.js +243 -0
- package/sparkdream/service/v1/operator.d.ts +215 -0
- package/sparkdream/service/v1/operator.js +253 -0
- package/sparkdream/service/v1/params.d.ts +346 -0
- package/sparkdream/service/v1/params.js +358 -0
- package/sparkdream/service/v1/query.d.ts +964 -0
- package/sparkdream/service/v1/query.js +1585 -0
- package/sparkdream/service/v1/query.lcd.d.ts +18 -0
- package/sparkdream/service/v1/query.lcd.js +111 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
- package/sparkdream/service/v1/query.rpc.Query.js +114 -0
- package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
- package/sparkdream/service/v1/refile_cooldown.js +124 -0
- package/sparkdream/service/v1/report.d.ts +174 -0
- package/sparkdream/service/v1/report.js +215 -0
- package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
- package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
- package/sparkdream/service/v1/service_type_config.d.ts +222 -0
- package/sparkdream/service/v1/service_type_config.js +269 -0
- package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
- package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
- package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
- package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
- package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
- package/sparkdream/service/v1/tier1_last_slash.js +124 -0
- package/sparkdream/service/v1/tx.amino.d.ts +68 -0
- package/sparkdream/service/v1/tx.amino.js +72 -0
- package/sparkdream/service/v1/tx.d.ts +1264 -0
- package/sparkdream/service/v1/tx.js +2127 -0
- package/sparkdream/service/v1/tx.registry.d.ts +169 -0
- package/sparkdream/service/v1/tx.registry.js +253 -0
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
- package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
- package/sparkdream/service/v1/types.d.ts +94 -0
- package/sparkdream/service/v1/types.js +370 -0
- package/sparkdream/session/v1/genesis.d.ts +93 -9
- package/sparkdream/session/v1/genesis.js +137 -11
- package/sparkdream/session/v1/grant.d.ts +517 -0
- package/sparkdream/session/v1/grant.js +1027 -0
- package/sparkdream/session/v1/params.d.ts +338 -7
- package/sparkdream/session/v1/params.js +543 -19
- package/sparkdream/session/v1/query.d.ts +265 -0
- package/sparkdream/session/v1/query.js +488 -1
- package/sparkdream/session/v1/query.lcd.d.ts +4 -1
- package/sparkdream/session/v1/query.lcd.js +41 -3
- package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
- package/sparkdream/session/v1/query.rpc.Query.js +35 -3
- package/sparkdream/session/v1/session.d.ts +18 -0
- package/sparkdream/session/v1/session.js +6 -0
- package/sparkdream/session/v1/tx.amino.d.ts +1 -1
- package/sparkdream/session/v1/tx.amino.js +17 -1
- package/sparkdream/session/v1/tx.d.ts +660 -0
- package/sparkdream/session/v1/tx.js +1067 -1
- package/sparkdream/session/v1/tx.registry.d.ts +73 -1
- package/sparkdream/session/v1/tx.registry.js +109 -1
- package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
- package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
- package/sparkdream/shield/v1/tx.amino.d.ts +3 -3
- package/sparkdream/shield/v1/tx.amino.js +61 -8
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -1,187 +1,216 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
//@ts-nocheck
|
|
3
|
+
// HAND-WRITTEN OVERRIDE — overlaid by scripts/codegen.ts after telescope.
|
|
4
|
+
// See ../../commons/v1/tx.amino.ts for the broader rationale.
|
|
5
|
+
//
|
|
6
|
+
// Telescope emits `[]` for empty repeated fields; aminojson on the chain omits
|
|
7
|
+
// them. In forum the offending messages are MsgCreatePost and MsgEditPost,
|
|
8
|
+
// both of which have a repeated `tags` field that's commonly empty.
|
|
2
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
10
|
exports.AminoConverter = void 0;
|
|
4
|
-
//@ts-nocheck
|
|
5
11
|
const tx_1 = require("./tx");
|
|
6
12
|
exports.AminoConverter = {
|
|
7
13
|
"/sparkdream.forum.v1.MsgUpdateParams": {
|
|
8
14
|
aminoType: "sparkdream/x/forum/MsgUpdateParams",
|
|
9
15
|
toAmino: tx_1.MsgUpdateParams.toAmino,
|
|
10
|
-
fromAmino: tx_1.MsgUpdateParams.fromAmino
|
|
16
|
+
fromAmino: tx_1.MsgUpdateParams.fromAmino,
|
|
11
17
|
},
|
|
12
18
|
"/sparkdream.forum.v1.MsgUpdateOperationalParams": {
|
|
13
19
|
aminoType: "sparkdream/x/forum/MsgUpdateOperationalParams",
|
|
14
20
|
toAmino: tx_1.MsgUpdateOperationalParams.toAmino,
|
|
15
|
-
fromAmino: tx_1.MsgUpdateOperationalParams.fromAmino
|
|
21
|
+
fromAmino: tx_1.MsgUpdateOperationalParams.fromAmino,
|
|
16
22
|
},
|
|
17
23
|
"/sparkdream.forum.v1.MsgCreatePost": {
|
|
18
24
|
aminoType: "sparkdream/x/forum/MsgCreatePost",
|
|
19
|
-
toAmino
|
|
20
|
-
|
|
25
|
+
toAmino(message) {
|
|
26
|
+
const obj = {};
|
|
27
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
28
|
+
obj.category_id = message.categoryId !== BigInt(0) ? message.categoryId?.toString() : undefined;
|
|
29
|
+
obj.parent_id = message.parentId !== BigInt(0) ? message.parentId?.toString() : undefined;
|
|
30
|
+
obj.content = message.content === "" ? undefined : message.content;
|
|
31
|
+
obj.tags = (message.tags?.length ?? 0) > 0
|
|
32
|
+
? message.tags.map((e) => e)
|
|
33
|
+
: undefined;
|
|
34
|
+
obj.content_type = message.contentType === 0 ? undefined : message.contentType;
|
|
35
|
+
obj.author_bond = message.authorBond === null ? undefined : message.authorBond;
|
|
36
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
37
|
+
return obj;
|
|
38
|
+
},
|
|
39
|
+
fromAmino: tx_1.MsgCreatePost.fromAmino,
|
|
21
40
|
},
|
|
22
41
|
"/sparkdream.forum.v1.MsgEditPost": {
|
|
23
42
|
aminoType: "sparkdream/x/forum/MsgEditPost",
|
|
24
|
-
toAmino
|
|
25
|
-
|
|
43
|
+
toAmino(message) {
|
|
44
|
+
const obj = {};
|
|
45
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
46
|
+
obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
|
|
47
|
+
obj.new_content = message.newContent === "" ? undefined : message.newContent;
|
|
48
|
+
obj.tags = (message.tags?.length ?? 0) > 0
|
|
49
|
+
? message.tags.map((e) => e)
|
|
50
|
+
: undefined;
|
|
51
|
+
obj.content_type = message.contentType === 0 ? undefined : message.contentType;
|
|
52
|
+
return obj;
|
|
53
|
+
},
|
|
54
|
+
fromAmino: tx_1.MsgEditPost.fromAmino,
|
|
26
55
|
},
|
|
27
56
|
"/sparkdream.forum.v1.MsgDeletePost": {
|
|
28
57
|
aminoType: "sparkdream/x/forum/MsgDeletePost",
|
|
29
58
|
toAmino: tx_1.MsgDeletePost.toAmino,
|
|
30
|
-
fromAmino: tx_1.MsgDeletePost.fromAmino
|
|
59
|
+
fromAmino: tx_1.MsgDeletePost.fromAmino,
|
|
31
60
|
},
|
|
32
61
|
"/sparkdream.forum.v1.MsgFreezeThread": {
|
|
33
62
|
aminoType: "sparkdream/x/forum/MsgFreezeThread",
|
|
34
63
|
toAmino: tx_1.MsgFreezeThread.toAmino,
|
|
35
|
-
fromAmino: tx_1.MsgFreezeThread.fromAmino
|
|
64
|
+
fromAmino: tx_1.MsgFreezeThread.fromAmino,
|
|
36
65
|
},
|
|
37
66
|
"/sparkdream.forum.v1.MsgUnarchiveThread": {
|
|
38
67
|
aminoType: "sparkdream/x/forum/MsgUnarchiveThread",
|
|
39
68
|
toAmino: tx_1.MsgUnarchiveThread.toAmino,
|
|
40
|
-
fromAmino: tx_1.MsgUnarchiveThread.fromAmino
|
|
69
|
+
fromAmino: tx_1.MsgUnarchiveThread.fromAmino,
|
|
41
70
|
},
|
|
42
71
|
"/sparkdream.forum.v1.MsgPinPost": {
|
|
43
72
|
aminoType: "sparkdream/x/forum/MsgPinPost",
|
|
44
73
|
toAmino: tx_1.MsgPinPost.toAmino,
|
|
45
|
-
fromAmino: tx_1.MsgPinPost.fromAmino
|
|
74
|
+
fromAmino: tx_1.MsgPinPost.fromAmino,
|
|
46
75
|
},
|
|
47
76
|
"/sparkdream.forum.v1.MsgUnpinPost": {
|
|
48
77
|
aminoType: "sparkdream/x/forum/MsgUnpinPost",
|
|
49
78
|
toAmino: tx_1.MsgUnpinPost.toAmino,
|
|
50
|
-
fromAmino: tx_1.MsgUnpinPost.fromAmino
|
|
79
|
+
fromAmino: tx_1.MsgUnpinPost.fromAmino,
|
|
51
80
|
},
|
|
52
81
|
"/sparkdream.forum.v1.MsgLockThread": {
|
|
53
82
|
aminoType: "sparkdream/x/forum/MsgLockThread",
|
|
54
83
|
toAmino: tx_1.MsgLockThread.toAmino,
|
|
55
|
-
fromAmino: tx_1.MsgLockThread.fromAmino
|
|
84
|
+
fromAmino: tx_1.MsgLockThread.fromAmino,
|
|
56
85
|
},
|
|
57
86
|
"/sparkdream.forum.v1.MsgUnlockThread": {
|
|
58
87
|
aminoType: "sparkdream/x/forum/MsgUnlockThread",
|
|
59
88
|
toAmino: tx_1.MsgUnlockThread.toAmino,
|
|
60
|
-
fromAmino: tx_1.MsgUnlockThread.fromAmino
|
|
89
|
+
fromAmino: tx_1.MsgUnlockThread.fromAmino,
|
|
61
90
|
},
|
|
62
91
|
"/sparkdream.forum.v1.MsgMoveThread": {
|
|
63
92
|
aminoType: "sparkdream/x/forum/MsgMoveThread",
|
|
64
93
|
toAmino: tx_1.MsgMoveThread.toAmino,
|
|
65
|
-
fromAmino: tx_1.MsgMoveThread.fromAmino
|
|
94
|
+
fromAmino: tx_1.MsgMoveThread.fromAmino,
|
|
66
95
|
},
|
|
67
96
|
"/sparkdream.forum.v1.MsgFollowThread": {
|
|
68
97
|
aminoType: "sparkdream/x/forum/MsgFollowThread",
|
|
69
98
|
toAmino: tx_1.MsgFollowThread.toAmino,
|
|
70
|
-
fromAmino: tx_1.MsgFollowThread.fromAmino
|
|
99
|
+
fromAmino: tx_1.MsgFollowThread.fromAmino,
|
|
71
100
|
},
|
|
72
101
|
"/sparkdream.forum.v1.MsgUnfollowThread": {
|
|
73
102
|
aminoType: "sparkdream/x/forum/MsgUnfollowThread",
|
|
74
103
|
toAmino: tx_1.MsgUnfollowThread.toAmino,
|
|
75
|
-
fromAmino: tx_1.MsgUnfollowThread.fromAmino
|
|
104
|
+
fromAmino: tx_1.MsgUnfollowThread.fromAmino,
|
|
76
105
|
},
|
|
77
106
|
"/sparkdream.forum.v1.MsgUpvotePost": {
|
|
78
107
|
aminoType: "sparkdream/x/forum/MsgUpvotePost",
|
|
79
108
|
toAmino: tx_1.MsgUpvotePost.toAmino,
|
|
80
|
-
fromAmino: tx_1.MsgUpvotePost.fromAmino
|
|
109
|
+
fromAmino: tx_1.MsgUpvotePost.fromAmino,
|
|
81
110
|
},
|
|
82
111
|
"/sparkdream.forum.v1.MsgDownvotePost": {
|
|
83
112
|
aminoType: "sparkdream/x/forum/MsgDownvotePost",
|
|
84
113
|
toAmino: tx_1.MsgDownvotePost.toAmino,
|
|
85
|
-
fromAmino: tx_1.MsgDownvotePost.fromAmino
|
|
114
|
+
fromAmino: tx_1.MsgDownvotePost.fromAmino,
|
|
86
115
|
},
|
|
87
116
|
"/sparkdream.forum.v1.MsgFlagPost": {
|
|
88
117
|
aminoType: "sparkdream/x/forum/MsgFlagPost",
|
|
89
118
|
toAmino: tx_1.MsgFlagPost.toAmino,
|
|
90
|
-
fromAmino: tx_1.MsgFlagPost.fromAmino
|
|
119
|
+
fromAmino: tx_1.MsgFlagPost.fromAmino,
|
|
91
120
|
},
|
|
92
121
|
"/sparkdream.forum.v1.MsgDismissFlags": {
|
|
93
122
|
aminoType: "sparkdream/x/forum/MsgDismissFlags",
|
|
94
123
|
toAmino: tx_1.MsgDismissFlags.toAmino,
|
|
95
|
-
fromAmino: tx_1.MsgDismissFlags.fromAmino
|
|
124
|
+
fromAmino: tx_1.MsgDismissFlags.fromAmino,
|
|
96
125
|
},
|
|
97
126
|
"/sparkdream.forum.v1.MsgHidePost": {
|
|
98
127
|
aminoType: "sparkdream/x/forum/MsgHidePost",
|
|
99
128
|
toAmino: tx_1.MsgHidePost.toAmino,
|
|
100
|
-
fromAmino: tx_1.MsgHidePost.fromAmino
|
|
129
|
+
fromAmino: tx_1.MsgHidePost.fromAmino,
|
|
101
130
|
},
|
|
102
131
|
"/sparkdream.forum.v1.MsgUnhidePost": {
|
|
103
132
|
aminoType: "sparkdream/x/forum/MsgUnhidePost",
|
|
104
133
|
toAmino: tx_1.MsgUnhidePost.toAmino,
|
|
105
|
-
fromAmino: tx_1.MsgUnhidePost.fromAmino
|
|
134
|
+
fromAmino: tx_1.MsgUnhidePost.fromAmino,
|
|
106
135
|
},
|
|
107
136
|
"/sparkdream.forum.v1.MsgAppealPost": {
|
|
108
137
|
aminoType: "sparkdream/x/forum/MsgAppealPost",
|
|
109
138
|
toAmino: tx_1.MsgAppealPost.toAmino,
|
|
110
|
-
fromAmino: tx_1.MsgAppealPost.fromAmino
|
|
139
|
+
fromAmino: tx_1.MsgAppealPost.fromAmino,
|
|
111
140
|
},
|
|
112
141
|
"/sparkdream.forum.v1.MsgAppealThreadLock": {
|
|
113
142
|
aminoType: "sparkdream/x/forum/MsgAppealThreadLock",
|
|
114
143
|
toAmino: tx_1.MsgAppealThreadLock.toAmino,
|
|
115
|
-
fromAmino: tx_1.MsgAppealThreadLock.fromAmino
|
|
144
|
+
fromAmino: tx_1.MsgAppealThreadLock.fromAmino,
|
|
116
145
|
},
|
|
117
146
|
"/sparkdream.forum.v1.MsgAppealThreadMove": {
|
|
118
147
|
aminoType: "sparkdream/x/forum/MsgAppealThreadMove",
|
|
119
148
|
toAmino: tx_1.MsgAppealThreadMove.toAmino,
|
|
120
|
-
fromAmino: tx_1.MsgAppealThreadMove.fromAmino
|
|
149
|
+
fromAmino: tx_1.MsgAppealThreadMove.fromAmino,
|
|
121
150
|
},
|
|
122
151
|
"/sparkdream.forum.v1.MsgCreateBounty": {
|
|
123
152
|
aminoType: "sparkdream/x/forum/MsgCreateBounty",
|
|
124
153
|
toAmino: tx_1.MsgCreateBounty.toAmino,
|
|
125
|
-
fromAmino: tx_1.MsgCreateBounty.fromAmino
|
|
154
|
+
fromAmino: tx_1.MsgCreateBounty.fromAmino,
|
|
126
155
|
},
|
|
127
156
|
"/sparkdream.forum.v1.MsgAwardBounty": {
|
|
128
157
|
aminoType: "sparkdream/x/forum/MsgAwardBounty",
|
|
129
158
|
toAmino: tx_1.MsgAwardBounty.toAmino,
|
|
130
|
-
fromAmino: tx_1.MsgAwardBounty.fromAmino
|
|
159
|
+
fromAmino: tx_1.MsgAwardBounty.fromAmino,
|
|
131
160
|
},
|
|
132
161
|
"/sparkdream.forum.v1.MsgIncreaseBounty": {
|
|
133
162
|
aminoType: "sparkdream/x/forum/MsgIncreaseBounty",
|
|
134
163
|
toAmino: tx_1.MsgIncreaseBounty.toAmino,
|
|
135
|
-
fromAmino: tx_1.MsgIncreaseBounty.fromAmino
|
|
164
|
+
fromAmino: tx_1.MsgIncreaseBounty.fromAmino,
|
|
136
165
|
},
|
|
137
166
|
"/sparkdream.forum.v1.MsgCancelBounty": {
|
|
138
167
|
aminoType: "sparkdream/x/forum/MsgCancelBounty",
|
|
139
168
|
toAmino: tx_1.MsgCancelBounty.toAmino,
|
|
140
|
-
fromAmino: tx_1.MsgCancelBounty.fromAmino
|
|
169
|
+
fromAmino: tx_1.MsgCancelBounty.fromAmino,
|
|
141
170
|
},
|
|
142
171
|
"/sparkdream.forum.v1.MsgAssignBountyToReply": {
|
|
143
172
|
aminoType: "sparkdream/x/forum/MsgAssignBountyToReply",
|
|
144
173
|
toAmino: tx_1.MsgAssignBountyToReply.toAmino,
|
|
145
|
-
fromAmino: tx_1.MsgAssignBountyToReply.fromAmino
|
|
174
|
+
fromAmino: tx_1.MsgAssignBountyToReply.fromAmino,
|
|
146
175
|
},
|
|
147
176
|
"/sparkdream.forum.v1.MsgPinReply": {
|
|
148
177
|
aminoType: "sparkdream/x/forum/MsgPinReply",
|
|
149
178
|
toAmino: tx_1.MsgPinReply.toAmino,
|
|
150
|
-
fromAmino: tx_1.MsgPinReply.fromAmino
|
|
179
|
+
fromAmino: tx_1.MsgPinReply.fromAmino,
|
|
151
180
|
},
|
|
152
181
|
"/sparkdream.forum.v1.MsgUnpinReply": {
|
|
153
182
|
aminoType: "sparkdream/x/forum/MsgUnpinReply",
|
|
154
183
|
toAmino: tx_1.MsgUnpinReply.toAmino,
|
|
155
|
-
fromAmino: tx_1.MsgUnpinReply.fromAmino
|
|
184
|
+
fromAmino: tx_1.MsgUnpinReply.fromAmino,
|
|
156
185
|
},
|
|
157
186
|
"/sparkdream.forum.v1.MsgDisputePin": {
|
|
158
187
|
aminoType: "sparkdream/x/forum/MsgDisputePin",
|
|
159
188
|
toAmino: tx_1.MsgDisputePin.toAmino,
|
|
160
|
-
fromAmino: tx_1.MsgDisputePin.fromAmino
|
|
189
|
+
fromAmino: tx_1.MsgDisputePin.fromAmino,
|
|
161
190
|
},
|
|
162
191
|
"/sparkdream.forum.v1.MsgMarkAcceptedReply": {
|
|
163
192
|
aminoType: "sparkdream/x/forum/MsgMarkAcceptedReply",
|
|
164
193
|
toAmino: tx_1.MsgMarkAcceptedReply.toAmino,
|
|
165
|
-
fromAmino: tx_1.MsgMarkAcceptedReply.fromAmino
|
|
194
|
+
fromAmino: tx_1.MsgMarkAcceptedReply.fromAmino,
|
|
166
195
|
},
|
|
167
196
|
"/sparkdream.forum.v1.MsgConfirmProposedReply": {
|
|
168
197
|
aminoType: "sparkdream/x/forum/MsgConfirmProposedReply",
|
|
169
198
|
toAmino: tx_1.MsgConfirmProposedReply.toAmino,
|
|
170
|
-
fromAmino: tx_1.MsgConfirmProposedReply.fromAmino
|
|
199
|
+
fromAmino: tx_1.MsgConfirmProposedReply.fromAmino,
|
|
171
200
|
},
|
|
172
201
|
"/sparkdream.forum.v1.MsgRejectProposedReply": {
|
|
173
202
|
aminoType: "sparkdream/x/forum/MsgRejectProposedReply",
|
|
174
203
|
toAmino: tx_1.MsgRejectProposedReply.toAmino,
|
|
175
|
-
fromAmino: tx_1.MsgRejectProposedReply.fromAmino
|
|
204
|
+
fromAmino: tx_1.MsgRejectProposedReply.fromAmino,
|
|
176
205
|
},
|
|
177
206
|
"/sparkdream.forum.v1.MsgSetForumPaused": {
|
|
178
207
|
aminoType: "sparkdream/x/forum/MsgSetForumPaused",
|
|
179
208
|
toAmino: tx_1.MsgSetForumPaused.toAmino,
|
|
180
|
-
fromAmino: tx_1.MsgSetForumPaused.fromAmino
|
|
209
|
+
fromAmino: tx_1.MsgSetForumPaused.fromAmino,
|
|
181
210
|
},
|
|
182
211
|
"/sparkdream.forum.v1.MsgSetModerationPaused": {
|
|
183
212
|
aminoType: "sparkdream/x/forum/MsgSetModerationPaused",
|
|
184
213
|
toAmino: tx_1.MsgSetModerationPaused.toAmino,
|
|
185
|
-
fromAmino: tx_1.MsgSetModerationPaused.fromAmino
|
|
186
|
-
}
|
|
214
|
+
fromAmino: tx_1.MsgSetModerationPaused.fromAmino,
|
|
215
|
+
},
|
|
187
216
|
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../../helpers";
|
|
3
|
+
/**
|
|
4
|
+
* Module is the config object for the guardian module.
|
|
5
|
+
*
|
|
6
|
+
* guardian is a generic authority-gating module. It owns the authority
|
|
7
|
+
* addresses for one or more downstream modules (bank, mint, staking by
|
|
8
|
+
* default) and exposes a single MsgExec wrapper that gov can call to
|
|
9
|
+
* invoke msg-type-specific proxies. Per-msg-type filters reject changes
|
|
10
|
+
* to fields the chain has decided are immutable (e.g., mint inflation
|
|
11
|
+
* parameters, bank native-denom Symbol/Display).
|
|
12
|
+
*
|
|
13
|
+
* See docs/x-identity-spec.md §14.6 for the identity-protection use
|
|
14
|
+
* case, and the implementation-decisions doc for the broader rationale.
|
|
15
|
+
* @name Module
|
|
16
|
+
* @package sparkdream.guardian.module.v1
|
|
17
|
+
* @see proto type: sparkdream.guardian.module.v1.Module
|
|
18
|
+
*/
|
|
19
|
+
export interface Module {
|
|
20
|
+
}
|
|
21
|
+
export interface ModuleProtoMsg {
|
|
22
|
+
typeUrl: "/sparkdream.guardian.module.v1.Module";
|
|
23
|
+
value: Uint8Array;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Module is the config object for the guardian module.
|
|
27
|
+
*
|
|
28
|
+
* guardian is a generic authority-gating module. It owns the authority
|
|
29
|
+
* addresses for one or more downstream modules (bank, mint, staking by
|
|
30
|
+
* default) and exposes a single MsgExec wrapper that gov can call to
|
|
31
|
+
* invoke msg-type-specific proxies. Per-msg-type filters reject changes
|
|
32
|
+
* to fields the chain has decided are immutable (e.g., mint inflation
|
|
33
|
+
* parameters, bank native-denom Symbol/Display).
|
|
34
|
+
*
|
|
35
|
+
* See docs/x-identity-spec.md §14.6 for the identity-protection use
|
|
36
|
+
* case, and the implementation-decisions doc for the broader rationale.
|
|
37
|
+
* @name ModuleAmino
|
|
38
|
+
* @package sparkdream.guardian.module.v1
|
|
39
|
+
* @see proto type: sparkdream.guardian.module.v1.Module
|
|
40
|
+
*/
|
|
41
|
+
export interface ModuleAmino {
|
|
42
|
+
}
|
|
43
|
+
export interface ModuleAminoMsg {
|
|
44
|
+
type: "/sparkdream.guardian.module.v1.Module";
|
|
45
|
+
value: ModuleAmino;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Module is the config object for the guardian module.
|
|
49
|
+
*
|
|
50
|
+
* guardian is a generic authority-gating module. It owns the authority
|
|
51
|
+
* addresses for one or more downstream modules (bank, mint, staking by
|
|
52
|
+
* default) and exposes a single MsgExec wrapper that gov can call to
|
|
53
|
+
* invoke msg-type-specific proxies. Per-msg-type filters reject changes
|
|
54
|
+
* to fields the chain has decided are immutable (e.g., mint inflation
|
|
55
|
+
* parameters, bank native-denom Symbol/Display).
|
|
56
|
+
*
|
|
57
|
+
* See docs/x-identity-spec.md §14.6 for the identity-protection use
|
|
58
|
+
* case, and the implementation-decisions doc for the broader rationale.
|
|
59
|
+
* @name Module
|
|
60
|
+
* @package sparkdream.guardian.module.v1
|
|
61
|
+
* @see proto type: sparkdream.guardian.module.v1.Module
|
|
62
|
+
*/
|
|
63
|
+
export declare const Module: {
|
|
64
|
+
typeUrl: string;
|
|
65
|
+
encode(_: Module, writer?: BinaryWriter): BinaryWriter;
|
|
66
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Module;
|
|
67
|
+
fromPartial(_: DeepPartial<Module>): Module;
|
|
68
|
+
fromAmino(_: ModuleAmino): Module;
|
|
69
|
+
toAmino(_: Module): ModuleAmino;
|
|
70
|
+
fromAminoMsg(object: ModuleAminoMsg): Module;
|
|
71
|
+
fromProtoMsg(message: ModuleProtoMsg): Module;
|
|
72
|
+
toProto(message: Module): Uint8Array;
|
|
73
|
+
toProtoMsg(message: Module): ModuleProtoMsg;
|
|
74
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Module = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const binary_1 = require("../../../../binary");
|
|
6
|
+
function createBaseModule() {
|
|
7
|
+
return {};
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Module is the config object for the guardian module.
|
|
11
|
+
*
|
|
12
|
+
* guardian is a generic authority-gating module. It owns the authority
|
|
13
|
+
* addresses for one or more downstream modules (bank, mint, staking by
|
|
14
|
+
* default) and exposes a single MsgExec wrapper that gov can call to
|
|
15
|
+
* invoke msg-type-specific proxies. Per-msg-type filters reject changes
|
|
16
|
+
* to fields the chain has decided are immutable (e.g., mint inflation
|
|
17
|
+
* parameters, bank native-denom Symbol/Display).
|
|
18
|
+
*
|
|
19
|
+
* See docs/x-identity-spec.md §14.6 for the identity-protection use
|
|
20
|
+
* case, and the implementation-decisions doc for the broader rationale.
|
|
21
|
+
* @name Module
|
|
22
|
+
* @package sparkdream.guardian.module.v1
|
|
23
|
+
* @see proto type: sparkdream.guardian.module.v1.Module
|
|
24
|
+
*/
|
|
25
|
+
exports.Module = {
|
|
26
|
+
typeUrl: "/sparkdream.guardian.module.v1.Module",
|
|
27
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
28
|
+
return writer;
|
|
29
|
+
},
|
|
30
|
+
decode(input, length) {
|
|
31
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
32
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33
|
+
const message = createBaseModule();
|
|
34
|
+
while (reader.pos < end) {
|
|
35
|
+
const tag = reader.uint32();
|
|
36
|
+
switch (tag >>> 3) {
|
|
37
|
+
default:
|
|
38
|
+
reader.skipType(tag & 7);
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return message;
|
|
43
|
+
},
|
|
44
|
+
fromPartial(_) {
|
|
45
|
+
const message = createBaseModule();
|
|
46
|
+
return message;
|
|
47
|
+
},
|
|
48
|
+
fromAmino(_) {
|
|
49
|
+
const message = createBaseModule();
|
|
50
|
+
return message;
|
|
51
|
+
},
|
|
52
|
+
toAmino(_) {
|
|
53
|
+
const obj = {};
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
fromAminoMsg(object) {
|
|
57
|
+
return exports.Module.fromAmino(object.value);
|
|
58
|
+
},
|
|
59
|
+
fromProtoMsg(message) {
|
|
60
|
+
return exports.Module.decode(message.value);
|
|
61
|
+
},
|
|
62
|
+
toProto(message) {
|
|
63
|
+
return exports.Module.encode(message).finish();
|
|
64
|
+
},
|
|
65
|
+
toProtoMsg(message) {
|
|
66
|
+
return {
|
|
67
|
+
typeUrl: "/sparkdream.guardian.module.v1.Module",
|
|
68
|
+
value: exports.Module.encode(message).finish()
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
/**
|
|
4
|
+
* @name QueryAllowedMsgsRequest
|
|
5
|
+
* @package sparkdream.guardian.v1
|
|
6
|
+
* @see proto type: sparkdream.guardian.v1.QueryAllowedMsgsRequest
|
|
7
|
+
*/
|
|
8
|
+
export interface QueryAllowedMsgsRequest {
|
|
9
|
+
}
|
|
10
|
+
export interface QueryAllowedMsgsRequestProtoMsg {
|
|
11
|
+
typeUrl: "/sparkdream.guardian.v1.QueryAllowedMsgsRequest";
|
|
12
|
+
value: Uint8Array;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @name QueryAllowedMsgsRequestAmino
|
|
16
|
+
* @package sparkdream.guardian.v1
|
|
17
|
+
* @see proto type: sparkdream.guardian.v1.QueryAllowedMsgsRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface QueryAllowedMsgsRequestAmino {
|
|
20
|
+
}
|
|
21
|
+
export interface QueryAllowedMsgsRequestAminoMsg {
|
|
22
|
+
type: "/sparkdream.guardian.v1.QueryAllowedMsgsRequest";
|
|
23
|
+
value: QueryAllowedMsgsRequestAmino;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @name QueryAllowedMsgsResponse
|
|
27
|
+
* @package sparkdream.guardian.v1
|
|
28
|
+
* @see proto type: sparkdream.guardian.v1.QueryAllowedMsgsResponse
|
|
29
|
+
*/
|
|
30
|
+
export interface QueryAllowedMsgsResponse {
|
|
31
|
+
/**
|
|
32
|
+
* type_urls is the sorted list of msg type URLs accepted by MsgExec.
|
|
33
|
+
*/
|
|
34
|
+
typeUrls: string[];
|
|
35
|
+
}
|
|
36
|
+
export interface QueryAllowedMsgsResponseProtoMsg {
|
|
37
|
+
typeUrl: "/sparkdream.guardian.v1.QueryAllowedMsgsResponse";
|
|
38
|
+
value: Uint8Array;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @name QueryAllowedMsgsResponseAmino
|
|
42
|
+
* @package sparkdream.guardian.v1
|
|
43
|
+
* @see proto type: sparkdream.guardian.v1.QueryAllowedMsgsResponse
|
|
44
|
+
*/
|
|
45
|
+
export interface QueryAllowedMsgsResponseAmino {
|
|
46
|
+
/**
|
|
47
|
+
* type_urls is the sorted list of msg type URLs accepted by MsgExec.
|
|
48
|
+
*/
|
|
49
|
+
type_urls?: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface QueryAllowedMsgsResponseAminoMsg {
|
|
52
|
+
type: "/sparkdream.guardian.v1.QueryAllowedMsgsResponse";
|
|
53
|
+
value: QueryAllowedMsgsResponseAmino;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @name QueryAllowedMsgsRequest
|
|
57
|
+
* @package sparkdream.guardian.v1
|
|
58
|
+
* @see proto type: sparkdream.guardian.v1.QueryAllowedMsgsRequest
|
|
59
|
+
*/
|
|
60
|
+
export declare const QueryAllowedMsgsRequest: {
|
|
61
|
+
typeUrl: string;
|
|
62
|
+
encode(_: QueryAllowedMsgsRequest, writer?: BinaryWriter): BinaryWriter;
|
|
63
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedMsgsRequest;
|
|
64
|
+
fromPartial(_: DeepPartial<QueryAllowedMsgsRequest>): QueryAllowedMsgsRequest;
|
|
65
|
+
fromAmino(_: QueryAllowedMsgsRequestAmino): QueryAllowedMsgsRequest;
|
|
66
|
+
toAmino(_: QueryAllowedMsgsRequest): QueryAllowedMsgsRequestAmino;
|
|
67
|
+
fromAminoMsg(object: QueryAllowedMsgsRequestAminoMsg): QueryAllowedMsgsRequest;
|
|
68
|
+
fromProtoMsg(message: QueryAllowedMsgsRequestProtoMsg): QueryAllowedMsgsRequest;
|
|
69
|
+
toProto(message: QueryAllowedMsgsRequest): Uint8Array;
|
|
70
|
+
toProtoMsg(message: QueryAllowedMsgsRequest): QueryAllowedMsgsRequestProtoMsg;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* @name QueryAllowedMsgsResponse
|
|
74
|
+
* @package sparkdream.guardian.v1
|
|
75
|
+
* @see proto type: sparkdream.guardian.v1.QueryAllowedMsgsResponse
|
|
76
|
+
*/
|
|
77
|
+
export declare const QueryAllowedMsgsResponse: {
|
|
78
|
+
typeUrl: string;
|
|
79
|
+
encode(message: QueryAllowedMsgsResponse, writer?: BinaryWriter): BinaryWriter;
|
|
80
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryAllowedMsgsResponse;
|
|
81
|
+
fromPartial(object: DeepPartial<QueryAllowedMsgsResponse>): QueryAllowedMsgsResponse;
|
|
82
|
+
fromAmino(object: QueryAllowedMsgsResponseAmino): QueryAllowedMsgsResponse;
|
|
83
|
+
toAmino(message: QueryAllowedMsgsResponse): QueryAllowedMsgsResponseAmino;
|
|
84
|
+
fromAminoMsg(object: QueryAllowedMsgsResponseAminoMsg): QueryAllowedMsgsResponse;
|
|
85
|
+
fromProtoMsg(message: QueryAllowedMsgsResponseProtoMsg): QueryAllowedMsgsResponse;
|
|
86
|
+
toProto(message: QueryAllowedMsgsResponse): Uint8Array;
|
|
87
|
+
toProtoMsg(message: QueryAllowedMsgsResponse): QueryAllowedMsgsResponseProtoMsg;
|
|
88
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QueryAllowedMsgsResponse = exports.QueryAllowedMsgsRequest = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const binary_1 = require("../../../binary");
|
|
6
|
+
function createBaseQueryAllowedMsgsRequest() {
|
|
7
|
+
return {};
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @name QueryAllowedMsgsRequest
|
|
11
|
+
* @package sparkdream.guardian.v1
|
|
12
|
+
* @see proto type: sparkdream.guardian.v1.QueryAllowedMsgsRequest
|
|
13
|
+
*/
|
|
14
|
+
exports.QueryAllowedMsgsRequest = {
|
|
15
|
+
typeUrl: "/sparkdream.guardian.v1.QueryAllowedMsgsRequest",
|
|
16
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
17
|
+
return writer;
|
|
18
|
+
},
|
|
19
|
+
decode(input, length) {
|
|
20
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
21
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22
|
+
const message = createBaseQueryAllowedMsgsRequest();
|
|
23
|
+
while (reader.pos < end) {
|
|
24
|
+
const tag = reader.uint32();
|
|
25
|
+
switch (tag >>> 3) {
|
|
26
|
+
default:
|
|
27
|
+
reader.skipType(tag & 7);
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return message;
|
|
32
|
+
},
|
|
33
|
+
fromPartial(_) {
|
|
34
|
+
const message = createBaseQueryAllowedMsgsRequest();
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromAmino(_) {
|
|
38
|
+
const message = createBaseQueryAllowedMsgsRequest();
|
|
39
|
+
return message;
|
|
40
|
+
},
|
|
41
|
+
toAmino(_) {
|
|
42
|
+
const obj = {};
|
|
43
|
+
return obj;
|
|
44
|
+
},
|
|
45
|
+
fromAminoMsg(object) {
|
|
46
|
+
return exports.QueryAllowedMsgsRequest.fromAmino(object.value);
|
|
47
|
+
},
|
|
48
|
+
fromProtoMsg(message) {
|
|
49
|
+
return exports.QueryAllowedMsgsRequest.decode(message.value);
|
|
50
|
+
},
|
|
51
|
+
toProto(message) {
|
|
52
|
+
return exports.QueryAllowedMsgsRequest.encode(message).finish();
|
|
53
|
+
},
|
|
54
|
+
toProtoMsg(message) {
|
|
55
|
+
return {
|
|
56
|
+
typeUrl: "/sparkdream.guardian.v1.QueryAllowedMsgsRequest",
|
|
57
|
+
value: exports.QueryAllowedMsgsRequest.encode(message).finish()
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
function createBaseQueryAllowedMsgsResponse() {
|
|
62
|
+
return {
|
|
63
|
+
typeUrls: []
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @name QueryAllowedMsgsResponse
|
|
68
|
+
* @package sparkdream.guardian.v1
|
|
69
|
+
* @see proto type: sparkdream.guardian.v1.QueryAllowedMsgsResponse
|
|
70
|
+
*/
|
|
71
|
+
exports.QueryAllowedMsgsResponse = {
|
|
72
|
+
typeUrl: "/sparkdream.guardian.v1.QueryAllowedMsgsResponse",
|
|
73
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
74
|
+
for (const v of message.typeUrls) {
|
|
75
|
+
writer.uint32(10).string(v);
|
|
76
|
+
}
|
|
77
|
+
return writer;
|
|
78
|
+
},
|
|
79
|
+
decode(input, length) {
|
|
80
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
81
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
82
|
+
const message = createBaseQueryAllowedMsgsResponse();
|
|
83
|
+
while (reader.pos < end) {
|
|
84
|
+
const tag = reader.uint32();
|
|
85
|
+
switch (tag >>> 3) {
|
|
86
|
+
case 1:
|
|
87
|
+
message.typeUrls.push(reader.string());
|
|
88
|
+
break;
|
|
89
|
+
default:
|
|
90
|
+
reader.skipType(tag & 7);
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBaseQueryAllowedMsgsResponse();
|
|
98
|
+
message.typeUrls = object.typeUrls?.map(e => e) || [];
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
fromAmino(object) {
|
|
102
|
+
const message = createBaseQueryAllowedMsgsResponse();
|
|
103
|
+
message.typeUrls = object.type_urls?.map(e => e) || [];
|
|
104
|
+
return message;
|
|
105
|
+
},
|
|
106
|
+
toAmino(message) {
|
|
107
|
+
const obj = {};
|
|
108
|
+
if (message.typeUrls) {
|
|
109
|
+
obj.type_urls = message.typeUrls.map(e => e);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
obj.type_urls = message.typeUrls;
|
|
113
|
+
}
|
|
114
|
+
return obj;
|
|
115
|
+
},
|
|
116
|
+
fromAminoMsg(object) {
|
|
117
|
+
return exports.QueryAllowedMsgsResponse.fromAmino(object.value);
|
|
118
|
+
},
|
|
119
|
+
fromProtoMsg(message) {
|
|
120
|
+
return exports.QueryAllowedMsgsResponse.decode(message.value);
|
|
121
|
+
},
|
|
122
|
+
toProto(message) {
|
|
123
|
+
return exports.QueryAllowedMsgsResponse.encode(message).finish();
|
|
124
|
+
},
|
|
125
|
+
toProtoMsg(message) {
|
|
126
|
+
return {
|
|
127
|
+
typeUrl: "/sparkdream.guardian.v1.QueryAllowedMsgsResponse",
|
|
128
|
+
value: exports.QueryAllowedMsgsResponse.encode(message).finish()
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LCDClient } from "@cosmology/lcd";
|
|
2
|
+
import { QueryAllowedMsgsRequest, QueryAllowedMsgsResponse } from "./query";
|
|
3
|
+
export declare class LCDQueryClient {
|
|
4
|
+
req: LCDClient;
|
|
5
|
+
constructor({ requestClient }: {
|
|
6
|
+
requestClient: LCDClient;
|
|
7
|
+
});
|
|
8
|
+
allowedMsgs: (_params?: QueryAllowedMsgsRequest) => Promise<QueryAllowedMsgsResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LCDQueryClient = void 0;
|
|
4
|
+
class LCDQueryClient {
|
|
5
|
+
req;
|
|
6
|
+
constructor({ requestClient }) {
|
|
7
|
+
this.req = requestClient;
|
|
8
|
+
}
|
|
9
|
+
/* AllowedMsgs returns the list of inner msg type URLs that guardian
|
|
10
|
+
will route through MsgExec. The list is built into the binary; this
|
|
11
|
+
query exposes it for operator inspection. */
|
|
12
|
+
allowedMsgs = async (_params = {}) => {
|
|
13
|
+
const endpoint = `sparkdream/guardian/v1/allowed_msgs`;
|
|
14
|
+
return await this.req.get(endpoint);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
exports.LCDQueryClient = LCDQueryClient;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TxRpc } from "../../../types";
|
|
2
|
+
import { QueryClient } from "@cosmjs/stargate";
|
|
3
|
+
import { QueryAllowedMsgsRequest, QueryAllowedMsgsResponse } from "./query";
|
|
4
|
+
/** Query defines the gRPC querier service. */
|
|
5
|
+
export interface Query {
|
|
6
|
+
/**
|
|
7
|
+
* AllowedMsgs returns the list of inner msg type URLs that guardian
|
|
8
|
+
* will route through MsgExec. The list is built into the binary; this
|
|
9
|
+
* query exposes it for operator inspection.
|
|
10
|
+
*/
|
|
11
|
+
allowedMsgs(request?: QueryAllowedMsgsRequest): Promise<QueryAllowedMsgsResponse>;
|
|
12
|
+
}
|
|
13
|
+
export declare class QueryClientImpl implements Query {
|
|
14
|
+
private readonly rpc;
|
|
15
|
+
constructor(rpc: TxRpc);
|
|
16
|
+
allowedMsgs: (request?: QueryAllowedMsgsRequest) => Promise<QueryAllowedMsgsResponse>;
|
|
17
|
+
}
|
|
18
|
+
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
|
19
|
+
allowedMsgs(request?: QueryAllowedMsgsRequest): Promise<QueryAllowedMsgsResponse>;
|
|
20
|
+
};
|