@burnt-labs/xion-types 0.0.1-test.1762962136

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 (554) hide show
  1. package/jest.config.js +18 -0
  2. package/package.json +56 -0
  3. package/scripts/aminos.ts +29 -0
  4. package/scripts/codegen.ts +94 -0
  5. package/scripts/download-protos.ts +248 -0
  6. package/telescope.config.json +84 -0
  7. package/tsconfig.esm.json +9 -0
  8. package/tsconfig.json +18 -0
  9. package/types/abstractaccount/bundle.ts +35 -0
  10. package/types/abstractaccount/client.ts +48 -0
  11. package/types/abstractaccount/lcd.ts +130 -0
  12. package/types/abstractaccount/rpc.query.ts +93 -0
  13. package/types/abstractaccount/rpc.tx.ts +74 -0
  14. package/types/abstractaccount/v1/account.ts +250 -0
  15. package/types/abstractaccount/v1/events.ts +135 -0
  16. package/types/abstractaccount/v1/genesis.ts +106 -0
  17. package/types/abstractaccount/v1/params.ts +192 -0
  18. package/types/abstractaccount/v1/query.lcd.ts +19 -0
  19. package/types/abstractaccount/v1/query.rpc.Query.ts +31 -0
  20. package/types/abstractaccount/v1/query.ts +160 -0
  21. package/types/abstractaccount/v1/tx.amino.ts +14 -0
  22. package/types/abstractaccount/v1/tx.registry.ts +53 -0
  23. package/types/abstractaccount/v1/tx.rpc.msg.ts +29 -0
  24. package/types/abstractaccount/v1/tx.ts +454 -0
  25. package/types/amino/amino.ts +1 -0
  26. package/types/amino/bundle.ts +5 -0
  27. package/types/binary.ts +535 -0
  28. package/types/cosmos/app/runtime/v1alpha1/module.ts +492 -0
  29. package/types/cosmos/app/v1alpha1/config.ts +437 -0
  30. package/types/cosmos/app/v1alpha1/module.ts +466 -0
  31. package/types/cosmos/app/v1alpha1/query.rpc.Query.ts +31 -0
  32. package/types/cosmos/app/v1alpha1/query.ts +176 -0
  33. package/types/cosmos/auth/module/v1/module.ts +288 -0
  34. package/types/cosmos/auth/v1beta1/auth.ts +562 -0
  35. package/types/cosmos/auth/v1beta1/genesis.ts +123 -0
  36. package/types/cosmos/auth/v1beta1/query.lcd.ts +91 -0
  37. package/types/cosmos/auth/v1beta1/query.rpc.Query.ts +137 -0
  38. package/types/cosmos/auth/v1beta1/query.ts +2005 -0
  39. package/types/cosmos/auth/v1beta1/tx.amino.ts +9 -0
  40. package/types/cosmos/auth/v1beta1/tx.registry.ts +35 -0
  41. package/types/cosmos/auth/v1beta1/tx.rpc.msg.ts +24 -0
  42. package/types/cosmos/auth/v1beta1/tx.ts +208 -0
  43. package/types/cosmos/authz/module/v1/module.ts +77 -0
  44. package/types/cosmos/authz/v1beta1/authz.ts +599 -0
  45. package/types/cosmos/authz/v1beta1/event.ts +274 -0
  46. package/types/cosmos/authz/v1beta1/genesis.ts +99 -0
  47. package/types/cosmos/authz/v1beta1/query.lcd.ts +59 -0
  48. package/types/cosmos/authz/v1beta1/query.rpc.Query.ts +53 -0
  49. package/types/cosmos/authz/v1beta1/query.ts +734 -0
  50. package/types/cosmos/authz/v1beta1/tx.amino.ts +19 -0
  51. package/types/cosmos/authz/v1beta1/tx.registry.ts +71 -0
  52. package/types/cosmos/authz/v1beta1/tx.rpc.msg.ts +49 -0
  53. package/types/cosmos/authz/v1beta1/tx.ts +666 -0
  54. package/types/cosmos/autocli/v1/options.ts +1317 -0
  55. package/types/cosmos/autocli/v1/query.rpc.Query.ts +32 -0
  56. package/types/cosmos/autocli/v1/query.ts +298 -0
  57. package/types/cosmos/bank/module/v1/module.ts +156 -0
  58. package/types/cosmos/bank/v1beta1/authz.ts +134 -0
  59. package/types/cosmos/bank/v1beta1/bank.ts +984 -0
  60. package/types/cosmos/bank/v1beta1/genesis.ts +316 -0
  61. package/types/cosmos/bank/v1beta1/query.lcd.ts +207 -0
  62. package/types/cosmos/bank/v1beta1/query.rpc.Query.ts +212 -0
  63. package/types/cosmos/bank/v1beta1/query.ts +3051 -0
  64. package/types/cosmos/bank/v1beta1/tx.amino.ts +24 -0
  65. package/types/cosmos/bank/v1beta1/tx.registry.ts +89 -0
  66. package/types/cosmos/bank/v1beta1/tx.rpc.msg.ts +53 -0
  67. package/types/cosmos/bank/v1beta1/tx.ts +845 -0
  68. package/types/cosmos/base/abci/v1beta1/abci.ts +1776 -0
  69. package/types/cosmos/base/node/v1beta1/query.lcd.ts +25 -0
  70. package/types/cosmos/base/node/v1beta1/query.rpc.Service.ts +42 -0
  71. package/types/cosmos/base/node/v1beta1/query.ts +467 -0
  72. package/types/cosmos/base/query/v1beta1/pagination.ts +372 -0
  73. package/types/cosmos/base/reflection/v1beta1/reflection.ts +385 -0
  74. package/types/cosmos/base/reflection/v2alpha1/reflection.ts +2790 -0
  75. package/types/cosmos/base/tendermint/v1beta1/query.lcd.ts +87 -0
  76. package/types/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +103 -0
  77. package/types/cosmos/base/tendermint/v1beta1/query.ts +2358 -0
  78. package/types/cosmos/base/tendermint/v1beta1/types.ts +492 -0
  79. package/types/cosmos/base/v1beta1/coin.ts +449 -0
  80. package/types/cosmos/benchmark/module/v1/module.ts +384 -0
  81. package/types/cosmos/benchmark/v1/benchmark.ts +186 -0
  82. package/types/cosmos/benchmark/v1/tx.amino.ts +9 -0
  83. package/types/cosmos/benchmark/v1/tx.registry.ts +35 -0
  84. package/types/cosmos/benchmark/v1/tx.rpc.msg.ts +21 -0
  85. package/types/cosmos/benchmark/v1/tx.ts +224 -0
  86. package/types/cosmos/bundle.ts +807 -0
  87. package/types/cosmos/circuit/module/v1/module.ts +100 -0
  88. package/types/cosmos/circuit/v1/query.lcd.ts +40 -0
  89. package/types/cosmos/circuit/v1/query.rpc.Query.ts +55 -0
  90. package/types/cosmos/circuit/v1/query.ts +576 -0
  91. package/types/cosmos/circuit/v1/tx.amino.ts +19 -0
  92. package/types/cosmos/circuit/v1/tx.registry.ts +71 -0
  93. package/types/cosmos/circuit/v1/tx.rpc.msg.ts +43 -0
  94. package/types/cosmos/circuit/v1/tx.ts +685 -0
  95. package/types/cosmos/circuit/v1/types.ts +419 -0
  96. package/types/cosmos/client.ts +100 -0
  97. package/types/cosmos/consensus/module/v1/module.ts +100 -0
  98. package/types/cosmos/consensus/v1/query.lcd.ts +19 -0
  99. package/types/cosmos/consensus/v1/query.rpc.Query.ts +31 -0
  100. package/types/cosmos/consensus/v1/query.ts +182 -0
  101. package/types/cosmos/consensus/v1/tx.amino.ts +9 -0
  102. package/types/cosmos/consensus/v1/tx.registry.ts +35 -0
  103. package/types/cosmos/consensus/v1/tx.rpc.msg.ts +24 -0
  104. package/types/cosmos/consensus/v1/tx.ts +257 -0
  105. package/types/cosmos/counter/module/v1/module.ts +100 -0
  106. package/types/cosmos/counter/v1/query.rpc.Query.ts +31 -0
  107. package/types/cosmos/counter/v1/query.ts +171 -0
  108. package/types/cosmos/counter/v1/tx.amino.ts +9 -0
  109. package/types/cosmos/counter/v1/tx.registry.ts +35 -0
  110. package/types/cosmos/counter/v1/tx.rpc.msg.ts +21 -0
  111. package/types/cosmos/counter/v1/tx.ts +217 -0
  112. package/types/cosmos/crisis/module/v1/module.ts +119 -0
  113. package/types/cosmos/crisis/v1beta1/genesis.ts +105 -0
  114. package/types/cosmos/crisis/v1beta1/tx.amino.ts +14 -0
  115. package/types/cosmos/crisis/v1beta1/tx.registry.ts +53 -0
  116. package/types/cosmos/crisis/v1beta1/tx.rpc.msg.ts +32 -0
  117. package/types/cosmos/crisis/v1beta1/tx.ts +413 -0
  118. package/types/cosmos/crypto/bls12_381/keys.ts +207 -0
  119. package/types/cosmos/crypto/ed25519/keys.ts +214 -0
  120. package/types/cosmos/crypto/hd/v1/hd.ts +180 -0
  121. package/types/cosmos/crypto/keyring/v1/record.ts +542 -0
  122. package/types/cosmos/crypto/multisig/keys.ts +124 -0
  123. package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +231 -0
  124. package/types/cosmos/crypto/secp256k1/keys.ts +207 -0
  125. package/types/cosmos/crypto/secp256r1/keys.ts +203 -0
  126. package/types/cosmos/distribution/module/v1/module.ts +115 -0
  127. package/types/cosmos/distribution/v1beta1/distribution.ts +1551 -0
  128. package/types/cosmos/distribution/v1beta1/genesis.ts +1208 -0
  129. package/types/cosmos/distribution/v1beta1/query.lcd.ts +89 -0
  130. package/types/cosmos/distribution/v1beta1/query.rpc.Query.ts +137 -0
  131. package/types/cosmos/distribution/v1beta1/query.ts +2195 -0
  132. package/types/cosmos/distribution/v1beta1/tx.amino.ts +39 -0
  133. package/types/cosmos/distribution/v1beta1/tx.registry.ts +143 -0
  134. package/types/cosmos/distribution/v1beta1/tx.rpc.msg.ts +96 -0
  135. package/types/cosmos/distribution/v1beta1/tx.ts +1460 -0
  136. package/types/cosmos/epochs/module/v1/module.ts +77 -0
  137. package/types/cosmos/epochs/v1beta1/events.ts +205 -0
  138. package/types/cosmos/epochs/v1beta1/genesis.ts +384 -0
  139. package/types/cosmos/epochs/v1beta1/query.lcd.ts +31 -0
  140. package/types/cosmos/epochs/v1beta1/query.rpc.Query.ts +42 -0
  141. package/types/cosmos/epochs/v1beta1/query.ts +390 -0
  142. package/types/cosmos/evidence/module/v1/module.ts +77 -0
  143. package/types/cosmos/evidence/v1beta1/evidence.ts +166 -0
  144. package/types/cosmos/evidence/v1beta1/genesis.ts +103 -0
  145. package/types/cosmos/evidence/v1beta1/query.lcd.ts +40 -0
  146. package/types/cosmos/evidence/v1beta1/query.rpc.Query.ts +44 -0
  147. package/types/cosmos/evidence/v1beta1/query.ts +458 -0
  148. package/types/cosmos/evidence/v1beta1/tx.amino.ts +9 -0
  149. package/types/cosmos/evidence/v1beta1/tx.registry.ts +35 -0
  150. package/types/cosmos/evidence/v1beta1/tx.rpc.msg.ts +24 -0
  151. package/types/cosmos/evidence/v1beta1/tx.ts +243 -0
  152. package/types/cosmos/feegrant/module/v1/module.ts +77 -0
  153. package/types/cosmos/feegrant/v1beta1/feegrant.ts +701 -0
  154. package/types/cosmos/feegrant/v1beta1/genesis.ts +99 -0
  155. package/types/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
  156. package/types/cosmos/feegrant/v1beta1/query.rpc.Query.ts +53 -0
  157. package/types/cosmos/feegrant/v1beta1/query.ts +683 -0
  158. package/types/cosmos/feegrant/v1beta1/tx.amino.ts +19 -0
  159. package/types/cosmos/feegrant/v1beta1/tx.registry.ts +71 -0
  160. package/types/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +43 -0
  161. package/types/cosmos/feegrant/v1beta1/tx.ts +683 -0
  162. package/types/cosmos/genutil/module/v1/module.ts +77 -0
  163. package/types/cosmos/genutil/v1beta1/genesis.ts +103 -0
  164. package/types/cosmos/gov/module/v1/module.ts +123 -0
  165. package/types/cosmos/gov/v1/genesis.ts +288 -0
  166. package/types/cosmos/gov/v1/gov.ts +1889 -0
  167. package/types/cosmos/gov/v1/query.lcd.ts +95 -0
  168. package/types/cosmos/gov/v1/query.rpc.Query.ts +119 -0
  169. package/types/cosmos/gov/v1/query.ts +2026 -0
  170. package/types/cosmos/gov/v1/tx.amino.ts +39 -0
  171. package/types/cosmos/gov/v1/tx.registry.ts +143 -0
  172. package/types/cosmos/gov/v1/tx.rpc.msg.ts +75 -0
  173. package/types/cosmos/gov/v1/tx.ts +1911 -0
  174. package/types/cosmos/gov/v1beta1/genesis.ts +221 -0
  175. package/types/cosmos/gov/v1beta1/gov.ts +1725 -0
  176. package/types/cosmos/gov/v1beta1/query.lcd.ts +89 -0
  177. package/types/cosmos/gov/v1beta1/query.rpc.Query.ts +108 -0
  178. package/types/cosmos/gov/v1beta1/query.ts +1813 -0
  179. package/types/cosmos/gov/v1beta1/tx.amino.ts +24 -0
  180. package/types/cosmos/gov/v1beta1/tx.registry.ts +89 -0
  181. package/types/cosmos/gov/v1beta1/tx.rpc.msg.ts +45 -0
  182. package/types/cosmos/gov/v1beta1/tx.ts +1128 -0
  183. package/types/cosmos/group/module/v1/module.ts +128 -0
  184. package/types/cosmos/group/v1/events.ts +1195 -0
  185. package/types/cosmos/group/v1/genesis.ts +256 -0
  186. package/types/cosmos/group/v1/query.lcd.ts +158 -0
  187. package/types/cosmos/group/v1/query.rpc.Query.ts +182 -0
  188. package/types/cosmos/group/v1/query.ts +3108 -0
  189. package/types/cosmos/group/v1/tx.amino.ts +74 -0
  190. package/types/cosmos/group/v1/tx.registry.ts +269 -0
  191. package/types/cosmos/group/v1/tx.rpc.msg.ts +125 -0
  192. package/types/cosmos/group/v1/tx.ts +3353 -0
  193. package/types/cosmos/group/v1/types.ts +2248 -0
  194. package/types/cosmos/ics23/v1/proofs.ts +2167 -0
  195. package/types/cosmos/lcd.ts +125 -0
  196. package/types/cosmos/mint/module/v1/module.ts +115 -0
  197. package/types/cosmos/mint/v1beta1/genesis.ts +120 -0
  198. package/types/cosmos/mint/v1beta1/mint.ts +313 -0
  199. package/types/cosmos/mint/v1beta1/query.lcd.ts +31 -0
  200. package/types/cosmos/mint/v1beta1/query.rpc.Query.ts +53 -0
  201. package/types/cosmos/mint/v1beta1/query.ts +544 -0
  202. package/types/cosmos/mint/v1beta1/tx.amino.ts +9 -0
  203. package/types/cosmos/mint/v1beta1/tx.registry.ts +35 -0
  204. package/types/cosmos/mint/v1beta1/tx.rpc.msg.ts +24 -0
  205. package/types/cosmos/mint/v1beta1/tx.ts +208 -0
  206. package/types/cosmos/msg/textual/v1/textual.ts +1 -0
  207. package/types/cosmos/msg/v1/msg.ts +1 -0
  208. package/types/cosmos/nft/module/v1/module.ts +77 -0
  209. package/types/cosmos/nft/v1beta1/event.ts +429 -0
  210. package/types/cosmos/nft/v1beta1/genesis.ts +243 -0
  211. package/types/cosmos/nft/v1beta1/nft.ts +389 -0
  212. package/types/cosmos/nft/v1beta1/query.lcd.ts +77 -0
  213. package/types/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
  214. package/types/cosmos/nft/v1beta1/query.ts +1513 -0
  215. package/types/cosmos/nft/v1beta1/tx.amino.ts +9 -0
  216. package/types/cosmos/nft/v1beta1/tx.registry.ts +35 -0
  217. package/types/cosmos/nft/v1beta1/tx.rpc.msg.ts +21 -0
  218. package/types/cosmos/nft/v1beta1/tx.ts +232 -0
  219. package/types/cosmos/params/module/v1/module.ts +77 -0
  220. package/types/cosmos/params/v1beta1/params.ts +262 -0
  221. package/types/cosmos/params/v1beta1/query.lcd.ts +35 -0
  222. package/types/cosmos/params/v1beta1/query.rpc.Query.ts +45 -0
  223. package/types/cosmos/params/v1beta1/query.ts +521 -0
  224. package/types/cosmos/protocolpool/module/v1/module.ts +100 -0
  225. package/types/cosmos/protocolpool/v1/genesis.ts +126 -0
  226. package/types/cosmos/protocolpool/v1/query.lcd.ts +37 -0
  227. package/types/cosmos/protocolpool/v1/query.rpc.Query.ts +64 -0
  228. package/types/cosmos/protocolpool/v1/query.ts +761 -0
  229. package/types/cosmos/protocolpool/v1/tx.amino.ts +29 -0
  230. package/types/cosmos/protocolpool/v1/tx.registry.ts +107 -0
  231. package/types/cosmos/protocolpool/v1/tx.rpc.msg.ts +69 -0
  232. package/types/cosmos/protocolpool/v1/tx.ts +1124 -0
  233. package/types/cosmos/protocolpool/v1/types.ts +268 -0
  234. package/types/cosmos/query/v1/query.ts +1 -0
  235. package/types/cosmos/reflection/v1/reflection.ts +178 -0
  236. package/types/cosmos/rpc.query.ts +90 -0
  237. package/types/cosmos/rpc.tx.ts +71 -0
  238. package/types/cosmos/slashing/module/v1/module.ts +100 -0
  239. package/types/cosmos/slashing/v1beta1/genesis.ts +511 -0
  240. package/types/cosmos/slashing/v1beta1/query.lcd.ts +40 -0
  241. package/types/cosmos/slashing/v1beta1/query.rpc.Query.ts +55 -0
  242. package/types/cosmos/slashing/v1beta1/query.ts +606 -0
  243. package/types/cosmos/slashing/v1beta1/slashing.ts +371 -0
  244. package/types/cosmos/slashing/v1beta1/tx.amino.ts +14 -0
  245. package/types/cosmos/slashing/v1beta1/tx.registry.ts +53 -0
  246. package/types/cosmos/slashing/v1beta1/tx.rpc.msg.ts +36 -0
  247. package/types/cosmos/slashing/v1beta1/tx.ts +377 -0
  248. package/types/cosmos/staking/module/v1/module.ts +165 -0
  249. package/types/cosmos/staking/v1beta1/authz.ts +321 -0
  250. package/types/cosmos/staking/v1beta1/genesis.ts +370 -0
  251. package/types/cosmos/staking/v1beta1/query.lcd.ts +174 -0
  252. package/types/cosmos/staking/v1beta1/query.rpc.Query.ts +217 -0
  253. package/types/cosmos/staking/v1beta1/query.ts +3187 -0
  254. package/types/cosmos/staking/v1beta1/staking.ts +3193 -0
  255. package/types/cosmos/staking/v1beta1/tx.amino.ts +39 -0
  256. package/types/cosmos/staking/v1beta1/tx.registry.ts +143 -0
  257. package/types/cosmos/staking/v1beta1/tx.rpc.msg.ts +84 -0
  258. package/types/cosmos/staking/v1beta1/tx.ts +1642 -0
  259. package/types/cosmos/store/internal/kv/v1beta1/kv.ts +208 -0
  260. package/types/cosmos/store/snapshots/v1/snapshot.ts +840 -0
  261. package/types/cosmos/store/streaming/abci/grpc.ts +393 -0
  262. package/types/cosmos/store/v1beta1/commit_info.ts +369 -0
  263. package/types/cosmos/store/v1beta1/listening.ts +296 -0
  264. package/types/cosmos/tx/config/v1/config.ts +127 -0
  265. package/types/cosmos/tx/signing/v1beta1/signing.ts +713 -0
  266. package/types/cosmos/tx/v1beta1/service.lcd.ts +59 -0
  267. package/types/cosmos/tx/v1beta1/service.rpc.Service.ts +119 -0
  268. package/types/cosmos/tx/v1beta1/service.ts +2319 -0
  269. package/types/cosmos/tx/v1beta1/tx.ts +2168 -0
  270. package/types/cosmos/upgrade/module/v1/module.ts +100 -0
  271. package/types/cosmos/upgrade/v1beta1/query.lcd.ts +54 -0
  272. package/types/cosmos/upgrade/v1beta1/query.rpc.Query.ts +82 -0
  273. package/types/cosmos/upgrade/v1beta1/query.ts +1004 -0
  274. package/types/cosmos/upgrade/v1beta1/tx.amino.ts +14 -0
  275. package/types/cosmos/upgrade/v1beta1/tx.registry.ts +53 -0
  276. package/types/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +32 -0
  277. package/types/cosmos/upgrade/v1beta1/tx.ts +368 -0
  278. package/types/cosmos/upgrade/v1beta1/upgrade.ts +623 -0
  279. package/types/cosmos/vesting/module/v1/module.ts +77 -0
  280. package/types/cosmos/vesting/v1beta1/tx.amino.ts +19 -0
  281. package/types/cosmos/vesting/v1beta1/tx.registry.ts +71 -0
  282. package/types/cosmos/vesting/v1beta1/tx.rpc.msg.ts +46 -0
  283. package/types/cosmos/vesting/v1beta1/tx.ts +688 -0
  284. package/types/cosmos/vesting/v1beta1/vesting.ts +751 -0
  285. package/types/cosmos_proto/bundle.ts +5 -0
  286. package/types/cosmos_proto/cosmos.ts +355 -0
  287. package/types/cosmwasm/bundle.ts +39 -0
  288. package/types/cosmwasm/client.ts +48 -0
  289. package/types/cosmwasm/lcd.ts +132 -0
  290. package/types/cosmwasm/rpc.query.ts +95 -0
  291. package/types/cosmwasm/rpc.tx.ts +76 -0
  292. package/types/cosmwasm/wasm/v1/authz.ts +1409 -0
  293. package/types/cosmwasm/wasm/v1/genesis.ts +544 -0
  294. package/types/cosmwasm/wasm/v1/ibc.ts +437 -0
  295. package/types/cosmwasm/wasm/v1/proposal_legacy.ts +2711 -0
  296. package/types/cosmwasm/wasm/v1/query.lcd.ts +154 -0
  297. package/types/cosmwasm/wasm/v1/query.rpc.Query.ts +181 -0
  298. package/types/cosmwasm/wasm/v1/query.ts +3339 -0
  299. package/types/cosmwasm/wasm/v1/tx.amino.ts +89 -0
  300. package/types/cosmwasm/wasm/v1/tx.registry.ts +323 -0
  301. package/types/cosmwasm/wasm/v1/tx.rpc.msg.ts +197 -0
  302. package/types/cosmwasm/wasm/v1/tx.ts +4403 -0
  303. package/types/cosmwasm/wasm/v1/types.ts +1193 -0
  304. package/types/gogoproto/bundle.ts +5 -0
  305. package/types/gogoproto/gogo.ts +1 -0
  306. package/types/google/api/annotations.ts +1 -0
  307. package/types/google/api/apikeys/v2/apikeys.ts +1245 -0
  308. package/types/google/api/apikeys/v2/resources.ts +1268 -0
  309. package/types/google/api/auth.ts +1175 -0
  310. package/types/google/api/backend.ts +691 -0
  311. package/types/google/api/billing.ts +333 -0
  312. package/types/google/api/client.ts +3100 -0
  313. package/types/google/api/cloudquotas/v1/cloudquotas.ts +1196 -0
  314. package/types/google/api/cloudquotas/v1/resources.ts +2065 -0
  315. package/types/google/api/cloudquotas/v1beta/cloudquotas.ts +1196 -0
  316. package/types/google/api/cloudquotas/v1beta/quota_adjuster_settings.ts +509 -0
  317. package/types/google/api/cloudquotas/v1beta/resources.ts +2069 -0
  318. package/types/google/api/config_change.ts +385 -0
  319. package/types/google/api/consumer.ts +362 -0
  320. package/types/google/api/context.ts +418 -0
  321. package/types/google/api/control.ts +141 -0
  322. package/types/google/api/distribution.ts +1253 -0
  323. package/types/google/api/documentation.ts +738 -0
  324. package/types/google/api/endpoint.ts +245 -0
  325. package/types/google/api/error_reason.ts +816 -0
  326. package/types/google/api/expr/conformance/v1alpha1/conformance_service.ts +1293 -0
  327. package/types/google/api/expr/v1alpha1/checked.ts +2259 -0
  328. package/types/google/api/expr/v1alpha1/eval.ts +675 -0
  329. package/types/google/api/expr/v1alpha1/explain.ts +257 -0
  330. package/types/google/api/expr/v1alpha1/syntax.ts +2983 -0
  331. package/types/google/api/expr/v1alpha1/value.ts +771 -0
  332. package/types/google/api/expr/v1beta1/decl.ts +563 -0
  333. package/types/google/api/expr/v1beta1/eval.ts +758 -0
  334. package/types/google/api/expr/v1beta1/expr.ts +1750 -0
  335. package/types/google/api/expr/v1beta1/source.ts +446 -0
  336. package/types/google/api/expr/v1beta1/value.ts +771 -0
  337. package/types/google/api/field_behavior.ts +136 -0
  338. package/types/google/api/field_info.ts +319 -0
  339. package/types/google/api/http.ts +1362 -0
  340. package/types/google/api/httpbody.ts +270 -0
  341. package/types/google/api/label.ts +174 -0
  342. package/types/google/api/launch_stage.ts +112 -0
  343. package/types/google/api/log.ts +201 -0
  344. package/types/google/api/logging.ts +355 -0
  345. package/types/google/api/metric.ts +1174 -0
  346. package/types/google/api/monitored_resource.ts +841 -0
  347. package/types/google/api/monitoring.ts +430 -0
  348. package/types/google/api/policy.ts +314 -0
  349. package/types/google/api/quota.ts +1040 -0
  350. package/types/google/api/resource.ts +769 -0
  351. package/types/google/api/routing.ts +1405 -0
  352. package/types/google/api/service.ts +790 -0
  353. package/types/google/api/servicecontrol/v1/check_error.ts +366 -0
  354. package/types/google/api/servicecontrol/v1/distribution.ts +773 -0
  355. package/types/google/api/servicecontrol/v1/http_request.ts +427 -0
  356. package/types/google/api/servicecontrol/v1/log_entry.ts +804 -0
  357. package/types/google/api/servicecontrol/v1/metric_value.ts +499 -0
  358. package/types/google/api/servicecontrol/v1/operation.ts +544 -0
  359. package/types/google/api/servicecontrol/v1/quota_controller.ts +1041 -0
  360. package/types/google/api/servicecontrol/v1/service_controller.ts +1164 -0
  361. package/types/google/api/servicecontrol/v2/service_controller.ts +949 -0
  362. package/types/google/api/servicemanagement/v1/resources.ts +1888 -0
  363. package/types/google/api/servicemanagement/v1/servicemanager.ts +2444 -0
  364. package/types/google/api/serviceusage/v1/resources.ts +629 -0
  365. package/types/google/api/serviceusage/v1/serviceusage.ts +1530 -0
  366. package/types/google/api/serviceusage/v1beta1/resources.ts +2972 -0
  367. package/types/google/api/serviceusage/v1beta1/serviceusage.ts +4567 -0
  368. package/types/google/api/source_info.ts +97 -0
  369. package/types/google/api/system_parameter.ts +461 -0
  370. package/types/google/api/usage.ts +404 -0
  371. package/types/google/api/visibility.ts +328 -0
  372. package/types/google/bundle.ts +115 -0
  373. package/types/google/logging/type/log_severity.ts +104 -0
  374. package/types/google/longrunning/operations.ts +1153 -0
  375. package/types/google/protobuf/any.ts +424 -0
  376. package/types/google/protobuf/api.ts +942 -0
  377. package/types/google/protobuf/descriptor.ts +7801 -0
  378. package/types/google/protobuf/duration.ts +284 -0
  379. package/types/google/protobuf/empty.ts +93 -0
  380. package/types/google/protobuf/field_mask.ts +694 -0
  381. package/types/google/protobuf/source_context.ts +105 -0
  382. package/types/google/protobuf/struct.ts +584 -0
  383. package/types/google/protobuf/timestamp.ts +373 -0
  384. package/types/google/protobuf/type.ts +1279 -0
  385. package/types/google/protobuf/wrappers.ts +1002 -0
  386. package/types/google/rpc/code.ts +286 -0
  387. package/types/google/rpc/context/attribute_context.ts +2517 -0
  388. package/types/google/rpc/context/audit_context.ts +188 -0
  389. package/types/google/rpc/error_details.ts +2467 -0
  390. package/types/google/rpc/http.ts +424 -0
  391. package/types/google/rpc/status.ts +173 -0
  392. package/types/helpers.ts +259 -0
  393. package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +107 -0
  394. package/types/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +25 -0
  395. package/types/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +42 -0
  396. package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
  397. package/types/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +19 -0
  398. package/types/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +71 -0
  399. package/types/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +37 -0
  400. package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +692 -0
  401. package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +675 -0
  402. package/types/ibc/applications/interchain_accounts/host/v1/host.ts +261 -0
  403. package/types/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +19 -0
  404. package/types/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +31 -0
  405. package/types/ibc/applications/interchain_accounts/host/v1/query.ts +176 -0
  406. package/types/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +14 -0
  407. package/types/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +53 -0
  408. package/types/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +29 -0
  409. package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +440 -0
  410. package/types/ibc/applications/interchain_accounts/v1/account.ts +115 -0
  411. package/types/ibc/applications/interchain_accounts/v1/metadata.ts +206 -0
  412. package/types/ibc/applications/interchain_accounts/v1/packet.ts +262 -0
  413. package/types/ibc/applications/transfer/v1/authz.ts +297 -0
  414. package/types/ibc/applications/transfer/v1/denomtrace.ts +133 -0
  415. package/types/ibc/applications/transfer/v1/genesis.ts +156 -0
  416. package/types/ibc/applications/transfer/v1/packet.ts +186 -0
  417. package/types/ibc/applications/transfer/v1/query.lcd.ts +76 -0
  418. package/types/ibc/applications/transfer/v1/query.rpc.Query.ts +88 -0
  419. package/types/ibc/applications/transfer/v1/query.ts +1233 -0
  420. package/types/ibc/applications/transfer/v1/token.ts +347 -0
  421. package/types/ibc/applications/transfer/v1/transfer.ts +140 -0
  422. package/types/ibc/applications/transfer/v1/tx.amino.ts +14 -0
  423. package/types/ibc/applications/transfer/v1/tx.registry.ts +53 -0
  424. package/types/ibc/applications/transfer/v1/tx.rpc.msg.ts +29 -0
  425. package/types/ibc/applications/transfer/v1/tx.ts +579 -0
  426. package/types/ibc/bundle.ts +265 -0
  427. package/types/ibc/client.ts +72 -0
  428. package/types/ibc/core/channel/v1/channel.ts +1455 -0
  429. package/types/ibc/core/channel/v1/genesis.ts +351 -0
  430. package/types/ibc/core/channel/v1/query.lcd.ts +135 -0
  431. package/types/ibc/core/channel/v1/query.rpc.Query.ts +200 -0
  432. package/types/ibc/core/channel/v1/query.ts +3943 -0
  433. package/types/ibc/core/channel/v1/tx.amino.ts +54 -0
  434. package/types/ibc/core/channel/v1/tx.registry.ts +197 -0
  435. package/types/ibc/core/channel/v1/tx.rpc.msg.ts +96 -0
  436. package/types/ibc/core/channel/v1/tx.ts +2558 -0
  437. package/types/ibc/core/channel/v2/genesis.ts +433 -0
  438. package/types/ibc/core/channel/v2/packet.ts +640 -0
  439. package/types/ibc/core/channel/v2/query.lcd.ts +77 -0
  440. package/types/ibc/core/channel/v2/query.rpc.Query.ts +108 -0
  441. package/types/ibc/core/channel/v2/query.ts +2075 -0
  442. package/types/ibc/core/channel/v2/tx.amino.ts +24 -0
  443. package/types/ibc/core/channel/v2/tx.registry.ts +89 -0
  444. package/types/ibc/core/channel/v2/tx.rpc.msg.ts +45 -0
  445. package/types/ibc/core/channel/v2/tx.ts +1003 -0
  446. package/types/ibc/core/client/v1/client.ts +636 -0
  447. package/types/ibc/core/client/v1/genesis.ts +448 -0
  448. package/types/ibc/core/client/v1/query.lcd.ts +102 -0
  449. package/types/ibc/core/client/v1/query.rpc.Query.ts +149 -0
  450. package/types/ibc/core/client/v1/query.ts +2588 -0
  451. package/types/ibc/core/client/v1/tx.amino.ts +44 -0
  452. package/types/ibc/core/client/v1/tx.registry.ts +161 -0
  453. package/types/ibc/core/client/v1/tx.rpc.msg.ts +77 -0
  454. package/types/ibc/core/client/v1/tx.ts +1796 -0
  455. package/types/ibc/core/client/v2/config.ts +115 -0
  456. package/types/ibc/core/client/v2/counterparty.ts +122 -0
  457. package/types/ibc/core/client/v2/genesis.ts +220 -0
  458. package/types/ibc/core/client/v2/query.lcd.ts +25 -0
  459. package/types/ibc/core/client/v2/query.rpc.Query.ts +42 -0
  460. package/types/ibc/core/client/v2/query.ts +402 -0
  461. package/types/ibc/core/client/v2/tx.amino.ts +14 -0
  462. package/types/ibc/core/client/v2/tx.registry.ts +53 -0
  463. package/types/ibc/core/client/v2/tx.rpc.msg.ts +29 -0
  464. package/types/ibc/core/client/v2/tx.ts +453 -0
  465. package/types/ibc/core/commitment/v1/commitment.ts +321 -0
  466. package/types/ibc/core/commitment/v2/commitment.ts +193 -0
  467. package/types/ibc/core/connection/v1/connection.ts +1056 -0
  468. package/types/ibc/core/connection/v1/genesis.ts +150 -0
  469. package/types/ibc/core/connection/v1/query.lcd.ts +61 -0
  470. package/types/ibc/core/connection/v1/query.rpc.Query.ts +97 -0
  471. package/types/ibc/core/connection/v1/query.ts +1472 -0
  472. package/types/ibc/core/connection/v1/tx.amino.ts +29 -0
  473. package/types/ibc/core/connection/v1/tx.registry.ts +107 -0
  474. package/types/ibc/core/connection/v1/tx.rpc.msg.ts +59 -0
  475. package/types/ibc/core/connection/v1/tx.ts +1456 -0
  476. package/types/ibc/core/types/v1/genesis.ts +191 -0
  477. package/types/ibc/lcd.ts +176 -0
  478. package/types/ibc/lightclients/solomachine/v2/solomachine.ts +2161 -0
  479. package/types/ibc/lightclients/solomachine/v3/solomachine.ts +1114 -0
  480. package/types/ibc/lightclients/tendermint/v1/tendermint.ts +891 -0
  481. package/types/ibc/lightclients/wasm/v1/genesis.ts +201 -0
  482. package/types/ibc/lightclients/wasm/v1/query.lcd.ts +34 -0
  483. package/types/ibc/lightclients/wasm/v1/query.rpc.Query.ts +44 -0
  484. package/types/ibc/lightclients/wasm/v1/query.ts +413 -0
  485. package/types/ibc/lightclients/wasm/v1/tx.amino.ts +19 -0
  486. package/types/ibc/lightclients/wasm/v1/tx.registry.ts +71 -0
  487. package/types/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +37 -0
  488. package/types/ibc/lightclients/wasm/v1/tx.ts +640 -0
  489. package/types/ibc/lightclients/wasm/v1/wasm.ts +444 -0
  490. package/types/ibc/rpc.query.ts +123 -0
  491. package/types/ibc/rpc.tx.ts +104 -0
  492. package/types/index.ts +25 -0
  493. package/types/tendermint/abci/types.ts +6565 -0
  494. package/types/tendermint/bundle.ts +33 -0
  495. package/types/tendermint/crypto/keys.ts +106 -0
  496. package/types/tendermint/crypto/proof.ts +576 -0
  497. package/types/tendermint/p2p/types.ts +523 -0
  498. package/types/tendermint/types/block.ts +134 -0
  499. package/types/tendermint/types/evidence.ts +491 -0
  500. package/types/tendermint/types/params.ts +839 -0
  501. package/types/tendermint/types/types.ts +2266 -0
  502. package/types/tendermint/types/validator.ts +399 -0
  503. package/types/tendermint/version/types.ts +228 -0
  504. package/types/utf8.ts +149 -0
  505. package/types/varint.ts +489 -0
  506. package/types/xion/bundle.ts +117 -0
  507. package/types/xion/client.ts +57 -0
  508. package/types/xion/feeabs/v1beta1/epoch.ts +386 -0
  509. package/types/xion/feeabs/v1beta1/genesis.ts +136 -0
  510. package/types/xion/feeabs/v1beta1/osmosisibc.ts +868 -0
  511. package/types/xion/feeabs/v1beta1/params.ts +189 -0
  512. package/types/xion/feeabs/v1beta1/proposal.ts +593 -0
  513. package/types/xion/feeabs/v1beta1/query.lcd.ts +37 -0
  514. package/types/xion/feeabs/v1beta1/query.rpc.Query.ts +64 -0
  515. package/types/xion/feeabs/v1beta1/query.ts +732 -0
  516. package/types/xion/feeabs/v1beta1/tx.amino.ts +39 -0
  517. package/types/xion/feeabs/v1beta1/tx.registry.ts +143 -0
  518. package/types/xion/feeabs/v1beta1/tx.rpc.msg.ts +72 -0
  519. package/types/xion/feeabs/v1beta1/tx.ts +1261 -0
  520. package/types/xion/globalfee/v1/genesis.ts +249 -0
  521. package/types/xion/globalfee/v1/query.lcd.ts +19 -0
  522. package/types/xion/globalfee/v1/query.rpc.Query.ts +31 -0
  523. package/types/xion/globalfee/v1/query.ts +178 -0
  524. package/types/xion/jwk/v1/audience.ts +224 -0
  525. package/types/xion/jwk/v1/genesis.ts +117 -0
  526. package/types/xion/jwk/v1/params.ts +113 -0
  527. package/types/xion/jwk/v1/query.lcd.ts +52 -0
  528. package/types/xion/jwk/v1/query.rpc.Query.ts +77 -0
  529. package/types/xion/jwk/v1/query.ts +1697 -0
  530. package/types/xion/jwk/v1/tx.amino.ts +29 -0
  531. package/types/xion/jwk/v1/tx.registry.ts +107 -0
  532. package/types/xion/jwk/v1/tx.rpc.msg.ts +53 -0
  533. package/types/xion/jwk/v1/tx.ts +1040 -0
  534. package/types/xion/lcd.ts +147 -0
  535. package/types/xion/mint/v1/event.ts +216 -0
  536. package/types/xion/mint/v1/genesis.ts +114 -0
  537. package/types/xion/mint/v1/mint.ts +307 -0
  538. package/types/xion/mint/v1/query.lcd.ts +31 -0
  539. package/types/xion/mint/v1/query.rpc.Query.ts +53 -0
  540. package/types/xion/mint/v1/query.ts +508 -0
  541. package/types/xion/mint/v1/tx.amino.ts +9 -0
  542. package/types/xion/mint/v1/tx.registry.ts +35 -0
  543. package/types/xion/mint/v1/tx.rpc.msg.ts +26 -0
  544. package/types/xion/mint/v1/tx.ts +222 -0
  545. package/types/xion/rpc.query.ts +105 -0
  546. package/types/xion/rpc.tx.ts +83 -0
  547. package/types/xion/v1/feegrant.ts +457 -0
  548. package/types/xion/v1/genesis.ts +116 -0
  549. package/types/xion/v1/query.rpc.Query.ts +64 -0
  550. package/types/xion/v1/query.ts +862 -0
  551. package/types/xion/v1/tx.amino.ts +24 -0
  552. package/types/xion/v1/tx.registry.ts +89 -0
  553. package/types/xion/v1/tx.rpc.msg.ts +57 -0
  554. package/types/xion/v1/tx.ts +793 -0
@@ -0,0 +1,1317 @@
1
+ //@ts-nocheck
2
+ import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ /** ModuleOptions describes the CLI options for a Cosmos SDK module. */
4
+ export interface ModuleOptions {
5
+ /** tx describes the tx commands for the module. */
6
+ tx?: ServiceCommandDescriptor;
7
+ /** query describes the queries commands for the module. */
8
+ query?: ServiceCommandDescriptor;
9
+ }
10
+ export interface ModuleOptionsProtoMsg {
11
+ typeUrl: "/cosmos.autocli.v1.ModuleOptions";
12
+ value: Uint8Array;
13
+ }
14
+ /**
15
+ * ModuleOptions describes the CLI options for a Cosmos SDK module.
16
+ * @name ModuleOptionsAmino
17
+ * @package cosmos.autocli.v1
18
+ * @see proto type: cosmos.autocli.v1.ModuleOptions
19
+ */
20
+ export interface ModuleOptionsAmino {
21
+ /**
22
+ * tx describes the tx commands for the module.
23
+ */
24
+ tx?: ServiceCommandDescriptorAmino;
25
+ /**
26
+ * query describes the queries commands for the module.
27
+ */
28
+ query?: ServiceCommandDescriptorAmino;
29
+ }
30
+ export interface ModuleOptionsAminoMsg {
31
+ type: "cosmos-sdk/ModuleOptions";
32
+ value: ModuleOptionsAmino;
33
+ }
34
+ /** ModuleOptions describes the CLI options for a Cosmos SDK module. */
35
+ export interface ModuleOptionsSDKType {
36
+ tx?: ServiceCommandDescriptorSDKType;
37
+ query?: ServiceCommandDescriptorSDKType;
38
+ }
39
+ export interface ServiceCommandDescriptor_SubCommandsEntry {
40
+ key: string;
41
+ value?: ServiceCommandDescriptor;
42
+ }
43
+ export interface ServiceCommandDescriptor_SubCommandsEntryProtoMsg {
44
+ typeUrl: string;
45
+ value: Uint8Array;
46
+ }
47
+ /**
48
+ * @name ServiceCommandDescriptor_SubCommandsEntryAmino
49
+ * @package cosmos.autocli.v1
50
+ * @see proto type: cosmos.autocli.v1.ServiceCommandDescriptor_SubCommandsEntry
51
+ */
52
+ export interface ServiceCommandDescriptor_SubCommandsEntryAmino {
53
+ key?: string;
54
+ value?: ServiceCommandDescriptorAmino;
55
+ }
56
+ export interface ServiceCommandDescriptor_SubCommandsEntryAminoMsg {
57
+ type: string;
58
+ value: ServiceCommandDescriptor_SubCommandsEntryAmino;
59
+ }
60
+ export interface ServiceCommandDescriptor_SubCommandsEntrySDKType {
61
+ key: string;
62
+ value?: ServiceCommandDescriptorSDKType;
63
+ }
64
+ /** ServiceCommandDescriptor describes a CLI command based on a protobuf service. */
65
+ export interface ServiceCommandDescriptor {
66
+ /**
67
+ * service is the fully qualified name of the protobuf service to build
68
+ * the command from. It can be left empty if sub_commands are used instead
69
+ * which may be the case if a module provides multiple tx and/or query services.
70
+ */
71
+ service: string;
72
+ /**
73
+ * rpc_command_options are options for commands generated from rpc methods.
74
+ * If no options are specified for a given rpc method on the service, a
75
+ * command will be generated for that method with the default options.
76
+ */
77
+ rpcCommandOptions: RpcCommandOptions[];
78
+ /**
79
+ * sub_commands is a map of optional sub-commands for this command based on
80
+ * different protobuf services. The map key is used as the name of the
81
+ * sub-command.
82
+ */
83
+ subCommands: {
84
+ [key: string]: ServiceCommandDescriptor;
85
+ };
86
+ /**
87
+ * enhance_custom_commands specifies whether to skip the service when generating commands, if a custom command already
88
+ * exists, or enhance the existing command. If set to true, the custom command will be enhanced with the services from
89
+ * gRPC. otherwise when a custom command exists, no commands will be generated for the service.
90
+ */
91
+ enhanceCustomCommand: boolean;
92
+ /** short is an optional parameter used to override the short description of the auto generated command. */
93
+ short: string;
94
+ }
95
+ export interface ServiceCommandDescriptorProtoMsg {
96
+ typeUrl: "/cosmos.autocli.v1.ServiceCommandDescriptor";
97
+ value: Uint8Array;
98
+ }
99
+ /**
100
+ * ServiceCommandDescriptor describes a CLI command based on a protobuf service.
101
+ * @name ServiceCommandDescriptorAmino
102
+ * @package cosmos.autocli.v1
103
+ * @see proto type: cosmos.autocli.v1.ServiceCommandDescriptor
104
+ */
105
+ export interface ServiceCommandDescriptorAmino {
106
+ /**
107
+ * service is the fully qualified name of the protobuf service to build
108
+ * the command from. It can be left empty if sub_commands are used instead
109
+ * which may be the case if a module provides multiple tx and/or query services.
110
+ */
111
+ service?: string;
112
+ /**
113
+ * rpc_command_options are options for commands generated from rpc methods.
114
+ * If no options are specified for a given rpc method on the service, a
115
+ * command will be generated for that method with the default options.
116
+ */
117
+ rpc_command_options?: RpcCommandOptionsAmino[];
118
+ /**
119
+ * sub_commands is a map of optional sub-commands for this command based on
120
+ * different protobuf services. The map key is used as the name of the
121
+ * sub-command.
122
+ */
123
+ sub_commands?: {
124
+ [key: string]: ServiceCommandDescriptorAmino;
125
+ };
126
+ /**
127
+ * enhance_custom_commands specifies whether to skip the service when generating commands, if a custom command already
128
+ * exists, or enhance the existing command. If set to true, the custom command will be enhanced with the services from
129
+ * gRPC. otherwise when a custom command exists, no commands will be generated for the service.
130
+ */
131
+ enhance_custom_command?: boolean;
132
+ /**
133
+ * short is an optional parameter used to override the short description of the auto generated command.
134
+ */
135
+ short?: string;
136
+ }
137
+ export interface ServiceCommandDescriptorAminoMsg {
138
+ type: "cosmos-sdk/ServiceCommandDescriptor";
139
+ value: ServiceCommandDescriptorAmino;
140
+ }
141
+ /** ServiceCommandDescriptor describes a CLI command based on a protobuf service. */
142
+ export interface ServiceCommandDescriptorSDKType {
143
+ service: string;
144
+ rpc_command_options: RpcCommandOptionsSDKType[];
145
+ sub_commands: {
146
+ [key: string]: ServiceCommandDescriptorSDKType;
147
+ };
148
+ enhance_custom_command: boolean;
149
+ short: string;
150
+ }
151
+ export interface RpcCommandOptions_FlagOptionsEntry {
152
+ key: string;
153
+ value?: FlagOptions;
154
+ }
155
+ export interface RpcCommandOptions_FlagOptionsEntryProtoMsg {
156
+ typeUrl: string;
157
+ value: Uint8Array;
158
+ }
159
+ /**
160
+ * @name RpcCommandOptions_FlagOptionsEntryAmino
161
+ * @package cosmos.autocli.v1
162
+ * @see proto type: cosmos.autocli.v1.RpcCommandOptions_FlagOptionsEntry
163
+ */
164
+ export interface RpcCommandOptions_FlagOptionsEntryAmino {
165
+ key?: string;
166
+ value?: FlagOptionsAmino;
167
+ }
168
+ export interface RpcCommandOptions_FlagOptionsEntryAminoMsg {
169
+ type: string;
170
+ value: RpcCommandOptions_FlagOptionsEntryAmino;
171
+ }
172
+ export interface RpcCommandOptions_FlagOptionsEntrySDKType {
173
+ key: string;
174
+ value?: FlagOptionsSDKType;
175
+ }
176
+ /**
177
+ * RpcCommandOptions specifies options for commands generated from protobuf
178
+ * rpc methods.
179
+ */
180
+ export interface RpcCommandOptions {
181
+ /**
182
+ * rpc_method is short name of the protobuf rpc method that this command is
183
+ * generated from.
184
+ */
185
+ rpcMethod: string;
186
+ /**
187
+ * use is the one-line usage method. It also allows specifying an alternate
188
+ * name for the command as the first word of the usage text.
189
+ *
190
+ * By default the name of an rpc command is the kebab-case short name of the
191
+ * rpc method.
192
+ */
193
+ use: string;
194
+ /** long is the long message shown in the 'help <this-command>' output. */
195
+ long: string;
196
+ /** short is the short description shown in the 'help' output. */
197
+ short: string;
198
+ /** example is examples of how to use the command. */
199
+ example: string;
200
+ /** alias is an array of aliases that can be used instead of the first word in Use. */
201
+ alias: string[];
202
+ /**
203
+ * suggest_for is an array of command names for which this command will be suggested -
204
+ * similar to aliases but only suggests.
205
+ */
206
+ suggestFor: string[];
207
+ /** deprecated defines, if this command is deprecated and should print this string when used. */
208
+ deprecated: string;
209
+ /**
210
+ * version defines the version for this command. If this value is non-empty and the command does not
211
+ * define a "version" flag, a "version" boolean flag will be added to the command and, if specified,
212
+ * will print content of the "Version" variable. A shorthand "v" flag will also be added if the
213
+ * command does not define one.
214
+ */
215
+ version: string;
216
+ /**
217
+ * flag_options are options for flags generated from rpc request fields.
218
+ * By default all request fields are configured as flags. They can
219
+ * also be configured as positional args instead using positional_args.
220
+ */
221
+ flagOptions: {
222
+ [key: string]: FlagOptions;
223
+ };
224
+ /** positional_args specifies positional arguments for the command. */
225
+ positionalArgs: PositionalArgDescriptor[];
226
+ /** skip specifies whether to skip this rpc method when generating commands. */
227
+ skip: boolean;
228
+ /**
229
+ * gov_proposal specifies whether autocli should generate a gov proposal transaction for this rpc method.
230
+ * Normally autocli generates a transaction containing the message and broadcast it.
231
+ * However, when true, autocli generates a proposal transaction containing the message and broadcast it.
232
+ * This option is ineffective for query commands.
233
+ */
234
+ govProposal: boolean;
235
+ }
236
+ export interface RpcCommandOptionsProtoMsg {
237
+ typeUrl: "/cosmos.autocli.v1.RpcCommandOptions";
238
+ value: Uint8Array;
239
+ }
240
+ /**
241
+ * RpcCommandOptions specifies options for commands generated from protobuf
242
+ * rpc methods.
243
+ * @name RpcCommandOptionsAmino
244
+ * @package cosmos.autocli.v1
245
+ * @see proto type: cosmos.autocli.v1.RpcCommandOptions
246
+ */
247
+ export interface RpcCommandOptionsAmino {
248
+ /**
249
+ * rpc_method is short name of the protobuf rpc method that this command is
250
+ * generated from.
251
+ */
252
+ rpc_method?: string;
253
+ /**
254
+ * use is the one-line usage method. It also allows specifying an alternate
255
+ * name for the command as the first word of the usage text.
256
+ *
257
+ * By default the name of an rpc command is the kebab-case short name of the
258
+ * rpc method.
259
+ */
260
+ use?: string;
261
+ /**
262
+ * long is the long message shown in the 'help <this-command>' output.
263
+ */
264
+ long?: string;
265
+ /**
266
+ * short is the short description shown in the 'help' output.
267
+ */
268
+ short?: string;
269
+ /**
270
+ * example is examples of how to use the command.
271
+ */
272
+ example?: string;
273
+ /**
274
+ * alias is an array of aliases that can be used instead of the first word in Use.
275
+ */
276
+ alias?: string[];
277
+ /**
278
+ * suggest_for is an array of command names for which this command will be suggested -
279
+ * similar to aliases but only suggests.
280
+ */
281
+ suggest_for?: string[];
282
+ /**
283
+ * deprecated defines, if this command is deprecated and should print this string when used.
284
+ */
285
+ deprecated?: string;
286
+ /**
287
+ * version defines the version for this command. If this value is non-empty and the command does not
288
+ * define a "version" flag, a "version" boolean flag will be added to the command and, if specified,
289
+ * will print content of the "Version" variable. A shorthand "v" flag will also be added if the
290
+ * command does not define one.
291
+ */
292
+ version?: string;
293
+ /**
294
+ * flag_options are options for flags generated from rpc request fields.
295
+ * By default all request fields are configured as flags. They can
296
+ * also be configured as positional args instead using positional_args.
297
+ */
298
+ flag_options?: {
299
+ [key: string]: FlagOptionsAmino;
300
+ };
301
+ /**
302
+ * positional_args specifies positional arguments for the command.
303
+ */
304
+ positional_args?: PositionalArgDescriptorAmino[];
305
+ /**
306
+ * skip specifies whether to skip this rpc method when generating commands.
307
+ */
308
+ skip?: boolean;
309
+ /**
310
+ * gov_proposal specifies whether autocli should generate a gov proposal transaction for this rpc method.
311
+ * Normally autocli generates a transaction containing the message and broadcast it.
312
+ * However, when true, autocli generates a proposal transaction containing the message and broadcast it.
313
+ * This option is ineffective for query commands.
314
+ */
315
+ gov_proposal?: boolean;
316
+ }
317
+ export interface RpcCommandOptionsAminoMsg {
318
+ type: "cosmos-sdk/RpcCommandOptions";
319
+ value: RpcCommandOptionsAmino;
320
+ }
321
+ /**
322
+ * RpcCommandOptions specifies options for commands generated from protobuf
323
+ * rpc methods.
324
+ */
325
+ export interface RpcCommandOptionsSDKType {
326
+ rpc_method: string;
327
+ use: string;
328
+ long: string;
329
+ short: string;
330
+ example: string;
331
+ alias: string[];
332
+ suggest_for: string[];
333
+ deprecated: string;
334
+ version: string;
335
+ flag_options: {
336
+ [key: string]: FlagOptionsSDKType;
337
+ };
338
+ positional_args: PositionalArgDescriptorSDKType[];
339
+ skip: boolean;
340
+ gov_proposal: boolean;
341
+ }
342
+ /**
343
+ * FlagOptions are options for flags generated from rpc request fields.
344
+ * By default, all request fields are configured as flags based on the
345
+ * kebab-case name of the field. Fields can be turned into positional arguments
346
+ * instead by using RpcCommandOptions.positional_args.
347
+ */
348
+ export interface FlagOptions {
349
+ /** name is an alternate name to use for the field flag. */
350
+ name: string;
351
+ /** shorthand is a one-letter abbreviated flag. */
352
+ shorthand: string;
353
+ /** usage is the help message. */
354
+ usage: string;
355
+ /** default_value is the default value as text. */
356
+ defaultValue: string;
357
+ /** deprecated is the usage text to show if this flag is deprecated. */
358
+ deprecated: string;
359
+ /** shorthand_deprecated is the usage text to show if the shorthand of this flag is deprecated. */
360
+ shorthandDeprecated: string;
361
+ /** hidden hides the flag from help/usage text */
362
+ hidden: boolean;
363
+ }
364
+ export interface FlagOptionsProtoMsg {
365
+ typeUrl: "/cosmos.autocli.v1.FlagOptions";
366
+ value: Uint8Array;
367
+ }
368
+ /**
369
+ * FlagOptions are options for flags generated from rpc request fields.
370
+ * By default, all request fields are configured as flags based on the
371
+ * kebab-case name of the field. Fields can be turned into positional arguments
372
+ * instead by using RpcCommandOptions.positional_args.
373
+ * @name FlagOptionsAmino
374
+ * @package cosmos.autocli.v1
375
+ * @see proto type: cosmos.autocli.v1.FlagOptions
376
+ */
377
+ export interface FlagOptionsAmino {
378
+ /**
379
+ * name is an alternate name to use for the field flag.
380
+ */
381
+ name?: string;
382
+ /**
383
+ * shorthand is a one-letter abbreviated flag.
384
+ */
385
+ shorthand?: string;
386
+ /**
387
+ * usage is the help message.
388
+ */
389
+ usage?: string;
390
+ /**
391
+ * default_value is the default value as text.
392
+ */
393
+ default_value?: string;
394
+ /**
395
+ * deprecated is the usage text to show if this flag is deprecated.
396
+ */
397
+ deprecated?: string;
398
+ /**
399
+ * shorthand_deprecated is the usage text to show if the shorthand of this flag is deprecated.
400
+ */
401
+ shorthand_deprecated?: string;
402
+ /**
403
+ * hidden hides the flag from help/usage text
404
+ */
405
+ hidden?: boolean;
406
+ }
407
+ export interface FlagOptionsAminoMsg {
408
+ type: "cosmos-sdk/FlagOptions";
409
+ value: FlagOptionsAmino;
410
+ }
411
+ /**
412
+ * FlagOptions are options for flags generated from rpc request fields.
413
+ * By default, all request fields are configured as flags based on the
414
+ * kebab-case name of the field. Fields can be turned into positional arguments
415
+ * instead by using RpcCommandOptions.positional_args.
416
+ */
417
+ export interface FlagOptionsSDKType {
418
+ name: string;
419
+ shorthand: string;
420
+ usage: string;
421
+ default_value: string;
422
+ deprecated: string;
423
+ shorthand_deprecated: string;
424
+ hidden: boolean;
425
+ }
426
+ /** PositionalArgDescriptor describes a positional argument. */
427
+ export interface PositionalArgDescriptor {
428
+ /**
429
+ * proto_field specifies the proto field to use as the positional arg. Any
430
+ * fields used as positional args will not have a flag generated.
431
+ */
432
+ protoField: string;
433
+ /**
434
+ * varargs makes a positional parameter a varargs parameter. This can only be
435
+ * applied to last positional parameter and the proto_field must a repeated
436
+ * field. Note: It is mutually exclusive with optional.
437
+ */
438
+ varargs: boolean;
439
+ /**
440
+ * optional makes the last positional parameter optional.
441
+ * Note: It is mutually exclusive with varargs.
442
+ */
443
+ optional: boolean;
444
+ }
445
+ export interface PositionalArgDescriptorProtoMsg {
446
+ typeUrl: "/cosmos.autocli.v1.PositionalArgDescriptor";
447
+ value: Uint8Array;
448
+ }
449
+ /**
450
+ * PositionalArgDescriptor describes a positional argument.
451
+ * @name PositionalArgDescriptorAmino
452
+ * @package cosmos.autocli.v1
453
+ * @see proto type: cosmos.autocli.v1.PositionalArgDescriptor
454
+ */
455
+ export interface PositionalArgDescriptorAmino {
456
+ /**
457
+ * proto_field specifies the proto field to use as the positional arg. Any
458
+ * fields used as positional args will not have a flag generated.
459
+ */
460
+ proto_field?: string;
461
+ /**
462
+ * varargs makes a positional parameter a varargs parameter. This can only be
463
+ * applied to last positional parameter and the proto_field must a repeated
464
+ * field. Note: It is mutually exclusive with optional.
465
+ */
466
+ varargs?: boolean;
467
+ /**
468
+ * optional makes the last positional parameter optional.
469
+ * Note: It is mutually exclusive with varargs.
470
+ */
471
+ optional?: boolean;
472
+ }
473
+ export interface PositionalArgDescriptorAminoMsg {
474
+ type: "cosmos-sdk/PositionalArgDescriptor";
475
+ value: PositionalArgDescriptorAmino;
476
+ }
477
+ /** PositionalArgDescriptor describes a positional argument. */
478
+ export interface PositionalArgDescriptorSDKType {
479
+ proto_field: string;
480
+ varargs: boolean;
481
+ optional: boolean;
482
+ }
483
+ function createBaseModuleOptions(): ModuleOptions {
484
+ return {
485
+ tx: undefined,
486
+ query: undefined
487
+ };
488
+ }
489
+ export const ModuleOptions = {
490
+ typeUrl: "/cosmos.autocli.v1.ModuleOptions",
491
+ encode(message: ModuleOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
492
+ if (message.tx !== undefined) {
493
+ ServiceCommandDescriptor.encode(message.tx, writer.uint32(10).fork()).ldelim();
494
+ }
495
+ if (message.query !== undefined) {
496
+ ServiceCommandDescriptor.encode(message.query, writer.uint32(18).fork()).ldelim();
497
+ }
498
+ return writer;
499
+ },
500
+ decode(input: BinaryReader | Uint8Array, length?: number): ModuleOptions {
501
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
502
+ let end = length === undefined ? reader.len : reader.pos + length;
503
+ const message = createBaseModuleOptions();
504
+ while (reader.pos < end) {
505
+ const tag = reader.uint32();
506
+ switch (tag >>> 3) {
507
+ case 1:
508
+ message.tx = ServiceCommandDescriptor.decode(reader, reader.uint32());
509
+ break;
510
+ case 2:
511
+ message.query = ServiceCommandDescriptor.decode(reader, reader.uint32());
512
+ break;
513
+ default:
514
+ reader.skipType(tag & 7);
515
+ break;
516
+ }
517
+ }
518
+ return message;
519
+ },
520
+ fromPartial(object: Partial<ModuleOptions>): ModuleOptions {
521
+ const message = createBaseModuleOptions();
522
+ message.tx = object.tx !== undefined && object.tx !== null ? ServiceCommandDescriptor.fromPartial(object.tx) : undefined;
523
+ message.query = object.query !== undefined && object.query !== null ? ServiceCommandDescriptor.fromPartial(object.query) : undefined;
524
+ return message;
525
+ },
526
+ fromAmino(object: ModuleOptionsAmino): ModuleOptions {
527
+ const message = createBaseModuleOptions();
528
+ if (object.tx !== undefined && object.tx !== null) {
529
+ message.tx = ServiceCommandDescriptor.fromAmino(object.tx);
530
+ }
531
+ if (object.query !== undefined && object.query !== null) {
532
+ message.query = ServiceCommandDescriptor.fromAmino(object.query);
533
+ }
534
+ return message;
535
+ },
536
+ toAmino(message: ModuleOptions): ModuleOptionsAmino {
537
+ const obj: any = {};
538
+ obj.tx = message.tx ? ServiceCommandDescriptor.toAmino(message.tx) : undefined;
539
+ obj.query = message.query ? ServiceCommandDescriptor.toAmino(message.query) : undefined;
540
+ return obj;
541
+ },
542
+ fromAminoMsg(object: ModuleOptionsAminoMsg): ModuleOptions {
543
+ return ModuleOptions.fromAmino(object.value);
544
+ },
545
+ toAminoMsg(message: ModuleOptions): ModuleOptionsAminoMsg {
546
+ return {
547
+ type: "cosmos-sdk/ModuleOptions",
548
+ value: ModuleOptions.toAmino(message)
549
+ };
550
+ },
551
+ fromProtoMsg(message: ModuleOptionsProtoMsg): ModuleOptions {
552
+ return ModuleOptions.decode(message.value);
553
+ },
554
+ toProto(message: ModuleOptions): Uint8Array {
555
+ return ModuleOptions.encode(message).finish();
556
+ },
557
+ toProtoMsg(message: ModuleOptions): ModuleOptionsProtoMsg {
558
+ return {
559
+ typeUrl: "/cosmos.autocli.v1.ModuleOptions",
560
+ value: ModuleOptions.encode(message).finish()
561
+ };
562
+ }
563
+ };
564
+ function createBaseServiceCommandDescriptor_SubCommandsEntry(): ServiceCommandDescriptor_SubCommandsEntry {
565
+ return {
566
+ key: "",
567
+ value: undefined
568
+ };
569
+ }
570
+ export const ServiceCommandDescriptor_SubCommandsEntry = {
571
+ encode(message: ServiceCommandDescriptor_SubCommandsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
572
+ if (message.key !== "") {
573
+ writer.uint32(10).string(message.key);
574
+ }
575
+ if (message.value !== undefined) {
576
+ ServiceCommandDescriptor.encode(message.value, writer.uint32(18).fork()).ldelim();
577
+ }
578
+ return writer;
579
+ },
580
+ decode(input: BinaryReader | Uint8Array, length?: number): ServiceCommandDescriptor_SubCommandsEntry {
581
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
582
+ let end = length === undefined ? reader.len : reader.pos + length;
583
+ const message = createBaseServiceCommandDescriptor_SubCommandsEntry();
584
+ while (reader.pos < end) {
585
+ const tag = reader.uint32();
586
+ switch (tag >>> 3) {
587
+ case 1:
588
+ message.key = reader.string();
589
+ break;
590
+ case 2:
591
+ message.value = ServiceCommandDescriptor.decode(reader, reader.uint32());
592
+ break;
593
+ default:
594
+ reader.skipType(tag & 7);
595
+ break;
596
+ }
597
+ }
598
+ return message;
599
+ },
600
+ fromPartial(object: Partial<ServiceCommandDescriptor_SubCommandsEntry>): ServiceCommandDescriptor_SubCommandsEntry {
601
+ const message = createBaseServiceCommandDescriptor_SubCommandsEntry();
602
+ message.key = object.key ?? "";
603
+ message.value = object.value !== undefined && object.value !== null ? ServiceCommandDescriptor.fromPartial(object.value) : undefined;
604
+ return message;
605
+ },
606
+ fromAmino(object: ServiceCommandDescriptor_SubCommandsEntryAmino): ServiceCommandDescriptor_SubCommandsEntry {
607
+ const message = createBaseServiceCommandDescriptor_SubCommandsEntry();
608
+ if (object.key !== undefined && object.key !== null) {
609
+ message.key = object.key;
610
+ }
611
+ if (object.value !== undefined && object.value !== null) {
612
+ message.value = ServiceCommandDescriptor.fromAmino(object.value);
613
+ }
614
+ return message;
615
+ },
616
+ toAmino(message: ServiceCommandDescriptor_SubCommandsEntry): ServiceCommandDescriptor_SubCommandsEntryAmino {
617
+ const obj: any = {};
618
+ obj.key = message.key === "" ? undefined : message.key;
619
+ obj.value = message.value ? ServiceCommandDescriptor.toAmino(message.value) : undefined;
620
+ return obj;
621
+ },
622
+ fromAminoMsg(object: ServiceCommandDescriptor_SubCommandsEntryAminoMsg): ServiceCommandDescriptor_SubCommandsEntry {
623
+ return ServiceCommandDescriptor_SubCommandsEntry.fromAmino(object.value);
624
+ },
625
+ fromProtoMsg(message: ServiceCommandDescriptor_SubCommandsEntryProtoMsg): ServiceCommandDescriptor_SubCommandsEntry {
626
+ return ServiceCommandDescriptor_SubCommandsEntry.decode(message.value);
627
+ },
628
+ toProto(message: ServiceCommandDescriptor_SubCommandsEntry): Uint8Array {
629
+ return ServiceCommandDescriptor_SubCommandsEntry.encode(message).finish();
630
+ }
631
+ };
632
+ function createBaseServiceCommandDescriptor(): ServiceCommandDescriptor {
633
+ return {
634
+ service: "",
635
+ rpcCommandOptions: [],
636
+ subCommands: {},
637
+ enhanceCustomCommand: false,
638
+ short: ""
639
+ };
640
+ }
641
+ export const ServiceCommandDescriptor = {
642
+ typeUrl: "/cosmos.autocli.v1.ServiceCommandDescriptor",
643
+ encode(message: ServiceCommandDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
644
+ if (message.service !== "") {
645
+ writer.uint32(10).string(message.service);
646
+ }
647
+ for (const v of message.rpcCommandOptions) {
648
+ RpcCommandOptions.encode(v!, writer.uint32(18).fork()).ldelim();
649
+ }
650
+ Object.entries(message.subCommands).forEach(([key, value]) => {
651
+ ServiceCommandDescriptor_SubCommandsEntry.encode({
652
+ key: key as any,
653
+ value
654
+ }, writer.uint32(26).fork()).ldelim();
655
+ });
656
+ if (message.enhanceCustomCommand === true) {
657
+ writer.uint32(32).bool(message.enhanceCustomCommand);
658
+ }
659
+ if (message.short !== "") {
660
+ writer.uint32(42).string(message.short);
661
+ }
662
+ return writer;
663
+ },
664
+ decode(input: BinaryReader | Uint8Array, length?: number): ServiceCommandDescriptor {
665
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
666
+ let end = length === undefined ? reader.len : reader.pos + length;
667
+ const message = createBaseServiceCommandDescriptor();
668
+ while (reader.pos < end) {
669
+ const tag = reader.uint32();
670
+ switch (tag >>> 3) {
671
+ case 1:
672
+ message.service = reader.string();
673
+ break;
674
+ case 2:
675
+ message.rpcCommandOptions.push(RpcCommandOptions.decode(reader, reader.uint32()));
676
+ break;
677
+ case 3:
678
+ const entry3 = ServiceCommandDescriptor_SubCommandsEntry.decode(reader, reader.uint32());
679
+ if (entry3.value !== undefined) {
680
+ message.subCommands[entry3.key] = entry3.value;
681
+ }
682
+ break;
683
+ case 4:
684
+ message.enhanceCustomCommand = reader.bool();
685
+ break;
686
+ case 5:
687
+ message.short = reader.string();
688
+ break;
689
+ default:
690
+ reader.skipType(tag & 7);
691
+ break;
692
+ }
693
+ }
694
+ return message;
695
+ },
696
+ fromPartial(object: Partial<ServiceCommandDescriptor>): ServiceCommandDescriptor {
697
+ const message = createBaseServiceCommandDescriptor();
698
+ message.service = object.service ?? "";
699
+ message.rpcCommandOptions = object.rpcCommandOptions?.map(e => RpcCommandOptions.fromPartial(e)) || [];
700
+ message.subCommands = Object.entries(object.subCommands ?? {}).reduce<{
701
+ [key: string]: ServiceCommandDescriptor;
702
+ }>((acc, [key, value]) => {
703
+ if (value !== undefined) {
704
+ acc[key] = ServiceCommandDescriptor.fromPartial(value);
705
+ }
706
+ return acc;
707
+ }, {});
708
+ message.enhanceCustomCommand = object.enhanceCustomCommand ?? false;
709
+ message.short = object.short ?? "";
710
+ return message;
711
+ },
712
+ fromAmino(object: ServiceCommandDescriptorAmino): ServiceCommandDescriptor {
713
+ const message = createBaseServiceCommandDescriptor();
714
+ if (object.service !== undefined && object.service !== null) {
715
+ message.service = object.service;
716
+ }
717
+ message.rpcCommandOptions = object.rpc_command_options?.map(e => RpcCommandOptions.fromAmino(e)) || [];
718
+ message.subCommands = Object.entries(object.sub_commands ?? {}).reduce<{
719
+ [key: string]: ServiceCommandDescriptor;
720
+ }>((acc, [key, value]) => {
721
+ if (value !== undefined) {
722
+ acc[key] = ServiceCommandDescriptor.fromAmino(value);
723
+ }
724
+ return acc;
725
+ }, {});
726
+ if (object.enhance_custom_command !== undefined && object.enhance_custom_command !== null) {
727
+ message.enhanceCustomCommand = object.enhance_custom_command;
728
+ }
729
+ if (object.short !== undefined && object.short !== null) {
730
+ message.short = object.short;
731
+ }
732
+ return message;
733
+ },
734
+ toAmino(message: ServiceCommandDescriptor): ServiceCommandDescriptorAmino {
735
+ const obj: any = {};
736
+ obj.service = message.service === "" ? undefined : message.service;
737
+ if (message.rpcCommandOptions) {
738
+ obj.rpc_command_options = message.rpcCommandOptions.map(e => e ? RpcCommandOptions.toAmino(e) : undefined);
739
+ } else {
740
+ obj.rpc_command_options = message.rpcCommandOptions;
741
+ }
742
+ obj.sub_commands = {};
743
+ if (message.subCommands) {
744
+ Object.entries(message.subCommands).forEach(([k, v]) => {
745
+ obj.sub_commands[k] = ServiceCommandDescriptor.toAmino(v);
746
+ });
747
+ }
748
+ obj.enhance_custom_command = message.enhanceCustomCommand === false ? undefined : message.enhanceCustomCommand;
749
+ obj.short = message.short === "" ? undefined : message.short;
750
+ return obj;
751
+ },
752
+ fromAminoMsg(object: ServiceCommandDescriptorAminoMsg): ServiceCommandDescriptor {
753
+ return ServiceCommandDescriptor.fromAmino(object.value);
754
+ },
755
+ toAminoMsg(message: ServiceCommandDescriptor): ServiceCommandDescriptorAminoMsg {
756
+ return {
757
+ type: "cosmos-sdk/ServiceCommandDescriptor",
758
+ value: ServiceCommandDescriptor.toAmino(message)
759
+ };
760
+ },
761
+ fromProtoMsg(message: ServiceCommandDescriptorProtoMsg): ServiceCommandDescriptor {
762
+ return ServiceCommandDescriptor.decode(message.value);
763
+ },
764
+ toProto(message: ServiceCommandDescriptor): Uint8Array {
765
+ return ServiceCommandDescriptor.encode(message).finish();
766
+ },
767
+ toProtoMsg(message: ServiceCommandDescriptor): ServiceCommandDescriptorProtoMsg {
768
+ return {
769
+ typeUrl: "/cosmos.autocli.v1.ServiceCommandDescriptor",
770
+ value: ServiceCommandDescriptor.encode(message).finish()
771
+ };
772
+ }
773
+ };
774
+ function createBaseRpcCommandOptions_FlagOptionsEntry(): RpcCommandOptions_FlagOptionsEntry {
775
+ return {
776
+ key: "",
777
+ value: undefined
778
+ };
779
+ }
780
+ export const RpcCommandOptions_FlagOptionsEntry = {
781
+ encode(message: RpcCommandOptions_FlagOptionsEntry, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
782
+ if (message.key !== "") {
783
+ writer.uint32(10).string(message.key);
784
+ }
785
+ if (message.value !== undefined) {
786
+ FlagOptions.encode(message.value, writer.uint32(18).fork()).ldelim();
787
+ }
788
+ return writer;
789
+ },
790
+ decode(input: BinaryReader | Uint8Array, length?: number): RpcCommandOptions_FlagOptionsEntry {
791
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
792
+ let end = length === undefined ? reader.len : reader.pos + length;
793
+ const message = createBaseRpcCommandOptions_FlagOptionsEntry();
794
+ while (reader.pos < end) {
795
+ const tag = reader.uint32();
796
+ switch (tag >>> 3) {
797
+ case 1:
798
+ message.key = reader.string();
799
+ break;
800
+ case 2:
801
+ message.value = FlagOptions.decode(reader, reader.uint32());
802
+ break;
803
+ default:
804
+ reader.skipType(tag & 7);
805
+ break;
806
+ }
807
+ }
808
+ return message;
809
+ },
810
+ fromPartial(object: Partial<RpcCommandOptions_FlagOptionsEntry>): RpcCommandOptions_FlagOptionsEntry {
811
+ const message = createBaseRpcCommandOptions_FlagOptionsEntry();
812
+ message.key = object.key ?? "";
813
+ message.value = object.value !== undefined && object.value !== null ? FlagOptions.fromPartial(object.value) : undefined;
814
+ return message;
815
+ },
816
+ fromAmino(object: RpcCommandOptions_FlagOptionsEntryAmino): RpcCommandOptions_FlagOptionsEntry {
817
+ const message = createBaseRpcCommandOptions_FlagOptionsEntry();
818
+ if (object.key !== undefined && object.key !== null) {
819
+ message.key = object.key;
820
+ }
821
+ if (object.value !== undefined && object.value !== null) {
822
+ message.value = FlagOptions.fromAmino(object.value);
823
+ }
824
+ return message;
825
+ },
826
+ toAmino(message: RpcCommandOptions_FlagOptionsEntry): RpcCommandOptions_FlagOptionsEntryAmino {
827
+ const obj: any = {};
828
+ obj.key = message.key === "" ? undefined : message.key;
829
+ obj.value = message.value ? FlagOptions.toAmino(message.value) : undefined;
830
+ return obj;
831
+ },
832
+ fromAminoMsg(object: RpcCommandOptions_FlagOptionsEntryAminoMsg): RpcCommandOptions_FlagOptionsEntry {
833
+ return RpcCommandOptions_FlagOptionsEntry.fromAmino(object.value);
834
+ },
835
+ fromProtoMsg(message: RpcCommandOptions_FlagOptionsEntryProtoMsg): RpcCommandOptions_FlagOptionsEntry {
836
+ return RpcCommandOptions_FlagOptionsEntry.decode(message.value);
837
+ },
838
+ toProto(message: RpcCommandOptions_FlagOptionsEntry): Uint8Array {
839
+ return RpcCommandOptions_FlagOptionsEntry.encode(message).finish();
840
+ }
841
+ };
842
+ function createBaseRpcCommandOptions(): RpcCommandOptions {
843
+ return {
844
+ rpcMethod: "",
845
+ use: "",
846
+ long: "",
847
+ short: "",
848
+ example: "",
849
+ alias: [],
850
+ suggestFor: [],
851
+ deprecated: "",
852
+ version: "",
853
+ flagOptions: {},
854
+ positionalArgs: [],
855
+ skip: false,
856
+ govProposal: false
857
+ };
858
+ }
859
+ export const RpcCommandOptions = {
860
+ typeUrl: "/cosmos.autocli.v1.RpcCommandOptions",
861
+ encode(message: RpcCommandOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
862
+ if (message.rpcMethod !== "") {
863
+ writer.uint32(10).string(message.rpcMethod);
864
+ }
865
+ if (message.use !== "") {
866
+ writer.uint32(18).string(message.use);
867
+ }
868
+ if (message.long !== "") {
869
+ writer.uint32(26).string(message.long);
870
+ }
871
+ if (message.short !== "") {
872
+ writer.uint32(34).string(message.short);
873
+ }
874
+ if (message.example !== "") {
875
+ writer.uint32(42).string(message.example);
876
+ }
877
+ for (const v of message.alias) {
878
+ writer.uint32(50).string(v!);
879
+ }
880
+ for (const v of message.suggestFor) {
881
+ writer.uint32(58).string(v!);
882
+ }
883
+ if (message.deprecated !== "") {
884
+ writer.uint32(66).string(message.deprecated);
885
+ }
886
+ if (message.version !== "") {
887
+ writer.uint32(74).string(message.version);
888
+ }
889
+ Object.entries(message.flagOptions).forEach(([key, value]) => {
890
+ RpcCommandOptions_FlagOptionsEntry.encode({
891
+ key: key as any,
892
+ value
893
+ }, writer.uint32(82).fork()).ldelim();
894
+ });
895
+ for (const v of message.positionalArgs) {
896
+ PositionalArgDescriptor.encode(v!, writer.uint32(90).fork()).ldelim();
897
+ }
898
+ if (message.skip === true) {
899
+ writer.uint32(96).bool(message.skip);
900
+ }
901
+ if (message.govProposal === true) {
902
+ writer.uint32(104).bool(message.govProposal);
903
+ }
904
+ return writer;
905
+ },
906
+ decode(input: BinaryReader | Uint8Array, length?: number): RpcCommandOptions {
907
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
908
+ let end = length === undefined ? reader.len : reader.pos + length;
909
+ const message = createBaseRpcCommandOptions();
910
+ while (reader.pos < end) {
911
+ const tag = reader.uint32();
912
+ switch (tag >>> 3) {
913
+ case 1:
914
+ message.rpcMethod = reader.string();
915
+ break;
916
+ case 2:
917
+ message.use = reader.string();
918
+ break;
919
+ case 3:
920
+ message.long = reader.string();
921
+ break;
922
+ case 4:
923
+ message.short = reader.string();
924
+ break;
925
+ case 5:
926
+ message.example = reader.string();
927
+ break;
928
+ case 6:
929
+ message.alias.push(reader.string());
930
+ break;
931
+ case 7:
932
+ message.suggestFor.push(reader.string());
933
+ break;
934
+ case 8:
935
+ message.deprecated = reader.string();
936
+ break;
937
+ case 9:
938
+ message.version = reader.string();
939
+ break;
940
+ case 10:
941
+ const entry10 = RpcCommandOptions_FlagOptionsEntry.decode(reader, reader.uint32());
942
+ if (entry10.value !== undefined) {
943
+ message.flagOptions[entry10.key] = entry10.value;
944
+ }
945
+ break;
946
+ case 11:
947
+ message.positionalArgs.push(PositionalArgDescriptor.decode(reader, reader.uint32()));
948
+ break;
949
+ case 12:
950
+ message.skip = reader.bool();
951
+ break;
952
+ case 13:
953
+ message.govProposal = reader.bool();
954
+ break;
955
+ default:
956
+ reader.skipType(tag & 7);
957
+ break;
958
+ }
959
+ }
960
+ return message;
961
+ },
962
+ fromPartial(object: Partial<RpcCommandOptions>): RpcCommandOptions {
963
+ const message = createBaseRpcCommandOptions();
964
+ message.rpcMethod = object.rpcMethod ?? "";
965
+ message.use = object.use ?? "";
966
+ message.long = object.long ?? "";
967
+ message.short = object.short ?? "";
968
+ message.example = object.example ?? "";
969
+ message.alias = object.alias?.map(e => e) || [];
970
+ message.suggestFor = object.suggestFor?.map(e => e) || [];
971
+ message.deprecated = object.deprecated ?? "";
972
+ message.version = object.version ?? "";
973
+ message.flagOptions = Object.entries(object.flagOptions ?? {}).reduce<{
974
+ [key: string]: FlagOptions;
975
+ }>((acc, [key, value]) => {
976
+ if (value !== undefined) {
977
+ acc[key] = FlagOptions.fromPartial(value);
978
+ }
979
+ return acc;
980
+ }, {});
981
+ message.positionalArgs = object.positionalArgs?.map(e => PositionalArgDescriptor.fromPartial(e)) || [];
982
+ message.skip = object.skip ?? false;
983
+ message.govProposal = object.govProposal ?? false;
984
+ return message;
985
+ },
986
+ fromAmino(object: RpcCommandOptionsAmino): RpcCommandOptions {
987
+ const message = createBaseRpcCommandOptions();
988
+ if (object.rpc_method !== undefined && object.rpc_method !== null) {
989
+ message.rpcMethod = object.rpc_method;
990
+ }
991
+ if (object.use !== undefined && object.use !== null) {
992
+ message.use = object.use;
993
+ }
994
+ if (object.long !== undefined && object.long !== null) {
995
+ message.long = object.long;
996
+ }
997
+ if (object.short !== undefined && object.short !== null) {
998
+ message.short = object.short;
999
+ }
1000
+ if (object.example !== undefined && object.example !== null) {
1001
+ message.example = object.example;
1002
+ }
1003
+ message.alias = object.alias?.map(e => e) || [];
1004
+ message.suggestFor = object.suggest_for?.map(e => e) || [];
1005
+ if (object.deprecated !== undefined && object.deprecated !== null) {
1006
+ message.deprecated = object.deprecated;
1007
+ }
1008
+ if (object.version !== undefined && object.version !== null) {
1009
+ message.version = object.version;
1010
+ }
1011
+ message.flagOptions = Object.entries(object.flag_options ?? {}).reduce<{
1012
+ [key: string]: FlagOptions;
1013
+ }>((acc, [key, value]) => {
1014
+ if (value !== undefined) {
1015
+ acc[key] = FlagOptions.fromAmino(value);
1016
+ }
1017
+ return acc;
1018
+ }, {});
1019
+ message.positionalArgs = object.positional_args?.map(e => PositionalArgDescriptor.fromAmino(e)) || [];
1020
+ if (object.skip !== undefined && object.skip !== null) {
1021
+ message.skip = object.skip;
1022
+ }
1023
+ if (object.gov_proposal !== undefined && object.gov_proposal !== null) {
1024
+ message.govProposal = object.gov_proposal;
1025
+ }
1026
+ return message;
1027
+ },
1028
+ toAmino(message: RpcCommandOptions): RpcCommandOptionsAmino {
1029
+ const obj: any = {};
1030
+ obj.rpc_method = message.rpcMethod === "" ? undefined : message.rpcMethod;
1031
+ obj.use = message.use === "" ? undefined : message.use;
1032
+ obj.long = message.long === "" ? undefined : message.long;
1033
+ obj.short = message.short === "" ? undefined : message.short;
1034
+ obj.example = message.example === "" ? undefined : message.example;
1035
+ if (message.alias) {
1036
+ obj.alias = message.alias.map(e => e);
1037
+ } else {
1038
+ obj.alias = message.alias;
1039
+ }
1040
+ if (message.suggestFor) {
1041
+ obj.suggest_for = message.suggestFor.map(e => e);
1042
+ } else {
1043
+ obj.suggest_for = message.suggestFor;
1044
+ }
1045
+ obj.deprecated = message.deprecated === "" ? undefined : message.deprecated;
1046
+ obj.version = message.version === "" ? undefined : message.version;
1047
+ obj.flag_options = {};
1048
+ if (message.flagOptions) {
1049
+ Object.entries(message.flagOptions).forEach(([k, v]) => {
1050
+ obj.flag_options[k] = FlagOptions.toAmino(v);
1051
+ });
1052
+ }
1053
+ if (message.positionalArgs) {
1054
+ obj.positional_args = message.positionalArgs.map(e => e ? PositionalArgDescriptor.toAmino(e) : undefined);
1055
+ } else {
1056
+ obj.positional_args = message.positionalArgs;
1057
+ }
1058
+ obj.skip = message.skip === false ? undefined : message.skip;
1059
+ obj.gov_proposal = message.govProposal === false ? undefined : message.govProposal;
1060
+ return obj;
1061
+ },
1062
+ fromAminoMsg(object: RpcCommandOptionsAminoMsg): RpcCommandOptions {
1063
+ return RpcCommandOptions.fromAmino(object.value);
1064
+ },
1065
+ toAminoMsg(message: RpcCommandOptions): RpcCommandOptionsAminoMsg {
1066
+ return {
1067
+ type: "cosmos-sdk/RpcCommandOptions",
1068
+ value: RpcCommandOptions.toAmino(message)
1069
+ };
1070
+ },
1071
+ fromProtoMsg(message: RpcCommandOptionsProtoMsg): RpcCommandOptions {
1072
+ return RpcCommandOptions.decode(message.value);
1073
+ },
1074
+ toProto(message: RpcCommandOptions): Uint8Array {
1075
+ return RpcCommandOptions.encode(message).finish();
1076
+ },
1077
+ toProtoMsg(message: RpcCommandOptions): RpcCommandOptionsProtoMsg {
1078
+ return {
1079
+ typeUrl: "/cosmos.autocli.v1.RpcCommandOptions",
1080
+ value: RpcCommandOptions.encode(message).finish()
1081
+ };
1082
+ }
1083
+ };
1084
+ function createBaseFlagOptions(): FlagOptions {
1085
+ return {
1086
+ name: "",
1087
+ shorthand: "",
1088
+ usage: "",
1089
+ defaultValue: "",
1090
+ deprecated: "",
1091
+ shorthandDeprecated: "",
1092
+ hidden: false
1093
+ };
1094
+ }
1095
+ export const FlagOptions = {
1096
+ typeUrl: "/cosmos.autocli.v1.FlagOptions",
1097
+ encode(message: FlagOptions, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1098
+ if (message.name !== "") {
1099
+ writer.uint32(10).string(message.name);
1100
+ }
1101
+ if (message.shorthand !== "") {
1102
+ writer.uint32(18).string(message.shorthand);
1103
+ }
1104
+ if (message.usage !== "") {
1105
+ writer.uint32(26).string(message.usage);
1106
+ }
1107
+ if (message.defaultValue !== "") {
1108
+ writer.uint32(34).string(message.defaultValue);
1109
+ }
1110
+ if (message.deprecated !== "") {
1111
+ writer.uint32(50).string(message.deprecated);
1112
+ }
1113
+ if (message.shorthandDeprecated !== "") {
1114
+ writer.uint32(58).string(message.shorthandDeprecated);
1115
+ }
1116
+ if (message.hidden === true) {
1117
+ writer.uint32(64).bool(message.hidden);
1118
+ }
1119
+ return writer;
1120
+ },
1121
+ decode(input: BinaryReader | Uint8Array, length?: number): FlagOptions {
1122
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1123
+ let end = length === undefined ? reader.len : reader.pos + length;
1124
+ const message = createBaseFlagOptions();
1125
+ while (reader.pos < end) {
1126
+ const tag = reader.uint32();
1127
+ switch (tag >>> 3) {
1128
+ case 1:
1129
+ message.name = reader.string();
1130
+ break;
1131
+ case 2:
1132
+ message.shorthand = reader.string();
1133
+ break;
1134
+ case 3:
1135
+ message.usage = reader.string();
1136
+ break;
1137
+ case 4:
1138
+ message.defaultValue = reader.string();
1139
+ break;
1140
+ case 6:
1141
+ message.deprecated = reader.string();
1142
+ break;
1143
+ case 7:
1144
+ message.shorthandDeprecated = reader.string();
1145
+ break;
1146
+ case 8:
1147
+ message.hidden = reader.bool();
1148
+ break;
1149
+ default:
1150
+ reader.skipType(tag & 7);
1151
+ break;
1152
+ }
1153
+ }
1154
+ return message;
1155
+ },
1156
+ fromPartial(object: Partial<FlagOptions>): FlagOptions {
1157
+ const message = createBaseFlagOptions();
1158
+ message.name = object.name ?? "";
1159
+ message.shorthand = object.shorthand ?? "";
1160
+ message.usage = object.usage ?? "";
1161
+ message.defaultValue = object.defaultValue ?? "";
1162
+ message.deprecated = object.deprecated ?? "";
1163
+ message.shorthandDeprecated = object.shorthandDeprecated ?? "";
1164
+ message.hidden = object.hidden ?? false;
1165
+ return message;
1166
+ },
1167
+ fromAmino(object: FlagOptionsAmino): FlagOptions {
1168
+ const message = createBaseFlagOptions();
1169
+ if (object.name !== undefined && object.name !== null) {
1170
+ message.name = object.name;
1171
+ }
1172
+ if (object.shorthand !== undefined && object.shorthand !== null) {
1173
+ message.shorthand = object.shorthand;
1174
+ }
1175
+ if (object.usage !== undefined && object.usage !== null) {
1176
+ message.usage = object.usage;
1177
+ }
1178
+ if (object.default_value !== undefined && object.default_value !== null) {
1179
+ message.defaultValue = object.default_value;
1180
+ }
1181
+ if (object.deprecated !== undefined && object.deprecated !== null) {
1182
+ message.deprecated = object.deprecated;
1183
+ }
1184
+ if (object.shorthand_deprecated !== undefined && object.shorthand_deprecated !== null) {
1185
+ message.shorthandDeprecated = object.shorthand_deprecated;
1186
+ }
1187
+ if (object.hidden !== undefined && object.hidden !== null) {
1188
+ message.hidden = object.hidden;
1189
+ }
1190
+ return message;
1191
+ },
1192
+ toAmino(message: FlagOptions): FlagOptionsAmino {
1193
+ const obj: any = {};
1194
+ obj.name = message.name === "" ? undefined : message.name;
1195
+ obj.shorthand = message.shorthand === "" ? undefined : message.shorthand;
1196
+ obj.usage = message.usage === "" ? undefined : message.usage;
1197
+ obj.default_value = message.defaultValue === "" ? undefined : message.defaultValue;
1198
+ obj.deprecated = message.deprecated === "" ? undefined : message.deprecated;
1199
+ obj.shorthand_deprecated = message.shorthandDeprecated === "" ? undefined : message.shorthandDeprecated;
1200
+ obj.hidden = message.hidden === false ? undefined : message.hidden;
1201
+ return obj;
1202
+ },
1203
+ fromAminoMsg(object: FlagOptionsAminoMsg): FlagOptions {
1204
+ return FlagOptions.fromAmino(object.value);
1205
+ },
1206
+ toAminoMsg(message: FlagOptions): FlagOptionsAminoMsg {
1207
+ return {
1208
+ type: "cosmos-sdk/FlagOptions",
1209
+ value: FlagOptions.toAmino(message)
1210
+ };
1211
+ },
1212
+ fromProtoMsg(message: FlagOptionsProtoMsg): FlagOptions {
1213
+ return FlagOptions.decode(message.value);
1214
+ },
1215
+ toProto(message: FlagOptions): Uint8Array {
1216
+ return FlagOptions.encode(message).finish();
1217
+ },
1218
+ toProtoMsg(message: FlagOptions): FlagOptionsProtoMsg {
1219
+ return {
1220
+ typeUrl: "/cosmos.autocli.v1.FlagOptions",
1221
+ value: FlagOptions.encode(message).finish()
1222
+ };
1223
+ }
1224
+ };
1225
+ function createBasePositionalArgDescriptor(): PositionalArgDescriptor {
1226
+ return {
1227
+ protoField: "",
1228
+ varargs: false,
1229
+ optional: false
1230
+ };
1231
+ }
1232
+ export const PositionalArgDescriptor = {
1233
+ typeUrl: "/cosmos.autocli.v1.PositionalArgDescriptor",
1234
+ encode(message: PositionalArgDescriptor, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1235
+ if (message.protoField !== "") {
1236
+ writer.uint32(10).string(message.protoField);
1237
+ }
1238
+ if (message.varargs === true) {
1239
+ writer.uint32(16).bool(message.varargs);
1240
+ }
1241
+ if (message.optional === true) {
1242
+ writer.uint32(24).bool(message.optional);
1243
+ }
1244
+ return writer;
1245
+ },
1246
+ decode(input: BinaryReader | Uint8Array, length?: number): PositionalArgDescriptor {
1247
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1248
+ let end = length === undefined ? reader.len : reader.pos + length;
1249
+ const message = createBasePositionalArgDescriptor();
1250
+ while (reader.pos < end) {
1251
+ const tag = reader.uint32();
1252
+ switch (tag >>> 3) {
1253
+ case 1:
1254
+ message.protoField = reader.string();
1255
+ break;
1256
+ case 2:
1257
+ message.varargs = reader.bool();
1258
+ break;
1259
+ case 3:
1260
+ message.optional = reader.bool();
1261
+ break;
1262
+ default:
1263
+ reader.skipType(tag & 7);
1264
+ break;
1265
+ }
1266
+ }
1267
+ return message;
1268
+ },
1269
+ fromPartial(object: Partial<PositionalArgDescriptor>): PositionalArgDescriptor {
1270
+ const message = createBasePositionalArgDescriptor();
1271
+ message.protoField = object.protoField ?? "";
1272
+ message.varargs = object.varargs ?? false;
1273
+ message.optional = object.optional ?? false;
1274
+ return message;
1275
+ },
1276
+ fromAmino(object: PositionalArgDescriptorAmino): PositionalArgDescriptor {
1277
+ const message = createBasePositionalArgDescriptor();
1278
+ if (object.proto_field !== undefined && object.proto_field !== null) {
1279
+ message.protoField = object.proto_field;
1280
+ }
1281
+ if (object.varargs !== undefined && object.varargs !== null) {
1282
+ message.varargs = object.varargs;
1283
+ }
1284
+ if (object.optional !== undefined && object.optional !== null) {
1285
+ message.optional = object.optional;
1286
+ }
1287
+ return message;
1288
+ },
1289
+ toAmino(message: PositionalArgDescriptor): PositionalArgDescriptorAmino {
1290
+ const obj: any = {};
1291
+ obj.proto_field = message.protoField === "" ? undefined : message.protoField;
1292
+ obj.varargs = message.varargs === false ? undefined : message.varargs;
1293
+ obj.optional = message.optional === false ? undefined : message.optional;
1294
+ return obj;
1295
+ },
1296
+ fromAminoMsg(object: PositionalArgDescriptorAminoMsg): PositionalArgDescriptor {
1297
+ return PositionalArgDescriptor.fromAmino(object.value);
1298
+ },
1299
+ toAminoMsg(message: PositionalArgDescriptor): PositionalArgDescriptorAminoMsg {
1300
+ return {
1301
+ type: "cosmos-sdk/PositionalArgDescriptor",
1302
+ value: PositionalArgDescriptor.toAmino(message)
1303
+ };
1304
+ },
1305
+ fromProtoMsg(message: PositionalArgDescriptorProtoMsg): PositionalArgDescriptor {
1306
+ return PositionalArgDescriptor.decode(message.value);
1307
+ },
1308
+ toProto(message: PositionalArgDescriptor): Uint8Array {
1309
+ return PositionalArgDescriptor.encode(message).finish();
1310
+ },
1311
+ toProtoMsg(message: PositionalArgDescriptor): PositionalArgDescriptorProtoMsg {
1312
+ return {
1313
+ typeUrl: "/cosmos.autocli.v1.PositionalArgDescriptor",
1314
+ value: PositionalArgDescriptor.encode(message).finish()
1315
+ };
1316
+ }
1317
+ };