@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.
- package/README.md +230 -163
- package/dist/abi-helpers-DdwdqhMQ.mjs +51 -0
- package/dist/abi-helpers-DdwdqhMQ.mjs.map +1 -0
- package/dist/address-DwAkzgJk.mjs +156 -0
- package/dist/address-DwAkzgJk.mjs.map +1 -0
- package/dist/address-profile-DjdaEBxo.d.mts +112 -0
- package/dist/address-profile-DlAFvgdg.mjs +241 -0
- package/dist/address-profile-DlAFvgdg.mjs.map +1 -0
- package/dist/amino-CMQN7Frn.mjs +220 -0
- package/dist/amino-CMQN7Frn.mjs.map +1 -0
- package/dist/amino_pb-Bi6YDY_U.mjs +88 -0
- package/dist/amino_pb-Bi6YDY_U.mjs.map +1 -0
- package/dist/amount-B0J9TTNF.mjs +90 -0
- package/dist/amount-B0J9TTNF.mjs.map +1 -0
- package/dist/any-DElm7qF7.mjs +19 -0
- package/dist/any-DElm7qF7.mjs.map +1 -0
- package/dist/auth_pb-DN4URGLh.mjs +26 -0
- package/dist/auth_pb-DN4URGLh.mjs.map +1 -0
- package/dist/auth_pb-DfXfdvrY.mjs +16 -0
- package/dist/auth_pb-DfXfdvrY.mjs.map +1 -0
- package/dist/base-provider-CLnd7kte.d.mts +68 -0
- package/dist/base-provider-LNp6K7Mt.mjs +96 -0
- package/dist/base-provider-LNp6K7Mt.mjs.map +1 -0
- package/dist/bcs-DiRcL4n9.mjs +533 -0
- package/dist/bcs-DiRcL4n9.mjs.map +1 -0
- package/dist/bridge-DL-q-7P7.mjs +1222 -0
- package/dist/bridge-DL-q-7P7.mjs.map +1 -0
- package/dist/bridge-cQoOjppA.d.mts +606 -0
- package/dist/broadcast-De8MdmYa.mjs +974 -0
- package/dist/broadcast-De8MdmYa.mjs.map +1 -0
- package/dist/chain-utils-C61cU5nd.mjs +139 -0
- package/dist/chain-utils-C61cU5nd.mjs.map +1 -0
- package/dist/codegen/cli.d.mts +1 -0
- package/dist/codegen/cli.mjs +274 -0
- package/dist/codegen/cli.mjs.map +1 -0
- package/dist/coin-DPWbtAFA.mjs +543 -0
- package/dist/coin-DPWbtAFA.mjs.map +1 -0
- package/dist/coin_pb--WuIu4sX.mjs +25 -0
- package/dist/coin_pb--WuIu4sX.mjs.map +1 -0
- package/dist/composite-provider-DbxNrdny.mjs +203 -0
- package/dist/composite-provider-DbxNrdny.mjs.map +1 -0
- package/dist/constants-W6V0E-3W.mjs +42 -0
- package/dist/constants-W6V0E-3W.mjs.map +1 -0
- package/dist/contract-Dpvu4wLO.mjs +657 -0
- package/dist/contract-Dpvu4wLO.mjs.map +1 -0
- package/dist/cosmos-Bqh8qNfP.mjs +540 -0
- package/dist/cosmos-Bqh8qNfP.mjs.map +1 -0
- package/dist/cosmos-registry-provider-DCrEEhJ-.d.mts +123 -0
- package/dist/cw20-BTpdgMXC.mjs +63 -0
- package/dist/cw20-BTpdgMXC.mjs.map +1 -0
- package/dist/decode-CXGawqIZ.mjs +29 -0
- package/dist/decode-CXGawqIZ.mjs.map +1 -0
- package/dist/entry.bridge.browser.d.mts +21 -0
- package/dist/entry.bridge.browser.mjs +25 -0
- package/dist/entry.bridge.browser.mjs.map +1 -0
- package/dist/entry.bridge.node.d.mts +21 -0
- package/dist/entry.bridge.node.mjs +25 -0
- package/dist/entry.bridge.node.mjs.map +1 -0
- package/dist/entry.browser.d.mts +49 -0
- package/dist/entry.browser.mjs +46 -0
- package/dist/entry.browser.mjs.map +1 -0
- package/dist/entry.chain.initia.browser.d.mts +8 -0
- package/dist/entry.chain.initia.browser.mjs +17 -0
- package/dist/entry.chain.initia.browser.mjs.map +1 -0
- package/dist/entry.chain.initia.node.d.mts +8 -0
- package/dist/entry.chain.initia.node.mjs +17 -0
- package/dist/entry.chain.initia.node.mjs.map +1 -0
- package/dist/entry.chain.minievm.browser.d.mts +8 -0
- package/dist/entry.chain.minievm.browser.mjs +17 -0
- package/dist/entry.chain.minievm.browser.mjs.map +1 -0
- package/dist/entry.chain.minievm.node.d.mts +8 -0
- package/dist/entry.chain.minievm.node.mjs +17 -0
- package/dist/entry.chain.minievm.node.mjs.map +1 -0
- package/dist/entry.chain.minimove.browser.d.mts +8 -0
- package/dist/entry.chain.minimove.browser.mjs +17 -0
- package/dist/entry.chain.minimove.browser.mjs.map +1 -0
- package/dist/entry.chain.minimove.node.d.mts +8 -0
- package/dist/entry.chain.minimove.node.mjs +17 -0
- package/dist/entry.chain.minimove.node.mjs.map +1 -0
- package/dist/entry.chain.miniwasm.browser.d.mts +8 -0
- package/dist/entry.chain.miniwasm.browser.mjs +17 -0
- package/dist/entry.chain.miniwasm.browser.mjs.map +1 -0
- package/dist/entry.chain.miniwasm.node.d.mts +8 -0
- package/dist/entry.chain.miniwasm.node.mjs +17 -0
- package/dist/entry.chain.miniwasm.node.mjs.map +1 -0
- package/dist/entry.client.browser-CQsfUmx1.d.mts +1 -0
- package/dist/entry.client.browser.d.mts +3 -0
- package/dist/entry.client.browser.mjs +6 -0
- package/dist/entry.client.node.d.mts +3 -0
- package/dist/entry.client.node.mjs +6 -0
- package/dist/entry.codegen.d.mts +251 -0
- package/dist/entry.codegen.mjs +2 -0
- package/dist/entry.cosmos.d.mts +2 -0
- package/dist/entry.cosmos.mjs +355 -0
- package/dist/entry.cosmos.mjs.map +1 -0
- package/dist/entry.events.d.mts +338 -0
- package/dist/entry.events.mjs +383 -0
- package/dist/entry.events.mjs.map +1 -0
- package/dist/entry.evm.d.mts +544 -0
- package/dist/entry.evm.mjs +761 -0
- package/dist/entry.evm.mjs.map +1 -0
- package/dist/entry.modules.d.mts +2 -0
- package/dist/entry.modules.mjs +7 -0
- package/dist/entry.move.d.mts +523 -0
- package/dist/entry.move.mjs +7 -0
- package/dist/entry.msgs.d.mts +2 -0
- package/dist/entry.msgs.mjs +3 -0
- package/dist/entry.node.d.mts +118 -0
- package/dist/entry.node.mjs +278 -0
- package/dist/entry.node.mjs.map +1 -0
- package/dist/entry.provider.d.mts +355 -0
- package/dist/entry.provider.mjs +416 -0
- package/dist/entry.provider.mjs.map +1 -0
- package/dist/entry.signer.d.mts +2 -0
- package/dist/entry.signer.mjs +674 -0
- package/dist/entry.signer.mjs.map +1 -0
- package/dist/entry.tx.d.mts +2 -0
- package/dist/entry.tx.mjs +6 -0
- package/dist/entry.usernames.d.mts +42 -0
- package/dist/entry.usernames.mjs +2 -0
- package/dist/entry.util.d.mts +103 -0
- package/dist/entry.util.mjs +70 -0
- package/dist/entry.util.mjs.map +1 -0
- package/dist/entry.vip.d.mts +1917 -0
- package/dist/entry.vip.mjs +3793 -0
- package/dist/entry.vip.mjs.map +1 -0
- package/dist/entry.wasm.d.mts +447 -0
- package/dist/entry.wasm.mjs +600 -0
- package/dist/entry.wasm.mjs.map +1 -0
- package/dist/erc20-CDs3j7vt.mjs +168 -0
- package/dist/erc20-CDs3j7vt.mjs.map +1 -0
- package/dist/errors-CN1MFOLv.mjs +253 -0
- package/dist/errors-CN1MFOLv.mjs.map +1 -0
- package/dist/evm-rpc-BxpgXIAF.mjs +338 -0
- package/dist/evm-rpc-BxpgXIAF.mjs.map +1 -0
- package/dist/fetch-Bq_aay6V.mjs +55 -0
- package/dist/fetch-Bq_aay6V.mjs.map +1 -0
- package/dist/fungible-asset-aHBTYpoT.mjs +64 -0
- package/dist/fungible-asset-aHBTYpoT.mjs.map +1 -0
- package/dist/get-tx-0P40z_A4.mjs +99 -0
- package/dist/get-tx-0P40z_A4.mjs.map +1 -0
- package/dist/grpc-client-DGyZjGcT.mjs +254 -0
- package/dist/grpc-client-DGyZjGcT.mjs.map +1 -0
- package/dist/hash-D40mxOlF.mjs +14 -0
- package/dist/hash-D40mxOlF.mjs.map +1 -0
- package/dist/hash-Doo89wm3.d.mts +31 -0
- package/dist/headers-CMO7ia_D.mjs +83 -0
- package/dist/headers-CMO7ia_D.mjs.map +1 -0
- package/dist/http-client-BrdVurTg.mjs +40 -0
- package/dist/http-client-BrdVurTg.mjs.map +1 -0
- package/dist/initia-B8l_x6sT.mjs +426 -0
- package/dist/initia-B8l_x6sT.mjs.map +1 -0
- package/dist/initia-Cj4bZ1dR.mjs +26 -0
- package/dist/initia-Cj4bZ1dR.mjs.map +1 -0
- package/dist/json-CGak0DqP.mjs +41 -0
- package/dist/json-CGak0DqP.mjs.map +1 -0
- package/dist/minievm-BAnGHa00.mjs +39 -0
- package/dist/minievm-BAnGHa00.mjs.map +1 -0
- package/dist/minievm-DZ8AhnD8.mjs +61 -0
- package/dist/minievm-DZ8AhnD8.mjs.map +1 -0
- package/dist/minimove-B8U85g-_.mjs +23 -0
- package/dist/minimove-B8U85g-_.mjs.map +1 -0
- package/dist/minimove-BBXTyhIv.mjs +24 -0
- package/dist/minimove-BBXTyhIv.mjs.map +1 -0
- package/dist/miniwasm-CB0XfStg.mjs +50 -0
- package/dist/miniwasm-CB0XfStg.mjs.map +1 -0
- package/dist/miniwasm-QdyYzmQ1.mjs +139 -0
- package/dist/miniwasm-QdyYzmQ1.mjs.map +1 -0
- package/dist/move-BaCv0oRX.mjs +64 -0
- package/dist/move-BaCv0oRX.mjs.map +1 -0
- package/dist/msg_pb-DxYxctLM.mjs +11 -0
- package/dist/msg_pb-DxYxctLM.mjs.map +1 -0
- package/dist/pagination_pb-DlkDYAcN.mjs +18 -0
- package/dist/pagination_pb-DlkDYAcN.mjs.map +1 -0
- package/dist/public-key-DV-uGaUC.mjs +550 -0
- package/dist/public-key-DV-uGaUC.mjs.map +1 -0
- package/dist/query_pb-cZ3szo3y.mjs +20 -0
- package/dist/query_pb-cZ3szo3y.mjs.map +1 -0
- package/dist/registry-provider-NzblVZQr.mjs +368 -0
- package/dist/registry-provider-NzblVZQr.mjs.map +1 -0
- package/dist/resolve-DdtY7KDz.mjs +50 -0
- package/dist/resolve-DdtY7KDz.mjs.map +1 -0
- package/dist/rolldown-runtime-wcPFST8Q.mjs +13 -0
- package/dist/service-BaMjxPNo.mjs +412 -0
- package/dist/service-BaMjxPNo.mjs.map +1 -0
- package/dist/service-CVFxsMp_.d.mts +151 -0
- package/dist/service_pb-Be-O-2-c.mjs +121 -0
- package/dist/service_pb-Be-O-2-c.mjs.map +1 -0
- package/dist/sign-DqagxLcg.mjs +212 -0
- package/dist/sign-DqagxLcg.mjs.map +1 -0
- package/dist/transport-common-BsPYcFQl.mjs +182 -0
- package/dist/transport-common-BsPYcFQl.mjs.map +1 -0
- package/dist/transport.browser-CCUWv3ta.mjs +31 -0
- package/dist/transport.browser-CCUWv3ta.mjs.map +1 -0
- package/dist/transport.node-DXcJtCnx.mjs +33 -0
- package/dist/transport.node-DXcJtCnx.mjs.map +1 -0
- package/dist/tx_pb-BJzY8SXE.mjs +38 -0
- package/dist/tx_pb-BJzY8SXE.mjs.map +1 -0
- package/dist/tx_pb-BVCXH992.mjs +39 -0
- package/dist/tx_pb-BVCXH992.mjs.map +1 -0
- package/dist/tx_pb-CnFNMLIq.mjs +107 -0
- package/dist/tx_pb-CnFNMLIq.mjs.map +1 -0
- package/dist/tx_pb-DYspoJTt.mjs +50 -0
- package/dist/tx_pb-DYspoJTt.mjs.map +1 -0
- package/dist/tx_pb-u3CoQYge.mjs +79 -0
- package/dist/tx_pb-u3CoQYge.mjs.map +1 -0
- package/dist/typed-context-Cg0If0M9.mjs +118 -0
- package/dist/typed-context-Cg0If0M9.mjs.map +1 -0
- package/dist/types-CLfdsa48.mjs +41 -0
- package/dist/types-CLfdsa48.mjs.map +1 -0
- package/dist/types-CSS5rfW1.mjs +303 -0
- package/dist/types-CSS5rfW1.mjs.map +1 -0
- package/dist/types-DGrP9Ro_.d.mts +39609 -0
- package/dist/types_pb-CrjtO9sB.mjs +21 -0
- package/dist/types_pb-CrjtO9sB.mjs.map +1 -0
- package/dist/types_pb-K7pKBvcg.mjs +1433 -0
- package/dist/types_pb-K7pKBvcg.mjs.map +1 -0
- package/dist/utils-B2carKSi.mjs +2 -0
- package/dist/waiting-BigHYRNN.mjs +1081 -0
- package/dist/waiting-BigHYRNN.mjs.map +1 -0
- package/dist/wasm-DdunGtLM.mjs +396 -0
- package/dist/wasm-DdunGtLM.mjs.map +1 -0
- package/package.json +195 -66
- package/dist/client/WebSocketClient.d.ts +0 -30
- package/dist/client/index.d.ts +0 -5
- package/dist/client/rest/APIRequester.d.ts +0 -27
- package/dist/client/rest/RESTClient.d.ts +0 -48
- package/dist/client/rest/Wallet.d.ts +0 -26
- package/dist/client/rest/api/AuctionAPI.d.ts +0 -6
- package/dist/client/rest/api/AuthAPI.d.ts +0 -8
- package/dist/client/rest/api/AuthzAPI.d.ts +0 -8
- package/dist/client/rest/api/BankAPI.d.ts +0 -10
- package/dist/client/rest/api/BaseAPI.d.ts +0 -5
- package/dist/client/rest/api/DistributionAPI.d.ts +0 -35
- package/dist/client/rest/api/EvidenceAPI.d.ts +0 -7
- package/dist/client/rest/api/EvmAPI.d.ts +0 -45
- package/dist/client/rest/api/FeeGrantAPI.d.ts +0 -22
- package/dist/client/rest/api/ForwardingAPI.d.ts +0 -20
- package/dist/client/rest/api/GovAPI.d.ts +0 -12
- package/dist/client/rest/api/GroupAPI.d.ts +0 -19
- package/dist/client/rest/api/IbcAPI.d.ts +0 -48
- package/dist/client/rest/api/IbcHooksAPI.d.ts +0 -8
- package/dist/client/rest/api/IbcNftAPI.d.ts +0 -11
- package/dist/client/rest/api/IbcPermAPI.d.ts +0 -12
- package/dist/client/rest/api/IbcTransferAPI.d.ts +0 -10
- package/dist/client/rest/api/InterTxAPI.d.ts +0 -6
- package/dist/client/rest/api/MarketmapAPI.d.ts +0 -18
- package/dist/client/rest/api/MoveAPI.d.ts +0 -62
- package/dist/client/rest/api/MstakingAPI.d.ts +0 -28
- package/dist/client/rest/api/OpchildAPI.d.ts +0 -23
- package/dist/client/rest/api/OphostAPI.d.ts +0 -34
- package/dist/client/rest/api/OracleAPI.d.ts +0 -22
- package/dist/client/rest/api/RewardAPI.d.ts +0 -8
- package/dist/client/rest/api/SlashingAPI.d.ts +0 -8
- package/dist/client/rest/api/TendermintAPI.d.ts +0 -16
- package/dist/client/rest/api/TokenfactoryAPI.d.ts +0 -12
- package/dist/client/rest/api/TxAPI.d.ts +0 -190
- package/dist/client/rest/api/UpgradeAPI.d.ts +0 -18
- package/dist/client/rest/api/WasmAPI.d.ts +0 -78
- package/dist/client/rest/api/index.d.ts +0 -30
- package/dist/core/Block.d.ts +0 -55
- package/dist/core/Coin.d.ts +0 -42
- package/dist/core/Coins.d.ts +0 -45
- package/dist/core/Denom.d.ts +0 -1
- package/dist/core/Duration.d.ts +0 -19
- package/dist/core/Msg.d.ts +0 -45
- package/dist/core/PublicKey.d.ts +0 -122
- package/dist/core/auction/AuctionParams.d.ts +0 -41
- package/dist/core/auction/index.d.ts +0 -2
- package/dist/core/auction/msgs/MsgAuctionBid.d.ts +0 -36
- package/dist/core/auction/msgs/MsgUpdateAuctionParams.d.ts +0 -33
- package/dist/core/auction/msgs/index.d.ts +0 -10
- package/dist/core/auth/Account.d.ts +0 -12
- package/dist/core/auth/AuthParams.d.ts +0 -37
- package/dist/core/auth/BaseAccount.d.ts +0 -45
- package/dist/core/auth/ModuleAccount.d.ts +0 -39
- package/dist/core/auth/index.d.ts +0 -5
- package/dist/core/auth/msgs/MsgUpdateAuthParams.d.ts +0 -33
- package/dist/core/auth/msgs/index.d.ts +0 -8
- package/dist/core/authz/authorizations/Authorization.d.ts +0 -42
- package/dist/core/authz/authorizations/CallAuthorization.d.ts +0 -28
- package/dist/core/authz/authorizations/ExecuteAuthorization.d.ts +0 -54
- package/dist/core/authz/authorizations/GenericAuthorization.d.ts +0 -28
- package/dist/core/authz/authorizations/PublishAuthorization.d.ts +0 -28
- package/dist/core/authz/authorizations/SendAuthorization.d.ts +0 -33
- package/dist/core/authz/authorizations/StakeAuthorization.d.ts +0 -60
- package/dist/core/authz/authorizations/index.d.ts +0 -7
- package/dist/core/authz/index.d.ts +0 -2
- package/dist/core/authz/msgs/MsgExecAuthorized.d.ts +0 -33
- package/dist/core/authz/msgs/MsgGrantAuthorization.d.ts +0 -36
- package/dist/core/authz/msgs/MsgRevokeAuthorization.d.ts +0 -35
- package/dist/core/authz/msgs/index.d.ts +0 -12
- package/dist/core/bank/BankParams.d.ts +0 -29
- package/dist/core/bank/DenomMetadata.d.ts +0 -43
- package/dist/core/bank/DenomUnit.d.ts +0 -28
- package/dist/core/bank/SendEnabled.d.ts +0 -25
- package/dist/core/bank/index.d.ts +0 -5
- package/dist/core/bank/msgs/MsgMultiSend.d.ts +0 -78
- package/dist/core/bank/msgs/MsgSend.d.ts +0 -36
- package/dist/core/bank/msgs/MsgSetDenomMetadata.d.ts +0 -33
- package/dist/core/bank/msgs/MsgSetSendEnabled.d.ts +0 -37
- package/dist/core/bank/msgs/MsgUpdateBankParams.d.ts +0 -33
- package/dist/core/bank/msgs/index.d.ts +0 -16
- package/dist/core/bech32.d.ts +0 -27
- package/dist/core/celestia/Blob.d.ts +0 -24
- package/dist/core/celestia/BlobTx.d.ts +0 -25
- package/dist/core/celestia/index.d.ts +0 -3
- package/dist/core/celestia/msgs/MsgPayForBlobs.d.ts +0 -31
- package/dist/core/celestia/msgs/index.d.ts +0 -7
- package/dist/core/consensus/ABCIParams.d.ts +0 -21
- package/dist/core/consensus/BlockParams.d.ts +0 -24
- package/dist/core/consensus/EvidenceParams.d.ts +0 -28
- package/dist/core/consensus/ValidatorParams.d.ts +0 -21
- package/dist/core/consensus/index.d.ts +0 -5
- package/dist/core/consensus/msgs/MsgUpdateConsensusParams.d.ts +0 -45
- package/dist/core/consensus/msgs/index.d.ts +0 -8
- package/dist/core/crisis/index.d.ts +0 -1
- package/dist/core/crisis/msgs/MsgUpdateCrisisParams.d.ts +0 -33
- package/dist/core/crisis/msgs/MsgVerifyInvariant.d.ts +0 -35
- package/dist/core/crisis/msgs/index.d.ts +0 -10
- package/dist/core/distribution/DistributionParams.d.ts +0 -32
- package/dist/core/distribution/RewardWeight.d.ts +0 -25
- package/dist/core/distribution/index.d.ts +0 -3
- package/dist/core/distribution/msgs/MsgCommunityPoolSpend.d.ts +0 -36
- package/dist/core/distribution/msgs/MsgDepositValidatorRewardsPool.d.ts +0 -40
- package/dist/core/distribution/msgs/MsgFundCommunityPool.d.ts +0 -33
- package/dist/core/distribution/msgs/MsgSetWithdrawAddress.d.ts +0 -32
- package/dist/core/distribution/msgs/MsgUpdateDistrParams.d.ts +0 -33
- package/dist/core/distribution/msgs/MsgWithdrawDelegatorReward.d.ts +0 -32
- package/dist/core/distribution/msgs/MsgWithdrawValidatorCommission.d.ts +0 -29
- package/dist/core/distribution/msgs/index.d.ts +0 -20
- package/dist/core/evidence/Equivocation.d.ts +0 -38
- package/dist/core/evidence/Evidence.d.ts +0 -11
- package/dist/core/evidence/index.d.ts +0 -3
- package/dist/core/evidence/msgs/MsgSubmitEvidence.d.ts +0 -33
- package/dist/core/evidence/msgs/index.d.ts +0 -8
- package/dist/core/evm/AccessTuple.d.ts +0 -25
- package/dist/core/evm/EvmParams.d.ts +0 -43
- package/dist/core/evm/GasEnforcement.d.ts +0 -27
- package/dist/core/evm/SetCodeAuthorization.d.ts +0 -30
- package/dist/core/evm/index.d.ts +0 -5
- package/dist/core/evm/msgs/MsgCall.d.ts +0 -46
- package/dist/core/evm/msgs/MsgCreate.d.ts +0 -39
- package/dist/core/evm/msgs/MsgCreate2.d.ts +0 -42
- package/dist/core/evm/msgs/MsgUpdateEvmParams.d.ts +0 -33
- package/dist/core/evm/msgs/index.d.ts +0 -14
- package/dist/core/feegrant/allowances/AllowedMsgAllowance.d.ts +0 -33
- package/dist/core/feegrant/allowances/BasicAllowance.d.ts +0 -32
- package/dist/core/feegrant/allowances/PeriodicAllowance.d.ts +0 -43
- package/dist/core/feegrant/allowances/index.d.ts +0 -16
- package/dist/core/feegrant/index.d.ts +0 -2
- package/dist/core/feegrant/msgs/MsgGrantAllowance.d.ts +0 -36
- package/dist/core/feegrant/msgs/MsgRevokeAllowance.d.ts +0 -32
- package/dist/core/feegrant/msgs/index.d.ts +0 -10
- package/dist/core/forwarding/index.d.ts +0 -1
- package/dist/core/forwarding/msgs/MsgClearForwardingAccount.d.ts +0 -32
- package/dist/core/forwarding/msgs/MsgRegisterForwardingAccount.d.ts +0 -38
- package/dist/core/forwarding/msgs/MsgSetAllowedDenoms.d.ts +0 -32
- package/dist/core/forwarding/msgs/MsgSetMemo.d.ts +0 -44
- package/dist/core/forwarding/msgs/index.d.ts +0 -14
- package/dist/core/gov/Deposit.d.ts +0 -29
- package/dist/core/gov/GovParams.d.ts +0 -85
- package/dist/core/gov/TallyResult.d.ts +0 -36
- package/dist/core/gov/Vesting.d.ts +0 -28
- package/dist/core/gov/Vote.d.ts +0 -55
- package/dist/core/gov/index.d.ts +0 -6
- package/dist/core/gov/msgs/MsgActivateEmergencyProposal.d.ts +0 -32
- package/dist/core/gov/msgs/MsgAddEmergencySubmitters.d.ts +0 -32
- package/dist/core/gov/msgs/MsgCancelProposal.d.ts +0 -32
- package/dist/core/gov/msgs/MsgDeposit.d.ts +0 -36
- package/dist/core/gov/msgs/MsgDepositLegacy.d.ts +0 -36
- package/dist/core/gov/msgs/MsgRemoveEmergencySubmitters.d.ts +0 -32
- package/dist/core/gov/msgs/MsgSubmitProposal.d.ts +0 -49
- package/dist/core/gov/msgs/MsgSubmitProposalLegacy.d.ts +0 -37
- package/dist/core/gov/msgs/MsgUpdateGovParams.d.ts +0 -33
- package/dist/core/gov/msgs/MsgVote.d.ts +0 -41
- package/dist/core/gov/msgs/MsgVoteLegacy.d.ts +0 -38
- package/dist/core/gov/msgs/MsgVoteWeighted.d.ts +0 -39
- package/dist/core/gov/msgs/MsgVoteWeightedLegacy.d.ts +0 -36
- package/dist/core/gov/msgs/index.d.ts +0 -32
- package/dist/core/gov/proposals/Content.d.ts +0 -12
- package/dist/core/gov/proposals/Proposal.d.ts +0 -79
- package/dist/core/gov/proposals/TextProposal.d.ts +0 -31
- package/dist/core/gov/proposals/index.d.ts +0 -3
- package/dist/core/group/GroupInfo.d.ts +0 -37
- package/dist/core/group/GroupMember.d.ts +0 -78
- package/dist/core/group/GroupPolicyInfo.d.ts +0 -41
- package/dist/core/group/GroupProposal.d.ts +0 -82
- package/dist/core/group/GroupVote.d.ts +0 -36
- package/dist/core/group/index.d.ts +0 -7
- package/dist/core/group/msgs/MsgCreateGroup.d.ts +0 -36
- package/dist/core/group/msgs/MsgCreateGroupPolicy.d.ts +0 -39
- package/dist/core/group/msgs/MsgCreateGroupWithPolicy.d.ts +0 -46
- package/dist/core/group/msgs/MsgGroupExec.d.ts +0 -32
- package/dist/core/group/msgs/MsgGroupVote.d.ts +0 -46
- package/dist/core/group/msgs/MsgLeaveGroup.d.ts +0 -32
- package/dist/core/group/msgs/MsgSubmitGroupProposal.d.ts +0 -50
- package/dist/core/group/msgs/MsgUpdateGroupAdmin.d.ts +0 -35
- package/dist/core/group/msgs/MsgUpdateGroupDecisionPolicy.d.ts +0 -36
- package/dist/core/group/msgs/MsgUpdateGroupMembers.d.ts +0 -36
- package/dist/core/group/msgs/MsgUpdateGroupMetadata.d.ts +0 -35
- package/dist/core/group/msgs/MsgUpdateGroupPolicyAdmin.d.ts +0 -35
- package/dist/core/group/msgs/MsgUpdateGroupPolicyMetadata.d.ts +0 -35
- package/dist/core/group/msgs/MsgWithdrawProposal.d.ts +0 -32
- package/dist/core/group/msgs/index.d.ts +0 -32
- package/dist/core/group/policies/DecisionPolicyWindows.d.ts +0 -25
- package/dist/core/group/policies/PercentageDecisionPolicy.d.ts +0 -32
- package/dist/core/group/policies/ThresholdDecisionPolicy.d.ts +0 -32
- package/dist/core/group/policies/index.d.ts +0 -15
- package/dist/core/ibc/applications/fee/IbcFee.d.ts +0 -28
- package/dist/core/ibc/applications/fee/IdentifiedPacketFee.d.ts +0 -26
- package/dist/core/ibc/applications/fee/Metadata.d.ts +0 -24
- package/dist/core/ibc/applications/fee/PacketFee.d.ts +0 -29
- package/dist/core/ibc/applications/fee/index.d.ts +0 -5
- package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFee.d.ts +0 -31
- package/dist/core/ibc/applications/fee/msgs/MsgPayPacketFeeAsync.d.ts +0 -26
- package/dist/core/ibc/applications/fee/msgs/MsgRegisterCounterpartyPayee.d.ts +0 -28
- package/dist/core/ibc/applications/fee/msgs/MsgRegisterPayee.d.ts +0 -28
- package/dist/core/ibc/applications/fee/msgs/index.d.ts +0 -13
- package/dist/core/ibc/applications/index.d.ts +0 -4
- package/dist/core/ibc/applications/interchain-account/Account.d.ts +0 -25
- package/dist/core/ibc/applications/interchain-account/Metadata.d.ts +0 -36
- package/dist/core/ibc/applications/interchain-account/controller/Params.d.ts +0 -21
- package/dist/core/ibc/applications/interchain-account/host/Params.d.ts +0 -24
- package/dist/core/ibc/applications/interchain-account/index.d.ts +0 -4
- package/dist/core/ibc/applications/nft-transfer/IbcNftParams.d.ts +0 -28
- package/dist/core/ibc/applications/nft-transfer/NftClassTrace.d.ts +0 -24
- package/dist/core/ibc/applications/nft-transfer/NonFungibleTokenPacketData.d.ts +0 -45
- package/dist/core/ibc/applications/nft-transfer/index.d.ts +0 -4
- package/dist/core/ibc/applications/nft-transfer/msgs/MsgNftTransfer.d.ts +0 -54
- package/dist/core/ibc/applications/nft-transfer/msgs/MsgUpdateIbcNftParams.d.ts +0 -33
- package/dist/core/ibc/applications/nft-transfer/msgs/index.d.ts +0 -10
- package/dist/core/ibc/applications/perm/index.d.ts +0 -1
- package/dist/core/ibc/applications/perm/msgs/MsgUpdateIbcPermAdmin.d.ts +0 -38
- package/dist/core/ibc/applications/perm/msgs/MsgUpdatePermissionedRelayers.d.ts +0 -38
- package/dist/core/ibc/applications/perm/msgs/index.d.ts +0 -10
- package/dist/core/ibc/applications/transfer/DenomTrace.d.ts +0 -24
- package/dist/core/ibc/applications/transfer/FungibleTokenPacketData.d.ts +0 -33
- package/dist/core/ibc/applications/transfer/IbcTransferParams.d.ts +0 -24
- package/dist/core/ibc/applications/transfer/authorizations/Allocation.d.ts +0 -34
- package/dist/core/ibc/applications/transfer/authorizations/TransferAuthorization.d.ts +0 -23
- package/dist/core/ibc/applications/transfer/authorizations/index.d.ts +0 -2
- package/dist/core/ibc/applications/transfer/index.d.ts +0 -5
- package/dist/core/ibc/applications/transfer/msgs/MsgTransfer.d.ts +0 -52
- package/dist/core/ibc/applications/transfer/msgs/MsgUpdateIbcTransferParams.d.ts +0 -26
- package/dist/core/ibc/applications/transfer/msgs/index.d.ts +0 -10
- package/dist/core/ibc/core/channel/Channel.d.ts +0 -39
- package/dist/core/ibc/core/channel/ChannelCounterparty.d.ts +0 -24
- package/dist/core/ibc/core/channel/ChannelOrder.d.ts +0 -3
- package/dist/core/ibc/core/channel/ChannelState.d.ts +0 -3
- package/dist/core/ibc/core/channel/ErrorReceipt.d.ts +0 -20
- package/dist/core/ibc/core/channel/IbcChannelParams.d.ts +0 -22
- package/dist/core/ibc/core/channel/IdentifiedChannel.d.ts +0 -45
- package/dist/core/ibc/core/channel/Packet.d.ts +0 -43
- package/dist/core/ibc/core/channel/PacketId.d.ts +0 -27
- package/dist/core/ibc/core/channel/Timeout.d.ts +0 -25
- package/dist/core/ibc/core/channel/Upgrade.d.ts +0 -24
- package/dist/core/ibc/core/channel/UpgradeFields.d.ts +0 -23
- package/dist/core/ibc/core/channel/index.d.ts +0 -13
- package/dist/core/ibc/core/channel/msgs/MsgChannelCloseConfirm.d.ts +0 -32
- package/dist/core/ibc/core/channel/msgs/MsgChannelCloseInit.d.ts +0 -27
- package/dist/core/ibc/core/channel/msgs/MsgChannelOpenAck.d.ts +0 -36
- package/dist/core/ibc/core/channel/msgs/MsgChannelOpenConfirm.d.ts +0 -32
- package/dist/core/ibc/core/channel/msgs/MsgChannelOpenInit.d.ts +0 -28
- package/dist/core/ibc/core/channel/msgs/MsgChannelOpenTry.d.ts +0 -36
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeAck.d.ts +0 -37
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeCancel.d.ts +0 -35
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeConfirm.d.ts +0 -40
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeInit.d.ts +0 -30
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeOpen.d.ts +0 -37
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeTimeout.d.ts +0 -35
- package/dist/core/ibc/core/channel/msgs/MsgChannelUpgradeTry.d.ts +0 -41
- package/dist/core/ibc/core/channel/msgs/MsgRecvAcknowledgement.d.ts +0 -32
- package/dist/core/ibc/core/channel/msgs/MsgRecvPacket.d.ts +0 -30
- package/dist/core/ibc/core/channel/msgs/MsgTimeout.d.ts +0 -32
- package/dist/core/ibc/core/channel/msgs/MsgTimeoutClose.d.ts +0 -34
- package/dist/core/ibc/core/channel/msgs/MsgUpdateIbcChannelParams.d.ts +0 -26
- package/dist/core/ibc/core/channel/msgs/index.d.ts +0 -41
- package/dist/core/ibc/core/client/ClientConsensusStates.d.ts +0 -25
- package/dist/core/ibc/core/client/ConsensusStateWithHeight.d.ts +0 -25
- package/dist/core/ibc/core/client/Height.d.ts +0 -24
- package/dist/core/ibc/core/client/IbcClientParams.d.ts +0 -21
- package/dist/core/ibc/core/client/IdentifiedClient.d.ts +0 -24
- package/dist/core/ibc/core/client/index.d.ts +0 -6
- package/dist/core/ibc/core/client/msgs/MsgCreateClient.d.ts +0 -27
- package/dist/core/ibc/core/client/msgs/MsgIBCSoftwareUpgrade.d.ts +0 -28
- package/dist/core/ibc/core/client/msgs/MsgRecoverClient.d.ts +0 -27
- package/dist/core/ibc/core/client/msgs/MsgSubmitMisbehaviour.d.ts +0 -27
- package/dist/core/ibc/core/client/msgs/MsgUpdateClient.d.ts +0 -27
- package/dist/core/ibc/core/client/msgs/MsgUpdateIbcClientParams.d.ts +0 -26
- package/dist/core/ibc/core/client/msgs/MsgUpgradeClient.d.ts +0 -33
- package/dist/core/ibc/core/client/msgs/index.d.ts +0 -19
- package/dist/core/ibc/core/client/msgs/tendermint/crypto.d.ts +0 -43
- package/dist/core/ibc/core/client/msgs/tendermint/types.d.ts +0 -187
- package/dist/core/ibc/core/client/msgs/tendermint/version.d.ts +0 -38
- package/dist/core/ibc/core/commitment/MerklePrefix.d.ts +0 -21
- package/dist/core/ibc/core/commitment/MerkleRoot.d.ts +0 -21
- package/dist/core/ibc/core/commitment/index.d.ts +0 -2
- package/dist/core/ibc/core/connection/ConnectionCounterparty.d.ts +0 -28
- package/dist/core/ibc/core/connection/ConnectionState.d.ts +0 -3
- package/dist/core/ibc/core/connection/IbcConnectionParams.d.ts +0 -21
- package/dist/core/ibc/core/connection/IbcVersion.d.ts +0 -24
- package/dist/core/ibc/core/connection/IdentifiedConnection.d.ts +0 -39
- package/dist/core/ibc/core/connection/index.d.ts +0 -5
- package/dist/core/ibc/core/connection/msgs/MsgConnectionOpenAck.d.ts +0 -42
- package/dist/core/ibc/core/connection/msgs/MsgConnectionOpenConfirm.d.ts +0 -30
- package/dist/core/ibc/core/connection/msgs/MsgConnectionOpenInit.d.ts +0 -33
- package/dist/core/ibc/core/connection/msgs/MsgConnectionOpenTry.d.ts +0 -46
- package/dist/core/ibc/core/connection/msgs/MsgUpdateIbcConnectionParams.d.ts +0 -26
- package/dist/core/ibc/core/connection/msgs/index.d.ts +0 -15
- package/dist/core/ibc/core/index.d.ts +0 -4
- package/dist/core/ibc/index.d.ts +0 -2
- package/dist/core/ibc/lightclient/index.d.ts +0 -1
- package/dist/core/ibc/lightclient/tendermint/Header.d.ts +0 -29
- package/dist/core/ibchooks/ACL.d.ts +0 -25
- package/dist/core/ibchooks/IbcHooksParams.d.ts +0 -25
- package/dist/core/ibchooks/index.d.ts +0 -3
- package/dist/core/ibchooks/msgs/MsgUpdateACL.d.ts +0 -35
- package/dist/core/ibchooks/msgs/MsgUpdateIbcHooksParams.d.ts +0 -33
- package/dist/core/ibchooks/msgs/index.d.ts +0 -10
- package/dist/core/index.d.ts +0 -40
- package/dist/core/intertx/index.d.ts +0 -1
- package/dist/core/intertx/msgs/MsgRegisterAccount.d.ts +0 -39
- package/dist/core/intertx/msgs/MsgSubmitTx.d.ts +0 -36
- package/dist/core/intertx/msgs/index.d.ts +0 -10
- package/dist/core/marketmap/Market.d.ts +0 -26
- package/dist/core/marketmap/MarketmapParams.d.ts +0 -25
- package/dist/core/marketmap/ProviderConfig.d.ts +0 -34
- package/dist/core/marketmap/Ticker.d.ts +0 -34
- package/dist/core/marketmap/index.d.ts +0 -5
- package/dist/core/marketmap/msgs/MsgCreateMarkets.d.ts +0 -33
- package/dist/core/marketmap/msgs/MsgRemoveMarketAuthorities.d.ts +0 -32
- package/dist/core/marketmap/msgs/MsgRemoveMarkets.d.ts +0 -32
- package/dist/core/marketmap/msgs/MsgUpdateMarketmapParams.d.ts +0 -33
- package/dist/core/marketmap/msgs/MsgUpdateMarkets.d.ts +0 -33
- package/dist/core/marketmap/msgs/MsgUpsertMarkets.d.ts +0 -33
- package/dist/core/marketmap/msgs/index.d.ts +0 -18
- package/dist/core/move/Module.d.ts +0 -36
- package/dist/core/move/MoveParams.d.ts +0 -37
- package/dist/core/move/index.d.ts +0 -3
- package/dist/core/move/msgs/MsgDelist.d.ts +0 -32
- package/dist/core/move/msgs/MsgExecute.d.ts +0 -44
- package/dist/core/move/msgs/MsgExecuteJSON.d.ts +0 -44
- package/dist/core/move/msgs/MsgGovExecute.d.ts +0 -47
- package/dist/core/move/msgs/MsgGovExecuteJSON.d.ts +0 -47
- package/dist/core/move/msgs/MsgGovPublish.d.ts +0 -41
- package/dist/core/move/msgs/MsgGovScript.d.ts +0 -41
- package/dist/core/move/msgs/MsgGovScriptJSON.d.ts +0 -41
- package/dist/core/move/msgs/MsgPublish.d.ts +0 -38
- package/dist/core/move/msgs/MsgScript.d.ts +0 -38
- package/dist/core/move/msgs/MsgScriptJSON.d.ts +0 -38
- package/dist/core/move/msgs/MsgUpdateMoveParams.d.ts +0 -33
- package/dist/core/move/msgs/MsgWhitelist.d.ts +0 -35
- package/dist/core/move/msgs/index.d.ts +0 -32
- package/dist/core/mstaking/Delegation.d.ts +0 -36
- package/dist/core/mstaking/MstakingParams.d.ts +0 -44
- package/dist/core/mstaking/Redelegation.d.ts +0 -71
- package/dist/core/mstaking/UnbondingDelegation.d.ts +0 -57
- package/dist/core/mstaking/Validator.d.ts +0 -137
- package/dist/core/mstaking/index.d.ts +0 -6
- package/dist/core/mstaking/msgs/MsgBeginRedelegate.d.ts +0 -39
- package/dist/core/mstaking/msgs/MsgCancelUnbondingDelegation.d.ts +0 -39
- package/dist/core/mstaking/msgs/MsgCreateValidator.d.ts +0 -44
- package/dist/core/mstaking/msgs/MsgDelegate.d.ts +0 -36
- package/dist/core/mstaking/msgs/MsgEditValidator.d.ts +0 -37
- package/dist/core/mstaking/msgs/MsgUndelegate.d.ts +0 -36
- package/dist/core/mstaking/msgs/MsgUpdateMstakingParams.d.ts +0 -33
- package/dist/core/mstaking/msgs/index.d.ts +0 -20
- package/dist/core/num.d.ts +0 -2
- package/dist/core/opchild/BridgeInfo.d.ts +0 -34
- package/dist/core/opchild/L2MigrationInfo.d.ts +0 -27
- package/dist/core/opchild/OpValidator.d.ts +0 -32
- package/dist/core/opchild/OpchildParams.d.ts +0 -45
- package/dist/core/opchild/index.d.ts +0 -5
- package/dist/core/opchild/msgs/MsgAddAttestor.d.ts +0 -39
- package/dist/core/opchild/msgs/MsgAddBridgeExecutor.d.ts +0 -32
- package/dist/core/opchild/msgs/MsgAddFeeWhitelistAddresses.d.ts +0 -32
- package/dist/core/opchild/msgs/MsgExecuteMessages.d.ts +0 -33
- package/dist/core/opchild/msgs/MsgFinalizeTokenDeposit.d.ts +0 -52
- package/dist/core/opchild/msgs/MsgInitiateTokenWithdrawal.d.ts +0 -36
- package/dist/core/opchild/msgs/MsgMigrateToken.d.ts +0 -33
- package/dist/core/opchild/msgs/MsgRegisterL2MigrationInfo.d.ts +0 -33
- package/dist/core/opchild/msgs/MsgRemoveAttestor.d.ts +0 -32
- package/dist/core/opchild/msgs/MsgRemoveBridgeExecutor.d.ts +0 -32
- package/dist/core/opchild/msgs/MsgRemoveFeeWhitelistAddresses.d.ts +0 -32
- package/dist/core/opchild/msgs/MsgSetBridgeInfo.d.ts +0 -33
- package/dist/core/opchild/msgs/MsgSpendFeePool.d.ts +0 -36
- package/dist/core/opchild/msgs/MsgUpdateMinGasPrices.d.ts +0 -33
- package/dist/core/opchild/msgs/MsgUpdateOpchildAdmin.d.ts +0 -32
- package/dist/core/opchild/msgs/MsgUpdateOpchildParams.d.ts +0 -33
- package/dist/core/opchild/msgs/MsgUpdateOracle.d.ts +0 -35
- package/dist/core/opchild/msgs/MsgUpdateSequencer.d.ts +0 -39
- package/dist/core/opchild/msgs/index.d.ts +0 -42
- package/dist/core/ophost/BatchInfo.d.ts +0 -25
- package/dist/core/ophost/BatchInfoWithOutput.d.ts +0 -26
- package/dist/core/ophost/BridgeConfig.d.ts +0 -51
- package/dist/core/ophost/L1MigrationInfo.d.ts +0 -30
- package/dist/core/ophost/OphostParams.d.ts +0 -26
- package/dist/core/ophost/Output.d.ts +0 -30
- package/dist/core/ophost/index.d.ts +0 -7
- package/dist/core/ophost/msgs/MsgCreateBridge.d.ts +0 -33
- package/dist/core/ophost/msgs/MsgDeleteOutput.d.ts +0 -35
- package/dist/core/ophost/msgs/MsgDisableBridge.d.ts +0 -32
- package/dist/core/ophost/msgs/MsgFinalizeTokenWithdrawal.d.ts +0 -60
- package/dist/core/ophost/msgs/MsgInitiateTokenDeposit.d.ts +0 -42
- package/dist/core/ophost/msgs/MsgProposeOutput.d.ts +0 -41
- package/dist/core/ophost/msgs/MsgRecordBatch.d.ts +0 -35
- package/dist/core/ophost/msgs/MsgRegisterL1MigrationInfo.d.ts +0 -33
- package/dist/core/ophost/msgs/MsgUpdateBatchInfo.d.ts +0 -36
- package/dist/core/ophost/msgs/MsgUpdateChallenger.d.ts +0 -35
- package/dist/core/ophost/msgs/MsgUpdateFinalizationPeriod.d.ts +0 -36
- package/dist/core/ophost/msgs/MsgUpdateMetadata.d.ts +0 -35
- package/dist/core/ophost/msgs/MsgUpdateOphostParams.d.ts +0 -33
- package/dist/core/ophost/msgs/MsgUpdateOracleConfig.d.ts +0 -35
- package/dist/core/ophost/msgs/MsgUpdateProposer.d.ts +0 -35
- package/dist/core/ophost/msgs/index.d.ts +0 -36
- package/dist/core/oracle/CurrencyPair.d.ts +0 -25
- package/dist/core/oracle/QuotePrice.d.ts +0 -27
- package/dist/core/oracle/index.d.ts +0 -3
- package/dist/core/oracle/msgs/MsgAddCurrencyPairs.d.ts +0 -33
- package/dist/core/oracle/msgs/MsgRemoveCurrencyPairs.d.ts +0 -32
- package/dist/core/oracle/msgs/index.d.ts +0 -10
- package/dist/core/params/ParamChange.d.ts +0 -42
- package/dist/core/params/index.d.ts +0 -2
- package/dist/core/params/proposals/ParameterChangeProposal.d.ts +0 -35
- package/dist/core/params/proposals/index.d.ts +0 -1
- package/dist/core/reward/RewardParams.d.ts +0 -38
- package/dist/core/reward/index.d.ts +0 -2
- package/dist/core/reward/msgs/MsgFundCommunityPoolReward.d.ts +0 -33
- package/dist/core/reward/msgs/MsgUpdateRewardParams.d.ts +0 -33
- package/dist/core/reward/msgs/index.d.ts +0 -10
- package/dist/core/slashing/SlashingParams.d.ts +0 -38
- package/dist/core/slashing/ValidatorSigningInfo.d.ts +0 -37
- package/dist/core/slashing/index.d.ts +0 -3
- package/dist/core/slashing/msgs/MsgUnjail.d.ts +0 -29
- package/dist/core/slashing/msgs/MsgUpdateSlashingParams.d.ts +0 -33
- package/dist/core/slashing/msgs/index.d.ts +0 -10
- package/dist/core/tokenfactory/TokenfactoryParams.d.ts +0 -25
- package/dist/core/tokenfactory/index.d.ts +0 -2
- package/dist/core/tokenfactory/msgs/MsgBurn.d.ts +0 -33
- package/dist/core/tokenfactory/msgs/MsgChangeAdmin.d.ts +0 -35
- package/dist/core/tokenfactory/msgs/MsgCreateDenom.d.ts +0 -32
- package/dist/core/tokenfactory/msgs/MsgMint.d.ts +0 -36
- package/dist/core/tokenfactory/msgs/MsgSetBeforeSendHook.d.ts +0 -35
- package/dist/core/tokenfactory/msgs/MsgSetDenomMetadataWasm.d.ts +0 -33
- package/dist/core/tokenfactory/msgs/MsgUpdateTokenfactoryParams.d.ts +0 -33
- package/dist/core/tokenfactory/msgs/index.d.ts +0 -20
- package/dist/core/tx/CompactBitArray.d.ts +0 -22
- package/dist/core/tx/Fee.d.ts +0 -31
- package/dist/core/tx/MultiSignature.d.ts +0 -13
- package/dist/core/tx/SignDoc.d.ts +0 -36
- package/dist/core/tx/SignMode.d.ts +0 -3
- package/dist/core/tx/SignatureV2.d.ts +0 -66
- package/dist/core/tx/Tx.d.ts +0 -146
- package/dist/core/tx/TxInfo.d.ts +0 -74
- package/dist/core/tx/index.d.ts +0 -7
- package/dist/core/upgrade/Plan.d.ts +0 -27
- package/dist/core/upgrade/index.d.ts +0 -2
- package/dist/core/upgrade/msgs/MsgCancelUpgrade.d.ts +0 -29
- package/dist/core/upgrade/msgs/MsgSoftwareUpgrade.d.ts +0 -33
- package/dist/core/upgrade/msgs/index.d.ts +0 -10
- package/dist/core/wasm/AbsoluteTxPosition.d.ts +0 -24
- package/dist/core/wasm/AccessConfig.d.ts +0 -27
- package/dist/core/wasm/WasmParams.d.ts +0 -32
- package/dist/core/wasm/authorizations/AcceptedMessageKeysFilter.d.ts +0 -28
- package/dist/core/wasm/authorizations/AcceptedMessagesFilter.d.ts +0 -28
- package/dist/core/wasm/authorizations/AllowAllMessagesFilter.d.ts +0 -24
- package/dist/core/wasm/authorizations/CodeGrant.d.ts +0 -25
- package/dist/core/wasm/authorizations/CombinedLimit.d.ts +0 -32
- package/dist/core/wasm/authorizations/ContractExecutionAuthorization.d.ts +0 -29
- package/dist/core/wasm/authorizations/ContractFilter.d.ts +0 -13
- package/dist/core/wasm/authorizations/ContractGrant.d.ts +0 -30
- package/dist/core/wasm/authorizations/ContractLimit.d.ts +0 -13
- package/dist/core/wasm/authorizations/ContractMigrationAuthorization.d.ts +0 -29
- package/dist/core/wasm/authorizations/MaxCallsLimit.d.ts +0 -28
- package/dist/core/wasm/authorizations/MaxFundsLimit.d.ts +0 -29
- package/dist/core/wasm/authorizations/StoreCodeAuthorization.d.ts +0 -29
- package/dist/core/wasm/authorizations/index.d.ts +0 -11
- package/dist/core/wasm/index.d.ts +0 -5
- package/dist/core/wasm/msgs/MsgAddCodeUploadParamsAddresses.d.ts +0 -32
- package/dist/core/wasm/msgs/MsgClearAdmin.d.ts +0 -32
- package/dist/core/wasm/msgs/MsgExecuteContract.d.ts +0 -39
- package/dist/core/wasm/msgs/MsgInstantiateContract.d.ts +0 -45
- package/dist/core/wasm/msgs/MsgInstantiateContractV2.d.ts +0 -51
- package/dist/core/wasm/msgs/MsgMigrateContract.d.ts +0 -38
- package/dist/core/wasm/msgs/MsgPinCodes.d.ts +0 -32
- package/dist/core/wasm/msgs/MsgRemoveCodeUploadParamsAddresses.d.ts +0 -32
- package/dist/core/wasm/msgs/MsgStoreAndInstantiateContract.d.ts +0 -61
- package/dist/core/wasm/msgs/MsgStoreAndMigrateContract.d.ts +0 -42
- package/dist/core/wasm/msgs/MsgStoreCode.d.ts +0 -36
- package/dist/core/wasm/msgs/MsgSudoContract.d.ts +0 -35
- package/dist/core/wasm/msgs/MsgUnpinCodes.d.ts +0 -32
- package/dist/core/wasm/msgs/MsgUpdateAdmin.d.ts +0 -35
- package/dist/core/wasm/msgs/MsgUpdateContractLabel.d.ts +0 -35
- package/dist/core/wasm/msgs/MsgUpdateInstantiateConfig.d.ts +0 -36
- package/dist/core/wasm/msgs/MsgUpdateMaxWasmSize.d.ts +0 -32
- package/dist/core/wasm/msgs/MsgUpdateWasmParams.d.ts +0 -33
- package/dist/core/wasm/msgs/index.d.ts +0 -42
- package/dist/core/wasmextension/AccessConfigExt.d.ts +0 -28
- package/dist/core/wasmextension/index.d.ts +0 -2
- package/dist/core/wasmextension/msgs/MsgStoreCodeAdmin.d.ts +0 -39
- package/dist/core/wasmextension/msgs/index.d.ts +0 -8
- package/dist/index.cjs +0 -6
- package/dist/index.d.ts +0 -4
- package/dist/index.mjs +0 -103590
- package/dist/key/Key.d.ts +0 -20
- package/dist/key/MnemonicKey.d.ts +0 -14
- package/dist/key/RawKey.d.ts +0 -9
- package/dist/key/index.d.ts +0 -3
- package/dist/util/bcs.d.ts +0 -44
- package/dist/util/hash.d.ts +0 -4
- package/dist/util/index.d.ts +0 -3
- 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
|