@burnt-labs/xion-types 0.0.1-test.1762962136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (554) hide show
  1. package/jest.config.js +18 -0
  2. package/package.json +56 -0
  3. package/scripts/aminos.ts +29 -0
  4. package/scripts/codegen.ts +94 -0
  5. package/scripts/download-protos.ts +248 -0
  6. package/telescope.config.json +84 -0
  7. package/tsconfig.esm.json +9 -0
  8. package/tsconfig.json +18 -0
  9. package/types/abstractaccount/bundle.ts +35 -0
  10. package/types/abstractaccount/client.ts +48 -0
  11. package/types/abstractaccount/lcd.ts +130 -0
  12. package/types/abstractaccount/rpc.query.ts +93 -0
  13. package/types/abstractaccount/rpc.tx.ts +74 -0
  14. package/types/abstractaccount/v1/account.ts +250 -0
  15. package/types/abstractaccount/v1/events.ts +135 -0
  16. package/types/abstractaccount/v1/genesis.ts +106 -0
  17. package/types/abstractaccount/v1/params.ts +192 -0
  18. package/types/abstractaccount/v1/query.lcd.ts +19 -0
  19. package/types/abstractaccount/v1/query.rpc.Query.ts +31 -0
  20. package/types/abstractaccount/v1/query.ts +160 -0
  21. package/types/abstractaccount/v1/tx.amino.ts +14 -0
  22. package/types/abstractaccount/v1/tx.registry.ts +53 -0
  23. package/types/abstractaccount/v1/tx.rpc.msg.ts +29 -0
  24. package/types/abstractaccount/v1/tx.ts +454 -0
  25. package/types/amino/amino.ts +1 -0
  26. package/types/amino/bundle.ts +5 -0
  27. package/types/binary.ts +535 -0
  28. package/types/cosmos/app/runtime/v1alpha1/module.ts +492 -0
  29. package/types/cosmos/app/v1alpha1/config.ts +437 -0
  30. package/types/cosmos/app/v1alpha1/module.ts +466 -0
  31. package/types/cosmos/app/v1alpha1/query.rpc.Query.ts +31 -0
  32. package/types/cosmos/app/v1alpha1/query.ts +176 -0
  33. package/types/cosmos/auth/module/v1/module.ts +288 -0
  34. package/types/cosmos/auth/v1beta1/auth.ts +562 -0
  35. package/types/cosmos/auth/v1beta1/genesis.ts +123 -0
  36. package/types/cosmos/auth/v1beta1/query.lcd.ts +91 -0
  37. package/types/cosmos/auth/v1beta1/query.rpc.Query.ts +137 -0
  38. package/types/cosmos/auth/v1beta1/query.ts +2005 -0
  39. package/types/cosmos/auth/v1beta1/tx.amino.ts +9 -0
  40. package/types/cosmos/auth/v1beta1/tx.registry.ts +35 -0
  41. package/types/cosmos/auth/v1beta1/tx.rpc.msg.ts +24 -0
  42. package/types/cosmos/auth/v1beta1/tx.ts +208 -0
  43. package/types/cosmos/authz/module/v1/module.ts +77 -0
  44. package/types/cosmos/authz/v1beta1/authz.ts +599 -0
  45. package/types/cosmos/authz/v1beta1/event.ts +274 -0
  46. package/types/cosmos/authz/v1beta1/genesis.ts +99 -0
  47. package/types/cosmos/authz/v1beta1/query.lcd.ts +59 -0
  48. package/types/cosmos/authz/v1beta1/query.rpc.Query.ts +53 -0
  49. package/types/cosmos/authz/v1beta1/query.ts +734 -0
  50. package/types/cosmos/authz/v1beta1/tx.amino.ts +19 -0
  51. package/types/cosmos/authz/v1beta1/tx.registry.ts +71 -0
  52. package/types/cosmos/authz/v1beta1/tx.rpc.msg.ts +49 -0
  53. package/types/cosmos/authz/v1beta1/tx.ts +666 -0
  54. package/types/cosmos/autocli/v1/options.ts +1317 -0
  55. package/types/cosmos/autocli/v1/query.rpc.Query.ts +32 -0
  56. package/types/cosmos/autocli/v1/query.ts +298 -0
  57. package/types/cosmos/bank/module/v1/module.ts +156 -0
  58. package/types/cosmos/bank/v1beta1/authz.ts +134 -0
  59. package/types/cosmos/bank/v1beta1/bank.ts +984 -0
  60. package/types/cosmos/bank/v1beta1/genesis.ts +316 -0
  61. package/types/cosmos/bank/v1beta1/query.lcd.ts +207 -0
  62. package/types/cosmos/bank/v1beta1/query.rpc.Query.ts +212 -0
  63. package/types/cosmos/bank/v1beta1/query.ts +3051 -0
  64. package/types/cosmos/bank/v1beta1/tx.amino.ts +24 -0
  65. package/types/cosmos/bank/v1beta1/tx.registry.ts +89 -0
  66. package/types/cosmos/bank/v1beta1/tx.rpc.msg.ts +53 -0
  67. package/types/cosmos/bank/v1beta1/tx.ts +845 -0
  68. package/types/cosmos/base/abci/v1beta1/abci.ts +1776 -0
  69. package/types/cosmos/base/node/v1beta1/query.lcd.ts +25 -0
  70. package/types/cosmos/base/node/v1beta1/query.rpc.Service.ts +42 -0
  71. package/types/cosmos/base/node/v1beta1/query.ts +467 -0
  72. package/types/cosmos/base/query/v1beta1/pagination.ts +372 -0
  73. package/types/cosmos/base/reflection/v1beta1/reflection.ts +385 -0
  74. package/types/cosmos/base/reflection/v2alpha1/reflection.ts +2790 -0
  75. package/types/cosmos/base/tendermint/v1beta1/query.lcd.ts +87 -0
  76. package/types/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +103 -0
  77. package/types/cosmos/base/tendermint/v1beta1/query.ts +2358 -0
  78. package/types/cosmos/base/tendermint/v1beta1/types.ts +492 -0
  79. package/types/cosmos/base/v1beta1/coin.ts +449 -0
  80. package/types/cosmos/benchmark/module/v1/module.ts +384 -0
  81. package/types/cosmos/benchmark/v1/benchmark.ts +186 -0
  82. package/types/cosmos/benchmark/v1/tx.amino.ts +9 -0
  83. package/types/cosmos/benchmark/v1/tx.registry.ts +35 -0
  84. package/types/cosmos/benchmark/v1/tx.rpc.msg.ts +21 -0
  85. package/types/cosmos/benchmark/v1/tx.ts +224 -0
  86. package/types/cosmos/bundle.ts +807 -0
  87. package/types/cosmos/circuit/module/v1/module.ts +100 -0
  88. package/types/cosmos/circuit/v1/query.lcd.ts +40 -0
  89. package/types/cosmos/circuit/v1/query.rpc.Query.ts +55 -0
  90. package/types/cosmos/circuit/v1/query.ts +576 -0
  91. package/types/cosmos/circuit/v1/tx.amino.ts +19 -0
  92. package/types/cosmos/circuit/v1/tx.registry.ts +71 -0
  93. package/types/cosmos/circuit/v1/tx.rpc.msg.ts +43 -0
  94. package/types/cosmos/circuit/v1/tx.ts +685 -0
  95. package/types/cosmos/circuit/v1/types.ts +419 -0
  96. package/types/cosmos/client.ts +100 -0
  97. package/types/cosmos/consensus/module/v1/module.ts +100 -0
  98. package/types/cosmos/consensus/v1/query.lcd.ts +19 -0
  99. package/types/cosmos/consensus/v1/query.rpc.Query.ts +31 -0
  100. package/types/cosmos/consensus/v1/query.ts +182 -0
  101. package/types/cosmos/consensus/v1/tx.amino.ts +9 -0
  102. package/types/cosmos/consensus/v1/tx.registry.ts +35 -0
  103. package/types/cosmos/consensus/v1/tx.rpc.msg.ts +24 -0
  104. package/types/cosmos/consensus/v1/tx.ts +257 -0
  105. package/types/cosmos/counter/module/v1/module.ts +100 -0
  106. package/types/cosmos/counter/v1/query.rpc.Query.ts +31 -0
  107. package/types/cosmos/counter/v1/query.ts +171 -0
  108. package/types/cosmos/counter/v1/tx.amino.ts +9 -0
  109. package/types/cosmos/counter/v1/tx.registry.ts +35 -0
  110. package/types/cosmos/counter/v1/tx.rpc.msg.ts +21 -0
  111. package/types/cosmos/counter/v1/tx.ts +217 -0
  112. package/types/cosmos/crisis/module/v1/module.ts +119 -0
  113. package/types/cosmos/crisis/v1beta1/genesis.ts +105 -0
  114. package/types/cosmos/crisis/v1beta1/tx.amino.ts +14 -0
  115. package/types/cosmos/crisis/v1beta1/tx.registry.ts +53 -0
  116. package/types/cosmos/crisis/v1beta1/tx.rpc.msg.ts +32 -0
  117. package/types/cosmos/crisis/v1beta1/tx.ts +413 -0
  118. package/types/cosmos/crypto/bls12_381/keys.ts +207 -0
  119. package/types/cosmos/crypto/ed25519/keys.ts +214 -0
  120. package/types/cosmos/crypto/hd/v1/hd.ts +180 -0
  121. package/types/cosmos/crypto/keyring/v1/record.ts +542 -0
  122. package/types/cosmos/crypto/multisig/keys.ts +124 -0
  123. package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +231 -0
  124. package/types/cosmos/crypto/secp256k1/keys.ts +207 -0
  125. package/types/cosmos/crypto/secp256r1/keys.ts +203 -0
  126. package/types/cosmos/distribution/module/v1/module.ts +115 -0
  127. package/types/cosmos/distribution/v1beta1/distribution.ts +1551 -0
  128. package/types/cosmos/distribution/v1beta1/genesis.ts +1208 -0
  129. package/types/cosmos/distribution/v1beta1/query.lcd.ts +89 -0
  130. package/types/cosmos/distribution/v1beta1/query.rpc.Query.ts +137 -0
  131. package/types/cosmos/distribution/v1beta1/query.ts +2195 -0
  132. package/types/cosmos/distribution/v1beta1/tx.amino.ts +39 -0
  133. package/types/cosmos/distribution/v1beta1/tx.registry.ts +143 -0
  134. package/types/cosmos/distribution/v1beta1/tx.rpc.msg.ts +96 -0
  135. package/types/cosmos/distribution/v1beta1/tx.ts +1460 -0
  136. package/types/cosmos/epochs/module/v1/module.ts +77 -0
  137. package/types/cosmos/epochs/v1beta1/events.ts +205 -0
  138. package/types/cosmos/epochs/v1beta1/genesis.ts +384 -0
  139. package/types/cosmos/epochs/v1beta1/query.lcd.ts +31 -0
  140. package/types/cosmos/epochs/v1beta1/query.rpc.Query.ts +42 -0
  141. package/types/cosmos/epochs/v1beta1/query.ts +390 -0
  142. package/types/cosmos/evidence/module/v1/module.ts +77 -0
  143. package/types/cosmos/evidence/v1beta1/evidence.ts +166 -0
  144. package/types/cosmos/evidence/v1beta1/genesis.ts +103 -0
  145. package/types/cosmos/evidence/v1beta1/query.lcd.ts +40 -0
  146. package/types/cosmos/evidence/v1beta1/query.rpc.Query.ts +44 -0
  147. package/types/cosmos/evidence/v1beta1/query.ts +458 -0
  148. package/types/cosmos/evidence/v1beta1/tx.amino.ts +9 -0
  149. package/types/cosmos/evidence/v1beta1/tx.registry.ts +35 -0
  150. package/types/cosmos/evidence/v1beta1/tx.rpc.msg.ts +24 -0
  151. package/types/cosmos/evidence/v1beta1/tx.ts +243 -0
  152. package/types/cosmos/feegrant/module/v1/module.ts +77 -0
  153. package/types/cosmos/feegrant/v1beta1/feegrant.ts +701 -0
  154. package/types/cosmos/feegrant/v1beta1/genesis.ts +99 -0
  155. package/types/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
  156. package/types/cosmos/feegrant/v1beta1/query.rpc.Query.ts +53 -0
  157. package/types/cosmos/feegrant/v1beta1/query.ts +683 -0
  158. package/types/cosmos/feegrant/v1beta1/tx.amino.ts +19 -0
  159. package/types/cosmos/feegrant/v1beta1/tx.registry.ts +71 -0
  160. package/types/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +43 -0
  161. package/types/cosmos/feegrant/v1beta1/tx.ts +683 -0
  162. package/types/cosmos/genutil/module/v1/module.ts +77 -0
  163. package/types/cosmos/genutil/v1beta1/genesis.ts +103 -0
  164. package/types/cosmos/gov/module/v1/module.ts +123 -0
  165. package/types/cosmos/gov/v1/genesis.ts +288 -0
  166. package/types/cosmos/gov/v1/gov.ts +1889 -0
  167. package/types/cosmos/gov/v1/query.lcd.ts +95 -0
  168. package/types/cosmos/gov/v1/query.rpc.Query.ts +119 -0
  169. package/types/cosmos/gov/v1/query.ts +2026 -0
  170. package/types/cosmos/gov/v1/tx.amino.ts +39 -0
  171. package/types/cosmos/gov/v1/tx.registry.ts +143 -0
  172. package/types/cosmos/gov/v1/tx.rpc.msg.ts +75 -0
  173. package/types/cosmos/gov/v1/tx.ts +1911 -0
  174. package/types/cosmos/gov/v1beta1/genesis.ts +221 -0
  175. package/types/cosmos/gov/v1beta1/gov.ts +1725 -0
  176. package/types/cosmos/gov/v1beta1/query.lcd.ts +89 -0
  177. package/types/cosmos/gov/v1beta1/query.rpc.Query.ts +108 -0
  178. package/types/cosmos/gov/v1beta1/query.ts +1813 -0
  179. package/types/cosmos/gov/v1beta1/tx.amino.ts +24 -0
  180. package/types/cosmos/gov/v1beta1/tx.registry.ts +89 -0
  181. package/types/cosmos/gov/v1beta1/tx.rpc.msg.ts +45 -0
  182. package/types/cosmos/gov/v1beta1/tx.ts +1128 -0
  183. package/types/cosmos/group/module/v1/module.ts +128 -0
  184. package/types/cosmos/group/v1/events.ts +1195 -0
  185. package/types/cosmos/group/v1/genesis.ts +256 -0
  186. package/types/cosmos/group/v1/query.lcd.ts +158 -0
  187. package/types/cosmos/group/v1/query.rpc.Query.ts +182 -0
  188. package/types/cosmos/group/v1/query.ts +3108 -0
  189. package/types/cosmos/group/v1/tx.amino.ts +74 -0
  190. package/types/cosmos/group/v1/tx.registry.ts +269 -0
  191. package/types/cosmos/group/v1/tx.rpc.msg.ts +125 -0
  192. package/types/cosmos/group/v1/tx.ts +3353 -0
  193. package/types/cosmos/group/v1/types.ts +2248 -0
  194. package/types/cosmos/ics23/v1/proofs.ts +2167 -0
  195. package/types/cosmos/lcd.ts +125 -0
  196. package/types/cosmos/mint/module/v1/module.ts +115 -0
  197. package/types/cosmos/mint/v1beta1/genesis.ts +120 -0
  198. package/types/cosmos/mint/v1beta1/mint.ts +313 -0
  199. package/types/cosmos/mint/v1beta1/query.lcd.ts +31 -0
  200. package/types/cosmos/mint/v1beta1/query.rpc.Query.ts +53 -0
  201. package/types/cosmos/mint/v1beta1/query.ts +544 -0
  202. package/types/cosmos/mint/v1beta1/tx.amino.ts +9 -0
  203. package/types/cosmos/mint/v1beta1/tx.registry.ts +35 -0
  204. package/types/cosmos/mint/v1beta1/tx.rpc.msg.ts +24 -0
  205. package/types/cosmos/mint/v1beta1/tx.ts +208 -0
  206. package/types/cosmos/msg/textual/v1/textual.ts +1 -0
  207. package/types/cosmos/msg/v1/msg.ts +1 -0
  208. package/types/cosmos/nft/module/v1/module.ts +77 -0
  209. package/types/cosmos/nft/v1beta1/event.ts +429 -0
  210. package/types/cosmos/nft/v1beta1/genesis.ts +243 -0
  211. package/types/cosmos/nft/v1beta1/nft.ts +389 -0
  212. package/types/cosmos/nft/v1beta1/query.lcd.ts +77 -0
  213. package/types/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
  214. package/types/cosmos/nft/v1beta1/query.ts +1513 -0
  215. package/types/cosmos/nft/v1beta1/tx.amino.ts +9 -0
  216. package/types/cosmos/nft/v1beta1/tx.registry.ts +35 -0
  217. package/types/cosmos/nft/v1beta1/tx.rpc.msg.ts +21 -0
  218. package/types/cosmos/nft/v1beta1/tx.ts +232 -0
  219. package/types/cosmos/params/module/v1/module.ts +77 -0
  220. package/types/cosmos/params/v1beta1/params.ts +262 -0
  221. package/types/cosmos/params/v1beta1/query.lcd.ts +35 -0
  222. package/types/cosmos/params/v1beta1/query.rpc.Query.ts +45 -0
  223. package/types/cosmos/params/v1beta1/query.ts +521 -0
  224. package/types/cosmos/protocolpool/module/v1/module.ts +100 -0
  225. package/types/cosmos/protocolpool/v1/genesis.ts +126 -0
  226. package/types/cosmos/protocolpool/v1/query.lcd.ts +37 -0
  227. package/types/cosmos/protocolpool/v1/query.rpc.Query.ts +64 -0
  228. package/types/cosmos/protocolpool/v1/query.ts +761 -0
  229. package/types/cosmos/protocolpool/v1/tx.amino.ts +29 -0
  230. package/types/cosmos/protocolpool/v1/tx.registry.ts +107 -0
  231. package/types/cosmos/protocolpool/v1/tx.rpc.msg.ts +69 -0
  232. package/types/cosmos/protocolpool/v1/tx.ts +1124 -0
  233. package/types/cosmos/protocolpool/v1/types.ts +268 -0
  234. package/types/cosmos/query/v1/query.ts +1 -0
  235. package/types/cosmos/reflection/v1/reflection.ts +178 -0
  236. package/types/cosmos/rpc.query.ts +90 -0
  237. package/types/cosmos/rpc.tx.ts +71 -0
  238. package/types/cosmos/slashing/module/v1/module.ts +100 -0
  239. package/types/cosmos/slashing/v1beta1/genesis.ts +511 -0
  240. package/types/cosmos/slashing/v1beta1/query.lcd.ts +40 -0
  241. package/types/cosmos/slashing/v1beta1/query.rpc.Query.ts +55 -0
  242. package/types/cosmos/slashing/v1beta1/query.ts +606 -0
  243. package/types/cosmos/slashing/v1beta1/slashing.ts +371 -0
  244. package/types/cosmos/slashing/v1beta1/tx.amino.ts +14 -0
  245. package/types/cosmos/slashing/v1beta1/tx.registry.ts +53 -0
  246. package/types/cosmos/slashing/v1beta1/tx.rpc.msg.ts +36 -0
  247. package/types/cosmos/slashing/v1beta1/tx.ts +377 -0
  248. package/types/cosmos/staking/module/v1/module.ts +165 -0
  249. package/types/cosmos/staking/v1beta1/authz.ts +321 -0
  250. package/types/cosmos/staking/v1beta1/genesis.ts +370 -0
  251. package/types/cosmos/staking/v1beta1/query.lcd.ts +174 -0
  252. package/types/cosmos/staking/v1beta1/query.rpc.Query.ts +217 -0
  253. package/types/cosmos/staking/v1beta1/query.ts +3187 -0
  254. package/types/cosmos/staking/v1beta1/staking.ts +3193 -0
  255. package/types/cosmos/staking/v1beta1/tx.amino.ts +39 -0
  256. package/types/cosmos/staking/v1beta1/tx.registry.ts +143 -0
  257. package/types/cosmos/staking/v1beta1/tx.rpc.msg.ts +84 -0
  258. package/types/cosmos/staking/v1beta1/tx.ts +1642 -0
  259. package/types/cosmos/store/internal/kv/v1beta1/kv.ts +208 -0
  260. package/types/cosmos/store/snapshots/v1/snapshot.ts +840 -0
  261. package/types/cosmos/store/streaming/abci/grpc.ts +393 -0
  262. package/types/cosmos/store/v1beta1/commit_info.ts +369 -0
  263. package/types/cosmos/store/v1beta1/listening.ts +296 -0
  264. package/types/cosmos/tx/config/v1/config.ts +127 -0
  265. package/types/cosmos/tx/signing/v1beta1/signing.ts +713 -0
  266. package/types/cosmos/tx/v1beta1/service.lcd.ts +59 -0
  267. package/types/cosmos/tx/v1beta1/service.rpc.Service.ts +119 -0
  268. package/types/cosmos/tx/v1beta1/service.ts +2319 -0
  269. package/types/cosmos/tx/v1beta1/tx.ts +2168 -0
  270. package/types/cosmos/upgrade/module/v1/module.ts +100 -0
  271. package/types/cosmos/upgrade/v1beta1/query.lcd.ts +54 -0
  272. package/types/cosmos/upgrade/v1beta1/query.rpc.Query.ts +82 -0
  273. package/types/cosmos/upgrade/v1beta1/query.ts +1004 -0
  274. package/types/cosmos/upgrade/v1beta1/tx.amino.ts +14 -0
  275. package/types/cosmos/upgrade/v1beta1/tx.registry.ts +53 -0
  276. package/types/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +32 -0
  277. package/types/cosmos/upgrade/v1beta1/tx.ts +368 -0
  278. package/types/cosmos/upgrade/v1beta1/upgrade.ts +623 -0
  279. package/types/cosmos/vesting/module/v1/module.ts +77 -0
  280. package/types/cosmos/vesting/v1beta1/tx.amino.ts +19 -0
  281. package/types/cosmos/vesting/v1beta1/tx.registry.ts +71 -0
  282. package/types/cosmos/vesting/v1beta1/tx.rpc.msg.ts +46 -0
  283. package/types/cosmos/vesting/v1beta1/tx.ts +688 -0
  284. package/types/cosmos/vesting/v1beta1/vesting.ts +751 -0
  285. package/types/cosmos_proto/bundle.ts +5 -0
  286. package/types/cosmos_proto/cosmos.ts +355 -0
  287. package/types/cosmwasm/bundle.ts +39 -0
  288. package/types/cosmwasm/client.ts +48 -0
  289. package/types/cosmwasm/lcd.ts +132 -0
  290. package/types/cosmwasm/rpc.query.ts +95 -0
  291. package/types/cosmwasm/rpc.tx.ts +76 -0
  292. package/types/cosmwasm/wasm/v1/authz.ts +1409 -0
  293. package/types/cosmwasm/wasm/v1/genesis.ts +544 -0
  294. package/types/cosmwasm/wasm/v1/ibc.ts +437 -0
  295. package/types/cosmwasm/wasm/v1/proposal_legacy.ts +2711 -0
  296. package/types/cosmwasm/wasm/v1/query.lcd.ts +154 -0
  297. package/types/cosmwasm/wasm/v1/query.rpc.Query.ts +181 -0
  298. package/types/cosmwasm/wasm/v1/query.ts +3339 -0
  299. package/types/cosmwasm/wasm/v1/tx.amino.ts +89 -0
  300. package/types/cosmwasm/wasm/v1/tx.registry.ts +323 -0
  301. package/types/cosmwasm/wasm/v1/tx.rpc.msg.ts +197 -0
  302. package/types/cosmwasm/wasm/v1/tx.ts +4403 -0
  303. package/types/cosmwasm/wasm/v1/types.ts +1193 -0
  304. package/types/gogoproto/bundle.ts +5 -0
  305. package/types/gogoproto/gogo.ts +1 -0
  306. package/types/google/api/annotations.ts +1 -0
  307. package/types/google/api/apikeys/v2/apikeys.ts +1245 -0
  308. package/types/google/api/apikeys/v2/resources.ts +1268 -0
  309. package/types/google/api/auth.ts +1175 -0
  310. package/types/google/api/backend.ts +691 -0
  311. package/types/google/api/billing.ts +333 -0
  312. package/types/google/api/client.ts +3100 -0
  313. package/types/google/api/cloudquotas/v1/cloudquotas.ts +1196 -0
  314. package/types/google/api/cloudquotas/v1/resources.ts +2065 -0
  315. package/types/google/api/cloudquotas/v1beta/cloudquotas.ts +1196 -0
  316. package/types/google/api/cloudquotas/v1beta/quota_adjuster_settings.ts +509 -0
  317. package/types/google/api/cloudquotas/v1beta/resources.ts +2069 -0
  318. package/types/google/api/config_change.ts +385 -0
  319. package/types/google/api/consumer.ts +362 -0
  320. package/types/google/api/context.ts +418 -0
  321. package/types/google/api/control.ts +141 -0
  322. package/types/google/api/distribution.ts +1253 -0
  323. package/types/google/api/documentation.ts +738 -0
  324. package/types/google/api/endpoint.ts +245 -0
  325. package/types/google/api/error_reason.ts +816 -0
  326. package/types/google/api/expr/conformance/v1alpha1/conformance_service.ts +1293 -0
  327. package/types/google/api/expr/v1alpha1/checked.ts +2259 -0
  328. package/types/google/api/expr/v1alpha1/eval.ts +675 -0
  329. package/types/google/api/expr/v1alpha1/explain.ts +257 -0
  330. package/types/google/api/expr/v1alpha1/syntax.ts +2983 -0
  331. package/types/google/api/expr/v1alpha1/value.ts +771 -0
  332. package/types/google/api/expr/v1beta1/decl.ts +563 -0
  333. package/types/google/api/expr/v1beta1/eval.ts +758 -0
  334. package/types/google/api/expr/v1beta1/expr.ts +1750 -0
  335. package/types/google/api/expr/v1beta1/source.ts +446 -0
  336. package/types/google/api/expr/v1beta1/value.ts +771 -0
  337. package/types/google/api/field_behavior.ts +136 -0
  338. package/types/google/api/field_info.ts +319 -0
  339. package/types/google/api/http.ts +1362 -0
  340. package/types/google/api/httpbody.ts +270 -0
  341. package/types/google/api/label.ts +174 -0
  342. package/types/google/api/launch_stage.ts +112 -0
  343. package/types/google/api/log.ts +201 -0
  344. package/types/google/api/logging.ts +355 -0
  345. package/types/google/api/metric.ts +1174 -0
  346. package/types/google/api/monitored_resource.ts +841 -0
  347. package/types/google/api/monitoring.ts +430 -0
  348. package/types/google/api/policy.ts +314 -0
  349. package/types/google/api/quota.ts +1040 -0
  350. package/types/google/api/resource.ts +769 -0
  351. package/types/google/api/routing.ts +1405 -0
  352. package/types/google/api/service.ts +790 -0
  353. package/types/google/api/servicecontrol/v1/check_error.ts +366 -0
  354. package/types/google/api/servicecontrol/v1/distribution.ts +773 -0
  355. package/types/google/api/servicecontrol/v1/http_request.ts +427 -0
  356. package/types/google/api/servicecontrol/v1/log_entry.ts +804 -0
  357. package/types/google/api/servicecontrol/v1/metric_value.ts +499 -0
  358. package/types/google/api/servicecontrol/v1/operation.ts +544 -0
  359. package/types/google/api/servicecontrol/v1/quota_controller.ts +1041 -0
  360. package/types/google/api/servicecontrol/v1/service_controller.ts +1164 -0
  361. package/types/google/api/servicecontrol/v2/service_controller.ts +949 -0
  362. package/types/google/api/servicemanagement/v1/resources.ts +1888 -0
  363. package/types/google/api/servicemanagement/v1/servicemanager.ts +2444 -0
  364. package/types/google/api/serviceusage/v1/resources.ts +629 -0
  365. package/types/google/api/serviceusage/v1/serviceusage.ts +1530 -0
  366. package/types/google/api/serviceusage/v1beta1/resources.ts +2972 -0
  367. package/types/google/api/serviceusage/v1beta1/serviceusage.ts +4567 -0
  368. package/types/google/api/source_info.ts +97 -0
  369. package/types/google/api/system_parameter.ts +461 -0
  370. package/types/google/api/usage.ts +404 -0
  371. package/types/google/api/visibility.ts +328 -0
  372. package/types/google/bundle.ts +115 -0
  373. package/types/google/logging/type/log_severity.ts +104 -0
  374. package/types/google/longrunning/operations.ts +1153 -0
  375. package/types/google/protobuf/any.ts +424 -0
  376. package/types/google/protobuf/api.ts +942 -0
  377. package/types/google/protobuf/descriptor.ts +7801 -0
  378. package/types/google/protobuf/duration.ts +284 -0
  379. package/types/google/protobuf/empty.ts +93 -0
  380. package/types/google/protobuf/field_mask.ts +694 -0
  381. package/types/google/protobuf/source_context.ts +105 -0
  382. package/types/google/protobuf/struct.ts +584 -0
  383. package/types/google/protobuf/timestamp.ts +373 -0
  384. package/types/google/protobuf/type.ts +1279 -0
  385. package/types/google/protobuf/wrappers.ts +1002 -0
  386. package/types/google/rpc/code.ts +286 -0
  387. package/types/google/rpc/context/attribute_context.ts +2517 -0
  388. package/types/google/rpc/context/audit_context.ts +188 -0
  389. package/types/google/rpc/error_details.ts +2467 -0
  390. package/types/google/rpc/http.ts +424 -0
  391. package/types/google/rpc/status.ts +173 -0
  392. package/types/helpers.ts +259 -0
  393. package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +107 -0
  394. package/types/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +25 -0
  395. package/types/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +42 -0
  396. package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
  397. package/types/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +19 -0
  398. package/types/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +71 -0
  399. package/types/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +37 -0
  400. package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +692 -0
  401. package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +675 -0
  402. package/types/ibc/applications/interchain_accounts/host/v1/host.ts +261 -0
  403. package/types/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +19 -0
  404. package/types/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +31 -0
  405. package/types/ibc/applications/interchain_accounts/host/v1/query.ts +176 -0
  406. package/types/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +14 -0
  407. package/types/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +53 -0
  408. package/types/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +29 -0
  409. package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +440 -0
  410. package/types/ibc/applications/interchain_accounts/v1/account.ts +115 -0
  411. package/types/ibc/applications/interchain_accounts/v1/metadata.ts +206 -0
  412. package/types/ibc/applications/interchain_accounts/v1/packet.ts +262 -0
  413. package/types/ibc/applications/transfer/v1/authz.ts +297 -0
  414. package/types/ibc/applications/transfer/v1/denomtrace.ts +133 -0
  415. package/types/ibc/applications/transfer/v1/genesis.ts +156 -0
  416. package/types/ibc/applications/transfer/v1/packet.ts +186 -0
  417. package/types/ibc/applications/transfer/v1/query.lcd.ts +76 -0
  418. package/types/ibc/applications/transfer/v1/query.rpc.Query.ts +88 -0
  419. package/types/ibc/applications/transfer/v1/query.ts +1233 -0
  420. package/types/ibc/applications/transfer/v1/token.ts +347 -0
  421. package/types/ibc/applications/transfer/v1/transfer.ts +140 -0
  422. package/types/ibc/applications/transfer/v1/tx.amino.ts +14 -0
  423. package/types/ibc/applications/transfer/v1/tx.registry.ts +53 -0
  424. package/types/ibc/applications/transfer/v1/tx.rpc.msg.ts +29 -0
  425. package/types/ibc/applications/transfer/v1/tx.ts +579 -0
  426. package/types/ibc/bundle.ts +265 -0
  427. package/types/ibc/client.ts +72 -0
  428. package/types/ibc/core/channel/v1/channel.ts +1455 -0
  429. package/types/ibc/core/channel/v1/genesis.ts +351 -0
  430. package/types/ibc/core/channel/v1/query.lcd.ts +135 -0
  431. package/types/ibc/core/channel/v1/query.rpc.Query.ts +200 -0
  432. package/types/ibc/core/channel/v1/query.ts +3943 -0
  433. package/types/ibc/core/channel/v1/tx.amino.ts +54 -0
  434. package/types/ibc/core/channel/v1/tx.registry.ts +197 -0
  435. package/types/ibc/core/channel/v1/tx.rpc.msg.ts +96 -0
  436. package/types/ibc/core/channel/v1/tx.ts +2558 -0
  437. package/types/ibc/core/channel/v2/genesis.ts +433 -0
  438. package/types/ibc/core/channel/v2/packet.ts +640 -0
  439. package/types/ibc/core/channel/v2/query.lcd.ts +77 -0
  440. package/types/ibc/core/channel/v2/query.rpc.Query.ts +108 -0
  441. package/types/ibc/core/channel/v2/query.ts +2075 -0
  442. package/types/ibc/core/channel/v2/tx.amino.ts +24 -0
  443. package/types/ibc/core/channel/v2/tx.registry.ts +89 -0
  444. package/types/ibc/core/channel/v2/tx.rpc.msg.ts +45 -0
  445. package/types/ibc/core/channel/v2/tx.ts +1003 -0
  446. package/types/ibc/core/client/v1/client.ts +636 -0
  447. package/types/ibc/core/client/v1/genesis.ts +448 -0
  448. package/types/ibc/core/client/v1/query.lcd.ts +102 -0
  449. package/types/ibc/core/client/v1/query.rpc.Query.ts +149 -0
  450. package/types/ibc/core/client/v1/query.ts +2588 -0
  451. package/types/ibc/core/client/v1/tx.amino.ts +44 -0
  452. package/types/ibc/core/client/v1/tx.registry.ts +161 -0
  453. package/types/ibc/core/client/v1/tx.rpc.msg.ts +77 -0
  454. package/types/ibc/core/client/v1/tx.ts +1796 -0
  455. package/types/ibc/core/client/v2/config.ts +115 -0
  456. package/types/ibc/core/client/v2/counterparty.ts +122 -0
  457. package/types/ibc/core/client/v2/genesis.ts +220 -0
  458. package/types/ibc/core/client/v2/query.lcd.ts +25 -0
  459. package/types/ibc/core/client/v2/query.rpc.Query.ts +42 -0
  460. package/types/ibc/core/client/v2/query.ts +402 -0
  461. package/types/ibc/core/client/v2/tx.amino.ts +14 -0
  462. package/types/ibc/core/client/v2/tx.registry.ts +53 -0
  463. package/types/ibc/core/client/v2/tx.rpc.msg.ts +29 -0
  464. package/types/ibc/core/client/v2/tx.ts +453 -0
  465. package/types/ibc/core/commitment/v1/commitment.ts +321 -0
  466. package/types/ibc/core/commitment/v2/commitment.ts +193 -0
  467. package/types/ibc/core/connection/v1/connection.ts +1056 -0
  468. package/types/ibc/core/connection/v1/genesis.ts +150 -0
  469. package/types/ibc/core/connection/v1/query.lcd.ts +61 -0
  470. package/types/ibc/core/connection/v1/query.rpc.Query.ts +97 -0
  471. package/types/ibc/core/connection/v1/query.ts +1472 -0
  472. package/types/ibc/core/connection/v1/tx.amino.ts +29 -0
  473. package/types/ibc/core/connection/v1/tx.registry.ts +107 -0
  474. package/types/ibc/core/connection/v1/tx.rpc.msg.ts +59 -0
  475. package/types/ibc/core/connection/v1/tx.ts +1456 -0
  476. package/types/ibc/core/types/v1/genesis.ts +191 -0
  477. package/types/ibc/lcd.ts +176 -0
  478. package/types/ibc/lightclients/solomachine/v2/solomachine.ts +2161 -0
  479. package/types/ibc/lightclients/solomachine/v3/solomachine.ts +1114 -0
  480. package/types/ibc/lightclients/tendermint/v1/tendermint.ts +891 -0
  481. package/types/ibc/lightclients/wasm/v1/genesis.ts +201 -0
  482. package/types/ibc/lightclients/wasm/v1/query.lcd.ts +34 -0
  483. package/types/ibc/lightclients/wasm/v1/query.rpc.Query.ts +44 -0
  484. package/types/ibc/lightclients/wasm/v1/query.ts +413 -0
  485. package/types/ibc/lightclients/wasm/v1/tx.amino.ts +19 -0
  486. package/types/ibc/lightclients/wasm/v1/tx.registry.ts +71 -0
  487. package/types/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +37 -0
  488. package/types/ibc/lightclients/wasm/v1/tx.ts +640 -0
  489. package/types/ibc/lightclients/wasm/v1/wasm.ts +444 -0
  490. package/types/ibc/rpc.query.ts +123 -0
  491. package/types/ibc/rpc.tx.ts +104 -0
  492. package/types/index.ts +25 -0
  493. package/types/tendermint/abci/types.ts +6565 -0
  494. package/types/tendermint/bundle.ts +33 -0
  495. package/types/tendermint/crypto/keys.ts +106 -0
  496. package/types/tendermint/crypto/proof.ts +576 -0
  497. package/types/tendermint/p2p/types.ts +523 -0
  498. package/types/tendermint/types/block.ts +134 -0
  499. package/types/tendermint/types/evidence.ts +491 -0
  500. package/types/tendermint/types/params.ts +839 -0
  501. package/types/tendermint/types/types.ts +2266 -0
  502. package/types/tendermint/types/validator.ts +399 -0
  503. package/types/tendermint/version/types.ts +228 -0
  504. package/types/utf8.ts +149 -0
  505. package/types/varint.ts +489 -0
  506. package/types/xion/bundle.ts +117 -0
  507. package/types/xion/client.ts +57 -0
  508. package/types/xion/feeabs/v1beta1/epoch.ts +386 -0
  509. package/types/xion/feeabs/v1beta1/genesis.ts +136 -0
  510. package/types/xion/feeabs/v1beta1/osmosisibc.ts +868 -0
  511. package/types/xion/feeabs/v1beta1/params.ts +189 -0
  512. package/types/xion/feeabs/v1beta1/proposal.ts +593 -0
  513. package/types/xion/feeabs/v1beta1/query.lcd.ts +37 -0
  514. package/types/xion/feeabs/v1beta1/query.rpc.Query.ts +64 -0
  515. package/types/xion/feeabs/v1beta1/query.ts +732 -0
  516. package/types/xion/feeabs/v1beta1/tx.amino.ts +39 -0
  517. package/types/xion/feeabs/v1beta1/tx.registry.ts +143 -0
  518. package/types/xion/feeabs/v1beta1/tx.rpc.msg.ts +72 -0
  519. package/types/xion/feeabs/v1beta1/tx.ts +1261 -0
  520. package/types/xion/globalfee/v1/genesis.ts +249 -0
  521. package/types/xion/globalfee/v1/query.lcd.ts +19 -0
  522. package/types/xion/globalfee/v1/query.rpc.Query.ts +31 -0
  523. package/types/xion/globalfee/v1/query.ts +178 -0
  524. package/types/xion/jwk/v1/audience.ts +224 -0
  525. package/types/xion/jwk/v1/genesis.ts +117 -0
  526. package/types/xion/jwk/v1/params.ts +113 -0
  527. package/types/xion/jwk/v1/query.lcd.ts +52 -0
  528. package/types/xion/jwk/v1/query.rpc.Query.ts +77 -0
  529. package/types/xion/jwk/v1/query.ts +1697 -0
  530. package/types/xion/jwk/v1/tx.amino.ts +29 -0
  531. package/types/xion/jwk/v1/tx.registry.ts +107 -0
  532. package/types/xion/jwk/v1/tx.rpc.msg.ts +53 -0
  533. package/types/xion/jwk/v1/tx.ts +1040 -0
  534. package/types/xion/lcd.ts +147 -0
  535. package/types/xion/mint/v1/event.ts +216 -0
  536. package/types/xion/mint/v1/genesis.ts +114 -0
  537. package/types/xion/mint/v1/mint.ts +307 -0
  538. package/types/xion/mint/v1/query.lcd.ts +31 -0
  539. package/types/xion/mint/v1/query.rpc.Query.ts +53 -0
  540. package/types/xion/mint/v1/query.ts +508 -0
  541. package/types/xion/mint/v1/tx.amino.ts +9 -0
  542. package/types/xion/mint/v1/tx.registry.ts +35 -0
  543. package/types/xion/mint/v1/tx.rpc.msg.ts +26 -0
  544. package/types/xion/mint/v1/tx.ts +222 -0
  545. package/types/xion/rpc.query.ts +105 -0
  546. package/types/xion/rpc.tx.ts +83 -0
  547. package/types/xion/v1/feegrant.ts +457 -0
  548. package/types/xion/v1/genesis.ts +116 -0
  549. package/types/xion/v1/query.rpc.Query.ts +64 -0
  550. package/types/xion/v1/query.ts +862 -0
  551. package/types/xion/v1/tx.amino.ts +24 -0
  552. package/types/xion/v1/tx.registry.ts +89 -0
  553. package/types/xion/v1/tx.rpc.msg.ts +57 -0
  554. package/types/xion/v1/tx.ts +793 -0
@@ -0,0 +1,2711 @@
1
+ //@ts-nocheck
2
+ import { AccessConfig, AccessConfigAmino, AccessConfigSDKType } from "./types";
3
+ import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
4
+ import { BinaryReader, BinaryWriter } from "../../../binary";
5
+ import { fromBase64, toBase64, toUtf8, fromUtf8 } from "@cosmjs/encoding";
6
+ import { bytesFromBase64, base64FromBytes } from "../../../helpers";
7
+ /**
8
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
9
+ * an explicit StoreCodeProposal. To submit WASM code to the system,
10
+ * a simple MsgStoreCode can be invoked from the x/gov module via
11
+ * a v1 governance proposal.
12
+ */
13
+ /** @deprecated */
14
+ export interface StoreCodeProposal {
15
+ $typeUrl?: "/cosmwasm.wasm.v1.StoreCodeProposal";
16
+ /** Title is a short summary */
17
+ title: string;
18
+ /** Description is a human readable text */
19
+ description: string;
20
+ /** RunAs is the address that is passed to the contract's environment as sender */
21
+ runAs: string;
22
+ /** WASMByteCode can be raw or gzip compressed */
23
+ wasmByteCode: Uint8Array;
24
+ /** InstantiatePermission to apply on contract creation, optional */
25
+ instantiatePermission?: AccessConfig;
26
+ /** UnpinCode code on upload, optional */
27
+ unpinCode: boolean;
28
+ /** Source is the URL where the code is hosted */
29
+ source: string;
30
+ /**
31
+ * Builder is the docker image used to build the code deterministically, used
32
+ * for smart contract verification
33
+ */
34
+ builder: string;
35
+ /**
36
+ * CodeHash is the SHA256 sum of the code outputted by builder, used for smart
37
+ * contract verification
38
+ */
39
+ codeHash: Uint8Array;
40
+ }
41
+ export interface StoreCodeProposalProtoMsg {
42
+ typeUrl: "/cosmwasm.wasm.v1.StoreCodeProposal";
43
+ value: Uint8Array;
44
+ }
45
+ /**
46
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
47
+ * an explicit StoreCodeProposal. To submit WASM code to the system,
48
+ * a simple MsgStoreCode can be invoked from the x/gov module via
49
+ * a v1 governance proposal.
50
+ * @name StoreCodeProposalAmino
51
+ * @package cosmwasm.wasm.v1
52
+ * @see proto type: cosmwasm.wasm.v1.StoreCodeProposal
53
+ * @deprecated
54
+ */
55
+ export interface StoreCodeProposalAmino {
56
+ /**
57
+ * Title is a short summary
58
+ */
59
+ title?: string;
60
+ /**
61
+ * Description is a human readable text
62
+ */
63
+ description?: string;
64
+ /**
65
+ * RunAs is the address that is passed to the contract's environment as sender
66
+ */
67
+ run_as?: string;
68
+ /**
69
+ * WASMByteCode can be raw or gzip compressed
70
+ */
71
+ wasm_byte_code?: string;
72
+ /**
73
+ * InstantiatePermission to apply on contract creation, optional
74
+ */
75
+ instantiate_permission?: AccessConfigAmino;
76
+ /**
77
+ * UnpinCode code on upload, optional
78
+ */
79
+ unpin_code?: boolean;
80
+ /**
81
+ * Source is the URL where the code is hosted
82
+ */
83
+ source?: string;
84
+ /**
85
+ * Builder is the docker image used to build the code deterministically, used
86
+ * for smart contract verification
87
+ */
88
+ builder?: string;
89
+ /**
90
+ * CodeHash is the SHA256 sum of the code outputted by builder, used for smart
91
+ * contract verification
92
+ */
93
+ code_hash?: string;
94
+ }
95
+ export interface StoreCodeProposalAminoMsg {
96
+ type: "wasm/StoreCodeProposal";
97
+ value: StoreCodeProposalAmino;
98
+ }
99
+ /**
100
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
101
+ * an explicit StoreCodeProposal. To submit WASM code to the system,
102
+ * a simple MsgStoreCode can be invoked from the x/gov module via
103
+ * a v1 governance proposal.
104
+ */
105
+ /** @deprecated */
106
+ export interface StoreCodeProposalSDKType {
107
+ $typeUrl?: "/cosmwasm.wasm.v1.StoreCodeProposal";
108
+ title: string;
109
+ description: string;
110
+ run_as: string;
111
+ wasm_byte_code: Uint8Array;
112
+ instantiate_permission?: AccessConfigSDKType;
113
+ unpin_code: boolean;
114
+ source: string;
115
+ builder: string;
116
+ code_hash: Uint8Array;
117
+ }
118
+ /**
119
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
120
+ * an explicit InstantiateContractProposal. To instantiate a contract,
121
+ * a simple MsgInstantiateContract can be invoked from the x/gov module via
122
+ * a v1 governance proposal.
123
+ */
124
+ /** @deprecated */
125
+ export interface InstantiateContractProposal {
126
+ $typeUrl?: "/cosmwasm.wasm.v1.InstantiateContractProposal";
127
+ /** Title is a short summary */
128
+ title: string;
129
+ /** Description is a human readable text */
130
+ description: string;
131
+ /** RunAs is the address that is passed to the contract's environment as sender */
132
+ runAs: string;
133
+ /** Admin is an optional address that can execute migrations */
134
+ admin: string;
135
+ /** CodeID is the reference to the stored WASM code */
136
+ codeId: bigint;
137
+ /** Label is optional metadata to be stored with a contract instance. */
138
+ label: string;
139
+ /** Msg json encoded message to be passed to the contract on instantiation */
140
+ msg: Uint8Array;
141
+ /** Funds coins that are transferred to the contract on instantiation */
142
+ funds: Coin[];
143
+ }
144
+ export interface InstantiateContractProposalProtoMsg {
145
+ typeUrl: "/cosmwasm.wasm.v1.InstantiateContractProposal";
146
+ value: Uint8Array;
147
+ }
148
+ /**
149
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
150
+ * an explicit InstantiateContractProposal. To instantiate a contract,
151
+ * a simple MsgInstantiateContract can be invoked from the x/gov module via
152
+ * a v1 governance proposal.
153
+ * @name InstantiateContractProposalAmino
154
+ * @package cosmwasm.wasm.v1
155
+ * @see proto type: cosmwasm.wasm.v1.InstantiateContractProposal
156
+ * @deprecated
157
+ */
158
+ export interface InstantiateContractProposalAmino {
159
+ /**
160
+ * Title is a short summary
161
+ */
162
+ title?: string;
163
+ /**
164
+ * Description is a human readable text
165
+ */
166
+ description?: string;
167
+ /**
168
+ * RunAs is the address that is passed to the contract's environment as sender
169
+ */
170
+ run_as?: string;
171
+ /**
172
+ * Admin is an optional address that can execute migrations
173
+ */
174
+ admin?: string;
175
+ /**
176
+ * CodeID is the reference to the stored WASM code
177
+ */
178
+ code_id?: string;
179
+ /**
180
+ * Label is optional metadata to be stored with a contract instance.
181
+ */
182
+ label?: string;
183
+ /**
184
+ * Msg json encoded message to be passed to the contract on instantiation
185
+ */
186
+ msg?: any;
187
+ /**
188
+ * Funds coins that are transferred to the contract on instantiation
189
+ */
190
+ funds: CoinAmino[];
191
+ }
192
+ export interface InstantiateContractProposalAminoMsg {
193
+ type: "wasm/InstantiateContractProposal";
194
+ value: InstantiateContractProposalAmino;
195
+ }
196
+ /**
197
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
198
+ * an explicit InstantiateContractProposal. To instantiate a contract,
199
+ * a simple MsgInstantiateContract can be invoked from the x/gov module via
200
+ * a v1 governance proposal.
201
+ */
202
+ /** @deprecated */
203
+ export interface InstantiateContractProposalSDKType {
204
+ $typeUrl?: "/cosmwasm.wasm.v1.InstantiateContractProposal";
205
+ title: string;
206
+ description: string;
207
+ run_as: string;
208
+ admin: string;
209
+ code_id: bigint;
210
+ label: string;
211
+ msg: Uint8Array;
212
+ funds: CoinSDKType[];
213
+ }
214
+ /**
215
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
216
+ * an explicit InstantiateContract2Proposal. To instantiate contract 2,
217
+ * a simple MsgInstantiateContract2 can be invoked from the x/gov module via
218
+ * a v1 governance proposal.
219
+ */
220
+ /** @deprecated */
221
+ export interface InstantiateContract2Proposal {
222
+ $typeUrl?: "/cosmwasm.wasm.v1.InstantiateContract2Proposal";
223
+ /** Title is a short summary */
224
+ title: string;
225
+ /** Description is a human readable text */
226
+ description: string;
227
+ /** RunAs is the address that is passed to the contract's environment as sender */
228
+ runAs: string;
229
+ /** Admin is an optional address that can execute migrations */
230
+ admin: string;
231
+ /** CodeID is the reference to the stored WASM code */
232
+ codeId: bigint;
233
+ /** Label is optional metadata to be stored with a contract instance. */
234
+ label: string;
235
+ /** Msg json encode message to be passed to the contract on instantiation */
236
+ msg: Uint8Array;
237
+ /** Funds coins that are transferred to the contract on instantiation */
238
+ funds: Coin[];
239
+ /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */
240
+ salt: Uint8Array;
241
+ /**
242
+ * FixMsg include the msg value into the hash for the predictable address.
243
+ * Default is false
244
+ */
245
+ fixMsg: boolean;
246
+ }
247
+ export interface InstantiateContract2ProposalProtoMsg {
248
+ typeUrl: "/cosmwasm.wasm.v1.InstantiateContract2Proposal";
249
+ value: Uint8Array;
250
+ }
251
+ /**
252
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
253
+ * an explicit InstantiateContract2Proposal. To instantiate contract 2,
254
+ * a simple MsgInstantiateContract2 can be invoked from the x/gov module via
255
+ * a v1 governance proposal.
256
+ * @name InstantiateContract2ProposalAmino
257
+ * @package cosmwasm.wasm.v1
258
+ * @see proto type: cosmwasm.wasm.v1.InstantiateContract2Proposal
259
+ * @deprecated
260
+ */
261
+ export interface InstantiateContract2ProposalAmino {
262
+ /**
263
+ * Title is a short summary
264
+ */
265
+ title?: string;
266
+ /**
267
+ * Description is a human readable text
268
+ */
269
+ description?: string;
270
+ /**
271
+ * RunAs is the address that is passed to the contract's environment as sender
272
+ */
273
+ run_as?: string;
274
+ /**
275
+ * Admin is an optional address that can execute migrations
276
+ */
277
+ admin?: string;
278
+ /**
279
+ * CodeID is the reference to the stored WASM code
280
+ */
281
+ code_id?: string;
282
+ /**
283
+ * Label is optional metadata to be stored with a contract instance.
284
+ */
285
+ label?: string;
286
+ /**
287
+ * Msg json encode message to be passed to the contract on instantiation
288
+ */
289
+ msg?: any;
290
+ /**
291
+ * Funds coins that are transferred to the contract on instantiation
292
+ */
293
+ funds: CoinAmino[];
294
+ /**
295
+ * Salt is an arbitrary value provided by the sender. Size can be 1 to 64.
296
+ */
297
+ salt?: string;
298
+ /**
299
+ * FixMsg include the msg value into the hash for the predictable address.
300
+ * Default is false
301
+ */
302
+ fix_msg?: boolean;
303
+ }
304
+ export interface InstantiateContract2ProposalAminoMsg {
305
+ type: "wasm/InstantiateContract2Proposal";
306
+ value: InstantiateContract2ProposalAmino;
307
+ }
308
+ /**
309
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
310
+ * an explicit InstantiateContract2Proposal. To instantiate contract 2,
311
+ * a simple MsgInstantiateContract2 can be invoked from the x/gov module via
312
+ * a v1 governance proposal.
313
+ */
314
+ /** @deprecated */
315
+ export interface InstantiateContract2ProposalSDKType {
316
+ $typeUrl?: "/cosmwasm.wasm.v1.InstantiateContract2Proposal";
317
+ title: string;
318
+ description: string;
319
+ run_as: string;
320
+ admin: string;
321
+ code_id: bigint;
322
+ label: string;
323
+ msg: Uint8Array;
324
+ funds: CoinSDKType[];
325
+ salt: Uint8Array;
326
+ fix_msg: boolean;
327
+ }
328
+ /**
329
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
330
+ * an explicit MigrateContractProposal. To migrate a contract,
331
+ * a simple MsgMigrateContract can be invoked from the x/gov module via
332
+ * a v1 governance proposal.
333
+ */
334
+ /** @deprecated */
335
+ export interface MigrateContractProposal {
336
+ $typeUrl?: "/cosmwasm.wasm.v1.MigrateContractProposal";
337
+ /** Title is a short summary */
338
+ title: string;
339
+ /** Description is a human readable text */
340
+ description: string;
341
+ /** Contract is the address of the smart contract */
342
+ contract: string;
343
+ /** CodeID references the new WASM code */
344
+ codeId: bigint;
345
+ /** Msg json encoded message to be passed to the contract on migration */
346
+ msg: Uint8Array;
347
+ }
348
+ export interface MigrateContractProposalProtoMsg {
349
+ typeUrl: "/cosmwasm.wasm.v1.MigrateContractProposal";
350
+ value: Uint8Array;
351
+ }
352
+ /**
353
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
354
+ * an explicit MigrateContractProposal. To migrate a contract,
355
+ * a simple MsgMigrateContract can be invoked from the x/gov module via
356
+ * a v1 governance proposal.
357
+ * @name MigrateContractProposalAmino
358
+ * @package cosmwasm.wasm.v1
359
+ * @see proto type: cosmwasm.wasm.v1.MigrateContractProposal
360
+ * @deprecated
361
+ */
362
+ export interface MigrateContractProposalAmino {
363
+ /**
364
+ * Title is a short summary
365
+ */
366
+ title?: string;
367
+ /**
368
+ * Description is a human readable text
369
+ */
370
+ description?: string;
371
+ /**
372
+ * Contract is the address of the smart contract
373
+ */
374
+ contract?: string;
375
+ /**
376
+ * CodeID references the new WASM code
377
+ */
378
+ code_id?: string;
379
+ /**
380
+ * Msg json encoded message to be passed to the contract on migration
381
+ */
382
+ msg?: any;
383
+ }
384
+ export interface MigrateContractProposalAminoMsg {
385
+ type: "wasm/MigrateContractProposal";
386
+ value: MigrateContractProposalAmino;
387
+ }
388
+ /**
389
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
390
+ * an explicit MigrateContractProposal. To migrate a contract,
391
+ * a simple MsgMigrateContract can be invoked from the x/gov module via
392
+ * a v1 governance proposal.
393
+ */
394
+ /** @deprecated */
395
+ export interface MigrateContractProposalSDKType {
396
+ $typeUrl?: "/cosmwasm.wasm.v1.MigrateContractProposal";
397
+ title: string;
398
+ description: string;
399
+ contract: string;
400
+ code_id: bigint;
401
+ msg: Uint8Array;
402
+ }
403
+ /**
404
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
405
+ * an explicit SudoContractProposal. To call sudo on a contract,
406
+ * a simple MsgSudoContract can be invoked from the x/gov module via
407
+ * a v1 governance proposal.
408
+ */
409
+ /** @deprecated */
410
+ export interface SudoContractProposal {
411
+ $typeUrl?: "/cosmwasm.wasm.v1.SudoContractProposal";
412
+ /** Title is a short summary */
413
+ title: string;
414
+ /** Description is a human readable text */
415
+ description: string;
416
+ /** Contract is the address of the smart contract */
417
+ contract: string;
418
+ /** Msg json encoded message to be passed to the contract as sudo */
419
+ msg: Uint8Array;
420
+ }
421
+ export interface SudoContractProposalProtoMsg {
422
+ typeUrl: "/cosmwasm.wasm.v1.SudoContractProposal";
423
+ value: Uint8Array;
424
+ }
425
+ /**
426
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
427
+ * an explicit SudoContractProposal. To call sudo on a contract,
428
+ * a simple MsgSudoContract can be invoked from the x/gov module via
429
+ * a v1 governance proposal.
430
+ * @name SudoContractProposalAmino
431
+ * @package cosmwasm.wasm.v1
432
+ * @see proto type: cosmwasm.wasm.v1.SudoContractProposal
433
+ * @deprecated
434
+ */
435
+ export interface SudoContractProposalAmino {
436
+ /**
437
+ * Title is a short summary
438
+ */
439
+ title?: string;
440
+ /**
441
+ * Description is a human readable text
442
+ */
443
+ description?: string;
444
+ /**
445
+ * Contract is the address of the smart contract
446
+ */
447
+ contract?: string;
448
+ /**
449
+ * Msg json encoded message to be passed to the contract as sudo
450
+ */
451
+ msg?: any;
452
+ }
453
+ export interface SudoContractProposalAminoMsg {
454
+ type: "wasm/SudoContractProposal";
455
+ value: SudoContractProposalAmino;
456
+ }
457
+ /**
458
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
459
+ * an explicit SudoContractProposal. To call sudo on a contract,
460
+ * a simple MsgSudoContract can be invoked from the x/gov module via
461
+ * a v1 governance proposal.
462
+ */
463
+ /** @deprecated */
464
+ export interface SudoContractProposalSDKType {
465
+ $typeUrl?: "/cosmwasm.wasm.v1.SudoContractProposal";
466
+ title: string;
467
+ description: string;
468
+ contract: string;
469
+ msg: Uint8Array;
470
+ }
471
+ /**
472
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
473
+ * an explicit ExecuteContractProposal. To call execute on a contract,
474
+ * a simple MsgExecuteContract can be invoked from the x/gov module via
475
+ * a v1 governance proposal.
476
+ */
477
+ /** @deprecated */
478
+ export interface ExecuteContractProposal {
479
+ $typeUrl?: "/cosmwasm.wasm.v1.ExecuteContractProposal";
480
+ /** Title is a short summary */
481
+ title: string;
482
+ /** Description is a human readable text */
483
+ description: string;
484
+ /** RunAs is the address that is passed to the contract's environment as sender */
485
+ runAs: string;
486
+ /** Contract is the address of the smart contract */
487
+ contract: string;
488
+ /** Msg json encoded message to be passed to the contract as execute */
489
+ msg: Uint8Array;
490
+ /** Funds coins that are transferred to the contract on instantiation */
491
+ funds: Coin[];
492
+ }
493
+ export interface ExecuteContractProposalProtoMsg {
494
+ typeUrl: "/cosmwasm.wasm.v1.ExecuteContractProposal";
495
+ value: Uint8Array;
496
+ }
497
+ /**
498
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
499
+ * an explicit ExecuteContractProposal. To call execute on a contract,
500
+ * a simple MsgExecuteContract can be invoked from the x/gov module via
501
+ * a v1 governance proposal.
502
+ * @name ExecuteContractProposalAmino
503
+ * @package cosmwasm.wasm.v1
504
+ * @see proto type: cosmwasm.wasm.v1.ExecuteContractProposal
505
+ * @deprecated
506
+ */
507
+ export interface ExecuteContractProposalAmino {
508
+ /**
509
+ * Title is a short summary
510
+ */
511
+ title?: string;
512
+ /**
513
+ * Description is a human readable text
514
+ */
515
+ description?: string;
516
+ /**
517
+ * RunAs is the address that is passed to the contract's environment as sender
518
+ */
519
+ run_as?: string;
520
+ /**
521
+ * Contract is the address of the smart contract
522
+ */
523
+ contract?: string;
524
+ /**
525
+ * Msg json encoded message to be passed to the contract as execute
526
+ */
527
+ msg?: any;
528
+ /**
529
+ * Funds coins that are transferred to the contract on instantiation
530
+ */
531
+ funds: CoinAmino[];
532
+ }
533
+ export interface ExecuteContractProposalAminoMsg {
534
+ type: "wasm/ExecuteContractProposal";
535
+ value: ExecuteContractProposalAmino;
536
+ }
537
+ /**
538
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
539
+ * an explicit ExecuteContractProposal. To call execute on a contract,
540
+ * a simple MsgExecuteContract can be invoked from the x/gov module via
541
+ * a v1 governance proposal.
542
+ */
543
+ /** @deprecated */
544
+ export interface ExecuteContractProposalSDKType {
545
+ $typeUrl?: "/cosmwasm.wasm.v1.ExecuteContractProposal";
546
+ title: string;
547
+ description: string;
548
+ run_as: string;
549
+ contract: string;
550
+ msg: Uint8Array;
551
+ funds: CoinSDKType[];
552
+ }
553
+ /**
554
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
555
+ * an explicit UpdateAdminProposal. To set an admin for a contract,
556
+ * a simple MsgUpdateAdmin can be invoked from the x/gov module via
557
+ * a v1 governance proposal.
558
+ */
559
+ /** @deprecated */
560
+ export interface UpdateAdminProposal {
561
+ $typeUrl?: "/cosmwasm.wasm.v1.UpdateAdminProposal";
562
+ /** Title is a short summary */
563
+ title: string;
564
+ /** Description is a human readable text */
565
+ description: string;
566
+ /** NewAdmin address to be set */
567
+ newAdmin: string;
568
+ /** Contract is the address of the smart contract */
569
+ contract: string;
570
+ }
571
+ export interface UpdateAdminProposalProtoMsg {
572
+ typeUrl: "/cosmwasm.wasm.v1.UpdateAdminProposal";
573
+ value: Uint8Array;
574
+ }
575
+ /**
576
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
577
+ * an explicit UpdateAdminProposal. To set an admin for a contract,
578
+ * a simple MsgUpdateAdmin can be invoked from the x/gov module via
579
+ * a v1 governance proposal.
580
+ * @name UpdateAdminProposalAmino
581
+ * @package cosmwasm.wasm.v1
582
+ * @see proto type: cosmwasm.wasm.v1.UpdateAdminProposal
583
+ * @deprecated
584
+ */
585
+ export interface UpdateAdminProposalAmino {
586
+ /**
587
+ * Title is a short summary
588
+ */
589
+ title?: string;
590
+ /**
591
+ * Description is a human readable text
592
+ */
593
+ description?: string;
594
+ /**
595
+ * NewAdmin address to be set
596
+ */
597
+ new_admin?: string;
598
+ /**
599
+ * Contract is the address of the smart contract
600
+ */
601
+ contract?: string;
602
+ }
603
+ export interface UpdateAdminProposalAminoMsg {
604
+ type: "wasm/UpdateAdminProposal";
605
+ value: UpdateAdminProposalAmino;
606
+ }
607
+ /**
608
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
609
+ * an explicit UpdateAdminProposal. To set an admin for a contract,
610
+ * a simple MsgUpdateAdmin can be invoked from the x/gov module via
611
+ * a v1 governance proposal.
612
+ */
613
+ /** @deprecated */
614
+ export interface UpdateAdminProposalSDKType {
615
+ $typeUrl?: "/cosmwasm.wasm.v1.UpdateAdminProposal";
616
+ title: string;
617
+ description: string;
618
+ new_admin: string;
619
+ contract: string;
620
+ }
621
+ /**
622
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
623
+ * an explicit ClearAdminProposal. To clear the admin of a contract,
624
+ * a simple MsgClearAdmin can be invoked from the x/gov module via
625
+ * a v1 governance proposal.
626
+ */
627
+ /** @deprecated */
628
+ export interface ClearAdminProposal {
629
+ $typeUrl?: "/cosmwasm.wasm.v1.ClearAdminProposal";
630
+ /** Title is a short summary */
631
+ title: string;
632
+ /** Description is a human readable text */
633
+ description: string;
634
+ /** Contract is the address of the smart contract */
635
+ contract: string;
636
+ }
637
+ export interface ClearAdminProposalProtoMsg {
638
+ typeUrl: "/cosmwasm.wasm.v1.ClearAdminProposal";
639
+ value: Uint8Array;
640
+ }
641
+ /**
642
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
643
+ * an explicit ClearAdminProposal. To clear the admin of a contract,
644
+ * a simple MsgClearAdmin can be invoked from the x/gov module via
645
+ * a v1 governance proposal.
646
+ * @name ClearAdminProposalAmino
647
+ * @package cosmwasm.wasm.v1
648
+ * @see proto type: cosmwasm.wasm.v1.ClearAdminProposal
649
+ * @deprecated
650
+ */
651
+ export interface ClearAdminProposalAmino {
652
+ /**
653
+ * Title is a short summary
654
+ */
655
+ title?: string;
656
+ /**
657
+ * Description is a human readable text
658
+ */
659
+ description?: string;
660
+ /**
661
+ * Contract is the address of the smart contract
662
+ */
663
+ contract?: string;
664
+ }
665
+ export interface ClearAdminProposalAminoMsg {
666
+ type: "wasm/ClearAdminProposal";
667
+ value: ClearAdminProposalAmino;
668
+ }
669
+ /**
670
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
671
+ * an explicit ClearAdminProposal. To clear the admin of a contract,
672
+ * a simple MsgClearAdmin can be invoked from the x/gov module via
673
+ * a v1 governance proposal.
674
+ */
675
+ /** @deprecated */
676
+ export interface ClearAdminProposalSDKType {
677
+ $typeUrl?: "/cosmwasm.wasm.v1.ClearAdminProposal";
678
+ title: string;
679
+ description: string;
680
+ contract: string;
681
+ }
682
+ /**
683
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
684
+ * an explicit PinCodesProposal. To pin a set of code ids in the wasmvm
685
+ * cache, a simple MsgPinCodes can be invoked from the x/gov module via
686
+ * a v1 governance proposal.
687
+ */
688
+ /** @deprecated */
689
+ export interface PinCodesProposal {
690
+ $typeUrl?: "/cosmwasm.wasm.v1.PinCodesProposal";
691
+ /** Title is a short summary */
692
+ title: string;
693
+ /** Description is a human readable text */
694
+ description: string;
695
+ /** CodeIDs references the new WASM codes */
696
+ codeIds: bigint[];
697
+ }
698
+ export interface PinCodesProposalProtoMsg {
699
+ typeUrl: "/cosmwasm.wasm.v1.PinCodesProposal";
700
+ value: Uint8Array;
701
+ }
702
+ /**
703
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
704
+ * an explicit PinCodesProposal. To pin a set of code ids in the wasmvm
705
+ * cache, a simple MsgPinCodes can be invoked from the x/gov module via
706
+ * a v1 governance proposal.
707
+ * @name PinCodesProposalAmino
708
+ * @package cosmwasm.wasm.v1
709
+ * @see proto type: cosmwasm.wasm.v1.PinCodesProposal
710
+ * @deprecated
711
+ */
712
+ export interface PinCodesProposalAmino {
713
+ /**
714
+ * Title is a short summary
715
+ */
716
+ title?: string;
717
+ /**
718
+ * Description is a human readable text
719
+ */
720
+ description?: string;
721
+ /**
722
+ * CodeIDs references the new WASM codes
723
+ */
724
+ code_ids?: string[];
725
+ }
726
+ export interface PinCodesProposalAminoMsg {
727
+ type: "wasm/PinCodesProposal";
728
+ value: PinCodesProposalAmino;
729
+ }
730
+ /**
731
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
732
+ * an explicit PinCodesProposal. To pin a set of code ids in the wasmvm
733
+ * cache, a simple MsgPinCodes can be invoked from the x/gov module via
734
+ * a v1 governance proposal.
735
+ */
736
+ /** @deprecated */
737
+ export interface PinCodesProposalSDKType {
738
+ $typeUrl?: "/cosmwasm.wasm.v1.PinCodesProposal";
739
+ title: string;
740
+ description: string;
741
+ code_ids: bigint[];
742
+ }
743
+ /**
744
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
745
+ * an explicit UnpinCodesProposal. To unpin a set of code ids in the wasmvm
746
+ * cache, a simple MsgUnpinCodes can be invoked from the x/gov module via
747
+ * a v1 governance proposal.
748
+ */
749
+ /** @deprecated */
750
+ export interface UnpinCodesProposal {
751
+ $typeUrl?: "/cosmwasm.wasm.v1.UnpinCodesProposal";
752
+ /** Title is a short summary */
753
+ title: string;
754
+ /** Description is a human readable text */
755
+ description: string;
756
+ /** CodeIDs references the WASM codes */
757
+ codeIds: bigint[];
758
+ }
759
+ export interface UnpinCodesProposalProtoMsg {
760
+ typeUrl: "/cosmwasm.wasm.v1.UnpinCodesProposal";
761
+ value: Uint8Array;
762
+ }
763
+ /**
764
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
765
+ * an explicit UnpinCodesProposal. To unpin a set of code ids in the wasmvm
766
+ * cache, a simple MsgUnpinCodes can be invoked from the x/gov module via
767
+ * a v1 governance proposal.
768
+ * @name UnpinCodesProposalAmino
769
+ * @package cosmwasm.wasm.v1
770
+ * @see proto type: cosmwasm.wasm.v1.UnpinCodesProposal
771
+ * @deprecated
772
+ */
773
+ export interface UnpinCodesProposalAmino {
774
+ /**
775
+ * Title is a short summary
776
+ */
777
+ title?: string;
778
+ /**
779
+ * Description is a human readable text
780
+ */
781
+ description?: string;
782
+ /**
783
+ * CodeIDs references the WASM codes
784
+ */
785
+ code_ids?: string[];
786
+ }
787
+ export interface UnpinCodesProposalAminoMsg {
788
+ type: "wasm/UnpinCodesProposal";
789
+ value: UnpinCodesProposalAmino;
790
+ }
791
+ /**
792
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
793
+ * an explicit UnpinCodesProposal. To unpin a set of code ids in the wasmvm
794
+ * cache, a simple MsgUnpinCodes can be invoked from the x/gov module via
795
+ * a v1 governance proposal.
796
+ */
797
+ /** @deprecated */
798
+ export interface UnpinCodesProposalSDKType {
799
+ $typeUrl?: "/cosmwasm.wasm.v1.UnpinCodesProposal";
800
+ title: string;
801
+ description: string;
802
+ code_ids: bigint[];
803
+ }
804
+ /**
805
+ * AccessConfigUpdate contains the code id and the access config to be
806
+ * applied.
807
+ */
808
+ export interface AccessConfigUpdate {
809
+ /** CodeID is the reference to the stored WASM code to be updated */
810
+ codeId: bigint;
811
+ /** InstantiatePermission to apply to the set of code ids */
812
+ instantiatePermission: AccessConfig;
813
+ }
814
+ export interface AccessConfigUpdateProtoMsg {
815
+ typeUrl: "/cosmwasm.wasm.v1.AccessConfigUpdate";
816
+ value: Uint8Array;
817
+ }
818
+ /**
819
+ * AccessConfigUpdate contains the code id and the access config to be
820
+ * applied.
821
+ * @name AccessConfigUpdateAmino
822
+ * @package cosmwasm.wasm.v1
823
+ * @see proto type: cosmwasm.wasm.v1.AccessConfigUpdate
824
+ */
825
+ export interface AccessConfigUpdateAmino {
826
+ /**
827
+ * CodeID is the reference to the stored WASM code to be updated
828
+ */
829
+ code_id?: string;
830
+ /**
831
+ * InstantiatePermission to apply to the set of code ids
832
+ */
833
+ instantiate_permission: AccessConfigAmino;
834
+ }
835
+ export interface AccessConfigUpdateAminoMsg {
836
+ type: "wasm/AccessConfigUpdate";
837
+ value: AccessConfigUpdateAmino;
838
+ }
839
+ /**
840
+ * AccessConfigUpdate contains the code id and the access config to be
841
+ * applied.
842
+ */
843
+ export interface AccessConfigUpdateSDKType {
844
+ code_id: bigint;
845
+ instantiate_permission: AccessConfigSDKType;
846
+ }
847
+ /**
848
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
849
+ * an explicit UpdateInstantiateConfigProposal. To update instantiate config
850
+ * to a set of code ids, a simple MsgUpdateInstantiateConfig can be invoked from
851
+ * the x/gov module via a v1 governance proposal.
852
+ */
853
+ /** @deprecated */
854
+ export interface UpdateInstantiateConfigProposal {
855
+ $typeUrl?: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal";
856
+ /** Title is a short summary */
857
+ title: string;
858
+ /** Description is a human readable text */
859
+ description: string;
860
+ /**
861
+ * AccessConfigUpdates contains the list of code ids and the access config
862
+ * to be applied.
863
+ */
864
+ accessConfigUpdates: AccessConfigUpdate[];
865
+ }
866
+ export interface UpdateInstantiateConfigProposalProtoMsg {
867
+ typeUrl: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal";
868
+ value: Uint8Array;
869
+ }
870
+ /**
871
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
872
+ * an explicit UpdateInstantiateConfigProposal. To update instantiate config
873
+ * to a set of code ids, a simple MsgUpdateInstantiateConfig can be invoked from
874
+ * the x/gov module via a v1 governance proposal.
875
+ * @name UpdateInstantiateConfigProposalAmino
876
+ * @package cosmwasm.wasm.v1
877
+ * @see proto type: cosmwasm.wasm.v1.UpdateInstantiateConfigProposal
878
+ * @deprecated
879
+ */
880
+ export interface UpdateInstantiateConfigProposalAmino {
881
+ /**
882
+ * Title is a short summary
883
+ */
884
+ title?: string;
885
+ /**
886
+ * Description is a human readable text
887
+ */
888
+ description?: string;
889
+ /**
890
+ * AccessConfigUpdates contains the list of code ids and the access config
891
+ * to be applied.
892
+ */
893
+ access_config_updates: AccessConfigUpdateAmino[];
894
+ }
895
+ export interface UpdateInstantiateConfigProposalAminoMsg {
896
+ type: "wasm/UpdateInstantiateConfigProposal";
897
+ value: UpdateInstantiateConfigProposalAmino;
898
+ }
899
+ /**
900
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
901
+ * an explicit UpdateInstantiateConfigProposal. To update instantiate config
902
+ * to a set of code ids, a simple MsgUpdateInstantiateConfig can be invoked from
903
+ * the x/gov module via a v1 governance proposal.
904
+ */
905
+ /** @deprecated */
906
+ export interface UpdateInstantiateConfigProposalSDKType {
907
+ $typeUrl?: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal";
908
+ title: string;
909
+ description: string;
910
+ access_config_updates: AccessConfigUpdateSDKType[];
911
+ }
912
+ /**
913
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
914
+ * an explicit StoreAndInstantiateContractProposal. To store and instantiate
915
+ * the contract, a simple MsgStoreAndInstantiateContract can be invoked from
916
+ * the x/gov module via a v1 governance proposal.
917
+ */
918
+ /** @deprecated */
919
+ export interface StoreAndInstantiateContractProposal {
920
+ $typeUrl?: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal";
921
+ /** Title is a short summary */
922
+ title: string;
923
+ /** Description is a human readable text */
924
+ description: string;
925
+ /** RunAs is the address that is passed to the contract's environment as sender */
926
+ runAs: string;
927
+ /** WASMByteCode can be raw or gzip compressed */
928
+ wasmByteCode: Uint8Array;
929
+ /** InstantiatePermission to apply on contract creation, optional */
930
+ instantiatePermission?: AccessConfig;
931
+ /** UnpinCode code on upload, optional */
932
+ unpinCode: boolean;
933
+ /** Admin is an optional address that can execute migrations */
934
+ admin: string;
935
+ /** Label is optional metadata to be stored with a contract instance. */
936
+ label: string;
937
+ /** Msg json encoded message to be passed to the contract on instantiation */
938
+ msg: Uint8Array;
939
+ /** Funds coins that are transferred to the contract on instantiation */
940
+ funds: Coin[];
941
+ /** Source is the URL where the code is hosted */
942
+ source: string;
943
+ /**
944
+ * Builder is the docker image used to build the code deterministically, used
945
+ * for smart contract verification
946
+ */
947
+ builder: string;
948
+ /**
949
+ * CodeHash is the SHA256 sum of the code outputted by builder, used for smart
950
+ * contract verification
951
+ */
952
+ codeHash: Uint8Array;
953
+ }
954
+ export interface StoreAndInstantiateContractProposalProtoMsg {
955
+ typeUrl: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal";
956
+ value: Uint8Array;
957
+ }
958
+ /**
959
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
960
+ * an explicit StoreAndInstantiateContractProposal. To store and instantiate
961
+ * the contract, a simple MsgStoreAndInstantiateContract can be invoked from
962
+ * the x/gov module via a v1 governance proposal.
963
+ * @name StoreAndInstantiateContractProposalAmino
964
+ * @package cosmwasm.wasm.v1
965
+ * @see proto type: cosmwasm.wasm.v1.StoreAndInstantiateContractProposal
966
+ * @deprecated
967
+ */
968
+ export interface StoreAndInstantiateContractProposalAmino {
969
+ /**
970
+ * Title is a short summary
971
+ */
972
+ title?: string;
973
+ /**
974
+ * Description is a human readable text
975
+ */
976
+ description?: string;
977
+ /**
978
+ * RunAs is the address that is passed to the contract's environment as sender
979
+ */
980
+ run_as?: string;
981
+ /**
982
+ * WASMByteCode can be raw or gzip compressed
983
+ */
984
+ wasm_byte_code?: string;
985
+ /**
986
+ * InstantiatePermission to apply on contract creation, optional
987
+ */
988
+ instantiate_permission?: AccessConfigAmino;
989
+ /**
990
+ * UnpinCode code on upload, optional
991
+ */
992
+ unpin_code?: boolean;
993
+ /**
994
+ * Admin is an optional address that can execute migrations
995
+ */
996
+ admin?: string;
997
+ /**
998
+ * Label is optional metadata to be stored with a contract instance.
999
+ */
1000
+ label?: string;
1001
+ /**
1002
+ * Msg json encoded message to be passed to the contract on instantiation
1003
+ */
1004
+ msg?: any;
1005
+ /**
1006
+ * Funds coins that are transferred to the contract on instantiation
1007
+ */
1008
+ funds: CoinAmino[];
1009
+ /**
1010
+ * Source is the URL where the code is hosted
1011
+ */
1012
+ source?: string;
1013
+ /**
1014
+ * Builder is the docker image used to build the code deterministically, used
1015
+ * for smart contract verification
1016
+ */
1017
+ builder?: string;
1018
+ /**
1019
+ * CodeHash is the SHA256 sum of the code outputted by builder, used for smart
1020
+ * contract verification
1021
+ */
1022
+ code_hash?: string;
1023
+ }
1024
+ export interface StoreAndInstantiateContractProposalAminoMsg {
1025
+ type: "wasm/StoreAndInstantiateContractProposal";
1026
+ value: StoreAndInstantiateContractProposalAmino;
1027
+ }
1028
+ /**
1029
+ * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for
1030
+ * an explicit StoreAndInstantiateContractProposal. To store and instantiate
1031
+ * the contract, a simple MsgStoreAndInstantiateContract can be invoked from
1032
+ * the x/gov module via a v1 governance proposal.
1033
+ */
1034
+ /** @deprecated */
1035
+ export interface StoreAndInstantiateContractProposalSDKType {
1036
+ $typeUrl?: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal";
1037
+ title: string;
1038
+ description: string;
1039
+ run_as: string;
1040
+ wasm_byte_code: Uint8Array;
1041
+ instantiate_permission?: AccessConfigSDKType;
1042
+ unpin_code: boolean;
1043
+ admin: string;
1044
+ label: string;
1045
+ msg: Uint8Array;
1046
+ funds: CoinSDKType[];
1047
+ source: string;
1048
+ builder: string;
1049
+ code_hash: Uint8Array;
1050
+ }
1051
+ function createBaseStoreCodeProposal(): StoreCodeProposal {
1052
+ return {
1053
+ $typeUrl: "/cosmwasm.wasm.v1.StoreCodeProposal",
1054
+ title: "",
1055
+ description: "",
1056
+ runAs: "",
1057
+ wasmByteCode: new Uint8Array(),
1058
+ instantiatePermission: undefined,
1059
+ unpinCode: false,
1060
+ source: "",
1061
+ builder: "",
1062
+ codeHash: new Uint8Array()
1063
+ };
1064
+ }
1065
+ export const StoreCodeProposal = {
1066
+ typeUrl: "/cosmwasm.wasm.v1.StoreCodeProposal",
1067
+ encode(message: StoreCodeProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1068
+ if (message.title !== "") {
1069
+ writer.uint32(10).string(message.title);
1070
+ }
1071
+ if (message.description !== "") {
1072
+ writer.uint32(18).string(message.description);
1073
+ }
1074
+ if (message.runAs !== "") {
1075
+ writer.uint32(26).string(message.runAs);
1076
+ }
1077
+ if (message.wasmByteCode.length !== 0) {
1078
+ writer.uint32(34).bytes(message.wasmByteCode);
1079
+ }
1080
+ if (message.instantiatePermission !== undefined) {
1081
+ AccessConfig.encode(message.instantiatePermission, writer.uint32(58).fork()).ldelim();
1082
+ }
1083
+ if (message.unpinCode === true) {
1084
+ writer.uint32(64).bool(message.unpinCode);
1085
+ }
1086
+ if (message.source !== "") {
1087
+ writer.uint32(74).string(message.source);
1088
+ }
1089
+ if (message.builder !== "") {
1090
+ writer.uint32(82).string(message.builder);
1091
+ }
1092
+ if (message.codeHash.length !== 0) {
1093
+ writer.uint32(90).bytes(message.codeHash);
1094
+ }
1095
+ return writer;
1096
+ },
1097
+ decode(input: BinaryReader | Uint8Array, length?: number): StoreCodeProposal {
1098
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1099
+ let end = length === undefined ? reader.len : reader.pos + length;
1100
+ const message = createBaseStoreCodeProposal();
1101
+ while (reader.pos < end) {
1102
+ const tag = reader.uint32();
1103
+ switch (tag >>> 3) {
1104
+ case 1:
1105
+ message.title = reader.string();
1106
+ break;
1107
+ case 2:
1108
+ message.description = reader.string();
1109
+ break;
1110
+ case 3:
1111
+ message.runAs = reader.string();
1112
+ break;
1113
+ case 4:
1114
+ message.wasmByteCode = reader.bytes();
1115
+ break;
1116
+ case 7:
1117
+ message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
1118
+ break;
1119
+ case 8:
1120
+ message.unpinCode = reader.bool();
1121
+ break;
1122
+ case 9:
1123
+ message.source = reader.string();
1124
+ break;
1125
+ case 10:
1126
+ message.builder = reader.string();
1127
+ break;
1128
+ case 11:
1129
+ message.codeHash = reader.bytes();
1130
+ break;
1131
+ default:
1132
+ reader.skipType(tag & 7);
1133
+ break;
1134
+ }
1135
+ }
1136
+ return message;
1137
+ },
1138
+ fromPartial(object: Partial<StoreCodeProposal>): StoreCodeProposal {
1139
+ const message = createBaseStoreCodeProposal();
1140
+ message.title = object.title ?? "";
1141
+ message.description = object.description ?? "";
1142
+ message.runAs = object.runAs ?? "";
1143
+ message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
1144
+ message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
1145
+ message.unpinCode = object.unpinCode ?? false;
1146
+ message.source = object.source ?? "";
1147
+ message.builder = object.builder ?? "";
1148
+ message.codeHash = object.codeHash ?? new Uint8Array();
1149
+ return message;
1150
+ },
1151
+ fromAmino(object: StoreCodeProposalAmino): StoreCodeProposal {
1152
+ const message = createBaseStoreCodeProposal();
1153
+ if (object.title !== undefined && object.title !== null) {
1154
+ message.title = object.title;
1155
+ }
1156
+ if (object.description !== undefined && object.description !== null) {
1157
+ message.description = object.description;
1158
+ }
1159
+ if (object.run_as !== undefined && object.run_as !== null) {
1160
+ message.runAs = object.run_as;
1161
+ }
1162
+ if (object.wasm_byte_code !== undefined && object.wasm_byte_code !== null) {
1163
+ message.wasmByteCode = fromBase64(object.wasm_byte_code);
1164
+ }
1165
+ if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
1166
+ message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
1167
+ }
1168
+ if (object.unpin_code !== undefined && object.unpin_code !== null) {
1169
+ message.unpinCode = object.unpin_code;
1170
+ }
1171
+ if (object.source !== undefined && object.source !== null) {
1172
+ message.source = object.source;
1173
+ }
1174
+ if (object.builder !== undefined && object.builder !== null) {
1175
+ message.builder = object.builder;
1176
+ }
1177
+ if (object.code_hash !== undefined && object.code_hash !== null) {
1178
+ message.codeHash = bytesFromBase64(object.code_hash);
1179
+ }
1180
+ return message;
1181
+ },
1182
+ toAmino(message: StoreCodeProposal): StoreCodeProposalAmino {
1183
+ const obj: any = {};
1184
+ obj.title = message.title === "" ? undefined : message.title;
1185
+ obj.description = message.description === "" ? undefined : message.description;
1186
+ obj.run_as = message.runAs === "" ? undefined : message.runAs;
1187
+ obj.wasm_byte_code = message.wasmByteCode ? toBase64(message.wasmByteCode) : undefined;
1188
+ obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined;
1189
+ obj.unpin_code = message.unpinCode === false ? undefined : message.unpinCode;
1190
+ obj.source = message.source === "" ? undefined : message.source;
1191
+ obj.builder = message.builder === "" ? undefined : message.builder;
1192
+ obj.code_hash = message.codeHash ? base64FromBytes(message.codeHash) : undefined;
1193
+ return obj;
1194
+ },
1195
+ fromAminoMsg(object: StoreCodeProposalAminoMsg): StoreCodeProposal {
1196
+ return StoreCodeProposal.fromAmino(object.value);
1197
+ },
1198
+ toAminoMsg(message: StoreCodeProposal): StoreCodeProposalAminoMsg {
1199
+ return {
1200
+ type: "wasm/StoreCodeProposal",
1201
+ value: StoreCodeProposal.toAmino(message)
1202
+ };
1203
+ },
1204
+ fromProtoMsg(message: StoreCodeProposalProtoMsg): StoreCodeProposal {
1205
+ return StoreCodeProposal.decode(message.value);
1206
+ },
1207
+ toProto(message: StoreCodeProposal): Uint8Array {
1208
+ return StoreCodeProposal.encode(message).finish();
1209
+ },
1210
+ toProtoMsg(message: StoreCodeProposal): StoreCodeProposalProtoMsg {
1211
+ return {
1212
+ typeUrl: "/cosmwasm.wasm.v1.StoreCodeProposal",
1213
+ value: StoreCodeProposal.encode(message).finish()
1214
+ };
1215
+ }
1216
+ };
1217
+ function createBaseInstantiateContractProposal(): InstantiateContractProposal {
1218
+ return {
1219
+ $typeUrl: "/cosmwasm.wasm.v1.InstantiateContractProposal",
1220
+ title: "",
1221
+ description: "",
1222
+ runAs: "",
1223
+ admin: "",
1224
+ codeId: BigInt(0),
1225
+ label: "",
1226
+ msg: new Uint8Array(),
1227
+ funds: []
1228
+ };
1229
+ }
1230
+ export const InstantiateContractProposal = {
1231
+ typeUrl: "/cosmwasm.wasm.v1.InstantiateContractProposal",
1232
+ encode(message: InstantiateContractProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1233
+ if (message.title !== "") {
1234
+ writer.uint32(10).string(message.title);
1235
+ }
1236
+ if (message.description !== "") {
1237
+ writer.uint32(18).string(message.description);
1238
+ }
1239
+ if (message.runAs !== "") {
1240
+ writer.uint32(26).string(message.runAs);
1241
+ }
1242
+ if (message.admin !== "") {
1243
+ writer.uint32(34).string(message.admin);
1244
+ }
1245
+ if (message.codeId !== BigInt(0)) {
1246
+ writer.uint32(40).uint64(message.codeId);
1247
+ }
1248
+ if (message.label !== "") {
1249
+ writer.uint32(50).string(message.label);
1250
+ }
1251
+ if (message.msg.length !== 0) {
1252
+ writer.uint32(58).bytes(message.msg);
1253
+ }
1254
+ for (const v of message.funds) {
1255
+ Coin.encode(v!, writer.uint32(66).fork()).ldelim();
1256
+ }
1257
+ return writer;
1258
+ },
1259
+ decode(input: BinaryReader | Uint8Array, length?: number): InstantiateContractProposal {
1260
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1261
+ let end = length === undefined ? reader.len : reader.pos + length;
1262
+ const message = createBaseInstantiateContractProposal();
1263
+ while (reader.pos < end) {
1264
+ const tag = reader.uint32();
1265
+ switch (tag >>> 3) {
1266
+ case 1:
1267
+ message.title = reader.string();
1268
+ break;
1269
+ case 2:
1270
+ message.description = reader.string();
1271
+ break;
1272
+ case 3:
1273
+ message.runAs = reader.string();
1274
+ break;
1275
+ case 4:
1276
+ message.admin = reader.string();
1277
+ break;
1278
+ case 5:
1279
+ message.codeId = reader.uint64();
1280
+ break;
1281
+ case 6:
1282
+ message.label = reader.string();
1283
+ break;
1284
+ case 7:
1285
+ message.msg = reader.bytes();
1286
+ break;
1287
+ case 8:
1288
+ message.funds.push(Coin.decode(reader, reader.uint32()));
1289
+ break;
1290
+ default:
1291
+ reader.skipType(tag & 7);
1292
+ break;
1293
+ }
1294
+ }
1295
+ return message;
1296
+ },
1297
+ fromPartial(object: Partial<InstantiateContractProposal>): InstantiateContractProposal {
1298
+ const message = createBaseInstantiateContractProposal();
1299
+ message.title = object.title ?? "";
1300
+ message.description = object.description ?? "";
1301
+ message.runAs = object.runAs ?? "";
1302
+ message.admin = object.admin ?? "";
1303
+ message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
1304
+ message.label = object.label ?? "";
1305
+ message.msg = object.msg ?? new Uint8Array();
1306
+ message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
1307
+ return message;
1308
+ },
1309
+ fromAmino(object: InstantiateContractProposalAmino): InstantiateContractProposal {
1310
+ const message = createBaseInstantiateContractProposal();
1311
+ if (object.title !== undefined && object.title !== null) {
1312
+ message.title = object.title;
1313
+ }
1314
+ if (object.description !== undefined && object.description !== null) {
1315
+ message.description = object.description;
1316
+ }
1317
+ if (object.run_as !== undefined && object.run_as !== null) {
1318
+ message.runAs = object.run_as;
1319
+ }
1320
+ if (object.admin !== undefined && object.admin !== null) {
1321
+ message.admin = object.admin;
1322
+ }
1323
+ if (object.code_id !== undefined && object.code_id !== null) {
1324
+ message.codeId = BigInt(object.code_id);
1325
+ }
1326
+ if (object.label !== undefined && object.label !== null) {
1327
+ message.label = object.label;
1328
+ }
1329
+ if (object.msg !== undefined && object.msg !== null) {
1330
+ message.msg = toUtf8(JSON.stringify(object.msg));
1331
+ }
1332
+ message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
1333
+ return message;
1334
+ },
1335
+ toAmino(message: InstantiateContractProposal): InstantiateContractProposalAmino {
1336
+ const obj: any = {};
1337
+ obj.title = message.title === "" ? undefined : message.title;
1338
+ obj.description = message.description === "" ? undefined : message.description;
1339
+ obj.run_as = message.runAs === "" ? undefined : message.runAs;
1340
+ obj.admin = message.admin === "" ? undefined : message.admin;
1341
+ obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
1342
+ obj.label = message.label === "" ? undefined : message.label;
1343
+ obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
1344
+ if (message.funds) {
1345
+ obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
1346
+ } else {
1347
+ obj.funds = message.funds;
1348
+ }
1349
+ return obj;
1350
+ },
1351
+ fromAminoMsg(object: InstantiateContractProposalAminoMsg): InstantiateContractProposal {
1352
+ return InstantiateContractProposal.fromAmino(object.value);
1353
+ },
1354
+ toAminoMsg(message: InstantiateContractProposal): InstantiateContractProposalAminoMsg {
1355
+ return {
1356
+ type: "wasm/InstantiateContractProposal",
1357
+ value: InstantiateContractProposal.toAmino(message)
1358
+ };
1359
+ },
1360
+ fromProtoMsg(message: InstantiateContractProposalProtoMsg): InstantiateContractProposal {
1361
+ return InstantiateContractProposal.decode(message.value);
1362
+ },
1363
+ toProto(message: InstantiateContractProposal): Uint8Array {
1364
+ return InstantiateContractProposal.encode(message).finish();
1365
+ },
1366
+ toProtoMsg(message: InstantiateContractProposal): InstantiateContractProposalProtoMsg {
1367
+ return {
1368
+ typeUrl: "/cosmwasm.wasm.v1.InstantiateContractProposal",
1369
+ value: InstantiateContractProposal.encode(message).finish()
1370
+ };
1371
+ }
1372
+ };
1373
+ function createBaseInstantiateContract2Proposal(): InstantiateContract2Proposal {
1374
+ return {
1375
+ $typeUrl: "/cosmwasm.wasm.v1.InstantiateContract2Proposal",
1376
+ title: "",
1377
+ description: "",
1378
+ runAs: "",
1379
+ admin: "",
1380
+ codeId: BigInt(0),
1381
+ label: "",
1382
+ msg: new Uint8Array(),
1383
+ funds: [],
1384
+ salt: new Uint8Array(),
1385
+ fixMsg: false
1386
+ };
1387
+ }
1388
+ export const InstantiateContract2Proposal = {
1389
+ typeUrl: "/cosmwasm.wasm.v1.InstantiateContract2Proposal",
1390
+ encode(message: InstantiateContract2Proposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1391
+ if (message.title !== "") {
1392
+ writer.uint32(10).string(message.title);
1393
+ }
1394
+ if (message.description !== "") {
1395
+ writer.uint32(18).string(message.description);
1396
+ }
1397
+ if (message.runAs !== "") {
1398
+ writer.uint32(26).string(message.runAs);
1399
+ }
1400
+ if (message.admin !== "") {
1401
+ writer.uint32(34).string(message.admin);
1402
+ }
1403
+ if (message.codeId !== BigInt(0)) {
1404
+ writer.uint32(40).uint64(message.codeId);
1405
+ }
1406
+ if (message.label !== "") {
1407
+ writer.uint32(50).string(message.label);
1408
+ }
1409
+ if (message.msg.length !== 0) {
1410
+ writer.uint32(58).bytes(message.msg);
1411
+ }
1412
+ for (const v of message.funds) {
1413
+ Coin.encode(v!, writer.uint32(66).fork()).ldelim();
1414
+ }
1415
+ if (message.salt.length !== 0) {
1416
+ writer.uint32(74).bytes(message.salt);
1417
+ }
1418
+ if (message.fixMsg === true) {
1419
+ writer.uint32(80).bool(message.fixMsg);
1420
+ }
1421
+ return writer;
1422
+ },
1423
+ decode(input: BinaryReader | Uint8Array, length?: number): InstantiateContract2Proposal {
1424
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1425
+ let end = length === undefined ? reader.len : reader.pos + length;
1426
+ const message = createBaseInstantiateContract2Proposal();
1427
+ while (reader.pos < end) {
1428
+ const tag = reader.uint32();
1429
+ switch (tag >>> 3) {
1430
+ case 1:
1431
+ message.title = reader.string();
1432
+ break;
1433
+ case 2:
1434
+ message.description = reader.string();
1435
+ break;
1436
+ case 3:
1437
+ message.runAs = reader.string();
1438
+ break;
1439
+ case 4:
1440
+ message.admin = reader.string();
1441
+ break;
1442
+ case 5:
1443
+ message.codeId = reader.uint64();
1444
+ break;
1445
+ case 6:
1446
+ message.label = reader.string();
1447
+ break;
1448
+ case 7:
1449
+ message.msg = reader.bytes();
1450
+ break;
1451
+ case 8:
1452
+ message.funds.push(Coin.decode(reader, reader.uint32()));
1453
+ break;
1454
+ case 9:
1455
+ message.salt = reader.bytes();
1456
+ break;
1457
+ case 10:
1458
+ message.fixMsg = reader.bool();
1459
+ break;
1460
+ default:
1461
+ reader.skipType(tag & 7);
1462
+ break;
1463
+ }
1464
+ }
1465
+ return message;
1466
+ },
1467
+ fromPartial(object: Partial<InstantiateContract2Proposal>): InstantiateContract2Proposal {
1468
+ const message = createBaseInstantiateContract2Proposal();
1469
+ message.title = object.title ?? "";
1470
+ message.description = object.description ?? "";
1471
+ message.runAs = object.runAs ?? "";
1472
+ message.admin = object.admin ?? "";
1473
+ message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
1474
+ message.label = object.label ?? "";
1475
+ message.msg = object.msg ?? new Uint8Array();
1476
+ message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
1477
+ message.salt = object.salt ?? new Uint8Array();
1478
+ message.fixMsg = object.fixMsg ?? false;
1479
+ return message;
1480
+ },
1481
+ fromAmino(object: InstantiateContract2ProposalAmino): InstantiateContract2Proposal {
1482
+ const message = createBaseInstantiateContract2Proposal();
1483
+ if (object.title !== undefined && object.title !== null) {
1484
+ message.title = object.title;
1485
+ }
1486
+ if (object.description !== undefined && object.description !== null) {
1487
+ message.description = object.description;
1488
+ }
1489
+ if (object.run_as !== undefined && object.run_as !== null) {
1490
+ message.runAs = object.run_as;
1491
+ }
1492
+ if (object.admin !== undefined && object.admin !== null) {
1493
+ message.admin = object.admin;
1494
+ }
1495
+ if (object.code_id !== undefined && object.code_id !== null) {
1496
+ message.codeId = BigInt(object.code_id);
1497
+ }
1498
+ if (object.label !== undefined && object.label !== null) {
1499
+ message.label = object.label;
1500
+ }
1501
+ if (object.msg !== undefined && object.msg !== null) {
1502
+ message.msg = toUtf8(JSON.stringify(object.msg));
1503
+ }
1504
+ message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
1505
+ if (object.salt !== undefined && object.salt !== null) {
1506
+ message.salt = bytesFromBase64(object.salt);
1507
+ }
1508
+ if (object.fix_msg !== undefined && object.fix_msg !== null) {
1509
+ message.fixMsg = object.fix_msg;
1510
+ }
1511
+ return message;
1512
+ },
1513
+ toAmino(message: InstantiateContract2Proposal): InstantiateContract2ProposalAmino {
1514
+ const obj: any = {};
1515
+ obj.title = message.title === "" ? undefined : message.title;
1516
+ obj.description = message.description === "" ? undefined : message.description;
1517
+ obj.run_as = message.runAs === "" ? undefined : message.runAs;
1518
+ obj.admin = message.admin === "" ? undefined : message.admin;
1519
+ obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
1520
+ obj.label = message.label === "" ? undefined : message.label;
1521
+ obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
1522
+ if (message.funds) {
1523
+ obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
1524
+ } else {
1525
+ obj.funds = message.funds;
1526
+ }
1527
+ obj.salt = message.salt ? base64FromBytes(message.salt) : undefined;
1528
+ obj.fix_msg = message.fixMsg === false ? undefined : message.fixMsg;
1529
+ return obj;
1530
+ },
1531
+ fromAminoMsg(object: InstantiateContract2ProposalAminoMsg): InstantiateContract2Proposal {
1532
+ return InstantiateContract2Proposal.fromAmino(object.value);
1533
+ },
1534
+ toAminoMsg(message: InstantiateContract2Proposal): InstantiateContract2ProposalAminoMsg {
1535
+ return {
1536
+ type: "wasm/InstantiateContract2Proposal",
1537
+ value: InstantiateContract2Proposal.toAmino(message)
1538
+ };
1539
+ },
1540
+ fromProtoMsg(message: InstantiateContract2ProposalProtoMsg): InstantiateContract2Proposal {
1541
+ return InstantiateContract2Proposal.decode(message.value);
1542
+ },
1543
+ toProto(message: InstantiateContract2Proposal): Uint8Array {
1544
+ return InstantiateContract2Proposal.encode(message).finish();
1545
+ },
1546
+ toProtoMsg(message: InstantiateContract2Proposal): InstantiateContract2ProposalProtoMsg {
1547
+ return {
1548
+ typeUrl: "/cosmwasm.wasm.v1.InstantiateContract2Proposal",
1549
+ value: InstantiateContract2Proposal.encode(message).finish()
1550
+ };
1551
+ }
1552
+ };
1553
+ function createBaseMigrateContractProposal(): MigrateContractProposal {
1554
+ return {
1555
+ $typeUrl: "/cosmwasm.wasm.v1.MigrateContractProposal",
1556
+ title: "",
1557
+ description: "",
1558
+ contract: "",
1559
+ codeId: BigInt(0),
1560
+ msg: new Uint8Array()
1561
+ };
1562
+ }
1563
+ export const MigrateContractProposal = {
1564
+ typeUrl: "/cosmwasm.wasm.v1.MigrateContractProposal",
1565
+ encode(message: MigrateContractProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1566
+ if (message.title !== "") {
1567
+ writer.uint32(10).string(message.title);
1568
+ }
1569
+ if (message.description !== "") {
1570
+ writer.uint32(18).string(message.description);
1571
+ }
1572
+ if (message.contract !== "") {
1573
+ writer.uint32(34).string(message.contract);
1574
+ }
1575
+ if (message.codeId !== BigInt(0)) {
1576
+ writer.uint32(40).uint64(message.codeId);
1577
+ }
1578
+ if (message.msg.length !== 0) {
1579
+ writer.uint32(50).bytes(message.msg);
1580
+ }
1581
+ return writer;
1582
+ },
1583
+ decode(input: BinaryReader | Uint8Array, length?: number): MigrateContractProposal {
1584
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1585
+ let end = length === undefined ? reader.len : reader.pos + length;
1586
+ const message = createBaseMigrateContractProposal();
1587
+ while (reader.pos < end) {
1588
+ const tag = reader.uint32();
1589
+ switch (tag >>> 3) {
1590
+ case 1:
1591
+ message.title = reader.string();
1592
+ break;
1593
+ case 2:
1594
+ message.description = reader.string();
1595
+ break;
1596
+ case 4:
1597
+ message.contract = reader.string();
1598
+ break;
1599
+ case 5:
1600
+ message.codeId = reader.uint64();
1601
+ break;
1602
+ case 6:
1603
+ message.msg = reader.bytes();
1604
+ break;
1605
+ default:
1606
+ reader.skipType(tag & 7);
1607
+ break;
1608
+ }
1609
+ }
1610
+ return message;
1611
+ },
1612
+ fromPartial(object: Partial<MigrateContractProposal>): MigrateContractProposal {
1613
+ const message = createBaseMigrateContractProposal();
1614
+ message.title = object.title ?? "";
1615
+ message.description = object.description ?? "";
1616
+ message.contract = object.contract ?? "";
1617
+ message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
1618
+ message.msg = object.msg ?? new Uint8Array();
1619
+ return message;
1620
+ },
1621
+ fromAmino(object: MigrateContractProposalAmino): MigrateContractProposal {
1622
+ const message = createBaseMigrateContractProposal();
1623
+ if (object.title !== undefined && object.title !== null) {
1624
+ message.title = object.title;
1625
+ }
1626
+ if (object.description !== undefined && object.description !== null) {
1627
+ message.description = object.description;
1628
+ }
1629
+ if (object.contract !== undefined && object.contract !== null) {
1630
+ message.contract = object.contract;
1631
+ }
1632
+ if (object.code_id !== undefined && object.code_id !== null) {
1633
+ message.codeId = BigInt(object.code_id);
1634
+ }
1635
+ if (object.msg !== undefined && object.msg !== null) {
1636
+ message.msg = toUtf8(JSON.stringify(object.msg));
1637
+ }
1638
+ return message;
1639
+ },
1640
+ toAmino(message: MigrateContractProposal): MigrateContractProposalAmino {
1641
+ const obj: any = {};
1642
+ obj.title = message.title === "" ? undefined : message.title;
1643
+ obj.description = message.description === "" ? undefined : message.description;
1644
+ obj.contract = message.contract === "" ? undefined : message.contract;
1645
+ obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
1646
+ obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
1647
+ return obj;
1648
+ },
1649
+ fromAminoMsg(object: MigrateContractProposalAminoMsg): MigrateContractProposal {
1650
+ return MigrateContractProposal.fromAmino(object.value);
1651
+ },
1652
+ toAminoMsg(message: MigrateContractProposal): MigrateContractProposalAminoMsg {
1653
+ return {
1654
+ type: "wasm/MigrateContractProposal",
1655
+ value: MigrateContractProposal.toAmino(message)
1656
+ };
1657
+ },
1658
+ fromProtoMsg(message: MigrateContractProposalProtoMsg): MigrateContractProposal {
1659
+ return MigrateContractProposal.decode(message.value);
1660
+ },
1661
+ toProto(message: MigrateContractProposal): Uint8Array {
1662
+ return MigrateContractProposal.encode(message).finish();
1663
+ },
1664
+ toProtoMsg(message: MigrateContractProposal): MigrateContractProposalProtoMsg {
1665
+ return {
1666
+ typeUrl: "/cosmwasm.wasm.v1.MigrateContractProposal",
1667
+ value: MigrateContractProposal.encode(message).finish()
1668
+ };
1669
+ }
1670
+ };
1671
+ function createBaseSudoContractProposal(): SudoContractProposal {
1672
+ return {
1673
+ $typeUrl: "/cosmwasm.wasm.v1.SudoContractProposal",
1674
+ title: "",
1675
+ description: "",
1676
+ contract: "",
1677
+ msg: new Uint8Array()
1678
+ };
1679
+ }
1680
+ export const SudoContractProposal = {
1681
+ typeUrl: "/cosmwasm.wasm.v1.SudoContractProposal",
1682
+ encode(message: SudoContractProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1683
+ if (message.title !== "") {
1684
+ writer.uint32(10).string(message.title);
1685
+ }
1686
+ if (message.description !== "") {
1687
+ writer.uint32(18).string(message.description);
1688
+ }
1689
+ if (message.contract !== "") {
1690
+ writer.uint32(26).string(message.contract);
1691
+ }
1692
+ if (message.msg.length !== 0) {
1693
+ writer.uint32(34).bytes(message.msg);
1694
+ }
1695
+ return writer;
1696
+ },
1697
+ decode(input: BinaryReader | Uint8Array, length?: number): SudoContractProposal {
1698
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1699
+ let end = length === undefined ? reader.len : reader.pos + length;
1700
+ const message = createBaseSudoContractProposal();
1701
+ while (reader.pos < end) {
1702
+ const tag = reader.uint32();
1703
+ switch (tag >>> 3) {
1704
+ case 1:
1705
+ message.title = reader.string();
1706
+ break;
1707
+ case 2:
1708
+ message.description = reader.string();
1709
+ break;
1710
+ case 3:
1711
+ message.contract = reader.string();
1712
+ break;
1713
+ case 4:
1714
+ message.msg = reader.bytes();
1715
+ break;
1716
+ default:
1717
+ reader.skipType(tag & 7);
1718
+ break;
1719
+ }
1720
+ }
1721
+ return message;
1722
+ },
1723
+ fromPartial(object: Partial<SudoContractProposal>): SudoContractProposal {
1724
+ const message = createBaseSudoContractProposal();
1725
+ message.title = object.title ?? "";
1726
+ message.description = object.description ?? "";
1727
+ message.contract = object.contract ?? "";
1728
+ message.msg = object.msg ?? new Uint8Array();
1729
+ return message;
1730
+ },
1731
+ fromAmino(object: SudoContractProposalAmino): SudoContractProposal {
1732
+ const message = createBaseSudoContractProposal();
1733
+ if (object.title !== undefined && object.title !== null) {
1734
+ message.title = object.title;
1735
+ }
1736
+ if (object.description !== undefined && object.description !== null) {
1737
+ message.description = object.description;
1738
+ }
1739
+ if (object.contract !== undefined && object.contract !== null) {
1740
+ message.contract = object.contract;
1741
+ }
1742
+ if (object.msg !== undefined && object.msg !== null) {
1743
+ message.msg = toUtf8(JSON.stringify(object.msg));
1744
+ }
1745
+ return message;
1746
+ },
1747
+ toAmino(message: SudoContractProposal): SudoContractProposalAmino {
1748
+ const obj: any = {};
1749
+ obj.title = message.title === "" ? undefined : message.title;
1750
+ obj.description = message.description === "" ? undefined : message.description;
1751
+ obj.contract = message.contract === "" ? undefined : message.contract;
1752
+ obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
1753
+ return obj;
1754
+ },
1755
+ fromAminoMsg(object: SudoContractProposalAminoMsg): SudoContractProposal {
1756
+ return SudoContractProposal.fromAmino(object.value);
1757
+ },
1758
+ toAminoMsg(message: SudoContractProposal): SudoContractProposalAminoMsg {
1759
+ return {
1760
+ type: "wasm/SudoContractProposal",
1761
+ value: SudoContractProposal.toAmino(message)
1762
+ };
1763
+ },
1764
+ fromProtoMsg(message: SudoContractProposalProtoMsg): SudoContractProposal {
1765
+ return SudoContractProposal.decode(message.value);
1766
+ },
1767
+ toProto(message: SudoContractProposal): Uint8Array {
1768
+ return SudoContractProposal.encode(message).finish();
1769
+ },
1770
+ toProtoMsg(message: SudoContractProposal): SudoContractProposalProtoMsg {
1771
+ return {
1772
+ typeUrl: "/cosmwasm.wasm.v1.SudoContractProposal",
1773
+ value: SudoContractProposal.encode(message).finish()
1774
+ };
1775
+ }
1776
+ };
1777
+ function createBaseExecuteContractProposal(): ExecuteContractProposal {
1778
+ return {
1779
+ $typeUrl: "/cosmwasm.wasm.v1.ExecuteContractProposal",
1780
+ title: "",
1781
+ description: "",
1782
+ runAs: "",
1783
+ contract: "",
1784
+ msg: new Uint8Array(),
1785
+ funds: []
1786
+ };
1787
+ }
1788
+ export const ExecuteContractProposal = {
1789
+ typeUrl: "/cosmwasm.wasm.v1.ExecuteContractProposal",
1790
+ encode(message: ExecuteContractProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1791
+ if (message.title !== "") {
1792
+ writer.uint32(10).string(message.title);
1793
+ }
1794
+ if (message.description !== "") {
1795
+ writer.uint32(18).string(message.description);
1796
+ }
1797
+ if (message.runAs !== "") {
1798
+ writer.uint32(26).string(message.runAs);
1799
+ }
1800
+ if (message.contract !== "") {
1801
+ writer.uint32(34).string(message.contract);
1802
+ }
1803
+ if (message.msg.length !== 0) {
1804
+ writer.uint32(42).bytes(message.msg);
1805
+ }
1806
+ for (const v of message.funds) {
1807
+ Coin.encode(v!, writer.uint32(50).fork()).ldelim();
1808
+ }
1809
+ return writer;
1810
+ },
1811
+ decode(input: BinaryReader | Uint8Array, length?: number): ExecuteContractProposal {
1812
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1813
+ let end = length === undefined ? reader.len : reader.pos + length;
1814
+ const message = createBaseExecuteContractProposal();
1815
+ while (reader.pos < end) {
1816
+ const tag = reader.uint32();
1817
+ switch (tag >>> 3) {
1818
+ case 1:
1819
+ message.title = reader.string();
1820
+ break;
1821
+ case 2:
1822
+ message.description = reader.string();
1823
+ break;
1824
+ case 3:
1825
+ message.runAs = reader.string();
1826
+ break;
1827
+ case 4:
1828
+ message.contract = reader.string();
1829
+ break;
1830
+ case 5:
1831
+ message.msg = reader.bytes();
1832
+ break;
1833
+ case 6:
1834
+ message.funds.push(Coin.decode(reader, reader.uint32()));
1835
+ break;
1836
+ default:
1837
+ reader.skipType(tag & 7);
1838
+ break;
1839
+ }
1840
+ }
1841
+ return message;
1842
+ },
1843
+ fromPartial(object: Partial<ExecuteContractProposal>): ExecuteContractProposal {
1844
+ const message = createBaseExecuteContractProposal();
1845
+ message.title = object.title ?? "";
1846
+ message.description = object.description ?? "";
1847
+ message.runAs = object.runAs ?? "";
1848
+ message.contract = object.contract ?? "";
1849
+ message.msg = object.msg ?? new Uint8Array();
1850
+ message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
1851
+ return message;
1852
+ },
1853
+ fromAmino(object: ExecuteContractProposalAmino): ExecuteContractProposal {
1854
+ const message = createBaseExecuteContractProposal();
1855
+ if (object.title !== undefined && object.title !== null) {
1856
+ message.title = object.title;
1857
+ }
1858
+ if (object.description !== undefined && object.description !== null) {
1859
+ message.description = object.description;
1860
+ }
1861
+ if (object.run_as !== undefined && object.run_as !== null) {
1862
+ message.runAs = object.run_as;
1863
+ }
1864
+ if (object.contract !== undefined && object.contract !== null) {
1865
+ message.contract = object.contract;
1866
+ }
1867
+ if (object.msg !== undefined && object.msg !== null) {
1868
+ message.msg = toUtf8(JSON.stringify(object.msg));
1869
+ }
1870
+ message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
1871
+ return message;
1872
+ },
1873
+ toAmino(message: ExecuteContractProposal): ExecuteContractProposalAmino {
1874
+ const obj: any = {};
1875
+ obj.title = message.title === "" ? undefined : message.title;
1876
+ obj.description = message.description === "" ? undefined : message.description;
1877
+ obj.run_as = message.runAs === "" ? undefined : message.runAs;
1878
+ obj.contract = message.contract === "" ? undefined : message.contract;
1879
+ obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
1880
+ if (message.funds) {
1881
+ obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
1882
+ } else {
1883
+ obj.funds = message.funds;
1884
+ }
1885
+ return obj;
1886
+ },
1887
+ fromAminoMsg(object: ExecuteContractProposalAminoMsg): ExecuteContractProposal {
1888
+ return ExecuteContractProposal.fromAmino(object.value);
1889
+ },
1890
+ toAminoMsg(message: ExecuteContractProposal): ExecuteContractProposalAminoMsg {
1891
+ return {
1892
+ type: "wasm/ExecuteContractProposal",
1893
+ value: ExecuteContractProposal.toAmino(message)
1894
+ };
1895
+ },
1896
+ fromProtoMsg(message: ExecuteContractProposalProtoMsg): ExecuteContractProposal {
1897
+ return ExecuteContractProposal.decode(message.value);
1898
+ },
1899
+ toProto(message: ExecuteContractProposal): Uint8Array {
1900
+ return ExecuteContractProposal.encode(message).finish();
1901
+ },
1902
+ toProtoMsg(message: ExecuteContractProposal): ExecuteContractProposalProtoMsg {
1903
+ return {
1904
+ typeUrl: "/cosmwasm.wasm.v1.ExecuteContractProposal",
1905
+ value: ExecuteContractProposal.encode(message).finish()
1906
+ };
1907
+ }
1908
+ };
1909
+ function createBaseUpdateAdminProposal(): UpdateAdminProposal {
1910
+ return {
1911
+ $typeUrl: "/cosmwasm.wasm.v1.UpdateAdminProposal",
1912
+ title: "",
1913
+ description: "",
1914
+ newAdmin: "",
1915
+ contract: ""
1916
+ };
1917
+ }
1918
+ export const UpdateAdminProposal = {
1919
+ typeUrl: "/cosmwasm.wasm.v1.UpdateAdminProposal",
1920
+ encode(message: UpdateAdminProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1921
+ if (message.title !== "") {
1922
+ writer.uint32(10).string(message.title);
1923
+ }
1924
+ if (message.description !== "") {
1925
+ writer.uint32(18).string(message.description);
1926
+ }
1927
+ if (message.newAdmin !== "") {
1928
+ writer.uint32(26).string(message.newAdmin);
1929
+ }
1930
+ if (message.contract !== "") {
1931
+ writer.uint32(34).string(message.contract);
1932
+ }
1933
+ return writer;
1934
+ },
1935
+ decode(input: BinaryReader | Uint8Array, length?: number): UpdateAdminProposal {
1936
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1937
+ let end = length === undefined ? reader.len : reader.pos + length;
1938
+ const message = createBaseUpdateAdminProposal();
1939
+ while (reader.pos < end) {
1940
+ const tag = reader.uint32();
1941
+ switch (tag >>> 3) {
1942
+ case 1:
1943
+ message.title = reader.string();
1944
+ break;
1945
+ case 2:
1946
+ message.description = reader.string();
1947
+ break;
1948
+ case 3:
1949
+ message.newAdmin = reader.string();
1950
+ break;
1951
+ case 4:
1952
+ message.contract = reader.string();
1953
+ break;
1954
+ default:
1955
+ reader.skipType(tag & 7);
1956
+ break;
1957
+ }
1958
+ }
1959
+ return message;
1960
+ },
1961
+ fromPartial(object: Partial<UpdateAdminProposal>): UpdateAdminProposal {
1962
+ const message = createBaseUpdateAdminProposal();
1963
+ message.title = object.title ?? "";
1964
+ message.description = object.description ?? "";
1965
+ message.newAdmin = object.newAdmin ?? "";
1966
+ message.contract = object.contract ?? "";
1967
+ return message;
1968
+ },
1969
+ fromAmino(object: UpdateAdminProposalAmino): UpdateAdminProposal {
1970
+ const message = createBaseUpdateAdminProposal();
1971
+ if (object.title !== undefined && object.title !== null) {
1972
+ message.title = object.title;
1973
+ }
1974
+ if (object.description !== undefined && object.description !== null) {
1975
+ message.description = object.description;
1976
+ }
1977
+ if (object.new_admin !== undefined && object.new_admin !== null) {
1978
+ message.newAdmin = object.new_admin;
1979
+ }
1980
+ if (object.contract !== undefined && object.contract !== null) {
1981
+ message.contract = object.contract;
1982
+ }
1983
+ return message;
1984
+ },
1985
+ toAmino(message: UpdateAdminProposal): UpdateAdminProposalAmino {
1986
+ const obj: any = {};
1987
+ obj.title = message.title === "" ? undefined : message.title;
1988
+ obj.description = message.description === "" ? undefined : message.description;
1989
+ obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin;
1990
+ obj.contract = message.contract === "" ? undefined : message.contract;
1991
+ return obj;
1992
+ },
1993
+ fromAminoMsg(object: UpdateAdminProposalAminoMsg): UpdateAdminProposal {
1994
+ return UpdateAdminProposal.fromAmino(object.value);
1995
+ },
1996
+ toAminoMsg(message: UpdateAdminProposal): UpdateAdminProposalAminoMsg {
1997
+ return {
1998
+ type: "wasm/UpdateAdminProposal",
1999
+ value: UpdateAdminProposal.toAmino(message)
2000
+ };
2001
+ },
2002
+ fromProtoMsg(message: UpdateAdminProposalProtoMsg): UpdateAdminProposal {
2003
+ return UpdateAdminProposal.decode(message.value);
2004
+ },
2005
+ toProto(message: UpdateAdminProposal): Uint8Array {
2006
+ return UpdateAdminProposal.encode(message).finish();
2007
+ },
2008
+ toProtoMsg(message: UpdateAdminProposal): UpdateAdminProposalProtoMsg {
2009
+ return {
2010
+ typeUrl: "/cosmwasm.wasm.v1.UpdateAdminProposal",
2011
+ value: UpdateAdminProposal.encode(message).finish()
2012
+ };
2013
+ }
2014
+ };
2015
+ function createBaseClearAdminProposal(): ClearAdminProposal {
2016
+ return {
2017
+ $typeUrl: "/cosmwasm.wasm.v1.ClearAdminProposal",
2018
+ title: "",
2019
+ description: "",
2020
+ contract: ""
2021
+ };
2022
+ }
2023
+ export const ClearAdminProposal = {
2024
+ typeUrl: "/cosmwasm.wasm.v1.ClearAdminProposal",
2025
+ encode(message: ClearAdminProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2026
+ if (message.title !== "") {
2027
+ writer.uint32(10).string(message.title);
2028
+ }
2029
+ if (message.description !== "") {
2030
+ writer.uint32(18).string(message.description);
2031
+ }
2032
+ if (message.contract !== "") {
2033
+ writer.uint32(26).string(message.contract);
2034
+ }
2035
+ return writer;
2036
+ },
2037
+ decode(input: BinaryReader | Uint8Array, length?: number): ClearAdminProposal {
2038
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2039
+ let end = length === undefined ? reader.len : reader.pos + length;
2040
+ const message = createBaseClearAdminProposal();
2041
+ while (reader.pos < end) {
2042
+ const tag = reader.uint32();
2043
+ switch (tag >>> 3) {
2044
+ case 1:
2045
+ message.title = reader.string();
2046
+ break;
2047
+ case 2:
2048
+ message.description = reader.string();
2049
+ break;
2050
+ case 3:
2051
+ message.contract = reader.string();
2052
+ break;
2053
+ default:
2054
+ reader.skipType(tag & 7);
2055
+ break;
2056
+ }
2057
+ }
2058
+ return message;
2059
+ },
2060
+ fromPartial(object: Partial<ClearAdminProposal>): ClearAdminProposal {
2061
+ const message = createBaseClearAdminProposal();
2062
+ message.title = object.title ?? "";
2063
+ message.description = object.description ?? "";
2064
+ message.contract = object.contract ?? "";
2065
+ return message;
2066
+ },
2067
+ fromAmino(object: ClearAdminProposalAmino): ClearAdminProposal {
2068
+ const message = createBaseClearAdminProposal();
2069
+ if (object.title !== undefined && object.title !== null) {
2070
+ message.title = object.title;
2071
+ }
2072
+ if (object.description !== undefined && object.description !== null) {
2073
+ message.description = object.description;
2074
+ }
2075
+ if (object.contract !== undefined && object.contract !== null) {
2076
+ message.contract = object.contract;
2077
+ }
2078
+ return message;
2079
+ },
2080
+ toAmino(message: ClearAdminProposal): ClearAdminProposalAmino {
2081
+ const obj: any = {};
2082
+ obj.title = message.title === "" ? undefined : message.title;
2083
+ obj.description = message.description === "" ? undefined : message.description;
2084
+ obj.contract = message.contract === "" ? undefined : message.contract;
2085
+ return obj;
2086
+ },
2087
+ fromAminoMsg(object: ClearAdminProposalAminoMsg): ClearAdminProposal {
2088
+ return ClearAdminProposal.fromAmino(object.value);
2089
+ },
2090
+ toAminoMsg(message: ClearAdminProposal): ClearAdminProposalAminoMsg {
2091
+ return {
2092
+ type: "wasm/ClearAdminProposal",
2093
+ value: ClearAdminProposal.toAmino(message)
2094
+ };
2095
+ },
2096
+ fromProtoMsg(message: ClearAdminProposalProtoMsg): ClearAdminProposal {
2097
+ return ClearAdminProposal.decode(message.value);
2098
+ },
2099
+ toProto(message: ClearAdminProposal): Uint8Array {
2100
+ return ClearAdminProposal.encode(message).finish();
2101
+ },
2102
+ toProtoMsg(message: ClearAdminProposal): ClearAdminProposalProtoMsg {
2103
+ return {
2104
+ typeUrl: "/cosmwasm.wasm.v1.ClearAdminProposal",
2105
+ value: ClearAdminProposal.encode(message).finish()
2106
+ };
2107
+ }
2108
+ };
2109
+ function createBasePinCodesProposal(): PinCodesProposal {
2110
+ return {
2111
+ $typeUrl: "/cosmwasm.wasm.v1.PinCodesProposal",
2112
+ title: "",
2113
+ description: "",
2114
+ codeIds: []
2115
+ };
2116
+ }
2117
+ export const PinCodesProposal = {
2118
+ typeUrl: "/cosmwasm.wasm.v1.PinCodesProposal",
2119
+ encode(message: PinCodesProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2120
+ if (message.title !== "") {
2121
+ writer.uint32(10).string(message.title);
2122
+ }
2123
+ if (message.description !== "") {
2124
+ writer.uint32(18).string(message.description);
2125
+ }
2126
+ writer.uint32(26).fork();
2127
+ for (const v of message.codeIds) {
2128
+ writer.uint64(v);
2129
+ }
2130
+ writer.ldelim();
2131
+ return writer;
2132
+ },
2133
+ decode(input: BinaryReader | Uint8Array, length?: number): PinCodesProposal {
2134
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2135
+ let end = length === undefined ? reader.len : reader.pos + length;
2136
+ const message = createBasePinCodesProposal();
2137
+ while (reader.pos < end) {
2138
+ const tag = reader.uint32();
2139
+ switch (tag >>> 3) {
2140
+ case 1:
2141
+ message.title = reader.string();
2142
+ break;
2143
+ case 2:
2144
+ message.description = reader.string();
2145
+ break;
2146
+ case 3:
2147
+ if ((tag & 7) === 2) {
2148
+ const end2 = reader.uint32() + reader.pos;
2149
+ while (reader.pos < end2) {
2150
+ message.codeIds.push(reader.uint64());
2151
+ }
2152
+ } else {
2153
+ message.codeIds.push(reader.uint64());
2154
+ }
2155
+ break;
2156
+ default:
2157
+ reader.skipType(tag & 7);
2158
+ break;
2159
+ }
2160
+ }
2161
+ return message;
2162
+ },
2163
+ fromPartial(object: Partial<PinCodesProposal>): PinCodesProposal {
2164
+ const message = createBasePinCodesProposal();
2165
+ message.title = object.title ?? "";
2166
+ message.description = object.description ?? "";
2167
+ message.codeIds = object.codeIds?.map(e => BigInt(e.toString())) || [];
2168
+ return message;
2169
+ },
2170
+ fromAmino(object: PinCodesProposalAmino): PinCodesProposal {
2171
+ const message = createBasePinCodesProposal();
2172
+ if (object.title !== undefined && object.title !== null) {
2173
+ message.title = object.title;
2174
+ }
2175
+ if (object.description !== undefined && object.description !== null) {
2176
+ message.description = object.description;
2177
+ }
2178
+ message.codeIds = object.code_ids?.map(e => BigInt(e)) || [];
2179
+ return message;
2180
+ },
2181
+ toAmino(message: PinCodesProposal): PinCodesProposalAmino {
2182
+ const obj: any = {};
2183
+ obj.title = message.title === "" ? undefined : message.title;
2184
+ obj.description = message.description === "" ? undefined : message.description;
2185
+ if (message.codeIds) {
2186
+ obj.code_ids = message.codeIds.map(e => e.toString());
2187
+ } else {
2188
+ obj.code_ids = message.codeIds;
2189
+ }
2190
+ return obj;
2191
+ },
2192
+ fromAminoMsg(object: PinCodesProposalAminoMsg): PinCodesProposal {
2193
+ return PinCodesProposal.fromAmino(object.value);
2194
+ },
2195
+ toAminoMsg(message: PinCodesProposal): PinCodesProposalAminoMsg {
2196
+ return {
2197
+ type: "wasm/PinCodesProposal",
2198
+ value: PinCodesProposal.toAmino(message)
2199
+ };
2200
+ },
2201
+ fromProtoMsg(message: PinCodesProposalProtoMsg): PinCodesProposal {
2202
+ return PinCodesProposal.decode(message.value);
2203
+ },
2204
+ toProto(message: PinCodesProposal): Uint8Array {
2205
+ return PinCodesProposal.encode(message).finish();
2206
+ },
2207
+ toProtoMsg(message: PinCodesProposal): PinCodesProposalProtoMsg {
2208
+ return {
2209
+ typeUrl: "/cosmwasm.wasm.v1.PinCodesProposal",
2210
+ value: PinCodesProposal.encode(message).finish()
2211
+ };
2212
+ }
2213
+ };
2214
+ function createBaseUnpinCodesProposal(): UnpinCodesProposal {
2215
+ return {
2216
+ $typeUrl: "/cosmwasm.wasm.v1.UnpinCodesProposal",
2217
+ title: "",
2218
+ description: "",
2219
+ codeIds: []
2220
+ };
2221
+ }
2222
+ export const UnpinCodesProposal = {
2223
+ typeUrl: "/cosmwasm.wasm.v1.UnpinCodesProposal",
2224
+ encode(message: UnpinCodesProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2225
+ if (message.title !== "") {
2226
+ writer.uint32(10).string(message.title);
2227
+ }
2228
+ if (message.description !== "") {
2229
+ writer.uint32(18).string(message.description);
2230
+ }
2231
+ writer.uint32(26).fork();
2232
+ for (const v of message.codeIds) {
2233
+ writer.uint64(v);
2234
+ }
2235
+ writer.ldelim();
2236
+ return writer;
2237
+ },
2238
+ decode(input: BinaryReader | Uint8Array, length?: number): UnpinCodesProposal {
2239
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2240
+ let end = length === undefined ? reader.len : reader.pos + length;
2241
+ const message = createBaseUnpinCodesProposal();
2242
+ while (reader.pos < end) {
2243
+ const tag = reader.uint32();
2244
+ switch (tag >>> 3) {
2245
+ case 1:
2246
+ message.title = reader.string();
2247
+ break;
2248
+ case 2:
2249
+ message.description = reader.string();
2250
+ break;
2251
+ case 3:
2252
+ if ((tag & 7) === 2) {
2253
+ const end2 = reader.uint32() + reader.pos;
2254
+ while (reader.pos < end2) {
2255
+ message.codeIds.push(reader.uint64());
2256
+ }
2257
+ } else {
2258
+ message.codeIds.push(reader.uint64());
2259
+ }
2260
+ break;
2261
+ default:
2262
+ reader.skipType(tag & 7);
2263
+ break;
2264
+ }
2265
+ }
2266
+ return message;
2267
+ },
2268
+ fromPartial(object: Partial<UnpinCodesProposal>): UnpinCodesProposal {
2269
+ const message = createBaseUnpinCodesProposal();
2270
+ message.title = object.title ?? "";
2271
+ message.description = object.description ?? "";
2272
+ message.codeIds = object.codeIds?.map(e => BigInt(e.toString())) || [];
2273
+ return message;
2274
+ },
2275
+ fromAmino(object: UnpinCodesProposalAmino): UnpinCodesProposal {
2276
+ const message = createBaseUnpinCodesProposal();
2277
+ if (object.title !== undefined && object.title !== null) {
2278
+ message.title = object.title;
2279
+ }
2280
+ if (object.description !== undefined && object.description !== null) {
2281
+ message.description = object.description;
2282
+ }
2283
+ message.codeIds = object.code_ids?.map(e => BigInt(e)) || [];
2284
+ return message;
2285
+ },
2286
+ toAmino(message: UnpinCodesProposal): UnpinCodesProposalAmino {
2287
+ const obj: any = {};
2288
+ obj.title = message.title === "" ? undefined : message.title;
2289
+ obj.description = message.description === "" ? undefined : message.description;
2290
+ if (message.codeIds) {
2291
+ obj.code_ids = message.codeIds.map(e => e.toString());
2292
+ } else {
2293
+ obj.code_ids = message.codeIds;
2294
+ }
2295
+ return obj;
2296
+ },
2297
+ fromAminoMsg(object: UnpinCodesProposalAminoMsg): UnpinCodesProposal {
2298
+ return UnpinCodesProposal.fromAmino(object.value);
2299
+ },
2300
+ toAminoMsg(message: UnpinCodesProposal): UnpinCodesProposalAminoMsg {
2301
+ return {
2302
+ type: "wasm/UnpinCodesProposal",
2303
+ value: UnpinCodesProposal.toAmino(message)
2304
+ };
2305
+ },
2306
+ fromProtoMsg(message: UnpinCodesProposalProtoMsg): UnpinCodesProposal {
2307
+ return UnpinCodesProposal.decode(message.value);
2308
+ },
2309
+ toProto(message: UnpinCodesProposal): Uint8Array {
2310
+ return UnpinCodesProposal.encode(message).finish();
2311
+ },
2312
+ toProtoMsg(message: UnpinCodesProposal): UnpinCodesProposalProtoMsg {
2313
+ return {
2314
+ typeUrl: "/cosmwasm.wasm.v1.UnpinCodesProposal",
2315
+ value: UnpinCodesProposal.encode(message).finish()
2316
+ };
2317
+ }
2318
+ };
2319
+ function createBaseAccessConfigUpdate(): AccessConfigUpdate {
2320
+ return {
2321
+ codeId: BigInt(0),
2322
+ instantiatePermission: AccessConfig.fromPartial({})
2323
+ };
2324
+ }
2325
+ export const AccessConfigUpdate = {
2326
+ typeUrl: "/cosmwasm.wasm.v1.AccessConfigUpdate",
2327
+ encode(message: AccessConfigUpdate, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2328
+ if (message.codeId !== BigInt(0)) {
2329
+ writer.uint32(8).uint64(message.codeId);
2330
+ }
2331
+ if (message.instantiatePermission !== undefined) {
2332
+ AccessConfig.encode(message.instantiatePermission, writer.uint32(18).fork()).ldelim();
2333
+ }
2334
+ return writer;
2335
+ },
2336
+ decode(input: BinaryReader | Uint8Array, length?: number): AccessConfigUpdate {
2337
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2338
+ let end = length === undefined ? reader.len : reader.pos + length;
2339
+ const message = createBaseAccessConfigUpdate();
2340
+ while (reader.pos < end) {
2341
+ const tag = reader.uint32();
2342
+ switch (tag >>> 3) {
2343
+ case 1:
2344
+ message.codeId = reader.uint64();
2345
+ break;
2346
+ case 2:
2347
+ message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
2348
+ break;
2349
+ default:
2350
+ reader.skipType(tag & 7);
2351
+ break;
2352
+ }
2353
+ }
2354
+ return message;
2355
+ },
2356
+ fromPartial(object: Partial<AccessConfigUpdate>): AccessConfigUpdate {
2357
+ const message = createBaseAccessConfigUpdate();
2358
+ message.codeId = object.codeId !== undefined && object.codeId !== null ? BigInt(object.codeId.toString()) : BigInt(0);
2359
+ message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
2360
+ return message;
2361
+ },
2362
+ fromAmino(object: AccessConfigUpdateAmino): AccessConfigUpdate {
2363
+ const message = createBaseAccessConfigUpdate();
2364
+ if (object.code_id !== undefined && object.code_id !== null) {
2365
+ message.codeId = BigInt(object.code_id);
2366
+ }
2367
+ if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
2368
+ message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
2369
+ }
2370
+ return message;
2371
+ },
2372
+ toAmino(message: AccessConfigUpdate): AccessConfigUpdateAmino {
2373
+ const obj: any = {};
2374
+ obj.code_id = message.codeId !== BigInt(0) ? message.codeId?.toString() : undefined;
2375
+ obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : AccessConfig.toAmino(AccessConfig.fromPartial({}));
2376
+ return obj;
2377
+ },
2378
+ fromAminoMsg(object: AccessConfigUpdateAminoMsg): AccessConfigUpdate {
2379
+ return AccessConfigUpdate.fromAmino(object.value);
2380
+ },
2381
+ toAminoMsg(message: AccessConfigUpdate): AccessConfigUpdateAminoMsg {
2382
+ return {
2383
+ type: "wasm/AccessConfigUpdate",
2384
+ value: AccessConfigUpdate.toAmino(message)
2385
+ };
2386
+ },
2387
+ fromProtoMsg(message: AccessConfigUpdateProtoMsg): AccessConfigUpdate {
2388
+ return AccessConfigUpdate.decode(message.value);
2389
+ },
2390
+ toProto(message: AccessConfigUpdate): Uint8Array {
2391
+ return AccessConfigUpdate.encode(message).finish();
2392
+ },
2393
+ toProtoMsg(message: AccessConfigUpdate): AccessConfigUpdateProtoMsg {
2394
+ return {
2395
+ typeUrl: "/cosmwasm.wasm.v1.AccessConfigUpdate",
2396
+ value: AccessConfigUpdate.encode(message).finish()
2397
+ };
2398
+ }
2399
+ };
2400
+ function createBaseUpdateInstantiateConfigProposal(): UpdateInstantiateConfigProposal {
2401
+ return {
2402
+ $typeUrl: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",
2403
+ title: "",
2404
+ description: "",
2405
+ accessConfigUpdates: []
2406
+ };
2407
+ }
2408
+ export const UpdateInstantiateConfigProposal = {
2409
+ typeUrl: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",
2410
+ encode(message: UpdateInstantiateConfigProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2411
+ if (message.title !== "") {
2412
+ writer.uint32(10).string(message.title);
2413
+ }
2414
+ if (message.description !== "") {
2415
+ writer.uint32(18).string(message.description);
2416
+ }
2417
+ for (const v of message.accessConfigUpdates) {
2418
+ AccessConfigUpdate.encode(v!, writer.uint32(26).fork()).ldelim();
2419
+ }
2420
+ return writer;
2421
+ },
2422
+ decode(input: BinaryReader | Uint8Array, length?: number): UpdateInstantiateConfigProposal {
2423
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2424
+ let end = length === undefined ? reader.len : reader.pos + length;
2425
+ const message = createBaseUpdateInstantiateConfigProposal();
2426
+ while (reader.pos < end) {
2427
+ const tag = reader.uint32();
2428
+ switch (tag >>> 3) {
2429
+ case 1:
2430
+ message.title = reader.string();
2431
+ break;
2432
+ case 2:
2433
+ message.description = reader.string();
2434
+ break;
2435
+ case 3:
2436
+ message.accessConfigUpdates.push(AccessConfigUpdate.decode(reader, reader.uint32()));
2437
+ break;
2438
+ default:
2439
+ reader.skipType(tag & 7);
2440
+ break;
2441
+ }
2442
+ }
2443
+ return message;
2444
+ },
2445
+ fromPartial(object: Partial<UpdateInstantiateConfigProposal>): UpdateInstantiateConfigProposal {
2446
+ const message = createBaseUpdateInstantiateConfigProposal();
2447
+ message.title = object.title ?? "";
2448
+ message.description = object.description ?? "";
2449
+ message.accessConfigUpdates = object.accessConfigUpdates?.map(e => AccessConfigUpdate.fromPartial(e)) || [];
2450
+ return message;
2451
+ },
2452
+ fromAmino(object: UpdateInstantiateConfigProposalAmino): UpdateInstantiateConfigProposal {
2453
+ const message = createBaseUpdateInstantiateConfigProposal();
2454
+ if (object.title !== undefined && object.title !== null) {
2455
+ message.title = object.title;
2456
+ }
2457
+ if (object.description !== undefined && object.description !== null) {
2458
+ message.description = object.description;
2459
+ }
2460
+ message.accessConfigUpdates = object.access_config_updates?.map(e => AccessConfigUpdate.fromAmino(e)) || [];
2461
+ return message;
2462
+ },
2463
+ toAmino(message: UpdateInstantiateConfigProposal): UpdateInstantiateConfigProposalAmino {
2464
+ const obj: any = {};
2465
+ obj.title = message.title === "" ? undefined : message.title;
2466
+ obj.description = message.description === "" ? undefined : message.description;
2467
+ if (message.accessConfigUpdates) {
2468
+ obj.access_config_updates = message.accessConfigUpdates.map(e => e ? AccessConfigUpdate.toAmino(e) : undefined);
2469
+ } else {
2470
+ obj.access_config_updates = message.accessConfigUpdates;
2471
+ }
2472
+ return obj;
2473
+ },
2474
+ fromAminoMsg(object: UpdateInstantiateConfigProposalAminoMsg): UpdateInstantiateConfigProposal {
2475
+ return UpdateInstantiateConfigProposal.fromAmino(object.value);
2476
+ },
2477
+ toAminoMsg(message: UpdateInstantiateConfigProposal): UpdateInstantiateConfigProposalAminoMsg {
2478
+ return {
2479
+ type: "wasm/UpdateInstantiateConfigProposal",
2480
+ value: UpdateInstantiateConfigProposal.toAmino(message)
2481
+ };
2482
+ },
2483
+ fromProtoMsg(message: UpdateInstantiateConfigProposalProtoMsg): UpdateInstantiateConfigProposal {
2484
+ return UpdateInstantiateConfigProposal.decode(message.value);
2485
+ },
2486
+ toProto(message: UpdateInstantiateConfigProposal): Uint8Array {
2487
+ return UpdateInstantiateConfigProposal.encode(message).finish();
2488
+ },
2489
+ toProtoMsg(message: UpdateInstantiateConfigProposal): UpdateInstantiateConfigProposalProtoMsg {
2490
+ return {
2491
+ typeUrl: "/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",
2492
+ value: UpdateInstantiateConfigProposal.encode(message).finish()
2493
+ };
2494
+ }
2495
+ };
2496
+ function createBaseStoreAndInstantiateContractProposal(): StoreAndInstantiateContractProposal {
2497
+ return {
2498
+ $typeUrl: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal",
2499
+ title: "",
2500
+ description: "",
2501
+ runAs: "",
2502
+ wasmByteCode: new Uint8Array(),
2503
+ instantiatePermission: undefined,
2504
+ unpinCode: false,
2505
+ admin: "",
2506
+ label: "",
2507
+ msg: new Uint8Array(),
2508
+ funds: [],
2509
+ source: "",
2510
+ builder: "",
2511
+ codeHash: new Uint8Array()
2512
+ };
2513
+ }
2514
+ export const StoreAndInstantiateContractProposal = {
2515
+ typeUrl: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal",
2516
+ encode(message: StoreAndInstantiateContractProposal, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
2517
+ if (message.title !== "") {
2518
+ writer.uint32(10).string(message.title);
2519
+ }
2520
+ if (message.description !== "") {
2521
+ writer.uint32(18).string(message.description);
2522
+ }
2523
+ if (message.runAs !== "") {
2524
+ writer.uint32(26).string(message.runAs);
2525
+ }
2526
+ if (message.wasmByteCode.length !== 0) {
2527
+ writer.uint32(34).bytes(message.wasmByteCode);
2528
+ }
2529
+ if (message.instantiatePermission !== undefined) {
2530
+ AccessConfig.encode(message.instantiatePermission, writer.uint32(42).fork()).ldelim();
2531
+ }
2532
+ if (message.unpinCode === true) {
2533
+ writer.uint32(48).bool(message.unpinCode);
2534
+ }
2535
+ if (message.admin !== "") {
2536
+ writer.uint32(58).string(message.admin);
2537
+ }
2538
+ if (message.label !== "") {
2539
+ writer.uint32(66).string(message.label);
2540
+ }
2541
+ if (message.msg.length !== 0) {
2542
+ writer.uint32(74).bytes(message.msg);
2543
+ }
2544
+ for (const v of message.funds) {
2545
+ Coin.encode(v!, writer.uint32(82).fork()).ldelim();
2546
+ }
2547
+ if (message.source !== "") {
2548
+ writer.uint32(90).string(message.source);
2549
+ }
2550
+ if (message.builder !== "") {
2551
+ writer.uint32(98).string(message.builder);
2552
+ }
2553
+ if (message.codeHash.length !== 0) {
2554
+ writer.uint32(106).bytes(message.codeHash);
2555
+ }
2556
+ return writer;
2557
+ },
2558
+ decode(input: BinaryReader | Uint8Array, length?: number): StoreAndInstantiateContractProposal {
2559
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2560
+ let end = length === undefined ? reader.len : reader.pos + length;
2561
+ const message = createBaseStoreAndInstantiateContractProposal();
2562
+ while (reader.pos < end) {
2563
+ const tag = reader.uint32();
2564
+ switch (tag >>> 3) {
2565
+ case 1:
2566
+ message.title = reader.string();
2567
+ break;
2568
+ case 2:
2569
+ message.description = reader.string();
2570
+ break;
2571
+ case 3:
2572
+ message.runAs = reader.string();
2573
+ break;
2574
+ case 4:
2575
+ message.wasmByteCode = reader.bytes();
2576
+ break;
2577
+ case 5:
2578
+ message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
2579
+ break;
2580
+ case 6:
2581
+ message.unpinCode = reader.bool();
2582
+ break;
2583
+ case 7:
2584
+ message.admin = reader.string();
2585
+ break;
2586
+ case 8:
2587
+ message.label = reader.string();
2588
+ break;
2589
+ case 9:
2590
+ message.msg = reader.bytes();
2591
+ break;
2592
+ case 10:
2593
+ message.funds.push(Coin.decode(reader, reader.uint32()));
2594
+ break;
2595
+ case 11:
2596
+ message.source = reader.string();
2597
+ break;
2598
+ case 12:
2599
+ message.builder = reader.string();
2600
+ break;
2601
+ case 13:
2602
+ message.codeHash = reader.bytes();
2603
+ break;
2604
+ default:
2605
+ reader.skipType(tag & 7);
2606
+ break;
2607
+ }
2608
+ }
2609
+ return message;
2610
+ },
2611
+ fromPartial(object: Partial<StoreAndInstantiateContractProposal>): StoreAndInstantiateContractProposal {
2612
+ const message = createBaseStoreAndInstantiateContractProposal();
2613
+ message.title = object.title ?? "";
2614
+ message.description = object.description ?? "";
2615
+ message.runAs = object.runAs ?? "";
2616
+ message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
2617
+ message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
2618
+ message.unpinCode = object.unpinCode ?? false;
2619
+ message.admin = object.admin ?? "";
2620
+ message.label = object.label ?? "";
2621
+ message.msg = object.msg ?? new Uint8Array();
2622
+ message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
2623
+ message.source = object.source ?? "";
2624
+ message.builder = object.builder ?? "";
2625
+ message.codeHash = object.codeHash ?? new Uint8Array();
2626
+ return message;
2627
+ },
2628
+ fromAmino(object: StoreAndInstantiateContractProposalAmino): StoreAndInstantiateContractProposal {
2629
+ const message = createBaseStoreAndInstantiateContractProposal();
2630
+ if (object.title !== undefined && object.title !== null) {
2631
+ message.title = object.title;
2632
+ }
2633
+ if (object.description !== undefined && object.description !== null) {
2634
+ message.description = object.description;
2635
+ }
2636
+ if (object.run_as !== undefined && object.run_as !== null) {
2637
+ message.runAs = object.run_as;
2638
+ }
2639
+ if (object.wasm_byte_code !== undefined && object.wasm_byte_code !== null) {
2640
+ message.wasmByteCode = fromBase64(object.wasm_byte_code);
2641
+ }
2642
+ if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
2643
+ message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
2644
+ }
2645
+ if (object.unpin_code !== undefined && object.unpin_code !== null) {
2646
+ message.unpinCode = object.unpin_code;
2647
+ }
2648
+ if (object.admin !== undefined && object.admin !== null) {
2649
+ message.admin = object.admin;
2650
+ }
2651
+ if (object.label !== undefined && object.label !== null) {
2652
+ message.label = object.label;
2653
+ }
2654
+ if (object.msg !== undefined && object.msg !== null) {
2655
+ message.msg = toUtf8(JSON.stringify(object.msg));
2656
+ }
2657
+ message.funds = object.funds?.map(e => Coin.fromAmino(e)) || [];
2658
+ if (object.source !== undefined && object.source !== null) {
2659
+ message.source = object.source;
2660
+ }
2661
+ if (object.builder !== undefined && object.builder !== null) {
2662
+ message.builder = object.builder;
2663
+ }
2664
+ if (object.code_hash !== undefined && object.code_hash !== null) {
2665
+ message.codeHash = bytesFromBase64(object.code_hash);
2666
+ }
2667
+ return message;
2668
+ },
2669
+ toAmino(message: StoreAndInstantiateContractProposal): StoreAndInstantiateContractProposalAmino {
2670
+ const obj: any = {};
2671
+ obj.title = message.title === "" ? undefined : message.title;
2672
+ obj.description = message.description === "" ? undefined : message.description;
2673
+ obj.run_as = message.runAs === "" ? undefined : message.runAs;
2674
+ obj.wasm_byte_code = message.wasmByteCode ? toBase64(message.wasmByteCode) : undefined;
2675
+ obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined;
2676
+ obj.unpin_code = message.unpinCode === false ? undefined : message.unpinCode;
2677
+ obj.admin = message.admin === "" ? undefined : message.admin;
2678
+ obj.label = message.label === "" ? undefined : message.label;
2679
+ obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined;
2680
+ if (message.funds) {
2681
+ obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined);
2682
+ } else {
2683
+ obj.funds = message.funds;
2684
+ }
2685
+ obj.source = message.source === "" ? undefined : message.source;
2686
+ obj.builder = message.builder === "" ? undefined : message.builder;
2687
+ obj.code_hash = message.codeHash ? base64FromBytes(message.codeHash) : undefined;
2688
+ return obj;
2689
+ },
2690
+ fromAminoMsg(object: StoreAndInstantiateContractProposalAminoMsg): StoreAndInstantiateContractProposal {
2691
+ return StoreAndInstantiateContractProposal.fromAmino(object.value);
2692
+ },
2693
+ toAminoMsg(message: StoreAndInstantiateContractProposal): StoreAndInstantiateContractProposalAminoMsg {
2694
+ return {
2695
+ type: "wasm/StoreAndInstantiateContractProposal",
2696
+ value: StoreAndInstantiateContractProposal.toAmino(message)
2697
+ };
2698
+ },
2699
+ fromProtoMsg(message: StoreAndInstantiateContractProposalProtoMsg): StoreAndInstantiateContractProposal {
2700
+ return StoreAndInstantiateContractProposal.decode(message.value);
2701
+ },
2702
+ toProto(message: StoreAndInstantiateContractProposal): Uint8Array {
2703
+ return StoreAndInstantiateContractProposal.encode(message).finish();
2704
+ },
2705
+ toProtoMsg(message: StoreAndInstantiateContractProposal): StoreAndInstantiateContractProposalProtoMsg {
2706
+ return {
2707
+ typeUrl: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal",
2708
+ value: StoreAndInstantiateContractProposal.encode(message).finish()
2709
+ };
2710
+ }
2711
+ };