@xpla/xpla-react 1.7.0-beta.0 → 1.7.0-beta.10

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 (1373) hide show
  1. package/amino/amino.d.ts +1 -0
  2. package/amino/amino.js +2 -0
  3. package/binary.d.ts +130 -0
  4. package/binary.js +370 -0
  5. package/cosmos/app/runtime/v1alpha1/module.d.ts +174 -0
  6. package/cosmos/app/runtime/v1alpha1/module.js +293 -0
  7. package/cosmos/app/runtime/v2/module.d.ts +228 -0
  8. package/cosmos/app/runtime/v2/module.js +422 -0
  9. package/cosmos/app/v1alpha1/config.d.ts +181 -0
  10. package/cosmos/app/v1alpha1/config.js +297 -0
  11. package/cosmos/app/v1alpha1/module.d.ts +234 -0
  12. package/cosmos/app/v1alpha1/module.js +281 -0
  13. package/cosmos/app/v1alpha1/query.d.ts +67 -0
  14. package/cosmos/app/v1alpha1/query.js +149 -0
  15. package/cosmos/app/v1alpha1/query.rpc.func.d.ts +4 -0
  16. package/cosmos/app/v1alpha1/query.rpc.func.js +18 -0
  17. package/cosmos/auth/module/v1/module.d.ts +88 -0
  18. package/cosmos/auth/module/v1/module.js +203 -0
  19. package/cosmos/auth/v1beta1/accounts.d.ts +104 -0
  20. package/cosmos/auth/v1beta1/accounts.js +162 -0
  21. package/cosmos/auth/v1beta1/auth.d.ts +177 -0
  22. package/cosmos/auth/v1beta1/auth.js +445 -0
  23. package/cosmos/auth/v1beta1/genesis.d.ts +42 -0
  24. package/cosmos/auth/v1beta1/genesis.js +100 -0
  25. package/cosmos/auth/v1beta1/query.d.ts +810 -0
  26. package/cosmos/auth/v1beta1/query.js +1561 -0
  27. package/cosmos/auth/v1beta1/query.rpc.func.d.ts +22 -0
  28. package/cosmos/auth/v1beta1/query.rpc.func.js +126 -0
  29. package/cosmos/auth/v1beta1/tx.d.ts +97 -0
  30. package/cosmos/auth/v1beta1/tx.js +161 -0
  31. package/cosmos/auth/v1beta1/tx.registry.d.ts +23 -0
  32. package/cosmos/auth/v1beta1/tx.registry.js +31 -0
  33. package/cosmos/auth/v1beta1/tx.rpc.func.d.ts +4 -0
  34. package/cosmos/auth/v1beta1/tx.rpc.func.js +17 -0
  35. package/cosmos/authz/module/v1/module.d.ts +32 -0
  36. package/cosmos/authz/module/v1/module.js +70 -0
  37. package/cosmos/authz/v1beta1/authz.d.ts +181 -0
  38. package/cosmos/authz/v1beta1/authz.js +371 -0
  39. package/cosmos/authz/v1beta1/event.d.ts +86 -0
  40. package/cosmos/authz/v1beta1/event.js +209 -0
  41. package/cosmos/authz/v1beta1/genesis.d.ts +35 -0
  42. package/cosmos/authz/v1beta1/genesis.js +87 -0
  43. package/cosmos/authz/v1beta1/query.d.ts +232 -0
  44. package/cosmos/authz/v1beta1/query.js +580 -0
  45. package/cosmos/authz/v1beta1/query.rpc.func.d.ts +8 -0
  46. package/cosmos/authz/v1beta1/query.rpc.func.js +42 -0
  47. package/cosmos/authz/v1beta1/tx.d.ts +240 -0
  48. package/cosmos/authz/v1beta1/tx.js +516 -0
  49. package/cosmos/authz/v1beta1/tx.registry.d.ts +47 -0
  50. package/cosmos/authz/v1beta1/tx.registry.js +67 -0
  51. package/cosmos/authz/v1beta1/tx.rpc.func.d.ts +8 -0
  52. package/cosmos/authz/v1beta1/tx.rpc.func.js +37 -0
  53. package/cosmos/autocli/v1/options.d.ts +412 -0
  54. package/cosmos/autocli/v1/options.js +834 -0
  55. package/cosmos/autocli/v1/query.d.ts +97 -0
  56. package/cosmos/autocli/v1/query.js +237 -0
  57. package/cosmos/autocli/v1/query.rpc.func.d.ts +4 -0
  58. package/cosmos/autocli/v1/query.rpc.func.js +18 -0
  59. package/cosmos/bank/module/v1/module.d.ts +62 -0
  60. package/cosmos/bank/module/v1/module.js +113 -0
  61. package/cosmos/bank/v1beta1/authz.d.ts +59 -0
  62. package/cosmos/bank/v1beta1/authz.js +102 -0
  63. package/cosmos/bank/v1beta1/bank.d.ts +371 -0
  64. package/cosmos/bank/v1beta1/bank.js +726 -0
  65. package/cosmos/bank/v1beta1/genesis.d.ts +112 -0
  66. package/cosmos/bank/v1beta1/genesis.js +238 -0
  67. package/cosmos/bank/v1beta1/query.d.ts +1159 -0
  68. package/cosmos/bank/v1beta1/query.js +2317 -0
  69. package/cosmos/bank/v1beta1/query.rpc.func.d.ts +28 -0
  70. package/cosmos/bank/v1beta1/query.rpc.func.js +162 -0
  71. package/cosmos/bank/v1beta1/tx.d.ts +342 -0
  72. package/cosmos/bank/v1beta1/tx.js +666 -0
  73. package/cosmos/bank/v1beta1/tx.registry.d.ts +59 -0
  74. package/cosmos/bank/v1beta1/tx.registry.js +85 -0
  75. package/cosmos/bank/v1beta1/tx.rpc.func.d.ts +10 -0
  76. package/cosmos/bank/v1beta1/tx.rpc.func.js +47 -0
  77. package/cosmos/base/abci/v1beta1/abci.d.ts +599 -0
  78. package/cosmos/base/abci/v1beta1/abci.js +1293 -0
  79. package/cosmos/base/grpc/v2/service.d.ts +163 -0
  80. package/cosmos/base/grpc/v2/service.js +398 -0
  81. package/cosmos/base/grpc/v2/service.rpc.func.d.ts +6 -0
  82. package/cosmos/base/grpc/v2/service.rpc.func.js +30 -0
  83. package/cosmos/base/node/v1beta1/query.d.ts +150 -0
  84. package/cosmos/base/node/v1beta1/query.js +377 -0
  85. package/cosmos/base/node/v1beta1/query.rpc.func.d.ts +6 -0
  86. package/cosmos/base/node/v1beta1/query.rpc.func.js +30 -0
  87. package/cosmos/base/query/v1beta1/pagination.d.ts +176 -0
  88. package/cosmos/base/query/v1beta1/pagination.js +222 -0
  89. package/cosmos/base/reflection/v1beta1/reflection.d.ts +144 -0
  90. package/cosmos/base/reflection/v1beta1/reflection.js +310 -0
  91. package/cosmos/base/reflection/v1beta1/reflection.rpc.func.d.ts +6 -0
  92. package/cosmos/base/reflection/v1beta1/reflection.rpc.func.js +30 -0
  93. package/cosmos/base/reflection/v2alpha1/reflection.d.ts +1008 -0
  94. package/cosmos/base/reflection/v2alpha1/reflection.js +2159 -0
  95. package/cosmos/base/reflection/v2alpha1/reflection.rpc.func.d.ts +14 -0
  96. package/cosmos/base/reflection/v2alpha1/reflection.rpc.func.js +78 -0
  97. package/cosmos/base/tendermint/v1beta1/query.d.ts +740 -0
  98. package/cosmos/base/tendermint/v1beta1/query.js +1887 -0
  99. package/cosmos/base/tendermint/v1beta1/query.rpc.func.d.ts +16 -0
  100. package/cosmos/base/tendermint/v1beta1/query.rpc.func.js +90 -0
  101. package/cosmos/base/tendermint/v1beta1/types.d.ts +137 -0
  102. package/cosmos/base/tendermint/v1beta1/types.js +358 -0
  103. package/cosmos/base/v1beta1/coin.d.ts +166 -0
  104. package/cosmos/base/v1beta1/coin.js +341 -0
  105. package/cosmos/circuit/module/v1/module.d.ts +36 -0
  106. package/cosmos/circuit/module/v1/module.js +83 -0
  107. package/cosmos/circuit/v1/query.d.ts +200 -0
  108. package/cosmos/circuit/v1/query.js +480 -0
  109. package/cosmos/circuit/v1/query.rpc.func.d.ts +8 -0
  110. package/cosmos/circuit/v1/query.rpc.func.js +42 -0
  111. package/cosmos/circuit/v1/tx.d.ts +251 -0
  112. package/cosmos/circuit/v1/tx.js +528 -0
  113. package/cosmos/circuit/v1/tx.registry.d.ts +47 -0
  114. package/cosmos/circuit/v1/tx.registry.js +67 -0
  115. package/cosmos/circuit/v1/tx.rpc.func.d.ts +8 -0
  116. package/cosmos/circuit/v1/tx.rpc.func.js +37 -0
  117. package/cosmos/circuit/v1/types.d.ts +151 -0
  118. package/cosmos/circuit/v1/types.js +350 -0
  119. package/cosmos/consensus/module/v1/module.d.ts +36 -0
  120. package/cosmos/consensus/module/v1/module.js +83 -0
  121. package/cosmos/consensus/v1/query.d.ts +75 -0
  122. package/cosmos/consensus/v1/query.js +149 -0
  123. package/cosmos/consensus/v1/query.rpc.func.d.ts +4 -0
  124. package/cosmos/consensus/v1/query.rpc.func.js +18 -0
  125. package/cosmos/consensus/v1/tx.d.ts +97 -0
  126. package/cosmos/consensus/v1/tx.js +197 -0
  127. package/cosmos/consensus/v1/tx.registry.d.ts +23 -0
  128. package/cosmos/consensus/v1/tx.registry.js +31 -0
  129. package/cosmos/consensus/v1/tx.rpc.func.d.ts +4 -0
  130. package/cosmos/consensus/v1/tx.rpc.func.js +17 -0
  131. package/cosmos/crisis/module/v1/module.d.ts +40 -0
  132. package/cosmos/crisis/module/v1/module.js +95 -0
  133. package/cosmos/crisis/v1beta1/genesis.d.ts +43 -0
  134. package/cosmos/crisis/v1beta1/genesis.js +84 -0
  135. package/cosmos/crisis/v1beta1/tx.d.ts +161 -0
  136. package/cosmos/crisis/v1beta1/tx.js +328 -0
  137. package/cosmos/crisis/v1beta1/tx.registry.d.ts +35 -0
  138. package/cosmos/crisis/v1beta1/tx.registry.js +49 -0
  139. package/cosmos/crisis/v1beta1/tx.rpc.func.d.ts +6 -0
  140. package/cosmos/crisis/v1beta1/tx.rpc.func.js +27 -0
  141. package/cosmos/crypto/ed25519/keys.d.ts +84 -0
  142. package/cosmos/crypto/ed25519/keys.js +162 -0
  143. package/cosmos/crypto/hd/v1/hd.d.ts +58 -0
  144. package/cosmos/crypto/hd/v1/hd.js +131 -0
  145. package/cosmos/crypto/keyring/v1/record.d.ts +188 -0
  146. package/cosmos/crypto/keyring/v1/record.js +431 -0
  147. package/cosmos/crypto/multisig/keys.d.ts +45 -0
  148. package/cosmos/crypto/multisig/keys.js +99 -0
  149. package/cosmos/crypto/multisig/v1beta1/multisig.d.ts +86 -0
  150. package/cosmos/crypto/multisig/v1beta1/multisig.js +177 -0
  151. package/cosmos/crypto/secp256k1/keys.d.ts +78 -0
  152. package/cosmos/crypto/secp256k1/keys.js +162 -0
  153. package/cosmos/crypto/secp256r1/keys.d.ts +76 -0
  154. package/cosmos/crypto/secp256r1/keys.js +162 -0
  155. package/cosmos/distribution/module/v1/module.d.ts +38 -0
  156. package/cosmos/distribution/module/v1/module.js +95 -0
  157. package/cosmos/distribution/v1beta1/distribution.d.ts +541 -0
  158. package/cosmos/distribution/v1beta1/distribution.js +1158 -0
  159. package/cosmos/distribution/v1beta1/genesis.d.ts +376 -0
  160. package/cosmos/distribution/v1beta1/genesis.js +895 -0
  161. package/cosmos/distribution/v1beta1/query.d.ts +803 -0
  162. package/cosmos/distribution/v1beta1/query.js +1662 -0
  163. package/cosmos/distribution/v1beta1/query.rpc.func.d.ts +22 -0
  164. package/cosmos/distribution/v1beta1/query.rpc.func.js +126 -0
  165. package/cosmos/distribution/v1beta1/tx.d.ts +578 -0
  166. package/cosmos/distribution/v1beta1/tx.js +1145 -0
  167. package/cosmos/distribution/v1beta1/tx.registry.d.ts +95 -0
  168. package/cosmos/distribution/v1beta1/tx.registry.js +139 -0
  169. package/cosmos/distribution/v1beta1/tx.rpc.func.d.ts +16 -0
  170. package/cosmos/distribution/v1beta1/tx.rpc.func.js +77 -0
  171. package/cosmos/evidence/module/v1/module.d.ts +32 -0
  172. package/cosmos/evidence/module/v1/module.js +70 -0
  173. package/cosmos/evidence/v1beta1/evidence.d.ts +54 -0
  174. package/cosmos/evidence/v1beta1/evidence.js +121 -0
  175. package/cosmos/evidence/v1beta1/genesis.d.ts +37 -0
  176. package/cosmos/evidence/v1beta1/genesis.js +87 -0
  177. package/cosmos/evidence/v1beta1/query.d.ts +176 -0
  178. package/cosmos/evidence/v1beta1/query.js +347 -0
  179. package/cosmos/evidence/v1beta1/query.rpc.func.d.ts +6 -0
  180. package/cosmos/evidence/v1beta1/query.rpc.func.js +30 -0
  181. package/cosmos/evidence/v1beta1/tx.d.ts +84 -0
  182. package/cosmos/evidence/v1beta1/tx.js +175 -0
  183. package/cosmos/evidence/v1beta1/tx.registry.d.ts +23 -0
  184. package/cosmos/evidence/v1beta1/tx.registry.js +31 -0
  185. package/cosmos/evidence/v1beta1/tx.rpc.func.d.ts +4 -0
  186. package/cosmos/evidence/v1beta1/tx.rpc.func.js +17 -0
  187. package/cosmos/feegrant/module/v1/module.d.ts +32 -0
  188. package/cosmos/feegrant/module/v1/module.js +70 -0
  189. package/cosmos/feegrant/v1beta1/feegrant.d.ts +219 -0
  190. package/cosmos/feegrant/v1beta1/feegrant.js +430 -0
  191. package/cosmos/feegrant/v1beta1/genesis.d.ts +35 -0
  192. package/cosmos/feegrant/v1beta1/genesis.js +87 -0
  193. package/cosmos/feegrant/v1beta1/query.d.ts +240 -0
  194. package/cosmos/feegrant/v1beta1/query.js +541 -0
  195. package/cosmos/feegrant/v1beta1/query.rpc.func.d.ts +8 -0
  196. package/cosmos/feegrant/v1beta1/query.rpc.func.js +42 -0
  197. package/cosmos/feegrant/v1beta1/tx.d.ts +233 -0
  198. package/cosmos/feegrant/v1beta1/tx.js +471 -0
  199. package/cosmos/feegrant/v1beta1/tx.registry.d.ts +47 -0
  200. package/cosmos/feegrant/v1beta1/tx.registry.js +67 -0
  201. package/cosmos/feegrant/v1beta1/tx.rpc.func.d.ts +8 -0
  202. package/cosmos/feegrant/v1beta1/tx.rpc.func.js +37 -0
  203. package/cosmos/genutil/module/v1/module.d.ts +32 -0
  204. package/cosmos/genutil/module/v1/module.js +70 -0
  205. package/cosmos/genutil/v1beta1/genesis.d.ts +36 -0
  206. package/cosmos/genutil/v1beta1/genesis.js +87 -0
  207. package/cosmos/gov/module/v1/module.d.ts +46 -0
  208. package/cosmos/gov/module/v1/module.js +95 -0
  209. package/cosmos/gov/v1/genesis.d.ts +115 -0
  210. package/cosmos/gov/v1/genesis.js +189 -0
  211. package/cosmos/gov/v1/gov.d.ts +696 -0
  212. package/cosmos/gov/v1/gov.js +1363 -0
  213. package/cosmos/gov/v1/query.d.ts +706 -0
  214. package/cosmos/gov/v1/query.js +1564 -0
  215. package/cosmos/gov/v1/query.rpc.func.d.ts +20 -0
  216. package/cosmos/gov/v1/query.rpc.func.js +114 -0
  217. package/cosmos/gov/v1/tx.d.ts +626 -0
  218. package/cosmos/gov/v1/tx.js +1277 -0
  219. package/cosmos/gov/v1/tx.registry.d.ts +95 -0
  220. package/cosmos/gov/v1/tx.registry.js +139 -0
  221. package/cosmos/gov/v1/tx.rpc.func.d.ts +16 -0
  222. package/cosmos/gov/v1/tx.rpc.func.js +77 -0
  223. package/cosmos/gov/v1beta1/genesis.d.ts +61 -0
  224. package/cosmos/gov/v1beta1/genesis.js +165 -0
  225. package/cosmos/gov/v1beta1/gov.d.ts +524 -0
  226. package/cosmos/gov/v1beta1/gov.js +1114 -0
  227. package/cosmos/gov/v1beta1/query.d.ts +606 -0
  228. package/cosmos/gov/v1beta1/query.js +1409 -0
  229. package/cosmos/gov/v1beta1/query.rpc.func.d.ts +18 -0
  230. package/cosmos/gov/v1beta1/query.rpc.func.js +102 -0
  231. package/cosmos/gov/v1beta1/tx.d.ts +327 -0
  232. package/cosmos/gov/v1beta1/tx.js +699 -0
  233. package/cosmos/gov/v1beta1/tx.registry.d.ts +59 -0
  234. package/cosmos/gov/v1beta1/tx.registry.js +85 -0
  235. package/cosmos/gov/v1beta1/tx.rpc.func.d.ts +10 -0
  236. package/cosmos/gov/v1beta1/tx.rpc.func.js +47 -0
  237. package/cosmos/group/module/v1/module.d.ts +53 -0
  238. package/cosmos/group/module/v1/module.js +96 -0
  239. package/cosmos/group/v1/events.d.ts +363 -0
  240. package/cosmos/group/v1/events.js +847 -0
  241. package/cosmos/group/v1/genesis.d.ts +83 -0
  242. package/cosmos/group/v1/genesis.js +183 -0
  243. package/cosmos/group/v1/query.d.ts +1044 -0
  244. package/cosmos/group/v1/query.js +2434 -0
  245. package/cosmos/group/v1/query.rpc.func.d.ts +30 -0
  246. package/cosmos/group/v1/query.rpc.func.js +174 -0
  247. package/cosmos/group/v1/tx.d.ts +1140 -0
  248. package/cosmos/group/v1/tx.js +2567 -0
  249. package/cosmos/group/v1/tx.registry.d.ts +179 -0
  250. package/cosmos/group/v1/tx.registry.js +265 -0
  251. package/cosmos/group/v1/tx.rpc.func.d.ts +30 -0
  252. package/cosmos/group/v1/tx.rpc.func.js +147 -0
  253. package/cosmos/group/v1/types.d.ts +799 -0
  254. package/cosmos/group/v1/types.js +1542 -0
  255. package/cosmos/ics23/v1/proofs.d.ts +730 -0
  256. package/cosmos/ics23/v1/proofs.js +1605 -0
  257. package/cosmos/mint/module/v1/module.d.ts +38 -0
  258. package/cosmos/mint/module/v1/module.js +95 -0
  259. package/cosmos/mint/v1beta1/genesis.d.ts +41 -0
  260. package/cosmos/mint/v1beta1/genesis.js +96 -0
  261. package/cosmos/mint/v1beta1/mint.d.ts +94 -0
  262. package/cosmos/mint/v1beta1/mint.js +233 -0
  263. package/cosmos/mint/v1beta1/query.d.ts +213 -0
  264. package/cosmos/mint/v1beta1/query.js +436 -0
  265. package/cosmos/mint/v1beta1/query.rpc.func.d.ts +8 -0
  266. package/cosmos/mint/v1beta1/query.rpc.func.js +42 -0
  267. package/cosmos/mint/v1beta1/tx.d.ts +97 -0
  268. package/cosmos/mint/v1beta1/tx.js +161 -0
  269. package/cosmos/mint/v1beta1/tx.registry.d.ts +23 -0
  270. package/cosmos/mint/v1beta1/tx.registry.js +31 -0
  271. package/cosmos/mint/v1beta1/tx.rpc.func.d.ts +4 -0
  272. package/cosmos/mint/v1beta1/tx.rpc.func.js +17 -0
  273. package/cosmos/msg/textual/v1/textual.d.ts +1 -0
  274. package/cosmos/msg/textual/v1/textual.js +2 -0
  275. package/cosmos/msg/v1/msg.d.ts +1 -0
  276. package/cosmos/msg/v1/msg.js +2 -0
  277. package/cosmos/nft/module/v1/module.d.ts +32 -0
  278. package/cosmos/nft/module/v1/module.js +70 -0
  279. package/cosmos/nft/v1beta1/event.d.ts +132 -0
  280. package/cosmos/nft/v1beta1/event.js +323 -0
  281. package/cosmos/nft/v1beta1/genesis.d.ts +79 -0
  282. package/cosmos/nft/v1beta1/genesis.js +195 -0
  283. package/cosmos/nft/v1beta1/nft.d.ts +111 -0
  284. package/cosmos/nft/v1beta1/nft.js +282 -0
  285. package/cosmos/nft/v1beta1/query.d.ts +508 -0
  286. package/cosmos/nft/v1beta1/query.js +1189 -0
  287. package/cosmos/nft/v1beta1/query.rpc.func.d.ts +16 -0
  288. package/cosmos/nft/v1beta1/query.rpc.func.js +90 -0
  289. package/cosmos/nft/v1beta1/tx.d.ts +78 -0
  290. package/cosmos/nft/v1beta1/tx.js +184 -0
  291. package/cosmos/nft/v1beta1/tx.registry.d.ts +23 -0
  292. package/cosmos/nft/v1beta1/tx.registry.js +31 -0
  293. package/cosmos/nft/v1beta1/tx.rpc.func.d.ts +4 -0
  294. package/cosmos/nft/v1beta1/tx.rpc.func.js +17 -0
  295. package/cosmos/orm/module/v1alpha1/module.d.ts +40 -0
  296. package/cosmos/orm/module/v1alpha1/module.js +70 -0
  297. package/cosmos/orm/query/v1alpha1/query.d.ts +367 -0
  298. package/cosmos/orm/query/v1alpha1/query.js +751 -0
  299. package/cosmos/orm/query/v1alpha1/query.rpc.func.d.ts +6 -0
  300. package/cosmos/orm/query/v1alpha1/query.rpc.func.js +30 -0
  301. package/cosmos/orm/v1/orm.d.ts +278 -0
  302. package/cosmos/orm/v1/orm.js +380 -0
  303. package/cosmos/orm/v1alpha1/schema.d.ts +134 -0
  304. package/cosmos/orm/v1alpha1/schema.js +258 -0
  305. package/cosmos/params/module/v1/module.d.ts +32 -0
  306. package/cosmos/params/module/v1/module.js +70 -0
  307. package/cosmos/params/v1beta1/params.d.ts +80 -0
  308. package/cosmos/params/v1beta1/params.js +212 -0
  309. package/cosmos/params/v1beta1/query.d.ts +201 -0
  310. package/cosmos/params/v1beta1/query.js +413 -0
  311. package/cosmos/params/v1beta1/query.rpc.func.d.ts +6 -0
  312. package/cosmos/params/v1beta1/query.rpc.func.js +30 -0
  313. package/cosmos/query/v1/query.d.ts +1 -0
  314. package/cosmos/query/v1/query.js +2 -0
  315. package/cosmos/reflection/v1/reflection.d.ts +67 -0
  316. package/cosmos/reflection/v1/reflection.js +152 -0
  317. package/cosmos/reflection/v1/reflection.rpc.func.d.ts +4 -0
  318. package/cosmos/reflection/v1/reflection.rpc.func.js +18 -0
  319. package/cosmos/slashing/module/v1/module.d.ts +36 -0
  320. package/cosmos/slashing/module/v1/module.js +83 -0
  321. package/cosmos/slashing/v1beta1/genesis.d.ts +177 -0
  322. package/cosmos/slashing/v1beta1/genesis.js +387 -0
  323. package/cosmos/slashing/v1beta1/query.d.ts +226 -0
  324. package/cosmos/slashing/v1beta1/query.js +477 -0
  325. package/cosmos/slashing/v1beta1/query.rpc.func.d.ts +8 -0
  326. package/cosmos/slashing/v1beta1/query.rpc.func.js +42 -0
  327. package/cosmos/slashing/v1beta1/slashing.d.ts +123 -0
  328. package/cosmos/slashing/v1beta1/slashing.js +272 -0
  329. package/cosmos/slashing/v1beta1/tx.d.ts +159 -0
  330. package/cosmos/slashing/v1beta1/tx.js +304 -0
  331. package/cosmos/slashing/v1beta1/tx.registry.d.ts +35 -0
  332. package/cosmos/slashing/v1beta1/tx.registry.js +49 -0
  333. package/cosmos/slashing/v1beta1/tx.rpc.func.d.ts +6 -0
  334. package/cosmos/slashing/v1beta1/tx.rpc.func.js +27 -0
  335. package/cosmos/staking/module/v1/module.d.ts +56 -0
  336. package/cosmos/staking/module/v1/module.js +122 -0
  337. package/cosmos/staking/v1beta1/authz.d.ts +122 -0
  338. package/cosmos/staking/v1beta1/authz.js +264 -0
  339. package/cosmos/staking/v1beta1/genesis.d.ts +115 -0
  340. package/cosmos/staking/v1beta1/genesis.js +274 -0
  341. package/cosmos/staking/v1beta1/query.d.ts +1124 -0
  342. package/cosmos/staking/v1beta1/query.js +2414 -0
  343. package/cosmos/staking/v1beta1/query.rpc.func.d.ts +30 -0
  344. package/cosmos/staking/v1beta1/query.rpc.func.js +174 -0
  345. package/cosmos/staking/v1beta1/staking.d.ts +1024 -0
  346. package/cosmos/staking/v1beta1/staking.js +2371 -0
  347. package/cosmos/staking/v1beta1/tx.d.ts +590 -0
  348. package/cosmos/staking/v1beta1/tx.js +1290 -0
  349. package/cosmos/staking/v1beta1/tx.registry.d.ts +95 -0
  350. package/cosmos/staking/v1beta1/tx.registry.js +139 -0
  351. package/cosmos/staking/v1beta1/tx.rpc.func.d.ts +16 -0
  352. package/cosmos/staking/v1beta1/tx.rpc.func.js +77 -0
  353. package/cosmos/store/internal/kv/v1beta1/kv.d.ts +68 -0
  354. package/cosmos/store/internal/kv/v1beta1/kv.js +177 -0
  355. package/cosmos/store/snapshots/v1/snapshot.d.ts +294 -0
  356. package/cosmos/store/snapshots/v1/snapshot.js +687 -0
  357. package/cosmos/store/snapshots/v2/snapshot.d.ts +254 -0
  358. package/cosmos/store/snapshots/v2/snapshot.js +687 -0
  359. package/cosmos/store/streaming/abci/grpc.d.ts +136 -0
  360. package/cosmos/store/streaming/abci/grpc.js +332 -0
  361. package/cosmos/store/v1beta1/commit_info.d.ts +124 -0
  362. package/cosmos/store/v1beta1/commit_info.js +292 -0
  363. package/cosmos/store/v1beta1/listening.d.ts +101 -0
  364. package/cosmos/store/v1beta1/listening.js +223 -0
  365. package/cosmos/streaming/v1/grpc.d.ts +302 -0
  366. package/cosmos/streaming/v1/grpc.js +826 -0
  367. package/cosmos/tx/config/v1/config.d.ts +52 -0
  368. package/cosmos/tx/config/v1/config.js +95 -0
  369. package/cosmos/tx/signing/v1beta1/signing.d.ts +270 -0
  370. package/cosmos/tx/signing/v1beta1/signing.js +570 -0
  371. package/cosmos/tx/v1beta1/service.d.ts +916 -0
  372. package/cosmos/tx/v1beta1/service.js +1729 -0
  373. package/cosmos/tx/v1beta1/service.rpc.func.d.ts +20 -0
  374. package/cosmos/tx/v1beta1/service.rpc.func.js +114 -0
  375. package/cosmos/tx/v1beta1/tx.d.ts +856 -0
  376. package/cosmos/tx/v1beta1/tx.js +1398 -0
  377. package/cosmos/upgrade/module/v1/module.d.ts +36 -0
  378. package/cosmos/upgrade/module/v1/module.js +83 -0
  379. package/cosmos/upgrade/v1beta1/query.d.ts +423 -0
  380. package/cosmos/upgrade/v1beta1/query.js +764 -0
  381. package/cosmos/upgrade/v1beta1/query.rpc.func.d.ts +12 -0
  382. package/cosmos/upgrade/v1beta1/query.rpc.func.js +66 -0
  383. package/cosmos/upgrade/v1beta1/tx.d.ts +167 -0
  384. package/cosmos/upgrade/v1beta1/tx.js +304 -0
  385. package/cosmos/upgrade/v1beta1/tx.registry.d.ts +35 -0
  386. package/cosmos/upgrade/v1beta1/tx.registry.js +49 -0
  387. package/cosmos/upgrade/v1beta1/tx.rpc.func.d.ts +6 -0
  388. package/cosmos/upgrade/v1beta1/tx.rpc.func.js +27 -0
  389. package/cosmos/upgrade/v1beta1/upgrade.d.ts +245 -0
  390. package/cosmos/upgrade/v1beta1/upgrade.js +416 -0
  391. package/cosmos/validate/module/v1/module.d.ts +32 -0
  392. package/cosmos/validate/module/v1/module.js +70 -0
  393. package/cosmos/vesting/module/v1/module.d.ts +32 -0
  394. package/cosmos/vesting/module/v1/module.js +70 -0
  395. package/cosmos/vesting/v1beta1/tx.d.ts +256 -0
  396. package/cosmos/vesting/v1beta1/tx.js +553 -0
  397. package/cosmos/vesting/v1beta1/tx.registry.d.ts +47 -0
  398. package/cosmos/vesting/v1beta1/tx.registry.js +67 -0
  399. package/cosmos/vesting/v1beta1/tx.rpc.func.d.ts +8 -0
  400. package/cosmos/vesting/v1beta1/tx.rpc.func.js +37 -0
  401. package/cosmos/vesting/v1beta1/vesting.d.ts +256 -0
  402. package/cosmos/vesting/v1beta1/vesting.js +586 -0
  403. package/cosmos_proto/cosmos.d.ts +153 -0
  404. package/cosmos_proto/cosmos.js +234 -0
  405. package/cosmwasm/wasm/v1/authz.d.ts +500 -0
  406. package/cosmwasm/wasm/v1/authz.js +924 -0
  407. package/cosmwasm/wasm/v1/genesis.d.ts +153 -0
  408. package/cosmwasm/wasm/v1/genesis.js +454 -0
  409. package/cosmwasm/wasm/v1/ibc.d.ts +132 -0
  410. package/cosmwasm/wasm/v1/ibc.js +276 -0
  411. package/cosmwasm/wasm/v1/proposal_legacy.d.ts +872 -0
  412. package/cosmwasm/wasm/v1/proposal_legacy.js +1784 -0
  413. package/cosmwasm/wasm/v1/query.d.ts +922 -0
  414. package/cosmwasm/wasm/v1/query.js +2022 -0
  415. package/cosmwasm/wasm/v1/query.rpc.func.d.ts +24 -0
  416. package/cosmwasm/wasm/v1/query.rpc.func.js +138 -0
  417. package/cosmwasm/wasm/v1/tx.d.ts +1534 -0
  418. package/cosmwasm/wasm/v1/tx.js +3236 -0
  419. package/cosmwasm/wasm/v1/tx.registry.d.ts +215 -0
  420. package/cosmwasm/wasm/v1/tx.registry.js +319 -0
  421. package/cosmwasm/wasm/v1/tx.rpc.func.d.ts +36 -0
  422. package/cosmwasm/wasm/v1/tx.rpc.func.js +177 -0
  423. package/cosmwasm/wasm/v1/types.d.ts +374 -0
  424. package/cosmwasm/wasm/v1/types.js +917 -0
  425. package/dist/package.json +48 -0
  426. package/esm/amino/amino.js +1 -0
  427. package/esm/binary.js +365 -0
  428. package/esm/cosmos/app/runtime/v1alpha1/module.js +290 -0
  429. package/esm/cosmos/app/runtime/v2/module.js +419 -0
  430. package/esm/cosmos/app/v1alpha1/config.js +294 -0
  431. package/esm/cosmos/app/v1alpha1/module.js +278 -0
  432. package/esm/cosmos/app/v1alpha1/query.js +146 -0
  433. package/esm/cosmos/app/v1alpha1/query.rpc.func.js +14 -0
  434. package/esm/cosmos/auth/module/v1/module.js +200 -0
  435. package/esm/cosmos/auth/v1beta1/accounts.js +159 -0
  436. package/esm/cosmos/auth/v1beta1/auth.js +442 -0
  437. package/esm/cosmos/auth/v1beta1/genesis.js +97 -0
  438. package/esm/cosmos/auth/v1beta1/query.js +1558 -0
  439. package/esm/cosmos/auth/v1beta1/query.rpc.func.js +113 -0
  440. package/esm/cosmos/auth/v1beta1/tx.js +158 -0
  441. package/esm/cosmos/auth/v1beta1/tx.registry.js +28 -0
  442. package/esm/cosmos/auth/v1beta1/tx.rpc.func.js +13 -0
  443. package/esm/cosmos/authz/module/v1/module.js +67 -0
  444. package/esm/cosmos/authz/v1beta1/authz.js +368 -0
  445. package/esm/cosmos/authz/v1beta1/event.js +206 -0
  446. package/esm/cosmos/authz/v1beta1/genesis.js +84 -0
  447. package/esm/cosmos/authz/v1beta1/query.js +577 -0
  448. package/esm/cosmos/authz/v1beta1/query.rpc.func.js +36 -0
  449. package/esm/cosmos/authz/v1beta1/tx.js +513 -0
  450. package/esm/cosmos/authz/v1beta1/tx.registry.js +64 -0
  451. package/esm/cosmos/authz/v1beta1/tx.rpc.func.js +31 -0
  452. package/esm/cosmos/autocli/v1/options.js +831 -0
  453. package/esm/cosmos/autocli/v1/query.js +234 -0
  454. package/esm/cosmos/autocli/v1/query.rpc.func.js +14 -0
  455. package/esm/cosmos/bank/module/v1/module.js +110 -0
  456. package/esm/cosmos/bank/v1beta1/authz.js +99 -0
  457. package/esm/cosmos/bank/v1beta1/bank.js +723 -0
  458. package/esm/cosmos/bank/v1beta1/genesis.js +235 -0
  459. package/esm/cosmos/bank/v1beta1/query.js +2314 -0
  460. package/esm/cosmos/bank/v1beta1/query.rpc.func.js +146 -0
  461. package/esm/cosmos/bank/v1beta1/tx.js +663 -0
  462. package/esm/cosmos/bank/v1beta1/tx.registry.js +82 -0
  463. package/esm/cosmos/bank/v1beta1/tx.rpc.func.js +40 -0
  464. package/esm/cosmos/base/abci/v1beta1/abci.js +1290 -0
  465. package/esm/cosmos/base/grpc/v2/service.js +395 -0
  466. package/esm/cosmos/base/grpc/v2/service.rpc.func.js +25 -0
  467. package/esm/cosmos/base/node/v1beta1/query.js +374 -0
  468. package/esm/cosmos/base/node/v1beta1/query.rpc.func.js +25 -0
  469. package/esm/cosmos/base/query/v1beta1/pagination.js +219 -0
  470. package/esm/cosmos/base/reflection/v1beta1/reflection.js +307 -0
  471. package/esm/cosmos/base/reflection/v1beta1/reflection.rpc.func.js +25 -0
  472. package/esm/cosmos/base/reflection/v2alpha1/reflection.js +2156 -0
  473. package/esm/cosmos/base/reflection/v2alpha1/reflection.rpc.func.js +69 -0
  474. package/esm/cosmos/base/tendermint/v1beta1/query.js +1884 -0
  475. package/esm/cosmos/base/tendermint/v1beta1/query.rpc.func.js +80 -0
  476. package/esm/cosmos/base/tendermint/v1beta1/types.js +355 -0
  477. package/esm/cosmos/base/v1beta1/coin.js +338 -0
  478. package/esm/cosmos/circuit/module/v1/module.js +80 -0
  479. package/esm/cosmos/circuit/v1/query.js +477 -0
  480. package/esm/cosmos/circuit/v1/query.rpc.func.js +36 -0
  481. package/esm/cosmos/circuit/v1/tx.js +525 -0
  482. package/esm/cosmos/circuit/v1/tx.registry.js +64 -0
  483. package/esm/cosmos/circuit/v1/tx.rpc.func.js +31 -0
  484. package/esm/cosmos/circuit/v1/types.js +345 -0
  485. package/esm/cosmos/consensus/module/v1/module.js +80 -0
  486. package/esm/cosmos/consensus/v1/query.js +146 -0
  487. package/esm/cosmos/consensus/v1/query.rpc.func.js +14 -0
  488. package/esm/cosmos/consensus/v1/tx.js +194 -0
  489. package/esm/cosmos/consensus/v1/tx.registry.js +28 -0
  490. package/esm/cosmos/consensus/v1/tx.rpc.func.js +13 -0
  491. package/esm/cosmos/crisis/module/v1/module.js +92 -0
  492. package/esm/cosmos/crisis/v1beta1/genesis.js +81 -0
  493. package/esm/cosmos/crisis/v1beta1/tx.js +325 -0
  494. package/esm/cosmos/crisis/v1beta1/tx.registry.js +46 -0
  495. package/esm/cosmos/crisis/v1beta1/tx.rpc.func.js +22 -0
  496. package/esm/cosmos/crypto/ed25519/keys.js +159 -0
  497. package/esm/cosmos/crypto/hd/v1/hd.js +128 -0
  498. package/esm/cosmos/crypto/keyring/v1/record.js +428 -0
  499. package/esm/cosmos/crypto/multisig/keys.js +96 -0
  500. package/esm/cosmos/crypto/multisig/v1beta1/multisig.js +174 -0
  501. package/esm/cosmos/crypto/secp256k1/keys.js +159 -0
  502. package/esm/cosmos/crypto/secp256r1/keys.js +159 -0
  503. package/esm/cosmos/distribution/module/v1/module.js +92 -0
  504. package/esm/cosmos/distribution/v1beta1/distribution.js +1155 -0
  505. package/esm/cosmos/distribution/v1beta1/genesis.js +892 -0
  506. package/esm/cosmos/distribution/v1beta1/query.js +1659 -0
  507. package/esm/cosmos/distribution/v1beta1/query.rpc.func.js +113 -0
  508. package/esm/cosmos/distribution/v1beta1/tx.js +1142 -0
  509. package/esm/cosmos/distribution/v1beta1/tx.registry.js +136 -0
  510. package/esm/cosmos/distribution/v1beta1/tx.rpc.func.js +67 -0
  511. package/esm/cosmos/evidence/module/v1/module.js +67 -0
  512. package/esm/cosmos/evidence/v1beta1/evidence.js +118 -0
  513. package/esm/cosmos/evidence/v1beta1/genesis.js +84 -0
  514. package/esm/cosmos/evidence/v1beta1/query.js +344 -0
  515. package/esm/cosmos/evidence/v1beta1/query.rpc.func.js +25 -0
  516. package/esm/cosmos/evidence/v1beta1/tx.js +172 -0
  517. package/esm/cosmos/evidence/v1beta1/tx.registry.js +28 -0
  518. package/esm/cosmos/evidence/v1beta1/tx.rpc.func.js +13 -0
  519. package/esm/cosmos/feegrant/module/v1/module.js +67 -0
  520. package/esm/cosmos/feegrant/v1beta1/feegrant.js +427 -0
  521. package/esm/cosmos/feegrant/v1beta1/genesis.js +84 -0
  522. package/esm/cosmos/feegrant/v1beta1/query.js +538 -0
  523. package/esm/cosmos/feegrant/v1beta1/query.rpc.func.js +36 -0
  524. package/esm/cosmos/feegrant/v1beta1/tx.js +468 -0
  525. package/esm/cosmos/feegrant/v1beta1/tx.registry.js +64 -0
  526. package/esm/cosmos/feegrant/v1beta1/tx.rpc.func.js +31 -0
  527. package/esm/cosmos/genutil/module/v1/module.js +67 -0
  528. package/esm/cosmos/genutil/v1beta1/genesis.js +84 -0
  529. package/esm/cosmos/gov/module/v1/module.js +92 -0
  530. package/esm/cosmos/gov/v1/genesis.js +186 -0
  531. package/esm/cosmos/gov/v1/gov.js +1356 -0
  532. package/esm/cosmos/gov/v1/query.js +1561 -0
  533. package/esm/cosmos/gov/v1/query.rpc.func.js +102 -0
  534. package/esm/cosmos/gov/v1/tx.js +1274 -0
  535. package/esm/cosmos/gov/v1/tx.registry.js +136 -0
  536. package/esm/cosmos/gov/v1/tx.rpc.func.js +67 -0
  537. package/esm/cosmos/gov/v1beta1/genesis.js +162 -0
  538. package/esm/cosmos/gov/v1beta1/gov.js +1107 -0
  539. package/esm/cosmos/gov/v1beta1/query.js +1406 -0
  540. package/esm/cosmos/gov/v1beta1/query.rpc.func.js +91 -0
  541. package/esm/cosmos/gov/v1beta1/tx.js +696 -0
  542. package/esm/cosmos/gov/v1beta1/tx.registry.js +82 -0
  543. package/esm/cosmos/gov/v1beta1/tx.rpc.func.js +40 -0
  544. package/esm/cosmos/group/module/v1/module.js +93 -0
  545. package/esm/cosmos/group/v1/events.js +844 -0
  546. package/esm/cosmos/group/v1/genesis.js +180 -0
  547. package/esm/cosmos/group/v1/query.js +2431 -0
  548. package/esm/cosmos/group/v1/query.rpc.func.js +157 -0
  549. package/esm/cosmos/group/v1/tx.js +2562 -0
  550. package/esm/cosmos/group/v1/tx.registry.js +262 -0
  551. package/esm/cosmos/group/v1/tx.rpc.func.js +130 -0
  552. package/esm/cosmos/group/v1/types.js +1533 -0
  553. package/esm/cosmos/ics23/v1/proofs.js +1598 -0
  554. package/esm/cosmos/mint/module/v1/module.js +92 -0
  555. package/esm/cosmos/mint/v1beta1/genesis.js +93 -0
  556. package/esm/cosmos/mint/v1beta1/mint.js +230 -0
  557. package/esm/cosmos/mint/v1beta1/query.js +433 -0
  558. package/esm/cosmos/mint/v1beta1/query.rpc.func.js +36 -0
  559. package/esm/cosmos/mint/v1beta1/tx.js +158 -0
  560. package/esm/cosmos/mint/v1beta1/tx.registry.js +28 -0
  561. package/esm/cosmos/mint/v1beta1/tx.rpc.func.js +13 -0
  562. package/esm/cosmos/msg/textual/v1/textual.js +1 -0
  563. package/esm/cosmos/msg/v1/msg.js +1 -0
  564. package/esm/cosmos/nft/module/v1/module.js +67 -0
  565. package/esm/cosmos/nft/v1beta1/event.js +320 -0
  566. package/esm/cosmos/nft/v1beta1/genesis.js +192 -0
  567. package/esm/cosmos/nft/v1beta1/nft.js +279 -0
  568. package/esm/cosmos/nft/v1beta1/query.js +1186 -0
  569. package/esm/cosmos/nft/v1beta1/query.rpc.func.js +80 -0
  570. package/esm/cosmos/nft/v1beta1/tx.js +181 -0
  571. package/esm/cosmos/nft/v1beta1/tx.registry.js +28 -0
  572. package/esm/cosmos/nft/v1beta1/tx.rpc.func.js +13 -0
  573. package/esm/cosmos/orm/module/v1alpha1/module.js +67 -0
  574. package/esm/cosmos/orm/query/v1alpha1/query.js +748 -0
  575. package/esm/cosmos/orm/query/v1alpha1/query.rpc.func.js +25 -0
  576. package/esm/cosmos/orm/v1/orm.js +377 -0
  577. package/esm/cosmos/orm/v1alpha1/schema.js +253 -0
  578. package/esm/cosmos/params/module/v1/module.js +67 -0
  579. package/esm/cosmos/params/v1beta1/params.js +209 -0
  580. package/esm/cosmos/params/v1beta1/query.js +410 -0
  581. package/esm/cosmos/params/v1beta1/query.rpc.func.js +25 -0
  582. package/esm/cosmos/query/v1/query.js +1 -0
  583. package/esm/cosmos/reflection/v1/reflection.js +149 -0
  584. package/esm/cosmos/reflection/v1/reflection.rpc.func.js +14 -0
  585. package/esm/cosmos/slashing/module/v1/module.js +80 -0
  586. package/esm/cosmos/slashing/v1beta1/genesis.js +384 -0
  587. package/esm/cosmos/slashing/v1beta1/query.js +474 -0
  588. package/esm/cosmos/slashing/v1beta1/query.rpc.func.js +36 -0
  589. package/esm/cosmos/slashing/v1beta1/slashing.js +269 -0
  590. package/esm/cosmos/slashing/v1beta1/tx.js +301 -0
  591. package/esm/cosmos/slashing/v1beta1/tx.registry.js +46 -0
  592. package/esm/cosmos/slashing/v1beta1/tx.rpc.func.js +22 -0
  593. package/esm/cosmos/staking/module/v1/module.js +119 -0
  594. package/esm/cosmos/staking/v1beta1/authz.js +259 -0
  595. package/esm/cosmos/staking/v1beta1/genesis.js +271 -0
  596. package/esm/cosmos/staking/v1beta1/query.js +2411 -0
  597. package/esm/cosmos/staking/v1beta1/query.rpc.func.js +157 -0
  598. package/esm/cosmos/staking/v1beta1/staking.js +2364 -0
  599. package/esm/cosmos/staking/v1beta1/tx.js +1287 -0
  600. package/esm/cosmos/staking/v1beta1/tx.registry.js +136 -0
  601. package/esm/cosmos/staking/v1beta1/tx.rpc.func.js +67 -0
  602. package/esm/cosmos/store/internal/kv/v1beta1/kv.js +174 -0
  603. package/esm/cosmos/store/snapshots/v1/snapshot.js +684 -0
  604. package/esm/cosmos/store/snapshots/v2/snapshot.js +684 -0
  605. package/esm/cosmos/store/streaming/abci/grpc.js +329 -0
  606. package/esm/cosmos/store/v1beta1/commit_info.js +289 -0
  607. package/esm/cosmos/store/v1beta1/listening.js +220 -0
  608. package/esm/cosmos/streaming/v1/grpc.js +823 -0
  609. package/esm/cosmos/tx/config/v1/config.js +92 -0
  610. package/esm/cosmos/tx/signing/v1beta1/signing.js +565 -0
  611. package/esm/cosmos/tx/v1beta1/service.js +1722 -0
  612. package/esm/cosmos/tx/v1beta1/service.rpc.func.js +102 -0
  613. package/esm/cosmos/tx/v1beta1/tx.js +1395 -0
  614. package/esm/cosmos/upgrade/module/v1/module.js +80 -0
  615. package/esm/cosmos/upgrade/v1beta1/query.js +761 -0
  616. package/esm/cosmos/upgrade/v1beta1/query.rpc.func.js +58 -0
  617. package/esm/cosmos/upgrade/v1beta1/tx.js +301 -0
  618. package/esm/cosmos/upgrade/v1beta1/tx.registry.js +46 -0
  619. package/esm/cosmos/upgrade/v1beta1/tx.rpc.func.js +22 -0
  620. package/esm/cosmos/upgrade/v1beta1/upgrade.js +413 -0
  621. package/esm/cosmos/validate/module/v1/module.js +67 -0
  622. package/esm/cosmos/vesting/module/v1/module.js +67 -0
  623. package/esm/cosmos/vesting/v1beta1/tx.js +550 -0
  624. package/esm/cosmos/vesting/v1beta1/tx.registry.js +64 -0
  625. package/esm/cosmos/vesting/v1beta1/tx.rpc.func.js +31 -0
  626. package/esm/cosmos/vesting/v1beta1/vesting.js +583 -0
  627. package/esm/cosmos_proto/cosmos.js +229 -0
  628. package/esm/cosmwasm/wasm/v1/authz.js +921 -0
  629. package/esm/cosmwasm/wasm/v1/genesis.js +451 -0
  630. package/esm/cosmwasm/wasm/v1/ibc.js +273 -0
  631. package/esm/cosmwasm/wasm/v1/proposal_legacy.js +1781 -0
  632. package/esm/cosmwasm/wasm/v1/query.js +2019 -0
  633. package/esm/cosmwasm/wasm/v1/query.rpc.func.js +124 -0
  634. package/esm/cosmwasm/wasm/v1/tx.js +3233 -0
  635. package/esm/cosmwasm/wasm/v1/tx.registry.js +316 -0
  636. package/esm/cosmwasm/wasm/v1/tx.rpc.func.js +157 -0
  637. package/esm/cosmwasm/wasm/v1/types.js +910 -0
  638. package/esm/ethermint/crypto/v1/ethsecp256k1/keys.js +143 -0
  639. package/esm/ethermint/evm/v1/events.js +381 -0
  640. package/esm/ethermint/evm/v1/evm.js +1181 -0
  641. package/esm/ethermint/evm/v1/genesis.js +185 -0
  642. package/esm/ethermint/evm/v1/query.js +1970 -0
  643. package/esm/ethermint/evm/v1/query.rpc.func.js +136 -0
  644. package/esm/ethermint/evm/v1/tx.js +1008 -0
  645. package/esm/ethermint/evm/v1/tx.registry.js +46 -0
  646. package/esm/ethermint/evm/v1/tx.rpc.func.js +22 -0
  647. package/esm/ethermint/feemarket/v1/events.js +154 -0
  648. package/esm/ethermint/feemarket/v1/feemarket.js +152 -0
  649. package/esm/ethermint/feemarket/v1/genesis.js +85 -0
  650. package/esm/ethermint/feemarket/v1/query.js +384 -0
  651. package/esm/ethermint/feemarket/v1/query.rpc.func.js +36 -0
  652. package/esm/ethermint/feemarket/v1/tx.js +150 -0
  653. package/esm/ethermint/feemarket/v1/tx.registry.js +28 -0
  654. package/esm/ethermint/feemarket/v1/tx.rpc.func.js +13 -0
  655. package/esm/ethermint/types/v1/account.js +85 -0
  656. package/esm/ethermint/types/v1/dynamic_fee.js +72 -0
  657. package/esm/ethermint/types/v1/indexer.js +144 -0
  658. package/esm/ethermint/types/v1/web3.js +97 -0
  659. package/esm/extern.js +30 -0
  660. package/esm/gogoproto/gogo.js +1 -0
  661. package/esm/google/api/annotations.js +1 -0
  662. package/esm/google/api/http.js +350 -0
  663. package/esm/google/protobuf/any.js +78 -0
  664. package/esm/google/protobuf/descriptor.js +5062 -0
  665. package/esm/google/protobuf/duration.js +78 -0
  666. package/esm/google/protobuf/timestamp.js +75 -0
  667. package/esm/helper-func-types.js +50 -0
  668. package/esm/helpers.js +128 -0
  669. package/esm/ibc/applications/fee/v1/ack.js +105 -0
  670. package/esm/ibc/applications/fee/v1/fee.js +394 -0
  671. package/esm/ibc/applications/fee/v1/genesis.js +529 -0
  672. package/esm/ibc/applications/fee/v1/metadata.js +92 -0
  673. package/esm/ibc/applications/fee/v1/query.js +1729 -0
  674. package/esm/ibc/applications/fee/v1/query.rpc.func.js +113 -0
  675. package/esm/ibc/applications/fee/v1/tx.js +711 -0
  676. package/esm/ibc/applications/fee/v1/tx.registry.js +82 -0
  677. package/esm/ibc/applications/fee/v1/tx.rpc.func.js +40 -0
  678. package/esm/ibc/applications/interchain_accounts/controller/v1/controller.js +80 -0
  679. package/esm/ibc/applications/interchain_accounts/controller/v1/query.js +314 -0
  680. package/esm/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.js +25 -0
  681. package/esm/ibc/applications/interchain_accounts/controller/v1/tx.js +556 -0
  682. package/esm/ibc/applications/interchain_accounts/controller/v1/tx.registry.js +64 -0
  683. package/esm/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.js +31 -0
  684. package/esm/ibc/applications/interchain_accounts/genesis/v1/genesis.js +553 -0
  685. package/esm/ibc/applications/interchain_accounts/host/v1/host.js +186 -0
  686. package/esm/ibc/applications/interchain_accounts/host/v1/query.js +146 -0
  687. package/esm/ibc/applications/interchain_accounts/host/v1/query.rpc.func.js +14 -0
  688. package/esm/ibc/applications/interchain_accounts/host/v1/tx.js +345 -0
  689. package/esm/ibc/applications/interchain_accounts/host/v1/tx.registry.js +46 -0
  690. package/esm/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.js +22 -0
  691. package/esm/ibc/applications/interchain_accounts/v1/account.js +93 -0
  692. package/esm/ibc/applications/interchain_accounts/v1/metadata.js +140 -0
  693. package/esm/ibc/applications/interchain_accounts/v1/packet.js +225 -0
  694. package/esm/ibc/applications/transfer/v1/authz.js +219 -0
  695. package/esm/ibc/applications/transfer/v1/genesis.js +124 -0
  696. package/esm/ibc/applications/transfer/v1/query.js +955 -0
  697. package/esm/ibc/applications/transfer/v1/query.rpc.func.js +69 -0
  698. package/esm/ibc/applications/transfer/v1/transfer.js +182 -0
  699. package/esm/ibc/applications/transfer/v1/tx.js +399 -0
  700. package/esm/ibc/applications/transfer/v1/tx.registry.js +46 -0
  701. package/esm/ibc/applications/transfer/v1/tx.rpc.func.js +22 -0
  702. package/esm/ibc/applications/transfer/v2/packet.js +128 -0
  703. package/esm/ibc/core/channel/v1/channel.js +1160 -0
  704. package/esm/ibc/core/channel/v1/genesis.js +300 -0
  705. package/esm/ibc/core/channel/v1/query.js +3396 -0
  706. package/esm/ibc/core/channel/v1/query.rpc.func.js +190 -0
  707. package/esm/ibc/core/channel/v1/tx.js +4022 -0
  708. package/esm/ibc/core/channel/v1/tx.registry.js +352 -0
  709. package/esm/ibc/core/channel/v1/tx.rpc.func.js +175 -0
  710. package/esm/ibc/core/channel/v1/upgrade.js +301 -0
  711. package/esm/ibc/core/client/v1/client.js +672 -0
  712. package/esm/ibc/core/client/v1/genesis.js +334 -0
  713. package/esm/ibc/core/client/v1/query.js +1753 -0
  714. package/esm/ibc/core/client/v1/query.rpc.func.js +113 -0
  715. package/esm/ibc/core/client/v1/tx.js +1199 -0
  716. package/esm/ibc/core/client/v1/tx.registry.js +136 -0
  717. package/esm/ibc/core/client/v1/tx.rpc.func.js +67 -0
  718. package/esm/ibc/core/commitment/v1/commitment.js +322 -0
  719. package/esm/ibc/core/connection/v1/connection.js +776 -0
  720. package/esm/ibc/core/connection/v1/genesis.js +123 -0
  721. package/esm/ibc/core/connection/v1/query.js +1092 -0
  722. package/esm/ibc/core/connection/v1/query.rpc.func.js +69 -0
  723. package/esm/ibc/core/connection/v1/tx.js +1084 -0
  724. package/esm/ibc/core/connection/v1/tx.registry.js +100 -0
  725. package/esm/ibc/core/connection/v1/tx.rpc.func.js +49 -0
  726. package/esm/ibc/core/types/v1/genesis.js +107 -0
  727. package/esm/ibc/lightclients/localhost/v2/localhost.js +81 -0
  728. package/esm/ibc/lightclients/solomachine/v2/solomachine.js +1684 -0
  729. package/esm/ibc/lightclients/solomachine/v3/solomachine.js +844 -0
  730. package/esm/ibc/lightclients/tendermint/v1/tendermint.js +622 -0
  731. package/esm/ibc/lightclients/wasm/v1/genesis.js +162 -0
  732. package/esm/ibc/lightclients/wasm/v1/query.js +331 -0
  733. package/esm/ibc/lightclients/wasm/v1/query.rpc.func.js +25 -0
  734. package/esm/ibc/lightclients/wasm/v1/tx.js +505 -0
  735. package/esm/ibc/lightclients/wasm/v1/tx.registry.js +64 -0
  736. package/esm/ibc/lightclients/wasm/v1/tx.rpc.func.js +31 -0
  737. package/esm/ibc/lightclients/wasm/v1/wasm.js +343 -0
  738. package/esm/react-query.js +83 -0
  739. package/esm/registry.js +154 -0
  740. package/esm/tendermint/abci/types.js +5217 -0
  741. package/esm/tendermint/crypto/keys.js +85 -0
  742. package/esm/tendermint/crypto/proof.js +455 -0
  743. package/esm/tendermint/p2p/types.js +427 -0
  744. package/esm/tendermint/types/block.js +110 -0
  745. package/esm/tendermint/types/evidence.js +400 -0
  746. package/esm/tendermint/types/params.js +592 -0
  747. package/esm/tendermint/types/types.js +1749 -0
  748. package/esm/tendermint/types/validator.js +337 -0
  749. package/esm/tendermint/version/types.js +166 -0
  750. package/esm/types.js +6 -0
  751. package/esm/utf8.js +136 -0
  752. package/esm/varint.js +407 -0
  753. package/esm/xpla/reward/v1beta1/genesis.js +73 -0
  754. package/esm/xpla/reward/v1beta1/query.js +261 -0
  755. package/esm/xpla/reward/v1beta1/query.rpc.func.js +25 -0
  756. package/esm/xpla/reward/v1beta1/reward.js +128 -0
  757. package/esm/xpla/reward/v1beta1/tx.js +301 -0
  758. package/esm/xpla/reward/v1beta1/tx.registry.js +46 -0
  759. package/esm/xpla/reward/v1beta1/tx.rpc.func.js +22 -0
  760. package/esm/xpla/volunteer/v1beta1/genesis.js +76 -0
  761. package/esm/xpla/volunteer/v1beta1/proposal.js +534 -0
  762. package/esm/xpla/volunteer/v1beta1/query.js +132 -0
  763. package/esm/xpla/volunteer/v1beta1/query.rpc.func.js +14 -0
  764. package/esm/xpla/volunteer/v1beta1/tx.js +348 -0
  765. package/esm/xpla/volunteer/v1beta1/tx.registry.js +46 -0
  766. package/esm/xpla/volunteer/v1beta1/tx.rpc.func.js +22 -0
  767. package/esm/xpla/volunteer/v1beta1/volunteervalidator.js +84 -0
  768. package/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +80 -0
  769. package/ethermint/crypto/v1/ethsecp256k1/keys.js +146 -0
  770. package/ethermint/evm/v1/events.d.ts +162 -0
  771. package/ethermint/evm/v1/events.js +384 -0
  772. package/ethermint/evm/v1/evm.d.ts +530 -0
  773. package/ethermint/evm/v1/evm.js +1184 -0
  774. package/ethermint/evm/v1/genesis.d.ts +87 -0
  775. package/ethermint/evm/v1/genesis.js +188 -0
  776. package/ethermint/evm/v1/query.d.ts +913 -0
  777. package/ethermint/evm/v1/query.js +1973 -0
  778. package/ethermint/evm/v1/query.rpc.func.d.ts +27 -0
  779. package/ethermint/evm/v1/query.rpc.func.js +151 -0
  780. package/ethermint/evm/v1/tx.d.ts +452 -0
  781. package/ethermint/evm/v1/tx.js +1011 -0
  782. package/ethermint/evm/v1/tx.registry.d.ts +35 -0
  783. package/ethermint/evm/v1/tx.registry.js +49 -0
  784. package/ethermint/evm/v1/tx.rpc.func.d.ts +6 -0
  785. package/ethermint/evm/v1/tx.rpc.func.js +27 -0
  786. package/ethermint/feemarket/v1/events.d.ts +70 -0
  787. package/ethermint/feemarket/v1/events.js +157 -0
  788. package/ethermint/feemarket/v1/feemarket.d.ts +78 -0
  789. package/ethermint/feemarket/v1/feemarket.js +155 -0
  790. package/ethermint/feemarket/v1/genesis.d.ts +45 -0
  791. package/ethermint/feemarket/v1/genesis.js +88 -0
  792. package/ethermint/feemarket/v1/query.d.ts +195 -0
  793. package/ethermint/feemarket/v1/query.js +387 -0
  794. package/ethermint/feemarket/v1/query.rpc.func.d.ts +8 -0
  795. package/ethermint/feemarket/v1/query.rpc.func.js +42 -0
  796. package/ethermint/feemarket/v1/tx.d.ts +81 -0
  797. package/ethermint/feemarket/v1/tx.js +153 -0
  798. package/ethermint/feemarket/v1/tx.registry.d.ts +23 -0
  799. package/ethermint/feemarket/v1/tx.registry.js +31 -0
  800. package/ethermint/feemarket/v1/tx.rpc.func.d.ts +4 -0
  801. package/ethermint/feemarket/v1/tx.rpc.func.js +17 -0
  802. package/ethermint/types/v1/account.d.ts +45 -0
  803. package/ethermint/types/v1/account.js +88 -0
  804. package/ethermint/types/v1/dynamic_fee.d.ts +34 -0
  805. package/ethermint/types/v1/dynamic_fee.js +75 -0
  806. package/ethermint/types/v1/indexer.d.ts +76 -0
  807. package/ethermint/types/v1/indexer.js +147 -0
  808. package/ethermint/types/v1/web3.d.ts +66 -0
  809. package/ethermint/types/v1/web3.js +100 -0
  810. package/extern.d.ts +10 -0
  811. package/extern.js +36 -0
  812. package/gogoproto/gogo.d.ts +1 -0
  813. package/gogoproto/gogo.js +2 -0
  814. package/google/api/annotations.d.ts +1 -0
  815. package/google/api/annotations.js +2 -0
  816. package/google/api/http.d.ts +764 -0
  817. package/google/api/http.js +353 -0
  818. package/google/protobuf/any.d.ts +268 -0
  819. package/google/protobuf/any.js +81 -0
  820. package/google/protobuf/descriptor.d.ts +2919 -0
  821. package/google/protobuf/descriptor.js +5100 -0
  822. package/google/protobuf/duration.d.ts +162 -0
  823. package/google/protobuf/duration.js +81 -0
  824. package/google/protobuf/timestamp.d.ts +222 -0
  825. package/google/protobuf/timestamp.js +78 -0
  826. package/helper-func-types.d.ts +117 -0
  827. package/helper-func-types.js +55 -0
  828. package/helpers.d.ts +82 -0
  829. package/helpers.js +143 -0
  830. package/ibc/applications/fee/v1/ack.d.ts +44 -0
  831. package/ibc/applications/fee/v1/ack.js +108 -0
  832. package/ibc/applications/fee/v1/fee.d.ts +160 -0
  833. package/ibc/applications/fee/v1/fee.js +397 -0
  834. package/ibc/applications/fee/v1/genesis.d.ts +220 -0
  835. package/ibc/applications/fee/v1/genesis.js +532 -0
  836. package/ibc/applications/fee/v1/metadata.d.ts +46 -0
  837. package/ibc/applications/fee/v1/metadata.js +95 -0
  838. package/ibc/applications/fee/v1/query.d.ts +737 -0
  839. package/ibc/applications/fee/v1/query.js +1732 -0
  840. package/ibc/applications/fee/v1/query.rpc.func.d.ts +22 -0
  841. package/ibc/applications/fee/v1/query.rpc.func.js +126 -0
  842. package/ibc/applications/fee/v1/tx.d.ts +318 -0
  843. package/ibc/applications/fee/v1/tx.js +714 -0
  844. package/ibc/applications/fee/v1/tx.registry.d.ts +59 -0
  845. package/ibc/applications/fee/v1/tx.registry.js +85 -0
  846. package/ibc/applications/fee/v1/tx.rpc.func.d.ts +10 -0
  847. package/ibc/applications/fee/v1/tx.rpc.func.js +47 -0
  848. package/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +42 -0
  849. package/ibc/applications/interchain_accounts/controller/v1/controller.js +83 -0
  850. package/ibc/applications/interchain_accounts/controller/v1/query.d.ts +133 -0
  851. package/ibc/applications/interchain_accounts/controller/v1/query.js +317 -0
  852. package/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.d.ts +6 -0
  853. package/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.js +30 -0
  854. package/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +231 -0
  855. package/ibc/applications/interchain_accounts/controller/v1/tx.js +559 -0
  856. package/ibc/applications/interchain_accounts/controller/v1/tx.registry.d.ts +47 -0
  857. package/ibc/applications/interchain_accounts/controller/v1/tx.registry.js +67 -0
  858. package/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.d.ts +8 -0
  859. package/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.js +37 -0
  860. package/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +196 -0
  861. package/ibc/applications/interchain_accounts/genesis/v1/genesis.js +556 -0
  862. package/ibc/applications/interchain_accounts/host/v1/host.d.ts +102 -0
  863. package/ibc/applications/interchain_accounts/host/v1/host.js +189 -0
  864. package/ibc/applications/interchain_accounts/host/v1/query.d.ts +67 -0
  865. package/ibc/applications/interchain_accounts/host/v1/query.js +149 -0
  866. package/ibc/applications/interchain_accounts/host/v1/query.rpc.func.d.ts +4 -0
  867. package/ibc/applications/interchain_accounts/host/v1/query.rpc.func.js +18 -0
  868. package/ibc/applications/interchain_accounts/host/v1/tx.d.ts +155 -0
  869. package/ibc/applications/interchain_accounts/host/v1/tx.js +348 -0
  870. package/ibc/applications/interchain_accounts/host/v1/tx.registry.d.ts +35 -0
  871. package/ibc/applications/interchain_accounts/host/v1/tx.registry.js +49 -0
  872. package/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.d.ts +6 -0
  873. package/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.js +27 -0
  874. package/ibc/applications/interchain_accounts/v1/account.d.ts +37 -0
  875. package/ibc/applications/interchain_accounts/v1/account.js +96 -0
  876. package/ibc/applications/interchain_accounts/v1/metadata.d.ts +68 -0
  877. package/ibc/applications/interchain_accounts/v1/metadata.js +143 -0
  878. package/ibc/applications/interchain_accounts/v1/packet.d.ts +85 -0
  879. package/ibc/applications/interchain_accounts/v1/packet.js +230 -0
  880. package/ibc/applications/transfer/v1/authz.d.ts +99 -0
  881. package/ibc/applications/transfer/v1/authz.js +222 -0
  882. package/ibc/applications/transfer/v1/genesis.d.ts +50 -0
  883. package/ibc/applications/transfer/v1/genesis.js +127 -0
  884. package/ibc/applications/transfer/v1/query.d.ts +449 -0
  885. package/ibc/applications/transfer/v1/query.js +958 -0
  886. package/ibc/applications/transfer/v1/query.rpc.func.d.ts +14 -0
  887. package/ibc/applications/transfer/v1/query.rpc.func.js +78 -0
  888. package/ibc/applications/transfer/v1/transfer.d.ts +112 -0
  889. package/ibc/applications/transfer/v1/transfer.js +185 -0
  890. package/ibc/applications/transfer/v1/tx.d.ts +202 -0
  891. package/ibc/applications/transfer/v1/tx.js +402 -0
  892. package/ibc/applications/transfer/v1/tx.registry.d.ts +35 -0
  893. package/ibc/applications/transfer/v1/tx.registry.js +49 -0
  894. package/ibc/applications/transfer/v1/tx.rpc.func.d.ts +6 -0
  895. package/ibc/applications/transfer/v1/tx.rpc.func.js +27 -0
  896. package/ibc/applications/transfer/v2/packet.d.ts +60 -0
  897. package/ibc/applications/transfer/v2/packet.js +131 -0
  898. package/ibc/core/channel/v1/channel.d.ts +547 -0
  899. package/ibc/core/channel/v1/channel.js +1167 -0
  900. package/ibc/core/channel/v1/genesis.d.ts +95 -0
  901. package/ibc/core/channel/v1/genesis.js +303 -0
  902. package/ibc/core/channel/v1/query.d.ts +1525 -0
  903. package/ibc/core/channel/v1/query.js +3399 -0
  904. package/ibc/core/channel/v1/query.rpc.func.d.ts +36 -0
  905. package/ibc/core/channel/v1/query.rpc.func.js +210 -0
  906. package/ibc/core/channel/v1/tx.d.ts +1490 -0
  907. package/ibc/core/channel/v1/tx.js +4027 -0
  908. package/ibc/core/channel/v1/tx.registry.d.ts +239 -0
  909. package/ibc/core/channel/v1/tx.registry.js +355 -0
  910. package/ibc/core/channel/v1/tx.rpc.func.d.ts +40 -0
  911. package/ibc/core/channel/v1/tx.rpc.func.js +197 -0
  912. package/ibc/core/channel/v1/upgrade.d.ts +139 -0
  913. package/ibc/core/channel/v1/upgrade.js +304 -0
  914. package/ibc/core/client/v1/client.d.ts +372 -0
  915. package/ibc/core/client/v1/client.js +675 -0
  916. package/ibc/core/client/v1/genesis.d.ts +147 -0
  917. package/ibc/core/client/v1/genesis.js +337 -0
  918. package/ibc/core/client/v1/query.d.ts +862 -0
  919. package/ibc/core/client/v1/query.js +1756 -0
  920. package/ibc/core/client/v1/query.rpc.func.d.ts +22 -0
  921. package/ibc/core/client/v1/query.rpc.func.js +126 -0
  922. package/ibc/core/client/v1/tx.d.ts +587 -0
  923. package/ibc/core/client/v1/tx.js +1202 -0
  924. package/ibc/core/client/v1/tx.registry.d.ts +95 -0
  925. package/ibc/core/client/v1/tx.registry.js +139 -0
  926. package/ibc/core/client/v1/tx.rpc.func.d.ts +16 -0
  927. package/ibc/core/client/v1/tx.rpc.func.js +77 -0
  928. package/ibc/core/commitment/v1/commitment.d.ts +165 -0
  929. package/ibc/core/commitment/v1/commitment.js +325 -0
  930. package/ibc/core/connection/v1/connection.d.ts +376 -0
  931. package/ibc/core/connection/v1/connection.js +781 -0
  932. package/ibc/core/connection/v1/genesis.d.ts +43 -0
  933. package/ibc/core/connection/v1/genesis.js +126 -0
  934. package/ibc/core/connection/v1/query.d.ts +518 -0
  935. package/ibc/core/connection/v1/query.js +1095 -0
  936. package/ibc/core/connection/v1/query.rpc.func.d.ts +14 -0
  937. package/ibc/core/connection/v1/query.rpc.func.js +78 -0
  938. package/ibc/core/connection/v1/tx.d.ts +457 -0
  939. package/ibc/core/connection/v1/tx.js +1087 -0
  940. package/ibc/core/connection/v1/tx.registry.d.ts +71 -0
  941. package/ibc/core/connection/v1/tx.registry.js +103 -0
  942. package/ibc/core/connection/v1/tx.rpc.func.d.ts +12 -0
  943. package/ibc/core/connection/v1/tx.rpc.func.js +57 -0
  944. package/ibc/core/types/v1/genesis.d.ts +50 -0
  945. package/ibc/core/types/v1/genesis.js +110 -0
  946. package/ibc/lightclients/localhost/v2/localhost.d.ts +37 -0
  947. package/ibc/lightclients/localhost/v2/localhost.js +84 -0
  948. package/ibc/lightclients/solomachine/v2/solomachine.d.ts +711 -0
  949. package/ibc/lightclients/solomachine/v2/solomachine.js +1689 -0
  950. package/ibc/lightclients/solomachine/v3/solomachine.d.ts +357 -0
  951. package/ibc/lightclients/solomachine/v3/solomachine.js +847 -0
  952. package/ibc/lightclients/tendermint/v1/tendermint.d.ts +306 -0
  953. package/ibc/lightclients/tendermint/v1/tendermint.js +625 -0
  954. package/ibc/lightclients/wasm/v1/genesis.d.ts +70 -0
  955. package/ibc/lightclients/wasm/v1/genesis.js +165 -0
  956. package/ibc/lightclients/wasm/v1/query.d.ts +141 -0
  957. package/ibc/lightclients/wasm/v1/query.js +334 -0
  958. package/ibc/lightclients/wasm/v1/query.rpc.func.d.ts +6 -0
  959. package/ibc/lightclients/wasm/v1/query.rpc.func.js +30 -0
  960. package/ibc/lightclients/wasm/v1/tx.d.ts +218 -0
  961. package/ibc/lightclients/wasm/v1/tx.js +508 -0
  962. package/ibc/lightclients/wasm/v1/tx.registry.d.ts +47 -0
  963. package/ibc/lightclients/wasm/v1/tx.registry.js +67 -0
  964. package/ibc/lightclients/wasm/v1/tx.rpc.func.d.ts +8 -0
  965. package/ibc/lightclients/wasm/v1/tx.rpc.func.js +37 -0
  966. package/ibc/lightclients/wasm/v1/wasm.d.ts +163 -0
  967. package/ibc/lightclients/wasm/v1/wasm.js +346 -0
  968. package/package.json +3 -2
  969. package/react-query.d.ts +48 -0
  970. package/react-query.js +91 -0
  971. package/registry.d.ts +33 -0
  972. package/registry.js +158 -0
  973. package/tendermint/abci/types.d.ts +1843 -0
  974. package/tendermint/abci/types.js +5233 -0
  975. package/tendermint/crypto/keys.d.ts +34 -0
  976. package/tendermint/crypto/keys.js +88 -0
  977. package/tendermint/crypto/proof.d.ts +174 -0
  978. package/tendermint/crypto/proof.js +458 -0
  979. package/tendermint/p2p/types.d.ts +138 -0
  980. package/tendermint/p2p/types.js +430 -0
  981. package/tendermint/types/block.d.ts +38 -0
  982. package/tendermint/types/block.js +113 -0
  983. package/tendermint/types/evidence.d.ts +138 -0
  984. package/tendermint/types/evidence.js +403 -0
  985. package/tendermint/types/params.d.ts +323 -0
  986. package/tendermint/types/params.js +595 -0
  987. package/tendermint/types/types.d.ts +640 -0
  988. package/tendermint/types/types.js +1754 -0
  989. package/tendermint/types/validator.d.ts +113 -0
  990. package/tendermint/types/validator.js +342 -0
  991. package/tendermint/version/types.d.ts +82 -0
  992. package/tendermint/version/types.js +169 -0
  993. package/types.d.ts +124 -0
  994. package/types.js +7 -0
  995. package/utf8.d.ts +27 -0
  996. package/utf8.js +140 -0
  997. package/varint.d.ts +105 -0
  998. package/varint.js +425 -0
  999. package/xpla/reward/v1beta1/genesis.d.ts +35 -0
  1000. package/xpla/reward/v1beta1/genesis.js +76 -0
  1001. package/xpla/reward/v1beta1/query.d.ts +136 -0
  1002. package/xpla/reward/v1beta1/query.js +264 -0
  1003. package/xpla/reward/v1beta1/query.rpc.func.d.ts +6 -0
  1004. package/xpla/reward/v1beta1/query.rpc.func.js +30 -0
  1005. package/xpla/reward/v1beta1/reward.d.ts +42 -0
  1006. package/xpla/reward/v1beta1/reward.js +131 -0
  1007. package/xpla/reward/v1beta1/tx.d.ts +158 -0
  1008. package/xpla/reward/v1beta1/tx.js +304 -0
  1009. package/xpla/reward/v1beta1/tx.registry.d.ts +35 -0
  1010. package/xpla/reward/v1beta1/tx.registry.js +49 -0
  1011. package/xpla/reward/v1beta1/tx.rpc.func.d.ts +6 -0
  1012. package/xpla/reward/v1beta1/tx.rpc.func.js +27 -0
  1013. package/xpla/volunteer/v1beta1/genesis.d.ts +33 -0
  1014. package/xpla/volunteer/v1beta1/genesis.js +79 -0
  1015. package/xpla/volunteer/v1beta1/proposal.d.ts +183 -0
  1016. package/xpla/volunteer/v1beta1/proposal.js +537 -0
  1017. package/xpla/volunteer/v1beta1/query.d.ts +60 -0
  1018. package/xpla/volunteer/v1beta1/query.js +135 -0
  1019. package/xpla/volunteer/v1beta1/query.rpc.func.d.ts +4 -0
  1020. package/xpla/volunteer/v1beta1/query.rpc.func.js +18 -0
  1021. package/xpla/volunteer/v1beta1/tx.d.ts +168 -0
  1022. package/xpla/volunteer/v1beta1/tx.js +351 -0
  1023. package/xpla/volunteer/v1beta1/tx.registry.d.ts +35 -0
  1024. package/xpla/volunteer/v1beta1/tx.registry.js +49 -0
  1025. package/xpla/volunteer/v1beta1/tx.rpc.func.d.ts +6 -0
  1026. package/xpla/volunteer/v1beta1/tx.rpc.func.js +27 -0
  1027. package/xpla/volunteer/v1beta1/volunteervalidator.d.ts +38 -0
  1028. package/xpla/volunteer/v1beta1/volunteervalidator.js +87 -0
  1029. package/CHANGELOG.md +0 -8
  1030. package/src/amino/amino.ts +0 -1
  1031. package/src/binary.ts +0 -534
  1032. package/src/cosmos/app/runtime/v1alpha1/module.ts +0 -423
  1033. package/src/cosmos/app/runtime/v2/module.ts +0 -589
  1034. package/src/cosmos/app/v1alpha1/config.ts +0 -422
  1035. package/src/cosmos/app/v1alpha1/module.ts +0 -461
  1036. package/src/cosmos/app/v1alpha1/query.rpc.func.ts +0 -14
  1037. package/src/cosmos/app/v1alpha1/query.ts +0 -177
  1038. package/src/cosmos/auth/module/v1/module.ts +0 -253
  1039. package/src/cosmos/auth/v1beta1/accounts.ts +0 -226
  1040. package/src/cosmos/auth/v1beta1/auth.ts +0 -550
  1041. package/src/cosmos/auth/v1beta1/genesis.ts +0 -119
  1042. package/src/cosmos/auth/v1beta1/query.rpc.func.ts +0 -113
  1043. package/src/cosmos/auth/v1beta1/query.ts +0 -2034
  1044. package/src/cosmos/auth/v1beta1/tx.registry.ts +0 -29
  1045. package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +0 -13
  1046. package/src/cosmos/auth/v1beta1/tx.ts +0 -219
  1047. package/src/cosmos/authz/module/v1/module.ts +0 -80
  1048. package/src/cosmos/authz/v1beta1/authz.ts +0 -481
  1049. package/src/cosmos/authz/v1beta1/event.ts +0 -259
  1050. package/src/cosmos/authz/v1beta1/genesis.ts +0 -100
  1051. package/src/cosmos/authz/v1beta1/query.rpc.func.ts +0 -36
  1052. package/src/cosmos/authz/v1beta1/query.ts +0 -707
  1053. package/src/cosmos/authz/v1beta1/tx.registry.ts +0 -65
  1054. package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +0 -31
  1055. package/src/cosmos/authz/v1beta1/tx.ts +0 -647
  1056. package/src/cosmos/autocli/v1/options.ts +0 -1145
  1057. package/src/cosmos/autocli/v1/query.rpc.func.ts +0 -14
  1058. package/src/cosmos/autocli/v1/query.ts +0 -288
  1059. package/src/cosmos/bank/module/v1/module.ts +0 -153
  1060. package/src/cosmos/bank/v1beta1/authz.ts +0 -138
  1061. package/src/cosmos/bank/v1beta1/bank.ts +0 -974
  1062. package/src/cosmos/bank/v1beta1/genesis.ts +0 -307
  1063. package/src/cosmos/bank/v1beta1/query.rpc.func.ts +0 -146
  1064. package/src/cosmos/bank/v1beta1/query.ts +0 -3027
  1065. package/src/cosmos/bank/v1beta1/tx.registry.ts +0 -83
  1066. package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +0 -40
  1067. package/src/cosmos/bank/v1beta1/tx.ts +0 -861
  1068. package/src/cosmos/base/abci/v1beta1/abci.ts +0 -1698
  1069. package/src/cosmos/base/grpc/v2/service.rpc.func.ts +0 -25
  1070. package/src/cosmos/base/grpc/v2/service.ts +0 -473
  1071. package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +0 -25
  1072. package/src/cosmos/base/node/v1beta1/query.ts +0 -454
  1073. package/src/cosmos/base/query/v1beta1/pagination.ts +0 -361
  1074. package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +0 -25
  1075. package/src/cosmos/base/reflection/v1beta1/reflection.ts +0 -382
  1076. package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +0 -69
  1077. package/src/cosmos/base/reflection/v2alpha1/reflection.ts +0 -2727
  1078. package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +0 -80
  1079. package/src/cosmos/base/tendermint/v1beta1/query.ts +0 -2302
  1080. package/src/cosmos/base/tendermint/v1beta1/types.ts +0 -455
  1081. package/src/cosmos/base/v1beta1/coin.ts +0 -439
  1082. package/src/cosmos/circuit/module/v1/module.ts +0 -99
  1083. package/src/cosmos/circuit/v1/query.rpc.func.ts +0 -36
  1084. package/src/cosmos/circuit/v1/query.ts +0 -574
  1085. package/src/cosmos/circuit/v1/tx.registry.ts +0 -65
  1086. package/src/cosmos/circuit/v1/tx.rpc.func.ts +0 -31
  1087. package/src/cosmos/circuit/v1/tx.ts +0 -676
  1088. package/src/cosmos/circuit/v1/types.ts +0 -413
  1089. package/src/cosmos/consensus/module/v1/module.ts +0 -99
  1090. package/src/cosmos/consensus/v1/query.rpc.func.ts +0 -14
  1091. package/src/cosmos/consensus/v1/query.ts +0 -185
  1092. package/src/cosmos/consensus/v1/tx.registry.ts +0 -29
  1093. package/src/cosmos/consensus/v1/tx.rpc.func.ts +0 -13
  1094. package/src/cosmos/consensus/v1/tx.ts +0 -255
  1095. package/src/cosmos/crisis/module/v1/module.ts +0 -115
  1096. package/src/cosmos/crisis/v1beta1/genesis.ts +0 -106
  1097. package/src/cosmos/crisis/v1beta1/tx.registry.ts +0 -47
  1098. package/src/cosmos/crisis/v1beta1/tx.rpc.func.ts +0 -22
  1099. package/src/cosmos/crisis/v1beta1/tx.ts +0 -416
  1100. package/src/cosmos/crypto/ed25519/keys.ts +0 -209
  1101. package/src/cosmos/crypto/hd/v1/hd.ts +0 -169
  1102. package/src/cosmos/crypto/keyring/v1/record.ts +0 -529
  1103. package/src/cosmos/crypto/multisig/keys.ts +0 -122
  1104. package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +0 -225
  1105. package/src/cosmos/crypto/secp256k1/keys.ts +0 -203
  1106. package/src/cosmos/crypto/secp256r1/keys.ts +0 -201
  1107. package/src/cosmos/distribution/module/v1/module.ts +0 -113
  1108. package/src/cosmos/distribution/v1beta1/distribution.ts +0 -1494
  1109. package/src/cosmos/distribution/v1beta1/genesis.ts +0 -1129
  1110. package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +0 -113
  1111. package/src/cosmos/distribution/v1beta1/query.ts +0 -2126
  1112. package/src/cosmos/distribution/v1beta1/tx.registry.ts +0 -137
  1113. package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +0 -67
  1114. package/src/cosmos/distribution/v1beta1/tx.ts +0 -1478
  1115. package/src/cosmos/evidence/module/v1/module.ts +0 -80
  1116. package/src/cosmos/evidence/v1beta1/evidence.ts +0 -154
  1117. package/src/cosmos/evidence/v1beta1/genesis.ts +0 -102
  1118. package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +0 -25
  1119. package/src/cosmos/evidence/v1beta1/query.ts +0 -451
  1120. package/src/cosmos/evidence/v1beta1/tx.registry.ts +0 -29
  1121. package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +0 -13
  1122. package/src/cosmos/evidence/v1beta1/tx.ts +0 -221
  1123. package/src/cosmos/feegrant/module/v1/module.ts +0 -80
  1124. package/src/cosmos/feegrant/v1beta1/feegrant.ts +0 -573
  1125. package/src/cosmos/feegrant/v1beta1/genesis.ts +0 -100
  1126. package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +0 -36
  1127. package/src/cosmos/feegrant/v1beta1/query.ts +0 -677
  1128. package/src/cosmos/feegrant/v1beta1/tx.registry.ts +0 -65
  1129. package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +0 -31
  1130. package/src/cosmos/feegrant/v1beta1/tx.ts +0 -597
  1131. package/src/cosmos/genutil/module/v1/module.ts +0 -80
  1132. package/src/cosmos/genutil/v1beta1/genesis.ts +0 -101
  1133. package/src/cosmos/gov/module/v1/module.ts +0 -121
  1134. package/src/cosmos/gov/v1/genesis.ts +0 -280
  1135. package/src/cosmos/gov/v1/gov.ts +0 -1843
  1136. package/src/cosmos/gov/v1/query.rpc.func.ts +0 -102
  1137. package/src/cosmos/gov/v1/query.ts +0 -1970
  1138. package/src/cosmos/gov/v1/tx.registry.ts +0 -137
  1139. package/src/cosmos/gov/v1/tx.rpc.func.ts +0 -67
  1140. package/src/cosmos/gov/v1/tx.ts +0 -1657
  1141. package/src/cosmos/gov/v1beta1/genesis.ts +0 -202
  1142. package/src/cosmos/gov/v1beta1/gov.ts +0 -1425
  1143. package/src/cosmos/gov/v1beta1/query.rpc.func.ts +0 -91
  1144. package/src/cosmos/gov/v1beta1/query.ts +0 -1749
  1145. package/src/cosmos/gov/v1beta1/tx.registry.ts +0 -83
  1146. package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +0 -40
  1147. package/src/cosmos/gov/v1beta1/tx.ts +0 -881
  1148. package/src/cosmos/group/module/v1/module.ts +0 -128
  1149. package/src/cosmos/group/v1/events.ts +0 -1044
  1150. package/src/cosmos/group/v1/genesis.ts +0 -240
  1151. package/src/cosmos/group/v1/query.rpc.func.ts +0 -157
  1152. package/src/cosmos/group/v1/query.ts +0 -3015
  1153. package/src/cosmos/group/v1/tx.registry.ts +0 -263
  1154. package/src/cosmos/group/v1/tx.rpc.func.ts +0 -130
  1155. package/src/cosmos/group/v1/tx.ts +0 -3207
  1156. package/src/cosmos/group/v1/types.ts +0 -2081
  1157. package/src/cosmos/ics23/v1/proofs.ts +0 -2060
  1158. package/src/cosmos/mint/module/v1/module.ts +0 -113
  1159. package/src/cosmos/mint/v1beta1/genesis.ts +0 -116
  1160. package/src/cosmos/mint/v1beta1/mint.ts +0 -291
  1161. package/src/cosmos/mint/v1beta1/query.rpc.func.ts +0 -36
  1162. package/src/cosmos/mint/v1beta1/query.ts +0 -541
  1163. package/src/cosmos/mint/v1beta1/tx.registry.ts +0 -29
  1164. package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +0 -13
  1165. package/src/cosmos/mint/v1beta1/tx.ts +0 -219
  1166. package/src/cosmos/msg/textual/v1/textual.ts +0 -1
  1167. package/src/cosmos/msg/v1/msg.ts +0 -1
  1168. package/src/cosmos/nft/module/v1/module.ts +0 -80
  1169. package/src/cosmos/nft/v1beta1/event.ts +0 -403
  1170. package/src/cosmos/nft/v1beta1/genesis.ts +0 -234
  1171. package/src/cosmos/nft/v1beta1/nft.ts +0 -356
  1172. package/src/cosmos/nft/v1beta1/query.rpc.func.ts +0 -80
  1173. package/src/cosmos/nft/v1beta1/query.ts +0 -1465
  1174. package/src/cosmos/nft/v1beta1/tx.registry.ts +0 -29
  1175. package/src/cosmos/nft/v1beta1/tx.rpc.func.ts +0 -13
  1176. package/src/cosmos/nft/v1beta1/tx.ts +0 -224
  1177. package/src/cosmos/orm/module/v1alpha1/module.ts +0 -88
  1178. package/src/cosmos/orm/query/v1alpha1/query.rpc.func.ts +0 -25
  1179. package/src/cosmos/orm/query/v1alpha1/query.ts +0 -993
  1180. package/src/cosmos/orm/v1/orm.ts +0 -589
  1181. package/src/cosmos/orm/v1alpha1/schema.ts +0 -325
  1182. package/src/cosmos/params/module/v1/module.ts +0 -80
  1183. package/src/cosmos/params/v1beta1/params.ts +0 -255
  1184. package/src/cosmos/params/v1beta1/query.rpc.func.ts +0 -25
  1185. package/src/cosmos/params/v1beta1/query.ts +0 -525
  1186. package/src/cosmos/query/v1/query.ts +0 -1
  1187. package/src/cosmos/reflection/v1/reflection.rpc.func.ts +0 -14
  1188. package/src/cosmos/reflection/v1/reflection.ts +0 -179
  1189. package/src/cosmos/slashing/module/v1/module.ts +0 -99
  1190. package/src/cosmos/slashing/v1beta1/genesis.ts +0 -492
  1191. package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +0 -36
  1192. package/src/cosmos/slashing/v1beta1/query.ts +0 -598
  1193. package/src/cosmos/slashing/v1beta1/slashing.ts +0 -357
  1194. package/src/cosmos/slashing/v1beta1/tx.registry.ts +0 -47
  1195. package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +0 -22
  1196. package/src/cosmos/slashing/v1beta1/tx.ts +0 -390
  1197. package/src/cosmos/staking/module/v1/module.ts +0 -157
  1198. package/src/cosmos/staking/v1beta1/authz.ts +0 -323
  1199. package/src/cosmos/staking/v1beta1/genesis.ts +0 -346
  1200. package/src/cosmos/staking/v1beta1/query.rpc.func.ts +0 -157
  1201. package/src/cosmos/staking/v1beta1/query.ts +0 -3073
  1202. package/src/cosmos/staking/v1beta1/staking.ts +0 -3005
  1203. package/src/cosmos/staking/v1beta1/tx.registry.ts +0 -137
  1204. package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +0 -67
  1205. package/src/cosmos/staking/v1beta1/tx.ts +0 -1638
  1206. package/src/cosmos/store/internal/kv/v1beta1/kv.ts +0 -207
  1207. package/src/cosmos/store/snapshots/v1/snapshot.ts +0 -863
  1208. package/src/cosmos/store/snapshots/v2/snapshot.ts +0 -823
  1209. package/src/cosmos/store/streaming/abci/grpc.ts +0 -393
  1210. package/src/cosmos/store/v1beta1/commit_info.ts +0 -362
  1211. package/src/cosmos/store/v1beta1/listening.ts +0 -286
  1212. package/src/cosmos/streaming/v1/grpc.ts +0 -985
  1213. package/src/cosmos/tx/config/v1/config.ts +0 -127
  1214. package/src/cosmos/tx/signing/v1beta1/signing.ts +0 -688
  1215. package/src/cosmos/tx/v1beta1/service.rpc.func.ts +0 -102
  1216. package/src/cosmos/tx/v1beta1/service.ts +0 -2294
  1217. package/src/cosmos/tx/v1beta1/tx.ts +0 -2029
  1218. package/src/cosmos/upgrade/module/v1/module.ts +0 -99
  1219. package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +0 -58
  1220. package/src/cosmos/upgrade/v1beta1/query.ts +0 -1016
  1221. package/src/cosmos/upgrade/v1beta1/tx.registry.ts +0 -47
  1222. package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +0 -22
  1223. package/src/cosmos/upgrade/v1beta1/tx.ts +0 -398
  1224. package/src/cosmos/upgrade/v1beta1/upgrade.ts +0 -591
  1225. package/src/cosmos/validate/module/v1/module.ts +0 -80
  1226. package/src/cosmos/vesting/module/v1/module.ts +0 -80
  1227. package/src/cosmos/vesting/v1beta1/tx.registry.ts +0 -65
  1228. package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +0 -31
  1229. package/src/cosmos/vesting/v1beta1/tx.ts +0 -698
  1230. package/src/cosmos/vesting/v1beta1/vesting.ts +0 -735
  1231. package/src/cosmos_proto/cosmos.ts +0 -341
  1232. package/src/cosmwasm/wasm/v1/authz.ts +0 -1231
  1233. package/src/cosmwasm/wasm/v1/genesis.ts +0 -532
  1234. package/src/cosmwasm/wasm/v1/ibc.ts +0 -355
  1235. package/src/cosmwasm/wasm/v1/proposal_legacy.ts +0 -2432
  1236. package/src/cosmwasm/wasm/v1/query.rpc.func.ts +0 -124
  1237. package/src/cosmwasm/wasm/v1/query.ts +0 -2560
  1238. package/src/cosmwasm/wasm/v1/tx.registry.ts +0 -317
  1239. package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +0 -157
  1240. package/src/cosmwasm/wasm/v1/tx.ts +0 -4191
  1241. package/src/cosmwasm/wasm/v1/types.ts +0 -1120
  1242. package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +0 -193
  1243. package/src/ethermint/evm/v1/events.ts +0 -485
  1244. package/src/ethermint/evm/v1/evm.ts +0 -1590
  1245. package/src/ethermint/evm/v1/genesis.ts +0 -240
  1246. package/src/ethermint/evm/v1/query.rpc.func.ts +0 -136
  1247. package/src/ethermint/evm/v1/query.ts +0 -2535
  1248. package/src/ethermint/evm/v1/tx.registry.ts +0 -47
  1249. package/src/ethermint/evm/v1/tx.rpc.func.ts +0 -22
  1250. package/src/ethermint/evm/v1/tx.ts +0 -1333
  1251. package/src/ethermint/feemarket/v1/events.ts +0 -195
  1252. package/src/ethermint/feemarket/v1/feemarket.ts +0 -213
  1253. package/src/ethermint/feemarket/v1/genesis.ts +0 -114
  1254. package/src/ethermint/feemarket/v1/query.rpc.func.ts +0 -36
  1255. package/src/ethermint/feemarket/v1/query.ts +0 -487
  1256. package/src/ethermint/feemarket/v1/tx.registry.ts +0 -29
  1257. package/src/ethermint/feemarket/v1/tx.rpc.func.ts +0 -13
  1258. package/src/ethermint/feemarket/v1/tx.ts +0 -197
  1259. package/src/ethermint/types/v1/account.ts +0 -114
  1260. package/src/ethermint/types/v1/dynamic_fee.ts +0 -91
  1261. package/src/ethermint/types/v1/indexer.ts +0 -205
  1262. package/src/ethermint/types/v1/web3.ts +0 -147
  1263. package/src/extern.ts +0 -38
  1264. package/src/gogoproto/gogo.ts +0 -1
  1265. package/src/google/api/annotations.ts +0 -1
  1266. package/src/google/api/http.ts +0 -1069
  1267. package/src/google/protobuf/any.ts +0 -331
  1268. package/src/google/protobuf/descriptor.ts +0 -7177
  1269. package/src/google/protobuf/duration.ts +0 -225
  1270. package/src/google/protobuf/timestamp.ts +0 -281
  1271. package/src/helper-func-types.ts +0 -191
  1272. package/src/helpers.ts +0 -259
  1273. package/src/ibc/applications/fee/v1/ack.ts +0 -131
  1274. package/src/ibc/applications/fee/v1/fee.ts +0 -481
  1275. package/src/ibc/applications/fee/v1/genesis.ts +0 -661
  1276. package/src/ibc/applications/fee/v1/metadata.ts +0 -121
  1277. package/src/ibc/applications/fee/v1/query.rpc.func.ts +0 -113
  1278. package/src/ibc/applications/fee/v1/query.ts +0 -2134
  1279. package/src/ibc/applications/fee/v1/tx.registry.ts +0 -83
  1280. package/src/ibc/applications/fee/v1/tx.rpc.func.ts +0 -40
  1281. package/src/ibc/applications/fee/v1/tx.ts +0 -889
  1282. package/src/ibc/applications/interchain_accounts/controller/v1/controller.ts +0 -105
  1283. package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +0 -25
  1284. package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +0 -379
  1285. package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +0 -65
  1286. package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +0 -31
  1287. package/src/ibc/applications/interchain_accounts/controller/v1/tx.ts +0 -685
  1288. package/src/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +0 -661
  1289. package/src/ibc/applications/interchain_accounts/host/v1/host.ts +0 -253
  1290. package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +0 -14
  1291. package/src/ibc/applications/interchain_accounts/host/v1/query.ts +0 -177
  1292. package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +0 -47
  1293. package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +0 -22
  1294. package/src/ibc/applications/interchain_accounts/host/v1/tx.ts +0 -429
  1295. package/src/ibc/applications/interchain_accounts/v1/account.ts +0 -112
  1296. package/src/ibc/applications/interchain_accounts/v1/metadata.ts +0 -191
  1297. package/src/ibc/applications/interchain_accounts/v1/packet.ts +0 -259
  1298. package/src/ibc/applications/transfer/v1/authz.ts +0 -280
  1299. package/src/ibc/applications/transfer/v1/genesis.ts +0 -153
  1300. package/src/ibc/applications/transfer/v1/query.rpc.func.ts +0 -69
  1301. package/src/ibc/applications/transfer/v1/query.ts +0 -1205
  1302. package/src/ibc/applications/transfer/v1/transfer.ts +0 -261
  1303. package/src/ibc/applications/transfer/v1/tx.registry.ts +0 -47
  1304. package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +0 -22
  1305. package/src/ibc/applications/transfer/v1/tx.ts +0 -532
  1306. package/src/ibc/applications/transfer/v2/packet.ts +0 -171
  1307. package/src/ibc/core/channel/v1/channel.ts +0 -1510
  1308. package/src/ibc/core/channel/v1/genesis.ts +0 -354
  1309. package/src/ibc/core/channel/v1/query.rpc.func.ts +0 -190
  1310. package/src/ibc/core/channel/v1/query.ts +0 -4354
  1311. package/src/ibc/core/channel/v1/tx.registry.ts +0 -353
  1312. package/src/ibc/core/channel/v1/tx.rpc.func.ts +0 -175
  1313. package/src/ibc/core/channel/v1/tx.ts +0 -4866
  1314. package/src/ibc/core/channel/v1/upgrade.ts +0 -388
  1315. package/src/ibc/core/client/v1/client.ts +0 -927
  1316. package/src/ibc/core/client/v1/genesis.ts +0 -426
  1317. package/src/ibc/core/client/v1/query.rpc.func.ts +0 -113
  1318. package/src/ibc/core/client/v1/query.ts +0 -2280
  1319. package/src/ibc/core/client/v1/tx.registry.ts +0 -137
  1320. package/src/ibc/core/client/v1/tx.rpc.func.ts +0 -67
  1321. package/src/ibc/core/client/v1/tx.ts +0 -1543
  1322. package/src/ibc/core/commitment/v1/commitment.ts +0 -418
  1323. package/src/ibc/core/connection/v1/connection.ts +0 -1010
  1324. package/src/ibc/core/connection/v1/genesis.ts +0 -146
  1325. package/src/ibc/core/connection/v1/query.rpc.func.ts +0 -69
  1326. package/src/ibc/core/connection/v1/query.ts +0 -1408
  1327. package/src/ibc/core/connection/v1/tx.registry.ts +0 -101
  1328. package/src/ibc/core/connection/v1/tx.rpc.func.ts +0 -49
  1329. package/src/ibc/core/connection/v1/tx.ts +0 -1365
  1330. package/src/ibc/core/types/v1/genesis.ts +0 -137
  1331. package/src/ibc/lightclients/localhost/v2/localhost.ts +0 -100
  1332. package/src/ibc/lightclients/solomachine/v2/solomachine.ts +0 -2103
  1333. package/src/ibc/lightclients/solomachine/v3/solomachine.ts +0 -1070
  1334. package/src/ibc/lightclients/tendermint/v1/tendermint.ts +0 -838
  1335. package/src/ibc/lightclients/wasm/v1/genesis.ts +0 -197
  1336. package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +0 -25
  1337. package/src/ibc/lightclients/wasm/v1/query.ts +0 -404
  1338. package/src/ibc/lightclients/wasm/v1/tx.registry.ts +0 -65
  1339. package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +0 -31
  1340. package/src/ibc/lightclients/wasm/v1/tx.ts +0 -621
  1341. package/src/ibc/lightclients/wasm/v1/wasm.ts +0 -438
  1342. package/src/react-query.ts +0 -185
  1343. package/src/registry.ts +0 -218
  1344. package/src/tendermint/abci/types.ts +0 -6283
  1345. package/src/tendermint/crypto/keys.ts +0 -103
  1346. package/src/tendermint/crypto/proof.ts +0 -555
  1347. package/src/tendermint/p2p/types.ts +0 -507
  1348. package/src/tendermint/types/block.ts +0 -131
  1349. package/src/tendermint/types/evidence.ts +0 -476
  1350. package/src/tendermint/types/params.ts +0 -814
  1351. package/src/tendermint/types/types.ts +0 -2157
  1352. package/src/tendermint/types/validator.ts +0 -389
  1353. package/src/tendermint/version/types.ts +0 -219
  1354. package/src/types.ts +0 -155
  1355. package/src/utf8.ts +0 -148
  1356. package/src/varint.ts +0 -488
  1357. package/src/xpla/reward/v1beta1/genesis.ts +0 -92
  1358. package/src/xpla/reward/v1beta1/query.rpc.func.ts +0 -25
  1359. package/src/xpla/reward/v1beta1/query.ts +0 -333
  1360. package/src/xpla/reward/v1beta1/reward.ts +0 -153
  1361. package/src/xpla/reward/v1beta1/tx.registry.ts +0 -47
  1362. package/src/xpla/reward/v1beta1/tx.rpc.func.ts +0 -22
  1363. package/src/xpla/reward/v1beta1/tx.ts +0 -391
  1364. package/src/xpla/volunteer/v1beta1/genesis.ts +0 -92
  1365. package/src/xpla/volunteer/v1beta1/proposal.ts +0 -649
  1366. package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +0 -14
  1367. package/src/xpla/volunteer/v1beta1/query.ts +0 -160
  1368. package/src/xpla/volunteer/v1beta1/tx.registry.ts +0 -47
  1369. package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +0 -22
  1370. package/src/xpla/volunteer/v1beta1/tx.ts +0 -448
  1371. package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +0 -107
  1372. package/tsconfig.esm.json +0 -10
  1373. package/tsconfig.json +0 -10
@@ -1,2081 +0,0 @@
1
- import { Timestamp } from "../../../google/protobuf/timestamp";
2
- import { Duration, DurationAmino } from "../../../google/protobuf/duration";
3
- import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any";
4
- import { BinaryReader, BinaryWriter } from "../../../binary";
5
- import { toTimestamp, fromTimestamp, DeepPartial, isSet } from "../../../helpers";
6
- import { GlobalDecoderRegistry } from "../../../registry";
7
- /** VoteOption enumerates the valid vote options for a given proposal. */
8
- export enum VoteOption {
9
- /**
10
- * VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines an unspecified vote option which will
11
- * return an error.
12
- */
13
- VOTE_OPTION_UNSPECIFIED = 0,
14
- /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
15
- VOTE_OPTION_YES = 1,
16
- /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
17
- VOTE_OPTION_ABSTAIN = 2,
18
- /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
19
- VOTE_OPTION_NO = 3,
20
- /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
21
- VOTE_OPTION_NO_WITH_VETO = 4,
22
- UNRECOGNIZED = -1,
23
- }
24
- export const VoteOptionAmino = VoteOption;
25
- export function voteOptionFromJSON(object: any): VoteOption {
26
- switch (object) {
27
- case 0:
28
- case "VOTE_OPTION_UNSPECIFIED":
29
- return VoteOption.VOTE_OPTION_UNSPECIFIED;
30
- case 1:
31
- case "VOTE_OPTION_YES":
32
- return VoteOption.VOTE_OPTION_YES;
33
- case 2:
34
- case "VOTE_OPTION_ABSTAIN":
35
- return VoteOption.VOTE_OPTION_ABSTAIN;
36
- case 3:
37
- case "VOTE_OPTION_NO":
38
- return VoteOption.VOTE_OPTION_NO;
39
- case 4:
40
- case "VOTE_OPTION_NO_WITH_VETO":
41
- return VoteOption.VOTE_OPTION_NO_WITH_VETO;
42
- case -1:
43
- case "UNRECOGNIZED":
44
- default:
45
- return VoteOption.UNRECOGNIZED;
46
- }
47
- }
48
- export function voteOptionToJSON(object: VoteOption): string {
49
- switch (object) {
50
- case VoteOption.VOTE_OPTION_UNSPECIFIED:
51
- return "VOTE_OPTION_UNSPECIFIED";
52
- case VoteOption.VOTE_OPTION_YES:
53
- return "VOTE_OPTION_YES";
54
- case VoteOption.VOTE_OPTION_ABSTAIN:
55
- return "VOTE_OPTION_ABSTAIN";
56
- case VoteOption.VOTE_OPTION_NO:
57
- return "VOTE_OPTION_NO";
58
- case VoteOption.VOTE_OPTION_NO_WITH_VETO:
59
- return "VOTE_OPTION_NO_WITH_VETO";
60
- case VoteOption.UNRECOGNIZED:
61
- default:
62
- return "UNRECOGNIZED";
63
- }
64
- }
65
- /** ProposalStatus defines proposal statuses. */
66
- export enum ProposalStatus {
67
- /** PROPOSAL_STATUS_UNSPECIFIED - An empty value is invalid and not allowed. */
68
- PROPOSAL_STATUS_UNSPECIFIED = 0,
69
- /** PROPOSAL_STATUS_SUBMITTED - Initial status of a proposal when submitted. */
70
- PROPOSAL_STATUS_SUBMITTED = 1,
71
- /**
72
- * PROPOSAL_STATUS_ACCEPTED - Final status of a proposal when the final tally is done and the outcome
73
- * passes the group policy's decision policy.
74
- */
75
- PROPOSAL_STATUS_ACCEPTED = 2,
76
- /**
77
- * PROPOSAL_STATUS_REJECTED - Final status of a proposal when the final tally is done and the outcome
78
- * is rejected by the group policy's decision policy.
79
- */
80
- PROPOSAL_STATUS_REJECTED = 3,
81
- /**
82
- * PROPOSAL_STATUS_ABORTED - Final status of a proposal when the group policy is modified before the
83
- * final tally.
84
- */
85
- PROPOSAL_STATUS_ABORTED = 4,
86
- /**
87
- * PROPOSAL_STATUS_WITHDRAWN - A proposal can be withdrawn before the voting start time by the owner.
88
- * When this happens the final status is Withdrawn.
89
- */
90
- PROPOSAL_STATUS_WITHDRAWN = 5,
91
- UNRECOGNIZED = -1,
92
- }
93
- export const ProposalStatusAmino = ProposalStatus;
94
- export function proposalStatusFromJSON(object: any): ProposalStatus {
95
- switch (object) {
96
- case 0:
97
- case "PROPOSAL_STATUS_UNSPECIFIED":
98
- return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED;
99
- case 1:
100
- case "PROPOSAL_STATUS_SUBMITTED":
101
- return ProposalStatus.PROPOSAL_STATUS_SUBMITTED;
102
- case 2:
103
- case "PROPOSAL_STATUS_ACCEPTED":
104
- return ProposalStatus.PROPOSAL_STATUS_ACCEPTED;
105
- case 3:
106
- case "PROPOSAL_STATUS_REJECTED":
107
- return ProposalStatus.PROPOSAL_STATUS_REJECTED;
108
- case 4:
109
- case "PROPOSAL_STATUS_ABORTED":
110
- return ProposalStatus.PROPOSAL_STATUS_ABORTED;
111
- case 5:
112
- case "PROPOSAL_STATUS_WITHDRAWN":
113
- return ProposalStatus.PROPOSAL_STATUS_WITHDRAWN;
114
- case -1:
115
- case "UNRECOGNIZED":
116
- default:
117
- return ProposalStatus.UNRECOGNIZED;
118
- }
119
- }
120
- export function proposalStatusToJSON(object: ProposalStatus): string {
121
- switch (object) {
122
- case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED:
123
- return "PROPOSAL_STATUS_UNSPECIFIED";
124
- case ProposalStatus.PROPOSAL_STATUS_SUBMITTED:
125
- return "PROPOSAL_STATUS_SUBMITTED";
126
- case ProposalStatus.PROPOSAL_STATUS_ACCEPTED:
127
- return "PROPOSAL_STATUS_ACCEPTED";
128
- case ProposalStatus.PROPOSAL_STATUS_REJECTED:
129
- return "PROPOSAL_STATUS_REJECTED";
130
- case ProposalStatus.PROPOSAL_STATUS_ABORTED:
131
- return "PROPOSAL_STATUS_ABORTED";
132
- case ProposalStatus.PROPOSAL_STATUS_WITHDRAWN:
133
- return "PROPOSAL_STATUS_WITHDRAWN";
134
- case ProposalStatus.UNRECOGNIZED:
135
- default:
136
- return "UNRECOGNIZED";
137
- }
138
- }
139
- /** ProposalExecutorResult defines types of proposal executor results. */
140
- export enum ProposalExecutorResult {
141
- /** PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - An empty value is not allowed. */
142
- PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0,
143
- /** PROPOSAL_EXECUTOR_RESULT_NOT_RUN - We have not yet run the executor. */
144
- PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1,
145
- /** PROPOSAL_EXECUTOR_RESULT_SUCCESS - The executor was successful and proposed action updated state. */
146
- PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2,
147
- /** PROPOSAL_EXECUTOR_RESULT_FAILURE - The executor returned an error and proposed action didn't update state. */
148
- PROPOSAL_EXECUTOR_RESULT_FAILURE = 3,
149
- UNRECOGNIZED = -1,
150
- }
151
- export const ProposalExecutorResultAmino = ProposalExecutorResult;
152
- export function proposalExecutorResultFromJSON(object: any): ProposalExecutorResult {
153
- switch (object) {
154
- case 0:
155
- case "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED":
156
- return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED;
157
- case 1:
158
- case "PROPOSAL_EXECUTOR_RESULT_NOT_RUN":
159
- return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN;
160
- case 2:
161
- case "PROPOSAL_EXECUTOR_RESULT_SUCCESS":
162
- return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS;
163
- case 3:
164
- case "PROPOSAL_EXECUTOR_RESULT_FAILURE":
165
- return ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE;
166
- case -1:
167
- case "UNRECOGNIZED":
168
- default:
169
- return ProposalExecutorResult.UNRECOGNIZED;
170
- }
171
- }
172
- export function proposalExecutorResultToJSON(object: ProposalExecutorResult): string {
173
- switch (object) {
174
- case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED:
175
- return "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED";
176
- case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_NOT_RUN:
177
- return "PROPOSAL_EXECUTOR_RESULT_NOT_RUN";
178
- case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_SUCCESS:
179
- return "PROPOSAL_EXECUTOR_RESULT_SUCCESS";
180
- case ProposalExecutorResult.PROPOSAL_EXECUTOR_RESULT_FAILURE:
181
- return "PROPOSAL_EXECUTOR_RESULT_FAILURE";
182
- case ProposalExecutorResult.UNRECOGNIZED:
183
- default:
184
- return "UNRECOGNIZED";
185
- }
186
- }
187
- /**
188
- * Member represents a group member with an account address,
189
- * non-zero weight, metadata and added_at timestamp.
190
- */
191
- export interface Member {
192
- /** address is the member's account address. */
193
- address: string;
194
- /** weight is the member's voting weight that should be greater than 0. */
195
- weight: string;
196
- /** metadata is any arbitrary metadata attached to the member. */
197
- metadata: string;
198
- /** added_at is a timestamp specifying when a member was added. */
199
- addedAt: Date;
200
- }
201
- export interface MemberProtoMsg {
202
- typeUrl: "/cosmos.group.v1.Member";
203
- value: Uint8Array;
204
- }
205
- /**
206
- * Member represents a group member with an account address,
207
- * non-zero weight, metadata and added_at timestamp.
208
- */
209
- export interface MemberAmino {
210
- /** address is the member's account address. */
211
- address: string;
212
- /** weight is the member's voting weight that should be greater than 0. */
213
- weight: string;
214
- /** metadata is any arbitrary metadata attached to the member. */
215
- metadata: string;
216
- /** added_at is a timestamp specifying when a member was added. */
217
- added_at: string;
218
- }
219
- export interface MemberAminoMsg {
220
- type: "cosmos-sdk/Member";
221
- value: MemberAmino;
222
- }
223
- /**
224
- * MemberRequest represents a group member to be used in Msg server requests.
225
- * Contrary to `Member`, it doesn't have any `added_at` field
226
- * since this field cannot be set as part of requests.
227
- */
228
- export interface MemberRequest {
229
- /** address is the member's account address. */
230
- address: string;
231
- /** weight is the member's voting weight that should be greater than 0. */
232
- weight: string;
233
- /** metadata is any arbitrary metadata attached to the member. */
234
- metadata: string;
235
- }
236
- export interface MemberRequestProtoMsg {
237
- typeUrl: "/cosmos.group.v1.MemberRequest";
238
- value: Uint8Array;
239
- }
240
- /**
241
- * MemberRequest represents a group member to be used in Msg server requests.
242
- * Contrary to `Member`, it doesn't have any `added_at` field
243
- * since this field cannot be set as part of requests.
244
- */
245
- export interface MemberRequestAmino {
246
- /** address is the member's account address. */
247
- address: string;
248
- /** weight is the member's voting weight that should be greater than 0. */
249
- weight: string;
250
- /** metadata is any arbitrary metadata attached to the member. */
251
- metadata: string;
252
- }
253
- export interface MemberRequestAminoMsg {
254
- type: "cosmos-sdk/MemberRequest";
255
- value: MemberRequestAmino;
256
- }
257
- /**
258
- * ThresholdDecisionPolicy is a decision policy where a proposal passes when it
259
- * satisfies the two following conditions:
260
- * 1. The sum of all `YES` voter's weights is greater or equal than the defined
261
- * `threshold`.
262
- * 2. The voting and execution periods of the proposal respect the parameters
263
- * given by `windows`.
264
- */
265
- export interface ThresholdDecisionPolicy {
266
- /**
267
- * threshold is the minimum weighted sum of `YES` votes that must be met or
268
- * exceeded for a proposal to succeed.
269
- */
270
- threshold: string;
271
- /** windows defines the different windows for voting and execution. */
272
- windows?: DecisionPolicyWindows;
273
- }
274
- export interface ThresholdDecisionPolicyProtoMsg {
275
- typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy";
276
- value: Uint8Array;
277
- }
278
- /**
279
- * ThresholdDecisionPolicy is a decision policy where a proposal passes when it
280
- * satisfies the two following conditions:
281
- * 1. The sum of all `YES` voter's weights is greater or equal than the defined
282
- * `threshold`.
283
- * 2. The voting and execution periods of the proposal respect the parameters
284
- * given by `windows`.
285
- */
286
- export interface ThresholdDecisionPolicyAmino {
287
- /**
288
- * threshold is the minimum weighted sum of `YES` votes that must be met or
289
- * exceeded for a proposal to succeed.
290
- */
291
- threshold: string;
292
- /** windows defines the different windows for voting and execution. */
293
- windows?: DecisionPolicyWindowsAmino;
294
- }
295
- export interface ThresholdDecisionPolicyAminoMsg {
296
- type: "cosmos-sdk/ThresholdDecisionPolicy";
297
- value: ThresholdDecisionPolicyAmino;
298
- }
299
- /**
300
- * PercentageDecisionPolicy is a decision policy where a proposal passes when
301
- * it satisfies the two following conditions:
302
- * 1. The percentage of all `YES` voters' weights out of the total group weight
303
- * is greater or equal than the given `percentage`.
304
- * 2. The voting and execution periods of the proposal respect the parameters
305
- * given by `windows`.
306
- */
307
- export interface PercentageDecisionPolicy {
308
- /**
309
- * percentage is the minimum percentage of the weighted sum of `YES` votes must
310
- * meet for a proposal to succeed.
311
- */
312
- percentage: string;
313
- /** windows defines the different windows for voting and execution. */
314
- windows?: DecisionPolicyWindows;
315
- }
316
- export interface PercentageDecisionPolicyProtoMsg {
317
- typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy";
318
- value: Uint8Array;
319
- }
320
- /**
321
- * PercentageDecisionPolicy is a decision policy where a proposal passes when
322
- * it satisfies the two following conditions:
323
- * 1. The percentage of all `YES` voters' weights out of the total group weight
324
- * is greater or equal than the given `percentage`.
325
- * 2. The voting and execution periods of the proposal respect the parameters
326
- * given by `windows`.
327
- */
328
- export interface PercentageDecisionPolicyAmino {
329
- /**
330
- * percentage is the minimum percentage of the weighted sum of `YES` votes must
331
- * meet for a proposal to succeed.
332
- */
333
- percentage: string;
334
- /** windows defines the different windows for voting and execution. */
335
- windows?: DecisionPolicyWindowsAmino;
336
- }
337
- export interface PercentageDecisionPolicyAminoMsg {
338
- type: "cosmos-sdk/PercentageDecisionPolicy";
339
- value: PercentageDecisionPolicyAmino;
340
- }
341
- /** DecisionPolicyWindows defines the different windows for voting and execution. */
342
- export interface DecisionPolicyWindows {
343
- /**
344
- * voting_period is the duration from submission of a proposal to the end of voting period
345
- * Within this times votes can be submitted with MsgVote.
346
- */
347
- votingPeriod: Duration;
348
- /**
349
- * min_execution_period is the minimum duration after the proposal submission
350
- * where members can start sending MsgExec. This means that the window for
351
- * sending a MsgExec transaction is:
352
- * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]`
353
- * where max_execution_period is a app-specific config, defined in the keeper.
354
- * If not set, min_execution_period will default to 0.
355
- *
356
- * Please make sure to set a `min_execution_period` that is smaller than
357
- * `voting_period + max_execution_period`, or else the above execution window
358
- * is empty, meaning that all proposals created with this decision policy
359
- * won't be able to be executed.
360
- */
361
- minExecutionPeriod: Duration;
362
- }
363
- export interface DecisionPolicyWindowsProtoMsg {
364
- typeUrl: "/cosmos.group.v1.DecisionPolicyWindows";
365
- value: Uint8Array;
366
- }
367
- /** DecisionPolicyWindows defines the different windows for voting and execution. */
368
- export interface DecisionPolicyWindowsAmino {
369
- /**
370
- * voting_period is the duration from submission of a proposal to the end of voting period
371
- * Within this times votes can be submitted with MsgVote.
372
- */
373
- voting_period: DurationAmino;
374
- /**
375
- * min_execution_period is the minimum duration after the proposal submission
376
- * where members can start sending MsgExec. This means that the window for
377
- * sending a MsgExec transaction is:
378
- * `[ submission + min_execution_period ; submission + voting_period + max_execution_period]`
379
- * where max_execution_period is a app-specific config, defined in the keeper.
380
- * If not set, min_execution_period will default to 0.
381
- *
382
- * Please make sure to set a `min_execution_period` that is smaller than
383
- * `voting_period + max_execution_period`, or else the above execution window
384
- * is empty, meaning that all proposals created with this decision policy
385
- * won't be able to be executed.
386
- */
387
- min_execution_period: DurationAmino;
388
- }
389
- export interface DecisionPolicyWindowsAminoMsg {
390
- type: "cosmos-sdk/DecisionPolicyWindows";
391
- value: DecisionPolicyWindowsAmino;
392
- }
393
- /** GroupInfo represents the high-level on-chain information for a group. */
394
- export interface GroupInfo {
395
- /** id is the unique ID of the group. */
396
- id: bigint;
397
- /** admin is the account address of the group's admin. */
398
- admin: string;
399
- /**
400
- * metadata is any arbitrary metadata to attached to the group.
401
- * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#group-1
402
- */
403
- metadata: string;
404
- /**
405
- * version is used to track changes to a group's membership structure that
406
- * would break existing proposals. Whenever any members weight is changed,
407
- * or any member is added or removed this version is incremented and will
408
- * cause proposals based on older versions of this group to fail
409
- */
410
- version: bigint;
411
- /** total_weight is the sum of the group members' weights. */
412
- totalWeight: string;
413
- /** created_at is a timestamp specifying when a group was created. */
414
- createdAt: Date;
415
- }
416
- export interface GroupInfoProtoMsg {
417
- typeUrl: "/cosmos.group.v1.GroupInfo";
418
- value: Uint8Array;
419
- }
420
- /** GroupInfo represents the high-level on-chain information for a group. */
421
- export interface GroupInfoAmino {
422
- /** id is the unique ID of the group. */
423
- id: string;
424
- /** admin is the account address of the group's admin. */
425
- admin: string;
426
- /**
427
- * metadata is any arbitrary metadata to attached to the group.
428
- * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#group-1
429
- */
430
- metadata: string;
431
- /**
432
- * version is used to track changes to a group's membership structure that
433
- * would break existing proposals. Whenever any members weight is changed,
434
- * or any member is added or removed this version is incremented and will
435
- * cause proposals based on older versions of this group to fail
436
- */
437
- version: string;
438
- /** total_weight is the sum of the group members' weights. */
439
- total_weight: string;
440
- /** created_at is a timestamp specifying when a group was created. */
441
- created_at: string;
442
- }
443
- export interface GroupInfoAminoMsg {
444
- type: "cosmos-sdk/GroupInfo";
445
- value: GroupInfoAmino;
446
- }
447
- /** GroupMember represents the relationship between a group and a member. */
448
- export interface GroupMember {
449
- /** group_id is the unique ID of the group. */
450
- groupId: bigint;
451
- /** member is the member data. */
452
- member?: Member;
453
- }
454
- export interface GroupMemberProtoMsg {
455
- typeUrl: "/cosmos.group.v1.GroupMember";
456
- value: Uint8Array;
457
- }
458
- /** GroupMember represents the relationship between a group and a member. */
459
- export interface GroupMemberAmino {
460
- /** group_id is the unique ID of the group. */
461
- group_id: string;
462
- /** member is the member data. */
463
- member?: MemberAmino;
464
- }
465
- export interface GroupMemberAminoMsg {
466
- type: "cosmos-sdk/GroupMember";
467
- value: GroupMemberAmino;
468
- }
469
- /** GroupPolicyInfo represents the high-level on-chain information for a group policy. */
470
- export interface GroupPolicyInfo {
471
- /** address is the account address of group policy. */
472
- address: string;
473
- /** group_id is the unique ID of the group. */
474
- groupId: bigint;
475
- /** admin is the account address of the group admin. */
476
- admin: string;
477
- /**
478
- * metadata is any arbitrary metadata attached to the group policy.
479
- * the recommended format of the metadata is to be found here:
480
- * https://docs.cosmos.network/v0.47/modules/group#decision-policy-1
481
- */
482
- metadata: string;
483
- /**
484
- * version is used to track changes to a group's GroupPolicyInfo structure that
485
- * would create a different result on a running proposal.
486
- */
487
- version: bigint;
488
- /** decision_policy specifies the group policy's decision policy. */
489
- decisionPolicy?: ThresholdDecisionPolicy | PercentageDecisionPolicy | Any | undefined;
490
- /** created_at is a timestamp specifying when a group policy was created. */
491
- createdAt: Date;
492
- }
493
- export interface GroupPolicyInfoProtoMsg {
494
- typeUrl: "/cosmos.group.v1.GroupPolicyInfo";
495
- value: Uint8Array;
496
- }
497
- export type GroupPolicyInfoEncoded = Omit<GroupPolicyInfo, "decisionPolicy"> & {
498
- /** decision_policy specifies the group policy's decision policy. */decisionPolicy?: ThresholdDecisionPolicyProtoMsg | PercentageDecisionPolicyProtoMsg | AnyProtoMsg | undefined;
499
- };
500
- /** GroupPolicyInfo represents the high-level on-chain information for a group policy. */
501
- export interface GroupPolicyInfoAmino {
502
- /** address is the account address of group policy. */
503
- address: string;
504
- /** group_id is the unique ID of the group. */
505
- group_id: string;
506
- /** admin is the account address of the group admin. */
507
- admin: string;
508
- /**
509
- * metadata is any arbitrary metadata attached to the group policy.
510
- * the recommended format of the metadata is to be found here:
511
- * https://docs.cosmos.network/v0.47/modules/group#decision-policy-1
512
- */
513
- metadata: string;
514
- /**
515
- * version is used to track changes to a group's GroupPolicyInfo structure that
516
- * would create a different result on a running proposal.
517
- */
518
- version: string;
519
- /** decision_policy specifies the group policy's decision policy. */
520
- decision_policy?: AnyAmino;
521
- /** created_at is a timestamp specifying when a group policy was created. */
522
- created_at: string;
523
- }
524
- export interface GroupPolicyInfoAminoMsg {
525
- type: "cosmos-sdk/GroupPolicyInfo";
526
- value: GroupPolicyInfoAmino;
527
- }
528
- /**
529
- * Proposal defines a group proposal. Any member of a group can submit a proposal
530
- * for a group policy to decide upon.
531
- * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal
532
- * passes as well as some optional metadata associated with the proposal.
533
- */
534
- export interface Proposal {
535
- /** id is the unique id of the proposal. */
536
- id: bigint;
537
- /** group_policy_address is the account address of group policy. */
538
- groupPolicyAddress: string;
539
- /**
540
- * metadata is any arbitrary metadata attached to the proposal.
541
- * the recommended format of the metadata is to be found here:
542
- * https://docs.cosmos.network/v0.47/modules/group#proposal-4
543
- */
544
- metadata: string;
545
- /** proposers are the account addresses of the proposers. */
546
- proposers: string[];
547
- /** submit_time is a timestamp specifying when a proposal was submitted. */
548
- submitTime: Date;
549
- /**
550
- * group_version tracks the version of the group at proposal submission.
551
- * This field is here for informational purposes only.
552
- */
553
- groupVersion: bigint;
554
- /**
555
- * group_policy_version tracks the version of the group policy at proposal submission.
556
- * When a decision policy is changed, existing proposals from previous policy
557
- * versions will become invalid with the `ABORTED` status.
558
- * This field is here for informational purposes only.
559
- */
560
- groupPolicyVersion: bigint;
561
- /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */
562
- status: ProposalStatus;
563
- /**
564
- * final_tally_result contains the sums of all weighted votes for this
565
- * proposal for each vote option. It is empty at submission, and only
566
- * populated after tallying, at voting period end or at proposal execution,
567
- * whichever happens first.
568
- */
569
- finalTallyResult: TallyResult;
570
- /**
571
- * voting_period_end is the timestamp before which voting must be done.
572
- * Unless a successful MsgExec is called before (to execute a proposal whose
573
- * tally is successful before the voting period ends), tallying will be done
574
- * at this point, and the `final_tally_result`and `status` fields will be
575
- * accordingly updated.
576
- */
577
- votingPeriodEnd: Date;
578
- /** executor_result is the final result of the proposal execution. Initial value is NotRun. */
579
- executorResult: ProposalExecutorResult;
580
- /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */
581
- messages: Any[];
582
- /**
583
- * title is the title of the proposal
584
- *
585
- * Since: cosmos-sdk 0.47
586
- */
587
- title: string;
588
- /**
589
- * summary is a short summary of the proposal
590
- *
591
- * Since: cosmos-sdk 0.47
592
- */
593
- summary: string;
594
- }
595
- export interface ProposalProtoMsg {
596
- typeUrl: "/cosmos.group.v1.Proposal";
597
- value: Uint8Array;
598
- }
599
- /**
600
- * Proposal defines a group proposal. Any member of a group can submit a proposal
601
- * for a group policy to decide upon.
602
- * A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal
603
- * passes as well as some optional metadata associated with the proposal.
604
- */
605
- export interface ProposalAmino {
606
- /** id is the unique id of the proposal. */
607
- id: string;
608
- /** group_policy_address is the account address of group policy. */
609
- group_policy_address: string;
610
- /**
611
- * metadata is any arbitrary metadata attached to the proposal.
612
- * the recommended format of the metadata is to be found here:
613
- * https://docs.cosmos.network/v0.47/modules/group#proposal-4
614
- */
615
- metadata: string;
616
- /** proposers are the account addresses of the proposers. */
617
- proposers: string[];
618
- /** submit_time is a timestamp specifying when a proposal was submitted. */
619
- submit_time: string;
620
- /**
621
- * group_version tracks the version of the group at proposal submission.
622
- * This field is here for informational purposes only.
623
- */
624
- group_version: string;
625
- /**
626
- * group_policy_version tracks the version of the group policy at proposal submission.
627
- * When a decision policy is changed, existing proposals from previous policy
628
- * versions will become invalid with the `ABORTED` status.
629
- * This field is here for informational purposes only.
630
- */
631
- group_policy_version: string;
632
- /** status represents the high level position in the life cycle of the proposal. Initial value is Submitted. */
633
- status: ProposalStatus;
634
- /**
635
- * final_tally_result contains the sums of all weighted votes for this
636
- * proposal for each vote option. It is empty at submission, and only
637
- * populated after tallying, at voting period end or at proposal execution,
638
- * whichever happens first.
639
- */
640
- final_tally_result: TallyResultAmino;
641
- /**
642
- * voting_period_end is the timestamp before which voting must be done.
643
- * Unless a successful MsgExec is called before (to execute a proposal whose
644
- * tally is successful before the voting period ends), tallying will be done
645
- * at this point, and the `final_tally_result`and `status` fields will be
646
- * accordingly updated.
647
- */
648
- voting_period_end: string;
649
- /** executor_result is the final result of the proposal execution. Initial value is NotRun. */
650
- executor_result: ProposalExecutorResult;
651
- /** messages is a list of `sdk.Msg`s that will be executed if the proposal passes. */
652
- messages: AnyAmino[];
653
- /**
654
- * title is the title of the proposal
655
- *
656
- * Since: cosmos-sdk 0.47
657
- */
658
- title: string;
659
- /**
660
- * summary is a short summary of the proposal
661
- *
662
- * Since: cosmos-sdk 0.47
663
- */
664
- summary: string;
665
- }
666
- export interface ProposalAminoMsg {
667
- type: "cosmos-sdk/Proposal";
668
- value: ProposalAmino;
669
- }
670
- /** TallyResult represents the sum of weighted votes for each vote option. */
671
- export interface TallyResult {
672
- /** yes_count is the weighted sum of yes votes. */
673
- yesCount: string;
674
- /** abstain_count is the weighted sum of abstainers. */
675
- abstainCount: string;
676
- /** no_count is the weighted sum of no votes. */
677
- noCount: string;
678
- /** no_with_veto_count is the weighted sum of veto. */
679
- noWithVetoCount: string;
680
- }
681
- export interface TallyResultProtoMsg {
682
- typeUrl: "/cosmos.group.v1.TallyResult";
683
- value: Uint8Array;
684
- }
685
- /** TallyResult represents the sum of weighted votes for each vote option. */
686
- export interface TallyResultAmino {
687
- /** yes_count is the weighted sum of yes votes. */
688
- yes_count: string;
689
- /** abstain_count is the weighted sum of abstainers. */
690
- abstain_count: string;
691
- /** no_count is the weighted sum of no votes. */
692
- no_count: string;
693
- /** no_with_veto_count is the weighted sum of veto. */
694
- no_with_veto_count: string;
695
- }
696
- export interface TallyResultAminoMsg {
697
- type: "cosmos-sdk/TallyResult";
698
- value: TallyResultAmino;
699
- }
700
- /** Vote represents a vote for a proposal.string metadata */
701
- export interface Vote {
702
- /** proposal is the unique ID of the proposal. */
703
- proposalId: bigint;
704
- /** voter is the account address of the voter. */
705
- voter: string;
706
- /** option is the voter's choice on the proposal. */
707
- option: VoteOption;
708
- /**
709
- * metadata is any arbitrary metadata attached to the vote.
710
- * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#vote-2
711
- */
712
- metadata: string;
713
- /** submit_time is the timestamp when the vote was submitted. */
714
- submitTime: Date;
715
- }
716
- export interface VoteProtoMsg {
717
- typeUrl: "/cosmos.group.v1.Vote";
718
- value: Uint8Array;
719
- }
720
- /** Vote represents a vote for a proposal.string metadata */
721
- export interface VoteAmino {
722
- /** proposal is the unique ID of the proposal. */
723
- proposal_id: string;
724
- /** voter is the account address of the voter. */
725
- voter: string;
726
- /** option is the voter's choice on the proposal. */
727
- option: VoteOption;
728
- /**
729
- * metadata is any arbitrary metadata attached to the vote.
730
- * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/group#vote-2
731
- */
732
- metadata: string;
733
- /** submit_time is the timestamp when the vote was submitted. */
734
- submit_time: string;
735
- }
736
- export interface VoteAminoMsg {
737
- type: "cosmos-sdk/Vote";
738
- value: VoteAmino;
739
- }
740
- function createBaseMember(): Member {
741
- return {
742
- address: "",
743
- weight: "",
744
- metadata: "",
745
- addedAt: new Date()
746
- };
747
- }
748
- export const Member = {
749
- typeUrl: "/cosmos.group.v1.Member",
750
- aminoType: "cosmos-sdk/Member",
751
- is(o: any): o is Member {
752
- return o && (o.$typeUrl === Member.typeUrl || typeof o.address === "string" && typeof o.weight === "string" && typeof o.metadata === "string" && Timestamp.is(o.addedAt));
753
- },
754
- isAmino(o: any): o is MemberAmino {
755
- return o && (o.$typeUrl === Member.typeUrl || typeof o.address === "string" && typeof o.weight === "string" && typeof o.metadata === "string" && Timestamp.isAmino(o.added_at));
756
- },
757
- encode(message: Member, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
758
- if (message.address !== "") {
759
- writer.uint32(10).string(message.address);
760
- }
761
- if (message.weight !== "") {
762
- writer.uint32(18).string(message.weight);
763
- }
764
- if (message.metadata !== "") {
765
- writer.uint32(26).string(message.metadata);
766
- }
767
- if (message.addedAt !== undefined) {
768
- Timestamp.encode(toTimestamp(message.addedAt), writer.uint32(34).fork()).ldelim();
769
- }
770
- return writer;
771
- },
772
- decode(input: BinaryReader | Uint8Array, length?: number): Member {
773
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
774
- let end = length === undefined ? reader.len : reader.pos + length;
775
- const message = createBaseMember();
776
- while (reader.pos < end) {
777
- const tag = reader.uint32();
778
- switch (tag >>> 3) {
779
- case 1:
780
- message.address = reader.string();
781
- break;
782
- case 2:
783
- message.weight = reader.string();
784
- break;
785
- case 3:
786
- message.metadata = reader.string();
787
- break;
788
- case 4:
789
- message.addedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
790
- break;
791
- default:
792
- reader.skipType(tag & 7);
793
- break;
794
- }
795
- }
796
- return message;
797
- },
798
- fromPartial(object: DeepPartial<Member>): Member {
799
- const message = createBaseMember();
800
- message.address = object.address ?? "";
801
- message.weight = object.weight ?? "";
802
- message.metadata = object.metadata ?? "";
803
- message.addedAt = object.addedAt ?? undefined;
804
- return message;
805
- },
806
- fromAmino(object: MemberAmino): Member {
807
- const message = createBaseMember();
808
- if (object.address !== undefined && object.address !== null) {
809
- message.address = object.address;
810
- }
811
- if (object.weight !== undefined && object.weight !== null) {
812
- message.weight = object.weight;
813
- }
814
- if (object.metadata !== undefined && object.metadata !== null) {
815
- message.metadata = object.metadata;
816
- }
817
- if (object.added_at !== undefined && object.added_at !== null) {
818
- message.addedAt = fromTimestamp(Timestamp.fromAmino(object.added_at));
819
- }
820
- return message;
821
- },
822
- toAmino(message: Member): MemberAmino {
823
- const obj: any = {};
824
- obj.address = message.address === "" ? undefined : message.address;
825
- obj.weight = message.weight === "" ? undefined : message.weight;
826
- obj.metadata = message.metadata === "" ? undefined : message.metadata;
827
- obj.added_at = message.addedAt ? Timestamp.toAmino(toTimestamp(message.addedAt)) : new Date();
828
- return obj;
829
- },
830
- fromAminoMsg(object: MemberAminoMsg): Member {
831
- return Member.fromAmino(object.value);
832
- },
833
- toAminoMsg(message: Member): MemberAminoMsg {
834
- return {
835
- type: "cosmos-sdk/Member",
836
- value: Member.toAmino(message)
837
- };
838
- },
839
- fromProtoMsg(message: MemberProtoMsg): Member {
840
- return Member.decode(message.value);
841
- },
842
- toProto(message: Member): Uint8Array {
843
- return Member.encode(message).finish();
844
- },
845
- toProtoMsg(message: Member): MemberProtoMsg {
846
- return {
847
- typeUrl: "/cosmos.group.v1.Member",
848
- value: Member.encode(message).finish()
849
- };
850
- }
851
- };
852
- GlobalDecoderRegistry.register(Member.typeUrl, Member);
853
- GlobalDecoderRegistry.registerAminoProtoMapping(Member.aminoType, Member.typeUrl);
854
- function createBaseMemberRequest(): MemberRequest {
855
- return {
856
- address: "",
857
- weight: "",
858
- metadata: ""
859
- };
860
- }
861
- export const MemberRequest = {
862
- typeUrl: "/cosmos.group.v1.MemberRequest",
863
- aminoType: "cosmos-sdk/MemberRequest",
864
- is(o: any): o is MemberRequest {
865
- return o && (o.$typeUrl === MemberRequest.typeUrl || typeof o.address === "string" && typeof o.weight === "string" && typeof o.metadata === "string");
866
- },
867
- isAmino(o: any): o is MemberRequestAmino {
868
- return o && (o.$typeUrl === MemberRequest.typeUrl || typeof o.address === "string" && typeof o.weight === "string" && typeof o.metadata === "string");
869
- },
870
- encode(message: MemberRequest, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
871
- if (message.address !== "") {
872
- writer.uint32(10).string(message.address);
873
- }
874
- if (message.weight !== "") {
875
- writer.uint32(18).string(message.weight);
876
- }
877
- if (message.metadata !== "") {
878
- writer.uint32(26).string(message.metadata);
879
- }
880
- return writer;
881
- },
882
- decode(input: BinaryReader | Uint8Array, length?: number): MemberRequest {
883
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
884
- let end = length === undefined ? reader.len : reader.pos + length;
885
- const message = createBaseMemberRequest();
886
- while (reader.pos < end) {
887
- const tag = reader.uint32();
888
- switch (tag >>> 3) {
889
- case 1:
890
- message.address = reader.string();
891
- break;
892
- case 2:
893
- message.weight = reader.string();
894
- break;
895
- case 3:
896
- message.metadata = reader.string();
897
- break;
898
- default:
899
- reader.skipType(tag & 7);
900
- break;
901
- }
902
- }
903
- return message;
904
- },
905
- fromPartial(object: DeepPartial<MemberRequest>): MemberRequest {
906
- const message = createBaseMemberRequest();
907
- message.address = object.address ?? "";
908
- message.weight = object.weight ?? "";
909
- message.metadata = object.metadata ?? "";
910
- return message;
911
- },
912
- fromAmino(object: MemberRequestAmino): MemberRequest {
913
- const message = createBaseMemberRequest();
914
- if (object.address !== undefined && object.address !== null) {
915
- message.address = object.address;
916
- }
917
- if (object.weight !== undefined && object.weight !== null) {
918
- message.weight = object.weight;
919
- }
920
- if (object.metadata !== undefined && object.metadata !== null) {
921
- message.metadata = object.metadata;
922
- }
923
- return message;
924
- },
925
- toAmino(message: MemberRequest): MemberRequestAmino {
926
- const obj: any = {};
927
- obj.address = message.address === "" ? undefined : message.address;
928
- obj.weight = message.weight === "" ? undefined : message.weight;
929
- obj.metadata = message.metadata === "" ? undefined : message.metadata;
930
- return obj;
931
- },
932
- fromAminoMsg(object: MemberRequestAminoMsg): MemberRequest {
933
- return MemberRequest.fromAmino(object.value);
934
- },
935
- toAminoMsg(message: MemberRequest): MemberRequestAminoMsg {
936
- return {
937
- type: "cosmos-sdk/MemberRequest",
938
- value: MemberRequest.toAmino(message)
939
- };
940
- },
941
- fromProtoMsg(message: MemberRequestProtoMsg): MemberRequest {
942
- return MemberRequest.decode(message.value);
943
- },
944
- toProto(message: MemberRequest): Uint8Array {
945
- return MemberRequest.encode(message).finish();
946
- },
947
- toProtoMsg(message: MemberRequest): MemberRequestProtoMsg {
948
- return {
949
- typeUrl: "/cosmos.group.v1.MemberRequest",
950
- value: MemberRequest.encode(message).finish()
951
- };
952
- }
953
- };
954
- GlobalDecoderRegistry.register(MemberRequest.typeUrl, MemberRequest);
955
- GlobalDecoderRegistry.registerAminoProtoMapping(MemberRequest.aminoType, MemberRequest.typeUrl);
956
- function createBaseThresholdDecisionPolicy(): ThresholdDecisionPolicy {
957
- return {
958
- threshold: "",
959
- windows: undefined
960
- };
961
- }
962
- export const ThresholdDecisionPolicy = {
963
- typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy",
964
- aminoType: "cosmos-sdk/ThresholdDecisionPolicy",
965
- is(o: any): o is ThresholdDecisionPolicy {
966
- return o && (o.$typeUrl === ThresholdDecisionPolicy.typeUrl || typeof o.threshold === "string");
967
- },
968
- isAmino(o: any): o is ThresholdDecisionPolicyAmino {
969
- return o && (o.$typeUrl === ThresholdDecisionPolicy.typeUrl || typeof o.threshold === "string");
970
- },
971
- encode(message: ThresholdDecisionPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
972
- if (message.threshold !== "") {
973
- writer.uint32(10).string(message.threshold);
974
- }
975
- if (message.windows !== undefined) {
976
- DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim();
977
- }
978
- return writer;
979
- },
980
- decode(input: BinaryReader | Uint8Array, length?: number): ThresholdDecisionPolicy {
981
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
982
- let end = length === undefined ? reader.len : reader.pos + length;
983
- const message = createBaseThresholdDecisionPolicy();
984
- while (reader.pos < end) {
985
- const tag = reader.uint32();
986
- switch (tag >>> 3) {
987
- case 1:
988
- message.threshold = reader.string();
989
- break;
990
- case 2:
991
- message.windows = DecisionPolicyWindows.decode(reader, reader.uint32());
992
- break;
993
- default:
994
- reader.skipType(tag & 7);
995
- break;
996
- }
997
- }
998
- return message;
999
- },
1000
- fromPartial(object: DeepPartial<ThresholdDecisionPolicy>): ThresholdDecisionPolicy {
1001
- const message = createBaseThresholdDecisionPolicy();
1002
- message.threshold = object.threshold ?? "";
1003
- message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined;
1004
- return message;
1005
- },
1006
- fromAmino(object: ThresholdDecisionPolicyAmino): ThresholdDecisionPolicy {
1007
- const message = createBaseThresholdDecisionPolicy();
1008
- if (object.threshold !== undefined && object.threshold !== null) {
1009
- message.threshold = object.threshold;
1010
- }
1011
- if (object.windows !== undefined && object.windows !== null) {
1012
- message.windows = DecisionPolicyWindows.fromAmino(object.windows);
1013
- }
1014
- return message;
1015
- },
1016
- toAmino(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAmino {
1017
- const obj: any = {};
1018
- obj.threshold = message.threshold === "" ? undefined : message.threshold;
1019
- obj.windows = message.windows ? DecisionPolicyWindows.toAmino(message.windows) : undefined;
1020
- return obj;
1021
- },
1022
- fromAminoMsg(object: ThresholdDecisionPolicyAminoMsg): ThresholdDecisionPolicy {
1023
- return ThresholdDecisionPolicy.fromAmino(object.value);
1024
- },
1025
- toAminoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyAminoMsg {
1026
- return {
1027
- type: "cosmos-sdk/ThresholdDecisionPolicy",
1028
- value: ThresholdDecisionPolicy.toAmino(message)
1029
- };
1030
- },
1031
- fromProtoMsg(message: ThresholdDecisionPolicyProtoMsg): ThresholdDecisionPolicy {
1032
- return ThresholdDecisionPolicy.decode(message.value);
1033
- },
1034
- toProto(message: ThresholdDecisionPolicy): Uint8Array {
1035
- return ThresholdDecisionPolicy.encode(message).finish();
1036
- },
1037
- toProtoMsg(message: ThresholdDecisionPolicy): ThresholdDecisionPolicyProtoMsg {
1038
- return {
1039
- typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy",
1040
- value: ThresholdDecisionPolicy.encode(message).finish()
1041
- };
1042
- }
1043
- };
1044
- GlobalDecoderRegistry.register(ThresholdDecisionPolicy.typeUrl, ThresholdDecisionPolicy);
1045
- GlobalDecoderRegistry.registerAminoProtoMapping(ThresholdDecisionPolicy.aminoType, ThresholdDecisionPolicy.typeUrl);
1046
- function createBasePercentageDecisionPolicy(): PercentageDecisionPolicy {
1047
- return {
1048
- percentage: "",
1049
- windows: undefined
1050
- };
1051
- }
1052
- export const PercentageDecisionPolicy = {
1053
- typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy",
1054
- aminoType: "cosmos-sdk/PercentageDecisionPolicy",
1055
- is(o: any): o is PercentageDecisionPolicy {
1056
- return o && (o.$typeUrl === PercentageDecisionPolicy.typeUrl || typeof o.percentage === "string");
1057
- },
1058
- isAmino(o: any): o is PercentageDecisionPolicyAmino {
1059
- return o && (o.$typeUrl === PercentageDecisionPolicy.typeUrl || typeof o.percentage === "string");
1060
- },
1061
- encode(message: PercentageDecisionPolicy, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1062
- if (message.percentage !== "") {
1063
- writer.uint32(10).string(message.percentage);
1064
- }
1065
- if (message.windows !== undefined) {
1066
- DecisionPolicyWindows.encode(message.windows, writer.uint32(18).fork()).ldelim();
1067
- }
1068
- return writer;
1069
- },
1070
- decode(input: BinaryReader | Uint8Array, length?: number): PercentageDecisionPolicy {
1071
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1072
- let end = length === undefined ? reader.len : reader.pos + length;
1073
- const message = createBasePercentageDecisionPolicy();
1074
- while (reader.pos < end) {
1075
- const tag = reader.uint32();
1076
- switch (tag >>> 3) {
1077
- case 1:
1078
- message.percentage = reader.string();
1079
- break;
1080
- case 2:
1081
- message.windows = DecisionPolicyWindows.decode(reader, reader.uint32());
1082
- break;
1083
- default:
1084
- reader.skipType(tag & 7);
1085
- break;
1086
- }
1087
- }
1088
- return message;
1089
- },
1090
- fromPartial(object: DeepPartial<PercentageDecisionPolicy>): PercentageDecisionPolicy {
1091
- const message = createBasePercentageDecisionPolicy();
1092
- message.percentage = object.percentage ?? "";
1093
- message.windows = object.windows !== undefined && object.windows !== null ? DecisionPolicyWindows.fromPartial(object.windows) : undefined;
1094
- return message;
1095
- },
1096
- fromAmino(object: PercentageDecisionPolicyAmino): PercentageDecisionPolicy {
1097
- const message = createBasePercentageDecisionPolicy();
1098
- if (object.percentage !== undefined && object.percentage !== null) {
1099
- message.percentage = object.percentage;
1100
- }
1101
- if (object.windows !== undefined && object.windows !== null) {
1102
- message.windows = DecisionPolicyWindows.fromAmino(object.windows);
1103
- }
1104
- return message;
1105
- },
1106
- toAmino(message: PercentageDecisionPolicy): PercentageDecisionPolicyAmino {
1107
- const obj: any = {};
1108
- obj.percentage = message.percentage === "" ? undefined : message.percentage;
1109
- obj.windows = message.windows ? DecisionPolicyWindows.toAmino(message.windows) : undefined;
1110
- return obj;
1111
- },
1112
- fromAminoMsg(object: PercentageDecisionPolicyAminoMsg): PercentageDecisionPolicy {
1113
- return PercentageDecisionPolicy.fromAmino(object.value);
1114
- },
1115
- toAminoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyAminoMsg {
1116
- return {
1117
- type: "cosmos-sdk/PercentageDecisionPolicy",
1118
- value: PercentageDecisionPolicy.toAmino(message)
1119
- };
1120
- },
1121
- fromProtoMsg(message: PercentageDecisionPolicyProtoMsg): PercentageDecisionPolicy {
1122
- return PercentageDecisionPolicy.decode(message.value);
1123
- },
1124
- toProto(message: PercentageDecisionPolicy): Uint8Array {
1125
- return PercentageDecisionPolicy.encode(message).finish();
1126
- },
1127
- toProtoMsg(message: PercentageDecisionPolicy): PercentageDecisionPolicyProtoMsg {
1128
- return {
1129
- typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy",
1130
- value: PercentageDecisionPolicy.encode(message).finish()
1131
- };
1132
- }
1133
- };
1134
- GlobalDecoderRegistry.register(PercentageDecisionPolicy.typeUrl, PercentageDecisionPolicy);
1135
- GlobalDecoderRegistry.registerAminoProtoMapping(PercentageDecisionPolicy.aminoType, PercentageDecisionPolicy.typeUrl);
1136
- function createBaseDecisionPolicyWindows(): DecisionPolicyWindows {
1137
- return {
1138
- votingPeriod: Duration.fromPartial({}),
1139
- minExecutionPeriod: Duration.fromPartial({})
1140
- };
1141
- }
1142
- export const DecisionPolicyWindows = {
1143
- typeUrl: "/cosmos.group.v1.DecisionPolicyWindows",
1144
- aminoType: "cosmos-sdk/DecisionPolicyWindows",
1145
- is(o: any): o is DecisionPolicyWindows {
1146
- return o && (o.$typeUrl === DecisionPolicyWindows.typeUrl || Duration.is(o.votingPeriod) && Duration.is(o.minExecutionPeriod));
1147
- },
1148
- isAmino(o: any): o is DecisionPolicyWindowsAmino {
1149
- return o && (o.$typeUrl === DecisionPolicyWindows.typeUrl || Duration.isAmino(o.voting_period) && Duration.isAmino(o.min_execution_period));
1150
- },
1151
- encode(message: DecisionPolicyWindows, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1152
- if (message.votingPeriod !== undefined) {
1153
- Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim();
1154
- }
1155
- if (message.minExecutionPeriod !== undefined) {
1156
- Duration.encode(message.minExecutionPeriod, writer.uint32(18).fork()).ldelim();
1157
- }
1158
- return writer;
1159
- },
1160
- decode(input: BinaryReader | Uint8Array, length?: number): DecisionPolicyWindows {
1161
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1162
- let end = length === undefined ? reader.len : reader.pos + length;
1163
- const message = createBaseDecisionPolicyWindows();
1164
- while (reader.pos < end) {
1165
- const tag = reader.uint32();
1166
- switch (tag >>> 3) {
1167
- case 1:
1168
- message.votingPeriod = Duration.decode(reader, reader.uint32());
1169
- break;
1170
- case 2:
1171
- message.minExecutionPeriod = Duration.decode(reader, reader.uint32());
1172
- break;
1173
- default:
1174
- reader.skipType(tag & 7);
1175
- break;
1176
- }
1177
- }
1178
- return message;
1179
- },
1180
- fromPartial(object: DeepPartial<DecisionPolicyWindows>): DecisionPolicyWindows {
1181
- const message = createBaseDecisionPolicyWindows();
1182
- message.votingPeriod = object.votingPeriod !== undefined && object.votingPeriod !== null ? Duration.fromPartial(object.votingPeriod) : undefined;
1183
- message.minExecutionPeriod = object.minExecutionPeriod !== undefined && object.minExecutionPeriod !== null ? Duration.fromPartial(object.minExecutionPeriod) : undefined;
1184
- return message;
1185
- },
1186
- fromAmino(object: DecisionPolicyWindowsAmino): DecisionPolicyWindows {
1187
- const message = createBaseDecisionPolicyWindows();
1188
- if (object.voting_period !== undefined && object.voting_period !== null) {
1189
- message.votingPeriod = Duration.fromAmino(object.voting_period);
1190
- }
1191
- if (object.min_execution_period !== undefined && object.min_execution_period !== null) {
1192
- message.minExecutionPeriod = Duration.fromAmino(object.min_execution_period);
1193
- }
1194
- return message;
1195
- },
1196
- toAmino(message: DecisionPolicyWindows): DecisionPolicyWindowsAmino {
1197
- const obj: any = {};
1198
- obj.voting_period = message.votingPeriod ? Duration.toAmino(message.votingPeriod) : Duration.toAmino(Duration.fromPartial({}));
1199
- obj.min_execution_period = message.minExecutionPeriod ? Duration.toAmino(message.minExecutionPeriod) : Duration.toAmino(Duration.fromPartial({}));
1200
- return obj;
1201
- },
1202
- fromAminoMsg(object: DecisionPolicyWindowsAminoMsg): DecisionPolicyWindows {
1203
- return DecisionPolicyWindows.fromAmino(object.value);
1204
- },
1205
- toAminoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsAminoMsg {
1206
- return {
1207
- type: "cosmos-sdk/DecisionPolicyWindows",
1208
- value: DecisionPolicyWindows.toAmino(message)
1209
- };
1210
- },
1211
- fromProtoMsg(message: DecisionPolicyWindowsProtoMsg): DecisionPolicyWindows {
1212
- return DecisionPolicyWindows.decode(message.value);
1213
- },
1214
- toProto(message: DecisionPolicyWindows): Uint8Array {
1215
- return DecisionPolicyWindows.encode(message).finish();
1216
- },
1217
- toProtoMsg(message: DecisionPolicyWindows): DecisionPolicyWindowsProtoMsg {
1218
- return {
1219
- typeUrl: "/cosmos.group.v1.DecisionPolicyWindows",
1220
- value: DecisionPolicyWindows.encode(message).finish()
1221
- };
1222
- }
1223
- };
1224
- GlobalDecoderRegistry.register(DecisionPolicyWindows.typeUrl, DecisionPolicyWindows);
1225
- GlobalDecoderRegistry.registerAminoProtoMapping(DecisionPolicyWindows.aminoType, DecisionPolicyWindows.typeUrl);
1226
- function createBaseGroupInfo(): GroupInfo {
1227
- return {
1228
- id: BigInt(0),
1229
- admin: "",
1230
- metadata: "",
1231
- version: BigInt(0),
1232
- totalWeight: "",
1233
- createdAt: new Date()
1234
- };
1235
- }
1236
- export const GroupInfo = {
1237
- typeUrl: "/cosmos.group.v1.GroupInfo",
1238
- aminoType: "cosmos-sdk/GroupInfo",
1239
- is(o: any): o is GroupInfo {
1240
- return o && (o.$typeUrl === GroupInfo.typeUrl || typeof o.id === "bigint" && typeof o.admin === "string" && typeof o.metadata === "string" && typeof o.version === "bigint" && typeof o.totalWeight === "string" && Timestamp.is(o.createdAt));
1241
- },
1242
- isAmino(o: any): o is GroupInfoAmino {
1243
- return o && (o.$typeUrl === GroupInfo.typeUrl || typeof o.id === "bigint" && typeof o.admin === "string" && typeof o.metadata === "string" && typeof o.version === "bigint" && typeof o.total_weight === "string" && Timestamp.isAmino(o.created_at));
1244
- },
1245
- encode(message: GroupInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1246
- if (message.id !== BigInt(0)) {
1247
- writer.uint32(8).uint64(message.id);
1248
- }
1249
- if (message.admin !== "") {
1250
- writer.uint32(18).string(message.admin);
1251
- }
1252
- if (message.metadata !== "") {
1253
- writer.uint32(26).string(message.metadata);
1254
- }
1255
- if (message.version !== BigInt(0)) {
1256
- writer.uint32(32).uint64(message.version);
1257
- }
1258
- if (message.totalWeight !== "") {
1259
- writer.uint32(42).string(message.totalWeight);
1260
- }
1261
- if (message.createdAt !== undefined) {
1262
- Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(50).fork()).ldelim();
1263
- }
1264
- return writer;
1265
- },
1266
- decode(input: BinaryReader | Uint8Array, length?: number): GroupInfo {
1267
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1268
- let end = length === undefined ? reader.len : reader.pos + length;
1269
- const message = createBaseGroupInfo();
1270
- while (reader.pos < end) {
1271
- const tag = reader.uint32();
1272
- switch (tag >>> 3) {
1273
- case 1:
1274
- message.id = reader.uint64();
1275
- break;
1276
- case 2:
1277
- message.admin = reader.string();
1278
- break;
1279
- case 3:
1280
- message.metadata = reader.string();
1281
- break;
1282
- case 4:
1283
- message.version = reader.uint64();
1284
- break;
1285
- case 5:
1286
- message.totalWeight = reader.string();
1287
- break;
1288
- case 6:
1289
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1290
- break;
1291
- default:
1292
- reader.skipType(tag & 7);
1293
- break;
1294
- }
1295
- }
1296
- return message;
1297
- },
1298
- fromPartial(object: DeepPartial<GroupInfo>): GroupInfo {
1299
- const message = createBaseGroupInfo();
1300
- message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
1301
- message.admin = object.admin ?? "";
1302
- message.metadata = object.metadata ?? "";
1303
- message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0);
1304
- message.totalWeight = object.totalWeight ?? "";
1305
- message.createdAt = object.createdAt ?? undefined;
1306
- return message;
1307
- },
1308
- fromAmino(object: GroupInfoAmino): GroupInfo {
1309
- const message = createBaseGroupInfo();
1310
- if (object.id !== undefined && object.id !== null) {
1311
- message.id = BigInt(object.id);
1312
- }
1313
- if (object.admin !== undefined && object.admin !== null) {
1314
- message.admin = object.admin;
1315
- }
1316
- if (object.metadata !== undefined && object.metadata !== null) {
1317
- message.metadata = object.metadata;
1318
- }
1319
- if (object.version !== undefined && object.version !== null) {
1320
- message.version = BigInt(object.version);
1321
- }
1322
- if (object.total_weight !== undefined && object.total_weight !== null) {
1323
- message.totalWeight = object.total_weight;
1324
- }
1325
- if (object.created_at !== undefined && object.created_at !== null) {
1326
- message.createdAt = fromTimestamp(Timestamp.fromAmino(object.created_at));
1327
- }
1328
- return message;
1329
- },
1330
- toAmino(message: GroupInfo): GroupInfoAmino {
1331
- const obj: any = {};
1332
- obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
1333
- obj.admin = message.admin === "" ? undefined : message.admin;
1334
- obj.metadata = message.metadata === "" ? undefined : message.metadata;
1335
- obj.version = message.version !== BigInt(0) ? message.version?.toString() : undefined;
1336
- obj.total_weight = message.totalWeight === "" ? undefined : message.totalWeight;
1337
- obj.created_at = message.createdAt ? Timestamp.toAmino(toTimestamp(message.createdAt)) : new Date();
1338
- return obj;
1339
- },
1340
- fromAminoMsg(object: GroupInfoAminoMsg): GroupInfo {
1341
- return GroupInfo.fromAmino(object.value);
1342
- },
1343
- toAminoMsg(message: GroupInfo): GroupInfoAminoMsg {
1344
- return {
1345
- type: "cosmos-sdk/GroupInfo",
1346
- value: GroupInfo.toAmino(message)
1347
- };
1348
- },
1349
- fromProtoMsg(message: GroupInfoProtoMsg): GroupInfo {
1350
- return GroupInfo.decode(message.value);
1351
- },
1352
- toProto(message: GroupInfo): Uint8Array {
1353
- return GroupInfo.encode(message).finish();
1354
- },
1355
- toProtoMsg(message: GroupInfo): GroupInfoProtoMsg {
1356
- return {
1357
- typeUrl: "/cosmos.group.v1.GroupInfo",
1358
- value: GroupInfo.encode(message).finish()
1359
- };
1360
- }
1361
- };
1362
- GlobalDecoderRegistry.register(GroupInfo.typeUrl, GroupInfo);
1363
- GlobalDecoderRegistry.registerAminoProtoMapping(GroupInfo.aminoType, GroupInfo.typeUrl);
1364
- function createBaseGroupMember(): GroupMember {
1365
- return {
1366
- groupId: BigInt(0),
1367
- member: undefined
1368
- };
1369
- }
1370
- export const GroupMember = {
1371
- typeUrl: "/cosmos.group.v1.GroupMember",
1372
- aminoType: "cosmos-sdk/GroupMember",
1373
- is(o: any): o is GroupMember {
1374
- return o && (o.$typeUrl === GroupMember.typeUrl || typeof o.groupId === "bigint");
1375
- },
1376
- isAmino(o: any): o is GroupMemberAmino {
1377
- return o && (o.$typeUrl === GroupMember.typeUrl || typeof o.group_id === "bigint");
1378
- },
1379
- encode(message: GroupMember, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1380
- if (message.groupId !== BigInt(0)) {
1381
- writer.uint32(8).uint64(message.groupId);
1382
- }
1383
- if (message.member !== undefined) {
1384
- Member.encode(message.member, writer.uint32(18).fork()).ldelim();
1385
- }
1386
- return writer;
1387
- },
1388
- decode(input: BinaryReader | Uint8Array, length?: number): GroupMember {
1389
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1390
- let end = length === undefined ? reader.len : reader.pos + length;
1391
- const message = createBaseGroupMember();
1392
- while (reader.pos < end) {
1393
- const tag = reader.uint32();
1394
- switch (tag >>> 3) {
1395
- case 1:
1396
- message.groupId = reader.uint64();
1397
- break;
1398
- case 2:
1399
- message.member = Member.decode(reader, reader.uint32());
1400
- break;
1401
- default:
1402
- reader.skipType(tag & 7);
1403
- break;
1404
- }
1405
- }
1406
- return message;
1407
- },
1408
- fromPartial(object: DeepPartial<GroupMember>): GroupMember {
1409
- const message = createBaseGroupMember();
1410
- message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
1411
- message.member = object.member !== undefined && object.member !== null ? Member.fromPartial(object.member) : undefined;
1412
- return message;
1413
- },
1414
- fromAmino(object: GroupMemberAmino): GroupMember {
1415
- const message = createBaseGroupMember();
1416
- if (object.group_id !== undefined && object.group_id !== null) {
1417
- message.groupId = BigInt(object.group_id);
1418
- }
1419
- if (object.member !== undefined && object.member !== null) {
1420
- message.member = Member.fromAmino(object.member);
1421
- }
1422
- return message;
1423
- },
1424
- toAmino(message: GroupMember): GroupMemberAmino {
1425
- const obj: any = {};
1426
- obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
1427
- obj.member = message.member ? Member.toAmino(message.member) : undefined;
1428
- return obj;
1429
- },
1430
- fromAminoMsg(object: GroupMemberAminoMsg): GroupMember {
1431
- return GroupMember.fromAmino(object.value);
1432
- },
1433
- toAminoMsg(message: GroupMember): GroupMemberAminoMsg {
1434
- return {
1435
- type: "cosmos-sdk/GroupMember",
1436
- value: GroupMember.toAmino(message)
1437
- };
1438
- },
1439
- fromProtoMsg(message: GroupMemberProtoMsg): GroupMember {
1440
- return GroupMember.decode(message.value);
1441
- },
1442
- toProto(message: GroupMember): Uint8Array {
1443
- return GroupMember.encode(message).finish();
1444
- },
1445
- toProtoMsg(message: GroupMember): GroupMemberProtoMsg {
1446
- return {
1447
- typeUrl: "/cosmos.group.v1.GroupMember",
1448
- value: GroupMember.encode(message).finish()
1449
- };
1450
- }
1451
- };
1452
- GlobalDecoderRegistry.register(GroupMember.typeUrl, GroupMember);
1453
- GlobalDecoderRegistry.registerAminoProtoMapping(GroupMember.aminoType, GroupMember.typeUrl);
1454
- function createBaseGroupPolicyInfo(): GroupPolicyInfo {
1455
- return {
1456
- address: "",
1457
- groupId: BigInt(0),
1458
- admin: "",
1459
- metadata: "",
1460
- version: BigInt(0),
1461
- decisionPolicy: undefined,
1462
- createdAt: new Date()
1463
- };
1464
- }
1465
- export const GroupPolicyInfo = {
1466
- typeUrl: "/cosmos.group.v1.GroupPolicyInfo",
1467
- aminoType: "cosmos-sdk/GroupPolicyInfo",
1468
- is(o: any): o is GroupPolicyInfo {
1469
- return o && (o.$typeUrl === GroupPolicyInfo.typeUrl || typeof o.address === "string" && typeof o.groupId === "bigint" && typeof o.admin === "string" && typeof o.metadata === "string" && typeof o.version === "bigint" && Timestamp.is(o.createdAt));
1470
- },
1471
- isAmino(o: any): o is GroupPolicyInfoAmino {
1472
- return o && (o.$typeUrl === GroupPolicyInfo.typeUrl || typeof o.address === "string" && typeof o.group_id === "bigint" && typeof o.admin === "string" && typeof o.metadata === "string" && typeof o.version === "bigint" && Timestamp.isAmino(o.created_at));
1473
- },
1474
- encode(message: GroupPolicyInfo, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1475
- if (message.address !== "") {
1476
- writer.uint32(10).string(message.address);
1477
- }
1478
- if (message.groupId !== BigInt(0)) {
1479
- writer.uint32(16).uint64(message.groupId);
1480
- }
1481
- if (message.admin !== "") {
1482
- writer.uint32(26).string(message.admin);
1483
- }
1484
- if (message.metadata !== "") {
1485
- writer.uint32(34).string(message.metadata);
1486
- }
1487
- if (message.version !== BigInt(0)) {
1488
- writer.uint32(40).uint64(message.version);
1489
- }
1490
- if (message.decisionPolicy !== undefined) {
1491
- Any.encode(GlobalDecoderRegistry.wrapAny(message.decisionPolicy), writer.uint32(50).fork()).ldelim();
1492
- }
1493
- if (message.createdAt !== undefined) {
1494
- Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(58).fork()).ldelim();
1495
- }
1496
- return writer;
1497
- },
1498
- decode(input: BinaryReader | Uint8Array, length?: number): GroupPolicyInfo {
1499
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1500
- let end = length === undefined ? reader.len : reader.pos + length;
1501
- const message = createBaseGroupPolicyInfo();
1502
- while (reader.pos < end) {
1503
- const tag = reader.uint32();
1504
- switch (tag >>> 3) {
1505
- case 1:
1506
- message.address = reader.string();
1507
- break;
1508
- case 2:
1509
- message.groupId = reader.uint64();
1510
- break;
1511
- case 3:
1512
- message.admin = reader.string();
1513
- break;
1514
- case 4:
1515
- message.metadata = reader.string();
1516
- break;
1517
- case 5:
1518
- message.version = reader.uint64();
1519
- break;
1520
- case 6:
1521
- message.decisionPolicy = GlobalDecoderRegistry.unwrapAny(reader);
1522
- break;
1523
- case 7:
1524
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1525
- break;
1526
- default:
1527
- reader.skipType(tag & 7);
1528
- break;
1529
- }
1530
- }
1531
- return message;
1532
- },
1533
- fromPartial(object: DeepPartial<GroupPolicyInfo>): GroupPolicyInfo {
1534
- const message = createBaseGroupPolicyInfo();
1535
- message.address = object.address ?? "";
1536
- message.groupId = object.groupId !== undefined && object.groupId !== null ? BigInt(object.groupId.toString()) : BigInt(0);
1537
- message.admin = object.admin ?? "";
1538
- message.metadata = object.metadata ?? "";
1539
- message.version = object.version !== undefined && object.version !== null ? BigInt(object.version.toString()) : BigInt(0);
1540
- message.decisionPolicy = object.decisionPolicy !== undefined && object.decisionPolicy !== null ? GlobalDecoderRegistry.fromPartial(object.decisionPolicy) : undefined;
1541
- message.createdAt = object.createdAt ?? undefined;
1542
- return message;
1543
- },
1544
- fromAmino(object: GroupPolicyInfoAmino): GroupPolicyInfo {
1545
- const message = createBaseGroupPolicyInfo();
1546
- if (object.address !== undefined && object.address !== null) {
1547
- message.address = object.address;
1548
- }
1549
- if (object.group_id !== undefined && object.group_id !== null) {
1550
- message.groupId = BigInt(object.group_id);
1551
- }
1552
- if (object.admin !== undefined && object.admin !== null) {
1553
- message.admin = object.admin;
1554
- }
1555
- if (object.metadata !== undefined && object.metadata !== null) {
1556
- message.metadata = object.metadata;
1557
- }
1558
- if (object.version !== undefined && object.version !== null) {
1559
- message.version = BigInt(object.version);
1560
- }
1561
- if (object.decision_policy !== undefined && object.decision_policy !== null) {
1562
- message.decisionPolicy = GlobalDecoderRegistry.fromAminoMsg(object.decision_policy);
1563
- }
1564
- if (object.created_at !== undefined && object.created_at !== null) {
1565
- message.createdAt = fromTimestamp(Timestamp.fromAmino(object.created_at));
1566
- }
1567
- return message;
1568
- },
1569
- toAmino(message: GroupPolicyInfo): GroupPolicyInfoAmino {
1570
- const obj: any = {};
1571
- obj.address = message.address === "" ? undefined : message.address;
1572
- obj.group_id = message.groupId !== BigInt(0) ? message.groupId?.toString() : undefined;
1573
- obj.admin = message.admin === "" ? undefined : message.admin;
1574
- obj.metadata = message.metadata === "" ? undefined : message.metadata;
1575
- obj.version = message.version !== BigInt(0) ? message.version?.toString() : undefined;
1576
- obj.decision_policy = message.decisionPolicy ? GlobalDecoderRegistry.toAminoMsg(message.decisionPolicy) : undefined;
1577
- obj.created_at = message.createdAt ? Timestamp.toAmino(toTimestamp(message.createdAt)) : new Date();
1578
- return obj;
1579
- },
1580
- fromAminoMsg(object: GroupPolicyInfoAminoMsg): GroupPolicyInfo {
1581
- return GroupPolicyInfo.fromAmino(object.value);
1582
- },
1583
- toAminoMsg(message: GroupPolicyInfo): GroupPolicyInfoAminoMsg {
1584
- return {
1585
- type: "cosmos-sdk/GroupPolicyInfo",
1586
- value: GroupPolicyInfo.toAmino(message)
1587
- };
1588
- },
1589
- fromProtoMsg(message: GroupPolicyInfoProtoMsg): GroupPolicyInfo {
1590
- return GroupPolicyInfo.decode(message.value);
1591
- },
1592
- toProto(message: GroupPolicyInfo): Uint8Array {
1593
- return GroupPolicyInfo.encode(message).finish();
1594
- },
1595
- toProtoMsg(message: GroupPolicyInfo): GroupPolicyInfoProtoMsg {
1596
- return {
1597
- typeUrl: "/cosmos.group.v1.GroupPolicyInfo",
1598
- value: GroupPolicyInfo.encode(message).finish()
1599
- };
1600
- }
1601
- };
1602
- GlobalDecoderRegistry.register(GroupPolicyInfo.typeUrl, GroupPolicyInfo);
1603
- GlobalDecoderRegistry.registerAminoProtoMapping(GroupPolicyInfo.aminoType, GroupPolicyInfo.typeUrl);
1604
- function createBaseProposal(): Proposal {
1605
- return {
1606
- id: BigInt(0),
1607
- groupPolicyAddress: "",
1608
- metadata: "",
1609
- proposers: [],
1610
- submitTime: new Date(),
1611
- groupVersion: BigInt(0),
1612
- groupPolicyVersion: BigInt(0),
1613
- status: 0,
1614
- finalTallyResult: TallyResult.fromPartial({}),
1615
- votingPeriodEnd: new Date(),
1616
- executorResult: 0,
1617
- messages: [],
1618
- title: "",
1619
- summary: ""
1620
- };
1621
- }
1622
- export const Proposal = {
1623
- typeUrl: "/cosmos.group.v1.Proposal",
1624
- aminoType: "cosmos-sdk/Proposal",
1625
- is(o: any): o is Proposal {
1626
- return o && (o.$typeUrl === 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.is(o.submitTime) && typeof o.groupVersion === "bigint" && typeof o.groupPolicyVersion === "bigint" && isSet(o.status) && TallyResult.is(o.finalTallyResult) && Timestamp.is(o.votingPeriodEnd) && isSet(o.executorResult) && Array.isArray(o.messages) && (!o.messages.length || Any.is(o.messages[0])) && typeof o.title === "string" && typeof o.summary === "string");
1627
- },
1628
- isAmino(o: any): o is ProposalAmino {
1629
- return o && (o.$typeUrl === 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.isAmino(o.submit_time) && typeof o.group_version === "bigint" && typeof o.group_policy_version === "bigint" && isSet(o.status) && TallyResult.isAmino(o.final_tally_result) && Timestamp.isAmino(o.voting_period_end) && isSet(o.executor_result) && Array.isArray(o.messages) && (!o.messages.length || Any.isAmino(o.messages[0])) && typeof o.title === "string" && typeof o.summary === "string");
1630
- },
1631
- encode(message: Proposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1632
- if (message.id !== BigInt(0)) {
1633
- writer.uint32(8).uint64(message.id);
1634
- }
1635
- if (message.groupPolicyAddress !== "") {
1636
- writer.uint32(18).string(message.groupPolicyAddress);
1637
- }
1638
- if (message.metadata !== "") {
1639
- writer.uint32(26).string(message.metadata);
1640
- }
1641
- for (const v of message.proposers) {
1642
- writer.uint32(34).string(v!);
1643
- }
1644
- if (message.submitTime !== undefined) {
1645
- Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim();
1646
- }
1647
- if (message.groupVersion !== BigInt(0)) {
1648
- writer.uint32(48).uint64(message.groupVersion);
1649
- }
1650
- if (message.groupPolicyVersion !== BigInt(0)) {
1651
- writer.uint32(56).uint64(message.groupPolicyVersion);
1652
- }
1653
- if (message.status !== 0) {
1654
- writer.uint32(64).int32(message.status);
1655
- }
1656
- if (message.finalTallyResult !== undefined) {
1657
- TallyResult.encode(message.finalTallyResult, writer.uint32(74).fork()).ldelim();
1658
- }
1659
- if (message.votingPeriodEnd !== undefined) {
1660
- Timestamp.encode(toTimestamp(message.votingPeriodEnd), writer.uint32(82).fork()).ldelim();
1661
- }
1662
- if (message.executorResult !== 0) {
1663
- writer.uint32(88).int32(message.executorResult);
1664
- }
1665
- for (const v of message.messages) {
1666
- Any.encode(v!, writer.uint32(98).fork()).ldelim();
1667
- }
1668
- if (message.title !== "") {
1669
- writer.uint32(106).string(message.title);
1670
- }
1671
- if (message.summary !== "") {
1672
- writer.uint32(114).string(message.summary);
1673
- }
1674
- return writer;
1675
- },
1676
- decode(input: BinaryReader | Uint8Array, length?: number): Proposal {
1677
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1678
- let end = length === undefined ? reader.len : reader.pos + length;
1679
- const message = createBaseProposal();
1680
- while (reader.pos < end) {
1681
- const tag = reader.uint32();
1682
- switch (tag >>> 3) {
1683
- case 1:
1684
- message.id = reader.uint64();
1685
- break;
1686
- case 2:
1687
- message.groupPolicyAddress = reader.string();
1688
- break;
1689
- case 3:
1690
- message.metadata = reader.string();
1691
- break;
1692
- case 4:
1693
- message.proposers.push(reader.string());
1694
- break;
1695
- case 5:
1696
- message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1697
- break;
1698
- case 6:
1699
- message.groupVersion = reader.uint64();
1700
- break;
1701
- case 7:
1702
- message.groupPolicyVersion = reader.uint64();
1703
- break;
1704
- case 8:
1705
- message.status = reader.int32() as any;
1706
- break;
1707
- case 9:
1708
- message.finalTallyResult = TallyResult.decode(reader, reader.uint32());
1709
- break;
1710
- case 10:
1711
- message.votingPeriodEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1712
- break;
1713
- case 11:
1714
- message.executorResult = reader.int32() as any;
1715
- break;
1716
- case 12:
1717
- message.messages.push(Any.decode(reader, reader.uint32()));
1718
- break;
1719
- case 13:
1720
- message.title = reader.string();
1721
- break;
1722
- case 14:
1723
- message.summary = reader.string();
1724
- break;
1725
- default:
1726
- reader.skipType(tag & 7);
1727
- break;
1728
- }
1729
- }
1730
- return message;
1731
- },
1732
- fromPartial(object: DeepPartial<Proposal>): Proposal {
1733
- const message = createBaseProposal();
1734
- message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
1735
- message.groupPolicyAddress = object.groupPolicyAddress ?? "";
1736
- message.metadata = object.metadata ?? "";
1737
- message.proposers = object.proposers?.map(e => e) || [];
1738
- message.submitTime = object.submitTime ?? undefined;
1739
- message.groupVersion = object.groupVersion !== undefined && object.groupVersion !== null ? BigInt(object.groupVersion.toString()) : BigInt(0);
1740
- message.groupPolicyVersion = object.groupPolicyVersion !== undefined && object.groupPolicyVersion !== null ? BigInt(object.groupPolicyVersion.toString()) : BigInt(0);
1741
- message.status = object.status ?? 0;
1742
- message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined;
1743
- message.votingPeriodEnd = object.votingPeriodEnd ?? undefined;
1744
- message.executorResult = object.executorResult ?? 0;
1745
- message.messages = object.messages?.map(e => Any.fromPartial(e)) || [];
1746
- message.title = object.title ?? "";
1747
- message.summary = object.summary ?? "";
1748
- return message;
1749
- },
1750
- fromAmino(object: ProposalAmino): Proposal {
1751
- const message = createBaseProposal();
1752
- if (object.id !== undefined && object.id !== null) {
1753
- message.id = BigInt(object.id);
1754
- }
1755
- if (object.group_policy_address !== undefined && object.group_policy_address !== null) {
1756
- message.groupPolicyAddress = object.group_policy_address;
1757
- }
1758
- if (object.metadata !== undefined && object.metadata !== null) {
1759
- message.metadata = object.metadata;
1760
- }
1761
- message.proposers = object.proposers?.map(e => e) || [];
1762
- if (object.submit_time !== undefined && object.submit_time !== null) {
1763
- message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time));
1764
- }
1765
- if (object.group_version !== undefined && object.group_version !== null) {
1766
- message.groupVersion = BigInt(object.group_version);
1767
- }
1768
- if (object.group_policy_version !== undefined && object.group_policy_version !== null) {
1769
- message.groupPolicyVersion = BigInt(object.group_policy_version);
1770
- }
1771
- if (object.status !== undefined && object.status !== null) {
1772
- message.status = object.status;
1773
- }
1774
- if (object.final_tally_result !== undefined && object.final_tally_result !== null) {
1775
- message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result);
1776
- }
1777
- if (object.voting_period_end !== undefined && object.voting_period_end !== null) {
1778
- message.votingPeriodEnd = fromTimestamp(Timestamp.fromAmino(object.voting_period_end));
1779
- }
1780
- if (object.executor_result !== undefined && object.executor_result !== null) {
1781
- message.executorResult = object.executor_result;
1782
- }
1783
- message.messages = object.messages?.map(e => Any.fromAmino(e)) || [];
1784
- if (object.title !== undefined && object.title !== null) {
1785
- message.title = object.title;
1786
- }
1787
- if (object.summary !== undefined && object.summary !== null) {
1788
- message.summary = object.summary;
1789
- }
1790
- return message;
1791
- },
1792
- toAmino(message: Proposal): ProposalAmino {
1793
- const obj: any = {};
1794
- obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
1795
- obj.group_policy_address = message.groupPolicyAddress === "" ? undefined : message.groupPolicyAddress;
1796
- obj.metadata = message.metadata === "" ? undefined : message.metadata;
1797
- if (message.proposers) {
1798
- obj.proposers = message.proposers.map(e => e);
1799
- } else {
1800
- obj.proposers = message.proposers;
1801
- }
1802
- obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : new Date();
1803
- obj.group_version = message.groupVersion !== BigInt(0) ? message.groupVersion?.toString() : undefined;
1804
- obj.group_policy_version = message.groupPolicyVersion !== BigInt(0) ? message.groupPolicyVersion?.toString() : undefined;
1805
- obj.status = message.status === 0 ? undefined : message.status;
1806
- obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : TallyResult.toAmino(TallyResult.fromPartial({}));
1807
- obj.voting_period_end = message.votingPeriodEnd ? Timestamp.toAmino(toTimestamp(message.votingPeriodEnd)) : new Date();
1808
- obj.executor_result = message.executorResult === 0 ? undefined : message.executorResult;
1809
- if (message.messages) {
1810
- obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined);
1811
- } else {
1812
- obj.messages = message.messages;
1813
- }
1814
- obj.title = message.title === "" ? undefined : message.title;
1815
- obj.summary = message.summary === "" ? undefined : message.summary;
1816
- return obj;
1817
- },
1818
- fromAminoMsg(object: ProposalAminoMsg): Proposal {
1819
- return Proposal.fromAmino(object.value);
1820
- },
1821
- toAminoMsg(message: Proposal): ProposalAminoMsg {
1822
- return {
1823
- type: "cosmos-sdk/Proposal",
1824
- value: Proposal.toAmino(message)
1825
- };
1826
- },
1827
- fromProtoMsg(message: ProposalProtoMsg): Proposal {
1828
- return Proposal.decode(message.value);
1829
- },
1830
- toProto(message: Proposal): Uint8Array {
1831
- return Proposal.encode(message).finish();
1832
- },
1833
- toProtoMsg(message: Proposal): ProposalProtoMsg {
1834
- return {
1835
- typeUrl: "/cosmos.group.v1.Proposal",
1836
- value: Proposal.encode(message).finish()
1837
- };
1838
- }
1839
- };
1840
- GlobalDecoderRegistry.register(Proposal.typeUrl, Proposal);
1841
- GlobalDecoderRegistry.registerAminoProtoMapping(Proposal.aminoType, Proposal.typeUrl);
1842
- function createBaseTallyResult(): TallyResult {
1843
- return {
1844
- yesCount: "",
1845
- abstainCount: "",
1846
- noCount: "",
1847
- noWithVetoCount: ""
1848
- };
1849
- }
1850
- export const TallyResult = {
1851
- typeUrl: "/cosmos.group.v1.TallyResult",
1852
- aminoType: "cosmos-sdk/TallyResult",
1853
- is(o: any): o is TallyResult {
1854
- return o && (o.$typeUrl === TallyResult.typeUrl || typeof o.yesCount === "string" && typeof o.abstainCount === "string" && typeof o.noCount === "string" && typeof o.noWithVetoCount === "string");
1855
- },
1856
- isAmino(o: any): o is TallyResultAmino {
1857
- return o && (o.$typeUrl === TallyResult.typeUrl || typeof o.yes_count === "string" && typeof o.abstain_count === "string" && typeof o.no_count === "string" && typeof o.no_with_veto_count === "string");
1858
- },
1859
- encode(message: TallyResult, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1860
- if (message.yesCount !== "") {
1861
- writer.uint32(10).string(message.yesCount);
1862
- }
1863
- if (message.abstainCount !== "") {
1864
- writer.uint32(18).string(message.abstainCount);
1865
- }
1866
- if (message.noCount !== "") {
1867
- writer.uint32(26).string(message.noCount);
1868
- }
1869
- if (message.noWithVetoCount !== "") {
1870
- writer.uint32(34).string(message.noWithVetoCount);
1871
- }
1872
- return writer;
1873
- },
1874
- decode(input: BinaryReader | Uint8Array, length?: number): TallyResult {
1875
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1876
- let end = length === undefined ? reader.len : reader.pos + length;
1877
- const message = createBaseTallyResult();
1878
- while (reader.pos < end) {
1879
- const tag = reader.uint32();
1880
- switch (tag >>> 3) {
1881
- case 1:
1882
- message.yesCount = reader.string();
1883
- break;
1884
- case 2:
1885
- message.abstainCount = reader.string();
1886
- break;
1887
- case 3:
1888
- message.noCount = reader.string();
1889
- break;
1890
- case 4:
1891
- message.noWithVetoCount = reader.string();
1892
- break;
1893
- default:
1894
- reader.skipType(tag & 7);
1895
- break;
1896
- }
1897
- }
1898
- return message;
1899
- },
1900
- fromPartial(object: DeepPartial<TallyResult>): TallyResult {
1901
- const message = createBaseTallyResult();
1902
- message.yesCount = object.yesCount ?? "";
1903
- message.abstainCount = object.abstainCount ?? "";
1904
- message.noCount = object.noCount ?? "";
1905
- message.noWithVetoCount = object.noWithVetoCount ?? "";
1906
- return message;
1907
- },
1908
- fromAmino(object: TallyResultAmino): TallyResult {
1909
- const message = createBaseTallyResult();
1910
- if (object.yes_count !== undefined && object.yes_count !== null) {
1911
- message.yesCount = object.yes_count;
1912
- }
1913
- if (object.abstain_count !== undefined && object.abstain_count !== null) {
1914
- message.abstainCount = object.abstain_count;
1915
- }
1916
- if (object.no_count !== undefined && object.no_count !== null) {
1917
- message.noCount = object.no_count;
1918
- }
1919
- if (object.no_with_veto_count !== undefined && object.no_with_veto_count !== null) {
1920
- message.noWithVetoCount = object.no_with_veto_count;
1921
- }
1922
- return message;
1923
- },
1924
- toAmino(message: TallyResult): TallyResultAmino {
1925
- const obj: any = {};
1926
- obj.yes_count = message.yesCount === "" ? undefined : message.yesCount;
1927
- obj.abstain_count = message.abstainCount === "" ? undefined : message.abstainCount;
1928
- obj.no_count = message.noCount === "" ? undefined : message.noCount;
1929
- obj.no_with_veto_count = message.noWithVetoCount === "" ? undefined : message.noWithVetoCount;
1930
- return obj;
1931
- },
1932
- fromAminoMsg(object: TallyResultAminoMsg): TallyResult {
1933
- return TallyResult.fromAmino(object.value);
1934
- },
1935
- toAminoMsg(message: TallyResult): TallyResultAminoMsg {
1936
- return {
1937
- type: "cosmos-sdk/TallyResult",
1938
- value: TallyResult.toAmino(message)
1939
- };
1940
- },
1941
- fromProtoMsg(message: TallyResultProtoMsg): TallyResult {
1942
- return TallyResult.decode(message.value);
1943
- },
1944
- toProto(message: TallyResult): Uint8Array {
1945
- return TallyResult.encode(message).finish();
1946
- },
1947
- toProtoMsg(message: TallyResult): TallyResultProtoMsg {
1948
- return {
1949
- typeUrl: "/cosmos.group.v1.TallyResult",
1950
- value: TallyResult.encode(message).finish()
1951
- };
1952
- }
1953
- };
1954
- GlobalDecoderRegistry.register(TallyResult.typeUrl, TallyResult);
1955
- GlobalDecoderRegistry.registerAminoProtoMapping(TallyResult.aminoType, TallyResult.typeUrl);
1956
- function createBaseVote(): Vote {
1957
- return {
1958
- proposalId: BigInt(0),
1959
- voter: "",
1960
- option: 0,
1961
- metadata: "",
1962
- submitTime: new Date()
1963
- };
1964
- }
1965
- export const Vote = {
1966
- typeUrl: "/cosmos.group.v1.Vote",
1967
- aminoType: "cosmos-sdk/Vote",
1968
- is(o: any): o is Vote {
1969
- return o && (o.$typeUrl === Vote.typeUrl || typeof o.proposalId === "bigint" && typeof o.voter === "string" && isSet(o.option) && typeof o.metadata === "string" && Timestamp.is(o.submitTime));
1970
- },
1971
- isAmino(o: any): o is VoteAmino {
1972
- return o && (o.$typeUrl === Vote.typeUrl || typeof o.proposal_id === "bigint" && typeof o.voter === "string" && isSet(o.option) && typeof o.metadata === "string" && Timestamp.isAmino(o.submit_time));
1973
- },
1974
- encode(message: Vote, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1975
- if (message.proposalId !== BigInt(0)) {
1976
- writer.uint32(8).uint64(message.proposalId);
1977
- }
1978
- if (message.voter !== "") {
1979
- writer.uint32(18).string(message.voter);
1980
- }
1981
- if (message.option !== 0) {
1982
- writer.uint32(24).int32(message.option);
1983
- }
1984
- if (message.metadata !== "") {
1985
- writer.uint32(34).string(message.metadata);
1986
- }
1987
- if (message.submitTime !== undefined) {
1988
- Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim();
1989
- }
1990
- return writer;
1991
- },
1992
- decode(input: BinaryReader | Uint8Array, length?: number): Vote {
1993
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1994
- let end = length === undefined ? reader.len : reader.pos + length;
1995
- const message = createBaseVote();
1996
- while (reader.pos < end) {
1997
- const tag = reader.uint32();
1998
- switch (tag >>> 3) {
1999
- case 1:
2000
- message.proposalId = reader.uint64();
2001
- break;
2002
- case 2:
2003
- message.voter = reader.string();
2004
- break;
2005
- case 3:
2006
- message.option = reader.int32() as any;
2007
- break;
2008
- case 4:
2009
- message.metadata = reader.string();
2010
- break;
2011
- case 5:
2012
- message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2013
- break;
2014
- default:
2015
- reader.skipType(tag & 7);
2016
- break;
2017
- }
2018
- }
2019
- return message;
2020
- },
2021
- fromPartial(object: DeepPartial<Vote>): Vote {
2022
- const message = createBaseVote();
2023
- message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? BigInt(object.proposalId.toString()) : BigInt(0);
2024
- message.voter = object.voter ?? "";
2025
- message.option = object.option ?? 0;
2026
- message.metadata = object.metadata ?? "";
2027
- message.submitTime = object.submitTime ?? undefined;
2028
- return message;
2029
- },
2030
- fromAmino(object: VoteAmino): Vote {
2031
- const message = createBaseVote();
2032
- if (object.proposal_id !== undefined && object.proposal_id !== null) {
2033
- message.proposalId = BigInt(object.proposal_id);
2034
- }
2035
- if (object.voter !== undefined && object.voter !== null) {
2036
- message.voter = object.voter;
2037
- }
2038
- if (object.option !== undefined && object.option !== null) {
2039
- message.option = object.option;
2040
- }
2041
- if (object.metadata !== undefined && object.metadata !== null) {
2042
- message.metadata = object.metadata;
2043
- }
2044
- if (object.submit_time !== undefined && object.submit_time !== null) {
2045
- message.submitTime = fromTimestamp(Timestamp.fromAmino(object.submit_time));
2046
- }
2047
- return message;
2048
- },
2049
- toAmino(message: Vote): VoteAmino {
2050
- const obj: any = {};
2051
- obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId?.toString() : undefined;
2052
- obj.voter = message.voter === "" ? undefined : message.voter;
2053
- obj.option = message.option === 0 ? undefined : message.option;
2054
- obj.metadata = message.metadata === "" ? undefined : message.metadata;
2055
- obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : new Date();
2056
- return obj;
2057
- },
2058
- fromAminoMsg(object: VoteAminoMsg): Vote {
2059
- return Vote.fromAmino(object.value);
2060
- },
2061
- toAminoMsg(message: Vote): VoteAminoMsg {
2062
- return {
2063
- type: "cosmos-sdk/Vote",
2064
- value: Vote.toAmino(message)
2065
- };
2066
- },
2067
- fromProtoMsg(message: VoteProtoMsg): Vote {
2068
- return Vote.decode(message.value);
2069
- },
2070
- toProto(message: Vote): Uint8Array {
2071
- return Vote.encode(message).finish();
2072
- },
2073
- toProtoMsg(message: Vote): VoteProtoMsg {
2074
- return {
2075
- typeUrl: "/cosmos.group.v1.Vote",
2076
- value: Vote.encode(message).finish()
2077
- };
2078
- }
2079
- };
2080
- GlobalDecoderRegistry.register(Vote.typeUrl, Vote);
2081
- GlobalDecoderRegistry.registerAminoProtoMapping(Vote.aminoType, Vote.typeUrl);