decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.32

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 (390) hide show
  1. package/lib/index.d.ts +78 -78
  2. package/lib/index.js +23 -23
  3. package/package.json +5 -2
  4. package/cardchain.cardchain/index.ts +0 -6
  5. package/cardchain.cardchain/module.ts +0 -1869
  6. package/cardchain.cardchain/registry.ts +0 -111
  7. package/cardchain.cardchain/rest.ts +0 -655
  8. package/cardchain.cardchain/types.ts +0 -63
  9. package/cardchain.featureflag/index.ts +0 -6
  10. package/cardchain.featureflag/module.ts +0 -165
  11. package/cardchain.featureflag/registry.ts +0 -11
  12. package/cardchain.featureflag/rest.ts +0 -256
  13. package/cardchain.featureflag/types.ts +0 -9
  14. package/client.ts +0 -164
  15. package/cosmos.auth.v1beta1/index.ts +0 -6
  16. package/cosmos.auth.v1beta1/module.ts +0 -136
  17. package/cosmos.auth.v1beta1/registry.ts +0 -9
  18. package/cosmos.auth.v1beta1/rest.ts +0 -403
  19. package/cosmos.auth.v1beta1/types.ts +0 -13
  20. package/cosmos.authz.v1beta1/index.ts +0 -6
  21. package/cosmos.authz.v1beta1/module.ts +0 -206
  22. package/cosmos.authz.v1beta1/registry.ts +0 -13
  23. package/cosmos.authz.v1beta1/rest.ts +0 -256
  24. package/cosmos.authz.v1beta1/types.ts +0 -17
  25. package/cosmos.bank.v1beta1/index.ts +0 -6
  26. package/cosmos.bank.v1beta1/module.ts +0 -247
  27. package/cosmos.bank.v1beta1/registry.ts +0 -15
  28. package/cosmos.bank.v1beta1/rest.ts +0 -466
  29. package/cosmos.bank.v1beta1/types.ts +0 -25
  30. package/cosmos.base.node.v1beta1/index.ts +0 -6
  31. package/cosmos.base.node.v1beta1/module.ts +0 -95
  32. package/cosmos.base.node.v1beta1/registry.ts +0 -7
  33. package/cosmos.base.node.v1beta1/rest.ts +0 -235
  34. package/cosmos.base.node.v1beta1/types.ts +0 -5
  35. package/cosmos.base.tendermint.v1beta1/index.ts +0 -6
  36. package/cosmos.base.tendermint.v1beta1/module.ts +0 -109
  37. package/cosmos.base.tendermint.v1beta1/registry.ts +0 -7
  38. package/cosmos.base.tendermint.v1beta1/rest.ts +0 -340
  39. package/cosmos.base.tendermint.v1beta1/types.ts +0 -19
  40. package/cosmos.circuit.v1/index.ts +0 -6
  41. package/cosmos.circuit.v1/module.ts +0 -198
  42. package/cosmos.circuit.v1/registry.ts +0 -13
  43. package/cosmos.circuit.v1/rest.ts +0 -256
  44. package/cosmos.circuit.v1/types.ts +0 -9
  45. package/cosmos.consensus.v1/index.ts +0 -6
  46. package/cosmos.consensus.v1/module.ts +0 -128
  47. package/cosmos.consensus.v1/registry.ts +0 -9
  48. package/cosmos.consensus.v1/rest.ts +0 -214
  49. package/cosmos.consensus.v1/types.ts +0 -5
  50. package/cosmos.crisis.v1beta1/index.ts +0 -6
  51. package/cosmos.crisis.v1beta1/module.ts +0 -161
  52. package/cosmos.crisis.v1beta1/registry.ts +0 -11
  53. package/cosmos.crisis.v1beta1/rest.ts +0 -193
  54. package/cosmos.crisis.v1beta1/types.ts +0 -5
  55. package/cosmos.distribution.v1beta1/index.ts +0 -6
  56. package/cosmos.distribution.v1beta1/module.ts +0 -364
  57. package/cosmos.distribution.v1beta1/registry.ts +0 -21
  58. package/cosmos.distribution.v1beta1/rest.ts +0 -403
  59. package/cosmos.distribution.v1beta1/types.ts +0 -43
  60. package/cosmos.evidence.v1beta1/index.ts +0 -6
  61. package/cosmos.evidence.v1beta1/module.ts +0 -130
  62. package/cosmos.evidence.v1beta1/registry.ts +0 -9
  63. package/cosmos.evidence.v1beta1/rest.ts +0 -235
  64. package/cosmos.evidence.v1beta1/types.ts +0 -7
  65. package/cosmos.feegrant.v1beta1/index.ts +0 -6
  66. package/cosmos.feegrant.v1beta1/module.ts +0 -202
  67. package/cosmos.feegrant.v1beta1/registry.ts +0 -13
  68. package/cosmos.feegrant.v1beta1/rest.ts +0 -256
  69. package/cosmos.feegrant.v1beta1/types.ts +0 -13
  70. package/cosmos.gov.v1/index.ts +0 -6
  71. package/cosmos.gov.v1/module.ts +0 -344
  72. package/cosmos.gov.v1/registry.ts +0 -21
  73. package/cosmos.gov.v1/rest.ts +0 -382
  74. package/cosmos.gov.v1/types.ts +0 -23
  75. package/cosmos.gov.v1beta1/index.ts +0 -6
  76. package/cosmos.gov.v1beta1/module.ts +0 -245
  77. package/cosmos.gov.v1beta1/registry.ts +0 -15
  78. package/cosmos.gov.v1beta1/rest.ts +0 -361
  79. package/cosmos.gov.v1beta1/types.ts +0 -23
  80. package/cosmos.group.v1/index.ts +0 -6
  81. package/cosmos.group.v1/module.ts +0 -599
  82. package/cosmos.group.v1/registry.ts +0 -35
  83. package/cosmos.group.v1/rest.ts +0 -487
  84. package/cosmos.group.v1/types.ts +0 -47
  85. package/cosmos.mint.v1beta1/index.ts +0 -6
  86. package/cosmos.mint.v1beta1/module.ts +0 -132
  87. package/cosmos.mint.v1beta1/registry.ts +0 -9
  88. package/cosmos.mint.v1beta1/rest.ts +0 -256
  89. package/cosmos.mint.v1beta1/types.ts +0 -9
  90. package/cosmos.nft.v1beta1/index.ts +0 -6
  91. package/cosmos.nft.v1beta1/module.ts +0 -140
  92. package/cosmos.nft.v1beta1/registry.ts +0 -9
  93. package/cosmos.nft.v1beta1/rest.ts +0 -340
  94. package/cosmos.nft.v1beta1/types.ts +0 -17
  95. package/cosmos.params.v1beta1/index.ts +0 -6
  96. package/cosmos.params.v1beta1/module.ts +0 -101
  97. package/cosmos.params.v1beta1/registry.ts +0 -7
  98. package/cosmos.params.v1beta1/rest.ts +0 -235
  99. package/cosmos.params.v1beta1/types.ts +0 -11
  100. package/cosmos.slashing.v1beta1/index.ts +0 -6
  101. package/cosmos.slashing.v1beta1/module.ts +0 -171
  102. package/cosmos.slashing.v1beta1/registry.ts +0 -11
  103. package/cosmos.slashing.v1beta1/rest.ts +0 -256
  104. package/cosmos.slashing.v1beta1/types.ts +0 -15
  105. package/cosmos.staking.v1beta1/index.ts +0 -6
  106. package/cosmos.staking.v1beta1/module.ts +0 -374
  107. package/cosmos.staking.v1beta1/registry.ts +0 -21
  108. package/cosmos.staking.v1beta1/rest.ts +0 -487
  109. package/cosmos.staking.v1beta1/types.ts +0 -53
  110. package/cosmos.tx.v1beta1/index.ts +0 -6
  111. package/cosmos.tx.v1beta1/module.ts +0 -121
  112. package/cosmos.tx.v1beta1/registry.ts +0 -7
  113. package/cosmos.tx.v1beta1/rest.ts +0 -382
  114. package/cosmos.tx.v1beta1/types.ts +0 -31
  115. package/cosmos.upgrade.v1beta1/index.ts +0 -6
  116. package/cosmos.upgrade.v1beta1/module.ts +0 -169
  117. package/cosmos.upgrade.v1beta1/registry.ts +0 -11
  118. package/cosmos.upgrade.v1beta1/rest.ts +0 -298
  119. package/cosmos.upgrade.v1beta1/types.ts +0 -13
  120. package/cosmos.vesting.v1beta1/index.ts +0 -6
  121. package/cosmos.vesting.v1beta1/module.ts +0 -206
  122. package/cosmos.vesting.v1beta1/registry.ts +0 -13
  123. package/cosmos.vesting.v1beta1/rest.ts +0 -193
  124. package/cosmos.vesting.v1beta1/types.ts +0 -17
  125. package/env.ts +0 -7
  126. package/helpers.ts +0 -32
  127. package/ibc.applications.fee.v1/index.ts +0 -6
  128. package/ibc.applications.fee.v1/module.ts +0 -247
  129. package/ibc.applications.fee.v1/registry.ts +0 -15
  130. package/ibc.applications.fee.v1/rest.ts +0 -403
  131. package/ibc.applications.fee.v1/types.ts +0 -25
  132. package/ibc.applications.interchain_accounts.controller.v1/index.ts +0 -6
  133. package/ibc.applications.interchain_accounts.controller.v1/module.ts +0 -196
  134. package/ibc.applications.interchain_accounts.controller.v1/registry.ts +0 -13
  135. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -235
  136. package/ibc.applications.interchain_accounts.controller.v1/types.ts +0 -7
  137. package/ibc.applications.interchain_accounts.host.v1/index.ts +0 -6
  138. package/ibc.applications.interchain_accounts.host.v1/module.ts +0 -165
  139. package/ibc.applications.interchain_accounts.host.v1/registry.ts +0 -11
  140. package/ibc.applications.interchain_accounts.host.v1/rest.ts +0 -214
  141. package/ibc.applications.interchain_accounts.host.v1/types.ts +0 -9
  142. package/ibc.applications.transfer.v1/index.ts +0 -6
  143. package/ibc.applications.transfer.v1/module.ts +0 -169
  144. package/ibc.applications.transfer.v1/registry.ts +0 -11
  145. package/ibc.applications.transfer.v1/rest.ts +0 -319
  146. package/ibc.applications.transfer.v1/types.ts +0 -13
  147. package/ibc.core.channel.v1/index.ts +0 -6
  148. package/ibc.core.channel.v1/module.ts +0 -748
  149. package/ibc.core.channel.v1/registry.ts +0 -45
  150. package/ibc.core.channel.v1/rest.ts +0 -550
  151. package/ibc.core.channel.v1/types.ts +0 -31
  152. package/ibc.core.client.v1/index.ts +0 -6
  153. package/ibc.core.client.v1/module.ts +0 -344
  154. package/ibc.core.client.v1/registry.ts +0 -21
  155. package/ibc.core.client.v1/rest.ts +0 -403
  156. package/ibc.core.client.v1/types.ts +0 -23
  157. package/ibc.core.connection.v1/index.ts +0 -6
  158. package/ibc.core.connection.v1/module.ts +0 -274
  159. package/ibc.core.connection.v1/registry.ts +0 -17
  160. package/ibc.core.connection.v1/rest.ts +0 -319
  161. package/ibc.core.connection.v1/types.ts +0 -19
  162. package/index.ts +0 -81
  163. package/modules.ts +0 -5
  164. package/tsconfig.json +0 -13
  165. package/types/amino/amino.ts +0 -9
  166. package/types/capability/v1/capability.ts +0 -263
  167. package/types/capability/v1/genesis.ts +0 -220
  168. package/types/cardchain/cardchain/card.ts +0 -712
  169. package/types/cardchain/cardchain/card_content.ts +0 -116
  170. package/types/cardchain/cardchain/card_with_image.ts +0 -134
  171. package/types/cardchain/cardchain/council.ts +0 -502
  172. package/types/cardchain/cardchain/encounter.ts +0 -307
  173. package/types/cardchain/cardchain/encounter_with_image.ts +0 -119
  174. package/types/cardchain/cardchain/genesis.ts +0 -403
  175. package/types/cardchain/cardchain/image.ts +0 -122
  176. package/types/cardchain/cardchain/match.ts +0 -453
  177. package/types/cardchain/cardchain/module/module.ts +0 -99
  178. package/types/cardchain/cardchain/params.ts +0 -544
  179. package/types/cardchain/cardchain/query.ts +0 -3786
  180. package/types/cardchain/cardchain/running_average.ts +0 -116
  181. package/types/cardchain/cardchain/sell_offer.ts +0 -224
  182. package/types/cardchain/cardchain/server.ts +0 -144
  183. package/types/cardchain/cardchain/set.ts +0 -537
  184. package/types/cardchain/cardchain/set_with_artwork.ts +0 -142
  185. package/types/cardchain/cardchain/tx.ts +0 -8053
  186. package/types/cardchain/cardchain/user.ts +0 -955
  187. package/types/cardchain/cardchain/voting.ts +0 -328
  188. package/types/cardchain/cardchain/voting_results.ts +0 -227
  189. package/types/cardchain/cardchain/zealy.ts +0 -116
  190. package/types/cardchain/featureflag/flag.ts +0 -133
  191. package/types/cardchain/featureflag/genesis.ts +0 -226
  192. package/types/cardchain/featureflag/module/module.ts +0 -99
  193. package/types/cardchain/featureflag/params.ts +0 -78
  194. package/types/cardchain/featureflag/query.ts +0 -445
  195. package/types/cardchain/featureflag/tx.ts +0 -373
  196. package/types/cosmos/app/runtime/v1alpha1/module.ts +0 -389
  197. package/types/cosmos/app/v1alpha1/config.ts +0 -346
  198. package/types/cosmos/app/v1alpha1/module.ts +0 -348
  199. package/types/cosmos/app/v1alpha1/query.ts +0 -175
  200. package/types/cosmos/auth/module/v1/module.ts +0 -229
  201. package/types/cosmos/auth/v1beta1/auth.ts +0 -531
  202. package/types/cosmos/auth/v1beta1/genesis.ts +0 -125
  203. package/types/cosmos/auth/v1beta1/query.ts +0 -1564
  204. package/types/cosmos/auth/v1beta1/tx.ts +0 -213
  205. package/types/cosmos/authz/module/v1/module.ts +0 -78
  206. package/types/cosmos/authz/v1beta1/authz.ts +0 -411
  207. package/types/cosmos/authz/v1beta1/event.ts +0 -241
  208. package/types/cosmos/authz/v1beta1/genesis.ts +0 -101
  209. package/types/cosmos/authz/v1beta1/query.ts +0 -643
  210. package/types/cosmos/authz/v1beta1/tx.ts +0 -574
  211. package/types/cosmos/autocli/v1/options.ts +0 -1049
  212. package/types/cosmos/autocli/v1/query.ts +0 -291
  213. package/types/cosmos/bank/module/v1/module.ts +0 -150
  214. package/types/cosmos/bank/v1beta1/authz.ts +0 -129
  215. package/types/cosmos/bank/v1beta1/bank.ts +0 -775
  216. package/types/cosmos/bank/v1beta1/genesis.ts +0 -277
  217. package/types/cosmos/bank/v1beta1/query.ts +0 -2424
  218. package/types/cosmos/bank/v1beta1/tx.ts +0 -697
  219. package/types/cosmos/base/abci/v1beta1/abci.ts +0 -1469
  220. package/types/cosmos/base/node/v1beta1/query.ts +0 -485
  221. package/types/cosmos/base/query/v1beta1/pagination.ts +0 -336
  222. package/types/cosmos/base/reflection/v1beta1/reflection.ts +0 -328
  223. package/types/cosmos/base/reflection/v2alpha1/reflection.ts +0 -2092
  224. package/types/cosmos/base/tendermint/v1beta1/query.ts +0 -2025
  225. package/types/cosmos/base/tendermint/v1beta1/types.ts +0 -548
  226. package/types/cosmos/base/v1beta1/coin.ts +0 -209
  227. package/types/cosmos/circuit/module/v1/module.ts +0 -99
  228. package/types/cosmos/circuit/v1/query.ts +0 -476
  229. package/types/cosmos/circuit/v1/tx.ts +0 -576
  230. package/types/cosmos/circuit/v1/types.ts +0 -362
  231. package/types/cosmos/consensus/module/v1/module.ts +0 -99
  232. package/types/cosmos/consensus/v1/query.ts +0 -181
  233. package/types/cosmos/consensus/v1/tx.ts +0 -271
  234. package/types/cosmos/crisis/module/v1/module.ts +0 -119
  235. package/types/cosmos/crisis/v1beta1/genesis.ts +0 -105
  236. package/types/cosmos/crisis/v1beta1/tx.ts +0 -367
  237. package/types/cosmos/crypto/ed25519/keys.ts +0 -195
  238. package/types/cosmos/crypto/hd/v1/hd.ts +0 -178
  239. package/types/cosmos/crypto/keyring/v1/record.ts +0 -440
  240. package/types/cosmos/crypto/multisig/keys.ts +0 -124
  241. package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +0 -218
  242. package/types/cosmos/crypto/secp256k1/keys.ts +0 -192
  243. package/types/cosmos/crypto/secp256r1/keys.ts +0 -193
  244. package/types/cosmos/distribution/module/v1/module.ts +0 -118
  245. package/types/cosmos/distribution/v1beta1/distribution.ts +0 -1177
  246. package/types/cosmos/distribution/v1beta1/genesis.ts +0 -1028
  247. package/types/cosmos/distribution/v1beta1/query.ts +0 -1700
  248. package/types/cosmos/distribution/v1beta1/tx.ts +0 -1178
  249. package/types/cosmos/evidence/module/v1/module.ts +0 -78
  250. package/types/cosmos/evidence/v1beta1/evidence.ts +0 -194
  251. package/types/cosmos/evidence/v1beta1/genesis.ts +0 -98
  252. package/types/cosmos/evidence/v1beta1/query.ts +0 -414
  253. package/types/cosmos/evidence/v1beta1/tx.ts +0 -243
  254. package/types/cosmos/feegrant/module/v1/module.ts +0 -78
  255. package/types/cosmos/feegrant/v1beta1/feegrant.ts +0 -513
  256. package/types/cosmos/feegrant/v1beta1/genesis.ts +0 -101
  257. package/types/cosmos/feegrant/v1beta1/query.ts +0 -597
  258. package/types/cosmos/feegrant/v1beta1/tx.ts +0 -496
  259. package/types/cosmos/genutil/module/v1/module.ts +0 -78
  260. package/types/cosmos/genutil/v1beta1/genesis.ts +0 -122
  261. package/types/cosmos/gov/module/v1/module.ts +0 -133
  262. package/types/cosmos/gov/v1/genesis.ts +0 -313
  263. package/types/cosmos/gov/v1/gov.ts +0 -1712
  264. package/types/cosmos/gov/v1/query.ts +0 -1605
  265. package/types/cosmos/gov/v1/tx.ts +0 -1387
  266. package/types/cosmos/gov/v1beta1/genesis.ts +0 -241
  267. package/types/cosmos/gov/v1beta1/gov.ts +0 -1273
  268. package/types/cosmos/gov/v1beta1/query.ts +0 -1441
  269. package/types/cosmos/gov/v1beta1/tx.ts +0 -738
  270. package/types/cosmos/group/module/v1/module.ts +0 -141
  271. package/types/cosmos/group/v1/events.ts +0 -795
  272. package/types/cosmos/group/v1/genesis.ts +0 -265
  273. package/types/cosmos/group/v1/query.ts +0 -2441
  274. package/types/cosmos/group/v1/tx.ts +0 -2631
  275. package/types/cosmos/group/v1/types.ts +0 -1850
  276. package/types/cosmos/ics23/v1/proofs.ts +0 -1731
  277. package/types/cosmos/mint/module/v1/module.ts +0 -118
  278. package/types/cosmos/mint/v1beta1/genesis.ts +0 -126
  279. package/types/cosmos/mint/v1beta1/mint.ts +0 -293
  280. package/types/cosmos/mint/v1beta1/query.ts +0 -453
  281. package/types/cosmos/mint/v1beta1/tx.ts +0 -213
  282. package/types/cosmos/msg/textual/v1/textual.ts +0 -9
  283. package/types/cosmos/msg/v1/msg.ts +0 -9
  284. package/types/cosmos/nft/module/v1/module.ts +0 -78
  285. package/types/cosmos/nft/v1beta1/event.ts +0 -359
  286. package/types/cosmos/nft/v1beta1/genesis.ts +0 -204
  287. package/types/cosmos/nft/v1beta1/nft.ts +0 -348
  288. package/types/cosmos/nft/v1beta1/query.ts +0 -1173
  289. package/types/cosmos/nft/v1beta1/tx.ts +0 -228
  290. package/types/cosmos/orm/module/v1alpha1/module.ts +0 -82
  291. package/types/cosmos/orm/query/v1alpha1/query.ts +0 -933
  292. package/types/cosmos/orm/v1/orm.ts +0 -453
  293. package/types/cosmos/orm/v1alpha1/schema.ts +0 -321
  294. package/types/cosmos/params/module/v1/module.ts +0 -78
  295. package/types/cosmos/params/v1beta1/params.ts +0 -236
  296. package/types/cosmos/params/v1beta1/query.ts +0 -439
  297. package/types/cosmos/query/v1/query.ts +0 -9
  298. package/types/cosmos/reflection/v1/reflection.ts +0 -179
  299. package/types/cosmos/slashing/module/v1/module.ts +0 -99
  300. package/types/cosmos/slashing/v1beta1/genesis.ts +0 -424
  301. package/types/cosmos/slashing/v1beta1/query.ts +0 -487
  302. package/types/cosmos/slashing/v1beta1/slashing.ts +0 -422
  303. package/types/cosmos/slashing/v1beta1/tx.ts +0 -336
  304. package/types/cosmos/staking/module/v1/module.ts +0 -161
  305. package/types/cosmos/staking/v1beta1/authz.ts +0 -306
  306. package/types/cosmos/staking/v1beta1/genesis.ts +0 -377
  307. package/types/cosmos/staking/v1beta1/query.ts +0 -2540
  308. package/types/cosmos/staking/v1beta1/staking.ts +0 -2576
  309. package/types/cosmos/staking/v1beta1/tx.ts +0 -1433
  310. package/types/cosmos/store/internal/kv/v1beta1/kv.ts +0 -205
  311. package/types/cosmos/store/snapshots/v1/snapshot.ts +0 -746
  312. package/types/cosmos/store/streaming/abci/grpc.ts +0 -367
  313. package/types/cosmos/store/v1beta1/commit_info.ts +0 -370
  314. package/types/cosmos/store/v1beta1/listening.ts +0 -301
  315. package/types/cosmos/tx/config/v1/config.ts +0 -125
  316. package/types/cosmos/tx/signing/v1beta1/signing.ts +0 -630
  317. package/types/cosmos/tx/v1beta1/service.ts +0 -1889
  318. package/types/cosmos/tx/v1beta1/tx.ts +0 -1657
  319. package/types/cosmos/upgrade/module/v1/module.ts +0 -99
  320. package/types/cosmos/upgrade/v1beta1/query.ts +0 -819
  321. package/types/cosmos/upgrade/v1beta1/tx.ts +0 -340
  322. package/types/cosmos/upgrade/v1beta1/upgrade.ts +0 -525
  323. package/types/cosmos/vesting/module/v1/module.ts +0 -78
  324. package/types/cosmos/vesting/v1beta1/tx.ts +0 -640
  325. package/types/cosmos/vesting/v1beta1/vesting.ts +0 -624
  326. package/types/cosmos_proto/cosmos.ts +0 -307
  327. package/types/gogoproto/gogo.ts +0 -9
  328. package/types/google/api/annotations.ts +0 -9
  329. package/types/google/api/http.ts +0 -770
  330. package/types/google/protobuf/any.ts +0 -259
  331. package/types/google/protobuf/descriptor.ts +0 -6642
  332. package/types/google/protobuf/duration.ts +0 -200
  333. package/types/google/protobuf/timestamp.ts +0 -229
  334. package/types/ibc/applications/fee/v1/ack.ts +0 -166
  335. package/types/ibc/applications/fee/v1/fee.ts +0 -403
  336. package/types/ibc/applications/fee/v1/genesis.ts +0 -571
  337. package/types/ibc/applications/fee/v1/metadata.ts +0 -122
  338. package/types/ibc/applications/fee/v1/query.ts +0 -1757
  339. package/types/ibc/applications/fee/v1/tx.ts +0 -781
  340. package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +0 -104
  341. package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +0 -333
  342. package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +0 -619
  343. package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +0 -590
  344. package/types/ibc/applications/interchain_accounts/host/v1/host.ts +0 -242
  345. package/types/ibc/applications/interchain_accounts/host/v1/query.ts +0 -175
  346. package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +0 -416
  347. package/types/ibc/applications/interchain_accounts/v1/account.ts +0 -120
  348. package/types/ibc/applications/interchain_accounts/v1/metadata.ts +0 -199
  349. package/types/ibc/applications/interchain_accounts/v1/packet.ts +0 -264
  350. package/types/ibc/applications/transfer/v1/authz.ts +0 -254
  351. package/types/ibc/applications/transfer/v1/genesis.ts +0 -165
  352. package/types/ibc/applications/transfer/v1/query.ts +0 -934
  353. package/types/ibc/applications/transfer/v1/transfer.ts +0 -220
  354. package/types/ibc/applications/transfer/v1/tx.ts +0 -505
  355. package/types/ibc/applications/transfer/v2/packet.ts +0 -177
  356. package/types/ibc/core/channel/v1/channel.ts +0 -1358
  357. package/types/ibc/core/channel/v1/genesis.ts +0 -377
  358. package/types/ibc/core/channel/v1/query.ts +0 -3781
  359. package/types/ibc/core/channel/v1/tx.ts +0 -4424
  360. package/types/ibc/core/channel/v1/upgrade.ts +0 -348
  361. package/types/ibc/core/client/v1/client.ts +0 -753
  362. package/types/ibc/core/client/v1/genesis.ts +0 -423
  363. package/types/ibc/core/client/v1/query.ts +0 -1898
  364. package/types/ibc/core/client/v1/tx.ts +0 -1301
  365. package/types/ibc/core/commitment/v1/commitment.ts +0 -336
  366. package/types/ibc/core/connection/v1/connection.ts +0 -840
  367. package/types/ibc/core/connection/v1/genesis.ts +0 -172
  368. package/types/ibc/core/connection/v1/query.ts +0 -1243
  369. package/types/ibc/core/connection/v1/tx.ts +0 -1352
  370. package/types/ibc/core/types/v1/genesis.ts +0 -150
  371. package/types/ibc/lightclients/localhost/v2/localhost.ts +0 -102
  372. package/types/ibc/lightclients/solomachine/v2/solomachine.ts +0 -1765
  373. package/types/ibc/lightclients/solomachine/v3/solomachine.ts +0 -945
  374. package/types/ibc/lightclients/tendermint/v1/tendermint.ts +0 -853
  375. package/types/ibc/lightclients/wasm/v1/genesis.ts +0 -192
  376. package/types/ibc/lightclients/wasm/v1/query.ts +0 -377
  377. package/types/ibc/lightclients/wasm/v1/tx.ts +0 -550
  378. package/types/ibc/lightclients/wasm/v1/wasm.ts +0 -370
  379. package/types/tendermint/abci/types.ts +0 -6103
  380. package/types/tendermint/crypto/keys.ts +0 -142
  381. package/types/tendermint/crypto/proof.ts +0 -533
  382. package/types/tendermint/libs/bits/types.ts +0 -139
  383. package/types/tendermint/p2p/types.ts +0 -544
  384. package/types/tendermint/types/block.ts +0 -158
  385. package/types/tendermint/types/evidence.ts +0 -502
  386. package/types/tendermint/types/params.ts +0 -701
  387. package/types/tendermint/types/types.ts +0 -2133
  388. package/types/tendermint/types/validator.ts +0 -424
  389. package/types/tendermint/version/types.ts +0 -218
  390. package/types.d.ts +0 -21
@@ -1,2631 +0,0 @@
1
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-ts_proto v2.6.1
4
- // protoc unknown
5
- // source: cosmos/group/v1/tx.proto
6
-
7
- /* eslint-disable */
8
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
9
- import { Any } from "../../../google/protobuf/any";
10
- import {
11
- MemberRequest,
12
- ProposalExecutorResult,
13
- proposalExecutorResultFromJSON,
14
- proposalExecutorResultToJSON,
15
- VoteOption,
16
- voteOptionFromJSON,
17
- voteOptionToJSON,
18
- } from "./types";
19
-
20
- export const protobufPackage = "cosmos.group.v1";
21
-
22
- /** Since: cosmos-sdk 0.46 */
23
-
24
- /** Exec defines modes of execution of a proposal on creation or on new vote. */
25
- export enum Exec {
26
- /**
27
- * EXEC_UNSPECIFIED - An empty value means that there should be a separate
28
- * MsgExec request for the proposal to execute.
29
- */
30
- EXEC_UNSPECIFIED = 0,
31
- /**
32
- * EXEC_TRY - Try to execute the proposal immediately.
33
- * If the proposal is not allowed per the DecisionPolicy,
34
- * the proposal will still be open and could
35
- * be executed at a later point.
36
- */
37
- EXEC_TRY = 1,
38
- UNRECOGNIZED = -1,
39
- }
40
-
41
- export function execFromJSON(object: any): Exec {
42
- switch (object) {
43
- case 0:
44
- case "EXEC_UNSPECIFIED":
45
- return Exec.EXEC_UNSPECIFIED;
46
- case 1:
47
- case "EXEC_TRY":
48
- return Exec.EXEC_TRY;
49
- case -1:
50
- case "UNRECOGNIZED":
51
- default:
52
- return Exec.UNRECOGNIZED;
53
- }
54
- }
55
-
56
- export function execToJSON(object: Exec): string {
57
- switch (object) {
58
- case Exec.EXEC_UNSPECIFIED:
59
- return "EXEC_UNSPECIFIED";
60
- case Exec.EXEC_TRY:
61
- return "EXEC_TRY";
62
- case Exec.UNRECOGNIZED:
63
- default:
64
- return "UNRECOGNIZED";
65
- }
66
- }
67
-
68
- /** MsgCreateGroup is the Msg/CreateGroup request type. */
69
- export interface MsgCreateGroup {
70
- /** admin is the account address of the group admin. */
71
- admin: string;
72
- /** members defines the group members. */
73
- members: MemberRequest[];
74
- /** metadata is any arbitrary metadata to attached to the group. */
75
- metadata: string;
76
- }
77
-
78
- /** MsgCreateGroupResponse is the Msg/CreateGroup response type. */
79
- export interface MsgCreateGroupResponse {
80
- /** group_id is the unique ID of the newly created group. */
81
- groupId: number;
82
- }
83
-
84
- /** MsgUpdateGroupMembers is the Msg/UpdateGroupMembers request type. */
85
- export interface MsgUpdateGroupMembers {
86
- /** admin is the account address of the group admin. */
87
- admin: string;
88
- /** group_id is the unique ID of the group. */
89
- groupId: number;
90
- /**
91
- * member_updates is the list of members to update,
92
- * set weight to 0 to remove a member.
93
- */
94
- memberUpdates: MemberRequest[];
95
- }
96
-
97
- /** MsgUpdateGroupMembersResponse is the Msg/UpdateGroupMembers response type. */
98
- export interface MsgUpdateGroupMembersResponse {
99
- }
100
-
101
- /** MsgUpdateGroupAdmin is the Msg/UpdateGroupAdmin request type. */
102
- export interface MsgUpdateGroupAdmin {
103
- /** admin is the current account address of the group admin. */
104
- admin: string;
105
- /** group_id is the unique ID of the group. */
106
- groupId: number;
107
- /** new_admin is the group new admin account address. */
108
- newAdmin: string;
109
- }
110
-
111
- /** MsgUpdateGroupAdminResponse is the Msg/UpdateGroupAdmin response type. */
112
- export interface MsgUpdateGroupAdminResponse {
113
- }
114
-
115
- /** MsgUpdateGroupMetadata is the Msg/UpdateGroupMetadata request type. */
116
- export interface MsgUpdateGroupMetadata {
117
- /** admin is the account address of the group admin. */
118
- admin: string;
119
- /** group_id is the unique ID of the group. */
120
- groupId: number;
121
- /** metadata is the updated group's metadata. */
122
- metadata: string;
123
- }
124
-
125
- /** MsgUpdateGroupMetadataResponse is the Msg/UpdateGroupMetadata response type. */
126
- export interface MsgUpdateGroupMetadataResponse {
127
- }
128
-
129
- /** MsgCreateGroupPolicy is the Msg/CreateGroupPolicy request type. */
130
- export interface MsgCreateGroupPolicy {
131
- /** admin is the account address of the group admin. */
132
- admin: string;
133
- /** group_id is the unique ID of the group. */
134
- groupId: number;
135
- /** metadata is any arbitrary metadata attached to the group policy. */
136
- metadata: string;
137
- /** decision_policy specifies the group policy's decision policy. */
138
- decisionPolicy: Any | undefined;
139
- }
140
-
141
- /** MsgCreateGroupPolicyResponse is the Msg/CreateGroupPolicy response type. */
142
- export interface MsgCreateGroupPolicyResponse {
143
- /** address is the account address of the newly created group policy. */
144
- address: string;
145
- }
146
-
147
- /** MsgUpdateGroupPolicyAdmin is the Msg/UpdateGroupPolicyAdmin request type. */
148
- export interface MsgUpdateGroupPolicyAdmin {
149
- /** admin is the account address of the group admin. */
150
- admin: string;
151
- /** group_policy_address is the account address of the group policy. */
152
- groupPolicyAddress: string;
153
- /** new_admin is the new group policy admin. */
154
- newAdmin: string;
155
- }
156
-
157
- /** MsgUpdateGroupPolicyAdminResponse is the Msg/UpdateGroupPolicyAdmin response type. */
158
- export interface MsgUpdateGroupPolicyAdminResponse {
159
- }
160
-
161
- /** MsgCreateGroupWithPolicy is the Msg/CreateGroupWithPolicy request type. */
162
- export interface MsgCreateGroupWithPolicy {
163
- /** admin is the account address of the group and group policy admin. */
164
- admin: string;
165
- /** members defines the group members. */
166
- members: MemberRequest[];
167
- /** group_metadata is any arbitrary metadata attached to the group. */
168
- groupMetadata: string;
169
- /** group_policy_metadata is any arbitrary metadata attached to the group policy. */
170
- groupPolicyMetadata: string;
171
- /**
172
- * group_policy_as_admin is a boolean field, if set to true, the group policy account address will be used as group
173
- * and group policy admin.
174
- */
175
- groupPolicyAsAdmin: boolean;
176
- /** decision_policy specifies the group policy's decision policy. */
177
- decisionPolicy: Any | undefined;
178
- }
179
-
180
- /** MsgCreateGroupWithPolicyResponse is the Msg/CreateGroupWithPolicy response type. */
181
- export interface MsgCreateGroupWithPolicyResponse {
182
- /** group_id is the unique ID of the newly created group with policy. */
183
- groupId: number;
184
- /** group_policy_address is the account address of the newly created group policy. */
185
- groupPolicyAddress: string;
186
- }
187
-
188
- /** MsgUpdateGroupPolicyDecisionPolicy is the Msg/UpdateGroupPolicyDecisionPolicy request type. */
189
- export interface MsgUpdateGroupPolicyDecisionPolicy {
190
- /** admin is the account address of the group admin. */
191
- admin: string;
192
- /** group_policy_address is the account address of group policy. */
193
- groupPolicyAddress: string;
194
- /** decision_policy is the updated group policy's decision policy. */
195
- decisionPolicy: Any | undefined;
196
- }
197
-
198
- /** MsgUpdateGroupPolicyDecisionPolicyResponse is the Msg/UpdateGroupPolicyDecisionPolicy response type. */
199
- export interface MsgUpdateGroupPolicyDecisionPolicyResponse {
200
- }
201
-
202
- /** MsgUpdateGroupPolicyMetadata is the Msg/UpdateGroupPolicyMetadata request type. */
203
- export interface MsgUpdateGroupPolicyMetadata {
204
- /** admin is the account address of the group admin. */
205
- admin: string;
206
- /** group_policy_address is the account address of group policy. */
207
- groupPolicyAddress: string;
208
- /** metadata is the group policy metadata to be updated. */
209
- metadata: string;
210
- }
211
-
212
- /** MsgUpdateGroupPolicyMetadataResponse is the Msg/UpdateGroupPolicyMetadata response type. */
213
- export interface MsgUpdateGroupPolicyMetadataResponse {
214
- }
215
-
216
- /** MsgSubmitProposal is the Msg/SubmitProposal request type. */
217
- export interface MsgSubmitProposal {
218
- /** group_policy_address is the account address of group policy. */
219
- groupPolicyAddress: string;
220
- /**
221
- * proposers are the account addresses of the proposers.
222
- * Proposers signatures will be counted as yes votes.
223
- */
224
- proposers: string[];
225
- /** metadata is any arbitrary metadata attached to the proposal. */
226
- metadata: string;
227
- /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */
228
- messages: Any[];
229
- /**
230
- * exec defines the mode of execution of the proposal,
231
- * whether it should be executed immediately on creation or not.
232
- * If so, proposers signatures are considered as Yes votes.
233
- */
234
- exec: Exec;
235
- /**
236
- * title is the title of the proposal.
237
- *
238
- * Since: cosmos-sdk 0.47
239
- */
240
- title: string;
241
- /**
242
- * summary is the summary of the proposal.
243
- *
244
- * Since: cosmos-sdk 0.47
245
- */
246
- summary: string;
247
- }
248
-
249
- /** MsgSubmitProposalResponse is the Msg/SubmitProposal response type. */
250
- export interface MsgSubmitProposalResponse {
251
- /** proposal is the unique ID of the proposal. */
252
- proposalId: number;
253
- }
254
-
255
- /** MsgWithdrawProposal is the Msg/WithdrawProposal request type. */
256
- export interface MsgWithdrawProposal {
257
- /** proposal is the unique ID of the proposal. */
258
- proposalId: number;
259
- /** address is the admin of the group policy or one of the proposer of the proposal. */
260
- address: string;
261
- }
262
-
263
- /** MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type. */
264
- export interface MsgWithdrawProposalResponse {
265
- }
266
-
267
- /** MsgVote is the Msg/Vote request type. */
268
- export interface MsgVote {
269
- /** proposal is the unique ID of the proposal. */
270
- proposalId: number;
271
- /** voter is the voter account address. */
272
- voter: string;
273
- /** option is the voter's choice on the proposal. */
274
- option: VoteOption;
275
- /** metadata is any arbitrary metadata attached to the vote. */
276
- metadata: string;
277
- /**
278
- * exec defines whether the proposal should be executed
279
- * immediately after voting or not.
280
- */
281
- exec: Exec;
282
- }
283
-
284
- /** MsgVoteResponse is the Msg/Vote response type. */
285
- export interface MsgVoteResponse {
286
- }
287
-
288
- /** MsgExec is the Msg/Exec request type. */
289
- export interface MsgExec {
290
- /** proposal is the unique ID of the proposal. */
291
- proposalId: number;
292
- /** executor is the account address used to execute the proposal. */
293
- executor: string;
294
- }
295
-
296
- /** MsgExecResponse is the Msg/Exec request type. */
297
- export interface MsgExecResponse {
298
- /** result is the final result of the proposal execution. */
299
- result: ProposalExecutorResult;
300
- }
301
-
302
- /** MsgLeaveGroup is the Msg/LeaveGroup request type. */
303
- export interface MsgLeaveGroup {
304
- /** address is the account address of the group member. */
305
- address: string;
306
- /** group_id is the unique ID of the group. */
307
- groupId: number;
308
- }
309
-
310
- /** MsgLeaveGroupResponse is the Msg/LeaveGroup response type. */
311
- export interface MsgLeaveGroupResponse {
312
- }
313
-
314
- function createBaseMsgCreateGroup(): MsgCreateGroup {
315
- return { admin: "", members: [], metadata: "" };
316
- }
317
-
318
- export const MsgCreateGroup: MessageFns<MsgCreateGroup> = {
319
- encode(message: MsgCreateGroup, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
320
- if (message.admin !== "") {
321
- writer.uint32(10).string(message.admin);
322
- }
323
- for (const v of message.members) {
324
- MemberRequest.encode(v!, writer.uint32(18).fork()).join();
325
- }
326
- if (message.metadata !== "") {
327
- writer.uint32(26).string(message.metadata);
328
- }
329
- return writer;
330
- },
331
-
332
- decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroup {
333
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
334
- let end = length === undefined ? reader.len : reader.pos + length;
335
- const message = createBaseMsgCreateGroup();
336
- while (reader.pos < end) {
337
- const tag = reader.uint32();
338
- switch (tag >>> 3) {
339
- case 1: {
340
- if (tag !== 10) {
341
- break;
342
- }
343
-
344
- message.admin = reader.string();
345
- continue;
346
- }
347
- case 2: {
348
- if (tag !== 18) {
349
- break;
350
- }
351
-
352
- message.members.push(MemberRequest.decode(reader, reader.uint32()));
353
- continue;
354
- }
355
- case 3: {
356
- if (tag !== 26) {
357
- break;
358
- }
359
-
360
- message.metadata = reader.string();
361
- continue;
362
- }
363
- }
364
- if ((tag & 7) === 4 || tag === 0) {
365
- break;
366
- }
367
- reader.skip(tag & 7);
368
- }
369
- return message;
370
- },
371
-
372
- fromJSON(object: any): MsgCreateGroup {
373
- return {
374
- admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
375
- members: globalThis.Array.isArray(object?.members)
376
- ? object.members.map((e: any) => MemberRequest.fromJSON(e))
377
- : [],
378
- metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
379
- };
380
- },
381
-
382
- toJSON(message: MsgCreateGroup): unknown {
383
- const obj: any = {};
384
- if (message.admin !== "") {
385
- obj.admin = message.admin;
386
- }
387
- if (message.members?.length) {
388
- obj.members = message.members.map((e) => MemberRequest.toJSON(e));
389
- }
390
- if (message.metadata !== "") {
391
- obj.metadata = message.metadata;
392
- }
393
- return obj;
394
- },
395
-
396
- create<I extends Exact<DeepPartial<MsgCreateGroup>, I>>(base?: I): MsgCreateGroup {
397
- return MsgCreateGroup.fromPartial(base ?? ({} as any));
398
- },
399
- fromPartial<I extends Exact<DeepPartial<MsgCreateGroup>, I>>(object: I): MsgCreateGroup {
400
- const message = createBaseMsgCreateGroup();
401
- message.admin = object.admin ?? "";
402
- message.members = object.members?.map((e) => MemberRequest.fromPartial(e)) || [];
403
- message.metadata = object.metadata ?? "";
404
- return message;
405
- },
406
- };
407
-
408
- function createBaseMsgCreateGroupResponse(): MsgCreateGroupResponse {
409
- return { groupId: 0 };
410
- }
411
-
412
- export const MsgCreateGroupResponse: MessageFns<MsgCreateGroupResponse> = {
413
- encode(message: MsgCreateGroupResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
414
- if (message.groupId !== 0) {
415
- writer.uint32(8).uint64(message.groupId);
416
- }
417
- return writer;
418
- },
419
-
420
- decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupResponse {
421
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
422
- let end = length === undefined ? reader.len : reader.pos + length;
423
- const message = createBaseMsgCreateGroupResponse();
424
- while (reader.pos < end) {
425
- const tag = reader.uint32();
426
- switch (tag >>> 3) {
427
- case 1: {
428
- if (tag !== 8) {
429
- break;
430
- }
431
-
432
- message.groupId = longToNumber(reader.uint64());
433
- continue;
434
- }
435
- }
436
- if ((tag & 7) === 4 || tag === 0) {
437
- break;
438
- }
439
- reader.skip(tag & 7);
440
- }
441
- return message;
442
- },
443
-
444
- fromJSON(object: any): MsgCreateGroupResponse {
445
- return { groupId: isSet(object.groupId) ? globalThis.Number(object.groupId) : 0 };
446
- },
447
-
448
- toJSON(message: MsgCreateGroupResponse): unknown {
449
- const obj: any = {};
450
- if (message.groupId !== 0) {
451
- obj.groupId = Math.round(message.groupId);
452
- }
453
- return obj;
454
- },
455
-
456
- create<I extends Exact<DeepPartial<MsgCreateGroupResponse>, I>>(base?: I): MsgCreateGroupResponse {
457
- return MsgCreateGroupResponse.fromPartial(base ?? ({} as any));
458
- },
459
- fromPartial<I extends Exact<DeepPartial<MsgCreateGroupResponse>, I>>(object: I): MsgCreateGroupResponse {
460
- const message = createBaseMsgCreateGroupResponse();
461
- message.groupId = object.groupId ?? 0;
462
- return message;
463
- },
464
- };
465
-
466
- function createBaseMsgUpdateGroupMembers(): MsgUpdateGroupMembers {
467
- return { admin: "", groupId: 0, memberUpdates: [] };
468
- }
469
-
470
- export const MsgUpdateGroupMembers: MessageFns<MsgUpdateGroupMembers> = {
471
- encode(message: MsgUpdateGroupMembers, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
472
- if (message.admin !== "") {
473
- writer.uint32(10).string(message.admin);
474
- }
475
- if (message.groupId !== 0) {
476
- writer.uint32(16).uint64(message.groupId);
477
- }
478
- for (const v of message.memberUpdates) {
479
- MemberRequest.encode(v!, writer.uint32(26).fork()).join();
480
- }
481
- return writer;
482
- },
483
-
484
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembers {
485
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
486
- let end = length === undefined ? reader.len : reader.pos + length;
487
- const message = createBaseMsgUpdateGroupMembers();
488
- while (reader.pos < end) {
489
- const tag = reader.uint32();
490
- switch (tag >>> 3) {
491
- case 1: {
492
- if (tag !== 10) {
493
- break;
494
- }
495
-
496
- message.admin = reader.string();
497
- continue;
498
- }
499
- case 2: {
500
- if (tag !== 16) {
501
- break;
502
- }
503
-
504
- message.groupId = longToNumber(reader.uint64());
505
- continue;
506
- }
507
- case 3: {
508
- if (tag !== 26) {
509
- break;
510
- }
511
-
512
- message.memberUpdates.push(MemberRequest.decode(reader, reader.uint32()));
513
- continue;
514
- }
515
- }
516
- if ((tag & 7) === 4 || tag === 0) {
517
- break;
518
- }
519
- reader.skip(tag & 7);
520
- }
521
- return message;
522
- },
523
-
524
- fromJSON(object: any): MsgUpdateGroupMembers {
525
- return {
526
- admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
527
- groupId: isSet(object.groupId) ? globalThis.Number(object.groupId) : 0,
528
- memberUpdates: globalThis.Array.isArray(object?.memberUpdates)
529
- ? object.memberUpdates.map((e: any) => MemberRequest.fromJSON(e))
530
- : [],
531
- };
532
- },
533
-
534
- toJSON(message: MsgUpdateGroupMembers): unknown {
535
- const obj: any = {};
536
- if (message.admin !== "") {
537
- obj.admin = message.admin;
538
- }
539
- if (message.groupId !== 0) {
540
- obj.groupId = Math.round(message.groupId);
541
- }
542
- if (message.memberUpdates?.length) {
543
- obj.memberUpdates = message.memberUpdates.map((e) => MemberRequest.toJSON(e));
544
- }
545
- return obj;
546
- },
547
-
548
- create<I extends Exact<DeepPartial<MsgUpdateGroupMembers>, I>>(base?: I): MsgUpdateGroupMembers {
549
- return MsgUpdateGroupMembers.fromPartial(base ?? ({} as any));
550
- },
551
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGroupMembers>, I>>(object: I): MsgUpdateGroupMembers {
552
- const message = createBaseMsgUpdateGroupMembers();
553
- message.admin = object.admin ?? "";
554
- message.groupId = object.groupId ?? 0;
555
- message.memberUpdates = object.memberUpdates?.map((e) => MemberRequest.fromPartial(e)) || [];
556
- return message;
557
- },
558
- };
559
-
560
- function createBaseMsgUpdateGroupMembersResponse(): MsgUpdateGroupMembersResponse {
561
- return {};
562
- }
563
-
564
- export const MsgUpdateGroupMembersResponse: MessageFns<MsgUpdateGroupMembersResponse> = {
565
- encode(_: MsgUpdateGroupMembersResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
566
- return writer;
567
- },
568
-
569
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMembersResponse {
570
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
571
- let end = length === undefined ? reader.len : reader.pos + length;
572
- const message = createBaseMsgUpdateGroupMembersResponse();
573
- while (reader.pos < end) {
574
- const tag = reader.uint32();
575
- switch (tag >>> 3) {
576
- }
577
- if ((tag & 7) === 4 || tag === 0) {
578
- break;
579
- }
580
- reader.skip(tag & 7);
581
- }
582
- return message;
583
- },
584
-
585
- fromJSON(_: any): MsgUpdateGroupMembersResponse {
586
- return {};
587
- },
588
-
589
- toJSON(_: MsgUpdateGroupMembersResponse): unknown {
590
- const obj: any = {};
591
- return obj;
592
- },
593
-
594
- create<I extends Exact<DeepPartial<MsgUpdateGroupMembersResponse>, I>>(base?: I): MsgUpdateGroupMembersResponse {
595
- return MsgUpdateGroupMembersResponse.fromPartial(base ?? ({} as any));
596
- },
597
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGroupMembersResponse>, I>>(_: I): MsgUpdateGroupMembersResponse {
598
- const message = createBaseMsgUpdateGroupMembersResponse();
599
- return message;
600
- },
601
- };
602
-
603
- function createBaseMsgUpdateGroupAdmin(): MsgUpdateGroupAdmin {
604
- return { admin: "", groupId: 0, newAdmin: "" };
605
- }
606
-
607
- export const MsgUpdateGroupAdmin: MessageFns<MsgUpdateGroupAdmin> = {
608
- encode(message: MsgUpdateGroupAdmin, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
609
- if (message.admin !== "") {
610
- writer.uint32(10).string(message.admin);
611
- }
612
- if (message.groupId !== 0) {
613
- writer.uint32(16).uint64(message.groupId);
614
- }
615
- if (message.newAdmin !== "") {
616
- writer.uint32(26).string(message.newAdmin);
617
- }
618
- return writer;
619
- },
620
-
621
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdmin {
622
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
623
- let end = length === undefined ? reader.len : reader.pos + length;
624
- const message = createBaseMsgUpdateGroupAdmin();
625
- while (reader.pos < end) {
626
- const tag = reader.uint32();
627
- switch (tag >>> 3) {
628
- case 1: {
629
- if (tag !== 10) {
630
- break;
631
- }
632
-
633
- message.admin = reader.string();
634
- continue;
635
- }
636
- case 2: {
637
- if (tag !== 16) {
638
- break;
639
- }
640
-
641
- message.groupId = longToNumber(reader.uint64());
642
- continue;
643
- }
644
- case 3: {
645
- if (tag !== 26) {
646
- break;
647
- }
648
-
649
- message.newAdmin = reader.string();
650
- continue;
651
- }
652
- }
653
- if ((tag & 7) === 4 || tag === 0) {
654
- break;
655
- }
656
- reader.skip(tag & 7);
657
- }
658
- return message;
659
- },
660
-
661
- fromJSON(object: any): MsgUpdateGroupAdmin {
662
- return {
663
- admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
664
- groupId: isSet(object.groupId) ? globalThis.Number(object.groupId) : 0,
665
- newAdmin: isSet(object.newAdmin) ? globalThis.String(object.newAdmin) : "",
666
- };
667
- },
668
-
669
- toJSON(message: MsgUpdateGroupAdmin): unknown {
670
- const obj: any = {};
671
- if (message.admin !== "") {
672
- obj.admin = message.admin;
673
- }
674
- if (message.groupId !== 0) {
675
- obj.groupId = Math.round(message.groupId);
676
- }
677
- if (message.newAdmin !== "") {
678
- obj.newAdmin = message.newAdmin;
679
- }
680
- return obj;
681
- },
682
-
683
- create<I extends Exact<DeepPartial<MsgUpdateGroupAdmin>, I>>(base?: I): MsgUpdateGroupAdmin {
684
- return MsgUpdateGroupAdmin.fromPartial(base ?? ({} as any));
685
- },
686
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGroupAdmin>, I>>(object: I): MsgUpdateGroupAdmin {
687
- const message = createBaseMsgUpdateGroupAdmin();
688
- message.admin = object.admin ?? "";
689
- message.groupId = object.groupId ?? 0;
690
- message.newAdmin = object.newAdmin ?? "";
691
- return message;
692
- },
693
- };
694
-
695
- function createBaseMsgUpdateGroupAdminResponse(): MsgUpdateGroupAdminResponse {
696
- return {};
697
- }
698
-
699
- export const MsgUpdateGroupAdminResponse: MessageFns<MsgUpdateGroupAdminResponse> = {
700
- encode(_: MsgUpdateGroupAdminResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
701
- return writer;
702
- },
703
-
704
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupAdminResponse {
705
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
706
- let end = length === undefined ? reader.len : reader.pos + length;
707
- const message = createBaseMsgUpdateGroupAdminResponse();
708
- while (reader.pos < end) {
709
- const tag = reader.uint32();
710
- switch (tag >>> 3) {
711
- }
712
- if ((tag & 7) === 4 || tag === 0) {
713
- break;
714
- }
715
- reader.skip(tag & 7);
716
- }
717
- return message;
718
- },
719
-
720
- fromJSON(_: any): MsgUpdateGroupAdminResponse {
721
- return {};
722
- },
723
-
724
- toJSON(_: MsgUpdateGroupAdminResponse): unknown {
725
- const obj: any = {};
726
- return obj;
727
- },
728
-
729
- create<I extends Exact<DeepPartial<MsgUpdateGroupAdminResponse>, I>>(base?: I): MsgUpdateGroupAdminResponse {
730
- return MsgUpdateGroupAdminResponse.fromPartial(base ?? ({} as any));
731
- },
732
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGroupAdminResponse>, I>>(_: I): MsgUpdateGroupAdminResponse {
733
- const message = createBaseMsgUpdateGroupAdminResponse();
734
- return message;
735
- },
736
- };
737
-
738
- function createBaseMsgUpdateGroupMetadata(): MsgUpdateGroupMetadata {
739
- return { admin: "", groupId: 0, metadata: "" };
740
- }
741
-
742
- export const MsgUpdateGroupMetadata: MessageFns<MsgUpdateGroupMetadata> = {
743
- encode(message: MsgUpdateGroupMetadata, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
744
- if (message.admin !== "") {
745
- writer.uint32(10).string(message.admin);
746
- }
747
- if (message.groupId !== 0) {
748
- writer.uint32(16).uint64(message.groupId);
749
- }
750
- if (message.metadata !== "") {
751
- writer.uint32(26).string(message.metadata);
752
- }
753
- return writer;
754
- },
755
-
756
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadata {
757
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
758
- let end = length === undefined ? reader.len : reader.pos + length;
759
- const message = createBaseMsgUpdateGroupMetadata();
760
- while (reader.pos < end) {
761
- const tag = reader.uint32();
762
- switch (tag >>> 3) {
763
- case 1: {
764
- if (tag !== 10) {
765
- break;
766
- }
767
-
768
- message.admin = reader.string();
769
- continue;
770
- }
771
- case 2: {
772
- if (tag !== 16) {
773
- break;
774
- }
775
-
776
- message.groupId = longToNumber(reader.uint64());
777
- continue;
778
- }
779
- case 3: {
780
- if (tag !== 26) {
781
- break;
782
- }
783
-
784
- message.metadata = reader.string();
785
- continue;
786
- }
787
- }
788
- if ((tag & 7) === 4 || tag === 0) {
789
- break;
790
- }
791
- reader.skip(tag & 7);
792
- }
793
- return message;
794
- },
795
-
796
- fromJSON(object: any): MsgUpdateGroupMetadata {
797
- return {
798
- admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
799
- groupId: isSet(object.groupId) ? globalThis.Number(object.groupId) : 0,
800
- metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
801
- };
802
- },
803
-
804
- toJSON(message: MsgUpdateGroupMetadata): unknown {
805
- const obj: any = {};
806
- if (message.admin !== "") {
807
- obj.admin = message.admin;
808
- }
809
- if (message.groupId !== 0) {
810
- obj.groupId = Math.round(message.groupId);
811
- }
812
- if (message.metadata !== "") {
813
- obj.metadata = message.metadata;
814
- }
815
- return obj;
816
- },
817
-
818
- create<I extends Exact<DeepPartial<MsgUpdateGroupMetadata>, I>>(base?: I): MsgUpdateGroupMetadata {
819
- return MsgUpdateGroupMetadata.fromPartial(base ?? ({} as any));
820
- },
821
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGroupMetadata>, I>>(object: I): MsgUpdateGroupMetadata {
822
- const message = createBaseMsgUpdateGroupMetadata();
823
- message.admin = object.admin ?? "";
824
- message.groupId = object.groupId ?? 0;
825
- message.metadata = object.metadata ?? "";
826
- return message;
827
- },
828
- };
829
-
830
- function createBaseMsgUpdateGroupMetadataResponse(): MsgUpdateGroupMetadataResponse {
831
- return {};
832
- }
833
-
834
- export const MsgUpdateGroupMetadataResponse: MessageFns<MsgUpdateGroupMetadataResponse> = {
835
- encode(_: MsgUpdateGroupMetadataResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
836
- return writer;
837
- },
838
-
839
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupMetadataResponse {
840
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
841
- let end = length === undefined ? reader.len : reader.pos + length;
842
- const message = createBaseMsgUpdateGroupMetadataResponse();
843
- while (reader.pos < end) {
844
- const tag = reader.uint32();
845
- switch (tag >>> 3) {
846
- }
847
- if ((tag & 7) === 4 || tag === 0) {
848
- break;
849
- }
850
- reader.skip(tag & 7);
851
- }
852
- return message;
853
- },
854
-
855
- fromJSON(_: any): MsgUpdateGroupMetadataResponse {
856
- return {};
857
- },
858
-
859
- toJSON(_: MsgUpdateGroupMetadataResponse): unknown {
860
- const obj: any = {};
861
- return obj;
862
- },
863
-
864
- create<I extends Exact<DeepPartial<MsgUpdateGroupMetadataResponse>, I>>(base?: I): MsgUpdateGroupMetadataResponse {
865
- return MsgUpdateGroupMetadataResponse.fromPartial(base ?? ({} as any));
866
- },
867
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGroupMetadataResponse>, I>>(_: I): MsgUpdateGroupMetadataResponse {
868
- const message = createBaseMsgUpdateGroupMetadataResponse();
869
- return message;
870
- },
871
- };
872
-
873
- function createBaseMsgCreateGroupPolicy(): MsgCreateGroupPolicy {
874
- return { admin: "", groupId: 0, metadata: "", decisionPolicy: undefined };
875
- }
876
-
877
- export const MsgCreateGroupPolicy: MessageFns<MsgCreateGroupPolicy> = {
878
- encode(message: MsgCreateGroupPolicy, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
879
- if (message.admin !== "") {
880
- writer.uint32(10).string(message.admin);
881
- }
882
- if (message.groupId !== 0) {
883
- writer.uint32(16).uint64(message.groupId);
884
- }
885
- if (message.metadata !== "") {
886
- writer.uint32(26).string(message.metadata);
887
- }
888
- if (message.decisionPolicy !== undefined) {
889
- Any.encode(message.decisionPolicy, writer.uint32(34).fork()).join();
890
- }
891
- return writer;
892
- },
893
-
894
- decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicy {
895
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
896
- let end = length === undefined ? reader.len : reader.pos + length;
897
- const message = createBaseMsgCreateGroupPolicy();
898
- while (reader.pos < end) {
899
- const tag = reader.uint32();
900
- switch (tag >>> 3) {
901
- case 1: {
902
- if (tag !== 10) {
903
- break;
904
- }
905
-
906
- message.admin = reader.string();
907
- continue;
908
- }
909
- case 2: {
910
- if (tag !== 16) {
911
- break;
912
- }
913
-
914
- message.groupId = longToNumber(reader.uint64());
915
- continue;
916
- }
917
- case 3: {
918
- if (tag !== 26) {
919
- break;
920
- }
921
-
922
- message.metadata = reader.string();
923
- continue;
924
- }
925
- case 4: {
926
- if (tag !== 34) {
927
- break;
928
- }
929
-
930
- message.decisionPolicy = Any.decode(reader, reader.uint32());
931
- continue;
932
- }
933
- }
934
- if ((tag & 7) === 4 || tag === 0) {
935
- break;
936
- }
937
- reader.skip(tag & 7);
938
- }
939
- return message;
940
- },
941
-
942
- fromJSON(object: any): MsgCreateGroupPolicy {
943
- return {
944
- admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
945
- groupId: isSet(object.groupId) ? globalThis.Number(object.groupId) : 0,
946
- metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
947
- decisionPolicy: isSet(object.decisionPolicy) ? Any.fromJSON(object.decisionPolicy) : undefined,
948
- };
949
- },
950
-
951
- toJSON(message: MsgCreateGroupPolicy): unknown {
952
- const obj: any = {};
953
- if (message.admin !== "") {
954
- obj.admin = message.admin;
955
- }
956
- if (message.groupId !== 0) {
957
- obj.groupId = Math.round(message.groupId);
958
- }
959
- if (message.metadata !== "") {
960
- obj.metadata = message.metadata;
961
- }
962
- if (message.decisionPolicy !== undefined) {
963
- obj.decisionPolicy = Any.toJSON(message.decisionPolicy);
964
- }
965
- return obj;
966
- },
967
-
968
- create<I extends Exact<DeepPartial<MsgCreateGroupPolicy>, I>>(base?: I): MsgCreateGroupPolicy {
969
- return MsgCreateGroupPolicy.fromPartial(base ?? ({} as any));
970
- },
971
- fromPartial<I extends Exact<DeepPartial<MsgCreateGroupPolicy>, I>>(object: I): MsgCreateGroupPolicy {
972
- const message = createBaseMsgCreateGroupPolicy();
973
- message.admin = object.admin ?? "";
974
- message.groupId = object.groupId ?? 0;
975
- message.metadata = object.metadata ?? "";
976
- message.decisionPolicy = (object.decisionPolicy !== undefined && object.decisionPolicy !== null)
977
- ? Any.fromPartial(object.decisionPolicy)
978
- : undefined;
979
- return message;
980
- },
981
- };
982
-
983
- function createBaseMsgCreateGroupPolicyResponse(): MsgCreateGroupPolicyResponse {
984
- return { address: "" };
985
- }
986
-
987
- export const MsgCreateGroupPolicyResponse: MessageFns<MsgCreateGroupPolicyResponse> = {
988
- encode(message: MsgCreateGroupPolicyResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
989
- if (message.address !== "") {
990
- writer.uint32(10).string(message.address);
991
- }
992
- return writer;
993
- },
994
-
995
- decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupPolicyResponse {
996
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
997
- let end = length === undefined ? reader.len : reader.pos + length;
998
- const message = createBaseMsgCreateGroupPolicyResponse();
999
- while (reader.pos < end) {
1000
- const tag = reader.uint32();
1001
- switch (tag >>> 3) {
1002
- case 1: {
1003
- if (tag !== 10) {
1004
- break;
1005
- }
1006
-
1007
- message.address = reader.string();
1008
- continue;
1009
- }
1010
- }
1011
- if ((tag & 7) === 4 || tag === 0) {
1012
- break;
1013
- }
1014
- reader.skip(tag & 7);
1015
- }
1016
- return message;
1017
- },
1018
-
1019
- fromJSON(object: any): MsgCreateGroupPolicyResponse {
1020
- return { address: isSet(object.address) ? globalThis.String(object.address) : "" };
1021
- },
1022
-
1023
- toJSON(message: MsgCreateGroupPolicyResponse): unknown {
1024
- const obj: any = {};
1025
- if (message.address !== "") {
1026
- obj.address = message.address;
1027
- }
1028
- return obj;
1029
- },
1030
-
1031
- create<I extends Exact<DeepPartial<MsgCreateGroupPolicyResponse>, I>>(base?: I): MsgCreateGroupPolicyResponse {
1032
- return MsgCreateGroupPolicyResponse.fromPartial(base ?? ({} as any));
1033
- },
1034
- fromPartial<I extends Exact<DeepPartial<MsgCreateGroupPolicyResponse>, I>>(object: I): MsgCreateGroupPolicyResponse {
1035
- const message = createBaseMsgCreateGroupPolicyResponse();
1036
- message.address = object.address ?? "";
1037
- return message;
1038
- },
1039
- };
1040
-
1041
- function createBaseMsgUpdateGroupPolicyAdmin(): MsgUpdateGroupPolicyAdmin {
1042
- return { admin: "", groupPolicyAddress: "", newAdmin: "" };
1043
- }
1044
-
1045
- export const MsgUpdateGroupPolicyAdmin: MessageFns<MsgUpdateGroupPolicyAdmin> = {
1046
- encode(message: MsgUpdateGroupPolicyAdmin, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1047
- if (message.admin !== "") {
1048
- writer.uint32(10).string(message.admin);
1049
- }
1050
- if (message.groupPolicyAddress !== "") {
1051
- writer.uint32(18).string(message.groupPolicyAddress);
1052
- }
1053
- if (message.newAdmin !== "") {
1054
- writer.uint32(26).string(message.newAdmin);
1055
- }
1056
- return writer;
1057
- },
1058
-
1059
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdmin {
1060
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1061
- let end = length === undefined ? reader.len : reader.pos + length;
1062
- const message = createBaseMsgUpdateGroupPolicyAdmin();
1063
- while (reader.pos < end) {
1064
- const tag = reader.uint32();
1065
- switch (tag >>> 3) {
1066
- case 1: {
1067
- if (tag !== 10) {
1068
- break;
1069
- }
1070
-
1071
- message.admin = reader.string();
1072
- continue;
1073
- }
1074
- case 2: {
1075
- if (tag !== 18) {
1076
- break;
1077
- }
1078
-
1079
- message.groupPolicyAddress = reader.string();
1080
- continue;
1081
- }
1082
- case 3: {
1083
- if (tag !== 26) {
1084
- break;
1085
- }
1086
-
1087
- message.newAdmin = reader.string();
1088
- continue;
1089
- }
1090
- }
1091
- if ((tag & 7) === 4 || tag === 0) {
1092
- break;
1093
- }
1094
- reader.skip(tag & 7);
1095
- }
1096
- return message;
1097
- },
1098
-
1099
- fromJSON(object: any): MsgUpdateGroupPolicyAdmin {
1100
- return {
1101
- admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
1102
- groupPolicyAddress: isSet(object.groupPolicyAddress) ? globalThis.String(object.groupPolicyAddress) : "",
1103
- newAdmin: isSet(object.newAdmin) ? globalThis.String(object.newAdmin) : "",
1104
- };
1105
- },
1106
-
1107
- toJSON(message: MsgUpdateGroupPolicyAdmin): unknown {
1108
- const obj: any = {};
1109
- if (message.admin !== "") {
1110
- obj.admin = message.admin;
1111
- }
1112
- if (message.groupPolicyAddress !== "") {
1113
- obj.groupPolicyAddress = message.groupPolicyAddress;
1114
- }
1115
- if (message.newAdmin !== "") {
1116
- obj.newAdmin = message.newAdmin;
1117
- }
1118
- return obj;
1119
- },
1120
-
1121
- create<I extends Exact<DeepPartial<MsgUpdateGroupPolicyAdmin>, I>>(base?: I): MsgUpdateGroupPolicyAdmin {
1122
- return MsgUpdateGroupPolicyAdmin.fromPartial(base ?? ({} as any));
1123
- },
1124
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGroupPolicyAdmin>, I>>(object: I): MsgUpdateGroupPolicyAdmin {
1125
- const message = createBaseMsgUpdateGroupPolicyAdmin();
1126
- message.admin = object.admin ?? "";
1127
- message.groupPolicyAddress = object.groupPolicyAddress ?? "";
1128
- message.newAdmin = object.newAdmin ?? "";
1129
- return message;
1130
- },
1131
- };
1132
-
1133
- function createBaseMsgUpdateGroupPolicyAdminResponse(): MsgUpdateGroupPolicyAdminResponse {
1134
- return {};
1135
- }
1136
-
1137
- export const MsgUpdateGroupPolicyAdminResponse: MessageFns<MsgUpdateGroupPolicyAdminResponse> = {
1138
- encode(_: MsgUpdateGroupPolicyAdminResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1139
- return writer;
1140
- },
1141
-
1142
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyAdminResponse {
1143
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1144
- let end = length === undefined ? reader.len : reader.pos + length;
1145
- const message = createBaseMsgUpdateGroupPolicyAdminResponse();
1146
- while (reader.pos < end) {
1147
- const tag = reader.uint32();
1148
- switch (tag >>> 3) {
1149
- }
1150
- if ((tag & 7) === 4 || tag === 0) {
1151
- break;
1152
- }
1153
- reader.skip(tag & 7);
1154
- }
1155
- return message;
1156
- },
1157
-
1158
- fromJSON(_: any): MsgUpdateGroupPolicyAdminResponse {
1159
- return {};
1160
- },
1161
-
1162
- toJSON(_: MsgUpdateGroupPolicyAdminResponse): unknown {
1163
- const obj: any = {};
1164
- return obj;
1165
- },
1166
-
1167
- create<I extends Exact<DeepPartial<MsgUpdateGroupPolicyAdminResponse>, I>>(
1168
- base?: I,
1169
- ): MsgUpdateGroupPolicyAdminResponse {
1170
- return MsgUpdateGroupPolicyAdminResponse.fromPartial(base ?? ({} as any));
1171
- },
1172
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGroupPolicyAdminResponse>, I>>(
1173
- _: I,
1174
- ): MsgUpdateGroupPolicyAdminResponse {
1175
- const message = createBaseMsgUpdateGroupPolicyAdminResponse();
1176
- return message;
1177
- },
1178
- };
1179
-
1180
- function createBaseMsgCreateGroupWithPolicy(): MsgCreateGroupWithPolicy {
1181
- return {
1182
- admin: "",
1183
- members: [],
1184
- groupMetadata: "",
1185
- groupPolicyMetadata: "",
1186
- groupPolicyAsAdmin: false,
1187
- decisionPolicy: undefined,
1188
- };
1189
- }
1190
-
1191
- export const MsgCreateGroupWithPolicy: MessageFns<MsgCreateGroupWithPolicy> = {
1192
- encode(message: MsgCreateGroupWithPolicy, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1193
- if (message.admin !== "") {
1194
- writer.uint32(10).string(message.admin);
1195
- }
1196
- for (const v of message.members) {
1197
- MemberRequest.encode(v!, writer.uint32(18).fork()).join();
1198
- }
1199
- if (message.groupMetadata !== "") {
1200
- writer.uint32(26).string(message.groupMetadata);
1201
- }
1202
- if (message.groupPolicyMetadata !== "") {
1203
- writer.uint32(34).string(message.groupPolicyMetadata);
1204
- }
1205
- if (message.groupPolicyAsAdmin !== false) {
1206
- writer.uint32(40).bool(message.groupPolicyAsAdmin);
1207
- }
1208
- if (message.decisionPolicy !== undefined) {
1209
- Any.encode(message.decisionPolicy, writer.uint32(50).fork()).join();
1210
- }
1211
- return writer;
1212
- },
1213
-
1214
- decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicy {
1215
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1216
- let end = length === undefined ? reader.len : reader.pos + length;
1217
- const message = createBaseMsgCreateGroupWithPolicy();
1218
- while (reader.pos < end) {
1219
- const tag = reader.uint32();
1220
- switch (tag >>> 3) {
1221
- case 1: {
1222
- if (tag !== 10) {
1223
- break;
1224
- }
1225
-
1226
- message.admin = reader.string();
1227
- continue;
1228
- }
1229
- case 2: {
1230
- if (tag !== 18) {
1231
- break;
1232
- }
1233
-
1234
- message.members.push(MemberRequest.decode(reader, reader.uint32()));
1235
- continue;
1236
- }
1237
- case 3: {
1238
- if (tag !== 26) {
1239
- break;
1240
- }
1241
-
1242
- message.groupMetadata = reader.string();
1243
- continue;
1244
- }
1245
- case 4: {
1246
- if (tag !== 34) {
1247
- break;
1248
- }
1249
-
1250
- message.groupPolicyMetadata = reader.string();
1251
- continue;
1252
- }
1253
- case 5: {
1254
- if (tag !== 40) {
1255
- break;
1256
- }
1257
-
1258
- message.groupPolicyAsAdmin = reader.bool();
1259
- continue;
1260
- }
1261
- case 6: {
1262
- if (tag !== 50) {
1263
- break;
1264
- }
1265
-
1266
- message.decisionPolicy = Any.decode(reader, reader.uint32());
1267
- continue;
1268
- }
1269
- }
1270
- if ((tag & 7) === 4 || tag === 0) {
1271
- break;
1272
- }
1273
- reader.skip(tag & 7);
1274
- }
1275
- return message;
1276
- },
1277
-
1278
- fromJSON(object: any): MsgCreateGroupWithPolicy {
1279
- return {
1280
- admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
1281
- members: globalThis.Array.isArray(object?.members)
1282
- ? object.members.map((e: any) => MemberRequest.fromJSON(e))
1283
- : [],
1284
- groupMetadata: isSet(object.groupMetadata) ? globalThis.String(object.groupMetadata) : "",
1285
- groupPolicyMetadata: isSet(object.groupPolicyMetadata) ? globalThis.String(object.groupPolicyMetadata) : "",
1286
- groupPolicyAsAdmin: isSet(object.groupPolicyAsAdmin) ? globalThis.Boolean(object.groupPolicyAsAdmin) : false,
1287
- decisionPolicy: isSet(object.decisionPolicy) ? Any.fromJSON(object.decisionPolicy) : undefined,
1288
- };
1289
- },
1290
-
1291
- toJSON(message: MsgCreateGroupWithPolicy): unknown {
1292
- const obj: any = {};
1293
- if (message.admin !== "") {
1294
- obj.admin = message.admin;
1295
- }
1296
- if (message.members?.length) {
1297
- obj.members = message.members.map((e) => MemberRequest.toJSON(e));
1298
- }
1299
- if (message.groupMetadata !== "") {
1300
- obj.groupMetadata = message.groupMetadata;
1301
- }
1302
- if (message.groupPolicyMetadata !== "") {
1303
- obj.groupPolicyMetadata = message.groupPolicyMetadata;
1304
- }
1305
- if (message.groupPolicyAsAdmin !== false) {
1306
- obj.groupPolicyAsAdmin = message.groupPolicyAsAdmin;
1307
- }
1308
- if (message.decisionPolicy !== undefined) {
1309
- obj.decisionPolicy = Any.toJSON(message.decisionPolicy);
1310
- }
1311
- return obj;
1312
- },
1313
-
1314
- create<I extends Exact<DeepPartial<MsgCreateGroupWithPolicy>, I>>(base?: I): MsgCreateGroupWithPolicy {
1315
- return MsgCreateGroupWithPolicy.fromPartial(base ?? ({} as any));
1316
- },
1317
- fromPartial<I extends Exact<DeepPartial<MsgCreateGroupWithPolicy>, I>>(object: I): MsgCreateGroupWithPolicy {
1318
- const message = createBaseMsgCreateGroupWithPolicy();
1319
- message.admin = object.admin ?? "";
1320
- message.members = object.members?.map((e) => MemberRequest.fromPartial(e)) || [];
1321
- message.groupMetadata = object.groupMetadata ?? "";
1322
- message.groupPolicyMetadata = object.groupPolicyMetadata ?? "";
1323
- message.groupPolicyAsAdmin = object.groupPolicyAsAdmin ?? false;
1324
- message.decisionPolicy = (object.decisionPolicy !== undefined && object.decisionPolicy !== null)
1325
- ? Any.fromPartial(object.decisionPolicy)
1326
- : undefined;
1327
- return message;
1328
- },
1329
- };
1330
-
1331
- function createBaseMsgCreateGroupWithPolicyResponse(): MsgCreateGroupWithPolicyResponse {
1332
- return { groupId: 0, groupPolicyAddress: "" };
1333
- }
1334
-
1335
- export const MsgCreateGroupWithPolicyResponse: MessageFns<MsgCreateGroupWithPolicyResponse> = {
1336
- encode(message: MsgCreateGroupWithPolicyResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1337
- if (message.groupId !== 0) {
1338
- writer.uint32(8).uint64(message.groupId);
1339
- }
1340
- if (message.groupPolicyAddress !== "") {
1341
- writer.uint32(18).string(message.groupPolicyAddress);
1342
- }
1343
- return writer;
1344
- },
1345
-
1346
- decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateGroupWithPolicyResponse {
1347
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1348
- let end = length === undefined ? reader.len : reader.pos + length;
1349
- const message = createBaseMsgCreateGroupWithPolicyResponse();
1350
- while (reader.pos < end) {
1351
- const tag = reader.uint32();
1352
- switch (tag >>> 3) {
1353
- case 1: {
1354
- if (tag !== 8) {
1355
- break;
1356
- }
1357
-
1358
- message.groupId = longToNumber(reader.uint64());
1359
- continue;
1360
- }
1361
- case 2: {
1362
- if (tag !== 18) {
1363
- break;
1364
- }
1365
-
1366
- message.groupPolicyAddress = reader.string();
1367
- continue;
1368
- }
1369
- }
1370
- if ((tag & 7) === 4 || tag === 0) {
1371
- break;
1372
- }
1373
- reader.skip(tag & 7);
1374
- }
1375
- return message;
1376
- },
1377
-
1378
- fromJSON(object: any): MsgCreateGroupWithPolicyResponse {
1379
- return {
1380
- groupId: isSet(object.groupId) ? globalThis.Number(object.groupId) : 0,
1381
- groupPolicyAddress: isSet(object.groupPolicyAddress) ? globalThis.String(object.groupPolicyAddress) : "",
1382
- };
1383
- },
1384
-
1385
- toJSON(message: MsgCreateGroupWithPolicyResponse): unknown {
1386
- const obj: any = {};
1387
- if (message.groupId !== 0) {
1388
- obj.groupId = Math.round(message.groupId);
1389
- }
1390
- if (message.groupPolicyAddress !== "") {
1391
- obj.groupPolicyAddress = message.groupPolicyAddress;
1392
- }
1393
- return obj;
1394
- },
1395
-
1396
- create<I extends Exact<DeepPartial<MsgCreateGroupWithPolicyResponse>, I>>(
1397
- base?: I,
1398
- ): MsgCreateGroupWithPolicyResponse {
1399
- return MsgCreateGroupWithPolicyResponse.fromPartial(base ?? ({} as any));
1400
- },
1401
- fromPartial<I extends Exact<DeepPartial<MsgCreateGroupWithPolicyResponse>, I>>(
1402
- object: I,
1403
- ): MsgCreateGroupWithPolicyResponse {
1404
- const message = createBaseMsgCreateGroupWithPolicyResponse();
1405
- message.groupId = object.groupId ?? 0;
1406
- message.groupPolicyAddress = object.groupPolicyAddress ?? "";
1407
- return message;
1408
- },
1409
- };
1410
-
1411
- function createBaseMsgUpdateGroupPolicyDecisionPolicy(): MsgUpdateGroupPolicyDecisionPolicy {
1412
- return { admin: "", groupPolicyAddress: "", decisionPolicy: undefined };
1413
- }
1414
-
1415
- export const MsgUpdateGroupPolicyDecisionPolicy: MessageFns<MsgUpdateGroupPolicyDecisionPolicy> = {
1416
- encode(message: MsgUpdateGroupPolicyDecisionPolicy, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1417
- if (message.admin !== "") {
1418
- writer.uint32(10).string(message.admin);
1419
- }
1420
- if (message.groupPolicyAddress !== "") {
1421
- writer.uint32(18).string(message.groupPolicyAddress);
1422
- }
1423
- if (message.decisionPolicy !== undefined) {
1424
- Any.encode(message.decisionPolicy, writer.uint32(26).fork()).join();
1425
- }
1426
- return writer;
1427
- },
1428
-
1429
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicy {
1430
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1431
- let end = length === undefined ? reader.len : reader.pos + length;
1432
- const message = createBaseMsgUpdateGroupPolicyDecisionPolicy();
1433
- while (reader.pos < end) {
1434
- const tag = reader.uint32();
1435
- switch (tag >>> 3) {
1436
- case 1: {
1437
- if (tag !== 10) {
1438
- break;
1439
- }
1440
-
1441
- message.admin = reader.string();
1442
- continue;
1443
- }
1444
- case 2: {
1445
- if (tag !== 18) {
1446
- break;
1447
- }
1448
-
1449
- message.groupPolicyAddress = reader.string();
1450
- continue;
1451
- }
1452
- case 3: {
1453
- if (tag !== 26) {
1454
- break;
1455
- }
1456
-
1457
- message.decisionPolicy = Any.decode(reader, reader.uint32());
1458
- continue;
1459
- }
1460
- }
1461
- if ((tag & 7) === 4 || tag === 0) {
1462
- break;
1463
- }
1464
- reader.skip(tag & 7);
1465
- }
1466
- return message;
1467
- },
1468
-
1469
- fromJSON(object: any): MsgUpdateGroupPolicyDecisionPolicy {
1470
- return {
1471
- admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
1472
- groupPolicyAddress: isSet(object.groupPolicyAddress) ? globalThis.String(object.groupPolicyAddress) : "",
1473
- decisionPolicy: isSet(object.decisionPolicy) ? Any.fromJSON(object.decisionPolicy) : undefined,
1474
- };
1475
- },
1476
-
1477
- toJSON(message: MsgUpdateGroupPolicyDecisionPolicy): unknown {
1478
- const obj: any = {};
1479
- if (message.admin !== "") {
1480
- obj.admin = message.admin;
1481
- }
1482
- if (message.groupPolicyAddress !== "") {
1483
- obj.groupPolicyAddress = message.groupPolicyAddress;
1484
- }
1485
- if (message.decisionPolicy !== undefined) {
1486
- obj.decisionPolicy = Any.toJSON(message.decisionPolicy);
1487
- }
1488
- return obj;
1489
- },
1490
-
1491
- create<I extends Exact<DeepPartial<MsgUpdateGroupPolicyDecisionPolicy>, I>>(
1492
- base?: I,
1493
- ): MsgUpdateGroupPolicyDecisionPolicy {
1494
- return MsgUpdateGroupPolicyDecisionPolicy.fromPartial(base ?? ({} as any));
1495
- },
1496
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGroupPolicyDecisionPolicy>, I>>(
1497
- object: I,
1498
- ): MsgUpdateGroupPolicyDecisionPolicy {
1499
- const message = createBaseMsgUpdateGroupPolicyDecisionPolicy();
1500
- message.admin = object.admin ?? "";
1501
- message.groupPolicyAddress = object.groupPolicyAddress ?? "";
1502
- message.decisionPolicy = (object.decisionPolicy !== undefined && object.decisionPolicy !== null)
1503
- ? Any.fromPartial(object.decisionPolicy)
1504
- : undefined;
1505
- return message;
1506
- },
1507
- };
1508
-
1509
- function createBaseMsgUpdateGroupPolicyDecisionPolicyResponse(): MsgUpdateGroupPolicyDecisionPolicyResponse {
1510
- return {};
1511
- }
1512
-
1513
- export const MsgUpdateGroupPolicyDecisionPolicyResponse: MessageFns<MsgUpdateGroupPolicyDecisionPolicyResponse> = {
1514
- encode(_: MsgUpdateGroupPolicyDecisionPolicyResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1515
- return writer;
1516
- },
1517
-
1518
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyDecisionPolicyResponse {
1519
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1520
- let end = length === undefined ? reader.len : reader.pos + length;
1521
- const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse();
1522
- while (reader.pos < end) {
1523
- const tag = reader.uint32();
1524
- switch (tag >>> 3) {
1525
- }
1526
- if ((tag & 7) === 4 || tag === 0) {
1527
- break;
1528
- }
1529
- reader.skip(tag & 7);
1530
- }
1531
- return message;
1532
- },
1533
-
1534
- fromJSON(_: any): MsgUpdateGroupPolicyDecisionPolicyResponse {
1535
- return {};
1536
- },
1537
-
1538
- toJSON(_: MsgUpdateGroupPolicyDecisionPolicyResponse): unknown {
1539
- const obj: any = {};
1540
- return obj;
1541
- },
1542
-
1543
- create<I extends Exact<DeepPartial<MsgUpdateGroupPolicyDecisionPolicyResponse>, I>>(
1544
- base?: I,
1545
- ): MsgUpdateGroupPolicyDecisionPolicyResponse {
1546
- return MsgUpdateGroupPolicyDecisionPolicyResponse.fromPartial(base ?? ({} as any));
1547
- },
1548
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGroupPolicyDecisionPolicyResponse>, I>>(
1549
- _: I,
1550
- ): MsgUpdateGroupPolicyDecisionPolicyResponse {
1551
- const message = createBaseMsgUpdateGroupPolicyDecisionPolicyResponse();
1552
- return message;
1553
- },
1554
- };
1555
-
1556
- function createBaseMsgUpdateGroupPolicyMetadata(): MsgUpdateGroupPolicyMetadata {
1557
- return { admin: "", groupPolicyAddress: "", metadata: "" };
1558
- }
1559
-
1560
- export const MsgUpdateGroupPolicyMetadata: MessageFns<MsgUpdateGroupPolicyMetadata> = {
1561
- encode(message: MsgUpdateGroupPolicyMetadata, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1562
- if (message.admin !== "") {
1563
- writer.uint32(10).string(message.admin);
1564
- }
1565
- if (message.groupPolicyAddress !== "") {
1566
- writer.uint32(18).string(message.groupPolicyAddress);
1567
- }
1568
- if (message.metadata !== "") {
1569
- writer.uint32(26).string(message.metadata);
1570
- }
1571
- return writer;
1572
- },
1573
-
1574
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadata {
1575
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1576
- let end = length === undefined ? reader.len : reader.pos + length;
1577
- const message = createBaseMsgUpdateGroupPolicyMetadata();
1578
- while (reader.pos < end) {
1579
- const tag = reader.uint32();
1580
- switch (tag >>> 3) {
1581
- case 1: {
1582
- if (tag !== 10) {
1583
- break;
1584
- }
1585
-
1586
- message.admin = reader.string();
1587
- continue;
1588
- }
1589
- case 2: {
1590
- if (tag !== 18) {
1591
- break;
1592
- }
1593
-
1594
- message.groupPolicyAddress = reader.string();
1595
- continue;
1596
- }
1597
- case 3: {
1598
- if (tag !== 26) {
1599
- break;
1600
- }
1601
-
1602
- message.metadata = reader.string();
1603
- continue;
1604
- }
1605
- }
1606
- if ((tag & 7) === 4 || tag === 0) {
1607
- break;
1608
- }
1609
- reader.skip(tag & 7);
1610
- }
1611
- return message;
1612
- },
1613
-
1614
- fromJSON(object: any): MsgUpdateGroupPolicyMetadata {
1615
- return {
1616
- admin: isSet(object.admin) ? globalThis.String(object.admin) : "",
1617
- groupPolicyAddress: isSet(object.groupPolicyAddress) ? globalThis.String(object.groupPolicyAddress) : "",
1618
- metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
1619
- };
1620
- },
1621
-
1622
- toJSON(message: MsgUpdateGroupPolicyMetadata): unknown {
1623
- const obj: any = {};
1624
- if (message.admin !== "") {
1625
- obj.admin = message.admin;
1626
- }
1627
- if (message.groupPolicyAddress !== "") {
1628
- obj.groupPolicyAddress = message.groupPolicyAddress;
1629
- }
1630
- if (message.metadata !== "") {
1631
- obj.metadata = message.metadata;
1632
- }
1633
- return obj;
1634
- },
1635
-
1636
- create<I extends Exact<DeepPartial<MsgUpdateGroupPolicyMetadata>, I>>(base?: I): MsgUpdateGroupPolicyMetadata {
1637
- return MsgUpdateGroupPolicyMetadata.fromPartial(base ?? ({} as any));
1638
- },
1639
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGroupPolicyMetadata>, I>>(object: I): MsgUpdateGroupPolicyMetadata {
1640
- const message = createBaseMsgUpdateGroupPolicyMetadata();
1641
- message.admin = object.admin ?? "";
1642
- message.groupPolicyAddress = object.groupPolicyAddress ?? "";
1643
- message.metadata = object.metadata ?? "";
1644
- return message;
1645
- },
1646
- };
1647
-
1648
- function createBaseMsgUpdateGroupPolicyMetadataResponse(): MsgUpdateGroupPolicyMetadataResponse {
1649
- return {};
1650
- }
1651
-
1652
- export const MsgUpdateGroupPolicyMetadataResponse: MessageFns<MsgUpdateGroupPolicyMetadataResponse> = {
1653
- encode(_: MsgUpdateGroupPolicyMetadataResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1654
- return writer;
1655
- },
1656
-
1657
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateGroupPolicyMetadataResponse {
1658
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1659
- let end = length === undefined ? reader.len : reader.pos + length;
1660
- const message = createBaseMsgUpdateGroupPolicyMetadataResponse();
1661
- while (reader.pos < end) {
1662
- const tag = reader.uint32();
1663
- switch (tag >>> 3) {
1664
- }
1665
- if ((tag & 7) === 4 || tag === 0) {
1666
- break;
1667
- }
1668
- reader.skip(tag & 7);
1669
- }
1670
- return message;
1671
- },
1672
-
1673
- fromJSON(_: any): MsgUpdateGroupPolicyMetadataResponse {
1674
- return {};
1675
- },
1676
-
1677
- toJSON(_: MsgUpdateGroupPolicyMetadataResponse): unknown {
1678
- const obj: any = {};
1679
- return obj;
1680
- },
1681
-
1682
- create<I extends Exact<DeepPartial<MsgUpdateGroupPolicyMetadataResponse>, I>>(
1683
- base?: I,
1684
- ): MsgUpdateGroupPolicyMetadataResponse {
1685
- return MsgUpdateGroupPolicyMetadataResponse.fromPartial(base ?? ({} as any));
1686
- },
1687
- fromPartial<I extends Exact<DeepPartial<MsgUpdateGroupPolicyMetadataResponse>, I>>(
1688
- _: I,
1689
- ): MsgUpdateGroupPolicyMetadataResponse {
1690
- const message = createBaseMsgUpdateGroupPolicyMetadataResponse();
1691
- return message;
1692
- },
1693
- };
1694
-
1695
- function createBaseMsgSubmitProposal(): MsgSubmitProposal {
1696
- return { groupPolicyAddress: "", proposers: [], metadata: "", messages: [], exec: 0, title: "", summary: "" };
1697
- }
1698
-
1699
- export const MsgSubmitProposal: MessageFns<MsgSubmitProposal> = {
1700
- encode(message: MsgSubmitProposal, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1701
- if (message.groupPolicyAddress !== "") {
1702
- writer.uint32(10).string(message.groupPolicyAddress);
1703
- }
1704
- for (const v of message.proposers) {
1705
- writer.uint32(18).string(v!);
1706
- }
1707
- if (message.metadata !== "") {
1708
- writer.uint32(26).string(message.metadata);
1709
- }
1710
- for (const v of message.messages) {
1711
- Any.encode(v!, writer.uint32(34).fork()).join();
1712
- }
1713
- if (message.exec !== 0) {
1714
- writer.uint32(40).int32(message.exec);
1715
- }
1716
- if (message.title !== "") {
1717
- writer.uint32(50).string(message.title);
1718
- }
1719
- if (message.summary !== "") {
1720
- writer.uint32(58).string(message.summary);
1721
- }
1722
- return writer;
1723
- },
1724
-
1725
- decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal {
1726
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1727
- let end = length === undefined ? reader.len : reader.pos + length;
1728
- const message = createBaseMsgSubmitProposal();
1729
- while (reader.pos < end) {
1730
- const tag = reader.uint32();
1731
- switch (tag >>> 3) {
1732
- case 1: {
1733
- if (tag !== 10) {
1734
- break;
1735
- }
1736
-
1737
- message.groupPolicyAddress = reader.string();
1738
- continue;
1739
- }
1740
- case 2: {
1741
- if (tag !== 18) {
1742
- break;
1743
- }
1744
-
1745
- message.proposers.push(reader.string());
1746
- continue;
1747
- }
1748
- case 3: {
1749
- if (tag !== 26) {
1750
- break;
1751
- }
1752
-
1753
- message.metadata = reader.string();
1754
- continue;
1755
- }
1756
- case 4: {
1757
- if (tag !== 34) {
1758
- break;
1759
- }
1760
-
1761
- message.messages.push(Any.decode(reader, reader.uint32()));
1762
- continue;
1763
- }
1764
- case 5: {
1765
- if (tag !== 40) {
1766
- break;
1767
- }
1768
-
1769
- message.exec = reader.int32() as any;
1770
- continue;
1771
- }
1772
- case 6: {
1773
- if (tag !== 50) {
1774
- break;
1775
- }
1776
-
1777
- message.title = reader.string();
1778
- continue;
1779
- }
1780
- case 7: {
1781
- if (tag !== 58) {
1782
- break;
1783
- }
1784
-
1785
- message.summary = reader.string();
1786
- continue;
1787
- }
1788
- }
1789
- if ((tag & 7) === 4 || tag === 0) {
1790
- break;
1791
- }
1792
- reader.skip(tag & 7);
1793
- }
1794
- return message;
1795
- },
1796
-
1797
- fromJSON(object: any): MsgSubmitProposal {
1798
- return {
1799
- groupPolicyAddress: isSet(object.groupPolicyAddress) ? globalThis.String(object.groupPolicyAddress) : "",
1800
- proposers: globalThis.Array.isArray(object?.proposers)
1801
- ? object.proposers.map((e: any) => globalThis.String(e))
1802
- : [],
1803
- metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
1804
- messages: globalThis.Array.isArray(object?.messages) ? object.messages.map((e: any) => Any.fromJSON(e)) : [],
1805
- exec: isSet(object.exec) ? execFromJSON(object.exec) : 0,
1806
- title: isSet(object.title) ? globalThis.String(object.title) : "",
1807
- summary: isSet(object.summary) ? globalThis.String(object.summary) : "",
1808
- };
1809
- },
1810
-
1811
- toJSON(message: MsgSubmitProposal): unknown {
1812
- const obj: any = {};
1813
- if (message.groupPolicyAddress !== "") {
1814
- obj.groupPolicyAddress = message.groupPolicyAddress;
1815
- }
1816
- if (message.proposers?.length) {
1817
- obj.proposers = message.proposers;
1818
- }
1819
- if (message.metadata !== "") {
1820
- obj.metadata = message.metadata;
1821
- }
1822
- if (message.messages?.length) {
1823
- obj.messages = message.messages.map((e) => Any.toJSON(e));
1824
- }
1825
- if (message.exec !== 0) {
1826
- obj.exec = execToJSON(message.exec);
1827
- }
1828
- if (message.title !== "") {
1829
- obj.title = message.title;
1830
- }
1831
- if (message.summary !== "") {
1832
- obj.summary = message.summary;
1833
- }
1834
- return obj;
1835
- },
1836
-
1837
- create<I extends Exact<DeepPartial<MsgSubmitProposal>, I>>(base?: I): MsgSubmitProposal {
1838
- return MsgSubmitProposal.fromPartial(base ?? ({} as any));
1839
- },
1840
- fromPartial<I extends Exact<DeepPartial<MsgSubmitProposal>, I>>(object: I): MsgSubmitProposal {
1841
- const message = createBaseMsgSubmitProposal();
1842
- message.groupPolicyAddress = object.groupPolicyAddress ?? "";
1843
- message.proposers = object.proposers?.map((e) => e) || [];
1844
- message.metadata = object.metadata ?? "";
1845
- message.messages = object.messages?.map((e) => Any.fromPartial(e)) || [];
1846
- message.exec = object.exec ?? 0;
1847
- message.title = object.title ?? "";
1848
- message.summary = object.summary ?? "";
1849
- return message;
1850
- },
1851
- };
1852
-
1853
- function createBaseMsgSubmitProposalResponse(): MsgSubmitProposalResponse {
1854
- return { proposalId: 0 };
1855
- }
1856
-
1857
- export const MsgSubmitProposalResponse: MessageFns<MsgSubmitProposalResponse> = {
1858
- encode(message: MsgSubmitProposalResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1859
- if (message.proposalId !== 0) {
1860
- writer.uint32(8).uint64(message.proposalId);
1861
- }
1862
- return writer;
1863
- },
1864
-
1865
- decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse {
1866
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1867
- let end = length === undefined ? reader.len : reader.pos + length;
1868
- const message = createBaseMsgSubmitProposalResponse();
1869
- while (reader.pos < end) {
1870
- const tag = reader.uint32();
1871
- switch (tag >>> 3) {
1872
- case 1: {
1873
- if (tag !== 8) {
1874
- break;
1875
- }
1876
-
1877
- message.proposalId = longToNumber(reader.uint64());
1878
- continue;
1879
- }
1880
- }
1881
- if ((tag & 7) === 4 || tag === 0) {
1882
- break;
1883
- }
1884
- reader.skip(tag & 7);
1885
- }
1886
- return message;
1887
- },
1888
-
1889
- fromJSON(object: any): MsgSubmitProposalResponse {
1890
- return { proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0 };
1891
- },
1892
-
1893
- toJSON(message: MsgSubmitProposalResponse): unknown {
1894
- const obj: any = {};
1895
- if (message.proposalId !== 0) {
1896
- obj.proposalId = Math.round(message.proposalId);
1897
- }
1898
- return obj;
1899
- },
1900
-
1901
- create<I extends Exact<DeepPartial<MsgSubmitProposalResponse>, I>>(base?: I): MsgSubmitProposalResponse {
1902
- return MsgSubmitProposalResponse.fromPartial(base ?? ({} as any));
1903
- },
1904
- fromPartial<I extends Exact<DeepPartial<MsgSubmitProposalResponse>, I>>(object: I): MsgSubmitProposalResponse {
1905
- const message = createBaseMsgSubmitProposalResponse();
1906
- message.proposalId = object.proposalId ?? 0;
1907
- return message;
1908
- },
1909
- };
1910
-
1911
- function createBaseMsgWithdrawProposal(): MsgWithdrawProposal {
1912
- return { proposalId: 0, address: "" };
1913
- }
1914
-
1915
- export const MsgWithdrawProposal: MessageFns<MsgWithdrawProposal> = {
1916
- encode(message: MsgWithdrawProposal, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1917
- if (message.proposalId !== 0) {
1918
- writer.uint32(8).uint64(message.proposalId);
1919
- }
1920
- if (message.address !== "") {
1921
- writer.uint32(18).string(message.address);
1922
- }
1923
- return writer;
1924
- },
1925
-
1926
- decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposal {
1927
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1928
- let end = length === undefined ? reader.len : reader.pos + length;
1929
- const message = createBaseMsgWithdrawProposal();
1930
- while (reader.pos < end) {
1931
- const tag = reader.uint32();
1932
- switch (tag >>> 3) {
1933
- case 1: {
1934
- if (tag !== 8) {
1935
- break;
1936
- }
1937
-
1938
- message.proposalId = longToNumber(reader.uint64());
1939
- continue;
1940
- }
1941
- case 2: {
1942
- if (tag !== 18) {
1943
- break;
1944
- }
1945
-
1946
- message.address = reader.string();
1947
- continue;
1948
- }
1949
- }
1950
- if ((tag & 7) === 4 || tag === 0) {
1951
- break;
1952
- }
1953
- reader.skip(tag & 7);
1954
- }
1955
- return message;
1956
- },
1957
-
1958
- fromJSON(object: any): MsgWithdrawProposal {
1959
- return {
1960
- proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
1961
- address: isSet(object.address) ? globalThis.String(object.address) : "",
1962
- };
1963
- },
1964
-
1965
- toJSON(message: MsgWithdrawProposal): unknown {
1966
- const obj: any = {};
1967
- if (message.proposalId !== 0) {
1968
- obj.proposalId = Math.round(message.proposalId);
1969
- }
1970
- if (message.address !== "") {
1971
- obj.address = message.address;
1972
- }
1973
- return obj;
1974
- },
1975
-
1976
- create<I extends Exact<DeepPartial<MsgWithdrawProposal>, I>>(base?: I): MsgWithdrawProposal {
1977
- return MsgWithdrawProposal.fromPartial(base ?? ({} as any));
1978
- },
1979
- fromPartial<I extends Exact<DeepPartial<MsgWithdrawProposal>, I>>(object: I): MsgWithdrawProposal {
1980
- const message = createBaseMsgWithdrawProposal();
1981
- message.proposalId = object.proposalId ?? 0;
1982
- message.address = object.address ?? "";
1983
- return message;
1984
- },
1985
- };
1986
-
1987
- function createBaseMsgWithdrawProposalResponse(): MsgWithdrawProposalResponse {
1988
- return {};
1989
- }
1990
-
1991
- export const MsgWithdrawProposalResponse: MessageFns<MsgWithdrawProposalResponse> = {
1992
- encode(_: MsgWithdrawProposalResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
1993
- return writer;
1994
- },
1995
-
1996
- decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawProposalResponse {
1997
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1998
- let end = length === undefined ? reader.len : reader.pos + length;
1999
- const message = createBaseMsgWithdrawProposalResponse();
2000
- while (reader.pos < end) {
2001
- const tag = reader.uint32();
2002
- switch (tag >>> 3) {
2003
- }
2004
- if ((tag & 7) === 4 || tag === 0) {
2005
- break;
2006
- }
2007
- reader.skip(tag & 7);
2008
- }
2009
- return message;
2010
- },
2011
-
2012
- fromJSON(_: any): MsgWithdrawProposalResponse {
2013
- return {};
2014
- },
2015
-
2016
- toJSON(_: MsgWithdrawProposalResponse): unknown {
2017
- const obj: any = {};
2018
- return obj;
2019
- },
2020
-
2021
- create<I extends Exact<DeepPartial<MsgWithdrawProposalResponse>, I>>(base?: I): MsgWithdrawProposalResponse {
2022
- return MsgWithdrawProposalResponse.fromPartial(base ?? ({} as any));
2023
- },
2024
- fromPartial<I extends Exact<DeepPartial<MsgWithdrawProposalResponse>, I>>(_: I): MsgWithdrawProposalResponse {
2025
- const message = createBaseMsgWithdrawProposalResponse();
2026
- return message;
2027
- },
2028
- };
2029
-
2030
- function createBaseMsgVote(): MsgVote {
2031
- return { proposalId: 0, voter: "", option: 0, metadata: "", exec: 0 };
2032
- }
2033
-
2034
- export const MsgVote: MessageFns<MsgVote> = {
2035
- encode(message: MsgVote, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2036
- if (message.proposalId !== 0) {
2037
- writer.uint32(8).uint64(message.proposalId);
2038
- }
2039
- if (message.voter !== "") {
2040
- writer.uint32(18).string(message.voter);
2041
- }
2042
- if (message.option !== 0) {
2043
- writer.uint32(24).int32(message.option);
2044
- }
2045
- if (message.metadata !== "") {
2046
- writer.uint32(34).string(message.metadata);
2047
- }
2048
- if (message.exec !== 0) {
2049
- writer.uint32(40).int32(message.exec);
2050
- }
2051
- return writer;
2052
- },
2053
-
2054
- decode(input: BinaryReader | Uint8Array, length?: number): MsgVote {
2055
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2056
- let end = length === undefined ? reader.len : reader.pos + length;
2057
- const message = createBaseMsgVote();
2058
- while (reader.pos < end) {
2059
- const tag = reader.uint32();
2060
- switch (tag >>> 3) {
2061
- case 1: {
2062
- if (tag !== 8) {
2063
- break;
2064
- }
2065
-
2066
- message.proposalId = longToNumber(reader.uint64());
2067
- continue;
2068
- }
2069
- case 2: {
2070
- if (tag !== 18) {
2071
- break;
2072
- }
2073
-
2074
- message.voter = reader.string();
2075
- continue;
2076
- }
2077
- case 3: {
2078
- if (tag !== 24) {
2079
- break;
2080
- }
2081
-
2082
- message.option = reader.int32() as any;
2083
- continue;
2084
- }
2085
- case 4: {
2086
- if (tag !== 34) {
2087
- break;
2088
- }
2089
-
2090
- message.metadata = reader.string();
2091
- continue;
2092
- }
2093
- case 5: {
2094
- if (tag !== 40) {
2095
- break;
2096
- }
2097
-
2098
- message.exec = reader.int32() as any;
2099
- continue;
2100
- }
2101
- }
2102
- if ((tag & 7) === 4 || tag === 0) {
2103
- break;
2104
- }
2105
- reader.skip(tag & 7);
2106
- }
2107
- return message;
2108
- },
2109
-
2110
- fromJSON(object: any): MsgVote {
2111
- return {
2112
- proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
2113
- voter: isSet(object.voter) ? globalThis.String(object.voter) : "",
2114
- option: isSet(object.option) ? voteOptionFromJSON(object.option) : 0,
2115
- metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : "",
2116
- exec: isSet(object.exec) ? execFromJSON(object.exec) : 0,
2117
- };
2118
- },
2119
-
2120
- toJSON(message: MsgVote): unknown {
2121
- const obj: any = {};
2122
- if (message.proposalId !== 0) {
2123
- obj.proposalId = Math.round(message.proposalId);
2124
- }
2125
- if (message.voter !== "") {
2126
- obj.voter = message.voter;
2127
- }
2128
- if (message.option !== 0) {
2129
- obj.option = voteOptionToJSON(message.option);
2130
- }
2131
- if (message.metadata !== "") {
2132
- obj.metadata = message.metadata;
2133
- }
2134
- if (message.exec !== 0) {
2135
- obj.exec = execToJSON(message.exec);
2136
- }
2137
- return obj;
2138
- },
2139
-
2140
- create<I extends Exact<DeepPartial<MsgVote>, I>>(base?: I): MsgVote {
2141
- return MsgVote.fromPartial(base ?? ({} as any));
2142
- },
2143
- fromPartial<I extends Exact<DeepPartial<MsgVote>, I>>(object: I): MsgVote {
2144
- const message = createBaseMsgVote();
2145
- message.proposalId = object.proposalId ?? 0;
2146
- message.voter = object.voter ?? "";
2147
- message.option = object.option ?? 0;
2148
- message.metadata = object.metadata ?? "";
2149
- message.exec = object.exec ?? 0;
2150
- return message;
2151
- },
2152
- };
2153
-
2154
- function createBaseMsgVoteResponse(): MsgVoteResponse {
2155
- return {};
2156
- }
2157
-
2158
- export const MsgVoteResponse: MessageFns<MsgVoteResponse> = {
2159
- encode(_: MsgVoteResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2160
- return writer;
2161
- },
2162
-
2163
- decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse {
2164
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2165
- let end = length === undefined ? reader.len : reader.pos + length;
2166
- const message = createBaseMsgVoteResponse();
2167
- while (reader.pos < end) {
2168
- const tag = reader.uint32();
2169
- switch (tag >>> 3) {
2170
- }
2171
- if ((tag & 7) === 4 || tag === 0) {
2172
- break;
2173
- }
2174
- reader.skip(tag & 7);
2175
- }
2176
- return message;
2177
- },
2178
-
2179
- fromJSON(_: any): MsgVoteResponse {
2180
- return {};
2181
- },
2182
-
2183
- toJSON(_: MsgVoteResponse): unknown {
2184
- const obj: any = {};
2185
- return obj;
2186
- },
2187
-
2188
- create<I extends Exact<DeepPartial<MsgVoteResponse>, I>>(base?: I): MsgVoteResponse {
2189
- return MsgVoteResponse.fromPartial(base ?? ({} as any));
2190
- },
2191
- fromPartial<I extends Exact<DeepPartial<MsgVoteResponse>, I>>(_: I): MsgVoteResponse {
2192
- const message = createBaseMsgVoteResponse();
2193
- return message;
2194
- },
2195
- };
2196
-
2197
- function createBaseMsgExec(): MsgExec {
2198
- return { proposalId: 0, executor: "" };
2199
- }
2200
-
2201
- export const MsgExec: MessageFns<MsgExec> = {
2202
- encode(message: MsgExec, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2203
- if (message.proposalId !== 0) {
2204
- writer.uint32(8).uint64(message.proposalId);
2205
- }
2206
- if (message.executor !== "") {
2207
- writer.uint32(18).string(message.executor);
2208
- }
2209
- return writer;
2210
- },
2211
-
2212
- decode(input: BinaryReader | Uint8Array, length?: number): MsgExec {
2213
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2214
- let end = length === undefined ? reader.len : reader.pos + length;
2215
- const message = createBaseMsgExec();
2216
- while (reader.pos < end) {
2217
- const tag = reader.uint32();
2218
- switch (tag >>> 3) {
2219
- case 1: {
2220
- if (tag !== 8) {
2221
- break;
2222
- }
2223
-
2224
- message.proposalId = longToNumber(reader.uint64());
2225
- continue;
2226
- }
2227
- case 2: {
2228
- if (tag !== 18) {
2229
- break;
2230
- }
2231
-
2232
- message.executor = reader.string();
2233
- continue;
2234
- }
2235
- }
2236
- if ((tag & 7) === 4 || tag === 0) {
2237
- break;
2238
- }
2239
- reader.skip(tag & 7);
2240
- }
2241
- return message;
2242
- },
2243
-
2244
- fromJSON(object: any): MsgExec {
2245
- return {
2246
- proposalId: isSet(object.proposalId) ? globalThis.Number(object.proposalId) : 0,
2247
- executor: isSet(object.executor) ? globalThis.String(object.executor) : "",
2248
- };
2249
- },
2250
-
2251
- toJSON(message: MsgExec): unknown {
2252
- const obj: any = {};
2253
- if (message.proposalId !== 0) {
2254
- obj.proposalId = Math.round(message.proposalId);
2255
- }
2256
- if (message.executor !== "") {
2257
- obj.executor = message.executor;
2258
- }
2259
- return obj;
2260
- },
2261
-
2262
- create<I extends Exact<DeepPartial<MsgExec>, I>>(base?: I): MsgExec {
2263
- return MsgExec.fromPartial(base ?? ({} as any));
2264
- },
2265
- fromPartial<I extends Exact<DeepPartial<MsgExec>, I>>(object: I): MsgExec {
2266
- const message = createBaseMsgExec();
2267
- message.proposalId = object.proposalId ?? 0;
2268
- message.executor = object.executor ?? "";
2269
- return message;
2270
- },
2271
- };
2272
-
2273
- function createBaseMsgExecResponse(): MsgExecResponse {
2274
- return { result: 0 };
2275
- }
2276
-
2277
- export const MsgExecResponse: MessageFns<MsgExecResponse> = {
2278
- encode(message: MsgExecResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2279
- if (message.result !== 0) {
2280
- writer.uint32(16).int32(message.result);
2281
- }
2282
- return writer;
2283
- },
2284
-
2285
- decode(input: BinaryReader | Uint8Array, length?: number): MsgExecResponse {
2286
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2287
- let end = length === undefined ? reader.len : reader.pos + length;
2288
- const message = createBaseMsgExecResponse();
2289
- while (reader.pos < end) {
2290
- const tag = reader.uint32();
2291
- switch (tag >>> 3) {
2292
- case 2: {
2293
- if (tag !== 16) {
2294
- break;
2295
- }
2296
-
2297
- message.result = reader.int32() as any;
2298
- continue;
2299
- }
2300
- }
2301
- if ((tag & 7) === 4 || tag === 0) {
2302
- break;
2303
- }
2304
- reader.skip(tag & 7);
2305
- }
2306
- return message;
2307
- },
2308
-
2309
- fromJSON(object: any): MsgExecResponse {
2310
- return { result: isSet(object.result) ? proposalExecutorResultFromJSON(object.result) : 0 };
2311
- },
2312
-
2313
- toJSON(message: MsgExecResponse): unknown {
2314
- const obj: any = {};
2315
- if (message.result !== 0) {
2316
- obj.result = proposalExecutorResultToJSON(message.result);
2317
- }
2318
- return obj;
2319
- },
2320
-
2321
- create<I extends Exact<DeepPartial<MsgExecResponse>, I>>(base?: I): MsgExecResponse {
2322
- return MsgExecResponse.fromPartial(base ?? ({} as any));
2323
- },
2324
- fromPartial<I extends Exact<DeepPartial<MsgExecResponse>, I>>(object: I): MsgExecResponse {
2325
- const message = createBaseMsgExecResponse();
2326
- message.result = object.result ?? 0;
2327
- return message;
2328
- },
2329
- };
2330
-
2331
- function createBaseMsgLeaveGroup(): MsgLeaveGroup {
2332
- return { address: "", groupId: 0 };
2333
- }
2334
-
2335
- export const MsgLeaveGroup: MessageFns<MsgLeaveGroup> = {
2336
- encode(message: MsgLeaveGroup, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2337
- if (message.address !== "") {
2338
- writer.uint32(10).string(message.address);
2339
- }
2340
- if (message.groupId !== 0) {
2341
- writer.uint32(16).uint64(message.groupId);
2342
- }
2343
- return writer;
2344
- },
2345
-
2346
- decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroup {
2347
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2348
- let end = length === undefined ? reader.len : reader.pos + length;
2349
- const message = createBaseMsgLeaveGroup();
2350
- while (reader.pos < end) {
2351
- const tag = reader.uint32();
2352
- switch (tag >>> 3) {
2353
- case 1: {
2354
- if (tag !== 10) {
2355
- break;
2356
- }
2357
-
2358
- message.address = reader.string();
2359
- continue;
2360
- }
2361
- case 2: {
2362
- if (tag !== 16) {
2363
- break;
2364
- }
2365
-
2366
- message.groupId = longToNumber(reader.uint64());
2367
- continue;
2368
- }
2369
- }
2370
- if ((tag & 7) === 4 || tag === 0) {
2371
- break;
2372
- }
2373
- reader.skip(tag & 7);
2374
- }
2375
- return message;
2376
- },
2377
-
2378
- fromJSON(object: any): MsgLeaveGroup {
2379
- return {
2380
- address: isSet(object.address) ? globalThis.String(object.address) : "",
2381
- groupId: isSet(object.groupId) ? globalThis.Number(object.groupId) : 0,
2382
- };
2383
- },
2384
-
2385
- toJSON(message: MsgLeaveGroup): unknown {
2386
- const obj: any = {};
2387
- if (message.address !== "") {
2388
- obj.address = message.address;
2389
- }
2390
- if (message.groupId !== 0) {
2391
- obj.groupId = Math.round(message.groupId);
2392
- }
2393
- return obj;
2394
- },
2395
-
2396
- create<I extends Exact<DeepPartial<MsgLeaveGroup>, I>>(base?: I): MsgLeaveGroup {
2397
- return MsgLeaveGroup.fromPartial(base ?? ({} as any));
2398
- },
2399
- fromPartial<I extends Exact<DeepPartial<MsgLeaveGroup>, I>>(object: I): MsgLeaveGroup {
2400
- const message = createBaseMsgLeaveGroup();
2401
- message.address = object.address ?? "";
2402
- message.groupId = object.groupId ?? 0;
2403
- return message;
2404
- },
2405
- };
2406
-
2407
- function createBaseMsgLeaveGroupResponse(): MsgLeaveGroupResponse {
2408
- return {};
2409
- }
2410
-
2411
- export const MsgLeaveGroupResponse: MessageFns<MsgLeaveGroupResponse> = {
2412
- encode(_: MsgLeaveGroupResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
2413
- return writer;
2414
- },
2415
-
2416
- decode(input: BinaryReader | Uint8Array, length?: number): MsgLeaveGroupResponse {
2417
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2418
- let end = length === undefined ? reader.len : reader.pos + length;
2419
- const message = createBaseMsgLeaveGroupResponse();
2420
- while (reader.pos < end) {
2421
- const tag = reader.uint32();
2422
- switch (tag >>> 3) {
2423
- }
2424
- if ((tag & 7) === 4 || tag === 0) {
2425
- break;
2426
- }
2427
- reader.skip(tag & 7);
2428
- }
2429
- return message;
2430
- },
2431
-
2432
- fromJSON(_: any): MsgLeaveGroupResponse {
2433
- return {};
2434
- },
2435
-
2436
- toJSON(_: MsgLeaveGroupResponse): unknown {
2437
- const obj: any = {};
2438
- return obj;
2439
- },
2440
-
2441
- create<I extends Exact<DeepPartial<MsgLeaveGroupResponse>, I>>(base?: I): MsgLeaveGroupResponse {
2442
- return MsgLeaveGroupResponse.fromPartial(base ?? ({} as any));
2443
- },
2444
- fromPartial<I extends Exact<DeepPartial<MsgLeaveGroupResponse>, I>>(_: I): MsgLeaveGroupResponse {
2445
- const message = createBaseMsgLeaveGroupResponse();
2446
- return message;
2447
- },
2448
- };
2449
-
2450
- /** Msg is the cosmos.group.v1 Msg service. */
2451
- export interface Msg {
2452
- /** CreateGroup creates a new group with an admin account address, a list of members and some optional metadata. */
2453
- CreateGroup(request: MsgCreateGroup): Promise<MsgCreateGroupResponse>;
2454
- /** UpdateGroupMembers updates the group members with given group id and admin address. */
2455
- UpdateGroupMembers(request: MsgUpdateGroupMembers): Promise<MsgUpdateGroupMembersResponse>;
2456
- /** UpdateGroupAdmin updates the group admin with given group id and previous admin address. */
2457
- UpdateGroupAdmin(request: MsgUpdateGroupAdmin): Promise<MsgUpdateGroupAdminResponse>;
2458
- /** UpdateGroupMetadata updates the group metadata with given group id and admin address. */
2459
- UpdateGroupMetadata(request: MsgUpdateGroupMetadata): Promise<MsgUpdateGroupMetadataResponse>;
2460
- /** CreateGroupPolicy creates a new group policy using given DecisionPolicy. */
2461
- CreateGroupPolicy(request: MsgCreateGroupPolicy): Promise<MsgCreateGroupPolicyResponse>;
2462
- /** CreateGroupWithPolicy creates a new group with policy. */
2463
- CreateGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise<MsgCreateGroupWithPolicyResponse>;
2464
- /** UpdateGroupPolicyAdmin updates a group policy admin. */
2465
- UpdateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise<MsgUpdateGroupPolicyAdminResponse>;
2466
- /** UpdateGroupPolicyDecisionPolicy allows a group policy's decision policy to be updated. */
2467
- UpdateGroupPolicyDecisionPolicy(
2468
- request: MsgUpdateGroupPolicyDecisionPolicy,
2469
- ): Promise<MsgUpdateGroupPolicyDecisionPolicyResponse>;
2470
- /** UpdateGroupPolicyMetadata updates a group policy metadata. */
2471
- UpdateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise<MsgUpdateGroupPolicyMetadataResponse>;
2472
- /** SubmitProposal submits a new proposal. */
2473
- SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
2474
- /** WithdrawProposal withdraws a proposal. */
2475
- WithdrawProposal(request: MsgWithdrawProposal): Promise<MsgWithdrawProposalResponse>;
2476
- /** Vote allows a voter to vote on a proposal. */
2477
- Vote(request: MsgVote): Promise<MsgVoteResponse>;
2478
- /** Exec executes a proposal. */
2479
- Exec(request: MsgExec): Promise<MsgExecResponse>;
2480
- /** LeaveGroup allows a group member to leave the group. */
2481
- LeaveGroup(request: MsgLeaveGroup): Promise<MsgLeaveGroupResponse>;
2482
- }
2483
-
2484
- export const MsgServiceName = "cosmos.group.v1.Msg";
2485
- export class MsgClientImpl implements Msg {
2486
- private readonly rpc: Rpc;
2487
- private readonly service: string;
2488
- constructor(rpc: Rpc, opts?: { service?: string }) {
2489
- this.service = opts?.service || MsgServiceName;
2490
- this.rpc = rpc;
2491
- this.CreateGroup = this.CreateGroup.bind(this);
2492
- this.UpdateGroupMembers = this.UpdateGroupMembers.bind(this);
2493
- this.UpdateGroupAdmin = this.UpdateGroupAdmin.bind(this);
2494
- this.UpdateGroupMetadata = this.UpdateGroupMetadata.bind(this);
2495
- this.CreateGroupPolicy = this.CreateGroupPolicy.bind(this);
2496
- this.CreateGroupWithPolicy = this.CreateGroupWithPolicy.bind(this);
2497
- this.UpdateGroupPolicyAdmin = this.UpdateGroupPolicyAdmin.bind(this);
2498
- this.UpdateGroupPolicyDecisionPolicy = this.UpdateGroupPolicyDecisionPolicy.bind(this);
2499
- this.UpdateGroupPolicyMetadata = this.UpdateGroupPolicyMetadata.bind(this);
2500
- this.SubmitProposal = this.SubmitProposal.bind(this);
2501
- this.WithdrawProposal = this.WithdrawProposal.bind(this);
2502
- this.Vote = this.Vote.bind(this);
2503
- this.Exec = this.Exec.bind(this);
2504
- this.LeaveGroup = this.LeaveGroup.bind(this);
2505
- }
2506
- CreateGroup(request: MsgCreateGroup): Promise<MsgCreateGroupResponse> {
2507
- const data = MsgCreateGroup.encode(request).finish();
2508
- const promise = this.rpc.request(this.service, "CreateGroup", data);
2509
- return promise.then((data) => MsgCreateGroupResponse.decode(new BinaryReader(data)));
2510
- }
2511
-
2512
- UpdateGroupMembers(request: MsgUpdateGroupMembers): Promise<MsgUpdateGroupMembersResponse> {
2513
- const data = MsgUpdateGroupMembers.encode(request).finish();
2514
- const promise = this.rpc.request(this.service, "UpdateGroupMembers", data);
2515
- return promise.then((data) => MsgUpdateGroupMembersResponse.decode(new BinaryReader(data)));
2516
- }
2517
-
2518
- UpdateGroupAdmin(request: MsgUpdateGroupAdmin): Promise<MsgUpdateGroupAdminResponse> {
2519
- const data = MsgUpdateGroupAdmin.encode(request).finish();
2520
- const promise = this.rpc.request(this.service, "UpdateGroupAdmin", data);
2521
- return promise.then((data) => MsgUpdateGroupAdminResponse.decode(new BinaryReader(data)));
2522
- }
2523
-
2524
- UpdateGroupMetadata(request: MsgUpdateGroupMetadata): Promise<MsgUpdateGroupMetadataResponse> {
2525
- const data = MsgUpdateGroupMetadata.encode(request).finish();
2526
- const promise = this.rpc.request(this.service, "UpdateGroupMetadata", data);
2527
- return promise.then((data) => MsgUpdateGroupMetadataResponse.decode(new BinaryReader(data)));
2528
- }
2529
-
2530
- CreateGroupPolicy(request: MsgCreateGroupPolicy): Promise<MsgCreateGroupPolicyResponse> {
2531
- const data = MsgCreateGroupPolicy.encode(request).finish();
2532
- const promise = this.rpc.request(this.service, "CreateGroupPolicy", data);
2533
- return promise.then((data) => MsgCreateGroupPolicyResponse.decode(new BinaryReader(data)));
2534
- }
2535
-
2536
- CreateGroupWithPolicy(request: MsgCreateGroupWithPolicy): Promise<MsgCreateGroupWithPolicyResponse> {
2537
- const data = MsgCreateGroupWithPolicy.encode(request).finish();
2538
- const promise = this.rpc.request(this.service, "CreateGroupWithPolicy", data);
2539
- return promise.then((data) => MsgCreateGroupWithPolicyResponse.decode(new BinaryReader(data)));
2540
- }
2541
-
2542
- UpdateGroupPolicyAdmin(request: MsgUpdateGroupPolicyAdmin): Promise<MsgUpdateGroupPolicyAdminResponse> {
2543
- const data = MsgUpdateGroupPolicyAdmin.encode(request).finish();
2544
- const promise = this.rpc.request(this.service, "UpdateGroupPolicyAdmin", data);
2545
- return promise.then((data) => MsgUpdateGroupPolicyAdminResponse.decode(new BinaryReader(data)));
2546
- }
2547
-
2548
- UpdateGroupPolicyDecisionPolicy(
2549
- request: MsgUpdateGroupPolicyDecisionPolicy,
2550
- ): Promise<MsgUpdateGroupPolicyDecisionPolicyResponse> {
2551
- const data = MsgUpdateGroupPolicyDecisionPolicy.encode(request).finish();
2552
- const promise = this.rpc.request(this.service, "UpdateGroupPolicyDecisionPolicy", data);
2553
- return promise.then((data) => MsgUpdateGroupPolicyDecisionPolicyResponse.decode(new BinaryReader(data)));
2554
- }
2555
-
2556
- UpdateGroupPolicyMetadata(request: MsgUpdateGroupPolicyMetadata): Promise<MsgUpdateGroupPolicyMetadataResponse> {
2557
- const data = MsgUpdateGroupPolicyMetadata.encode(request).finish();
2558
- const promise = this.rpc.request(this.service, "UpdateGroupPolicyMetadata", data);
2559
- return promise.then((data) => MsgUpdateGroupPolicyMetadataResponse.decode(new BinaryReader(data)));
2560
- }
2561
-
2562
- SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse> {
2563
- const data = MsgSubmitProposal.encode(request).finish();
2564
- const promise = this.rpc.request(this.service, "SubmitProposal", data);
2565
- return promise.then((data) => MsgSubmitProposalResponse.decode(new BinaryReader(data)));
2566
- }
2567
-
2568
- WithdrawProposal(request: MsgWithdrawProposal): Promise<MsgWithdrawProposalResponse> {
2569
- const data = MsgWithdrawProposal.encode(request).finish();
2570
- const promise = this.rpc.request(this.service, "WithdrawProposal", data);
2571
- return promise.then((data) => MsgWithdrawProposalResponse.decode(new BinaryReader(data)));
2572
- }
2573
-
2574
- Vote(request: MsgVote): Promise<MsgVoteResponse> {
2575
- const data = MsgVote.encode(request).finish();
2576
- const promise = this.rpc.request(this.service, "Vote", data);
2577
- return promise.then((data) => MsgVoteResponse.decode(new BinaryReader(data)));
2578
- }
2579
-
2580
- Exec(request: MsgExec): Promise<MsgExecResponse> {
2581
- const data = MsgExec.encode(request).finish();
2582
- const promise = this.rpc.request(this.service, "Exec", data);
2583
- return promise.then((data) => MsgExecResponse.decode(new BinaryReader(data)));
2584
- }
2585
-
2586
- LeaveGroup(request: MsgLeaveGroup): Promise<MsgLeaveGroupResponse> {
2587
- const data = MsgLeaveGroup.encode(request).finish();
2588
- const promise = this.rpc.request(this.service, "LeaveGroup", data);
2589
- return promise.then((data) => MsgLeaveGroupResponse.decode(new BinaryReader(data)));
2590
- }
2591
- }
2592
-
2593
- interface Rpc {
2594
- request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
2595
- }
2596
-
2597
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
2598
-
2599
- export type DeepPartial<T> = T extends Builtin ? T
2600
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
2601
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
2602
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
2603
- : Partial<T>;
2604
-
2605
- type KeysOfUnion<T> = T extends T ? keyof T : never;
2606
- export type Exact<P, I extends P> = P extends Builtin ? P
2607
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
2608
-
2609
- function longToNumber(int64: { toString(): string }): number {
2610
- const num = globalThis.Number(int64.toString());
2611
- if (num > globalThis.Number.MAX_SAFE_INTEGER) {
2612
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
2613
- }
2614
- if (num < globalThis.Number.MIN_SAFE_INTEGER) {
2615
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
2616
- }
2617
- return num;
2618
- }
2619
-
2620
- function isSet(value: any): boolean {
2621
- return value !== null && value !== undefined;
2622
- }
2623
-
2624
- export interface MessageFns<T> {
2625
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
2626
- decode(input: BinaryReader | Uint8Array, length?: number): T;
2627
- fromJSON(object: any): T;
2628
- toJSON(message: T): unknown;
2629
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
2630
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
2631
- }