@initia/initia.js 1.0.20 → 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 +232 -154
- 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 -44
- 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 -10
- 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 -12
- package/dist/client/rest/api/OphostAPI.d.ts +0 -33
- 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 -40
- package/dist/core/Coins.d.ts +0 -43
- 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 -41
- 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 -6
- 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 -39
- package/dist/core/evm/index.d.ts +0 -3
- package/dist/core/evm/msgs/MsgCall.d.ts +0 -42
- 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/index.d.ts +0 -10
- package/dist/core/gov/Deposit.d.ts +0 -29
- package/dist/core/gov/GovParams.d.ts +0 -82
- 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/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/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 -26
- 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/OpValidator.d.ts +0 -32
- package/dist/core/opchild/OpchildParams.d.ts +0 -45
- package/dist/core/opchild/index.d.ts +0 -4
- 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/MsgAddValidator.d.ts +0 -39
- 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/MsgRemoveBridgeExecutor.d.ts +0 -32
- package/dist/core/opchild/msgs/MsgRemoveFeeWhitelistAddresses.d.ts +0 -32
- package/dist/core/opchild/msgs/MsgRemoveValidator.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/index.d.ts +0 -36
- 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 -45
- 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 -6
- 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/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/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 -32
- 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/MsgUpdateRewardParams.d.ts +0 -33
- package/dist/core/reward/msgs/index.d.ts +0 -8
- 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 -29
- 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/MsgUpdateWasmParams.d.ts +0 -33
- package/dist/core/wasm/msgs/index.d.ts +0 -40
- 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 -100795
- 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,544 @@
|
|
|
1
|
+
import { Ca as Message, L as evmAbi, _r as EvmRpcClientOptions, ao as MsgCallSchema, br as TransactionReceipt, ea as TokenInfo, ft as createErc20Token, gr as EvmRpcClient, hr as EvmLog, io as MsgCall, ko as EvmTxSigner, mr as EvmBlock, v as HasEvmService, vr as EvmTransaction, xr as createEvmRpcClient, yr as GetLogsFilter } from "./types-DGrP9Ro_.mjs";
|
|
2
|
+
import { Client } from "@connectrpc/connect";
|
|
3
|
+
import { ContractConstructorArgs, ContractEventName, ContractFunctionArgs, ContractFunctionName, ContractFunctionReturnType, DecodeEventLogReturnType, decodeAbiParameters, decodeErrorResult, decodeEventLog, decodeFunctionResult, encodeAbiParameters, encodeErrorResult, encodeEventTopics, encodeFunctionData, encodeFunctionResult, parseEventLogs } from "viem";
|
|
4
|
+
import { Abi, Abi as Abi$1, AbiError, AbiEvent, AbiFunction, AbiParameter } from "abitype";
|
|
5
|
+
|
|
6
|
+
//#region src/contracts/evm/types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* EVM contract configuration.
|
|
9
|
+
*/
|
|
10
|
+
interface EvmContractConfig<TAbi extends Abi$1 = Abi$1> {
|
|
11
|
+
/** Contract address (0x-prefixed hex or bech32) */
|
|
12
|
+
address: string;
|
|
13
|
+
/** Contract ABI */
|
|
14
|
+
abi: TAbi;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Options for write and estimateGas function calls.
|
|
18
|
+
*/
|
|
19
|
+
interface WriteOptions {
|
|
20
|
+
/** Native token value to send with the call (for payable functions). In smallest unit. */
|
|
21
|
+
value?: string | bigint;
|
|
22
|
+
}
|
|
23
|
+
/** View/pure function names from ABI */
|
|
24
|
+
type ViewFunctionName<TAbi extends Abi$1> = ContractFunctionName<TAbi, 'view' | 'pure'>;
|
|
25
|
+
/** Non-payable/payable function names from ABI */
|
|
26
|
+
type WriteFunctionName<TAbi extends Abi$1> = ContractFunctionName<TAbi, 'nonpayable' | 'payable'>;
|
|
27
|
+
/**
|
|
28
|
+
* Read functions proxy type.
|
|
29
|
+
*
|
|
30
|
+
* Maps view/pure function names to callable async functions.
|
|
31
|
+
* Return types are inferred from the ABI.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```typescript
|
|
35
|
+
* const balance = await contract.read.balanceOf(address) // bigint
|
|
36
|
+
* const symbol = await contract.read.symbol() // string
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
type ReadFunctions<TAbi extends Abi$1> = { [K in ViewFunctionName<TAbi>]: (...args: ContractFunctionArgs<TAbi, 'view' | 'pure', K> extends readonly unknown[] ? ContractFunctionArgs<TAbi, 'view' | 'pure', K> : never) => Promise<ContractFunctionReturnType<TAbi, 'view' | 'pure', K>> };
|
|
40
|
+
/**
|
|
41
|
+
* Write functions proxy type.
|
|
42
|
+
*
|
|
43
|
+
* Maps state-changing function names to functions that return MsgCall messages.
|
|
44
|
+
* These messages can be signed and broadcast via signAndBroadcast().
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
* // Standard call
|
|
49
|
+
* const msg = contract.write.transfer(sender, to, amount)
|
|
50
|
+
*
|
|
51
|
+
* // Payable call with value
|
|
52
|
+
* const msg = contract.write.deposit(sender, { value: '1000000' })
|
|
53
|
+
* await ctx.signAndBroadcast([msg])
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
type WriteFunctions<TAbi extends Abi$1> = { [K in WriteFunctionName<TAbi>]: (sender: string, ...args: ContractFunctionArgs<TAbi, 'nonpayable' | 'payable', K> extends readonly unknown[] ? [...ContractFunctionArgs<TAbi, 'nonpayable' | 'payable', K>] | [...ContractFunctionArgs<TAbi, 'nonpayable' | 'payable', K>, WriteOptions] : never) => Message<typeof MsgCallSchema> };
|
|
57
|
+
/**
|
|
58
|
+
* Gas estimation proxy type.
|
|
59
|
+
*
|
|
60
|
+
* Maps state-changing function names to async gas estimation functions.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```typescript
|
|
64
|
+
* const gas = await contract.estimateGas.transfer(sender, to, amount)
|
|
65
|
+
* const gas = await contract.estimateGas.deposit(sender, { value: '1000000' })
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
type EstimateGasFunctions<TAbi extends Abi$1> = { [K in WriteFunctionName<TAbi>]: (sender: string, ...args: ContractFunctionArgs<TAbi, 'nonpayable' | 'payable', K> extends readonly unknown[] ? [...ContractFunctionArgs<TAbi, 'nonpayable' | 'payable', K>] | [...ContractFunctionArgs<TAbi, 'nonpayable' | 'payable', K>, WriteOptions] : never) => Promise<bigint> };
|
|
69
|
+
/**
|
|
70
|
+
* EVM contract instance.
|
|
71
|
+
*
|
|
72
|
+
* Provides type-safe access to contract functions via proxies:
|
|
73
|
+
* - `read`: View/pure functions (gRPC Query.Call)
|
|
74
|
+
* - `write`: State-changing functions (returns MsgCall)
|
|
75
|
+
* - `estimateGas`: Gas estimation for write functions
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```typescript
|
|
79
|
+
* import { createEvmContract } from 'initia.js'
|
|
80
|
+
*
|
|
81
|
+
* const erc20 = createEvmContract(ctx, address, abi)
|
|
82
|
+
*
|
|
83
|
+
* // Read
|
|
84
|
+
* const balance = await erc20.read.balanceOf(owner)
|
|
85
|
+
*
|
|
86
|
+
* // Write (sender as first arg, consistent with Move/Wasm)
|
|
87
|
+
* const msg = erc20.write.transfer(sender, to, amount)
|
|
88
|
+
* await ctx.signAndBroadcast([msg])
|
|
89
|
+
*
|
|
90
|
+
* // Gas estimation
|
|
91
|
+
* const gas = await erc20.estimateGas.transfer(sender, to, amount)
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
interface EvmContract<TAbi extends Abi$1 = Abi$1> {
|
|
95
|
+
/** Contract address */
|
|
96
|
+
readonly address: string;
|
|
97
|
+
/** Contract ABI */
|
|
98
|
+
readonly abi: TAbi;
|
|
99
|
+
/** Read-only functions (view/pure) - calls via gRPC Query.Call */
|
|
100
|
+
readonly read: ReadFunctions<TAbi>;
|
|
101
|
+
/** State-changing functions - creates MsgCall messages */
|
|
102
|
+
readonly write: WriteFunctions<TAbi>;
|
|
103
|
+
/** Gas estimation for write functions */
|
|
104
|
+
readonly estimateGas: EstimateGasFunctions<TAbi>;
|
|
105
|
+
/**
|
|
106
|
+
* Parse human-readable amount to smallest unit.
|
|
107
|
+
* Requires decimals() function in ABI.
|
|
108
|
+
*
|
|
109
|
+
* @param value - Human-readable amount (e.g., "1.5")
|
|
110
|
+
* @returns Amount in smallest unit as bigint
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```typescript
|
|
114
|
+
* const amount = await usdc.parseUnits("1.5") // 1500000n (6 decimals)
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
parseUnits(value: string): Promise<bigint>;
|
|
118
|
+
/**
|
|
119
|
+
* Format smallest unit to human-readable amount.
|
|
120
|
+
* Requires decimals() function in ABI.
|
|
121
|
+
*
|
|
122
|
+
* @param value - Amount in smallest unit
|
|
123
|
+
* @returns Human-readable amount as string
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```typescript
|
|
127
|
+
* const display = await usdc.formatUnits(1500000n) // "1.5"
|
|
128
|
+
* ```
|
|
129
|
+
*/
|
|
130
|
+
formatUnits(value: bigint): Promise<string>;
|
|
131
|
+
/**
|
|
132
|
+
* Get ERC20 token metadata.
|
|
133
|
+
* Fetches name, symbol, decimals, totalSupply in parallel.
|
|
134
|
+
*
|
|
135
|
+
* @returns Token info object
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```typescript
|
|
139
|
+
* const info = await usdc.getTokenInfo()
|
|
140
|
+
* // { name: "USD Coin", symbol: "USDC", decimals: 6, totalSupply: 1000000000000n }
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
getTokenInfo(): Promise<TokenInfo>;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Options for deploying an EVM contract.
|
|
147
|
+
*/
|
|
148
|
+
interface DeployEvmContractOptions<TAbi extends Abi$1 = Abi$1> {
|
|
149
|
+
/** Contract ABI */
|
|
150
|
+
abi: TAbi;
|
|
151
|
+
/** Contract bytecode (hex string, with or without 0x prefix) */
|
|
152
|
+
bytecode: string;
|
|
153
|
+
/** Constructor arguments (type inferred from ABI constructor inputs) */
|
|
154
|
+
args?: ContractConstructorArgs<TAbi>;
|
|
155
|
+
/** Value to send with deployment (in smallest unit) */
|
|
156
|
+
value?: bigint;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Result of contract deployment.
|
|
160
|
+
*/
|
|
161
|
+
interface DeployEvmContractResult {
|
|
162
|
+
/** Transaction hash */
|
|
163
|
+
txHash: string;
|
|
164
|
+
/** Deployed contract address (0x-prefixed) */
|
|
165
|
+
contractAddress: string;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Options for creating an EVM contract with JSON-RPC transport.
|
|
169
|
+
*/
|
|
170
|
+
interface EvmContractJsonRpcOptions {
|
|
171
|
+
transport: 'jsonrpc';
|
|
172
|
+
/** Private key for write and estimateGas operations (0x-prefixed hex).
|
|
173
|
+
* If omitted, extracted from context.signer at runtime. */
|
|
174
|
+
privateKey?: `0x${string}`;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Write functions proxy for JSON-RPC transport.
|
|
178
|
+
*
|
|
179
|
+
* Unlike gRPC write, there is no `sender` first argument
|
|
180
|
+
* (derived from privateKey) and the return type is `Promise<string>` (tx hash).
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* ```typescript
|
|
184
|
+
* const txHash = await contract.write.transfer(to, amount)
|
|
185
|
+
* const txHash = await contract.write.deposit({ value: '1000000' })
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
type JsonRpcWriteFunctions<TAbi extends Abi$1> = { [K in WriteFunctionName<TAbi>]: (...args: ContractFunctionArgs<TAbi, 'nonpayable' | 'payable', K> extends readonly unknown[] ? [...ContractFunctionArgs<TAbi, 'nonpayable' | 'payable', K>] | [...ContractFunctionArgs<TAbi, 'nonpayable' | 'payable', K>, WriteOptions] : never) => Promise<string> };
|
|
189
|
+
/**
|
|
190
|
+
* Gas estimation proxy for JSON-RPC transport.
|
|
191
|
+
*
|
|
192
|
+
* Unlike gRPC estimateGas, there is no `sender` first argument
|
|
193
|
+
* (derived from privateKey, or zero address if not available).
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```typescript
|
|
197
|
+
* const gas = await contract.estimateGas.transfer(to, amount)
|
|
198
|
+
* ```
|
|
199
|
+
*/
|
|
200
|
+
type JsonRpcEstimateGasFunctions<TAbi extends Abi$1> = { [K in WriteFunctionName<TAbi>]: (...args: ContractFunctionArgs<TAbi, 'nonpayable' | 'payable', K> extends readonly unknown[] ? [...ContractFunctionArgs<TAbi, 'nonpayable' | 'payable', K>] | [...ContractFunctionArgs<TAbi, 'nonpayable' | 'payable', K>, WriteOptions] : never) => Promise<bigint> };
|
|
201
|
+
/**
|
|
202
|
+
* EVM contract instance using JSON-RPC transport.
|
|
203
|
+
*
|
|
204
|
+
* Differences from gRPC `EvmContract`:
|
|
205
|
+
* - `write`: no `sender` arg, returns `Promise<string>` (tx hash)
|
|
206
|
+
* - `estimateGas`: no `sender` arg
|
|
207
|
+
* - `read`: identical API
|
|
208
|
+
* - Revert errors include raw data in `ContractError.data`
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* ```typescript
|
|
212
|
+
* const erc20 = createEvmContract(ctx, address, abi, { transport: 'jsonrpc' })
|
|
213
|
+
*
|
|
214
|
+
* // Read (same as gRPC)
|
|
215
|
+
* const balance = await erc20.read.balanceOf(owner)
|
|
216
|
+
*
|
|
217
|
+
* // Write (no sender, returns tx hash)
|
|
218
|
+
* const txHash = await erc20.write.transfer(to, amount)
|
|
219
|
+
*
|
|
220
|
+
* // Estimate gas (no sender)
|
|
221
|
+
* const gas = await erc20.estimateGas.transfer(to, amount)
|
|
222
|
+
* ```
|
|
223
|
+
*/
|
|
224
|
+
interface EvmContractJsonRpc<TAbi extends Abi$1 = Abi$1> {
|
|
225
|
+
/** Contract address */
|
|
226
|
+
readonly address: string;
|
|
227
|
+
/** Contract ABI */
|
|
228
|
+
readonly abi: TAbi;
|
|
229
|
+
/** Read-only functions (view/pure) - calls via JSON-RPC eth_call */
|
|
230
|
+
readonly read: ReadFunctions<TAbi>;
|
|
231
|
+
/** State-changing functions - sends EVM transaction via JSON-RPC, returns tx hash */
|
|
232
|
+
readonly write: JsonRpcWriteFunctions<TAbi>;
|
|
233
|
+
/** Gas estimation for write functions via JSON-RPC eth_estimateGas */
|
|
234
|
+
readonly estimateGas: JsonRpcEstimateGasFunctions<TAbi>;
|
|
235
|
+
/** Parse human-readable amount to smallest unit (same as gRPC) */
|
|
236
|
+
parseUnits(value: string): Promise<bigint>;
|
|
237
|
+
/** Format smallest unit to human-readable amount (same as gRPC) */
|
|
238
|
+
formatUnits(value: bigint): Promise<string>;
|
|
239
|
+
/** Get ERC20 token metadata (same as gRPC) */
|
|
240
|
+
getTokenInfo(): Promise<TokenInfo>;
|
|
241
|
+
}
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region src/contracts/evm/contract.d.ts
|
|
244
|
+
/**
|
|
245
|
+
* Creates a type-safe EVM contract instance.
|
|
246
|
+
*
|
|
247
|
+
* @param context - ChainContext with client (must have evm service)
|
|
248
|
+
* @param address - Contract address (0x hex or bech32)
|
|
249
|
+
* @param abi - Contract ABI
|
|
250
|
+
* @param options - Transport options (omit or `{ transport: 'jsonrpc' }`)
|
|
251
|
+
* @returns Type-safe contract instance
|
|
252
|
+
*
|
|
253
|
+
* @example
|
|
254
|
+
* ```typescript
|
|
255
|
+
* import { createEvmContract } from 'initia.js'
|
|
256
|
+
*
|
|
257
|
+
* // gRPC (default)
|
|
258
|
+
* const erc20 = createEvmContract(ctx, address, erc20Abi)
|
|
259
|
+
* const msg = erc20.write.transfer(sender, to, amount)
|
|
260
|
+
* await ctx.signAndBroadcast([msg])
|
|
261
|
+
*
|
|
262
|
+
* // JSON-RPC
|
|
263
|
+
* const erc20 = createEvmContract(ctx, address, erc20Abi, { transport: 'jsonrpc' })
|
|
264
|
+
* const txHash = await erc20.write.transfer(to, amount)
|
|
265
|
+
* ```
|
|
266
|
+
*/
|
|
267
|
+
declare function createEvmContract<const TAbi extends Abi$1>(context: HasEvmService & {
|
|
268
|
+
evmTransport: 'jsonrpc';
|
|
269
|
+
}, address: string, abi: TAbi): EvmContractJsonRpc<TAbi>;
|
|
270
|
+
declare function createEvmContract<const TAbi extends Abi$1>(context: HasEvmService, address: string, abi: TAbi, options: EvmContractJsonRpcOptions): EvmContractJsonRpc<TAbi>;
|
|
271
|
+
declare function createEvmContract<const TAbi extends Abi$1>(context: HasEvmService, address: string, abi: TAbi): EvmContract<TAbi>;
|
|
272
|
+
/**
|
|
273
|
+
* Deploys an EVM contract.
|
|
274
|
+
*
|
|
275
|
+
* Note: This creates a MsgCreate message. Use with signAndBroadcast().
|
|
276
|
+
*
|
|
277
|
+
* @param sender - Deployer address
|
|
278
|
+
* @param options - Deployment options (abi, bytecode, args, value)
|
|
279
|
+
* @returns MsgCreate message for signing
|
|
280
|
+
*
|
|
281
|
+
* @example
|
|
282
|
+
* ```typescript
|
|
283
|
+
* const deployMsg = createDeployEvmContractMsg(ctx.address, {
|
|
284
|
+
* abi: myContractAbi,
|
|
285
|
+
* bytecode: '0x6080...',
|
|
286
|
+
* args: [arg1, arg2],
|
|
287
|
+
* })
|
|
288
|
+
*
|
|
289
|
+
* const result = await ctx.signAndBroadcast([deployMsg])
|
|
290
|
+
* ```
|
|
291
|
+
*/
|
|
292
|
+
declare function createDeployEvmContractMsg<const TAbi extends Abi$1>(sender: string, options: DeployEvmContractOptions<TAbi>): MsgCall;
|
|
293
|
+
/**
|
|
294
|
+
* Decodes an EVM revert reason from error data.
|
|
295
|
+
*
|
|
296
|
+
* @param data - Hex encoded error data
|
|
297
|
+
* @param abi - Optional contract ABI for custom error decoding
|
|
298
|
+
* @returns Decoded error reason
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* ```typescript
|
|
302
|
+
* try {
|
|
303
|
+
* await contract.read.transfer(to, amount)
|
|
304
|
+
* } catch (e) {
|
|
305
|
+
* if (e instanceof ContractError && e.data) {
|
|
306
|
+
* const reason = decodeRevertReason(e.data, contract.abi)
|
|
307
|
+
* console.log('Revert reason:', reason)
|
|
308
|
+
* }
|
|
309
|
+
* }
|
|
310
|
+
* ```
|
|
311
|
+
*/
|
|
312
|
+
declare function decodeRevertReason(data: string, abi?: Abi$1): string;
|
|
313
|
+
//#endregion
|
|
314
|
+
//#region src/contracts/evm/abi.d.ts
|
|
315
|
+
/**
|
|
316
|
+
* Encodes an EVM function call from a human-readable signature string.
|
|
317
|
+
* Accepts bech32 addresses in args — automatically converts to hex for address params.
|
|
318
|
+
*
|
|
319
|
+
* @param signature - Human-readable function signature (e.g., "function transfer(address to, uint256 amount)")
|
|
320
|
+
* @param args - Function arguments (bech32 addresses accepted for address params)
|
|
321
|
+
* @returns ABI-encoded calldata with function selector
|
|
322
|
+
*
|
|
323
|
+
* @example
|
|
324
|
+
* ```typescript
|
|
325
|
+
* // With 'function' keyword
|
|
326
|
+
* const calldata = encodeEvmCall(
|
|
327
|
+
* 'function transfer(address to, uint256 amount)',
|
|
328
|
+
* ['init1qwer...', 100n]
|
|
329
|
+
* )
|
|
330
|
+
*
|
|
331
|
+
* // Without 'function' keyword (also accepted)
|
|
332
|
+
* const calldata = encodeEvmCall(
|
|
333
|
+
* 'transfer(address,uint256)',
|
|
334
|
+
* ['init1qwer...', 100n]
|
|
335
|
+
* )
|
|
336
|
+
*
|
|
337
|
+
* const msg = createExecuteMsg(sender, contractAddr, calldata)
|
|
338
|
+
* ```
|
|
339
|
+
*/
|
|
340
|
+
declare function encodeEvmCall(signature: string, args: unknown[]): `0x${string}`;
|
|
341
|
+
/**
|
|
342
|
+
* Encodes ABI parameters from type strings with bech32 address auto-conversion.
|
|
343
|
+
*
|
|
344
|
+
* @param types - Parameter type strings (e.g., ["address", "uint256"])
|
|
345
|
+
* @param values - Parameter values (bech32 addresses accepted for address params)
|
|
346
|
+
* @returns ABI-encoded parameters (no function selector)
|
|
347
|
+
*
|
|
348
|
+
* @example
|
|
349
|
+
* ```typescript
|
|
350
|
+
* const encoded = encodeEvmParameters(
|
|
351
|
+
* ['address', 'uint256'],
|
|
352
|
+
* ['init1qwer...', 100n]
|
|
353
|
+
* )
|
|
354
|
+
* ```
|
|
355
|
+
*/
|
|
356
|
+
declare function encodeEvmParameters(types: string[], values: unknown[]): `0x${string}`;
|
|
357
|
+
//#endregion
|
|
358
|
+
//#region src/contracts/evm/events.d.ts
|
|
359
|
+
/**
|
|
360
|
+
* Decoded EVM event with original log data.
|
|
361
|
+
*
|
|
362
|
+
* When `TAbi` is a narrow `as const` ABI, `eventName` and `args` are
|
|
363
|
+
* inferred from the ABI event definitions. When `TEventName` is provided,
|
|
364
|
+
* the type is narrowed to that specific event.
|
|
365
|
+
*/
|
|
366
|
+
type DecodedEvmLog<TAbi extends Abi$1 = Abi$1, TEventName extends ContractEventName<TAbi> | undefined = undefined> = {
|
|
367
|
+
/** Original log data */log: EvmLog; /** Block number (parsed to bigint) */
|
|
368
|
+
blockNumber: bigint; /** Transaction index */
|
|
369
|
+
transactionIndex: number; /** Log index */
|
|
370
|
+
logIndex: number;
|
|
371
|
+
} & DecodeEventLogReturnType<TAbi, TEventName>;
|
|
372
|
+
/**
|
|
373
|
+
* Options for decoding EVM logs.
|
|
374
|
+
*/
|
|
375
|
+
interface DecodeEvmLogsOptions {
|
|
376
|
+
/**
|
|
377
|
+
* Whether to skip logs that fail to decode.
|
|
378
|
+
* If false, throws an error on decode failure.
|
|
379
|
+
* @default true
|
|
380
|
+
*/
|
|
381
|
+
skipInvalid?: boolean;
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Decode a single EVM log using the provided ABI.
|
|
385
|
+
*
|
|
386
|
+
* @param abi - Contract ABI containing event definitions
|
|
387
|
+
* @param log - EVM log to decode
|
|
388
|
+
* @returns Decoded event data with ABI-inferred eventName and args
|
|
389
|
+
* @throws If log cannot be decoded with the provided ABI
|
|
390
|
+
*
|
|
391
|
+
* @example
|
|
392
|
+
* ```typescript
|
|
393
|
+
* import { decodeEvmLog } from 'initia.js'
|
|
394
|
+
*
|
|
395
|
+
* const log = await rpcClient.getLogs({ address: contractAddress })
|
|
396
|
+
* const decoded = decodeEvmLog(erc20Abi, log[0])
|
|
397
|
+
* if (decoded.eventName === 'Transfer') {
|
|
398
|
+
* console.log(decoded.args.from, decoded.args.to, decoded.args.value)
|
|
399
|
+
* }
|
|
400
|
+
* ```
|
|
401
|
+
*/
|
|
402
|
+
declare function decodeEvmLog<const TAbi extends Abi$1>(abi: TAbi, log: EvmLog): DecodedEvmLog<TAbi>;
|
|
403
|
+
/**
|
|
404
|
+
* Decode multiple EVM logs using the provided ABI.
|
|
405
|
+
*
|
|
406
|
+
* @param abi - Contract ABI containing event definitions
|
|
407
|
+
* @param logs - Array of EVM logs to decode
|
|
408
|
+
* @param options - Decode options
|
|
409
|
+
* @returns Array of decoded events with ABI-inferred types
|
|
410
|
+
*
|
|
411
|
+
* @example
|
|
412
|
+
* ```typescript
|
|
413
|
+
* import { createEvmRpcClient, decodeEvmLogs } from 'initia.js'
|
|
414
|
+
*
|
|
415
|
+
* const rpc = createEvmRpcClient(evmRpcEndpoint)
|
|
416
|
+
* const logs = await rpc.getLogs({
|
|
417
|
+
* address: contractAddress,
|
|
418
|
+
* fromBlock: 1000000,
|
|
419
|
+
* toBlock: 'latest',
|
|
420
|
+
* })
|
|
421
|
+
*
|
|
422
|
+
* const decoded = decodeEvmLogs(erc20Abi, logs)
|
|
423
|
+
* for (const event of decoded) {
|
|
424
|
+
* if (event.eventName === 'Transfer') {
|
|
425
|
+
* console.log(event.args.from, event.args.to, event.args.value)
|
|
426
|
+
* }
|
|
427
|
+
* }
|
|
428
|
+
* ```
|
|
429
|
+
*/
|
|
430
|
+
declare function decodeEvmLogs<const TAbi extends Abi$1>(abi: TAbi, logs: EvmLog[], options?: DecodeEvmLogsOptions): DecodedEvmLog<TAbi>[];
|
|
431
|
+
/**
|
|
432
|
+
* Filter and decode logs by event name.
|
|
433
|
+
*
|
|
434
|
+
* @param abi - Contract ABI containing event definitions
|
|
435
|
+
* @param logs - Array of EVM logs to filter and decode
|
|
436
|
+
* @param eventName - Event name to filter by (narrowed to ABI event names)
|
|
437
|
+
* @returns Array of decoded events narrowed to the specified event type
|
|
438
|
+
*
|
|
439
|
+
* @example
|
|
440
|
+
* ```typescript
|
|
441
|
+
* import { filterEvmLogsByEvent } from 'initia.js'
|
|
442
|
+
*
|
|
443
|
+
* const transfers = filterEvmLogsByEvent(erc20Abi, logs, 'Transfer')
|
|
444
|
+
* for (const transfer of transfers) {
|
|
445
|
+
* // args is typed: { from: `0x${string}`, to: `0x${string}`, value: bigint }
|
|
446
|
+
* console.log(`Transfer from ${transfer.args.from} to ${transfer.args.to}: ${transfer.args.value}`)
|
|
447
|
+
* }
|
|
448
|
+
* ```
|
|
449
|
+
*/
|
|
450
|
+
declare function filterEvmLogsByEvent<const TAbi extends Abi$1, TEventName extends ContractEventName<TAbi>>(abi: TAbi, logs: EvmLog[], eventName: TEventName): DecodedEvmLog<TAbi, TEventName>[];
|
|
451
|
+
/**
|
|
452
|
+
* Get event signature (topic0) for an event by name.
|
|
453
|
+
*
|
|
454
|
+
* @param abi - Contract ABI containing event definitions
|
|
455
|
+
* @param eventName - Event name (narrowed to ABI event names)
|
|
456
|
+
* @returns Event signature hash (topic0) or undefined if not found
|
|
457
|
+
*
|
|
458
|
+
* @example
|
|
459
|
+
* ```typescript
|
|
460
|
+
* import { getEventSignature } from 'initia.js'
|
|
461
|
+
*
|
|
462
|
+
* const topic = getEventSignature(erc20Abi, 'Transfer')
|
|
463
|
+
* // 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
|
|
464
|
+
* ```
|
|
465
|
+
*/
|
|
466
|
+
declare function getEventSignature<const TAbi extends Abi$1>(abi: TAbi, eventName: ContractEventName<TAbi>): `0x${string}` | undefined;
|
|
467
|
+
//#endregion
|
|
468
|
+
//#region src/tx/evm.d.ts
|
|
469
|
+
interface SendEvmTxOptions {
|
|
470
|
+
/** EvmRpcClient instance or RPC URL string (creates a client internally) */
|
|
471
|
+
rpc: EvmRpcClient | string;
|
|
472
|
+
/** EVM tx signer (RawKey, MnemonicKey, or any EvmTxSigner) */
|
|
473
|
+
signer?: EvmTxSigner;
|
|
474
|
+
/** Private key as 0x-prefixed hex (alternative to signer) */
|
|
475
|
+
privateKey?: `0x${string}`;
|
|
476
|
+
/** Target contract/recipient address */
|
|
477
|
+
to: `0x${string}`;
|
|
478
|
+
/** ABI-encoded calldata (0x-prefixed) */
|
|
479
|
+
data: `0x${string}`;
|
|
480
|
+
/** Native token value in wei */
|
|
481
|
+
value?: bigint;
|
|
482
|
+
/** Gas limit override (auto-estimated if omitted) */
|
|
483
|
+
gasLimit?: bigint;
|
|
484
|
+
/** Max fee per gas override (auto-calculated if omitted) */
|
|
485
|
+
maxFeePerGas?: bigint;
|
|
486
|
+
/** Max priority fee per gas override (defaults to gasPrice / 10) */
|
|
487
|
+
maxPriorityFeePerGas?: bigint;
|
|
488
|
+
}
|
|
489
|
+
interface EvmTxResult {
|
|
490
|
+
txHash: string;
|
|
491
|
+
status: 'success' | 'reverted';
|
|
492
|
+
blockNumber: bigint;
|
|
493
|
+
gasUsed: bigint;
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* Send a raw EVM transaction and return the transaction hash.
|
|
497
|
+
*
|
|
498
|
+
* Handles nonce retrieval, gas estimation, EIP-1559 serialization, and signing
|
|
499
|
+
* via the provided EvmTxSigner or raw private key.
|
|
500
|
+
*
|
|
501
|
+
* @example Using signer (preferred)
|
|
502
|
+
* ```typescript
|
|
503
|
+
* const key = new MnemonicKey({ mnemonic: '...' })
|
|
504
|
+
* const txHash = await sendEvmTx({
|
|
505
|
+
* rpc: 'https://1rpc.io/sepolia',
|
|
506
|
+
* signer: key,
|
|
507
|
+
* to: '0x...',
|
|
508
|
+
* data: '0x...',
|
|
509
|
+
* value: 1000000000000000n, // 0.001 ETH
|
|
510
|
+
* })
|
|
511
|
+
* ```
|
|
512
|
+
*
|
|
513
|
+
* @example Using privateKey (legacy)
|
|
514
|
+
* ```typescript
|
|
515
|
+
* const txHash = await sendEvmTx({
|
|
516
|
+
* rpc: 'https://1rpc.io/sepolia',
|
|
517
|
+
* privateKey: key.getPrivateKeyHex(),
|
|
518
|
+
* to: '0x...',
|
|
519
|
+
* data: '0x...',
|
|
520
|
+
* })
|
|
521
|
+
* ```
|
|
522
|
+
*/
|
|
523
|
+
declare function sendEvmTx(options: SendEvmTxOptions): Promise<string>;
|
|
524
|
+
/**
|
|
525
|
+
* Send an EVM transaction and wait for the receipt.
|
|
526
|
+
*
|
|
527
|
+
* Polls `eth_getTransactionReceipt` until the transaction is confirmed
|
|
528
|
+
* or the timeout is reached.
|
|
529
|
+
*
|
|
530
|
+
* @example
|
|
531
|
+
* ```typescript
|
|
532
|
+
* const result = await sendEvmTxAndWait({
|
|
533
|
+
* rpc: 'https://1rpc.io/sepolia',
|
|
534
|
+
* signer: key,
|
|
535
|
+
* to: '0x...',
|
|
536
|
+
* data: '0x...',
|
|
537
|
+
* })
|
|
538
|
+
* console.log(result.status) // 'success' or 'reverted'
|
|
539
|
+
* ```
|
|
540
|
+
*/
|
|
541
|
+
declare function sendEvmTxAndWait(options: SendEvmTxOptions, pollIntervalMs?: number, timeoutMs?: number): Promise<EvmTxResult>;
|
|
542
|
+
//#endregion
|
|
543
|
+
export { type Abi, type AbiError, type AbiEvent, type AbiFunction, type AbiParameter, type DecodeEvmLogsOptions, type DecodedEvmLog, type DeployEvmContractOptions, type DeployEvmContractResult, type EstimateGasFunctions, type EvmBlock, type EvmContract, type EvmContractConfig, type EvmContractJsonRpc, type EvmContractJsonRpcOptions, type EvmLog, EvmRpcClient, type EvmRpcClientOptions, type EvmTransaction, type EvmTxResult, type GetLogsFilter, type JsonRpcEstimateGasFunctions, type JsonRpcWriteFunctions, type ReadFunctions, type SendEvmTxOptions, type TransactionReceipt, type WriteFunctions, type WriteOptions, createDeployEvmContractMsg, createErc20Token, createEvmContract, createEvmRpcClient, decodeAbiParameters, decodeErrorResult, decodeEventLog, decodeEvmLog, decodeEvmLogs, decodeFunctionResult, decodeRevertReason, encodeAbiParameters, encodeErrorResult, encodeEventTopics, encodeEvmCall, encodeEvmParameters, encodeFunctionData, encodeFunctionResult, evmAbi, filterEvmLogsByEvent, getEventSignature, parseEventLogs, sendEvmTx, sendEvmTxAndWait };
|
|
544
|
+
//# sourceMappingURL=entry.evm.d.mts.map
|