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
|
@@ -1,424 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.RegisteredInterchainAccount = exports.ActiveChannel = exports.HostGenesisState = exports.ControllerGenesisState = exports.GenesisState = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const long_1 = __importDefault(require("long"));
|
|
9
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const controller_1 = require("../controller/v1/controller");
|
|
11
|
-
const host_1 = require("../host/v1/host");
|
|
12
|
-
exports.protobufPackage = "ibc.applications.interchain_accounts.v1";
|
|
13
|
-
const baseGenesisState = {};
|
|
14
|
-
exports.GenesisState = {
|
|
15
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
16
|
-
if (message.controllerGenesisState !== undefined) {
|
|
17
|
-
exports.ControllerGenesisState.encode(message.controllerGenesisState, writer.uint32(10).fork()).ldelim();
|
|
18
|
-
}
|
|
19
|
-
if (message.hostGenesisState !== undefined) {
|
|
20
|
-
exports.HostGenesisState.encode(message.hostGenesisState, writer.uint32(18).fork()).ldelim();
|
|
21
|
-
}
|
|
22
|
-
return writer;
|
|
23
|
-
},
|
|
24
|
-
decode(input, length) {
|
|
25
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
26
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
27
|
-
const message = Object.assign({}, baseGenesisState);
|
|
28
|
-
while (reader.pos < end) {
|
|
29
|
-
const tag = reader.uint32();
|
|
30
|
-
switch (tag >>> 3) {
|
|
31
|
-
case 1:
|
|
32
|
-
message.controllerGenesisState = exports.ControllerGenesisState.decode(reader, reader.uint32());
|
|
33
|
-
break;
|
|
34
|
-
case 2:
|
|
35
|
-
message.hostGenesisState = exports.HostGenesisState.decode(reader, reader.uint32());
|
|
36
|
-
break;
|
|
37
|
-
default:
|
|
38
|
-
reader.skipType(tag & 7);
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return message;
|
|
43
|
-
},
|
|
44
|
-
fromJSON(object) {
|
|
45
|
-
const message = Object.assign({}, baseGenesisState);
|
|
46
|
-
message.controllerGenesisState =
|
|
47
|
-
object.controllerGenesisState !== undefined &&
|
|
48
|
-
object.controllerGenesisState !== null
|
|
49
|
-
? exports.ControllerGenesisState.fromJSON(object.controllerGenesisState)
|
|
50
|
-
: undefined;
|
|
51
|
-
message.hostGenesisState =
|
|
52
|
-
object.hostGenesisState !== undefined && object.hostGenesisState !== null
|
|
53
|
-
? exports.HostGenesisState.fromJSON(object.hostGenesisState)
|
|
54
|
-
: undefined;
|
|
55
|
-
return message;
|
|
56
|
-
},
|
|
57
|
-
toJSON(message) {
|
|
58
|
-
const obj = {};
|
|
59
|
-
message.controllerGenesisState !== undefined &&
|
|
60
|
-
(obj.controllerGenesisState = message.controllerGenesisState
|
|
61
|
-
? exports.ControllerGenesisState.toJSON(message.controllerGenesisState)
|
|
62
|
-
: undefined);
|
|
63
|
-
message.hostGenesisState !== undefined &&
|
|
64
|
-
(obj.hostGenesisState = message.hostGenesisState
|
|
65
|
-
? exports.HostGenesisState.toJSON(message.hostGenesisState)
|
|
66
|
-
: undefined);
|
|
67
|
-
return obj;
|
|
68
|
-
},
|
|
69
|
-
fromPartial(object) {
|
|
70
|
-
const message = Object.assign({}, baseGenesisState);
|
|
71
|
-
message.controllerGenesisState =
|
|
72
|
-
object.controllerGenesisState !== undefined &&
|
|
73
|
-
object.controllerGenesisState !== null
|
|
74
|
-
? exports.ControllerGenesisState.fromPartial(object.controllerGenesisState)
|
|
75
|
-
: undefined;
|
|
76
|
-
message.hostGenesisState =
|
|
77
|
-
object.hostGenesisState !== undefined && object.hostGenesisState !== null
|
|
78
|
-
? exports.HostGenesisState.fromPartial(object.hostGenesisState)
|
|
79
|
-
: undefined;
|
|
80
|
-
return message;
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
const baseControllerGenesisState = { ports: "" };
|
|
84
|
-
exports.ControllerGenesisState = {
|
|
85
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
-
for (const v of message.activeChannels) {
|
|
87
|
-
exports.ActiveChannel.encode(v, writer.uint32(10).fork()).ldelim();
|
|
88
|
-
}
|
|
89
|
-
for (const v of message.interchainAccounts) {
|
|
90
|
-
exports.RegisteredInterchainAccount.encode(v, writer.uint32(18).fork()).ldelim();
|
|
91
|
-
}
|
|
92
|
-
for (const v of message.ports) {
|
|
93
|
-
writer.uint32(26).string(v);
|
|
94
|
-
}
|
|
95
|
-
if (message.params !== undefined) {
|
|
96
|
-
controller_1.Params.encode(message.params, writer.uint32(34).fork()).ldelim();
|
|
97
|
-
}
|
|
98
|
-
return writer;
|
|
99
|
-
},
|
|
100
|
-
decode(input, length) {
|
|
101
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
102
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
103
|
-
const message = Object.assign({}, baseControllerGenesisState);
|
|
104
|
-
message.activeChannels = [];
|
|
105
|
-
message.interchainAccounts = [];
|
|
106
|
-
message.ports = [];
|
|
107
|
-
while (reader.pos < end) {
|
|
108
|
-
const tag = reader.uint32();
|
|
109
|
-
switch (tag >>> 3) {
|
|
110
|
-
case 1:
|
|
111
|
-
message.activeChannels.push(exports.ActiveChannel.decode(reader, reader.uint32()));
|
|
112
|
-
break;
|
|
113
|
-
case 2:
|
|
114
|
-
message.interchainAccounts.push(exports.RegisteredInterchainAccount.decode(reader, reader.uint32()));
|
|
115
|
-
break;
|
|
116
|
-
case 3:
|
|
117
|
-
message.ports.push(reader.string());
|
|
118
|
-
break;
|
|
119
|
-
case 4:
|
|
120
|
-
message.params = controller_1.Params.decode(reader, reader.uint32());
|
|
121
|
-
break;
|
|
122
|
-
default:
|
|
123
|
-
reader.skipType(tag & 7);
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return message;
|
|
128
|
-
},
|
|
129
|
-
fromJSON(object) {
|
|
130
|
-
var _a, _b, _c;
|
|
131
|
-
const message = Object.assign({}, baseControllerGenesisState);
|
|
132
|
-
message.activeChannels = ((_a = object.activeChannels) !== null && _a !== void 0 ? _a : []).map((e) => exports.ActiveChannel.fromJSON(e));
|
|
133
|
-
message.interchainAccounts = ((_b = object.interchainAccounts) !== null && _b !== void 0 ? _b : []).map((e) => exports.RegisteredInterchainAccount.fromJSON(e));
|
|
134
|
-
message.ports = ((_c = object.ports) !== null && _c !== void 0 ? _c : []).map((e) => String(e));
|
|
135
|
-
message.params =
|
|
136
|
-
object.params !== undefined && object.params !== null
|
|
137
|
-
? controller_1.Params.fromJSON(object.params)
|
|
138
|
-
: undefined;
|
|
139
|
-
return message;
|
|
140
|
-
},
|
|
141
|
-
toJSON(message) {
|
|
142
|
-
const obj = {};
|
|
143
|
-
if (message.activeChannels) {
|
|
144
|
-
obj.activeChannels = message.activeChannels.map((e) => e ? exports.ActiveChannel.toJSON(e) : undefined);
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
obj.activeChannels = [];
|
|
148
|
-
}
|
|
149
|
-
if (message.interchainAccounts) {
|
|
150
|
-
obj.interchainAccounts = message.interchainAccounts.map((e) => e ? exports.RegisteredInterchainAccount.toJSON(e) : undefined);
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
obj.interchainAccounts = [];
|
|
154
|
-
}
|
|
155
|
-
if (message.ports) {
|
|
156
|
-
obj.ports = message.ports.map((e) => e);
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
obj.ports = [];
|
|
160
|
-
}
|
|
161
|
-
message.params !== undefined &&
|
|
162
|
-
(obj.params = message.params ? controller_1.Params.toJSON(message.params) : undefined);
|
|
163
|
-
return obj;
|
|
164
|
-
},
|
|
165
|
-
fromPartial(object) {
|
|
166
|
-
var _a, _b, _c;
|
|
167
|
-
const message = Object.assign({}, baseControllerGenesisState);
|
|
168
|
-
message.activeChannels = ((_a = object.activeChannels) !== null && _a !== void 0 ? _a : []).map((e) => exports.ActiveChannel.fromPartial(e));
|
|
169
|
-
message.interchainAccounts = ((_b = object.interchainAccounts) !== null && _b !== void 0 ? _b : []).map((e) => exports.RegisteredInterchainAccount.fromPartial(e));
|
|
170
|
-
message.ports = ((_c = object.ports) !== null && _c !== void 0 ? _c : []).map((e) => e);
|
|
171
|
-
message.params =
|
|
172
|
-
object.params !== undefined && object.params !== null
|
|
173
|
-
? controller_1.Params.fromPartial(object.params)
|
|
174
|
-
: undefined;
|
|
175
|
-
return message;
|
|
176
|
-
},
|
|
177
|
-
};
|
|
178
|
-
const baseHostGenesisState = { port: "" };
|
|
179
|
-
exports.HostGenesisState = {
|
|
180
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
181
|
-
for (const v of message.activeChannels) {
|
|
182
|
-
exports.ActiveChannel.encode(v, writer.uint32(10).fork()).ldelim();
|
|
183
|
-
}
|
|
184
|
-
for (const v of message.interchainAccounts) {
|
|
185
|
-
exports.RegisteredInterchainAccount.encode(v, writer.uint32(18).fork()).ldelim();
|
|
186
|
-
}
|
|
187
|
-
if (message.port !== "") {
|
|
188
|
-
writer.uint32(26).string(message.port);
|
|
189
|
-
}
|
|
190
|
-
if (message.params !== undefined) {
|
|
191
|
-
host_1.Params.encode(message.params, writer.uint32(34).fork()).ldelim();
|
|
192
|
-
}
|
|
193
|
-
return writer;
|
|
194
|
-
},
|
|
195
|
-
decode(input, length) {
|
|
196
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
197
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
198
|
-
const message = Object.assign({}, baseHostGenesisState);
|
|
199
|
-
message.activeChannels = [];
|
|
200
|
-
message.interchainAccounts = [];
|
|
201
|
-
while (reader.pos < end) {
|
|
202
|
-
const tag = reader.uint32();
|
|
203
|
-
switch (tag >>> 3) {
|
|
204
|
-
case 1:
|
|
205
|
-
message.activeChannels.push(exports.ActiveChannel.decode(reader, reader.uint32()));
|
|
206
|
-
break;
|
|
207
|
-
case 2:
|
|
208
|
-
message.interchainAccounts.push(exports.RegisteredInterchainAccount.decode(reader, reader.uint32()));
|
|
209
|
-
break;
|
|
210
|
-
case 3:
|
|
211
|
-
message.port = reader.string();
|
|
212
|
-
break;
|
|
213
|
-
case 4:
|
|
214
|
-
message.params = host_1.Params.decode(reader, reader.uint32());
|
|
215
|
-
break;
|
|
216
|
-
default:
|
|
217
|
-
reader.skipType(tag & 7);
|
|
218
|
-
break;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
return message;
|
|
222
|
-
},
|
|
223
|
-
fromJSON(object) {
|
|
224
|
-
var _a, _b;
|
|
225
|
-
const message = Object.assign({}, baseHostGenesisState);
|
|
226
|
-
message.activeChannels = ((_a = object.activeChannels) !== null && _a !== void 0 ? _a : []).map((e) => exports.ActiveChannel.fromJSON(e));
|
|
227
|
-
message.interchainAccounts = ((_b = object.interchainAccounts) !== null && _b !== void 0 ? _b : []).map((e) => exports.RegisteredInterchainAccount.fromJSON(e));
|
|
228
|
-
message.port =
|
|
229
|
-
object.port !== undefined && object.port !== null
|
|
230
|
-
? String(object.port)
|
|
231
|
-
: "";
|
|
232
|
-
message.params =
|
|
233
|
-
object.params !== undefined && object.params !== null
|
|
234
|
-
? host_1.Params.fromJSON(object.params)
|
|
235
|
-
: undefined;
|
|
236
|
-
return message;
|
|
237
|
-
},
|
|
238
|
-
toJSON(message) {
|
|
239
|
-
const obj = {};
|
|
240
|
-
if (message.activeChannels) {
|
|
241
|
-
obj.activeChannels = message.activeChannels.map((e) => e ? exports.ActiveChannel.toJSON(e) : undefined);
|
|
242
|
-
}
|
|
243
|
-
else {
|
|
244
|
-
obj.activeChannels = [];
|
|
245
|
-
}
|
|
246
|
-
if (message.interchainAccounts) {
|
|
247
|
-
obj.interchainAccounts = message.interchainAccounts.map((e) => e ? exports.RegisteredInterchainAccount.toJSON(e) : undefined);
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
obj.interchainAccounts = [];
|
|
251
|
-
}
|
|
252
|
-
message.port !== undefined && (obj.port = message.port);
|
|
253
|
-
message.params !== undefined &&
|
|
254
|
-
(obj.params = message.params
|
|
255
|
-
? host_1.Params.toJSON(message.params)
|
|
256
|
-
: undefined);
|
|
257
|
-
return obj;
|
|
258
|
-
},
|
|
259
|
-
fromPartial(object) {
|
|
260
|
-
var _a, _b, _c;
|
|
261
|
-
const message = Object.assign({}, baseHostGenesisState);
|
|
262
|
-
message.activeChannels = ((_a = object.activeChannels) !== null && _a !== void 0 ? _a : []).map((e) => exports.ActiveChannel.fromPartial(e));
|
|
263
|
-
message.interchainAccounts = ((_b = object.interchainAccounts) !== null && _b !== void 0 ? _b : []).map((e) => exports.RegisteredInterchainAccount.fromPartial(e));
|
|
264
|
-
message.port = (_c = object.port) !== null && _c !== void 0 ? _c : "";
|
|
265
|
-
message.params =
|
|
266
|
-
object.params !== undefined && object.params !== null
|
|
267
|
-
? host_1.Params.fromPartial(object.params)
|
|
268
|
-
: undefined;
|
|
269
|
-
return message;
|
|
270
|
-
},
|
|
271
|
-
};
|
|
272
|
-
const baseActiveChannel = {
|
|
273
|
-
connectionId: "",
|
|
274
|
-
portId: "",
|
|
275
|
-
channelId: "",
|
|
276
|
-
};
|
|
277
|
-
exports.ActiveChannel = {
|
|
278
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
279
|
-
if (message.connectionId !== "") {
|
|
280
|
-
writer.uint32(10).string(message.connectionId);
|
|
281
|
-
}
|
|
282
|
-
if (message.portId !== "") {
|
|
283
|
-
writer.uint32(18).string(message.portId);
|
|
284
|
-
}
|
|
285
|
-
if (message.channelId !== "") {
|
|
286
|
-
writer.uint32(26).string(message.channelId);
|
|
287
|
-
}
|
|
288
|
-
return writer;
|
|
289
|
-
},
|
|
290
|
-
decode(input, length) {
|
|
291
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
292
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
293
|
-
const message = Object.assign({}, baseActiveChannel);
|
|
294
|
-
while (reader.pos < end) {
|
|
295
|
-
const tag = reader.uint32();
|
|
296
|
-
switch (tag >>> 3) {
|
|
297
|
-
case 1:
|
|
298
|
-
message.connectionId = reader.string();
|
|
299
|
-
break;
|
|
300
|
-
case 2:
|
|
301
|
-
message.portId = reader.string();
|
|
302
|
-
break;
|
|
303
|
-
case 3:
|
|
304
|
-
message.channelId = reader.string();
|
|
305
|
-
break;
|
|
306
|
-
default:
|
|
307
|
-
reader.skipType(tag & 7);
|
|
308
|
-
break;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
return message;
|
|
312
|
-
},
|
|
313
|
-
fromJSON(object) {
|
|
314
|
-
const message = Object.assign({}, baseActiveChannel);
|
|
315
|
-
message.connectionId =
|
|
316
|
-
object.connectionId !== undefined && object.connectionId !== null
|
|
317
|
-
? String(object.connectionId)
|
|
318
|
-
: "";
|
|
319
|
-
message.portId =
|
|
320
|
-
object.portId !== undefined && object.portId !== null
|
|
321
|
-
? String(object.portId)
|
|
322
|
-
: "";
|
|
323
|
-
message.channelId =
|
|
324
|
-
object.channelId !== undefined && object.channelId !== null
|
|
325
|
-
? String(object.channelId)
|
|
326
|
-
: "";
|
|
327
|
-
return message;
|
|
328
|
-
},
|
|
329
|
-
toJSON(message) {
|
|
330
|
-
const obj = {};
|
|
331
|
-
message.connectionId !== undefined &&
|
|
332
|
-
(obj.connectionId = message.connectionId);
|
|
333
|
-
message.portId !== undefined && (obj.portId = message.portId);
|
|
334
|
-
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
335
|
-
return obj;
|
|
336
|
-
},
|
|
337
|
-
fromPartial(object) {
|
|
338
|
-
var _a, _b, _c;
|
|
339
|
-
const message = Object.assign({}, baseActiveChannel);
|
|
340
|
-
message.connectionId = (_a = object.connectionId) !== null && _a !== void 0 ? _a : "";
|
|
341
|
-
message.portId = (_b = object.portId) !== null && _b !== void 0 ? _b : "";
|
|
342
|
-
message.channelId = (_c = object.channelId) !== null && _c !== void 0 ? _c : "";
|
|
343
|
-
return message;
|
|
344
|
-
},
|
|
345
|
-
};
|
|
346
|
-
const baseRegisteredInterchainAccount = {
|
|
347
|
-
connectionId: "",
|
|
348
|
-
portId: "",
|
|
349
|
-
accountAddress: "",
|
|
350
|
-
};
|
|
351
|
-
exports.RegisteredInterchainAccount = {
|
|
352
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
353
|
-
if (message.connectionId !== "") {
|
|
354
|
-
writer.uint32(10).string(message.connectionId);
|
|
355
|
-
}
|
|
356
|
-
if (message.portId !== "") {
|
|
357
|
-
writer.uint32(18).string(message.portId);
|
|
358
|
-
}
|
|
359
|
-
if (message.accountAddress !== "") {
|
|
360
|
-
writer.uint32(26).string(message.accountAddress);
|
|
361
|
-
}
|
|
362
|
-
return writer;
|
|
363
|
-
},
|
|
364
|
-
decode(input, length) {
|
|
365
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
366
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
367
|
-
const message = Object.assign({}, baseRegisteredInterchainAccount);
|
|
368
|
-
while (reader.pos < end) {
|
|
369
|
-
const tag = reader.uint32();
|
|
370
|
-
switch (tag >>> 3) {
|
|
371
|
-
case 1:
|
|
372
|
-
message.connectionId = reader.string();
|
|
373
|
-
break;
|
|
374
|
-
case 2:
|
|
375
|
-
message.portId = reader.string();
|
|
376
|
-
break;
|
|
377
|
-
case 3:
|
|
378
|
-
message.accountAddress = reader.string();
|
|
379
|
-
break;
|
|
380
|
-
default:
|
|
381
|
-
reader.skipType(tag & 7);
|
|
382
|
-
break;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
return message;
|
|
386
|
-
},
|
|
387
|
-
fromJSON(object) {
|
|
388
|
-
const message = Object.assign({}, baseRegisteredInterchainAccount);
|
|
389
|
-
message.connectionId =
|
|
390
|
-
object.connectionId !== undefined && object.connectionId !== null
|
|
391
|
-
? String(object.connectionId)
|
|
392
|
-
: "";
|
|
393
|
-
message.portId =
|
|
394
|
-
object.portId !== undefined && object.portId !== null
|
|
395
|
-
? String(object.portId)
|
|
396
|
-
: "";
|
|
397
|
-
message.accountAddress =
|
|
398
|
-
object.accountAddress !== undefined && object.accountAddress !== null
|
|
399
|
-
? String(object.accountAddress)
|
|
400
|
-
: "";
|
|
401
|
-
return message;
|
|
402
|
-
},
|
|
403
|
-
toJSON(message) {
|
|
404
|
-
const obj = {};
|
|
405
|
-
message.connectionId !== undefined &&
|
|
406
|
-
(obj.connectionId = message.connectionId);
|
|
407
|
-
message.portId !== undefined && (obj.portId = message.portId);
|
|
408
|
-
message.accountAddress !== undefined &&
|
|
409
|
-
(obj.accountAddress = message.accountAddress);
|
|
410
|
-
return obj;
|
|
411
|
-
},
|
|
412
|
-
fromPartial(object) {
|
|
413
|
-
var _a, _b, _c;
|
|
414
|
-
const message = Object.assign({}, baseRegisteredInterchainAccount);
|
|
415
|
-
message.connectionId = (_a = object.connectionId) !== null && _a !== void 0 ? _a : "";
|
|
416
|
-
message.portId = (_b = object.portId) !== null && _b !== void 0 ? _b : "";
|
|
417
|
-
message.accountAddress = (_c = object.accountAddress) !== null && _c !== void 0 ? _c : "";
|
|
418
|
-
return message;
|
|
419
|
-
},
|
|
420
|
-
};
|
|
421
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
422
|
-
minimal_1.default.util.Long = long_1.default;
|
|
423
|
-
minimal_1.default.configure();
|
|
424
|
-
}
|