@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,3353 @@
1
+ //@ts-nocheck
2
+ import { MemberRequest, MemberRequestAmino, MemberRequestSDKType, VoteOption, ProposalExecutorResult, ThresholdDecisionPolicy, ThresholdDecisionPolicyProtoMsg, ThresholdDecisionPolicySDKType, PercentageDecisionPolicy, PercentageDecisionPolicyProtoMsg, PercentageDecisionPolicySDKType } from "./types";
3
+ import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any";
4
+ import { BinaryReader, BinaryWriter } from "../../../binary";
5
+ /** Exec defines modes of execution of a proposal on creation or on new vote. */
6
+ export enum Exec {
7
+ /**
8
+ * EXEC_UNSPECIFIED - An empty value means that there should be a separate
9
+ * MsgExec request for the proposal to execute.
10
+ */
11
+ EXEC_UNSPECIFIED = 0,
12
+ /**
13
+ * EXEC_TRY - Try to execute the proposal immediately.
14
+ * If the proposal is not allowed per the DecisionPolicy,
15
+ * the proposal will still be open and could
16
+ * be executed at a later point.
17
+ */
18
+ EXEC_TRY = 1,
19
+ UNRECOGNIZED = -1,
20
+ }
21
+ export const ExecSDKType = Exec;
22
+ export const ExecAmino = Exec;
23
+ export function execFromJSON(object: any): Exec {
24
+ switch (object) {
25
+ case 0:
26
+ case "EXEC_UNSPECIFIED":
27
+ return Exec.EXEC_UNSPECIFIED;
28
+ case 1:
29
+ case "EXEC_TRY":
30
+ return Exec.EXEC_TRY;
31
+ case -1:
32
+ case "UNRECOGNIZED":
33
+ default:
34
+ return Exec.UNRECOGNIZED;
35
+ }
36
+ }
37
+ export function execToJSON(object: Exec): string {
38
+ switch (object) {
39
+ case Exec.EXEC_UNSPECIFIED:
40
+ return "EXEC_UNSPECIFIED";
41
+ case Exec.EXEC_TRY:
42
+ return "EXEC_TRY";
43
+ case Exec.UNRECOGNIZED:
44
+ default:
45
+ return "UNRECOGNIZED";
46
+ }
47
+ }
48
+ /** MsgCreateGroup is the Msg/CreateGroup request type. */
49
+ export interface MsgCreateGroup {
50
+ /** admin is the account address of the group admin. */
51
+ admin: string;
52
+ /** members defines the group members. */
53
+ members: MemberRequest[];
54
+ /** metadata is any arbitrary metadata to attached to the group. */
55
+ metadata: string;
56
+ }
57
+ export interface MsgCreateGroupProtoMsg {
58
+ typeUrl: "/cosmos.group.v1.MsgCreateGroup";
59
+ value: Uint8Array;
60
+ }
61
+ /**
62
+ * MsgCreateGroup is the Msg/CreateGroup request type.
63
+ * @name MsgCreateGroupAmino
64
+ * @package cosmos.group.v1
65
+ * @see proto type: cosmos.group.v1.MsgCreateGroup
66
+ */
67
+ export interface MsgCreateGroupAmino {
68
+ /**
69
+ * admin is the account address of the group admin.
70
+ */
71
+ admin?: string;
72
+ /**
73
+ * members defines the group members.
74
+ */
75
+ members: MemberRequestAmino[];
76
+ /**
77
+ * metadata is any arbitrary metadata to attached to the group.
78
+ */
79
+ metadata?: string;
80
+ }
81
+ export interface MsgCreateGroupAminoMsg {
82
+ type: "cosmos-sdk/MsgCreateGroup";
83
+ value: MsgCreateGroupAmino;
84
+ }
85
+ /** MsgCreateGroup is the Msg/CreateGroup request type. */
86
+ export interface MsgCreateGroupSDKType {
87
+ admin: string;
88
+ members: MemberRequestSDKType[];
89
+ metadata: string;
90
+ }
91
+ /** MsgCreateGroupResponse is the Msg/CreateGroup response type. */
92
+ export interface MsgCreateGroupResponse {
93
+ /** group_id is the unique ID of the newly created group. */
94
+ groupId: bigint;
95
+ }
96
+ export interface MsgCreateGroupResponseProtoMsg {
97
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse";
98
+ value: Uint8Array;
99
+ }
100
+ /**
101
+ * MsgCreateGroupResponse is the Msg/CreateGroup response type.
102
+ * @name MsgCreateGroupResponseAmino
103
+ * @package cosmos.group.v1
104
+ * @see proto type: cosmos.group.v1.MsgCreateGroupResponse
105
+ */
106
+ export interface MsgCreateGroupResponseAmino {
107
+ /**
108
+ * group_id is the unique ID of the newly created group.
109
+ */
110
+ group_id?: string;
111
+ }
112
+ export interface MsgCreateGroupResponseAminoMsg {
113
+ type: "cosmos-sdk/MsgCreateGroupResponse";
114
+ value: MsgCreateGroupResponseAmino;
115
+ }
116
+ /** MsgCreateGroupResponse is the Msg/CreateGroup response type. */
117
+ export interface MsgCreateGroupResponseSDKType {
118
+ group_id: bigint;
119
+ }
120
+ /** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */
121
+ export interface MsgUpdateGroupMembers {
122
+ /** admin is the account address of the group admin. */
123
+ admin: string;
124
+ /** group_id is the unique ID of the group. */
125
+ groupId: bigint;
126
+ /**
127
+ * member_updates is the list of members to update,
128
+ * set weight to 0 to remove a member.
129
+ */
130
+ memberUpdates: MemberRequest[];
131
+ }
132
+ export interface MsgUpdateGroupMembersProtoMsg {
133
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers";
134
+ value: Uint8Array;
135
+ }
136
+ /**
137
+ * MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type.
138
+ * @name MsgUpdateGroupMembersAmino
139
+ * @package cosmos.group.v1
140
+ * @see proto type: cosmos.group.v1.MsgUpdateGroupMembers
141
+ */
142
+ export interface MsgUpdateGroupMembersAmino {
143
+ /**
144
+ * admin is the account address of the group admin.
145
+ */
146
+ admin?: string;
147
+ /**
148
+ * group_id is the unique ID of the group.
149
+ */
150
+ group_id?: string;
151
+ /**
152
+ * member_updates is the list of members to update,
153
+ * set weight to 0 to remove a member.
154
+ */
155
+ member_updates: MemberRequestAmino[];
156
+ }
157
+ export interface MsgUpdateGroupMembersAminoMsg {
158
+ type: "cosmos-sdk/MsgUpdateGroupMembers";
159
+ value: MsgUpdateGroupMembersAmino;
160
+ }
161
+ /** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */
162
+ export interface MsgUpdateGroupMembersSDKType {
163
+ admin: string;
164
+ group_id: bigint;
165
+ member_updates: MemberRequestSDKType[];
166
+ }
167
+ /** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */
168
+ export interface MsgUpdateGroupMembersResponse {}
169
+ export interface MsgUpdateGroupMembersResponseProtoMsg {
170
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse";
171
+ value: Uint8Array;
172
+ }
173
+ /**
174
+ * MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type.
175
+ * @name MsgUpdateGroupMembersResponseAmino
176
+ * @package cosmos.group.v1
177
+ * @see proto type: cosmos.group.v1.MsgUpdateGroupMembersResponse
178
+ */
179
+ export interface MsgUpdateGroupMembersResponseAmino {}
180
+ export interface MsgUpdateGroupMembersResponseAminoMsg {
181
+ type: "cosmos-sdk/MsgUpdateGroupMembersResponse";
182
+ value: MsgUpdateGroupMembersResponseAmino;
183
+ }
184
+ /** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */
185
+ export interface MsgUpdateGroupMembersResponseSDKType {}
186
+ /** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */
187
+ export interface MsgUpdateGroupAdmin {
188
+ /** admin is the current account address of the group admin. */
189
+ admin: string;
190
+ /** group_id is the unique ID of the group. */
191
+ groupId: bigint;
192
+ /** new_admin is the group new admin account address. */
193
+ newAdmin: string;
194
+ }
195
+ export interface MsgUpdateGroupAdminProtoMsg {
196
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin";
197
+ value: Uint8Array;
198
+ }
199
+ /**
200
+ * MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type.
201
+ * @name MsgUpdateGroupAdminAmino
202
+ * @package cosmos.group.v1
203
+ * @see proto type: cosmos.group.v1.MsgUpdateGroupAdmin
204
+ */
205
+ export interface MsgUpdateGroupAdminAmino {
206
+ /**
207
+ * admin is the current account address of the group admin.
208
+ */
209
+ admin?: string;
210
+ /**
211
+ * group_id is the unique ID of the group.
212
+ */
213
+ group_id?: string;
214
+ /**
215
+ * new_admin is the group new admin account address.
216
+ */
217
+ new_admin?: string;
218
+ }
219
+ export interface MsgUpdateGroupAdminAminoMsg {
220
+ type: "cosmos-sdk/MsgUpdateGroupAdmin";
221
+ value: MsgUpdateGroupAdminAmino;
222
+ }
223
+ /** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */
224
+ export interface MsgUpdateGroupAdminSDKType {
225
+ admin: string;
226
+ group_id: bigint;
227
+ new_admin: string;
228
+ }
229
+ /** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */
230
+ export interface MsgUpdateGroupAdminResponse {}
231
+ export interface MsgUpdateGroupAdminResponseProtoMsg {
232
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse";
233
+ value: Uint8Array;
234
+ }
235
+ /**
236
+ * MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type.
237
+ * @name MsgUpdateGroupAdminResponseAmino
238
+ * @package cosmos.group.v1
239
+ * @see proto type: cosmos.group.v1.MsgUpdateGroupAdminResponse
240
+ */
241
+ export interface MsgUpdateGroupAdminResponseAmino {}
242
+ export interface MsgUpdateGroupAdminResponseAminoMsg {
243
+ type: "cosmos-sdk/MsgUpdateGroupAdminResponse";
244
+ value: MsgUpdateGroupAdminResponseAmino;
245
+ }
246
+ /** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */
247
+ export interface MsgUpdateGroupAdminResponseSDKType {}
248
+ /** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */
249
+ export interface MsgUpdateGroupMetadata {
250
+ /** admin is the account address of the group admin. */
251
+ admin: string;
252
+ /** group_id is the unique ID of the group. */
253
+ groupId: bigint;
254
+ /** metadata is the updated group's metadata. */
255
+ metadata: string;
256
+ }
257
+ export interface MsgUpdateGroupMetadataProtoMsg {
258
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata";
259
+ value: Uint8Array;
260
+ }
261
+ /**
262
+ * MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type.
263
+ * @name MsgUpdateGroupMetadataAmino
264
+ * @package cosmos.group.v1
265
+ * @see proto type: cosmos.group.v1.MsgUpdateGroupMetadata
266
+ */
267
+ export interface MsgUpdateGroupMetadataAmino {
268
+ /**
269
+ * admin is the account address of the group admin.
270
+ */
271
+ admin?: string;
272
+ /**
273
+ * group_id is the unique ID of the group.
274
+ */
275
+ group_id?: string;
276
+ /**
277
+ * metadata is the updated group's metadata.
278
+ */
279
+ metadata?: string;
280
+ }
281
+ export interface MsgUpdateGroupMetadataAminoMsg {
282
+ type: "cosmos-sdk/MsgUpdateGroupMetadata";
283
+ value: MsgUpdateGroupMetadataAmino;
284
+ }
285
+ /** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */
286
+ export interface MsgUpdateGroupMetadataSDKType {
287
+ admin: string;
288
+ group_id: bigint;
289
+ metadata: string;
290
+ }
291
+ /** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */
292
+ export interface MsgUpdateGroupMetadataResponse {}
293
+ export interface MsgUpdateGroupMetadataResponseProtoMsg {
294
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse";
295
+ value: Uint8Array;
296
+ }
297
+ /**
298
+ * MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type.
299
+ * @name MsgUpdateGroupMetadataResponseAmino
300
+ * @package cosmos.group.v1
301
+ * @see proto type: cosmos.group.v1.MsgUpdateGroupMetadataResponse
302
+ */
303
+ export interface MsgUpdateGroupMetadataResponseAmino {}
304
+ export interface MsgUpdateGroupMetadataResponseAminoMsg {
305
+ type: "cosmos-sdk/MsgUpdateGroupMetadataResponse";
306
+ value: MsgUpdateGroupMetadataResponseAmino;
307
+ }
308
+ /** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */
309
+ export interface MsgUpdateGroupMetadataResponseSDKType {}
310
+ /** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */
311
+ export interface MsgCreateGroupPolicy {
312
+ /** admin is the account address of the group admin. */
313
+ admin: string;
314
+ /** group_id is the unique ID of the group. */
315
+ groupId: bigint;
316
+ /** metadata is any arbitrary metadata attached to the group policy. */
317
+ metadata: string;
318
+ /** decision_policy specifies the group policy's decision policy. */
319
+ decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined;
320
+ }
321
+ export interface MsgCreateGroupPolicyProtoMsg {
322
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy";
323
+ value: Uint8Array;
324
+ }
325
+ export type MsgCreateGroupPolicyEncoded = Omit<MsgCreateGroupPolicy, "decisionPolicy"> & {
326
+ /** decision_policy specifies the group policy's decision policy. */decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined;
327
+ };
328
+ /**
329
+ * MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type.
330
+ * @name MsgCreateGroupPolicyAmino
331
+ * @package cosmos.group.v1
332
+ * @see proto type: cosmos.group.v1.MsgCreateGroupPolicy
333
+ */
334
+ export interface MsgCreateGroupPolicyAmino {
335
+ /**
336
+ * admin is the account address of the group admin.
337
+ */
338
+ admin?: string;
339
+ /**
340
+ * group_id is the unique ID of the group.
341
+ */
342
+ group_id?: string;
343
+ /**
344
+ * metadata is any arbitrary metadata attached to the group policy.
345
+ */
346
+ metadata?: string;
347
+ /**
348
+ * decision_policy specifies the group policy's decision policy.
349
+ */
350
+ decision_policy?: AnyAmino;
351
+ }
352
+ export interface MsgCreateGroupPolicyAminoMsg {
353
+ type: "cosmos-sdk/MsgCreateGroupPolicy";
354
+ value: MsgCreateGroupPolicyAmino;
355
+ }
356
+ /** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */
357
+ export interface MsgCreateGroupPolicySDKType {
358
+ admin: string;
359
+ group_id: bigint;
360
+ metadata: string;
361
+ decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined;
362
+ }
363
+ /** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */
364
+ export interface MsgCreateGroupPolicyResponse {
365
+ /** address is the account address of the newly created group policy. */
366
+ address: string;
367
+ }
368
+ export interface MsgCreateGroupPolicyResponseProtoMsg {
369
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse";
370
+ value: Uint8Array;
371
+ }
372
+ /**
373
+ * MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type.
374
+ * @name MsgCreateGroupPolicyResponseAmino
375
+ * @package cosmos.group.v1
376
+ * @see proto type: cosmos.group.v1.MsgCreateGroupPolicyResponse
377
+ */
378
+ export interface MsgCreateGroupPolicyResponseAmino {
379
+ /**
380
+ * address is the account address of the newly created group policy.
381
+ */
382
+ address?: string;
383
+ }
384
+ export interface MsgCreateGroupPolicyResponseAminoMsg {
385
+ type: "cosmos-sdk/MsgCreateGroupPolicyResponse";
386
+ value: MsgCreateGroupPolicyResponseAmino;
387
+ }
388
+ /** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */
389
+ export interface MsgCreateGroupPolicyResponseSDKType {
390
+ address: string;
391
+ }
392
+ /** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */
393
+ export interface MsgUpdateGroupPolicyAdmin {
394
+ /** admin is the account address of the group admin. */
395
+ admin: string;
396
+ /** group_policy_address is the account address of the group policy. */
397
+ groupPolicyAddress: string;
398
+ /** new_admin is the new group policy admin. */
399
+ newAdmin: string;
400
+ }
401
+ export interface MsgUpdateGroupPolicyAdminProtoMsg {
402
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin";
403
+ value: Uint8Array;
404
+ }
405
+ /**
406
+ * MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type.
407
+ * @name MsgUpdateGroupPolicyAdminAmino
408
+ * @package cosmos.group.v1
409
+ * @see proto type: cosmos.group.v1.MsgUpdateGroupPolicyAdmin
410
+ */
411
+ export interface MsgUpdateGroupPolicyAdminAmino {
412
+ /**
413
+ * admin is the account address of the group admin.
414
+ */
415
+ admin?: string;
416
+ /**
417
+ * group_policy_address is the account address of the group policy.
418
+ */
419
+ group_policy_address?: string;
420
+ /**
421
+ * new_admin is the new group policy admin.
422
+ */
423
+ new_admin?: string;
424
+ }
425
+ export interface MsgUpdateGroupPolicyAdminAminoMsg {
426
+ type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin";
427
+ value: MsgUpdateGroupPolicyAdminAmino;
428
+ }
429
+ /** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */
430
+ export interface MsgUpdateGroupPolicyAdminSDKType {
431
+ admin: string;
432
+ group_policy_address: string;
433
+ new_admin: string;
434
+ }
435
+ /** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */
436
+ export interface MsgUpdateGroupPolicyAdminResponse {}
437
+ export interface MsgUpdateGroupPolicyAdminResponseProtoMsg {
438
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse";
439
+ value: Uint8Array;
440
+ }
441
+ /**
442
+ * MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type.
443
+ * @name MsgUpdateGroupPolicyAdminResponseAmino
444
+ * @package cosmos.group.v1
445
+ * @see proto type: cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse
446
+ */
447
+ export interface MsgUpdateGroupPolicyAdminResponseAmino {}
448
+ export interface MsgUpdateGroupPolicyAdminResponseAminoMsg {
449
+ type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse";
450
+ value: MsgUpdateGroupPolicyAdminResponseAmino;
451
+ }
452
+ /** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */
453
+ export interface MsgUpdateGroupPolicyAdminResponseSDKType {}
454
+ /** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */
455
+ export interface MsgCreateGroupWithPolicy {
456
+ /** admin is the account address of the group and group policy admin. */
457
+ admin: string;
458
+ /** members defines the group members. */
459
+ members: MemberRequest[];
460
+ /** group_metadata is any arbitrary metadata attached to the group. */
461
+ groupMetadata: string;
462
+ /** group_policy_metadata is any arbitrary metadata attached to the group policy. */
463
+ groupPolicyMetadata: string;
464
+ /**
465
+ * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group
466
+ * and group policy admin.
467
+ */
468
+ groupPolicyAsAdmin: boolean;
469
+ /** decision_policy specifies the group policy's decision policy. */
470
+ decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined;
471
+ }
472
+ export interface MsgCreateGroupWithPolicyProtoMsg {
473
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy";
474
+ value: Uint8Array;
475
+ }
476
+ export type MsgCreateGroupWithPolicyEncoded = Omit<MsgCreateGroupWithPolicy, "decisionPolicy"> & {
477
+ /** decision_policy specifies the group policy's decision policy. */decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined;
478
+ };
479
+ /**
480
+ * MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type.
481
+ * @name MsgCreateGroupWithPolicyAmino
482
+ * @package cosmos.group.v1
483
+ * @see proto type: cosmos.group.v1.MsgCreateGroupWithPolicy
484
+ */
485
+ export interface MsgCreateGroupWithPolicyAmino {
486
+ /**
487
+ * admin is the account address of the group and group policy admin.
488
+ */
489
+ admin?: string;
490
+ /**
491
+ * members defines the group members.
492
+ */
493
+ members: MemberRequestAmino[];
494
+ /**
495
+ * group_metadata is any arbitrary metadata attached to the group.
496
+ */
497
+ group_metadata?: string;
498
+ /**
499
+ * group_policy_metadata is any arbitrary metadata attached to the group policy.
500
+ */
501
+ group_policy_metadata?: string;
502
+ /**
503
+ * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group
504
+ * and group policy admin.
505
+ */
506
+ group_policy_as_admin?: boolean;
507
+ /**
508
+ * decision_policy specifies the group policy's decision policy.
509
+ */
510
+ decision_policy?: AnyAmino;
511
+ }
512
+ export interface MsgCreateGroupWithPolicyAminoMsg {
513
+ type: "cosmos-sdk/MsgCreateGroupWithPolicy";
514
+ value: MsgCreateGroupWithPolicyAmino;
515
+ }
516
+ /** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */
517
+ export interface MsgCreateGroupWithPolicySDKType {
518
+ admin: string;
519
+ members: MemberRequestSDKType[];
520
+ group_metadata: string;
521
+ group_policy_metadata: string;
522
+ group_policy_as_admin: boolean;
523
+ decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined;
524
+ }
525
+ /** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */
526
+ export interface MsgCreateGroupWithPolicyResponse {
527
+ /** group_id is the unique ID of the newly created group with policy. */
528
+ groupId: bigint;
529
+ /** group_policy_address is the account address of the newly created group policy. */
530
+ groupPolicyAddress: string;
531
+ }
532
+ export interface MsgCreateGroupWithPolicyResponseProtoMsg {
533
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse";
534
+ value: Uint8Array;
535
+ }
536
+ /**
537
+ * MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type.
538
+ * @name MsgCreateGroupWithPolicyResponseAmino
539
+ * @package cosmos.group.v1
540
+ * @see proto type: cosmos.group.v1.MsgCreateGroupWithPolicyResponse
541
+ */
542
+ export interface MsgCreateGroupWithPolicyResponseAmino {
543
+ /**
544
+ * group_id is the unique ID of the newly created group with policy.
545
+ */
546
+ group_id?: string;
547
+ /**
548
+ * group_policy_address is the account address of the newly created group policy.
549
+ */
550
+ group_policy_address?: string;
551
+ }
552
+ export interface MsgCreateGroupWithPolicyResponseAminoMsg {
553
+ type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse";
554
+ value: MsgCreateGroupWithPolicyResponseAmino;
555
+ }
556
+ /** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */
557
+ export interface MsgCreateGroupWithPolicyResponseSDKType {
558
+ group_id: bigint;
559
+ group_policy_address: string;
560
+ }
561
+ /** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */
562
+ export interface MsgUpdateGroupPolicyDecisionPolicy {
563
+ /** admin is the account address of the group admin. */
564
+ admin: string;
565
+ /** group_policy_address is the account address of group policy. */
566
+ groupPolicyAddress: string;
567
+ /** decision_policy is the updated group policy's decision policy. */
568
+ decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined;
569
+ }
570
+ export interface MsgUpdateGroupPolicyDecisionPolicyProtoMsg {
571
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy";
572
+ value: Uint8Array;
573
+ }
574
+ export type MsgUpdateGroupPolicyDecisionPolicyEncoded = Omit<MsgUpdateGroupPolicyDecisionPolicy, "decisionPolicy"> & {
575
+ /** decision_policy is the updated group policy's decision policy. */decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined;
576
+ };
577
+ /**
578
+ * MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type.
579
+ * @name MsgUpdateGroupPolicyDecisionPolicyAmino
580
+ * @package cosmos.group.v1
581
+ * @see proto type: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy
582
+ */
583
+ export interface MsgUpdateGroupPolicyDecisionPolicyAmino {
584
+ /**
585
+ * admin is the account address of the group admin.
586
+ */
587
+ admin?: string;
588
+ /**
589
+ * group_policy_address is the account address of group policy.
590
+ */
591
+ group_policy_address?: string;
592
+ /**
593
+ * decision_policy is the updated group policy's decision policy.
594
+ */
595
+ decision_policy?: AnyAmino;
596
+ }
597
+ export interface MsgUpdateGroupPolicyDecisionPolicyAminoMsg {
598
+ type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy";
599
+ value: MsgUpdateGroupPolicyDecisionPolicyAmino;
600
+ }
601
+ /** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */
602
+ export interface MsgUpdateGroupPolicyDecisionPolicySDKType {
603
+ admin: string;
604
+ group_policy_address: string;
605
+ decision_policy?: ThresholdDecisionPolicySDKType | PercentageDecisionPolicySDKType | AnySDKType | undefined;
606
+ }
607
+ /** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */
608
+ export interface MsgUpdateGroupPolicyDecisionPolicyResponse {}
609
+ export interface MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg {
610
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse";
611
+ value: Uint8Array;
612
+ }
613
+ /**
614
+ * MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type.
615
+ * @name MsgUpdateGroupPolicyDecisionPolicyResponseAmino
616
+ * @package cosmos.group.v1
617
+ * @see proto type: cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse
618
+ */
619
+ export interface MsgUpdateGroupPolicyDecisionPolicyResponseAmino {}
620
+ export interface MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg {
621
+ type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse";
622
+ value: MsgUpdateGroupPolicyDecisionPolicyResponseAmino;
623
+ }
624
+ /** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */
625
+ export interface MsgUpdateGroupPolicyDecisionPolicyResponseSDKType {}
626
+ /** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */
627
+ export interface MsgUpdateGroupPolicyMetadata {
628
+ /** admin is the account address of the group admin. */
629
+ admin: string;
630
+ /** group_policy_address is the account address of group policy. */
631
+ groupPolicyAddress: string;
632
+ /** metadata is the group policy metadata to be updated. */
633
+ metadata: string;
634
+ }
635
+ export interface MsgUpdateGroupPolicyMetadataProtoMsg {
636
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata";
637
+ value: Uint8Array;
638
+ }
639
+ /**
640
+ * MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type.
641
+ * @name MsgUpdateGroupPolicyMetadataAmino
642
+ * @package cosmos.group.v1
643
+ * @see proto type: cosmos.group.v1.MsgUpdateGroupPolicyMetadata
644
+ */
645
+ export interface MsgUpdateGroupPolicyMetadataAmino {
646
+ /**
647
+ * admin is the account address of the group admin.
648
+ */
649
+ admin?: string;
650
+ /**
651
+ * group_policy_address is the account address of group policy.
652
+ */
653
+ group_policy_address?: string;
654
+ /**
655
+ * metadata is the group policy metadata to be updated.
656
+ */
657
+ metadata?: string;
658
+ }
659
+ export interface MsgUpdateGroupPolicyMetadataAminoMsg {
660
+ type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata";
661
+ value: MsgUpdateGroupPolicyMetadataAmino;
662
+ }
663
+ /** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */
664
+ export interface MsgUpdateGroupPolicyMetadataSDKType {
665
+ admin: string;
666
+ group_policy_address: string;
667
+ metadata: string;
668
+ }
669
+ /** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */
670
+ export interface MsgUpdateGroupPolicyMetadataResponse {}
671
+ export interface MsgUpdateGroupPolicyMetadataResponseProtoMsg {
672
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse";
673
+ value: Uint8Array;
674
+ }
675
+ /**
676
+ * MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type.
677
+ * @name MsgUpdateGroupPolicyMetadataResponseAmino
678
+ * @package cosmos.group.v1
679
+ * @see proto type: cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse
680
+ */
681
+ export interface MsgUpdateGroupPolicyMetadataResponseAmino {}
682
+ export interface MsgUpdateGroupPolicyMetadataResponseAminoMsg {
683
+ type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse";
684
+ value: MsgUpdateGroupPolicyMetadataResponseAmino;
685
+ }
686
+ /** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */
687
+ export interface MsgUpdateGroupPolicyMetadataResponseSDKType {}
688
+ /** MsgSubmitProposal is the Msg/SubmitProposal request type. */
689
+ export interface MsgSubmitProposal {
690
+ /** group_policy_address is the account address of group policy. */
691
+ groupPolicyAddress: string;
692
+ /**
693
+ * proposers are the account addresses of the proposers.
694
+ * Proposers signatures will be counted as yes votes.
695
+ */
696
+ proposers: string[];
697
+ /** metadata is any arbitrary metadata attached to the proposal. */
698
+ metadata: string;
699
+ /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */
700
+ messages: Any[];
701
+ /**
702
+ * exec defines the mode of execution of the proposal,
703
+ * whether it should be executed immediately on creation or not.
704
+ * If so, proposers signatures are considered as Yes votes.
705
+ */
706
+ exec: Exec;
707
+ /** title is the title of the proposal. */
708
+ title: string;
709
+ /** summary is the summary of the proposal. */
710
+ summary: string;
711
+ }
712
+ export interface MsgSubmitProposalProtoMsg {
713
+ typeUrl: "/cosmos.group.v1.MsgSubmitProposal";
714
+ value: Uint8Array;
715
+ }
716
+ /**
717
+ * MsgSubmitProposal is the Msg/SubmitProposal request type.
718
+ * @name MsgSubmitProposalAmino
719
+ * @package cosmos.group.v1
720
+ * @see proto type: cosmos.group.v1.MsgSubmitProposal
721
+ */
722
+ export interface MsgSubmitProposalAmino {
723
+ /**
724
+ * group_policy_address is the account address of group policy.
725
+ */
726
+ group_policy_address?: string;
727
+ /**
728
+ * proposers are the account addresses of the proposers.
729
+ * Proposers signatures will be counted as yes votes.
730
+ */
731
+ proposers?: string[];
732
+ /**
733
+ * metadata is any arbitrary metadata attached to the proposal.
734
+ */
735
+ metadata?: string;
736
+ /**
737
+ * messages is a list of `sdk.Msg`s that will be executed if the proposal passes.
738
+ */
739
+ messages?: AnyAmino[];
740
+ /**
741
+ * exec defines the mode of execution of the proposal,
742
+ * whether it should be executed immediately on creation or not.
743
+ * If so, proposers signatures are considered as Yes votes.
744
+ */
745
+ exec?: Exec;
746
+ /**
747
+ * title is the title of the proposal.
748
+ */
749
+ title?: string;
750
+ /**
751
+ * summary is the summary of the proposal.
752
+ */
753
+ summary?: string;
754
+ }
755
+ export interface MsgSubmitProposalAminoMsg {
756
+ type: "cosmos-sdk/group/MsgSubmitProposal";
757
+ value: MsgSubmitProposalAmino;
758
+ }
759
+ /** MsgSubmitProposal is the Msg/SubmitProposal request type. */
760
+ export interface MsgSubmitProposalSDKType {
761
+ group_policy_address: string;
762
+ proposers: string[];
763
+ metadata: string;
764
+ messages: AnySDKType[];
765
+ exec: Exec;
766
+ title: string;
767
+ summary: string;
768
+ }
769
+ /** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */
770
+ export interface MsgSubmitProposalResponse {
771
+ /** proposal is the unique ID of the proposal. */
772
+ proposalId: bigint;
773
+ }
774
+ export interface MsgSubmitProposalResponseProtoMsg {
775
+ typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse";
776
+ value: Uint8Array;
777
+ }
778
+ /**
779
+ * MsgSubmitProposalResponse is the Msg/SubmitProposal response type.
780
+ * @name MsgSubmitProposalResponseAmino
781
+ * @package cosmos.group.v1
782
+ * @see proto type: cosmos.group.v1.MsgSubmitProposalResponse
783
+ */
784
+ export interface MsgSubmitProposalResponseAmino {
785
+ /**
786
+ * proposal is the unique ID of the proposal.
787
+ */
788
+ proposal_id?: string;
789
+ }
790
+ export interface MsgSubmitProposalResponseAminoMsg {
791
+ type: "cosmos-sdk/MsgSubmitProposalResponse";
792
+ value: MsgSubmitProposalResponseAmino;
793
+ }
794
+ /** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */
795
+ export interface MsgSubmitProposalResponseSDKType {
796
+ proposal_id: bigint;
797
+ }
798
+ /** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */
799
+ export interface MsgWithdrawProposal {
800
+ /** proposal is the unique ID of the proposal. */
801
+ proposalId: bigint;
802
+ /** address is the admin of the group policy or one of the proposer of the proposal. */
803
+ address: string;
804
+ }
805
+ export interface MsgWithdrawProposalProtoMsg {
806
+ typeUrl: "/cosmos.group.v1.MsgWithdrawProposal";
807
+ value: Uint8Array;
808
+ }
809
+ /**
810
+ * MsgWithdrawProposal is the Msg/WithdrawProposal request type.
811
+ * @name MsgWithdrawProposalAmino
812
+ * @package cosmos.group.v1
813
+ * @see proto type: cosmos.group.v1.MsgWithdrawProposal
814
+ */
815
+ export interface MsgWithdrawProposalAmino {
816
+ /**
817
+ * proposal is the unique ID of the proposal.
818
+ */
819
+ proposal_id?: string;
820
+ /**
821
+ * address is the admin of the group policy or one of the proposer of the proposal.
822
+ */
823
+ address?: string;
824
+ }
825
+ export interface MsgWithdrawProposalAminoMsg {
826
+ type: "cosmos-sdk/group/MsgWithdrawProposal";
827
+ value: MsgWithdrawProposalAmino;
828
+ }
829
+ /** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */
830
+ export interface MsgWithdrawProposalSDKType {
831
+ proposal_id: bigint;
832
+ address: string;
833
+ }
834
+ /** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */
835
+ export interface MsgWithdrawProposalResponse {}
836
+ export interface MsgWithdrawProposalResponseProtoMsg {
837
+ typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse";
838
+ value: Uint8Array;
839
+ }
840
+ /**
841
+ * MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type.
842
+ * @name MsgWithdrawProposalResponseAmino
843
+ * @package cosmos.group.v1
844
+ * @see proto type: cosmos.group.v1.MsgWithdrawProposalResponse
845
+ */
846
+ export interface MsgWithdrawProposalResponseAmino {}
847
+ export interface MsgWithdrawProposalResponseAminoMsg {
848
+ type: "cosmos-sdk/MsgWithdrawProposalResponse";
849
+ value: MsgWithdrawProposalResponseAmino;
850
+ }
851
+ /** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */
852
+ export interface MsgWithdrawProposalResponseSDKType {}
853
+ /** MsgVote is the Msg/Vote request type. */
854
+ export interface MsgVote {
855
+ /** proposal is the unique ID of the proposal. */
856
+ proposalId: bigint;
857
+ /** voter is the voter account address. */
858
+ voter: string;
859
+ /** option is the voter's choice on the proposal. */
860
+ option: VoteOption;
861
+ /** metadata is any arbitrary metadata attached to the vote. */
862
+ metadata: string;
863
+ /**
864
+ * exec defines whether the proposal should be executed
865
+ * immediately after voting or not.
866
+ */
867
+ exec: Exec;
868
+ }
869
+ export interface MsgVoteProtoMsg {
870
+ typeUrl: "/cosmos.group.v1.MsgVote";
871
+ value: Uint8Array;
872
+ }
873
+ /**
874
+ * MsgVote is the Msg/Vote request type.
875
+ * @name MsgVoteAmino
876
+ * @package cosmos.group.v1
877
+ * @see proto type: cosmos.group.v1.MsgVote
878
+ */
879
+ export interface MsgVoteAmino {
880
+ /**
881
+ * proposal is the unique ID of the proposal.
882
+ */
883
+ proposal_id?: string;
884
+ /**
885
+ * voter is the voter account address.
886
+ */
887
+ voter?: string;
888
+ /**
889
+ * option is the voter's choice on the proposal.
890
+ */
891
+ option?: VoteOption;
892
+ /**
893
+ * metadata is any arbitrary metadata attached to the vote.
894
+ */
895
+ metadata?: string;
896
+ /**
897
+ * exec defines whether the proposal should be executed
898
+ * immediately after voting or not.
899
+ */
900
+ exec?: Exec;
901
+ }
902
+ export interface MsgVoteAminoMsg {
903
+ type: "cosmos-sdk/group/MsgVote";
904
+ value: MsgVoteAmino;
905
+ }
906
+ /** MsgVote is the Msg/Vote request type. */
907
+ export interface MsgVoteSDKType {
908
+ proposal_id: bigint;
909
+ voter: string;
910
+ option: VoteOption;
911
+ metadata: string;
912
+ exec: Exec;
913
+ }
914
+ /** MsgVoteResponse is the Msg/Vote response type. */
915
+ export interface MsgVoteResponse {}
916
+ export interface MsgVoteResponseProtoMsg {
917
+ typeUrl: "/cosmos.group.v1.MsgVoteResponse";
918
+ value: Uint8Array;
919
+ }
920
+ /**
921
+ * MsgVoteResponse is the Msg/Vote response type.
922
+ * @name MsgVoteResponseAmino
923
+ * @package cosmos.group.v1
924
+ * @see proto type: cosmos.group.v1.MsgVoteResponse
925
+ */
926
+ export interface MsgVoteResponseAmino {}
927
+ export interface MsgVoteResponseAminoMsg {
928
+ type: "cosmos-sdk/MsgVoteResponse";
929
+ value: MsgVoteResponseAmino;
930
+ }
931
+ /** MsgVoteResponse is the Msg/Vote response type. */
932
+ export interface MsgVoteResponseSDKType {}
933
+ /** MsgExec is the Msg/Exec request type. */
934
+ export interface MsgExec {
935
+ /** proposal is the unique ID of the proposal. */
936
+ proposalId: bigint;
937
+ /** executor is the account address used to execute the proposal. */
938
+ executor: string;
939
+ }
940
+ export interface MsgExecProtoMsg {
941
+ typeUrl: "/cosmos.group.v1.MsgExec";
942
+ value: Uint8Array;
943
+ }
944
+ /**
945
+ * MsgExec is the Msg/Exec request type.
946
+ * @name MsgExecAmino
947
+ * @package cosmos.group.v1
948
+ * @see proto type: cosmos.group.v1.MsgExec
949
+ */
950
+ export interface MsgExecAmino {
951
+ /**
952
+ * proposal is the unique ID of the proposal.
953
+ */
954
+ proposal_id?: string;
955
+ /**
956
+ * executor is the account address used to execute the proposal.
957
+ */
958
+ executor?: string;
959
+ }
960
+ export interface MsgExecAminoMsg {
961
+ type: "cosmos-sdk/group/MsgExec";
962
+ value: MsgExecAmino;
963
+ }
964
+ /** MsgExec is the Msg/Exec request type. */
965
+ export interface MsgExecSDKType {
966
+ proposal_id: bigint;
967
+ executor: string;
968
+ }
969
+ /** MsgExecResponse is the Msg/Exec request type. */
970
+ export interface MsgExecResponse {
971
+ /** result is the final result of the proposal execution. */
972
+ result: ProposalExecutorResult;
973
+ }
974
+ export interface MsgExecResponseProtoMsg {
975
+ typeUrl: "/cosmos.group.v1.MsgExecResponse";
976
+ value: Uint8Array;
977
+ }
978
+ /**
979
+ * MsgExecResponse is the Msg/Exec request type.
980
+ * @name MsgExecResponseAmino
981
+ * @package cosmos.group.v1
982
+ * @see proto type: cosmos.group.v1.MsgExecResponse
983
+ */
984
+ export interface MsgExecResponseAmino {
985
+ /**
986
+ * result is the final result of the proposal execution.
987
+ */
988
+ result?: ProposalExecutorResult;
989
+ }
990
+ export interface MsgExecResponseAminoMsg {
991
+ type: "cosmos-sdk/MsgExecResponse";
992
+ value: MsgExecResponseAmino;
993
+ }
994
+ /** MsgExecResponse is the Msg/Exec request type. */
995
+ export interface MsgExecResponseSDKType {
996
+ result: ProposalExecutorResult;
997
+ }
998
+ /** MsgLeaveGroup is the Msg/LeaveGroup request type. */
999
+ export interface MsgLeaveGroup {
1000
+ /** address is the account address of the group member. */
1001
+ address: string;
1002
+ /** group_id is the unique ID of the group. */
1003
+ groupId: bigint;
1004
+ }
1005
+ export interface MsgLeaveGroupProtoMsg {
1006
+ typeUrl: "/cosmos.group.v1.MsgLeaveGroup";
1007
+ value: Uint8Array;
1008
+ }
1009
+ /**
1010
+ * MsgLeaveGroup is the Msg/LeaveGroup request type.
1011
+ * @name MsgLeaveGroupAmino
1012
+ * @package cosmos.group.v1
1013
+ * @see proto type: cosmos.group.v1.MsgLeaveGroup
1014
+ */
1015
+ export interface MsgLeaveGroupAmino {
1016
+ /**
1017
+ * address is the account address of the group member.
1018
+ */
1019
+ address?: string;
1020
+ /**
1021
+ * group_id is the unique ID of the group.
1022
+ */
1023
+ group_id?: string;
1024
+ }
1025
+ export interface MsgLeaveGroupAminoMsg {
1026
+ type: "cosmos-sdk/group/MsgLeaveGroup";
1027
+ value: MsgLeaveGroupAmino;
1028
+ }
1029
+ /** MsgLeaveGroup is the Msg/LeaveGroup request type. */
1030
+ export interface MsgLeaveGroupSDKType {
1031
+ address: string;
1032
+ group_id: bigint;
1033
+ }
1034
+ /** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */
1035
+ export interface MsgLeaveGroupResponse {}
1036
+ export interface MsgLeaveGroupResponseProtoMsg {
1037
+ typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse";
1038
+ value: Uint8Array;
1039
+ }
1040
+ /**
1041
+ * MsgLeaveGroupResponse is the Msg/LeaveGroup response type.
1042
+ * @name MsgLeaveGroupResponseAmino
1043
+ * @package cosmos.group.v1
1044
+ * @see proto type: cosmos.group.v1.MsgLeaveGroupResponse
1045
+ */
1046
+ export interface MsgLeaveGroupResponseAmino {}
1047
+ export interface MsgLeaveGroupResponseAminoMsg {
1048
+ type: "cosmos-sdk/MsgLeaveGroupResponse";
1049
+ value: MsgLeaveGroupResponseAmino;
1050
+ }
1051
+ /** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */
1052
+ export interface MsgLeaveGroupResponseSDKType {}
1053
+ function createBaseMsgCreateGroup(): MsgCreateGroup {
1054
+ return {
1055
+ admin: "",
1056
+ members: [],
1057
+ metadata: ""
1058
+ };
1059
+ }
1060
+ export const MsgCreateGroup = {
1061
+ typeUrl: "/cosmos.group.v1.MsgCreateGroup",
1062
+ encode(message: MsgCreateGroup, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1063
+ if (message.admin !== "") {
1064
+ writer.uint32(10).string(message.admin);
1065
+ }
1066
+ for (const v of message.members) {
1067
+ MemberRequest.encode(v!, writer.uint32(18).fork()).ldelim();
1068
+ }
1069
+ if (message.metadata !== "") {
1070
+ writer.uint32(26).string(message.metadata);
1071
+ }
1072
+ return writer;
1073
+ },
1074
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroup {
1075
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1076
+ let end = length === undefined ? reader.len : reader.pos + length;
1077
+ const message = createBaseMsgCreateGroup();
1078
+ while (reader.pos < end) {
1079
+ const tag = reader.uint32();
1080
+ switch (tag >>> 3) {
1081
+ case 1:
1082
+ message.admin = reader.string();
1083
+ break;
1084
+ case 2:
1085
+ message.members.push(MemberRequest.decode(reader, reader.uint32()));
1086
+ break;
1087
+ case 3:
1088
+ message.metadata = reader.string();
1089
+ break;
1090
+ default:
1091
+ reader.skipType(tag & 7);
1092
+ break;
1093
+ }
1094
+ }
1095
+ return message;
1096
+ },
1097
+ fromPartial(object: Partial<MsgCreateGroup>): MsgCreateGroup {
1098
+ const message = createBaseMsgCreateGroup();
1099
+ message.admin = object.admin ?? "";
1100
+ message.members = object.members?.map(e => MemberRequest.fromPartial(e)) || [];
1101
+ message.metadata = object.metadata ?? "";
1102
+ return message;
1103
+ },
1104
+ fromAmino(object: MsgCreateGroupAmino): MsgCreateGroup {
1105
+ const message = createBaseMsgCreateGroup();
1106
+ if (object.admin !== undefined && object.admin !== null) {
1107
+ message.admin = object.admin;
1108
+ }
1109
+ message.members = object.members?.map(e => MemberRequest.fromAmino(e)) || [];
1110
+ if (object.metadata !== undefined && object.metadata !== null) {
1111
+ message.metadata = object.metadata;
1112
+ }
1113
+ return message;
1114
+ },
1115
+ toAmino(message: MsgCreateGroup): MsgCreateGroupAmino {
1116
+ const obj: any = {};
1117
+ obj.admin = message.admin === "" ? undefined : message.admin;
1118
+ if (message.members) {
1119
+ obj.members = message.members.map(e => e ? MemberRequest.toAmino(e) : undefined);
1120
+ } else {
1121
+ obj.members = message.members;
1122
+ }
1123
+ obj.metadata = message.metadata === "" ? undefined : message.metadata;
1124
+ return obj;
1125
+ },
1126
+ fromAminoMsg(object: MsgCreateGroupAminoMsg): MsgCreateGroup {
1127
+ return MsgCreateGroup.fromAmino(object.value);
1128
+ },
1129
+ toAminoMsg(message: MsgCreateGroup): MsgCreateGroupAminoMsg {
1130
+ return {
1131
+ type: "cosmos-sdk/MsgCreateGroup",
1132
+ value: MsgCreateGroup.toAmino(message)
1133
+ };
1134
+ },
1135
+ fromProtoMsg(message: MsgCreateGroupProtoMsg): MsgCreateGroup {
1136
+ return MsgCreateGroup.decode(message.value);
1137
+ },
1138
+ toProto(message: MsgCreateGroup): Uint8Array {
1139
+ return MsgCreateGroup.encode(message).finish();
1140
+ },
1141
+ toProtoMsg(message: MsgCreateGroup): MsgCreateGroupProtoMsg {
1142
+ return {
1143
+ typeUrl: "/cosmos.group.v1.MsgCreateGroup",
1144
+ value: MsgCreateGroup.encode(message).finish()
1145
+ };
1146
+ }
1147
+ };
1148
+ function createBaseMsgCreateGroupResponse(): MsgCreateGroupResponse {
1149
+ return {
1150
+ groupId: BigInt(0)
1151
+ };
1152
+ }
1153
+ export const MsgCreateGroupResponse = {
1154
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse",
1155
+ encode(message: MsgCreateGroupResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1156
+ if (message.groupId !== BigInt(0)) {
1157
+ writer.uint32(8).uint64(message.groupId);
1158
+ }
1159
+ return writer;
1160
+ },
1161
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupResponse {
1162
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1163
+ let end = length === undefined ? reader.len : reader.pos + length;
1164
+ const message = createBaseMsgCreateGroupResponse();
1165
+ while (reader.pos < end) {
1166
+ const tag = reader.uint32();
1167
+ switch (tag >>> 3) {
1168
+ case 1:
1169
+ message.groupId = reader.uint64();
1170
+ break;
1171
+ default:
1172
+ reader.skipType(tag & 7);
1173
+ break;
1174
+ }
1175
+ }
1176
+ return message;
1177
+ },
1178
+ fromPartial(object: Partial<MsgCreateGroupResponse>): MsgCreateGroupResponse {
1179
+ const message = createBaseMsgCreateGroupResponse();
1180
+ message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
1181
+ return message;
1182
+ },
1183
+ fromAmino(object: MsgCreateGroupResponseAmino): MsgCreateGroupResponse {
1184
+ const message = createBaseMsgCreateGroupResponse();
1185
+ if (object.group_id !== undefined && object.group_id !== null) {
1186
+ message.groupId = BigInt(object.group_id);
1187
+ }
1188
+ return message;
1189
+ },
1190
+ toAmino(message: MsgCreateGroupResponse): MsgCreateGroupResponseAmino {
1191
+ const obj: any = {};
1192
+ obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
1193
+ return obj;
1194
+ },
1195
+ fromAminoMsg(object: MsgCreateGroupResponseAminoMsg): MsgCreateGroupResponse {
1196
+ return MsgCreateGroupResponse.fromAmino(object.value);
1197
+ },
1198
+ toAminoMsg(message: MsgCreateGroupResponse): MsgCreateGroupResponseAminoMsg {
1199
+ return {
1200
+ type: "cosmos-sdk/MsgCreateGroupResponse",
1201
+ value: MsgCreateGroupResponse.toAmino(message)
1202
+ };
1203
+ },
1204
+ fromProtoMsg(message: MsgCreateGroupResponseProtoMsg): MsgCreateGroupResponse {
1205
+ return MsgCreateGroupResponse.decode(message.value);
1206
+ },
1207
+ toProto(message: MsgCreateGroupResponse): Uint8Array {
1208
+ return MsgCreateGroupResponse.encode(message).finish();
1209
+ },
1210
+ toProtoMsg(message: MsgCreateGroupResponse): MsgCreateGroupResponseProtoMsg {
1211
+ return {
1212
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse",
1213
+ value: MsgCreateGroupResponse.encode(message).finish()
1214
+ };
1215
+ }
1216
+ };
1217
+ function createBaseMsgUpdateGroupMembers(): MsgUpdateGroupMembers {
1218
+ return {
1219
+ admin: "",
1220
+ groupId: BigInt(0),
1221
+ memberUpdates: []
1222
+ };
1223
+ }
1224
+ export const MsgUpdateGroupMembers = {
1225
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers",
1226
+ encode(message: MsgUpdateGroupMembers, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1227
+ if (message.admin !== "") {
1228
+ writer.uint32(10).string(message.admin);
1229
+ }
1230
+ if (message.groupId !== BigInt(0)) {
1231
+ writer.uint32(16).uint64(message.groupId);
1232
+ }
1233
+ for (const v of message.memberUpdates) {
1234
+ MemberRequest.encode(v!, writer.uint32(26).fork()).ldelim();
1235
+ }
1236
+ return writer;
1237
+ },
1238
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembers {
1239
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1240
+ let end = length === undefined ? reader.len : reader.pos + length;
1241
+ const message = createBaseMsgUpdateGroupMembers();
1242
+ while (reader.pos < end) {
1243
+ const tag = reader.uint32();
1244
+ switch (tag >>> 3) {
1245
+ case 1:
1246
+ message.admin = reader.string();
1247
+ break;
1248
+ case 2:
1249
+ message.groupId = reader.uint64();
1250
+ break;
1251
+ case 3:
1252
+ message.memberUpdates.push(MemberRequest.decode(reader, reader.uint32()));
1253
+ break;
1254
+ default:
1255
+ reader.skipType(tag & 7);
1256
+ break;
1257
+ }
1258
+ }
1259
+ return message;
1260
+ },
1261
+ fromPartial(object: Partial<MsgUpdateGroupMembers>): MsgUpdateGroupMembers {
1262
+ const message = createBaseMsgUpdateGroupMembers();
1263
+ message.admin = object.admin ?? "";
1264
+ message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
1265
+ message.memberUpdates = object.memberUpdates?.map(e => MemberRequest.fromPartial(e)) || [];
1266
+ return message;
1267
+ },
1268
+ fromAmino(object: MsgUpdateGroupMembersAmino): MsgUpdateGroupMembers {
1269
+ const message = createBaseMsgUpdateGroupMembers();
1270
+ if (object.admin !== undefined && object.admin !== null) {
1271
+ message.admin = object.admin;
1272
+ }
1273
+ if (object.group_id !== undefined && object.group_id !== null) {
1274
+ message.groupId = BigInt(object.group_id);
1275
+ }
1276
+ message.memberUpdates = object.member_updates?.map(e => MemberRequest.fromAmino(e)) || [];
1277
+ return message;
1278
+ },
1279
+ toAmino(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersAmino {
1280
+ const obj: any = {};
1281
+ obj.admin = message.admin === "" ? undefined : message.admin;
1282
+ obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
1283
+ if (message.memberUpdates) {
1284
+ obj.member_updates = message.memberUpdates.map(e => e ? MemberRequest.toAmino(e) : undefined);
1285
+ } else {
1286
+ obj.member_updates = message.memberUpdates;
1287
+ }
1288
+ return obj;
1289
+ },
1290
+ fromAminoMsg(object: MsgUpdateGroupMembersAminoMsg): MsgUpdateGroupMembers {
1291
+ return MsgUpdateGroupMembers.fromAmino(object.value);
1292
+ },
1293
+ toAminoMsg(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersAminoMsg {
1294
+ return {
1295
+ type: "cosmos-sdk/MsgUpdateGroupMembers",
1296
+ value: MsgUpdateGroupMembers.toAmino(message)
1297
+ };
1298
+ },
1299
+ fromProtoMsg(message: MsgUpdateGroupMembersProtoMsg): MsgUpdateGroupMembers {
1300
+ return MsgUpdateGroupMembers.decode(message.value);
1301
+ },
1302
+ toProto(message: MsgUpdateGroupMembers): Uint8Array {
1303
+ return MsgUpdateGroupMembers.encode(message).finish();
1304
+ },
1305
+ toProtoMsg(message: MsgUpdateGroupMembers): MsgUpdateGroupMembersProtoMsg {
1306
+ return {
1307
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers",
1308
+ value: MsgUpdateGroupMembers.encode(message).finish()
1309
+ };
1310
+ }
1311
+ };
1312
+ function createBaseMsgUpdateGroupMembersResponse(): MsgUpdateGroupMembersResponse {
1313
+ return {};
1314
+ }
1315
+ export const MsgUpdateGroupMembersResponse = {
1316
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse",
1317
+ encode(_: MsgUpdateGroupMembersResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1318
+ return writer;
1319
+ },
1320
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembersResponse {
1321
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1322
+ let end = length === undefined ? reader.len : reader.pos + length;
1323
+ const message = createBaseMsgUpdateGroupMembersResponse();
1324
+ while (reader.pos < end) {
1325
+ const tag = reader.uint32();
1326
+ switch (tag >>> 3) {
1327
+ default:
1328
+ reader.skipType(tag & 7);
1329
+ break;
1330
+ }
1331
+ }
1332
+ return message;
1333
+ },
1334
+ fromPartial(_: Partial<MsgUpdateGroupMembersResponse>): MsgUpdateGroupMembersResponse {
1335
+ const message = createBaseMsgUpdateGroupMembersResponse();
1336
+ return message;
1337
+ },
1338
+ fromAmino(_: MsgUpdateGroupMembersResponseAmino): MsgUpdateGroupMembersResponse {
1339
+ const message = createBaseMsgUpdateGroupMembersResponse();
1340
+ return message;
1341
+ },
1342
+ toAmino(_: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseAmino {
1343
+ const obj: any = {};
1344
+ return obj;
1345
+ },
1346
+ fromAminoMsg(object: MsgUpdateGroupMembersResponseAminoMsg): MsgUpdateGroupMembersResponse {
1347
+ return MsgUpdateGroupMembersResponse.fromAmino(object.value);
1348
+ },
1349
+ toAminoMsg(message: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseAminoMsg {
1350
+ return {
1351
+ type: "cosmos-sdk/MsgUpdateGroupMembersResponse",
1352
+ value: MsgUpdateGroupMembersResponse.toAmino(message)
1353
+ };
1354
+ },
1355
+ fromProtoMsg(message: MsgUpdateGroupMembersResponseProtoMsg): MsgUpdateGroupMembersResponse {
1356
+ return MsgUpdateGroupMembersResponse.decode(message.value);
1357
+ },
1358
+ toProto(message: MsgUpdateGroupMembersResponse): Uint8Array {
1359
+ return MsgUpdateGroupMembersResponse.encode(message).finish();
1360
+ },
1361
+ toProtoMsg(message: MsgUpdateGroupMembersResponse): MsgUpdateGroupMembersResponseProtoMsg {
1362
+ return {
1363
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse",
1364
+ value: MsgUpdateGroupMembersResponse.encode(message).finish()
1365
+ };
1366
+ }
1367
+ };
1368
+ function createBaseMsgUpdateGroupAdmin(): MsgUpdateGroupAdmin {
1369
+ return {
1370
+ admin: "",
1371
+ groupId: BigInt(0),
1372
+ newAdmin: ""
1373
+ };
1374
+ }
1375
+ export const MsgUpdateGroupAdmin = {
1376
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin",
1377
+ encode(message: MsgUpdateGroupAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1378
+ if (message.admin !== "") {
1379
+ writer.uint32(10).string(message.admin);
1380
+ }
1381
+ if (message.groupId !== BigInt(0)) {
1382
+ writer.uint32(16).uint64(message.groupId);
1383
+ }
1384
+ if (message.newAdmin !== "") {
1385
+ writer.uint32(26).string(message.newAdmin);
1386
+ }
1387
+ return writer;
1388
+ },
1389
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdmin {
1390
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1391
+ let end = length === undefined ? reader.len : reader.pos + length;
1392
+ const message = createBaseMsgUpdateGroupAdmin();
1393
+ while (reader.pos < end) {
1394
+ const tag = reader.uint32();
1395
+ switch (tag >>> 3) {
1396
+ case 1:
1397
+ message.admin = reader.string();
1398
+ break;
1399
+ case 2:
1400
+ message.groupId = reader.uint64();
1401
+ break;
1402
+ case 3:
1403
+ message.newAdmin = reader.string();
1404
+ break;
1405
+ default:
1406
+ reader.skipType(tag & 7);
1407
+ break;
1408
+ }
1409
+ }
1410
+ return message;
1411
+ },
1412
+ fromPartial(object: Partial<MsgUpdateGroupAdmin>): MsgUpdateGroupAdmin {
1413
+ const message = createBaseMsgUpdateGroupAdmin();
1414
+ message.admin = object.admin ?? "";
1415
+ message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
1416
+ message.newAdmin = object.newAdmin ?? "";
1417
+ return message;
1418
+ },
1419
+ fromAmino(object: MsgUpdateGroupAdminAmino): MsgUpdateGroupAdmin {
1420
+ const message = createBaseMsgUpdateGroupAdmin();
1421
+ if (object.admin !== undefined && object.admin !== null) {
1422
+ message.admin = object.admin;
1423
+ }
1424
+ if (object.group_id !== undefined && object.group_id !== null) {
1425
+ message.groupId = BigInt(object.group_id);
1426
+ }
1427
+ if (object.new_admin !== undefined && object.new_admin !== null) {
1428
+ message.newAdmin = object.new_admin;
1429
+ }
1430
+ return message;
1431
+ },
1432
+ toAmino(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminAmino {
1433
+ const obj: any = {};
1434
+ obj.admin = message.admin === "" ? undefined : message.admin;
1435
+ obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
1436
+ obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin;
1437
+ return obj;
1438
+ },
1439
+ fromAminoMsg(object: MsgUpdateGroupAdminAminoMsg): MsgUpdateGroupAdmin {
1440
+ return MsgUpdateGroupAdmin.fromAmino(object.value);
1441
+ },
1442
+ toAminoMsg(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminAminoMsg {
1443
+ return {
1444
+ type: "cosmos-sdk/MsgUpdateGroupAdmin",
1445
+ value: MsgUpdateGroupAdmin.toAmino(message)
1446
+ };
1447
+ },
1448
+ fromProtoMsg(message: MsgUpdateGroupAdminProtoMsg): MsgUpdateGroupAdmin {
1449
+ return MsgUpdateGroupAdmin.decode(message.value);
1450
+ },
1451
+ toProto(message: MsgUpdateGroupAdmin): Uint8Array {
1452
+ return MsgUpdateGroupAdmin.encode(message).finish();
1453
+ },
1454
+ toProtoMsg(message: MsgUpdateGroupAdmin): MsgUpdateGroupAdminProtoMsg {
1455
+ return {
1456
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin",
1457
+ value: MsgUpdateGroupAdmin.encode(message).finish()
1458
+ };
1459
+ }
1460
+ };
1461
+ function createBaseMsgUpdateGroupAdminResponse(): MsgUpdateGroupAdminResponse {
1462
+ return {};
1463
+ }
1464
+ export const MsgUpdateGroupAdminResponse = {
1465
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse",
1466
+ encode(_: MsgUpdateGroupAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1467
+ return writer;
1468
+ },
1469
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdminResponse {
1470
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1471
+ let end = length === undefined ? reader.len : reader.pos + length;
1472
+ const message = createBaseMsgUpdateGroupAdminResponse();
1473
+ while (reader.pos < end) {
1474
+ const tag = reader.uint32();
1475
+ switch (tag >>> 3) {
1476
+ default:
1477
+ reader.skipType(tag & 7);
1478
+ break;
1479
+ }
1480
+ }
1481
+ return message;
1482
+ },
1483
+ fromPartial(_: Partial<MsgUpdateGroupAdminResponse>): MsgUpdateGroupAdminResponse {
1484
+ const message = createBaseMsgUpdateGroupAdminResponse();
1485
+ return message;
1486
+ },
1487
+ fromAmino(_: MsgUpdateGroupAdminResponseAmino): MsgUpdateGroupAdminResponse {
1488
+ const message = createBaseMsgUpdateGroupAdminResponse();
1489
+ return message;
1490
+ },
1491
+ toAmino(_: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseAmino {
1492
+ const obj: any = {};
1493
+ return obj;
1494
+ },
1495
+ fromAminoMsg(object: MsgUpdateGroupAdminResponseAminoMsg): MsgUpdateGroupAdminResponse {
1496
+ return MsgUpdateGroupAdminResponse.fromAmino(object.value);
1497
+ },
1498
+ toAminoMsg(message: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseAminoMsg {
1499
+ return {
1500
+ type: "cosmos-sdk/MsgUpdateGroupAdminResponse",
1501
+ value: MsgUpdateGroupAdminResponse.toAmino(message)
1502
+ };
1503
+ },
1504
+ fromProtoMsg(message: MsgUpdateGroupAdminResponseProtoMsg): MsgUpdateGroupAdminResponse {
1505
+ return MsgUpdateGroupAdminResponse.decode(message.value);
1506
+ },
1507
+ toProto(message: MsgUpdateGroupAdminResponse): Uint8Array {
1508
+ return MsgUpdateGroupAdminResponse.encode(message).finish();
1509
+ },
1510
+ toProtoMsg(message: MsgUpdateGroupAdminResponse): MsgUpdateGroupAdminResponseProtoMsg {
1511
+ return {
1512
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse",
1513
+ value: MsgUpdateGroupAdminResponse.encode(message).finish()
1514
+ };
1515
+ }
1516
+ };
1517
+ function createBaseMsgUpdateGroupMetadata(): MsgUpdateGroupMetadata {
1518
+ return {
1519
+ admin: "",
1520
+ groupId: BigInt(0),
1521
+ metadata: ""
1522
+ };
1523
+ }
1524
+ export const MsgUpdateGroupMetadata = {
1525
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata",
1526
+ encode(message: MsgUpdateGroupMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1527
+ if (message.admin !== "") {
1528
+ writer.uint32(10).string(message.admin);
1529
+ }
1530
+ if (message.groupId !== BigInt(0)) {
1531
+ writer.uint32(16).uint64(message.groupId);
1532
+ }
1533
+ if (message.metadata !== "") {
1534
+ writer.uint32(26).string(message.metadata);
1535
+ }
1536
+ return writer;
1537
+ },
1538
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadata {
1539
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1540
+ let end = length === undefined ? reader.len : reader.pos + length;
1541
+ const message = createBaseMsgUpdateGroupMetadata();
1542
+ while (reader.pos < end) {
1543
+ const tag = reader.uint32();
1544
+ switch (tag >>> 3) {
1545
+ case 1:
1546
+ message.admin = reader.string();
1547
+ break;
1548
+ case 2:
1549
+ message.groupId = reader.uint64();
1550
+ break;
1551
+ case 3:
1552
+ message.metadata = reader.string();
1553
+ break;
1554
+ default:
1555
+ reader.skipType(tag & 7);
1556
+ break;
1557
+ }
1558
+ }
1559
+ return message;
1560
+ },
1561
+ fromPartial(object: Partial<MsgUpdateGroupMetadata>): MsgUpdateGroupMetadata {
1562
+ const message = createBaseMsgUpdateGroupMetadata();
1563
+ message.admin = object.admin ?? "";
1564
+ message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
1565
+ message.metadata = object.metadata ?? "";
1566
+ return message;
1567
+ },
1568
+ fromAmino(object: MsgUpdateGroupMetadataAmino): MsgUpdateGroupMetadata {
1569
+ const message = createBaseMsgUpdateGroupMetadata();
1570
+ if (object.admin !== undefined && object.admin !== null) {
1571
+ message.admin = object.admin;
1572
+ }
1573
+ if (object.group_id !== undefined && object.group_id !== null) {
1574
+ message.groupId = BigInt(object.group_id);
1575
+ }
1576
+ if (object.metadata !== undefined && object.metadata !== null) {
1577
+ message.metadata = object.metadata;
1578
+ }
1579
+ return message;
1580
+ },
1581
+ toAmino(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataAmino {
1582
+ const obj: any = {};
1583
+ obj.admin = message.admin === "" ? undefined : message.admin;
1584
+ obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
1585
+ obj.metadata = message.metadata === "" ? undefined : message.metadata;
1586
+ return obj;
1587
+ },
1588
+ fromAminoMsg(object: MsgUpdateGroupMetadataAminoMsg): MsgUpdateGroupMetadata {
1589
+ return MsgUpdateGroupMetadata.fromAmino(object.value);
1590
+ },
1591
+ toAminoMsg(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataAminoMsg {
1592
+ return {
1593
+ type: "cosmos-sdk/MsgUpdateGroupMetadata",
1594
+ value: MsgUpdateGroupMetadata.toAmino(message)
1595
+ };
1596
+ },
1597
+ fromProtoMsg(message: MsgUpdateGroupMetadataProtoMsg): MsgUpdateGroupMetadata {
1598
+ return MsgUpdateGroupMetadata.decode(message.value);
1599
+ },
1600
+ toProto(message: MsgUpdateGroupMetadata): Uint8Array {
1601
+ return MsgUpdateGroupMetadata.encode(message).finish();
1602
+ },
1603
+ toProtoMsg(message: MsgUpdateGroupMetadata): MsgUpdateGroupMetadataProtoMsg {
1604
+ return {
1605
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata",
1606
+ value: MsgUpdateGroupMetadata.encode(message).finish()
1607
+ };
1608
+ }
1609
+ };
1610
+ function createBaseMsgUpdateGroupMetadataResponse(): MsgUpdateGroupMetadataResponse {
1611
+ return {};
1612
+ }
1613
+ export const MsgUpdateGroupMetadataResponse = {
1614
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse",
1615
+ encode(_: MsgUpdateGroupMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1616
+ return writer;
1617
+ },
1618
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadataResponse {
1619
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1620
+ let end = length === undefined ? reader.len : reader.pos + length;
1621
+ const message = createBaseMsgUpdateGroupMetadataResponse();
1622
+ while (reader.pos < end) {
1623
+ const tag = reader.uint32();
1624
+ switch (tag >>> 3) {
1625
+ default:
1626
+ reader.skipType(tag & 7);
1627
+ break;
1628
+ }
1629
+ }
1630
+ return message;
1631
+ },
1632
+ fromPartial(_: Partial<MsgUpdateGroupMetadataResponse>): MsgUpdateGroupMetadataResponse {
1633
+ const message = createBaseMsgUpdateGroupMetadataResponse();
1634
+ return message;
1635
+ },
1636
+ fromAmino(_: MsgUpdateGroupMetadataResponseAmino): MsgUpdateGroupMetadataResponse {
1637
+ const message = createBaseMsgUpdateGroupMetadataResponse();
1638
+ return message;
1639
+ },
1640
+ toAmino(_: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseAmino {
1641
+ const obj: any = {};
1642
+ return obj;
1643
+ },
1644
+ fromAminoMsg(object: MsgUpdateGroupMetadataResponseAminoMsg): MsgUpdateGroupMetadataResponse {
1645
+ return MsgUpdateGroupMetadataResponse.fromAmino(object.value);
1646
+ },
1647
+ toAminoMsg(message: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseAminoMsg {
1648
+ return {
1649
+ type: "cosmos-sdk/MsgUpdateGroupMetadataResponse",
1650
+ value: MsgUpdateGroupMetadataResponse.toAmino(message)
1651
+ };
1652
+ },
1653
+ fromProtoMsg(message: MsgUpdateGroupMetadataResponseProtoMsg): MsgUpdateGroupMetadataResponse {
1654
+ return MsgUpdateGroupMetadataResponse.decode(message.value);
1655
+ },
1656
+ toProto(message: MsgUpdateGroupMetadataResponse): Uint8Array {
1657
+ return MsgUpdateGroupMetadataResponse.encode(message).finish();
1658
+ },
1659
+ toProtoMsg(message: MsgUpdateGroupMetadataResponse): MsgUpdateGroupMetadataResponseProtoMsg {
1660
+ return {
1661
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse",
1662
+ value: MsgUpdateGroupMetadataResponse.encode(message).finish()
1663
+ };
1664
+ }
1665
+ };
1666
+ function createBaseMsgCreateGroupPolicy(): MsgCreateGroupPolicy {
1667
+ return {
1668
+ admin: "",
1669
+ groupId: BigInt(0),
1670
+ metadata: "",
1671
+ decisionPolicy: undefined
1672
+ };
1673
+ }
1674
+ export const MsgCreateGroupPolicy = {
1675
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy",
1676
+ encode(message: MsgCreateGroupPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1677
+ if (message.admin !== "") {
1678
+ writer.uint32(10).string(message.admin);
1679
+ }
1680
+ if (message.groupId !== BigInt(0)) {
1681
+ writer.uint32(16).uint64(message.groupId);
1682
+ }
1683
+ if (message.metadata !== "") {
1684
+ writer.uint32(26).string(message.metadata);
1685
+ }
1686
+ if (message.decisionPolicy !== undefined) {
1687
+ Any.encode(message.decisionPolicy as Any, writer.uint32(34).fork()).ldelim();
1688
+ }
1689
+ return writer;
1690
+ },
1691
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicy {
1692
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1693
+ let end = length === undefined ? reader.len : reader.pos + length;
1694
+ const message = createBaseMsgCreateGroupPolicy();
1695
+ while (reader.pos < end) {
1696
+ const tag = reader.uint32();
1697
+ switch (tag >>> 3) {
1698
+ case 1:
1699
+ message.admin = reader.string();
1700
+ break;
1701
+ case 2:
1702
+ message.groupId = reader.uint64();
1703
+ break;
1704
+ case 3:
1705
+ message.metadata = reader.string();
1706
+ break;
1707
+ case 4:
1708
+ message.decisionPolicy = Cosmos_groupv1DecisionPolicy_InterfaceDecoder(reader) as Any;
1709
+ break;
1710
+ default:
1711
+ reader.skipType(tag & 7);
1712
+ break;
1713
+ }
1714
+ }
1715
+ return message;
1716
+ },
1717
+ fromPartial(object: Partial<MsgCreateGroupPolicy>): MsgCreateGroupPolicy {
1718
+ const message = createBaseMsgCreateGroupPolicy();
1719
+ message.admin = object.admin ?? "";
1720
+ message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
1721
+ message.metadata = object.metadata ?? "";
1722
+ message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined;
1723
+ return message;
1724
+ },
1725
+ fromAmino(object: MsgCreateGroupPolicyAmino): MsgCreateGroupPolicy {
1726
+ const message = createBaseMsgCreateGroupPolicy();
1727
+ if (object.admin !== undefined && object.admin !== null) {
1728
+ message.admin = object.admin;
1729
+ }
1730
+ if (object.group_id !== undefined && object.group_id !== null) {
1731
+ message.groupId = BigInt(object.group_id);
1732
+ }
1733
+ if (object.metadata !== undefined && object.metadata !== null) {
1734
+ message.metadata = object.metadata;
1735
+ }
1736
+ if (object.decision_policy !== undefined && object.decision_policy !== null) {
1737
+ message.decisionPolicy = Cosmos_groupv1DecisionPolicy_FromAmino(object.decision_policy);
1738
+ }
1739
+ return message;
1740
+ },
1741
+ toAmino(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyAmino {
1742
+ const obj: any = {};
1743
+ obj.admin = message.admin === "" ? undefined : message.admin;
1744
+ obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
1745
+ obj.metadata = message.metadata === "" ? undefined : message.metadata;
1746
+ obj.decision_policy = message.decisionPolicy ? Cosmos_groupv1DecisionPolicy_ToAmino(message.decisionPolicy as Any) : undefined;
1747
+ return obj;
1748
+ },
1749
+ fromAminoMsg(object: MsgCreateGroupPolicyAminoMsg): MsgCreateGroupPolicy {
1750
+ return MsgCreateGroupPolicy.fromAmino(object.value);
1751
+ },
1752
+ toAminoMsg(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyAminoMsg {
1753
+ return {
1754
+ type: "cosmos-sdk/MsgCreateGroupPolicy",
1755
+ value: MsgCreateGroupPolicy.toAmino(message)
1756
+ };
1757
+ },
1758
+ fromProtoMsg(message: MsgCreateGroupPolicyProtoMsg): MsgCreateGroupPolicy {
1759
+ return MsgCreateGroupPolicy.decode(message.value);
1760
+ },
1761
+ toProto(message: MsgCreateGroupPolicy): Uint8Array {
1762
+ return MsgCreateGroupPolicy.encode(message).finish();
1763
+ },
1764
+ toProtoMsg(message: MsgCreateGroupPolicy): MsgCreateGroupPolicyProtoMsg {
1765
+ return {
1766
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy",
1767
+ value: MsgCreateGroupPolicy.encode(message).finish()
1768
+ };
1769
+ }
1770
+ };
1771
+ function createBaseMsgCreateGroupPolicyResponse(): MsgCreateGroupPolicyResponse {
1772
+ return {
1773
+ address: ""
1774
+ };
1775
+ }
1776
+ export const MsgCreateGroupPolicyResponse = {
1777
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse",
1778
+ encode(message: MsgCreateGroupPolicyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1779
+ if (message.address !== "") {
1780
+ writer.uint32(10).string(message.address);
1781
+ }
1782
+ return writer;
1783
+ },
1784
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicyResponse {
1785
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1786
+ let end = length === undefined ? reader.len : reader.pos + length;
1787
+ const message = createBaseMsgCreateGroupPolicyResponse();
1788
+ while (reader.pos < end) {
1789
+ const tag = reader.uint32();
1790
+ switch (tag >>> 3) {
1791
+ case 1:
1792
+ message.address = reader.string();
1793
+ break;
1794
+ default:
1795
+ reader.skipType(tag & 7);
1796
+ break;
1797
+ }
1798
+ }
1799
+ return message;
1800
+ },
1801
+ fromPartial(object: Partial<MsgCreateGroupPolicyResponse>): MsgCreateGroupPolicyResponse {
1802
+ const message = createBaseMsgCreateGroupPolicyResponse();
1803
+ message.address = object.address ?? "";
1804
+ return message;
1805
+ },
1806
+ fromAmino(object: MsgCreateGroupPolicyResponseAmino): MsgCreateGroupPolicyResponse {
1807
+ const message = createBaseMsgCreateGroupPolicyResponse();
1808
+ if (object.address !== undefined && object.address !== null) {
1809
+ message.address = object.address;
1810
+ }
1811
+ return message;
1812
+ },
1813
+ toAmino(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseAmino {
1814
+ const obj: any = {};
1815
+ obj.address = message.address === "" ? undefined : message.address;
1816
+ return obj;
1817
+ },
1818
+ fromAminoMsg(object: MsgCreateGroupPolicyResponseAminoMsg): MsgCreateGroupPolicyResponse {
1819
+ return MsgCreateGroupPolicyResponse.fromAmino(object.value);
1820
+ },
1821
+ toAminoMsg(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseAminoMsg {
1822
+ return {
1823
+ type: "cosmos-sdk/MsgCreateGroupPolicyResponse",
1824
+ value: MsgCreateGroupPolicyResponse.toAmino(message)
1825
+ };
1826
+ },
1827
+ fromProtoMsg(message: MsgCreateGroupPolicyResponseProtoMsg): MsgCreateGroupPolicyResponse {
1828
+ return MsgCreateGroupPolicyResponse.decode(message.value);
1829
+ },
1830
+ toProto(message: MsgCreateGroupPolicyResponse): Uint8Array {
1831
+ return MsgCreateGroupPolicyResponse.encode(message).finish();
1832
+ },
1833
+ toProtoMsg(message: MsgCreateGroupPolicyResponse): MsgCreateGroupPolicyResponseProtoMsg {
1834
+ return {
1835
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse",
1836
+ value: MsgCreateGroupPolicyResponse.encode(message).finish()
1837
+ };
1838
+ }
1839
+ };
1840
+ function createBaseMsgUpdateGroupPolicyAdmin(): MsgUpdateGroupPolicyAdmin {
1841
+ return {
1842
+ admin: "",
1843
+ groupPolicyAddress: "",
1844
+ newAdmin: ""
1845
+ };
1846
+ }
1847
+ export const MsgUpdateGroupPolicyAdmin = {
1848
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",
1849
+ encode(message: MsgUpdateGroupPolicyAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1850
+ if (message.admin !== "") {
1851
+ writer.uint32(10).string(message.admin);
1852
+ }
1853
+ if (message.groupPolicyAddress !== "") {
1854
+ writer.uint32(18).string(message.groupPolicyAddress);
1855
+ }
1856
+ if (message.newAdmin !== "") {
1857
+ writer.uint32(26).string(message.newAdmin);
1858
+ }
1859
+ return writer;
1860
+ },
1861
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdmin {
1862
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1863
+ let end = length === undefined ? reader.len : reader.pos + length;
1864
+ const message = createBaseMsgUpdateGroupPolicyAdmin();
1865
+ while (reader.pos < end) {
1866
+ const tag = reader.uint32();
1867
+ switch (tag >>> 3) {
1868
+ case 1:
1869
+ message.admin = reader.string();
1870
+ break;
1871
+ case 2:
1872
+ message.groupPolicyAddress = reader.string();
1873
+ break;
1874
+ case 3:
1875
+ message.newAdmin = reader.string();
1876
+ break;
1877
+ default:
1878
+ reader.skipType(tag & 7);
1879
+ break;
1880
+ }
1881
+ }
1882
+ return message;
1883
+ },
1884
+ fromPartial(object: Partial<MsgUpdateGroupPolicyAdmin>): MsgUpdateGroupPolicyAdmin {
1885
+ const message = createBaseMsgUpdateGroupPolicyAdmin();
1886
+ message.admin = object.admin ?? "";
1887
+ message.groupPolicyAddress = object.groupPolicyAddress ?? "";
1888
+ message.newAdmin = object.newAdmin ?? "";
1889
+ return message;
1890
+ },
1891
+ fromAmino(object: MsgUpdateGroupPolicyAdminAmino): MsgUpdateGroupPolicyAdmin {
1892
+ const message = createBaseMsgUpdateGroupPolicyAdmin();
1893
+ if (object.admin !== undefined && object.admin !== null) {
1894
+ message.admin = object.admin;
1895
+ }
1896
+ if (object.group_policy_address !== undefined && object.group_policy_address !== null) {
1897
+ message.groupPolicyAddress = object.group_policy_address;
1898
+ }
1899
+ if (object.new_admin !== undefined && object.new_admin !== null) {
1900
+ message.newAdmin = object.new_admin;
1901
+ }
1902
+ return message;
1903
+ },
1904
+ toAmino(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminAmino {
1905
+ const obj: any = {};
1906
+ obj.admin = message.admin === "" ? undefined : message.admin;
1907
+ obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress;
1908
+ obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin;
1909
+ return obj;
1910
+ },
1911
+ fromAminoMsg(object: MsgUpdateGroupPolicyAdminAminoMsg): MsgUpdateGroupPolicyAdmin {
1912
+ return MsgUpdateGroupPolicyAdmin.fromAmino(object.value);
1913
+ },
1914
+ toAminoMsg(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminAminoMsg {
1915
+ return {
1916
+ type: "cosmos-sdk/MsgUpdateGroupPolicyAdmin",
1917
+ value: MsgUpdateGroupPolicyAdmin.toAmino(message)
1918
+ };
1919
+ },
1920
+ fromProtoMsg(message: MsgUpdateGroupPolicyAdminProtoMsg): MsgUpdateGroupPolicyAdmin {
1921
+ return MsgUpdateGroupPolicyAdmin.decode(message.value);
1922
+ },
1923
+ toProto(message: MsgUpdateGroupPolicyAdmin): Uint8Array {
1924
+ return MsgUpdateGroupPolicyAdmin.encode(message).finish();
1925
+ },
1926
+ toProtoMsg(message: MsgUpdateGroupPolicyAdmin): MsgUpdateGroupPolicyAdminProtoMsg {
1927
+ return {
1928
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin",
1929
+ value: MsgUpdateGroupPolicyAdmin.encode(message).finish()
1930
+ };
1931
+ }
1932
+ };
1933
+ function createBaseMsgUpdateGroupPolicyAdminResponse(): MsgUpdateGroupPolicyAdminResponse {
1934
+ return {};
1935
+ }
1936
+ export const MsgUpdateGroupPolicyAdminResponse = {
1937
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse",
1938
+ encode(_: MsgUpdateGroupPolicyAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1939
+ return writer;
1940
+ },
1941
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdminResponse {
1942
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1943
+ let end = length === undefined ? reader.len : reader.pos + length;
1944
+ const message = createBaseMsgUpdateGroupPolicyAdminResponse();
1945
+ while (reader.pos < end) {
1946
+ const tag = reader.uint32();
1947
+ switch (tag >>> 3) {
1948
+ default:
1949
+ reader.skipType(tag & 7);
1950
+ break;
1951
+ }
1952
+ }
1953
+ return message;
1954
+ },
1955
+ fromPartial(_: Partial<MsgUpdateGroupPolicyAdminResponse>): MsgUpdateGroupPolicyAdminResponse {
1956
+ const message = createBaseMsgUpdateGroupPolicyAdminResponse();
1957
+ return message;
1958
+ },
1959
+ fromAmino(_: MsgUpdateGroupPolicyAdminResponseAmino): MsgUpdateGroupPolicyAdminResponse {
1960
+ const message = createBaseMsgUpdateGroupPolicyAdminResponse();
1961
+ return message;
1962
+ },
1963
+ toAmino(_: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseAmino {
1964
+ const obj: any = {};
1965
+ return obj;
1966
+ },
1967
+ fromAminoMsg(object: MsgUpdateGroupPolicyAdminResponseAminoMsg): MsgUpdateGroupPolicyAdminResponse {
1968
+ return MsgUpdateGroupPolicyAdminResponse.fromAmino(object.value);
1969
+ },
1970
+ toAminoMsg(message: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseAminoMsg {
1971
+ return {
1972
+ type: "cosmos-sdk/MsgUpdateGroupPolicyAdminResponse",
1973
+ value: MsgUpdateGroupPolicyAdminResponse.toAmino(message)
1974
+ };
1975
+ },
1976
+ fromProtoMsg(message: MsgUpdateGroupPolicyAdminResponseProtoMsg): MsgUpdateGroupPolicyAdminResponse {
1977
+ return MsgUpdateGroupPolicyAdminResponse.decode(message.value);
1978
+ },
1979
+ toProto(message: MsgUpdateGroupPolicyAdminResponse): Uint8Array {
1980
+ return MsgUpdateGroupPolicyAdminResponse.encode(message).finish();
1981
+ },
1982
+ toProtoMsg(message: MsgUpdateGroupPolicyAdminResponse): MsgUpdateGroupPolicyAdminResponseProtoMsg {
1983
+ return {
1984
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse",
1985
+ value: MsgUpdateGroupPolicyAdminResponse.encode(message).finish()
1986
+ };
1987
+ }
1988
+ };
1989
+ function createBaseMsgCreateGroupWithPolicy(): MsgCreateGroupWithPolicy {
1990
+ return {
1991
+ admin: "",
1992
+ members: [],
1993
+ groupMetadata: "",
1994
+ groupPolicyMetadata: "",
1995
+ groupPolicyAsAdmin: false,
1996
+ decisionPolicy: undefined
1997
+ };
1998
+ }
1999
+ export const MsgCreateGroupWithPolicy = {
2000
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy",
2001
+ encode(message: MsgCreateGroupWithPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2002
+ if (message.admin !== "") {
2003
+ writer.uint32(10).string(message.admin);
2004
+ }
2005
+ for (const v of message.members) {
2006
+ MemberRequest.encode(v!, writer.uint32(18).fork()).ldelim();
2007
+ }
2008
+ if (message.groupMetadata !== "") {
2009
+ writer.uint32(26).string(message.groupMetadata);
2010
+ }
2011
+ if (message.groupPolicyMetadata !== "") {
2012
+ writer.uint32(34).string(message.groupPolicyMetadata);
2013
+ }
2014
+ if (message.groupPolicyAsAdmin === true) {
2015
+ writer.uint32(40).bool(message.groupPolicyAsAdmin);
2016
+ }
2017
+ if (message.decisionPolicy !== undefined) {
2018
+ Any.encode(message.decisionPolicy as Any, writer.uint32(50).fork()).ldelim();
2019
+ }
2020
+ return writer;
2021
+ },
2022
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicy {
2023
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2024
+ let end = length === undefined ? reader.len : reader.pos + length;
2025
+ const message = createBaseMsgCreateGroupWithPolicy();
2026
+ while (reader.pos < end) {
2027
+ const tag = reader.uint32();
2028
+ switch (tag >>> 3) {
2029
+ case 1:
2030
+ message.admin = reader.string();
2031
+ break;
2032
+ case 2:
2033
+ message.members.push(MemberRequest.decode(reader, reader.uint32()));
2034
+ break;
2035
+ case 3:
2036
+ message.groupMetadata = reader.string();
2037
+ break;
2038
+ case 4:
2039
+ message.groupPolicyMetadata = reader.string();
2040
+ break;
2041
+ case 5:
2042
+ message.groupPolicyAsAdmin = reader.bool();
2043
+ break;
2044
+ case 6:
2045
+ message.decisionPolicy = Cosmos_groupv1DecisionPolicy_InterfaceDecoder(reader) as Any;
2046
+ break;
2047
+ default:
2048
+ reader.skipType(tag & 7);
2049
+ break;
2050
+ }
2051
+ }
2052
+ return message;
2053
+ },
2054
+ fromPartial(object: Partial<MsgCreateGroupWithPolicy>): MsgCreateGroupWithPolicy {
2055
+ const message = createBaseMsgCreateGroupWithPolicy();
2056
+ message.admin = object.admin ?? "";
2057
+ message.members = object.members?.map(e => MemberRequest.fromPartial(e)) || [];
2058
+ message.groupMetadata = object.groupMetadata ?? "";
2059
+ message.groupPolicyMetadata = object.groupPolicyMetadata ?? "";
2060
+ message.groupPolicyAsAdmin = object.groupPolicyAsAdmin ?? false;
2061
+ message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined;
2062
+ return message;
2063
+ },
2064
+ fromAmino(object: MsgCreateGroupWithPolicyAmino): MsgCreateGroupWithPolicy {
2065
+ const message = createBaseMsgCreateGroupWithPolicy();
2066
+ if (object.admin !== undefined && object.admin !== null) {
2067
+ message.admin = object.admin;
2068
+ }
2069
+ message.members = object.members?.map(e => MemberRequest.fromAmino(e)) || [];
2070
+ if (object.group_metadata !== undefined && object.group_metadata !== null) {
2071
+ message.groupMetadata = object.group_metadata;
2072
+ }
2073
+ if (object.group_policy_metadata !== undefined && object.group_policy_metadata !== null) {
2074
+ message.groupPolicyMetadata = object.group_policy_metadata;
2075
+ }
2076
+ if (object.group_policy_as_admin !== undefined && object.group_policy_as_admin !== null) {
2077
+ message.groupPolicyAsAdmin = object.group_policy_as_admin;
2078
+ }
2079
+ if (object.decision_policy !== undefined && object.decision_policy !== null) {
2080
+ message.decisionPolicy = Cosmos_groupv1DecisionPolicy_FromAmino(object.decision_policy);
2081
+ }
2082
+ return message;
2083
+ },
2084
+ toAmino(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyAmino {
2085
+ const obj: any = {};
2086
+ obj.admin = message.admin === "" ? undefined : message.admin;
2087
+ if (message.members) {
2088
+ obj.members = message.members.map(e => e ? MemberRequest.toAmino(e) : undefined);
2089
+ } else {
2090
+ obj.members = message.members;
2091
+ }
2092
+ obj.group_metadata = message.groupMetadata === "" ? undefined : message.groupMetadata;
2093
+ obj.group_policy_metadata = message.groupPolicyMetadata === "" ? undefined : message.groupPolicyMetadata;
2094
+ obj.group_policy_as_admin = message.groupPolicyAsAdmin === false ? undefined : message.groupPolicyAsAdmin;
2095
+ obj.decision_policy = message.decisionPolicy ? Cosmos_groupv1DecisionPolicy_ToAmino(message.decisionPolicy as Any) : undefined;
2096
+ return obj;
2097
+ },
2098
+ fromAminoMsg(object: MsgCreateGroupWithPolicyAminoMsg): MsgCreateGroupWithPolicy {
2099
+ return MsgCreateGroupWithPolicy.fromAmino(object.value);
2100
+ },
2101
+ toAminoMsg(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyAminoMsg {
2102
+ return {
2103
+ type: "cosmos-sdk/MsgCreateGroupWithPolicy",
2104
+ value: MsgCreateGroupWithPolicy.toAmino(message)
2105
+ };
2106
+ },
2107
+ fromProtoMsg(message: MsgCreateGroupWithPolicyProtoMsg): MsgCreateGroupWithPolicy {
2108
+ return MsgCreateGroupWithPolicy.decode(message.value);
2109
+ },
2110
+ toProto(message: MsgCreateGroupWithPolicy): Uint8Array {
2111
+ return MsgCreateGroupWithPolicy.encode(message).finish();
2112
+ },
2113
+ toProtoMsg(message: MsgCreateGroupWithPolicy): MsgCreateGroupWithPolicyProtoMsg {
2114
+ return {
2115
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy",
2116
+ value: MsgCreateGroupWithPolicy.encode(message).finish()
2117
+ };
2118
+ }
2119
+ };
2120
+ function createBaseMsgCreateGroupWithPolicyResponse(): MsgCreateGroupWithPolicyResponse {
2121
+ return {
2122
+ groupId: BigInt(0),
2123
+ groupPolicyAddress: ""
2124
+ };
2125
+ }
2126
+ export const MsgCreateGroupWithPolicyResponse = {
2127
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse",
2128
+ encode(message: MsgCreateGroupWithPolicyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2129
+ if (message.groupId !== BigInt(0)) {
2130
+ writer.uint32(8).uint64(message.groupId);
2131
+ }
2132
+ if (message.groupPolicyAddress !== "") {
2133
+ writer.uint32(18).string(message.groupPolicyAddress);
2134
+ }
2135
+ return writer;
2136
+ },
2137
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicyResponse {
2138
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2139
+ let end = length === undefined ? reader.len : reader.pos + length;
2140
+ const message = createBaseMsgCreateGroupWithPolicyResponse();
2141
+ while (reader.pos < end) {
2142
+ const tag = reader.uint32();
2143
+ switch (tag >>> 3) {
2144
+ case 1:
2145
+ message.groupId = reader.uint64();
2146
+ break;
2147
+ case 2:
2148
+ message.groupPolicyAddress = reader.string();
2149
+ break;
2150
+ default:
2151
+ reader.skipType(tag & 7);
2152
+ break;
2153
+ }
2154
+ }
2155
+ return message;
2156
+ },
2157
+ fromPartial(object: Partial<MsgCreateGroupWithPolicyResponse>): MsgCreateGroupWithPolicyResponse {
2158
+ const message = createBaseMsgCreateGroupWithPolicyResponse();
2159
+ message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
2160
+ message.groupPolicyAddress = object.groupPolicyAddress ?? "";
2161
+ return message;
2162
+ },
2163
+ fromAmino(object: MsgCreateGroupWithPolicyResponseAmino): MsgCreateGroupWithPolicyResponse {
2164
+ const message = createBaseMsgCreateGroupWithPolicyResponse();
2165
+ if (object.group_id !== undefined && object.group_id !== null) {
2166
+ message.groupId = BigInt(object.group_id);
2167
+ }
2168
+ if (object.group_policy_address !== undefined && object.group_policy_address !== null) {
2169
+ message.groupPolicyAddress = object.group_policy_address;
2170
+ }
2171
+ return message;
2172
+ },
2173
+ toAmino(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseAmino {
2174
+ const obj: any = {};
2175
+ obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
2176
+ obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress;
2177
+ return obj;
2178
+ },
2179
+ fromAminoMsg(object: MsgCreateGroupWithPolicyResponseAminoMsg): MsgCreateGroupWithPolicyResponse {
2180
+ return MsgCreateGroupWithPolicyResponse.fromAmino(object.value);
2181
+ },
2182
+ toAminoMsg(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseAminoMsg {
2183
+ return {
2184
+ type: "cosmos-sdk/MsgCreateGroupWithPolicyResponse",
2185
+ value: MsgCreateGroupWithPolicyResponse.toAmino(message)
2186
+ };
2187
+ },
2188
+ fromProtoMsg(message: MsgCreateGroupWithPolicyResponseProtoMsg): MsgCreateGroupWithPolicyResponse {
2189
+ return MsgCreateGroupWithPolicyResponse.decode(message.value);
2190
+ },
2191
+ toProto(message: MsgCreateGroupWithPolicyResponse): Uint8Array {
2192
+ return MsgCreateGroupWithPolicyResponse.encode(message).finish();
2193
+ },
2194
+ toProtoMsg(message: MsgCreateGroupWithPolicyResponse): MsgCreateGroupWithPolicyResponseProtoMsg {
2195
+ return {
2196
+ typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse",
2197
+ value: MsgCreateGroupWithPolicyResponse.encode(message).finish()
2198
+ };
2199
+ }
2200
+ };
2201
+ function createBaseMsgUpdateGroupPolicyDecisionPolicy(): MsgUpdateGroupPolicyDecisionPolicy {
2202
+ return {
2203
+ admin: "",
2204
+ groupPolicyAddress: "",
2205
+ decisionPolicy: undefined
2206
+ };
2207
+ }
2208
+ export const MsgUpdateGroupPolicyDecisionPolicy = {
2209
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",
2210
+ encode(message: MsgUpdateGroupPolicyDecisionPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2211
+ if (message.admin !== "") {
2212
+ writer.uint32(10).string(message.admin);
2213
+ }
2214
+ if (message.groupPolicyAddress !== "") {
2215
+ writer.uint32(18).string(message.groupPolicyAddress);
2216
+ }
2217
+ if (message.decisionPolicy !== undefined) {
2218
+ Any.encode(message.decisionPolicy as Any, writer.uint32(26).fork()).ldelim();
2219
+ }
2220
+ return writer;
2221
+ },
2222
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicy {
2223
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2224
+ let end = length === undefined ? reader.len : reader.pos + length;
2225
+ const message = createBaseMsgUpdateGroupPolicyDecisionPolicy();
2226
+ while (reader.pos < end) {
2227
+ const tag = reader.uint32();
2228
+ switch (tag >>> 3) {
2229
+ case 1:
2230
+ message.admin = reader.string();
2231
+ break;
2232
+ case 2:
2233
+ message.groupPolicyAddress = reader.string();
2234
+ break;
2235
+ case 3:
2236
+ message.decisionPolicy = Cosmos_groupv1DecisionPolicy_InterfaceDecoder(reader) as Any;
2237
+ break;
2238
+ default:
2239
+ reader.skipType(tag & 7);
2240
+ break;
2241
+ }
2242
+ }
2243
+ return message;
2244
+ },
2245
+ fromPartial(object: Partial<MsgUpdateGroupPolicyDecisionPolicy>): MsgUpdateGroupPolicyDecisionPolicy {
2246
+ const message = createBaseMsgUpdateGroupPolicyDecisionPolicy();
2247
+ message.admin = object.admin ?? "";
2248
+ message.groupPolicyAddress = object.groupPolicyAddress ?? "";
2249
+ message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? Any.fromPartial(object.decisionPolicy) : undefined;
2250
+ return message;
2251
+ },
2252
+ fromAmino(object: MsgUpdateGroupPolicyDecisionPolicyAmino): MsgUpdateGroupPolicyDecisionPolicy {
2253
+ const message = createBaseMsgUpdateGroupPolicyDecisionPolicy();
2254
+ if (object.admin !== undefined && object.admin !== null) {
2255
+ message.admin = object.admin;
2256
+ }
2257
+ if (object.group_policy_address !== undefined && object.group_policy_address !== null) {
2258
+ message.groupPolicyAddress = object.group_policy_address;
2259
+ }
2260
+ if (object.decision_policy !== undefined && object.decision_policy !== null) {
2261
+ message.decisionPolicy = Cosmos_groupv1DecisionPolicy_FromAmino(object.decision_policy);
2262
+ }
2263
+ return message;
2264
+ },
2265
+ toAmino(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyAmino {
2266
+ const obj: any = {};
2267
+ obj.admin = message.admin === "" ? undefined : message.admin;
2268
+ obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress;
2269
+ obj.decision_policy = message.decisionPolicy ? Cosmos_groupv1DecisionPolicy_ToAmino(message.decisionPolicy as Any) : undefined;
2270
+ return obj;
2271
+ },
2272
+ fromAminoMsg(object: MsgUpdateGroupPolicyDecisionPolicyAminoMsg): MsgUpdateGroupPolicyDecisionPolicy {
2273
+ return MsgUpdateGroupPolicyDecisionPolicy.fromAmino(object.value);
2274
+ },
2275
+ toAminoMsg(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyAminoMsg {
2276
+ return {
2277
+ type: "cosmos-sdk/MsgUpdateGroupDecisionPolicy",
2278
+ value: MsgUpdateGroupPolicyDecisionPolicy.toAmino(message)
2279
+ };
2280
+ },
2281
+ fromProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyProtoMsg): MsgUpdateGroupPolicyDecisionPolicy {
2282
+ return MsgUpdateGroupPolicyDecisionPolicy.decode(message.value);
2283
+ },
2284
+ toProto(message: MsgUpdateGroupPolicyDecisionPolicy): Uint8Array {
2285
+ return MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish();
2286
+ },
2287
+ toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicy): MsgUpdateGroupPolicyDecisionPolicyProtoMsg {
2288
+ return {
2289
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy",
2290
+ value: MsgUpdateGroupPolicyDecisionPolicy.encode(message).finish()
2291
+ };
2292
+ }
2293
+ };
2294
+ function createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(): MsgUpdateGroupPolicyDecisionPolicyResponse {
2295
+ return {};
2296
+ }
2297
+ export const MsgUpdateGroupPolicyDecisionPolicyResponse = {
2298
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse",
2299
+ encode(_: MsgUpdateGroupPolicyDecisionPolicyResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2300
+ return writer;
2301
+ },
2302
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicyResponse {
2303
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2304
+ let end = length === undefined ? reader.len : reader.pos + length;
2305
+ const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse();
2306
+ while (reader.pos < end) {
2307
+ const tag = reader.uint32();
2308
+ switch (tag >>> 3) {
2309
+ default:
2310
+ reader.skipType(tag & 7);
2311
+ break;
2312
+ }
2313
+ }
2314
+ return message;
2315
+ },
2316
+ fromPartial(_: Partial<MsgUpdateGroupPolicyDecisionPolicyResponse>): MsgUpdateGroupPolicyDecisionPolicyResponse {
2317
+ const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse();
2318
+ return message;
2319
+ },
2320
+ fromAmino(_: MsgUpdateGroupPolicyDecisionPolicyResponseAmino): MsgUpdateGroupPolicyDecisionPolicyResponse {
2321
+ const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse();
2322
+ return message;
2323
+ },
2324
+ toAmino(_: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseAmino {
2325
+ const obj: any = {};
2326
+ return obj;
2327
+ },
2328
+ fromAminoMsg(object: MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg): MsgUpdateGroupPolicyDecisionPolicyResponse {
2329
+ return MsgUpdateGroupPolicyDecisionPolicyResponse.fromAmino(object.value);
2330
+ },
2331
+ toAminoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseAminoMsg {
2332
+ return {
2333
+ type: "cosmos-sdk/MsgUpdateGroupPolicyDecisionPolicyResponse",
2334
+ value: MsgUpdateGroupPolicyDecisionPolicyResponse.toAmino(message)
2335
+ };
2336
+ },
2337
+ fromProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg): MsgUpdateGroupPolicyDecisionPolicyResponse {
2338
+ return MsgUpdateGroupPolicyDecisionPolicyResponse.decode(message.value);
2339
+ },
2340
+ toProto(message: MsgUpdateGroupPolicyDecisionPolicyResponse): Uint8Array {
2341
+ return MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish();
2342
+ },
2343
+ toProtoMsg(message: MsgUpdateGroupPolicyDecisionPolicyResponse): MsgUpdateGroupPolicyDecisionPolicyResponseProtoMsg {
2344
+ return {
2345
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse",
2346
+ value: MsgUpdateGroupPolicyDecisionPolicyResponse.encode(message).finish()
2347
+ };
2348
+ }
2349
+ };
2350
+ function createBaseMsgUpdateGroupPolicyMetadata(): MsgUpdateGroupPolicyMetadata {
2351
+ return {
2352
+ admin: "",
2353
+ groupPolicyAddress: "",
2354
+ metadata: ""
2355
+ };
2356
+ }
2357
+ export const MsgUpdateGroupPolicyMetadata = {
2358
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",
2359
+ encode(message: MsgUpdateGroupPolicyMetadata, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2360
+ if (message.admin !== "") {
2361
+ writer.uint32(10).string(message.admin);
2362
+ }
2363
+ if (message.groupPolicyAddress !== "") {
2364
+ writer.uint32(18).string(message.groupPolicyAddress);
2365
+ }
2366
+ if (message.metadata !== "") {
2367
+ writer.uint32(26).string(message.metadata);
2368
+ }
2369
+ return writer;
2370
+ },
2371
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadata {
2372
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2373
+ let end = length === undefined ? reader.len : reader.pos + length;
2374
+ const message = createBaseMsgUpdateGroupPolicyMetadata();
2375
+ while (reader.pos < end) {
2376
+ const tag = reader.uint32();
2377
+ switch (tag >>> 3) {
2378
+ case 1:
2379
+ message.admin = reader.string();
2380
+ break;
2381
+ case 2:
2382
+ message.groupPolicyAddress = reader.string();
2383
+ break;
2384
+ case 3:
2385
+ message.metadata = reader.string();
2386
+ break;
2387
+ default:
2388
+ reader.skipType(tag & 7);
2389
+ break;
2390
+ }
2391
+ }
2392
+ return message;
2393
+ },
2394
+ fromPartial(object: Partial<MsgUpdateGroupPolicyMetadata>): MsgUpdateGroupPolicyMetadata {
2395
+ const message = createBaseMsgUpdateGroupPolicyMetadata();
2396
+ message.admin = object.admin ?? "";
2397
+ message.groupPolicyAddress = object.groupPolicyAddress ?? "";
2398
+ message.metadata = object.metadata ?? "";
2399
+ return message;
2400
+ },
2401
+ fromAmino(object: MsgUpdateGroupPolicyMetadataAmino): MsgUpdateGroupPolicyMetadata {
2402
+ const message = createBaseMsgUpdateGroupPolicyMetadata();
2403
+ if (object.admin !== undefined && object.admin !== null) {
2404
+ message.admin = object.admin;
2405
+ }
2406
+ if (object.group_policy_address !== undefined && object.group_policy_address !== null) {
2407
+ message.groupPolicyAddress = object.group_policy_address;
2408
+ }
2409
+ if (object.metadata !== undefined && object.metadata !== null) {
2410
+ message.metadata = object.metadata;
2411
+ }
2412
+ return message;
2413
+ },
2414
+ toAmino(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataAmino {
2415
+ const obj: any = {};
2416
+ obj.admin = message.admin === "" ? undefined : message.admin;
2417
+ obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress;
2418
+ obj.metadata = message.metadata === "" ? undefined : message.metadata;
2419
+ return obj;
2420
+ },
2421
+ fromAminoMsg(object: MsgUpdateGroupPolicyMetadataAminoMsg): MsgUpdateGroupPolicyMetadata {
2422
+ return MsgUpdateGroupPolicyMetadata.fromAmino(object.value);
2423
+ },
2424
+ toAminoMsg(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataAminoMsg {
2425
+ return {
2426
+ type: "cosmos-sdk/MsgUpdateGroupPolicyMetadata",
2427
+ value: MsgUpdateGroupPolicyMetadata.toAmino(message)
2428
+ };
2429
+ },
2430
+ fromProtoMsg(message: MsgUpdateGroupPolicyMetadataProtoMsg): MsgUpdateGroupPolicyMetadata {
2431
+ return MsgUpdateGroupPolicyMetadata.decode(message.value);
2432
+ },
2433
+ toProto(message: MsgUpdateGroupPolicyMetadata): Uint8Array {
2434
+ return MsgUpdateGroupPolicyMetadata.encode(message).finish();
2435
+ },
2436
+ toProtoMsg(message: MsgUpdateGroupPolicyMetadata): MsgUpdateGroupPolicyMetadataProtoMsg {
2437
+ return {
2438
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata",
2439
+ value: MsgUpdateGroupPolicyMetadata.encode(message).finish()
2440
+ };
2441
+ }
2442
+ };
2443
+ function createBaseMsgUpdateGroupPolicyMetadataResponse(): MsgUpdateGroupPolicyMetadataResponse {
2444
+ return {};
2445
+ }
2446
+ export const MsgUpdateGroupPolicyMetadataResponse = {
2447
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse",
2448
+ encode(_: MsgUpdateGroupPolicyMetadataResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2449
+ return writer;
2450
+ },
2451
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadataResponse {
2452
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2453
+ let end = length === undefined ? reader.len : reader.pos + length;
2454
+ const message = createBaseMsgUpdateGroupPolicyMetadataResponse();
2455
+ while (reader.pos < end) {
2456
+ const tag = reader.uint32();
2457
+ switch (tag >>> 3) {
2458
+ default:
2459
+ reader.skipType(tag & 7);
2460
+ break;
2461
+ }
2462
+ }
2463
+ return message;
2464
+ },
2465
+ fromPartial(_: Partial<MsgUpdateGroupPolicyMetadataResponse>): MsgUpdateGroupPolicyMetadataResponse {
2466
+ const message = createBaseMsgUpdateGroupPolicyMetadataResponse();
2467
+ return message;
2468
+ },
2469
+ fromAmino(_: MsgUpdateGroupPolicyMetadataResponseAmino): MsgUpdateGroupPolicyMetadataResponse {
2470
+ const message = createBaseMsgUpdateGroupPolicyMetadataResponse();
2471
+ return message;
2472
+ },
2473
+ toAmino(_: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseAmino {
2474
+ const obj: any = {};
2475
+ return obj;
2476
+ },
2477
+ fromAminoMsg(object: MsgUpdateGroupPolicyMetadataResponseAminoMsg): MsgUpdateGroupPolicyMetadataResponse {
2478
+ return MsgUpdateGroupPolicyMetadataResponse.fromAmino(object.value);
2479
+ },
2480
+ toAminoMsg(message: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseAminoMsg {
2481
+ return {
2482
+ type: "cosmos-sdk/MsgUpdateGroupPolicyMetadataResponse",
2483
+ value: MsgUpdateGroupPolicyMetadataResponse.toAmino(message)
2484
+ };
2485
+ },
2486
+ fromProtoMsg(message: MsgUpdateGroupPolicyMetadataResponseProtoMsg): MsgUpdateGroupPolicyMetadataResponse {
2487
+ return MsgUpdateGroupPolicyMetadataResponse.decode(message.value);
2488
+ },
2489
+ toProto(message: MsgUpdateGroupPolicyMetadataResponse): Uint8Array {
2490
+ return MsgUpdateGroupPolicyMetadataResponse.encode(message).finish();
2491
+ },
2492
+ toProtoMsg(message: MsgUpdateGroupPolicyMetadataResponse): MsgUpdateGroupPolicyMetadataResponseProtoMsg {
2493
+ return {
2494
+ typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse",
2495
+ value: MsgUpdateGroupPolicyMetadataResponse.encode(message).finish()
2496
+ };
2497
+ }
2498
+ };
2499
+ function createBaseMsgSubmitProposal(): MsgSubmitProposal {
2500
+ return {
2501
+ groupPolicyAddress: "",
2502
+ proposers: [],
2503
+ metadata: "",
2504
+ messages: [],
2505
+ exec: 0,
2506
+ title: "",
2507
+ summary: ""
2508
+ };
2509
+ }
2510
+ export const MsgSubmitProposal = {
2511
+ typeUrl: "/cosmos.group.v1.MsgSubmitProposal",
2512
+ encode(message: MsgSubmitProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2513
+ if (message.groupPolicyAddress !== "") {
2514
+ writer.uint32(10).string(message.groupPolicyAddress);
2515
+ }
2516
+ for (const v of message.proposers) {
2517
+ writer.uint32(18).string(v!);
2518
+ }
2519
+ if (message.metadata !== "") {
2520
+ writer.uint32(26).string(message.metadata);
2521
+ }
2522
+ for (const v of message.messages) {
2523
+ Any.encode(v!, writer.uint32(34).fork()).ldelim();
2524
+ }
2525
+ if (message.exec !== 0) {
2526
+ writer.uint32(40).int32(message.exec);
2527
+ }
2528
+ if (message.title !== "") {
2529
+ writer.uint32(50).string(message.title);
2530
+ }
2531
+ if (message.summary !== "") {
2532
+ writer.uint32(58).string(message.summary);
2533
+ }
2534
+ return writer;
2535
+ },
2536
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal {
2537
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2538
+ let end = length === undefined ? reader.len : reader.pos + length;
2539
+ const message = createBaseMsgSubmitProposal();
2540
+ while (reader.pos < end) {
2541
+ const tag = reader.uint32();
2542
+ switch (tag >>> 3) {
2543
+ case 1:
2544
+ message.groupPolicyAddress = reader.string();
2545
+ break;
2546
+ case 2:
2547
+ message.proposers.push(reader.string());
2548
+ break;
2549
+ case 3:
2550
+ message.metadata = reader.string();
2551
+ break;
2552
+ case 4:
2553
+ message.messages.push(Any.decode(reader, reader.uint32()));
2554
+ break;
2555
+ case 5:
2556
+ message.exec = reader.int32() as any;
2557
+ break;
2558
+ case 6:
2559
+ message.title = reader.string();
2560
+ break;
2561
+ case 7:
2562
+ message.summary = reader.string();
2563
+ break;
2564
+ default:
2565
+ reader.skipType(tag & 7);
2566
+ break;
2567
+ }
2568
+ }
2569
+ return message;
2570
+ },
2571
+ fromPartial(object: Partial<MsgSubmitProposal>): MsgSubmitProposal {
2572
+ const message = createBaseMsgSubmitProposal();
2573
+ message.groupPolicyAddress = object.groupPolicyAddress ?? "";
2574
+ message.proposers = object.proposers?.map(e => e) || [];
2575
+ message.metadata = object.metadata ?? "";
2576
+ message.messages = object.messages?.map(e => Any.fromPartial(e)) || [];
2577
+ message.exec = object.exec ?? 0;
2578
+ message.title = object.title ?? "";
2579
+ message.summary = object.summary ?? "";
2580
+ return message;
2581
+ },
2582
+ fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal {
2583
+ const message = createBaseMsgSubmitProposal();
2584
+ if (object.group_policy_address !== undefined && object.group_policy_address !== null) {
2585
+ message.groupPolicyAddress = object.group_policy_address;
2586
+ }
2587
+ message.proposers = object.proposers?.map(e => e) || [];
2588
+ if (object.metadata !== undefined && object.metadata !== null) {
2589
+ message.metadata = object.metadata;
2590
+ }
2591
+ message.messages = object.messages?.map(e => Any.fromAmino(e)) || [];
2592
+ if (object.exec !== undefined && object.exec !== null) {
2593
+ message.exec = object.exec;
2594
+ }
2595
+ if (object.title !== undefined && object.title !== null) {
2596
+ message.title = object.title;
2597
+ }
2598
+ if (object.summary !== undefined && object.summary !== null) {
2599
+ message.summary = object.summary;
2600
+ }
2601
+ return message;
2602
+ },
2603
+ toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino {
2604
+ const obj: any = {};
2605
+ obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress;
2606
+ if (message.proposers) {
2607
+ obj.proposers = message.proposers.map(e => e);
2608
+ } else {
2609
+ obj.proposers = message.proposers;
2610
+ }
2611
+ obj.metadata = message.metadata === "" ? undefined : message.metadata;
2612
+ if (message.messages) {
2613
+ obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined);
2614
+ } else {
2615
+ obj.messages = message.messages;
2616
+ }
2617
+ obj.exec = message.exec === 0 ? undefined : message.exec;
2618
+ obj.title = message.title === "" ? undefined : message.title;
2619
+ obj.summary = message.summary === "" ? undefined : message.summary;
2620
+ return obj;
2621
+ },
2622
+ fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal {
2623
+ return MsgSubmitProposal.fromAmino(object.value);
2624
+ },
2625
+ toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg {
2626
+ return {
2627
+ type: "cosmos-sdk/group/MsgSubmitProposal",
2628
+ value: MsgSubmitProposal.toAmino(message)
2629
+ };
2630
+ },
2631
+ fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal {
2632
+ return MsgSubmitProposal.decode(message.value);
2633
+ },
2634
+ toProto(message: MsgSubmitProposal): Uint8Array {
2635
+ return MsgSubmitProposal.encode(message).finish();
2636
+ },
2637
+ toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg {
2638
+ return {
2639
+ typeUrl: "/cosmos.group.v1.MsgSubmitProposal",
2640
+ value: MsgSubmitProposal.encode(message).finish()
2641
+ };
2642
+ }
2643
+ };
2644
+ function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse {
2645
+ return {
2646
+ proposalId: BigInt(0)
2647
+ };
2648
+ }
2649
+ export const MsgSubmitProposalResponse = {
2650
+ typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse",
2651
+ encode(message: MsgSubmitProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2652
+ if (message.proposalId !== BigInt(0)) {
2653
+ writer.uint32(8).uint64(message.proposalId);
2654
+ }
2655
+ return writer;
2656
+ },
2657
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse {
2658
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2659
+ let end = length === undefined ? reader.len : reader.pos + length;
2660
+ const message = createBaseMsgSubmitProposalResponse();
2661
+ while (reader.pos < end) {
2662
+ const tag = reader.uint32();
2663
+ switch (tag >>> 3) {
2664
+ case 1:
2665
+ message.proposalId = reader.uint64();
2666
+ break;
2667
+ default:
2668
+ reader.skipType(tag & 7);
2669
+ break;
2670
+ }
2671
+ }
2672
+ return message;
2673
+ },
2674
+ fromPartial(object: Partial<MsgSubmitProposalResponse>): MsgSubmitProposalResponse {
2675
+ const message = createBaseMsgSubmitProposalResponse();
2676
+ message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
2677
+ return message;
2678
+ },
2679
+ fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse {
2680
+ const message = createBaseMsgSubmitProposalResponse();
2681
+ if (object.proposal_id !== undefined && object.proposal_id !== null) {
2682
+ message.proposalId = BigInt(object.proposal_id);
2683
+ }
2684
+ return message;
2685
+ },
2686
+ toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino {
2687
+ const obj: any = {};
2688
+ obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
2689
+ return obj;
2690
+ },
2691
+ fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse {
2692
+ return MsgSubmitProposalResponse.fromAmino(object.value);
2693
+ },
2694
+ toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg {
2695
+ return {
2696
+ type: "cosmos-sdk/MsgSubmitProposalResponse",
2697
+ value: MsgSubmitProposalResponse.toAmino(message)
2698
+ };
2699
+ },
2700
+ fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse {
2701
+ return MsgSubmitProposalResponse.decode(message.value);
2702
+ },
2703
+ toProto(message: MsgSubmitProposalResponse): Uint8Array {
2704
+ return MsgSubmitProposalResponse.encode(message).finish();
2705
+ },
2706
+ toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg {
2707
+ return {
2708
+ typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse",
2709
+ value: MsgSubmitProposalResponse.encode(message).finish()
2710
+ };
2711
+ }
2712
+ };
2713
+ function createBaseMsgWithdrawProposal(): MsgWithdrawProposal {
2714
+ return {
2715
+ proposalId: BigInt(0),
2716
+ address: ""
2717
+ };
2718
+ }
2719
+ export const MsgWithdrawProposal = {
2720
+ typeUrl: "/cosmos.group.v1.MsgWithdrawProposal",
2721
+ encode(message: MsgWithdrawProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2722
+ if (message.proposalId !== BigInt(0)) {
2723
+ writer.uint32(8).uint64(message.proposalId);
2724
+ }
2725
+ if (message.address !== "") {
2726
+ writer.uint32(18).string(message.address);
2727
+ }
2728
+ return writer;
2729
+ },
2730
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposal {
2731
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2732
+ let end = length === undefined ? reader.len : reader.pos + length;
2733
+ const message = createBaseMsgWithdrawProposal();
2734
+ while (reader.pos < end) {
2735
+ const tag = reader.uint32();
2736
+ switch (tag >>> 3) {
2737
+ case 1:
2738
+ message.proposalId = reader.uint64();
2739
+ break;
2740
+ case 2:
2741
+ message.address = reader.string();
2742
+ break;
2743
+ default:
2744
+ reader.skipType(tag & 7);
2745
+ break;
2746
+ }
2747
+ }
2748
+ return message;
2749
+ },
2750
+ fromPartial(object: Partial<MsgWithdrawProposal>): MsgWithdrawProposal {
2751
+ const message = createBaseMsgWithdrawProposal();
2752
+ message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
2753
+ message.address = object.address ?? "";
2754
+ return message;
2755
+ },
2756
+ fromAmino(object: MsgWithdrawProposalAmino): MsgWithdrawProposal {
2757
+ const message = createBaseMsgWithdrawProposal();
2758
+ if (object.proposal_id !== undefined && object.proposal_id !== null) {
2759
+ message.proposalId = BigInt(object.proposal_id);
2760
+ }
2761
+ if (object.address !== undefined && object.address !== null) {
2762
+ message.address = object.address;
2763
+ }
2764
+ return message;
2765
+ },
2766
+ toAmino(message: MsgWithdrawProposal): MsgWithdrawProposalAmino {
2767
+ const obj: any = {};
2768
+ obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
2769
+ obj.address = message.address === "" ? undefined : message.address;
2770
+ return obj;
2771
+ },
2772
+ fromAminoMsg(object: MsgWithdrawProposalAminoMsg): MsgWithdrawProposal {
2773
+ return MsgWithdrawProposal.fromAmino(object.value);
2774
+ },
2775
+ toAminoMsg(message: MsgWithdrawProposal): MsgWithdrawProposalAminoMsg {
2776
+ return {
2777
+ type: "cosmos-sdk/group/MsgWithdrawProposal",
2778
+ value: MsgWithdrawProposal.toAmino(message)
2779
+ };
2780
+ },
2781
+ fromProtoMsg(message: MsgWithdrawProposalProtoMsg): MsgWithdrawProposal {
2782
+ return MsgWithdrawProposal.decode(message.value);
2783
+ },
2784
+ toProto(message: MsgWithdrawProposal): Uint8Array {
2785
+ return MsgWithdrawProposal.encode(message).finish();
2786
+ },
2787
+ toProtoMsg(message: MsgWithdrawProposal): MsgWithdrawProposalProtoMsg {
2788
+ return {
2789
+ typeUrl: "/cosmos.group.v1.MsgWithdrawProposal",
2790
+ value: MsgWithdrawProposal.encode(message).finish()
2791
+ };
2792
+ }
2793
+ };
2794
+ function createBaseMsgWithdrawProposalResponse(): MsgWithdrawProposalResponse {
2795
+ return {};
2796
+ }
2797
+ export const MsgWithdrawProposalResponse = {
2798
+ typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse",
2799
+ encode(_: MsgWithdrawProposalResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2800
+ return writer;
2801
+ },
2802
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposalResponse {
2803
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2804
+ let end = length === undefined ? reader.len : reader.pos + length;
2805
+ const message = createBaseMsgWithdrawProposalResponse();
2806
+ while (reader.pos < end) {
2807
+ const tag = reader.uint32();
2808
+ switch (tag >>> 3) {
2809
+ default:
2810
+ reader.skipType(tag & 7);
2811
+ break;
2812
+ }
2813
+ }
2814
+ return message;
2815
+ },
2816
+ fromPartial(_: Partial<MsgWithdrawProposalResponse>): MsgWithdrawProposalResponse {
2817
+ const message = createBaseMsgWithdrawProposalResponse();
2818
+ return message;
2819
+ },
2820
+ fromAmino(_: MsgWithdrawProposalResponseAmino): MsgWithdrawProposalResponse {
2821
+ const message = createBaseMsgWithdrawProposalResponse();
2822
+ return message;
2823
+ },
2824
+ toAmino(_: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseAmino {
2825
+ const obj: any = {};
2826
+ return obj;
2827
+ },
2828
+ fromAminoMsg(object: MsgWithdrawProposalResponseAminoMsg): MsgWithdrawProposalResponse {
2829
+ return MsgWithdrawProposalResponse.fromAmino(object.value);
2830
+ },
2831
+ toAminoMsg(message: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseAminoMsg {
2832
+ return {
2833
+ type: "cosmos-sdk/MsgWithdrawProposalResponse",
2834
+ value: MsgWithdrawProposalResponse.toAmino(message)
2835
+ };
2836
+ },
2837
+ fromProtoMsg(message: MsgWithdrawProposalResponseProtoMsg): MsgWithdrawProposalResponse {
2838
+ return MsgWithdrawProposalResponse.decode(message.value);
2839
+ },
2840
+ toProto(message: MsgWithdrawProposalResponse): Uint8Array {
2841
+ return MsgWithdrawProposalResponse.encode(message).finish();
2842
+ },
2843
+ toProtoMsg(message: MsgWithdrawProposalResponse): MsgWithdrawProposalResponseProtoMsg {
2844
+ return {
2845
+ typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse",
2846
+ value: MsgWithdrawProposalResponse.encode(message).finish()
2847
+ };
2848
+ }
2849
+ };
2850
+ function createBaseMsgVote(): MsgVote {
2851
+ return {
2852
+ proposalId: BigInt(0),
2853
+ voter: "",
2854
+ option: 0,
2855
+ metadata: "",
2856
+ exec: 0
2857
+ };
2858
+ }
2859
+ export const MsgVote = {
2860
+ typeUrl: "/cosmos.group.v1.MsgVote",
2861
+ encode(message: MsgVote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2862
+ if (message.proposalId !== BigInt(0)) {
2863
+ writer.uint32(8).uint64(message.proposalId);
2864
+ }
2865
+ if (message.voter !== "") {
2866
+ writer.uint32(18).string(message.voter);
2867
+ }
2868
+ if (message.option !== 0) {
2869
+ writer.uint32(24).int32(message.option);
2870
+ }
2871
+ if (message.metadata !== "") {
2872
+ writer.uint32(34).string(message.metadata);
2873
+ }
2874
+ if (message.exec !== 0) {
2875
+ writer.uint32(40).int32(message.exec);
2876
+ }
2877
+ return writer;
2878
+ },
2879
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgVote {
2880
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2881
+ let end = length === undefined ? reader.len : reader.pos + length;
2882
+ const message = createBaseMsgVote();
2883
+ while (reader.pos < end) {
2884
+ const tag = reader.uint32();
2885
+ switch (tag >>> 3) {
2886
+ case 1:
2887
+ message.proposalId = reader.uint64();
2888
+ break;
2889
+ case 2:
2890
+ message.voter = reader.string();
2891
+ break;
2892
+ case 3:
2893
+ message.option = reader.int32() as any;
2894
+ break;
2895
+ case 4:
2896
+ message.metadata = reader.string();
2897
+ break;
2898
+ case 5:
2899
+ message.exec = reader.int32() as any;
2900
+ break;
2901
+ default:
2902
+ reader.skipType(tag & 7);
2903
+ break;
2904
+ }
2905
+ }
2906
+ return message;
2907
+ },
2908
+ fromPartial(object: Partial<MsgVote>): MsgVote {
2909
+ const message = createBaseMsgVote();
2910
+ message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
2911
+ message.voter = object.voter ?? "";
2912
+ message.option = object.option ?? 0;
2913
+ message.metadata = object.metadata ?? "";
2914
+ message.exec = object.exec ?? 0;
2915
+ return message;
2916
+ },
2917
+ fromAmino(object: MsgVoteAmino): MsgVote {
2918
+ const message = createBaseMsgVote();
2919
+ if (object.proposal_id !== undefined && object.proposal_id !== null) {
2920
+ message.proposalId = BigInt(object.proposal_id);
2921
+ }
2922
+ if (object.voter !== undefined && object.voter !== null) {
2923
+ message.voter = object.voter;
2924
+ }
2925
+ if (object.option !== undefined && object.option !== null) {
2926
+ message.option = object.option;
2927
+ }
2928
+ if (object.metadata !== undefined && object.metadata !== null) {
2929
+ message.metadata = object.metadata;
2930
+ }
2931
+ if (object.exec !== undefined && object.exec !== null) {
2932
+ message.exec = object.exec;
2933
+ }
2934
+ return message;
2935
+ },
2936
+ toAmino(message: MsgVote): MsgVoteAmino {
2937
+ const obj: any = {};
2938
+ obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
2939
+ obj.voter = message.voter === "" ? undefined : message.voter;
2940
+ obj.option = message.option === 0 ? undefined : message.option;
2941
+ obj.metadata = message.metadata === "" ? undefined : message.metadata;
2942
+ obj.exec = message.exec === 0 ? undefined : message.exec;
2943
+ return obj;
2944
+ },
2945
+ fromAminoMsg(object: MsgVoteAminoMsg): MsgVote {
2946
+ return MsgVote.fromAmino(object.value);
2947
+ },
2948
+ toAminoMsg(message: MsgVote): MsgVoteAminoMsg {
2949
+ return {
2950
+ type: "cosmos-sdk/group/MsgVote",
2951
+ value: MsgVote.toAmino(message)
2952
+ };
2953
+ },
2954
+ fromProtoMsg(message: MsgVoteProtoMsg): MsgVote {
2955
+ return MsgVote.decode(message.value);
2956
+ },
2957
+ toProto(message: MsgVote): Uint8Array {
2958
+ return MsgVote.encode(message).finish();
2959
+ },
2960
+ toProtoMsg(message: MsgVote): MsgVoteProtoMsg {
2961
+ return {
2962
+ typeUrl: "/cosmos.group.v1.MsgVote",
2963
+ value: MsgVote.encode(message).finish()
2964
+ };
2965
+ }
2966
+ };
2967
+ function createBaseMsgVoteResponse(): MsgVoteResponse {
2968
+ return {};
2969
+ }
2970
+ export const MsgVoteResponse = {
2971
+ typeUrl: "/cosmos.group.v1.MsgVoteResponse",
2972
+ encode(_: MsgVoteResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2973
+ return writer;
2974
+ },
2975
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse {
2976
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2977
+ let end = length === undefined ? reader.len : reader.pos + length;
2978
+ const message = createBaseMsgVoteResponse();
2979
+ while (reader.pos < end) {
2980
+ const tag = reader.uint32();
2981
+ switch (tag >>> 3) {
2982
+ default:
2983
+ reader.skipType(tag & 7);
2984
+ break;
2985
+ }
2986
+ }
2987
+ return message;
2988
+ },
2989
+ fromPartial(_: Partial<MsgVoteResponse>): MsgVoteResponse {
2990
+ const message = createBaseMsgVoteResponse();
2991
+ return message;
2992
+ },
2993
+ fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse {
2994
+ const message = createBaseMsgVoteResponse();
2995
+ return message;
2996
+ },
2997
+ toAmino(_: MsgVoteResponse): MsgVoteResponseAmino {
2998
+ const obj: any = {};
2999
+ return obj;
3000
+ },
3001
+ fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse {
3002
+ return MsgVoteResponse.fromAmino(object.value);
3003
+ },
3004
+ toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg {
3005
+ return {
3006
+ type: "cosmos-sdk/MsgVoteResponse",
3007
+ value: MsgVoteResponse.toAmino(message)
3008
+ };
3009
+ },
3010
+ fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse {
3011
+ return MsgVoteResponse.decode(message.value);
3012
+ },
3013
+ toProto(message: MsgVoteResponse): Uint8Array {
3014
+ return MsgVoteResponse.encode(message).finish();
3015
+ },
3016
+ toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg {
3017
+ return {
3018
+ typeUrl: "/cosmos.group.v1.MsgVoteResponse",
3019
+ value: MsgVoteResponse.encode(message).finish()
3020
+ };
3021
+ }
3022
+ };
3023
+ function createBaseMsgExec(): MsgExec {
3024
+ return {
3025
+ proposalId: BigInt(0),
3026
+ executor: ""
3027
+ };
3028
+ }
3029
+ export const MsgExec = {
3030
+ typeUrl: "/cosmos.group.v1.MsgExec",
3031
+ encode(message: MsgExec, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3032
+ if (message.proposalId !== BigInt(0)) {
3033
+ writer.uint32(8).uint64(message.proposalId);
3034
+ }
3035
+ if (message.executor !== "") {
3036
+ writer.uint32(18).string(message.executor);
3037
+ }
3038
+ return writer;
3039
+ },
3040
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgExec {
3041
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3042
+ let end = length === undefined ? reader.len : reader.pos + length;
3043
+ const message = createBaseMsgExec();
3044
+ while (reader.pos < end) {
3045
+ const tag = reader.uint32();
3046
+ switch (tag >>> 3) {
3047
+ case 1:
3048
+ message.proposalId = reader.uint64();
3049
+ break;
3050
+ case 2:
3051
+ message.executor = reader.string();
3052
+ break;
3053
+ default:
3054
+ reader.skipType(tag & 7);
3055
+ break;
3056
+ }
3057
+ }
3058
+ return message;
3059
+ },
3060
+ fromPartial(object: Partial<MsgExec>): MsgExec {
3061
+ const message = createBaseMsgExec();
3062
+ message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
3063
+ message.executor = object.executor ?? "";
3064
+ return message;
3065
+ },
3066
+ fromAmino(object: MsgExecAmino): MsgExec {
3067
+ const message = createBaseMsgExec();
3068
+ if (object.proposal_id !== undefined && object.proposal_id !== null) {
3069
+ message.proposalId = BigInt(object.proposal_id);
3070
+ }
3071
+ if (object.executor !== undefined && object.executor !== null) {
3072
+ message.executor = object.executor;
3073
+ }
3074
+ return message;
3075
+ },
3076
+ toAmino(message: MsgExec): MsgExecAmino {
3077
+ const obj: any = {};
3078
+ obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
3079
+ obj.executor = message.executor === "" ? undefined : message.executor;
3080
+ return obj;
3081
+ },
3082
+ fromAminoMsg(object: MsgExecAminoMsg): MsgExec {
3083
+ return MsgExec.fromAmino(object.value);
3084
+ },
3085
+ toAminoMsg(message: MsgExec): MsgExecAminoMsg {
3086
+ return {
3087
+ type: "cosmos-sdk/group/MsgExec",
3088
+ value: MsgExec.toAmino(message)
3089
+ };
3090
+ },
3091
+ fromProtoMsg(message: MsgExecProtoMsg): MsgExec {
3092
+ return MsgExec.decode(message.value);
3093
+ },
3094
+ toProto(message: MsgExec): Uint8Array {
3095
+ return MsgExec.encode(message).finish();
3096
+ },
3097
+ toProtoMsg(message: MsgExec): MsgExecProtoMsg {
3098
+ return {
3099
+ typeUrl: "/cosmos.group.v1.MsgExec",
3100
+ value: MsgExec.encode(message).finish()
3101
+ };
3102
+ }
3103
+ };
3104
+ function createBaseMsgExecResponse(): MsgExecResponse {
3105
+ return {
3106
+ result: 0
3107
+ };
3108
+ }
3109
+ export const MsgExecResponse = {
3110
+ typeUrl: "/cosmos.group.v1.MsgExecResponse",
3111
+ encode(message: MsgExecResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3112
+ if (message.result !== 0) {
3113
+ writer.uint32(16).int32(message.result);
3114
+ }
3115
+ return writer;
3116
+ },
3117
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse {
3118
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3119
+ let end = length === undefined ? reader.len : reader.pos + length;
3120
+ const message = createBaseMsgExecResponse();
3121
+ while (reader.pos < end) {
3122
+ const tag = reader.uint32();
3123
+ switch (tag >>> 3) {
3124
+ case 2:
3125
+ message.result = reader.int32() as any;
3126
+ break;
3127
+ default:
3128
+ reader.skipType(tag & 7);
3129
+ break;
3130
+ }
3131
+ }
3132
+ return message;
3133
+ },
3134
+ fromPartial(object: Partial<MsgExecResponse>): MsgExecResponse {
3135
+ const message = createBaseMsgExecResponse();
3136
+ message.result = object.result ?? 0;
3137
+ return message;
3138
+ },
3139
+ fromAmino(object: MsgExecResponseAmino): MsgExecResponse {
3140
+ const message = createBaseMsgExecResponse();
3141
+ if (object.result !== undefined && object.result !== null) {
3142
+ message.result = object.result;
3143
+ }
3144
+ return message;
3145
+ },
3146
+ toAmino(message: MsgExecResponse): MsgExecResponseAmino {
3147
+ const obj: any = {};
3148
+ obj.result = message.result === 0 ? undefined : message.result;
3149
+ return obj;
3150
+ },
3151
+ fromAminoMsg(object: MsgExecResponseAminoMsg): MsgExecResponse {
3152
+ return MsgExecResponse.fromAmino(object.value);
3153
+ },
3154
+ toAminoMsg(message: MsgExecResponse): MsgExecResponseAminoMsg {
3155
+ return {
3156
+ type: "cosmos-sdk/MsgExecResponse",
3157
+ value: MsgExecResponse.toAmino(message)
3158
+ };
3159
+ },
3160
+ fromProtoMsg(message: MsgExecResponseProtoMsg): MsgExecResponse {
3161
+ return MsgExecResponse.decode(message.value);
3162
+ },
3163
+ toProto(message: MsgExecResponse): Uint8Array {
3164
+ return MsgExecResponse.encode(message).finish();
3165
+ },
3166
+ toProtoMsg(message: MsgExecResponse): MsgExecResponseProtoMsg {
3167
+ return {
3168
+ typeUrl: "/cosmos.group.v1.MsgExecResponse",
3169
+ value: MsgExecResponse.encode(message).finish()
3170
+ };
3171
+ }
3172
+ };
3173
+ function createBaseMsgLeaveGroup(): MsgLeaveGroup {
3174
+ return {
3175
+ address: "",
3176
+ groupId: BigInt(0)
3177
+ };
3178
+ }
3179
+ export const MsgLeaveGroup = {
3180
+ typeUrl: "/cosmos.group.v1.MsgLeaveGroup",
3181
+ encode(message: MsgLeaveGroup, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3182
+ if (message.address !== "") {
3183
+ writer.uint32(10).string(message.address);
3184
+ }
3185
+ if (message.groupId !== BigInt(0)) {
3186
+ writer.uint32(16).uint64(message.groupId);
3187
+ }
3188
+ return writer;
3189
+ },
3190
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroup {
3191
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3192
+ let end = length === undefined ? reader.len : reader.pos + length;
3193
+ const message = createBaseMsgLeaveGroup();
3194
+ while (reader.pos < end) {
3195
+ const tag = reader.uint32();
3196
+ switch (tag >>> 3) {
3197
+ case 1:
3198
+ message.address = reader.string();
3199
+ break;
3200
+ case 2:
3201
+ message.groupId = reader.uint64();
3202
+ break;
3203
+ default:
3204
+ reader.skipType(tag & 7);
3205
+ break;
3206
+ }
3207
+ }
3208
+ return message;
3209
+ },
3210
+ fromPartial(object: Partial<MsgLeaveGroup>): MsgLeaveGroup {
3211
+ const message = createBaseMsgLeaveGroup();
3212
+ message.address = object.address ?? "";
3213
+ message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
3214
+ return message;
3215
+ },
3216
+ fromAmino(object: MsgLeaveGroupAmino): MsgLeaveGroup {
3217
+ const message = createBaseMsgLeaveGroup();
3218
+ if (object.address !== undefined && object.address !== null) {
3219
+ message.address = object.address;
3220
+ }
3221
+ if (object.group_id !== undefined && object.group_id !== null) {
3222
+ message.groupId = BigInt(object.group_id);
3223
+ }
3224
+ return message;
3225
+ },
3226
+ toAmino(message: MsgLeaveGroup): MsgLeaveGroupAmino {
3227
+ const obj: any = {};
3228
+ obj.address = message.address === "" ? undefined : message.address;
3229
+ obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
3230
+ return obj;
3231
+ },
3232
+ fromAminoMsg(object: MsgLeaveGroupAminoMsg): MsgLeaveGroup {
3233
+ return MsgLeaveGroup.fromAmino(object.value);
3234
+ },
3235
+ toAminoMsg(message: MsgLeaveGroup): MsgLeaveGroupAminoMsg {
3236
+ return {
3237
+ type: "cosmos-sdk/group/MsgLeaveGroup",
3238
+ value: MsgLeaveGroup.toAmino(message)
3239
+ };
3240
+ },
3241
+ fromProtoMsg(message: MsgLeaveGroupProtoMsg): MsgLeaveGroup {
3242
+ return MsgLeaveGroup.decode(message.value);
3243
+ },
3244
+ toProto(message: MsgLeaveGroup): Uint8Array {
3245
+ return MsgLeaveGroup.encode(message).finish();
3246
+ },
3247
+ toProtoMsg(message: MsgLeaveGroup): MsgLeaveGroupProtoMsg {
3248
+ return {
3249
+ typeUrl: "/cosmos.group.v1.MsgLeaveGroup",
3250
+ value: MsgLeaveGroup.encode(message).finish()
3251
+ };
3252
+ }
3253
+ };
3254
+ function createBaseMsgLeaveGroupResponse(): MsgLeaveGroupResponse {
3255
+ return {};
3256
+ }
3257
+ export const MsgLeaveGroupResponse = {
3258
+ typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse",
3259
+ encode(_: MsgLeaveGroupResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3260
+ return writer;
3261
+ },
3262
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroupResponse {
3263
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3264
+ let end = length === undefined ? reader.len : reader.pos + length;
3265
+ const message = createBaseMsgLeaveGroupResponse();
3266
+ while (reader.pos < end) {
3267
+ const tag = reader.uint32();
3268
+ switch (tag >>> 3) {
3269
+ default:
3270
+ reader.skipType(tag & 7);
3271
+ break;
3272
+ }
3273
+ }
3274
+ return message;
3275
+ },
3276
+ fromPartial(_: Partial<MsgLeaveGroupResponse>): MsgLeaveGroupResponse {
3277
+ const message = createBaseMsgLeaveGroupResponse();
3278
+ return message;
3279
+ },
3280
+ fromAmino(_: MsgLeaveGroupResponseAmino): MsgLeaveGroupResponse {
3281
+ const message = createBaseMsgLeaveGroupResponse();
3282
+ return message;
3283
+ },
3284
+ toAmino(_: MsgLeaveGroupResponse): MsgLeaveGroupResponseAmino {
3285
+ const obj: any = {};
3286
+ return obj;
3287
+ },
3288
+ fromAminoMsg(object: MsgLeaveGroupResponseAminoMsg): MsgLeaveGroupResponse {
3289
+ return MsgLeaveGroupResponse.fromAmino(object.value);
3290
+ },
3291
+ toAminoMsg(message: MsgLeaveGroupResponse): MsgLeaveGroupResponseAminoMsg {
3292
+ return {
3293
+ type: "cosmos-sdk/MsgLeaveGroupResponse",
3294
+ value: MsgLeaveGroupResponse.toAmino(message)
3295
+ };
3296
+ },
3297
+ fromProtoMsg(message: MsgLeaveGroupResponseProtoMsg): MsgLeaveGroupResponse {
3298
+ return MsgLeaveGroupResponse.decode(message.value);
3299
+ },
3300
+ toProto(message: MsgLeaveGroupResponse): Uint8Array {
3301
+ return MsgLeaveGroupResponse.encode(message).finish();
3302
+ },
3303
+ toProtoMsg(message: MsgLeaveGroupResponse): MsgLeaveGroupResponseProtoMsg {
3304
+ return {
3305
+ typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse",
3306
+ value: MsgLeaveGroupResponse.encode(message).finish()
3307
+ };
3308
+ }
3309
+ };
3310
+ export const Cosmos_groupv1DecisionPolicy_InterfaceDecoder = (input: BinaryReader | Uint8Array): ThresholdDecisionPolicy | PercentageDecisionPolicy | Any => {
3311
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3312
+ const data = Any.decode(reader, reader.uint32());
3313
+ switch (data.typeUrl) {
3314
+ case "/cosmos.group.v1.ThresholdDecisionPolicy":
3315
+ return ThresholdDecisionPolicy.decode(data.value);
3316
+ case "/cosmos.group.v1.PercentageDecisionPolicy":
3317
+ return PercentageDecisionPolicy.decode(data.value);
3318
+ default:
3319
+ return data;
3320
+ }
3321
+ };
3322
+ export const Cosmos_groupv1DecisionPolicy_FromAmino = (content: AnyAmino): Any => {
3323
+ switch (content.type) {
3324
+ case "cosmos-sdk/ThresholdDecisionPolicy":
3325
+ return Any.fromPartial({
3326
+ typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy",
3327
+ value: ThresholdDecisionPolicy.encode(ThresholdDecisionPolicy.fromPartial(ThresholdDecisionPolicy.fromAmino(content.value))).finish()
3328
+ });
3329
+ case "cosmos-sdk/PercentageDecisionPolicy":
3330
+ return Any.fromPartial({
3331
+ typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy",
3332
+ value: PercentageDecisionPolicy.encode(PercentageDecisionPolicy.fromPartial(PercentageDecisionPolicy.fromAmino(content.value))).finish()
3333
+ });
3334
+ default:
3335
+ return Any.fromAmino(content);
3336
+ }
3337
+ };
3338
+ export const Cosmos_groupv1DecisionPolicy_ToAmino = (content: Any) => {
3339
+ switch (content.typeUrl) {
3340
+ case "/cosmos.group.v1.ThresholdDecisionPolicy":
3341
+ return {
3342
+ type: "cosmos-sdk/ThresholdDecisionPolicy",
3343
+ value: ThresholdDecisionPolicy.toAmino(ThresholdDecisionPolicy.decode(content.value, undefined))
3344
+ };
3345
+ case "/cosmos.group.v1.PercentageDecisionPolicy":
3346
+ return {
3347
+ type: "cosmos-sdk/PercentageDecisionPolicy",
3348
+ value: PercentageDecisionPolicy.toAmino(PercentageDecisionPolicy.decode(content.value, undefined))
3349
+ };
3350
+ default:
3351
+ return Any.toAmino(content);
3352
+ }
3353
+ };