@initia/initia.js 1.0.21 → 2.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (713) hide show
  1. package/README.md +230 -163
  2. package/dist/abi-helpers-DdwdqhMQ.mjs +51 -0
  3. package/dist/abi-helpers-DdwdqhMQ.mjs.map +1 -0
  4. package/dist/address-DwAkzgJk.mjs +156 -0
  5. package/dist/address-DwAkzgJk.mjs.map +1 -0
  6. package/dist/address-profile-DjdaEBxo.d.mts +112 -0
  7. package/dist/address-profile-DlAFvgdg.mjs +241 -0
  8. package/dist/address-profile-DlAFvgdg.mjs.map +1 -0
  9. package/dist/amino-CMQN7Frn.mjs +220 -0
  10. package/dist/amino-CMQN7Frn.mjs.map +1 -0
  11. package/dist/amino_pb-Bi6YDY_U.mjs +88 -0
  12. package/dist/amino_pb-Bi6YDY_U.mjs.map +1 -0
  13. package/dist/amount-B0J9TTNF.mjs +90 -0
  14. package/dist/amount-B0J9TTNF.mjs.map +1 -0
  15. package/dist/any-DElm7qF7.mjs +19 -0
  16. package/dist/any-DElm7qF7.mjs.map +1 -0
  17. package/dist/auth_pb-DN4URGLh.mjs +26 -0
  18. package/dist/auth_pb-DN4URGLh.mjs.map +1 -0
  19. package/dist/auth_pb-DfXfdvrY.mjs +16 -0
  20. package/dist/auth_pb-DfXfdvrY.mjs.map +1 -0
  21. package/dist/base-provider-CLnd7kte.d.mts +68 -0
  22. package/dist/base-provider-LNp6K7Mt.mjs +96 -0
  23. package/dist/base-provider-LNp6K7Mt.mjs.map +1 -0
  24. package/dist/bcs-DiRcL4n9.mjs +533 -0
  25. package/dist/bcs-DiRcL4n9.mjs.map +1 -0
  26. package/dist/bridge-DL-q-7P7.mjs +1222 -0
  27. package/dist/bridge-DL-q-7P7.mjs.map +1 -0
  28. package/dist/bridge-cQoOjppA.d.mts +606 -0
  29. package/dist/broadcast-De8MdmYa.mjs +974 -0
  30. package/dist/broadcast-De8MdmYa.mjs.map +1 -0
  31. package/dist/chain-utils-C61cU5nd.mjs +139 -0
  32. package/dist/chain-utils-C61cU5nd.mjs.map +1 -0
  33. package/dist/codegen/cli.d.mts +1 -0
  34. package/dist/codegen/cli.mjs +274 -0
  35. package/dist/codegen/cli.mjs.map +1 -0
  36. package/dist/coin-DPWbtAFA.mjs +543 -0
  37. package/dist/coin-DPWbtAFA.mjs.map +1 -0
  38. package/dist/coin_pb--WuIu4sX.mjs +25 -0
  39. package/dist/coin_pb--WuIu4sX.mjs.map +1 -0
  40. package/dist/composite-provider-DbxNrdny.mjs +203 -0
  41. package/dist/composite-provider-DbxNrdny.mjs.map +1 -0
  42. package/dist/constants-W6V0E-3W.mjs +42 -0
  43. package/dist/constants-W6V0E-3W.mjs.map +1 -0
  44. package/dist/contract-Dpvu4wLO.mjs +657 -0
  45. package/dist/contract-Dpvu4wLO.mjs.map +1 -0
  46. package/dist/cosmos-Bqh8qNfP.mjs +540 -0
  47. package/dist/cosmos-Bqh8qNfP.mjs.map +1 -0
  48. package/dist/cosmos-registry-provider-DCrEEhJ-.d.mts +123 -0
  49. package/dist/cw20-BTpdgMXC.mjs +63 -0
  50. package/dist/cw20-BTpdgMXC.mjs.map +1 -0
  51. package/dist/decode-CXGawqIZ.mjs +29 -0
  52. package/dist/decode-CXGawqIZ.mjs.map +1 -0
  53. package/dist/entry.bridge.browser.d.mts +21 -0
  54. package/dist/entry.bridge.browser.mjs +25 -0
  55. package/dist/entry.bridge.browser.mjs.map +1 -0
  56. package/dist/entry.bridge.node.d.mts +21 -0
  57. package/dist/entry.bridge.node.mjs +25 -0
  58. package/dist/entry.bridge.node.mjs.map +1 -0
  59. package/dist/entry.browser.d.mts +49 -0
  60. package/dist/entry.browser.mjs +46 -0
  61. package/dist/entry.browser.mjs.map +1 -0
  62. package/dist/entry.chain.initia.browser.d.mts +8 -0
  63. package/dist/entry.chain.initia.browser.mjs +17 -0
  64. package/dist/entry.chain.initia.browser.mjs.map +1 -0
  65. package/dist/entry.chain.initia.node.d.mts +8 -0
  66. package/dist/entry.chain.initia.node.mjs +17 -0
  67. package/dist/entry.chain.initia.node.mjs.map +1 -0
  68. package/dist/entry.chain.minievm.browser.d.mts +8 -0
  69. package/dist/entry.chain.minievm.browser.mjs +17 -0
  70. package/dist/entry.chain.minievm.browser.mjs.map +1 -0
  71. package/dist/entry.chain.minievm.node.d.mts +8 -0
  72. package/dist/entry.chain.minievm.node.mjs +17 -0
  73. package/dist/entry.chain.minievm.node.mjs.map +1 -0
  74. package/dist/entry.chain.minimove.browser.d.mts +8 -0
  75. package/dist/entry.chain.minimove.browser.mjs +17 -0
  76. package/dist/entry.chain.minimove.browser.mjs.map +1 -0
  77. package/dist/entry.chain.minimove.node.d.mts +8 -0
  78. package/dist/entry.chain.minimove.node.mjs +17 -0
  79. package/dist/entry.chain.minimove.node.mjs.map +1 -0
  80. package/dist/entry.chain.miniwasm.browser.d.mts +8 -0
  81. package/dist/entry.chain.miniwasm.browser.mjs +17 -0
  82. package/dist/entry.chain.miniwasm.browser.mjs.map +1 -0
  83. package/dist/entry.chain.miniwasm.node.d.mts +8 -0
  84. package/dist/entry.chain.miniwasm.node.mjs +17 -0
  85. package/dist/entry.chain.miniwasm.node.mjs.map +1 -0
  86. package/dist/entry.client.browser-CQsfUmx1.d.mts +1 -0
  87. package/dist/entry.client.browser.d.mts +3 -0
  88. package/dist/entry.client.browser.mjs +6 -0
  89. package/dist/entry.client.node.d.mts +3 -0
  90. package/dist/entry.client.node.mjs +6 -0
  91. package/dist/entry.codegen.d.mts +251 -0
  92. package/dist/entry.codegen.mjs +2 -0
  93. package/dist/entry.cosmos.d.mts +2 -0
  94. package/dist/entry.cosmos.mjs +355 -0
  95. package/dist/entry.cosmos.mjs.map +1 -0
  96. package/dist/entry.events.d.mts +338 -0
  97. package/dist/entry.events.mjs +383 -0
  98. package/dist/entry.events.mjs.map +1 -0
  99. package/dist/entry.evm.d.mts +544 -0
  100. package/dist/entry.evm.mjs +761 -0
  101. package/dist/entry.evm.mjs.map +1 -0
  102. package/dist/entry.modules.d.mts +2 -0
  103. package/dist/entry.modules.mjs +7 -0
  104. package/dist/entry.move.d.mts +523 -0
  105. package/dist/entry.move.mjs +7 -0
  106. package/dist/entry.msgs.d.mts +2 -0
  107. package/dist/entry.msgs.mjs +3 -0
  108. package/dist/entry.node.d.mts +118 -0
  109. package/dist/entry.node.mjs +278 -0
  110. package/dist/entry.node.mjs.map +1 -0
  111. package/dist/entry.provider.d.mts +355 -0
  112. package/dist/entry.provider.mjs +416 -0
  113. package/dist/entry.provider.mjs.map +1 -0
  114. package/dist/entry.signer.d.mts +2 -0
  115. package/dist/entry.signer.mjs +674 -0
  116. package/dist/entry.signer.mjs.map +1 -0
  117. package/dist/entry.tx.d.mts +2 -0
  118. package/dist/entry.tx.mjs +6 -0
  119. package/dist/entry.usernames.d.mts +42 -0
  120. package/dist/entry.usernames.mjs +2 -0
  121. package/dist/entry.util.d.mts +103 -0
  122. package/dist/entry.util.mjs +70 -0
  123. package/dist/entry.util.mjs.map +1 -0
  124. package/dist/entry.vip.d.mts +1917 -0
  125. package/dist/entry.vip.mjs +3793 -0
  126. package/dist/entry.vip.mjs.map +1 -0
  127. package/dist/entry.wasm.d.mts +447 -0
  128. package/dist/entry.wasm.mjs +600 -0
  129. package/dist/entry.wasm.mjs.map +1 -0
  130. package/dist/erc20-CDs3j7vt.mjs +168 -0
  131. package/dist/erc20-CDs3j7vt.mjs.map +1 -0
  132. package/dist/errors-CN1MFOLv.mjs +253 -0
  133. package/dist/errors-CN1MFOLv.mjs.map +1 -0
  134. package/dist/evm-rpc-BxpgXIAF.mjs +338 -0
  135. package/dist/evm-rpc-BxpgXIAF.mjs.map +1 -0
  136. package/dist/fetch-Bq_aay6V.mjs +55 -0
  137. package/dist/fetch-Bq_aay6V.mjs.map +1 -0
  138. package/dist/fungible-asset-aHBTYpoT.mjs +64 -0
  139. package/dist/fungible-asset-aHBTYpoT.mjs.map +1 -0
  140. package/dist/get-tx-0P40z_A4.mjs +99 -0
  141. package/dist/get-tx-0P40z_A4.mjs.map +1 -0
  142. package/dist/grpc-client-DGyZjGcT.mjs +254 -0
  143. package/dist/grpc-client-DGyZjGcT.mjs.map +1 -0
  144. package/dist/hash-D40mxOlF.mjs +14 -0
  145. package/dist/hash-D40mxOlF.mjs.map +1 -0
  146. package/dist/hash-Doo89wm3.d.mts +31 -0
  147. package/dist/headers-CMO7ia_D.mjs +83 -0
  148. package/dist/headers-CMO7ia_D.mjs.map +1 -0
  149. package/dist/http-client-BrdVurTg.mjs +40 -0
  150. package/dist/http-client-BrdVurTg.mjs.map +1 -0
  151. package/dist/initia-B8l_x6sT.mjs +426 -0
  152. package/dist/initia-B8l_x6sT.mjs.map +1 -0
  153. package/dist/initia-Cj4bZ1dR.mjs +26 -0
  154. package/dist/initia-Cj4bZ1dR.mjs.map +1 -0
  155. package/dist/json-CGak0DqP.mjs +41 -0
  156. package/dist/json-CGak0DqP.mjs.map +1 -0
  157. package/dist/minievm-BAnGHa00.mjs +39 -0
  158. package/dist/minievm-BAnGHa00.mjs.map +1 -0
  159. package/dist/minievm-DZ8AhnD8.mjs +61 -0
  160. package/dist/minievm-DZ8AhnD8.mjs.map +1 -0
  161. package/dist/minimove-B8U85g-_.mjs +23 -0
  162. package/dist/minimove-B8U85g-_.mjs.map +1 -0
  163. package/dist/minimove-BBXTyhIv.mjs +24 -0
  164. package/dist/minimove-BBXTyhIv.mjs.map +1 -0
  165. package/dist/miniwasm-CB0XfStg.mjs +50 -0
  166. package/dist/miniwasm-CB0XfStg.mjs.map +1 -0
  167. package/dist/miniwasm-QdyYzmQ1.mjs +139 -0
  168. package/dist/miniwasm-QdyYzmQ1.mjs.map +1 -0
  169. package/dist/move-BaCv0oRX.mjs +64 -0
  170. package/dist/move-BaCv0oRX.mjs.map +1 -0
  171. package/dist/msg_pb-DxYxctLM.mjs +11 -0
  172. package/dist/msg_pb-DxYxctLM.mjs.map +1 -0
  173. package/dist/pagination_pb-DlkDYAcN.mjs +18 -0
  174. package/dist/pagination_pb-DlkDYAcN.mjs.map +1 -0
  175. package/dist/public-key-DV-uGaUC.mjs +550 -0
  176. package/dist/public-key-DV-uGaUC.mjs.map +1 -0
  177. package/dist/query_pb-cZ3szo3y.mjs +20 -0
  178. package/dist/query_pb-cZ3szo3y.mjs.map +1 -0
  179. package/dist/registry-provider-NzblVZQr.mjs +368 -0
  180. package/dist/registry-provider-NzblVZQr.mjs.map +1 -0
  181. package/dist/resolve-DdtY7KDz.mjs +50 -0
  182. package/dist/resolve-DdtY7KDz.mjs.map +1 -0
  183. package/dist/rolldown-runtime-wcPFST8Q.mjs +13 -0
  184. package/dist/service-BaMjxPNo.mjs +412 -0
  185. package/dist/service-BaMjxPNo.mjs.map +1 -0
  186. package/dist/service-CVFxsMp_.d.mts +151 -0
  187. package/dist/service_pb-Be-O-2-c.mjs +121 -0
  188. package/dist/service_pb-Be-O-2-c.mjs.map +1 -0
  189. package/dist/sign-DqagxLcg.mjs +212 -0
  190. package/dist/sign-DqagxLcg.mjs.map +1 -0
  191. package/dist/transport-common-BsPYcFQl.mjs +182 -0
  192. package/dist/transport-common-BsPYcFQl.mjs.map +1 -0
  193. package/dist/transport.browser-CCUWv3ta.mjs +31 -0
  194. package/dist/transport.browser-CCUWv3ta.mjs.map +1 -0
  195. package/dist/transport.node-DXcJtCnx.mjs +33 -0
  196. package/dist/transport.node-DXcJtCnx.mjs.map +1 -0
  197. package/dist/tx_pb-BJzY8SXE.mjs +38 -0
  198. package/dist/tx_pb-BJzY8SXE.mjs.map +1 -0
  199. package/dist/tx_pb-BVCXH992.mjs +39 -0
  200. package/dist/tx_pb-BVCXH992.mjs.map +1 -0
  201. package/dist/tx_pb-CnFNMLIq.mjs +107 -0
  202. package/dist/tx_pb-CnFNMLIq.mjs.map +1 -0
  203. package/dist/tx_pb-DYspoJTt.mjs +50 -0
  204. package/dist/tx_pb-DYspoJTt.mjs.map +1 -0
  205. package/dist/tx_pb-u3CoQYge.mjs +79 -0
  206. package/dist/tx_pb-u3CoQYge.mjs.map +1 -0
  207. package/dist/typed-context-Cg0If0M9.mjs +118 -0
  208. package/dist/typed-context-Cg0If0M9.mjs.map +1 -0
  209. package/dist/types-CLfdsa48.mjs +41 -0
  210. package/dist/types-CLfdsa48.mjs.map +1 -0
  211. package/dist/types-CSS5rfW1.mjs +303 -0
  212. package/dist/types-CSS5rfW1.mjs.map +1 -0
  213. package/dist/types-DGrP9Ro_.d.mts +39609 -0
  214. package/dist/types_pb-CrjtO9sB.mjs +21 -0
  215. package/dist/types_pb-CrjtO9sB.mjs.map +1 -0
  216. package/dist/types_pb-K7pKBvcg.mjs +1433 -0
  217. package/dist/types_pb-K7pKBvcg.mjs.map +1 -0
  218. package/dist/utils-B2carKSi.mjs +2 -0
  219. package/dist/waiting-BigHYRNN.mjs +1081 -0
  220. package/dist/waiting-BigHYRNN.mjs.map +1 -0
  221. package/dist/wasm-DdunGtLM.mjs +396 -0
  222. package/dist/wasm-DdunGtLM.mjs.map +1 -0
  223. package/package.json +195 -66
  224. package/dist/client/WebSocketClient.d.ts +0 -30
  225. package/dist/client/index.d.ts +0 -5
  226. package/dist/client/rest/APIRequester.d.ts +0 -27
  227. package/dist/client/rest/RESTClient.d.ts +0 -48
  228. package/dist/client/rest/Wallet.d.ts +0 -26
  229. package/dist/client/rest/api/AuctionAPI.d.ts +0 -6
  230. package/dist/client/rest/api/AuthAPI.d.ts +0 -8
  231. package/dist/client/rest/api/AuthzAPI.d.ts +0 -8
  232. package/dist/client/rest/api/BankAPI.d.ts +0 -10
  233. package/dist/client/rest/api/BaseAPI.d.ts +0 -5
  234. package/dist/client/rest/api/DistributionAPI.d.ts +0 -35
  235. package/dist/client/rest/api/EvidenceAPI.d.ts +0 -7
  236. package/dist/client/rest/api/EvmAPI.d.ts +0 -45
  237. package/dist/client/rest/api/FeeGrantAPI.d.ts +0 -22
  238. package/dist/client/rest/api/ForwardingAPI.d.ts +0 -20
  239. package/dist/client/rest/api/GovAPI.d.ts +0 -12
  240. package/dist/client/rest/api/GroupAPI.d.ts +0 -19
  241. package/dist/client/rest/api/IbcAPI.d.ts +0 -48
  242. package/dist/client/rest/api/IbcHooksAPI.d.ts +0 -8
  243. package/dist/client/rest/api/IbcNftAPI.d.ts +0 -11
  244. package/dist/client/rest/api/IbcPermAPI.d.ts +0 -12
  245. package/dist/client/rest/api/IbcTransferAPI.d.ts +0 -10
  246. package/dist/client/rest/api/InterTxAPI.d.ts +0 -6
  247. package/dist/client/rest/api/MarketmapAPI.d.ts +0 -18
  248. package/dist/client/rest/api/MoveAPI.d.ts +0 -62
  249. package/dist/client/rest/api/MstakingAPI.d.ts +0 -28
  250. package/dist/client/rest/api/OpchildAPI.d.ts +0 -23
  251. package/dist/client/rest/api/OphostAPI.d.ts +0 -34
  252. package/dist/client/rest/api/OracleAPI.d.ts +0 -22
  253. package/dist/client/rest/api/RewardAPI.d.ts +0 -8
  254. package/dist/client/rest/api/SlashingAPI.d.ts +0 -8
  255. package/dist/client/rest/api/TendermintAPI.d.ts +0 -16
  256. package/dist/client/rest/api/TokenfactoryAPI.d.ts +0 -12
  257. package/dist/client/rest/api/TxAPI.d.ts +0 -190
  258. package/dist/client/rest/api/UpgradeAPI.d.ts +0 -18
  259. package/dist/client/rest/api/WasmAPI.d.ts +0 -78
  260. package/dist/client/rest/api/index.d.ts +0 -30
  261. package/dist/core/Block.d.ts +0 -55
  262. package/dist/core/Coin.d.ts +0 -42
  263. package/dist/core/Coins.d.ts +0 -45
  264. package/dist/core/Denom.d.ts +0 -1
  265. package/dist/core/Duration.d.ts +0 -19
  266. package/dist/core/Msg.d.ts +0 -45
  267. package/dist/core/PublicKey.d.ts +0 -122
  268. package/dist/core/auction/AuctionParams.d.ts +0 -41
  269. package/dist/core/auction/index.d.ts +0 -2
  270. package/dist/core/auction/msgs/MsgAuctionBid.d.ts +0 -36
  271. package/dist/core/auction/msgs/MsgUpdateAuctionParams.d.ts +0 -33
  272. package/dist/core/auction/msgs/index.d.ts +0 -10
  273. package/dist/core/auth/Account.d.ts +0 -12
  274. package/dist/core/auth/AuthParams.d.ts +0 -37
  275. package/dist/core/auth/BaseAccount.d.ts +0 -45
  276. package/dist/core/auth/ModuleAccount.d.ts +0 -39
  277. package/dist/core/auth/index.d.ts +0 -5
  278. package/dist/core/auth/msgs/MsgUpdateAuthParams.d.ts +0 -33
  279. package/dist/core/auth/msgs/index.d.ts +0 -8
  280. package/dist/core/authz/authorizations/Authorization.d.ts +0 -42
  281. package/dist/core/authz/authorizations/CallAuthorization.d.ts +0 -28
  282. package/dist/core/authz/authorizations/ExecuteAuthorization.d.ts +0 -54
  283. package/dist/core/authz/authorizations/GenericAuthorization.d.ts +0 -28
  284. package/dist/core/authz/authorizations/PublishAuthorization.d.ts +0 -28
  285. package/dist/core/authz/authorizations/SendAuthorization.d.ts +0 -33
  286. package/dist/core/authz/authorizations/StakeAuthorization.d.ts +0 -60
  287. package/dist/core/authz/authorizations/index.d.ts +0 -7
  288. package/dist/core/authz/index.d.ts +0 -2
  289. package/dist/core/authz/msgs/MsgExecAuthorized.d.ts +0 -33
  290. package/dist/core/authz/msgs/MsgGrantAuthorization.d.ts +0 -36
  291. package/dist/core/authz/msgs/MsgRevokeAuthorization.d.ts +0 -35
  292. package/dist/core/authz/msgs/index.d.ts +0 -12
  293. package/dist/core/bank/BankParams.d.ts +0 -29
  294. package/dist/core/bank/DenomMetadata.d.ts +0 -43
  295. package/dist/core/bank/DenomUnit.d.ts +0 -28
  296. package/dist/core/bank/SendEnabled.d.ts +0 -25
  297. package/dist/core/bank/index.d.ts +0 -5
  298. package/dist/core/bank/msgs/MsgMultiSend.d.ts +0 -78
  299. package/dist/core/bank/msgs/MsgSend.d.ts +0 -36
  300. package/dist/core/bank/msgs/MsgSetDenomMetadata.d.ts +0 -33
  301. package/dist/core/bank/msgs/MsgSetSendEnabled.d.ts +0 -37
  302. package/dist/core/bank/msgs/MsgUpdateBankParams.d.ts +0 -33
  303. package/dist/core/bank/msgs/index.d.ts +0 -16
  304. package/dist/core/bech32.d.ts +0 -27
  305. package/dist/core/celestia/Blob.d.ts +0 -24
  306. package/dist/core/celestia/BlobTx.d.ts +0 -25
  307. package/dist/core/celestia/index.d.ts +0 -3
  308. package/dist/core/celestia/msgs/MsgPayForBlobs.d.ts +0 -31
  309. package/dist/core/celestia/msgs/index.d.ts +0 -7
  310. package/dist/core/consensus/ABCIParams.d.ts +0 -21
  311. package/dist/core/consensus/BlockParams.d.ts +0 -24
  312. package/dist/core/consensus/EvidenceParams.d.ts +0 -28
  313. package/dist/core/consensus/ValidatorParams.d.ts +0 -21
  314. package/dist/core/consensus/index.d.ts +0 -5
  315. package/dist/core/consensus/msgs/MsgUpdateConsensusParams.d.ts +0 -45
  316. package/dist/core/consensus/msgs/index.d.ts +0 -8
  317. package/dist/core/crisis/index.d.ts +0 -1
  318. package/dist/core/crisis/msgs/MsgUpdateCrisisParams.d.ts +0 -33
  319. package/dist/core/crisis/msgs/MsgVerifyInvariant.d.ts +0 -35
  320. package/dist/core/crisis/msgs/index.d.ts +0 -10
  321. package/dist/core/distribution/DistributionParams.d.ts +0 -32
  322. package/dist/core/distribution/RewardWeight.d.ts +0 -25
  323. package/dist/core/distribution/index.d.ts +0 -3
  324. package/dist/core/distribution/msgs/MsgCommunityPoolSpend.d.ts +0 -36
  325. package/dist/core/distribution/msgs/MsgDepositValidatorRewardsPool.d.ts +0 -40
  326. package/dist/core/distribution/msgs/MsgFundCommunityPool.d.ts +0 -33
  327. package/dist/core/distribution/msgs/MsgSetWithdrawAddress.d.ts +0 -32
  328. package/dist/core/distribution/msgs/MsgUpdateDistrParams.d.ts +0 -33
  329. package/dist/core/distribution/msgs/MsgWithdrawDelegatorReward.d.ts +0 -32
  330. package/dist/core/distribution/msgs/MsgWithdrawValidatorCommission.d.ts +0 -29
  331. package/dist/core/distribution/msgs/index.d.ts +0 -20
  332. package/dist/core/evidence/Equivocation.d.ts +0 -38
  333. package/dist/core/evidence/Evidence.d.ts +0 -11
  334. package/dist/core/evidence/index.d.ts +0 -3
  335. package/dist/core/evidence/msgs/MsgSubmitEvidence.d.ts +0 -33
  336. package/dist/core/evidence/msgs/index.d.ts +0 -8
  337. package/dist/core/evm/AccessTuple.d.ts +0 -25
  338. package/dist/core/evm/EvmParams.d.ts +0 -43
  339. package/dist/core/evm/GasEnforcement.d.ts +0 -27
  340. package/dist/core/evm/SetCodeAuthorization.d.ts +0 -30
  341. package/dist/core/evm/index.d.ts +0 -5
  342. package/dist/core/evm/msgs/MsgCall.d.ts +0 -46
  343. package/dist/core/evm/msgs/MsgCreate.d.ts +0 -39
  344. package/dist/core/evm/msgs/MsgCreate2.d.ts +0 -42
  345. package/dist/core/evm/msgs/MsgUpdateEvmParams.d.ts +0 -33
  346. package/dist/core/evm/msgs/index.d.ts +0 -14
  347. package/dist/core/feegrant/allowances/AllowedMsgAllowance.d.ts +0 -33
  348. package/dist/core/feegrant/allowances/BasicAllowance.d.ts +0 -32
  349. package/dist/core/feegrant/allowances/PeriodicAllowance.d.ts +0 -43
  350. package/dist/core/feegrant/allowances/index.d.ts +0 -16
  351. package/dist/core/feegrant/index.d.ts +0 -2
  352. package/dist/core/feegrant/msgs/MsgGrantAllowance.d.ts +0 -36
  353. package/dist/core/feegrant/msgs/MsgRevokeAllowance.d.ts +0 -32
  354. package/dist/core/feegrant/msgs/index.d.ts +0 -10
  355. package/dist/core/forwarding/index.d.ts +0 -1
  356. package/dist/core/forwarding/msgs/MsgClearForwardingAccount.d.ts +0 -32
  357. package/dist/core/forwarding/msgs/MsgRegisterForwardingAccount.d.ts +0 -38
  358. package/dist/core/forwarding/msgs/MsgSetAllowedDenoms.d.ts +0 -32
  359. package/dist/core/forwarding/msgs/MsgSetMemo.d.ts +0 -44
  360. package/dist/core/forwarding/msgs/index.d.ts +0 -14
  361. package/dist/core/gov/Deposit.d.ts +0 -29
  362. package/dist/core/gov/GovParams.d.ts +0 -85
  363. package/dist/core/gov/TallyResult.d.ts +0 -36
  364. package/dist/core/gov/Vesting.d.ts +0 -28
  365. package/dist/core/gov/Vote.d.ts +0 -55
  366. package/dist/core/gov/index.d.ts +0 -6
  367. package/dist/core/gov/msgs/MsgActivateEmergencyProposal.d.ts +0 -32
  368. package/dist/core/gov/msgs/MsgAddEmergencySubmitters.d.ts +0 -32
  369. package/dist/core/gov/msgs/MsgCancelProposal.d.ts +0 -32
  370. package/dist/core/gov/msgs/MsgDeposit.d.ts +0 -36
  371. package/dist/core/gov/msgs/MsgDepositLegacy.d.ts +0 -36
  372. package/dist/core/gov/msgs/MsgRemoveEmergencySubmitters.d.ts +0 -32
  373. package/dist/core/gov/msgs/MsgSubmitProposal.d.ts +0 -49
  374. package/dist/core/gov/msgs/MsgSubmitProposalLegacy.d.ts +0 -37
  375. package/dist/core/gov/msgs/MsgUpdateGovParams.d.ts +0 -33
  376. package/dist/core/gov/msgs/MsgVote.d.ts +0 -41
  377. package/dist/core/gov/msgs/MsgVoteLegacy.d.ts +0 -38
  378. package/dist/core/gov/msgs/MsgVoteWeighted.d.ts +0 -39
  379. package/dist/core/gov/msgs/MsgVoteWeightedLegacy.d.ts +0 -36
  380. package/dist/core/gov/msgs/index.d.ts +0 -32
  381. package/dist/core/gov/proposals/Content.d.ts +0 -12
  382. package/dist/core/gov/proposals/Proposal.d.ts +0 -79
  383. package/dist/core/gov/proposals/TextProposal.d.ts +0 -31
  384. package/dist/core/gov/proposals/index.d.ts +0 -3
  385. package/dist/core/group/GroupInfo.d.ts +0 -37
  386. package/dist/core/group/GroupMember.d.ts +0 -78
  387. package/dist/core/group/GroupPolicyInfo.d.ts +0 -41
  388. package/dist/core/group/GroupProposal.d.ts +0 -82
  389. package/dist/core/group/GroupVote.d.ts +0 -36
  390. package/dist/core/group/index.d.ts +0 -7
  391. package/dist/core/group/msgs/MsgCreateGroup.d.ts +0 -36
  392. package/dist/core/group/msgs/MsgCreateGroupPolicy.d.ts +0 -39
  393. package/dist/core/group/msgs/MsgCreateGroupWithPolicy.d.ts +0 -46
  394. package/dist/core/group/msgs/MsgGroupExec.d.ts +0 -32
  395. package/dist/core/group/msgs/MsgGroupVote.d.ts +0 -46
  396. package/dist/core/group/msgs/MsgLeaveGroup.d.ts +0 -32
  397. package/dist/core/group/msgs/MsgSubmitGroupProposal.d.ts +0 -50
  398. package/dist/core/group/msgs/MsgUpdateGroupAdmin.d.ts +0 -35
  399. package/dist/core/group/msgs/MsgUpdateGroupDecisionPolicy.d.ts +0 -36
  400. package/dist/core/group/msgs/MsgUpdateGroupMembers.d.ts +0 -36
  401. package/dist/core/group/msgs/MsgUpdateGroupMetadata.d.ts +0 -35
  402. package/dist/core/group/msgs/MsgUpdateGroupPolicyAdmin.d.ts +0 -35
  403. package/dist/core/group/msgs/MsgUpdateGroupPolicyMetadata.d.ts +0 -35
  404. package/dist/core/group/msgs/MsgWithdrawProposal.d.ts +0 -32
  405. package/dist/core/group/msgs/index.d.ts +0 -32
  406. package/dist/core/group/policies/DecisionPolicyWindows.d.ts +0 -25
  407. package/dist/core/group/policies/PercentageDecisionPolicy.d.ts +0 -32
  408. package/dist/core/group/policies/ThresholdDecisionPolicy.d.ts +0 -32
  409. package/dist/core/group/policies/index.d.ts +0 -15
  410. package/dist/core/ibc/applications/fee/IbcFee.d.ts +0 -28
  411. package/dist/core/ibc/applications/fee/IdentifiedPacketFee.d.ts +0 -26
  412. package/dist/core/ibc/applications/fee/Metadata.d.ts +0 -24
  413. package/dist/core/ibc/applications/fee/PacketFee.d.ts +0 -29
  414. package/dist/core/ibc/applications/fee/index.d.ts +0 -5
  415. package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFee.d.ts +0 -31
  416. package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFeeAsync.d.ts +0 -26
  417. package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartyPayee.d.ts +0 -28
  418. package/dist/core/ibc/applications/fee/msgs/MsgRegisterPayee.d.ts +0 -28
  419. package/dist/core/ibc/applications/fee/msgs/index.d.ts +0 -13
  420. package/dist/core/ibc/applications/index.d.ts +0 -4
  421. package/dist/core/ibc/applications/interchain-account/Account.d.ts +0 -25
  422. package/dist/core/ibc/applications/interchain-account/Metadata.d.ts +0 -36
  423. package/dist/core/ibc/applications/interchain-account/controller/Params.d.ts +0 -21
  424. package/dist/core/ibc/applications/interchain-account/host/Params.d.ts +0 -24
  425. package/dist/core/ibc/applications/interchain-account/index.d.ts +0 -4
  426. package/dist/core/ibc/applications/nft-transfer/IbcNftParams.d.ts +0 -28
  427. package/dist/core/ibc/applications/nft-transfer/NftClassTrace.d.ts +0 -24
  428. package/dist/core/ibc/applications/nft-transfer/NonFungibleTokenPacketData.d.ts +0 -45
  429. package/dist/core/ibc/applications/nft-transfer/index.d.ts +0 -4
  430. package/dist/core/ibc/applications/nft-transfer/msgs/MsgNftTransfer.d.ts +0 -54
  431. package/dist/core/ibc/applications/nft-transfer/msgs/MsgUpdateIbcNftParams.d.ts +0 -33
  432. package/dist/core/ibc/applications/nft-transfer/msgs/index.d.ts +0 -10
  433. package/dist/core/ibc/applications/perm/index.d.ts +0 -1
  434. package/dist/core/ibc/applications/perm/msgs/MsgUpdateIbcPermAdmin.d.ts +0 -38
  435. package/dist/core/ibc/applications/perm/msgs/MsgUpdatePermissionedRelayers.d.ts +0 -38
  436. package/dist/core/ibc/applications/perm/msgs/index.d.ts +0 -10
  437. package/dist/core/ibc/applications/transfer/DenomTrace.d.ts +0 -24
  438. package/dist/core/ibc/applications/transfer/FungibleTokenPacketData.d.ts +0 -33
  439. package/dist/core/ibc/applications/transfer/IbcTransferParams.d.ts +0 -24
  440. package/dist/core/ibc/applications/transfer/authorizations/Allocation.d.ts +0 -34
  441. package/dist/core/ibc/applications/transfer/authorizations/TransferAuthorization.d.ts +0 -23
  442. package/dist/core/ibc/applications/transfer/authorizations/index.d.ts +0 -2
  443. package/dist/core/ibc/applications/transfer/index.d.ts +0 -5
  444. package/dist/core/ibc/applications/transfer/msgs/MsgTransfer.d.ts +0 -52
  445. package/dist/core/ibc/applications/transfer/msgs/MsgUpdateIbcTransferParams.d.ts +0 -26
  446. package/dist/core/ibc/applications/transfer/msgs/index.d.ts +0 -10
  447. package/dist/core/ibc/core/channel/Channel.d.ts +0 -39
  448. package/dist/core/ibc/core/channel/ChannelCounterparty.d.ts +0 -24
  449. package/dist/core/ibc/core/channel/ChannelOrder.d.ts +0 -3
  450. package/dist/core/ibc/core/channel/ChannelState.d.ts +0 -3
  451. package/dist/core/ibc/core/channel/ErrorReceipt.d.ts +0 -20
  452. package/dist/core/ibc/core/channel/IbcChannelParams.d.ts +0 -22
  453. package/dist/core/ibc/core/channel/IdentifiedChannel.d.ts +0 -45
  454. package/dist/core/ibc/core/channel/Packet.d.ts +0 -43
  455. package/dist/core/ibc/core/channel/PacketId.d.ts +0 -27
  456. package/dist/core/ibc/core/channel/Timeout.d.ts +0 -25
  457. package/dist/core/ibc/core/channel/Upgrade.d.ts +0 -24
  458. package/dist/core/ibc/core/channel/UpgradeFields.d.ts +0 -23
  459. package/dist/core/ibc/core/channel/index.d.ts +0 -13
  460. package/dist/core/ibc/core/channel/msgs/MsgChannelCloseConfirm.d.ts +0 -32
  461. package/dist/core/ibc/core/channel/msgs/MsgChannelCloseInit.d.ts +0 -27
  462. package/dist/core/ibc/core/channel/msgs/MsgChannelOpenAck.d.ts +0 -36
  463. package/dist/core/ibc/core/channel/msgs/MsgChannelOpenConfirm.d.ts +0 -32
  464. package/dist/core/ibc/core/channel/msgs/MsgChannelOpenInit.d.ts +0 -28
  465. package/dist/core/ibc/core/channel/msgs/MsgChannelOpenTry.d.ts +0 -36
  466. package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeAck.d.ts +0 -37
  467. package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeCancel.d.ts +0 -35
  468. package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeConfirm.d.ts +0 -40
  469. package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeInit.d.ts +0 -30
  470. package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeOpen.d.ts +0 -37
  471. package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeTimeout.d.ts +0 -35
  472. package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeTry.d.ts +0 -41
  473. package/dist/core/ibc/core/channel/msgs/MsgRecvAcknowledgement.d.ts +0 -32
  474. package/dist/core/ibc/core/channel/msgs/MsgRecvPacket.d.ts +0 -30
  475. package/dist/core/ibc/core/channel/msgs/MsgTimeout.d.ts +0 -32
  476. package/dist/core/ibc/core/channel/msgs/MsgTimeoutClose.d.ts +0 -34
  477. package/dist/core/ibc/core/channel/msgs/MsgUpdateIbcChannelParams.d.ts +0 -26
  478. package/dist/core/ibc/core/channel/msgs/index.d.ts +0 -41
  479. package/dist/core/ibc/core/client/ClientConsensusStates.d.ts +0 -25
  480. package/dist/core/ibc/core/client/ConsensusStateWithHeight.d.ts +0 -25
  481. package/dist/core/ibc/core/client/Height.d.ts +0 -24
  482. package/dist/core/ibc/core/client/IbcClientParams.d.ts +0 -21
  483. package/dist/core/ibc/core/client/IdentifiedClient.d.ts +0 -24
  484. package/dist/core/ibc/core/client/index.d.ts +0 -6
  485. package/dist/core/ibc/core/client/msgs/MsgCreateClient.d.ts +0 -27
  486. package/dist/core/ibc/core/client/msgs/MsgIBCSoftwareUpgrade.d.ts +0 -28
  487. package/dist/core/ibc/core/client/msgs/MsgRecoverClient.d.ts +0 -27
  488. package/dist/core/ibc/core/client/msgs/MsgSubmitMisbehaviour.d.ts +0 -27
  489. package/dist/core/ibc/core/client/msgs/MsgUpdateClient.d.ts +0 -27
  490. package/dist/core/ibc/core/client/msgs/MsgUpdateIbcClientParams.d.ts +0 -26
  491. package/dist/core/ibc/core/client/msgs/MsgUpgradeClient.d.ts +0 -33
  492. package/dist/core/ibc/core/client/msgs/index.d.ts +0 -19
  493. package/dist/core/ibc/core/client/msgs/tendermint/crypto.d.ts +0 -43
  494. package/dist/core/ibc/core/client/msgs/tendermint/types.d.ts +0 -187
  495. package/dist/core/ibc/core/client/msgs/tendermint/version.d.ts +0 -38
  496. package/dist/core/ibc/core/commitment/MerklePrefix.d.ts +0 -21
  497. package/dist/core/ibc/core/commitment/MerkleRoot.d.ts +0 -21
  498. package/dist/core/ibc/core/commitment/index.d.ts +0 -2
  499. package/dist/core/ibc/core/connection/ConnectionCounterparty.d.ts +0 -28
  500. package/dist/core/ibc/core/connection/ConnectionState.d.ts +0 -3
  501. package/dist/core/ibc/core/connection/IbcConnectionParams.d.ts +0 -21
  502. package/dist/core/ibc/core/connection/IbcVersion.d.ts +0 -24
  503. package/dist/core/ibc/core/connection/IdentifiedConnection.d.ts +0 -39
  504. package/dist/core/ibc/core/connection/index.d.ts +0 -5
  505. package/dist/core/ibc/core/connection/msgs/MsgConnectionOpenAck.d.ts +0 -42
  506. package/dist/core/ibc/core/connection/msgs/MsgConnectionOpenConfirm.d.ts +0 -30
  507. package/dist/core/ibc/core/connection/msgs/MsgConnectionOpenInit.d.ts +0 -33
  508. package/dist/core/ibc/core/connection/msgs/MsgConnectionOpenTry.d.ts +0 -46
  509. package/dist/core/ibc/core/connection/msgs/MsgUpdateIbcConnectionParams.d.ts +0 -26
  510. package/dist/core/ibc/core/connection/msgs/index.d.ts +0 -15
  511. package/dist/core/ibc/core/index.d.ts +0 -4
  512. package/dist/core/ibc/index.d.ts +0 -2
  513. package/dist/core/ibc/lightclient/index.d.ts +0 -1
  514. package/dist/core/ibc/lightclient/tendermint/Header.d.ts +0 -29
  515. package/dist/core/ibchooks/ACL.d.ts +0 -25
  516. package/dist/core/ibchooks/IbcHooksParams.d.ts +0 -25
  517. package/dist/core/ibchooks/index.d.ts +0 -3
  518. package/dist/core/ibchooks/msgs/MsgUpdateACL.d.ts +0 -35
  519. package/dist/core/ibchooks/msgs/MsgUpdateIbcHooksParams.d.ts +0 -33
  520. package/dist/core/ibchooks/msgs/index.d.ts +0 -10
  521. package/dist/core/index.d.ts +0 -40
  522. package/dist/core/intertx/index.d.ts +0 -1
  523. package/dist/core/intertx/msgs/MsgRegisterAccount.d.ts +0 -39
  524. package/dist/core/intertx/msgs/MsgSubmitTx.d.ts +0 -36
  525. package/dist/core/intertx/msgs/index.d.ts +0 -10
  526. package/dist/core/marketmap/Market.d.ts +0 -26
  527. package/dist/core/marketmap/MarketmapParams.d.ts +0 -25
  528. package/dist/core/marketmap/ProviderConfig.d.ts +0 -34
  529. package/dist/core/marketmap/Ticker.d.ts +0 -34
  530. package/dist/core/marketmap/index.d.ts +0 -5
  531. package/dist/core/marketmap/msgs/MsgCreateMarkets.d.ts +0 -33
  532. package/dist/core/marketmap/msgs/MsgRemoveMarketAuthorities.d.ts +0 -32
  533. package/dist/core/marketmap/msgs/MsgRemoveMarkets.d.ts +0 -32
  534. package/dist/core/marketmap/msgs/MsgUpdateMarketmapParams.d.ts +0 -33
  535. package/dist/core/marketmap/msgs/MsgUpdateMarkets.d.ts +0 -33
  536. package/dist/core/marketmap/msgs/MsgUpsertMarkets.d.ts +0 -33
  537. package/dist/core/marketmap/msgs/index.d.ts +0 -18
  538. package/dist/core/move/Module.d.ts +0 -36
  539. package/dist/core/move/MoveParams.d.ts +0 -37
  540. package/dist/core/move/index.d.ts +0 -3
  541. package/dist/core/move/msgs/MsgDelist.d.ts +0 -32
  542. package/dist/core/move/msgs/MsgExecute.d.ts +0 -44
  543. package/dist/core/move/msgs/MsgExecuteJSON.d.ts +0 -44
  544. package/dist/core/move/msgs/MsgGovExecute.d.ts +0 -47
  545. package/dist/core/move/msgs/MsgGovExecuteJSON.d.ts +0 -47
  546. package/dist/core/move/msgs/MsgGovPublish.d.ts +0 -41
  547. package/dist/core/move/msgs/MsgGovScript.d.ts +0 -41
  548. package/dist/core/move/msgs/MsgGovScriptJSON.d.ts +0 -41
  549. package/dist/core/move/msgs/MsgPublish.d.ts +0 -38
  550. package/dist/core/move/msgs/MsgScript.d.ts +0 -38
  551. package/dist/core/move/msgs/MsgScriptJSON.d.ts +0 -38
  552. package/dist/core/move/msgs/MsgUpdateMoveParams.d.ts +0 -33
  553. package/dist/core/move/msgs/MsgWhitelist.d.ts +0 -35
  554. package/dist/core/move/msgs/index.d.ts +0 -32
  555. package/dist/core/mstaking/Delegation.d.ts +0 -36
  556. package/dist/core/mstaking/MstakingParams.d.ts +0 -44
  557. package/dist/core/mstaking/Redelegation.d.ts +0 -71
  558. package/dist/core/mstaking/UnbondingDelegation.d.ts +0 -57
  559. package/dist/core/mstaking/Validator.d.ts +0 -137
  560. package/dist/core/mstaking/index.d.ts +0 -6
  561. package/dist/core/mstaking/msgs/MsgBeginRedelegate.d.ts +0 -39
  562. package/dist/core/mstaking/msgs/MsgCancelUnbondingDelegation.d.ts +0 -39
  563. package/dist/core/mstaking/msgs/MsgCreateValidator.d.ts +0 -44
  564. package/dist/core/mstaking/msgs/MsgDelegate.d.ts +0 -36
  565. package/dist/core/mstaking/msgs/MsgEditValidator.d.ts +0 -37
  566. package/dist/core/mstaking/msgs/MsgUndelegate.d.ts +0 -36
  567. package/dist/core/mstaking/msgs/MsgUpdateMstakingParams.d.ts +0 -33
  568. package/dist/core/mstaking/msgs/index.d.ts +0 -20
  569. package/dist/core/num.d.ts +0 -2
  570. package/dist/core/opchild/BridgeInfo.d.ts +0 -34
  571. package/dist/core/opchild/L2MigrationInfo.d.ts +0 -27
  572. package/dist/core/opchild/OpValidator.d.ts +0 -32
  573. package/dist/core/opchild/OpchildParams.d.ts +0 -45
  574. package/dist/core/opchild/index.d.ts +0 -5
  575. package/dist/core/opchild/msgs/MsgAddAttestor.d.ts +0 -39
  576. package/dist/core/opchild/msgs/MsgAddBridgeExecutor.d.ts +0 -32
  577. package/dist/core/opchild/msgs/MsgAddFeeWhitelistAddresses.d.ts +0 -32
  578. package/dist/core/opchild/msgs/MsgExecuteMessages.d.ts +0 -33
  579. package/dist/core/opchild/msgs/MsgFinalizeTokenDeposit.d.ts +0 -52
  580. package/dist/core/opchild/msgs/MsgInitiateTokenWithdrawal.d.ts +0 -36
  581. package/dist/core/opchild/msgs/MsgMigrateToken.d.ts +0 -33
  582. package/dist/core/opchild/msgs/MsgRegisterL2MigrationInfo.d.ts +0 -33
  583. package/dist/core/opchild/msgs/MsgRemoveAttestor.d.ts +0 -32
  584. package/dist/core/opchild/msgs/MsgRemoveBridgeExecutor.d.ts +0 -32
  585. package/dist/core/opchild/msgs/MsgRemoveFeeWhitelistAddresses.d.ts +0 -32
  586. package/dist/core/opchild/msgs/MsgSetBridgeInfo.d.ts +0 -33
  587. package/dist/core/opchild/msgs/MsgSpendFeePool.d.ts +0 -36
  588. package/dist/core/opchild/msgs/MsgUpdateMinGasPrices.d.ts +0 -33
  589. package/dist/core/opchild/msgs/MsgUpdateOpchildAdmin.d.ts +0 -32
  590. package/dist/core/opchild/msgs/MsgUpdateOpchildParams.d.ts +0 -33
  591. package/dist/core/opchild/msgs/MsgUpdateOracle.d.ts +0 -35
  592. package/dist/core/opchild/msgs/MsgUpdateSequencer.d.ts +0 -39
  593. package/dist/core/opchild/msgs/index.d.ts +0 -42
  594. package/dist/core/ophost/BatchInfo.d.ts +0 -25
  595. package/dist/core/ophost/BatchInfoWithOutput.d.ts +0 -26
  596. package/dist/core/ophost/BridgeConfig.d.ts +0 -51
  597. package/dist/core/ophost/L1MigrationInfo.d.ts +0 -30
  598. package/dist/core/ophost/OphostParams.d.ts +0 -26
  599. package/dist/core/ophost/Output.d.ts +0 -30
  600. package/dist/core/ophost/index.d.ts +0 -7
  601. package/dist/core/ophost/msgs/MsgCreateBridge.d.ts +0 -33
  602. package/dist/core/ophost/msgs/MsgDeleteOutput.d.ts +0 -35
  603. package/dist/core/ophost/msgs/MsgDisableBridge.d.ts +0 -32
  604. package/dist/core/ophost/msgs/MsgFinalizeTokenWithdrawal.d.ts +0 -60
  605. package/dist/core/ophost/msgs/MsgInitiateTokenDeposit.d.ts +0 -42
  606. package/dist/core/ophost/msgs/MsgProposeOutput.d.ts +0 -41
  607. package/dist/core/ophost/msgs/MsgRecordBatch.d.ts +0 -35
  608. package/dist/core/ophost/msgs/MsgRegisterL1MigrationInfo.d.ts +0 -33
  609. package/dist/core/ophost/msgs/MsgUpdateBatchInfo.d.ts +0 -36
  610. package/dist/core/ophost/msgs/MsgUpdateChallenger.d.ts +0 -35
  611. package/dist/core/ophost/msgs/MsgUpdateFinalizationPeriod.d.ts +0 -36
  612. package/dist/core/ophost/msgs/MsgUpdateMetadata.d.ts +0 -35
  613. package/dist/core/ophost/msgs/MsgUpdateOphostParams.d.ts +0 -33
  614. package/dist/core/ophost/msgs/MsgUpdateOracleConfig.d.ts +0 -35
  615. package/dist/core/ophost/msgs/MsgUpdateProposer.d.ts +0 -35
  616. package/dist/core/ophost/msgs/index.d.ts +0 -36
  617. package/dist/core/oracle/CurrencyPair.d.ts +0 -25
  618. package/dist/core/oracle/QuotePrice.d.ts +0 -27
  619. package/dist/core/oracle/index.d.ts +0 -3
  620. package/dist/core/oracle/msgs/MsgAddCurrencyPairs.d.ts +0 -33
  621. package/dist/core/oracle/msgs/MsgRemoveCurrencyPairs.d.ts +0 -32
  622. package/dist/core/oracle/msgs/index.d.ts +0 -10
  623. package/dist/core/params/ParamChange.d.ts +0 -42
  624. package/dist/core/params/index.d.ts +0 -2
  625. package/dist/core/params/proposals/ParameterChangeProposal.d.ts +0 -35
  626. package/dist/core/params/proposals/index.d.ts +0 -1
  627. package/dist/core/reward/RewardParams.d.ts +0 -38
  628. package/dist/core/reward/index.d.ts +0 -2
  629. package/dist/core/reward/msgs/MsgFundCommunityPoolReward.d.ts +0 -33
  630. package/dist/core/reward/msgs/MsgUpdateRewardParams.d.ts +0 -33
  631. package/dist/core/reward/msgs/index.d.ts +0 -10
  632. package/dist/core/slashing/SlashingParams.d.ts +0 -38
  633. package/dist/core/slashing/ValidatorSigningInfo.d.ts +0 -37
  634. package/dist/core/slashing/index.d.ts +0 -3
  635. package/dist/core/slashing/msgs/MsgUnjail.d.ts +0 -29
  636. package/dist/core/slashing/msgs/MsgUpdateSlashingParams.d.ts +0 -33
  637. package/dist/core/slashing/msgs/index.d.ts +0 -10
  638. package/dist/core/tokenfactory/TokenfactoryParams.d.ts +0 -25
  639. package/dist/core/tokenfactory/index.d.ts +0 -2
  640. package/dist/core/tokenfactory/msgs/MsgBurn.d.ts +0 -33
  641. package/dist/core/tokenfactory/msgs/MsgChangeAdmin.d.ts +0 -35
  642. package/dist/core/tokenfactory/msgs/MsgCreateDenom.d.ts +0 -32
  643. package/dist/core/tokenfactory/msgs/MsgMint.d.ts +0 -36
  644. package/dist/core/tokenfactory/msgs/MsgSetBeforeSendHook.d.ts +0 -35
  645. package/dist/core/tokenfactory/msgs/MsgSetDenomMetadataWasm.d.ts +0 -33
  646. package/dist/core/tokenfactory/msgs/MsgUpdateTokenfactoryParams.d.ts +0 -33
  647. package/dist/core/tokenfactory/msgs/index.d.ts +0 -20
  648. package/dist/core/tx/CompactBitArray.d.ts +0 -22
  649. package/dist/core/tx/Fee.d.ts +0 -31
  650. package/dist/core/tx/MultiSignature.d.ts +0 -13
  651. package/dist/core/tx/SignDoc.d.ts +0 -36
  652. package/dist/core/tx/SignMode.d.ts +0 -3
  653. package/dist/core/tx/SignatureV2.d.ts +0 -66
  654. package/dist/core/tx/Tx.d.ts +0 -146
  655. package/dist/core/tx/TxInfo.d.ts +0 -74
  656. package/dist/core/tx/index.d.ts +0 -7
  657. package/dist/core/upgrade/Plan.d.ts +0 -27
  658. package/dist/core/upgrade/index.d.ts +0 -2
  659. package/dist/core/upgrade/msgs/MsgCancelUpgrade.d.ts +0 -29
  660. package/dist/core/upgrade/msgs/MsgSoftwareUpgrade.d.ts +0 -33
  661. package/dist/core/upgrade/msgs/index.d.ts +0 -10
  662. package/dist/core/wasm/AbsoluteTxPosition.d.ts +0 -24
  663. package/dist/core/wasm/AccessConfig.d.ts +0 -27
  664. package/dist/core/wasm/WasmParams.d.ts +0 -32
  665. package/dist/core/wasm/authorizations/AcceptedMessageKeysFilter.d.ts +0 -28
  666. package/dist/core/wasm/authorizations/AcceptedMessagesFilter.d.ts +0 -28
  667. package/dist/core/wasm/authorizations/AllowAllMessagesFilter.d.ts +0 -24
  668. package/dist/core/wasm/authorizations/CodeGrant.d.ts +0 -25
  669. package/dist/core/wasm/authorizations/CombinedLimit.d.ts +0 -32
  670. package/dist/core/wasm/authorizations/ContractExecutionAuthorization.d.ts +0 -29
  671. package/dist/core/wasm/authorizations/ContractFilter.d.ts +0 -13
  672. package/dist/core/wasm/authorizations/ContractGrant.d.ts +0 -30
  673. package/dist/core/wasm/authorizations/ContractLimit.d.ts +0 -13
  674. package/dist/core/wasm/authorizations/ContractMigrationAuthorization.d.ts +0 -29
  675. package/dist/core/wasm/authorizations/MaxCallsLimit.d.ts +0 -28
  676. package/dist/core/wasm/authorizations/MaxFundsLimit.d.ts +0 -29
  677. package/dist/core/wasm/authorizations/StoreCodeAuthorization.d.ts +0 -29
  678. package/dist/core/wasm/authorizations/index.d.ts +0 -11
  679. package/dist/core/wasm/index.d.ts +0 -5
  680. package/dist/core/wasm/msgs/MsgAddCodeUploadParamsAddresses.d.ts +0 -32
  681. package/dist/core/wasm/msgs/MsgClearAdmin.d.ts +0 -32
  682. package/dist/core/wasm/msgs/MsgExecuteContract.d.ts +0 -39
  683. package/dist/core/wasm/msgs/MsgInstantiateContract.d.ts +0 -45
  684. package/dist/core/wasm/msgs/MsgInstantiateContractV2.d.ts +0 -51
  685. package/dist/core/wasm/msgs/MsgMigrateContract.d.ts +0 -38
  686. package/dist/core/wasm/msgs/MsgPinCodes.d.ts +0 -32
  687. package/dist/core/wasm/msgs/MsgRemoveCodeUploadParamsAddresses.d.ts +0 -32
  688. package/dist/core/wasm/msgs/MsgStoreAndInstantiateContract.d.ts +0 -61
  689. package/dist/core/wasm/msgs/MsgStoreAndMigrateContract.d.ts +0 -42
  690. package/dist/core/wasm/msgs/MsgStoreCode.d.ts +0 -36
  691. package/dist/core/wasm/msgs/MsgSudoContract.d.ts +0 -35
  692. package/dist/core/wasm/msgs/MsgUnpinCodes.d.ts +0 -32
  693. package/dist/core/wasm/msgs/MsgUpdateAdmin.d.ts +0 -35
  694. package/dist/core/wasm/msgs/MsgUpdateContractLabel.d.ts +0 -35
  695. package/dist/core/wasm/msgs/MsgUpdateInstantiateConfig.d.ts +0 -36
  696. package/dist/core/wasm/msgs/MsgUpdateMaxWasmSize.d.ts +0 -32
  697. package/dist/core/wasm/msgs/MsgUpdateWasmParams.d.ts +0 -33
  698. package/dist/core/wasm/msgs/index.d.ts +0 -42
  699. package/dist/core/wasmextension/AccessConfigExt.d.ts +0 -28
  700. package/dist/core/wasmextension/index.d.ts +0 -2
  701. package/dist/core/wasmextension/msgs/MsgStoreCodeAdmin.d.ts +0 -39
  702. package/dist/core/wasmextension/msgs/index.d.ts +0 -8
  703. package/dist/index.cjs +0 -6
  704. package/dist/index.d.ts +0 -4
  705. package/dist/index.mjs +0 -103590
  706. package/dist/key/Key.d.ts +0 -20
  707. package/dist/key/MnemonicKey.d.ts +0 -14
  708. package/dist/key/RawKey.d.ts +0 -9
  709. package/dist/key/index.d.ts +0 -3
  710. package/dist/util/bcs.d.ts +0 -44
  711. package/dist/util/hash.d.ts +0 -4
  712. package/dist/util/index.d.ts +0 -3
  713. package/dist/util/json.d.ts +0 -9
@@ -0,0 +1,657 @@
1
+ import { o as ContractError } from "./errors-CN1MFOLv.mjs";
2
+ import { t as Message$1 } from "./types-CSS5rfW1.mjs";
3
+ import { c as tryDecodeBech32, t as AccAddress } from "./address-DwAkzgJk.mjs";
4
+ import { r as jsonStringifyArg } from "./json-CGak0DqP.mjs";
5
+ import { t as UpgradePolicy } from "./types_pb-CrjtO9sB.mjs";
6
+ import { a as MsgScriptJSONSchema, i as MsgPublishSchema, n as MsgExecuteJSONSchema, o as MsgScriptSchema, r as MsgExecuteSchema } from "./tx_pb-DYspoJTt.mjs";
7
+ import { _ as getNonSignerParams, c as parseMoveType, d as findFunction, h as getModuleAbi, o as encodeMoveArgs } from "./bcs-DiRcL4n9.mjs";
8
+ import { n as parseUnits, t as formatUnits } from "./utils-B2carKSi.mjs";
9
+ import { create } from "@bufbuild/protobuf";
10
+ //#region src/contracts/move/contract.ts
11
+ /**
12
+ * Move Contract Factory and Helpers
13
+ *
14
+ * Provides Move module contract interactions via gRPC.
15
+ * Supports entry functions, view functions, resources, and table queries.
16
+ */
17
+ /** Valid Move identifier pattern: starts with letter or underscore, contains alphanumeric and underscore */
18
+ const MOVE_IDENTIFIER_REGEX = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
19
+ /**
20
+ * Validates that an address is in a valid format (EVM hex or bech32).
21
+ * @throws Error if address format is invalid
22
+ */
23
+ function validateModuleAddress(address) {
24
+ if (address.startsWith("0x")) {
25
+ if (!/^0x[0-9a-fA-F]+$/.test(address)) throw new Error(`Invalid module address format: ${address}. Expected 0x followed by hex characters.`);
26
+ return;
27
+ }
28
+ if (!tryDecodeBech32(address)) throw new Error(`Invalid module address: ${address}. Expected EVM hex (0x...) or bech32 format.`);
29
+ }
30
+ /**
31
+ * Validates that a module name is a valid Move identifier.
32
+ * @throws Error if module name is invalid
33
+ */
34
+ function validateModuleName(name) {
35
+ if (!name) throw new Error("Module name cannot be empty");
36
+ if (!MOVE_IDENTIFIER_REGEX.test(name)) throw new Error(`Invalid module name: ${name}. Must start with a letter or underscore and contain only alphanumeric characters and underscores.`);
37
+ }
38
+ /**
39
+ * Checks if a Move param type is address-like (address or Object<T>).
40
+ */
41
+ function isAddressLikeType(moveType) {
42
+ return moveType === "address" || moveType.startsWith("0x1::object::Object");
43
+ }
44
+ /**
45
+ * Move unsigned integer types with max values for range validation in the JSON fallback path.
46
+ * KNOWN_BCS_BASES covers all BCS-encodable types and gates BCS-vs-JSON path selection.
47
+ */
48
+ const UINT_MAX = new Map([
49
+ ["u8", (1n << 8n) - 1n],
50
+ ["u16", (1n << 16n) - 1n],
51
+ ["u32", (1n << 32n) - 1n],
52
+ ["u64", (1n << 64n) - 1n],
53
+ ["u128", (1n << 128n) - 1n],
54
+ ["u256", (1n << 256n) - 1n]
55
+ ]);
56
+ /**
57
+ * Converts a single arg to a JSON string for the Move VM.
58
+ *
59
+ * - Address params: auto-converts bech32 to hex.
60
+ * - Uint params (u8-u256): validates range, converts bigint/number to quoted string.
61
+ * Rejects non-numeric/non-string types for uint params.
62
+ * - All other cases: delegates to jsonStringifyArg (bigint-safe fallback).
63
+ */
64
+ function convertArgToJson(arg, paramType) {
65
+ if (paramType && isAddressLikeType(paramType) && typeof arg === "string" && !arg.startsWith("0x")) try {
66
+ return JSON.stringify(AccAddress.toHex(arg));
67
+ } catch {}
68
+ const uintMax = paramType ? UINT_MAX.get(paramType) : void 0;
69
+ if (uintMax !== void 0) {
70
+ if (typeof arg === "bigint") {
71
+ if (arg < 0n || arg > uintMax) throw new Error(`Value ${arg} out of range for Move type ${paramType} (0..${uintMax}).`);
72
+ return JSON.stringify(arg.toString());
73
+ }
74
+ if (typeof arg === "number") {
75
+ if (!Number.isSafeInteger(arg) || arg < 0) throw new Error(`Unsafe number ${arg} for Move type ${paramType}. Expected a non-negative safe integer, or use BigInt.`);
76
+ if (BigInt(arg) > uintMax) throw new Error(`Value ${arg} out of range for Move type ${paramType} (0..${uintMax}).`);
77
+ return JSON.stringify(String(arg));
78
+ }
79
+ if (typeof arg !== "string") throw new Error(`Invalid argument type ${typeof arg} for Move type ${paramType}. Expected bigint, number, or string.`);
80
+ }
81
+ return jsonStringifyArg(arg);
82
+ }
83
+ /**
84
+ * Checks if any param type contains unresolved generic references (T0, T1, ...).
85
+ * Used to fall back to JSON path when BCS encoding is not possible.
86
+ */
87
+ function hasUnresolvedGenerics(paramTypes) {
88
+ return paramTypes.some((p) => /\bT\d+\b/.test(p));
89
+ }
90
+ /**
91
+ * Resolves generic type references (T0, T1, ...) in Move type strings
92
+ * using the provided typeArgs array.
93
+ */
94
+ function resolveGenericTypes(types, typeArgs) {
95
+ if (typeArgs.length === 0) return types;
96
+ return types.map((t) => t.replace(/\bT(\d+)\b/g, (match, indexStr) => {
97
+ const i = parseInt(indexStr);
98
+ return i < typeArgs.length ? typeArgs[i] : match;
99
+ }));
100
+ }
101
+ const KNOWN_BCS_BASES = new Set([
102
+ "bool",
103
+ "u8",
104
+ "u16",
105
+ "u32",
106
+ "u64",
107
+ "u128",
108
+ "u256",
109
+ "address",
110
+ "signer",
111
+ "vector",
112
+ "string",
113
+ "0x1::string::String",
114
+ "0x1::option::Option",
115
+ "0x1::object::Object",
116
+ "0x1::object::ObjectCore",
117
+ "0x1::fixed_point32::FixedPoint32",
118
+ "0x1::fixed_point64::FixedPoint64",
119
+ "0x1::decimal128::Decimal128",
120
+ "0x1::decimal256::Decimal256"
121
+ ]);
122
+ /**
123
+ * Checks if all param types can be BCS-encoded by resolveBcsType().
124
+ * Recursively checks type args (e.g., vector<UnknownType> → false).
125
+ */
126
+ function allTypesResolvable(paramTypes) {
127
+ function isResolvable(parsed) {
128
+ if (!KNOWN_BCS_BASES.has(parsed.base)) return false;
129
+ if (parsed.base === "0x1::object::Object" || parsed.base === "0x1::object::ObjectCore") return true;
130
+ return parsed.typeArgs.every(isResolvable);
131
+ }
132
+ return paramTypes.every((p) => isResolvable(parseMoveType(p)));
133
+ }
134
+ /**
135
+ * Converts a JSON-parsed view response value to a typed value
136
+ * based on the Move return type from the ABI.
137
+ *
138
+ * Only converts types where JSON representation differs from target:
139
+ * - u64/u128/u256 JSON strings → bigint
140
+ * - vector<T> → recursively converts elements
141
+ * - Option<T> → null or recursively converts inner value
142
+ *
143
+ * Types that are already correct (bool, u8/u16/u32, address, string,
144
+ * Object<T>, decimal, fixed_point) pass through unchanged.
145
+ */
146
+ function convertJsonValue(value, parsed) {
147
+ const { base, typeArgs } = parsed;
148
+ switch (base) {
149
+ case "u64":
150
+ case "u128":
151
+ case "u256":
152
+ if (typeof value === "string") return BigInt(value);
153
+ if (typeof value === "number") return BigInt(value);
154
+ return value;
155
+ case "vector":
156
+ if (Array.isArray(value) && typeArgs.length === 1) return value.map((v) => convertJsonValue(v, typeArgs[0]));
157
+ return value;
158
+ case "0x1::option::Option":
159
+ if (value === null || value === void 0) return null;
160
+ if (typeof value === "object" && value !== null && "vec" in value) {
161
+ const vec = value.vec;
162
+ if (vec.length === 0) return null;
163
+ if (vec.length === 1 && typeArgs.length === 1) return convertJsonValue(vec[0], typeArgs[0]);
164
+ }
165
+ if (typeArgs.length === 1) return convertJsonValue(value, typeArgs[0]);
166
+ return value;
167
+ default: return value;
168
+ }
169
+ }
170
+ /**
171
+ * Converts a view function's JSON response to typed values.
172
+ *
173
+ * @param jsonParsed - Result of JSON.parse(response.data)
174
+ * @param returnTypes - ABI return types (fn.return)
175
+ * @returns Typed value (single) or typed array (multiple returns)
176
+ */
177
+ function convertViewResponse(jsonParsed, returnTypes) {
178
+ if (returnTypes.length === 0) return jsonParsed;
179
+ if (returnTypes.length === 1) return convertJsonValue(jsonParsed, parseMoveType(returnTypes[0]));
180
+ if (Array.isArray(jsonParsed)) return jsonParsed.map((val, i) => i < returnTypes.length ? convertJsonValue(val, parseMoveType(returnTypes[i])) : val);
181
+ return jsonParsed;
182
+ }
183
+ /**
184
+ * Internal sync helper — builds a MoveContract from a resolved ABI.
185
+ * Shared by both the static ABI (sync) and runtime ABI (async) overloads.
186
+ */
187
+ function buildContract(context, moduleAddress, moduleName, abi) {
188
+ const moveClient = context.client.move;
189
+ const decimalsCache = /* @__PURE__ */ new Map();
190
+ const execute = new Proxy({}, { get(_, functionName) {
191
+ return (sender, callOptions) => {
192
+ const fn = findFunction(abi, functionName);
193
+ if (!fn) throw new ContractError("move", 0, `Function not found: ${functionName}`);
194
+ if (!fn.is_entry) throw new ContractError("move", 0, `Function is not an entry function: ${functionName}`);
195
+ const typeArgs = callOptions?.typeArgs ?? [];
196
+ const args = callOptions?.args ?? [];
197
+ const resolvedParams = resolveGenericTypes(getNonSignerParams(fn), typeArgs);
198
+ if (!hasUnresolvedGenerics(resolvedParams) && allTypesResolvable(resolvedParams)) return new Message$1(MsgExecuteSchema, {
199
+ sender,
200
+ moduleAddress,
201
+ moduleName,
202
+ functionName,
203
+ typeArgs,
204
+ args: encodeMoveArgs(args, resolvedParams)
205
+ });
206
+ return new Message$1(MsgExecuteJSONSchema, {
207
+ sender,
208
+ moduleAddress,
209
+ moduleName,
210
+ functionName,
211
+ typeArgs,
212
+ args: args.map((arg, i) => convertArgToJson(arg, resolvedParams[i]))
213
+ });
214
+ };
215
+ } });
216
+ const view = new Proxy({}, { get(_, functionName) {
217
+ return async (callOptions) => {
218
+ const fn = findFunction(abi, functionName);
219
+ if (!fn) throw new ContractError("move", 0, `Function not found: ${functionName}`);
220
+ if (!fn.is_view) throw new ContractError("move", 0, `Function is not a view function: ${functionName}`);
221
+ const typeArgs = callOptions?.typeArgs ?? [];
222
+ const args = callOptions?.args ?? [];
223
+ const resolvedParams = resolveGenericTypes(getNonSignerParams(fn), typeArgs);
224
+ const jsonArgs = args.map((arg, i) => convertArgToJson(arg, resolvedParams[i]));
225
+ const response = await moveClient.viewJSON({
226
+ address: moduleAddress,
227
+ moduleName,
228
+ functionName,
229
+ typeArgs,
230
+ args: jsonArgs
231
+ });
232
+ try {
233
+ const parsed = JSON.parse(response.data);
234
+ const resolvedReturns = resolveGenericTypes(fn.return, typeArgs);
235
+ if (resolvedReturns.length > 0 && !hasUnresolvedGenerics(resolvedReturns) && allTypesResolvable(resolvedReturns)) return convertViewResponse(parsed, resolvedReturns);
236
+ return parsed;
237
+ } catch {
238
+ return response.data;
239
+ }
240
+ };
241
+ } });
242
+ async function resource(address, structTag) {
243
+ const response = await moveClient.resource({
244
+ address,
245
+ structTag
246
+ });
247
+ if (!response.resource) throw new ContractError("move", 0, `Resource not found: ${structTag}`);
248
+ try {
249
+ return JSON.parse(response.resource.moveResource);
250
+ } catch {
251
+ return response.resource.moveResource;
252
+ }
253
+ }
254
+ async function tableEntry(tableHandle, key, keyType) {
255
+ const keyBytes = encodeMoveArgs([key], [keyType])[0];
256
+ const response = await moveClient.tableEntry({
257
+ address: tableHandle,
258
+ keyBytes
259
+ });
260
+ if (!response.tableEntry) throw new ContractError("move", 0, `Table entry not found`);
261
+ try {
262
+ return JSON.parse(response.tableEntry.value);
263
+ } catch {
264
+ return response.tableEntry.value;
265
+ }
266
+ }
267
+ async function getDecimals(coinType) {
268
+ const cached = decimalsCache.get(coinType);
269
+ if (cached !== void 0) return cached;
270
+ const coinInfoTag = `0x1::coin::CoinInfo<${coinType}>`;
271
+ const coinTypeMatch = coinType.match(/^(0x[0-9a-fA-F]+)::/);
272
+ const decimals = (await resource(coinTypeMatch ? coinTypeMatch[1] : "0x1", coinInfoTag)).decimals;
273
+ decimalsCache.set(coinType, decimals);
274
+ return decimals;
275
+ }
276
+ async function parseUnitsForCoin(value, coinType) {
277
+ return parseUnits(value, await getDecimals(coinType));
278
+ }
279
+ async function formatUnitsForCoin(value, coinType) {
280
+ return formatUnits(value, await getDecimals(coinType));
281
+ }
282
+ async function getTokenInfo(coinType) {
283
+ const coinInfoTag = `0x1::coin::CoinInfo<${coinType}>`;
284
+ const coinTypeMatch = coinType.match(/^(0x[0-9a-fA-F]+)::/);
285
+ const coinInfo = await resource(coinTypeMatch ? coinTypeMatch[1] : "0x1", coinInfoTag);
286
+ decimalsCache.set(coinType, coinInfo.decimals);
287
+ return {
288
+ name: coinInfo.name,
289
+ symbol: coinInfo.symbol,
290
+ decimals: coinInfo.decimals,
291
+ totalSupply: coinInfo.supply ? BigInt(coinInfo.supply.value) : void 0
292
+ };
293
+ }
294
+ return {
295
+ moduleAddress,
296
+ moduleName,
297
+ abi,
298
+ execute,
299
+ view,
300
+ resource,
301
+ tableEntry,
302
+ parseUnits: parseUnitsForCoin,
303
+ formatUnits: formatUnitsForCoin,
304
+ getTokenInfo
305
+ };
306
+ }
307
+ function createMoveContract(context, abiOrAddress, moduleName, options = {}) {
308
+ if (typeof abiOrAddress !== "string") {
309
+ const abi = abiOrAddress;
310
+ validateModuleAddress(abi.address);
311
+ validateModuleName(abi.name);
312
+ return buildContract(context, abi.address, abi.name, abi);
313
+ }
314
+ const moduleAddress = abiOrAddress;
315
+ validateModuleAddress(moduleAddress);
316
+ validateModuleName(moduleName);
317
+ return (async () => {
318
+ return buildContract(context, moduleAddress, moduleName, options.abi ?? await getModuleAbi(context, moduleAddress, moduleName, {
319
+ useCache: options.useCache,
320
+ cacheTtl: options.cacheTtl
321
+ }));
322
+ })();
323
+ }
324
+ /**
325
+ * Creates a MsgPublish for publishing Move modules.
326
+ *
327
+ * @param options - Publish options
328
+ * @returns MsgPublish message for signing
329
+ *
330
+ * @example
331
+ * ```typescript
332
+ * const msg = createPublishMsg({
333
+ * sender: 'init1...',
334
+ * codeBytes: [compiledModule1, compiledModule2],
335
+ * upgradePolicy: UpgradePolicy.COMPATIBLE,
336
+ * })
337
+ * await ctx.signAndBroadcast([msg])
338
+ * ```
339
+ */
340
+ function createPublishMsg(options) {
341
+ return create(MsgPublishSchema, {
342
+ sender: options.sender,
343
+ codeBytes: options.codeBytes,
344
+ upgradePolicy: options.upgradePolicy ?? UpgradePolicy.COMPATIBLE
345
+ });
346
+ }
347
+ /**
348
+ * Creates a MsgScriptJSON for executing a Move script.
349
+ *
350
+ * @param options - Script execution options
351
+ * @returns MsgScriptJSON message for signing
352
+ *
353
+ * @example
354
+ * ```typescript
355
+ * const msg = createScriptMsg({
356
+ * sender: 'init1...',
357
+ * codeBytes: compiledScript,
358
+ * typeArgs: ['0x1::native_uinit::Coin'],
359
+ * args: ['1000000'],
360
+ * })
361
+ * await ctx.signAndBroadcast([msg])
362
+ * ```
363
+ */
364
+ function createScriptMsg(options) {
365
+ const jsonArgs = (options.args ?? []).map((arg) => {
366
+ if (arg instanceof Uint8Array) return JSON.stringify(Array.from(arg));
367
+ return jsonStringifyArg(arg);
368
+ });
369
+ return create(MsgScriptJSONSchema, {
370
+ sender: options.sender,
371
+ codeBytes: options.codeBytes,
372
+ typeArgs: options.typeArgs ?? [],
373
+ args: jsonArgs
374
+ });
375
+ }
376
+ /**
377
+ * Creates a MsgScript with BCS-encoded arguments.
378
+ *
379
+ * Use this when you have pre-encoded BCS arguments. For simpler JSON arguments,
380
+ * use createScriptMsg() instead.
381
+ *
382
+ * @param options - Script execution options with BCS-encoded args
383
+ * @returns MsgScript message for signing
384
+ *
385
+ * @example
386
+ * ```typescript
387
+ * const msg = createBcsScriptMsg({
388
+ * sender: 'init1...',
389
+ * codeBytes: compiledScript,
390
+ * typeArgs: ['0x1::native_uinit::Coin'],
391
+ * args: [bcsEncodedAmount], // Pre-encoded BCS bytes
392
+ * })
393
+ * await ctx.signAndBroadcast([msg])
394
+ * ```
395
+ */
396
+ function createBcsScriptMsg(options) {
397
+ return create(MsgScriptSchema, {
398
+ sender: options.sender,
399
+ codeBytes: options.codeBytes,
400
+ typeArgs: options.typeArgs ?? [],
401
+ args: options.args ?? []
402
+ });
403
+ }
404
+ /**
405
+ * Creates a MsgExecuteJSON directly without a contract instance.
406
+ *
407
+ * @param sender - Sender address
408
+ * @param moduleAddress - Module address
409
+ * @param moduleName - Module name
410
+ * @param functionName - Function name
411
+ * @param typeArgs - Type arguments
412
+ * @param args - Function arguments (will be JSON stringified)
413
+ * @returns MsgExecuteJSON message for signing
414
+ *
415
+ * @example
416
+ * ```typescript
417
+ * const msg = createExecuteMsg(
418
+ * sender,
419
+ * '0x1',
420
+ * 'coin',
421
+ * 'transfer',
422
+ * ['0x1::native_uinit::Coin'],
423
+ * [recipient, '1000000']
424
+ * )
425
+ * ```
426
+ */
427
+ function createExecuteMsg(sender, moduleAddress, moduleName, functionName, typeArgs = [], args = []) {
428
+ return create(MsgExecuteJSONSchema, {
429
+ sender,
430
+ moduleAddress,
431
+ moduleName,
432
+ functionName,
433
+ typeArgs,
434
+ args: args.map(jsonStringifyArg)
435
+ });
436
+ }
437
+ /**
438
+ * Calls a view function directly without creating a contract instance.
439
+ *
440
+ * @param context - ChainContext with client (must have move service)
441
+ * @param moduleAddress - Module address
442
+ * @param moduleName - Module name
443
+ * @param functionName - Function name
444
+ * @param typeArgs - Type arguments
445
+ * @param args - Function arguments (will be JSON stringified)
446
+ * @returns View function result
447
+ *
448
+ * @example
449
+ * ```typescript
450
+ * const balance = await callViewFunction(
451
+ * ctx,
452
+ * '0x1',
453
+ * 'coin',
454
+ * 'balance',
455
+ * ['0x1::native_uinit::Coin'],
456
+ * [address]
457
+ * )
458
+ * ```
459
+ */
460
+ async function callViewFunction(context, moduleAddress, moduleName, functionName, typeArgs = [], args = []) {
461
+ const moveClient = context.client.move;
462
+ const jsonArgs = args.map(jsonStringifyArg);
463
+ const response = await moveClient.viewJSON({
464
+ address: moduleAddress,
465
+ moduleName,
466
+ functionName,
467
+ typeArgs,
468
+ args: jsonArgs
469
+ });
470
+ try {
471
+ return JSON.parse(response.data);
472
+ } catch {
473
+ return response.data;
474
+ }
475
+ }
476
+ /**
477
+ * Parse a full Move function identifier into components.
478
+ * @example parseMoveFunction('0x1::coin::transfer')
479
+ * // → { moduleAddress: '0x1', moduleName: 'coin', functionName: 'transfer' }
480
+ */
481
+ function parseMoveFunction(fn) {
482
+ const parts = fn.split("::");
483
+ if (parts.length !== 3) throw new ContractError("move", 0, `Invalid Move function identifier: "${fn}". Expected format: "address::module::function"`);
484
+ return {
485
+ moduleAddress: parts[0],
486
+ moduleName: parts[1],
487
+ functionName: parts[2]
488
+ };
489
+ }
490
+ /**
491
+ * Build a Move execute message using a combined function identifier.
492
+ *
493
+ * Without paramTypes: creates MsgExecuteJSON (chain handles type resolution).
494
+ * With paramTypes: attempts BCS encoding (MsgExecute), falls back to JSON with bech32 conversion.
495
+ *
496
+ * @example
497
+ * ```typescript
498
+ * // Simple (JSON path)
499
+ * const msg = buildMoveExecute(sender, {
500
+ * function: '0x1::coin::transfer',
501
+ * typeArgs: ['0x1::native_uinit::Coin'],
502
+ * args: ['0xrecipient', '1000000'],
503
+ * })
504
+ *
505
+ * // With BCS + bech32
506
+ * const msg = buildMoveExecute(sender, {
507
+ * function: '0x1::coin::transfer',
508
+ * typeArgs: ['0x1::native_uinit::Coin'],
509
+ * args: ['init1qwer...', 1000000n],
510
+ * paramTypes: ['address', 'u64'],
511
+ * })
512
+ * ```
513
+ */
514
+ function buildMoveExecute(sender, options) {
515
+ const { moduleAddress, moduleName, functionName } = parseMoveFunction(options.function);
516
+ const typeArgs = options.typeArgs ?? [];
517
+ const args = options.args ?? [];
518
+ if (options.paramTypes) {
519
+ const resolvedParams = resolveGenericTypes(options.paramTypes, typeArgs);
520
+ if (!hasUnresolvedGenerics(resolvedParams) && allTypesResolvable(resolvedParams)) return new Message$1(MsgExecuteSchema, {
521
+ sender,
522
+ moduleAddress,
523
+ moduleName,
524
+ functionName,
525
+ typeArgs,
526
+ args: encodeMoveArgs(args, resolvedParams)
527
+ });
528
+ return new Message$1(MsgExecuteJSONSchema, {
529
+ sender,
530
+ moduleAddress,
531
+ moduleName,
532
+ functionName,
533
+ typeArgs,
534
+ args: args.map((arg, i) => convertArgToJson(arg, resolvedParams[i]))
535
+ });
536
+ }
537
+ return new Message$1(MsgExecuteJSONSchema, {
538
+ sender,
539
+ moduleAddress,
540
+ moduleName,
541
+ functionName,
542
+ typeArgs,
543
+ args: args.map(jsonStringifyArg)
544
+ });
545
+ }
546
+ /**
547
+ * Call a Move view function using a combined function identifier.
548
+ *
549
+ * Without returns: returns raw JSON.parse result.
550
+ * With returns: converts response to typed values (u64→bigint, etc.).
551
+ * With paramTypes: applies bech32→hex conversion on args.
552
+ *
553
+ * @example
554
+ * ```typescript
555
+ * // Typed response
556
+ * const balance = await buildMoveView(ctx, {
557
+ * function: '0x1::coin::balance',
558
+ * typeArgs: ['0x1::native_uinit::Coin'],
559
+ * args: ['0xaddress'],
560
+ * returns: ['u64'],
561
+ * })
562
+ * // balance: bigint
563
+ *
564
+ * // With bech32 args + typed response
565
+ * const balance = await buildMoveView(ctx, {
566
+ * function: '0x1::coin::balance',
567
+ * typeArgs: ['0x1::native_uinit::Coin'],
568
+ * args: ['init1qwer...'],
569
+ * paramTypes: ['address'],
570
+ * returns: ['u64'],
571
+ * })
572
+ * ```
573
+ */
574
+ async function buildMoveView(context, options) {
575
+ const { moduleAddress, moduleName, functionName } = parseMoveFunction(options.function);
576
+ const typeArgs = options.typeArgs ?? [];
577
+ const args = options.args ?? [];
578
+ let jsonArgs;
579
+ if (options.paramTypes) {
580
+ const resolvedParams = resolveGenericTypes(options.paramTypes, typeArgs);
581
+ jsonArgs = args.map((arg, i) => convertArgToJson(arg, resolvedParams[i]));
582
+ } else jsonArgs = args.map(jsonStringifyArg);
583
+ const response = await context.client.move.viewJSON({
584
+ address: moduleAddress,
585
+ moduleName,
586
+ functionName,
587
+ typeArgs,
588
+ args: jsonArgs
589
+ });
590
+ try {
591
+ const parsed = JSON.parse(response.data);
592
+ if (options.returns && options.returns.length > 0) {
593
+ const resolvedReturns = resolveGenericTypes(options.returns, typeArgs);
594
+ if (!hasUnresolvedGenerics(resolvedReturns) && allTypesResolvable(resolvedReturns)) return convertViewResponse(parsed, resolvedReturns);
595
+ }
596
+ return parsed;
597
+ } catch {
598
+ return response.data;
599
+ }
600
+ }
601
+ /**
602
+ * Queries a Move resource directly.
603
+ *
604
+ * @param context - ChainContext with client (must have move service)
605
+ * @param address - Account address
606
+ * @param structTag - Resource struct tag (e.g., '0x1::coin::CoinStore<0x1::native_uinit::Coin>')
607
+ * @returns Parsed resource data
608
+ *
609
+ * @example
610
+ * ```typescript
611
+ * const resource = await queryResource(ctx, '0x1', '0x1::coin::CoinInfo<...>')
612
+ * ```
613
+ */
614
+ async function queryResource(context, address, structTag) {
615
+ const response = await context.client.move.resource({
616
+ address,
617
+ structTag
618
+ });
619
+ if (!response.resource) throw new ContractError("move", 0, `Resource not found: ${structTag}`);
620
+ try {
621
+ return JSON.parse(response.resource.moveResource);
622
+ } catch {
623
+ return response.resource.moveResource;
624
+ }
625
+ }
626
+ /**
627
+ * Queries a Move table entry directly.
628
+ *
629
+ * @param context - ChainContext with client (must have move service)
630
+ * @param tableHandle - Table handle address
631
+ * @param key - Key value
632
+ * @param keyType - Key type for BCS encoding
633
+ * @returns Parsed table entry value
634
+ *
635
+ * @example
636
+ * ```typescript
637
+ * const entry = await queryTableEntry(ctx, tableHandle, key, 'address')
638
+ * ```
639
+ */
640
+ async function queryTableEntry(context, tableHandle, key, keyType) {
641
+ const moveClient = context.client.move;
642
+ const keyBytes = encodeMoveArgs([key], [keyType])[0];
643
+ const response = await moveClient.tableEntry({
644
+ address: tableHandle,
645
+ keyBytes
646
+ });
647
+ if (!response.tableEntry) throw new ContractError("move", 0, `Table entry not found`);
648
+ try {
649
+ return JSON.parse(response.tableEntry.value);
650
+ } catch {
651
+ return response.tableEntry.value;
652
+ }
653
+ }
654
+ //#endregion
655
+ export { createExecuteMsg as a, createScriptMsg as c, createBcsScriptMsg as i, queryResource as l, buildMoveView as n, createMoveContract as o, callViewFunction as r, createPublishMsg as s, buildMoveExecute as t, queryTableEntry as u };
656
+
657
+ //# sourceMappingURL=contract-Dpvu4wLO.mjs.map