@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,4191 +0,0 @@
1
- import { AccessConfig, AccessConfigAmino, Params, ParamsAmino } from "./types";
2
- import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
3
- import { BinaryReader, BinaryWriter } from "../../../binary";
4
- import { DeepPartial, bytesFromBase64, base64FromBytes } from "../../../helpers";
5
- import { fromBase64, toBase64, toUtf8, fromUtf8 } from "@cosmjs/encoding";
6
- import { GlobalDecoderRegistry } from "../../../registry";
7
- /** MsgStoreCode submit Wasm code to the system */
8
- export interface MsgStoreCode {
9
- /** Sender is the actor that signed the messages */
10
- sender: string;
11
- /** WASMByteCode can be raw or gzip compressed */
12
- wasmByteCode: Uint8Array;
13
- /**
14
- * InstantiatePermission access control to apply on contract creation,
15
- * optional
16
- */
17
- instantiatePermission?: AccessConfig;
18
- }
19
- export interface MsgStoreCodeProtoMsg {
20
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode";
21
- value: Uint8Array;
22
- }
23
- /** MsgStoreCode submit Wasm code to the system */
24
- export interface MsgStoreCodeAmino {
25
- /** Sender is the actor that signed the messages */
26
- sender: string;
27
- /** WASMByteCode can be raw or gzip compressed */
28
- wasm_byte_code: string;
29
- /**
30
- * InstantiatePermission access control to apply on contract creation,
31
- * optional
32
- */
33
- instantiate_permission?: AccessConfigAmino;
34
- }
35
- export interface MsgStoreCodeAminoMsg {
36
- type: "wasm/MsgStoreCode";
37
- value: MsgStoreCodeAmino;
38
- }
39
- /** MsgStoreCodeResponse returns store result data. */
40
- export interface MsgStoreCodeResponse {
41
- /** CodeID is the reference to the stored WASM code */
42
- codeId: bigint;
43
- /** Checksum is the sha256 hash of the stored code */
44
- checksum: Uint8Array;
45
- }
46
- export interface MsgStoreCodeResponseProtoMsg {
47
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreCodeResponse";
48
- value: Uint8Array;
49
- }
50
- /** MsgStoreCodeResponse returns store result data. */
51
- export interface MsgStoreCodeResponseAmino {
52
- /** CodeID is the reference to the stored WASM code */
53
- code_id: string;
54
- /** Checksum is the sha256 hash of the stored code */
55
- checksum: string;
56
- }
57
- export interface MsgStoreCodeResponseAminoMsg {
58
- type: "wasm/MsgStoreCodeResponse";
59
- value: MsgStoreCodeResponseAmino;
60
- }
61
- /**
62
- * MsgInstantiateContract create a new smart contract instance for the given
63
- * code id.
64
- */
65
- export interface MsgInstantiateContract {
66
- /** Sender is the that actor that signed the messages */
67
- sender: string;
68
- /** Admin is an optional address that can execute migrations */
69
- admin: string;
70
- /** CodeID is the reference to the stored WASM code */
71
- codeId: bigint;
72
- /** Label is optional metadata to be stored with a contract instance. */
73
- label: string;
74
- /** Msg json encoded message to be passed to the contract on instantiation */
75
- msg: Uint8Array;
76
- /** Funds coins that are transferred to the contract on instantiation */
77
- funds: Coin[];
78
- }
79
- export interface MsgInstantiateContractProtoMsg {
80
- typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract";
81
- value: Uint8Array;
82
- }
83
- /**
84
- * MsgInstantiateContract create a new smart contract instance for the given
85
- * code id.
86
- */
87
- export interface MsgInstantiateContractAmino {
88
- /** Sender is the that actor that signed the messages */
89
- sender: string;
90
- /** Admin is an optional address that can execute migrations */
91
- admin: string;
92
- /** CodeID is the reference to the stored WASM code */
93
- code_id: string;
94
- /** Label is optional metadata to be stored with a contract instance. */
95
- label: string;
96
- /** Msg json encoded message to be passed to the contract on instantiation */
97
- msg: any;
98
- /** Funds coins that are transferred to the contract on instantiation */
99
- funds: CoinAmino[];
100
- }
101
- export interface MsgInstantiateContractAminoMsg {
102
- type: "wasm/MsgInstantiateContract";
103
- value: MsgInstantiateContractAmino;
104
- }
105
- /** MsgInstantiateContractResponse return instantiation result data */
106
- export interface MsgInstantiateContractResponse {
107
- /** Address is the bech32 address of the new contract instance. */
108
- address: string;
109
- /** Data contains bytes to returned from the contract */
110
- data: Uint8Array;
111
- }
112
- export interface MsgInstantiateContractResponseProtoMsg {
113
- typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContractResponse";
114
- value: Uint8Array;
115
- }
116
- /** MsgInstantiateContractResponse return instantiation result data */
117
- export interface MsgInstantiateContractResponseAmino {
118
- /** Address is the bech32 address of the new contract instance. */
119
- address: string;
120
- /** Data contains bytes to returned from the contract */
121
- data: string;
122
- }
123
- export interface MsgInstantiateContractResponseAminoMsg {
124
- type: "wasm/MsgInstantiateContractResponse";
125
- value: MsgInstantiateContractResponseAmino;
126
- }
127
- /**
128
- * MsgInstantiateContract2 create a new smart contract instance for the given
129
- * code id with a predicable address.
130
- */
131
- export interface MsgInstantiateContract2 {
132
- /** Sender is the that actor that signed the messages */
133
- sender: string;
134
- /** Admin is an optional address that can execute migrations */
135
- admin: string;
136
- /** CodeID is the reference to the stored WASM code */
137
- codeId: bigint;
138
- /** Label is optional metadata to be stored with a contract instance. */
139
- label: string;
140
- /** Msg json encoded message to be passed to the contract on instantiation */
141
- msg: Uint8Array;
142
- /** Funds coins that are transferred to the contract on instantiation */
143
- funds: Coin[];
144
- /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
145
- salt: Uint8Array;
146
- /**
147
- * FixMsg include the msg value into the hash for the predictable address.
148
- * Default is false
149
- */
150
- fixMsg: boolean;
151
- }
152
- export interface MsgInstantiateContract2ProtoMsg {
153
- typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2";
154
- value: Uint8Array;
155
- }
156
- /**
157
- * MsgInstantiateContract2 create a new smart contract instance for the given
158
- * code id with a predicable address.
159
- */
160
- export interface MsgInstantiateContract2Amino {
161
- /** Sender is the that actor that signed the messages */
162
- sender: string;
163
- /** Admin is an optional address that can execute migrations */
164
- admin: string;
165
- /** CodeID is the reference to the stored WASM code */
166
- code_id: string;
167
- /** Label is optional metadata to be stored with a contract instance. */
168
- label: string;
169
- /** Msg json encoded message to be passed to the contract on instantiation */
170
- msg: any;
171
- /** Funds coins that are transferred to the contract on instantiation */
172
- funds: CoinAmino[];
173
- /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
174
- salt: string;
175
- /**
176
- * FixMsg include the msg value into the hash for the predictable address.
177
- * Default is false
178
- */
179
- fix_msg: boolean;
180
- }
181
- export interface MsgInstantiateContract2AminoMsg {
182
- type: "wasm/MsgInstantiateContract2";
183
- value: MsgInstantiateContract2Amino;
184
- }
185
- /** MsgInstantiateContract2Response return instantiation result data */
186
- export interface MsgInstantiateContract2Response {
187
- /** Address is the bech32 address of the new contract instance. */
188
- address: string;
189
- /** Data contains bytes to returned from the contract */
190
- data: Uint8Array;
191
- }
192
- export interface MsgInstantiateContract2ResponseProtoMsg {
193
- typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2Response";
194
- value: Uint8Array;
195
- }
196
- /** MsgInstantiateContract2Response return instantiation result data */
197
- export interface MsgInstantiateContract2ResponseAmino {
198
- /** Address is the bech32 address of the new contract instance. */
199
- address: string;
200
- /** Data contains bytes to returned from the contract */
201
- data: string;
202
- }
203
- export interface MsgInstantiateContract2ResponseAminoMsg {
204
- type: "wasm/MsgInstantiateContract2Response";
205
- value: MsgInstantiateContract2ResponseAmino;
206
- }
207
- /** MsgExecuteContract submits the given message data to a smart contract */
208
- export interface MsgExecuteContract {
209
- /** Sender is the that actor that signed the messages */
210
- sender: string;
211
- /** Contract is the address of the smart contract */
212
- contract: string;
213
- /** Msg json encoded message to be passed to the contract */
214
- msg: Uint8Array;
215
- /** Funds coins that are transferred to the contract on execution */
216
- funds: Coin[];
217
- }
218
- export interface MsgExecuteContractProtoMsg {
219
- typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract";
220
- value: Uint8Array;
221
- }
222
- /** MsgExecuteContract submits the given message data to a smart contract */
223
- export interface MsgExecuteContractAmino {
224
- /** Sender is the that actor that signed the messages */
225
- sender: string;
226
- /** Contract is the address of the smart contract */
227
- contract: string;
228
- /** Msg json encoded message to be passed to the contract */
229
- msg: any;
230
- /** Funds coins that are transferred to the contract on execution */
231
- funds: CoinAmino[];
232
- }
233
- export interface MsgExecuteContractAminoMsg {
234
- type: "wasm/MsgExecuteContract";
235
- value: MsgExecuteContractAmino;
236
- }
237
- /** MsgExecuteContractResponse returns execution result data. */
238
- export interface MsgExecuteContractResponse {
239
- /** Data contains bytes to returned from the contract */
240
- data: Uint8Array;
241
- }
242
- export interface MsgExecuteContractResponseProtoMsg {
243
- typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContractResponse";
244
- value: Uint8Array;
245
- }
246
- /** MsgExecuteContractResponse returns execution result data. */
247
- export interface MsgExecuteContractResponseAmino {
248
- /** Data contains bytes to returned from the contract */
249
- data: string;
250
- }
251
- export interface MsgExecuteContractResponseAminoMsg {
252
- type: "wasm/MsgExecuteContractResponse";
253
- value: MsgExecuteContractResponseAmino;
254
- }
255
- /** MsgMigrateContract runs a code upgrade/ downgrade for a smart contract */
256
- export interface MsgMigrateContract {
257
- /** Sender is the that actor that signed the messages */
258
- sender: string;
259
- /** Contract is the address of the smart contract */
260
- contract: string;
261
- /** CodeID references the new WASM code */
262
- codeId: bigint;
263
- /** Msg json encoded message to be passed to the contract on migration */
264
- msg: Uint8Array;
265
- }
266
- export interface MsgMigrateContractProtoMsg {
267
- typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract";
268
- value: Uint8Array;
269
- }
270
- /** MsgMigrateContract runs a code upgrade/ downgrade for a smart contract */
271
- export interface MsgMigrateContractAmino {
272
- /** Sender is the that actor that signed the messages */
273
- sender: string;
274
- /** Contract is the address of the smart contract */
275
- contract: string;
276
- /** CodeID references the new WASM code */
277
- code_id: string;
278
- /** Msg json encoded message to be passed to the contract on migration */
279
- msg: any;
280
- }
281
- export interface MsgMigrateContractAminoMsg {
282
- type: "wasm/MsgMigrateContract";
283
- value: MsgMigrateContractAmino;
284
- }
285
- /** MsgMigrateContractResponse returns contract migration result data. */
286
- export interface MsgMigrateContractResponse {
287
- /**
288
- * Data contains same raw bytes returned as data from the wasm contract.
289
- * (May be empty)
290
- */
291
- data: Uint8Array;
292
- }
293
- export interface MsgMigrateContractResponseProtoMsg {
294
- typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContractResponse";
295
- value: Uint8Array;
296
- }
297
- /** MsgMigrateContractResponse returns contract migration result data. */
298
- export interface MsgMigrateContractResponseAmino {
299
- /**
300
- * Data contains same raw bytes returned as data from the wasm contract.
301
- * (May be empty)
302
- */
303
- data: string;
304
- }
305
- export interface MsgMigrateContractResponseAminoMsg {
306
- type: "wasm/MsgMigrateContractResponse";
307
- value: MsgMigrateContractResponseAmino;
308
- }
309
- /** MsgUpdateAdmin sets a new admin for a smart contract */
310
- export interface MsgUpdateAdmin {
311
- /** Sender is the that actor that signed the messages */
312
- sender: string;
313
- /** NewAdmin address to be set */
314
- newAdmin: string;
315
- /** Contract is the address of the smart contract */
316
- contract: string;
317
- }
318
- export interface MsgUpdateAdminProtoMsg {
319
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin";
320
- value: Uint8Array;
321
- }
322
- /** MsgUpdateAdmin sets a new admin for a smart contract */
323
- export interface MsgUpdateAdminAmino {
324
- /** Sender is the that actor that signed the messages */
325
- sender: string;
326
- /** NewAdmin address to be set */
327
- new_admin: string;
328
- /** Contract is the address of the smart contract */
329
- contract: string;
330
- }
331
- export interface MsgUpdateAdminAminoMsg {
332
- type: "wasm/MsgUpdateAdmin";
333
- value: MsgUpdateAdminAmino;
334
- }
335
- /** MsgUpdateAdminResponse returns empty data */
336
- export interface MsgUpdateAdminResponse {}
337
- export interface MsgUpdateAdminResponseProtoMsg {
338
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdminResponse";
339
- value: Uint8Array;
340
- }
341
- /** MsgUpdateAdminResponse returns empty data */
342
- export interface MsgUpdateAdminResponseAmino {}
343
- export interface MsgUpdateAdminResponseAminoMsg {
344
- type: "wasm/MsgUpdateAdminResponse";
345
- value: MsgUpdateAdminResponseAmino;
346
- }
347
- /** MsgClearAdmin removes any admin stored for a smart contract */
348
- export interface MsgClearAdmin {
349
- /** Sender is the actor that signed the messages */
350
- sender: string;
351
- /** Contract is the address of the smart contract */
352
- contract: string;
353
- }
354
- export interface MsgClearAdminProtoMsg {
355
- typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin";
356
- value: Uint8Array;
357
- }
358
- /** MsgClearAdmin removes any admin stored for a smart contract */
359
- export interface MsgClearAdminAmino {
360
- /** Sender is the actor that signed the messages */
361
- sender: string;
362
- /** Contract is the address of the smart contract */
363
- contract: string;
364
- }
365
- export interface MsgClearAdminAminoMsg {
366
- type: "wasm/MsgClearAdmin";
367
- value: MsgClearAdminAmino;
368
- }
369
- /** MsgClearAdminResponse returns empty data */
370
- export interface MsgClearAdminResponse {}
371
- export interface MsgClearAdminResponseProtoMsg {
372
- typeUrl: "/cosmwasm.wasm.v1.MsgClearAdminResponse";
373
- value: Uint8Array;
374
- }
375
- /** MsgClearAdminResponse returns empty data */
376
- export interface MsgClearAdminResponseAmino {}
377
- export interface MsgClearAdminResponseAminoMsg {
378
- type: "wasm/MsgClearAdminResponse";
379
- value: MsgClearAdminResponseAmino;
380
- }
381
- /** MsgUpdateInstantiateConfig updates instantiate config for a smart contract */
382
- export interface MsgUpdateInstantiateConfig {
383
- /** Sender is the that actor that signed the messages */
384
- sender: string;
385
- /** CodeID references the stored WASM code */
386
- codeId: bigint;
387
- /** NewInstantiatePermission is the new access control */
388
- newInstantiatePermission?: AccessConfig;
389
- }
390
- export interface MsgUpdateInstantiateConfigProtoMsg {
391
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig";
392
- value: Uint8Array;
393
- }
394
- /** MsgUpdateInstantiateConfig updates instantiate config for a smart contract */
395
- export interface MsgUpdateInstantiateConfigAmino {
396
- /** Sender is the that actor that signed the messages */
397
- sender: string;
398
- /** CodeID references the stored WASM code */
399
- code_id: string;
400
- /** NewInstantiatePermission is the new access control */
401
- new_instantiate_permission?: AccessConfigAmino;
402
- }
403
- export interface MsgUpdateInstantiateConfigAminoMsg {
404
- type: "wasm/MsgUpdateInstantiateConfig";
405
- value: MsgUpdateInstantiateConfigAmino;
406
- }
407
- /** MsgUpdateInstantiateConfigResponse returns empty data */
408
- export interface MsgUpdateInstantiateConfigResponse {}
409
- export interface MsgUpdateInstantiateConfigResponseProtoMsg {
410
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse";
411
- value: Uint8Array;
412
- }
413
- /** MsgUpdateInstantiateConfigResponse returns empty data */
414
- export interface MsgUpdateInstantiateConfigResponseAmino {}
415
- export interface MsgUpdateInstantiateConfigResponseAminoMsg {
416
- type: "wasm/MsgUpdateInstantiateConfigResponse";
417
- value: MsgUpdateInstantiateConfigResponseAmino;
418
- }
419
- /**
420
- * MsgUpdateParams is the MsgUpdateParams request type.
421
- *
422
- * Since: 0.40
423
- */
424
- export interface MsgUpdateParams {
425
- /** Authority is the address of the governance account. */
426
- authority: string;
427
- /**
428
- * params defines the x/wasm parameters to update.
429
- *
430
- * NOTE: All parameters must be supplied.
431
- */
432
- params: Params;
433
- }
434
- export interface MsgUpdateParamsProtoMsg {
435
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParams";
436
- value: Uint8Array;
437
- }
438
- /**
439
- * MsgUpdateParams is the MsgUpdateParams request type.
440
- *
441
- * Since: 0.40
442
- */
443
- export interface MsgUpdateParamsAmino {
444
- /** Authority is the address of the governance account. */
445
- authority: string;
446
- /**
447
- * params defines the x/wasm parameters to update.
448
- *
449
- * NOTE: All parameters must be supplied.
450
- */
451
- params: ParamsAmino;
452
- }
453
- export interface MsgUpdateParamsAminoMsg {
454
- type: "wasm/MsgUpdateParams";
455
- value: MsgUpdateParamsAmino;
456
- }
457
- /**
458
- * MsgUpdateParamsResponse defines the response structure for executing a
459
- * MsgUpdateParams message.
460
- *
461
- * Since: 0.40
462
- */
463
- export interface MsgUpdateParamsResponse {}
464
- export interface MsgUpdateParamsResponseProtoMsg {
465
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParamsResponse";
466
- value: Uint8Array;
467
- }
468
- /**
469
- * MsgUpdateParamsResponse defines the response structure for executing a
470
- * MsgUpdateParams message.
471
- *
472
- * Since: 0.40
473
- */
474
- export interface MsgUpdateParamsResponseAmino {}
475
- export interface MsgUpdateParamsResponseAminoMsg {
476
- type: "wasm/MsgUpdateParamsResponse";
477
- value: MsgUpdateParamsResponseAmino;
478
- }
479
- /**
480
- * MsgSudoContract is the MsgSudoContract request type.
481
- *
482
- * Since: 0.40
483
- */
484
- export interface MsgSudoContract {
485
- /** Authority is the address of the governance account. */
486
- authority: string;
487
- /** Contract is the address of the smart contract */
488
- contract: string;
489
- /** Msg json encoded message to be passed to the contract as sudo */
490
- msg: Uint8Array;
491
- }
492
- export interface MsgSudoContractProtoMsg {
493
- typeUrl: "/cosmwasm.wasm.v1.MsgSudoContract";
494
- value: Uint8Array;
495
- }
496
- /**
497
- * MsgSudoContract is the MsgSudoContract request type.
498
- *
499
- * Since: 0.40
500
- */
501
- export interface MsgSudoContractAmino {
502
- /** Authority is the address of the governance account. */
503
- authority: string;
504
- /** Contract is the address of the smart contract */
505
- contract: string;
506
- /** Msg json encoded message to be passed to the contract as sudo */
507
- msg: any;
508
- }
509
- export interface MsgSudoContractAminoMsg {
510
- type: "wasm/MsgSudoContract";
511
- value: MsgSudoContractAmino;
512
- }
513
- /**
514
- * MsgSudoContractResponse defines the response structure for executing a
515
- * MsgSudoContract message.
516
- *
517
- * Since: 0.40
518
- */
519
- export interface MsgSudoContractResponse {
520
- /** Data contains bytes to returned from the contract */
521
- data: Uint8Array;
522
- }
523
- export interface MsgSudoContractResponseProtoMsg {
524
- typeUrl: "/cosmwasm.wasm.v1.MsgSudoContractResponse";
525
- value: Uint8Array;
526
- }
527
- /**
528
- * MsgSudoContractResponse defines the response structure for executing a
529
- * MsgSudoContract message.
530
- *
531
- * Since: 0.40
532
- */
533
- export interface MsgSudoContractResponseAmino {
534
- /** Data contains bytes to returned from the contract */
535
- data: string;
536
- }
537
- export interface MsgSudoContractResponseAminoMsg {
538
- type: "wasm/MsgSudoContractResponse";
539
- value: MsgSudoContractResponseAmino;
540
- }
541
- /**
542
- * MsgPinCodes is the MsgPinCodes request type.
543
- *
544
- * Since: 0.40
545
- */
546
- export interface MsgPinCodes {
547
- /** Authority is the address of the governance account. */
548
- authority: string;
549
- /** CodeIDs references the new WASM codes */
550
- codeIds: bigint[];
551
- }
552
- export interface MsgPinCodesProtoMsg {
553
- typeUrl: "/cosmwasm.wasm.v1.MsgPinCodes";
554
- value: Uint8Array;
555
- }
556
- /**
557
- * MsgPinCodes is the MsgPinCodes request type.
558
- *
559
- * Since: 0.40
560
- */
561
- export interface MsgPinCodesAmino {
562
- /** Authority is the address of the governance account. */
563
- authority: string;
564
- /** CodeIDs references the new WASM codes */
565
- code_ids: string[];
566
- }
567
- export interface MsgPinCodesAminoMsg {
568
- type: "wasm/MsgPinCodes";
569
- value: MsgPinCodesAmino;
570
- }
571
- /**
572
- * MsgPinCodesResponse defines the response structure for executing a
573
- * MsgPinCodes message.
574
- *
575
- * Since: 0.40
576
- */
577
- export interface MsgPinCodesResponse {}
578
- export interface MsgPinCodesResponseProtoMsg {
579
- typeUrl: "/cosmwasm.wasm.v1.MsgPinCodesResponse";
580
- value: Uint8Array;
581
- }
582
- /**
583
- * MsgPinCodesResponse defines the response structure for executing a
584
- * MsgPinCodes message.
585
- *
586
- * Since: 0.40
587
- */
588
- export interface MsgPinCodesResponseAmino {}
589
- export interface MsgPinCodesResponseAminoMsg {
590
- type: "wasm/MsgPinCodesResponse";
591
- value: MsgPinCodesResponseAmino;
592
- }
593
- /**
594
- * MsgUnpinCodes is the MsgUnpinCodes request type.
595
- *
596
- * Since: 0.40
597
- */
598
- export interface MsgUnpinCodes {
599
- /** Authority is the address of the governance account. */
600
- authority: string;
601
- /** CodeIDs references the WASM codes */
602
- codeIds: bigint[];
603
- }
604
- export interface MsgUnpinCodesProtoMsg {
605
- typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodes";
606
- value: Uint8Array;
607
- }
608
- /**
609
- * MsgUnpinCodes is the MsgUnpinCodes request type.
610
- *
611
- * Since: 0.40
612
- */
613
- export interface MsgUnpinCodesAmino {
614
- /** Authority is the address of the governance account. */
615
- authority: string;
616
- /** CodeIDs references the WASM codes */
617
- code_ids: string[];
618
- }
619
- export interface MsgUnpinCodesAminoMsg {
620
- type: "wasm/MsgUnpinCodes";
621
- value: MsgUnpinCodesAmino;
622
- }
623
- /**
624
- * MsgUnpinCodesResponse defines the response structure for executing a
625
- * MsgUnpinCodes message.
626
- *
627
- * Since: 0.40
628
- */
629
- export interface MsgUnpinCodesResponse {}
630
- export interface MsgUnpinCodesResponseProtoMsg {
631
- typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodesResponse";
632
- value: Uint8Array;
633
- }
634
- /**
635
- * MsgUnpinCodesResponse defines the response structure for executing a
636
- * MsgUnpinCodes message.
637
- *
638
- * Since: 0.40
639
- */
640
- export interface MsgUnpinCodesResponseAmino {}
641
- export interface MsgUnpinCodesResponseAminoMsg {
642
- type: "wasm/MsgUnpinCodesResponse";
643
- value: MsgUnpinCodesResponseAmino;
644
- }
645
- /**
646
- * MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract
647
- * request type.
648
- *
649
- * Since: 0.40
650
- */
651
- export interface MsgStoreAndInstantiateContract {
652
- /** Authority is the address of the governance account. */
653
- authority: string;
654
- /** WASMByteCode can be raw or gzip compressed */
655
- wasmByteCode: Uint8Array;
656
- /** InstantiatePermission to apply on contract creation, optional */
657
- instantiatePermission?: AccessConfig;
658
- /**
659
- * UnpinCode code on upload, optional. As default the uploaded contract is
660
- * pinned to cache.
661
- */
662
- unpinCode: boolean;
663
- /** Admin is an optional address that can execute migrations */
664
- admin: string;
665
- /** Label is optional metadata to be stored with a constract instance. */
666
- label: string;
667
- /** Msg json encoded message to be passed to the contract on instantiation */
668
- msg: Uint8Array;
669
- /**
670
- * Funds coins that are transferred from the authority account to the contract
671
- * on instantiation
672
- */
673
- funds: Coin[];
674
- /** Source is the URL where the code is hosted */
675
- source: string;
676
- /**
677
- * Builder is the docker image used to build the code deterministically, used
678
- * for smart contract verification
679
- */
680
- builder: string;
681
- /**
682
- * CodeHash is the SHA256 sum of the code outputted by builder, used for smart
683
- * contract verification
684
- */
685
- codeHash: Uint8Array;
686
- }
687
- export interface MsgStoreAndInstantiateContractProtoMsg {
688
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract";
689
- value: Uint8Array;
690
- }
691
- /**
692
- * MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract
693
- * request type.
694
- *
695
- * Since: 0.40
696
- */
697
- export interface MsgStoreAndInstantiateContractAmino {
698
- /** Authority is the address of the governance account. */
699
- authority: string;
700
- /** WASMByteCode can be raw or gzip compressed */
701
- wasm_byte_code: string;
702
- /** InstantiatePermission to apply on contract creation, optional */
703
- instantiate_permission?: AccessConfigAmino;
704
- /**
705
- * UnpinCode code on upload, optional. As default the uploaded contract is
706
- * pinned to cache.
707
- */
708
- unpin_code: boolean;
709
- /** Admin is an optional address that can execute migrations */
710
- admin: string;
711
- /** Label is optional metadata to be stored with a constract instance. */
712
- label: string;
713
- /** Msg json encoded message to be passed to the contract on instantiation */
714
- msg: any;
715
- /**
716
- * Funds coins that are transferred from the authority account to the contract
717
- * on instantiation
718
- */
719
- funds: CoinAmino[];
720
- /** Source is the URL where the code is hosted */
721
- source: string;
722
- /**
723
- * Builder is the docker image used to build the code deterministically, used
724
- * for smart contract verification
725
- */
726
- builder: string;
727
- /**
728
- * CodeHash is the SHA256 sum of the code outputted by builder, used for smart
729
- * contract verification
730
- */
731
- code_hash: string;
732
- }
733
- export interface MsgStoreAndInstantiateContractAminoMsg {
734
- type: "wasm/MsgStoreAndInstantiateContract";
735
- value: MsgStoreAndInstantiateContractAmino;
736
- }
737
- /**
738
- * MsgStoreAndInstantiateContractResponse defines the response structure
739
- * for executing a MsgStoreAndInstantiateContract message.
740
- *
741
- * Since: 0.40
742
- */
743
- export interface MsgStoreAndInstantiateContractResponse {
744
- /** Address is the bech32 address of the new contract instance. */
745
- address: string;
746
- /** Data contains bytes to returned from the contract */
747
- data: Uint8Array;
748
- }
749
- export interface MsgStoreAndInstantiateContractResponseProtoMsg {
750
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse";
751
- value: Uint8Array;
752
- }
753
- /**
754
- * MsgStoreAndInstantiateContractResponse defines the response structure
755
- * for executing a MsgStoreAndInstantiateContract message.
756
- *
757
- * Since: 0.40
758
- */
759
- export interface MsgStoreAndInstantiateContractResponseAmino {
760
- /** Address is the bech32 address of the new contract instance. */
761
- address: string;
762
- /** Data contains bytes to returned from the contract */
763
- data: string;
764
- }
765
- export interface MsgStoreAndInstantiateContractResponseAminoMsg {
766
- type: "wasm/MsgStoreAndInstantiateContractResponse";
767
- value: MsgStoreAndInstantiateContractResponseAmino;
768
- }
769
- /**
770
- * MsgAddCodeUploadParamsAddresses is the
771
- * MsgAddCodeUploadParamsAddresses request type.
772
- */
773
- export interface MsgAddCodeUploadParamsAddresses {
774
- /** Authority is the address of the governance account. */
775
- authority: string;
776
- addresses: string[];
777
- }
778
- export interface MsgAddCodeUploadParamsAddressesProtoMsg {
779
- typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses";
780
- value: Uint8Array;
781
- }
782
- /**
783
- * MsgAddCodeUploadParamsAddresses is the
784
- * MsgAddCodeUploadParamsAddresses request type.
785
- */
786
- export interface MsgAddCodeUploadParamsAddressesAmino {
787
- /** Authority is the address of the governance account. */
788
- authority: string;
789
- addresses: string[];
790
- }
791
- export interface MsgAddCodeUploadParamsAddressesAminoMsg {
792
- type: "wasm/MsgAddCodeUploadParamsAddresses";
793
- value: MsgAddCodeUploadParamsAddressesAmino;
794
- }
795
- /**
796
- * MsgAddCodeUploadParamsAddressesResponse defines the response
797
- * structure for executing a MsgAddCodeUploadParamsAddresses message.
798
- */
799
- export interface MsgAddCodeUploadParamsAddressesResponse {}
800
- export interface MsgAddCodeUploadParamsAddressesResponseProtoMsg {
801
- typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse";
802
- value: Uint8Array;
803
- }
804
- /**
805
- * MsgAddCodeUploadParamsAddressesResponse defines the response
806
- * structure for executing a MsgAddCodeUploadParamsAddresses message.
807
- */
808
- export interface MsgAddCodeUploadParamsAddressesResponseAmino {}
809
- export interface MsgAddCodeUploadParamsAddressesResponseAminoMsg {
810
- type: "wasm/MsgAddCodeUploadParamsAddressesResponse";
811
- value: MsgAddCodeUploadParamsAddressesResponseAmino;
812
- }
813
- /**
814
- * MsgRemoveCodeUploadParamsAddresses is the
815
- * MsgRemoveCodeUploadParamsAddresses request type.
816
- */
817
- export interface MsgRemoveCodeUploadParamsAddresses {
818
- /** Authority is the address of the governance account. */
819
- authority: string;
820
- addresses: string[];
821
- }
822
- export interface MsgRemoveCodeUploadParamsAddressesProtoMsg {
823
- typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses";
824
- value: Uint8Array;
825
- }
826
- /**
827
- * MsgRemoveCodeUploadParamsAddresses is the
828
- * MsgRemoveCodeUploadParamsAddresses request type.
829
- */
830
- export interface MsgRemoveCodeUploadParamsAddressesAmino {
831
- /** Authority is the address of the governance account. */
832
- authority: string;
833
- addresses: string[];
834
- }
835
- export interface MsgRemoveCodeUploadParamsAddressesAminoMsg {
836
- type: "wasm/MsgRemoveCodeUploadParamsAddresses";
837
- value: MsgRemoveCodeUploadParamsAddressesAmino;
838
- }
839
- /**
840
- * MsgRemoveCodeUploadParamsAddressesResponse defines the response
841
- * structure for executing a MsgRemoveCodeUploadParamsAddresses message.
842
- */
843
- export interface MsgRemoveCodeUploadParamsAddressesResponse {}
844
- export interface MsgRemoveCodeUploadParamsAddressesResponseProtoMsg {
845
- typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse";
846
- value: Uint8Array;
847
- }
848
- /**
849
- * MsgRemoveCodeUploadParamsAddressesResponse defines the response
850
- * structure for executing a MsgRemoveCodeUploadParamsAddresses message.
851
- */
852
- export interface MsgRemoveCodeUploadParamsAddressesResponseAmino {}
853
- export interface MsgRemoveCodeUploadParamsAddressesResponseAminoMsg {
854
- type: "wasm/MsgRemoveCodeUploadParamsAddressesResponse";
855
- value: MsgRemoveCodeUploadParamsAddressesResponseAmino;
856
- }
857
- /**
858
- * MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract
859
- * request type.
860
- *
861
- * Since: 0.42
862
- */
863
- export interface MsgStoreAndMigrateContract {
864
- /** Authority is the address of the governance account. */
865
- authority: string;
866
- /** WASMByteCode can be raw or gzip compressed */
867
- wasmByteCode: Uint8Array;
868
- /** InstantiatePermission to apply on contract creation, optional */
869
- instantiatePermission?: AccessConfig;
870
- /** Contract is the address of the smart contract */
871
- contract: string;
872
- /** Msg json encoded message to be passed to the contract on migration */
873
- msg: Uint8Array;
874
- }
875
- export interface MsgStoreAndMigrateContractProtoMsg {
876
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContract";
877
- value: Uint8Array;
878
- }
879
- /**
880
- * MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract
881
- * request type.
882
- *
883
- * Since: 0.42
884
- */
885
- export interface MsgStoreAndMigrateContractAmino {
886
- /** Authority is the address of the governance account. */
887
- authority: string;
888
- /** WASMByteCode can be raw or gzip compressed */
889
- wasm_byte_code: string;
890
- /** InstantiatePermission to apply on contract creation, optional */
891
- instantiate_permission?: AccessConfigAmino;
892
- /** Contract is the address of the smart contract */
893
- contract: string;
894
- /** Msg json encoded message to be passed to the contract on migration */
895
- msg: any;
896
- }
897
- export interface MsgStoreAndMigrateContractAminoMsg {
898
- type: "wasm/MsgStoreAndMigrateContract";
899
- value: MsgStoreAndMigrateContractAmino;
900
- }
901
- /**
902
- * MsgStoreAndMigrateContractResponse defines the response structure
903
- * for executing a MsgStoreAndMigrateContract message.
904
- *
905
- * Since: 0.42
906
- */
907
- export interface MsgStoreAndMigrateContractResponse {
908
- /** CodeID is the reference to the stored WASM code */
909
- codeId: bigint;
910
- /** Checksum is the sha256 hash of the stored code */
911
- checksum: Uint8Array;
912
- /** Data contains bytes to returned from the contract */
913
- data: Uint8Array;
914
- }
915
- export interface MsgStoreAndMigrateContractResponseProtoMsg {
916
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse";
917
- value: Uint8Array;
918
- }
919
- /**
920
- * MsgStoreAndMigrateContractResponse defines the response structure
921
- * for executing a MsgStoreAndMigrateContract message.
922
- *
923
- * Since: 0.42
924
- */
925
- export interface MsgStoreAndMigrateContractResponseAmino {
926
- /** CodeID is the reference to the stored WASM code */
927
- code_id: string;
928
- /** Checksum is the sha256 hash of the stored code */
929
- checksum: string;
930
- /** Data contains bytes to returned from the contract */
931
- data: string;
932
- }
933
- export interface MsgStoreAndMigrateContractResponseAminoMsg {
934
- type: "wasm/MsgStoreAndMigrateContractResponse";
935
- value: MsgStoreAndMigrateContractResponseAmino;
936
- }
937
- /** MsgUpdateContractLabel sets a new label for a smart contract */
938
- export interface MsgUpdateContractLabel {
939
- /** Sender is the that actor that signed the messages */
940
- sender: string;
941
- /** NewLabel string to be set */
942
- newLabel: string;
943
- /** Contract is the address of the smart contract */
944
- contract: string;
945
- }
946
- export interface MsgUpdateContractLabelProtoMsg {
947
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabel";
948
- value: Uint8Array;
949
- }
950
- /** MsgUpdateContractLabel sets a new label for a smart contract */
951
- export interface MsgUpdateContractLabelAmino {
952
- /** Sender is the that actor that signed the messages */
953
- sender: string;
954
- /** NewLabel string to be set */
955
- new_label: string;
956
- /** Contract is the address of the smart contract */
957
- contract: string;
958
- }
959
- export interface MsgUpdateContractLabelAminoMsg {
960
- type: "wasm/MsgUpdateContractLabel";
961
- value: MsgUpdateContractLabelAmino;
962
- }
963
- /** MsgUpdateContractLabelResponse returns empty data */
964
- export interface MsgUpdateContractLabelResponse {}
965
- export interface MsgUpdateContractLabelResponseProtoMsg {
966
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabelResponse";
967
- value: Uint8Array;
968
- }
969
- /** MsgUpdateContractLabelResponse returns empty data */
970
- export interface MsgUpdateContractLabelResponseAmino {}
971
- export interface MsgUpdateContractLabelResponseAminoMsg {
972
- type: "wasm/MsgUpdateContractLabelResponse";
973
- value: MsgUpdateContractLabelResponseAmino;
974
- }
975
- function createBaseMsgStoreCode(): MsgStoreCode {
976
- return {
977
- sender: "",
978
- wasmByteCode: new Uint8Array(),
979
- instantiatePermission: undefined
980
- };
981
- }
982
- export const MsgStoreCode = {
983
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode",
984
- aminoType: "wasm/MsgStoreCode",
985
- is(o: any): o is MsgStoreCode {
986
- return o && (o.$typeUrl === MsgStoreCode.typeUrl || typeof o.sender === "string" && (o.wasmByteCode instanceof Uint8Array || typeof o.wasmByteCode === "string"));
987
- },
988
- isAmino(o: any): o is MsgStoreCodeAmino {
989
- return o && (o.$typeUrl === MsgStoreCode.typeUrl || typeof o.sender === "string" && (o.wasm_byte_code instanceof Uint8Array || typeof o.wasm_byte_code === "string"));
990
- },
991
- encode(message: MsgStoreCode, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
992
- if (message.sender !== "") {
993
- writer.uint32(10).string(message.sender);
994
- }
995
- if (message.wasmByteCode.length !== 0) {
996
- writer.uint32(18).bytes(message.wasmByteCode);
997
- }
998
- if (message.instantiatePermission !== undefined) {
999
- AccessConfig.encode(message.instantiatePermission, writer.uint32(42).fork()).ldelim();
1000
- }
1001
- return writer;
1002
- },
1003
- decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreCode {
1004
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1005
- let end = length === undefined ? reader.len : reader.pos + length;
1006
- const message = createBaseMsgStoreCode();
1007
- while (reader.pos < end) {
1008
- const tag = reader.uint32();
1009
- switch (tag >>> 3) {
1010
- case 1:
1011
- message.sender = reader.string();
1012
- break;
1013
- case 2:
1014
- message.wasmByteCode = reader.bytes();
1015
- break;
1016
- case 5:
1017
- message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
1018
- break;
1019
- default:
1020
- reader.skipType(tag & 7);
1021
- break;
1022
- }
1023
- }
1024
- return message;
1025
- },
1026
- fromPartial(object: DeepPartial<MsgStoreCode>): MsgStoreCode {
1027
- const message = createBaseMsgStoreCode();
1028
- message.sender = object.sender ?? "";
1029
- message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
1030
- message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
1031
- return message;
1032
- },
1033
- fromAmino(object: MsgStoreCodeAmino): MsgStoreCode {
1034
- const message = createBaseMsgStoreCode();
1035
- if (object.sender !== undefined && object.sender !== null) {
1036
- message.sender = object.sender;
1037
- }
1038
- if (object.wasm_byte_code !== undefined && object.wasm_byte_code !== null) {
1039
- message.wasmByteCode = fromBase64(object.wasm_byte_code);
1040
- }
1041
- if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
1042
- message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
1043
- }
1044
- return message;
1045
- },
1046
- toAmino(message: MsgStoreCode): MsgStoreCodeAmino {
1047
- const obj: any = {};
1048
- obj.sender = message.sender === "" ? undefined : message.sender;
1049
- obj.wasm_byte_code = message.wasmByteCode ? toBase64(message.wasmByteCode) : undefined;
1050
- obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined;
1051
- return obj;
1052
- },
1053
- fromAminoMsg(object: MsgStoreCodeAminoMsg): MsgStoreCode {
1054
- return MsgStoreCode.fromAmino(object.value);
1055
- },
1056
- toAminoMsg(message: MsgStoreCode): MsgStoreCodeAminoMsg {
1057
- return {
1058
- type: "wasm/MsgStoreCode",
1059
- value: MsgStoreCode.toAmino(message)
1060
- };
1061
- },
1062
- fromProtoMsg(message: MsgStoreCodeProtoMsg): MsgStoreCode {
1063
- return MsgStoreCode.decode(message.value);
1064
- },
1065
- toProto(message: MsgStoreCode): Uint8Array {
1066
- return MsgStoreCode.encode(message).finish();
1067
- },
1068
- toProtoMsg(message: MsgStoreCode): MsgStoreCodeProtoMsg {
1069
- return {
1070
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreCode",
1071
- value: MsgStoreCode.encode(message).finish()
1072
- };
1073
- }
1074
- };
1075
- GlobalDecoderRegistry.register(MsgStoreCode.typeUrl, MsgStoreCode);
1076
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgStoreCode.aminoType, MsgStoreCode.typeUrl);
1077
- function createBaseMsgStoreCodeResponse(): MsgStoreCodeResponse {
1078
- return {
1079
- codeId: BigInt(0),
1080
- checksum: new Uint8Array()
1081
- };
1082
- }
1083
- export const MsgStoreCodeResponse = {
1084
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreCodeResponse",
1085
- aminoType: "wasm/MsgStoreCodeResponse",
1086
- is(o: any): o is MsgStoreCodeResponse {
1087
- return o && (o.$typeUrl === MsgStoreCodeResponse.typeUrl || typeof o.codeId === "bigint" && (o.checksum instanceof Uint8Array || typeof o.checksum === "string"));
1088
- },
1089
- isAmino(o: any): o is MsgStoreCodeResponseAmino {
1090
- return o && (o.$typeUrl === MsgStoreCodeResponse.typeUrl || typeof o.code_id === "bigint" && (o.checksum instanceof Uint8Array || typeof o.checksum === "string"));
1091
- },
1092
- encode(message: MsgStoreCodeResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1093
- if (message.codeId !== BigInt(0)) {
1094
- writer.uint32(8).uint64(message.codeId);
1095
- }
1096
- if (message.checksum.length !== 0) {
1097
- writer.uint32(18).bytes(message.checksum);
1098
- }
1099
- return writer;
1100
- },
1101
- decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreCodeResponse {
1102
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1103
- let end = length === undefined ? reader.len : reader.pos + length;
1104
- const message = createBaseMsgStoreCodeResponse();
1105
- while (reader.pos < end) {
1106
- const tag = reader.uint32();
1107
- switch (tag >>> 3) {
1108
- case 1:
1109
- message.codeId = reader.uint64();
1110
- break;
1111
- case 2:
1112
- message.checksum = reader.bytes();
1113
- break;
1114
- default:
1115
- reader.skipType(tag & 7);
1116
- break;
1117
- }
1118
- }
1119
- return message;
1120
- },
1121
- fromPartial(object: DeepPartial<MsgStoreCodeResponse>): MsgStoreCodeResponse {
1122
- const message = createBaseMsgStoreCodeResponse();
1123
- message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
1124
- message.checksum = object.checksum ?? new Uint8Array();
1125
- return message;
1126
- },
1127
- fromAmino(object: MsgStoreCodeResponseAmino): MsgStoreCodeResponse {
1128
- const message = createBaseMsgStoreCodeResponse();
1129
- if (object.code_id !== undefined && object.code_id !== null) {
1130
- message.codeId = BigInt(object.code_id);
1131
- }
1132
- if (object.checksum !== undefined && object.checksum !== null) {
1133
- message.checksum = bytesFromBase64(object.checksum);
1134
- }
1135
- return message;
1136
- },
1137
- toAmino(message: MsgStoreCodeResponse): MsgStoreCodeResponseAmino {
1138
- const obj: any = {};
1139
- obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
1140
- obj.checksum = message.checksum ? base64FromBytes(message.checksum) : undefined;
1141
- return obj;
1142
- },
1143
- fromAminoMsg(object: MsgStoreCodeResponseAminoMsg): MsgStoreCodeResponse {
1144
- return MsgStoreCodeResponse.fromAmino(object.value);
1145
- },
1146
- toAminoMsg(message: MsgStoreCodeResponse): MsgStoreCodeResponseAminoMsg {
1147
- return {
1148
- type: "wasm/MsgStoreCodeResponse",
1149
- value: MsgStoreCodeResponse.toAmino(message)
1150
- };
1151
- },
1152
- fromProtoMsg(message: MsgStoreCodeResponseProtoMsg): MsgStoreCodeResponse {
1153
- return MsgStoreCodeResponse.decode(message.value);
1154
- },
1155
- toProto(message: MsgStoreCodeResponse): Uint8Array {
1156
- return MsgStoreCodeResponse.encode(message).finish();
1157
- },
1158
- toProtoMsg(message: MsgStoreCodeResponse): MsgStoreCodeResponseProtoMsg {
1159
- return {
1160
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreCodeResponse",
1161
- value: MsgStoreCodeResponse.encode(message).finish()
1162
- };
1163
- }
1164
- };
1165
- GlobalDecoderRegistry.register(MsgStoreCodeResponse.typeUrl, MsgStoreCodeResponse);
1166
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgStoreCodeResponse.aminoType, MsgStoreCodeResponse.typeUrl);
1167
- function createBaseMsgInstantiateContract(): MsgInstantiateContract {
1168
- return {
1169
- sender: "",
1170
- admin: "",
1171
- codeId: BigInt(0),
1172
- label: "",
1173
- msg: new Uint8Array(),
1174
- funds: []
1175
- };
1176
- }
1177
- export const MsgInstantiateContract = {
1178
- typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract",
1179
- aminoType: "wasm/MsgInstantiateContract",
1180
- is(o: any): o is MsgInstantiateContract {
1181
- return o && (o.$typeUrl === MsgInstantiateContract.typeUrl || typeof o.sender === "string" && typeof o.admin === "string" && typeof o.codeId === "bigint" && typeof o.label === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.is(o.funds[0])));
1182
- },
1183
- isAmino(o: any): o is MsgInstantiateContractAmino {
1184
- return o && (o.$typeUrl === MsgInstantiateContract.typeUrl || typeof o.sender === "string" && typeof o.admin === "string" && typeof o.code_id === "bigint" && typeof o.label === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.isAmino(o.funds[0])));
1185
- },
1186
- encode(message: MsgInstantiateContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1187
- if (message.sender !== "") {
1188
- writer.uint32(10).string(message.sender);
1189
- }
1190
- if (message.admin !== "") {
1191
- writer.uint32(18).string(message.admin);
1192
- }
1193
- if (message.codeId !== BigInt(0)) {
1194
- writer.uint32(24).uint64(message.codeId);
1195
- }
1196
- if (message.label !== "") {
1197
- writer.uint32(34).string(message.label);
1198
- }
1199
- if (message.msg.length !== 0) {
1200
- writer.uint32(42).bytes(message.msg);
1201
- }
1202
- for (const v of message.funds) {
1203
- Coin.encode(v!, writer.uint32(50).fork()).ldelim();
1204
- }
1205
- return writer;
1206
- },
1207
- decode(input: BinaryReader | Uint8Array, length?: number): MsgInstantiateContract {
1208
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1209
- let end = length === undefined ? reader.len : reader.pos + length;
1210
- const message = createBaseMsgInstantiateContract();
1211
- while (reader.pos < end) {
1212
- const tag = reader.uint32();
1213
- switch (tag >>> 3) {
1214
- case 1:
1215
- message.sender = reader.string();
1216
- break;
1217
- case 2:
1218
- message.admin = reader.string();
1219
- break;
1220
- case 3:
1221
- message.codeId = reader.uint64();
1222
- break;
1223
- case 4:
1224
- message.label = reader.string();
1225
- break;
1226
- case 5:
1227
- message.msg = reader.bytes();
1228
- break;
1229
- case 6:
1230
- message.funds.push(Coin.decode(reader, reader.uint32()));
1231
- break;
1232
- default:
1233
- reader.skipType(tag & 7);
1234
- break;
1235
- }
1236
- }
1237
- return message;
1238
- },
1239
- fromPartial(object: DeepPartial<MsgInstantiateContract>): MsgInstantiateContract {
1240
- const message = createBaseMsgInstantiateContract();
1241
- message.sender = object.sender ?? "";
1242
- message.admin = object.admin ?? "";
1243
- message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
1244
- message.label = object.label ?? "";
1245
- message.msg = object.msg ?? new Uint8Array();
1246
- message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
1247
- return message;
1248
- },
1249
- fromAmino(object: MsgInstantiateContractAmino): MsgInstantiateContract {
1250
- const message = createBaseMsgInstantiateContract();
1251
- if (object.sender !== undefined && object.sender !== null) {
1252
- message.sender = object.sender;
1253
- }
1254
- if (object.admin !== undefined && object.admin !== null) {
1255
- message.admin = object.admin;
1256
- }
1257
- if (object.code_id !== undefined && object.code_id !== null) {
1258
- message.codeId = BigInt(object.code_id);
1259
- }
1260
- if (object.label !== undefined && object.label !== null) {
1261
- message.label = object.label;
1262
- }
1263
- if (object.msg !== undefined && object.msg !== null) {
1264
- message.msg = toUtf8(JSON.stringify(object.msg));
1265
- }
1266
- message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
1267
- return message;
1268
- },
1269
- toAmino(message: MsgInstantiateContract): MsgInstantiateContractAmino {
1270
- const obj: any = {};
1271
- obj.sender = message.sender === "" ? undefined : message.sender;
1272
- obj.admin = message.admin === "" ? undefined : message.admin;
1273
- obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
1274
- obj.label = message.label === "" ? undefined : message.label;
1275
- obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
1276
- if (message.funds) {
1277
- obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
1278
- } else {
1279
- obj.funds = message.funds;
1280
- }
1281
- return obj;
1282
- },
1283
- fromAminoMsg(object: MsgInstantiateContractAminoMsg): MsgInstantiateContract {
1284
- return MsgInstantiateContract.fromAmino(object.value);
1285
- },
1286
- toAminoMsg(message: MsgInstantiateContract): MsgInstantiateContractAminoMsg {
1287
- return {
1288
- type: "wasm/MsgInstantiateContract",
1289
- value: MsgInstantiateContract.toAmino(message)
1290
- };
1291
- },
1292
- fromProtoMsg(message: MsgInstantiateContractProtoMsg): MsgInstantiateContract {
1293
- return MsgInstantiateContract.decode(message.value);
1294
- },
1295
- toProto(message: MsgInstantiateContract): Uint8Array {
1296
- return MsgInstantiateContract.encode(message).finish();
1297
- },
1298
- toProtoMsg(message: MsgInstantiateContract): MsgInstantiateContractProtoMsg {
1299
- return {
1300
- typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract",
1301
- value: MsgInstantiateContract.encode(message).finish()
1302
- };
1303
- }
1304
- };
1305
- GlobalDecoderRegistry.register(MsgInstantiateContract.typeUrl, MsgInstantiateContract);
1306
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgInstantiateContract.aminoType, MsgInstantiateContract.typeUrl);
1307
- function createBaseMsgInstantiateContractResponse(): MsgInstantiateContractResponse {
1308
- return {
1309
- address: "",
1310
- data: new Uint8Array()
1311
- };
1312
- }
1313
- export const MsgInstantiateContractResponse = {
1314
- typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContractResponse",
1315
- aminoType: "wasm/MsgInstantiateContractResponse",
1316
- is(o: any): o is MsgInstantiateContractResponse {
1317
- return o && (o.$typeUrl === MsgInstantiateContractResponse.typeUrl || typeof o.address === "string" && (o.data instanceof Uint8Array || typeof o.data === "string"));
1318
- },
1319
- isAmino(o: any): o is MsgInstantiateContractResponseAmino {
1320
- return o && (o.$typeUrl === MsgInstantiateContractResponse.typeUrl || typeof o.address === "string" && (o.data instanceof Uint8Array || typeof o.data === "string"));
1321
- },
1322
- encode(message: MsgInstantiateContractResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1323
- if (message.address !== "") {
1324
- writer.uint32(10).string(message.address);
1325
- }
1326
- if (message.data.length !== 0) {
1327
- writer.uint32(18).bytes(message.data);
1328
- }
1329
- return writer;
1330
- },
1331
- decode(input: BinaryReader | Uint8Array, length?: number): MsgInstantiateContractResponse {
1332
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1333
- let end = length === undefined ? reader.len : reader.pos + length;
1334
- const message = createBaseMsgInstantiateContractResponse();
1335
- while (reader.pos < end) {
1336
- const tag = reader.uint32();
1337
- switch (tag >>> 3) {
1338
- case 1:
1339
- message.address = reader.string();
1340
- break;
1341
- case 2:
1342
- message.data = reader.bytes();
1343
- break;
1344
- default:
1345
- reader.skipType(tag & 7);
1346
- break;
1347
- }
1348
- }
1349
- return message;
1350
- },
1351
- fromPartial(object: DeepPartial<MsgInstantiateContractResponse>): MsgInstantiateContractResponse {
1352
- const message = createBaseMsgInstantiateContractResponse();
1353
- message.address = object.address ?? "";
1354
- message.data = object.data ?? new Uint8Array();
1355
- return message;
1356
- },
1357
- fromAmino(object: MsgInstantiateContractResponseAmino): MsgInstantiateContractResponse {
1358
- const message = createBaseMsgInstantiateContractResponse();
1359
- if (object.address !== undefined && object.address !== null) {
1360
- message.address = object.address;
1361
- }
1362
- if (object.data !== undefined && object.data !== null) {
1363
- message.data = bytesFromBase64(object.data);
1364
- }
1365
- return message;
1366
- },
1367
- toAmino(message: MsgInstantiateContractResponse): MsgInstantiateContractResponseAmino {
1368
- const obj: any = {};
1369
- obj.address = message.address === "" ? undefined : message.address;
1370
- obj.data = message.data ? base64FromBytes(message.data) : undefined;
1371
- return obj;
1372
- },
1373
- fromAminoMsg(object: MsgInstantiateContractResponseAminoMsg): MsgInstantiateContractResponse {
1374
- return MsgInstantiateContractResponse.fromAmino(object.value);
1375
- },
1376
- toAminoMsg(message: MsgInstantiateContractResponse): MsgInstantiateContractResponseAminoMsg {
1377
- return {
1378
- type: "wasm/MsgInstantiateContractResponse",
1379
- value: MsgInstantiateContractResponse.toAmino(message)
1380
- };
1381
- },
1382
- fromProtoMsg(message: MsgInstantiateContractResponseProtoMsg): MsgInstantiateContractResponse {
1383
- return MsgInstantiateContractResponse.decode(message.value);
1384
- },
1385
- toProto(message: MsgInstantiateContractResponse): Uint8Array {
1386
- return MsgInstantiateContractResponse.encode(message).finish();
1387
- },
1388
- toProtoMsg(message: MsgInstantiateContractResponse): MsgInstantiateContractResponseProtoMsg {
1389
- return {
1390
- typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContractResponse",
1391
- value: MsgInstantiateContractResponse.encode(message).finish()
1392
- };
1393
- }
1394
- };
1395
- GlobalDecoderRegistry.register(MsgInstantiateContractResponse.typeUrl, MsgInstantiateContractResponse);
1396
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgInstantiateContractResponse.aminoType, MsgInstantiateContractResponse.typeUrl);
1397
- function createBaseMsgInstantiateContract2(): MsgInstantiateContract2 {
1398
- return {
1399
- sender: "",
1400
- admin: "",
1401
- codeId: BigInt(0),
1402
- label: "",
1403
- msg: new Uint8Array(),
1404
- funds: [],
1405
- salt: new Uint8Array(),
1406
- fixMsg: false
1407
- };
1408
- }
1409
- export const MsgInstantiateContract2 = {
1410
- typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2",
1411
- aminoType: "wasm/MsgInstantiateContract2",
1412
- is(o: any): o is MsgInstantiateContract2 {
1413
- return o && (o.$typeUrl === MsgInstantiateContract2.typeUrl || typeof o.sender === "string" && typeof o.admin === "string" && typeof o.codeId === "bigint" && typeof o.label === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.is(o.funds[0])) && (o.salt instanceof Uint8Array || typeof o.salt === "string") && typeof o.fixMsg === "boolean");
1414
- },
1415
- isAmino(o: any): o is MsgInstantiateContract2Amino {
1416
- return o && (o.$typeUrl === MsgInstantiateContract2.typeUrl || typeof o.sender === "string" && typeof o.admin === "string" && typeof o.code_id === "bigint" && typeof o.label === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.isAmino(o.funds[0])) && (o.salt instanceof Uint8Array || typeof o.salt === "string") && typeof o.fix_msg === "boolean");
1417
- },
1418
- encode(message: MsgInstantiateContract2, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1419
- if (message.sender !== "") {
1420
- writer.uint32(10).string(message.sender);
1421
- }
1422
- if (message.admin !== "") {
1423
- writer.uint32(18).string(message.admin);
1424
- }
1425
- if (message.codeId !== BigInt(0)) {
1426
- writer.uint32(24).uint64(message.codeId);
1427
- }
1428
- if (message.label !== "") {
1429
- writer.uint32(34).string(message.label);
1430
- }
1431
- if (message.msg.length !== 0) {
1432
- writer.uint32(42).bytes(message.msg);
1433
- }
1434
- for (const v of message.funds) {
1435
- Coin.encode(v!, writer.uint32(50).fork()).ldelim();
1436
- }
1437
- if (message.salt.length !== 0) {
1438
- writer.uint32(58).bytes(message.salt);
1439
- }
1440
- if (message.fixMsg === true) {
1441
- writer.uint32(64).bool(message.fixMsg);
1442
- }
1443
- return writer;
1444
- },
1445
- decode(input: BinaryReader | Uint8Array, length?: number): MsgInstantiateContract2 {
1446
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1447
- let end = length === undefined ? reader.len : reader.pos + length;
1448
- const message = createBaseMsgInstantiateContract2();
1449
- while (reader.pos < end) {
1450
- const tag = reader.uint32();
1451
- switch (tag >>> 3) {
1452
- case 1:
1453
- message.sender = reader.string();
1454
- break;
1455
- case 2:
1456
- message.admin = reader.string();
1457
- break;
1458
- case 3:
1459
- message.codeId = reader.uint64();
1460
- break;
1461
- case 4:
1462
- message.label = reader.string();
1463
- break;
1464
- case 5:
1465
- message.msg = reader.bytes();
1466
- break;
1467
- case 6:
1468
- message.funds.push(Coin.decode(reader, reader.uint32()));
1469
- break;
1470
- case 7:
1471
- message.salt = reader.bytes();
1472
- break;
1473
- case 8:
1474
- message.fixMsg = reader.bool();
1475
- break;
1476
- default:
1477
- reader.skipType(tag & 7);
1478
- break;
1479
- }
1480
- }
1481
- return message;
1482
- },
1483
- fromPartial(object: DeepPartial<MsgInstantiateContract2>): MsgInstantiateContract2 {
1484
- const message = createBaseMsgInstantiateContract2();
1485
- message.sender = object.sender ?? "";
1486
- message.admin = object.admin ?? "";
1487
- message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
1488
- message.label = object.label ?? "";
1489
- message.msg = object.msg ?? new Uint8Array();
1490
- message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
1491
- message.salt = object.salt ?? new Uint8Array();
1492
- message.fixMsg = object.fixMsg ?? false;
1493
- return message;
1494
- },
1495
- fromAmino(object: MsgInstantiateContract2Amino): MsgInstantiateContract2 {
1496
- const message = createBaseMsgInstantiateContract2();
1497
- if (object.sender !== undefined && object.sender !== null) {
1498
- message.sender = object.sender;
1499
- }
1500
- if (object.admin !== undefined && object.admin !== null) {
1501
- message.admin = object.admin;
1502
- }
1503
- if (object.code_id !== undefined && object.code_id !== null) {
1504
- message.codeId = BigInt(object.code_id);
1505
- }
1506
- if (object.label !== undefined && object.label !== null) {
1507
- message.label = object.label;
1508
- }
1509
- if (object.msg !== undefined && object.msg !== null) {
1510
- message.msg = toUtf8(JSON.stringify(object.msg));
1511
- }
1512
- message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
1513
- if (object.salt !== undefined && object.salt !== null) {
1514
- message.salt = bytesFromBase64(object.salt);
1515
- }
1516
- if (object.fix_msg !== undefined && object.fix_msg !== null) {
1517
- message.fixMsg = object.fix_msg;
1518
- }
1519
- return message;
1520
- },
1521
- toAmino(message: MsgInstantiateContract2): MsgInstantiateContract2Amino {
1522
- const obj: any = {};
1523
- obj.sender = message.sender === "" ? undefined : message.sender;
1524
- obj.admin = message.admin === "" ? undefined : message.admin;
1525
- obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
1526
- obj.label = message.label === "" ? undefined : message.label;
1527
- obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
1528
- if (message.funds) {
1529
- obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
1530
- } else {
1531
- obj.funds = message.funds;
1532
- }
1533
- obj.salt = message.salt ? base64FromBytes(message.salt) : undefined;
1534
- obj.fix_msg = message.fixMsg === false ? undefined : message.fixMsg;
1535
- return obj;
1536
- },
1537
- fromAminoMsg(object: MsgInstantiateContract2AminoMsg): MsgInstantiateContract2 {
1538
- return MsgInstantiateContract2.fromAmino(object.value);
1539
- },
1540
- toAminoMsg(message: MsgInstantiateContract2): MsgInstantiateContract2AminoMsg {
1541
- return {
1542
- type: "wasm/MsgInstantiateContract2",
1543
- value: MsgInstantiateContract2.toAmino(message)
1544
- };
1545
- },
1546
- fromProtoMsg(message: MsgInstantiateContract2ProtoMsg): MsgInstantiateContract2 {
1547
- return MsgInstantiateContract2.decode(message.value);
1548
- },
1549
- toProto(message: MsgInstantiateContract2): Uint8Array {
1550
- return MsgInstantiateContract2.encode(message).finish();
1551
- },
1552
- toProtoMsg(message: MsgInstantiateContract2): MsgInstantiateContract2ProtoMsg {
1553
- return {
1554
- typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2",
1555
- value: MsgInstantiateContract2.encode(message).finish()
1556
- };
1557
- }
1558
- };
1559
- GlobalDecoderRegistry.register(MsgInstantiateContract2.typeUrl, MsgInstantiateContract2);
1560
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgInstantiateContract2.aminoType, MsgInstantiateContract2.typeUrl);
1561
- function createBaseMsgInstantiateContract2Response(): MsgInstantiateContract2Response {
1562
- return {
1563
- address: "",
1564
- data: new Uint8Array()
1565
- };
1566
- }
1567
- export const MsgInstantiateContract2Response = {
1568
- typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2Response",
1569
- aminoType: "wasm/MsgInstantiateContract2Response",
1570
- is(o: any): o is MsgInstantiateContract2Response {
1571
- return o && (o.$typeUrl === MsgInstantiateContract2Response.typeUrl || typeof o.address === "string" && (o.data instanceof Uint8Array || typeof o.data === "string"));
1572
- },
1573
- isAmino(o: any): o is MsgInstantiateContract2ResponseAmino {
1574
- return o && (o.$typeUrl === MsgInstantiateContract2Response.typeUrl || typeof o.address === "string" && (o.data instanceof Uint8Array || typeof o.data === "string"));
1575
- },
1576
- encode(message: MsgInstantiateContract2Response, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1577
- if (message.address !== "") {
1578
- writer.uint32(10).string(message.address);
1579
- }
1580
- if (message.data.length !== 0) {
1581
- writer.uint32(18).bytes(message.data);
1582
- }
1583
- return writer;
1584
- },
1585
- decode(input: BinaryReader | Uint8Array, length?: number): MsgInstantiateContract2Response {
1586
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1587
- let end = length === undefined ? reader.len : reader.pos + length;
1588
- const message = createBaseMsgInstantiateContract2Response();
1589
- while (reader.pos < end) {
1590
- const tag = reader.uint32();
1591
- switch (tag >>> 3) {
1592
- case 1:
1593
- message.address = reader.string();
1594
- break;
1595
- case 2:
1596
- message.data = reader.bytes();
1597
- break;
1598
- default:
1599
- reader.skipType(tag & 7);
1600
- break;
1601
- }
1602
- }
1603
- return message;
1604
- },
1605
- fromPartial(object: DeepPartial<MsgInstantiateContract2Response>): MsgInstantiateContract2Response {
1606
- const message = createBaseMsgInstantiateContract2Response();
1607
- message.address = object.address ?? "";
1608
- message.data = object.data ?? new Uint8Array();
1609
- return message;
1610
- },
1611
- fromAmino(object: MsgInstantiateContract2ResponseAmino): MsgInstantiateContract2Response {
1612
- const message = createBaseMsgInstantiateContract2Response();
1613
- if (object.address !== undefined && object.address !== null) {
1614
- message.address = object.address;
1615
- }
1616
- if (object.data !== undefined && object.data !== null) {
1617
- message.data = bytesFromBase64(object.data);
1618
- }
1619
- return message;
1620
- },
1621
- toAmino(message: MsgInstantiateContract2Response): MsgInstantiateContract2ResponseAmino {
1622
- const obj: any = {};
1623
- obj.address = message.address === "" ? undefined : message.address;
1624
- obj.data = message.data ? base64FromBytes(message.data) : undefined;
1625
- return obj;
1626
- },
1627
- fromAminoMsg(object: MsgInstantiateContract2ResponseAminoMsg): MsgInstantiateContract2Response {
1628
- return MsgInstantiateContract2Response.fromAmino(object.value);
1629
- },
1630
- toAminoMsg(message: MsgInstantiateContract2Response): MsgInstantiateContract2ResponseAminoMsg {
1631
- return {
1632
- type: "wasm/MsgInstantiateContract2Response",
1633
- value: MsgInstantiateContract2Response.toAmino(message)
1634
- };
1635
- },
1636
- fromProtoMsg(message: MsgInstantiateContract2ResponseProtoMsg): MsgInstantiateContract2Response {
1637
- return MsgInstantiateContract2Response.decode(message.value);
1638
- },
1639
- toProto(message: MsgInstantiateContract2Response): Uint8Array {
1640
- return MsgInstantiateContract2Response.encode(message).finish();
1641
- },
1642
- toProtoMsg(message: MsgInstantiateContract2Response): MsgInstantiateContract2ResponseProtoMsg {
1643
- return {
1644
- typeUrl: "/cosmwasm.wasm.v1.MsgInstantiateContract2Response",
1645
- value: MsgInstantiateContract2Response.encode(message).finish()
1646
- };
1647
- }
1648
- };
1649
- GlobalDecoderRegistry.register(MsgInstantiateContract2Response.typeUrl, MsgInstantiateContract2Response);
1650
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgInstantiateContract2Response.aminoType, MsgInstantiateContract2Response.typeUrl);
1651
- function createBaseMsgExecuteContract(): MsgExecuteContract {
1652
- return {
1653
- sender: "",
1654
- contract: "",
1655
- msg: new Uint8Array(),
1656
- funds: []
1657
- };
1658
- }
1659
- export const MsgExecuteContract = {
1660
- typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
1661
- aminoType: "wasm/MsgExecuteContract",
1662
- is(o: any): o is MsgExecuteContract {
1663
- return o && (o.$typeUrl === MsgExecuteContract.typeUrl || typeof o.sender === "string" && typeof o.contract === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.is(o.funds[0])));
1664
- },
1665
- isAmino(o: any): o is MsgExecuteContractAmino {
1666
- return o && (o.$typeUrl === MsgExecuteContract.typeUrl || typeof o.sender === "string" && typeof o.contract === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.isAmino(o.funds[0])));
1667
- },
1668
- encode(message: MsgExecuteContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1669
- if (message.sender !== "") {
1670
- writer.uint32(10).string(message.sender);
1671
- }
1672
- if (message.contract !== "") {
1673
- writer.uint32(18).string(message.contract);
1674
- }
1675
- if (message.msg.length !== 0) {
1676
- writer.uint32(26).bytes(message.msg);
1677
- }
1678
- for (const v of message.funds) {
1679
- Coin.encode(v!, writer.uint32(42).fork()).ldelim();
1680
- }
1681
- return writer;
1682
- },
1683
- decode(input: BinaryReader | Uint8Array, length?: number): MsgExecuteContract {
1684
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1685
- let end = length === undefined ? reader.len : reader.pos + length;
1686
- const message = createBaseMsgExecuteContract();
1687
- while (reader.pos < end) {
1688
- const tag = reader.uint32();
1689
- switch (tag >>> 3) {
1690
- case 1:
1691
- message.sender = reader.string();
1692
- break;
1693
- case 2:
1694
- message.contract = reader.string();
1695
- break;
1696
- case 3:
1697
- message.msg = reader.bytes();
1698
- break;
1699
- case 5:
1700
- message.funds.push(Coin.decode(reader, reader.uint32()));
1701
- break;
1702
- default:
1703
- reader.skipType(tag & 7);
1704
- break;
1705
- }
1706
- }
1707
- return message;
1708
- },
1709
- fromPartial(object: DeepPartial<MsgExecuteContract>): MsgExecuteContract {
1710
- const message = createBaseMsgExecuteContract();
1711
- message.sender = object.sender ?? "";
1712
- message.contract = object.contract ?? "";
1713
- message.msg = object.msg ?? new Uint8Array();
1714
- message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
1715
- return message;
1716
- },
1717
- fromAmino(object: MsgExecuteContractAmino): MsgExecuteContract {
1718
- const message = createBaseMsgExecuteContract();
1719
- if (object.sender !== undefined && object.sender !== null) {
1720
- message.sender = object.sender;
1721
- }
1722
- if (object.contract !== undefined && object.contract !== null) {
1723
- message.contract = object.contract;
1724
- }
1725
- if (object.msg !== undefined && object.msg !== null) {
1726
- message.msg = toUtf8(JSON.stringify(object.msg));
1727
- }
1728
- message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
1729
- return message;
1730
- },
1731
- toAmino(message: MsgExecuteContract): MsgExecuteContractAmino {
1732
- const obj: any = {};
1733
- obj.sender = message.sender === "" ? undefined : message.sender;
1734
- obj.contract = message.contract === "" ? undefined : message.contract;
1735
- obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
1736
- if (message.funds) {
1737
- obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
1738
- } else {
1739
- obj.funds = message.funds;
1740
- }
1741
- return obj;
1742
- },
1743
- fromAminoMsg(object: MsgExecuteContractAminoMsg): MsgExecuteContract {
1744
- return MsgExecuteContract.fromAmino(object.value);
1745
- },
1746
- toAminoMsg(message: MsgExecuteContract): MsgExecuteContractAminoMsg {
1747
- return {
1748
- type: "wasm/MsgExecuteContract",
1749
- value: MsgExecuteContract.toAmino(message)
1750
- };
1751
- },
1752
- fromProtoMsg(message: MsgExecuteContractProtoMsg): MsgExecuteContract {
1753
- return MsgExecuteContract.decode(message.value);
1754
- },
1755
- toProto(message: MsgExecuteContract): Uint8Array {
1756
- return MsgExecuteContract.encode(message).finish();
1757
- },
1758
- toProtoMsg(message: MsgExecuteContract): MsgExecuteContractProtoMsg {
1759
- return {
1760
- typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
1761
- value: MsgExecuteContract.encode(message).finish()
1762
- };
1763
- }
1764
- };
1765
- GlobalDecoderRegistry.register(MsgExecuteContract.typeUrl, MsgExecuteContract);
1766
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgExecuteContract.aminoType, MsgExecuteContract.typeUrl);
1767
- function createBaseMsgExecuteContractResponse(): MsgExecuteContractResponse {
1768
- return {
1769
- data: new Uint8Array()
1770
- };
1771
- }
1772
- export const MsgExecuteContractResponse = {
1773
- typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContractResponse",
1774
- aminoType: "wasm/MsgExecuteContractResponse",
1775
- is(o: any): o is MsgExecuteContractResponse {
1776
- return o && (o.$typeUrl === MsgExecuteContractResponse.typeUrl || o.data instanceof Uint8Array || typeof o.data === "string");
1777
- },
1778
- isAmino(o: any): o is MsgExecuteContractResponseAmino {
1779
- return o && (o.$typeUrl === MsgExecuteContractResponse.typeUrl || o.data instanceof Uint8Array || typeof o.data === "string");
1780
- },
1781
- encode(message: MsgExecuteContractResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1782
- if (message.data.length !== 0) {
1783
- writer.uint32(10).bytes(message.data);
1784
- }
1785
- return writer;
1786
- },
1787
- decode(input: BinaryReader | Uint8Array, length?: number): MsgExecuteContractResponse {
1788
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1789
- let end = length === undefined ? reader.len : reader.pos + length;
1790
- const message = createBaseMsgExecuteContractResponse();
1791
- while (reader.pos < end) {
1792
- const tag = reader.uint32();
1793
- switch (tag >>> 3) {
1794
- case 1:
1795
- message.data = reader.bytes();
1796
- break;
1797
- default:
1798
- reader.skipType(tag & 7);
1799
- break;
1800
- }
1801
- }
1802
- return message;
1803
- },
1804
- fromPartial(object: DeepPartial<MsgExecuteContractResponse>): MsgExecuteContractResponse {
1805
- const message = createBaseMsgExecuteContractResponse();
1806
- message.data = object.data ?? new Uint8Array();
1807
- return message;
1808
- },
1809
- fromAmino(object: MsgExecuteContractResponseAmino): MsgExecuteContractResponse {
1810
- const message = createBaseMsgExecuteContractResponse();
1811
- if (object.data !== undefined && object.data !== null) {
1812
- message.data = bytesFromBase64(object.data);
1813
- }
1814
- return message;
1815
- },
1816
- toAmino(message: MsgExecuteContractResponse): MsgExecuteContractResponseAmino {
1817
- const obj: any = {};
1818
- obj.data = message.data ? base64FromBytes(message.data) : undefined;
1819
- return obj;
1820
- },
1821
- fromAminoMsg(object: MsgExecuteContractResponseAminoMsg): MsgExecuteContractResponse {
1822
- return MsgExecuteContractResponse.fromAmino(object.value);
1823
- },
1824
- toAminoMsg(message: MsgExecuteContractResponse): MsgExecuteContractResponseAminoMsg {
1825
- return {
1826
- type: "wasm/MsgExecuteContractResponse",
1827
- value: MsgExecuteContractResponse.toAmino(message)
1828
- };
1829
- },
1830
- fromProtoMsg(message: MsgExecuteContractResponseProtoMsg): MsgExecuteContractResponse {
1831
- return MsgExecuteContractResponse.decode(message.value);
1832
- },
1833
- toProto(message: MsgExecuteContractResponse): Uint8Array {
1834
- return MsgExecuteContractResponse.encode(message).finish();
1835
- },
1836
- toProtoMsg(message: MsgExecuteContractResponse): MsgExecuteContractResponseProtoMsg {
1837
- return {
1838
- typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContractResponse",
1839
- value: MsgExecuteContractResponse.encode(message).finish()
1840
- };
1841
- }
1842
- };
1843
- GlobalDecoderRegistry.register(MsgExecuteContractResponse.typeUrl, MsgExecuteContractResponse);
1844
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgExecuteContractResponse.aminoType, MsgExecuteContractResponse.typeUrl);
1845
- function createBaseMsgMigrateContract(): MsgMigrateContract {
1846
- return {
1847
- sender: "",
1848
- contract: "",
1849
- codeId: BigInt(0),
1850
- msg: new Uint8Array()
1851
- };
1852
- }
1853
- export const MsgMigrateContract = {
1854
- typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract",
1855
- aminoType: "wasm/MsgMigrateContract",
1856
- is(o: any): o is MsgMigrateContract {
1857
- return o && (o.$typeUrl === MsgMigrateContract.typeUrl || typeof o.sender === "string" && typeof o.contract === "string" && typeof o.codeId === "bigint" && (o.msg instanceof Uint8Array || typeof o.msg === "string"));
1858
- },
1859
- isAmino(o: any): o is MsgMigrateContractAmino {
1860
- return o && (o.$typeUrl === MsgMigrateContract.typeUrl || typeof o.sender === "string" && typeof o.contract === "string" && typeof o.code_id === "bigint" && (o.msg instanceof Uint8Array || typeof o.msg === "string"));
1861
- },
1862
- encode(message: MsgMigrateContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1863
- if (message.sender !== "") {
1864
- writer.uint32(10).string(message.sender);
1865
- }
1866
- if (message.contract !== "") {
1867
- writer.uint32(18).string(message.contract);
1868
- }
1869
- if (message.codeId !== BigInt(0)) {
1870
- writer.uint32(24).uint64(message.codeId);
1871
- }
1872
- if (message.msg.length !== 0) {
1873
- writer.uint32(34).bytes(message.msg);
1874
- }
1875
- return writer;
1876
- },
1877
- decode(input: BinaryReader | Uint8Array, length?: number): MsgMigrateContract {
1878
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1879
- let end = length === undefined ? reader.len : reader.pos + length;
1880
- const message = createBaseMsgMigrateContract();
1881
- while (reader.pos < end) {
1882
- const tag = reader.uint32();
1883
- switch (tag >>> 3) {
1884
- case 1:
1885
- message.sender = reader.string();
1886
- break;
1887
- case 2:
1888
- message.contract = reader.string();
1889
- break;
1890
- case 3:
1891
- message.codeId = reader.uint64();
1892
- break;
1893
- case 4:
1894
- message.msg = reader.bytes();
1895
- break;
1896
- default:
1897
- reader.skipType(tag & 7);
1898
- break;
1899
- }
1900
- }
1901
- return message;
1902
- },
1903
- fromPartial(object: DeepPartial<MsgMigrateContract>): MsgMigrateContract {
1904
- const message = createBaseMsgMigrateContract();
1905
- message.sender = object.sender ?? "";
1906
- message.contract = object.contract ?? "";
1907
- message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
1908
- message.msg = object.msg ?? new Uint8Array();
1909
- return message;
1910
- },
1911
- fromAmino(object: MsgMigrateContractAmino): MsgMigrateContract {
1912
- const message = createBaseMsgMigrateContract();
1913
- if (object.sender !== undefined && object.sender !== null) {
1914
- message.sender = object.sender;
1915
- }
1916
- if (object.contract !== undefined && object.contract !== null) {
1917
- message.contract = object.contract;
1918
- }
1919
- if (object.code_id !== undefined && object.code_id !== null) {
1920
- message.codeId = BigInt(object.code_id);
1921
- }
1922
- if (object.msg !== undefined && object.msg !== null) {
1923
- message.msg = toUtf8(JSON.stringify(object.msg));
1924
- }
1925
- return message;
1926
- },
1927
- toAmino(message: MsgMigrateContract): MsgMigrateContractAmino {
1928
- const obj: any = {};
1929
- obj.sender = message.sender === "" ? undefined : message.sender;
1930
- obj.contract = message.contract === "" ? undefined : message.contract;
1931
- obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
1932
- obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
1933
- return obj;
1934
- },
1935
- fromAminoMsg(object: MsgMigrateContractAminoMsg): MsgMigrateContract {
1936
- return MsgMigrateContract.fromAmino(object.value);
1937
- },
1938
- toAminoMsg(message: MsgMigrateContract): MsgMigrateContractAminoMsg {
1939
- return {
1940
- type: "wasm/MsgMigrateContract",
1941
- value: MsgMigrateContract.toAmino(message)
1942
- };
1943
- },
1944
- fromProtoMsg(message: MsgMigrateContractProtoMsg): MsgMigrateContract {
1945
- return MsgMigrateContract.decode(message.value);
1946
- },
1947
- toProto(message: MsgMigrateContract): Uint8Array {
1948
- return MsgMigrateContract.encode(message).finish();
1949
- },
1950
- toProtoMsg(message: MsgMigrateContract): MsgMigrateContractProtoMsg {
1951
- return {
1952
- typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContract",
1953
- value: MsgMigrateContract.encode(message).finish()
1954
- };
1955
- }
1956
- };
1957
- GlobalDecoderRegistry.register(MsgMigrateContract.typeUrl, MsgMigrateContract);
1958
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgMigrateContract.aminoType, MsgMigrateContract.typeUrl);
1959
- function createBaseMsgMigrateContractResponse(): MsgMigrateContractResponse {
1960
- return {
1961
- data: new Uint8Array()
1962
- };
1963
- }
1964
- export const MsgMigrateContractResponse = {
1965
- typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContractResponse",
1966
- aminoType: "wasm/MsgMigrateContractResponse",
1967
- is(o: any): o is MsgMigrateContractResponse {
1968
- return o && (o.$typeUrl === MsgMigrateContractResponse.typeUrl || o.data instanceof Uint8Array || typeof o.data === "string");
1969
- },
1970
- isAmino(o: any): o is MsgMigrateContractResponseAmino {
1971
- return o && (o.$typeUrl === MsgMigrateContractResponse.typeUrl || o.data instanceof Uint8Array || typeof o.data === "string");
1972
- },
1973
- encode(message: MsgMigrateContractResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1974
- if (message.data.length !== 0) {
1975
- writer.uint32(10).bytes(message.data);
1976
- }
1977
- return writer;
1978
- },
1979
- decode(input: BinaryReader | Uint8Array, length?: number): MsgMigrateContractResponse {
1980
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1981
- let end = length === undefined ? reader.len : reader.pos + length;
1982
- const message = createBaseMsgMigrateContractResponse();
1983
- while (reader.pos < end) {
1984
- const tag = reader.uint32();
1985
- switch (tag >>> 3) {
1986
- case 1:
1987
- message.data = reader.bytes();
1988
- break;
1989
- default:
1990
- reader.skipType(tag & 7);
1991
- break;
1992
- }
1993
- }
1994
- return message;
1995
- },
1996
- fromPartial(object: DeepPartial<MsgMigrateContractResponse>): MsgMigrateContractResponse {
1997
- const message = createBaseMsgMigrateContractResponse();
1998
- message.data = object.data ?? new Uint8Array();
1999
- return message;
2000
- },
2001
- fromAmino(object: MsgMigrateContractResponseAmino): MsgMigrateContractResponse {
2002
- const message = createBaseMsgMigrateContractResponse();
2003
- if (object.data !== undefined && object.data !== null) {
2004
- message.data = bytesFromBase64(object.data);
2005
- }
2006
- return message;
2007
- },
2008
- toAmino(message: MsgMigrateContractResponse): MsgMigrateContractResponseAmino {
2009
- const obj: any = {};
2010
- obj.data = message.data ? base64FromBytes(message.data) : undefined;
2011
- return obj;
2012
- },
2013
- fromAminoMsg(object: MsgMigrateContractResponseAminoMsg): MsgMigrateContractResponse {
2014
- return MsgMigrateContractResponse.fromAmino(object.value);
2015
- },
2016
- toAminoMsg(message: MsgMigrateContractResponse): MsgMigrateContractResponseAminoMsg {
2017
- return {
2018
- type: "wasm/MsgMigrateContractResponse",
2019
- value: MsgMigrateContractResponse.toAmino(message)
2020
- };
2021
- },
2022
- fromProtoMsg(message: MsgMigrateContractResponseProtoMsg): MsgMigrateContractResponse {
2023
- return MsgMigrateContractResponse.decode(message.value);
2024
- },
2025
- toProto(message: MsgMigrateContractResponse): Uint8Array {
2026
- return MsgMigrateContractResponse.encode(message).finish();
2027
- },
2028
- toProtoMsg(message: MsgMigrateContractResponse): MsgMigrateContractResponseProtoMsg {
2029
- return {
2030
- typeUrl: "/cosmwasm.wasm.v1.MsgMigrateContractResponse",
2031
- value: MsgMigrateContractResponse.encode(message).finish()
2032
- };
2033
- }
2034
- };
2035
- GlobalDecoderRegistry.register(MsgMigrateContractResponse.typeUrl, MsgMigrateContractResponse);
2036
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgMigrateContractResponse.aminoType, MsgMigrateContractResponse.typeUrl);
2037
- function createBaseMsgUpdateAdmin(): MsgUpdateAdmin {
2038
- return {
2039
- sender: "",
2040
- newAdmin: "",
2041
- contract: ""
2042
- };
2043
- }
2044
- export const MsgUpdateAdmin = {
2045
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin",
2046
- aminoType: "wasm/MsgUpdateAdmin",
2047
- is(o: any): o is MsgUpdateAdmin {
2048
- return o && (o.$typeUrl === MsgUpdateAdmin.typeUrl || typeof o.sender === "string" && typeof o.newAdmin === "string" && typeof o.contract === "string");
2049
- },
2050
- isAmino(o: any): o is MsgUpdateAdminAmino {
2051
- return o && (o.$typeUrl === MsgUpdateAdmin.typeUrl || typeof o.sender === "string" && typeof o.new_admin === "string" && typeof o.contract === "string");
2052
- },
2053
- encode(message: MsgUpdateAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2054
- if (message.sender !== "") {
2055
- writer.uint32(10).string(message.sender);
2056
- }
2057
- if (message.newAdmin !== "") {
2058
- writer.uint32(18).string(message.newAdmin);
2059
- }
2060
- if (message.contract !== "") {
2061
- writer.uint32(26).string(message.contract);
2062
- }
2063
- return writer;
2064
- },
2065
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateAdmin {
2066
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2067
- let end = length === undefined ? reader.len : reader.pos + length;
2068
- const message = createBaseMsgUpdateAdmin();
2069
- while (reader.pos < end) {
2070
- const tag = reader.uint32();
2071
- switch (tag >>> 3) {
2072
- case 1:
2073
- message.sender = reader.string();
2074
- break;
2075
- case 2:
2076
- message.newAdmin = reader.string();
2077
- break;
2078
- case 3:
2079
- message.contract = reader.string();
2080
- break;
2081
- default:
2082
- reader.skipType(tag & 7);
2083
- break;
2084
- }
2085
- }
2086
- return message;
2087
- },
2088
- fromPartial(object: DeepPartial<MsgUpdateAdmin>): MsgUpdateAdmin {
2089
- const message = createBaseMsgUpdateAdmin();
2090
- message.sender = object.sender ?? "";
2091
- message.newAdmin = object.newAdmin ?? "";
2092
- message.contract = object.contract ?? "";
2093
- return message;
2094
- },
2095
- fromAmino(object: MsgUpdateAdminAmino): MsgUpdateAdmin {
2096
- const message = createBaseMsgUpdateAdmin();
2097
- if (object.sender !== undefined && object.sender !== null) {
2098
- message.sender = object.sender;
2099
- }
2100
- if (object.new_admin !== undefined && object.new_admin !== null) {
2101
- message.newAdmin = object.new_admin;
2102
- }
2103
- if (object.contract !== undefined && object.contract !== null) {
2104
- message.contract = object.contract;
2105
- }
2106
- return message;
2107
- },
2108
- toAmino(message: MsgUpdateAdmin): MsgUpdateAdminAmino {
2109
- const obj: any = {};
2110
- obj.sender = message.sender === "" ? undefined : message.sender;
2111
- obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin;
2112
- obj.contract = message.contract === "" ? undefined : message.contract;
2113
- return obj;
2114
- },
2115
- fromAminoMsg(object: MsgUpdateAdminAminoMsg): MsgUpdateAdmin {
2116
- return MsgUpdateAdmin.fromAmino(object.value);
2117
- },
2118
- toAminoMsg(message: MsgUpdateAdmin): MsgUpdateAdminAminoMsg {
2119
- return {
2120
- type: "wasm/MsgUpdateAdmin",
2121
- value: MsgUpdateAdmin.toAmino(message)
2122
- };
2123
- },
2124
- fromProtoMsg(message: MsgUpdateAdminProtoMsg): MsgUpdateAdmin {
2125
- return MsgUpdateAdmin.decode(message.value);
2126
- },
2127
- toProto(message: MsgUpdateAdmin): Uint8Array {
2128
- return MsgUpdateAdmin.encode(message).finish();
2129
- },
2130
- toProtoMsg(message: MsgUpdateAdmin): MsgUpdateAdminProtoMsg {
2131
- return {
2132
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdmin",
2133
- value: MsgUpdateAdmin.encode(message).finish()
2134
- };
2135
- }
2136
- };
2137
- GlobalDecoderRegistry.register(MsgUpdateAdmin.typeUrl, MsgUpdateAdmin);
2138
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateAdmin.aminoType, MsgUpdateAdmin.typeUrl);
2139
- function createBaseMsgUpdateAdminResponse(): MsgUpdateAdminResponse {
2140
- return {};
2141
- }
2142
- export const MsgUpdateAdminResponse = {
2143
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdminResponse",
2144
- aminoType: "wasm/MsgUpdateAdminResponse",
2145
- is(o: any): o is MsgUpdateAdminResponse {
2146
- return o && o.$typeUrl === MsgUpdateAdminResponse.typeUrl;
2147
- },
2148
- isAmino(o: any): o is MsgUpdateAdminResponseAmino {
2149
- return o && o.$typeUrl === MsgUpdateAdminResponse.typeUrl;
2150
- },
2151
- encode(_: MsgUpdateAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2152
- return writer;
2153
- },
2154
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateAdminResponse {
2155
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2156
- let end = length === undefined ? reader.len : reader.pos + length;
2157
- const message = createBaseMsgUpdateAdminResponse();
2158
- while (reader.pos < end) {
2159
- const tag = reader.uint32();
2160
- switch (tag >>> 3) {
2161
- default:
2162
- reader.skipType(tag & 7);
2163
- break;
2164
- }
2165
- }
2166
- return message;
2167
- },
2168
- fromPartial(_: DeepPartial<MsgUpdateAdminResponse>): MsgUpdateAdminResponse {
2169
- const message = createBaseMsgUpdateAdminResponse();
2170
- return message;
2171
- },
2172
- fromAmino(_: MsgUpdateAdminResponseAmino): MsgUpdateAdminResponse {
2173
- const message = createBaseMsgUpdateAdminResponse();
2174
- return message;
2175
- },
2176
- toAmino(_: MsgUpdateAdminResponse): MsgUpdateAdminResponseAmino {
2177
- const obj: any = {};
2178
- return obj;
2179
- },
2180
- fromAminoMsg(object: MsgUpdateAdminResponseAminoMsg): MsgUpdateAdminResponse {
2181
- return MsgUpdateAdminResponse.fromAmino(object.value);
2182
- },
2183
- toAminoMsg(message: MsgUpdateAdminResponse): MsgUpdateAdminResponseAminoMsg {
2184
- return {
2185
- type: "wasm/MsgUpdateAdminResponse",
2186
- value: MsgUpdateAdminResponse.toAmino(message)
2187
- };
2188
- },
2189
- fromProtoMsg(message: MsgUpdateAdminResponseProtoMsg): MsgUpdateAdminResponse {
2190
- return MsgUpdateAdminResponse.decode(message.value);
2191
- },
2192
- toProto(message: MsgUpdateAdminResponse): Uint8Array {
2193
- return MsgUpdateAdminResponse.encode(message).finish();
2194
- },
2195
- toProtoMsg(message: MsgUpdateAdminResponse): MsgUpdateAdminResponseProtoMsg {
2196
- return {
2197
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateAdminResponse",
2198
- value: MsgUpdateAdminResponse.encode(message).finish()
2199
- };
2200
- }
2201
- };
2202
- GlobalDecoderRegistry.register(MsgUpdateAdminResponse.typeUrl, MsgUpdateAdminResponse);
2203
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateAdminResponse.aminoType, MsgUpdateAdminResponse.typeUrl);
2204
- function createBaseMsgClearAdmin(): MsgClearAdmin {
2205
- return {
2206
- sender: "",
2207
- contract: ""
2208
- };
2209
- }
2210
- export const MsgClearAdmin = {
2211
- typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin",
2212
- aminoType: "wasm/MsgClearAdmin",
2213
- is(o: any): o is MsgClearAdmin {
2214
- return o && (o.$typeUrl === MsgClearAdmin.typeUrl || typeof o.sender === "string" && typeof o.contract === "string");
2215
- },
2216
- isAmino(o: any): o is MsgClearAdminAmino {
2217
- return o && (o.$typeUrl === MsgClearAdmin.typeUrl || typeof o.sender === "string" && typeof o.contract === "string");
2218
- },
2219
- encode(message: MsgClearAdmin, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2220
- if (message.sender !== "") {
2221
- writer.uint32(10).string(message.sender);
2222
- }
2223
- if (message.contract !== "") {
2224
- writer.uint32(26).string(message.contract);
2225
- }
2226
- return writer;
2227
- },
2228
- decode(input: BinaryReader | Uint8Array, length?: number): MsgClearAdmin {
2229
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2230
- let end = length === undefined ? reader.len : reader.pos + length;
2231
- const message = createBaseMsgClearAdmin();
2232
- while (reader.pos < end) {
2233
- const tag = reader.uint32();
2234
- switch (tag >>> 3) {
2235
- case 1:
2236
- message.sender = reader.string();
2237
- break;
2238
- case 3:
2239
- message.contract = reader.string();
2240
- break;
2241
- default:
2242
- reader.skipType(tag & 7);
2243
- break;
2244
- }
2245
- }
2246
- return message;
2247
- },
2248
- fromPartial(object: DeepPartial<MsgClearAdmin>): MsgClearAdmin {
2249
- const message = createBaseMsgClearAdmin();
2250
- message.sender = object.sender ?? "";
2251
- message.contract = object.contract ?? "";
2252
- return message;
2253
- },
2254
- fromAmino(object: MsgClearAdminAmino): MsgClearAdmin {
2255
- const message = createBaseMsgClearAdmin();
2256
- if (object.sender !== undefined && object.sender !== null) {
2257
- message.sender = object.sender;
2258
- }
2259
- if (object.contract !== undefined && object.contract !== null) {
2260
- message.contract = object.contract;
2261
- }
2262
- return message;
2263
- },
2264
- toAmino(message: MsgClearAdmin): MsgClearAdminAmino {
2265
- const obj: any = {};
2266
- obj.sender = message.sender === "" ? undefined : message.sender;
2267
- obj.contract = message.contract === "" ? undefined : message.contract;
2268
- return obj;
2269
- },
2270
- fromAminoMsg(object: MsgClearAdminAminoMsg): MsgClearAdmin {
2271
- return MsgClearAdmin.fromAmino(object.value);
2272
- },
2273
- toAminoMsg(message: MsgClearAdmin): MsgClearAdminAminoMsg {
2274
- return {
2275
- type: "wasm/MsgClearAdmin",
2276
- value: MsgClearAdmin.toAmino(message)
2277
- };
2278
- },
2279
- fromProtoMsg(message: MsgClearAdminProtoMsg): MsgClearAdmin {
2280
- return MsgClearAdmin.decode(message.value);
2281
- },
2282
- toProto(message: MsgClearAdmin): Uint8Array {
2283
- return MsgClearAdmin.encode(message).finish();
2284
- },
2285
- toProtoMsg(message: MsgClearAdmin): MsgClearAdminProtoMsg {
2286
- return {
2287
- typeUrl: "/cosmwasm.wasm.v1.MsgClearAdmin",
2288
- value: MsgClearAdmin.encode(message).finish()
2289
- };
2290
- }
2291
- };
2292
- GlobalDecoderRegistry.register(MsgClearAdmin.typeUrl, MsgClearAdmin);
2293
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgClearAdmin.aminoType, MsgClearAdmin.typeUrl);
2294
- function createBaseMsgClearAdminResponse(): MsgClearAdminResponse {
2295
- return {};
2296
- }
2297
- export const MsgClearAdminResponse = {
2298
- typeUrl: "/cosmwasm.wasm.v1.MsgClearAdminResponse",
2299
- aminoType: "wasm/MsgClearAdminResponse",
2300
- is(o: any): o is MsgClearAdminResponse {
2301
- return o && o.$typeUrl === MsgClearAdminResponse.typeUrl;
2302
- },
2303
- isAmino(o: any): o is MsgClearAdminResponseAmino {
2304
- return o && o.$typeUrl === MsgClearAdminResponse.typeUrl;
2305
- },
2306
- encode(_: MsgClearAdminResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2307
- return writer;
2308
- },
2309
- decode(input: BinaryReader | Uint8Array, length?: number): MsgClearAdminResponse {
2310
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2311
- let end = length === undefined ? reader.len : reader.pos + length;
2312
- const message = createBaseMsgClearAdminResponse();
2313
- while (reader.pos < end) {
2314
- const tag = reader.uint32();
2315
- switch (tag >>> 3) {
2316
- default:
2317
- reader.skipType(tag & 7);
2318
- break;
2319
- }
2320
- }
2321
- return message;
2322
- },
2323
- fromPartial(_: DeepPartial<MsgClearAdminResponse>): MsgClearAdminResponse {
2324
- const message = createBaseMsgClearAdminResponse();
2325
- return message;
2326
- },
2327
- fromAmino(_: MsgClearAdminResponseAmino): MsgClearAdminResponse {
2328
- const message = createBaseMsgClearAdminResponse();
2329
- return message;
2330
- },
2331
- toAmino(_: MsgClearAdminResponse): MsgClearAdminResponseAmino {
2332
- const obj: any = {};
2333
- return obj;
2334
- },
2335
- fromAminoMsg(object: MsgClearAdminResponseAminoMsg): MsgClearAdminResponse {
2336
- return MsgClearAdminResponse.fromAmino(object.value);
2337
- },
2338
- toAminoMsg(message: MsgClearAdminResponse): MsgClearAdminResponseAminoMsg {
2339
- return {
2340
- type: "wasm/MsgClearAdminResponse",
2341
- value: MsgClearAdminResponse.toAmino(message)
2342
- };
2343
- },
2344
- fromProtoMsg(message: MsgClearAdminResponseProtoMsg): MsgClearAdminResponse {
2345
- return MsgClearAdminResponse.decode(message.value);
2346
- },
2347
- toProto(message: MsgClearAdminResponse): Uint8Array {
2348
- return MsgClearAdminResponse.encode(message).finish();
2349
- },
2350
- toProtoMsg(message: MsgClearAdminResponse): MsgClearAdminResponseProtoMsg {
2351
- return {
2352
- typeUrl: "/cosmwasm.wasm.v1.MsgClearAdminResponse",
2353
- value: MsgClearAdminResponse.encode(message).finish()
2354
- };
2355
- }
2356
- };
2357
- GlobalDecoderRegistry.register(MsgClearAdminResponse.typeUrl, MsgClearAdminResponse);
2358
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgClearAdminResponse.aminoType, MsgClearAdminResponse.typeUrl);
2359
- function createBaseMsgUpdateInstantiateConfig(): MsgUpdateInstantiateConfig {
2360
- return {
2361
- sender: "",
2362
- codeId: BigInt(0),
2363
- newInstantiatePermission: undefined
2364
- };
2365
- }
2366
- export const MsgUpdateInstantiateConfig = {
2367
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig",
2368
- aminoType: "wasm/MsgUpdateInstantiateConfig",
2369
- is(o: any): o is MsgUpdateInstantiateConfig {
2370
- return o && (o.$typeUrl === MsgUpdateInstantiateConfig.typeUrl || typeof o.sender === "string" && typeof o.codeId === "bigint");
2371
- },
2372
- isAmino(o: any): o is MsgUpdateInstantiateConfigAmino {
2373
- return o && (o.$typeUrl === MsgUpdateInstantiateConfig.typeUrl || typeof o.sender === "string" && typeof o.code_id === "bigint");
2374
- },
2375
- encode(message: MsgUpdateInstantiateConfig, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2376
- if (message.sender !== "") {
2377
- writer.uint32(10).string(message.sender);
2378
- }
2379
- if (message.codeId !== BigInt(0)) {
2380
- writer.uint32(16).uint64(message.codeId);
2381
- }
2382
- if (message.newInstantiatePermission !== undefined) {
2383
- AccessConfig.encode(message.newInstantiatePermission, writer.uint32(26).fork()).ldelim();
2384
- }
2385
- return writer;
2386
- },
2387
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateInstantiateConfig {
2388
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2389
- let end = length === undefined ? reader.len : reader.pos + length;
2390
- const message = createBaseMsgUpdateInstantiateConfig();
2391
- while (reader.pos < end) {
2392
- const tag = reader.uint32();
2393
- switch (tag >>> 3) {
2394
- case 1:
2395
- message.sender = reader.string();
2396
- break;
2397
- case 2:
2398
- message.codeId = reader.uint64();
2399
- break;
2400
- case 3:
2401
- message.newInstantiatePermission = AccessConfig.decode(reader, reader.uint32());
2402
- break;
2403
- default:
2404
- reader.skipType(tag & 7);
2405
- break;
2406
- }
2407
- }
2408
- return message;
2409
- },
2410
- fromPartial(object: DeepPartial<MsgUpdateInstantiateConfig>): MsgUpdateInstantiateConfig {
2411
- const message = createBaseMsgUpdateInstantiateConfig();
2412
- message.sender = object.sender ?? "";
2413
- message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
2414
- message.newInstantiatePermission = object.newInstantiatePermission !== undefined && object.newInstantiatePermission !== null ? AccessConfig.fromPartial(object.newInstantiatePermission) : undefined;
2415
- return message;
2416
- },
2417
- fromAmino(object: MsgUpdateInstantiateConfigAmino): MsgUpdateInstantiateConfig {
2418
- const message = createBaseMsgUpdateInstantiateConfig();
2419
- if (object.sender !== undefined && object.sender !== null) {
2420
- message.sender = object.sender;
2421
- }
2422
- if (object.code_id !== undefined && object.code_id !== null) {
2423
- message.codeId = BigInt(object.code_id);
2424
- }
2425
- if (object.new_instantiate_permission !== undefined && object.new_instantiate_permission !== null) {
2426
- message.newInstantiatePermission = AccessConfig.fromAmino(object.new_instantiate_permission);
2427
- }
2428
- return message;
2429
- },
2430
- toAmino(message: MsgUpdateInstantiateConfig): MsgUpdateInstantiateConfigAmino {
2431
- const obj: any = {};
2432
- obj.sender = message.sender === "" ? undefined : message.sender;
2433
- obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
2434
- obj.new_instantiate_permission = message.newInstantiatePermission ? AccessConfig.toAmino(message.newInstantiatePermission) : undefined;
2435
- return obj;
2436
- },
2437
- fromAminoMsg(object: MsgUpdateInstantiateConfigAminoMsg): MsgUpdateInstantiateConfig {
2438
- return MsgUpdateInstantiateConfig.fromAmino(object.value);
2439
- },
2440
- toAminoMsg(message: MsgUpdateInstantiateConfig): MsgUpdateInstantiateConfigAminoMsg {
2441
- return {
2442
- type: "wasm/MsgUpdateInstantiateConfig",
2443
- value: MsgUpdateInstantiateConfig.toAmino(message)
2444
- };
2445
- },
2446
- fromProtoMsg(message: MsgUpdateInstantiateConfigProtoMsg): MsgUpdateInstantiateConfig {
2447
- return MsgUpdateInstantiateConfig.decode(message.value);
2448
- },
2449
- toProto(message: MsgUpdateInstantiateConfig): Uint8Array {
2450
- return MsgUpdateInstantiateConfig.encode(message).finish();
2451
- },
2452
- toProtoMsg(message: MsgUpdateInstantiateConfig): MsgUpdateInstantiateConfigProtoMsg {
2453
- return {
2454
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfig",
2455
- value: MsgUpdateInstantiateConfig.encode(message).finish()
2456
- };
2457
- }
2458
- };
2459
- GlobalDecoderRegistry.register(MsgUpdateInstantiateConfig.typeUrl, MsgUpdateInstantiateConfig);
2460
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateInstantiateConfig.aminoType, MsgUpdateInstantiateConfig.typeUrl);
2461
- function createBaseMsgUpdateInstantiateConfigResponse(): MsgUpdateInstantiateConfigResponse {
2462
- return {};
2463
- }
2464
- export const MsgUpdateInstantiateConfigResponse = {
2465
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse",
2466
- aminoType: "wasm/MsgUpdateInstantiateConfigResponse",
2467
- is(o: any): o is MsgUpdateInstantiateConfigResponse {
2468
- return o && o.$typeUrl === MsgUpdateInstantiateConfigResponse.typeUrl;
2469
- },
2470
- isAmino(o: any): o is MsgUpdateInstantiateConfigResponseAmino {
2471
- return o && o.$typeUrl === MsgUpdateInstantiateConfigResponse.typeUrl;
2472
- },
2473
- encode(_: MsgUpdateInstantiateConfigResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2474
- return writer;
2475
- },
2476
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateInstantiateConfigResponse {
2477
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2478
- let end = length === undefined ? reader.len : reader.pos + length;
2479
- const message = createBaseMsgUpdateInstantiateConfigResponse();
2480
- while (reader.pos < end) {
2481
- const tag = reader.uint32();
2482
- switch (tag >>> 3) {
2483
- default:
2484
- reader.skipType(tag & 7);
2485
- break;
2486
- }
2487
- }
2488
- return message;
2489
- },
2490
- fromPartial(_: DeepPartial<MsgUpdateInstantiateConfigResponse>): MsgUpdateInstantiateConfigResponse {
2491
- const message = createBaseMsgUpdateInstantiateConfigResponse();
2492
- return message;
2493
- },
2494
- fromAmino(_: MsgUpdateInstantiateConfigResponseAmino): MsgUpdateInstantiateConfigResponse {
2495
- const message = createBaseMsgUpdateInstantiateConfigResponse();
2496
- return message;
2497
- },
2498
- toAmino(_: MsgUpdateInstantiateConfigResponse): MsgUpdateInstantiateConfigResponseAmino {
2499
- const obj: any = {};
2500
- return obj;
2501
- },
2502
- fromAminoMsg(object: MsgUpdateInstantiateConfigResponseAminoMsg): MsgUpdateInstantiateConfigResponse {
2503
- return MsgUpdateInstantiateConfigResponse.fromAmino(object.value);
2504
- },
2505
- toAminoMsg(message: MsgUpdateInstantiateConfigResponse): MsgUpdateInstantiateConfigResponseAminoMsg {
2506
- return {
2507
- type: "wasm/MsgUpdateInstantiateConfigResponse",
2508
- value: MsgUpdateInstantiateConfigResponse.toAmino(message)
2509
- };
2510
- },
2511
- fromProtoMsg(message: MsgUpdateInstantiateConfigResponseProtoMsg): MsgUpdateInstantiateConfigResponse {
2512
- return MsgUpdateInstantiateConfigResponse.decode(message.value);
2513
- },
2514
- toProto(message: MsgUpdateInstantiateConfigResponse): Uint8Array {
2515
- return MsgUpdateInstantiateConfigResponse.encode(message).finish();
2516
- },
2517
- toProtoMsg(message: MsgUpdateInstantiateConfigResponse): MsgUpdateInstantiateConfigResponseProtoMsg {
2518
- return {
2519
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse",
2520
- value: MsgUpdateInstantiateConfigResponse.encode(message).finish()
2521
- };
2522
- }
2523
- };
2524
- GlobalDecoderRegistry.register(MsgUpdateInstantiateConfigResponse.typeUrl, MsgUpdateInstantiateConfigResponse);
2525
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateInstantiateConfigResponse.aminoType, MsgUpdateInstantiateConfigResponse.typeUrl);
2526
- function createBaseMsgUpdateParams(): MsgUpdateParams {
2527
- return {
2528
- authority: "",
2529
- params: Params.fromPartial({})
2530
- };
2531
- }
2532
- export const MsgUpdateParams = {
2533
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParams",
2534
- aminoType: "wasm/MsgUpdateParams",
2535
- is(o: any): o is MsgUpdateParams {
2536
- return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.is(o.params));
2537
- },
2538
- isAmino(o: any): o is MsgUpdateParamsAmino {
2539
- return o && (o.$typeUrl === MsgUpdateParams.typeUrl || typeof o.authority === "string" && Params.isAmino(o.params));
2540
- },
2541
- encode(message: MsgUpdateParams, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2542
- if (message.authority !== "") {
2543
- writer.uint32(10).string(message.authority);
2544
- }
2545
- if (message.params !== undefined) {
2546
- Params.encode(message.params, writer.uint32(18).fork()).ldelim();
2547
- }
2548
- return writer;
2549
- },
2550
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams {
2551
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2552
- let end = length === undefined ? reader.len : reader.pos + length;
2553
- const message = createBaseMsgUpdateParams();
2554
- while (reader.pos < end) {
2555
- const tag = reader.uint32();
2556
- switch (tag >>> 3) {
2557
- case 1:
2558
- message.authority = reader.string();
2559
- break;
2560
- case 2:
2561
- message.params = Params.decode(reader, reader.uint32());
2562
- break;
2563
- default:
2564
- reader.skipType(tag & 7);
2565
- break;
2566
- }
2567
- }
2568
- return message;
2569
- },
2570
- fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams {
2571
- const message = createBaseMsgUpdateParams();
2572
- message.authority = object.authority ?? "";
2573
- message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
2574
- return message;
2575
- },
2576
- fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams {
2577
- const message = createBaseMsgUpdateParams();
2578
- if (object.authority !== undefined && object.authority !== null) {
2579
- message.authority = object.authority;
2580
- }
2581
- if (object.params !== undefined && object.params !== null) {
2582
- message.params = Params.fromAmino(object.params);
2583
- }
2584
- return message;
2585
- },
2586
- toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino {
2587
- const obj: any = {};
2588
- obj.authority = message.authority === "" ? undefined : message.authority;
2589
- obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
2590
- return obj;
2591
- },
2592
- fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams {
2593
- return MsgUpdateParams.fromAmino(object.value);
2594
- },
2595
- toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg {
2596
- return {
2597
- type: "wasm/MsgUpdateParams",
2598
- value: MsgUpdateParams.toAmino(message)
2599
- };
2600
- },
2601
- fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams {
2602
- return MsgUpdateParams.decode(message.value);
2603
- },
2604
- toProto(message: MsgUpdateParams): Uint8Array {
2605
- return MsgUpdateParams.encode(message).finish();
2606
- },
2607
- toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg {
2608
- return {
2609
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParams",
2610
- value: MsgUpdateParams.encode(message).finish()
2611
- };
2612
- }
2613
- };
2614
- GlobalDecoderRegistry.register(MsgUpdateParams.typeUrl, MsgUpdateParams);
2615
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParams.aminoType, MsgUpdateParams.typeUrl);
2616
- function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
2617
- return {};
2618
- }
2619
- export const MsgUpdateParamsResponse = {
2620
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParamsResponse",
2621
- aminoType: "wasm/MsgUpdateParamsResponse",
2622
- is(o: any): o is MsgUpdateParamsResponse {
2623
- return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
2624
- },
2625
- isAmino(o: any): o is MsgUpdateParamsResponseAmino {
2626
- return o && o.$typeUrl === MsgUpdateParamsResponse.typeUrl;
2627
- },
2628
- encode(_: MsgUpdateParamsResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2629
- return writer;
2630
- },
2631
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse {
2632
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2633
- let end = length === undefined ? reader.len : reader.pos + length;
2634
- const message = createBaseMsgUpdateParamsResponse();
2635
- while (reader.pos < end) {
2636
- const tag = reader.uint32();
2637
- switch (tag >>> 3) {
2638
- default:
2639
- reader.skipType(tag & 7);
2640
- break;
2641
- }
2642
- }
2643
- return message;
2644
- },
2645
- fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
2646
- const message = createBaseMsgUpdateParamsResponse();
2647
- return message;
2648
- },
2649
- fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse {
2650
- const message = createBaseMsgUpdateParamsResponse();
2651
- return message;
2652
- },
2653
- toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino {
2654
- const obj: any = {};
2655
- return obj;
2656
- },
2657
- fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse {
2658
- return MsgUpdateParamsResponse.fromAmino(object.value);
2659
- },
2660
- toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg {
2661
- return {
2662
- type: "wasm/MsgUpdateParamsResponse",
2663
- value: MsgUpdateParamsResponse.toAmino(message)
2664
- };
2665
- },
2666
- fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse {
2667
- return MsgUpdateParamsResponse.decode(message.value);
2668
- },
2669
- toProto(message: MsgUpdateParamsResponse): Uint8Array {
2670
- return MsgUpdateParamsResponse.encode(message).finish();
2671
- },
2672
- toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg {
2673
- return {
2674
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateParamsResponse",
2675
- value: MsgUpdateParamsResponse.encode(message).finish()
2676
- };
2677
- }
2678
- };
2679
- GlobalDecoderRegistry.register(MsgUpdateParamsResponse.typeUrl, MsgUpdateParamsResponse);
2680
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateParamsResponse.aminoType, MsgUpdateParamsResponse.typeUrl);
2681
- function createBaseMsgSudoContract(): MsgSudoContract {
2682
- return {
2683
- authority: "",
2684
- contract: "",
2685
- msg: new Uint8Array()
2686
- };
2687
- }
2688
- export const MsgSudoContract = {
2689
- typeUrl: "/cosmwasm.wasm.v1.MsgSudoContract",
2690
- aminoType: "wasm/MsgSudoContract",
2691
- is(o: any): o is MsgSudoContract {
2692
- return o && (o.$typeUrl === MsgSudoContract.typeUrl || typeof o.authority === "string" && typeof o.contract === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string"));
2693
- },
2694
- isAmino(o: any): o is MsgSudoContractAmino {
2695
- return o && (o.$typeUrl === MsgSudoContract.typeUrl || typeof o.authority === "string" && typeof o.contract === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string"));
2696
- },
2697
- encode(message: MsgSudoContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2698
- if (message.authority !== "") {
2699
- writer.uint32(10).string(message.authority);
2700
- }
2701
- if (message.contract !== "") {
2702
- writer.uint32(18).string(message.contract);
2703
- }
2704
- if (message.msg.length !== 0) {
2705
- writer.uint32(26).bytes(message.msg);
2706
- }
2707
- return writer;
2708
- },
2709
- decode(input: BinaryReader | Uint8Array, length?: number): MsgSudoContract {
2710
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2711
- let end = length === undefined ? reader.len : reader.pos + length;
2712
- const message = createBaseMsgSudoContract();
2713
- while (reader.pos < end) {
2714
- const tag = reader.uint32();
2715
- switch (tag >>> 3) {
2716
- case 1:
2717
- message.authority = reader.string();
2718
- break;
2719
- case 2:
2720
- message.contract = reader.string();
2721
- break;
2722
- case 3:
2723
- message.msg = reader.bytes();
2724
- break;
2725
- default:
2726
- reader.skipType(tag & 7);
2727
- break;
2728
- }
2729
- }
2730
- return message;
2731
- },
2732
- fromPartial(object: DeepPartial<MsgSudoContract>): MsgSudoContract {
2733
- const message = createBaseMsgSudoContract();
2734
- message.authority = object.authority ?? "";
2735
- message.contract = object.contract ?? "";
2736
- message.msg = object.msg ?? new Uint8Array();
2737
- return message;
2738
- },
2739
- fromAmino(object: MsgSudoContractAmino): MsgSudoContract {
2740
- const message = createBaseMsgSudoContract();
2741
- if (object.authority !== undefined && object.authority !== null) {
2742
- message.authority = object.authority;
2743
- }
2744
- if (object.contract !== undefined && object.contract !== null) {
2745
- message.contract = object.contract;
2746
- }
2747
- if (object.msg !== undefined && object.msg !== null) {
2748
- message.msg = toUtf8(JSON.stringify(object.msg));
2749
- }
2750
- return message;
2751
- },
2752
- toAmino(message: MsgSudoContract): MsgSudoContractAmino {
2753
- const obj: any = {};
2754
- obj.authority = message.authority === "" ? undefined : message.authority;
2755
- obj.contract = message.contract === "" ? undefined : message.contract;
2756
- obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
2757
- return obj;
2758
- },
2759
- fromAminoMsg(object: MsgSudoContractAminoMsg): MsgSudoContract {
2760
- return MsgSudoContract.fromAmino(object.value);
2761
- },
2762
- toAminoMsg(message: MsgSudoContract): MsgSudoContractAminoMsg {
2763
- return {
2764
- type: "wasm/MsgSudoContract",
2765
- value: MsgSudoContract.toAmino(message)
2766
- };
2767
- },
2768
- fromProtoMsg(message: MsgSudoContractProtoMsg): MsgSudoContract {
2769
- return MsgSudoContract.decode(message.value);
2770
- },
2771
- toProto(message: MsgSudoContract): Uint8Array {
2772
- return MsgSudoContract.encode(message).finish();
2773
- },
2774
- toProtoMsg(message: MsgSudoContract): MsgSudoContractProtoMsg {
2775
- return {
2776
- typeUrl: "/cosmwasm.wasm.v1.MsgSudoContract",
2777
- value: MsgSudoContract.encode(message).finish()
2778
- };
2779
- }
2780
- };
2781
- GlobalDecoderRegistry.register(MsgSudoContract.typeUrl, MsgSudoContract);
2782
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgSudoContract.aminoType, MsgSudoContract.typeUrl);
2783
- function createBaseMsgSudoContractResponse(): MsgSudoContractResponse {
2784
- return {
2785
- data: new Uint8Array()
2786
- };
2787
- }
2788
- export const MsgSudoContractResponse = {
2789
- typeUrl: "/cosmwasm.wasm.v1.MsgSudoContractResponse",
2790
- aminoType: "wasm/MsgSudoContractResponse",
2791
- is(o: any): o is MsgSudoContractResponse {
2792
- return o && (o.$typeUrl === MsgSudoContractResponse.typeUrl || o.data instanceof Uint8Array || typeof o.data === "string");
2793
- },
2794
- isAmino(o: any): o is MsgSudoContractResponseAmino {
2795
- return o && (o.$typeUrl === MsgSudoContractResponse.typeUrl || o.data instanceof Uint8Array || typeof o.data === "string");
2796
- },
2797
- encode(message: MsgSudoContractResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2798
- if (message.data.length !== 0) {
2799
- writer.uint32(10).bytes(message.data);
2800
- }
2801
- return writer;
2802
- },
2803
- decode(input: BinaryReader | Uint8Array, length?: number): MsgSudoContractResponse {
2804
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2805
- let end = length === undefined ? reader.len : reader.pos + length;
2806
- const message = createBaseMsgSudoContractResponse();
2807
- while (reader.pos < end) {
2808
- const tag = reader.uint32();
2809
- switch (tag >>> 3) {
2810
- case 1:
2811
- message.data = reader.bytes();
2812
- break;
2813
- default:
2814
- reader.skipType(tag & 7);
2815
- break;
2816
- }
2817
- }
2818
- return message;
2819
- },
2820
- fromPartial(object: DeepPartial<MsgSudoContractResponse>): MsgSudoContractResponse {
2821
- const message = createBaseMsgSudoContractResponse();
2822
- message.data = object.data ?? new Uint8Array();
2823
- return message;
2824
- },
2825
- fromAmino(object: MsgSudoContractResponseAmino): MsgSudoContractResponse {
2826
- const message = createBaseMsgSudoContractResponse();
2827
- if (object.data !== undefined && object.data !== null) {
2828
- message.data = bytesFromBase64(object.data);
2829
- }
2830
- return message;
2831
- },
2832
- toAmino(message: MsgSudoContractResponse): MsgSudoContractResponseAmino {
2833
- const obj: any = {};
2834
- obj.data = message.data ? base64FromBytes(message.data) : undefined;
2835
- return obj;
2836
- },
2837
- fromAminoMsg(object: MsgSudoContractResponseAminoMsg): MsgSudoContractResponse {
2838
- return MsgSudoContractResponse.fromAmino(object.value);
2839
- },
2840
- toAminoMsg(message: MsgSudoContractResponse): MsgSudoContractResponseAminoMsg {
2841
- return {
2842
- type: "wasm/MsgSudoContractResponse",
2843
- value: MsgSudoContractResponse.toAmino(message)
2844
- };
2845
- },
2846
- fromProtoMsg(message: MsgSudoContractResponseProtoMsg): MsgSudoContractResponse {
2847
- return MsgSudoContractResponse.decode(message.value);
2848
- },
2849
- toProto(message: MsgSudoContractResponse): Uint8Array {
2850
- return MsgSudoContractResponse.encode(message).finish();
2851
- },
2852
- toProtoMsg(message: MsgSudoContractResponse): MsgSudoContractResponseProtoMsg {
2853
- return {
2854
- typeUrl: "/cosmwasm.wasm.v1.MsgSudoContractResponse",
2855
- value: MsgSudoContractResponse.encode(message).finish()
2856
- };
2857
- }
2858
- };
2859
- GlobalDecoderRegistry.register(MsgSudoContractResponse.typeUrl, MsgSudoContractResponse);
2860
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgSudoContractResponse.aminoType, MsgSudoContractResponse.typeUrl);
2861
- function createBaseMsgPinCodes(): MsgPinCodes {
2862
- return {
2863
- authority: "",
2864
- codeIds: []
2865
- };
2866
- }
2867
- export const MsgPinCodes = {
2868
- typeUrl: "/cosmwasm.wasm.v1.MsgPinCodes",
2869
- aminoType: "wasm/MsgPinCodes",
2870
- is(o: any): o is MsgPinCodes {
2871
- return o && (o.$typeUrl === MsgPinCodes.typeUrl || typeof o.authority === "string" && Array.isArray(o.codeIds) && (!o.codeIds.length || typeof o.codeIds[0] === "bigint"));
2872
- },
2873
- isAmino(o: any): o is MsgPinCodesAmino {
2874
- return o && (o.$typeUrl === MsgPinCodes.typeUrl || typeof o.authority === "string" && Array.isArray(o.code_ids) && (!o.code_ids.length || typeof o.code_ids[0] === "bigint"));
2875
- },
2876
- encode(message: MsgPinCodes, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2877
- if (message.authority !== "") {
2878
- writer.uint32(10).string(message.authority);
2879
- }
2880
- writer.uint32(18).fork();
2881
- for (const v of message.codeIds) {
2882
- writer.uint64(v);
2883
- }
2884
- writer.ldelim();
2885
- return writer;
2886
- },
2887
- decode(input: BinaryReader | Uint8Array, length?: number): MsgPinCodes {
2888
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2889
- let end = length === undefined ? reader.len : reader.pos + length;
2890
- const message = createBaseMsgPinCodes();
2891
- while (reader.pos < end) {
2892
- const tag = reader.uint32();
2893
- switch (tag >>> 3) {
2894
- case 1:
2895
- message.authority = reader.string();
2896
- break;
2897
- case 2:
2898
- if ((tag & 7) === 2) {
2899
- const end2 = reader.uint32() + reader.pos;
2900
- while (reader.pos < end2) {
2901
- message.codeIds.push(reader.uint64());
2902
- }
2903
- } else {
2904
- message.codeIds.push(reader.uint64());
2905
- }
2906
- break;
2907
- default:
2908
- reader.skipType(tag & 7);
2909
- break;
2910
- }
2911
- }
2912
- return message;
2913
- },
2914
- fromPartial(object: DeepPartial<MsgPinCodes>): MsgPinCodes {
2915
- const message = createBaseMsgPinCodes();
2916
- message.authority = object.authority ?? "";
2917
- message.codeIds = object.codeIds?.map(e => BigInt(e.toString())) || [];
2918
- return message;
2919
- },
2920
- fromAmino(object: MsgPinCodesAmino): MsgPinCodes {
2921
- const message = createBaseMsgPinCodes();
2922
- if (object.authority !== undefined && object.authority !== null) {
2923
- message.authority = object.authority;
2924
- }
2925
- message.codeIds = object.code_ids?.map(e => BigInt(e)) || [];
2926
- return message;
2927
- },
2928
- toAmino(message: MsgPinCodes): MsgPinCodesAmino {
2929
- const obj: any = {};
2930
- obj.authority = message.authority === "" ? undefined : message.authority;
2931
- if (message.codeIds) {
2932
- obj.code_ids = message.codeIds.map(e => e.toString());
2933
- } else {
2934
- obj.code_ids = message.codeIds;
2935
- }
2936
- return obj;
2937
- },
2938
- fromAminoMsg(object: MsgPinCodesAminoMsg): MsgPinCodes {
2939
- return MsgPinCodes.fromAmino(object.value);
2940
- },
2941
- toAminoMsg(message: MsgPinCodes): MsgPinCodesAminoMsg {
2942
- return {
2943
- type: "wasm/MsgPinCodes",
2944
- value: MsgPinCodes.toAmino(message)
2945
- };
2946
- },
2947
- fromProtoMsg(message: MsgPinCodesProtoMsg): MsgPinCodes {
2948
- return MsgPinCodes.decode(message.value);
2949
- },
2950
- toProto(message: MsgPinCodes): Uint8Array {
2951
- return MsgPinCodes.encode(message).finish();
2952
- },
2953
- toProtoMsg(message: MsgPinCodes): MsgPinCodesProtoMsg {
2954
- return {
2955
- typeUrl: "/cosmwasm.wasm.v1.MsgPinCodes",
2956
- value: MsgPinCodes.encode(message).finish()
2957
- };
2958
- }
2959
- };
2960
- GlobalDecoderRegistry.register(MsgPinCodes.typeUrl, MsgPinCodes);
2961
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgPinCodes.aminoType, MsgPinCodes.typeUrl);
2962
- function createBaseMsgPinCodesResponse(): MsgPinCodesResponse {
2963
- return {};
2964
- }
2965
- export const MsgPinCodesResponse = {
2966
- typeUrl: "/cosmwasm.wasm.v1.MsgPinCodesResponse",
2967
- aminoType: "wasm/MsgPinCodesResponse",
2968
- is(o: any): o is MsgPinCodesResponse {
2969
- return o && o.$typeUrl === MsgPinCodesResponse.typeUrl;
2970
- },
2971
- isAmino(o: any): o is MsgPinCodesResponseAmino {
2972
- return o && o.$typeUrl === MsgPinCodesResponse.typeUrl;
2973
- },
2974
- encode(_: MsgPinCodesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2975
- return writer;
2976
- },
2977
- decode(input: BinaryReader | Uint8Array, length?: number): MsgPinCodesResponse {
2978
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2979
- let end = length === undefined ? reader.len : reader.pos + length;
2980
- const message = createBaseMsgPinCodesResponse();
2981
- while (reader.pos < end) {
2982
- const tag = reader.uint32();
2983
- switch (tag >>> 3) {
2984
- default:
2985
- reader.skipType(tag & 7);
2986
- break;
2987
- }
2988
- }
2989
- return message;
2990
- },
2991
- fromPartial(_: DeepPartial<MsgPinCodesResponse>): MsgPinCodesResponse {
2992
- const message = createBaseMsgPinCodesResponse();
2993
- return message;
2994
- },
2995
- fromAmino(_: MsgPinCodesResponseAmino): MsgPinCodesResponse {
2996
- const message = createBaseMsgPinCodesResponse();
2997
- return message;
2998
- },
2999
- toAmino(_: MsgPinCodesResponse): MsgPinCodesResponseAmino {
3000
- const obj: any = {};
3001
- return obj;
3002
- },
3003
- fromAminoMsg(object: MsgPinCodesResponseAminoMsg): MsgPinCodesResponse {
3004
- return MsgPinCodesResponse.fromAmino(object.value);
3005
- },
3006
- toAminoMsg(message: MsgPinCodesResponse): MsgPinCodesResponseAminoMsg {
3007
- return {
3008
- type: "wasm/MsgPinCodesResponse",
3009
- value: MsgPinCodesResponse.toAmino(message)
3010
- };
3011
- },
3012
- fromProtoMsg(message: MsgPinCodesResponseProtoMsg): MsgPinCodesResponse {
3013
- return MsgPinCodesResponse.decode(message.value);
3014
- },
3015
- toProto(message: MsgPinCodesResponse): Uint8Array {
3016
- return MsgPinCodesResponse.encode(message).finish();
3017
- },
3018
- toProtoMsg(message: MsgPinCodesResponse): MsgPinCodesResponseProtoMsg {
3019
- return {
3020
- typeUrl: "/cosmwasm.wasm.v1.MsgPinCodesResponse",
3021
- value: MsgPinCodesResponse.encode(message).finish()
3022
- };
3023
- }
3024
- };
3025
- GlobalDecoderRegistry.register(MsgPinCodesResponse.typeUrl, MsgPinCodesResponse);
3026
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgPinCodesResponse.aminoType, MsgPinCodesResponse.typeUrl);
3027
- function createBaseMsgUnpinCodes(): MsgUnpinCodes {
3028
- return {
3029
- authority: "",
3030
- codeIds: []
3031
- };
3032
- }
3033
- export const MsgUnpinCodes = {
3034
- typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodes",
3035
- aminoType: "wasm/MsgUnpinCodes",
3036
- is(o: any): o is MsgUnpinCodes {
3037
- return o && (o.$typeUrl === MsgUnpinCodes.typeUrl || typeof o.authority === "string" && Array.isArray(o.codeIds) && (!o.codeIds.length || typeof o.codeIds[0] === "bigint"));
3038
- },
3039
- isAmino(o: any): o is MsgUnpinCodesAmino {
3040
- return o && (o.$typeUrl === MsgUnpinCodes.typeUrl || typeof o.authority === "string" && Array.isArray(o.code_ids) && (!o.code_ids.length || typeof o.code_ids[0] === "bigint"));
3041
- },
3042
- encode(message: MsgUnpinCodes, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3043
- if (message.authority !== "") {
3044
- writer.uint32(10).string(message.authority);
3045
- }
3046
- writer.uint32(18).fork();
3047
- for (const v of message.codeIds) {
3048
- writer.uint64(v);
3049
- }
3050
- writer.ldelim();
3051
- return writer;
3052
- },
3053
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUnpinCodes {
3054
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3055
- let end = length === undefined ? reader.len : reader.pos + length;
3056
- const message = createBaseMsgUnpinCodes();
3057
- while (reader.pos < end) {
3058
- const tag = reader.uint32();
3059
- switch (tag >>> 3) {
3060
- case 1:
3061
- message.authority = reader.string();
3062
- break;
3063
- case 2:
3064
- if ((tag & 7) === 2) {
3065
- const end2 = reader.uint32() + reader.pos;
3066
- while (reader.pos < end2) {
3067
- message.codeIds.push(reader.uint64());
3068
- }
3069
- } else {
3070
- message.codeIds.push(reader.uint64());
3071
- }
3072
- break;
3073
- default:
3074
- reader.skipType(tag & 7);
3075
- break;
3076
- }
3077
- }
3078
- return message;
3079
- },
3080
- fromPartial(object: DeepPartial<MsgUnpinCodes>): MsgUnpinCodes {
3081
- const message = createBaseMsgUnpinCodes();
3082
- message.authority = object.authority ?? "";
3083
- message.codeIds = object.codeIds?.map(e => BigInt(e.toString())) || [];
3084
- return message;
3085
- },
3086
- fromAmino(object: MsgUnpinCodesAmino): MsgUnpinCodes {
3087
- const message = createBaseMsgUnpinCodes();
3088
- if (object.authority !== undefined && object.authority !== null) {
3089
- message.authority = object.authority;
3090
- }
3091
- message.codeIds = object.code_ids?.map(e => BigInt(e)) || [];
3092
- return message;
3093
- },
3094
- toAmino(message: MsgUnpinCodes): MsgUnpinCodesAmino {
3095
- const obj: any = {};
3096
- obj.authority = message.authority === "" ? undefined : message.authority;
3097
- if (message.codeIds) {
3098
- obj.code_ids = message.codeIds.map(e => e.toString());
3099
- } else {
3100
- obj.code_ids = message.codeIds;
3101
- }
3102
- return obj;
3103
- },
3104
- fromAminoMsg(object: MsgUnpinCodesAminoMsg): MsgUnpinCodes {
3105
- return MsgUnpinCodes.fromAmino(object.value);
3106
- },
3107
- toAminoMsg(message: MsgUnpinCodes): MsgUnpinCodesAminoMsg {
3108
- return {
3109
- type: "wasm/MsgUnpinCodes",
3110
- value: MsgUnpinCodes.toAmino(message)
3111
- };
3112
- },
3113
- fromProtoMsg(message: MsgUnpinCodesProtoMsg): MsgUnpinCodes {
3114
- return MsgUnpinCodes.decode(message.value);
3115
- },
3116
- toProto(message: MsgUnpinCodes): Uint8Array {
3117
- return MsgUnpinCodes.encode(message).finish();
3118
- },
3119
- toProtoMsg(message: MsgUnpinCodes): MsgUnpinCodesProtoMsg {
3120
- return {
3121
- typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodes",
3122
- value: MsgUnpinCodes.encode(message).finish()
3123
- };
3124
- }
3125
- };
3126
- GlobalDecoderRegistry.register(MsgUnpinCodes.typeUrl, MsgUnpinCodes);
3127
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgUnpinCodes.aminoType, MsgUnpinCodes.typeUrl);
3128
- function createBaseMsgUnpinCodesResponse(): MsgUnpinCodesResponse {
3129
- return {};
3130
- }
3131
- export const MsgUnpinCodesResponse = {
3132
- typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodesResponse",
3133
- aminoType: "wasm/MsgUnpinCodesResponse",
3134
- is(o: any): o is MsgUnpinCodesResponse {
3135
- return o && o.$typeUrl === MsgUnpinCodesResponse.typeUrl;
3136
- },
3137
- isAmino(o: any): o is MsgUnpinCodesResponseAmino {
3138
- return o && o.$typeUrl === MsgUnpinCodesResponse.typeUrl;
3139
- },
3140
- encode(_: MsgUnpinCodesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3141
- return writer;
3142
- },
3143
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUnpinCodesResponse {
3144
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3145
- let end = length === undefined ? reader.len : reader.pos + length;
3146
- const message = createBaseMsgUnpinCodesResponse();
3147
- while (reader.pos < end) {
3148
- const tag = reader.uint32();
3149
- switch (tag >>> 3) {
3150
- default:
3151
- reader.skipType(tag & 7);
3152
- break;
3153
- }
3154
- }
3155
- return message;
3156
- },
3157
- fromPartial(_: DeepPartial<MsgUnpinCodesResponse>): MsgUnpinCodesResponse {
3158
- const message = createBaseMsgUnpinCodesResponse();
3159
- return message;
3160
- },
3161
- fromAmino(_: MsgUnpinCodesResponseAmino): MsgUnpinCodesResponse {
3162
- const message = createBaseMsgUnpinCodesResponse();
3163
- return message;
3164
- },
3165
- toAmino(_: MsgUnpinCodesResponse): MsgUnpinCodesResponseAmino {
3166
- const obj: any = {};
3167
- return obj;
3168
- },
3169
- fromAminoMsg(object: MsgUnpinCodesResponseAminoMsg): MsgUnpinCodesResponse {
3170
- return MsgUnpinCodesResponse.fromAmino(object.value);
3171
- },
3172
- toAminoMsg(message: MsgUnpinCodesResponse): MsgUnpinCodesResponseAminoMsg {
3173
- return {
3174
- type: "wasm/MsgUnpinCodesResponse",
3175
- value: MsgUnpinCodesResponse.toAmino(message)
3176
- };
3177
- },
3178
- fromProtoMsg(message: MsgUnpinCodesResponseProtoMsg): MsgUnpinCodesResponse {
3179
- return MsgUnpinCodesResponse.decode(message.value);
3180
- },
3181
- toProto(message: MsgUnpinCodesResponse): Uint8Array {
3182
- return MsgUnpinCodesResponse.encode(message).finish();
3183
- },
3184
- toProtoMsg(message: MsgUnpinCodesResponse): MsgUnpinCodesResponseProtoMsg {
3185
- return {
3186
- typeUrl: "/cosmwasm.wasm.v1.MsgUnpinCodesResponse",
3187
- value: MsgUnpinCodesResponse.encode(message).finish()
3188
- };
3189
- }
3190
- };
3191
- GlobalDecoderRegistry.register(MsgUnpinCodesResponse.typeUrl, MsgUnpinCodesResponse);
3192
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgUnpinCodesResponse.aminoType, MsgUnpinCodesResponse.typeUrl);
3193
- function createBaseMsgStoreAndInstantiateContract(): MsgStoreAndInstantiateContract {
3194
- return {
3195
- authority: "",
3196
- wasmByteCode: new Uint8Array(),
3197
- instantiatePermission: undefined,
3198
- unpinCode: false,
3199
- admin: "",
3200
- label: "",
3201
- msg: new Uint8Array(),
3202
- funds: [],
3203
- source: "",
3204
- builder: "",
3205
- codeHash: new Uint8Array()
3206
- };
3207
- }
3208
- export const MsgStoreAndInstantiateContract = {
3209
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract",
3210
- aminoType: "wasm/MsgStoreAndInstantiateContract",
3211
- is(o: any): o is MsgStoreAndInstantiateContract {
3212
- return o && (o.$typeUrl === MsgStoreAndInstantiateContract.typeUrl || typeof o.authority === "string" && (o.wasmByteCode instanceof Uint8Array || typeof o.wasmByteCode === "string") && typeof o.unpinCode === "boolean" && typeof o.admin === "string" && typeof o.label === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.is(o.funds[0])) && typeof o.source === "string" && typeof o.builder === "string" && (o.codeHash instanceof Uint8Array || typeof o.codeHash === "string"));
3213
- },
3214
- isAmino(o: any): o is MsgStoreAndInstantiateContractAmino {
3215
- return o && (o.$typeUrl === MsgStoreAndInstantiateContract.typeUrl || typeof o.authority === "string" && (o.wasm_byte_code instanceof Uint8Array || typeof o.wasm_byte_code === "string") && typeof o.unpin_code === "boolean" && typeof o.admin === "string" && typeof o.label === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string") && Array.isArray(o.funds) && (!o.funds.length || Coin.isAmino(o.funds[0])) && typeof o.source === "string" && typeof o.builder === "string" && (o.code_hash instanceof Uint8Array || typeof o.code_hash === "string"));
3216
- },
3217
- encode(message: MsgStoreAndInstantiateContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3218
- if (message.authority !== "") {
3219
- writer.uint32(10).string(message.authority);
3220
- }
3221
- if (message.wasmByteCode.length !== 0) {
3222
- writer.uint32(26).bytes(message.wasmByteCode);
3223
- }
3224
- if (message.instantiatePermission !== undefined) {
3225
- AccessConfig.encode(message.instantiatePermission, writer.uint32(34).fork()).ldelim();
3226
- }
3227
- if (message.unpinCode === true) {
3228
- writer.uint32(40).bool(message.unpinCode);
3229
- }
3230
- if (message.admin !== "") {
3231
- writer.uint32(50).string(message.admin);
3232
- }
3233
- if (message.label !== "") {
3234
- writer.uint32(58).string(message.label);
3235
- }
3236
- if (message.msg.length !== 0) {
3237
- writer.uint32(66).bytes(message.msg);
3238
- }
3239
- for (const v of message.funds) {
3240
- Coin.encode(v!, writer.uint32(74).fork()).ldelim();
3241
- }
3242
- if (message.source !== "") {
3243
- writer.uint32(82).string(message.source);
3244
- }
3245
- if (message.builder !== "") {
3246
- writer.uint32(90).string(message.builder);
3247
- }
3248
- if (message.codeHash.length !== 0) {
3249
- writer.uint32(98).bytes(message.codeHash);
3250
- }
3251
- return writer;
3252
- },
3253
- decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreAndInstantiateContract {
3254
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3255
- let end = length === undefined ? reader.len : reader.pos + length;
3256
- const message = createBaseMsgStoreAndInstantiateContract();
3257
- while (reader.pos < end) {
3258
- const tag = reader.uint32();
3259
- switch (tag >>> 3) {
3260
- case 1:
3261
- message.authority = reader.string();
3262
- break;
3263
- case 3:
3264
- message.wasmByteCode = reader.bytes();
3265
- break;
3266
- case 4:
3267
- message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
3268
- break;
3269
- case 5:
3270
- message.unpinCode = reader.bool();
3271
- break;
3272
- case 6:
3273
- message.admin = reader.string();
3274
- break;
3275
- case 7:
3276
- message.label = reader.string();
3277
- break;
3278
- case 8:
3279
- message.msg = reader.bytes();
3280
- break;
3281
- case 9:
3282
- message.funds.push(Coin.decode(reader, reader.uint32()));
3283
- break;
3284
- case 10:
3285
- message.source = reader.string();
3286
- break;
3287
- case 11:
3288
- message.builder = reader.string();
3289
- break;
3290
- case 12:
3291
- message.codeHash = reader.bytes();
3292
- break;
3293
- default:
3294
- reader.skipType(tag & 7);
3295
- break;
3296
- }
3297
- }
3298
- return message;
3299
- },
3300
- fromPartial(object: DeepPartial<MsgStoreAndInstantiateContract>): MsgStoreAndInstantiateContract {
3301
- const message = createBaseMsgStoreAndInstantiateContract();
3302
- message.authority = object.authority ?? "";
3303
- message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
3304
- message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
3305
- message.unpinCode = object.unpinCode ?? false;
3306
- message.admin = object.admin ?? "";
3307
- message.label = object.label ?? "";
3308
- message.msg = object.msg ?? new Uint8Array();
3309
- message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
3310
- message.source = object.source ?? "";
3311
- message.builder = object.builder ?? "";
3312
- message.codeHash = object.codeHash ?? new Uint8Array();
3313
- return message;
3314
- },
3315
- fromAmino(object: MsgStoreAndInstantiateContractAmino): MsgStoreAndInstantiateContract {
3316
- const message = createBaseMsgStoreAndInstantiateContract();
3317
- if (object.authority !== undefined && object.authority !== null) {
3318
- message.authority = object.authority;
3319
- }
3320
- if (object.wasm_byte_code !== undefined && object.wasm_byte_code !== null) {
3321
- message.wasmByteCode = fromBase64(object.wasm_byte_code);
3322
- }
3323
- if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
3324
- message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
3325
- }
3326
- if (object.unpin_code !== undefined && object.unpin_code !== null) {
3327
- message.unpinCode = object.unpin_code;
3328
- }
3329
- if (object.admin !== undefined && object.admin !== null) {
3330
- message.admin = object.admin;
3331
- }
3332
- if (object.label !== undefined && object.label !== null) {
3333
- message.label = object.label;
3334
- }
3335
- if (object.msg !== undefined && object.msg !== null) {
3336
- message.msg = toUtf8(JSON.stringify(object.msg));
3337
- }
3338
- message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
3339
- if (object.source !== undefined && object.source !== null) {
3340
- message.source = object.source;
3341
- }
3342
- if (object.builder !== undefined && object.builder !== null) {
3343
- message.builder = object.builder;
3344
- }
3345
- if (object.code_hash !== undefined && object.code_hash !== null) {
3346
- message.codeHash = bytesFromBase64(object.code_hash);
3347
- }
3348
- return message;
3349
- },
3350
- toAmino(message: MsgStoreAndInstantiateContract): MsgStoreAndInstantiateContractAmino {
3351
- const obj: any = {};
3352
- obj.authority = message.authority === "" ? undefined : message.authority;
3353
- obj.wasm_byte_code = message.wasmByteCode ? toBase64(message.wasmByteCode) : undefined;
3354
- obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined;
3355
- obj.unpin_code = message.unpinCode === false ? undefined : message.unpinCode;
3356
- obj.admin = message.admin === "" ? undefined : message.admin;
3357
- obj.label = message.label === "" ? undefined : message.label;
3358
- obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
3359
- if (message.funds) {
3360
- obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
3361
- } else {
3362
- obj.funds = message.funds;
3363
- }
3364
- obj.source = message.source === "" ? undefined : message.source;
3365
- obj.builder = message.builder === "" ? undefined : message.builder;
3366
- obj.code_hash = message.codeHash ? base64FromBytes(message.codeHash) : undefined;
3367
- return obj;
3368
- },
3369
- fromAminoMsg(object: MsgStoreAndInstantiateContractAminoMsg): MsgStoreAndInstantiateContract {
3370
- return MsgStoreAndInstantiateContract.fromAmino(object.value);
3371
- },
3372
- toAminoMsg(message: MsgStoreAndInstantiateContract): MsgStoreAndInstantiateContractAminoMsg {
3373
- return {
3374
- type: "wasm/MsgStoreAndInstantiateContract",
3375
- value: MsgStoreAndInstantiateContract.toAmino(message)
3376
- };
3377
- },
3378
- fromProtoMsg(message: MsgStoreAndInstantiateContractProtoMsg): MsgStoreAndInstantiateContract {
3379
- return MsgStoreAndInstantiateContract.decode(message.value);
3380
- },
3381
- toProto(message: MsgStoreAndInstantiateContract): Uint8Array {
3382
- return MsgStoreAndInstantiateContract.encode(message).finish();
3383
- },
3384
- toProtoMsg(message: MsgStoreAndInstantiateContract): MsgStoreAndInstantiateContractProtoMsg {
3385
- return {
3386
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContract",
3387
- value: MsgStoreAndInstantiateContract.encode(message).finish()
3388
- };
3389
- }
3390
- };
3391
- GlobalDecoderRegistry.register(MsgStoreAndInstantiateContract.typeUrl, MsgStoreAndInstantiateContract);
3392
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgStoreAndInstantiateContract.aminoType, MsgStoreAndInstantiateContract.typeUrl);
3393
- function createBaseMsgStoreAndInstantiateContractResponse(): MsgStoreAndInstantiateContractResponse {
3394
- return {
3395
- address: "",
3396
- data: new Uint8Array()
3397
- };
3398
- }
3399
- export const MsgStoreAndInstantiateContractResponse = {
3400
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse",
3401
- aminoType: "wasm/MsgStoreAndInstantiateContractResponse",
3402
- is(o: any): o is MsgStoreAndInstantiateContractResponse {
3403
- return o && (o.$typeUrl === MsgStoreAndInstantiateContractResponse.typeUrl || typeof o.address === "string" && (o.data instanceof Uint8Array || typeof o.data === "string"));
3404
- },
3405
- isAmino(o: any): o is MsgStoreAndInstantiateContractResponseAmino {
3406
- return o && (o.$typeUrl === MsgStoreAndInstantiateContractResponse.typeUrl || typeof o.address === "string" && (o.data instanceof Uint8Array || typeof o.data === "string"));
3407
- },
3408
- encode(message: MsgStoreAndInstantiateContractResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3409
- if (message.address !== "") {
3410
- writer.uint32(10).string(message.address);
3411
- }
3412
- if (message.data.length !== 0) {
3413
- writer.uint32(18).bytes(message.data);
3414
- }
3415
- return writer;
3416
- },
3417
- decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreAndInstantiateContractResponse {
3418
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3419
- let end = length === undefined ? reader.len : reader.pos + length;
3420
- const message = createBaseMsgStoreAndInstantiateContractResponse();
3421
- while (reader.pos < end) {
3422
- const tag = reader.uint32();
3423
- switch (tag >>> 3) {
3424
- case 1:
3425
- message.address = reader.string();
3426
- break;
3427
- case 2:
3428
- message.data = reader.bytes();
3429
- break;
3430
- default:
3431
- reader.skipType(tag & 7);
3432
- break;
3433
- }
3434
- }
3435
- return message;
3436
- },
3437
- fromPartial(object: DeepPartial<MsgStoreAndInstantiateContractResponse>): MsgStoreAndInstantiateContractResponse {
3438
- const message = createBaseMsgStoreAndInstantiateContractResponse();
3439
- message.address = object.address ?? "";
3440
- message.data = object.data ?? new Uint8Array();
3441
- return message;
3442
- },
3443
- fromAmino(object: MsgStoreAndInstantiateContractResponseAmino): MsgStoreAndInstantiateContractResponse {
3444
- const message = createBaseMsgStoreAndInstantiateContractResponse();
3445
- if (object.address !== undefined && object.address !== null) {
3446
- message.address = object.address;
3447
- }
3448
- if (object.data !== undefined && object.data !== null) {
3449
- message.data = bytesFromBase64(object.data);
3450
- }
3451
- return message;
3452
- },
3453
- toAmino(message: MsgStoreAndInstantiateContractResponse): MsgStoreAndInstantiateContractResponseAmino {
3454
- const obj: any = {};
3455
- obj.address = message.address === "" ? undefined : message.address;
3456
- obj.data = message.data ? base64FromBytes(message.data) : undefined;
3457
- return obj;
3458
- },
3459
- fromAminoMsg(object: MsgStoreAndInstantiateContractResponseAminoMsg): MsgStoreAndInstantiateContractResponse {
3460
- return MsgStoreAndInstantiateContractResponse.fromAmino(object.value);
3461
- },
3462
- toAminoMsg(message: MsgStoreAndInstantiateContractResponse): MsgStoreAndInstantiateContractResponseAminoMsg {
3463
- return {
3464
- type: "wasm/MsgStoreAndInstantiateContractResponse",
3465
- value: MsgStoreAndInstantiateContractResponse.toAmino(message)
3466
- };
3467
- },
3468
- fromProtoMsg(message: MsgStoreAndInstantiateContractResponseProtoMsg): MsgStoreAndInstantiateContractResponse {
3469
- return MsgStoreAndInstantiateContractResponse.decode(message.value);
3470
- },
3471
- toProto(message: MsgStoreAndInstantiateContractResponse): Uint8Array {
3472
- return MsgStoreAndInstantiateContractResponse.encode(message).finish();
3473
- },
3474
- toProtoMsg(message: MsgStoreAndInstantiateContractResponse): MsgStoreAndInstantiateContractResponseProtoMsg {
3475
- return {
3476
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse",
3477
- value: MsgStoreAndInstantiateContractResponse.encode(message).finish()
3478
- };
3479
- }
3480
- };
3481
- GlobalDecoderRegistry.register(MsgStoreAndInstantiateContractResponse.typeUrl, MsgStoreAndInstantiateContractResponse);
3482
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgStoreAndInstantiateContractResponse.aminoType, MsgStoreAndInstantiateContractResponse.typeUrl);
3483
- function createBaseMsgAddCodeUploadParamsAddresses(): MsgAddCodeUploadParamsAddresses {
3484
- return {
3485
- authority: "",
3486
- addresses: []
3487
- };
3488
- }
3489
- export const MsgAddCodeUploadParamsAddresses = {
3490
- typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses",
3491
- aminoType: "wasm/MsgAddCodeUploadParamsAddresses",
3492
- is(o: any): o is MsgAddCodeUploadParamsAddresses {
3493
- return o && (o.$typeUrl === MsgAddCodeUploadParamsAddresses.typeUrl || typeof o.authority === "string" && Array.isArray(o.addresses) && (!o.addresses.length || typeof o.addresses[0] === "string"));
3494
- },
3495
- isAmino(o: any): o is MsgAddCodeUploadParamsAddressesAmino {
3496
- return o && (o.$typeUrl === MsgAddCodeUploadParamsAddresses.typeUrl || typeof o.authority === "string" && Array.isArray(o.addresses) && (!o.addresses.length || typeof o.addresses[0] === "string"));
3497
- },
3498
- encode(message: MsgAddCodeUploadParamsAddresses, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3499
- if (message.authority !== "") {
3500
- writer.uint32(10).string(message.authority);
3501
- }
3502
- for (const v of message.addresses) {
3503
- writer.uint32(18).string(v!);
3504
- }
3505
- return writer;
3506
- },
3507
- decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCodeUploadParamsAddresses {
3508
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3509
- let end = length === undefined ? reader.len : reader.pos + length;
3510
- const message = createBaseMsgAddCodeUploadParamsAddresses();
3511
- while (reader.pos < end) {
3512
- const tag = reader.uint32();
3513
- switch (tag >>> 3) {
3514
- case 1:
3515
- message.authority = reader.string();
3516
- break;
3517
- case 2:
3518
- message.addresses.push(reader.string());
3519
- break;
3520
- default:
3521
- reader.skipType(tag & 7);
3522
- break;
3523
- }
3524
- }
3525
- return message;
3526
- },
3527
- fromPartial(object: DeepPartial<MsgAddCodeUploadParamsAddresses>): MsgAddCodeUploadParamsAddresses {
3528
- const message = createBaseMsgAddCodeUploadParamsAddresses();
3529
- message.authority = object.authority ?? "";
3530
- message.addresses = object.addresses?.map(e => e) || [];
3531
- return message;
3532
- },
3533
- fromAmino(object: MsgAddCodeUploadParamsAddressesAmino): MsgAddCodeUploadParamsAddresses {
3534
- const message = createBaseMsgAddCodeUploadParamsAddresses();
3535
- if (object.authority !== undefined && object.authority !== null) {
3536
- message.authority = object.authority;
3537
- }
3538
- message.addresses = object.addresses?.map(e => e) || [];
3539
- return message;
3540
- },
3541
- toAmino(message: MsgAddCodeUploadParamsAddresses): MsgAddCodeUploadParamsAddressesAmino {
3542
- const obj: any = {};
3543
- obj.authority = message.authority === "" ? undefined : message.authority;
3544
- if (message.addresses) {
3545
- obj.addresses = message.addresses.map(e => e);
3546
- } else {
3547
- obj.addresses = message.addresses;
3548
- }
3549
- return obj;
3550
- },
3551
- fromAminoMsg(object: MsgAddCodeUploadParamsAddressesAminoMsg): MsgAddCodeUploadParamsAddresses {
3552
- return MsgAddCodeUploadParamsAddresses.fromAmino(object.value);
3553
- },
3554
- toAminoMsg(message: MsgAddCodeUploadParamsAddresses): MsgAddCodeUploadParamsAddressesAminoMsg {
3555
- return {
3556
- type: "wasm/MsgAddCodeUploadParamsAddresses",
3557
- value: MsgAddCodeUploadParamsAddresses.toAmino(message)
3558
- };
3559
- },
3560
- fromProtoMsg(message: MsgAddCodeUploadParamsAddressesProtoMsg): MsgAddCodeUploadParamsAddresses {
3561
- return MsgAddCodeUploadParamsAddresses.decode(message.value);
3562
- },
3563
- toProto(message: MsgAddCodeUploadParamsAddresses): Uint8Array {
3564
- return MsgAddCodeUploadParamsAddresses.encode(message).finish();
3565
- },
3566
- toProtoMsg(message: MsgAddCodeUploadParamsAddresses): MsgAddCodeUploadParamsAddressesProtoMsg {
3567
- return {
3568
- typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses",
3569
- value: MsgAddCodeUploadParamsAddresses.encode(message).finish()
3570
- };
3571
- }
3572
- };
3573
- GlobalDecoderRegistry.register(MsgAddCodeUploadParamsAddresses.typeUrl, MsgAddCodeUploadParamsAddresses);
3574
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgAddCodeUploadParamsAddresses.aminoType, MsgAddCodeUploadParamsAddresses.typeUrl);
3575
- function createBaseMsgAddCodeUploadParamsAddressesResponse(): MsgAddCodeUploadParamsAddressesResponse {
3576
- return {};
3577
- }
3578
- export const MsgAddCodeUploadParamsAddressesResponse = {
3579
- typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse",
3580
- aminoType: "wasm/MsgAddCodeUploadParamsAddressesResponse",
3581
- is(o: any): o is MsgAddCodeUploadParamsAddressesResponse {
3582
- return o && o.$typeUrl === MsgAddCodeUploadParamsAddressesResponse.typeUrl;
3583
- },
3584
- isAmino(o: any): o is MsgAddCodeUploadParamsAddressesResponseAmino {
3585
- return o && o.$typeUrl === MsgAddCodeUploadParamsAddressesResponse.typeUrl;
3586
- },
3587
- encode(_: MsgAddCodeUploadParamsAddressesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3588
- return writer;
3589
- },
3590
- decode(input: BinaryReader | Uint8Array, length?: number): MsgAddCodeUploadParamsAddressesResponse {
3591
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3592
- let end = length === undefined ? reader.len : reader.pos + length;
3593
- const message = createBaseMsgAddCodeUploadParamsAddressesResponse();
3594
- while (reader.pos < end) {
3595
- const tag = reader.uint32();
3596
- switch (tag >>> 3) {
3597
- default:
3598
- reader.skipType(tag & 7);
3599
- break;
3600
- }
3601
- }
3602
- return message;
3603
- },
3604
- fromPartial(_: DeepPartial<MsgAddCodeUploadParamsAddressesResponse>): MsgAddCodeUploadParamsAddressesResponse {
3605
- const message = createBaseMsgAddCodeUploadParamsAddressesResponse();
3606
- return message;
3607
- },
3608
- fromAmino(_: MsgAddCodeUploadParamsAddressesResponseAmino): MsgAddCodeUploadParamsAddressesResponse {
3609
- const message = createBaseMsgAddCodeUploadParamsAddressesResponse();
3610
- return message;
3611
- },
3612
- toAmino(_: MsgAddCodeUploadParamsAddressesResponse): MsgAddCodeUploadParamsAddressesResponseAmino {
3613
- const obj: any = {};
3614
- return obj;
3615
- },
3616
- fromAminoMsg(object: MsgAddCodeUploadParamsAddressesResponseAminoMsg): MsgAddCodeUploadParamsAddressesResponse {
3617
- return MsgAddCodeUploadParamsAddressesResponse.fromAmino(object.value);
3618
- },
3619
- toAminoMsg(message: MsgAddCodeUploadParamsAddressesResponse): MsgAddCodeUploadParamsAddressesResponseAminoMsg {
3620
- return {
3621
- type: "wasm/MsgAddCodeUploadParamsAddressesResponse",
3622
- value: MsgAddCodeUploadParamsAddressesResponse.toAmino(message)
3623
- };
3624
- },
3625
- fromProtoMsg(message: MsgAddCodeUploadParamsAddressesResponseProtoMsg): MsgAddCodeUploadParamsAddressesResponse {
3626
- return MsgAddCodeUploadParamsAddressesResponse.decode(message.value);
3627
- },
3628
- toProto(message: MsgAddCodeUploadParamsAddressesResponse): Uint8Array {
3629
- return MsgAddCodeUploadParamsAddressesResponse.encode(message).finish();
3630
- },
3631
- toProtoMsg(message: MsgAddCodeUploadParamsAddressesResponse): MsgAddCodeUploadParamsAddressesResponseProtoMsg {
3632
- return {
3633
- typeUrl: "/cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse",
3634
- value: MsgAddCodeUploadParamsAddressesResponse.encode(message).finish()
3635
- };
3636
- }
3637
- };
3638
- GlobalDecoderRegistry.register(MsgAddCodeUploadParamsAddressesResponse.typeUrl, MsgAddCodeUploadParamsAddressesResponse);
3639
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgAddCodeUploadParamsAddressesResponse.aminoType, MsgAddCodeUploadParamsAddressesResponse.typeUrl);
3640
- function createBaseMsgRemoveCodeUploadParamsAddresses(): MsgRemoveCodeUploadParamsAddresses {
3641
- return {
3642
- authority: "",
3643
- addresses: []
3644
- };
3645
- }
3646
- export const MsgRemoveCodeUploadParamsAddresses = {
3647
- typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses",
3648
- aminoType: "wasm/MsgRemoveCodeUploadParamsAddresses",
3649
- is(o: any): o is MsgRemoveCodeUploadParamsAddresses {
3650
- return o && (o.$typeUrl === MsgRemoveCodeUploadParamsAddresses.typeUrl || typeof o.authority === "string" && Array.isArray(o.addresses) && (!o.addresses.length || typeof o.addresses[0] === "string"));
3651
- },
3652
- isAmino(o: any): o is MsgRemoveCodeUploadParamsAddressesAmino {
3653
- return o && (o.$typeUrl === MsgRemoveCodeUploadParamsAddresses.typeUrl || typeof o.authority === "string" && Array.isArray(o.addresses) && (!o.addresses.length || typeof o.addresses[0] === "string"));
3654
- },
3655
- encode(message: MsgRemoveCodeUploadParamsAddresses, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3656
- if (message.authority !== "") {
3657
- writer.uint32(10).string(message.authority);
3658
- }
3659
- for (const v of message.addresses) {
3660
- writer.uint32(18).string(v!);
3661
- }
3662
- return writer;
3663
- },
3664
- decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveCodeUploadParamsAddresses {
3665
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3666
- let end = length === undefined ? reader.len : reader.pos + length;
3667
- const message = createBaseMsgRemoveCodeUploadParamsAddresses();
3668
- while (reader.pos < end) {
3669
- const tag = reader.uint32();
3670
- switch (tag >>> 3) {
3671
- case 1:
3672
- message.authority = reader.string();
3673
- break;
3674
- case 2:
3675
- message.addresses.push(reader.string());
3676
- break;
3677
- default:
3678
- reader.skipType(tag & 7);
3679
- break;
3680
- }
3681
- }
3682
- return message;
3683
- },
3684
- fromPartial(object: DeepPartial<MsgRemoveCodeUploadParamsAddresses>): MsgRemoveCodeUploadParamsAddresses {
3685
- const message = createBaseMsgRemoveCodeUploadParamsAddresses();
3686
- message.authority = object.authority ?? "";
3687
- message.addresses = object.addresses?.map(e => e) || [];
3688
- return message;
3689
- },
3690
- fromAmino(object: MsgRemoveCodeUploadParamsAddressesAmino): MsgRemoveCodeUploadParamsAddresses {
3691
- const message = createBaseMsgRemoveCodeUploadParamsAddresses();
3692
- if (object.authority !== undefined && object.authority !== null) {
3693
- message.authority = object.authority;
3694
- }
3695
- message.addresses = object.addresses?.map(e => e) || [];
3696
- return message;
3697
- },
3698
- toAmino(message: MsgRemoveCodeUploadParamsAddresses): MsgRemoveCodeUploadParamsAddressesAmino {
3699
- const obj: any = {};
3700
- obj.authority = message.authority === "" ? undefined : message.authority;
3701
- if (message.addresses) {
3702
- obj.addresses = message.addresses.map(e => e);
3703
- } else {
3704
- obj.addresses = message.addresses;
3705
- }
3706
- return obj;
3707
- },
3708
- fromAminoMsg(object: MsgRemoveCodeUploadParamsAddressesAminoMsg): MsgRemoveCodeUploadParamsAddresses {
3709
- return MsgRemoveCodeUploadParamsAddresses.fromAmino(object.value);
3710
- },
3711
- toAminoMsg(message: MsgRemoveCodeUploadParamsAddresses): MsgRemoveCodeUploadParamsAddressesAminoMsg {
3712
- return {
3713
- type: "wasm/MsgRemoveCodeUploadParamsAddresses",
3714
- value: MsgRemoveCodeUploadParamsAddresses.toAmino(message)
3715
- };
3716
- },
3717
- fromProtoMsg(message: MsgRemoveCodeUploadParamsAddressesProtoMsg): MsgRemoveCodeUploadParamsAddresses {
3718
- return MsgRemoveCodeUploadParamsAddresses.decode(message.value);
3719
- },
3720
- toProto(message: MsgRemoveCodeUploadParamsAddresses): Uint8Array {
3721
- return MsgRemoveCodeUploadParamsAddresses.encode(message).finish();
3722
- },
3723
- toProtoMsg(message: MsgRemoveCodeUploadParamsAddresses): MsgRemoveCodeUploadParamsAddressesProtoMsg {
3724
- return {
3725
- typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses",
3726
- value: MsgRemoveCodeUploadParamsAddresses.encode(message).finish()
3727
- };
3728
- }
3729
- };
3730
- GlobalDecoderRegistry.register(MsgRemoveCodeUploadParamsAddresses.typeUrl, MsgRemoveCodeUploadParamsAddresses);
3731
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgRemoveCodeUploadParamsAddresses.aminoType, MsgRemoveCodeUploadParamsAddresses.typeUrl);
3732
- function createBaseMsgRemoveCodeUploadParamsAddressesResponse(): MsgRemoveCodeUploadParamsAddressesResponse {
3733
- return {};
3734
- }
3735
- export const MsgRemoveCodeUploadParamsAddressesResponse = {
3736
- typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse",
3737
- aminoType: "wasm/MsgRemoveCodeUploadParamsAddressesResponse",
3738
- is(o: any): o is MsgRemoveCodeUploadParamsAddressesResponse {
3739
- return o && o.$typeUrl === MsgRemoveCodeUploadParamsAddressesResponse.typeUrl;
3740
- },
3741
- isAmino(o: any): o is MsgRemoveCodeUploadParamsAddressesResponseAmino {
3742
- return o && o.$typeUrl === MsgRemoveCodeUploadParamsAddressesResponse.typeUrl;
3743
- },
3744
- encode(_: MsgRemoveCodeUploadParamsAddressesResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3745
- return writer;
3746
- },
3747
- decode(input: BinaryReader | Uint8Array, length?: number): MsgRemoveCodeUploadParamsAddressesResponse {
3748
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3749
- let end = length === undefined ? reader.len : reader.pos + length;
3750
- const message = createBaseMsgRemoveCodeUploadParamsAddressesResponse();
3751
- while (reader.pos < end) {
3752
- const tag = reader.uint32();
3753
- switch (tag >>> 3) {
3754
- default:
3755
- reader.skipType(tag & 7);
3756
- break;
3757
- }
3758
- }
3759
- return message;
3760
- },
3761
- fromPartial(_: DeepPartial<MsgRemoveCodeUploadParamsAddressesResponse>): MsgRemoveCodeUploadParamsAddressesResponse {
3762
- const message = createBaseMsgRemoveCodeUploadParamsAddressesResponse();
3763
- return message;
3764
- },
3765
- fromAmino(_: MsgRemoveCodeUploadParamsAddressesResponseAmino): MsgRemoveCodeUploadParamsAddressesResponse {
3766
- const message = createBaseMsgRemoveCodeUploadParamsAddressesResponse();
3767
- return message;
3768
- },
3769
- toAmino(_: MsgRemoveCodeUploadParamsAddressesResponse): MsgRemoveCodeUploadParamsAddressesResponseAmino {
3770
- const obj: any = {};
3771
- return obj;
3772
- },
3773
- fromAminoMsg(object: MsgRemoveCodeUploadParamsAddressesResponseAminoMsg): MsgRemoveCodeUploadParamsAddressesResponse {
3774
- return MsgRemoveCodeUploadParamsAddressesResponse.fromAmino(object.value);
3775
- },
3776
- toAminoMsg(message: MsgRemoveCodeUploadParamsAddressesResponse): MsgRemoveCodeUploadParamsAddressesResponseAminoMsg {
3777
- return {
3778
- type: "wasm/MsgRemoveCodeUploadParamsAddressesResponse",
3779
- value: MsgRemoveCodeUploadParamsAddressesResponse.toAmino(message)
3780
- };
3781
- },
3782
- fromProtoMsg(message: MsgRemoveCodeUploadParamsAddressesResponseProtoMsg): MsgRemoveCodeUploadParamsAddressesResponse {
3783
- return MsgRemoveCodeUploadParamsAddressesResponse.decode(message.value);
3784
- },
3785
- toProto(message: MsgRemoveCodeUploadParamsAddressesResponse): Uint8Array {
3786
- return MsgRemoveCodeUploadParamsAddressesResponse.encode(message).finish();
3787
- },
3788
- toProtoMsg(message: MsgRemoveCodeUploadParamsAddressesResponse): MsgRemoveCodeUploadParamsAddressesResponseProtoMsg {
3789
- return {
3790
- typeUrl: "/cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse",
3791
- value: MsgRemoveCodeUploadParamsAddressesResponse.encode(message).finish()
3792
- };
3793
- }
3794
- };
3795
- GlobalDecoderRegistry.register(MsgRemoveCodeUploadParamsAddressesResponse.typeUrl, MsgRemoveCodeUploadParamsAddressesResponse);
3796
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgRemoveCodeUploadParamsAddressesResponse.aminoType, MsgRemoveCodeUploadParamsAddressesResponse.typeUrl);
3797
- function createBaseMsgStoreAndMigrateContract(): MsgStoreAndMigrateContract {
3798
- return {
3799
- authority: "",
3800
- wasmByteCode: new Uint8Array(),
3801
- instantiatePermission: undefined,
3802
- contract: "",
3803
- msg: new Uint8Array()
3804
- };
3805
- }
3806
- export const MsgStoreAndMigrateContract = {
3807
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContract",
3808
- aminoType: "wasm/MsgStoreAndMigrateContract",
3809
- is(o: any): o is MsgStoreAndMigrateContract {
3810
- return o && (o.$typeUrl === MsgStoreAndMigrateContract.typeUrl || typeof o.authority === "string" && (o.wasmByteCode instanceof Uint8Array || typeof o.wasmByteCode === "string") && typeof o.contract === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string"));
3811
- },
3812
- isAmino(o: any): o is MsgStoreAndMigrateContractAmino {
3813
- return o && (o.$typeUrl === MsgStoreAndMigrateContract.typeUrl || typeof o.authority === "string" && (o.wasm_byte_code instanceof Uint8Array || typeof o.wasm_byte_code === "string") && typeof o.contract === "string" && (o.msg instanceof Uint8Array || typeof o.msg === "string"));
3814
- },
3815
- encode(message: MsgStoreAndMigrateContract, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3816
- if (message.authority !== "") {
3817
- writer.uint32(10).string(message.authority);
3818
- }
3819
- if (message.wasmByteCode.length !== 0) {
3820
- writer.uint32(18).bytes(message.wasmByteCode);
3821
- }
3822
- if (message.instantiatePermission !== undefined) {
3823
- AccessConfig.encode(message.instantiatePermission, writer.uint32(26).fork()).ldelim();
3824
- }
3825
- if (message.contract !== "") {
3826
- writer.uint32(34).string(message.contract);
3827
- }
3828
- if (message.msg.length !== 0) {
3829
- writer.uint32(42).bytes(message.msg);
3830
- }
3831
- return writer;
3832
- },
3833
- decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreAndMigrateContract {
3834
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3835
- let end = length === undefined ? reader.len : reader.pos + length;
3836
- const message = createBaseMsgStoreAndMigrateContract();
3837
- while (reader.pos < end) {
3838
- const tag = reader.uint32();
3839
- switch (tag >>> 3) {
3840
- case 1:
3841
- message.authority = reader.string();
3842
- break;
3843
- case 2:
3844
- message.wasmByteCode = reader.bytes();
3845
- break;
3846
- case 3:
3847
- message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
3848
- break;
3849
- case 4:
3850
- message.contract = reader.string();
3851
- break;
3852
- case 5:
3853
- message.msg = reader.bytes();
3854
- break;
3855
- default:
3856
- reader.skipType(tag & 7);
3857
- break;
3858
- }
3859
- }
3860
- return message;
3861
- },
3862
- fromPartial(object: DeepPartial<MsgStoreAndMigrateContract>): MsgStoreAndMigrateContract {
3863
- const message = createBaseMsgStoreAndMigrateContract();
3864
- message.authority = object.authority ?? "";
3865
- message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
3866
- message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
3867
- message.contract = object.contract ?? "";
3868
- message.msg = object.msg ?? new Uint8Array();
3869
- return message;
3870
- },
3871
- fromAmino(object: MsgStoreAndMigrateContractAmino): MsgStoreAndMigrateContract {
3872
- const message = createBaseMsgStoreAndMigrateContract();
3873
- if (object.authority !== undefined && object.authority !== null) {
3874
- message.authority = object.authority;
3875
- }
3876
- if (object.wasm_byte_code !== undefined && object.wasm_byte_code !== null) {
3877
- message.wasmByteCode = fromBase64(object.wasm_byte_code);
3878
- }
3879
- if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
3880
- message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
3881
- }
3882
- if (object.contract !== undefined && object.contract !== null) {
3883
- message.contract = object.contract;
3884
- }
3885
- if (object.msg !== undefined && object.msg !== null) {
3886
- message.msg = toUtf8(JSON.stringify(object.msg));
3887
- }
3888
- return message;
3889
- },
3890
- toAmino(message: MsgStoreAndMigrateContract): MsgStoreAndMigrateContractAmino {
3891
- const obj: any = {};
3892
- obj.authority = message.authority === "" ? undefined : message.authority;
3893
- obj.wasm_byte_code = message.wasmByteCode ? toBase64(message.wasmByteCode) : undefined;
3894
- obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined;
3895
- obj.contract = message.contract === "" ? undefined : message.contract;
3896
- obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
3897
- return obj;
3898
- },
3899
- fromAminoMsg(object: MsgStoreAndMigrateContractAminoMsg): MsgStoreAndMigrateContract {
3900
- return MsgStoreAndMigrateContract.fromAmino(object.value);
3901
- },
3902
- toAminoMsg(message: MsgStoreAndMigrateContract): MsgStoreAndMigrateContractAminoMsg {
3903
- return {
3904
- type: "wasm/MsgStoreAndMigrateContract",
3905
- value: MsgStoreAndMigrateContract.toAmino(message)
3906
- };
3907
- },
3908
- fromProtoMsg(message: MsgStoreAndMigrateContractProtoMsg): MsgStoreAndMigrateContract {
3909
- return MsgStoreAndMigrateContract.decode(message.value);
3910
- },
3911
- toProto(message: MsgStoreAndMigrateContract): Uint8Array {
3912
- return MsgStoreAndMigrateContract.encode(message).finish();
3913
- },
3914
- toProtoMsg(message: MsgStoreAndMigrateContract): MsgStoreAndMigrateContractProtoMsg {
3915
- return {
3916
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContract",
3917
- value: MsgStoreAndMigrateContract.encode(message).finish()
3918
- };
3919
- }
3920
- };
3921
- GlobalDecoderRegistry.register(MsgStoreAndMigrateContract.typeUrl, MsgStoreAndMigrateContract);
3922
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgStoreAndMigrateContract.aminoType, MsgStoreAndMigrateContract.typeUrl);
3923
- function createBaseMsgStoreAndMigrateContractResponse(): MsgStoreAndMigrateContractResponse {
3924
- return {
3925
- codeId: BigInt(0),
3926
- checksum: new Uint8Array(),
3927
- data: new Uint8Array()
3928
- };
3929
- }
3930
- export const MsgStoreAndMigrateContractResponse = {
3931
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse",
3932
- aminoType: "wasm/MsgStoreAndMigrateContractResponse",
3933
- is(o: any): o is MsgStoreAndMigrateContractResponse {
3934
- return o && (o.$typeUrl === MsgStoreAndMigrateContractResponse.typeUrl || typeof o.codeId === "bigint" && (o.checksum instanceof Uint8Array || typeof o.checksum === "string") && (o.data instanceof Uint8Array || typeof o.data === "string"));
3935
- },
3936
- isAmino(o: any): o is MsgStoreAndMigrateContractResponseAmino {
3937
- return o && (o.$typeUrl === MsgStoreAndMigrateContractResponse.typeUrl || typeof o.code_id === "bigint" && (o.checksum instanceof Uint8Array || typeof o.checksum === "string") && (o.data instanceof Uint8Array || typeof o.data === "string"));
3938
- },
3939
- encode(message: MsgStoreAndMigrateContractResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
3940
- if (message.codeId !== BigInt(0)) {
3941
- writer.uint32(8).uint64(message.codeId);
3942
- }
3943
- if (message.checksum.length !== 0) {
3944
- writer.uint32(18).bytes(message.checksum);
3945
- }
3946
- if (message.data.length !== 0) {
3947
- writer.uint32(26).bytes(message.data);
3948
- }
3949
- return writer;
3950
- },
3951
- decode(input: BinaryReader | Uint8Array, length?: number): MsgStoreAndMigrateContractResponse {
3952
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3953
- let end = length === undefined ? reader.len : reader.pos + length;
3954
- const message = createBaseMsgStoreAndMigrateContractResponse();
3955
- while (reader.pos < end) {
3956
- const tag = reader.uint32();
3957
- switch (tag >>> 3) {
3958
- case 1:
3959
- message.codeId = reader.uint64();
3960
- break;
3961
- case 2:
3962
- message.checksum = reader.bytes();
3963
- break;
3964
- case 3:
3965
- message.data = reader.bytes();
3966
- break;
3967
- default:
3968
- reader.skipType(tag & 7);
3969
- break;
3970
- }
3971
- }
3972
- return message;
3973
- },
3974
- fromPartial(object: DeepPartial<MsgStoreAndMigrateContractResponse>): MsgStoreAndMigrateContractResponse {
3975
- const message = createBaseMsgStoreAndMigrateContractResponse();
3976
- message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
3977
- message.checksum = object.checksum ?? new Uint8Array();
3978
- message.data = object.data ?? new Uint8Array();
3979
- return message;
3980
- },
3981
- fromAmino(object: MsgStoreAndMigrateContractResponseAmino): MsgStoreAndMigrateContractResponse {
3982
- const message = createBaseMsgStoreAndMigrateContractResponse();
3983
- if (object.code_id !== undefined && object.code_id !== null) {
3984
- message.codeId = BigInt(object.code_id);
3985
- }
3986
- if (object.checksum !== undefined && object.checksum !== null) {
3987
- message.checksum = bytesFromBase64(object.checksum);
3988
- }
3989
- if (object.data !== undefined && object.data !== null) {
3990
- message.data = bytesFromBase64(object.data);
3991
- }
3992
- return message;
3993
- },
3994
- toAmino(message: MsgStoreAndMigrateContractResponse): MsgStoreAndMigrateContractResponseAmino {
3995
- const obj: any = {};
3996
- obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
3997
- obj.checksum = message.checksum ? base64FromBytes(message.checksum) : undefined;
3998
- obj.data = message.data ? base64FromBytes(message.data) : undefined;
3999
- return obj;
4000
- },
4001
- fromAminoMsg(object: MsgStoreAndMigrateContractResponseAminoMsg): MsgStoreAndMigrateContractResponse {
4002
- return MsgStoreAndMigrateContractResponse.fromAmino(object.value);
4003
- },
4004
- toAminoMsg(message: MsgStoreAndMigrateContractResponse): MsgStoreAndMigrateContractResponseAminoMsg {
4005
- return {
4006
- type: "wasm/MsgStoreAndMigrateContractResponse",
4007
- value: MsgStoreAndMigrateContractResponse.toAmino(message)
4008
- };
4009
- },
4010
- fromProtoMsg(message: MsgStoreAndMigrateContractResponseProtoMsg): MsgStoreAndMigrateContractResponse {
4011
- return MsgStoreAndMigrateContractResponse.decode(message.value);
4012
- },
4013
- toProto(message: MsgStoreAndMigrateContractResponse): Uint8Array {
4014
- return MsgStoreAndMigrateContractResponse.encode(message).finish();
4015
- },
4016
- toProtoMsg(message: MsgStoreAndMigrateContractResponse): MsgStoreAndMigrateContractResponseProtoMsg {
4017
- return {
4018
- typeUrl: "/cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse",
4019
- value: MsgStoreAndMigrateContractResponse.encode(message).finish()
4020
- };
4021
- }
4022
- };
4023
- GlobalDecoderRegistry.register(MsgStoreAndMigrateContractResponse.typeUrl, MsgStoreAndMigrateContractResponse);
4024
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgStoreAndMigrateContractResponse.aminoType, MsgStoreAndMigrateContractResponse.typeUrl);
4025
- function createBaseMsgUpdateContractLabel(): MsgUpdateContractLabel {
4026
- return {
4027
- sender: "",
4028
- newLabel: "",
4029
- contract: ""
4030
- };
4031
- }
4032
- export const MsgUpdateContractLabel = {
4033
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabel",
4034
- aminoType: "wasm/MsgUpdateContractLabel",
4035
- is(o: any): o is MsgUpdateContractLabel {
4036
- return o && (o.$typeUrl === MsgUpdateContractLabel.typeUrl || typeof o.sender === "string" && typeof o.newLabel === "string" && typeof o.contract === "string");
4037
- },
4038
- isAmino(o: any): o is MsgUpdateContractLabelAmino {
4039
- return o && (o.$typeUrl === MsgUpdateContractLabel.typeUrl || typeof o.sender === "string" && typeof o.new_label === "string" && typeof o.contract === "string");
4040
- },
4041
- encode(message: MsgUpdateContractLabel, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
4042
- if (message.sender !== "") {
4043
- writer.uint32(10).string(message.sender);
4044
- }
4045
- if (message.newLabel !== "") {
4046
- writer.uint32(18).string(message.newLabel);
4047
- }
4048
- if (message.contract !== "") {
4049
- writer.uint32(26).string(message.contract);
4050
- }
4051
- return writer;
4052
- },
4053
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateContractLabel {
4054
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4055
- let end = length === undefined ? reader.len : reader.pos + length;
4056
- const message = createBaseMsgUpdateContractLabel();
4057
- while (reader.pos < end) {
4058
- const tag = reader.uint32();
4059
- switch (tag >>> 3) {
4060
- case 1:
4061
- message.sender = reader.string();
4062
- break;
4063
- case 2:
4064
- message.newLabel = reader.string();
4065
- break;
4066
- case 3:
4067
- message.contract = reader.string();
4068
- break;
4069
- default:
4070
- reader.skipType(tag & 7);
4071
- break;
4072
- }
4073
- }
4074
- return message;
4075
- },
4076
- fromPartial(object: DeepPartial<MsgUpdateContractLabel>): MsgUpdateContractLabel {
4077
- const message = createBaseMsgUpdateContractLabel();
4078
- message.sender = object.sender ?? "";
4079
- message.newLabel = object.newLabel ?? "";
4080
- message.contract = object.contract ?? "";
4081
- return message;
4082
- },
4083
- fromAmino(object: MsgUpdateContractLabelAmino): MsgUpdateContractLabel {
4084
- const message = createBaseMsgUpdateContractLabel();
4085
- if (object.sender !== undefined && object.sender !== null) {
4086
- message.sender = object.sender;
4087
- }
4088
- if (object.new_label !== undefined && object.new_label !== null) {
4089
- message.newLabel = object.new_label;
4090
- }
4091
- if (object.contract !== undefined && object.contract !== null) {
4092
- message.contract = object.contract;
4093
- }
4094
- return message;
4095
- },
4096
- toAmino(message: MsgUpdateContractLabel): MsgUpdateContractLabelAmino {
4097
- const obj: any = {};
4098
- obj.sender = message.sender === "" ? undefined : message.sender;
4099
- obj.new_label = message.newLabel === "" ? undefined : message.newLabel;
4100
- obj.contract = message.contract === "" ? undefined : message.contract;
4101
- return obj;
4102
- },
4103
- fromAminoMsg(object: MsgUpdateContractLabelAminoMsg): MsgUpdateContractLabel {
4104
- return MsgUpdateContractLabel.fromAmino(object.value);
4105
- },
4106
- toAminoMsg(message: MsgUpdateContractLabel): MsgUpdateContractLabelAminoMsg {
4107
- return {
4108
- type: "wasm/MsgUpdateContractLabel",
4109
- value: MsgUpdateContractLabel.toAmino(message)
4110
- };
4111
- },
4112
- fromProtoMsg(message: MsgUpdateContractLabelProtoMsg): MsgUpdateContractLabel {
4113
- return MsgUpdateContractLabel.decode(message.value);
4114
- },
4115
- toProto(message: MsgUpdateContractLabel): Uint8Array {
4116
- return MsgUpdateContractLabel.encode(message).finish();
4117
- },
4118
- toProtoMsg(message: MsgUpdateContractLabel): MsgUpdateContractLabelProtoMsg {
4119
- return {
4120
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabel",
4121
- value: MsgUpdateContractLabel.encode(message).finish()
4122
- };
4123
- }
4124
- };
4125
- GlobalDecoderRegistry.register(MsgUpdateContractLabel.typeUrl, MsgUpdateContractLabel);
4126
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateContractLabel.aminoType, MsgUpdateContractLabel.typeUrl);
4127
- function createBaseMsgUpdateContractLabelResponse(): MsgUpdateContractLabelResponse {
4128
- return {};
4129
- }
4130
- export const MsgUpdateContractLabelResponse = {
4131
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabelResponse",
4132
- aminoType: "wasm/MsgUpdateContractLabelResponse",
4133
- is(o: any): o is MsgUpdateContractLabelResponse {
4134
- return o && o.$typeUrl === MsgUpdateContractLabelResponse.typeUrl;
4135
- },
4136
- isAmino(o: any): o is MsgUpdateContractLabelResponseAmino {
4137
- return o && o.$typeUrl === MsgUpdateContractLabelResponse.typeUrl;
4138
- },
4139
- encode(_: MsgUpdateContractLabelResponse, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
4140
- return writer;
4141
- },
4142
- decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateContractLabelResponse {
4143
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4144
- let end = length === undefined ? reader.len : reader.pos + length;
4145
- const message = createBaseMsgUpdateContractLabelResponse();
4146
- while (reader.pos < end) {
4147
- const tag = reader.uint32();
4148
- switch (tag >>> 3) {
4149
- default:
4150
- reader.skipType(tag & 7);
4151
- break;
4152
- }
4153
- }
4154
- return message;
4155
- },
4156
- fromPartial(_: DeepPartial<MsgUpdateContractLabelResponse>): MsgUpdateContractLabelResponse {
4157
- const message = createBaseMsgUpdateContractLabelResponse();
4158
- return message;
4159
- },
4160
- fromAmino(_: MsgUpdateContractLabelResponseAmino): MsgUpdateContractLabelResponse {
4161
- const message = createBaseMsgUpdateContractLabelResponse();
4162
- return message;
4163
- },
4164
- toAmino(_: MsgUpdateContractLabelResponse): MsgUpdateContractLabelResponseAmino {
4165
- const obj: any = {};
4166
- return obj;
4167
- },
4168
- fromAminoMsg(object: MsgUpdateContractLabelResponseAminoMsg): MsgUpdateContractLabelResponse {
4169
- return MsgUpdateContractLabelResponse.fromAmino(object.value);
4170
- },
4171
- toAminoMsg(message: MsgUpdateContractLabelResponse): MsgUpdateContractLabelResponseAminoMsg {
4172
- return {
4173
- type: "wasm/MsgUpdateContractLabelResponse",
4174
- value: MsgUpdateContractLabelResponse.toAmino(message)
4175
- };
4176
- },
4177
- fromProtoMsg(message: MsgUpdateContractLabelResponseProtoMsg): MsgUpdateContractLabelResponse {
4178
- return MsgUpdateContractLabelResponse.decode(message.value);
4179
- },
4180
- toProto(message: MsgUpdateContractLabelResponse): Uint8Array {
4181
- return MsgUpdateContractLabelResponse.encode(message).finish();
4182
- },
4183
- toProtoMsg(message: MsgUpdateContractLabelResponse): MsgUpdateContractLabelResponseProtoMsg {
4184
- return {
4185
- typeUrl: "/cosmwasm.wasm.v1.MsgUpdateContractLabelResponse",
4186
- value: MsgUpdateContractLabelResponse.encode(message).finish()
4187
- };
4188
- }
4189
- };
4190
- GlobalDecoderRegistry.register(MsgUpdateContractLabelResponse.typeUrl, MsgUpdateContractLabelResponse);
4191
- GlobalDecoderRegistry.registerAminoProtoMapping(MsgUpdateContractLabelResponse.aminoType, MsgUpdateContractLabelResponse.typeUrl);