@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,1409 @@
1
+ //@ts-nocheck
2
+ import { AccessConfig, AccessConfigAmino, AccessConfigSDKType } from "./types";
3
+ import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any";
4
+ import { Coin, CoinAmino, CoinSDKType } from "../../../cosmos/base/v1beta1/coin";
5
+ import { BinaryReader, BinaryWriter } from "../../../binary";
6
+ import { bytesFromBase64, base64FromBytes } from "../../../helpers";
7
+ import { toUtf8, fromUtf8 } from "@cosmjs/encoding";
8
+ /**
9
+ * StoreCodeAuthorization defines authorization for wasm code upload.
10
+ * Since: wasmd 0.42
11
+ */
12
+ export interface StoreCodeAuthorization {
13
+ $typeUrl?: "/cosmwasm.wasm.v1.StoreCodeAuthorization";
14
+ /** Grants for code upload */
15
+ grants: CodeGrant[];
16
+ }
17
+ export interface StoreCodeAuthorizationProtoMsg {
18
+ typeUrl: "/cosmwasm.wasm.v1.StoreCodeAuthorization";
19
+ value: Uint8Array;
20
+ }
21
+ /**
22
+ * StoreCodeAuthorization defines authorization for wasm code upload.
23
+ * Since: wasmd 0.42
24
+ * @name StoreCodeAuthorizationAmino
25
+ * @package cosmwasm.wasm.v1
26
+ * @see proto type: cosmwasm.wasm.v1.StoreCodeAuthorization
27
+ */
28
+ export interface StoreCodeAuthorizationAmino {
29
+ /**
30
+ * Grants for code upload
31
+ */
32
+ grants: CodeGrantAmino[];
33
+ }
34
+ export interface StoreCodeAuthorizationAminoMsg {
35
+ type: "wasm/StoreCodeAuthorization";
36
+ value: StoreCodeAuthorizationAmino;
37
+ }
38
+ /**
39
+ * StoreCodeAuthorization defines authorization for wasm code upload.
40
+ * Since: wasmd 0.42
41
+ */
42
+ export interface StoreCodeAuthorizationSDKType {
43
+ $typeUrl?: "/cosmwasm.wasm.v1.StoreCodeAuthorization";
44
+ grants: CodeGrantSDKType[];
45
+ }
46
+ /**
47
+ * ContractExecutionAuthorization defines authorization for wasm execute.
48
+ * Since: wasmd 0.30
49
+ */
50
+ export interface ContractExecutionAuthorization {
51
+ $typeUrl?: "/cosmwasm.wasm.v1.ContractExecutionAuthorization";
52
+ /** Grants for contract executions */
53
+ grants: ContractGrant[];
54
+ }
55
+ export interface ContractExecutionAuthorizationProtoMsg {
56
+ typeUrl: "/cosmwasm.wasm.v1.ContractExecutionAuthorization";
57
+ value: Uint8Array;
58
+ }
59
+ /**
60
+ * ContractExecutionAuthorization defines authorization for wasm execute.
61
+ * Since: wasmd 0.30
62
+ * @name ContractExecutionAuthorizationAmino
63
+ * @package cosmwasm.wasm.v1
64
+ * @see proto type: cosmwasm.wasm.v1.ContractExecutionAuthorization
65
+ */
66
+ export interface ContractExecutionAuthorizationAmino {
67
+ /**
68
+ * Grants for contract executions
69
+ */
70
+ grants: ContractGrantAmino[];
71
+ }
72
+ export interface ContractExecutionAuthorizationAminoMsg {
73
+ type: "wasm/ContractExecutionAuthorization";
74
+ value: ContractExecutionAuthorizationAmino;
75
+ }
76
+ /**
77
+ * ContractExecutionAuthorization defines authorization for wasm execute.
78
+ * Since: wasmd 0.30
79
+ */
80
+ export interface ContractExecutionAuthorizationSDKType {
81
+ $typeUrl?: "/cosmwasm.wasm.v1.ContractExecutionAuthorization";
82
+ grants: ContractGrantSDKType[];
83
+ }
84
+ /**
85
+ * ContractMigrationAuthorization defines authorization for wasm contract
86
+ * migration. Since: wasmd 0.30
87
+ */
88
+ export interface ContractMigrationAuthorization {
89
+ $typeUrl?: "/cosmwasm.wasm.v1.ContractMigrationAuthorization";
90
+ /** Grants for contract migrations */
91
+ grants: ContractGrant[];
92
+ }
93
+ export interface ContractMigrationAuthorizationProtoMsg {
94
+ typeUrl: "/cosmwasm.wasm.v1.ContractMigrationAuthorization";
95
+ value: Uint8Array;
96
+ }
97
+ /**
98
+ * ContractMigrationAuthorization defines authorization for wasm contract
99
+ * migration. Since: wasmd 0.30
100
+ * @name ContractMigrationAuthorizationAmino
101
+ * @package cosmwasm.wasm.v1
102
+ * @see proto type: cosmwasm.wasm.v1.ContractMigrationAuthorization
103
+ */
104
+ export interface ContractMigrationAuthorizationAmino {
105
+ /**
106
+ * Grants for contract migrations
107
+ */
108
+ grants: ContractGrantAmino[];
109
+ }
110
+ export interface ContractMigrationAuthorizationAminoMsg {
111
+ type: "wasm/ContractMigrationAuthorization";
112
+ value: ContractMigrationAuthorizationAmino;
113
+ }
114
+ /**
115
+ * ContractMigrationAuthorization defines authorization for wasm contract
116
+ * migration. Since: wasmd 0.30
117
+ */
118
+ export interface ContractMigrationAuthorizationSDKType {
119
+ $typeUrl?: "/cosmwasm.wasm.v1.ContractMigrationAuthorization";
120
+ grants: ContractGrantSDKType[];
121
+ }
122
+ /** CodeGrant a granted permission for a single code */
123
+ export interface CodeGrant {
124
+ /**
125
+ * CodeHash is the unique identifier created by wasmvm
126
+ * Wildcard "*" is used to specify any kind of grant.
127
+ */
128
+ codeHash: Uint8Array;
129
+ /**
130
+ * InstantiatePermission is the superset access control to apply
131
+ * on contract creation.
132
+ * Optional
133
+ */
134
+ instantiatePermission?: AccessConfig;
135
+ }
136
+ export interface CodeGrantProtoMsg {
137
+ typeUrl: "/cosmwasm.wasm.v1.CodeGrant";
138
+ value: Uint8Array;
139
+ }
140
+ /**
141
+ * CodeGrant a granted permission for a single code
142
+ * @name CodeGrantAmino
143
+ * @package cosmwasm.wasm.v1
144
+ * @see proto type: cosmwasm.wasm.v1.CodeGrant
145
+ */
146
+ export interface CodeGrantAmino {
147
+ /**
148
+ * CodeHash is the unique identifier created by wasmvm
149
+ * Wildcard "*" is used to specify any kind of grant.
150
+ */
151
+ code_hash?: string;
152
+ /**
153
+ * InstantiatePermission is the superset access control to apply
154
+ * on contract creation.
155
+ * Optional
156
+ */
157
+ instantiate_permission?: AccessConfigAmino;
158
+ }
159
+ export interface CodeGrantAminoMsg {
160
+ type: "wasm/CodeGrant";
161
+ value: CodeGrantAmino;
162
+ }
163
+ /** CodeGrant a granted permission for a single code */
164
+ export interface CodeGrantSDKType {
165
+ code_hash: Uint8Array;
166
+ instantiate_permission?: AccessConfigSDKType;
167
+ }
168
+ /**
169
+ * ContractGrant a granted permission for a single contract
170
+ * Since: wasmd 0.30
171
+ */
172
+ export interface ContractGrant {
173
+ /** Contract is the bech32 address of the smart contract */
174
+ contract: string;
175
+ /**
176
+ * Limit defines execution limits that are enforced and updated when the grant
177
+ * is applied. When the limit lapsed the grant is removed.
178
+ */
179
+ limit?: MaxCallsLimit | MaxFundsLimit | CombinedLimit | Any | undefined;
180
+ /**
181
+ * Filter define more fine-grained control on the message payload passed
182
+ * to the contract in the operation. When no filter applies on execution, the
183
+ * operation is prohibited.
184
+ */
185
+ filter?: AllowAllMessagesFilter | AcceptedMessageKeysFilter | AcceptedMessagesFilter | Any | undefined;
186
+ }
187
+ export interface ContractGrantProtoMsg {
188
+ typeUrl: "/cosmwasm.wasm.v1.ContractGrant";
189
+ value: Uint8Array;
190
+ }
191
+ export type ContractGrantEncoded = Omit<ContractGrant, "limit" | "filter"> & {
192
+ /**
193
+ * Limit defines execution limits that are enforced and updated when the grant
194
+ * is applied. When the limit lapsed the grant is removed.
195
+ */
196
+ limit?: MaxCallsLimitProtoMsg | MaxFundsLimitProtoMsg | CombinedLimitProtoMsg | AnyProtoMsg | undefined;
197
+ /**
198
+ * Filter define more fine-grained control on the message payload passed
199
+ * to the contract in the operation. When no filter applies on execution, the
200
+ * operation is prohibited.
201
+ */
202
+ filter?: AllowAllMessagesFilterProtoMsg | AcceptedMessageKeysFilterProtoMsg | AcceptedMessagesFilterProtoMsg | AnyProtoMsg | undefined;
203
+ };
204
+ /**
205
+ * ContractGrant a granted permission for a single contract
206
+ * Since: wasmd 0.30
207
+ * @name ContractGrantAmino
208
+ * @package cosmwasm.wasm.v1
209
+ * @see proto type: cosmwasm.wasm.v1.ContractGrant
210
+ */
211
+ export interface ContractGrantAmino {
212
+ /**
213
+ * Contract is the bech32 address of the smart contract
214
+ */
215
+ contract?: string;
216
+ /**
217
+ * Limit defines execution limits that are enforced and updated when the grant
218
+ * is applied. When the limit lapsed the grant is removed.
219
+ */
220
+ limit?: AnyAmino;
221
+ /**
222
+ * Filter define more fine-grained control on the message payload passed
223
+ * to the contract in the operation. When no filter applies on execution, the
224
+ * operation is prohibited.
225
+ */
226
+ filter?: AnyAmino;
227
+ }
228
+ export interface ContractGrantAminoMsg {
229
+ type: "wasm/ContractGrant";
230
+ value: ContractGrantAmino;
231
+ }
232
+ /**
233
+ * ContractGrant a granted permission for a single contract
234
+ * Since: wasmd 0.30
235
+ */
236
+ export interface ContractGrantSDKType {
237
+ contract: string;
238
+ limit?: MaxCallsLimitSDKType | MaxFundsLimitSDKType | CombinedLimitSDKType | AnySDKType | undefined;
239
+ filter?: AllowAllMessagesFilterSDKType | AcceptedMessageKeysFilterSDKType | AcceptedMessagesFilterSDKType | AnySDKType | undefined;
240
+ }
241
+ /**
242
+ * MaxCallsLimit limited number of calls to the contract. No funds transferable.
243
+ * Since: wasmd 0.30
244
+ */
245
+ export interface MaxCallsLimit {
246
+ $typeUrl?: "/cosmwasm.wasm.v1.MaxCallsLimit";
247
+ /** Remaining number that is decremented on each execution */
248
+ remaining: bigint;
249
+ }
250
+ export interface MaxCallsLimitProtoMsg {
251
+ typeUrl: "/cosmwasm.wasm.v1.MaxCallsLimit";
252
+ value: Uint8Array;
253
+ }
254
+ /**
255
+ * MaxCallsLimit limited number of calls to the contract. No funds transferable.
256
+ * Since: wasmd 0.30
257
+ * @name MaxCallsLimitAmino
258
+ * @package cosmwasm.wasm.v1
259
+ * @see proto type: cosmwasm.wasm.v1.MaxCallsLimit
260
+ */
261
+ export interface MaxCallsLimitAmino {
262
+ /**
263
+ * Remaining number that is decremented on each execution
264
+ */
265
+ remaining?: string;
266
+ }
267
+ export interface MaxCallsLimitAminoMsg {
268
+ type: "wasm/MaxCallsLimit";
269
+ value: MaxCallsLimitAmino;
270
+ }
271
+ /**
272
+ * MaxCallsLimit limited number of calls to the contract. No funds transferable.
273
+ * Since: wasmd 0.30
274
+ */
275
+ export interface MaxCallsLimitSDKType {
276
+ $typeUrl?: "/cosmwasm.wasm.v1.MaxCallsLimit";
277
+ remaining: bigint;
278
+ }
279
+ /**
280
+ * MaxFundsLimit defines the maximal amounts that can be sent to the contract.
281
+ * Since: wasmd 0.30
282
+ */
283
+ export interface MaxFundsLimit {
284
+ $typeUrl?: "/cosmwasm.wasm.v1.MaxFundsLimit";
285
+ /** Amounts is the maximal amount of tokens transferable to the contract. */
286
+ amounts: Coin[];
287
+ }
288
+ export interface MaxFundsLimitProtoMsg {
289
+ typeUrl: "/cosmwasm.wasm.v1.MaxFundsLimit";
290
+ value: Uint8Array;
291
+ }
292
+ /**
293
+ * MaxFundsLimit defines the maximal amounts that can be sent to the contract.
294
+ * Since: wasmd 0.30
295
+ * @name MaxFundsLimitAmino
296
+ * @package cosmwasm.wasm.v1
297
+ * @see proto type: cosmwasm.wasm.v1.MaxFundsLimit
298
+ */
299
+ export interface MaxFundsLimitAmino {
300
+ /**
301
+ * Amounts is the maximal amount of tokens transferable to the contract.
302
+ */
303
+ amounts: CoinAmino[];
304
+ }
305
+ export interface MaxFundsLimitAminoMsg {
306
+ type: "wasm/MaxFundsLimit";
307
+ value: MaxFundsLimitAmino;
308
+ }
309
+ /**
310
+ * MaxFundsLimit defines the maximal amounts that can be sent to the contract.
311
+ * Since: wasmd 0.30
312
+ */
313
+ export interface MaxFundsLimitSDKType {
314
+ $typeUrl?: "/cosmwasm.wasm.v1.MaxFundsLimit";
315
+ amounts: CoinSDKType[];
316
+ }
317
+ /**
318
+ * CombinedLimit defines the maximal amounts that can be sent to a contract and
319
+ * the maximal number of calls executable. Both need to remain >0 to be valid.
320
+ * Since: wasmd 0.30
321
+ */
322
+ export interface CombinedLimit {
323
+ $typeUrl?: "/cosmwasm.wasm.v1.CombinedLimit";
324
+ /** Remaining number that is decremented on each execution */
325
+ callsRemaining: bigint;
326
+ /** Amounts is the maximal amount of tokens transferable to the contract. */
327
+ amounts: Coin[];
328
+ }
329
+ export interface CombinedLimitProtoMsg {
330
+ typeUrl: "/cosmwasm.wasm.v1.CombinedLimit";
331
+ value: Uint8Array;
332
+ }
333
+ /**
334
+ * CombinedLimit defines the maximal amounts that can be sent to a contract and
335
+ * the maximal number of calls executable. Both need to remain >0 to be valid.
336
+ * Since: wasmd 0.30
337
+ * @name CombinedLimitAmino
338
+ * @package cosmwasm.wasm.v1
339
+ * @see proto type: cosmwasm.wasm.v1.CombinedLimit
340
+ */
341
+ export interface CombinedLimitAmino {
342
+ /**
343
+ * Remaining number that is decremented on each execution
344
+ */
345
+ calls_remaining?: string;
346
+ /**
347
+ * Amounts is the maximal amount of tokens transferable to the contract.
348
+ */
349
+ amounts: CoinAmino[];
350
+ }
351
+ export interface CombinedLimitAminoMsg {
352
+ type: "wasm/CombinedLimit";
353
+ value: CombinedLimitAmino;
354
+ }
355
+ /**
356
+ * CombinedLimit defines the maximal amounts that can be sent to a contract and
357
+ * the maximal number of calls executable. Both need to remain >0 to be valid.
358
+ * Since: wasmd 0.30
359
+ */
360
+ export interface CombinedLimitSDKType {
361
+ $typeUrl?: "/cosmwasm.wasm.v1.CombinedLimit";
362
+ calls_remaining: bigint;
363
+ amounts: CoinSDKType[];
364
+ }
365
+ /**
366
+ * AllowAllMessagesFilter is a wildcard to allow any type of contract payload
367
+ * message.
368
+ * Since: wasmd 0.30
369
+ */
370
+ export interface AllowAllMessagesFilter {
371
+ $typeUrl?: "/cosmwasm.wasm.v1.AllowAllMessagesFilter";
372
+ }
373
+ export interface AllowAllMessagesFilterProtoMsg {
374
+ typeUrl: "/cosmwasm.wasm.v1.AllowAllMessagesFilter";
375
+ value: Uint8Array;
376
+ }
377
+ /**
378
+ * AllowAllMessagesFilter is a wildcard to allow any type of contract payload
379
+ * message.
380
+ * Since: wasmd 0.30
381
+ * @name AllowAllMessagesFilterAmino
382
+ * @package cosmwasm.wasm.v1
383
+ * @see proto type: cosmwasm.wasm.v1.AllowAllMessagesFilter
384
+ */
385
+ export interface AllowAllMessagesFilterAmino {}
386
+ export interface AllowAllMessagesFilterAminoMsg {
387
+ type: "wasm/AllowAllMessagesFilter";
388
+ value: AllowAllMessagesFilterAmino;
389
+ }
390
+ /**
391
+ * AllowAllMessagesFilter is a wildcard to allow any type of contract payload
392
+ * message.
393
+ * Since: wasmd 0.30
394
+ */
395
+ export interface AllowAllMessagesFilterSDKType {
396
+ $typeUrl?: "/cosmwasm.wasm.v1.AllowAllMessagesFilter";
397
+ }
398
+ /**
399
+ * AcceptedMessageKeysFilter accept only the specific contract message keys in
400
+ * the json object to be executed.
401
+ * Since: wasmd 0.30
402
+ */
403
+ export interface AcceptedMessageKeysFilter {
404
+ $typeUrl?: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter";
405
+ /** Messages is the list of unique keys */
406
+ keys: string[];
407
+ }
408
+ export interface AcceptedMessageKeysFilterProtoMsg {
409
+ typeUrl: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter";
410
+ value: Uint8Array;
411
+ }
412
+ /**
413
+ * AcceptedMessageKeysFilter accept only the specific contract message keys in
414
+ * the json object to be executed.
415
+ * Since: wasmd 0.30
416
+ * @name AcceptedMessageKeysFilterAmino
417
+ * @package cosmwasm.wasm.v1
418
+ * @see proto type: cosmwasm.wasm.v1.AcceptedMessageKeysFilter
419
+ */
420
+ export interface AcceptedMessageKeysFilterAmino {
421
+ /**
422
+ * Messages is the list of unique keys
423
+ */
424
+ keys?: string[];
425
+ }
426
+ export interface AcceptedMessageKeysFilterAminoMsg {
427
+ type: "wasm/AcceptedMessageKeysFilter";
428
+ value: AcceptedMessageKeysFilterAmino;
429
+ }
430
+ /**
431
+ * AcceptedMessageKeysFilter accept only the specific contract message keys in
432
+ * the json object to be executed.
433
+ * Since: wasmd 0.30
434
+ */
435
+ export interface AcceptedMessageKeysFilterSDKType {
436
+ $typeUrl?: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter";
437
+ keys: string[];
438
+ }
439
+ /**
440
+ * AcceptedMessagesFilter accept only the specific raw contract messages to be
441
+ * executed.
442
+ * Since: wasmd 0.30
443
+ */
444
+ export interface AcceptedMessagesFilter {
445
+ $typeUrl?: "/cosmwasm.wasm.v1.AcceptedMessagesFilter";
446
+ /** Messages is the list of raw contract messages */
447
+ messages: Uint8Array[];
448
+ }
449
+ export interface AcceptedMessagesFilterProtoMsg {
450
+ typeUrl: "/cosmwasm.wasm.v1.AcceptedMessagesFilter";
451
+ value: Uint8Array;
452
+ }
453
+ /**
454
+ * AcceptedMessagesFilter accept only the specific raw contract messages to be
455
+ * executed.
456
+ * Since: wasmd 0.30
457
+ * @name AcceptedMessagesFilterAmino
458
+ * @package cosmwasm.wasm.v1
459
+ * @see proto type: cosmwasm.wasm.v1.AcceptedMessagesFilter
460
+ */
461
+ export interface AcceptedMessagesFilterAmino {
462
+ /**
463
+ * Messages is the list of raw contract messages
464
+ */
465
+ messages?: any[];
466
+ }
467
+ export interface AcceptedMessagesFilterAminoMsg {
468
+ type: "wasm/AcceptedMessagesFilter";
469
+ value: AcceptedMessagesFilterAmino;
470
+ }
471
+ /**
472
+ * AcceptedMessagesFilter accept only the specific raw contract messages to be
473
+ * executed.
474
+ * Since: wasmd 0.30
475
+ */
476
+ export interface AcceptedMessagesFilterSDKType {
477
+ $typeUrl?: "/cosmwasm.wasm.v1.AcceptedMessagesFilter";
478
+ messages: Uint8Array[];
479
+ }
480
+ function createBaseStoreCodeAuthorization(): StoreCodeAuthorization {
481
+ return {
482
+ $typeUrl: "/cosmwasm.wasm.v1.StoreCodeAuthorization",
483
+ grants: []
484
+ };
485
+ }
486
+ export const StoreCodeAuthorization = {
487
+ typeUrl: "/cosmwasm.wasm.v1.StoreCodeAuthorization",
488
+ encode(message: StoreCodeAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
489
+ for (const v of message.grants) {
490
+ CodeGrant.encode(v!, writer.uint32(10).fork()).ldelim();
491
+ }
492
+ return writer;
493
+ },
494
+ decode(input: BinaryReader | Uint8Array, length?: number): StoreCodeAuthorization {
495
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
496
+ let end = length === undefined ? reader.len : reader.pos + length;
497
+ const message = createBaseStoreCodeAuthorization();
498
+ while (reader.pos < end) {
499
+ const tag = reader.uint32();
500
+ switch (tag >>> 3) {
501
+ case 1:
502
+ message.grants.push(CodeGrant.decode(reader, reader.uint32()));
503
+ break;
504
+ default:
505
+ reader.skipType(tag & 7);
506
+ break;
507
+ }
508
+ }
509
+ return message;
510
+ },
511
+ fromPartial(object: Partial<StoreCodeAuthorization>): StoreCodeAuthorization {
512
+ const message = createBaseStoreCodeAuthorization();
513
+ message.grants = object.grants?.map(e => CodeGrant.fromPartial(e)) || [];
514
+ return message;
515
+ },
516
+ fromAmino(object: StoreCodeAuthorizationAmino): StoreCodeAuthorization {
517
+ const message = createBaseStoreCodeAuthorization();
518
+ message.grants = object.grants?.map(e => CodeGrant.fromAmino(e)) || [];
519
+ return message;
520
+ },
521
+ toAmino(message: StoreCodeAuthorization): StoreCodeAuthorizationAmino {
522
+ const obj: any = {};
523
+ if (message.grants) {
524
+ obj.grants = message.grants.map(e => e ? CodeGrant.toAmino(e) : undefined);
525
+ } else {
526
+ obj.grants = message.grants;
527
+ }
528
+ return obj;
529
+ },
530
+ fromAminoMsg(object: StoreCodeAuthorizationAminoMsg): StoreCodeAuthorization {
531
+ return StoreCodeAuthorization.fromAmino(object.value);
532
+ },
533
+ toAminoMsg(message: StoreCodeAuthorization): StoreCodeAuthorizationAminoMsg {
534
+ return {
535
+ type: "wasm/StoreCodeAuthorization",
536
+ value: StoreCodeAuthorization.toAmino(message)
537
+ };
538
+ },
539
+ fromProtoMsg(message: StoreCodeAuthorizationProtoMsg): StoreCodeAuthorization {
540
+ return StoreCodeAuthorization.decode(message.value);
541
+ },
542
+ toProto(message: StoreCodeAuthorization): Uint8Array {
543
+ return StoreCodeAuthorization.encode(message).finish();
544
+ },
545
+ toProtoMsg(message: StoreCodeAuthorization): StoreCodeAuthorizationProtoMsg {
546
+ return {
547
+ typeUrl: "/cosmwasm.wasm.v1.StoreCodeAuthorization",
548
+ value: StoreCodeAuthorization.encode(message).finish()
549
+ };
550
+ }
551
+ };
552
+ function createBaseContractExecutionAuthorization(): ContractExecutionAuthorization {
553
+ return {
554
+ $typeUrl: "/cosmwasm.wasm.v1.ContractExecutionAuthorization",
555
+ grants: []
556
+ };
557
+ }
558
+ export const ContractExecutionAuthorization = {
559
+ typeUrl: "/cosmwasm.wasm.v1.ContractExecutionAuthorization",
560
+ encode(message: ContractExecutionAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
561
+ for (const v of message.grants) {
562
+ ContractGrant.encode(v!, writer.uint32(10).fork()).ldelim();
563
+ }
564
+ return writer;
565
+ },
566
+ decode(input: BinaryReader | Uint8Array, length?: number): ContractExecutionAuthorization {
567
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
568
+ let end = length === undefined ? reader.len : reader.pos + length;
569
+ const message = createBaseContractExecutionAuthorization();
570
+ while (reader.pos < end) {
571
+ const tag = reader.uint32();
572
+ switch (tag >>> 3) {
573
+ case 1:
574
+ message.grants.push(ContractGrant.decode(reader, reader.uint32()));
575
+ break;
576
+ default:
577
+ reader.skipType(tag & 7);
578
+ break;
579
+ }
580
+ }
581
+ return message;
582
+ },
583
+ fromPartial(object: Partial<ContractExecutionAuthorization>): ContractExecutionAuthorization {
584
+ const message = createBaseContractExecutionAuthorization();
585
+ message.grants = object.grants?.map(e => ContractGrant.fromPartial(e)) || [];
586
+ return message;
587
+ },
588
+ fromAmino(object: ContractExecutionAuthorizationAmino): ContractExecutionAuthorization {
589
+ const message = createBaseContractExecutionAuthorization();
590
+ message.grants = object.grants?.map(e => ContractGrant.fromAmino(e)) || [];
591
+ return message;
592
+ },
593
+ toAmino(message: ContractExecutionAuthorization): ContractExecutionAuthorizationAmino {
594
+ const obj: any = {};
595
+ if (message.grants) {
596
+ obj.grants = message.grants.map(e => e ? ContractGrant.toAmino(e) : undefined);
597
+ } else {
598
+ obj.grants = message.grants;
599
+ }
600
+ return obj;
601
+ },
602
+ fromAminoMsg(object: ContractExecutionAuthorizationAminoMsg): ContractExecutionAuthorization {
603
+ return ContractExecutionAuthorization.fromAmino(object.value);
604
+ },
605
+ toAminoMsg(message: ContractExecutionAuthorization): ContractExecutionAuthorizationAminoMsg {
606
+ return {
607
+ type: "wasm/ContractExecutionAuthorization",
608
+ value: ContractExecutionAuthorization.toAmino(message)
609
+ };
610
+ },
611
+ fromProtoMsg(message: ContractExecutionAuthorizationProtoMsg): ContractExecutionAuthorization {
612
+ return ContractExecutionAuthorization.decode(message.value);
613
+ },
614
+ toProto(message: ContractExecutionAuthorization): Uint8Array {
615
+ return ContractExecutionAuthorization.encode(message).finish();
616
+ },
617
+ toProtoMsg(message: ContractExecutionAuthorization): ContractExecutionAuthorizationProtoMsg {
618
+ return {
619
+ typeUrl: "/cosmwasm.wasm.v1.ContractExecutionAuthorization",
620
+ value: ContractExecutionAuthorization.encode(message).finish()
621
+ };
622
+ }
623
+ };
624
+ function createBaseContractMigrationAuthorization(): ContractMigrationAuthorization {
625
+ return {
626
+ $typeUrl: "/cosmwasm.wasm.v1.ContractMigrationAuthorization",
627
+ grants: []
628
+ };
629
+ }
630
+ export const ContractMigrationAuthorization = {
631
+ typeUrl: "/cosmwasm.wasm.v1.ContractMigrationAuthorization",
632
+ encode(message: ContractMigrationAuthorization, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
633
+ for (const v of message.grants) {
634
+ ContractGrant.encode(v!, writer.uint32(10).fork()).ldelim();
635
+ }
636
+ return writer;
637
+ },
638
+ decode(input: BinaryReader | Uint8Array, length?: number): ContractMigrationAuthorization {
639
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
640
+ let end = length === undefined ? reader.len : reader.pos + length;
641
+ const message = createBaseContractMigrationAuthorization();
642
+ while (reader.pos < end) {
643
+ const tag = reader.uint32();
644
+ switch (tag >>> 3) {
645
+ case 1:
646
+ message.grants.push(ContractGrant.decode(reader, reader.uint32()));
647
+ break;
648
+ default:
649
+ reader.skipType(tag & 7);
650
+ break;
651
+ }
652
+ }
653
+ return message;
654
+ },
655
+ fromPartial(object: Partial<ContractMigrationAuthorization>): ContractMigrationAuthorization {
656
+ const message = createBaseContractMigrationAuthorization();
657
+ message.grants = object.grants?.map(e => ContractGrant.fromPartial(e)) || [];
658
+ return message;
659
+ },
660
+ fromAmino(object: ContractMigrationAuthorizationAmino): ContractMigrationAuthorization {
661
+ const message = createBaseContractMigrationAuthorization();
662
+ message.grants = object.grants?.map(e => ContractGrant.fromAmino(e)) || [];
663
+ return message;
664
+ },
665
+ toAmino(message: ContractMigrationAuthorization): ContractMigrationAuthorizationAmino {
666
+ const obj: any = {};
667
+ if (message.grants) {
668
+ obj.grants = message.grants.map(e => e ? ContractGrant.toAmino(e) : undefined);
669
+ } else {
670
+ obj.grants = message.grants;
671
+ }
672
+ return obj;
673
+ },
674
+ fromAminoMsg(object: ContractMigrationAuthorizationAminoMsg): ContractMigrationAuthorization {
675
+ return ContractMigrationAuthorization.fromAmino(object.value);
676
+ },
677
+ toAminoMsg(message: ContractMigrationAuthorization): ContractMigrationAuthorizationAminoMsg {
678
+ return {
679
+ type: "wasm/ContractMigrationAuthorization",
680
+ value: ContractMigrationAuthorization.toAmino(message)
681
+ };
682
+ },
683
+ fromProtoMsg(message: ContractMigrationAuthorizationProtoMsg): ContractMigrationAuthorization {
684
+ return ContractMigrationAuthorization.decode(message.value);
685
+ },
686
+ toProto(message: ContractMigrationAuthorization): Uint8Array {
687
+ return ContractMigrationAuthorization.encode(message).finish();
688
+ },
689
+ toProtoMsg(message: ContractMigrationAuthorization): ContractMigrationAuthorizationProtoMsg {
690
+ return {
691
+ typeUrl: "/cosmwasm.wasm.v1.ContractMigrationAuthorization",
692
+ value: ContractMigrationAuthorization.encode(message).finish()
693
+ };
694
+ }
695
+ };
696
+ function createBaseCodeGrant(): CodeGrant {
697
+ return {
698
+ codeHash: new Uint8Array(),
699
+ instantiatePermission: undefined
700
+ };
701
+ }
702
+ export const CodeGrant = {
703
+ typeUrl: "/cosmwasm.wasm.v1.CodeGrant",
704
+ encode(message: CodeGrant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
705
+ if (message.codeHash.length !== 0) {
706
+ writer.uint32(10).bytes(message.codeHash);
707
+ }
708
+ if (message.instantiatePermission !== undefined) {
709
+ AccessConfig.encode(message.instantiatePermission, writer.uint32(18).fork()).ldelim();
710
+ }
711
+ return writer;
712
+ },
713
+ decode(input: BinaryReader | Uint8Array, length?: number): CodeGrant {
714
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
715
+ let end = length === undefined ? reader.len : reader.pos + length;
716
+ const message = createBaseCodeGrant();
717
+ while (reader.pos < end) {
718
+ const tag = reader.uint32();
719
+ switch (tag >>> 3) {
720
+ case 1:
721
+ message.codeHash = reader.bytes();
722
+ break;
723
+ case 2:
724
+ message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
725
+ break;
726
+ default:
727
+ reader.skipType(tag & 7);
728
+ break;
729
+ }
730
+ }
731
+ return message;
732
+ },
733
+ fromPartial(object: Partial<CodeGrant>): CodeGrant {
734
+ const message = createBaseCodeGrant();
735
+ message.codeHash = object.codeHash ?? new Uint8Array();
736
+ message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
737
+ return message;
738
+ },
739
+ fromAmino(object: CodeGrantAmino): CodeGrant {
740
+ const message = createBaseCodeGrant();
741
+ if (object.code_hash !== undefined && object.code_hash !== null) {
742
+ message.codeHash = bytesFromBase64(object.code_hash);
743
+ }
744
+ if (object.instantiate_permission !== undefined && object.instantiate_permission !== null) {
745
+ message.instantiatePermission = AccessConfig.fromAmino(object.instantiate_permission);
746
+ }
747
+ return message;
748
+ },
749
+ toAmino(message: CodeGrant): CodeGrantAmino {
750
+ const obj: any = {};
751
+ obj.code_hash = message.codeHash ? base64FromBytes(message.codeHash) : undefined;
752
+ obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined;
753
+ return obj;
754
+ },
755
+ fromAminoMsg(object: CodeGrantAminoMsg): CodeGrant {
756
+ return CodeGrant.fromAmino(object.value);
757
+ },
758
+ toAminoMsg(message: CodeGrant): CodeGrantAminoMsg {
759
+ return {
760
+ type: "wasm/CodeGrant",
761
+ value: CodeGrant.toAmino(message)
762
+ };
763
+ },
764
+ fromProtoMsg(message: CodeGrantProtoMsg): CodeGrant {
765
+ return CodeGrant.decode(message.value);
766
+ },
767
+ toProto(message: CodeGrant): Uint8Array {
768
+ return CodeGrant.encode(message).finish();
769
+ },
770
+ toProtoMsg(message: CodeGrant): CodeGrantProtoMsg {
771
+ return {
772
+ typeUrl: "/cosmwasm.wasm.v1.CodeGrant",
773
+ value: CodeGrant.encode(message).finish()
774
+ };
775
+ }
776
+ };
777
+ function createBaseContractGrant(): ContractGrant {
778
+ return {
779
+ contract: "",
780
+ limit: undefined,
781
+ filter: undefined
782
+ };
783
+ }
784
+ export const ContractGrant = {
785
+ typeUrl: "/cosmwasm.wasm.v1.ContractGrant",
786
+ encode(message: ContractGrant, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
787
+ if (message.contract !== "") {
788
+ writer.uint32(10).string(message.contract);
789
+ }
790
+ if (message.limit !== undefined) {
791
+ Any.encode(message.limit as Any, writer.uint32(18).fork()).ldelim();
792
+ }
793
+ if (message.filter !== undefined) {
794
+ Any.encode(message.filter as Any, writer.uint32(26).fork()).ldelim();
795
+ }
796
+ return writer;
797
+ },
798
+ decode(input: BinaryReader | Uint8Array, length?: number): ContractGrant {
799
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
800
+ let end = length === undefined ? reader.len : reader.pos + length;
801
+ const message = createBaseContractGrant();
802
+ while (reader.pos < end) {
803
+ const tag = reader.uint32();
804
+ switch (tag >>> 3) {
805
+ case 1:
806
+ message.contract = reader.string();
807
+ break;
808
+ case 2:
809
+ message.limit = Cosmwasm_wasmv1ContractAuthzLimitX_InterfaceDecoder(reader) as Any;
810
+ break;
811
+ case 3:
812
+ message.filter = Cosmwasm_wasmv1ContractAuthzFilterX_InterfaceDecoder(reader) as Any;
813
+ break;
814
+ default:
815
+ reader.skipType(tag & 7);
816
+ break;
817
+ }
818
+ }
819
+ return message;
820
+ },
821
+ fromPartial(object: Partial<ContractGrant>): ContractGrant {
822
+ const message = createBaseContractGrant();
823
+ message.contract = object.contract ?? "";
824
+ message.limit = object.limit !== undefined && object.limit !== null ? Any.fromPartial(object.limit) : undefined;
825
+ message.filter = object.filter !== undefined && object.filter !== null ? Any.fromPartial(object.filter) : undefined;
826
+ return message;
827
+ },
828
+ fromAmino(object: ContractGrantAmino): ContractGrant {
829
+ const message = createBaseContractGrant();
830
+ if (object.contract !== undefined && object.contract !== null) {
831
+ message.contract = object.contract;
832
+ }
833
+ if (object.limit !== undefined && object.limit !== null) {
834
+ message.limit = Cosmwasm_wasmv1ContractAuthzLimitX_FromAmino(object.limit);
835
+ }
836
+ if (object.filter !== undefined && object.filter !== null) {
837
+ message.filter = Cosmwasm_wasmv1ContractAuthzFilterX_FromAmino(object.filter);
838
+ }
839
+ return message;
840
+ },
841
+ toAmino(message: ContractGrant): ContractGrantAmino {
842
+ const obj: any = {};
843
+ obj.contract = message.contract === "" ? undefined : message.contract;
844
+ obj.limit = message.limit ? Cosmwasm_wasmv1ContractAuthzLimitX_ToAmino(message.limit as Any) : undefined;
845
+ obj.filter = message.filter ? Cosmwasm_wasmv1ContractAuthzFilterX_ToAmino(message.filter as Any) : undefined;
846
+ return obj;
847
+ },
848
+ fromAminoMsg(object: ContractGrantAminoMsg): ContractGrant {
849
+ return ContractGrant.fromAmino(object.value);
850
+ },
851
+ toAminoMsg(message: ContractGrant): ContractGrantAminoMsg {
852
+ return {
853
+ type: "wasm/ContractGrant",
854
+ value: ContractGrant.toAmino(message)
855
+ };
856
+ },
857
+ fromProtoMsg(message: ContractGrantProtoMsg): ContractGrant {
858
+ return ContractGrant.decode(message.value);
859
+ },
860
+ toProto(message: ContractGrant): Uint8Array {
861
+ return ContractGrant.encode(message).finish();
862
+ },
863
+ toProtoMsg(message: ContractGrant): ContractGrantProtoMsg {
864
+ return {
865
+ typeUrl: "/cosmwasm.wasm.v1.ContractGrant",
866
+ value: ContractGrant.encode(message).finish()
867
+ };
868
+ }
869
+ };
870
+ function createBaseMaxCallsLimit(): MaxCallsLimit {
871
+ return {
872
+ $typeUrl: "/cosmwasm.wasm.v1.MaxCallsLimit",
873
+ remaining: BigInt(0)
874
+ };
875
+ }
876
+ export const MaxCallsLimit = {
877
+ typeUrl: "/cosmwasm.wasm.v1.MaxCallsLimit",
878
+ encode(message: MaxCallsLimit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
879
+ if (message.remaining !== BigInt(0)) {
880
+ writer.uint32(8).uint64(message.remaining);
881
+ }
882
+ return writer;
883
+ },
884
+ decode(input: BinaryReader | Uint8Array, length?: number): MaxCallsLimit {
885
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
886
+ let end = length === undefined ? reader.len : reader.pos + length;
887
+ const message = createBaseMaxCallsLimit();
888
+ while (reader.pos < end) {
889
+ const tag = reader.uint32();
890
+ switch (tag >>> 3) {
891
+ case 1:
892
+ message.remaining = reader.uint64();
893
+ break;
894
+ default:
895
+ reader.skipType(tag & 7);
896
+ break;
897
+ }
898
+ }
899
+ return message;
900
+ },
901
+ fromPartial(object: Partial<MaxCallsLimit>): MaxCallsLimit {
902
+ const message = createBaseMaxCallsLimit();
903
+ message.remaining = object.remaining !== undefined && object.remaining !== null ? BigInt(object.remaining.toString()) : BigInt(0);
904
+ return message;
905
+ },
906
+ fromAmino(object: MaxCallsLimitAmino): MaxCallsLimit {
907
+ const message = createBaseMaxCallsLimit();
908
+ if (object.remaining !== undefined && object.remaining !== null) {
909
+ message.remaining = BigInt(object.remaining);
910
+ }
911
+ return message;
912
+ },
913
+ toAmino(message: MaxCallsLimit): MaxCallsLimitAmino {
914
+ const obj: any = {};
915
+ obj.remaining = message.remaining !== BigInt(0) ? message.remaining?.toString() : undefined;
916
+ return obj;
917
+ },
918
+ fromAminoMsg(object: MaxCallsLimitAminoMsg): MaxCallsLimit {
919
+ return MaxCallsLimit.fromAmino(object.value);
920
+ },
921
+ toAminoMsg(message: MaxCallsLimit): MaxCallsLimitAminoMsg {
922
+ return {
923
+ type: "wasm/MaxCallsLimit",
924
+ value: MaxCallsLimit.toAmino(message)
925
+ };
926
+ },
927
+ fromProtoMsg(message: MaxCallsLimitProtoMsg): MaxCallsLimit {
928
+ return MaxCallsLimit.decode(message.value);
929
+ },
930
+ toProto(message: MaxCallsLimit): Uint8Array {
931
+ return MaxCallsLimit.encode(message).finish();
932
+ },
933
+ toProtoMsg(message: MaxCallsLimit): MaxCallsLimitProtoMsg {
934
+ return {
935
+ typeUrl: "/cosmwasm.wasm.v1.MaxCallsLimit",
936
+ value: MaxCallsLimit.encode(message).finish()
937
+ };
938
+ }
939
+ };
940
+ function createBaseMaxFundsLimit(): MaxFundsLimit {
941
+ return {
942
+ $typeUrl: "/cosmwasm.wasm.v1.MaxFundsLimit",
943
+ amounts: []
944
+ };
945
+ }
946
+ export const MaxFundsLimit = {
947
+ typeUrl: "/cosmwasm.wasm.v1.MaxFundsLimit",
948
+ encode(message: MaxFundsLimit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
949
+ for (const v of message.amounts) {
950
+ Coin.encode(v!, writer.uint32(10).fork()).ldelim();
951
+ }
952
+ return writer;
953
+ },
954
+ decode(input: BinaryReader | Uint8Array, length?: number): MaxFundsLimit {
955
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
956
+ let end = length === undefined ? reader.len : reader.pos + length;
957
+ const message = createBaseMaxFundsLimit();
958
+ while (reader.pos < end) {
959
+ const tag = reader.uint32();
960
+ switch (tag >>> 3) {
961
+ case 1:
962
+ message.amounts.push(Coin.decode(reader, reader.uint32()));
963
+ break;
964
+ default:
965
+ reader.skipType(tag & 7);
966
+ break;
967
+ }
968
+ }
969
+ return message;
970
+ },
971
+ fromPartial(object: Partial<MaxFundsLimit>): MaxFundsLimit {
972
+ const message = createBaseMaxFundsLimit();
973
+ message.amounts = object.amounts?.map(e => Coin.fromPartial(e)) || [];
974
+ return message;
975
+ },
976
+ fromAmino(object: MaxFundsLimitAmino): MaxFundsLimit {
977
+ const message = createBaseMaxFundsLimit();
978
+ message.amounts = object.amounts?.map(e => Coin.fromAmino(e)) || [];
979
+ return message;
980
+ },
981
+ toAmino(message: MaxFundsLimit): MaxFundsLimitAmino {
982
+ const obj: any = {};
983
+ if (message.amounts) {
984
+ obj.amounts = message.amounts.map(e => e ? Coin.toAmino(e) : undefined);
985
+ } else {
986
+ obj.amounts = message.amounts;
987
+ }
988
+ return obj;
989
+ },
990
+ fromAminoMsg(object: MaxFundsLimitAminoMsg): MaxFundsLimit {
991
+ return MaxFundsLimit.fromAmino(object.value);
992
+ },
993
+ toAminoMsg(message: MaxFundsLimit): MaxFundsLimitAminoMsg {
994
+ return {
995
+ type: "wasm/MaxFundsLimit",
996
+ value: MaxFundsLimit.toAmino(message)
997
+ };
998
+ },
999
+ fromProtoMsg(message: MaxFundsLimitProtoMsg): MaxFundsLimit {
1000
+ return MaxFundsLimit.decode(message.value);
1001
+ },
1002
+ toProto(message: MaxFundsLimit): Uint8Array {
1003
+ return MaxFundsLimit.encode(message).finish();
1004
+ },
1005
+ toProtoMsg(message: MaxFundsLimit): MaxFundsLimitProtoMsg {
1006
+ return {
1007
+ typeUrl: "/cosmwasm.wasm.v1.MaxFundsLimit",
1008
+ value: MaxFundsLimit.encode(message).finish()
1009
+ };
1010
+ }
1011
+ };
1012
+ function createBaseCombinedLimit(): CombinedLimit {
1013
+ return {
1014
+ $typeUrl: "/cosmwasm.wasm.v1.CombinedLimit",
1015
+ callsRemaining: BigInt(0),
1016
+ amounts: []
1017
+ };
1018
+ }
1019
+ export const CombinedLimit = {
1020
+ typeUrl: "/cosmwasm.wasm.v1.CombinedLimit",
1021
+ encode(message: CombinedLimit, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1022
+ if (message.callsRemaining !== BigInt(0)) {
1023
+ writer.uint32(8).uint64(message.callsRemaining);
1024
+ }
1025
+ for (const v of message.amounts) {
1026
+ Coin.encode(v!, writer.uint32(18).fork()).ldelim();
1027
+ }
1028
+ return writer;
1029
+ },
1030
+ decode(input: BinaryReader | Uint8Array, length?: number): CombinedLimit {
1031
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1032
+ let end = length === undefined ? reader.len : reader.pos + length;
1033
+ const message = createBaseCombinedLimit();
1034
+ while (reader.pos < end) {
1035
+ const tag = reader.uint32();
1036
+ switch (tag >>> 3) {
1037
+ case 1:
1038
+ message.callsRemaining = reader.uint64();
1039
+ break;
1040
+ case 2:
1041
+ message.amounts.push(Coin.decode(reader, reader.uint32()));
1042
+ break;
1043
+ default:
1044
+ reader.skipType(tag & 7);
1045
+ break;
1046
+ }
1047
+ }
1048
+ return message;
1049
+ },
1050
+ fromPartial(object: Partial<CombinedLimit>): CombinedLimit {
1051
+ const message = createBaseCombinedLimit();
1052
+ message.callsRemaining = object.callsRemaining !== undefined && object.callsRemaining !== null ? BigInt(object.callsRemaining.toString()) : BigInt(0);
1053
+ message.amounts = object.amounts?.map(e => Coin.fromPartial(e)) || [];
1054
+ return message;
1055
+ },
1056
+ fromAmino(object: CombinedLimitAmino): CombinedLimit {
1057
+ const message = createBaseCombinedLimit();
1058
+ if (object.calls_remaining !== undefined && object.calls_remaining !== null) {
1059
+ message.callsRemaining = BigInt(object.calls_remaining);
1060
+ }
1061
+ message.amounts = object.amounts?.map(e => Coin.fromAmino(e)) || [];
1062
+ return message;
1063
+ },
1064
+ toAmino(message: CombinedLimit): CombinedLimitAmino {
1065
+ const obj: any = {};
1066
+ obj.calls_remaining = message.callsRemaining !== BigInt(0) ? message.callsRemaining?.toString() : undefined;
1067
+ if (message.amounts) {
1068
+ obj.amounts = message.amounts.map(e => e ? Coin.toAmino(e) : undefined);
1069
+ } else {
1070
+ obj.amounts = message.amounts;
1071
+ }
1072
+ return obj;
1073
+ },
1074
+ fromAminoMsg(object: CombinedLimitAminoMsg): CombinedLimit {
1075
+ return CombinedLimit.fromAmino(object.value);
1076
+ },
1077
+ toAminoMsg(message: CombinedLimit): CombinedLimitAminoMsg {
1078
+ return {
1079
+ type: "wasm/CombinedLimit",
1080
+ value: CombinedLimit.toAmino(message)
1081
+ };
1082
+ },
1083
+ fromProtoMsg(message: CombinedLimitProtoMsg): CombinedLimit {
1084
+ return CombinedLimit.decode(message.value);
1085
+ },
1086
+ toProto(message: CombinedLimit): Uint8Array {
1087
+ return CombinedLimit.encode(message).finish();
1088
+ },
1089
+ toProtoMsg(message: CombinedLimit): CombinedLimitProtoMsg {
1090
+ return {
1091
+ typeUrl: "/cosmwasm.wasm.v1.CombinedLimit",
1092
+ value: CombinedLimit.encode(message).finish()
1093
+ };
1094
+ }
1095
+ };
1096
+ function createBaseAllowAllMessagesFilter(): AllowAllMessagesFilter {
1097
+ return {
1098
+ $typeUrl: "/cosmwasm.wasm.v1.AllowAllMessagesFilter"
1099
+ };
1100
+ }
1101
+ export const AllowAllMessagesFilter = {
1102
+ typeUrl: "/cosmwasm.wasm.v1.AllowAllMessagesFilter",
1103
+ encode(_: AllowAllMessagesFilter, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1104
+ return writer;
1105
+ },
1106
+ decode(input: BinaryReader | Uint8Array, length?: number): AllowAllMessagesFilter {
1107
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1108
+ let end = length === undefined ? reader.len : reader.pos + length;
1109
+ const message = createBaseAllowAllMessagesFilter();
1110
+ while (reader.pos < end) {
1111
+ const tag = reader.uint32();
1112
+ switch (tag >>> 3) {
1113
+ default:
1114
+ reader.skipType(tag & 7);
1115
+ break;
1116
+ }
1117
+ }
1118
+ return message;
1119
+ },
1120
+ fromPartial(_: Partial<AllowAllMessagesFilter>): AllowAllMessagesFilter {
1121
+ const message = createBaseAllowAllMessagesFilter();
1122
+ return message;
1123
+ },
1124
+ fromAmino(_: AllowAllMessagesFilterAmino): AllowAllMessagesFilter {
1125
+ const message = createBaseAllowAllMessagesFilter();
1126
+ return message;
1127
+ },
1128
+ toAmino(_: AllowAllMessagesFilter): AllowAllMessagesFilterAmino {
1129
+ const obj: any = {};
1130
+ return obj;
1131
+ },
1132
+ fromAminoMsg(object: AllowAllMessagesFilterAminoMsg): AllowAllMessagesFilter {
1133
+ return AllowAllMessagesFilter.fromAmino(object.value);
1134
+ },
1135
+ toAminoMsg(message: AllowAllMessagesFilter): AllowAllMessagesFilterAminoMsg {
1136
+ return {
1137
+ type: "wasm/AllowAllMessagesFilter",
1138
+ value: AllowAllMessagesFilter.toAmino(message)
1139
+ };
1140
+ },
1141
+ fromProtoMsg(message: AllowAllMessagesFilterProtoMsg): AllowAllMessagesFilter {
1142
+ return AllowAllMessagesFilter.decode(message.value);
1143
+ },
1144
+ toProto(message: AllowAllMessagesFilter): Uint8Array {
1145
+ return AllowAllMessagesFilter.encode(message).finish();
1146
+ },
1147
+ toProtoMsg(message: AllowAllMessagesFilter): AllowAllMessagesFilterProtoMsg {
1148
+ return {
1149
+ typeUrl: "/cosmwasm.wasm.v1.AllowAllMessagesFilter",
1150
+ value: AllowAllMessagesFilter.encode(message).finish()
1151
+ };
1152
+ }
1153
+ };
1154
+ function createBaseAcceptedMessageKeysFilter(): AcceptedMessageKeysFilter {
1155
+ return {
1156
+ $typeUrl: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter",
1157
+ keys: []
1158
+ };
1159
+ }
1160
+ export const AcceptedMessageKeysFilter = {
1161
+ typeUrl: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter",
1162
+ encode(message: AcceptedMessageKeysFilter, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1163
+ for (const v of message.keys) {
1164
+ writer.uint32(10).string(v!);
1165
+ }
1166
+ return writer;
1167
+ },
1168
+ decode(input: BinaryReader | Uint8Array, length?: number): AcceptedMessageKeysFilter {
1169
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1170
+ let end = length === undefined ? reader.len : reader.pos + length;
1171
+ const message = createBaseAcceptedMessageKeysFilter();
1172
+ while (reader.pos < end) {
1173
+ const tag = reader.uint32();
1174
+ switch (tag >>> 3) {
1175
+ case 1:
1176
+ message.keys.push(reader.string());
1177
+ break;
1178
+ default:
1179
+ reader.skipType(tag & 7);
1180
+ break;
1181
+ }
1182
+ }
1183
+ return message;
1184
+ },
1185
+ fromPartial(object: Partial<AcceptedMessageKeysFilter>): AcceptedMessageKeysFilter {
1186
+ const message = createBaseAcceptedMessageKeysFilter();
1187
+ message.keys = object.keys?.map(e => e) || [];
1188
+ return message;
1189
+ },
1190
+ fromAmino(object: AcceptedMessageKeysFilterAmino): AcceptedMessageKeysFilter {
1191
+ const message = createBaseAcceptedMessageKeysFilter();
1192
+ message.keys = object.keys?.map(e => e) || [];
1193
+ return message;
1194
+ },
1195
+ toAmino(message: AcceptedMessageKeysFilter): AcceptedMessageKeysFilterAmino {
1196
+ const obj: any = {};
1197
+ if (message.keys) {
1198
+ obj.keys = message.keys.map(e => e);
1199
+ } else {
1200
+ obj.keys = message.keys;
1201
+ }
1202
+ return obj;
1203
+ },
1204
+ fromAminoMsg(object: AcceptedMessageKeysFilterAminoMsg): AcceptedMessageKeysFilter {
1205
+ return AcceptedMessageKeysFilter.fromAmino(object.value);
1206
+ },
1207
+ toAminoMsg(message: AcceptedMessageKeysFilter): AcceptedMessageKeysFilterAminoMsg {
1208
+ return {
1209
+ type: "wasm/AcceptedMessageKeysFilter",
1210
+ value: AcceptedMessageKeysFilter.toAmino(message)
1211
+ };
1212
+ },
1213
+ fromProtoMsg(message: AcceptedMessageKeysFilterProtoMsg): AcceptedMessageKeysFilter {
1214
+ return AcceptedMessageKeysFilter.decode(message.value);
1215
+ },
1216
+ toProto(message: AcceptedMessageKeysFilter): Uint8Array {
1217
+ return AcceptedMessageKeysFilter.encode(message).finish();
1218
+ },
1219
+ toProtoMsg(message: AcceptedMessageKeysFilter): AcceptedMessageKeysFilterProtoMsg {
1220
+ return {
1221
+ typeUrl: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter",
1222
+ value: AcceptedMessageKeysFilter.encode(message).finish()
1223
+ };
1224
+ }
1225
+ };
1226
+ function createBaseAcceptedMessagesFilter(): AcceptedMessagesFilter {
1227
+ return {
1228
+ $typeUrl: "/cosmwasm.wasm.v1.AcceptedMessagesFilter",
1229
+ messages: []
1230
+ };
1231
+ }
1232
+ export const AcceptedMessagesFilter = {
1233
+ typeUrl: "/cosmwasm.wasm.v1.AcceptedMessagesFilter",
1234
+ encode(message: AcceptedMessagesFilter, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1235
+ for (const v of message.messages) {
1236
+ writer.uint32(10).bytes(v!);
1237
+ }
1238
+ return writer;
1239
+ },
1240
+ decode(input: BinaryReader | Uint8Array, length?: number): AcceptedMessagesFilter {
1241
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1242
+ let end = length === undefined ? reader.len : reader.pos + length;
1243
+ const message = createBaseAcceptedMessagesFilter();
1244
+ while (reader.pos < end) {
1245
+ const tag = reader.uint32();
1246
+ switch (tag >>> 3) {
1247
+ case 1:
1248
+ message.messages.push(reader.bytes());
1249
+ break;
1250
+ default:
1251
+ reader.skipType(tag & 7);
1252
+ break;
1253
+ }
1254
+ }
1255
+ return message;
1256
+ },
1257
+ fromPartial(object: Partial<AcceptedMessagesFilter>): AcceptedMessagesFilter {
1258
+ const message = createBaseAcceptedMessagesFilter();
1259
+ message.messages = object.messages?.map(e => e) || [];
1260
+ return message;
1261
+ },
1262
+ fromAmino(object: AcceptedMessagesFilterAmino): AcceptedMessagesFilter {
1263
+ const message = createBaseAcceptedMessagesFilter();
1264
+ message.messages = object.messages?.map(e => toUtf8(JSON.stringify(e))) || [];
1265
+ return message;
1266
+ },
1267
+ toAmino(message: AcceptedMessagesFilter): AcceptedMessagesFilterAmino {
1268
+ const obj: any = {};
1269
+ if (message.messages) {
1270
+ obj.messages = message.messages.map(e => JSON.parse(fromUtf8(e)));
1271
+ } else {
1272
+ obj.messages = message.messages;
1273
+ }
1274
+ return obj;
1275
+ },
1276
+ fromAminoMsg(object: AcceptedMessagesFilterAminoMsg): AcceptedMessagesFilter {
1277
+ return AcceptedMessagesFilter.fromAmino(object.value);
1278
+ },
1279
+ toAminoMsg(message: AcceptedMessagesFilter): AcceptedMessagesFilterAminoMsg {
1280
+ return {
1281
+ type: "wasm/AcceptedMessagesFilter",
1282
+ value: AcceptedMessagesFilter.toAmino(message)
1283
+ };
1284
+ },
1285
+ fromProtoMsg(message: AcceptedMessagesFilterProtoMsg): AcceptedMessagesFilter {
1286
+ return AcceptedMessagesFilter.decode(message.value);
1287
+ },
1288
+ toProto(message: AcceptedMessagesFilter): Uint8Array {
1289
+ return AcceptedMessagesFilter.encode(message).finish();
1290
+ },
1291
+ toProtoMsg(message: AcceptedMessagesFilter): AcceptedMessagesFilterProtoMsg {
1292
+ return {
1293
+ typeUrl: "/cosmwasm.wasm.v1.AcceptedMessagesFilter",
1294
+ value: AcceptedMessagesFilter.encode(message).finish()
1295
+ };
1296
+ }
1297
+ };
1298
+ export const Cosmwasm_wasmv1ContractAuthzLimitX_InterfaceDecoder = (input: BinaryReader | Uint8Array): MaxCallsLimit | MaxFundsLimit | CombinedLimit | Any => {
1299
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1300
+ const data = Any.decode(reader, reader.uint32());
1301
+ switch (data.typeUrl) {
1302
+ case "/cosmwasm.wasm.v1.MaxCallsLimit":
1303
+ return MaxCallsLimit.decode(data.value);
1304
+ case "/cosmwasm.wasm.v1.MaxFundsLimit":
1305
+ return MaxFundsLimit.decode(data.value);
1306
+ case "/cosmwasm.wasm.v1.CombinedLimit":
1307
+ return CombinedLimit.decode(data.value);
1308
+ default:
1309
+ return data;
1310
+ }
1311
+ };
1312
+ export const Cosmwasm_wasmv1ContractAuthzLimitX_FromAmino = (content: AnyAmino): Any => {
1313
+ switch (content.type) {
1314
+ case "wasm/MaxCallsLimit":
1315
+ return Any.fromPartial({
1316
+ typeUrl: "/cosmwasm.wasm.v1.MaxCallsLimit",
1317
+ value: MaxCallsLimit.encode(MaxCallsLimit.fromPartial(MaxCallsLimit.fromAmino(content.value))).finish()
1318
+ });
1319
+ case "wasm/MaxFundsLimit":
1320
+ return Any.fromPartial({
1321
+ typeUrl: "/cosmwasm.wasm.v1.MaxFundsLimit",
1322
+ value: MaxFundsLimit.encode(MaxFundsLimit.fromPartial(MaxFundsLimit.fromAmino(content.value))).finish()
1323
+ });
1324
+ case "wasm/CombinedLimit":
1325
+ return Any.fromPartial({
1326
+ typeUrl: "/cosmwasm.wasm.v1.CombinedLimit",
1327
+ value: CombinedLimit.encode(CombinedLimit.fromPartial(CombinedLimit.fromAmino(content.value))).finish()
1328
+ });
1329
+ default:
1330
+ return Any.fromAmino(content);
1331
+ }
1332
+ };
1333
+ export const Cosmwasm_wasmv1ContractAuthzLimitX_ToAmino = (content: Any) => {
1334
+ switch (content.typeUrl) {
1335
+ case "/cosmwasm.wasm.v1.MaxCallsLimit":
1336
+ return {
1337
+ type: "wasm/MaxCallsLimit",
1338
+ value: MaxCallsLimit.toAmino(MaxCallsLimit.decode(content.value, undefined))
1339
+ };
1340
+ case "/cosmwasm.wasm.v1.MaxFundsLimit":
1341
+ return {
1342
+ type: "wasm/MaxFundsLimit",
1343
+ value: MaxFundsLimit.toAmino(MaxFundsLimit.decode(content.value, undefined))
1344
+ };
1345
+ case "/cosmwasm.wasm.v1.CombinedLimit":
1346
+ return {
1347
+ type: "wasm/CombinedLimit",
1348
+ value: CombinedLimit.toAmino(CombinedLimit.decode(content.value, undefined))
1349
+ };
1350
+ default:
1351
+ return Any.toAmino(content);
1352
+ }
1353
+ };
1354
+ export const Cosmwasm_wasmv1ContractAuthzFilterX_InterfaceDecoder = (input: BinaryReader | Uint8Array): AllowAllMessagesFilter | AcceptedMessageKeysFilter | AcceptedMessagesFilter | Any => {
1355
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1356
+ const data = Any.decode(reader, reader.uint32());
1357
+ switch (data.typeUrl) {
1358
+ case "/cosmwasm.wasm.v1.AllowAllMessagesFilter":
1359
+ return AllowAllMessagesFilter.decode(data.value);
1360
+ case "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter":
1361
+ return AcceptedMessageKeysFilter.decode(data.value);
1362
+ case "/cosmwasm.wasm.v1.AcceptedMessagesFilter":
1363
+ return AcceptedMessagesFilter.decode(data.value);
1364
+ default:
1365
+ return data;
1366
+ }
1367
+ };
1368
+ export const Cosmwasm_wasmv1ContractAuthzFilterX_FromAmino = (content: AnyAmino): Any => {
1369
+ switch (content.type) {
1370
+ case "wasm/AllowAllMessagesFilter":
1371
+ return Any.fromPartial({
1372
+ typeUrl: "/cosmwasm.wasm.v1.AllowAllMessagesFilter",
1373
+ value: AllowAllMessagesFilter.encode(AllowAllMessagesFilter.fromPartial(AllowAllMessagesFilter.fromAmino(content.value))).finish()
1374
+ });
1375
+ case "wasm/AcceptedMessageKeysFilter":
1376
+ return Any.fromPartial({
1377
+ typeUrl: "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter",
1378
+ value: AcceptedMessageKeysFilter.encode(AcceptedMessageKeysFilter.fromPartial(AcceptedMessageKeysFilter.fromAmino(content.value))).finish()
1379
+ });
1380
+ case "wasm/AcceptedMessagesFilter":
1381
+ return Any.fromPartial({
1382
+ typeUrl: "/cosmwasm.wasm.v1.AcceptedMessagesFilter",
1383
+ value: AcceptedMessagesFilter.encode(AcceptedMessagesFilter.fromPartial(AcceptedMessagesFilter.fromAmino(content.value))).finish()
1384
+ });
1385
+ default:
1386
+ return Any.fromAmino(content);
1387
+ }
1388
+ };
1389
+ export const Cosmwasm_wasmv1ContractAuthzFilterX_ToAmino = (content: Any) => {
1390
+ switch (content.typeUrl) {
1391
+ case "/cosmwasm.wasm.v1.AllowAllMessagesFilter":
1392
+ return {
1393
+ type: "wasm/AllowAllMessagesFilter",
1394
+ value: AllowAllMessagesFilter.toAmino(AllowAllMessagesFilter.decode(content.value, undefined))
1395
+ };
1396
+ case "/cosmwasm.wasm.v1.AcceptedMessageKeysFilter":
1397
+ return {
1398
+ type: "wasm/AcceptedMessageKeysFilter",
1399
+ value: AcceptedMessageKeysFilter.toAmino(AcceptedMessageKeysFilter.decode(content.value, undefined))
1400
+ };
1401
+ case "/cosmwasm.wasm.v1.AcceptedMessagesFilter":
1402
+ return {
1403
+ type: "wasm/AcceptedMessagesFilter",
1404
+ value: AcceptedMessagesFilter.toAmino(AcceptedMessagesFilter.decode(content.value, undefined))
1405
+ };
1406
+ default:
1407
+ return Any.toAmino(content);
1408
+ }
1409
+ };