@injectivelabs/sdk-ts 1.16.12 → 1.16.13-alpha.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/dist/cjs/client/abacus/grpc/AbacusGrpcApi.js +1 -1
- package/dist/cjs/client/abacus/grpc/transformers/index.d.ts +1 -1
- package/dist/cjs/client/base/BaseGrpcConsumer.d.ts +1 -1
- package/dist/cjs/client/base/BaseGrpcConsumer.js +1 -1
- package/dist/cjs/client/base/BaseGrpcWebConsumer.js +1 -1
- package/dist/cjs/client/base/BaseIndexerGrpcConsumer.d.ts +1 -1
- package/dist/cjs/client/base/BaseIndexerGrpcConsumer.js +1 -1
- package/dist/cjs/client/base/BaseIndexerGrpcWebConsumer.js +1 -1
- package/dist/cjs/client/base/GrpcWebImpl.d.ts +1 -1
- package/dist/cjs/client/base/GrpcWebImpl.js +1 -1
- package/dist/cjs/client/base/IndexerGrpcWebImpl.d.ts +1 -1
- package/dist/cjs/client/base/IndexerGrpcWebImpl.js +2 -2
- package/dist/cjs/client/chain/ChainGrpcClient.d.ts +10 -10
- package/dist/cjs/client/chain/ChainGrpcClient.js +10 -10
- package/dist/cjs/client/chain/grpc/ChainGrpcAuctionApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcAuthApi.d.ts +1 -1
- package/dist/cjs/client/chain/grpc/ChainGrpcAuthApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcAuthZApi.d.ts +1 -1
- package/dist/cjs/client/chain/grpc/ChainGrpcAuthZApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcBankApi.d.ts +1 -1
- package/dist/cjs/client/chain/grpc/ChainGrpcBankApi.js +12 -12
- package/dist/cjs/client/chain/grpc/ChainGrpcDistributionApi.d.ts +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcDistributionApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcExchangeApi.js +34 -34
- package/dist/cjs/client/chain/grpc/ChainGrpcGovApi.d.ts +3 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcGovApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcIbcApi.d.ts +1 -1
- package/dist/cjs/client/chain/grpc/ChainGrpcIbcApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcInsuranceFundApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcMintApi.d.ts +1 -1
- package/dist/cjs/client/chain/grpc/ChainGrpcMintApi.js +8 -8
- package/dist/cjs/client/chain/grpc/ChainGrpcOracleApi.d.ts +1 -1
- package/dist/cjs/client/chain/grpc/ChainGrpcOracleApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcPeggyApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcPermissionsApi.js +17 -17
- package/dist/cjs/client/chain/grpc/ChainGrpcStakingApi.d.ts +1 -1
- package/dist/cjs/client/chain/grpc/ChainGrpcStakingApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcTendermintApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcTokenFactoryApi.js +2 -2
- package/dist/cjs/client/chain/grpc/ChainGrpcTxFeesApi.js +6 -6
- package/dist/cjs/client/chain/grpc/ChainGrpcWasmApi.d.ts +1 -1
- package/dist/cjs/client/chain/grpc/ChainGrpcWasmApi.js +3 -3
- package/dist/cjs/client/chain/grpc/ChainGrpcWasmXApi.js +2 -2
- package/dist/cjs/client/chain/rest/ChainRestAuthApi.d.ts +1 -1
- package/dist/cjs/client/chain/rest/ChainRestAuthApi.js +1 -1
- package/dist/cjs/client/chain/rest/ChainRestBankApi.d.ts +1 -1
- package/dist/cjs/client/chain/rest/ChainRestBankApi.js +1 -1
- package/dist/cjs/client/chain/rest/ChainRestTendermintApi.d.ts +1 -1
- package/dist/cjs/client/chain/rest/ChainRestTendermintApi.js +1 -1
- package/dist/cjs/client/chain/rest/ChainRestWasmApi.js +1 -1
- package/dist/cjs/client/chain/transformers/ChainGrpcAuctionTransformer.d.ts +2 -2
- package/dist/cjs/client/chain/transformers/ChainGrpcAuthTransformer.d.ts +2 -2
- package/dist/cjs/client/chain/transformers/ChainGrpcAuthTransformer.js +2 -2
- package/dist/cjs/client/chain/transformers/ChainGrpcAuthZTransformer.d.ts +3 -2
- package/dist/cjs/client/chain/transformers/ChainGrpcAuthZTransformer.js +1 -1
- package/dist/cjs/client/chain/transformers/ChainGrpcBankTransformer.d.ts +4 -4
- package/dist/cjs/client/chain/transformers/ChainGrpcBankTransformer.js +1 -1
- package/dist/cjs/client/chain/transformers/ChainGrpcCommonTransformer.d.ts +2 -2
- package/dist/cjs/client/chain/transformers/ChainGrpcDistributionTransformer.d.ts +4 -4
- package/dist/cjs/client/chain/transformers/ChainGrpcDistributionTransformer.js +4 -4
- package/dist/cjs/client/chain/transformers/ChainGrpcExchangeTransformer.d.ts +5 -3
- package/dist/cjs/client/chain/transformers/ChainGrpcExchangeTransformer.js +2 -4
- package/dist/cjs/client/chain/transformers/ChainGrpcGovTransformer.d.ts +3 -3
- package/dist/cjs/client/chain/transformers/ChainGrpcGovTransformer.js +3 -3
- package/dist/cjs/client/chain/transformers/ChainGrpcInsuranceFundTransformer.d.ts +3 -3
- package/dist/cjs/client/chain/transformers/ChainGrpcMintTransformer.d.ts +2 -2
- package/dist/cjs/client/chain/transformers/ChainGrpcPeggyTransformer.d.ts +2 -2
- package/dist/cjs/client/chain/transformers/ChainGrpcPermissionsTransformer.d.ts +2 -2
- package/dist/cjs/client/chain/transformers/ChainGrpcStakingTransformer.d.ts +4 -4
- package/dist/cjs/client/chain/transformers/ChainGrpcStakingTransformer.js +14 -15
- package/dist/cjs/client/chain/transformers/ChainGrpcTokenFactoryTransformer.d.ts +2 -2
- package/dist/cjs/client/chain/transformers/ChainGrpcTxFeesTransformer.d.ts +2 -2
- package/dist/cjs/client/chain/transformers/ChainGrpcWasmTransformer.d.ts +2 -2
- package/dist/cjs/client/chain/types/auction.d.ts +2 -2
- package/dist/cjs/client/chain/types/auth.d.ts +1 -1
- package/dist/cjs/client/chain/types/authZ.d.ts +1 -1
- package/dist/cjs/client/chain/types/bank.d.ts +2 -2
- package/dist/cjs/client/chain/types/distribution.d.ts +2 -2
- package/dist/cjs/client/chain/types/exchange.d.ts +3 -2
- package/dist/cjs/client/chain/types/gov.d.ts +2 -2
- package/dist/cjs/client/chain/types/index.d.ts +31 -32
- package/dist/cjs/client/chain/types/index.js +0 -13
- package/dist/cjs/client/chain/types/insurance.d.ts +2 -1
- package/dist/cjs/client/chain/types/mint.d.ts +1 -1
- package/dist/cjs/client/chain/types/oracle.d.ts +1 -1
- package/dist/cjs/client/chain/types/peggy.d.ts +1 -1
- package/dist/cjs/client/chain/types/permissions.d.ts +3 -3
- package/dist/cjs/client/chain/types/staking.d.ts +7 -6
- package/dist/cjs/client/chain/types/staking.js +5 -6
- package/dist/cjs/client/chain/types/tokenfactory.d.ts +1 -1
- package/dist/cjs/client/chain/types/txFees.d.ts +1 -1
- package/dist/cjs/client/chain/types/wasm.d.ts +3 -2
- package/dist/cjs/client/gql/index.d.ts +1 -1
- package/dist/cjs/client/gql/index.js +0 -1
- package/dist/cjs/client/indexer/IndexerGrpcClient.d.ts +4 -4
- package/dist/cjs/client/indexer/IndexerGrpcClient.js +4 -4
- package/dist/cjs/client/indexer/IndexerGrpcStreamClient.d.ts +4 -4
- package/dist/cjs/client/indexer/IndexerGrpcStreamClient.js +4 -4
- package/dist/cjs/client/indexer/IndexerRestClient.d.ts +1 -1
- package/dist/cjs/client/indexer/IndexerRestClient.js +1 -1
- package/dist/cjs/client/indexer/grpc/IndexerGrpcAccountApi.d.ts +1 -1
- package/dist/cjs/client/indexer/grpc/IndexerGrpcAccountApi.js +2 -2
- package/dist/cjs/client/indexer/grpc/IndexerGrpcArchiverApi.js +2 -2
- package/dist/cjs/client/indexer/grpc/IndexerGrpcAuctionApi.js +2 -2
- package/dist/cjs/client/indexer/grpc/IndexerGrpcCampaignApi.js +10 -10
- package/dist/cjs/client/indexer/grpc/IndexerGrpcDerivativesApi.d.ts +3 -3
- package/dist/cjs/client/indexer/grpc/IndexerGrpcDerivativesApi.js +2 -2
- package/dist/cjs/client/indexer/grpc/IndexerGrpcExplorerApi.js +2 -2
- package/dist/cjs/client/indexer/grpc/IndexerGrpcInsuranceFundApi.js +6 -6
- package/dist/cjs/client/indexer/grpc/IndexerGrpcMetaApi.js +2 -2
- package/dist/cjs/client/indexer/grpc/IndexerGrpcMitoApi.js +2 -2
- package/dist/cjs/client/indexer/grpc/IndexerGrpcOracleApi.js +2 -2
- package/dist/cjs/client/indexer/grpc/IndexerGrpcPortfolioApi.js +2 -2
- package/dist/cjs/client/indexer/grpc/IndexerGrpcReferralApi.js +7 -7
- package/dist/cjs/client/indexer/grpc/IndexerGrpcSpotApi.d.ts +3 -3
- package/dist/cjs/client/indexer/grpc/IndexerGrpcSpotApi.js +2 -2
- package/dist/cjs/client/indexer/grpc/IndexerGrpcTradingApi.d.ts +1 -1
- package/dist/cjs/client/indexer/grpc/IndexerGrpcTradingApi.js +2 -2
- package/dist/cjs/client/indexer/grpc/IndexerGrpcTransactionApi.d.ts +1 -1
- package/dist/cjs/client/indexer/grpc/IndexerGrpcTransactionApi.js +15 -5
- package/dist/cjs/client/indexer/grpc/IndexerGrpcWeb3GwApi.d.ts +1 -1
- package/dist/cjs/client/indexer/grpc/IndexerGrpcWeb3GwApi.js +3 -3
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcAccountPortfolioStream.d.ts +3 -3
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcAccountPortfolioStream.js +2 -2
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcAccountStream.d.ts +3 -3
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcAccountStream.js +1 -1
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcAuctionStream.d.ts +3 -3
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcAuctionStream.js +1 -1
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcDerivativesStream.d.ts +6 -6
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcDerivativesStream.js +2 -2
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcExplorerStream.d.ts +3 -3
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcExplorerStream.js +1 -1
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcMitoStream.d.ts +3 -3
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcMitoStream.js +1 -1
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcOracleStream.d.ts +3 -3
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcOracleStream.js +2 -2
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcSpotStream.d.ts +6 -6
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcSpotStream.js +2 -2
- package/dist/cjs/client/indexer/grpc_stream/IndexerGrpcTradingStream.d.ts +2 -2
- package/dist/cjs/client/indexer/rest/IndexerRestDerivativesChronosApi.js +1 -1
- package/dist/cjs/client/indexer/rest/IndexerRestExplorerApi.d.ts +4 -4
- package/dist/cjs/client/indexer/rest/IndexerRestExplorerApi.js +35 -35
- package/dist/cjs/client/indexer/rest/IndexerRestLeaderboardChronosApi.js +1 -1
- package/dist/cjs/client/indexer/rest/IndexerRestMarketChronosApi.js +1 -1
- package/dist/cjs/client/indexer/rest/IndexerRestSpotChronosApi.js +1 -1
- package/dist/cjs/client/indexer/transformers/IndexerAccountPortfolioStreamTransformer.d.ts +1 -1
- package/dist/cjs/client/indexer/transformers/IndexerAccountPortfolioTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/transformers/IndexerAccountStreamTransformer.d.ts +2 -3
- package/dist/cjs/client/indexer/transformers/IndexerAccountStreamTransformer.js +1 -1
- package/dist/cjs/client/indexer/transformers/IndexerAuctionStreamTransformer.d.ts +3 -4
- package/dist/cjs/client/indexer/transformers/IndexerCampaignTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/transformers/IndexerCommonTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/transformers/IndexerDerivativeStreamTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/transformers/IndexerExplorerStreamTransformer.d.ts +4 -5
- package/dist/cjs/client/indexer/transformers/IndexerExplorerStreamTransformer.js +1 -1
- package/dist/cjs/client/indexer/transformers/IndexerGrpcAccountTransformer.d.ts +4 -4
- package/dist/cjs/client/indexer/transformers/IndexerGrpcArchiverTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/transformers/IndexerGrpcAuctionTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/transformers/IndexerGrpcDerivativeTransformer.d.ts +3 -3
- package/dist/cjs/client/indexer/transformers/IndexerGrpcDerivativeTransformer.js +1 -1
- package/dist/cjs/client/indexer/transformers/IndexerGrpcExplorerTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/transformers/IndexerGrpcExplorerTransformer.js +5 -5
- package/dist/cjs/client/indexer/transformers/IndexerGrpcInsuranceFundTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/transformers/IndexerGrpcMitoStreamTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/transformers/IndexerGrpcMitoTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/transformers/IndexerGrpcOracleTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/transformers/IndexerGrpcReferralTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/transformers/IndexerGrpcSpotTransformer.d.ts +3 -3
- package/dist/cjs/client/indexer/transformers/IndexerOracleStreamTransformer.d.ts +1 -1
- package/dist/cjs/client/indexer/transformers/IndexerRestExplorerTransformer.d.ts +3 -3
- package/dist/cjs/client/indexer/transformers/IndexerSpotStreamTransformer.d.ts +2 -2
- package/dist/cjs/client/indexer/types/account-portfolio.d.ts +3 -3
- package/dist/cjs/client/indexer/types/account.d.ts +9 -8
- package/dist/cjs/client/indexer/types/account.js +6 -7
- package/dist/cjs/client/indexer/types/archiver.d.ts +1 -1
- package/dist/cjs/client/indexer/types/auction.d.ts +2 -2
- package/dist/cjs/client/indexer/types/campaign.d.ts +2 -2
- package/dist/cjs/client/indexer/types/derivatives.d.ts +4 -4
- package/dist/cjs/client/indexer/types/exchange.d.ts +2 -2
- package/dist/cjs/client/indexer/types/explorer-rest.d.ts +2 -2
- package/dist/cjs/client/indexer/types/explorer.d.ts +26 -23
- package/dist/cjs/client/indexer/types/explorer.js +19 -22
- package/dist/cjs/client/indexer/types/incentives.d.ts +1 -1
- package/dist/cjs/client/indexer/types/index.d.ts +38 -39
- package/dist/cjs/client/indexer/types/index.js +0 -16
- package/dist/cjs/client/indexer/types/insurance-funds.d.ts +7 -6
- package/dist/cjs/client/indexer/types/insurance-funds.js +4 -5
- package/dist/cjs/client/indexer/types/mito.d.ts +7 -6
- package/dist/cjs/client/indexer/types/mito.js +4 -5
- package/dist/cjs/client/indexer/types/oracle.d.ts +1 -1
- package/dist/cjs/client/indexer/types/referral.d.ts +2 -2
- package/dist/cjs/client/indexer/types/spot.d.ts +6 -6
- package/dist/cjs/client/indexer/types/swap.d.ts +1 -1
- package/dist/cjs/client/indexer/types/trading.d.ts +12 -10
- package/dist/cjs/client/indexer/types/trading.js +10 -11
- package/dist/cjs/client/olp/grpc/OLPGrpcApi.js +2 -2
- package/dist/cjs/client/olp/grpc/index.d.ts +1 -1
- package/dist/cjs/client/olp/grpc/index.js +0 -15
- package/dist/cjs/client/olp/grpc/transformers/index.d.ts +2 -2
- package/dist/cjs/client/olp/grpc/types/index.d.ts +1 -1
- package/dist/cjs/client/wasm/incentives/index.d.ts +1 -1
- package/dist/cjs/client/wasm/incentives/index.js +0 -1
- package/dist/cjs/client/wasm/incentives/queries/QueryAllRounds.js +1 -1
- package/dist/cjs/client/wasm/incentives/queries/QueryGetCampaigns.js +1 -1
- package/dist/cjs/client/wasm/incentives/transformer.d.ts +1 -1
- package/dist/cjs/client/wasm/incentives/types.d.ts +1 -1
- package/dist/cjs/client/wasm/index.d.ts +1 -1
- package/dist/cjs/client/wasm/index.js +0 -1
- package/dist/cjs/client/wasm/nameservice/queries/QueryInjName.js +1 -1
- package/dist/cjs/client/wasm/nameservice/queries/QueryInjectiveAddress.js +1 -1
- package/dist/cjs/client/wasm/nameservice/queries/QueryResolverAddress.js +1 -1
- package/dist/cjs/client/wasm/nameservice/transformer.d.ts +1 -1
- package/dist/cjs/client/wasm/neptune/helper.d.ts +1 -1
- package/dist/cjs/client/wasm/neptune/queries/QueryGetPrices.d.ts +1 -1
- package/dist/cjs/client/wasm/neptune/queries/QueryGetPrices.js +1 -1
- package/dist/cjs/client/wasm/neptune/queries/QueryLendingRates.d.ts +1 -1
- package/dist/cjs/client/wasm/neptune/queries/QueryLendingRates.js +1 -1
- package/dist/cjs/client/wasm/neptune/service.d.ts +3 -2
- package/dist/cjs/client/wasm/neptune/service.js +11 -11
- package/dist/cjs/client/wasm/neptune/transformer.d.ts +2 -2
- package/dist/cjs/client/wasm/swap/index.d.ts +1 -1
- package/dist/cjs/client/wasm/swap/index.js +0 -1
- package/dist/cjs/client/wasm/swap/queries/QueryAllRoutes.js +1 -1
- package/dist/cjs/client/wasm/swap/queries/QueryInputQuantity.js +1 -1
- package/dist/cjs/client/wasm/swap/queries/QueryOutputQuantity.js +1 -1
- package/dist/cjs/client/wasm/swap/queries/QueryRoute.js +1 -1
- package/dist/cjs/client/wasm/swap/transformer.d.ts +1 -1
- package/dist/cjs/client/wasm/trading_strategies/queries/QueryTradingStrategyContractAllStrategies.js +1 -1
- package/dist/cjs/client/wasm/trading_strategies/queries/QueryTradingStrategyContractConfig.js +1 -1
- package/dist/cjs/client/wasm/trading_strategies/queries/QueryTradingStrategyContractTotalStrategies.js +1 -1
- package/dist/cjs/client/wasm/trading_strategies/queries/QueryTradingStrategyContractUserStrategies.js +1 -1
- package/dist/cjs/client/wasm/trading_strategies/types.d.ts +1 -1
- package/dist/cjs/core/accounts/AccountParser.d.ts +1 -1
- package/dist/cjs/core/accounts/Address.js +4 -4
- package/dist/cjs/core/accounts/BaseAccount.d.ts +2 -2
- package/dist/cjs/core/accounts/PrivateKey.d.ts +7 -6
- package/dist/cjs/core/accounts/PrivateKey.js +37 -31
- package/dist/cjs/core/accounts/PublicKey.d.ts +1 -1
- package/dist/cjs/core/accounts/PublicKey.js +7 -7
- package/dist/cjs/core/accounts/signers/DirectEthSecp256k1Wallet.d.ts +3 -3
- package/dist/cjs/core/accounts/signers/DirectEthSecp256k1Wallet.js +1 -1
- package/dist/cjs/core/accounts/signers/EthSecp256k1Wallet.d.ts +2 -2
- package/dist/cjs/core/accounts/signers/EthSecp256k1Wallet.js +1 -1
- package/dist/cjs/core/accounts/signers/types/amino-signer.d.ts +1 -1
- package/dist/cjs/core/accounts/signers/types/index.d.ts +2 -2
- package/dist/cjs/core/accounts/signers/types/proto-signer.d.ts +1 -1
- package/dist/cjs/core/modules/MsgBase.d.ts +2 -2
- package/dist/cjs/core/modules/MsgBase.js +1 -1
- package/dist/cjs/core/modules/auction/msgs/MsgBid.d.ts +1 -1
- package/dist/cjs/core/modules/auction/msgs/MsgBid.js +1 -1
- package/dist/cjs/core/modules/authz/msgs/MsgExec.d.ts +1 -1
- package/dist/cjs/core/modules/authz/msgs/MsgExec.js +1 -1
- package/dist/cjs/core/modules/authz/msgs/MsgGrant.d.ts +2 -1
- package/dist/cjs/core/modules/authz/msgs/MsgGrant.js +2 -2
- package/dist/cjs/core/modules/authz/msgs/MsgGrantWithAuthorization.d.ts +2 -2
- package/dist/cjs/core/modules/authz/msgs/MsgGrantWithAuthorization.js +2 -2
- package/dist/cjs/core/modules/authz/msgs/MsgRevoke.d.ts +2 -2
- package/dist/cjs/core/modules/authz/msgs/MsgRevoke.js +1 -1
- package/dist/cjs/core/modules/authz/msgs/authorizations/Base.d.ts +1 -1
- package/dist/cjs/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.d.ts +1 -1
- package/dist/cjs/core/modules/authz/msgs/authorizations/ContractExecutionCompatAuthorization.d.ts +1 -1
- package/dist/cjs/core/modules/authz/msgs/authorizations/GenericAuthorization.d.ts +2 -1
- package/dist/cjs/core/modules/authz/msgs/authorizations/GenericAuthorization.js +1 -1
- package/dist/cjs/core/modules/authz/types.d.ts +5 -4
- package/dist/cjs/core/modules/authz/types.js +4 -5
- package/dist/cjs/core/modules/authz/utils.d.ts +1 -1
- package/dist/cjs/core/modules/authz/utils.js +1 -1
- package/dist/cjs/core/modules/bank/msgs/MsgMultiSend.d.ts +1 -1
- package/dist/cjs/core/modules/bank/msgs/MsgMultiSend.js +1 -1
- package/dist/cjs/core/modules/bank/msgs/MsgSend.d.ts +1 -1
- package/dist/cjs/core/modules/bank/msgs/MsgSend.js +1 -1
- package/dist/cjs/core/modules/distribution/msgs/MsgWithdrawDelegatorReward.d.ts +1 -1
- package/dist/cjs/core/modules/distribution/msgs/MsgWithdrawDelegatorReward.js +1 -1
- package/dist/cjs/core/modules/distribution/msgs/MsgWithdrawValidatorCommission.d.ts +1 -1
- package/dist/cjs/core/modules/distribution/msgs/MsgWithdrawValidatorCommission.js +1 -1
- package/dist/cjs/core/modules/exchange/index.d.ts +5 -5
- package/dist/cjs/core/modules/exchange/index.js +10 -10
- package/dist/cjs/core/modules/exchange/msgs/MsgAdminUpdateBinaryOptionsMarket.d.ts +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgAdminUpdateBinaryOptionsMarket.js +4 -3
- package/dist/cjs/core/modules/exchange/msgs/MsgAuthorizeStakeGrants.js +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.d.ts +2 -2
- package/dist/cjs/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.js +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.d.ts +2 -2
- package/dist/cjs/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.js +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.d.ts +2 -2
- package/dist/cjs/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.js +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgBatchUpdateOrders.d.ts +2 -2
- package/dist/cjs/core/modules/exchange/msgs/MsgBatchUpdateOrders.js +13 -13
- package/dist/cjs/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.d.ts +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.js +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgCancelDerivativeOrder.d.ts +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgCancelDerivativeOrder.js +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgCancelSpotOrder.d.ts +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgCancelSpotOrder.js +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.d.ts +2 -2
- package/dist/cjs/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.js +11 -10
- package/dist/cjs/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.d.ts +2 -2
- package/dist/cjs/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.js +11 -10
- package/dist/cjs/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.d.ts +2 -2
- package/dist/cjs/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.js +11 -10
- package/dist/cjs/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.d.ts +2 -2
- package/dist/cjs/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.js +11 -10
- package/dist/cjs/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.d.ts +2 -2
- package/dist/cjs/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.js +9 -8
- package/dist/cjs/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.d.ts +2 -2
- package/dist/cjs/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.js +9 -8
- package/dist/cjs/core/modules/exchange/msgs/MsgDeposit.js +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgExternalTransfer.js +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgIncreasePositionMargin.js +5 -4
- package/dist/cjs/core/modules/exchange/msgs/MsgInstantBinaryOptionsMarketLaunch.d.ts +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgInstantBinaryOptionsMarketLaunch.js +13 -12
- package/dist/cjs/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.js +7 -6
- package/dist/cjs/core/modules/exchange/msgs/MsgLiquidatePosition.d.ts +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgLiquidatePosition.js +10 -9
- package/dist/cjs/core/modules/exchange/msgs/MsgReclaimLockedFunds.js +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgRewardsOptOut.js +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgSetDelegationTransferReceivers.d.ts +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgSetDelegationTransferReceivers.js +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgSignData.js +1 -1
- package/dist/cjs/core/modules/exchange/msgs/MsgWithdraw.js +1 -1
- package/dist/cjs/core/modules/exchange/utils/classes/OrderHashManager.d.ts +3 -3
- package/dist/cjs/core/modules/exchange/utils/classes/OrderHashManager.js +8 -11
- package/dist/cjs/core/modules/feegrant/msgs/MsgGrantAllowance.d.ts +2 -2
- package/dist/cjs/core/modules/feegrant/msgs/MsgGrantAllowance.js +1 -1
- package/dist/cjs/core/modules/feegrant/msgs/MsgRevokeAllowance.d.ts +2 -2
- package/dist/cjs/core/modules/feegrant/msgs/MsgRevokeAllowance.js +1 -1
- package/dist/cjs/core/modules/feegrant/utils/allowance.d.ts +8 -6
- package/dist/cjs/core/modules/feegrant/utils/allowance.js +9 -10
- package/dist/cjs/core/modules/gov/index.d.ts +1 -1
- package/dist/cjs/core/modules/gov/index.js +2 -2
- package/dist/cjs/core/modules/gov/msgs/MsgDeposit.js +1 -1
- package/dist/cjs/core/modules/gov/msgs/MsgSubmitGenericProposal.d.ts +1 -1
- package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalExpiryFuturesMarketLaunch.d.ts +1 -1
- package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalExpiryFuturesMarketLaunch.js +15 -14
- package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunch.d.ts +1 -1
- package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunch.js +15 -14
- package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunchV2.d.ts +1 -1
- package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunchV2.js +18 -17
- package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalSpotMarketLaunch.d.ts +1 -1
- package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalSpotMarketLaunch.js +11 -10
- package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalSpotMarketParamUpdate.d.ts +1 -1
- package/dist/cjs/core/modules/gov/msgs/MsgSubmitProposalSpotMarketParamUpdate.js +13 -12
- package/dist/cjs/core/modules/gov/msgs/MsgSubmitTextProposal.d.ts +1 -1
- package/dist/cjs/core/modules/gov/msgs/MsgVote.js +1 -1
- package/dist/cjs/core/modules/ibc/msgs/MsgTransfer.d.ts +2 -2
- package/dist/cjs/core/modules/ibc/msgs/MsgTransfer.js +1 -1
- package/dist/cjs/core/modules/index.d.ts +1 -1
- package/dist/cjs/core/modules/index.js +0 -1
- package/dist/cjs/core/modules/insurance/msgs/MsgCreateInsuranceFund.d.ts +1 -1
- package/dist/cjs/core/modules/insurance/msgs/MsgCreateInsuranceFund.js +1 -1
- package/dist/cjs/core/modules/insurance/msgs/MsgRequestRedemption.d.ts +1 -1
- package/dist/cjs/core/modules/insurance/msgs/MsgRequestRedemption.js +1 -1
- package/dist/cjs/core/modules/insurance/msgs/MsgUnderwrite.d.ts +1 -1
- package/dist/cjs/core/modules/insurance/msgs/MsgUnderwrite.js +1 -1
- package/dist/cjs/core/modules/msgs.d.ts +63 -63
- package/dist/cjs/core/modules/peggy/msgs/MsgSendToEth.d.ts +1 -1
- package/dist/cjs/core/modules/peggy/msgs/MsgSendToEth.js +2 -2
- package/dist/cjs/core/modules/permissions/msgs/MsgClaimVoucher.d.ts +1 -1
- package/dist/cjs/core/modules/permissions/msgs/MsgClaimVoucher.js +1 -1
- package/dist/cjs/core/modules/permissions/msgs/MsgCreateNamespace.d.ts +1 -1
- package/dist/cjs/core/modules/permissions/msgs/MsgCreateNamespace.js +1 -1
- package/dist/cjs/core/modules/permissions/msgs/MsgUpdateActorRoles.d.ts +1 -1
- package/dist/cjs/core/modules/permissions/msgs/MsgUpdateNamespace.d.ts +1 -1
- package/dist/cjs/core/modules/permissions/msgs/MsgUpdateNamespace.js +1 -1
- package/dist/cjs/core/modules/permissions/msgs/MsgUpdateParams.js +1 -1
- package/dist/cjs/core/modules/staking/index.d.ts +1 -1
- package/dist/cjs/core/modules/staking/index.js +2 -2
- package/dist/cjs/core/modules/staking/msgs/MsgBeginRedelegate.d.ts +1 -1
- package/dist/cjs/core/modules/staking/msgs/MsgBeginRedelegate.js +1 -1
- package/dist/cjs/core/modules/staking/msgs/MsgCancelUnbondingDelegation.d.ts +1 -1
- package/dist/cjs/core/modules/staking/msgs/MsgCancelUnbondingDelegation.js +1 -1
- package/dist/cjs/core/modules/staking/msgs/MsgCreateValidator.d.ts +1 -1
- package/dist/cjs/core/modules/staking/msgs/MsgCreateValidator.js +2 -2
- package/dist/cjs/core/modules/staking/msgs/MsgDelegate.d.ts +1 -1
- package/dist/cjs/core/modules/staking/msgs/MsgDelegate.js +1 -1
- package/dist/cjs/core/modules/staking/msgs/MsgEditValidator.d.ts +2 -2
- package/dist/cjs/core/modules/staking/msgs/MsgEditValidator.js +3 -2
- package/dist/cjs/core/modules/staking/msgs/MsgTransferDelegation.d.ts +1 -1
- package/dist/cjs/core/modules/staking/msgs/MsgTransferDelegation.js +1 -1
- package/dist/cjs/core/modules/staking/msgs/MsgUndelegate.d.ts +1 -1
- package/dist/cjs/core/modules/staking/msgs/MsgUndelegate.js +1 -1
- package/dist/cjs/core/modules/tokenfactory/index.d.ts +1 -1
- package/dist/cjs/core/modules/tokenfactory/index.js +2 -2
- package/dist/cjs/core/modules/tokenfactory/msgs/MsgBurn.d.ts +2 -2
- package/dist/cjs/core/modules/tokenfactory/msgs/MsgBurn.js +2 -1
- package/dist/cjs/core/modules/tokenfactory/msgs/MsgChangeAdmin.d.ts +1 -1
- package/dist/cjs/core/modules/tokenfactory/msgs/MsgChangeAdmin.js +1 -1
- package/dist/cjs/core/modules/tokenfactory/msgs/MsgCreateDenom.d.ts +1 -1
- package/dist/cjs/core/modules/tokenfactory/msgs/MsgCreateDenom.js +1 -1
- package/dist/cjs/core/modules/tokenfactory/msgs/MsgMint.d.ts +1 -1
- package/dist/cjs/core/modules/tokenfactory/msgs/MsgMint.js +1 -1
- package/dist/cjs/core/modules/tokenfactory/msgs/MsgSetDenomMetadata.d.ts +1 -1
- package/dist/cjs/core/modules/tokenfactory/msgs/MsgSetDenomMetadata.js +1 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgCW20AdapterRedeemAndTransfer.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgCW20Send.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgCW20Transfer.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreateCampaign.d.ts +3 -2
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreatePerpGridStrategy.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreatePerpGridStrategy.js +1 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreateRound.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.d.ts +4 -2
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.js +1 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgDepositTokens.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgFundCampaign.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgIncreaseAllowance.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgInitiateTransfer.d.ts +3 -2
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgInitiateTransfer.js +1 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.js +1 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgRemoveGridStrategy.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgSubmitVaa.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgSubmitVaa.js +1 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgSwapExactOutput.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgSwapMinOutput.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args/ExecArgUpdateGridConfig.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-args.d.ts +20 -20
- package/dist/cjs/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultRedeem.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultSubscribe.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultRedeem.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultSubscribe.d.ts +2 -1
- package/dist/cjs/core/modules/wasm/index.d.ts +13 -13
- package/dist/cjs/core/modules/wasm/index.js +24 -25
- package/dist/cjs/core/modules/wasm/msgs/MsgExecuteContract.d.ts +2 -2
- package/dist/cjs/core/modules/wasm/msgs/MsgExecuteContract.js +3 -3
- package/dist/cjs/core/modules/wasm/msgs/MsgExecuteContractCompat.d.ts +2 -2
- package/dist/cjs/core/modules/wasm/msgs/MsgExecuteContractCompat.js +1 -1
- package/dist/cjs/core/modules/wasm/msgs/MsgInstantiateContract.d.ts +1 -1
- package/dist/cjs/core/modules/wasm/msgs/MsgInstantiateContract.js +3 -3
- package/dist/cjs/core/modules/wasm/msgs/MsgMigrateContract.d.ts +1 -1
- package/dist/cjs/core/modules/wasm/msgs/MsgMigrateContract.js +3 -3
- package/dist/cjs/core/modules/wasm/msgs/MsgPrivilegedExecuteContract.d.ts +3 -3
- package/dist/cjs/core/modules/wasm/msgs/MsgPrivilegedExecuteContract.js +1 -1
- package/dist/cjs/core/modules/wasm/msgs/MsgStoreCode.d.ts +1 -1
- package/dist/cjs/core/modules/wasm/msgs/MsgStoreCode.js +4 -4
- package/dist/cjs/core/modules/wasm/msgs/MsgUpdateAdmin.d.ts +1 -1
- package/dist/cjs/core/modules/wasm/msgs/MsgUpdateAdmin.js +1 -1
- package/dist/cjs/core/modules/wasm/types.d.ts +12 -10
- package/dist/cjs/core/modules/wasm/types.js +10 -12
- package/dist/cjs/core/stargate/SigningStargateClient.d.ts +10 -8
- package/dist/cjs/core/stargate/SigningStargateClient.js +26 -26
- package/dist/cjs/core/stargate/StargateClient.d.ts +2 -1
- package/dist/cjs/core/tx/api/TxGrpcApi.d.ts +3 -3
- package/dist/cjs/core/tx/api/TxGrpcApi.js +2 -2
- package/dist/cjs/core/tx/api/TxRestApi.d.ts +3 -3
- package/dist/cjs/core/tx/api/TxRestApi.js +5 -5
- package/dist/cjs/core/tx/api/utils.d.ts +1 -1
- package/dist/cjs/core/tx/arbitrary.js +1 -1
- package/dist/cjs/core/tx/broadcaster/MsgBroadcasterWithPk.d.ts +5 -4
- package/dist/cjs/core/tx/broadcaster/MsgBroadcasterWithPk.js +20 -20
- package/dist/cjs/core/tx/eip712/MsgDecoder.d.ts +2 -2
- package/dist/cjs/core/tx/eip712/MsgDecoder.js +5 -5
- package/dist/cjs/core/tx/eip712/eip712.d.ts +3 -3
- package/dist/cjs/core/tx/eip712/eip712.js +8 -8
- package/dist/cjs/core/tx/eip712/index.d.ts +1 -1
- package/dist/cjs/core/tx/eip712/index.js +0 -1
- package/dist/cjs/core/tx/eip712/maps.d.ts +1 -1
- package/dist/cjs/core/tx/eip712/maps.js +1 -1
- package/dist/cjs/core/tx/eip712/utils.d.ts +2 -2
- package/dist/cjs/core/tx/eip712/utils.js +8 -6
- package/dist/cjs/core/tx/tx.d.ts +3 -3
- package/dist/cjs/core/tx/tx.js +13 -16
- package/dist/cjs/core/tx/types/tx-rest-client.d.ts +13 -11
- package/dist/cjs/core/tx/types/tx-rest-client.js +10 -12
- package/dist/cjs/core/tx/types/tx.d.ts +8 -7
- package/dist/cjs/core/tx/types/tx.js +4 -5
- package/dist/cjs/core/tx/utils/classes/TxClient.js +1 -1
- package/dist/cjs/core/tx/utils/tx.d.ts +8 -7
- package/dist/cjs/core/tx/utils/tx.js +2 -2
- package/dist/cjs/service/TokenFactoryStatic.d.ts +2 -1
- package/dist/cjs/service/TokenStaticFactory.d.ts +2 -1
- package/dist/cjs/types/cosmos.d.ts +12 -11
- package/dist/cjs/types/cosmos.js +7 -8
- package/dist/cjs/types/exchange.d.ts +19 -16
- package/dist/cjs/types/exchange.js +16 -19
- package/dist/cjs/types/index.d.ts +1 -1
- package/dist/cjs/types/index.js +0 -1
- package/dist/cjs/types/token.d.ts +37 -34
- package/dist/cjs/types/token.js +34 -37
- package/dist/cjs/utils/address.js +3 -9
- package/dist/cjs/utils/constants.d.ts +0 -2
- package/dist/cjs/utils/constants.js +1 -4
- package/dist/cjs/utils/crypto.d.ts +11 -7
- package/dist/cjs/utils/crypto.js +34 -8
- package/dist/cjs/utils/helpers.d.ts +2 -2
- package/dist/cjs/utils/helpers.js +1 -1
- package/dist/cjs/utils/msgs.d.ts +1 -1
- package/dist/cjs/utils/numbers.d.ts +36 -10
- package/dist/cjs/utils/numbers.js +52 -42
- package/dist/cjs/utils/pagination.d.ts +3 -3
- package/dist/cjs/utils/transaction.d.ts +2 -1
- package/dist/cjs/utils/transaction.js +12 -9
- package/dist/esm/client/abacus/grpc/AbacusGrpcApi.js +1 -1
- package/dist/esm/client/abacus/grpc/transformers/index.d.ts +1 -1
- package/dist/esm/client/base/BaseGrpcConsumer.d.ts +1 -1
- package/dist/esm/client/base/BaseGrpcConsumer.js +1 -1
- package/dist/esm/client/base/BaseGrpcWebConsumer.js +1 -1
- package/dist/esm/client/base/BaseIndexerGrpcConsumer.d.ts +1 -1
- package/dist/esm/client/base/BaseIndexerGrpcConsumer.js +1 -1
- package/dist/esm/client/base/BaseIndexerGrpcWebConsumer.js +1 -1
- package/dist/esm/client/base/GrpcWebImpl.d.ts +1 -1
- package/dist/esm/client/base/GrpcWebImpl.js +1 -1
- package/dist/esm/client/base/IndexerGrpcWebImpl.d.ts +1 -1
- package/dist/esm/client/base/IndexerGrpcWebImpl.js +2 -2
- package/dist/esm/client/chain/ChainGrpcClient.d.ts +10 -10
- package/dist/esm/client/chain/ChainGrpcClient.js +10 -10
- package/dist/esm/client/chain/grpc/ChainGrpcAuctionApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcAuthApi.d.ts +1 -1
- package/dist/esm/client/chain/grpc/ChainGrpcAuthApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcAuthZApi.d.ts +1 -1
- package/dist/esm/client/chain/grpc/ChainGrpcAuthZApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcBankApi.d.ts +1 -1
- package/dist/esm/client/chain/grpc/ChainGrpcBankApi.js +3 -3
- package/dist/esm/client/chain/grpc/ChainGrpcDistributionApi.d.ts +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcDistributionApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcExchangeApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcGovApi.d.ts +3 -2
- package/dist/esm/client/chain/grpc/ChainGrpcGovApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcIbcApi.d.ts +1 -1
- package/dist/esm/client/chain/grpc/ChainGrpcIbcApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcInsuranceFundApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcMintApi.d.ts +1 -1
- package/dist/esm/client/chain/grpc/ChainGrpcMintApi.js +6 -6
- package/dist/esm/client/chain/grpc/ChainGrpcOracleApi.d.ts +1 -1
- package/dist/esm/client/chain/grpc/ChainGrpcOracleApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcPeggyApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcPermissionsApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcStakingApi.d.ts +1 -1
- package/dist/esm/client/chain/grpc/ChainGrpcStakingApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcTendermintApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcTokenFactoryApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcTxFeesApi.js +2 -2
- package/dist/esm/client/chain/grpc/ChainGrpcWasmApi.d.ts +1 -1
- package/dist/esm/client/chain/grpc/ChainGrpcWasmApi.js +3 -3
- package/dist/esm/client/chain/grpc/ChainGrpcWasmXApi.js +2 -2
- package/dist/esm/client/chain/rest/ChainRestAuthApi.d.ts +1 -1
- package/dist/esm/client/chain/rest/ChainRestAuthApi.js +1 -1
- package/dist/esm/client/chain/rest/ChainRestBankApi.d.ts +1 -1
- package/dist/esm/client/chain/rest/ChainRestBankApi.js +1 -1
- package/dist/esm/client/chain/rest/ChainRestTendermintApi.d.ts +1 -1
- package/dist/esm/client/chain/rest/ChainRestTendermintApi.js +1 -1
- package/dist/esm/client/chain/rest/ChainRestWasmApi.js +1 -1
- package/dist/esm/client/chain/transformers/ChainGrpcAuctionTransformer.d.ts +2 -2
- package/dist/esm/client/chain/transformers/ChainGrpcAuthTransformer.d.ts +2 -2
- package/dist/esm/client/chain/transformers/ChainGrpcAuthTransformer.js +2 -2
- package/dist/esm/client/chain/transformers/ChainGrpcAuthZTransformer.d.ts +3 -2
- package/dist/esm/client/chain/transformers/ChainGrpcAuthZTransformer.js +1 -1
- package/dist/esm/client/chain/transformers/ChainGrpcBankTransformer.d.ts +4 -4
- package/dist/esm/client/chain/transformers/ChainGrpcBankTransformer.js +1 -1
- package/dist/esm/client/chain/transformers/ChainGrpcCommonTransformer.d.ts +2 -2
- package/dist/esm/client/chain/transformers/ChainGrpcDistributionTransformer.d.ts +4 -4
- package/dist/esm/client/chain/transformers/ChainGrpcDistributionTransformer.js +4 -4
- package/dist/esm/client/chain/transformers/ChainGrpcExchangeTransformer.d.ts +5 -3
- package/dist/esm/client/chain/transformers/ChainGrpcExchangeTransformer.js +3 -5
- package/dist/esm/client/chain/transformers/ChainGrpcGovTransformer.d.ts +3 -3
- package/dist/esm/client/chain/transformers/ChainGrpcGovTransformer.js +3 -3
- package/dist/esm/client/chain/transformers/ChainGrpcInsuranceFundTransformer.d.ts +3 -3
- package/dist/esm/client/chain/transformers/ChainGrpcMintTransformer.d.ts +2 -2
- package/dist/esm/client/chain/transformers/ChainGrpcPeggyTransformer.d.ts +2 -2
- package/dist/esm/client/chain/transformers/ChainGrpcPermissionsTransformer.d.ts +2 -2
- package/dist/esm/client/chain/transformers/ChainGrpcStakingTransformer.d.ts +4 -4
- package/dist/esm/client/chain/transformers/ChainGrpcStakingTransformer.js +16 -17
- package/dist/esm/client/chain/transformers/ChainGrpcTokenFactoryTransformer.d.ts +2 -2
- package/dist/esm/client/chain/transformers/ChainGrpcTxFeesTransformer.d.ts +2 -2
- package/dist/esm/client/chain/transformers/ChainGrpcWasmTransformer.d.ts +2 -2
- package/dist/esm/client/chain/types/auction.d.ts +2 -2
- package/dist/esm/client/chain/types/auth.d.ts +1 -1
- package/dist/esm/client/chain/types/authZ.d.ts +1 -1
- package/dist/esm/client/chain/types/bank.d.ts +2 -2
- package/dist/esm/client/chain/types/distribution.d.ts +2 -2
- package/dist/esm/client/chain/types/exchange.d.ts +3 -2
- package/dist/esm/client/chain/types/exchange.js +1 -1
- package/dist/esm/client/chain/types/gov.d.ts +2 -2
- package/dist/esm/client/chain/types/index.d.ts +31 -32
- package/dist/esm/client/chain/types/index.js +0 -13
- package/dist/esm/client/chain/types/insurance.d.ts +2 -1
- package/dist/esm/client/chain/types/mint.d.ts +1 -1
- package/dist/esm/client/chain/types/oracle.d.ts +1 -1
- package/dist/esm/client/chain/types/peggy.d.ts +1 -1
- package/dist/esm/client/chain/types/permissions.d.ts +3 -3
- package/dist/esm/client/chain/types/staking.d.ts +7 -6
- package/dist/esm/client/chain/types/staking.js +5 -6
- package/dist/esm/client/chain/types/tokenfactory.d.ts +1 -1
- package/dist/esm/client/chain/types/txFees.d.ts +1 -1
- package/dist/esm/client/chain/types/wasm.d.ts +3 -2
- package/dist/esm/client/gql/client.js +1 -1
- package/dist/esm/client/gql/index.d.ts +1 -1
- package/dist/esm/client/gql/index.js +0 -1
- package/dist/esm/client/indexer/IndexerGrpcClient.d.ts +4 -4
- package/dist/esm/client/indexer/IndexerGrpcClient.js +4 -4
- package/dist/esm/client/indexer/IndexerGrpcStreamClient.d.ts +4 -4
- package/dist/esm/client/indexer/IndexerGrpcStreamClient.js +4 -4
- package/dist/esm/client/indexer/IndexerRestClient.d.ts +1 -1
- package/dist/esm/client/indexer/IndexerRestClient.js +1 -1
- package/dist/esm/client/indexer/grpc/IndexerGrpcAccountApi.d.ts +1 -1
- package/dist/esm/client/indexer/grpc/IndexerGrpcAccountApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcArchiverApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcAuctionApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcCampaignApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcDerivativesApi.d.ts +3 -3
- package/dist/esm/client/indexer/grpc/IndexerGrpcDerivativesApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcExplorerApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcInsuranceFundApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcMetaApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcMitoApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcOracleApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcPortfolioApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcReferralApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcSpotApi.d.ts +3 -3
- package/dist/esm/client/indexer/grpc/IndexerGrpcSpotApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcTradingApi.d.ts +1 -1
- package/dist/esm/client/indexer/grpc/IndexerGrpcTradingApi.js +2 -2
- package/dist/esm/client/indexer/grpc/IndexerGrpcTransactionApi.d.ts +1 -1
- package/dist/esm/client/indexer/grpc/IndexerGrpcTransactionApi.js +15 -5
- package/dist/esm/client/indexer/grpc/IndexerGrpcWeb3GwApi.d.ts +1 -1
- package/dist/esm/client/indexer/grpc/IndexerGrpcWeb3GwApi.js +3 -3
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcAccountPortfolioStream.d.ts +3 -3
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcAccountPortfolioStream.js +2 -2
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcAccountStream.d.ts +3 -3
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcAccountStream.js +1 -1
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcAuctionStream.d.ts +3 -3
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcAuctionStream.js +1 -1
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcDerivativesStream.d.ts +6 -6
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcDerivativesStream.js +2 -2
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcExplorerStream.d.ts +3 -3
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcExplorerStream.js +1 -1
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcMitoStream.d.ts +3 -3
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcMitoStream.js +1 -1
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcOracleStream.d.ts +3 -3
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcOracleStream.js +2 -2
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcSpotStream.d.ts +6 -6
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcSpotStream.js +2 -2
- package/dist/esm/client/indexer/grpc_stream/IndexerGrpcTradingStream.d.ts +2 -2
- package/dist/esm/client/indexer/rest/IndexerRestDerivativesChronosApi.js +1 -1
- package/dist/esm/client/indexer/rest/IndexerRestExplorerApi.d.ts +4 -4
- package/dist/esm/client/indexer/rest/IndexerRestExplorerApi.js +1 -1
- package/dist/esm/client/indexer/rest/IndexerRestLeaderboardChronosApi.js +1 -1
- package/dist/esm/client/indexer/rest/IndexerRestMarketChronosApi.js +1 -1
- package/dist/esm/client/indexer/rest/IndexerRestSpotChronosApi.js +1 -1
- package/dist/esm/client/indexer/transformers/IndexerAccountPortfolioStreamTransformer.d.ts +1 -1
- package/dist/esm/client/indexer/transformers/IndexerAccountPortfolioTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/transformers/IndexerAccountStreamTransformer.d.ts +2 -3
- package/dist/esm/client/indexer/transformers/IndexerAccountStreamTransformer.js +1 -1
- package/dist/esm/client/indexer/transformers/IndexerAuctionStreamTransformer.d.ts +3 -4
- package/dist/esm/client/indexer/transformers/IndexerCampaignTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/transformers/IndexerCommonTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/transformers/IndexerDerivativeStreamTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/transformers/IndexerExplorerStreamTransformer.d.ts +4 -5
- package/dist/esm/client/indexer/transformers/IndexerExplorerStreamTransformer.js +1 -1
- package/dist/esm/client/indexer/transformers/IndexerGrpcAccountTransformer.d.ts +4 -4
- package/dist/esm/client/indexer/transformers/IndexerGrpcArchiverTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/transformers/IndexerGrpcAuctionTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/transformers/IndexerGrpcDerivativeTransformer.d.ts +3 -3
- package/dist/esm/client/indexer/transformers/IndexerGrpcDerivativeTransformer.js +1 -1
- package/dist/esm/client/indexer/transformers/IndexerGrpcExplorerTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/transformers/IndexerGrpcExplorerTransformer.js +5 -5
- package/dist/esm/client/indexer/transformers/IndexerGrpcInsuranceFundTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/transformers/IndexerGrpcMitoStreamTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/transformers/IndexerGrpcMitoTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/transformers/IndexerGrpcOracleTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/transformers/IndexerGrpcReferralTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/transformers/IndexerGrpcSpotTransformer.d.ts +3 -3
- package/dist/esm/client/indexer/transformers/IndexerOracleStreamTransformer.d.ts +1 -1
- package/dist/esm/client/indexer/transformers/IndexerRestExplorerTransformer.d.ts +3 -3
- package/dist/esm/client/indexer/transformers/IndexerSpotStreamTransformer.d.ts +2 -2
- package/dist/esm/client/indexer/types/account-portfolio.d.ts +3 -3
- package/dist/esm/client/indexer/types/account.d.ts +9 -8
- package/dist/esm/client/indexer/types/account.js +6 -7
- package/dist/esm/client/indexer/types/archiver.d.ts +1 -1
- package/dist/esm/client/indexer/types/auction.d.ts +2 -2
- package/dist/esm/client/indexer/types/campaign.d.ts +2 -2
- package/dist/esm/client/indexer/types/derivatives.d.ts +4 -4
- package/dist/esm/client/indexer/types/exchange.d.ts +2 -2
- package/dist/esm/client/indexer/types/explorer-rest.d.ts +2 -2
- package/dist/esm/client/indexer/types/explorer.d.ts +26 -23
- package/dist/esm/client/indexer/types/explorer.js +19 -22
- package/dist/esm/client/indexer/types/incentives.d.ts +1 -1
- package/dist/esm/client/indexer/types/index.d.ts +38 -39
- package/dist/esm/client/indexer/types/index.js +0 -16
- package/dist/esm/client/indexer/types/insurance-funds.d.ts +7 -6
- package/dist/esm/client/indexer/types/insurance-funds.js +4 -5
- package/dist/esm/client/indexer/types/mito.d.ts +7 -6
- package/dist/esm/client/indexer/types/mito.js +4 -5
- package/dist/esm/client/indexer/types/oracle.d.ts +1 -1
- package/dist/esm/client/indexer/types/referral.d.ts +2 -2
- package/dist/esm/client/indexer/types/spot.d.ts +6 -6
- package/dist/esm/client/indexer/types/swap.d.ts +1 -1
- package/dist/esm/client/indexer/types/trading.d.ts +12 -10
- package/dist/esm/client/indexer/types/trading.js +10 -11
- package/dist/esm/client/olp/grpc/OLPGrpcApi.js +2 -2
- package/dist/esm/client/olp/grpc/index.d.ts +1 -1
- package/dist/esm/client/olp/grpc/index.js +0 -1
- package/dist/esm/client/olp/grpc/transformers/index.d.ts +2 -2
- package/dist/esm/client/olp/grpc/types/index.d.ts +1 -1
- package/dist/esm/client/wasm/incentives/index.d.ts +1 -1
- package/dist/esm/client/wasm/incentives/index.js +0 -1
- package/dist/esm/client/wasm/incentives/queries/QueryAllRounds.js +1 -1
- package/dist/esm/client/wasm/incentives/queries/QueryGetCampaigns.js +1 -1
- package/dist/esm/client/wasm/incentives/transformer.d.ts +1 -1
- package/dist/esm/client/wasm/incentives/types.d.ts +1 -1
- package/dist/esm/client/wasm/index.d.ts +1 -1
- package/dist/esm/client/wasm/index.js +0 -1
- package/dist/esm/client/wasm/nameservice/queries/QueryInjName.js +1 -1
- package/dist/esm/client/wasm/nameservice/queries/QueryInjectiveAddress.js +1 -1
- package/dist/esm/client/wasm/nameservice/queries/QueryResolverAddress.js +1 -1
- package/dist/esm/client/wasm/nameservice/transformer.d.ts +1 -1
- package/dist/esm/client/wasm/neptune/helper.d.ts +1 -1
- package/dist/esm/client/wasm/neptune/queries/QueryGetPrices.d.ts +1 -1
- package/dist/esm/client/wasm/neptune/queries/QueryGetPrices.js +1 -1
- package/dist/esm/client/wasm/neptune/queries/QueryLendingRates.d.ts +1 -1
- package/dist/esm/client/wasm/neptune/queries/QueryLendingRates.js +1 -1
- package/dist/esm/client/wasm/neptune/service.d.ts +3 -2
- package/dist/esm/client/wasm/neptune/service.js +6 -6
- package/dist/esm/client/wasm/neptune/transformer.d.ts +2 -2
- package/dist/esm/client/wasm/swap/index.d.ts +1 -1
- package/dist/esm/client/wasm/swap/index.js +0 -1
- package/dist/esm/client/wasm/swap/queries/QueryAllRoutes.js +1 -1
- package/dist/esm/client/wasm/swap/queries/QueryInputQuantity.js +1 -1
- package/dist/esm/client/wasm/swap/queries/QueryOutputQuantity.js +1 -1
- package/dist/esm/client/wasm/swap/queries/QueryRoute.js +1 -1
- package/dist/esm/client/wasm/swap/transformer.d.ts +1 -1
- package/dist/esm/client/wasm/trading_strategies/queries/QueryTradingStrategyContractAllStrategies.js +1 -1
- package/dist/esm/client/wasm/trading_strategies/queries/QueryTradingStrategyContractConfig.js +1 -1
- package/dist/esm/client/wasm/trading_strategies/queries/QueryTradingStrategyContractTotalStrategies.js +1 -1
- package/dist/esm/client/wasm/trading_strategies/queries/QueryTradingStrategyContractUserStrategies.js +1 -1
- package/dist/esm/client/wasm/trading_strategies/types.d.ts +1 -1
- package/dist/esm/core/accounts/AccountParser.d.ts +1 -1
- package/dist/esm/core/accounts/Address.js +4 -4
- package/dist/esm/core/accounts/BaseAccount.d.ts +2 -2
- package/dist/esm/core/accounts/PrivateKey.d.ts +7 -6
- package/dist/esm/core/accounts/PrivateKey.js +31 -25
- package/dist/esm/core/accounts/PublicKey.d.ts +1 -1
- package/dist/esm/core/accounts/PublicKey.js +6 -6
- package/dist/esm/core/accounts/signers/DirectEthSecp256k1Wallet.d.ts +3 -3
- package/dist/esm/core/accounts/signers/DirectEthSecp256k1Wallet.js +1 -1
- package/dist/esm/core/accounts/signers/EthSecp256k1Wallet.d.ts +2 -2
- package/dist/esm/core/accounts/signers/EthSecp256k1Wallet.js +1 -1
- package/dist/esm/core/accounts/signers/types/amino-signer.d.ts +1 -1
- package/dist/esm/core/accounts/signers/types/index.d.ts +2 -2
- package/dist/esm/core/accounts/signers/types/proto-signer.d.ts +1 -1
- package/dist/esm/core/modules/MsgBase.d.ts +2 -2
- package/dist/esm/core/modules/MsgBase.js +1 -1
- package/dist/esm/core/modules/auction/msgs/MsgBid.d.ts +1 -1
- package/dist/esm/core/modules/auction/msgs/MsgBid.js +1 -1
- package/dist/esm/core/modules/authz/msgs/MsgExec.d.ts +1 -1
- package/dist/esm/core/modules/authz/msgs/MsgExec.js +1 -1
- package/dist/esm/core/modules/authz/msgs/MsgGrant.d.ts +2 -1
- package/dist/esm/core/modules/authz/msgs/MsgGrant.js +2 -2
- package/dist/esm/core/modules/authz/msgs/MsgGrantWithAuthorization.d.ts +2 -2
- package/dist/esm/core/modules/authz/msgs/MsgGrantWithAuthorization.js +2 -2
- package/dist/esm/core/modules/authz/msgs/MsgRevoke.d.ts +2 -2
- package/dist/esm/core/modules/authz/msgs/MsgRevoke.js +1 -1
- package/dist/esm/core/modules/authz/msgs/authorizations/Base.d.ts +1 -1
- package/dist/esm/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.d.ts +1 -1
- package/dist/esm/core/modules/authz/msgs/authorizations/ContractExecutionCompatAuthorization.d.ts +1 -1
- package/dist/esm/core/modules/authz/msgs/authorizations/GenericAuthorization.d.ts +2 -1
- package/dist/esm/core/modules/authz/msgs/authorizations/GenericAuthorization.js +1 -1
- package/dist/esm/core/modules/authz/types.d.ts +5 -4
- package/dist/esm/core/modules/authz/types.js +4 -5
- package/dist/esm/core/modules/authz/utils.d.ts +1 -1
- package/dist/esm/core/modules/authz/utils.js +1 -1
- package/dist/esm/core/modules/bank/msgs/MsgMultiSend.d.ts +1 -1
- package/dist/esm/core/modules/bank/msgs/MsgMultiSend.js +1 -1
- package/dist/esm/core/modules/bank/msgs/MsgSend.d.ts +1 -1
- package/dist/esm/core/modules/bank/msgs/MsgSend.js +1 -1
- package/dist/esm/core/modules/distribution/msgs/MsgWithdrawDelegatorReward.d.ts +1 -1
- package/dist/esm/core/modules/distribution/msgs/MsgWithdrawDelegatorReward.js +1 -1
- package/dist/esm/core/modules/distribution/msgs/MsgWithdrawValidatorCommission.d.ts +1 -1
- package/dist/esm/core/modules/distribution/msgs/MsgWithdrawValidatorCommission.js +1 -1
- package/dist/esm/core/modules/exchange/index.d.ts +5 -5
- package/dist/esm/core/modules/exchange/index.js +5 -5
- package/dist/esm/core/modules/exchange/msgs/MsgAdminUpdateBinaryOptionsMarket.d.ts +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgAdminUpdateBinaryOptionsMarket.js +5 -4
- package/dist/esm/core/modules/exchange/msgs/MsgAuthorizeStakeGrants.js +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.d.ts +2 -2
- package/dist/esm/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.js +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.d.ts +2 -2
- package/dist/esm/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.js +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.d.ts +2 -2
- package/dist/esm/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.js +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgBatchUpdateOrders.d.ts +2 -2
- package/dist/esm/core/modules/exchange/msgs/MsgBatchUpdateOrders.js +13 -13
- package/dist/esm/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.d.ts +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.js +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgCancelDerivativeOrder.d.ts +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgCancelDerivativeOrder.js +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgCancelSpotOrder.d.ts +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgCancelSpotOrder.js +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.d.ts +2 -2
- package/dist/esm/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.js +11 -10
- package/dist/esm/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.d.ts +2 -2
- package/dist/esm/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.js +11 -10
- package/dist/esm/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.d.ts +2 -2
- package/dist/esm/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.js +11 -10
- package/dist/esm/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.d.ts +2 -2
- package/dist/esm/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.js +11 -10
- package/dist/esm/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.d.ts +2 -2
- package/dist/esm/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.js +10 -9
- package/dist/esm/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.d.ts +2 -2
- package/dist/esm/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.js +10 -9
- package/dist/esm/core/modules/exchange/msgs/MsgDeposit.js +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgExternalTransfer.js +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgIncreasePositionMargin.js +5 -4
- package/dist/esm/core/modules/exchange/msgs/MsgInstantBinaryOptionsMarketLaunch.d.ts +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgInstantBinaryOptionsMarketLaunch.js +13 -12
- package/dist/esm/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.js +8 -7
- package/dist/esm/core/modules/exchange/msgs/MsgLiquidatePosition.d.ts +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgLiquidatePosition.js +12 -11
- package/dist/esm/core/modules/exchange/msgs/MsgReclaimLockedFunds.js +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgRewardsOptOut.js +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgSetDelegationTransferReceivers.d.ts +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgSetDelegationTransferReceivers.js +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgSignData.js +1 -1
- package/dist/esm/core/modules/exchange/msgs/MsgWithdraw.js +1 -1
- package/dist/esm/core/modules/exchange/utils/classes/OrderHashManager.d.ts +3 -3
- package/dist/esm/core/modules/exchange/utils/classes/OrderHashManager.js +7 -7
- package/dist/esm/core/modules/feegrant/msgs/MsgGrantAllowance.d.ts +2 -2
- package/dist/esm/core/modules/feegrant/msgs/MsgGrantAllowance.js +1 -1
- package/dist/esm/core/modules/feegrant/msgs/MsgRevokeAllowance.d.ts +2 -2
- package/dist/esm/core/modules/feegrant/msgs/MsgRevokeAllowance.js +1 -1
- package/dist/esm/core/modules/feegrant/utils/allowance.d.ts +8 -6
- package/dist/esm/core/modules/feegrant/utils/allowance.js +6 -7
- package/dist/esm/core/modules/gov/index.d.ts +1 -1
- package/dist/esm/core/modules/gov/index.js +1 -1
- package/dist/esm/core/modules/gov/msgs/MsgDeposit.js +1 -1
- package/dist/esm/core/modules/gov/msgs/MsgSubmitGenericProposal.d.ts +1 -1
- package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalExpiryFuturesMarketLaunch.d.ts +1 -1
- package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalExpiryFuturesMarketLaunch.js +16 -15
- package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunch.d.ts +1 -1
- package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunch.js +16 -15
- package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunchV2.d.ts +1 -1
- package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalPerpetualMarketLaunchV2.js +19 -18
- package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalSpotMarketLaunch.d.ts +1 -1
- package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalSpotMarketLaunch.js +12 -11
- package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalSpotMarketParamUpdate.d.ts +1 -1
- package/dist/esm/core/modules/gov/msgs/MsgSubmitProposalSpotMarketParamUpdate.js +14 -13
- package/dist/esm/core/modules/gov/msgs/MsgSubmitTextProposal.d.ts +1 -1
- package/dist/esm/core/modules/gov/msgs/MsgVote.js +1 -1
- package/dist/esm/core/modules/ibc/msgs/MsgTransfer.d.ts +2 -2
- package/dist/esm/core/modules/ibc/msgs/MsgTransfer.js +1 -1
- package/dist/esm/core/modules/index.d.ts +1 -1
- package/dist/esm/core/modules/index.js +0 -1
- package/dist/esm/core/modules/insurance/msgs/MsgCreateInsuranceFund.d.ts +1 -1
- package/dist/esm/core/modules/insurance/msgs/MsgCreateInsuranceFund.js +1 -1
- package/dist/esm/core/modules/insurance/msgs/MsgRequestRedemption.d.ts +1 -1
- package/dist/esm/core/modules/insurance/msgs/MsgRequestRedemption.js +1 -1
- package/dist/esm/core/modules/insurance/msgs/MsgUnderwrite.d.ts +1 -1
- package/dist/esm/core/modules/insurance/msgs/MsgUnderwrite.js +1 -1
- package/dist/esm/core/modules/msgs.d.ts +63 -63
- package/dist/esm/core/modules/peggy/msgs/MsgSendToEth.d.ts +1 -1
- package/dist/esm/core/modules/peggy/msgs/MsgSendToEth.js +2 -2
- package/dist/esm/core/modules/permissions/msgs/MsgClaimVoucher.d.ts +1 -1
- package/dist/esm/core/modules/permissions/msgs/MsgClaimVoucher.js +1 -1
- package/dist/esm/core/modules/permissions/msgs/MsgCreateNamespace.d.ts +1 -1
- package/dist/esm/core/modules/permissions/msgs/MsgCreateNamespace.js +1 -1
- package/dist/esm/core/modules/permissions/msgs/MsgUpdateActorRoles.d.ts +1 -1
- package/dist/esm/core/modules/permissions/msgs/MsgUpdateNamespace.d.ts +1 -1
- package/dist/esm/core/modules/permissions/msgs/MsgUpdateNamespace.js +1 -1
- package/dist/esm/core/modules/permissions/msgs/MsgUpdateParams.js +1 -1
- package/dist/esm/core/modules/staking/index.d.ts +1 -1
- package/dist/esm/core/modules/staking/index.js +1 -1
- package/dist/esm/core/modules/staking/msgs/MsgBeginRedelegate.d.ts +1 -1
- package/dist/esm/core/modules/staking/msgs/MsgBeginRedelegate.js +1 -1
- package/dist/esm/core/modules/staking/msgs/MsgCancelUnbondingDelegation.d.ts +1 -1
- package/dist/esm/core/modules/staking/msgs/MsgCancelUnbondingDelegation.js +1 -1
- package/dist/esm/core/modules/staking/msgs/MsgCreateValidator.d.ts +1 -1
- package/dist/esm/core/modules/staking/msgs/MsgCreateValidator.js +2 -2
- package/dist/esm/core/modules/staking/msgs/MsgDelegate.d.ts +1 -1
- package/dist/esm/core/modules/staking/msgs/MsgDelegate.js +1 -1
- package/dist/esm/core/modules/staking/msgs/MsgEditValidator.d.ts +2 -2
- package/dist/esm/core/modules/staking/msgs/MsgEditValidator.js +4 -3
- package/dist/esm/core/modules/staking/msgs/MsgTransferDelegation.d.ts +1 -1
- package/dist/esm/core/modules/staking/msgs/MsgTransferDelegation.js +1 -1
- package/dist/esm/core/modules/staking/msgs/MsgUndelegate.d.ts +1 -1
- package/dist/esm/core/modules/staking/msgs/MsgUndelegate.js +1 -1
- package/dist/esm/core/modules/tokenfactory/index.d.ts +1 -1
- package/dist/esm/core/modules/tokenfactory/index.js +1 -1
- package/dist/esm/core/modules/tokenfactory/msgs/MsgBurn.d.ts +2 -2
- package/dist/esm/core/modules/tokenfactory/msgs/MsgBurn.js +2 -1
- package/dist/esm/core/modules/tokenfactory/msgs/MsgChangeAdmin.d.ts +1 -1
- package/dist/esm/core/modules/tokenfactory/msgs/MsgChangeAdmin.js +1 -1
- package/dist/esm/core/modules/tokenfactory/msgs/MsgCreateDenom.d.ts +1 -1
- package/dist/esm/core/modules/tokenfactory/msgs/MsgCreateDenom.js +1 -1
- package/dist/esm/core/modules/tokenfactory/msgs/MsgMint.d.ts +1 -1
- package/dist/esm/core/modules/tokenfactory/msgs/MsgMint.js +1 -1
- package/dist/esm/core/modules/tokenfactory/msgs/MsgSetDenomMetadata.d.ts +1 -1
- package/dist/esm/core/modules/tokenfactory/msgs/MsgSetDenomMetadata.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCW20AdapterRedeemAndTransfer.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCW20AdapterRedeemAndTransfer.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCW20Send.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCW20Send.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCW20Transfer.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCW20Transfer.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCreateCampaign.d.ts +3 -2
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCreateCampaign.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCreatePerpGridStrategy.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCreatePerpGridStrategy.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCreateRound.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCreateRound.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.d.ts +4 -2
- package/dist/esm/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.js +2 -2
- package/dist/esm/core/modules/wasm/exec-args/ExecArgDepositTokens.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgDepositTokens.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgFundCampaign.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgFundCampaign.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgIncreaseAllowance.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgIncreaseAllowance.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgInitiateTransfer.d.ts +3 -2
- package/dist/esm/core/modules/wasm/exec-args/ExecArgInitiateTransfer.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgRemoveGridStrategy.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgRemoveGridStrategy.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgSubmitVaa.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgSubmitVaa.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgSwapExactOutput.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgSwapExactOutput.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgSwapMinOutput.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgSwapMinOutput.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgUpdateGridConfig.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-args/ExecArgUpdateGridConfig.js +1 -1
- package/dist/esm/core/modules/wasm/exec-args.d.ts +20 -20
- package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultRedeem.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultRedeem.js +1 -1
- package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultSubscribe.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgOffChainVaultSubscribe.js +1 -1
- package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultRedeem.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultRedeem.js +1 -1
- package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultSubscribe.d.ts +2 -1
- package/dist/esm/core/modules/wasm/exec-priv-args/ExecPrivilegedArgVaultSubscribe.js +1 -1
- package/dist/esm/core/modules/wasm/index.d.ts +13 -13
- package/dist/esm/core/modules/wasm/index.js +12 -13
- package/dist/esm/core/modules/wasm/msgs/MsgExecuteContract.d.ts +2 -2
- package/dist/esm/core/modules/wasm/msgs/MsgExecuteContract.js +3 -3
- package/dist/esm/core/modules/wasm/msgs/MsgExecuteContractCompat.d.ts +2 -2
- package/dist/esm/core/modules/wasm/msgs/MsgExecuteContractCompat.js +1 -1
- package/dist/esm/core/modules/wasm/msgs/MsgInstantiateContract.d.ts +1 -1
- package/dist/esm/core/modules/wasm/msgs/MsgInstantiateContract.js +3 -3
- package/dist/esm/core/modules/wasm/msgs/MsgMigrateContract.d.ts +1 -1
- package/dist/esm/core/modules/wasm/msgs/MsgMigrateContract.js +3 -3
- package/dist/esm/core/modules/wasm/msgs/MsgPrivilegedExecuteContract.d.ts +3 -3
- package/dist/esm/core/modules/wasm/msgs/MsgPrivilegedExecuteContract.js +1 -1
- package/dist/esm/core/modules/wasm/msgs/MsgStoreCode.d.ts +1 -1
- package/dist/esm/core/modules/wasm/msgs/MsgStoreCode.js +4 -4
- package/dist/esm/core/modules/wasm/msgs/MsgUpdateAdmin.d.ts +1 -1
- package/dist/esm/core/modules/wasm/msgs/MsgUpdateAdmin.js +1 -1
- package/dist/esm/core/modules/wasm/types.d.ts +12 -10
- package/dist/esm/core/modules/wasm/types.js +10 -12
- package/dist/esm/core/stargate/SigningStargateClient.d.ts +10 -8
- package/dist/esm/core/stargate/SigningStargateClient.js +10 -10
- package/dist/esm/core/stargate/StargateClient.d.ts +2 -1
- package/dist/esm/core/tx/api/TxGrpcApi.d.ts +3 -3
- package/dist/esm/core/tx/api/TxGrpcApi.js +2 -2
- package/dist/esm/core/tx/api/TxRestApi.d.ts +3 -3
- package/dist/esm/core/tx/api/TxRestApi.js +5 -5
- package/dist/esm/core/tx/api/utils.d.ts +1 -1
- package/dist/esm/core/tx/arbitrary.js +1 -1
- package/dist/esm/core/tx/broadcaster/MsgBroadcasterWithPk.d.ts +5 -4
- package/dist/esm/core/tx/broadcaster/MsgBroadcasterWithPk.js +8 -8
- package/dist/esm/core/tx/eip712/MsgDecoder.d.ts +2 -2
- package/dist/esm/core/tx/eip712/MsgDecoder.js +1 -1
- package/dist/esm/core/tx/eip712/eip712.d.ts +3 -3
- package/dist/esm/core/tx/eip712/eip712.js +1 -1
- package/dist/esm/core/tx/eip712/index.d.ts +1 -1
- package/dist/esm/core/tx/eip712/index.js +0 -1
- package/dist/esm/core/tx/eip712/maps.d.ts +1 -1
- package/dist/esm/core/tx/eip712/maps.js +1 -1
- package/dist/esm/core/tx/eip712/utils.d.ts +2 -2
- package/dist/esm/core/tx/eip712/utils.js +9 -7
- package/dist/esm/core/tx/tx.d.ts +3 -3
- package/dist/esm/core/tx/tx.js +7 -7
- package/dist/esm/core/tx/types/tx-rest-client.d.ts +13 -11
- package/dist/esm/core/tx/types/tx-rest-client.js +10 -12
- package/dist/esm/core/tx/types/tx.d.ts +8 -7
- package/dist/esm/core/tx/types/tx.js +4 -5
- package/dist/esm/core/tx/utils/classes/TxClient.js +1 -1
- package/dist/esm/core/tx/utils/tx.d.ts +8 -7
- package/dist/esm/core/tx/utils/tx.js +2 -2
- package/dist/esm/service/TokenFactoryStatic.d.ts +2 -1
- package/dist/esm/service/TokenStaticFactory.d.ts +2 -1
- package/dist/esm/types/cosmos.d.ts +12 -11
- package/dist/esm/types/cosmos.js +7 -8
- package/dist/esm/types/exchange.d.ts +19 -16
- package/dist/esm/types/exchange.js +16 -19
- package/dist/esm/types/index.d.ts +1 -1
- package/dist/esm/types/index.js +0 -1
- package/dist/esm/types/token.d.ts +37 -34
- package/dist/esm/types/token.js +34 -37
- package/dist/esm/utils/address.js +3 -6
- package/dist/esm/utils/constants.d.ts +0 -2
- package/dist/esm/utils/constants.js +0 -2
- package/dist/esm/utils/crypto.d.ts +11 -7
- package/dist/esm/utils/crypto.js +34 -8
- package/dist/esm/utils/helpers.d.ts +2 -2
- package/dist/esm/utils/helpers.js +1 -1
- package/dist/esm/utils/msgs.d.ts +1 -1
- package/dist/esm/utils/numbers.d.ts +36 -10
- package/dist/esm/utils/numbers.js +51 -40
- package/dist/esm/utils/pagination.d.ts +3 -3
- package/dist/esm/utils/transaction.d.ts +2 -1
- package/dist/esm/utils/transaction.js +12 -9
- package/package.json +15 -15
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getExactDecimalsFromNumber = exports.getSignificantDecimalsFromNumber = exports.
|
|
3
|
+
exports.getExactDecimalsFromNumber = exports.getSignificantDecimalsFromNumber = exports.getTensMultiplier = exports.numberToCosmosSdkDecString = exports.cosmosSdkDecToBigNumber = exports.spotQuantityFromChainQuantityToFixed = exports.spotQuantityFromChainQuantity = exports.spotQuantityToChainQuantityToFixed = exports.spotQuantityToChainQuantity = exports.spotPriceFromChainPriceToFixed = exports.spotPriceFromChainPrice = exports.spotPriceToChainPriceToFixed = exports.spotPriceToChainPrice = exports.derivativeQuantityFromChainQuantityToFixed = exports.derivativeQuantityFromChainQuantity = exports.derivativeQuantityToChainQuantityToFixed = exports.derivativeQuantityToChainQuantity = exports.derivativePriceFromChainPriceToFixed = exports.derivativePriceFromChainPrice = exports.derivativePriceToChainPriceToFixed = exports.derivativePriceToChainPrice = exports.derivativeMarginFromChainMarginToFixed = exports.derivativeMarginFromChainMargin = exports.derivativeMarginToChainMarginToFixed = exports.derivativeMarginToChainMargin = exports.denomAmountFromChainDenomAmountToFixed = exports.denomAmountFromChainDenomAmount = exports.denomAmountToChainDenomAmountToFixed = exports.denomAmountToChainDenomAmount = exports.amountToCosmosSdkDecAmount = exports.denomAmountToGrpcChainDenomAmount = exports.denomAmountFromGrpcChainDenomAmount = exports.formatPriceToAllowableDecimals = exports.formatAmountToAllowableDecimals = exports.formatPriceToAllowablePrice = exports.formatAmountToAllowableAmount = exports.formatNumberToAllowableTensMultiplier = exports.formatNumberToAllowableDecimals = exports.isNumber = void 0;
|
|
4
4
|
const utils_1 = require("@injectivelabs/utils");
|
|
5
|
-
Object.defineProperty(exports, "getSignificantDecimalsFromNumber", { enumerable: true, get: function () { return utils_1.getSignificantDecimalsFromNumber; } });
|
|
6
5
|
Object.defineProperty(exports, "getExactDecimalsFromNumber", { enumerable: true, get: function () { return utils_1.getExactDecimalsFromNumber; } });
|
|
6
|
+
Object.defineProperty(exports, "getSignificantDecimalsFromNumber", { enumerable: true, get: function () { return utils_1.getSignificantDecimalsFromNumber; } });
|
|
7
7
|
const $BigNumber = utils_1.BigNumber.clone({ ROUNDING_MODE: utils_1.BigNumber.ROUND_DOWN });
|
|
8
8
|
const isNumber = (number) => {
|
|
9
9
|
if (typeof number === 'number') {
|
|
@@ -13,35 +13,35 @@ const isNumber = (number) => {
|
|
|
13
13
|
};
|
|
14
14
|
exports.isNumber = isNumber;
|
|
15
15
|
const formatNumberToAllowableDecimals = (value, allowableDecimals, roundingMode) => {
|
|
16
|
-
const decimalPlacesInValue =
|
|
16
|
+
const decimalPlacesInValue = (0, utils_1.toBigNumber)((0, utils_1.getExactDecimalsFromNumber)(value));
|
|
17
17
|
const valueToString = value.toString();
|
|
18
18
|
if (decimalPlacesInValue.lte(0)) {
|
|
19
19
|
return valueToString;
|
|
20
20
|
}
|
|
21
21
|
const decimalMoreThanAllowance = decimalPlacesInValue.gte(allowableDecimals);
|
|
22
22
|
return decimalMoreThanAllowance
|
|
23
|
-
?
|
|
23
|
+
? (0, utils_1.toBigNumber)(valueToString).toFixed(allowableDecimals, roundingMode)
|
|
24
24
|
: valueToString;
|
|
25
25
|
};
|
|
26
26
|
exports.formatNumberToAllowableDecimals = formatNumberToAllowableDecimals;
|
|
27
27
|
const formatNumberToAllowableTensMultiplier = (value, tensMultiplier, roundingMode) => {
|
|
28
|
-
const valueToBn =
|
|
28
|
+
const valueToBn = (0, utils_1.toBigNumber)(value);
|
|
29
29
|
if (tensMultiplier === 0) {
|
|
30
30
|
return valueToBn.toFixed(0, roundingMode);
|
|
31
31
|
}
|
|
32
|
-
const tensMul =
|
|
32
|
+
const tensMul = (0, utils_1.toBigNumber)(10).pow(tensMultiplier);
|
|
33
33
|
if (valueToBn.lte(tensMul)) {
|
|
34
34
|
return tensMul.toFixed(0, roundingMode);
|
|
35
35
|
}
|
|
36
|
-
return
|
|
36
|
+
return (0, utils_1.toBigNumber)(valueToBn.div(tensMul).toFixed(0, roundingMode))
|
|
37
37
|
.multipliedBy(tensMul)
|
|
38
38
|
.toFixed(0);
|
|
39
39
|
};
|
|
40
40
|
exports.formatNumberToAllowableTensMultiplier = formatNumberToAllowableTensMultiplier;
|
|
41
41
|
const formatAmountToAllowableAmount = (value, tensMultiplier) => {
|
|
42
42
|
return tensMultiplier < 0
|
|
43
|
-
? (0, exports.formatNumberToAllowableDecimals)(value, -tensMultiplier, utils_1.
|
|
44
|
-
: (0, exports.formatNumberToAllowableTensMultiplier)(value, tensMultiplier, utils_1.
|
|
43
|
+
? (0, exports.formatNumberToAllowableDecimals)(value, -tensMultiplier, utils_1.BigNumber.ROUND_DOWN)
|
|
44
|
+
: (0, exports.formatNumberToAllowableTensMultiplier)(value, tensMultiplier, utils_1.BigNumber.ROUND_DOWN);
|
|
45
45
|
};
|
|
46
46
|
exports.formatAmountToAllowableAmount = formatAmountToAllowableAmount;
|
|
47
47
|
const formatPriceToAllowablePrice = (value, tensMultiplier) => {
|
|
@@ -59,7 +59,7 @@ exports.formatPriceToAllowablePrice = formatPriceToAllowablePrice;
|
|
|
59
59
|
* @returns
|
|
60
60
|
*/
|
|
61
61
|
const formatAmountToAllowableDecimals = (value, allowableDecimals) => {
|
|
62
|
-
return (0, exports.formatNumberToAllowableDecimals)(value, allowableDecimals, utils_1.
|
|
62
|
+
return (0, exports.formatNumberToAllowableDecimals)(value, allowableDecimals, utils_1.BigNumber.ROUND_DOWN);
|
|
63
63
|
};
|
|
64
64
|
exports.formatAmountToAllowableDecimals = formatAmountToAllowableDecimals;
|
|
65
65
|
/**
|
|
@@ -83,6 +83,8 @@ exports.formatPriceToAllowableDecimals = formatPriceToAllowableDecimals;
|
|
|
83
83
|
const denomAmountFromGrpcChainDenomAmount = (value) => new $BigNumber(value).dividedBy(new $BigNumber(10).pow(18));
|
|
84
84
|
exports.denomAmountFromGrpcChainDenomAmount = denomAmountFromGrpcChainDenomAmount;
|
|
85
85
|
/**
|
|
86
|
+
* @deprecated use toChainFormat from injectivelabs/utils instead
|
|
87
|
+
*
|
|
86
88
|
* On chain amounts broadcasted to a sentry directly using the
|
|
87
89
|
* gRPC API should be passed with an extra decimal point
|
|
88
90
|
* 18 places from the beginning, so we need to add it
|
|
@@ -91,6 +93,8 @@ exports.denomAmountFromGrpcChainDenomAmount = denomAmountFromGrpcChainDenomAmoun
|
|
|
91
93
|
const denomAmountToGrpcChainDenomAmount = (value) => new $BigNumber(value).multipliedBy(new $BigNumber(10).pow(18));
|
|
92
94
|
exports.denomAmountToGrpcChainDenomAmount = denomAmountToGrpcChainDenomAmount;
|
|
93
95
|
/**
|
|
96
|
+
* @deprecated use toChainFormat from injectivelabs/utils instead
|
|
97
|
+
*
|
|
94
98
|
* On chain amounts (based on the cosmosSdk.Dec type)
|
|
95
99
|
* broadcasted to a sentry directly using the
|
|
96
100
|
* gRPC API should be passed with an extra decimal point
|
|
@@ -100,6 +104,8 @@ exports.denomAmountToGrpcChainDenomAmount = denomAmountToGrpcChainDenomAmount;
|
|
|
100
104
|
const amountToCosmosSdkDecAmount = (value) => new $BigNumber(value).multipliedBy(new $BigNumber(10).pow(18));
|
|
101
105
|
exports.amountToCosmosSdkDecAmount = amountToCosmosSdkDecAmount;
|
|
102
106
|
/**
|
|
107
|
+
* * @deprecated use toChainFormat from injectivelabs/utils instead
|
|
108
|
+
*
|
|
103
109
|
* Amount that the chain requires is in the x * 10^(quoteDecimals) format
|
|
104
110
|
* where x is a human readable number
|
|
105
111
|
*/
|
|
@@ -110,7 +116,7 @@ exports.denomAmountToChainDenomAmount = denomAmountToChainDenomAmount;
|
|
|
110
116
|
* where x is a human readable number
|
|
111
117
|
*/
|
|
112
118
|
const denomAmountToChainDenomAmountToFixed = ({ value, decimals = 18, tensMultiplier, decimalPlaces = undefined, roundingMode = utils_1.BigNumber.ROUND_DOWN, }) => {
|
|
113
|
-
const valueToBn =
|
|
119
|
+
const valueToBn = (0, utils_1.toBigNumber)(value).toFixed();
|
|
114
120
|
const flooredValue = tensMultiplier
|
|
115
121
|
? (0, exports.formatPriceToAllowablePrice)(valueToBn, tensMultiplier)
|
|
116
122
|
: value;
|
|
@@ -125,6 +131,8 @@ const denomAmountToChainDenomAmountToFixed = ({ value, decimals = 18, tensMultip
|
|
|
125
131
|
};
|
|
126
132
|
exports.denomAmountToChainDenomAmountToFixed = denomAmountToChainDenomAmountToFixed;
|
|
127
133
|
/**
|
|
134
|
+
* @deprecated use toHumanReadable from injectivelabs/utils instead
|
|
135
|
+
*
|
|
128
136
|
* Amount that the chain returns is in the x * 10^(quoteDecimals) format
|
|
129
137
|
* where x is a human readable number
|
|
130
138
|
*/
|
|
@@ -136,7 +144,7 @@ exports.denomAmountFromChainDenomAmount = denomAmountFromChainDenomAmount;
|
|
|
136
144
|
* where x is a human readable number stringified
|
|
137
145
|
*/
|
|
138
146
|
const denomAmountFromChainDenomAmountToFixed = ({ value, decimals = 18, decimalPlaces = undefined, roundingMode = utils_1.BigNumber.ROUND_DOWN, }) => {
|
|
139
|
-
const number = (0,
|
|
147
|
+
const number = (0, utils_1.toHumanReadable)(value, decimals);
|
|
140
148
|
if (decimalPlaces === undefined) {
|
|
141
149
|
return number.toFixed();
|
|
142
150
|
}
|
|
@@ -144,6 +152,8 @@ const denomAmountFromChainDenomAmountToFixed = ({ value, decimals = 18, decimalP
|
|
|
144
152
|
};
|
|
145
153
|
exports.denomAmountFromChainDenomAmountToFixed = denomAmountFromChainDenomAmountToFixed;
|
|
146
154
|
/**
|
|
155
|
+
* @deprecated use toChainFormat from injectivelabs/utils instead
|
|
156
|
+
*
|
|
147
157
|
* Amount that the chain requires is in the x * 10^(quoteDecimals) format
|
|
148
158
|
* where x is a human readable number
|
|
149
159
|
*/
|
|
@@ -154,7 +164,7 @@ exports.derivativeMarginToChainMargin = derivativeMarginToChainMargin;
|
|
|
154
164
|
* where x is a human readable number stringified
|
|
155
165
|
*/
|
|
156
166
|
const derivativeMarginToChainMarginToFixed = ({ value, quoteDecimals = 18, tensMultiplier, decimalPlaces = undefined, roundingMode = utils_1.BigNumber.ROUND_DOWN, }) => {
|
|
157
|
-
const valueToBn =
|
|
167
|
+
const valueToBn = (0, utils_1.toBigNumber)(value).toFixed();
|
|
158
168
|
const flooredValue = tensMultiplier
|
|
159
169
|
? (0, exports.formatPriceToAllowablePrice)(valueToBn, tensMultiplier)
|
|
160
170
|
: value;
|
|
@@ -169,6 +179,8 @@ const derivativeMarginToChainMarginToFixed = ({ value, quoteDecimals = 18, tensM
|
|
|
169
179
|
};
|
|
170
180
|
exports.derivativeMarginToChainMarginToFixed = derivativeMarginToChainMarginToFixed;
|
|
171
181
|
/**
|
|
182
|
+
* @deprecated use toHumanReadable from injectivelabs/utils instead
|
|
183
|
+
*
|
|
172
184
|
* Amount that the chain returns is in the x * 10^(quoteDecimals) format
|
|
173
185
|
* where x is a human readable number
|
|
174
186
|
*/
|
|
@@ -179,7 +191,7 @@ exports.derivativeMarginFromChainMargin = derivativeMarginFromChainMargin;
|
|
|
179
191
|
* where x is a human readable number
|
|
180
192
|
*/
|
|
181
193
|
const derivativeMarginFromChainMarginToFixed = ({ value, quoteDecimals = 18, decimalPlaces = undefined, roundingMode = utils_1.BigNumber.ROUND_DOWN, }) => {
|
|
182
|
-
const number = (0,
|
|
194
|
+
const number = (0, utils_1.toHumanReadable)(value, quoteDecimals);
|
|
183
195
|
if (decimalPlaces === undefined) {
|
|
184
196
|
return number.toFixed();
|
|
185
197
|
}
|
|
@@ -187,6 +199,7 @@ const derivativeMarginFromChainMarginToFixed = ({ value, quoteDecimals = 18, dec
|
|
|
187
199
|
};
|
|
188
200
|
exports.derivativeMarginFromChainMarginToFixed = derivativeMarginFromChainMarginToFixed;
|
|
189
201
|
/**
|
|
202
|
+
* @deprecated use toChainFormat from injectivelabs/utils instead
|
|
190
203
|
* Amount that the chain requires is in the x * 10^(quoteDecimals) format
|
|
191
204
|
* where x is a human readable number
|
|
192
205
|
*/
|
|
@@ -197,14 +210,11 @@ exports.derivativePriceToChainPrice = derivativePriceToChainPrice;
|
|
|
197
210
|
* where x is a human readable number stringified
|
|
198
211
|
*/
|
|
199
212
|
const derivativePriceToChainPriceToFixed = ({ value, tensMultiplier, quoteDecimals = 18, decimalPlaces = undefined, roundingMode = utils_1.BigNumber.ROUND_DOWN, }) => {
|
|
200
|
-
const valueToBn =
|
|
213
|
+
const valueToBn = (0, utils_1.toBigNumber)(value).toFixed();
|
|
201
214
|
const flooredValue = tensMultiplier
|
|
202
215
|
? (0, exports.formatPriceToAllowablePrice)(valueToBn, tensMultiplier)
|
|
203
216
|
: value;
|
|
204
|
-
const number = (0,
|
|
205
|
-
value: flooredValue,
|
|
206
|
-
quoteDecimals,
|
|
207
|
-
});
|
|
217
|
+
const number = (0, utils_1.toChainFormat)(flooredValue, quoteDecimals);
|
|
208
218
|
if (decimalPlaces === undefined) {
|
|
209
219
|
return number.toFixed();
|
|
210
220
|
}
|
|
@@ -212,6 +222,8 @@ const derivativePriceToChainPriceToFixed = ({ value, tensMultiplier, quoteDecima
|
|
|
212
222
|
};
|
|
213
223
|
exports.derivativePriceToChainPriceToFixed = derivativePriceToChainPriceToFixed;
|
|
214
224
|
/**
|
|
225
|
+
* @deprecated use toHumanReadable from injectivelabs/utils instead
|
|
226
|
+
*
|
|
215
227
|
* Amount that the chain returns is in the x * 10^(quoteDecimals) format
|
|
216
228
|
* where x is a human readable number
|
|
217
229
|
*/
|
|
@@ -222,7 +234,7 @@ exports.derivativePriceFromChainPrice = derivativePriceFromChainPrice;
|
|
|
222
234
|
* where x is a human readable number stringified
|
|
223
235
|
*/
|
|
224
236
|
const derivativePriceFromChainPriceToFixed = ({ value, quoteDecimals = 18, decimalPlaces = undefined, roundingMode = utils_1.BigNumber.ROUND_DOWN, }) => {
|
|
225
|
-
const number = (0,
|
|
237
|
+
const number = (0, utils_1.toHumanReadable)(value, quoteDecimals);
|
|
226
238
|
if (decimalPlaces === undefined) {
|
|
227
239
|
return number.toFixed();
|
|
228
240
|
}
|
|
@@ -230,6 +242,7 @@ const derivativePriceFromChainPriceToFixed = ({ value, quoteDecimals = 18, decim
|
|
|
230
242
|
};
|
|
231
243
|
exports.derivativePriceFromChainPriceToFixed = derivativePriceFromChainPriceToFixed;
|
|
232
244
|
/**
|
|
245
|
+
* @deprecated use toBigNumber from injectivelabs/utils instead
|
|
233
246
|
* Amount that the chain requires is in the x format
|
|
234
247
|
* where x is a human readable number
|
|
235
248
|
*/
|
|
@@ -240,7 +253,7 @@ exports.derivativeQuantityToChainQuantity = derivativeQuantityToChainQuantity;
|
|
|
240
253
|
* where x is a human readable number stringified
|
|
241
254
|
*/
|
|
242
255
|
const derivativeQuantityToChainQuantityToFixed = ({ value, decimalPlaces = undefined, tensMultiplier, roundingMode = utils_1.BigNumber.ROUND_DOWN, }) => {
|
|
243
|
-
const valueToBn =
|
|
256
|
+
const valueToBn = (0, utils_1.toBigNumber)(value).toFixed();
|
|
244
257
|
const flooredValue = tensMultiplier
|
|
245
258
|
? (0, exports.formatPriceToAllowablePrice)(valueToBn, tensMultiplier)
|
|
246
259
|
: value;
|
|
@@ -252,6 +265,7 @@ const derivativeQuantityToChainQuantityToFixed = ({ value, decimalPlaces = undef
|
|
|
252
265
|
};
|
|
253
266
|
exports.derivativeQuantityToChainQuantityToFixed = derivativeQuantityToChainQuantityToFixed;
|
|
254
267
|
/**
|
|
268
|
+
* @deprecated
|
|
255
269
|
* Amount that the chain requires is in the x format
|
|
256
270
|
* where x is a human readable number
|
|
257
271
|
*/
|
|
@@ -262,7 +276,7 @@ exports.derivativeQuantityFromChainQuantity = derivativeQuantityFromChainQuantit
|
|
|
262
276
|
* where x is a human readable number stringified
|
|
263
277
|
*/
|
|
264
278
|
const derivativeQuantityFromChainQuantityToFixed = ({ value, decimalPlaces = undefined, roundingMode = utils_1.BigNumber.ROUND_DOWN, }) => {
|
|
265
|
-
const number =
|
|
279
|
+
const number = new $BigNumber(value);
|
|
266
280
|
if (decimalPlaces === undefined) {
|
|
267
281
|
return number.toFixed();
|
|
268
282
|
}
|
|
@@ -270,6 +284,7 @@ const derivativeQuantityFromChainQuantityToFixed = ({ value, decimalPlaces = und
|
|
|
270
284
|
};
|
|
271
285
|
exports.derivativeQuantityFromChainQuantityToFixed = derivativeQuantityFromChainQuantityToFixed;
|
|
272
286
|
/**
|
|
287
|
+
* @deprecated use toChainFormat from injectivelabs/utils instead
|
|
273
288
|
* Amount that the chain requires is in the x / 10^(quoteDecimals - baseDecimals) format
|
|
274
289
|
* where x is a human readable number
|
|
275
290
|
*/
|
|
@@ -280,15 +295,11 @@ exports.spotPriceToChainPrice = spotPriceToChainPrice;
|
|
|
280
295
|
* where x is a human readable number stringified
|
|
281
296
|
*/
|
|
282
297
|
const spotPriceToChainPriceToFixed = ({ value, baseDecimals = 18, quoteDecimals = 6, tensMultiplier, decimalPlaces = undefined, roundingMode = utils_1.BigNumber.ROUND_DOWN, }) => {
|
|
283
|
-
const valueToBn =
|
|
298
|
+
const valueToBn = (0, utils_1.toBigNumber)(value).toFixed();
|
|
284
299
|
const flooredValue = tensMultiplier
|
|
285
300
|
? (0, exports.formatPriceToAllowablePrice)(valueToBn, tensMultiplier)
|
|
286
301
|
: value;
|
|
287
|
-
const number = (0,
|
|
288
|
-
value: flooredValue,
|
|
289
|
-
baseDecimals,
|
|
290
|
-
quoteDecimals,
|
|
291
|
-
});
|
|
302
|
+
const number = (0, utils_1.toChainFormat)(flooredValue, (0, utils_1.toBigNumber)(quoteDecimals).minus(baseDecimals).toNumber());
|
|
292
303
|
if (decimalPlaces === undefined) {
|
|
293
304
|
return number.toFixed();
|
|
294
305
|
}
|
|
@@ -296,6 +307,8 @@ const spotPriceToChainPriceToFixed = ({ value, baseDecimals = 18, quoteDecimals
|
|
|
296
307
|
};
|
|
297
308
|
exports.spotPriceToChainPriceToFixed = spotPriceToChainPriceToFixed;
|
|
298
309
|
/**
|
|
310
|
+
* @deprecated use toHumanReadable from injectivelabs/utils instead
|
|
311
|
+
*
|
|
299
312
|
* Amount that the chain returns is in the x / 10^(quoteDecimals - baseDecimals) format
|
|
300
313
|
* where x is a human readable number
|
|
301
314
|
*/
|
|
@@ -306,7 +319,7 @@ exports.spotPriceFromChainPrice = spotPriceFromChainPrice;
|
|
|
306
319
|
* where x is a human readable number stringified
|
|
307
320
|
*/
|
|
308
321
|
const spotPriceFromChainPriceToFixed = ({ value, baseDecimals = 18, quoteDecimals = 6, decimalPlaces = undefined, roundingMode = utils_1.BigNumber.ROUND_DOWN, }) => {
|
|
309
|
-
const number = (0,
|
|
322
|
+
const number = (0, utils_1.toHumanReadable)(value, quoteDecimals - baseDecimals);
|
|
310
323
|
if (decimalPlaces === undefined) {
|
|
311
324
|
return number.toFixed();
|
|
312
325
|
}
|
|
@@ -314,6 +327,8 @@ const spotPriceFromChainPriceToFixed = ({ value, baseDecimals = 18, quoteDecimal
|
|
|
314
327
|
};
|
|
315
328
|
exports.spotPriceFromChainPriceToFixed = spotPriceFromChainPriceToFixed;
|
|
316
329
|
/**
|
|
330
|
+
* @deprecated use toChainFormat from injectivelabs/utils instead
|
|
331
|
+
*
|
|
317
332
|
* Amount that the chain requires is in the x * 10^(baseDecimals) format
|
|
318
333
|
* where x is a human readable number
|
|
319
334
|
*/
|
|
@@ -324,14 +339,11 @@ exports.spotQuantityToChainQuantity = spotQuantityToChainQuantity;
|
|
|
324
339
|
* where x is a human readable number
|
|
325
340
|
*/
|
|
326
341
|
const spotQuantityToChainQuantityToFixed = ({ value, baseDecimals = 18, tensMultiplier, decimalPlaces = undefined, roundingMode = utils_1.BigNumber.ROUND_DOWN, }) => {
|
|
327
|
-
const valueToBn =
|
|
342
|
+
const valueToBn = (0, utils_1.toBigNumber)(value).toFixed();
|
|
328
343
|
const flooredValue = tensMultiplier
|
|
329
344
|
? (0, exports.formatPriceToAllowablePrice)(valueToBn, tensMultiplier)
|
|
330
345
|
: value;
|
|
331
|
-
const number = (0,
|
|
332
|
-
value: flooredValue,
|
|
333
|
-
baseDecimals,
|
|
334
|
-
});
|
|
346
|
+
const number = (0, utils_1.toChainFormat)(flooredValue, baseDecimals);
|
|
335
347
|
if (decimalPlaces === undefined) {
|
|
336
348
|
return number.toFixed();
|
|
337
349
|
}
|
|
@@ -339,6 +351,8 @@ const spotQuantityToChainQuantityToFixed = ({ value, baseDecimals = 18, tensMult
|
|
|
339
351
|
};
|
|
340
352
|
exports.spotQuantityToChainQuantityToFixed = spotQuantityToChainQuantityToFixed;
|
|
341
353
|
/**
|
|
354
|
+
* @deprecated use toHumanReadable from injectivelabs/utils instead
|
|
355
|
+
*
|
|
342
356
|
* Amount that the chain returns is in the x * 10^(baseDecimals) format
|
|
343
357
|
* where x is a human readable number
|
|
344
358
|
*/
|
|
@@ -349,16 +363,16 @@ exports.spotQuantityFromChainQuantity = spotQuantityFromChainQuantity;
|
|
|
349
363
|
* where x is a human readable number
|
|
350
364
|
*/
|
|
351
365
|
const spotQuantityFromChainQuantityToFixed = ({ value, baseDecimals = 18, decimalPlaces = undefined, roundingMode = utils_1.BigNumber.ROUND_DOWN, }) => {
|
|
352
|
-
const number = (0,
|
|
353
|
-
value,
|
|
354
|
-
baseDecimals,
|
|
355
|
-
});
|
|
366
|
+
const number = (0, utils_1.toHumanReadable)(value, baseDecimals);
|
|
356
367
|
if (decimalPlaces === undefined) {
|
|
357
368
|
return number.toFixed();
|
|
358
369
|
}
|
|
359
370
|
return number.toFixed((0, utils_1.getSignificantDecimalsFromNumber)(number), roundingMode);
|
|
360
371
|
};
|
|
361
372
|
exports.spotQuantityFromChainQuantityToFixed = spotQuantityFromChainQuantityToFixed;
|
|
373
|
+
/**
|
|
374
|
+
* @deprecated use toHumanReadable from injectivelabs/utils instead
|
|
375
|
+
*/
|
|
362
376
|
const cosmosSdkDecToBigNumber = (number) => new utils_1.BigNumber(number).dividedBy(new utils_1.BigNumber(10).pow(18));
|
|
363
377
|
exports.cosmosSdkDecToBigNumber = cosmosSdkDecToBigNumber;
|
|
364
378
|
const numberToCosmosSdkDecString = (value) => {
|
|
@@ -390,7 +404,3 @@ const getTensMultiplier = (number) => {
|
|
|
390
404
|
return zerosInTheNumber.length;
|
|
391
405
|
};
|
|
392
406
|
exports.getTensMultiplier = getTensMultiplier;
|
|
393
|
-
const getTriggerPrice = (triggerPrice) => {
|
|
394
|
-
return triggerPrice ? (0, exports.amountToCosmosSdkDecAmount)(triggerPrice).toFixed() : '';
|
|
395
|
-
};
|
|
396
|
-
exports.getTriggerPrice = getTriggerPrice;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExchangePagination, PaginationOption } from '../types/pagination.js';
|
|
2
|
-
import { Pagination, PagePagination } from '../types/pagination.js';
|
|
3
1
|
import { CosmosBaseQueryV1Beta1Pagination } from '@injectivelabs/core-proto-ts';
|
|
4
|
-
import {
|
|
2
|
+
import type { Pagination, PagePagination } from '../types/pagination.js';
|
|
3
|
+
import type { InjectiveExplorerRpc } from '@injectivelabs/indexer-proto-ts';
|
|
4
|
+
import type { ExchangePagination, PaginationOption } from '../types/pagination.js';
|
|
5
5
|
export declare const paginationRequestFromPagination: (pagination?: PaginationOption) => CosmosBaseQueryV1Beta1Pagination.PageRequest | undefined;
|
|
6
6
|
export declare const generatePagination: (pagination: Pagination | PagePagination | undefined) => {
|
|
7
7
|
pagination: {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type TypedDataDefinition } from 'viem';
|
|
2
|
+
export declare const recoverTypedSignaturePubKey: (data: TypedDataDefinition, signature: string) => Promise<string>;
|
|
@@ -34,16 +34,19 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.recoverTypedSignaturePubKey = void 0;
|
|
37
|
-
const ethereumjs_util_1 = require("ethereumjs-util");
|
|
38
37
|
const secp256k1 = __importStar(require("secp256k1"));
|
|
39
|
-
const
|
|
40
|
-
const recoverTypedSignaturePubKey = (data, signature) => {
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
const viem_1 = require("viem");
|
|
39
|
+
const recoverTypedSignaturePubKey = async (data, signature) => {
|
|
40
|
+
const messageHash = (0, viem_1.hashTypedData)(data);
|
|
41
|
+
const publicKeyHex = await (0, viem_1.recoverPublicKey)({
|
|
42
|
+
hash: messageHash,
|
|
43
|
+
signature: signature,
|
|
44
|
+
});
|
|
45
|
+
// viem's recoverPublicKey returns uncompressed public key (65 bytes with 0x04 prefix)
|
|
46
|
+
// Convert to Buffer for secp256k1.publicKeyConvert (expects Uint8Array)
|
|
47
|
+
const uncompressedKey = Buffer.from(publicKeyHex.slice(2), 'hex');
|
|
48
|
+
// Convert to compressed format (33 bytes)
|
|
49
|
+
const compressedKey = Buffer.from(secp256k1.publicKeyConvert(uncompressedKey, true));
|
|
47
50
|
return `0x${compressedKey.toString('hex')}`;
|
|
48
51
|
};
|
|
49
52
|
exports.recoverTypedSignaturePubKey = recoverTypedSignaturePubKey;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IndexerErrorModule, UnspecifiedErrorCode, grpcErrorCodeToErrorCode, GrpcUnaryRequestException, } from '@injectivelabs/exceptions';
|
|
2
1
|
import { InjectiveAbacusRpc } from '@injectivelabs/abacus-proto-ts';
|
|
2
|
+
import { IndexerErrorModule, UnspecifiedErrorCode, grpcErrorCodeToErrorCode, GrpcUnaryRequestException, } from '@injectivelabs/exceptions';
|
|
3
3
|
import BaseGrpcConsumer from '../../base/BaseGrpcConsumer.js';
|
|
4
4
|
import { AbacusGrpcTransformer } from './transformers/index.js';
|
|
5
5
|
export class AbacusGrpcApi extends BaseGrpcConsumer {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InjectiveAbacusRpc } from '@injectivelabs/abacus-proto-ts';
|
|
1
|
+
import type { InjectiveAbacusRpc } from '@injectivelabs/abacus-proto-ts';
|
|
2
2
|
export declare class AbacusGrpcTransformer {
|
|
3
3
|
static grpcPointsStatsDailyToPointsStatsDaily(response: InjectiveAbacusRpc.HistoricalPointsStatsRowCollection): InjectiveAbacusRpc.HistoricalPointsStatsRow[];
|
|
4
4
|
static grpcPointsStatsWeeklyToPointsStatsWeekly(response: InjectiveAbacusRpc.HistoricalPointsStatsRowCollection): InjectiveAbacusRpc.HistoricalPointsStatsRow[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { grpcPkg } from '../../utils/grpc.js';
|
|
2
1
|
import { GrpcWebImpl } from './GrpcWebImpl.js';
|
|
2
|
+
import type { grpcPkg } from '../../utils/grpc.js';
|
|
3
3
|
export default class BaseGrpcConsumer extends GrpcWebImpl {
|
|
4
4
|
protected module: string;
|
|
5
5
|
protected metadata?: grpcPkg.grpc.Metadata;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { grpcPkg } from '../../utils/grpc.js';
|
|
2
1
|
import { GrpcWebImpl } from './IndexerGrpcWebImpl.js';
|
|
2
|
+
import type { grpcPkg } from '../../utils/grpc.js';
|
|
3
3
|
export default class BaseIndexerGrpcConsumer extends GrpcWebImpl {
|
|
4
4
|
protected module: string;
|
|
5
5
|
protected metadata?: grpcPkg.grpc.Metadata;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getGrpcTransport, grpc } from '../../utils/grpc.js';
|
|
2
1
|
import { GrpcWebImpl } from './IndexerGrpcWebImpl.js';
|
|
2
|
+
import { getGrpcTransport, grpc } from '../../utils/grpc.js';
|
|
3
3
|
export default class BaseIndexerGrpcConsumer extends GrpcWebImpl {
|
|
4
4
|
module = '';
|
|
5
5
|
metadata;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { grpcPkg } from '../../utils/grpc.js';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
2
|
+
import type { grpcPkg } from '../../utils/grpc.js';
|
|
3
3
|
interface UnaryMethodDefinitionR extends grpcPkg.grpc.UnaryMethodDefinition<any, any> {
|
|
4
4
|
requestStream: any;
|
|
5
5
|
responseStream: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { grpc } from '../../utils/grpc.js';
|
|
2
|
-
import { BrowserHeaders } from 'browser-headers';
|
|
3
1
|
import { Observable } from 'rxjs';
|
|
4
2
|
import { share } from 'rxjs/operators';
|
|
3
|
+
import { BrowserHeaders } from 'browser-headers';
|
|
4
|
+
import { grpc } from '../../utils/grpc.js';
|
|
5
5
|
export class GrpcWebError extends Error {
|
|
6
6
|
code;
|
|
7
7
|
metadata;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ChainGrpcAuctionApi } from './grpc/ChainGrpcAuctionApi.js';
|
|
2
|
-
import { ChainGrpcBankApi } from './grpc/ChainGrpcBankApi.js';
|
|
3
|
-
import { ChainGrpcAuthApi } from './grpc/ChainGrpcAuthApi.js';
|
|
4
|
-
import { ChainGrpcDistributionApi } from './grpc/ChainGrpcDistributionApi.js';
|
|
5
|
-
import { ChainGrpcExchangeApi } from './grpc/ChainGrpcExchangeApi.js';
|
|
6
1
|
import { ChainGrpcGovApi } from './grpc/ChainGrpcGovApi.js';
|
|
7
2
|
import { ChainGrpcIbcApi } from './grpc/ChainGrpcIbcApi.js';
|
|
8
|
-
import {
|
|
3
|
+
import { ChainGrpcAuthApi } from './grpc/ChainGrpcAuthApi.js';
|
|
4
|
+
import { ChainGrpcBankApi } from './grpc/ChainGrpcBankApi.js';
|
|
9
5
|
import { ChainGrpcMintApi } from './grpc/ChainGrpcMintApi.js';
|
|
10
|
-
import {
|
|
6
|
+
import { ChainGrpcWasmApi } from './grpc/ChainGrpcWasmApi.js';
|
|
11
7
|
import { ChainGrpcPeggyApi } from './grpc/ChainGrpcPeggyApi.js';
|
|
12
|
-
import {
|
|
8
|
+
import { ChainGrpcWasmXApi } from './grpc/ChainGrpcWasmXApi.js';
|
|
9
|
+
import { ChainGrpcOracleApi } from './grpc/ChainGrpcOracleApi.js';
|
|
10
|
+
import { ChainGrpcAuctionApi } from './grpc/ChainGrpcAuctionApi.js';
|
|
13
11
|
import { ChainGrpcStakingApi } from './grpc/ChainGrpcStakingApi.js';
|
|
12
|
+
import { ChainGrpcExchangeApi } from './grpc/ChainGrpcExchangeApi.js';
|
|
13
|
+
import { ChainGrpcPermissionsApi } from './grpc/ChainGrpcPermissionsApi.js';
|
|
14
|
+
import { ChainGrpcDistributionApi } from './grpc/ChainGrpcDistributionApi.js';
|
|
14
15
|
import { ChainGrpcTokenFactoryApi } from './grpc/ChainGrpcTokenFactoryApi.js';
|
|
15
|
-
import {
|
|
16
|
-
import { ChainGrpcWasmXApi } from './grpc/ChainGrpcWasmXApi.js';
|
|
16
|
+
import { ChainGrpcInsuranceFundApi } from './grpc/ChainGrpcInsuranceFundApi.js';
|
|
17
17
|
/**
|
|
18
18
|
* @category Chain Grpc API
|
|
19
19
|
* @hidden
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ChainGrpcAuctionApi } from './grpc/ChainGrpcAuctionApi.js';
|
|
2
|
-
import { ChainGrpcBankApi } from './grpc/ChainGrpcBankApi.js';
|
|
3
|
-
import { ChainGrpcAuthApi } from './grpc/ChainGrpcAuthApi.js';
|
|
4
|
-
import { ChainGrpcDistributionApi } from './grpc/ChainGrpcDistributionApi.js';
|
|
5
|
-
import { ChainGrpcExchangeApi } from './grpc/ChainGrpcExchangeApi.js';
|
|
6
1
|
import { ChainGrpcGovApi } from './grpc/ChainGrpcGovApi.js';
|
|
7
2
|
import { ChainGrpcIbcApi } from './grpc/ChainGrpcIbcApi.js';
|
|
8
|
-
import {
|
|
3
|
+
import { ChainGrpcAuthApi } from './grpc/ChainGrpcAuthApi.js';
|
|
4
|
+
import { ChainGrpcBankApi } from './grpc/ChainGrpcBankApi.js';
|
|
9
5
|
import { ChainGrpcMintApi } from './grpc/ChainGrpcMintApi.js';
|
|
10
|
-
import {
|
|
6
|
+
import { ChainGrpcWasmApi } from './grpc/ChainGrpcWasmApi.js';
|
|
11
7
|
import { ChainGrpcPeggyApi } from './grpc/ChainGrpcPeggyApi.js';
|
|
12
|
-
import {
|
|
8
|
+
import { ChainGrpcWasmXApi } from './grpc/ChainGrpcWasmXApi.js';
|
|
9
|
+
import { ChainGrpcOracleApi } from './grpc/ChainGrpcOracleApi.js';
|
|
10
|
+
import { ChainGrpcAuctionApi } from './grpc/ChainGrpcAuctionApi.js';
|
|
13
11
|
import { ChainGrpcStakingApi } from './grpc/ChainGrpcStakingApi.js';
|
|
12
|
+
import { ChainGrpcExchangeApi } from './grpc/ChainGrpcExchangeApi.js';
|
|
13
|
+
import { ChainGrpcPermissionsApi } from './grpc/ChainGrpcPermissionsApi.js';
|
|
14
|
+
import { ChainGrpcDistributionApi } from './grpc/ChainGrpcDistributionApi.js';
|
|
14
15
|
import { ChainGrpcTokenFactoryApi } from './grpc/ChainGrpcTokenFactoryApi.js';
|
|
15
|
-
import {
|
|
16
|
-
import { ChainGrpcWasmXApi } from './grpc/ChainGrpcWasmXApi.js';
|
|
16
|
+
import { ChainGrpcInsuranceFundApi } from './grpc/ChainGrpcInsuranceFundApi.js';
|
|
17
17
|
/**
|
|
18
18
|
* @category Chain Grpc API
|
|
19
19
|
* @hidden
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UnspecifiedErrorCode, grpcErrorCodeToErrorCode, GrpcUnaryRequestException, } from '@injectivelabs/exceptions';
|
|
2
1
|
import { InjectiveAuctionV1Beta1Query } from '@injectivelabs/core-proto-ts';
|
|
3
|
-
import
|
|
2
|
+
import { UnspecifiedErrorCode, grpcErrorCodeToErrorCode, GrpcUnaryRequestException, } from '@injectivelabs/exceptions';
|
|
4
3
|
import { ChainModule } from '../types/index.js';
|
|
4
|
+
import BaseGrpcConsumer from '../../base/BaseGrpcConsumer.js';
|
|
5
5
|
import { ChainGrpcAuctionTransformer } from '../transformers/index.js';
|
|
6
6
|
/**
|
|
7
7
|
* @category Chain Grpc API
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CosmosAuthV1Beta1Query } from '@injectivelabs/core-proto-ts';
|
|
2
2
|
import BaseGrpcConsumer from '../../base/BaseGrpcConsumer.js';
|
|
3
|
-
import { PaginationOption } from '../../../types/pagination.js';
|
|
3
|
+
import type { PaginationOption } from '../../../types/pagination.js';
|
|
4
4
|
/**
|
|
5
5
|
* @category Chain Grpc API
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UnspecifiedErrorCode, grpcErrorCodeToErrorCode, GrpcUnaryRequestException, } from '@injectivelabs/exceptions';
|
|
2
1
|
import { CosmosAuthV1Beta1Query } from '@injectivelabs/core-proto-ts';
|
|
3
|
-
import
|
|
2
|
+
import { UnspecifiedErrorCode, grpcErrorCodeToErrorCode, GrpcUnaryRequestException, } from '@injectivelabs/exceptions';
|
|
4
3
|
import { ChainModule } from '../types/index.js';
|
|
4
|
+
import BaseGrpcConsumer from '../../base/BaseGrpcConsumer.js';
|
|
5
5
|
import { paginationRequestFromPagination } from '../../../utils/pagination.js';
|
|
6
6
|
import { ChainGrpcAuthTransformer } from '../transformers/ChainGrpcAuthTransformer.js';
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CosmosAuthzV1Beta1Query } from '@injectivelabs/core-proto-ts';
|
|
2
2
|
import BaseGrpcConsumer from '../../base/BaseGrpcConsumer.js';
|
|
3
|
-
import { PaginationOption } from '../../../types/pagination.js';
|
|
3
|
+
import type { PaginationOption } from '../../../types/pagination.js';
|
|
4
4
|
/**
|
|
5
5
|
* @category Chain Grpc API
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UnspecifiedErrorCode, grpcErrorCodeToErrorCode, GrpcUnaryRequestException, } from '@injectivelabs/exceptions';
|
|
2
1
|
import { CosmosAuthzV1Beta1Query } from '@injectivelabs/core-proto-ts';
|
|
3
|
-
import
|
|
2
|
+
import { UnspecifiedErrorCode, grpcErrorCodeToErrorCode, GrpcUnaryRequestException, } from '@injectivelabs/exceptions';
|
|
4
3
|
import { ChainModule } from '../types/index.js';
|
|
4
|
+
import BaseGrpcConsumer from '../../base/BaseGrpcConsumer.js';
|
|
5
5
|
import { paginationRequestFromPagination } from '../../../utils/pagination.js';
|
|
6
6
|
import { ChainGrpcAuthZTransformer } from '../transformers/ChainGrpcAuthZTransformer.js';
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CosmosBankV1Beta1Query } from '@injectivelabs/core-proto-ts';
|
|
2
2
|
import BaseGrpcConsumer from '../../base/BaseGrpcConsumer.js';
|
|
3
|
-
import { PaginationOption } from '../../../types/pagination.js';
|
|
3
|
+
import type { PaginationOption } from '../../../types/pagination.js';
|
|
4
4
|
/**
|
|
5
5
|
* @category Chain Grpc API
|
|
6
6
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { UnspecifiedErrorCode, grpcErrorCodeToErrorCode, GrpcUnaryRequestException, } from '@injectivelabs/exceptions';
|
|
2
1
|
import { CosmosBankV1Beta1Query } from '@injectivelabs/core-proto-ts';
|
|
3
|
-
import {
|
|
2
|
+
import { UnspecifiedErrorCode, grpcErrorCodeToErrorCode, GrpcUnaryRequestException, } from '@injectivelabs/exceptions';
|
|
3
|
+
import { ChainModule } from '../types/index.js';
|
|
4
4
|
import BaseGrpcConsumer from '../../base/BaseGrpcConsumer.js';
|
|
5
5
|
import { ChainGrpcBankTransformer } from '../transformers/index.js';
|
|
6
6
|
import { ChainGrpcCommonTransformer } from '../transformers/ChainGrpcCommonTransformer.js';
|
|
7
|
-
import {
|
|
7
|
+
import { fetchAllWithPagination, paginationRequestFromPagination, } from '../../../utils/pagination.js';
|
|
8
8
|
const MAX_LIMIT_FOR_SUPPLY = 10000;
|
|
9
9
|
/**
|
|
10
10
|
* @category Chain Grpc API
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Coin } from '@injectivelabs/ts-types';
|
|
2
1
|
import { CosmosDistributionV1Beta1Query } from '@injectivelabs/core-proto-ts';
|
|
3
2
|
import BaseGrpcConsumer from '../../base/BaseGrpcConsumer.js';
|
|
4
|
-
import {
|
|
3
|
+
import type { Coin } from '@injectivelabs/ts-types';
|
|
4
|
+
import type { ValidatorRewards } from '../types/index.js';
|
|
5
5
|
/**
|
|
6
6
|
* @category Chain Grpc API
|
|
7
7
|
*/
|