@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,184 +1,213 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
|
|
2
|
+
// HAND-WRITTEN OVERRIDE — overlaid by scripts/codegen.ts after telescope.
|
|
3
|
+
// See ../../commons/v1/tx.amino.ts for the broader rationale.
|
|
4
|
+
//
|
|
5
|
+
// Telescope emits `[]` for empty repeated fields; aminojson on the chain omits
|
|
6
|
+
// them. In forum the offending messages are MsgCreatePost and MsgEditPost,
|
|
7
|
+
// both of which have a repeated `tags` field that's commonly empty.
|
|
8
|
+
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgUnhidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused, } from "./tx";
|
|
3
9
|
export const AminoConverter = {
|
|
4
10
|
"/sparkdream.forum.v1.MsgUpdateParams": {
|
|
5
11
|
aminoType: "sparkdream/x/forum/MsgUpdateParams",
|
|
6
12
|
toAmino: MsgUpdateParams.toAmino,
|
|
7
|
-
fromAmino: MsgUpdateParams.fromAmino
|
|
13
|
+
fromAmino: MsgUpdateParams.fromAmino,
|
|
8
14
|
},
|
|
9
15
|
"/sparkdream.forum.v1.MsgUpdateOperationalParams": {
|
|
10
16
|
aminoType: "sparkdream/x/forum/MsgUpdateOperationalParams",
|
|
11
17
|
toAmino: MsgUpdateOperationalParams.toAmino,
|
|
12
|
-
fromAmino: MsgUpdateOperationalParams.fromAmino
|
|
18
|
+
fromAmino: MsgUpdateOperationalParams.fromAmino,
|
|
13
19
|
},
|
|
14
20
|
"/sparkdream.forum.v1.MsgCreatePost": {
|
|
15
21
|
aminoType: "sparkdream/x/forum/MsgCreatePost",
|
|
16
|
-
toAmino
|
|
17
|
-
|
|
22
|
+
toAmino(message) {
|
|
23
|
+
const obj = {};
|
|
24
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
25
|
+
obj.category_id = message.categoryId !== BigInt(0) ? message.categoryId?.toString() : undefined;
|
|
26
|
+
obj.parent_id = message.parentId !== BigInt(0) ? message.parentId?.toString() : undefined;
|
|
27
|
+
obj.content = message.content === "" ? undefined : message.content;
|
|
28
|
+
obj.tags = (message.tags?.length ?? 0) > 0
|
|
29
|
+
? message.tags.map((e) => e)
|
|
30
|
+
: undefined;
|
|
31
|
+
obj.content_type = message.contentType === 0 ? undefined : message.contentType;
|
|
32
|
+
obj.author_bond = message.authorBond === null ? undefined : message.authorBond;
|
|
33
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
34
|
+
return obj;
|
|
35
|
+
},
|
|
36
|
+
fromAmino: MsgCreatePost.fromAmino,
|
|
18
37
|
},
|
|
19
38
|
"/sparkdream.forum.v1.MsgEditPost": {
|
|
20
39
|
aminoType: "sparkdream/x/forum/MsgEditPost",
|
|
21
|
-
toAmino
|
|
22
|
-
|
|
40
|
+
toAmino(message) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
43
|
+
obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
|
|
44
|
+
obj.new_content = message.newContent === "" ? undefined : message.newContent;
|
|
45
|
+
obj.tags = (message.tags?.length ?? 0) > 0
|
|
46
|
+
? message.tags.map((e) => e)
|
|
47
|
+
: undefined;
|
|
48
|
+
obj.content_type = message.contentType === 0 ? undefined : message.contentType;
|
|
49
|
+
return obj;
|
|
50
|
+
},
|
|
51
|
+
fromAmino: MsgEditPost.fromAmino,
|
|
23
52
|
},
|
|
24
53
|
"/sparkdream.forum.v1.MsgDeletePost": {
|
|
25
54
|
aminoType: "sparkdream/x/forum/MsgDeletePost",
|
|
26
55
|
toAmino: MsgDeletePost.toAmino,
|
|
27
|
-
fromAmino: MsgDeletePost.fromAmino
|
|
56
|
+
fromAmino: MsgDeletePost.fromAmino,
|
|
28
57
|
},
|
|
29
58
|
"/sparkdream.forum.v1.MsgFreezeThread": {
|
|
30
59
|
aminoType: "sparkdream/x/forum/MsgFreezeThread",
|
|
31
60
|
toAmino: MsgFreezeThread.toAmino,
|
|
32
|
-
fromAmino: MsgFreezeThread.fromAmino
|
|
61
|
+
fromAmino: MsgFreezeThread.fromAmino,
|
|
33
62
|
},
|
|
34
63
|
"/sparkdream.forum.v1.MsgUnarchiveThread": {
|
|
35
64
|
aminoType: "sparkdream/x/forum/MsgUnarchiveThread",
|
|
36
65
|
toAmino: MsgUnarchiveThread.toAmino,
|
|
37
|
-
fromAmino: MsgUnarchiveThread.fromAmino
|
|
66
|
+
fromAmino: MsgUnarchiveThread.fromAmino,
|
|
38
67
|
},
|
|
39
68
|
"/sparkdream.forum.v1.MsgPinPost": {
|
|
40
69
|
aminoType: "sparkdream/x/forum/MsgPinPost",
|
|
41
70
|
toAmino: MsgPinPost.toAmino,
|
|
42
|
-
fromAmino: MsgPinPost.fromAmino
|
|
71
|
+
fromAmino: MsgPinPost.fromAmino,
|
|
43
72
|
},
|
|
44
73
|
"/sparkdream.forum.v1.MsgUnpinPost": {
|
|
45
74
|
aminoType: "sparkdream/x/forum/MsgUnpinPost",
|
|
46
75
|
toAmino: MsgUnpinPost.toAmino,
|
|
47
|
-
fromAmino: MsgUnpinPost.fromAmino
|
|
76
|
+
fromAmino: MsgUnpinPost.fromAmino,
|
|
48
77
|
},
|
|
49
78
|
"/sparkdream.forum.v1.MsgLockThread": {
|
|
50
79
|
aminoType: "sparkdream/x/forum/MsgLockThread",
|
|
51
80
|
toAmino: MsgLockThread.toAmino,
|
|
52
|
-
fromAmino: MsgLockThread.fromAmino
|
|
81
|
+
fromAmino: MsgLockThread.fromAmino,
|
|
53
82
|
},
|
|
54
83
|
"/sparkdream.forum.v1.MsgUnlockThread": {
|
|
55
84
|
aminoType: "sparkdream/x/forum/MsgUnlockThread",
|
|
56
85
|
toAmino: MsgUnlockThread.toAmino,
|
|
57
|
-
fromAmino: MsgUnlockThread.fromAmino
|
|
86
|
+
fromAmino: MsgUnlockThread.fromAmino,
|
|
58
87
|
},
|
|
59
88
|
"/sparkdream.forum.v1.MsgMoveThread": {
|
|
60
89
|
aminoType: "sparkdream/x/forum/MsgMoveThread",
|
|
61
90
|
toAmino: MsgMoveThread.toAmino,
|
|
62
|
-
fromAmino: MsgMoveThread.fromAmino
|
|
91
|
+
fromAmino: MsgMoveThread.fromAmino,
|
|
63
92
|
},
|
|
64
93
|
"/sparkdream.forum.v1.MsgFollowThread": {
|
|
65
94
|
aminoType: "sparkdream/x/forum/MsgFollowThread",
|
|
66
95
|
toAmino: MsgFollowThread.toAmino,
|
|
67
|
-
fromAmino: MsgFollowThread.fromAmino
|
|
96
|
+
fromAmino: MsgFollowThread.fromAmino,
|
|
68
97
|
},
|
|
69
98
|
"/sparkdream.forum.v1.MsgUnfollowThread": {
|
|
70
99
|
aminoType: "sparkdream/x/forum/MsgUnfollowThread",
|
|
71
100
|
toAmino: MsgUnfollowThread.toAmino,
|
|
72
|
-
fromAmino: MsgUnfollowThread.fromAmino
|
|
101
|
+
fromAmino: MsgUnfollowThread.fromAmino,
|
|
73
102
|
},
|
|
74
103
|
"/sparkdream.forum.v1.MsgUpvotePost": {
|
|
75
104
|
aminoType: "sparkdream/x/forum/MsgUpvotePost",
|
|
76
105
|
toAmino: MsgUpvotePost.toAmino,
|
|
77
|
-
fromAmino: MsgUpvotePost.fromAmino
|
|
106
|
+
fromAmino: MsgUpvotePost.fromAmino,
|
|
78
107
|
},
|
|
79
108
|
"/sparkdream.forum.v1.MsgDownvotePost": {
|
|
80
109
|
aminoType: "sparkdream/x/forum/MsgDownvotePost",
|
|
81
110
|
toAmino: MsgDownvotePost.toAmino,
|
|
82
|
-
fromAmino: MsgDownvotePost.fromAmino
|
|
111
|
+
fromAmino: MsgDownvotePost.fromAmino,
|
|
83
112
|
},
|
|
84
113
|
"/sparkdream.forum.v1.MsgFlagPost": {
|
|
85
114
|
aminoType: "sparkdream/x/forum/MsgFlagPost",
|
|
86
115
|
toAmino: MsgFlagPost.toAmino,
|
|
87
|
-
fromAmino: MsgFlagPost.fromAmino
|
|
116
|
+
fromAmino: MsgFlagPost.fromAmino,
|
|
88
117
|
},
|
|
89
118
|
"/sparkdream.forum.v1.MsgDismissFlags": {
|
|
90
119
|
aminoType: "sparkdream/x/forum/MsgDismissFlags",
|
|
91
120
|
toAmino: MsgDismissFlags.toAmino,
|
|
92
|
-
fromAmino: MsgDismissFlags.fromAmino
|
|
121
|
+
fromAmino: MsgDismissFlags.fromAmino,
|
|
93
122
|
},
|
|
94
123
|
"/sparkdream.forum.v1.MsgHidePost": {
|
|
95
124
|
aminoType: "sparkdream/x/forum/MsgHidePost",
|
|
96
125
|
toAmino: MsgHidePost.toAmino,
|
|
97
|
-
fromAmino: MsgHidePost.fromAmino
|
|
126
|
+
fromAmino: MsgHidePost.fromAmino,
|
|
98
127
|
},
|
|
99
128
|
"/sparkdream.forum.v1.MsgUnhidePost": {
|
|
100
129
|
aminoType: "sparkdream/x/forum/MsgUnhidePost",
|
|
101
130
|
toAmino: MsgUnhidePost.toAmino,
|
|
102
|
-
fromAmino: MsgUnhidePost.fromAmino
|
|
131
|
+
fromAmino: MsgUnhidePost.fromAmino,
|
|
103
132
|
},
|
|
104
133
|
"/sparkdream.forum.v1.MsgAppealPost": {
|
|
105
134
|
aminoType: "sparkdream/x/forum/MsgAppealPost",
|
|
106
135
|
toAmino: MsgAppealPost.toAmino,
|
|
107
|
-
fromAmino: MsgAppealPost.fromAmino
|
|
136
|
+
fromAmino: MsgAppealPost.fromAmino,
|
|
108
137
|
},
|
|
109
138
|
"/sparkdream.forum.v1.MsgAppealThreadLock": {
|
|
110
139
|
aminoType: "sparkdream/x/forum/MsgAppealThreadLock",
|
|
111
140
|
toAmino: MsgAppealThreadLock.toAmino,
|
|
112
|
-
fromAmino: MsgAppealThreadLock.fromAmino
|
|
141
|
+
fromAmino: MsgAppealThreadLock.fromAmino,
|
|
113
142
|
},
|
|
114
143
|
"/sparkdream.forum.v1.MsgAppealThreadMove": {
|
|
115
144
|
aminoType: "sparkdream/x/forum/MsgAppealThreadMove",
|
|
116
145
|
toAmino: MsgAppealThreadMove.toAmino,
|
|
117
|
-
fromAmino: MsgAppealThreadMove.fromAmino
|
|
146
|
+
fromAmino: MsgAppealThreadMove.fromAmino,
|
|
118
147
|
},
|
|
119
148
|
"/sparkdream.forum.v1.MsgCreateBounty": {
|
|
120
149
|
aminoType: "sparkdream/x/forum/MsgCreateBounty",
|
|
121
150
|
toAmino: MsgCreateBounty.toAmino,
|
|
122
|
-
fromAmino: MsgCreateBounty.fromAmino
|
|
151
|
+
fromAmino: MsgCreateBounty.fromAmino,
|
|
123
152
|
},
|
|
124
153
|
"/sparkdream.forum.v1.MsgAwardBounty": {
|
|
125
154
|
aminoType: "sparkdream/x/forum/MsgAwardBounty",
|
|
126
155
|
toAmino: MsgAwardBounty.toAmino,
|
|
127
|
-
fromAmino: MsgAwardBounty.fromAmino
|
|
156
|
+
fromAmino: MsgAwardBounty.fromAmino,
|
|
128
157
|
},
|
|
129
158
|
"/sparkdream.forum.v1.MsgIncreaseBounty": {
|
|
130
159
|
aminoType: "sparkdream/x/forum/MsgIncreaseBounty",
|
|
131
160
|
toAmino: MsgIncreaseBounty.toAmino,
|
|
132
|
-
fromAmino: MsgIncreaseBounty.fromAmino
|
|
161
|
+
fromAmino: MsgIncreaseBounty.fromAmino,
|
|
133
162
|
},
|
|
134
163
|
"/sparkdream.forum.v1.MsgCancelBounty": {
|
|
135
164
|
aminoType: "sparkdream/x/forum/MsgCancelBounty",
|
|
136
165
|
toAmino: MsgCancelBounty.toAmino,
|
|
137
|
-
fromAmino: MsgCancelBounty.fromAmino
|
|
166
|
+
fromAmino: MsgCancelBounty.fromAmino,
|
|
138
167
|
},
|
|
139
168
|
"/sparkdream.forum.v1.MsgAssignBountyToReply": {
|
|
140
169
|
aminoType: "sparkdream/x/forum/MsgAssignBountyToReply",
|
|
141
170
|
toAmino: MsgAssignBountyToReply.toAmino,
|
|
142
|
-
fromAmino: MsgAssignBountyToReply.fromAmino
|
|
171
|
+
fromAmino: MsgAssignBountyToReply.fromAmino,
|
|
143
172
|
},
|
|
144
173
|
"/sparkdream.forum.v1.MsgPinReply": {
|
|
145
174
|
aminoType: "sparkdream/x/forum/MsgPinReply",
|
|
146
175
|
toAmino: MsgPinReply.toAmino,
|
|
147
|
-
fromAmino: MsgPinReply.fromAmino
|
|
176
|
+
fromAmino: MsgPinReply.fromAmino,
|
|
148
177
|
},
|
|
149
178
|
"/sparkdream.forum.v1.MsgUnpinReply": {
|
|
150
179
|
aminoType: "sparkdream/x/forum/MsgUnpinReply",
|
|
151
180
|
toAmino: MsgUnpinReply.toAmino,
|
|
152
|
-
fromAmino: MsgUnpinReply.fromAmino
|
|
181
|
+
fromAmino: MsgUnpinReply.fromAmino,
|
|
153
182
|
},
|
|
154
183
|
"/sparkdream.forum.v1.MsgDisputePin": {
|
|
155
184
|
aminoType: "sparkdream/x/forum/MsgDisputePin",
|
|
156
185
|
toAmino: MsgDisputePin.toAmino,
|
|
157
|
-
fromAmino: MsgDisputePin.fromAmino
|
|
186
|
+
fromAmino: MsgDisputePin.fromAmino,
|
|
158
187
|
},
|
|
159
188
|
"/sparkdream.forum.v1.MsgMarkAcceptedReply": {
|
|
160
189
|
aminoType: "sparkdream/x/forum/MsgMarkAcceptedReply",
|
|
161
190
|
toAmino: MsgMarkAcceptedReply.toAmino,
|
|
162
|
-
fromAmino: MsgMarkAcceptedReply.fromAmino
|
|
191
|
+
fromAmino: MsgMarkAcceptedReply.fromAmino,
|
|
163
192
|
},
|
|
164
193
|
"/sparkdream.forum.v1.MsgConfirmProposedReply": {
|
|
165
194
|
aminoType: "sparkdream/x/forum/MsgConfirmProposedReply",
|
|
166
195
|
toAmino: MsgConfirmProposedReply.toAmino,
|
|
167
|
-
fromAmino: MsgConfirmProposedReply.fromAmino
|
|
196
|
+
fromAmino: MsgConfirmProposedReply.fromAmino,
|
|
168
197
|
},
|
|
169
198
|
"/sparkdream.forum.v1.MsgRejectProposedReply": {
|
|
170
199
|
aminoType: "sparkdream/x/forum/MsgRejectProposedReply",
|
|
171
200
|
toAmino: MsgRejectProposedReply.toAmino,
|
|
172
|
-
fromAmino: MsgRejectProposedReply.fromAmino
|
|
201
|
+
fromAmino: MsgRejectProposedReply.fromAmino,
|
|
173
202
|
},
|
|
174
203
|
"/sparkdream.forum.v1.MsgSetForumPaused": {
|
|
175
204
|
aminoType: "sparkdream/x/forum/MsgSetForumPaused",
|
|
176
205
|
toAmino: MsgSetForumPaused.toAmino,
|
|
177
|
-
fromAmino: MsgSetForumPaused.fromAmino
|
|
206
|
+
fromAmino: MsgSetForumPaused.fromAmino,
|
|
178
207
|
},
|
|
179
208
|
"/sparkdream.forum.v1.MsgSetModerationPaused": {
|
|
180
209
|
aminoType: "sparkdream/x/forum/MsgSetModerationPaused",
|
|
181
210
|
toAmino: MsgSetModerationPaused.toAmino,
|
|
182
|
-
fromAmino: MsgSetModerationPaused.fromAmino
|
|
183
|
-
}
|
|
211
|
+
fromAmino: MsgSetModerationPaused.fromAmino,
|
|
212
|
+
},
|
|
184
213
|
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
3
|
+
function createBaseModule() {
|
|
4
|
+
return {};
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Module is the config object for the guardian module.
|
|
8
|
+
*
|
|
9
|
+
* guardian is a generic authority-gating module. It owns the authority
|
|
10
|
+
* addresses for one or more downstream modules (bank, mint, staking by
|
|
11
|
+
* default) and exposes a single MsgExec wrapper that gov can call to
|
|
12
|
+
* invoke msg-type-specific proxies. Per-msg-type filters reject changes
|
|
13
|
+
* to fields the chain has decided are immutable (e.g., mint inflation
|
|
14
|
+
* parameters, bank native-denom Symbol/Display).
|
|
15
|
+
*
|
|
16
|
+
* See docs/x-identity-spec.md §14.6 for the identity-protection use
|
|
17
|
+
* case, and the implementation-decisions doc for the broader rationale.
|
|
18
|
+
* @name Module
|
|
19
|
+
* @package sparkdream.guardian.module.v1
|
|
20
|
+
* @see proto type: sparkdream.guardian.module.v1.Module
|
|
21
|
+
*/
|
|
22
|
+
export const Module = {
|
|
23
|
+
typeUrl: "/sparkdream.guardian.module.v1.Module",
|
|
24
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
25
|
+
return writer;
|
|
26
|
+
},
|
|
27
|
+
decode(input, length) {
|
|
28
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
29
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
30
|
+
const message = createBaseModule();
|
|
31
|
+
while (reader.pos < end) {
|
|
32
|
+
const tag = reader.uint32();
|
|
33
|
+
switch (tag >>> 3) {
|
|
34
|
+
default:
|
|
35
|
+
reader.skipType(tag & 7);
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return message;
|
|
40
|
+
},
|
|
41
|
+
fromPartial(_) {
|
|
42
|
+
const message = createBaseModule();
|
|
43
|
+
return message;
|
|
44
|
+
},
|
|
45
|
+
fromAmino(_) {
|
|
46
|
+
const message = createBaseModule();
|
|
47
|
+
return message;
|
|
48
|
+
},
|
|
49
|
+
toAmino(_) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
return obj;
|
|
52
|
+
},
|
|
53
|
+
fromAminoMsg(object) {
|
|
54
|
+
return Module.fromAmino(object.value);
|
|
55
|
+
},
|
|
56
|
+
fromProtoMsg(message) {
|
|
57
|
+
return Module.decode(message.value);
|
|
58
|
+
},
|
|
59
|
+
toProto(message) {
|
|
60
|
+
return Module.encode(message).finish();
|
|
61
|
+
},
|
|
62
|
+
toProtoMsg(message) {
|
|
63
|
+
return {
|
|
64
|
+
typeUrl: "/sparkdream.guardian.module.v1.Module",
|
|
65
|
+
value: Module.encode(message).finish()
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
function createBaseQueryAllowedMsgsRequest() {
|
|
4
|
+
return {};
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @name QueryAllowedMsgsRequest
|
|
8
|
+
* @package sparkdream.guardian.v1
|
|
9
|
+
* @see proto type: sparkdream.guardian.v1.QueryAllowedMsgsRequest
|
|
10
|
+
*/
|
|
11
|
+
export const QueryAllowedMsgsRequest = {
|
|
12
|
+
typeUrl: "/sparkdream.guardian.v1.QueryAllowedMsgsRequest",
|
|
13
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
14
|
+
return writer;
|
|
15
|
+
},
|
|
16
|
+
decode(input, length) {
|
|
17
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
18
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
19
|
+
const message = createBaseQueryAllowedMsgsRequest();
|
|
20
|
+
while (reader.pos < end) {
|
|
21
|
+
const tag = reader.uint32();
|
|
22
|
+
switch (tag >>> 3) {
|
|
23
|
+
default:
|
|
24
|
+
reader.skipType(tag & 7);
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return message;
|
|
29
|
+
},
|
|
30
|
+
fromPartial(_) {
|
|
31
|
+
const message = createBaseQueryAllowedMsgsRequest();
|
|
32
|
+
return message;
|
|
33
|
+
},
|
|
34
|
+
fromAmino(_) {
|
|
35
|
+
const message = createBaseQueryAllowedMsgsRequest();
|
|
36
|
+
return message;
|
|
37
|
+
},
|
|
38
|
+
toAmino(_) {
|
|
39
|
+
const obj = {};
|
|
40
|
+
return obj;
|
|
41
|
+
},
|
|
42
|
+
fromAminoMsg(object) {
|
|
43
|
+
return QueryAllowedMsgsRequest.fromAmino(object.value);
|
|
44
|
+
},
|
|
45
|
+
fromProtoMsg(message) {
|
|
46
|
+
return QueryAllowedMsgsRequest.decode(message.value);
|
|
47
|
+
},
|
|
48
|
+
toProto(message) {
|
|
49
|
+
return QueryAllowedMsgsRequest.encode(message).finish();
|
|
50
|
+
},
|
|
51
|
+
toProtoMsg(message) {
|
|
52
|
+
return {
|
|
53
|
+
typeUrl: "/sparkdream.guardian.v1.QueryAllowedMsgsRequest",
|
|
54
|
+
value: QueryAllowedMsgsRequest.encode(message).finish()
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
function createBaseQueryAllowedMsgsResponse() {
|
|
59
|
+
return {
|
|
60
|
+
typeUrls: []
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @name QueryAllowedMsgsResponse
|
|
65
|
+
* @package sparkdream.guardian.v1
|
|
66
|
+
* @see proto type: sparkdream.guardian.v1.QueryAllowedMsgsResponse
|
|
67
|
+
*/
|
|
68
|
+
export const QueryAllowedMsgsResponse = {
|
|
69
|
+
typeUrl: "/sparkdream.guardian.v1.QueryAllowedMsgsResponse",
|
|
70
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
71
|
+
for (const v of message.typeUrls) {
|
|
72
|
+
writer.uint32(10).string(v);
|
|
73
|
+
}
|
|
74
|
+
return writer;
|
|
75
|
+
},
|
|
76
|
+
decode(input, length) {
|
|
77
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
78
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
79
|
+
const message = createBaseQueryAllowedMsgsResponse();
|
|
80
|
+
while (reader.pos < end) {
|
|
81
|
+
const tag = reader.uint32();
|
|
82
|
+
switch (tag >>> 3) {
|
|
83
|
+
case 1:
|
|
84
|
+
message.typeUrls.push(reader.string());
|
|
85
|
+
break;
|
|
86
|
+
default:
|
|
87
|
+
reader.skipType(tag & 7);
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return message;
|
|
92
|
+
},
|
|
93
|
+
fromPartial(object) {
|
|
94
|
+
const message = createBaseQueryAllowedMsgsResponse();
|
|
95
|
+
message.typeUrls = object.typeUrls?.map(e => e) || [];
|
|
96
|
+
return message;
|
|
97
|
+
},
|
|
98
|
+
fromAmino(object) {
|
|
99
|
+
const message = createBaseQueryAllowedMsgsResponse();
|
|
100
|
+
message.typeUrls = object.type_urls?.map(e => e) || [];
|
|
101
|
+
return message;
|
|
102
|
+
},
|
|
103
|
+
toAmino(message) {
|
|
104
|
+
const obj = {};
|
|
105
|
+
if (message.typeUrls) {
|
|
106
|
+
obj.type_urls = message.typeUrls.map(e => e);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
obj.type_urls = message.typeUrls;
|
|
110
|
+
}
|
|
111
|
+
return obj;
|
|
112
|
+
},
|
|
113
|
+
fromAminoMsg(object) {
|
|
114
|
+
return QueryAllowedMsgsResponse.fromAmino(object.value);
|
|
115
|
+
},
|
|
116
|
+
fromProtoMsg(message) {
|
|
117
|
+
return QueryAllowedMsgsResponse.decode(message.value);
|
|
118
|
+
},
|
|
119
|
+
toProto(message) {
|
|
120
|
+
return QueryAllowedMsgsResponse.encode(message).finish();
|
|
121
|
+
},
|
|
122
|
+
toProtoMsg(message) {
|
|
123
|
+
return {
|
|
124
|
+
typeUrl: "/sparkdream.guardian.v1.QueryAllowedMsgsResponse",
|
|
125
|
+
value: QueryAllowedMsgsResponse.encode(message).finish()
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class LCDQueryClient {
|
|
2
|
+
req;
|
|
3
|
+
constructor({ requestClient }) {
|
|
4
|
+
this.req = requestClient;
|
|
5
|
+
}
|
|
6
|
+
/* AllowedMsgs returns the list of inner msg type URLs that guardian
|
|
7
|
+
will route through MsgExec. The list is built into the binary; this
|
|
8
|
+
query exposes it for operator inspection. */
|
|
9
|
+
allowedMsgs = async (_params = {}) => {
|
|
10
|
+
const endpoint = `sparkdream/guardian/v1/allowed_msgs`;
|
|
11
|
+
return await this.req.get(endpoint);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BinaryReader } from "../../../binary";
|
|
2
|
+
import { createProtobufRpcClient } from "@cosmjs/stargate";
|
|
3
|
+
import { QueryAllowedMsgsRequest, QueryAllowedMsgsResponse } from "./query";
|
|
4
|
+
export class QueryClientImpl {
|
|
5
|
+
rpc;
|
|
6
|
+
constructor(rpc) {
|
|
7
|
+
this.rpc = rpc;
|
|
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 (request = {}) => {
|
|
13
|
+
const data = QueryAllowedMsgsRequest.encode(request).finish();
|
|
14
|
+
const promise = this.rpc.request("sparkdream.guardian.v1.Query", "AllowedMsgs", data);
|
|
15
|
+
return promise.then(data => QueryAllowedMsgsResponse.decode(new BinaryReader(data)));
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export const createRpcQueryExtension = (base) => {
|
|
19
|
+
const rpc = createProtobufRpcClient(base);
|
|
20
|
+
const queryService = new QueryClientImpl(rpc);
|
|
21
|
+
return {
|
|
22
|
+
allowedMsgs(request) {
|
|
23
|
+
return queryService.allowedMsgs(request);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Any } from "../../../google/protobuf/any";
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
|
+
function createBaseMsgExec() {
|
|
5
|
+
return {
|
|
6
|
+
authority: "",
|
|
7
|
+
inner: undefined
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* MsgExec is the universal guardian wrapper. Submitted by gov (or another
|
|
12
|
+
* authorized account) to invoke a gated downstream msg through guardian's
|
|
13
|
+
* filter chain.
|
|
14
|
+
* @name MsgExec
|
|
15
|
+
* @package sparkdream.guardian.v1
|
|
16
|
+
* @see proto type: sparkdream.guardian.v1.MsgExec
|
|
17
|
+
*/
|
|
18
|
+
export const MsgExec = {
|
|
19
|
+
typeUrl: "/sparkdream.guardian.v1.MsgExec",
|
|
20
|
+
aminoType: "sparkdream/x/guardian/MsgExec",
|
|
21
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
22
|
+
if (message.authority !== "") {
|
|
23
|
+
writer.uint32(10).string(message.authority);
|
|
24
|
+
}
|
|
25
|
+
if (message.inner !== undefined) {
|
|
26
|
+
Any.encode(message.inner, writer.uint32(18).fork()).ldelim();
|
|
27
|
+
}
|
|
28
|
+
return writer;
|
|
29
|
+
},
|
|
30
|
+
decode(input, length) {
|
|
31
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
32
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33
|
+
const message = createBaseMsgExec();
|
|
34
|
+
while (reader.pos < end) {
|
|
35
|
+
const tag = reader.uint32();
|
|
36
|
+
switch (tag >>> 3) {
|
|
37
|
+
case 1:
|
|
38
|
+
message.authority = reader.string();
|
|
39
|
+
break;
|
|
40
|
+
case 2:
|
|
41
|
+
message.inner = Cosmos_basev1beta1Msg_InterfaceDecoder(reader);
|
|
42
|
+
break;
|
|
43
|
+
default:
|
|
44
|
+
reader.skipType(tag & 7);
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return message;
|
|
49
|
+
},
|
|
50
|
+
fromPartial(object) {
|
|
51
|
+
const message = createBaseMsgExec();
|
|
52
|
+
message.authority = object.authority ?? "";
|
|
53
|
+
message.inner = object.inner !== undefined && object.inner !== null ? Any.fromPartial(object.inner) : undefined;
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
fromAmino(object) {
|
|
57
|
+
const message = createBaseMsgExec();
|
|
58
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
59
|
+
message.authority = object.authority;
|
|
60
|
+
}
|
|
61
|
+
if (object.inner !== undefined && object.inner !== null) {
|
|
62
|
+
message.inner = Cosmos_basev1beta1Msg_FromAmino(object.inner);
|
|
63
|
+
}
|
|
64
|
+
return message;
|
|
65
|
+
},
|
|
66
|
+
toAmino(message) {
|
|
67
|
+
const obj = {};
|
|
68
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
69
|
+
obj.inner = message.inner ? Cosmos_basev1beta1Msg_ToAmino(message.inner) : undefined;
|
|
70
|
+
return obj;
|
|
71
|
+
},
|
|
72
|
+
fromAminoMsg(object) {
|
|
73
|
+
return MsgExec.fromAmino(object.value);
|
|
74
|
+
},
|
|
75
|
+
toAminoMsg(message) {
|
|
76
|
+
return {
|
|
77
|
+
type: "sparkdream/x/guardian/MsgExec",
|
|
78
|
+
value: MsgExec.toAmino(message)
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
fromProtoMsg(message) {
|
|
82
|
+
return MsgExec.decode(message.value);
|
|
83
|
+
},
|
|
84
|
+
toProto(message) {
|
|
85
|
+
return MsgExec.encode(message).finish();
|
|
86
|
+
},
|
|
87
|
+
toProtoMsg(message) {
|
|
88
|
+
return {
|
|
89
|
+
typeUrl: "/sparkdream.guardian.v1.MsgExec",
|
|
90
|
+
value: MsgExec.encode(message).finish()
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
function createBaseMsgExecResponse() {
|
|
95
|
+
return {
|
|
96
|
+
innerResponse: undefined
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @name MsgExecResponse
|
|
101
|
+
* @package sparkdream.guardian.v1
|
|
102
|
+
* @see proto type: sparkdream.guardian.v1.MsgExecResponse
|
|
103
|
+
*/
|
|
104
|
+
export const MsgExecResponse = {
|
|
105
|
+
typeUrl: "/sparkdream.guardian.v1.MsgExecResponse",
|
|
106
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
107
|
+
if (message.innerResponse !== undefined) {
|
|
108
|
+
Any.encode(message.innerResponse, writer.uint32(10).fork()).ldelim();
|
|
109
|
+
}
|
|
110
|
+
return writer;
|
|
111
|
+
},
|
|
112
|
+
decode(input, length) {
|
|
113
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
114
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
115
|
+
const message = createBaseMsgExecResponse();
|
|
116
|
+
while (reader.pos < end) {
|
|
117
|
+
const tag = reader.uint32();
|
|
118
|
+
switch (tag >>> 3) {
|
|
119
|
+
case 1:
|
|
120
|
+
message.innerResponse = Any.decode(reader, reader.uint32());
|
|
121
|
+
break;
|
|
122
|
+
default:
|
|
123
|
+
reader.skipType(tag & 7);
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return message;
|
|
128
|
+
},
|
|
129
|
+
fromPartial(object) {
|
|
130
|
+
const message = createBaseMsgExecResponse();
|
|
131
|
+
message.innerResponse = object.innerResponse !== undefined && object.innerResponse !== null ? Any.fromPartial(object.innerResponse) : undefined;
|
|
132
|
+
return message;
|
|
133
|
+
},
|
|
134
|
+
fromAmino(object) {
|
|
135
|
+
const message = createBaseMsgExecResponse();
|
|
136
|
+
if (object.inner_response !== undefined && object.inner_response !== null) {
|
|
137
|
+
message.innerResponse = Any.fromAmino(object.inner_response);
|
|
138
|
+
}
|
|
139
|
+
return message;
|
|
140
|
+
},
|
|
141
|
+
toAmino(message) {
|
|
142
|
+
const obj = {};
|
|
143
|
+
obj.inner_response = message.innerResponse ? Any.toAmino(message.innerResponse) : undefined;
|
|
144
|
+
return obj;
|
|
145
|
+
},
|
|
146
|
+
fromAminoMsg(object) {
|
|
147
|
+
return MsgExecResponse.fromAmino(object.value);
|
|
148
|
+
},
|
|
149
|
+
fromProtoMsg(message) {
|
|
150
|
+
return MsgExecResponse.decode(message.value);
|
|
151
|
+
},
|
|
152
|
+
toProto(message) {
|
|
153
|
+
return MsgExecResponse.encode(message).finish();
|
|
154
|
+
},
|
|
155
|
+
toProtoMsg(message) {
|
|
156
|
+
return {
|
|
157
|
+
typeUrl: "/sparkdream.guardian.v1.MsgExecResponse",
|
|
158
|
+
value: MsgExecResponse.encode(message).finish()
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
export const Cosmos_basev1beta1Msg_InterfaceDecoder = (input) => {
|
|
163
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
164
|
+
const data = Any.decode(reader, reader.uint32());
|
|
165
|
+
switch (data.typeUrl) {
|
|
166
|
+
default:
|
|
167
|
+
return data;
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
export const Cosmos_basev1beta1Msg_FromAmino = (content) => {
|
|
171
|
+
return Any.fromAmino(content);
|
|
172
|
+
};
|
|
173
|
+
export const Cosmos_basev1beta1Msg_ToAmino = (content) => {
|
|
174
|
+
return Any.toAmino(content);
|
|
175
|
+
};
|