@bze/bzejs 3.2.0 → 4.0.0

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 (441) hide show
  1. package/README.md +18 -1
  2. package/dist/bze/bundle.d.ts +5982 -3068
  3. package/dist/bze/bundle.js +144 -93
  4. package/dist/bze/burner/burned_coins.d.ts +60 -0
  5. package/dist/bze/burner/burned_coins.js +92 -1
  6. package/dist/bze/burner/genesis.d.ts +4 -1
  7. package/dist/bze/burner/genesis.js +20 -4
  8. package/dist/bze/burner/params.d.ts +22 -0
  9. package/dist/bze/burner/params.js +29 -4
  10. package/dist/bze/dao/events.d.ts +1208 -0
  11. package/dist/bze/dao/events.js +1840 -0
  12. package/dist/bze/dao/genesis.d.ts +307 -0
  13. package/dist/bze/dao/genesis.js +435 -0
  14. package/dist/bze/dao/module/module.d.ts +64 -0
  15. package/dist/{cosmos/orm/module/v1alpha1 → bze/dao/module}/module.js +27 -23
  16. package/dist/bze/dao/params.d.ts +210 -0
  17. package/dist/bze/dao/params.js +268 -0
  18. package/dist/bze/dao/query.d.ts +1607 -0
  19. package/dist/bze/dao/query.js +2368 -0
  20. package/dist/bze/dao/query.lcd.d.ts +20 -0
  21. package/dist/bze/dao/query.lcd.js +125 -0
  22. package/dist/bze/dao/query.rpc.func.d.ts +88 -0
  23. package/dist/bze/dao/query.rpc.func.js +165 -0
  24. package/dist/bze/dao/store.d.ts +946 -0
  25. package/dist/bze/dao/store.js +1546 -0
  26. package/dist/bze/dao/tx.d.ts +2014 -0
  27. package/dist/bze/dao/tx.js +2823 -0
  28. package/dist/bze/dao/tx.registry.d.ts +191 -0
  29. package/dist/bze/dao/tx.registry.js +283 -0
  30. package/dist/bze/dao/tx.rpc.func.d.ts +124 -0
  31. package/dist/bze/dao/tx.rpc.func.js +159 -0
  32. package/dist/bze/guardian/module/module.d.ts +64 -0
  33. package/dist/bze/guardian/module/module.js +84 -0
  34. package/dist/bze/guardian/v1/events.d.ts +632 -0
  35. package/dist/bze/guardian/v1/events.js +985 -0
  36. package/dist/bze/guardian/v1/genesis.d.ts +85 -0
  37. package/dist/bze/guardian/v1/genesis.js +118 -0
  38. package/dist/bze/guardian/v1/params.d.ts +68 -0
  39. package/dist/bze/guardian/v1/params.js +91 -0
  40. package/dist/bze/guardian/v1/query.d.ts +472 -0
  41. package/dist/bze/guardian/v1/query.js +598 -0
  42. package/dist/bze/guardian/v1/query.lcd.d.ts +12 -0
  43. package/dist/bze/guardian/v1/query.lcd.js +34 -0
  44. package/dist/bze/guardian/v1/query.rpc.func.d.ts +29 -0
  45. package/dist/bze/guardian/v1/query.rpc.func.js +58 -0
  46. package/dist/bze/guardian/v1/tx.d.ts +1487 -0
  47. package/dist/bze/guardian/v1/tx.js +1870 -0
  48. package/dist/bze/guardian/v1/tx.registry.d.ts +143 -0
  49. package/dist/bze/guardian/v1/tx.registry.js +211 -0
  50. package/dist/bze/guardian/v1/tx.rpc.func.d.ts +91 -0
  51. package/dist/bze/guardian/v1/tx.rpc.func.js +118 -0
  52. package/dist/bze/lcd.d.ts +4 -3
  53. package/dist/bze/lcd.js +8 -5
  54. package/dist/bze/rewards/events.d.ts +79 -0
  55. package/dist/bze/rewards/events.js +109 -5
  56. package/dist/bze/tokenfactory/denom_authority.d.ts +13 -0
  57. package/dist/bze/tokenfactory/denom_authority.js +16 -4
  58. package/dist/bze/tokenfactory/denom_config.d.ts +92 -0
  59. package/dist/bze/tokenfactory/denom_config.js +111 -0
  60. package/dist/bze/tokenfactory/events.d.ts +122 -0
  61. package/dist/bze/tokenfactory/events.js +207 -1
  62. package/dist/bze/tokenfactory/genesis.d.ts +10 -0
  63. package/dist/bze/tokenfactory/genesis.js +15 -1
  64. package/dist/bze/tokenfactory/query.d.ts +107 -0
  65. package/dist/bze/tokenfactory/query.js +163 -1
  66. package/dist/bze/tokenfactory/query.lcd.d.ts +2 -1
  67. package/dist/bze/tokenfactory/query.lcd.js +12 -0
  68. package/dist/bze/tokenfactory/query.rpc.func.d.ts +8 -1
  69. package/dist/bze/tokenfactory/query.rpc.func.js +14 -1
  70. package/dist/bze/tokenfactory/tx.d.ts +396 -0
  71. package/dist/bze/tokenfactory/tx.js +542 -1
  72. package/dist/bze/tokenfactory/tx.registry.d.ts +37 -1
  73. package/dist/bze/tokenfactory/tx.registry.js +55 -1
  74. package/dist/bze/tokenfactory/tx.rpc.func.d.ts +25 -1
  75. package/dist/bze/tokenfactory/tx.rpc.func.js +31 -1
  76. package/dist/bze/tradebin/events.d.ts +312 -174
  77. package/dist/bze/tradebin/events.js +509 -321
  78. package/dist/bze/tradebin/genesis.d.ts +1 -4
  79. package/dist/bze/tradebin/genesis.js +3 -19
  80. package/dist/bze/tradebin/query.d.ts +109 -0
  81. package/dist/bze/tradebin/query.js +170 -1
  82. package/dist/bze/tradebin/query.lcd.d.ts +2 -1
  83. package/dist/bze/tradebin/query.lcd.js +13 -0
  84. package/dist/bze/tradebin/query.rpc.func.d.ts +9 -1
  85. package/dist/bze/tradebin/query.rpc.func.js +15 -1
  86. package/dist/bze/tradebin/store.d.ts +78 -77
  87. package/dist/bze/tradebin/store.js +120 -179
  88. package/dist/bze/tradebin/tx.d.ts +204 -0
  89. package/dist/bze/tradebin/tx.js +286 -1
  90. package/dist/bze/tradebin/tx.registry.d.ts +13 -1
  91. package/dist/bze/tradebin/tx.registry.js +19 -1
  92. package/dist/bze/tradebin/tx.rpc.func.d.ts +8 -1
  93. package/dist/bze/tradebin/tx.rpc.func.js +10 -1
  94. package/dist/bze/tradebin/v2/params.d.ts +54 -12
  95. package/dist/bze/tradebin/v2/params.js +61 -36
  96. package/dist/bze/txfeecollector/events.d.ts +185 -0
  97. package/dist/bze/txfeecollector/events.js +222 -1
  98. package/dist/cosmos/app/runtime/v1alpha1/module.d.ts +28 -2
  99. package/dist/cosmos/app/runtime/v1alpha1/module.js +34 -4
  100. package/dist/cosmos/auth/module/v1/module.d.ts +13 -0
  101. package/dist/cosmos/auth/module/v1/module.js +16 -4
  102. package/dist/cosmos/auth/v1beta1/auth.d.ts +0 -8
  103. package/dist/cosmos/auth/v1beta1/auth.js +0 -2
  104. package/dist/cosmos/auth/v1beta1/query.d.ts +0 -116
  105. package/dist/cosmos/auth/v1beta1/query.js +0 -28
  106. package/dist/cosmos/auth/v1beta1/query.lcd.js +7 -21
  107. package/dist/cosmos/auth/v1beta1/query.rpc.func.d.ts +0 -14
  108. package/dist/cosmos/auth/v1beta1/query.rpc.func.js +0 -14
  109. package/dist/cosmos/auth/v1beta1/tx.d.ts +0 -16
  110. package/dist/cosmos/auth/v1beta1/tx.js +0 -4
  111. package/dist/cosmos/auth/v1beta1/tx.rpc.func.d.ts +0 -2
  112. package/dist/cosmos/auth/v1beta1/tx.rpc.func.js +0 -2
  113. package/dist/cosmos/authz/v1beta1/query.lcd.js +2 -6
  114. package/dist/cosmos/authz/v1beta1/query.rpc.func.d.ts +0 -4
  115. package/dist/cosmos/authz/v1beta1/query.rpc.func.js +0 -4
  116. package/dist/cosmos/bank/v1beta1/authz.d.ts +0 -12
  117. package/dist/cosmos/bank/v1beta1/authz.js +0 -2
  118. package/dist/cosmos/bank/v1beta1/bank.d.ts +0 -16
  119. package/dist/cosmos/bank/v1beta1/genesis.d.ts +0 -4
  120. package/dist/cosmos/bank/v1beta1/query.d.ts +0 -92
  121. package/dist/cosmos/bank/v1beta1/query.js +0 -20
  122. package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +2 -2
  123. package/dist/cosmos/bank/v1beta1/query.lcd.js +29 -30
  124. package/dist/cosmos/bank/v1beta1/query.rpc.func.d.ts +9 -19
  125. package/dist/cosmos/bank/v1beta1/query.rpc.func.js +15 -25
  126. package/dist/cosmos/bank/v1beta1/tx.d.ts +0 -32
  127. package/dist/cosmos/bank/v1beta1/tx.js +0 -8
  128. package/dist/cosmos/bank/v1beta1/tx.rpc.func.d.ts +0 -4
  129. package/dist/cosmos/bank/v1beta1/tx.rpc.func.js +0 -4
  130. package/dist/cosmos/base/abci/v1beta1/abci.d.ts +0 -12
  131. package/dist/cosmos/base/query/v1beta1/pagination.d.ts +0 -4
  132. package/dist/cosmos/base/tendermint/v1beta1/query.d.ts +0 -18
  133. package/dist/cosmos/base/tendermint/v1beta1/query.lcd.js +1 -3
  134. package/dist/cosmos/base/tendermint/v1beta1/query.rpc.func.d.ts +0 -2
  135. package/dist/cosmos/base/tendermint/v1beta1/query.rpc.func.js +0 -2
  136. package/dist/cosmos/bundle.d.ts +8277 -10119
  137. package/dist/cosmos/bundle.js +366 -415
  138. package/dist/cosmos/consensus/v1/tx.d.ts +0 -6
  139. package/dist/cosmos/consensus/v1/tx.rpc.func.d.ts +0 -2
  140. package/dist/cosmos/consensus/v1/tx.rpc.func.js +0 -2
  141. package/dist/cosmos/distribution/v1beta1/query.lcd.js +3 -1
  142. package/dist/cosmos/distribution/v1beta1/query.rpc.func.d.ts +2 -0
  143. package/dist/cosmos/distribution/v1beta1/query.rpc.func.js +2 -0
  144. package/dist/cosmos/distribution/v1beta1/tx.d.ts +0 -60
  145. package/dist/cosmos/distribution/v1beta1/tx.js +0 -12
  146. package/dist/cosmos/distribution/v1beta1/tx.rpc.func.d.ts +3 -5
  147. package/dist/cosmos/distribution/v1beta1/tx.rpc.func.js +3 -5
  148. package/dist/cosmos/feegrant/v1beta1/query.d.ts +0 -16
  149. package/dist/cosmos/feegrant/v1beta1/query.js +0 -4
  150. package/dist/cosmos/feegrant/v1beta1/query.lcd.js +1 -3
  151. package/dist/cosmos/feegrant/v1beta1/query.rpc.func.d.ts +0 -2
  152. package/dist/cosmos/feegrant/v1beta1/query.rpc.func.js +0 -2
  153. package/dist/cosmos/feegrant/v1beta1/tx.d.ts +0 -16
  154. package/dist/cosmos/feegrant/v1beta1/tx.js +0 -4
  155. package/dist/cosmos/feegrant/v1beta1/tx.rpc.func.d.ts +0 -2
  156. package/dist/cosmos/feegrant/v1beta1/tx.rpc.func.js +0 -2
  157. package/dist/cosmos/gov/v1/genesis.d.ts +0 -8
  158. package/dist/cosmos/gov/v1/gov.d.ts +0 -48
  159. package/dist/cosmos/gov/v1/gov.js +0 -2
  160. package/dist/cosmos/gov/v1/query.d.ts +0 -4
  161. package/dist/cosmos/gov/v1/tx.d.ts +0 -44
  162. package/dist/cosmos/gov/v1/tx.js +0 -8
  163. package/dist/cosmos/gov/v1/tx.rpc.func.d.ts +0 -4
  164. package/dist/cosmos/gov/v1/tx.rpc.func.js +0 -4
  165. package/dist/cosmos/gov/v1beta1/gov.d.ts +0 -12
  166. package/dist/cosmos/gov/v1beta1/gov.js +0 -2
  167. package/dist/cosmos/gov/v1beta1/tx.d.ts +0 -16
  168. package/dist/cosmos/gov/v1beta1/tx.js +0 -4
  169. package/dist/cosmos/gov/v1beta1/tx.rpc.func.d.ts +0 -2
  170. package/dist/cosmos/gov/v1beta1/tx.rpc.func.js +0 -2
  171. package/dist/cosmos/lcd.d.ts +0 -3
  172. package/dist/cosmos/lcd.js +0 -5
  173. package/dist/cosmos/mint/v1beta1/tx.d.ts +0 -16
  174. package/dist/cosmos/mint/v1beta1/tx.js +0 -4
  175. package/dist/cosmos/mint/v1beta1/tx.rpc.func.d.ts +0 -2
  176. package/dist/cosmos/mint/v1beta1/tx.rpc.func.js +0 -2
  177. package/dist/cosmos/params/v1beta1/query.d.ts +0 -24
  178. package/dist/cosmos/params/v1beta1/query.js +0 -6
  179. package/dist/cosmos/params/v1beta1/query.lcd.js +1 -3
  180. package/dist/cosmos/params/v1beta1/query.rpc.func.d.ts +0 -2
  181. package/dist/cosmos/params/v1beta1/query.rpc.func.js +0 -2
  182. package/dist/cosmos/staking/v1beta1/authz.d.ts +1 -13
  183. package/dist/cosmos/staking/v1beta1/authz.js +1 -7
  184. package/dist/cosmos/staking/v1beta1/staking.d.ts +0 -4
  185. package/dist/cosmos/staking/v1beta1/tx.d.ts +0 -36
  186. package/dist/cosmos/staking/v1beta1/tx.js +0 -8
  187. package/dist/cosmos/staking/v1beta1/tx.rpc.func.d.ts +0 -3
  188. package/dist/cosmos/staking/v1beta1/tx.rpc.func.js +0 -3
  189. package/dist/cosmos/store/snapshots/v1/snapshot.d.ts +0 -40
  190. package/dist/cosmos/store/snapshots/v1/snapshot.js +0 -10
  191. package/dist/cosmos/store/v1beta1/listening.d.ts +0 -8
  192. package/dist/cosmos/store/v1beta1/listening.js +0 -2
  193. package/dist/cosmos/tx/v1beta1/service.d.ts +0 -88
  194. package/dist/cosmos/tx/v1beta1/service.js +0 -20
  195. package/dist/cosmos/tx/v1beta1/service.lcd.js +1 -3
  196. package/dist/cosmos/tx/v1beta1/service.rpc.func.d.ts +0 -10
  197. package/dist/cosmos/tx/v1beta1/service.rpc.func.js +0 -10
  198. package/dist/cosmos/tx/v1beta1/tx.d.ts +76 -46
  199. package/dist/cosmos/tx/v1beta1/tx.js +28 -9
  200. package/dist/cosmos/upgrade/v1beta1/query.d.ts +0 -38
  201. package/dist/cosmos/upgrade/v1beta1/query.js +0 -8
  202. package/dist/cosmos/upgrade/v1beta1/query.lcd.js +2 -6
  203. package/dist/cosmos/upgrade/v1beta1/query.rpc.func.d.ts +0 -4
  204. package/dist/cosmos/upgrade/v1beta1/query.rpc.func.js +0 -4
  205. package/dist/cosmos/upgrade/v1beta1/tx.d.ts +0 -32
  206. package/dist/cosmos/upgrade/v1beta1/tx.js +0 -8
  207. package/dist/cosmos/upgrade/v1beta1/tx.rpc.func.d.ts +0 -4
  208. package/dist/cosmos/upgrade/v1beta1/tx.rpc.func.js +0 -4
  209. package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +0 -8
  210. package/dist/cosmos/upgrade/v1beta1/upgrade.js +0 -2
  211. package/dist/cosmos/vesting/v1beta1/tx.d.ts +0 -32
  212. package/dist/cosmos/vesting/v1beta1/tx.js +0 -8
  213. package/dist/cosmos/vesting/v1beta1/tx.rpc.func.d.ts +0 -4
  214. package/dist/cosmos/vesting/v1beta1/tx.rpc.func.js +0 -4
  215. package/dist/cosmos/vesting/v1beta1/vesting.d.ts +0 -8
  216. package/dist/cosmos/vesting/v1beta1/vesting.js +0 -2
  217. package/dist/cosmos_proto/bundle.d.ts +30 -30
  218. package/dist/cosmos_proto/bundle.js +2 -2
  219. package/dist/esm/bze/bundle.js +144 -93
  220. package/dist/esm/bze/burner/burned_coins.js +91 -0
  221. package/dist/esm/bze/burner/genesis.js +21 -5
  222. package/dist/esm/bze/burner/params.js +29 -4
  223. package/dist/esm/bze/dao/events.js +1837 -0
  224. package/dist/esm/bze/dao/genesis.js +432 -0
  225. package/dist/esm/{cosmos/orm/module/v1alpha1 → bze/dao/module}/module.js +27 -23
  226. package/dist/esm/bze/dao/params.js +265 -0
  227. package/dist/esm/bze/dao/query.js +2363 -0
  228. package/dist/esm/bze/dao/query.lcd.js +121 -0
  229. package/dist/esm/bze/dao/query.rpc.func.js +162 -0
  230. package/dist/esm/bze/dao/store.js +1533 -0
  231. package/dist/esm/bze/dao/tx.js +2820 -0
  232. package/dist/esm/bze/dao/tx.registry.js +280 -0
  233. package/dist/esm/bze/dao/tx.rpc.func.js +156 -0
  234. package/dist/esm/bze/guardian/module/module.js +81 -0
  235. package/dist/esm/bze/guardian/v1/events.js +982 -0
  236. package/dist/esm/bze/guardian/v1/genesis.js +115 -0
  237. package/dist/esm/bze/guardian/v1/params.js +88 -0
  238. package/dist/esm/bze/guardian/v1/query.js +595 -0
  239. package/dist/esm/bze/guardian/v1/query.lcd.js +30 -0
  240. package/dist/esm/bze/guardian/v1/query.rpc.func.js +55 -0
  241. package/dist/esm/bze/guardian/v1/tx.js +1867 -0
  242. package/dist/esm/bze/guardian/v1/tx.registry.js +208 -0
  243. package/dist/esm/bze/guardian/v1/tx.rpc.func.js +115 -0
  244. package/dist/esm/bze/lcd.js +8 -5
  245. package/dist/esm/bze/rewards/events.js +108 -4
  246. package/dist/esm/bze/tokenfactory/denom_authority.js +16 -4
  247. package/dist/esm/bze/tokenfactory/denom_config.js +108 -0
  248. package/dist/esm/bze/tokenfactory/events.js +206 -0
  249. package/dist/esm/bze/tokenfactory/genesis.js +15 -1
  250. package/dist/esm/bze/tokenfactory/query.js +162 -0
  251. package/dist/esm/bze/tokenfactory/query.lcd.js +12 -0
  252. package/dist/esm/bze/tokenfactory/query.rpc.func.js +14 -1
  253. package/dist/esm/bze/tokenfactory/tx.js +541 -0
  254. package/dist/esm/bze/tokenfactory/tx.registry.js +56 -2
  255. package/dist/esm/bze/tokenfactory/tx.rpc.func.js +31 -1
  256. package/dist/esm/bze/tradebin/events.js +508 -320
  257. package/dist/esm/bze/tradebin/genesis.js +4 -20
  258. package/dist/esm/bze/tradebin/query.js +169 -0
  259. package/dist/esm/bze/tradebin/query.lcd.js +13 -0
  260. package/dist/esm/bze/tradebin/query.rpc.func.js +15 -1
  261. package/dist/esm/bze/tradebin/store.js +119 -178
  262. package/dist/esm/bze/tradebin/tx.js +285 -0
  263. package/dist/esm/bze/tradebin/tx.registry.js +20 -2
  264. package/dist/esm/bze/tradebin/tx.rpc.func.js +10 -1
  265. package/dist/esm/bze/tradebin/v2/params.js +61 -36
  266. package/dist/esm/bze/txfeecollector/events.js +221 -0
  267. package/dist/esm/cosmos/app/runtime/v1alpha1/module.js +34 -4
  268. package/dist/esm/cosmos/auth/module/v1/module.js +16 -4
  269. package/dist/esm/cosmos/auth/v1beta1/auth.js +0 -2
  270. package/dist/esm/cosmos/auth/v1beta1/query.js +0 -28
  271. package/dist/esm/cosmos/auth/v1beta1/query.lcd.js +7 -21
  272. package/dist/esm/cosmos/auth/v1beta1/query.rpc.func.js +0 -14
  273. package/dist/esm/cosmos/auth/v1beta1/tx.js +0 -4
  274. package/dist/esm/cosmos/auth/v1beta1/tx.rpc.func.js +0 -2
  275. package/dist/esm/cosmos/authz/v1beta1/query.lcd.js +2 -6
  276. package/dist/esm/cosmos/authz/v1beta1/query.rpc.func.js +0 -4
  277. package/dist/esm/cosmos/bank/v1beta1/authz.js +0 -2
  278. package/dist/esm/cosmos/bank/v1beta1/query.js +0 -20
  279. package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +29 -30
  280. package/dist/esm/cosmos/bank/v1beta1/query.rpc.func.js +15 -25
  281. package/dist/esm/cosmos/bank/v1beta1/tx.js +0 -8
  282. package/dist/esm/cosmos/bank/v1beta1/tx.rpc.func.js +0 -4
  283. package/dist/esm/cosmos/base/tendermint/v1beta1/query.lcd.js +1 -3
  284. package/dist/esm/cosmos/base/tendermint/v1beta1/query.rpc.func.js +0 -2
  285. package/dist/esm/cosmos/bundle.js +366 -415
  286. package/dist/esm/cosmos/consensus/v1/tx.rpc.func.js +0 -2
  287. package/dist/esm/cosmos/distribution/v1beta1/query.lcd.js +3 -1
  288. package/dist/esm/cosmos/distribution/v1beta1/query.rpc.func.js +2 -0
  289. package/dist/esm/cosmos/distribution/v1beta1/tx.js +0 -12
  290. package/dist/esm/cosmos/distribution/v1beta1/tx.rpc.func.js +3 -5
  291. package/dist/esm/cosmos/feegrant/v1beta1/query.js +0 -4
  292. package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +1 -3
  293. package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.func.js +0 -2
  294. package/dist/esm/cosmos/feegrant/v1beta1/tx.js +0 -4
  295. package/dist/esm/cosmos/feegrant/v1beta1/tx.rpc.func.js +0 -2
  296. package/dist/esm/cosmos/gov/v1/gov.js +0 -2
  297. package/dist/esm/cosmos/gov/v1/tx.js +0 -8
  298. package/dist/esm/cosmos/gov/v1/tx.rpc.func.js +0 -4
  299. package/dist/esm/cosmos/gov/v1beta1/gov.js +0 -2
  300. package/dist/esm/cosmos/gov/v1beta1/tx.js +0 -4
  301. package/dist/esm/cosmos/gov/v1beta1/tx.rpc.func.js +0 -2
  302. package/dist/esm/cosmos/lcd.js +0 -5
  303. package/dist/esm/cosmos/mint/v1beta1/tx.js +0 -4
  304. package/dist/esm/cosmos/mint/v1beta1/tx.rpc.func.js +0 -2
  305. package/dist/esm/cosmos/params/v1beta1/query.js +0 -6
  306. package/dist/esm/cosmos/params/v1beta1/query.lcd.js +1 -3
  307. package/dist/esm/cosmos/params/v1beta1/query.rpc.func.js +0 -2
  308. package/dist/esm/cosmos/staking/v1beta1/authz.js +1 -7
  309. package/dist/esm/cosmos/staking/v1beta1/tx.js +0 -8
  310. package/dist/esm/cosmos/staking/v1beta1/tx.rpc.func.js +0 -3
  311. package/dist/esm/cosmos/store/snapshots/v1/snapshot.js +0 -10
  312. package/dist/esm/cosmos/store/v1beta1/listening.js +0 -2
  313. package/dist/esm/cosmos/tx/v1beta1/service.js +0 -20
  314. package/dist/esm/cosmos/tx/v1beta1/service.lcd.js +1 -3
  315. package/dist/esm/cosmos/tx/v1beta1/service.rpc.func.js +0 -10
  316. package/dist/esm/cosmos/tx/v1beta1/tx.js +29 -10
  317. package/dist/esm/cosmos/upgrade/v1beta1/query.js +0 -8
  318. package/dist/esm/cosmos/upgrade/v1beta1/query.lcd.js +2 -6
  319. package/dist/esm/cosmos/upgrade/v1beta1/query.rpc.func.js +0 -4
  320. package/dist/esm/cosmos/upgrade/v1beta1/tx.js +0 -8
  321. package/dist/esm/cosmos/upgrade/v1beta1/tx.rpc.func.js +0 -4
  322. package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +0 -2
  323. package/dist/esm/cosmos/vesting/v1beta1/tx.js +0 -8
  324. package/dist/esm/cosmos/vesting/v1beta1/tx.rpc.func.js +0 -4
  325. package/dist/esm/cosmos/vesting/v1beta1/vesting.js +0 -2
  326. package/dist/esm/cosmos_proto/bundle.js +2 -2
  327. package/dist/esm/gogoproto/bundle.js +2 -2
  328. package/dist/esm/google/bundle.js +8 -8
  329. package/dist/esm/ibc/applications/transfer/v1/tx.js +4 -16
  330. package/dist/esm/ibc/bundle.js +93 -121
  331. package/dist/esm/ibc/core/client/v1/tx.js +187 -0
  332. package/dist/esm/ibc/core/client/v1/tx.registry.js +20 -2
  333. package/dist/esm/ibc/core/client/v1/tx.rpc.func.js +10 -1
  334. package/dist/esm/ibc/lcd.js +0 -10
  335. package/dist/esm/ibc/lightclients/wasm/v1/wasm.js +93 -0
  336. package/dist/esm/index.js +1 -0
  337. package/dist/esm/ratelimit/bundle.js +35 -0
  338. package/dist/esm/ratelimit/lcd.js +106 -0
  339. package/dist/esm/ratelimit/module/v1/module.js +81 -0
  340. package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/genesis.js +49 -27
  341. package/dist/esm/ratelimit/v1/params.js +68 -0
  342. package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/query.js +105 -195
  343. package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/query.lcd.js +10 -10
  344. package/dist/esm/ratelimit/v1/query.rpc.func.js +83 -0
  345. package/dist/esm/{ibc/applications/rate_limiting/v1/rate_limiting.js → ratelimit/v1/ratelimit.js} +29 -73
  346. package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/tx.js +77 -109
  347. package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/tx.registry.js +13 -13
  348. package/dist/esm/{ibc/applications/rate_limiting → ratelimit}/v1/tx.rpc.func.js +9 -9
  349. package/dist/esm/tendermint/bundle.js +20 -20
  350. package/dist/gogoproto/bundle.js +2 -2
  351. package/dist/google/bundle.d.ts +550 -550
  352. package/dist/google/bundle.js +8 -8
  353. package/dist/ibc/applications/transfer/v1/tx.d.ts +0 -19
  354. package/dist/ibc/applications/transfer/v1/tx.js +4 -16
  355. package/dist/ibc/bundle.d.ts +506 -1065
  356. package/dist/ibc/bundle.js +93 -121
  357. package/dist/ibc/core/client/v1/tx.d.ts +155 -0
  358. package/dist/ibc/core/client/v1/tx.js +188 -1
  359. package/dist/ibc/core/client/v1/tx.registry.d.ts +13 -1
  360. package/dist/ibc/core/client/v1/tx.registry.js +19 -1
  361. package/dist/ibc/core/client/v1/tx.rpc.func.d.ts +8 -1
  362. package/dist/ibc/core/client/v1/tx.rpc.func.js +10 -1
  363. package/dist/ibc/lcd.d.ts +0 -6
  364. package/dist/ibc/lcd.js +0 -10
  365. package/dist/ibc/lightclients/wasm/v1/wasm.d.ts +75 -0
  366. package/dist/ibc/lightclients/wasm/v1/wasm.js +94 -1
  367. package/dist/index.d.ts +1 -0
  368. package/dist/index.js +1 -0
  369. package/dist/ratelimit/bundle.d.ts +625 -0
  370. package/dist/ratelimit/bundle.js +71 -0
  371. package/dist/ratelimit/lcd.d.ts +63 -0
  372. package/dist/ratelimit/lcd.js +143 -0
  373. package/dist/ratelimit/module/v1/module.d.ts +64 -0
  374. package/dist/ratelimit/module/v1/module.js +84 -0
  375. package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/genesis.d.ts +19 -14
  376. package/dist/ratelimit/v1/genesis.js +182 -0
  377. package/dist/ratelimit/v1/params.d.ts +55 -0
  378. package/dist/ratelimit/v1/params.js +71 -0
  379. package/dist/ratelimit/v1/query.d.ts +656 -0
  380. package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/query.js +142 -232
  381. package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/query.lcd.d.ts +3 -3
  382. package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/query.lcd.js +10 -10
  383. package/dist/ratelimit/v1/query.rpc.func.d.ts +45 -0
  384. package/dist/ratelimit/v1/query.rpc.func.js +86 -0
  385. package/dist/{ibc/applications/rate_limiting/v1/rate_limiting.d.ts → ratelimit/v1/ratelimit.d.ts} +62 -82
  386. package/dist/{ibc/applications/rate_limiting/v1/rate_limiting.js → ratelimit/v1/ratelimit.js} +29 -73
  387. package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.d.ts +97 -121
  388. package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.js +77 -109
  389. package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.registry.d.ts +1 -1
  390. package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.registry.js +13 -13
  391. package/dist/ratelimit/v1/tx.rpc.func.d.ts +29 -0
  392. package/dist/{ibc/applications/rate_limiting → ratelimit}/v1/tx.rpc.func.js +9 -9
  393. package/dist/tendermint/bundle.d.ts +1120 -1120
  394. package/dist/tendermint/bundle.js +20 -20
  395. package/package.json +10 -5
  396. package/dist/cosmos/group/module/v1/module.d.ts +0 -80
  397. package/dist/cosmos/group/module/v1/module.js +0 -104
  398. package/dist/cosmos/group/v1/events.d.ts +0 -771
  399. package/dist/cosmos/group/v1/events.js +0 -1031
  400. package/dist/cosmos/group/v1/genesis.d.ts +0 -136
  401. package/dist/cosmos/group/v1/genesis.js +0 -201
  402. package/dist/cosmos/group/v1/query.d.ts +0 -2001
  403. package/dist/cosmos/group/v1/query.js +0 -2787
  404. package/dist/cosmos/group/v1/query.lcd.d.ts +0 -22
  405. package/dist/cosmos/group/v1/query.lcd.js +0 -158
  406. package/dist/cosmos/group/v1/query.rpc.func.d.ts +0 -105
  407. package/dist/cosmos/group/v1/query.rpc.func.js +0 -194
  408. package/dist/cosmos/group/v1/tx.d.ts +0 -2124
  409. package/dist/cosmos/group/v1/tx.js +0 -2821
  410. package/dist/cosmos/group/v1/tx.registry.d.ts +0 -179
  411. package/dist/cosmos/group/v1/tx.registry.js +0 -265
  412. package/dist/cosmos/group/v1/tx.rpc.func.d.ts +0 -99
  413. package/dist/cosmos/group/v1/tx.rpc.func.js +0 -132
  414. package/dist/cosmos/group/v1/types.d.ts +0 -1297
  415. package/dist/cosmos/group/v1/types.js +0 -1677
  416. package/dist/cosmos/orm/module/v1alpha1/module.d.ts +0 -65
  417. package/dist/cosmos/orm/query/v1alpha1/query.d.ts +0 -622
  418. package/dist/cosmos/orm/query/v1alpha1/query.js +0 -835
  419. package/dist/cosmos/orm/query/v1alpha1/query.rpc.func.d.ts +0 -15
  420. package/dist/cosmos/orm/query/v1alpha1/query.rpc.func.js +0 -32
  421. package/dist/esm/cosmos/group/module/v1/module.js +0 -101
  422. package/dist/esm/cosmos/group/v1/events.js +0 -1028
  423. package/dist/esm/cosmos/group/v1/genesis.js +0 -198
  424. package/dist/esm/cosmos/group/v1/query.js +0 -2784
  425. package/dist/esm/cosmos/group/v1/query.lcd.js +0 -154
  426. package/dist/esm/cosmos/group/v1/query.rpc.func.js +0 -191
  427. package/dist/esm/cosmos/group/v1/tx.js +0 -2816
  428. package/dist/esm/cosmos/group/v1/tx.registry.js +0 -262
  429. package/dist/esm/cosmos/group/v1/tx.rpc.func.js +0 -129
  430. package/dist/esm/cosmos/group/v1/types.js +0 -1668
  431. package/dist/esm/cosmos/orm/query/v1alpha1/query.js +0 -832
  432. package/dist/esm/cosmos/orm/query/v1alpha1/query.rpc.func.js +0 -29
  433. package/dist/esm/ibc/applications/packet_forward_middleware/v1/genesis.js +0 -409
  434. package/dist/esm/ibc/applications/rate_limiting/v1/query.rpc.func.js +0 -83
  435. package/dist/ibc/applications/packet_forward_middleware/v1/genesis.d.ts +0 -225
  436. package/dist/ibc/applications/packet_forward_middleware/v1/genesis.js +0 -412
  437. package/dist/ibc/applications/rate_limiting/v1/genesis.js +0 -160
  438. package/dist/ibc/applications/rate_limiting/v1/query.d.ts +0 -704
  439. package/dist/ibc/applications/rate_limiting/v1/query.rpc.func.d.ts +0 -45
  440. package/dist/ibc/applications/rate_limiting/v1/query.rpc.func.js +0 -86
  441. package/dist/ibc/applications/rate_limiting/v1/tx.rpc.func.d.ts +0 -29
@@ -1,1677 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Vote = exports.TallyResult = exports.Proposal = exports.GroupPolicyInfo = exports.GroupMember = exports.GroupInfo = exports.DecisionPolicyWindows = exports.PercentageDecisionPolicy = exports.ThresholdDecisionPolicy = exports.MemberRequest = exports.Member = exports.ProposalExecutorResultAmino = exports.ProposalExecutorResultSDKType = exports.ProposalExecutorResult = exports.ProposalStatusAmino = exports.ProposalStatusSDKType = exports.ProposalStatus = exports.VoteOptionAmino = exports.VoteOptionSDKType = exports.VoteOption = void 0;
4
- exports.voteOptionFromJSON = voteOptionFromJSON;
5
- exports.voteOptionToJSON = voteOptionToJSON;
6
- exports.proposalStatusFromJSON = proposalStatusFromJSON;
7
- exports.proposalStatusToJSON = proposalStatusToJSON;
8
- exports.proposalExecutorResultFromJSON = proposalExecutorResultFromJSON;
9
- exports.proposalExecutorResultToJSON = proposalExecutorResultToJSON;
10
- //@ts-nocheck
11
- const timestamp_1 = require("../../../google/protobuf/timestamp");
12
- const duration_1 = require("../../../google/protobuf/duration");
13
- const any_1 = require("../../../google/protobuf/any");
14
- const binary_1 = require("../../../binary");
15
- const helpers_1 = require("../../../helpers");
16
- const registry_1 = require("../../../registry");
17
- /** VoteOption enumerates the valid vote options for a given proposal. */
18
- var VoteOption;
19
- (function (VoteOption) {
20
- /**
21
- * VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will
22
- * return an error.
23
- */
24
- VoteOption[VoteOption["VOTE_OPTION_UNSPECIFIED"] = 0] = "VOTE_OPTION_UNSPECIFIED";
25
- /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
26
- VoteOption[VoteOption["VOTE_OPTION_YES"] = 1] = "VOTE_OPTION_YES";
27
- /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
28
- VoteOption[VoteOption["VOTE_OPTION_ABSTAIN"] = 2] = "VOTE_OPTION_ABSTAIN";
29
- /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
30
- VoteOption[VoteOption["VOTE_OPTION_NO"] = 3] = "VOTE_OPTION_NO";
31
- /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
32
- VoteOption[VoteOption["VOTE_OPTION_NO_WITH_VETO"] = 4] = "VOTE_OPTION_NO_WITH_VETO";
33
- VoteOption[VoteOption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
34
- })(VoteOption || (exports.VoteOption = VoteOption = {}));
35
- exports.VoteOptionSDKType = VoteOption;
36
- exports.VoteOptionAmino = VoteOption;
37
- function voteOptionFromJSON(object) {
38
- switch (object) {
39
- case 0:
40
- case "VOTE_OPTION_UNSPECIFIED":
41
- return VoteOption.VOTE_OPTION_UNSPECIFIED;
42
- case 1:
43
- case "VOTE_OPTION_YES":
44
- return VoteOption.VOTE_OPTION_YES;
45
- case 2:
46
- case "VOTE_OPTION_ABSTAIN":
47
- return VoteOption.VOTE_OPTION_ABSTAIN;
48
- case 3:
49
- case "VOTE_OPTION_NO":
50
- return VoteOption.VOTE_OPTION_NO;
51
- case 4:
52
- case "VOTE_OPTION_NO_WITH_VETO":
53
- return VoteOption.VOTE_OPTION_NO_WITH_VETO;
54
- case -1:
55
- case "UNRECOGNIZED":
56
- default:
57
- return VoteOption.UNRECOGNIZED;
58
- }
59
- }
60
- function voteOptionToJSON(object) {
61
- switch (object) {
62
- case VoteOption.VOTE_OPTION_UNSPECIFIED:
63
- return "VOTE_OPTION_UNSPECIFIED";
64
- case VoteOption.VOTE_OPTION_YES:
65
- return "VOTE_OPTION_YES";
66
- case VoteOption.VOTE_OPTION_ABSTAIN:
67
- return "VOTE_OPTION_ABSTAIN";
68
- case VoteOption.VOTE_OPTION_NO:
69
- return "VOTE_OPTION_NO";
70
- case VoteOption.VOTE_OPTION_NO_WITH_VETO:
71
- return "VOTE_OPTION_NO_WITH_VETO";
72
- case VoteOption.UNRECOGNIZED:
73
- default:
74
- return "UNRECOGNIZED";
75
- }
76
- }
77
- /** ProposalStatus defines proposal statuses. */
78
- var ProposalStatus;
79
- (function (ProposalStatus) {
80
- /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */
81
- ProposalStatus[ProposalStatus["PROPOSAL_STATUS_UNSPECIFIED"] = 0] = "PROPOSAL_STATUS_UNSPECIFIED";
82
- /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when submitted. */
83
- ProposalStatus[ProposalStatus["PROPOSAL_STATUS_SUBMITTED"] = 1] = "PROPOSAL_STATUS_SUBMITTED";
84
- /**
85
- * PROPOSAL_STATUS_ACCEPTED - Final status of a proposal when the final tally is done and the outcome
86
- * passes the group policy's decision policy.
87
- */
88
- ProposalStatus[ProposalStatus["PROPOSAL_STATUS_ACCEPTED"] = 2] = "PROPOSAL_STATUS_ACCEPTED";
89
- /**
90
- * PROPOSAL_STATUS_REJECTED - Final status of a proposal when the final tally is done and the outcome
91
- * is rejected by the group policy's decision policy.
92
- */
93
- ProposalStatus[ProposalStatus["PROPOSAL_STATUS_REJECTED"] = 3] = "PROPOSAL_STATUS_REJECTED";
94
- /**
95
- * PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group policy is modified before the
96
- * final tally.
97
- */
98
- ProposalStatus[ProposalStatus["PROPOSAL_STATUS_ABORTED"] = 4] = "PROPOSAL_STATUS_ABORTED";
99
- /**
100
- * PROPOSAL_STATUS_WITHDRAWN - A proposal can be withdrawn before the voting start time by the owner.
101
- * When this happens the final status is Withdrawn.
102
- */
103
- ProposalStatus[ProposalStatus["PROPOSAL_STATUS_WITHDRAWN"] = 5] = "PROPOSAL_STATUS_WITHDRAWN";
104
- ProposalStatus[ProposalStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
105
- })(ProposalStatus || (exports.ProposalStatus = ProposalStatus = {}));
106
- exports.ProposalStatusSDKType = ProposalStatus;
107
- exports.ProposalStatusAmino = ProposalStatus;
108
- function proposalStatusFromJSON(object) {
109
- switch (object) {
110
- case 0:
111
- case "PROPOSAL_STATUS_UNSPECIFIED":
112
- return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED;
113
- case 1:
114
- case "PROPOSAL_STATUS_SUBMITTED":
115
- return ProposalStatus.PROPOSAL_STATUS_SUBMITTED;
116
- case 2:
117
- case "PROPOSAL_STATUS_ACCEPTED":
118
- return ProposalStatus.PROPOSAL_STATUS_ACCEPTED;
119
- case 3:
120
- case "PROPOSAL_STATUS_REJECTED":
121
- return ProposalStatus.PROPOSAL_STATUS_REJECTED;
122
- case 4:
123
- case "PROPOSAL_STATUS_ABORTED":
124
- return ProposalStatus.PROPOSAL_STATUS_ABORTED;
125
- case 5:
126
- case "PROPOSAL_STATUS_WITHDRAWN":
127
- return ProposalStatus.PROPOSAL_STATUS_WITHDRAWN;
128
- case -1:
129
- case "UNRECOGNIZED":
130
- default:
131
- return ProposalStatus.UNRECOGNIZED;
132
- }
133
- }
134
- function proposalStatusToJSON(object) {
135
- switch (object) {
136
- case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED:
137
- return "PROPOSAL_STATUS_UNSPECIFIED";
138
- case ProposalStatus.PROPOSAL_STATUS_SUBMITTED:
139
- return "PROPOSAL_STATUS_SUBMITTED";
140
- case ProposalStatus.PROPOSAL_STATUS_ACCEPTED:
141
- return "PROPOSAL_STATUS_ACCEPTED";
142
- case ProposalStatus.PROPOSAL_STATUS_REJECTED:
143
- return "PROPOSAL_STATUS_REJECTED";
144
- case ProposalStatus.PROPOSAL_STATUS_ABORTED:
145
- return "PROPOSAL_STATUS_ABORTED";
146
- case ProposalStatus.PROPOSAL_STATUS_WITHDRAWN:
147
- return "PROPOSAL_STATUS_WITHDRAWN";
148
- case ProposalStatus.UNRECOGNIZED:
149
- default:
150
- return "UNRECOGNIZED";
151
- }
152
- }
153
- /** ProposalExecutorResult defines types of proposal executor results. */
154
- var ProposalExecutorResult;
155
- (function (ProposalExecutorResult) {
156
- /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */
157
- ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED"] = 0] = "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED";
158
- /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */
159
- ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_NOT_RUN"] = 1] = "PROPOSAL_EXECUTOR_RESULT_NOT_RUN";
160
- /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */
161
- ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_SUCCESS"] = 2] = "PROPOSAL_EXECUTOR_RESULT_SUCCESS";
162
- /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */
163
- ProposalExecutorResult[ProposalExecutorResult["PROPOSAL_EXECUTOR_RESULT_FAILURE"] = 3] = "PROPOSAL_EXECUTOR_RESULT_FAILURE";
164
- ProposalExecutorResult[ProposalExecutorResult["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
165
- })(ProposalExecutorResult || (exports.ProposalExecutorResult = ProposalExecutorResult = {}));
166
- exports.ProposalExecutorResultSDKType = ProposalExecutorResult;
167
- exports.ProposalExecutorResultAmino = ProposalExecutorResult;
168
- function proposalExecutorResultFromJSON(object) {
169
- switch (object) {
170
- case 0:
171
- case "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED":
172
- return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED;
173
- case 1:
174
- case "PROPOSAL_EXECUTOR_RESULT_NOT_RUN":
175
- return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN;
176
- case 2:
177
- case "PROPOSAL_EXECUTOR_RESULT_SUCCESS":
178
- return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS;
179
- case 3:
180
- case "PROPOSAL_EXECUTOR_RESULT_FAILURE":
181
- return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE;
182
- case -1:
183
- case "UNRECOGNIZED":
184
- default:
185
- return ProposalExecutorResult.UNRECOGNIZED;
186
- }
187
- }
188
- function proposalExecutorResultToJSON(object) {
189
- switch (object) {
190
- case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED:
191
- return "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED";
192
- case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN:
193
- return "PROPOSAL_EXECUTOR_RESULT_NOT_RUN";
194
- case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS:
195
- return "PROPOSAL_EXECUTOR_RESULT_SUCCESS";
196
- case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE:
197
- return "PROPOSAL_EXECUTOR_RESULT_FAILURE";
198
- case ProposalExecutorResult.UNRECOGNIZED:
199
- default:
200
- return "UNRECOGNIZED";
201
- }
202
- }
203
- function createBaseMember() {
204
- return {
205
- address: "",
206
- weight: "",
207
- metadata: "",
208
- addedAt: new Date()
209
- };
210
- }
211
- /**
212
- * Member represents a group member with an account address,
213
- * non-zero weight, metadata and added_at timestamp.
214
- * @name Member
215
- * @package cosmos.group.v1
216
- * @see proto type: cosmos.group.v1.Member
217
- */
218
- exports.Member = {
219
- typeUrl: "/cosmos.group.v1.Member",
220
- aminoType: "cosmos-sdk/Member",
221
- is(o) {
222
- return o && (o.$typeUrl === exports.Member.typeUrl || typeof o.address === "string" && typeof o.weight === "string" && typeof o.metadata === "string" && timestamp_1.Timestamp.is(o.addedAt));
223
- },
224
- isSDK(o) {
225
- return o && (o.$typeUrl === exports.Member.typeUrl || typeof o.address === "string" && typeof o.weight === "string" && typeof o.metadata === "string" && timestamp_1.Timestamp.isSDK(o.added_at));
226
- },
227
- isAmino(o) {
228
- return o && (o.$typeUrl === exports.Member.typeUrl || typeof o.address === "string" && typeof o.weight === "string" && typeof o.metadata === "string" && timestamp_1.Timestamp.isAmino(o.added_at));
229
- },
230
- encode(message, writer = binary_1.BinaryWriter.create()) {
231
- if (message.address !== "") {
232
- writer.uint32(10).string(message.address);
233
- }
234
- if (message.weight !== "") {
235
- writer.uint32(18).string(message.weight);
236
- }
237
- if (message.metadata !== "") {
238
- writer.uint32(26).string(message.metadata);
239
- }
240
- if (message.addedAt !== undefined) {
241
- timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.addedAt), writer.uint32(34).fork()).ldelim();
242
- }
243
- return writer;
244
- },
245
- decode(input, length) {
246
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
247
- let end = length === undefined ? reader.len : reader.pos + length;
248
- const message = createBaseMember();
249
- while (reader.pos < end) {
250
- const tag = reader.uint32();
251
- switch (tag >>> 3) {
252
- case 1:
253
- message.address = reader.string();
254
- break;
255
- case 2:
256
- message.weight = reader.string();
257
- break;
258
- case 3:
259
- message.metadata = reader.string();
260
- break;
261
- case 4:
262
- message.addedAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32()));
263
- break;
264
- default:
265
- reader.skipType(tag & 7);
266
- break;
267
- }
268
- }
269
- return message;
270
- },
271
- fromPartial(object) {
272
- const message = createBaseMember();
273
- message.address = object.address ?? "";
274
- message.weight = object.weight ?? "";
275
- message.metadata = object.metadata ?? "";
276
- message.addedAt = object.addedAt ?? undefined;
277
- return message;
278
- },
279
- fromAmino(object) {
280
- const message = createBaseMember();
281
- if (object.address !== undefined && object.address !== null) {
282
- message.address = object.address;
283
- }
284
- if (object.weight !== undefined && object.weight !== null) {
285
- message.weight = object.weight;
286
- }
287
- if (object.metadata !== undefined && object.metadata !== null) {
288
- message.metadata = object.metadata;
289
- }
290
- if (object.added_at !== undefined && object.added_at !== null) {
291
- message.addedAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.added_at));
292
- }
293
- return message;
294
- },
295
- toAmino(message) {
296
- const obj = {};
297
- obj.address = message.address === "" ? undefined : message.address;
298
- obj.weight = message.weight === "" ? undefined : message.weight;
299
- obj.metadata = message.metadata === "" ? undefined : message.metadata;
300
- obj.added_at = message.addedAt ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.addedAt)) : new Date();
301
- return obj;
302
- },
303
- fromAminoMsg(object) {
304
- return exports.Member.fromAmino(object.value);
305
- },
306
- toAminoMsg(message) {
307
- return {
308
- type: "cosmos-sdk/Member",
309
- value: exports.Member.toAmino(message)
310
- };
311
- },
312
- fromProtoMsg(message) {
313
- return exports.Member.decode(message.value);
314
- },
315
- toProto(message) {
316
- return exports.Member.encode(message).finish();
317
- },
318
- toProtoMsg(message) {
319
- return {
320
- typeUrl: "/cosmos.group.v1.Member",
321
- value: exports.Member.encode(message).finish()
322
- };
323
- },
324
- registerTypeUrl() { }
325
- };
326
- function createBaseMemberRequest() {
327
- return {
328
- address: "",
329
- weight: "",
330
- metadata: ""
331
- };
332
- }
333
- /**
334
- * MemberRequest represents a group member to be used in Msg server requests.
335
- * Contrary to `Member`, it doesn't have any `added_at` field
336
- * since this field cannot be set as part of requests.
337
- * @name MemberRequest
338
- * @package cosmos.group.v1
339
- * @see proto type: cosmos.group.v1.MemberRequest
340
- */
341
- exports.MemberRequest = {
342
- typeUrl: "/cosmos.group.v1.MemberRequest",
343
- aminoType: "cosmos-sdk/MemberRequest",
344
- is(o) {
345
- return o && (o.$typeUrl === exports.MemberRequest.typeUrl || typeof o.address === "string" && typeof o.weight === "string" && typeof o.metadata === "string");
346
- },
347
- isSDK(o) {
348
- return o && (o.$typeUrl === exports.MemberRequest.typeUrl || typeof o.address === "string" && typeof o.weight === "string" && typeof o.metadata === "string");
349
- },
350
- isAmino(o) {
351
- return o && (o.$typeUrl === exports.MemberRequest.typeUrl || typeof o.address === "string" && typeof o.weight === "string" && typeof o.metadata === "string");
352
- },
353
- encode(message, writer = binary_1.BinaryWriter.create()) {
354
- if (message.address !== "") {
355
- writer.uint32(10).string(message.address);
356
- }
357
- if (message.weight !== "") {
358
- writer.uint32(18).string(message.weight);
359
- }
360
- if (message.metadata !== "") {
361
- writer.uint32(26).string(message.metadata);
362
- }
363
- return writer;
364
- },
365
- decode(input, length) {
366
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
367
- let end = length === undefined ? reader.len : reader.pos + length;
368
- const message = createBaseMemberRequest();
369
- while (reader.pos < end) {
370
- const tag = reader.uint32();
371
- switch (tag >>> 3) {
372
- case 1:
373
- message.address = reader.string();
374
- break;
375
- case 2:
376
- message.weight = reader.string();
377
- break;
378
- case 3:
379
- message.metadata = reader.string();
380
- break;
381
- default:
382
- reader.skipType(tag & 7);
383
- break;
384
- }
385
- }
386
- return message;
387
- },
388
- fromPartial(object) {
389
- const message = createBaseMemberRequest();
390
- message.address = object.address ?? "";
391
- message.weight = object.weight ?? "";
392
- message.metadata = object.metadata ?? "";
393
- return message;
394
- },
395
- fromAmino(object) {
396
- const message = createBaseMemberRequest();
397
- if (object.address !== undefined && object.address !== null) {
398
- message.address = object.address;
399
- }
400
- if (object.weight !== undefined && object.weight !== null) {
401
- message.weight = object.weight;
402
- }
403
- if (object.metadata !== undefined && object.metadata !== null) {
404
- message.metadata = object.metadata;
405
- }
406
- return message;
407
- },
408
- toAmino(message) {
409
- const obj = {};
410
- obj.address = message.address === "" ? undefined : message.address;
411
- obj.weight = message.weight === "" ? undefined : message.weight;
412
- obj.metadata = message.metadata === "" ? undefined : message.metadata;
413
- return obj;
414
- },
415
- fromAminoMsg(object) {
416
- return exports.MemberRequest.fromAmino(object.value);
417
- },
418
- toAminoMsg(message) {
419
- return {
420
- type: "cosmos-sdk/MemberRequest",
421
- value: exports.MemberRequest.toAmino(message)
422
- };
423
- },
424
- fromProtoMsg(message) {
425
- return exports.MemberRequest.decode(message.value);
426
- },
427
- toProto(message) {
428
- return exports.MemberRequest.encode(message).finish();
429
- },
430
- toProtoMsg(message) {
431
- return {
432
- typeUrl: "/cosmos.group.v1.MemberRequest",
433
- value: exports.MemberRequest.encode(message).finish()
434
- };
435
- },
436
- registerTypeUrl() { }
437
- };
438
- function createBaseThresholdDecisionPolicy() {
439
- return {
440
- $typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy",
441
- threshold: "",
442
- windows: undefined
443
- };
444
- }
445
- /**
446
- * ThresholdDecisionPolicy is a decision policy where a proposal passes when it
447
- * satisfies the two following conditions:
448
- * 1. The sum of all `YES` voter's weights is greater or equal than the defined
449
- * `threshold`.
450
- * 2. The voting and execution periods of the proposal respect the parameters
451
- * given by `windows`.
452
- * @name ThresholdDecisionPolicy
453
- * @package cosmos.group.v1
454
- * @see proto type: cosmos.group.v1.ThresholdDecisionPolicy
455
- */
456
- exports.ThresholdDecisionPolicy = {
457
- typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy",
458
- aminoType: "cosmos-sdk/ThresholdDecisionPolicy",
459
- is(o) {
460
- return o && (o.$typeUrl === exports.ThresholdDecisionPolicy.typeUrl || typeof o.threshold === "string");
461
- },
462
- isSDK(o) {
463
- return o && (o.$typeUrl === exports.ThresholdDecisionPolicy.typeUrl || typeof o.threshold === "string");
464
- },
465
- isAmino(o) {
466
- return o && (o.$typeUrl === exports.ThresholdDecisionPolicy.typeUrl || typeof o.threshold === "string");
467
- },
468
- encode(message, writer = binary_1.BinaryWriter.create()) {
469
- if (message.threshold !== "") {
470
- writer.uint32(10).string(message.threshold);
471
- }
472
- if (message.windows !== undefined) {
473
- exports.DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim();
474
- }
475
- return writer;
476
- },
477
- decode(input, length) {
478
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
479
- let end = length === undefined ? reader.len : reader.pos + length;
480
- const message = createBaseThresholdDecisionPolicy();
481
- while (reader.pos < end) {
482
- const tag = reader.uint32();
483
- switch (tag >>> 3) {
484
- case 1:
485
- message.threshold = reader.string();
486
- break;
487
- case 2:
488
- message.windows = exports.DecisionPolicyWindows.decode(reader, reader.uint32());
489
- break;
490
- default:
491
- reader.skipType(tag & 7);
492
- break;
493
- }
494
- }
495
- return message;
496
- },
497
- fromPartial(object) {
498
- const message = createBaseThresholdDecisionPolicy();
499
- message.threshold = object.threshold ?? "";
500
- message.windows = object.windows !== undefined && object.windows !== null ? exports.DecisionPolicyWindows.fromPartial(object.windows) : undefined;
501
- return message;
502
- },
503
- fromAmino(object) {
504
- const message = createBaseThresholdDecisionPolicy();
505
- if (object.threshold !== undefined && object.threshold !== null) {
506
- message.threshold = object.threshold;
507
- }
508
- if (object.windows !== undefined && object.windows !== null) {
509
- message.windows = exports.DecisionPolicyWindows.fromAmino(object.windows);
510
- }
511
- return message;
512
- },
513
- toAmino(message) {
514
- const obj = {};
515
- obj.threshold = message.threshold === "" ? undefined : message.threshold;
516
- obj.windows = message.windows ? exports.DecisionPolicyWindows.toAmino(message.windows) : undefined;
517
- return obj;
518
- },
519
- fromAminoMsg(object) {
520
- return exports.ThresholdDecisionPolicy.fromAmino(object.value);
521
- },
522
- toAminoMsg(message) {
523
- return {
524
- type: "cosmos-sdk/ThresholdDecisionPolicy",
525
- value: exports.ThresholdDecisionPolicy.toAmino(message)
526
- };
527
- },
528
- fromProtoMsg(message) {
529
- return exports.ThresholdDecisionPolicy.decode(message.value);
530
- },
531
- toProto(message) {
532
- return exports.ThresholdDecisionPolicy.encode(message).finish();
533
- },
534
- toProtoMsg(message) {
535
- return {
536
- typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy",
537
- value: exports.ThresholdDecisionPolicy.encode(message).finish()
538
- };
539
- },
540
- registerTypeUrl() {
541
- if (!registry_1.GlobalDecoderRegistry.registerExistingTypeUrl(exports.ThresholdDecisionPolicy.typeUrl)) {
542
- return;
543
- }
544
- registry_1.GlobalDecoderRegistry.register(exports.ThresholdDecisionPolicy.typeUrl, exports.ThresholdDecisionPolicy);
545
- registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.ThresholdDecisionPolicy.aminoType, exports.ThresholdDecisionPolicy.typeUrl);
546
- exports.DecisionPolicyWindows.registerTypeUrl();
547
- }
548
- };
549
- function createBasePercentageDecisionPolicy() {
550
- return {
551
- $typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy",
552
- percentage: "",
553
- windows: undefined
554
- };
555
- }
556
- /**
557
- * PercentageDecisionPolicy is a decision policy where a proposal passes when
558
- * it satisfies the two following conditions:
559
- * 1. The percentage of all `YES` voters' weights out of the total group weight
560
- * is greater or equal than the given `percentage`.
561
- * 2. The voting and execution periods of the proposal respect the parameters
562
- * given by `windows`.
563
- * @name PercentageDecisionPolicy
564
- * @package cosmos.group.v1
565
- * @see proto type: cosmos.group.v1.PercentageDecisionPolicy
566
- */
567
- exports.PercentageDecisionPolicy = {
568
- typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy",
569
- aminoType: "cosmos-sdk/PercentageDecisionPolicy",
570
- is(o) {
571
- return o && (o.$typeUrl === exports.PercentageDecisionPolicy.typeUrl || typeof o.percentage === "string");
572
- },
573
- isSDK(o) {
574
- return o && (o.$typeUrl === exports.PercentageDecisionPolicy.typeUrl || typeof o.percentage === "string");
575
- },
576
- isAmino(o) {
577
- return o && (o.$typeUrl === exports.PercentageDecisionPolicy.typeUrl || typeof o.percentage === "string");
578
- },
579
- encode(message, writer = binary_1.BinaryWriter.create()) {
580
- if (message.percentage !== "") {
581
- writer.uint32(10).string(message.percentage);
582
- }
583
- if (message.windows !== undefined) {
584
- exports.DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim();
585
- }
586
- return writer;
587
- },
588
- decode(input, length) {
589
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
590
- let end = length === undefined ? reader.len : reader.pos + length;
591
- const message = createBasePercentageDecisionPolicy();
592
- while (reader.pos < end) {
593
- const tag = reader.uint32();
594
- switch (tag >>> 3) {
595
- case 1:
596
- message.percentage = reader.string();
597
- break;
598
- case 2:
599
- message.windows = exports.DecisionPolicyWindows.decode(reader, reader.uint32());
600
- break;
601
- default:
602
- reader.skipType(tag & 7);
603
- break;
604
- }
605
- }
606
- return message;
607
- },
608
- fromPartial(object) {
609
- const message = createBasePercentageDecisionPolicy();
610
- message.percentage = object.percentage ?? "";
611
- message.windows = object.windows !== undefined && object.windows !== null ? exports.DecisionPolicyWindows.fromPartial(object.windows) : undefined;
612
- return message;
613
- },
614
- fromAmino(object) {
615
- const message = createBasePercentageDecisionPolicy();
616
- if (object.percentage !== undefined && object.percentage !== null) {
617
- message.percentage = object.percentage;
618
- }
619
- if (object.windows !== undefined && object.windows !== null) {
620
- message.windows = exports.DecisionPolicyWindows.fromAmino(object.windows);
621
- }
622
- return message;
623
- },
624
- toAmino(message) {
625
- const obj = {};
626
- obj.percentage = message.percentage === "" ? undefined : message.percentage;
627
- obj.windows = message.windows ? exports.DecisionPolicyWindows.toAmino(message.windows) : undefined;
628
- return obj;
629
- },
630
- fromAminoMsg(object) {
631
- return exports.PercentageDecisionPolicy.fromAmino(object.value);
632
- },
633
- toAminoMsg(message) {
634
- return {
635
- type: "cosmos-sdk/PercentageDecisionPolicy",
636
- value: exports.PercentageDecisionPolicy.toAmino(message)
637
- };
638
- },
639
- fromProtoMsg(message) {
640
- return exports.PercentageDecisionPolicy.decode(message.value);
641
- },
642
- toProto(message) {
643
- return exports.PercentageDecisionPolicy.encode(message).finish();
644
- },
645
- toProtoMsg(message) {
646
- return {
647
- typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy",
648
- value: exports.PercentageDecisionPolicy.encode(message).finish()
649
- };
650
- },
651
- registerTypeUrl() {
652
- if (!registry_1.GlobalDecoderRegistry.registerExistingTypeUrl(exports.PercentageDecisionPolicy.typeUrl)) {
653
- return;
654
- }
655
- registry_1.GlobalDecoderRegistry.register(exports.PercentageDecisionPolicy.typeUrl, exports.PercentageDecisionPolicy);
656
- registry_1.GlobalDecoderRegistry.registerAminoProtoMapping(exports.PercentageDecisionPolicy.aminoType, exports.PercentageDecisionPolicy.typeUrl);
657
- exports.DecisionPolicyWindows.registerTypeUrl();
658
- }
659
- };
660
- function createBaseDecisionPolicyWindows() {
661
- return {
662
- votingPeriod: duration_1.Duration.fromPartial({}),
663
- minExecutionPeriod: duration_1.Duration.fromPartial({})
664
- };
665
- }
666
- /**
667
- * DecisionPolicyWindows defines the different windows for voting and execution.
668
- * @name DecisionPolicyWindows
669
- * @package cosmos.group.v1
670
- * @see proto type: cosmos.group.v1.DecisionPolicyWindows
671
- */
672
- exports.DecisionPolicyWindows = {
673
- typeUrl: "/cosmos.group.v1.DecisionPolicyWindows",
674
- aminoType: "cosmos-sdk/DecisionPolicyWindows",
675
- is(o) {
676
- return o && (o.$typeUrl === exports.DecisionPolicyWindows.typeUrl || duration_1.Duration.is(o.votingPeriod) && duration_1.Duration.is(o.minExecutionPeriod));
677
- },
678
- isSDK(o) {
679
- return o && (o.$typeUrl === exports.DecisionPolicyWindows.typeUrl || duration_1.Duration.isSDK(o.voting_period) && duration_1.Duration.isSDK(o.min_execution_period));
680
- },
681
- isAmino(o) {
682
- return o && (o.$typeUrl === exports.DecisionPolicyWindows.typeUrl || duration_1.Duration.isAmino(o.voting_period) && duration_1.Duration.isAmino(o.min_execution_period));
683
- },
684
- encode(message, writer = binary_1.BinaryWriter.create()) {
685
- if (message.votingPeriod !== undefined) {
686
- duration_1.Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim();
687
- }
688
- if (message.minExecutionPeriod !== undefined) {
689
- duration_1.Duration.encode(message.minExecutionPeriod, writer.uint32(18).fork()).ldelim();
690
- }
691
- return writer;
692
- },
693
- decode(input, length) {
694
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
695
- let end = length === undefined ? reader.len : reader.pos + length;
696
- const message = createBaseDecisionPolicyWindows();
697
- while (reader.pos < end) {
698
- const tag = reader.uint32();
699
- switch (tag >>> 3) {
700
- case 1:
701
- message.votingPeriod = duration_1.Duration.decode(reader, reader.uint32());
702
- break;
703
- case 2:
704
- message.minExecutionPeriod = duration_1.Duration.decode(reader, reader.uint32());
705
- break;
706
- default:
707
- reader.skipType(tag & 7);
708
- break;
709
- }
710
- }
711
- return message;
712
- },
713
- fromPartial(object) {
714
- const message = createBaseDecisionPolicyWindows();
715
- message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? duration_1.Duration.fromPartial(object.votingPeriod) : undefined;
716
- message.minExecutionPeriod = object.minExecutionPeriod !== undefined && object.minExecutionPeriod !== null ? duration_1.Duration.fromPartial(object.minExecutionPeriod) : undefined;
717
- return message;
718
- },
719
- fromAmino(object) {
720
- const message = createBaseDecisionPolicyWindows();
721
- if (object.voting_period !== undefined && object.voting_period !== null) {
722
- message.votingPeriod = duration_1.Duration.fromAmino(object.voting_period);
723
- }
724
- if (object.min_execution_period !== undefined && object.min_execution_period !== null) {
725
- message.minExecutionPeriod = duration_1.Duration.fromAmino(object.min_execution_period);
726
- }
727
- return message;
728
- },
729
- toAmino(message) {
730
- const obj = {};
731
- obj.voting_period = message.votingPeriod ? duration_1.Duration.toAmino(message.votingPeriod) : duration_1.Duration.toAmino(duration_1.Duration.fromPartial({}));
732
- obj.min_execution_period = message.minExecutionPeriod ? duration_1.Duration.toAmino(message.minExecutionPeriod) : duration_1.Duration.toAmino(duration_1.Duration.fromPartial({}));
733
- return obj;
734
- },
735
- fromAminoMsg(object) {
736
- return exports.DecisionPolicyWindows.fromAmino(object.value);
737
- },
738
- toAminoMsg(message) {
739
- return {
740
- type: "cosmos-sdk/DecisionPolicyWindows",
741
- value: exports.DecisionPolicyWindows.toAmino(message)
742
- };
743
- },
744
- fromProtoMsg(message) {
745
- return exports.DecisionPolicyWindows.decode(message.value);
746
- },
747
- toProto(message) {
748
- return exports.DecisionPolicyWindows.encode(message).finish();
749
- },
750
- toProtoMsg(message) {
751
- return {
752
- typeUrl: "/cosmos.group.v1.DecisionPolicyWindows",
753
- value: exports.DecisionPolicyWindows.encode(message).finish()
754
- };
755
- },
756
- registerTypeUrl() { }
757
- };
758
- function createBaseGroupInfo() {
759
- return {
760
- id: BigInt(0),
761
- admin: "",
762
- metadata: "",
763
- version: BigInt(0),
764
- totalWeight: "",
765
- createdAt: new Date()
766
- };
767
- }
768
- /**
769
- * GroupInfo represents the high-level on-chain information for a group.
770
- * @name GroupInfo
771
- * @package cosmos.group.v1
772
- * @see proto type: cosmos.group.v1.GroupInfo
773
- */
774
- exports.GroupInfo = {
775
- typeUrl: "/cosmos.group.v1.GroupInfo",
776
- aminoType: "cosmos-sdk/GroupInfo",
777
- is(o) {
778
- return o && (o.$typeUrl === exports.GroupInfo.typeUrl || typeof o.id === "bigint" && typeof o.admin === "string" && typeof o.metadata === "string" && typeof o.version === "bigint" && typeof o.totalWeight === "string" && timestamp_1.Timestamp.is(o.createdAt));
779
- },
780
- isSDK(o) {
781
- return o && (o.$typeUrl === exports.GroupInfo.typeUrl || typeof o.id === "bigint" && typeof o.admin === "string" && typeof o.metadata === "string" && typeof o.version === "bigint" && typeof o.total_weight === "string" && timestamp_1.Timestamp.isSDK(o.created_at));
782
- },
783
- isAmino(o) {
784
- return o && (o.$typeUrl === exports.GroupInfo.typeUrl || typeof o.id === "bigint" && typeof o.admin === "string" && typeof o.metadata === "string" && typeof o.version === "bigint" && typeof o.total_weight === "string" && timestamp_1.Timestamp.isAmino(o.created_at));
785
- },
786
- encode(message, writer = binary_1.BinaryWriter.create()) {
787
- if (message.id !== BigInt(0)) {
788
- writer.uint32(8).uint64(message.id);
789
- }
790
- if (message.admin !== "") {
791
- writer.uint32(18).string(message.admin);
792
- }
793
- if (message.metadata !== "") {
794
- writer.uint32(26).string(message.metadata);
795
- }
796
- if (message.version !== BigInt(0)) {
797
- writer.uint32(32).uint64(message.version);
798
- }
799
- if (message.totalWeight !== "") {
800
- writer.uint32(42).string(message.totalWeight);
801
- }
802
- if (message.createdAt !== undefined) {
803
- timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.createdAt), writer.uint32(50).fork()).ldelim();
804
- }
805
- return writer;
806
- },
807
- decode(input, length) {
808
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
809
- let end = length === undefined ? reader.len : reader.pos + length;
810
- const message = createBaseGroupInfo();
811
- while (reader.pos < end) {
812
- const tag = reader.uint32();
813
- switch (tag >>> 3) {
814
- case 1:
815
- message.id = reader.uint64();
816
- break;
817
- case 2:
818
- message.admin = reader.string();
819
- break;
820
- case 3:
821
- message.metadata = reader.string();
822
- break;
823
- case 4:
824
- message.version = reader.uint64();
825
- break;
826
- case 5:
827
- message.totalWeight = reader.string();
828
- break;
829
- case 6:
830
- message.createdAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32()));
831
- break;
832
- default:
833
- reader.skipType(tag & 7);
834
- break;
835
- }
836
- }
837
- return message;
838
- },
839
- fromPartial(object) {
840
- const message = createBaseGroupInfo();
841
- message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
842
- message.admin = object.admin ?? "";
843
- message.metadata = object.metadata ?? "";
844
- message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0);
845
- message.totalWeight = object.totalWeight ?? "";
846
- message.createdAt = object.createdAt ?? undefined;
847
- return message;
848
- },
849
- fromAmino(object) {
850
- const message = createBaseGroupInfo();
851
- if (object.id !== undefined && object.id !== null) {
852
- message.id = BigInt(object.id);
853
- }
854
- if (object.admin !== undefined && object.admin !== null) {
855
- message.admin = object.admin;
856
- }
857
- if (object.metadata !== undefined && object.metadata !== null) {
858
- message.metadata = object.metadata;
859
- }
860
- if (object.version !== undefined && object.version !== null) {
861
- message.version = BigInt(object.version);
862
- }
863
- if (object.total_weight !== undefined && object.total_weight !== null) {
864
- message.totalWeight = object.total_weight;
865
- }
866
- if (object.created_at !== undefined && object.created_at !== null) {
867
- message.createdAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.created_at));
868
- }
869
- return message;
870
- },
871
- toAmino(message) {
872
- const obj = {};
873
- obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
874
- obj.admin = message.admin === "" ? undefined : message.admin;
875
- obj.metadata = message.metadata === "" ? undefined : message.metadata;
876
- obj.version = message.version !== BigInt(0) ? message.version?.toString() : undefined;
877
- obj.total_weight = message.totalWeight === "" ? undefined : message.totalWeight;
878
- obj.created_at = message.createdAt ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.createdAt)) : new Date();
879
- return obj;
880
- },
881
- fromAminoMsg(object) {
882
- return exports.GroupInfo.fromAmino(object.value);
883
- },
884
- toAminoMsg(message) {
885
- return {
886
- type: "cosmos-sdk/GroupInfo",
887
- value: exports.GroupInfo.toAmino(message)
888
- };
889
- },
890
- fromProtoMsg(message) {
891
- return exports.GroupInfo.decode(message.value);
892
- },
893
- toProto(message) {
894
- return exports.GroupInfo.encode(message).finish();
895
- },
896
- toProtoMsg(message) {
897
- return {
898
- typeUrl: "/cosmos.group.v1.GroupInfo",
899
- value: exports.GroupInfo.encode(message).finish()
900
- };
901
- },
902
- registerTypeUrl() { }
903
- };
904
- function createBaseGroupMember() {
905
- return {
906
- groupId: BigInt(0),
907
- member: undefined
908
- };
909
- }
910
- /**
911
- * GroupMember represents the relationship between a group and a member.
912
- * @name GroupMember
913
- * @package cosmos.group.v1
914
- * @see proto type: cosmos.group.v1.GroupMember
915
- */
916
- exports.GroupMember = {
917
- typeUrl: "/cosmos.group.v1.GroupMember",
918
- aminoType: "cosmos-sdk/GroupMember",
919
- is(o) {
920
- return o && (o.$typeUrl === exports.GroupMember.typeUrl || typeof o.groupId === "bigint");
921
- },
922
- isSDK(o) {
923
- return o && (o.$typeUrl === exports.GroupMember.typeUrl || typeof o.group_id === "bigint");
924
- },
925
- isAmino(o) {
926
- return o && (o.$typeUrl === exports.GroupMember.typeUrl || typeof o.group_id === "bigint");
927
- },
928
- encode(message, writer = binary_1.BinaryWriter.create()) {
929
- if (message.groupId !== BigInt(0)) {
930
- writer.uint32(8).uint64(message.groupId);
931
- }
932
- if (message.member !== undefined) {
933
- exports.Member.encode(message.member, writer.uint32(18).fork()).ldelim();
934
- }
935
- return writer;
936
- },
937
- decode(input, length) {
938
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
939
- let end = length === undefined ? reader.len : reader.pos + length;
940
- const message = createBaseGroupMember();
941
- while (reader.pos < end) {
942
- const tag = reader.uint32();
943
- switch (tag >>> 3) {
944
- case 1:
945
- message.groupId = reader.uint64();
946
- break;
947
- case 2:
948
- message.member = exports.Member.decode(reader, reader.uint32());
949
- break;
950
- default:
951
- reader.skipType(tag & 7);
952
- break;
953
- }
954
- }
955
- return message;
956
- },
957
- fromPartial(object) {
958
- const message = createBaseGroupMember();
959
- message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
960
- message.member = object.member !== undefined && object.member !== null ? exports.Member.fromPartial(object.member) : undefined;
961
- return message;
962
- },
963
- fromAmino(object) {
964
- const message = createBaseGroupMember();
965
- if (object.group_id !== undefined && object.group_id !== null) {
966
- message.groupId = BigInt(object.group_id);
967
- }
968
- if (object.member !== undefined && object.member !== null) {
969
- message.member = exports.Member.fromAmino(object.member);
970
- }
971
- return message;
972
- },
973
- toAmino(message) {
974
- const obj = {};
975
- obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
976
- obj.member = message.member ? exports.Member.toAmino(message.member) : undefined;
977
- return obj;
978
- },
979
- fromAminoMsg(object) {
980
- return exports.GroupMember.fromAmino(object.value);
981
- },
982
- toAminoMsg(message) {
983
- return {
984
- type: "cosmos-sdk/GroupMember",
985
- value: exports.GroupMember.toAmino(message)
986
- };
987
- },
988
- fromProtoMsg(message) {
989
- return exports.GroupMember.decode(message.value);
990
- },
991
- toProto(message) {
992
- return exports.GroupMember.encode(message).finish();
993
- },
994
- toProtoMsg(message) {
995
- return {
996
- typeUrl: "/cosmos.group.v1.GroupMember",
997
- value: exports.GroupMember.encode(message).finish()
998
- };
999
- },
1000
- registerTypeUrl() {
1001
- if (!registry_1.GlobalDecoderRegistry.registerExistingTypeUrl(exports.GroupMember.typeUrl)) {
1002
- return;
1003
- }
1004
- exports.Member.registerTypeUrl();
1005
- }
1006
- };
1007
- function createBaseGroupPolicyInfo() {
1008
- return {
1009
- address: "",
1010
- groupId: BigInt(0),
1011
- admin: "",
1012
- metadata: "",
1013
- version: BigInt(0),
1014
- decisionPolicy: undefined,
1015
- createdAt: new Date()
1016
- };
1017
- }
1018
- /**
1019
- * GroupPolicyInfo represents the high-level on-chain information for a group policy.
1020
- * @name GroupPolicyInfo
1021
- * @package cosmos.group.v1
1022
- * @see proto type: cosmos.group.v1.GroupPolicyInfo
1023
- */
1024
- exports.GroupPolicyInfo = {
1025
- typeUrl: "/cosmos.group.v1.GroupPolicyInfo",
1026
- aminoType: "cosmos-sdk/GroupPolicyInfo",
1027
- is(o) {
1028
- return o && (o.$typeUrl === exports.GroupPolicyInfo.typeUrl || typeof o.address === "string" && typeof o.groupId === "bigint" && typeof o.admin === "string" && typeof o.metadata === "string" && typeof o.version === "bigint" && timestamp_1.Timestamp.is(o.createdAt));
1029
- },
1030
- isSDK(o) {
1031
- return o && (o.$typeUrl === exports.GroupPolicyInfo.typeUrl || typeof o.address === "string" && typeof o.group_id === "bigint" && typeof o.admin === "string" && typeof o.metadata === "string" && typeof o.version === "bigint" && timestamp_1.Timestamp.isSDK(o.created_at));
1032
- },
1033
- isAmino(o) {
1034
- return o && (o.$typeUrl === exports.GroupPolicyInfo.typeUrl || typeof o.address === "string" && typeof o.group_id === "bigint" && typeof o.admin === "string" && typeof o.metadata === "string" && typeof o.version === "bigint" && timestamp_1.Timestamp.isAmino(o.created_at));
1035
- },
1036
- encode(message, writer = binary_1.BinaryWriter.create()) {
1037
- if (message.address !== "") {
1038
- writer.uint32(10).string(message.address);
1039
- }
1040
- if (message.groupId !== BigInt(0)) {
1041
- writer.uint32(16).uint64(message.groupId);
1042
- }
1043
- if (message.admin !== "") {
1044
- writer.uint32(26).string(message.admin);
1045
- }
1046
- if (message.metadata !== "") {
1047
- writer.uint32(34).string(message.metadata);
1048
- }
1049
- if (message.version !== BigInt(0)) {
1050
- writer.uint32(40).uint64(message.version);
1051
- }
1052
- if (message.decisionPolicy !== undefined) {
1053
- any_1.Any.encode(registry_1.GlobalDecoderRegistry.wrapAny(message.decisionPolicy), writer.uint32(50).fork()).ldelim();
1054
- }
1055
- if (message.createdAt !== undefined) {
1056
- timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.createdAt), writer.uint32(58).fork()).ldelim();
1057
- }
1058
- return writer;
1059
- },
1060
- decode(input, length) {
1061
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
1062
- let end = length === undefined ? reader.len : reader.pos + length;
1063
- const message = createBaseGroupPolicyInfo();
1064
- while (reader.pos < end) {
1065
- const tag = reader.uint32();
1066
- switch (tag >>> 3) {
1067
- case 1:
1068
- message.address = reader.string();
1069
- break;
1070
- case 2:
1071
- message.groupId = reader.uint64();
1072
- break;
1073
- case 3:
1074
- message.admin = reader.string();
1075
- break;
1076
- case 4:
1077
- message.metadata = reader.string();
1078
- break;
1079
- case 5:
1080
- message.version = reader.uint64();
1081
- break;
1082
- case 6:
1083
- message.decisionPolicy = registry_1.GlobalDecoderRegistry.unwrapAny(reader);
1084
- break;
1085
- case 7:
1086
- message.createdAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32()));
1087
- break;
1088
- default:
1089
- reader.skipType(tag & 7);
1090
- break;
1091
- }
1092
- }
1093
- return message;
1094
- },
1095
- fromPartial(object) {
1096
- const message = createBaseGroupPolicyInfo();
1097
- message.address = object.address ?? "";
1098
- message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
1099
- message.admin = object.admin ?? "";
1100
- message.metadata = object.metadata ?? "";
1101
- message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0);
1102
- message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? registry_1.GlobalDecoderRegistry.fromPartial(object.decisionPolicy) : undefined;
1103
- message.createdAt = object.createdAt ?? undefined;
1104
- return message;
1105
- },
1106
- fromAmino(object) {
1107
- const message = createBaseGroupPolicyInfo();
1108
- if (object.address !== undefined && object.address !== null) {
1109
- message.address = object.address;
1110
- }
1111
- if (object.group_id !== undefined && object.group_id !== null) {
1112
- message.groupId = BigInt(object.group_id);
1113
- }
1114
- if (object.admin !== undefined && object.admin !== null) {
1115
- message.admin = object.admin;
1116
- }
1117
- if (object.metadata !== undefined && object.metadata !== null) {
1118
- message.metadata = object.metadata;
1119
- }
1120
- if (object.version !== undefined && object.version !== null) {
1121
- message.version = BigInt(object.version);
1122
- }
1123
- if (object.decision_policy !== undefined && object.decision_policy !== null) {
1124
- message.decisionPolicy = registry_1.GlobalDecoderRegistry.fromAminoMsg(object.decision_policy);
1125
- }
1126
- if (object.created_at !== undefined && object.created_at !== null) {
1127
- message.createdAt = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.created_at));
1128
- }
1129
- return message;
1130
- },
1131
- toAmino(message) {
1132
- const obj = {};
1133
- obj.address = message.address === "" ? undefined : message.address;
1134
- obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
1135
- obj.admin = message.admin === "" ? undefined : message.admin;
1136
- obj.metadata = message.metadata === "" ? undefined : message.metadata;
1137
- obj.version = message.version !== BigInt(0) ? message.version?.toString() : undefined;
1138
- obj.decision_policy = message.decisionPolicy ? registry_1.GlobalDecoderRegistry.toAminoMsg(message.decisionPolicy) : undefined;
1139
- obj.created_at = message.createdAt ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.createdAt)) : new Date();
1140
- return obj;
1141
- },
1142
- fromAminoMsg(object) {
1143
- return exports.GroupPolicyInfo.fromAmino(object.value);
1144
- },
1145
- toAminoMsg(message) {
1146
- return {
1147
- type: "cosmos-sdk/GroupPolicyInfo",
1148
- value: exports.GroupPolicyInfo.toAmino(message)
1149
- };
1150
- },
1151
- fromProtoMsg(message) {
1152
- return exports.GroupPolicyInfo.decode(message.value);
1153
- },
1154
- toProto(message) {
1155
- return exports.GroupPolicyInfo.encode(message).finish();
1156
- },
1157
- toProtoMsg(message) {
1158
- return {
1159
- typeUrl: "/cosmos.group.v1.GroupPolicyInfo",
1160
- value: exports.GroupPolicyInfo.encode(message).finish()
1161
- };
1162
- },
1163
- registerTypeUrl() {
1164
- if (!registry_1.GlobalDecoderRegistry.registerExistingTypeUrl(exports.GroupPolicyInfo.typeUrl)) {
1165
- return;
1166
- }
1167
- exports.ThresholdDecisionPolicy.registerTypeUrl();
1168
- exports.PercentageDecisionPolicy.registerTypeUrl();
1169
- }
1170
- };
1171
- function createBaseProposal() {
1172
- return {
1173
- id: BigInt(0),
1174
- groupPolicyAddress: "",
1175
- metadata: "",
1176
- proposers: [],
1177
- submitTime: new Date(),
1178
- groupVersion: BigInt(0),
1179
- groupPolicyVersion: BigInt(0),
1180
- status: 0,
1181
- finalTallyResult: exports.TallyResult.fromPartial({}),
1182
- votingPeriodEnd: new Date(),
1183
- executorResult: 0,
1184
- messages: [],
1185
- title: "",
1186
- summary: ""
1187
- };
1188
- }
1189
- /**
1190
- * Proposal defines a group proposal. Any member of a group can submit a proposal
1191
- * for a group policy to decide upon.
1192
- * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal
1193
- * passes as well as some optional metadata associated with the proposal.
1194
- * @name Proposal
1195
- * @package cosmos.group.v1
1196
- * @see proto type: cosmos.group.v1.Proposal
1197
- */
1198
- exports.Proposal = {
1199
- typeUrl: "/cosmos.group.v1.Proposal",
1200
- aminoType: "cosmos-sdk/Proposal",
1201
- is(o) {
1202
- return o && (o.$typeUrl === exports.Proposal.typeUrl || typeof o.id === "bigint" && typeof o.groupPolicyAddress === "string" && typeof o.metadata === "string" && Array.isArray(o.proposers) && (!o.proposers.length || typeof o.proposers[0] === "string") && timestamp_1.Timestamp.is(o.submitTime) && typeof o.groupVersion === "bigint" && typeof o.groupPolicyVersion === "bigint" && (0, helpers_1.isSet)(o.status) && exports.TallyResult.is(o.finalTallyResult) && timestamp_1.Timestamp.is(o.votingPeriodEnd) && (0, helpers_1.isSet)(o.executorResult) && Array.isArray(o.messages) && (!o.messages.length || any_1.Any.is(o.messages[0])) && typeof o.title === "string" && typeof o.summary === "string");
1203
- },
1204
- isSDK(o) {
1205
- return o && (o.$typeUrl === exports.Proposal.typeUrl || typeof o.id === "bigint" && typeof o.group_policy_address === "string" && typeof o.metadata === "string" && Array.isArray(o.proposers) && (!o.proposers.length || typeof o.proposers[0] === "string") && timestamp_1.Timestamp.isSDK(o.submit_time) && typeof o.group_version === "bigint" && typeof o.group_policy_version === "bigint" && (0, helpers_1.isSet)(o.status) && exports.TallyResult.isSDK(o.final_tally_result) && timestamp_1.Timestamp.isSDK(o.voting_period_end) && (0, helpers_1.isSet)(o.executor_result) && Array.isArray(o.messages) && (!o.messages.length || any_1.Any.isSDK(o.messages[0])) && typeof o.title === "string" && typeof o.summary === "string");
1206
- },
1207
- isAmino(o) {
1208
- return o && (o.$typeUrl === exports.Proposal.typeUrl || typeof o.id === "bigint" && typeof o.group_policy_address === "string" && typeof o.metadata === "string" && Array.isArray(o.proposers) && (!o.proposers.length || typeof o.proposers[0] === "string") && timestamp_1.Timestamp.isAmino(o.submit_time) && typeof o.group_version === "bigint" && typeof o.group_policy_version === "bigint" && (0, helpers_1.isSet)(o.status) && exports.TallyResult.isAmino(o.final_tally_result) && timestamp_1.Timestamp.isAmino(o.voting_period_end) && (0, helpers_1.isSet)(o.executor_result) && Array.isArray(o.messages) && (!o.messages.length || any_1.Any.isAmino(o.messages[0])) && typeof o.title === "string" && typeof o.summary === "string");
1209
- },
1210
- encode(message, writer = binary_1.BinaryWriter.create()) {
1211
- if (message.id !== BigInt(0)) {
1212
- writer.uint32(8).uint64(message.id);
1213
- }
1214
- if (message.groupPolicyAddress !== "") {
1215
- writer.uint32(18).string(message.groupPolicyAddress);
1216
- }
1217
- if (message.metadata !== "") {
1218
- writer.uint32(26).string(message.metadata);
1219
- }
1220
- for (const v of message.proposers) {
1221
- writer.uint32(34).string(v);
1222
- }
1223
- if (message.submitTime !== undefined) {
1224
- timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.submitTime), writer.uint32(42).fork()).ldelim();
1225
- }
1226
- if (message.groupVersion !== BigInt(0)) {
1227
- writer.uint32(48).uint64(message.groupVersion);
1228
- }
1229
- if (message.groupPolicyVersion !== BigInt(0)) {
1230
- writer.uint32(56).uint64(message.groupPolicyVersion);
1231
- }
1232
- if (message.status !== 0) {
1233
- writer.uint32(64).int32(message.status);
1234
- }
1235
- if (message.finalTallyResult !== undefined) {
1236
- exports.TallyResult.encode(message.finalTallyResult, writer.uint32(74).fork()).ldelim();
1237
- }
1238
- if (message.votingPeriodEnd !== undefined) {
1239
- timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.votingPeriodEnd), writer.uint32(82).fork()).ldelim();
1240
- }
1241
- if (message.executorResult !== 0) {
1242
- writer.uint32(88).int32(message.executorResult);
1243
- }
1244
- for (const v of message.messages) {
1245
- any_1.Any.encode(v, writer.uint32(98).fork()).ldelim();
1246
- }
1247
- if (message.title !== "") {
1248
- writer.uint32(106).string(message.title);
1249
- }
1250
- if (message.summary !== "") {
1251
- writer.uint32(114).string(message.summary);
1252
- }
1253
- return writer;
1254
- },
1255
- decode(input, length) {
1256
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
1257
- let end = length === undefined ? reader.len : reader.pos + length;
1258
- const message = createBaseProposal();
1259
- while (reader.pos < end) {
1260
- const tag = reader.uint32();
1261
- switch (tag >>> 3) {
1262
- case 1:
1263
- message.id = reader.uint64();
1264
- break;
1265
- case 2:
1266
- message.groupPolicyAddress = reader.string();
1267
- break;
1268
- case 3:
1269
- message.metadata = reader.string();
1270
- break;
1271
- case 4:
1272
- message.proposers.push(reader.string());
1273
- break;
1274
- case 5:
1275
- message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32()));
1276
- break;
1277
- case 6:
1278
- message.groupVersion = reader.uint64();
1279
- break;
1280
- case 7:
1281
- message.groupPolicyVersion = reader.uint64();
1282
- break;
1283
- case 8:
1284
- message.status = reader.int32();
1285
- break;
1286
- case 9:
1287
- message.finalTallyResult = exports.TallyResult.decode(reader, reader.uint32());
1288
- break;
1289
- case 10:
1290
- message.votingPeriodEnd = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32()));
1291
- break;
1292
- case 11:
1293
- message.executorResult = reader.int32();
1294
- break;
1295
- case 12:
1296
- message.messages.push(any_1.Any.decode(reader, reader.uint32()));
1297
- break;
1298
- case 13:
1299
- message.title = reader.string();
1300
- break;
1301
- case 14:
1302
- message.summary = reader.string();
1303
- break;
1304
- default:
1305
- reader.skipType(tag & 7);
1306
- break;
1307
- }
1308
- }
1309
- return message;
1310
- },
1311
- fromPartial(object) {
1312
- const message = createBaseProposal();
1313
- message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
1314
- message.groupPolicyAddress = object.groupPolicyAddress ?? "";
1315
- message.metadata = object.metadata ?? "";
1316
- message.proposers = object.proposers?.map(e => e) || [];
1317
- message.submitTime = object.submitTime ?? undefined;
1318
- message.groupVersion = object.groupVersion !== undefined && object.groupVersion !== null ? BigInt(object.groupVersion.toString()) : BigInt(0);
1319
- message.groupPolicyVersion = object.groupPolicyVersion !== undefined && object.groupPolicyVersion !== null ? BigInt(object.groupPolicyVersion.toString()) : BigInt(0);
1320
- message.status = object.status ?? 0;
1321
- message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? exports.TallyResult.fromPartial(object.finalTallyResult) : undefined;
1322
- message.votingPeriodEnd = object.votingPeriodEnd ?? undefined;
1323
- message.executorResult = object.executorResult ?? 0;
1324
- message.messages = object.messages?.map(e => any_1.Any.fromPartial(e)) || [];
1325
- message.title = object.title ?? "";
1326
- message.summary = object.summary ?? "";
1327
- return message;
1328
- },
1329
- fromAmino(object) {
1330
- const message = createBaseProposal();
1331
- if (object.id !== undefined && object.id !== null) {
1332
- message.id = BigInt(object.id);
1333
- }
1334
- if (object.group_policy_address !== undefined && object.group_policy_address !== null) {
1335
- message.groupPolicyAddress = object.group_policy_address;
1336
- }
1337
- if (object.metadata !== undefined && object.metadata !== null) {
1338
- message.metadata = object.metadata;
1339
- }
1340
- message.proposers = object.proposers?.map(e => e) || [];
1341
- if (object.submit_time !== undefined && object.submit_time !== null) {
1342
- message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.submit_time));
1343
- }
1344
- if (object.group_version !== undefined && object.group_version !== null) {
1345
- message.groupVersion = BigInt(object.group_version);
1346
- }
1347
- if (object.group_policy_version !== undefined && object.group_policy_version !== null) {
1348
- message.groupPolicyVersion = BigInt(object.group_policy_version);
1349
- }
1350
- if (object.status !== undefined && object.status !== null) {
1351
- message.status = object.status;
1352
- }
1353
- if (object.final_tally_result !== undefined && object.final_tally_result !== null) {
1354
- message.finalTallyResult = exports.TallyResult.fromAmino(object.final_tally_result);
1355
- }
1356
- if (object.voting_period_end !== undefined && object.voting_period_end !== null) {
1357
- message.votingPeriodEnd = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.voting_period_end));
1358
- }
1359
- if (object.executor_result !== undefined && object.executor_result !== null) {
1360
- message.executorResult = object.executor_result;
1361
- }
1362
- message.messages = object.messages?.map(e => any_1.Any.fromAmino(e)) || [];
1363
- if (object.title !== undefined && object.title !== null) {
1364
- message.title = object.title;
1365
- }
1366
- if (object.summary !== undefined && object.summary !== null) {
1367
- message.summary = object.summary;
1368
- }
1369
- return message;
1370
- },
1371
- toAmino(message) {
1372
- const obj = {};
1373
- obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
1374
- obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress;
1375
- obj.metadata = message.metadata === "" ? undefined : message.metadata;
1376
- if (message.proposers) {
1377
- obj.proposers = message.proposers.map(e => e);
1378
- }
1379
- else {
1380
- obj.proposers = message.proposers;
1381
- }
1382
- obj.submit_time = message.submitTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.submitTime)) : new Date();
1383
- obj.group_version = message.groupVersion !== BigInt(0) ? message.groupVersion?.toString() : undefined;
1384
- obj.group_policy_version = message.groupPolicyVersion !== BigInt(0) ? message.groupPolicyVersion?.toString() : undefined;
1385
- obj.status = message.status === 0 ? undefined : message.status;
1386
- obj.final_tally_result = message.finalTallyResult ? exports.TallyResult.toAmino(message.finalTallyResult) : exports.TallyResult.toAmino(exports.TallyResult.fromPartial({}));
1387
- obj.voting_period_end = message.votingPeriodEnd ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.votingPeriodEnd)) : new Date();
1388
- obj.executor_result = message.executorResult === 0 ? undefined : message.executorResult;
1389
- if (message.messages) {
1390
- obj.messages = message.messages.map(e => e ? any_1.Any.toAmino(e) : undefined);
1391
- }
1392
- else {
1393
- obj.messages = message.messages;
1394
- }
1395
- obj.title = message.title === "" ? undefined : message.title;
1396
- obj.summary = message.summary === "" ? undefined : message.summary;
1397
- return obj;
1398
- },
1399
- fromAminoMsg(object) {
1400
- return exports.Proposal.fromAmino(object.value);
1401
- },
1402
- toAminoMsg(message) {
1403
- return {
1404
- type: "cosmos-sdk/Proposal",
1405
- value: exports.Proposal.toAmino(message)
1406
- };
1407
- },
1408
- fromProtoMsg(message) {
1409
- return exports.Proposal.decode(message.value);
1410
- },
1411
- toProto(message) {
1412
- return exports.Proposal.encode(message).finish();
1413
- },
1414
- toProtoMsg(message) {
1415
- return {
1416
- typeUrl: "/cosmos.group.v1.Proposal",
1417
- value: exports.Proposal.encode(message).finish()
1418
- };
1419
- },
1420
- registerTypeUrl() { }
1421
- };
1422
- function createBaseTallyResult() {
1423
- return {
1424
- yesCount: "",
1425
- abstainCount: "",
1426
- noCount: "",
1427
- noWithVetoCount: ""
1428
- };
1429
- }
1430
- /**
1431
- * TallyResult represents the sum of weighted votes for each vote option.
1432
- * @name TallyResult
1433
- * @package cosmos.group.v1
1434
- * @see proto type: cosmos.group.v1.TallyResult
1435
- */
1436
- exports.TallyResult = {
1437
- typeUrl: "/cosmos.group.v1.TallyResult",
1438
- aminoType: "cosmos-sdk/TallyResult",
1439
- is(o) {
1440
- return o && (o.$typeUrl === exports.TallyResult.typeUrl || typeof o.yesCount === "string" && typeof o.abstainCount === "string" && typeof o.noCount === "string" && typeof o.noWithVetoCount === "string");
1441
- },
1442
- isSDK(o) {
1443
- return o && (o.$typeUrl === exports.TallyResult.typeUrl || typeof o.yes_count === "string" && typeof o.abstain_count === "string" && typeof o.no_count === "string" && typeof o.no_with_veto_count === "string");
1444
- },
1445
- isAmino(o) {
1446
- return o && (o.$typeUrl === exports.TallyResult.typeUrl || typeof o.yes_count === "string" && typeof o.abstain_count === "string" && typeof o.no_count === "string" && typeof o.no_with_veto_count === "string");
1447
- },
1448
- encode(message, writer = binary_1.BinaryWriter.create()) {
1449
- if (message.yesCount !== "") {
1450
- writer.uint32(10).string(message.yesCount);
1451
- }
1452
- if (message.abstainCount !== "") {
1453
- writer.uint32(18).string(message.abstainCount);
1454
- }
1455
- if (message.noCount !== "") {
1456
- writer.uint32(26).string(message.noCount);
1457
- }
1458
- if (message.noWithVetoCount !== "") {
1459
- writer.uint32(34).string(message.noWithVetoCount);
1460
- }
1461
- return writer;
1462
- },
1463
- decode(input, length) {
1464
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
1465
- let end = length === undefined ? reader.len : reader.pos + length;
1466
- const message = createBaseTallyResult();
1467
- while (reader.pos < end) {
1468
- const tag = reader.uint32();
1469
- switch (tag >>> 3) {
1470
- case 1:
1471
- message.yesCount = reader.string();
1472
- break;
1473
- case 2:
1474
- message.abstainCount = reader.string();
1475
- break;
1476
- case 3:
1477
- message.noCount = reader.string();
1478
- break;
1479
- case 4:
1480
- message.noWithVetoCount = reader.string();
1481
- break;
1482
- default:
1483
- reader.skipType(tag & 7);
1484
- break;
1485
- }
1486
- }
1487
- return message;
1488
- },
1489
- fromPartial(object) {
1490
- const message = createBaseTallyResult();
1491
- message.yesCount = object.yesCount ?? "";
1492
- message.abstainCount = object.abstainCount ?? "";
1493
- message.noCount = object.noCount ?? "";
1494
- message.noWithVetoCount = object.noWithVetoCount ?? "";
1495
- return message;
1496
- },
1497
- fromAmino(object) {
1498
- const message = createBaseTallyResult();
1499
- if (object.yes_count !== undefined && object.yes_count !== null) {
1500
- message.yesCount = object.yes_count;
1501
- }
1502
- if (object.abstain_count !== undefined && object.abstain_count !== null) {
1503
- message.abstainCount = object.abstain_count;
1504
- }
1505
- if (object.no_count !== undefined && object.no_count !== null) {
1506
- message.noCount = object.no_count;
1507
- }
1508
- if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) {
1509
- message.noWithVetoCount = object.no_with_veto_count;
1510
- }
1511
- return message;
1512
- },
1513
- toAmino(message) {
1514
- const obj = {};
1515
- obj.yes_count = message.yesCount === "" ? undefined : message.yesCount;
1516
- obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount;
1517
- obj.no_count = message.noCount === "" ? undefined : message.noCount;
1518
- obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount;
1519
- return obj;
1520
- },
1521
- fromAminoMsg(object) {
1522
- return exports.TallyResult.fromAmino(object.value);
1523
- },
1524
- toAminoMsg(message) {
1525
- return {
1526
- type: "cosmos-sdk/TallyResult",
1527
- value: exports.TallyResult.toAmino(message)
1528
- };
1529
- },
1530
- fromProtoMsg(message) {
1531
- return exports.TallyResult.decode(message.value);
1532
- },
1533
- toProto(message) {
1534
- return exports.TallyResult.encode(message).finish();
1535
- },
1536
- toProtoMsg(message) {
1537
- return {
1538
- typeUrl: "/cosmos.group.v1.TallyResult",
1539
- value: exports.TallyResult.encode(message).finish()
1540
- };
1541
- },
1542
- registerTypeUrl() { }
1543
- };
1544
- function createBaseVote() {
1545
- return {
1546
- proposalId: BigInt(0),
1547
- voter: "",
1548
- option: 0,
1549
- metadata: "",
1550
- submitTime: new Date()
1551
- };
1552
- }
1553
- /**
1554
- * Vote represents a vote for a proposal.string metadata
1555
- * @name Vote
1556
- * @package cosmos.group.v1
1557
- * @see proto type: cosmos.group.v1.Vote
1558
- */
1559
- exports.Vote = {
1560
- typeUrl: "/cosmos.group.v1.Vote",
1561
- aminoType: "cosmos-sdk/Vote",
1562
- is(o) {
1563
- return o && (o.$typeUrl === exports.Vote.typeUrl || typeof o.proposalId === "bigint" && typeof o.voter === "string" && (0, helpers_1.isSet)(o.option) && typeof o.metadata === "string" && timestamp_1.Timestamp.is(o.submitTime));
1564
- },
1565
- isSDK(o) {
1566
- return o && (o.$typeUrl === exports.Vote.typeUrl || typeof o.proposal_id === "bigint" && typeof o.voter === "string" && (0, helpers_1.isSet)(o.option) && typeof o.metadata === "string" && timestamp_1.Timestamp.isSDK(o.submit_time));
1567
- },
1568
- isAmino(o) {
1569
- return o && (o.$typeUrl === exports.Vote.typeUrl || typeof o.proposal_id === "bigint" && typeof o.voter === "string" && (0, helpers_1.isSet)(o.option) && typeof o.metadata === "string" && timestamp_1.Timestamp.isAmino(o.submit_time));
1570
- },
1571
- encode(message, writer = binary_1.BinaryWriter.create()) {
1572
- if (message.proposalId !== BigInt(0)) {
1573
- writer.uint32(8).uint64(message.proposalId);
1574
- }
1575
- if (message.voter !== "") {
1576
- writer.uint32(18).string(message.voter);
1577
- }
1578
- if (message.option !== 0) {
1579
- writer.uint32(24).int32(message.option);
1580
- }
1581
- if (message.metadata !== "") {
1582
- writer.uint32(34).string(message.metadata);
1583
- }
1584
- if (message.submitTime !== undefined) {
1585
- timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.submitTime), writer.uint32(42).fork()).ldelim();
1586
- }
1587
- return writer;
1588
- },
1589
- decode(input, length) {
1590
- const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
1591
- let end = length === undefined ? reader.len : reader.pos + length;
1592
- const message = createBaseVote();
1593
- while (reader.pos < end) {
1594
- const tag = reader.uint32();
1595
- switch (tag >>> 3) {
1596
- case 1:
1597
- message.proposalId = reader.uint64();
1598
- break;
1599
- case 2:
1600
- message.voter = reader.string();
1601
- break;
1602
- case 3:
1603
- message.option = reader.int32();
1604
- break;
1605
- case 4:
1606
- message.metadata = reader.string();
1607
- break;
1608
- case 5:
1609
- message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32()));
1610
- break;
1611
- default:
1612
- reader.skipType(tag & 7);
1613
- break;
1614
- }
1615
- }
1616
- return message;
1617
- },
1618
- fromPartial(object) {
1619
- const message = createBaseVote();
1620
- message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
1621
- message.voter = object.voter ?? "";
1622
- message.option = object.option ?? 0;
1623
- message.metadata = object.metadata ?? "";
1624
- message.submitTime = object.submitTime ?? undefined;
1625
- return message;
1626
- },
1627
- fromAmino(object) {
1628
- const message = createBaseVote();
1629
- if (object.proposal_id !== undefined && object.proposal_id !== null) {
1630
- message.proposalId = BigInt(object.proposal_id);
1631
- }
1632
- if (object.voter !== undefined && object.voter !== null) {
1633
- message.voter = object.voter;
1634
- }
1635
- if (object.option !== undefined && object.option !== null) {
1636
- message.option = object.option;
1637
- }
1638
- if (object.metadata !== undefined && object.metadata !== null) {
1639
- message.metadata = object.metadata;
1640
- }
1641
- if (object.submit_time !== undefined && object.submit_time !== null) {
1642
- message.submitTime = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.fromAmino(object.submit_time));
1643
- }
1644
- return message;
1645
- },
1646
- toAmino(message) {
1647
- const obj = {};
1648
- obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
1649
- obj.voter = message.voter === "" ? undefined : message.voter;
1650
- obj.option = message.option === 0 ? undefined : message.option;
1651
- obj.metadata = message.metadata === "" ? undefined : message.metadata;
1652
- obj.submit_time = message.submitTime ? timestamp_1.Timestamp.toAmino((0, helpers_1.toTimestamp)(message.submitTime)) : new Date();
1653
- return obj;
1654
- },
1655
- fromAminoMsg(object) {
1656
- return exports.Vote.fromAmino(object.value);
1657
- },
1658
- toAminoMsg(message) {
1659
- return {
1660
- type: "cosmos-sdk/Vote",
1661
- value: exports.Vote.toAmino(message)
1662
- };
1663
- },
1664
- fromProtoMsg(message) {
1665
- return exports.Vote.decode(message.value);
1666
- },
1667
- toProto(message) {
1668
- return exports.Vote.encode(message).finish();
1669
- },
1670
- toProtoMsg(message) {
1671
- return {
1672
- typeUrl: "/cosmos.group.v1.Vote",
1673
- value: exports.Vote.encode(message).finish()
1674
- };
1675
- },
1676
- registerTypeUrl() { }
1677
- };