@sparkdreamnft/sparkdreamjs 0.0.17 → 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.
Files changed (237) hide show
  1. package/cosmos/bundle.d.ts +160 -160
  2. package/cosmos/bundle.js +182 -182
  3. package/esm/cosmos/bundle.js +182 -182
  4. package/esm/ibc/bundle.js +106 -106
  5. package/esm/sparkdream/blog/v1/params.js +51 -50
  6. package/esm/sparkdream/bundle.js +448 -346
  7. package/esm/sparkdream/client.js +7 -1
  8. package/esm/sparkdream/collect/v1/params.js +13 -1
  9. package/esm/sparkdream/collect/v1/types.js +13 -1
  10. package/esm/sparkdream/commons/v1/genesis.js +29 -1
  11. package/esm/sparkdream/commons/v1/query.js +317 -0
  12. package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
  13. package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
  14. package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
  15. package/esm/sparkdream/commons/v1/tx.js +693 -0
  16. package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
  17. package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
  18. package/esm/sparkdream/federation/v1/genesis.js +10 -10
  19. package/esm/sparkdream/federation/v1/params.js +29 -54
  20. package/esm/sparkdream/federation/v1/query.js +216 -71
  21. package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
  22. package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  23. package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
  24. package/esm/sparkdream/federation/v1/tx.js +1146 -1105
  25. package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
  26. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
  27. package/esm/sparkdream/federation/v1/types.js +355 -99
  28. package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
  29. package/esm/sparkdream/forum/v1/params.js +173 -148
  30. package/esm/sparkdream/guardian/module/v1/module.js +68 -0
  31. package/esm/sparkdream/guardian/v1/query.js +128 -0
  32. package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
  33. package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
  34. package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
  35. package/esm/sparkdream/guardian/v1/tx.js +175 -0
  36. package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
  37. package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
  38. package/esm/sparkdream/identity/module/v1/module.js +71 -0
  39. package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
  40. package/esm/sparkdream/identity/v1/genesis.js +84 -0
  41. package/esm/sparkdream/identity/v1/query.js +372 -0
  42. package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
  43. package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
  44. package/esm/sparkdream/lcd.js +15 -0
  45. package/esm/sparkdream/name/v1/params.js +19 -18
  46. package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
  47. package/esm/sparkdream/rep/v1/tag.js +6 -13
  48. package/esm/sparkdream/rpc.query.js +9 -0
  49. package/esm/sparkdream/rpc.tx.js +6 -0
  50. package/esm/sparkdream/service/module/v1/module.js +71 -0
  51. package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
  52. package/esm/sparkdream/service/v1/genesis.js +240 -0
  53. package/esm/sparkdream/service/v1/operator.js +250 -0
  54. package/esm/sparkdream/service/v1/params.js +355 -0
  55. package/esm/sparkdream/service/v1/query.js +1582 -0
  56. package/esm/sparkdream/service/v1/query.lcd.js +107 -0
  57. package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
  58. package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
  59. package/esm/sparkdream/service/v1/report.js +212 -0
  60. package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
  61. package/esm/sparkdream/service/v1/service_type_config.js +264 -0
  62. package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
  63. package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
  64. package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
  65. package/esm/sparkdream/service/v1/tx.amino.js +69 -0
  66. package/esm/sparkdream/service/v1/tx.js +2124 -0
  67. package/esm/sparkdream/service/v1/tx.registry.js +249 -0
  68. package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
  69. package/esm/sparkdream/service/v1/types.js +353 -0
  70. package/esm/sparkdream/session/v1/genesis.js +136 -10
  71. package/esm/sparkdream/session/v1/grant.js +1020 -0
  72. package/esm/sparkdream/session/v1/params.js +543 -19
  73. package/esm/sparkdream/session/v1/query.js +487 -0
  74. package/esm/sparkdream/session/v1/query.lcd.js +41 -3
  75. package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
  76. package/esm/sparkdream/session/v1/session.js +6 -0
  77. package/esm/sparkdream/session/v1/tx.js +1066 -0
  78. package/esm/sparkdream/session/v1/tx.registry.js +110 -2
  79. package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
  80. package/esm/tendermint/bundle.js +20 -20
  81. package/ibc/bundle.d.ts +90 -90
  82. package/ibc/bundle.js +106 -106
  83. package/package.json +1 -1
  84. package/sparkdream/blog/v1/params.d.ts +37 -28
  85. package/sparkdream/blog/v1/params.js +51 -50
  86. package/sparkdream/blog/v1/post.d.ts +2 -2
  87. package/sparkdream/blog/v1/tx.d.ts +4 -4
  88. package/sparkdream/bundle.d.ts +14912 -12896
  89. package/sparkdream/bundle.js +448 -346
  90. package/sparkdream/client.d.ts +90 -20
  91. package/sparkdream/client.js +7 -1
  92. package/sparkdream/collect/v1/params.d.ts +16 -0
  93. package/sparkdream/collect/v1/params.js +13 -1
  94. package/sparkdream/collect/v1/types.d.ts +2 -0
  95. package/sparkdream/collect/v1/types.js +13 -1
  96. package/sparkdream/commons/v1/genesis.d.ts +17 -0
  97. package/sparkdream/commons/v1/genesis.js +29 -1
  98. package/sparkdream/commons/v1/query.d.ts +186 -0
  99. package/sparkdream/commons/v1/query.js +318 -1
  100. package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
  101. package/sparkdream/commons/v1/query.lcd.js +23 -0
  102. package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
  103. package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
  104. package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
  105. package/sparkdream/commons/v1/recurring_spend.js +301 -0
  106. package/sparkdream/commons/v1/tx.d.ts +472 -0
  107. package/sparkdream/commons/v1/tx.js +694 -1
  108. package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
  109. package/sparkdream/commons/v1/tx.registry.js +73 -1
  110. package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
  111. package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
  112. package/sparkdream/federation/v1/genesis.d.ts +3 -3
  113. package/sparkdream/federation/v1/genesis.js +9 -9
  114. package/sparkdream/federation/v1/params.d.ts +64 -13
  115. package/sparkdream/federation/v1/params.js +29 -54
  116. package/sparkdream/federation/v1/query.d.ts +209 -100
  117. package/sparkdream/federation/v1/query.js +216 -71
  118. package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
  119. package/sparkdream/federation/v1/query.lcd.js +11 -6
  120. package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
  121. package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  122. package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
  123. package/sparkdream/federation/v1/tx.amino.js +20 -20
  124. package/sparkdream/federation/v1/tx.d.ts +479 -352
  125. package/sparkdream/federation/v1/tx.js +1147 -1106
  126. package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
  127. package/sparkdream/federation/v1/tx.registry.js +73 -73
  128. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
  129. package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
  130. package/sparkdream/federation/v1/types.d.ts +307 -41
  131. package/sparkdream/federation/v1/types.js +360 -100
  132. package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
  133. package/sparkdream/federation/v1/verifier_activity.js +13 -1
  134. package/sparkdream/forum/v1/params.d.ts +99 -62
  135. package/sparkdream/forum/v1/params.js +173 -148
  136. package/sparkdream/guardian/module/v1/module.d.ts +74 -0
  137. package/sparkdream/guardian/module/v1/module.js +71 -0
  138. package/sparkdream/guardian/v1/query.d.ts +88 -0
  139. package/sparkdream/guardian/v1/query.js +131 -0
  140. package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
  141. package/sparkdream/guardian/v1/query.lcd.js +17 -0
  142. package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
  143. package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
  144. package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
  145. package/sparkdream/guardian/v1/tx.amino.js +12 -0
  146. package/sparkdream/guardian/v1/tx.d.ts +138 -0
  147. package/sparkdream/guardian/v1/tx.js +181 -0
  148. package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
  149. package/sparkdream/guardian/v1/tx.registry.js +37 -0
  150. package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
  151. package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
  152. package/sparkdream/identity/module/v1/module.d.ts +54 -0
  153. package/sparkdream/identity/module/v1/module.js +74 -0
  154. package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
  155. package/sparkdream/identity/v1/chain_identity.js +202 -0
  156. package/sparkdream/identity/v1/genesis.d.ts +65 -0
  157. package/sparkdream/identity/v1/genesis.js +87 -0
  158. package/sparkdream/identity/v1/query.d.ts +243 -0
  159. package/sparkdream/identity/v1/query.js +375 -0
  160. package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
  161. package/sparkdream/identity/v1/query.lcd.js +25 -0
  162. package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
  163. package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
  164. package/sparkdream/lcd.d.ts +9 -0
  165. package/sparkdream/lcd.js +15 -0
  166. package/sparkdream/name/v1/params.d.ts +25 -8
  167. package/sparkdream/name/v1/params.js +19 -18
  168. package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
  169. package/sparkdream/rep/v1/bonded_role.js +48 -2
  170. package/sparkdream/rep/v1/tag.d.ts +15 -2
  171. package/sparkdream/rep/v1/tag.js +6 -13
  172. package/sparkdream/rpc.query.d.ts +34 -2
  173. package/sparkdream/rpc.query.js +9 -0
  174. package/sparkdream/rpc.tx.d.ts +6 -0
  175. package/sparkdream/rpc.tx.js +6 -0
  176. package/sparkdream/service/module/v1/module.d.ts +54 -0
  177. package/sparkdream/service/module/v1/module.js +74 -0
  178. package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
  179. package/sparkdream/service/v1/controller_transfer_case.js +158 -0
  180. package/sparkdream/service/v1/genesis.d.ts +172 -0
  181. package/sparkdream/service/v1/genesis.js +243 -0
  182. package/sparkdream/service/v1/operator.d.ts +215 -0
  183. package/sparkdream/service/v1/operator.js +253 -0
  184. package/sparkdream/service/v1/params.d.ts +346 -0
  185. package/sparkdream/service/v1/params.js +358 -0
  186. package/sparkdream/service/v1/query.d.ts +964 -0
  187. package/sparkdream/service/v1/query.js +1585 -0
  188. package/sparkdream/service/v1/query.lcd.d.ts +18 -0
  189. package/sparkdream/service/v1/query.lcd.js +111 -0
  190. package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
  191. package/sparkdream/service/v1/query.rpc.Query.js +114 -0
  192. package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
  193. package/sparkdream/service/v1/refile_cooldown.js +124 -0
  194. package/sparkdream/service/v1/report.d.ts +174 -0
  195. package/sparkdream/service/v1/report.js +215 -0
  196. package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
  197. package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
  198. package/sparkdream/service/v1/service_type_config.d.ts +222 -0
  199. package/sparkdream/service/v1/service_type_config.js +269 -0
  200. package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
  201. package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
  202. package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
  203. package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
  204. package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
  205. package/sparkdream/service/v1/tier1_last_slash.js +124 -0
  206. package/sparkdream/service/v1/tx.amino.d.ts +68 -0
  207. package/sparkdream/service/v1/tx.amino.js +72 -0
  208. package/sparkdream/service/v1/tx.d.ts +1264 -0
  209. package/sparkdream/service/v1/tx.js +2127 -0
  210. package/sparkdream/service/v1/tx.registry.d.ts +169 -0
  211. package/sparkdream/service/v1/tx.registry.js +253 -0
  212. package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
  213. package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
  214. package/sparkdream/service/v1/types.d.ts +94 -0
  215. package/sparkdream/service/v1/types.js +370 -0
  216. package/sparkdream/session/v1/genesis.d.ts +93 -9
  217. package/sparkdream/session/v1/genesis.js +137 -11
  218. package/sparkdream/session/v1/grant.d.ts +517 -0
  219. package/sparkdream/session/v1/grant.js +1027 -0
  220. package/sparkdream/session/v1/params.d.ts +338 -7
  221. package/sparkdream/session/v1/params.js +543 -19
  222. package/sparkdream/session/v1/query.d.ts +265 -0
  223. package/sparkdream/session/v1/query.js +488 -1
  224. package/sparkdream/session/v1/query.lcd.d.ts +4 -1
  225. package/sparkdream/session/v1/query.lcd.js +41 -3
  226. package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
  227. package/sparkdream/session/v1/query.rpc.Query.js +35 -3
  228. package/sparkdream/session/v1/session.d.ts +18 -0
  229. package/sparkdream/session/v1/session.js +6 -0
  230. package/sparkdream/session/v1/tx.d.ts +660 -0
  231. package/sparkdream/session/v1/tx.js +1067 -1
  232. package/sparkdream/session/v1/tx.registry.d.ts +73 -1
  233. package/sparkdream/session/v1/tx.registry.js +109 -1
  234. package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
  235. package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
  236. package/tendermint/bundle.d.ts +844 -844
  237. package/tendermint/bundle.js +20 -20
@@ -0,0 +1,181 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Cosmos_basev1beta1Msg_ToAmino = exports.Cosmos_basev1beta1Msg_FromAmino = exports.Cosmos_basev1beta1Msg_InterfaceDecoder = exports.MsgExecResponse = exports.MsgExec = void 0;
4
+ //@ts-nocheck
5
+ const any_1 = require("../../../google/protobuf/any");
6
+ const binary_1 = require("../../../binary");
7
+ function createBaseMsgExec() {
8
+ return {
9
+ authority: "",
10
+ inner: undefined
11
+ };
12
+ }
13
+ /**
14
+ * MsgExec is the universal guardian wrapper. Submitted by gov (or another
15
+ * authorized account) to invoke a gated downstream msg through guardian's
16
+ * filter chain.
17
+ * @name MsgExec
18
+ * @package sparkdream.guardian.v1
19
+ * @see proto type: sparkdream.guardian.v1.MsgExec
20
+ */
21
+ exports.MsgExec = {
22
+ typeUrl: "/sparkdream.guardian.v1.MsgExec",
23
+ aminoType: "sparkdream/x/guardian/MsgExec",
24
+ encode(message, writer = binary_1.BinaryWriter.create()) {
25
+ if (message.authority !== "") {
26
+ writer.uint32(10).string(message.authority);
27
+ }
28
+ if (message.inner !== undefined) {
29
+ any_1.Any.encode(message.inner, writer.uint32(18).fork()).ldelim();
30
+ }
31
+ return writer;
32
+ },
33
+ decode(input, length) {
34
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
35
+ let end = length === undefined ? reader.len : reader.pos + length;
36
+ const message = createBaseMsgExec();
37
+ while (reader.pos < end) {
38
+ const tag = reader.uint32();
39
+ switch (tag >>> 3) {
40
+ case 1:
41
+ message.authority = reader.string();
42
+ break;
43
+ case 2:
44
+ message.inner = (0, exports.Cosmos_basev1beta1Msg_InterfaceDecoder)(reader);
45
+ break;
46
+ default:
47
+ reader.skipType(tag & 7);
48
+ break;
49
+ }
50
+ }
51
+ return message;
52
+ },
53
+ fromPartial(object) {
54
+ const message = createBaseMsgExec();
55
+ message.authority = object.authority ?? "";
56
+ message.inner = object.inner !== undefined && object.inner !== null ? any_1.Any.fromPartial(object.inner) : undefined;
57
+ return message;
58
+ },
59
+ fromAmino(object) {
60
+ const message = createBaseMsgExec();
61
+ if (object.authority !== undefined && object.authority !== null) {
62
+ message.authority = object.authority;
63
+ }
64
+ if (object.inner !== undefined && object.inner !== null) {
65
+ message.inner = (0, exports.Cosmos_basev1beta1Msg_FromAmino)(object.inner);
66
+ }
67
+ return message;
68
+ },
69
+ toAmino(message) {
70
+ const obj = {};
71
+ obj.authority = message.authority === "" ? undefined : message.authority;
72
+ obj.inner = message.inner ? (0, exports.Cosmos_basev1beta1Msg_ToAmino)(message.inner) : undefined;
73
+ return obj;
74
+ },
75
+ fromAminoMsg(object) {
76
+ return exports.MsgExec.fromAmino(object.value);
77
+ },
78
+ toAminoMsg(message) {
79
+ return {
80
+ type: "sparkdream/x/guardian/MsgExec",
81
+ value: exports.MsgExec.toAmino(message)
82
+ };
83
+ },
84
+ fromProtoMsg(message) {
85
+ return exports.MsgExec.decode(message.value);
86
+ },
87
+ toProto(message) {
88
+ return exports.MsgExec.encode(message).finish();
89
+ },
90
+ toProtoMsg(message) {
91
+ return {
92
+ typeUrl: "/sparkdream.guardian.v1.MsgExec",
93
+ value: exports.MsgExec.encode(message).finish()
94
+ };
95
+ }
96
+ };
97
+ function createBaseMsgExecResponse() {
98
+ return {
99
+ innerResponse: undefined
100
+ };
101
+ }
102
+ /**
103
+ * @name MsgExecResponse
104
+ * @package sparkdream.guardian.v1
105
+ * @see proto type: sparkdream.guardian.v1.MsgExecResponse
106
+ */
107
+ exports.MsgExecResponse = {
108
+ typeUrl: "/sparkdream.guardian.v1.MsgExecResponse",
109
+ encode(message, writer = binary_1.BinaryWriter.create()) {
110
+ if (message.innerResponse !== undefined) {
111
+ any_1.Any.encode(message.innerResponse, writer.uint32(10).fork()).ldelim();
112
+ }
113
+ return writer;
114
+ },
115
+ decode(input, length) {
116
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
117
+ let end = length === undefined ? reader.len : reader.pos + length;
118
+ const message = createBaseMsgExecResponse();
119
+ while (reader.pos < end) {
120
+ const tag = reader.uint32();
121
+ switch (tag >>> 3) {
122
+ case 1:
123
+ message.innerResponse = any_1.Any.decode(reader, reader.uint32());
124
+ break;
125
+ default:
126
+ reader.skipType(tag & 7);
127
+ break;
128
+ }
129
+ }
130
+ return message;
131
+ },
132
+ fromPartial(object) {
133
+ const message = createBaseMsgExecResponse();
134
+ message.innerResponse = object.innerResponse !== undefined && object.innerResponse !== null ? any_1.Any.fromPartial(object.innerResponse) : undefined;
135
+ return message;
136
+ },
137
+ fromAmino(object) {
138
+ const message = createBaseMsgExecResponse();
139
+ if (object.inner_response !== undefined && object.inner_response !== null) {
140
+ message.innerResponse = any_1.Any.fromAmino(object.inner_response);
141
+ }
142
+ return message;
143
+ },
144
+ toAmino(message) {
145
+ const obj = {};
146
+ obj.inner_response = message.innerResponse ? any_1.Any.toAmino(message.innerResponse) : undefined;
147
+ return obj;
148
+ },
149
+ fromAminoMsg(object) {
150
+ return exports.MsgExecResponse.fromAmino(object.value);
151
+ },
152
+ fromProtoMsg(message) {
153
+ return exports.MsgExecResponse.decode(message.value);
154
+ },
155
+ toProto(message) {
156
+ return exports.MsgExecResponse.encode(message).finish();
157
+ },
158
+ toProtoMsg(message) {
159
+ return {
160
+ typeUrl: "/sparkdream.guardian.v1.MsgExecResponse",
161
+ value: exports.MsgExecResponse.encode(message).finish()
162
+ };
163
+ }
164
+ };
165
+ const Cosmos_basev1beta1Msg_InterfaceDecoder = (input) => {
166
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
167
+ const data = any_1.Any.decode(reader, reader.uint32());
168
+ switch (data.typeUrl) {
169
+ default:
170
+ return data;
171
+ }
172
+ };
173
+ exports.Cosmos_basev1beta1Msg_InterfaceDecoder = Cosmos_basev1beta1Msg_InterfaceDecoder;
174
+ const Cosmos_basev1beta1Msg_FromAmino = (content) => {
175
+ return any_1.Any.fromAmino(content);
176
+ };
177
+ exports.Cosmos_basev1beta1Msg_FromAmino = Cosmos_basev1beta1Msg_FromAmino;
178
+ const Cosmos_basev1beta1Msg_ToAmino = (content) => {
179
+ return any_1.Any.toAmino(content);
180
+ };
181
+ exports.Cosmos_basev1beta1Msg_ToAmino = Cosmos_basev1beta1Msg_ToAmino;
@@ -0,0 +1,25 @@
1
+ import { TelescopeGeneratedType } from "../../../types";
2
+ import { Registry } from "@cosmjs/proto-signing";
3
+ import { MsgExec } from "./tx";
4
+ export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
5
+ export declare const load: (protoRegistry: Registry) => void;
6
+ export declare const MessageComposer: {
7
+ encoded: {
8
+ exec(value: MsgExec): {
9
+ typeUrl: string;
10
+ value: Uint8Array<ArrayBufferLike>;
11
+ };
12
+ };
13
+ withTypeUrl: {
14
+ exec(value: MsgExec): {
15
+ typeUrl: string;
16
+ value: MsgExec;
17
+ };
18
+ };
19
+ fromPartial: {
20
+ exec(value: MsgExec): {
21
+ typeUrl: string;
22
+ value: MsgExec;
23
+ };
24
+ };
25
+ };
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MessageComposer = exports.load = exports.registry = void 0;
4
+ const tx_1 = require("./tx");
5
+ exports.registry = [["/sparkdream.guardian.v1.MsgExec", tx_1.MsgExec]];
6
+ const load = (protoRegistry) => {
7
+ exports.registry.forEach(([typeUrl, mod]) => {
8
+ protoRegistry.register(typeUrl, mod);
9
+ });
10
+ };
11
+ exports.load = load;
12
+ exports.MessageComposer = {
13
+ encoded: {
14
+ exec(value) {
15
+ return {
16
+ typeUrl: "/sparkdream.guardian.v1.MsgExec",
17
+ value: tx_1.MsgExec.encode(value).finish()
18
+ };
19
+ }
20
+ },
21
+ withTypeUrl: {
22
+ exec(value) {
23
+ return {
24
+ typeUrl: "/sparkdream.guardian.v1.MsgExec",
25
+ value
26
+ };
27
+ }
28
+ },
29
+ fromPartial: {
30
+ exec(value) {
31
+ return {
32
+ typeUrl: "/sparkdream.guardian.v1.MsgExec",
33
+ value: tx_1.MsgExec.fromPartial(value)
34
+ };
35
+ }
36
+ }
37
+ };
@@ -0,0 +1,22 @@
1
+ import { TxRpc } from "../../../types";
2
+ import { MsgExec, MsgExecResponse } from "./tx";
3
+ /** Msg defines the guardian Msg service. */
4
+ export interface Msg {
5
+ /**
6
+ * Exec routes the inner msg to the appropriate target module, with the
7
+ * guardian's module address substituted as the inner msg's `Authority`
8
+ * field. Per-msg-type filters validate field constraints (e.g., reject
9
+ * inflation_min changes on mint.MsgUpdateParams) before routing.
10
+ *
11
+ * The outer `authority` field is the address authorized to call guardian
12
+ * (the gov module account in production wiring). Unknown inner msg types
13
+ * are rejected: guardian uses an allowlist, not a denylist.
14
+ */
15
+ exec(request: MsgExec): Promise<MsgExecResponse>;
16
+ }
17
+ export declare class MsgClientImpl implements Msg {
18
+ private readonly rpc;
19
+ constructor(rpc: TxRpc);
20
+ exec: (request: MsgExec) => Promise<MsgExecResponse>;
21
+ }
22
+ export declare const createClientImpl: (rpc: TxRpc) => MsgClientImpl;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createClientImpl = exports.MsgClientImpl = void 0;
4
+ const binary_1 = require("../../../binary");
5
+ const tx_1 = require("./tx");
6
+ class MsgClientImpl {
7
+ rpc;
8
+ constructor(rpc) {
9
+ this.rpc = rpc;
10
+ }
11
+ /* Exec routes the inner msg to the appropriate target module, with the
12
+ guardian's module address substituted as the inner msg's `Authority`
13
+ field. Per-msg-type filters validate field constraints (e.g., reject
14
+ inflation_min changes on mint.MsgUpdateParams) before routing.
15
+
16
+ The outer `authority` field is the address authorized to call guardian
17
+ (the gov module account in production wiring). Unknown inner msg types
18
+ are rejected: guardian uses an allowlist, not a denylist. */
19
+ exec = async (request) => {
20
+ const data = tx_1.MsgExec.encode(request).finish();
21
+ const promise = this.rpc.request("sparkdream.guardian.v1.Msg", "Exec", data);
22
+ return promise.then(data => tx_1.MsgExecResponse.decode(new binary_1.BinaryReader(data)));
23
+ };
24
+ }
25
+ exports.MsgClientImpl = MsgClientImpl;
26
+ const createClientImpl = (rpc) => {
27
+ return new MsgClientImpl(rpc);
28
+ };
29
+ exports.createClientImpl = createClientImpl;
@@ -0,0 +1,54 @@
1
+ import { BinaryReader, BinaryWriter } from "../../../../binary";
2
+ import { DeepPartial } from "../../../../helpers";
3
+ /**
4
+ * Module is the config object for the module.
5
+ * @name Module
6
+ * @package sparkdream.identity.module.v1
7
+ * @see proto type: sparkdream.identity.module.v1.Module
8
+ */
9
+ export interface Module {
10
+ /**
11
+ * authority defines the custom module authority.
12
+ * If not set, defaults to the governance module.
13
+ */
14
+ authority: string;
15
+ }
16
+ export interface ModuleProtoMsg {
17
+ typeUrl: "/sparkdream.identity.module.v1.Module";
18
+ value: Uint8Array;
19
+ }
20
+ /**
21
+ * Module is the config object for the module.
22
+ * @name ModuleAmino
23
+ * @package sparkdream.identity.module.v1
24
+ * @see proto type: sparkdream.identity.module.v1.Module
25
+ */
26
+ export interface ModuleAmino {
27
+ /**
28
+ * authority defines the custom module authority.
29
+ * If not set, defaults to the governance module.
30
+ */
31
+ authority?: string;
32
+ }
33
+ export interface ModuleAminoMsg {
34
+ type: "/sparkdream.identity.module.v1.Module";
35
+ value: ModuleAmino;
36
+ }
37
+ /**
38
+ * Module is the config object for the module.
39
+ * @name Module
40
+ * @package sparkdream.identity.module.v1
41
+ * @see proto type: sparkdream.identity.module.v1.Module
42
+ */
43
+ export declare const Module: {
44
+ typeUrl: string;
45
+ encode(message: Module, writer?: BinaryWriter): BinaryWriter;
46
+ decode(input: BinaryReader | Uint8Array, length?: number): Module;
47
+ fromPartial(object: DeepPartial<Module>): Module;
48
+ fromAmino(object: ModuleAmino): Module;
49
+ toAmino(message: Module): ModuleAmino;
50
+ fromAminoMsg(object: ModuleAminoMsg): Module;
51
+ fromProtoMsg(message: ModuleProtoMsg): Module;
52
+ toProto(message: Module): Uint8Array;
53
+ toProtoMsg(message: Module): ModuleProtoMsg;
54
+ };
@@ -0,0 +1,74 @@
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
+ authority: ""
9
+ };
10
+ }
11
+ /**
12
+ * Module is the config object for the module.
13
+ * @name Module
14
+ * @package sparkdream.identity.module.v1
15
+ * @see proto type: sparkdream.identity.module.v1.Module
16
+ */
17
+ exports.Module = {
18
+ typeUrl: "/sparkdream.identity.module.v1.Module",
19
+ encode(message, writer = binary_1.BinaryWriter.create()) {
20
+ if (message.authority !== "") {
21
+ writer.uint32(10).string(message.authority);
22
+ }
23
+ return writer;
24
+ },
25
+ decode(input, length) {
26
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBaseModule();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ message.authority = reader.string();
34
+ break;
35
+ default:
36
+ reader.skipType(tag & 7);
37
+ break;
38
+ }
39
+ }
40
+ return message;
41
+ },
42
+ fromPartial(object) {
43
+ const message = createBaseModule();
44
+ message.authority = object.authority ?? "";
45
+ return message;
46
+ },
47
+ fromAmino(object) {
48
+ const message = createBaseModule();
49
+ if (object.authority !== undefined && object.authority !== null) {
50
+ message.authority = object.authority;
51
+ }
52
+ return message;
53
+ },
54
+ toAmino(message) {
55
+ const obj = {};
56
+ obj.authority = message.authority === "" ? undefined : message.authority;
57
+ return obj;
58
+ },
59
+ fromAminoMsg(object) {
60
+ return exports.Module.fromAmino(object.value);
61
+ },
62
+ fromProtoMsg(message) {
63
+ return exports.Module.decode(message.value);
64
+ },
65
+ toProto(message) {
66
+ return exports.Module.encode(message).finish();
67
+ },
68
+ toProtoMsg(message) {
69
+ return {
70
+ typeUrl: "/sparkdream.identity.module.v1.Module",
71
+ value: exports.Module.encode(message).finish()
72
+ };
73
+ }
74
+ };
@@ -0,0 +1,131 @@
1
+ import { BinaryReader, BinaryWriter } from "../../../binary";
2
+ import { DeepPartial } from "../../../helpers";
3
+ /**
4
+ * ChainIdentity is the immutable identity record of a federated Spark Dream
5
+ * chain. Set at genesis, never changeable. See docs/x-identity-spec.md.
6
+ * @name ChainIdentity
7
+ * @package sparkdream.identity.v1
8
+ * @see proto type: sparkdream.identity.v1.ChainIdentity
9
+ */
10
+ export interface ChainIdentity {
11
+ /**
12
+ * Human-readable chain name (e.g., "Phoenix").
13
+ */
14
+ chainHumanName: string;
15
+ /**
16
+ * Uppercase ticker prefix (e.g., "PHX").
17
+ */
18
+ chainTickerPrefix: string;
19
+ /**
20
+ * SPARK gas/staking token.
21
+ */
22
+ bondDenom: string;
23
+ /**
24
+ * wallet ticker, e.g., "PSPK"
25
+ */
26
+ bondDisplaySymbol: string;
27
+ /**
28
+ * e.g., "Phoenix Spark"
29
+ */
30
+ bondDisplayName: string;
31
+ /**
32
+ * typically 6
33
+ */
34
+ bondDisplayDecimals: number;
35
+ /**
36
+ * DREAM internal reputation token.
37
+ */
38
+ dreamDenom: string;
39
+ /**
40
+ * e.g., "PDRM"
41
+ */
42
+ dreamDisplaySymbol: string;
43
+ /**
44
+ * e.g., "Phoenix Dream"
45
+ */
46
+ dreamDisplayName: string;
47
+ dreamDisplayDecimals: number;
48
+ /**
49
+ * Founding metadata; surfaces in queries and federation peer registration.
50
+ */
51
+ foundedAt: bigint;
52
+ }
53
+ export interface ChainIdentityProtoMsg {
54
+ typeUrl: "/sparkdream.identity.v1.ChainIdentity";
55
+ value: Uint8Array;
56
+ }
57
+ /**
58
+ * ChainIdentity is the immutable identity record of a federated Spark Dream
59
+ * chain. Set at genesis, never changeable. See docs/x-identity-spec.md.
60
+ * @name ChainIdentityAmino
61
+ * @package sparkdream.identity.v1
62
+ * @see proto type: sparkdream.identity.v1.ChainIdentity
63
+ */
64
+ export interface ChainIdentityAmino {
65
+ /**
66
+ * Human-readable chain name (e.g., "Phoenix").
67
+ */
68
+ chain_human_name?: string;
69
+ /**
70
+ * Uppercase ticker prefix (e.g., "PHX").
71
+ */
72
+ chain_ticker_prefix?: string;
73
+ /**
74
+ * SPARK gas/staking token.
75
+ */
76
+ bond_denom?: string;
77
+ /**
78
+ * wallet ticker, e.g., "PSPK"
79
+ */
80
+ bond_display_symbol?: string;
81
+ /**
82
+ * e.g., "Phoenix Spark"
83
+ */
84
+ bond_display_name?: string;
85
+ /**
86
+ * typically 6
87
+ */
88
+ bond_display_decimals?: number;
89
+ /**
90
+ * DREAM internal reputation token.
91
+ */
92
+ dream_denom?: string;
93
+ /**
94
+ * e.g., "PDRM"
95
+ */
96
+ dream_display_symbol?: string;
97
+ /**
98
+ * e.g., "Phoenix Dream"
99
+ */
100
+ dream_display_name?: string;
101
+ dream_display_decimals?: number;
102
+ /**
103
+ * Founding metadata; surfaces in queries and federation peer registration.
104
+ */
105
+ founded_at?: string;
106
+ }
107
+ export interface ChainIdentityAminoMsg {
108
+ type: "sparkdream/x/identity/ChainIdentity";
109
+ value: ChainIdentityAmino;
110
+ }
111
+ /**
112
+ * ChainIdentity is the immutable identity record of a federated Spark Dream
113
+ * chain. Set at genesis, never changeable. See docs/x-identity-spec.md.
114
+ * @name ChainIdentity
115
+ * @package sparkdream.identity.v1
116
+ * @see proto type: sparkdream.identity.v1.ChainIdentity
117
+ */
118
+ export declare const ChainIdentity: {
119
+ typeUrl: string;
120
+ aminoType: string;
121
+ encode(message: ChainIdentity, writer?: BinaryWriter): BinaryWriter;
122
+ decode(input: BinaryReader | Uint8Array, length?: number): ChainIdentity;
123
+ fromPartial(object: DeepPartial<ChainIdentity>): ChainIdentity;
124
+ fromAmino(object: ChainIdentityAmino): ChainIdentity;
125
+ toAmino(message: ChainIdentity): ChainIdentityAmino;
126
+ fromAminoMsg(object: ChainIdentityAminoMsg): ChainIdentity;
127
+ toAminoMsg(message: ChainIdentity): ChainIdentityAminoMsg;
128
+ fromProtoMsg(message: ChainIdentityProtoMsg): ChainIdentity;
129
+ toProto(message: ChainIdentity): Uint8Array;
130
+ toProtoMsg(message: ChainIdentity): ChainIdentityProtoMsg;
131
+ };