carbon-js-sdk 0.7.2-beta.2 → 0.7.2
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/lib/CarbonSDK.js +6 -2
- package/lib/clients/BatchQueryClient.js +4 -4
- package/lib/clients/CarbonQueryClient.js +1 -1
- package/lib/clients/ETHClient.js +15 -15
- package/lib/clients/HydrogenClient.js +1 -1
- package/lib/clients/InsightsQueryClient.d.ts +7 -0
- package/lib/clients/InsightsQueryClient.js +17 -3
- package/lib/clients/NEOClient.js +12 -8
- package/lib/clients/TokenClient.js +2 -2
- package/lib/clients/ZILClient.js +17 -17
- package/lib/codec/adl/genesis.d.ts +3 -3
- package/lib/codec/admin/genesis.d.ts +3 -3
- package/lib/codec/admin/query.d.ts +6 -6
- package/lib/codec/admin/tx.d.ts +6 -6
- package/lib/codec/alliance/alliance.d.ts +5 -5
- package/lib/codec/alliance/delegations.d.ts +8 -8
- package/lib/codec/alliance/events.d.ts +6 -6
- package/lib/codec/alliance/genesis.d.ts +7 -7
- package/lib/codec/alliance/gov.d.ts +5 -5
- package/lib/codec/alliance/params.d.ts +4 -4
- package/lib/codec/alliance/query.d.ts +24 -24
- package/lib/codec/alliance/tx.d.ts +10 -10
- package/lib/codec/bank/event.d.ts +7 -7
- package/lib/codec/bank/genesis.d.ts +3 -3
- package/lib/codec/bank/query.d.ts +6 -6
- package/lib/codec/book/book.d.ts +6 -6
- package/lib/codec/book/event.d.ts +3 -3
- package/lib/codec/book/genesis.d.ts +3 -3
- package/lib/codec/book/legacy.d.ts +3 -3
- package/lib/codec/book/query.d.ts +12 -12
- package/lib/codec/broker/amm.d.ts +5 -5
- package/lib/codec/broker/candlestick.d.ts +3 -3
- package/lib/codec/broker/event.d.ts +4 -4
- package/lib/codec/broker/genesis.d.ts +3 -3
- package/lib/codec/broker/incoming_liquidations.d.ts +3 -3
- package/lib/codec/broker/pagination.d.ts +3 -3
- package/lib/codec/broker/query.d.ts +8 -8
- package/lib/codec/broker/tx.d.ts +5 -5
- package/lib/codec/btcx/denom_cross_chain_info.d.ts +3 -3
- package/lib/codec/btcx/denom_info.d.ts +3 -3
- package/lib/codec/btcx/genesis.d.ts +3 -3
- package/lib/codec/btcx/query.d.ts +6 -6
- package/lib/codec/btcx/tx.d.ts +8 -8
- package/lib/codec/carbon-models.js +5 -1
- package/lib/codec/ccm/ccm.d.ts +3 -3
- package/lib/codec/ccm/genesis.d.ts +7 -7
- package/lib/codec/ccm/query.d.ts +4 -4
- package/lib/codec/ccm/tx.d.ts +8 -8
- package/lib/codec/cdp/asset_params.d.ts +5 -5
- package/lib/codec/cdp/cdp_liquidations.d.ts +3 -3
- package/lib/codec/cdp/debt_info.d.ts +3 -3
- package/lib/codec/cdp/e_mode_category.d.ts +3 -3
- package/lib/codec/cdp/event.d.ts +36 -36
- package/lib/codec/cdp/genesis.d.ts +10 -10
- package/lib/codec/cdp/params.d.ts +3 -3
- package/lib/codec/cdp/query.d.ts +53 -53
- package/lib/codec/cdp/rate_strategy_params.d.ts +3 -3
- package/lib/codec/cdp/reward_scheme.d.ts +6 -6
- package/lib/codec/cdp/stablecoin_debt_info.d.ts +3 -3
- package/lib/codec/cdp/stablecoin_interest_info.d.ts +3 -3
- package/lib/codec/cdp/tx.d.ts +87 -87
- package/lib/codec/coin/bridge.d.ts +3 -3
- package/lib/codec/coin/event.d.ts +14 -14
- package/lib/codec/coin/genesis.d.ts +4 -4
- package/lib/codec/coin/group.d.ts +5 -5
- package/lib/codec/coin/proposal.d.ts +3 -3
- package/lib/codec/coin/query.d.ts +26 -26
- package/lib/codec/coin/token.d.ts +9 -9
- package/lib/codec/coin/tx.d.ts +48 -48
- package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +3 -3
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +4 -4
- package/lib/codec/cosmos/app/v1alpha1/module.d.ts +5 -5
- package/lib/codec/cosmos/app/v1alpha1/query.d.ts +4 -4
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +5 -5
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +20 -20
- package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +6 -6
- package/lib/codec/cosmos/authz/v1beta1/event.d.ts +4 -4
- package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +8 -8
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +8 -8
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +3 -3
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +9 -9
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +21 -21
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +6 -6
- package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +12 -12
- package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +4 -4
- package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +4 -4
- package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +4 -4
- package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +6 -6
- package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +28 -28
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +11 -11
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +5 -5
- package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +5 -5
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +21 -21
- package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +4 -4
- package/lib/codec/cosmos/base/v1beta1/coin.d.ts +6 -6
- package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +5 -5
- package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +4 -4
- package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +3 -3
- package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +7 -7
- package/lib/codec/cosmos/crypto/multisig/keys.d.ts +3 -3
- package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +4 -4
- package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +4 -4
- package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +4 -4
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +14 -14
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +10 -10
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +22 -22
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +10 -10
- package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +3 -3
- package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +6 -6
- package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +6 -6
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +8 -8
- package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +6 -6
- package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1/gov.d.ts +10 -10
- package/lib/codec/cosmos/gov/v1/query.d.ts +18 -18
- package/lib/codec/cosmos/gov/v1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1/tx.d.ts +12 -12
- package/lib/codec/cosmos/gov/v1/tx.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +11 -11
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +18 -18
- package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +10 -10
- package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/group/v1/events.d.ts +11 -11
- package/lib/codec/cosmos/group/v1/events.js +2 -2
- package/lib/codec/cosmos/group/v1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/group/v1/query.d.ts +30 -30
- package/lib/codec/cosmos/group/v1/tx.d.ts +30 -30
- package/lib/codec/cosmos/group/v1/tx.js +4 -4
- package/lib/codec/cosmos/group/v1/types.d.ts +13 -13
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +4 -4
- package/lib/codec/cosmos/mint/v1beta1/query.d.ts +8 -8
- package/lib/codec/cosmos/nft/v1beta1/event.d.ts +5 -5
- package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +4 -4
- package/lib/codec/cosmos/nft/v1beta1/query.d.ts +16 -16
- package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +3 -3
- package/lib/codec/cosmos/orm/v1/orm.d.ts +6 -6
- package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +4 -4
- package/lib/codec/cosmos/params/v1beta1/params.d.ts +4 -4
- package/lib/codec/cosmos/params/v1beta1/query.d.ts +7 -7
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +6 -6
- package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +8 -8
- package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +4 -4
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +4 -4
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +30 -30
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +22 -22
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +14 -14
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +7 -7
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +12 -12
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +15 -15
- package/lib/codec/cosmos/tx/v1beta1/tx.js +4 -4
- package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +12 -12
- package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +6 -6
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -6
- package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +8 -8
- package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +8 -8
- package/lib/codec/cosmos-models.js +5 -1
- package/lib/codec/erc20/erc20.d.ts +3 -3
- package/lib/codec/erc20/events.d.ts +6 -6
- package/lib/codec/erc20/genesis.d.ts +4 -4
- package/lib/codec/erc20/query.d.ts +8 -8
- package/lib/codec/erc20/tx.d.ts +16 -16
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +4 -4
- package/lib/codec/ethermint/evm/v1/events.d.ts +6 -6
- package/lib/codec/ethermint/evm/v1/evm.d.ts +10 -10
- package/lib/codec/ethermint/evm/v1/genesis.d.ts +4 -4
- package/lib/codec/ethermint/evm/v1/query.d.ts +26 -26
- package/lib/codec/ethermint/evm/v1/tx.d.ts +10 -10
- package/lib/codec/ethermint/feemarket/v1/events.d.ts +4 -4
- package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +3 -3
- package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +3 -3
- package/lib/codec/ethermint/feemarket/v1/query.d.ts +8 -8
- package/lib/codec/ethermint/feemarket/v1/tx.d.ts +4 -4
- package/lib/codec/ethermint/types/v1/account.d.ts +3 -3
- package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +3 -3
- package/lib/codec/ethermint/types/v1/indexer.d.ts +3 -3
- package/lib/codec/ethermint/types/v1/web3.d.ts +3 -3
- package/lib/codec/ethermint-models.js +5 -1
- package/lib/codec/evmbank/genesis.d.ts +4 -4
- package/lib/codec/evmbank/query.d.ts +4 -4
- package/lib/codec/evmcontract/genesis.d.ts +3 -3
- package/lib/codec/evmmerge/address.d.ts +3 -3
- package/lib/codec/evmmerge/event.d.ts +3 -3
- package/lib/codec/evmmerge/genesis.d.ts +5 -5
- package/lib/codec/evmmerge/offchain.d.ts +3 -3
- package/lib/codec/evmmerge/query.d.ts +6 -6
- package/lib/codec/evmmerge/tx.d.ts +4 -4
- package/lib/codec/fee/event.d.ts +3 -3
- package/lib/codec/fee/fee.d.ts +5 -5
- package/lib/codec/fee/genesis.d.ts +3 -3
- package/lib/codec/fee/proposal.d.ts +6 -6
- package/lib/codec/fee/query.d.ts +10 -10
- package/lib/codec/fee/tx.d.ts +10 -10
- package/lib/codec/google/protobuf/any.d.ts +3 -3
- package/lib/codec/google/protobuf/duration.d.ts +3 -3
- package/lib/codec/google/protobuf/timestamp.d.ts +3 -3
- package/lib/codec/google/protobuf/wrappers.d.ts +11 -11
- package/lib/codec/headersync/consensus_peers.d.ts +7 -7
- package/lib/codec/headersync/genesis.d.ts +7 -7
- package/lib/codec/headersync/query.d.ts +6 -6
- package/lib/codec/headersync/tx.d.ts +6 -6
- package/lib/codec/ibc/applications/fee/v1/ack.d.ts +3 -3
- package/lib/codec/ibc/applications/fee/v1/fee.d.ts +6 -6
- package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +7 -7
- package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +3 -3
- package/lib/codec/ibc/applications/fee/v1/query.d.ts +22 -22
- package/lib/codec/ibc/applications/fee/v1/tx.d.ts +10 -10
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +6 -6
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +6 -6
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +7 -7
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.d.ts +4 -4
- package/lib/codec/ibc/applications/interchain_accounts/v1/account.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/v1/packet.d.ts +4 -4
- package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +3 -3
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +12 -12
- package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +4 -4
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +4 -4
- package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +3 -3
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +9 -9
- package/lib/codec/ibc/core/channel/v1/genesis.d.ts +4 -4
- package/lib/codec/ibc/core/channel/v1/query.d.ts +28 -28
- package/lib/codec/ibc/core/channel/v1/tx.d.ts +22 -22
- package/lib/codec/ibc/core/client/v1/client.d.ts +9 -9
- package/lib/codec/ibc/core/client/v1/genesis.d.ts +5 -5
- package/lib/codec/ibc/core/client/v1/query.d.ts +20 -20
- package/lib/codec/ibc/core/client/v1/tx.d.ts +10 -10
- package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +6 -6
- package/lib/codec/ibc/core/connection/v1/connection.d.ts +9 -9
- package/lib/codec/ibc/core/connection/v1/genesis.d.ts +3 -3
- package/lib/codec/ibc/core/connection/v1/query.d.ts +14 -14
- package/lib/codec/ibc/core/connection/v1/tx.d.ts +10 -10
- package/lib/codec/ibc/core/types/v1/genesis.d.ts +3 -3
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts +3 -3
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts +18 -18
- package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +18 -18
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +7 -7
- package/lib/codec/ibc-models.js +5 -1
- package/lib/codec/index.js +5 -1
- package/lib/codec/inflation/genesis.d.ts +3 -3
- package/lib/codec/inflation/inflation.d.ts +3 -3
- package/lib/codec/inflation/query.d.ts +4 -4
- package/lib/codec/insurance/event.d.ts +3 -3
- package/lib/codec/insurance/fund.d.ts +4 -4
- package/lib/codec/insurance/genesis.d.ts +3 -3
- package/lib/codec/insurance/query.d.ts +4 -4
- package/lib/codec/insurance/tx.d.ts +4 -4
- package/lib/codec/leverage/event.d.ts +3 -3
- package/lib/codec/leverage/genesis.d.ts +3 -3
- package/lib/codec/leverage/leverage.d.ts +4 -4
- package/lib/codec/leverage/query.d.ts +6 -6
- package/lib/codec/leverage/tx.d.ts +4 -4
- package/lib/codec/liquidation/genesis.d.ts +4 -4
- package/lib/codec/liquidation/liquidation.d.ts +3 -3
- package/lib/codec/liquidation/outstanding_position.d.ts +4 -4
- package/lib/codec/liquidation/query.d.ts +6 -6
- package/lib/codec/liquidation/quote_changes.d.ts +3 -3
- package/lib/codec/liquiditypool/event.d.ts +15 -15
- package/lib/codec/liquiditypool/genesis.d.ts +3 -3
- package/lib/codec/liquiditypool/liquiditypool.d.ts +12 -12
- package/lib/codec/liquiditypool/proposal.d.ts +11 -11
- package/lib/codec/liquiditypool/query.d.ts +31 -31
- package/lib/codec/liquiditypool/reward.d.ts +18 -18
- package/lib/codec/liquiditypool/tx.d.ts +39 -39
- package/lib/codec/lockproxy/event.d.ts +4 -4
- package/lib/codec/lockproxy/genesis.d.ts +6 -6
- package/lib/codec/lockproxy/lockproxy.d.ts +3 -3
- package/lib/codec/lockproxy/query.d.ts +6 -6
- package/lib/codec/lockproxy/tx.d.ts +12 -12
- package/lib/codec/market/event.d.ts +3 -3
- package/lib/codec/market/fee.d.ts +7 -7
- package/lib/codec/market/genesis.d.ts +3 -3
- package/lib/codec/market/market.d.ts +7 -7
- package/lib/codec/market/proposal.d.ts +5 -5
- package/lib/codec/market/query.d.ts +20 -20
- package/lib/codec/market/tx.d.ts +21 -21
- package/lib/codec/marketstats/genesis.d.ts +3 -3
- package/lib/codec/marketstats/marketstats.d.ts +3 -3
- package/lib/codec/marketstats/params.d.ts +3 -3
- package/lib/codec/marketstats/query.d.ts +6 -6
- package/lib/codec/misc/block.d.ts +3 -3
- package/lib/codec/misc/message.d.ts +3 -3
- package/lib/codec/misc/message_type.d.ts +3 -3
- package/lib/codec/misc/query.d.ts +16 -16
- package/lib/codec/misc/trade.d.ts +3 -3
- package/lib/codec/misc/transaction.d.ts +4 -4
- package/lib/codec/oracle/event.d.ts +4 -4
- package/lib/codec/oracle/genesis.d.ts +3 -3
- package/lib/codec/oracle/oracle.d.ts +8 -8
- package/lib/codec/oracle/proposal.d.ts +3 -3
- package/lib/codec/oracle/query.d.ts +28 -28
- package/lib/codec/oracle/slashing.d.ts +4 -4
- package/lib/codec/oracle/tx.d.ts +14 -14
- package/lib/codec/order/event.d.ts +3 -3
- package/lib/codec/order/genesis.d.ts +6 -6
- package/lib/codec/order/order.d.ts +9 -9
- package/lib/codec/order/query.d.ts +12 -12
- package/lib/codec/order/tx.d.ts +12 -12
- package/lib/codec/perpspool/event.d.ts +9 -9
- package/lib/codec/perpspool/genesis.d.ts +6 -6
- package/lib/codec/perpspool/market.d.ts +8 -8
- package/lib/codec/perpspool/params.d.ts +3 -3
- package/lib/codec/perpspool/pool.d.ts +8 -8
- package/lib/codec/perpspool/query.d.ts +20 -20
- package/lib/codec/perpspool/tx.d.ts +18 -18
- package/lib/codec/polynetwork-models.js +5 -1
- package/lib/codec/position/event.d.ts +3 -3
- package/lib/codec/position/genesis.d.ts +3 -3
- package/lib/codec/position/position.d.ts +6 -6
- package/lib/codec/position/query.d.ts +8 -8
- package/lib/codec/position/tx.d.ts +4 -4
- package/lib/codec/pricing/event.d.ts +8 -8
- package/lib/codec/pricing/genesis.d.ts +3 -3
- package/lib/codec/pricing/legacy.d.ts +3 -3
- package/lib/codec/pricing/pricing.d.ts +5 -5
- package/lib/codec/pricing/proposal.d.ts +4 -4
- package/lib/codec/pricing/query.d.ts +16 -16
- package/lib/codec/pricing/tx.d.ts +12 -12
- package/lib/codec/profile/event.d.ts +3 -3
- package/lib/codec/profile/genesis.d.ts +3 -3
- package/lib/codec/profile/profile.d.ts +3 -3
- package/lib/codec/profile/query.d.ts +8 -8
- package/lib/codec/profile/tx.d.ts +4 -4
- package/lib/codec/proofs.d.ts +15 -15
- package/lib/codec/sequence/genesis.d.ts +4 -4
- package/lib/codec/sequence/query.d.ts +6 -6
- package/lib/codec/sequence/tx.d.ts +4 -4
- package/lib/codec/subaccount/genesis.d.ts +3 -3
- package/lib/codec/subaccount/legacy.d.ts +3 -3
- package/lib/codec/subaccount/query.d.ts +17 -17
- package/lib/codec/subaccount/subaccount.d.ts +6 -6
- package/lib/codec/subaccount/tx.d.ts +8 -8
- package/lib/codec/tendermint/abci/types.d.ts +46 -46
- package/lib/codec/tendermint/crypto/keys.d.ts +3 -3
- package/lib/codec/tendermint/crypto/proof.d.ts +7 -7
- package/lib/codec/tendermint/libs/bits/types.d.ts +3 -3
- package/lib/codec/tendermint/p2p/types.d.ts +6 -6
- package/lib/codec/tendermint/types/block.d.ts +3 -3
- package/lib/codec/tendermint/types/evidence.d.ts +6 -6
- package/lib/codec/tendermint/types/params.d.ts +8 -8
- package/lib/codec/tendermint/types/types.d.ts +15 -15
- package/lib/codec/tendermint/types/validator.d.ts +5 -5
- package/lib/codec/tendermint/version/types.d.ts +4 -4
- package/lib/constant/address.d.ts +1 -1
- package/lib/constant/generic.js +1 -1
- package/lib/constant/ibc.d.ts +3 -3
- package/lib/constant/ibc.js +5 -1
- package/lib/constant/index.js +5 -1
- package/lib/constant/node.d.ts +1 -1
- package/lib/eth/index.js +5 -1
- package/lib/hydrogen/index.js +5 -1
- package/lib/hydrogen/transfer.d.ts +2 -2
- package/lib/index.js +5 -1
- package/lib/insights/common.d.ts +2 -1
- package/lib/insights/common.js +1 -0
- package/lib/insights/competition.d.ts +15 -0
- package/lib/insights/index.js +5 -1
- package/lib/insights/position.d.ts +1 -1
- package/lib/modules/cdp.js +45 -45
- package/lib/modules/cosmwasm.js +2 -2
- package/lib/modules/evm.d.ts +1 -1
- package/lib/modules/evm.js +5 -5
- package/lib/modules/gov.js +12 -12
- package/lib/modules/index.js +5 -1
- package/lib/modules/liquiditypool.js +1 -1
- package/lib/modules/order.js +2 -2
- package/lib/modules/test.d.ts +0 -0
- package/lib/modules/test.js +1 -0
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
- package/lib/provider/account/EthLedgerAccount/index.js +5 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.js +5 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.d.ts +1 -1
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +8 -4
- package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/index.js +5 -1
- package/lib/provider/account/index.js +5 -1
- package/lib/provider/amino/types/admin.js +32 -28
- package/lib/provider/amino/types/bank.js +6 -2
- package/lib/provider/amino/types/broker.js +6 -2
- package/lib/provider/amino/types/cdp.js +31 -27
- package/lib/provider/amino/types/coin.js +9 -5
- package/lib/provider/amino/types/erc20.js +7 -3
- package/lib/provider/amino/types/evm.js +7 -3
- package/lib/provider/amino/types/evmmerge.js +6 -2
- package/lib/provider/amino/types/feemarket.js +6 -2
- package/lib/provider/amino/types/gov.js +10 -6
- package/lib/provider/amino/types/ibc.js +6 -2
- package/lib/provider/amino/types/leverage.js +6 -2
- package/lib/provider/amino/types/liquidityPool.js +12 -8
- package/lib/provider/amino/types/market.js +11 -7
- package/lib/provider/amino/types/oracle.js +7 -3
- package/lib/provider/amino/types/order.js +9 -5
- package/lib/provider/amino/types/perpspool.js +11 -7
- package/lib/provider/amino/types/position.js +6 -2
- package/lib/provider/amino/types/profile.js +6 -2
- package/lib/provider/amino/types/staking.js +9 -5
- package/lib/provider/amino/types/subaccount.js +8 -4
- package/lib/provider/amino/utils.d.ts +2 -2
- package/lib/provider/amino/utils.js +11 -11
- package/lib/provider/keplr/KeplrAccount.js +6 -6
- package/lib/provider/leap/LeapAccount.js +2 -2
- package/lib/provider/ledger/ledger.js +9 -6
- package/lib/provider/metamask/MetaMask.d.ts +1 -1
- package/lib/provider/metamask/MetaMask.js +28 -24
- package/lib/provider/metamask/error.d.ts +1 -1
- package/lib/provider/o3/O3Types.d.ts +1 -1
- package/lib/provider/o3/O3Wallet.js +15 -11
- package/lib/provider/o3/index.js +5 -1
- package/lib/provider/zilpay/Zilpay.js +4 -4
- package/lib/provider/zilpay/index.js +5 -1
- package/lib/util/address.d.ts +5 -5
- package/lib/util/address.js +19 -15
- package/lib/util/api.d.ts +3 -3
- package/lib/util/api.js +4 -4
- package/lib/util/blockchain.d.ts +7 -7
- package/lib/util/blockchain.js +4 -4
- package/lib/util/eip712.js +3 -3
- package/lib/util/fetch.js +1 -1
- package/lib/util/generic.d.ts +3 -2
- package/lib/util/generic.js +3 -3
- package/lib/util/gov.d.ts +1 -1
- package/lib/util/index.js +5 -1
- package/lib/util/legacyEIP712.d.ts +2 -2
- package/lib/util/legacyEIP712.js +2 -2
- package/lib/util/network.js +3 -3
- package/lib/util/number.d.ts +4 -4
- package/lib/util/number.js +5 -5
- package/lib/util/tx.d.ts +3 -3
- package/lib/util/tx.js +5 -1
- package/lib/util/type.d.ts +1 -1
- package/lib/wallet/CarbonSigner.d.ts +5 -5
- package/lib/wallet/CarbonSigner.js +6 -6
- package/lib/wallet/CarbonSigningClient.js +15 -15
- package/lib/wallet/CarbonWallet.d.ts +1 -1
- package/lib/wallet/CarbonWallet.js +11 -11
- package/lib/wallet/index.js +5 -1
- package/lib/websocket/connector.js +8 -4
- package/lib/websocket/index.js +5 -1
- package/lib/websocket/types.d.ts +1 -1
- package/package.json +1 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.d.ts +0 -76
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.js +0 -424
|
@@ -90,10 +90,10 @@ class CarbonSigningClient extends stargate_1.StargateClient {
|
|
|
90
90
|
*/
|
|
91
91
|
sign(signerAddress, messages, fee, memo, signerData) {
|
|
92
92
|
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
if (CarbonSigner_1.isCarbonEIP712Signer(this.signer) && this.signer.legacyEip712SignMode) {
|
|
93
|
+
if ((0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer) && this.signer.legacyEip712SignMode) {
|
|
94
94
|
return this.signLegacyEip712(signerAddress, messages, fee, memo, signerData);
|
|
95
95
|
}
|
|
96
|
-
return proto_signing_1.isOfflineDirectSigner(this.signer)
|
|
96
|
+
return (0, proto_signing_1.isOfflineDirectSigner)(this.signer)
|
|
97
97
|
? this.signDirect(signerAddress, messages, fee, memo, signerData)
|
|
98
98
|
: this.signAmino(signerAddress, messages, fee, memo, signerData);
|
|
99
99
|
});
|
|
@@ -102,11 +102,11 @@ class CarbonSigningClient extends stargate_1.StargateClient {
|
|
|
102
102
|
return __awaiter(this, void 0, void 0, function* () {
|
|
103
103
|
const signer = this.signer;
|
|
104
104
|
const accountFromSigner = (yield this.signer.getAccounts()).find((account) => account.address === signerAddress);
|
|
105
|
-
if (!CarbonSigner_1.isCarbonEIP712Signer(this.signer) && !accountFromSigner) {
|
|
105
|
+
if (!(0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer) && !accountFromSigner) {
|
|
106
106
|
throw new Error("Failed to retrieve account from signer");
|
|
107
107
|
}
|
|
108
108
|
const pubKeyBz = accountFromSigner ? accountFromSigner.pubkey : (yield this.signer.getAccounts())[0].pubkey;
|
|
109
|
-
const pubkey = CarbonSigner_1.isCarbonEIP712Signer(this.signer) ? ethermint_1.encodeAnyEthSecp256k1PubKey(pubKeyBz) : proto_signing_1.encodePubkey(amino_1.encodeSecp256k1Pubkey(pubKeyBz));
|
|
109
|
+
const pubkey = (0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer) ? (0, ethermint_1.encodeAnyEthSecp256k1PubKey)(pubKeyBz) : (0, proto_signing_1.encodePubkey)((0, amino_1.encodeSecp256k1Pubkey)(pubKeyBz));
|
|
110
110
|
const txBodyEncodeObject = {
|
|
111
111
|
typeUrl: "/cosmos.tx.v1beta1.TxBody",
|
|
112
112
|
value: Object.assign({ messages: messages, memo: memo }, (timeoutHeight && {
|
|
@@ -115,13 +115,13 @@ class CarbonSigningClient extends stargate_1.StargateClient {
|
|
|
115
115
|
};
|
|
116
116
|
const txBodyBytes = this.registry.encode(txBodyEncodeObject);
|
|
117
117
|
const gasLimit = math_1.Int53.fromString(fee.gas).toNumber();
|
|
118
|
-
const authInfoBytes = proto_signing_1.makeAuthInfoBytes([{ pubkey, sequence }], fee.amount, gasLimit, undefined, undefined);
|
|
119
|
-
const signDoc = proto_signing_1.makeSignDoc(txBodyBytes, authInfoBytes, chainId, accountNumber);
|
|
118
|
+
const authInfoBytes = (0, proto_signing_1.makeAuthInfoBytes)([{ pubkey, sequence }], fee.amount, gasLimit, undefined, undefined);
|
|
119
|
+
const signDoc = (0, proto_signing_1.makeSignDoc)(txBodyBytes, authInfoBytes, chainId, accountNumber);
|
|
120
120
|
const { signature, signed } = yield signer.signDirect(signerAddress, signDoc);
|
|
121
121
|
return tx_1.TxRaw.fromPartial({
|
|
122
122
|
bodyBytes: signed.bodyBytes,
|
|
123
123
|
authInfoBytes: signed.authInfoBytes,
|
|
124
|
-
signatures: [encoding_1.fromBase64(signature.signature)],
|
|
124
|
+
signatures: [(0, encoding_1.fromBase64)(signature.signature)],
|
|
125
125
|
});
|
|
126
126
|
});
|
|
127
127
|
}
|
|
@@ -129,11 +129,11 @@ class CarbonSigningClient extends stargate_1.StargateClient {
|
|
|
129
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
130
130
|
const signer = this.signer;
|
|
131
131
|
const accountFromSigner = (yield this.signer.getAccounts()).find((account) => account.address === signerAddress);
|
|
132
|
-
if (!CarbonSigner_1.isCarbonEIP712Signer(this.signer) && !accountFromSigner) {
|
|
132
|
+
if (!(0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer) && !accountFromSigner) {
|
|
133
133
|
throw new Error("Failed to retrieve account from signer");
|
|
134
134
|
}
|
|
135
135
|
const pubKeyBz = accountFromSigner ? accountFromSigner.pubkey : (yield this.signer.getAccounts())[0].pubkey;
|
|
136
|
-
const pubkey = CarbonSigner_1.isCarbonEIP712Signer(this.signer) ? ethermint_1.encodeAnyEthSecp256k1PubKey(pubKeyBz) : proto_signing_1.encodePubkey(amino_1.encodeSecp256k1Pubkey(pubKeyBz));
|
|
136
|
+
const pubkey = (0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer) ? (0, ethermint_1.encodeAnyEthSecp256k1PubKey)(pubKeyBz) : (0, proto_signing_1.encodePubkey)((0, amino_1.encodeSecp256k1Pubkey)(pubKeyBz));
|
|
137
137
|
const signMode = SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
|
|
138
138
|
const msgs = messages.map((msg) => this.aminoTypes.toAmino(msg));
|
|
139
139
|
const signDoc = makeSignDocAmino(msgs, fee, chainId, memo, accountNumber, sequence, timeoutHeight !== null && timeoutHeight !== void 0 ? timeoutHeight : 0);
|
|
@@ -148,11 +148,11 @@ class CarbonSigningClient extends stargate_1.StargateClient {
|
|
|
148
148
|
const signedTxBodyBytes = this.registry.encode(signedTxBodyEncodeObject);
|
|
149
149
|
const signedGasLimit = math_1.Int53.fromString(signed.fee.gas).toNumber();
|
|
150
150
|
const signedSequence = math_1.Int53.fromString(signed.sequence).toNumber();
|
|
151
|
-
const signedAuthInfoBytes = proto_signing_1.makeAuthInfoBytes([{ pubkey, sequence: signedSequence }], signed.fee.amount, signedGasLimit, undefined, undefined, signMode);
|
|
151
|
+
const signedAuthInfoBytes = (0, proto_signing_1.makeAuthInfoBytes)([{ pubkey, sequence: signedSequence }], signed.fee.amount, signedGasLimit, undefined, undefined, signMode);
|
|
152
152
|
return tx_1.TxRaw.fromPartial({
|
|
153
153
|
bodyBytes: signedTxBodyBytes,
|
|
154
154
|
authInfoBytes: signedAuthInfoBytes,
|
|
155
|
-
signatures: [encoding_1.fromBase64(signature.signature)],
|
|
155
|
+
signatures: [(0, encoding_1.fromBase64)(signature.signature)],
|
|
156
156
|
});
|
|
157
157
|
});
|
|
158
158
|
}
|
|
@@ -163,7 +163,7 @@ class CarbonSigningClient extends stargate_1.StargateClient {
|
|
|
163
163
|
}
|
|
164
164
|
const signer = this.signer;
|
|
165
165
|
const pubKeyBz = (yield this.signer.getAccounts())[0].pubkey;
|
|
166
|
-
const pubkey = ethermint_1.encodeAnyEthSecp256k1PubKey(pubKeyBz);
|
|
166
|
+
const pubkey = (0, ethermint_1.encodeAnyEthSecp256k1PubKey)(pubKeyBz);
|
|
167
167
|
const signMode = SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
|
|
168
168
|
const msgs = messages.map((msg) => this.aminoTypes.toAmino(msg));
|
|
169
169
|
const signDoc = makeSignDocAmino(msgs, fee, evmChainId, memo, accountNumber, sequence);
|
|
@@ -171,14 +171,14 @@ class CarbonSigningClient extends stargate_1.StargateClient {
|
|
|
171
171
|
const eip712ExtensionOptions = {
|
|
172
172
|
typeUrl: "/ethermint.types.v1.ExtensionOptionsWeb3Tx",
|
|
173
173
|
value: web3_1.ExtensionOptionsWeb3Tx.encode(web3_1.ExtensionOptionsWeb3Tx.fromPartial({
|
|
174
|
-
typedDataChainId: ethermint_1.parseChainId(evmChainId),
|
|
174
|
+
typedDataChainId: (0, ethermint_1.parseChainId)(evmChainId),
|
|
175
175
|
feePayer,
|
|
176
|
-
feePayerSig: encoding_1.fromBase64(signature.signature),
|
|
176
|
+
feePayerSig: (0, encoding_1.fromBase64)(signature.signature),
|
|
177
177
|
})).finish(),
|
|
178
178
|
};
|
|
179
179
|
const signedGasLimit = math_1.Int53.fromString(signed.fee.gas).toNumber();
|
|
180
180
|
const signedSequence = math_1.Int53.fromString(signed.sequence).toNumber();
|
|
181
|
-
const signedAuthInfoBytes = proto_signing_1.makeAuthInfoBytes([{ pubkey, sequence: signedSequence }], signed.fee.amount, signedGasLimit, undefined, undefined, signMode);
|
|
181
|
+
const signedAuthInfoBytes = (0, proto_signing_1.makeAuthInfoBytes)([{ pubkey, sequence: signedSequence }], signed.fee.amount, signedGasLimit, undefined, undefined, signMode);
|
|
182
182
|
const signedTxBody = {
|
|
183
183
|
messages: signed.msgs.map((msg) => this.aminoTypes.fromAmino(msg)),
|
|
184
184
|
memo: signed.memo,
|
|
@@ -50,7 +50,7 @@ export interface MetaMaskWalletOpts {
|
|
|
50
50
|
publicKeyMessage?: string;
|
|
51
51
|
publicKeyBase64?: string;
|
|
52
52
|
}
|
|
53
|
-
export
|
|
53
|
+
export type CarbonWalletInitOpts = CarbonWalletGenericOpts & ({
|
|
54
54
|
mnemonic: string;
|
|
55
55
|
privateKey?: string | Buffer;
|
|
56
56
|
signer?: CarbonSigner;
|
|
@@ -175,7 +175,7 @@ class CarbonWallet {
|
|
|
175
175
|
const fee = (_a = opts === null || opts === void 0 ? void 0 : opts.fee) !== null && _a !== void 0 ? _a : this.estimateTxFee(messages, feeDenom);
|
|
176
176
|
const txRaw = yield signingClient.sign(signerAddress, messages, fee, memo, signerData);
|
|
177
177
|
let sig;
|
|
178
|
-
if (CarbonSigner_1.isCarbonEIP712Signer(this.signer)) {
|
|
178
|
+
if ((0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer)) {
|
|
179
179
|
if (this.signer.legacyEip712SignMode) {
|
|
180
180
|
const feePayerSigBz = web3_1.ExtensionOptionsWeb3Tx.decode(tx_2.TxBody.decode(txRaw.bodyBytes).extensionOptions[0].value).feePayerSig;
|
|
181
181
|
sig = Uint8Array.from(Buffer.from(feePayerSigBz.slice(0, -1)));
|
|
@@ -183,11 +183,11 @@ class CarbonWallet {
|
|
|
183
183
|
else {
|
|
184
184
|
sig = txRaw.signatures[0];
|
|
185
185
|
}
|
|
186
|
-
signature = amino_1.encodeSecp256k1Signature(account.pubkey, sig);
|
|
186
|
+
signature = (0, amino_1.encodeSecp256k1Signature)(account.pubkey, sig);
|
|
187
187
|
signature = Object.assign(Object.assign({}, signature), { pub_key: Object.assign(Object.assign({}, signature.pub_key), { type: ethermint_1.ETH_SECP256K1_TYPE }) });
|
|
188
188
|
return txRaw;
|
|
189
189
|
}
|
|
190
|
-
signature = amino_1.encodeSecp256k1Signature(account.pubkey, txRaw.signatures[0]);
|
|
190
|
+
signature = (0, amino_1.encodeSecp256k1Signature)(account.pubkey, txRaw.signatures[0]);
|
|
191
191
|
return txRaw;
|
|
192
192
|
}
|
|
193
193
|
finally {
|
|
@@ -226,7 +226,7 @@ class CarbonWallet {
|
|
|
226
226
|
const tx = CarbonWallet.TxRaw.encode(txRaw).finish();
|
|
227
227
|
const carbonClient = this.getSigningClient();
|
|
228
228
|
const response = yield carbonClient.broadcastTx(tx, timeoutMs, pollIntervalMs);
|
|
229
|
-
if (stargate_1.isDeliverTxFailure(response)) {
|
|
229
|
+
if ((0, stargate_1.isDeliverTxFailure)(response)) {
|
|
230
230
|
// tx failed
|
|
231
231
|
throw new tx_1.CarbonCustomError(`[${response.code}] ${response.rawLog}`, tx_1.ErrorType.BLOCK_FAIL, response);
|
|
232
232
|
}
|
|
@@ -242,7 +242,7 @@ class CarbonWallet {
|
|
|
242
242
|
const tx = CarbonWallet.TxRaw.encode(txRaw).finish();
|
|
243
243
|
const tmClient = this.getTmClient();
|
|
244
244
|
const response = yield tmClient.broadcastTxSync({ tx });
|
|
245
|
-
if (!responses_1.broadcastTxSyncSuccess(response)) {
|
|
245
|
+
if (!(0, responses_1.broadcastTxSyncSuccess)(response)) {
|
|
246
246
|
// tx failed
|
|
247
247
|
throw new tx_1.CarbonCustomError(`[${response.code}] ${response.log}`, tx_1.ErrorType.BROADCAST_FAIL, response);
|
|
248
248
|
}
|
|
@@ -283,12 +283,12 @@ class CarbonWallet {
|
|
|
283
283
|
|| ((_a = this.accountInfo) === null || _a === void 0 ? void 0 : _a.address) === this.evmBech32Address // refresh to check if carbon acc is present
|
|
284
284
|
|| this.sequenceInvalidated)
|
|
285
285
|
yield this.reloadAccountSequence();
|
|
286
|
-
const heightResponse = yield fetch_1.fetch(`${this.networkConfig.tmRpcUrl}/blockchain?cache=${new Date().getTime()}`);
|
|
286
|
+
const heightResponse = yield (0, fetch_1.fetch)(`${this.networkConfig.tmRpcUrl}/blockchain?cache=${new Date().getTime()}`);
|
|
287
287
|
const heightRes = yield heightResponse.json();
|
|
288
|
-
const height = number_1.bnOrZero((_b = heightRes.result) === null || _b === void 0 ? void 0 : _b.last_height);
|
|
288
|
+
const height = (0, number_1.bnOrZero)((_b = heightRes.result) === null || _b === void 0 ? void 0 : _b.last_height);
|
|
289
289
|
let timeoutHeight;
|
|
290
290
|
// timeoutHeight is not supported for EIP-712
|
|
291
|
-
if (!CarbonSigner_1.isCarbonEIP712Signer(this.signer)) {
|
|
291
|
+
if (!(0, CarbonSigner_1.isCarbonEIP712Signer)(this.signer)) {
|
|
292
292
|
timeoutHeight = height.isZero() ? undefined : height.toNumber() + this.defaultTimeoutBlocks;
|
|
293
293
|
}
|
|
294
294
|
let sequence;
|
|
@@ -443,7 +443,7 @@ class CarbonWallet {
|
|
|
443
443
|
catch (err) {
|
|
444
444
|
const error = err;
|
|
445
445
|
if (this.isTxHashNotFound(error, txId)) {
|
|
446
|
-
yield utils_1.sleep(pollIntervalMs);
|
|
446
|
+
yield (0, utils_1.sleep)(pollIntervalMs);
|
|
447
447
|
return pollForTx(txId);
|
|
448
448
|
}
|
|
449
449
|
throw err;
|
|
@@ -550,12 +550,12 @@ class CarbonWallet {
|
|
|
550
550
|
const queryClient = this.getQueryClient();
|
|
551
551
|
const { msgGasCosts } = yield queryClient.fee.MsgGasCostAll({});
|
|
552
552
|
this.txGasCosts = msgGasCosts.reduce((result, item) => {
|
|
553
|
-
result[item.msgType] = number_1.bnOrZero(item.gasCost);
|
|
553
|
+
result[item.msgType] = (0, number_1.bnOrZero)(item.gasCost);
|
|
554
554
|
return result;
|
|
555
555
|
}, {});
|
|
556
556
|
const { minGasPrices } = yield queryClient.fee.MinGasPriceAll({});
|
|
557
557
|
this.txGasPrices = minGasPrices.reduce((result, item) => {
|
|
558
|
-
result[item.denom] = number_1.bnOrZero(item.gasPrice).shiftedBy(-18); // sdk.Dec shifting
|
|
558
|
+
result[item.denom] = (0, number_1.bnOrZero)(item.gasPrice).shiftedBy(-18); // sdk.Dec shifting
|
|
559
559
|
return result;
|
|
560
560
|
}, {});
|
|
561
561
|
if (!this.txGasPrices[this.defaultFeeDenom]) {
|
package/lib/wallet/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -171,7 +175,7 @@ class WSConnector {
|
|
|
171
175
|
params = [params]; // eslint-disable-line no-param-reassign
|
|
172
176
|
}
|
|
173
177
|
for (const param of params) {
|
|
174
|
-
const channelId = channel_1.generateChannelId(param);
|
|
178
|
+
const channelId = (0, channel_1.generateChannelId)(param);
|
|
175
179
|
const shouldSubscribe = this.channelHandlers[channelId] === undefined;
|
|
176
180
|
this.channelHandlers[channelId] = handler;
|
|
177
181
|
if (shouldSubscribe) {
|
|
@@ -193,7 +197,7 @@ class WSConnector {
|
|
|
193
197
|
}
|
|
194
198
|
const channelIds = [];
|
|
195
199
|
for (const param of params) {
|
|
196
|
-
const channelId = channel_1.generateChannelId(param);
|
|
200
|
+
const channelId = (0, channel_1.generateChannelId)(param);
|
|
197
201
|
const shouldUnsubscribe = this.channelHandlers[channelId] !== undefined;
|
|
198
202
|
delete this.channelHandlers[channelId];
|
|
199
203
|
if (shouldUnsubscribe) {
|
|
@@ -281,7 +285,7 @@ class WSConnector {
|
|
|
281
285
|
if (!channelHandler) {
|
|
282
286
|
this.debugLog(`handler not found for channel: ${message.channel}`);
|
|
283
287
|
try {
|
|
284
|
-
const params = channel_1.parseChannelId(message.channel);
|
|
288
|
+
const params = (0, channel_1.parseChannelId)(message.channel);
|
|
285
289
|
this.unsubscribe({ channel: params.channel });
|
|
286
290
|
}
|
|
287
291
|
catch (error) {
|
package/lib/websocket/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/websocket/types.d.ts
CHANGED
|
@@ -230,4 +230,4 @@ export interface WsSubscribeTokenSupplyByDenom extends WsSubscribeParams {
|
|
|
230
230
|
}
|
|
231
231
|
export interface WsSubscribeMarketLiquidityUsageMultiplier extends WsSubscribeParams {
|
|
232
232
|
}
|
|
233
|
-
export
|
|
233
|
+
export type WsSubscriptionParams = WsSubscribeCandlesticksParams | WsSubscribeBooksParams | WsSubscribeRecentTradesParams | WsSubscribeOrdersAllParams | WsSubscribeOrdersByMarketParams | WsSubscribeWalletBalanceParams | WsSubscribeAccountTradesAllParams | WsSubscribeAccountTradesByMarketParams | WsSubscribeMarketStatsAllParams | WsSubscribeMarketStatsByMarketParams | WsSubscribeLeveragesAllParams | WsSubscribeLeveragesByMarketParams | WsSubscribePositionsAllParams | WsSubscribePositionsByMarketParams | WsSubscribePoolsAllParams | WsSubscribePoolsByIdParams | WsSubscribeTokenPrices | WsSubscribeAllTokenPrices | WsSubscribeCommitmentParams | WsUnsubscribeCandlesticksParams | WsSubscribeCDPBorrows | WsSubscribeCDPCollaterals | WsSubscribeCDPLiquidateCollaterals | WsSubscribeTokenDebts | WsSubscribeTokenDebtByDenom | WsSubscribeRewardSchemes | WsSubscribeRewardDebts | WsSubscribeCDPTokenSupply | WsSubscribeCDPTokenSupplyByDenom | WsSubscribeTokenSupplyByDenom | WsSubscribeMarketLiquidityUsageMultiplier;
|
package/package.json
CHANGED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import Long from "long";
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params } from "../controller/v1/controller";
|
|
4
|
-
import { Params as Params1 } from "../host/v1/host";
|
|
5
|
-
export declare const protobufPackage = "ibc.applications.interchain_accounts.v1";
|
|
6
|
-
/** GenesisState defines the interchain accounts genesis state */
|
|
7
|
-
export interface GenesisState {
|
|
8
|
-
controllerGenesisState?: ControllerGenesisState;
|
|
9
|
-
hostGenesisState?: HostGenesisState;
|
|
10
|
-
}
|
|
11
|
-
/** ControllerGenesisState defines the interchain accounts controller genesis state */
|
|
12
|
-
export interface ControllerGenesisState {
|
|
13
|
-
activeChannels: ActiveChannel[];
|
|
14
|
-
interchainAccounts: RegisteredInterchainAccount[];
|
|
15
|
-
ports: string[];
|
|
16
|
-
params?: Params;
|
|
17
|
-
}
|
|
18
|
-
/** HostGenesisState defines the interchain accounts host genesis state */
|
|
19
|
-
export interface HostGenesisState {
|
|
20
|
-
activeChannels: ActiveChannel[];
|
|
21
|
-
interchainAccounts: RegisteredInterchainAccount[];
|
|
22
|
-
port: string;
|
|
23
|
-
params?: Params1;
|
|
24
|
-
}
|
|
25
|
-
/** ActiveChannel contains a connection ID, port ID and associated active channel ID */
|
|
26
|
-
export interface ActiveChannel {
|
|
27
|
-
connectionId: string;
|
|
28
|
-
portId: string;
|
|
29
|
-
channelId: string;
|
|
30
|
-
}
|
|
31
|
-
/** RegisteredInterchainAccount contains a connection ID, port ID and associated interchain account address */
|
|
32
|
-
export interface RegisteredInterchainAccount {
|
|
33
|
-
connectionId: string;
|
|
34
|
-
portId: string;
|
|
35
|
-
accountAddress: string;
|
|
36
|
-
}
|
|
37
|
-
export declare const GenesisState: {
|
|
38
|
-
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
39
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
|
|
40
|
-
fromJSON(object: any): GenesisState;
|
|
41
|
-
toJSON(message: GenesisState): unknown;
|
|
42
|
-
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
|
43
|
-
};
|
|
44
|
-
export declare const ControllerGenesisState: {
|
|
45
|
-
encode(message: ControllerGenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
46
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ControllerGenesisState;
|
|
47
|
-
fromJSON(object: any): ControllerGenesisState;
|
|
48
|
-
toJSON(message: ControllerGenesisState): unknown;
|
|
49
|
-
fromPartial(object: DeepPartial<ControllerGenesisState>): ControllerGenesisState;
|
|
50
|
-
};
|
|
51
|
-
export declare const HostGenesisState: {
|
|
52
|
-
encode(message: HostGenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
53
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): HostGenesisState;
|
|
54
|
-
fromJSON(object: any): HostGenesisState;
|
|
55
|
-
toJSON(message: HostGenesisState): unknown;
|
|
56
|
-
fromPartial(object: DeepPartial<HostGenesisState>): HostGenesisState;
|
|
57
|
-
};
|
|
58
|
-
export declare const ActiveChannel: {
|
|
59
|
-
encode(message: ActiveChannel, writer?: _m0.Writer): _m0.Writer;
|
|
60
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ActiveChannel;
|
|
61
|
-
fromJSON(object: any): ActiveChannel;
|
|
62
|
-
toJSON(message: ActiveChannel): unknown;
|
|
63
|
-
fromPartial(object: DeepPartial<ActiveChannel>): ActiveChannel;
|
|
64
|
-
};
|
|
65
|
-
export declare const RegisteredInterchainAccount: {
|
|
66
|
-
encode(message: RegisteredInterchainAccount, writer?: _m0.Writer): _m0.Writer;
|
|
67
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): RegisteredInterchainAccount;
|
|
68
|
-
fromJSON(object: any): RegisteredInterchainAccount;
|
|
69
|
-
toJSON(message: RegisteredInterchainAccount): unknown;
|
|
70
|
-
fromPartial(object: DeepPartial<RegisteredInterchainAccount>): RegisteredInterchainAccount;
|
|
71
|
-
};
|
|
72
|
-
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
73
|
-
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
74
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
75
|
-
} : Partial<T>;
|
|
76
|
-
export {};
|