carbon-js-sdk 0.7.13 → 0.8.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/lib/clients/CarbonQueryClient.d.ts +1 -1
- package/lib/clients/CarbonQueryClient.js +1 -1
- package/lib/clients/InsightsQueryClient.d.ts +1 -1
- package/lib/clients/InsightsQueryClient.js +2 -4
- package/lib/codec/Switcheo/carbon/book/event.d.ts +20 -1
- package/lib/codec/Switcheo/carbon/book/event.js +101 -19
- package/lib/codec/Switcheo/carbon/book/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/book/export.js +3 -1
- package/lib/codec/Switcheo/carbon/book/query.d.ts +12 -6
- package/lib/codec/Switcheo/carbon/book/query.js +18 -6
- package/lib/codec/Switcheo/carbon/broker/amm.d.ts +8 -0
- package/lib/codec/Switcheo/carbon/ccm/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/ccm/export.js +3 -1
- package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/ccm/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/cdp/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/cdp/export.js +3 -1
- package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +46 -1
- package/lib/codec/Switcheo/carbon/cdp/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +10 -4
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.js +54 -4
- package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +98 -0
- package/lib/codec/Switcheo/carbon/evmcontract/query.js +374 -1
- package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +103 -0
- package/lib/codec/Switcheo/carbon/evmcontract/tx.js +425 -1
- package/lib/codec/Switcheo/carbon/liquidation/export.d.ts +1 -2
- package/lib/codec/Switcheo/carbon/liquidation/export.js +1 -5
- package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +0 -25
- package/lib/codec/Switcheo/carbon/liquidation/query.js +1 -88
- package/lib/codec/Switcheo/carbon/liquiditypool/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/liquiditypool/export.js +6 -3
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +20 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.js +191 -1
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/market/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/market/export.js +6 -2
- package/lib/codec/Switcheo/carbon/market/query.d.ts +31 -0
- package/lib/codec/Switcheo/carbon/market/query.js +226 -1
- package/lib/codec/Switcheo/carbon/market/tx.d.ts +46 -2
- package/lib/codec/Switcheo/carbon/market/tx.js +100 -1
- package/lib/codec/Switcheo/carbon/marketstats/export.d.ts +1 -2
- package/lib/codec/Switcheo/carbon/marketstats/export.js +1 -5
- package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +4 -7
- package/lib/codec/Switcheo/carbon/marketstats/genesis.js +4 -21
- package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +0 -26
- package/lib/codec/Switcheo/carbon/marketstats/query.js +1 -88
- package/lib/codec/Switcheo/carbon/oracle/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/oracle/export.js +4 -1
- package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/oracle/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/order/export.d.ts +4 -3
- package/lib/codec/Switcheo/carbon/order/export.js +11 -4
- package/lib/codec/Switcheo/carbon/order/genesis.d.ts +10 -10
- package/lib/codec/Switcheo/carbon/order/genesis.js +16 -16
- package/lib/codec/Switcheo/carbon/order/order.d.ts +14 -14
- package/lib/codec/Switcheo/carbon/order/order.js +11 -11
- package/lib/codec/Switcheo/carbon/order/tx.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/order/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/perpspool/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/perpspool/export.js +3 -1
- package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +46 -1
- package/lib/codec/Switcheo/carbon/perpspool/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/position/export.d.ts +1 -0
- package/lib/codec/Switcheo/carbon/position/export.js +4 -1
- package/lib/codec/Switcheo/carbon/pricing/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/pricing/export.js +3 -1
- package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/pricing/tx.js +101 -1
- package/lib/codec/Switcheo/carbon/subaccount/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/subaccount/export.js +3 -1
- package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/subaccount/tx.js +101 -1
- package/lib/codec/carbon-models.d.ts +2 -1
- package/lib/codec/carbon-models.js +3 -2
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +26 -0
- package/lib/codec/cosmos/app/v1alpha1/config.js +94 -4
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +21 -0
- package/lib/codec/cosmos/auth/v1beta1/auth.js +92 -1
- package/lib/codec/cosmos/auth/v1beta1/export.d.ts +3 -2
- package/lib/codec/cosmos/auth/v1beta1/export.js +7 -1
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +54 -2
- package/lib/codec/cosmos/auth/v1beta1/query.js +120 -2
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +7 -0
- package/lib/codec/cosmos/bank/v1beta1/authz.js +18 -3
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +9 -0
- package/lib/codec/cosmos/bank/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/export.js +9 -1
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +9 -3
- package/lib/codec/cosmos/bank/v1beta1/genesis.js +17 -2
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +125 -5
- package/lib/codec/cosmos/bank/v1beta1/query.js +257 -1
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +102 -1
- package/lib/codec/cosmos/bank/v1beta1/tx.js +215 -2
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +8 -0
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +2 -1
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.js +39 -1
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +16 -46
- package/lib/codec/cosmos/consensus/v1/export.d.ts +2 -0
- package/lib/codec/cosmos/consensus/v1/export.js +9 -0
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +46 -1
- package/lib/codec/cosmos/crisis/v1beta1/tx.js +103 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +20 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js +16 -16
- package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/export.js +8 -1
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +32 -1
- package/lib/codec/cosmos/distribution/v1beta1/query.js +134 -1
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +103 -3
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +212 -1
- package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +4 -0
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +12 -1
- package/lib/codec/cosmos/evidence/v1beta1/query.js +14 -2
- package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +2 -0
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +25 -4
- package/lib/codec/cosmos/gov/v1/genesis.js +16 -0
- package/lib/codec/cosmos/gov/v1/gov.d.ts +83 -2
- package/lib/codec/cosmos/gov/v1/gov.js +231 -3
- package/lib/codec/cosmos/gov/v1/query.d.ts +30 -6
- package/lib/codec/cosmos/gov/v1/query.js +16 -0
- package/lib/codec/cosmos/gov/v1/tx.d.ts +74 -2
- package/lib/codec/cosmos/gov/v1/tx.js +131 -3
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +30 -5
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +4 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +13 -0
- package/lib/codec/cosmos/group/v1/events.d.ts +17 -1
- package/lib/codec/cosmos/group/v1/events.js +81 -1
- package/lib/codec/cosmos/group/v1/query.d.ts +5 -5
- package/lib/codec/cosmos/group/v1/tx.d.ts +25 -13
- package/lib/codec/cosmos/group/v1/tx.js +60 -34
- package/lib/codec/cosmos/group/v1/types.d.ts +26 -6
- package/lib/codec/cosmos/group/v1/types.js +27 -1
- package/lib/codec/cosmos/mint/v1beta1/export.d.ts +1 -0
- package/lib/codec/cosmos/mint/v1beta1/export.js +4 -1
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +1 -1
- package/lib/codec/cosmos/nft/v1beta1/event.d.ts +10 -0
- package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +1 -0
- package/lib/codec/cosmos/nft/v1beta1/query.d.ts +20 -0
- package/lib/codec/cosmos/slashing/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/export.js +3 -1
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +46 -0
- package/lib/codec/cosmos/slashing/v1beta1/tx.js +101 -1
- package/lib/codec/cosmos/staking/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/export.js +8 -2
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +36 -5
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +40 -1
- package/lib/codec/cosmos/staking/v1beta1/staking.js +212 -2
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +45 -1
- package/lib/codec/cosmos/staking/v1beta1/tx.js +100 -1
- package/lib/codec/cosmos/tx/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/tx/v1beta1/export.js +9 -1
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +164 -2
- package/lib/codec/cosmos/tx/v1beta1/service.js +407 -3
- package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +3 -3
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -4
- package/lib/codec/ethermint/evm/v1/export.d.ts +2 -1
- package/lib/codec/ethermint/evm/v1/export.js +8 -1
- package/lib/codec/ethermint/evm/v1/tx.d.ts +37 -1
- package/lib/codec/ethermint/evm/v1/tx.js +100 -1
- package/lib/codec/ethermint/feemarket/v1/export.d.ts +2 -0
- package/lib/codec/ethermint/feemarket/v1/export.js +7 -1
- package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +10 -0
- package/lib/codec/ethermint/feemarket/v1/feemarket.js +28 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +2 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +8 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +26 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +113 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +1 -6
- package/lib/codec/ibc/applications/transfer/v1/export.d.ts +2 -1
- package/lib/codec/ibc/applications/transfer/v1/export.js +8 -1
- package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +6 -0
- package/lib/codec/ibc/applications/transfer/v1/genesis.js +18 -2
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +56 -1
- package/lib/codec/ibc/applications/transfer/v1/query.js +210 -1
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +8 -4
- package/lib/codec/ibc/applications/transfer/v1/tx.js +35 -6
- package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +2 -0
- package/lib/codec/ibc/applications/transfer/v2/packet.js +14 -1
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +20 -0
- package/lib/codec/ibc/core/channel/v1/channel.js +78 -1
- package/lib/codec/ibc/core/channel/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/channel/v1/export.js +3 -2
- package/lib/codec/ibc/core/channel/v1/tx.d.ts +16 -12
- package/lib/codec/ibc/core/channel/v1/tx.js +62 -25
- package/lib/codec/ibc/core/client/v1/client.d.ts +5 -1
- package/lib/codec/ibc/core/client/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/client/v1/export.js +3 -1
- package/lib/codec/ibc/core/client/v1/query.d.ts +38 -1
- package/lib/codec/ibc/core/client/v1/query.js +137 -1
- package/lib/codec/ibc/core/client/v1/tx.d.ts +19 -6
- package/lib/codec/ibc/core/client/v1/tx.js +13 -11
- package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +1 -1
- package/lib/codec/ibc/core/commitment/v1/commitment.js +1 -1
- package/lib/codec/ibc/core/connection/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/connection/v1/export.js +3 -1
- package/lib/codec/ibc/core/connection/v1/query.d.ts +26 -1
- package/lib/codec/ibc/core/connection/v1/query.js +87 -1
- package/lib/codec/ibc/core/connection/v1/tx.d.ts +7 -2
- package/lib/codec/ibc/core/connection/v1/tx.js +38 -2
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +12 -5
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js +1 -1
- package/lib/codec/ibc-models.d.ts +3 -2
- package/lib/codec/ibc-models.js +4 -3
- package/lib/codec/index.d.ts +99 -20
- package/lib/codec/index.js +3371 -890
- package/lib/codec/tendermint/abci/types.d.ts +131 -84
- package/lib/codec/tendermint/abci/types.js +706 -350
- package/lib/codec/tendermint/types/params.d.ts +1 -8
- package/lib/codec/tendermint/types/params.js +13 -33
- package/lib/constant/signless.d.ts +2 -0
- package/lib/constant/signless.js +5 -0
- package/lib/insights/common.d.ts +1 -1
- package/lib/insights/common.js +1 -1
- package/lib/insights/funding.d.ts +13 -2
- package/lib/modules/evm.js +1 -1
- package/lib/modules/signless.d.ts +24 -0
- package/lib/modules/signless.js +108 -0
- package/lib/provider/amino/types/evm.js +1 -1
- package/lib/provider/amino/types/signless.d.ts +12 -0
- package/lib/provider/amino/types/signless.js +189 -0
- package/lib/util/signless.d.ts +11 -0
- package/lib/util/signless.js +92 -0
- package/lib/util/tx.d.ts +89 -7
- package/lib/wallet/CarbonWallet.js +6 -2
- package/package.json +1 -1
- package/lib/codec/adl/genesis.d.ts +0 -18
- package/lib/codec/adl/genesis.js +0 -46
- package/lib/codec/adl/query.d.ts +0 -12
- package/lib/codec/adl/query.js +0 -20
- package/lib/codec/adl/tx.d.ts +0 -12
- package/lib/codec/adl/tx.js +0 -20
- package/lib/codec/admin/export.d.ts +0 -2
- package/lib/codec/admin/export.js +0 -13
- package/lib/codec/admin/genesis.d.ts +0 -18
- package/lib/codec/admin/genesis.js +0 -46
- package/lib/codec/admin/query.d.ts +0 -62
- package/lib/codec/admin/query.js +0 -186
- package/lib/codec/admin/tx.d.ts +0 -62
- package/lib/codec/admin/tx.js +0 -198
- package/lib/codec/bank/event.d.ts +0 -65
- package/lib/codec/bank/event.js +0 -332
- package/lib/codec/bank/export.d.ts +0 -2
- package/lib/codec/bank/export.js +0 -14
- package/lib/codec/bank/genesis.d.ts +0 -18
- package/lib/codec/bank/genesis.js +0 -46
- package/lib/codec/bank/query.d.ts +0 -77
- package/lib/codec/bank/query.js +0 -459
- package/lib/codec/book/book.d.ts +0 -45
- package/lib/codec/book/book.js +0 -252
- package/lib/codec/book/event.d.ts +0 -22
- package/lib/codec/book/event.js +0 -113
- package/lib/codec/book/export.d.ts +0 -4
- package/lib/codec/book/export.js +0 -23
- package/lib/codec/book/genesis.d.ts +0 -25
- package/lib/codec/book/genesis.js +0 -79
- package/lib/codec/book/legacy.d.ts +0 -22
- package/lib/codec/book/legacy.js +0 -120
- package/lib/codec/book/query.d.ts +0 -94
- package/lib/codec/book/query.js +0 -383
- package/lib/codec/book/tx.d.ts +0 -12
- package/lib/codec/book/tx.js +0 -20
- package/lib/codec/broker/amm.d.ts +0 -22
- package/lib/codec/broker/amm.js +0 -151
- package/lib/codec/broker/candlestick.d.ts +0 -27
- package/lib/codec/broker/candlestick.js +0 -211
- package/lib/codec/broker/event.d.ts +0 -40
- package/lib/codec/broker/event.js +0 -397
- package/lib/codec/broker/export.d.ts +0 -7
- package/lib/codec/broker/export.js +0 -27
- package/lib/codec/broker/genesis.d.ts +0 -24
- package/lib/codec/broker/genesis.js +0 -64
- package/lib/codec/broker/incoming_liquidations.d.ts +0 -18
- package/lib/codec/broker/incoming_liquidations.js +0 -93
- package/lib/codec/broker/pagination.d.ts +0 -19
- package/lib/codec/broker/pagination.js +0 -78
- package/lib/codec/broker/query.d.ts +0 -107
- package/lib/codec/broker/query.js +0 -597
- package/lib/codec/broker/tx.d.ts +0 -53
- package/lib/codec/broker/tx.js +0 -176
- package/lib/codec/btcx/denom_cross_chain_info.d.ts +0 -21
- package/lib/codec/btcx/denom_cross_chain_info.js +0 -98
- package/lib/codec/btcx/denom_info.d.ts +0 -24
- package/lib/codec/btcx/denom_info.js +0 -140
- package/lib/codec/btcx/export.d.ts +0 -4
- package/lib/codec/btcx/export.js +0 -19
- package/lib/codec/btcx/genesis.d.ts +0 -18
- package/lib/codec/btcx/genesis.js +0 -46
- package/lib/codec/btcx/query.d.ts +0 -68
- package/lib/codec/btcx/query.js +0 -275
- package/lib/codec/btcx/tx.d.ts +0 -92
- package/lib/codec/btcx/tx.js +0 -436
- package/lib/codec/ccm/ccm.d.ts +0 -19
- package/lib/codec/ccm/ccm.js +0 -60
- package/lib/codec/ccm/export.d.ts +0 -4
- package/lib/codec/ccm/export.js +0 -20
- package/lib/codec/ccm/genesis.d.ts +0 -83
- package/lib/codec/ccm/genesis.js +0 -438
- package/lib/codec/ccm/query.d.ts +0 -45
- package/lib/codec/ccm/query.js +0 -197
- package/lib/codec/ccm/tx.d.ts +0 -97
- package/lib/codec/ccm/tx.js +0 -462
- package/lib/codec/cdp/asset_params.d.ts +0 -57
- package/lib/codec/cdp/asset_params.js +0 -411
- package/lib/codec/cdp/cdp_liquidations.d.ts +0 -32
- package/lib/codec/cdp/cdp_liquidations.js +0 -288
- package/lib/codec/cdp/debt_info.d.ts +0 -23
- package/lib/codec/cdp/debt_info.js +0 -158
- package/lib/codec/cdp/e_mode_category.d.ts +0 -23
- package/lib/codec/cdp/e_mode_category.js +0 -135
- package/lib/codec/cdp/event.d.ts +0 -439
- package/lib/codec/cdp/event.js +0 -2831
- package/lib/codec/cdp/export.d.ts +0 -13
- package/lib/codec/cdp/export.js +0 -210
- package/lib/codec/cdp/genesis.d.ts +0 -134
- package/lib/codec/cdp/genesis.js +0 -825
- package/lib/codec/cdp/params.d.ts +0 -70
- package/lib/codec/cdp/params.js +0 -220
- package/lib/codec/cdp/query.d.ts +0 -623
- package/lib/codec/cdp/query.js +0 -3012
- package/lib/codec/cdp/rate_strategy_params.d.ts +0 -26
- package/lib/codec/cdp/rate_strategy_params.js +0 -180
- package/lib/codec/cdp/reward_scheme.d.ts +0 -71
- package/lib/codec/cdp/reward_scheme.js +0 -550
- package/lib/codec/cdp/stablecoin_debt_info.d.ts +0 -22
- package/lib/codec/cdp/stablecoin_debt_info.js +0 -144
- package/lib/codec/cdp/stablecoin_interest_info.d.ts +0 -19
- package/lib/codec/cdp/stablecoin_interest_info.js +0 -99
- package/lib/codec/cdp/tx.d.ts +0 -1004
- package/lib/codec/cdp/tx.js +0 -5107
- package/lib/codec/coin/bridge.d.ts +0 -24
- package/lib/codec/coin/bridge.js +0 -151
- package/lib/codec/coin/event.d.ts +0 -143
- package/lib/codec/coin/event.js +0 -775
- package/lib/codec/coin/export.d.ts +0 -8
- package/lib/codec/coin/export.js +0 -107
- package/lib/codec/coin/genesis.d.ts +0 -42
- package/lib/codec/coin/genesis.js +0 -207
- package/lib/codec/coin/group.d.ts +0 -50
- package/lib/codec/coin/group.js +0 -230
- package/lib/codec/coin/proposal.d.ts +0 -21
- package/lib/codec/coin/proposal.js +0 -91
- package/lib/codec/coin/query.d.ts +0 -310
- package/lib/codec/coin/query.js +0 -1439
- package/lib/codec/coin/token.d.ts +0 -103
- package/lib/codec/coin/token.js +0 -681
- package/lib/codec/coin/tx.d.ts +0 -586
- package/lib/codec/coin/tx.js +0 -3131
- package/lib/codec/erc20/erc20.d.ts +0 -41
- package/lib/codec/erc20/erc20.js +0 -144
- package/lib/codec/erc20/events.d.ts +0 -76
- package/lib/codec/erc20/events.js +0 -330
- package/lib/codec/erc20/export.d.ts +0 -5
- package/lib/codec/erc20/export.js +0 -37
- package/lib/codec/erc20/genesis.d.ts +0 -40
- package/lib/codec/erc20/genesis.js +0 -139
- package/lib/codec/erc20/query.d.ts +0 -117
- package/lib/codec/erc20/query.js +0 -333
- package/lib/codec/erc20/tx.d.ts +0 -232
- package/lib/codec/erc20/tx.js +0 -765
- package/lib/codec/evmbank/export.d.ts +0 -2
- package/lib/codec/evmbank/export.js +0 -8
- package/lib/codec/evmbank/genesis.d.ts +0 -32
- package/lib/codec/evmbank/genesis.js +0 -152
- package/lib/codec/evmbank/query.d.ts +0 -40
- package/lib/codec/evmbank/query.js +0 -116
- package/lib/codec/evmcontract/genesis.d.ts +0 -18
- package/lib/codec/evmcontract/genesis.js +0 -46
- package/lib/codec/evmcontract/query.d.ts +0 -12
- package/lib/codec/evmcontract/query.js +0 -20
- package/lib/codec/evmcontract/tx.d.ts +0 -12
- package/lib/codec/evmcontract/tx.js +0 -20
- package/lib/codec/evmmerge/address.d.ts +0 -19
- package/lib/codec/evmmerge/address.js +0 -75
- package/lib/codec/evmmerge/event.d.ts +0 -20
- package/lib/codec/evmmerge/event.js +0 -90
- package/lib/codec/evmmerge/export.d.ts +0 -6
- package/lib/codec/evmmerge/export.js +0 -20
- package/lib/codec/evmmerge/genesis.d.ts +0 -48
- package/lib/codec/evmmerge/genesis.js +0 -216
- package/lib/codec/evmmerge/offchain.d.ts +0 -22
- package/lib/codec/evmmerge/offchain.js +0 -105
- package/lib/codec/evmmerge/query.d.ts +0 -75
- package/lib/codec/evmmerge/query.js +0 -254
- package/lib/codec/evmmerge/tx.d.ts +0 -45
- package/lib/codec/evmmerge/tx.js +0 -128
- package/lib/codec/fee/event.d.ts +0 -20
- package/lib/codec/fee/event.js +0 -83
- package/lib/codec/fee/export.d.ts +0 -5
- package/lib/codec/fee/export.js +0 -32
- package/lib/codec/fee/fee.d.ts +0 -42
- package/lib/codec/fee/fee.js +0 -183
- package/lib/codec/fee/genesis.d.ts +0 -23
- package/lib/codec/fee/genesis.js +0 -79
- package/lib/codec/fee/proposal.d.ts +0 -57
- package/lib/codec/fee/proposal.js +0 -311
- package/lib/codec/fee/query.d.ts +0 -114
- package/lib/codec/fee/query.js +0 -470
- package/lib/codec/fee/tx.d.ts +0 -108
- package/lib/codec/fee/tx.js +0 -415
- package/lib/codec/headersync/consensus_peers.d.ts +0 -70
- package/lib/codec/headersync/consensus_peers.js +0 -383
- package/lib/codec/headersync/export.d.ts +0 -4
- package/lib/codec/headersync/export.js +0 -24
- package/lib/codec/headersync/genesis.d.ts +0 -79
- package/lib/codec/headersync/genesis.js +0 -419
- package/lib/codec/headersync/query.d.ts +0 -64
- package/lib/codec/headersync/query.js +0 -231
- package/lib/codec/headersync/tx.d.ts +0 -64
- package/lib/codec/headersync/tx.js +0 -215
- package/lib/codec/inflation/export.d.ts +0 -2
- package/lib/codec/inflation/export.js +0 -8
- package/lib/codec/inflation/genesis.d.ts +0 -25
- package/lib/codec/inflation/genesis.js +0 -79
- package/lib/codec/inflation/inflation.d.ts +0 -22
- package/lib/codec/inflation/inflation.js +0 -110
- package/lib/codec/inflation/query.d.ts +0 -41
- package/lib/codec/inflation/query.js +0 -109
- package/lib/codec/inflation/tx.d.ts +0 -12
- package/lib/codec/inflation/tx.js +0 -20
- package/lib/codec/insurance/event.d.ts +0 -24
- package/lib/codec/insurance/event.js +0 -46
- package/lib/codec/insurance/export.d.ts +0 -4
- package/lib/codec/insurance/export.js +0 -14
- package/lib/codec/insurance/fund.d.ts +0 -29
- package/lib/codec/insurance/fund.js +0 -148
- package/lib/codec/insurance/genesis.d.ts +0 -18
- package/lib/codec/insurance/genesis.js +0 -46
- package/lib/codec/insurance/query.d.ts +0 -41
- package/lib/codec/insurance/query.js +0 -108
- package/lib/codec/insurance/tx.d.ts +0 -44
- package/lib/codec/insurance/tx.js +0 -144
- package/lib/codec/leverage/event.d.ts +0 -21
- package/lib/codec/leverage/event.js +0 -100
- package/lib/codec/leverage/export.d.ts +0 -4
- package/lib/codec/leverage/export.js +0 -16
- package/lib/codec/leverage/genesis.d.ts +0 -24
- package/lib/codec/leverage/genesis.js +0 -64
- package/lib/codec/leverage/leverage.d.ts +0 -30
- package/lib/codec/leverage/leverage.js +0 -134
- package/lib/codec/leverage/query.d.ts +0 -70
- package/lib/codec/leverage/query.js +0 -234
- package/lib/codec/leverage/tx.d.ts +0 -43
- package/lib/codec/leverage/tx.js +0 -127
- package/lib/codec/liquidation/export.d.ts +0 -5
- package/lib/codec/liquidation/export.js +0 -17
- package/lib/codec/liquidation/genesis.d.ts +0 -37
- package/lib/codec/liquidation/genesis.js +0 -136
- package/lib/codec/liquidation/liquidation.d.ts +0 -17
- package/lib/codec/liquidation/liquidation.js +0 -46
- package/lib/codec/liquidation/outstanding_position.d.ts +0 -33
- package/lib/codec/liquidation/outstanding_position.js +0 -203
- package/lib/codec/liquidation/query.d.ts +0 -77
- package/lib/codec/liquidation/query.js +0 -341
- package/lib/codec/liquidation/quote_changes.d.ts +0 -22
- package/lib/codec/liquidation/quote_changes.js +0 -95
- package/lib/codec/liquidation/tx.d.ts +0 -12
- package/lib/codec/liquidation/tx.js +0 -20
- package/lib/codec/liquiditypool/event.d.ts +0 -143
- package/lib/codec/liquiditypool/event.js +0 -975
- package/lib/codec/liquiditypool/export.d.ts +0 -6
- package/lib/codec/liquiditypool/export.js +0 -125
- package/lib/codec/liquiditypool/genesis.d.ts +0 -33
- package/lib/codec/liquiditypool/genesis.js +0 -243
- package/lib/codec/liquiditypool/liquiditypool.d.ts +0 -138
- package/lib/codec/liquiditypool/liquiditypool.js +0 -943
- package/lib/codec/liquiditypool/proposal.d.ts +0 -117
- package/lib/codec/liquiditypool/proposal.js +0 -697
- package/lib/codec/liquiditypool/query.d.ts +0 -419
- package/lib/codec/liquiditypool/query.js +0 -1985
- package/lib/codec/liquiditypool/reward.d.ts +0 -196
- package/lib/codec/liquiditypool/reward.js +0 -1218
- package/lib/codec/liquiditypool/tx.d.ts +0 -453
- package/lib/codec/liquiditypool/tx.js +0 -2423
- package/lib/codec/lockproxy/event.d.ts +0 -46
- package/lib/codec/lockproxy/event.js +0 -348
- package/lib/codec/lockproxy/export.d.ts +0 -5
- package/lib/codec/lockproxy/export.js +0 -28
- package/lib/codec/lockproxy/genesis.d.ts +0 -68
- package/lib/codec/lockproxy/genesis.js +0 -355
- package/lib/codec/lockproxy/lockproxy.d.ts +0 -22
- package/lib/codec/lockproxy/lockproxy.js +0 -147
- package/lib/codec/lockproxy/query.d.ts +0 -67
- package/lib/codec/lockproxy/query.js +0 -274
- package/lib/codec/lockproxy/tx.d.ts +0 -147
- package/lib/codec/lockproxy/tx.js +0 -808
- package/lib/codec/market/event.d.ts +0 -20
- package/lib/codec/market/event.js +0 -76
- package/lib/codec/market/export.d.ts +0 -6
- package/lib/codec/market/export.js +0 -61
- package/lib/codec/market/fee.d.ts +0 -123
- package/lib/codec/market/fee.js +0 -334
- package/lib/codec/market/genesis.d.ts +0 -31
- package/lib/codec/market/genesis.js +0 -147
- package/lib/codec/market/market.d.ts +0 -131
- package/lib/codec/market/market.js +0 -1245
- package/lib/codec/market/proposal.d.ts +0 -46
- package/lib/codec/market/proposal.js +0 -245
- package/lib/codec/market/query.d.ts +0 -233
- package/lib/codec/market/query.js +0 -938
- package/lib/codec/market/tx.d.ts +0 -250
- package/lib/codec/market/tx.js +0 -1265
- package/lib/codec/marketstats/export.d.ts +0 -3
- package/lib/codec/marketstats/export.js +0 -12
- package/lib/codec/marketstats/genesis.d.ts +0 -21
- package/lib/codec/marketstats/genesis.js +0 -63
- package/lib/codec/marketstats/marketstats.d.ts +0 -31
- package/lib/codec/marketstats/marketstats.js +0 -258
- package/lib/codec/marketstats/params.d.ts +0 -18
- package/lib/codec/marketstats/params.js +0 -46
- package/lib/codec/marketstats/query.d.ts +0 -66
- package/lib/codec/marketstats/query.js +0 -195
- package/lib/codec/marketstats/tx.d.ts +0 -12
- package/lib/codec/marketstats/tx.js +0 -20
- package/lib/codec/misc/block.d.ts +0 -21
- package/lib/codec/misc/block.js +0 -105
- package/lib/codec/misc/export.d.ts +0 -6
- package/lib/codec/misc/export.js +0 -29
- package/lib/codec/misc/message.d.ts +0 -22
- package/lib/codec/misc/message.js +0 -128
- package/lib/codec/misc/message_type.d.ts +0 -18
- package/lib/codec/misc/message_type.js +0 -60
- package/lib/codec/misc/query.d.ts +0 -192
- package/lib/codec/misc/query.js +0 -884
- package/lib/codec/misc/trade.d.ts +0 -28
- package/lib/codec/misc/trade.js +0 -224
- package/lib/codec/misc/transaction.d.ts +0 -45
- package/lib/codec/misc/transaction.js +0 -369
- package/lib/codec/oracle/event.d.ts +0 -37
- package/lib/codec/oracle/event.js +0 -228
- package/lib/codec/oracle/export.d.ts +0 -6
- package/lib/codec/oracle/export.js +0 -58
- package/lib/codec/oracle/genesis.d.ts +0 -28
- package/lib/codec/oracle/genesis.js +0 -141
- package/lib/codec/oracle/oracle.d.ts +0 -94
- package/lib/codec/oracle/oracle.js +0 -650
- package/lib/codec/oracle/proposal.d.ts +0 -21
- package/lib/codec/oracle/proposal.js +0 -91
- package/lib/codec/oracle/query.d.ts +0 -333
- package/lib/codec/oracle/query.js +0 -1545
- package/lib/codec/oracle/slashing.d.ts +0 -33
- package/lib/codec/oracle/slashing.js +0 -191
- package/lib/codec/oracle/tx.d.ts +0 -169
- package/lib/codec/oracle/tx.js +0 -877
- package/lib/codec/order/event.d.ts +0 -23
- package/lib/codec/order/event.js +0 -146
- package/lib/codec/order/export.d.ts +0 -5
- package/lib/codec/order/export.js +0 -39
- package/lib/codec/order/genesis.d.ts +0 -62
- package/lib/codec/order/genesis.js +0 -322
- package/lib/codec/order/order.d.ts +0 -113
- package/lib/codec/order/order.js +0 -875
- package/lib/codec/order/query.d.ts +0 -143
- package/lib/codec/order/query.js +0 -596
- package/lib/codec/order/tx.d.ts +0 -146
- package/lib/codec/order/tx.js +0 -715
- package/lib/codec/perpsliquidity/event.d.ts +0 -115
- package/lib/codec/perpsliquidity/event.js +0 -657
- package/lib/codec/perpsliquidity/genesis.d.ts +0 -36
- package/lib/codec/perpsliquidity/genesis.js +0 -163
- package/lib/codec/perpsliquidity/market.d.ts +0 -84
- package/lib/codec/perpsliquidity/market.js +0 -431
- package/lib/codec/perpsliquidity/params.d.ts +0 -27
- package/lib/codec/perpsliquidity/params.js +0 -129
- package/lib/codec/perpsliquidity/pool.d.ts +0 -119
- package/lib/codec/perpsliquidity/pool.js +0 -774
- package/lib/codec/perpsliquidity/query.d.ts +0 -246
- package/lib/codec/perpsliquidity/query.js +0 -1125
- package/lib/codec/perpsliquidity/tx.d.ts +0 -203
- package/lib/codec/perpsliquidity/tx.js +0 -973
- package/lib/codec/perpspool/event.d.ts +0 -95
- package/lib/codec/perpspool/event.js +0 -561
- package/lib/codec/perpspool/export.d.ts +0 -7
- package/lib/codec/perpspool/export.js +0 -68
- package/lib/codec/perpspool/genesis.d.ts +0 -61
- package/lib/codec/perpspool/genesis.js +0 -343
- package/lib/codec/perpspool/market.d.ts +0 -96
- package/lib/codec/perpspool/market.js +0 -493
- package/lib/codec/perpspool/params.d.ts +0 -30
- package/lib/codec/perpspool/params.js +0 -189
- package/lib/codec/perpspool/pool.d.ts +0 -103
- package/lib/codec/perpspool/pool.js +0 -638
- package/lib/codec/perpspool/query.d.ts +0 -247
- package/lib/codec/perpspool/query.js +0 -1141
- package/lib/codec/perpspool/tx.d.ts +0 -229
- package/lib/codec/perpspool/tx.js +0 -1144
- package/lib/codec/position/event.d.ts +0 -26
- package/lib/codec/position/event.js +0 -180
- package/lib/codec/position/export.d.ts +0 -4
- package/lib/codec/position/export.js +0 -20
- package/lib/codec/position/genesis.d.ts +0 -24
- package/lib/codec/position/genesis.js +0 -64
- package/lib/codec/position/position.d.ts +0 -72
- package/lib/codec/position/position.js +0 -567
- package/lib/codec/position/query.d.ts +0 -92
- package/lib/codec/position/query.js +0 -400
- package/lib/codec/position/tx.d.ts +0 -42
- package/lib/codec/position/tx.js +0 -127
- package/lib/codec/pricing/event.d.ts +0 -74
- package/lib/codec/pricing/event.js +0 -361
- package/lib/codec/pricing/export.d.ts +0 -6
- package/lib/codec/pricing/export.js +0 -45
- package/lib/codec/pricing/genesis.d.ts +0 -26
- package/lib/codec/pricing/genesis.js +0 -95
- package/lib/codec/pricing/legacy.d.ts +0 -22
- package/lib/codec/pricing/legacy.js +0 -93
- package/lib/codec/pricing/pricing.d.ts +0 -60
- package/lib/codec/pricing/pricing.js +0 -456
- package/lib/codec/pricing/proposal.d.ts +0 -31
- package/lib/codec/pricing/proposal.js +0 -148
- package/lib/codec/pricing/query.d.ts +0 -183
- package/lib/codec/pricing/query.js +0 -759
- package/lib/codec/pricing/tx.d.ts +0 -131
- package/lib/codec/pricing/tx.js +0 -529
- package/lib/codec/profile/event.d.ts +0 -20
- package/lib/codec/profile/event.js +0 -78
- package/lib/codec/profile/export.d.ts +0 -4
- package/lib/codec/profile/export.js +0 -17
- package/lib/codec/profile/genesis.d.ts +0 -24
- package/lib/codec/profile/genesis.js +0 -64
- package/lib/codec/profile/profile.d.ts +0 -20
- package/lib/codec/profile/profile.js +0 -83
- package/lib/codec/profile/query.d.ts +0 -92
- package/lib/codec/profile/query.js +0 -360
- package/lib/codec/profile/tx.d.ts +0 -43
- package/lib/codec/profile/tx.js +0 -127
- package/lib/codec/sequence/export.d.ts +0 -3
- package/lib/codec/sequence/export.js +0 -13
- package/lib/codec/sequence/genesis.d.ts +0 -30
- package/lib/codec/sequence/genesis.js +0 -122
- package/lib/codec/sequence/query.d.ts +0 -63
- package/lib/codec/sequence/query.js +0 -208
- package/lib/codec/sequence/tx.d.ts +0 -41
- package/lib/codec/sequence/tx.js +0 -148
- package/lib/codec/subaccount/export.d.ts +0 -4
- package/lib/codec/subaccount/export.js +0 -35
- package/lib/codec/subaccount/genesis.d.ts +0 -24
- package/lib/codec/subaccount/genesis.js +0 -64
- package/lib/codec/subaccount/legacy.d.ts +0 -19
- package/lib/codec/subaccount/legacy.js +0 -72
- package/lib/codec/subaccount/query.d.ts +0 -115
- package/lib/codec/subaccount/query.js +0 -456
- package/lib/codec/subaccount/subaccount.d.ts +0 -31
- package/lib/codec/subaccount/subaccount.js +0 -146
- package/lib/codec/subaccount/tx.d.ts +0 -86
- package/lib/codec/subaccount/tx.js +0 -310
- package/lib/modules/feemarket.d.ts +0 -20
- package/lib/modules/feemarket.js +0 -45
- package/lib/modules/perpsliquidity.d.ts +0 -49
- package/lib/modules/perpsliquidity.js +0 -118
- package/lib/provider/amino/types/perpsliquidity.d.ts +0 -4
- package/lib/provider/amino/types/perpsliquidity.js +0 -73
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Acknowledgement = exports.PacketState = exports.Packet = exports.Counterparty = exports.IdentifiedChannel = exports.Channel = exports.orderToJSON = exports.orderFromJSON = exports.Order = exports.stateToJSON = exports.stateFromJSON = exports.State = exports.protobufPackage = void 0;
|
|
6
|
+
exports.Acknowledgement = exports.PacketId = exports.PacketState = exports.Packet = exports.Counterparty = exports.IdentifiedChannel = exports.Channel = exports.orderToJSON = exports.orderFromJSON = exports.Order = exports.stateToJSON = exports.stateFromJSON = exports.State = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -667,6 +667,83 @@ exports.PacketState = {
|
|
|
667
667
|
return message;
|
|
668
668
|
},
|
|
669
669
|
};
|
|
670
|
+
const basePacketId = {
|
|
671
|
+
portId: "",
|
|
672
|
+
channelId: "",
|
|
673
|
+
sequence: long_1.default.UZERO,
|
|
674
|
+
};
|
|
675
|
+
exports.PacketId = {
|
|
676
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
677
|
+
if (message.portId !== "") {
|
|
678
|
+
writer.uint32(10).string(message.portId);
|
|
679
|
+
}
|
|
680
|
+
if (message.channelId !== "") {
|
|
681
|
+
writer.uint32(18).string(message.channelId);
|
|
682
|
+
}
|
|
683
|
+
if (!message.sequence.isZero()) {
|
|
684
|
+
writer.uint32(24).uint64(message.sequence);
|
|
685
|
+
}
|
|
686
|
+
return writer;
|
|
687
|
+
},
|
|
688
|
+
decode(input, length) {
|
|
689
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
690
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
691
|
+
const message = Object.assign({}, basePacketId);
|
|
692
|
+
while (reader.pos < end) {
|
|
693
|
+
const tag = reader.uint32();
|
|
694
|
+
switch (tag >>> 3) {
|
|
695
|
+
case 1:
|
|
696
|
+
message.portId = reader.string();
|
|
697
|
+
break;
|
|
698
|
+
case 2:
|
|
699
|
+
message.channelId = reader.string();
|
|
700
|
+
break;
|
|
701
|
+
case 3:
|
|
702
|
+
message.sequence = reader.uint64();
|
|
703
|
+
break;
|
|
704
|
+
default:
|
|
705
|
+
reader.skipType(tag & 7);
|
|
706
|
+
break;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
return message;
|
|
710
|
+
},
|
|
711
|
+
fromJSON(object) {
|
|
712
|
+
const message = Object.assign({}, basePacketId);
|
|
713
|
+
message.portId =
|
|
714
|
+
object.portId !== undefined && object.portId !== null
|
|
715
|
+
? String(object.portId)
|
|
716
|
+
: "";
|
|
717
|
+
message.channelId =
|
|
718
|
+
object.channelId !== undefined && object.channelId !== null
|
|
719
|
+
? String(object.channelId)
|
|
720
|
+
: "";
|
|
721
|
+
message.sequence =
|
|
722
|
+
object.sequence !== undefined && object.sequence !== null
|
|
723
|
+
? long_1.default.fromString(object.sequence)
|
|
724
|
+
: long_1.default.UZERO;
|
|
725
|
+
return message;
|
|
726
|
+
},
|
|
727
|
+
toJSON(message) {
|
|
728
|
+
const obj = {};
|
|
729
|
+
message.portId !== undefined && (obj.portId = message.portId);
|
|
730
|
+
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
731
|
+
message.sequence !== undefined &&
|
|
732
|
+
(obj.sequence = (message.sequence || long_1.default.UZERO).toString());
|
|
733
|
+
return obj;
|
|
734
|
+
},
|
|
735
|
+
fromPartial(object) {
|
|
736
|
+
var _a, _b;
|
|
737
|
+
const message = Object.assign({}, basePacketId);
|
|
738
|
+
message.portId = (_a = object.portId) !== null && _a !== void 0 ? _a : "";
|
|
739
|
+
message.channelId = (_b = object.channelId) !== null && _b !== void 0 ? _b : "";
|
|
740
|
+
message.sequence =
|
|
741
|
+
object.sequence !== undefined && object.sequence !== null
|
|
742
|
+
? long_1.default.fromValue(object.sequence)
|
|
743
|
+
: long_1.default.UZERO;
|
|
744
|
+
return message;
|
|
745
|
+
},
|
|
746
|
+
};
|
|
670
747
|
const baseAcknowledgement = {};
|
|
671
748
|
exports.Acknowledgement = {
|
|
672
749
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { State, stateFromJSON, stateToJSON, Order, orderFromJSON, orderToJSON, Channel, IdentifiedChannel, Counterparty, Packet, PacketState, Acknowledgement } from "./channel";
|
|
1
|
+
export { State, stateFromJSON, stateToJSON, Order, orderFromJSON, orderToJSON, Channel, IdentifiedChannel, Counterparty, Packet, PacketState, PacketId, Acknowledgement } from "./channel";
|
|
2
2
|
export { PacketSequence } from "./genesis";
|
|
3
3
|
export { QueryChannelRequest, QueryChannelResponse, QueryChannelsRequest, QueryChannelsResponse, QueryConnectionChannelsRequest, QueryConnectionChannelsResponse, QueryChannelClientStateRequest, QueryChannelClientStateResponse, QueryChannelConsensusStateRequest, QueryChannelConsensusStateResponse, QueryPacketCommitmentRequest, QueryPacketCommitmentResponse, QueryPacketCommitmentsRequest, QueryPacketCommitmentsResponse, QueryPacketReceiptRequest, QueryPacketReceiptResponse, QueryPacketAcknowledgementRequest, QueryPacketAcknowledgementResponse, QueryPacketAcknowledgementsRequest, QueryPacketAcknowledgementsResponse, QueryUnreceivedPacketsRequest, QueryUnreceivedPacketsResponse, QueryUnreceivedAcksRequest, QueryUnreceivedAcksResponse, QueryNextSequenceReceiveRequest, QueryNextSequenceReceiveResponse } from "./query";
|
|
4
4
|
export { ResponseResultType, responseResultTypeFromJSON, responseResultTypeToJSON, MsgChannelOpenInit, MsgChannelOpenInitResponse, MsgChannelOpenTry, MsgChannelOpenTryResponse, MsgChannelOpenAck, MsgChannelOpenAckResponse, MsgChannelOpenConfirm, MsgChannelOpenConfirmResponse, MsgChannelCloseInit, MsgChannelCloseInitResponse, MsgChannelCloseConfirm, MsgChannelCloseConfirmResponse, MsgRecvPacket, MsgRecvPacketResponse, MsgTimeout, MsgTimeoutResponse, MsgTimeoutOnClose, MsgTimeoutOnCloseResponse, MsgAcknowledgement, MsgAcknowledgementResponse } from "./tx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.MsgAcknowledgementResponse = exports.MsgAcknowledgement = exports.MsgTimeoutOnCloseResponse = exports.MsgTimeoutOnClose = exports.MsgTimeoutResponse = exports.MsgTimeout = exports.MsgRecvPacketResponse = exports.MsgRecvPacket = exports.MsgChannelCloseConfirmResponse = exports.MsgChannelCloseConfirm = exports.MsgChannelCloseInitResponse = exports.MsgChannelCloseInit = void 0;
|
|
3
|
+
exports.MsgChannelOpenConfirm = exports.MsgChannelOpenAckResponse = exports.MsgChannelOpenAck = exports.MsgChannelOpenTryResponse = exports.MsgChannelOpenTry = exports.MsgChannelOpenInitResponse = exports.MsgChannelOpenInit = exports.responseResultTypeToJSON = exports.responseResultTypeFromJSON = exports.ResponseResultType = exports.QueryNextSequenceReceiveResponse = exports.QueryNextSequenceReceiveRequest = exports.QueryUnreceivedAcksResponse = exports.QueryUnreceivedAcksRequest = exports.QueryUnreceivedPacketsResponse = exports.QueryUnreceivedPacketsRequest = exports.QueryPacketAcknowledgementsResponse = exports.QueryPacketAcknowledgementsRequest = exports.QueryPacketAcknowledgementResponse = exports.QueryPacketAcknowledgementRequest = exports.QueryPacketReceiptResponse = exports.QueryPacketReceiptRequest = exports.QueryPacketCommitmentsResponse = exports.QueryPacketCommitmentsRequest = exports.QueryPacketCommitmentResponse = exports.QueryPacketCommitmentRequest = exports.QueryChannelConsensusStateResponse = exports.QueryChannelConsensusStateRequest = exports.QueryChannelClientStateResponse = exports.QueryChannelClientStateRequest = exports.QueryConnectionChannelsResponse = exports.QueryConnectionChannelsRequest = exports.QueryChannelsResponse = exports.QueryChannelsRequest = exports.QueryChannelResponse = exports.QueryChannelRequest = exports.PacketSequence = exports.Acknowledgement = exports.PacketId = exports.PacketState = exports.Packet = exports.Counterparty = exports.IdentifiedChannel = exports.Channel = exports.orderToJSON = exports.orderFromJSON = exports.Order = exports.stateToJSON = exports.stateFromJSON = exports.State = void 0;
|
|
4
|
+
exports.MsgAcknowledgementResponse = exports.MsgAcknowledgement = exports.MsgTimeoutOnCloseResponse = exports.MsgTimeoutOnClose = exports.MsgTimeoutResponse = exports.MsgTimeout = exports.MsgRecvPacketResponse = exports.MsgRecvPacket = exports.MsgChannelCloseConfirmResponse = exports.MsgChannelCloseConfirm = exports.MsgChannelCloseInitResponse = exports.MsgChannelCloseInit = exports.MsgChannelOpenConfirmResponse = void 0;
|
|
5
5
|
var channel_1 = require("./channel");
|
|
6
6
|
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return channel_1.State; } });
|
|
7
7
|
Object.defineProperty(exports, "stateFromJSON", { enumerable: true, get: function () { return channel_1.stateFromJSON; } });
|
|
@@ -14,6 +14,7 @@ Object.defineProperty(exports, "IdentifiedChannel", { enumerable: true, get: fun
|
|
|
14
14
|
Object.defineProperty(exports, "Counterparty", { enumerable: true, get: function () { return channel_1.Counterparty; } });
|
|
15
15
|
Object.defineProperty(exports, "Packet", { enumerable: true, get: function () { return channel_1.Packet; } });
|
|
16
16
|
Object.defineProperty(exports, "PacketState", { enumerable: true, get: function () { return channel_1.PacketState; } });
|
|
17
|
+
Object.defineProperty(exports, "PacketId", { enumerable: true, get: function () { return channel_1.PacketId; } });
|
|
17
18
|
Object.defineProperty(exports, "Acknowledgement", { enumerable: true, get: function () { return channel_1.Acknowledgement; } });
|
|
18
19
|
var genesis_1 = require("./genesis");
|
|
19
20
|
Object.defineProperty(exports, "PacketSequence", { enumerable: true, get: function () { return genesis_1.PacketSequence; } });
|
|
@@ -5,12 +5,12 @@ import { Height } from "../../client/v1/client";
|
|
|
5
5
|
export declare const protobufPackage = "ibc.core.channel.v1";
|
|
6
6
|
/** ResponseResultType defines the possible outcomes of the execution of a message */
|
|
7
7
|
export declare enum ResponseResultType {
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
|
|
8
|
+
/** RESPONSE_RESULT_TYPE_UNSPECIFIED - Default zero value enumeration */
|
|
9
|
+
RESPONSE_RESULT_TYPE_UNSPECIFIED = 0,
|
|
10
|
+
/** RESPONSE_RESULT_TYPE_NOOP - The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) */
|
|
11
|
+
RESPONSE_RESULT_TYPE_NOOP = 1,
|
|
12
|
+
/** RESPONSE_RESULT_TYPE_SUCCESS - The message was executed successfully */
|
|
13
|
+
RESPONSE_RESULT_TYPE_SUCCESS = 2,
|
|
14
14
|
UNRECOGNIZED = -1
|
|
15
15
|
}
|
|
16
16
|
export declare function responseResultTypeFromJSON(object: any): ResponseResultType;
|
|
@@ -27,6 +27,7 @@ export interface MsgChannelOpenInit {
|
|
|
27
27
|
/** MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. */
|
|
28
28
|
export interface MsgChannelOpenInitResponse {
|
|
29
29
|
channelId: string;
|
|
30
|
+
version: string;
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
33
|
* MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel
|
|
@@ -36,8 +37,9 @@ export interface MsgChannelOpenInitResponse {
|
|
|
36
37
|
export interface MsgChannelOpenTry {
|
|
37
38
|
portId: string;
|
|
38
39
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
40
|
+
* Deprecated: this field is unused. Crossing hello's are no longer supported in core IBC.
|
|
41
|
+
*
|
|
42
|
+
* @deprecated
|
|
41
43
|
*/
|
|
42
44
|
previousChannelId: string;
|
|
43
45
|
/** NOTE: the version field within the channel has been deprecated. Its value will be ignored by core IBC. */
|
|
@@ -49,6 +51,8 @@ export interface MsgChannelOpenTry {
|
|
|
49
51
|
}
|
|
50
52
|
/** MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. */
|
|
51
53
|
export interface MsgChannelOpenTryResponse {
|
|
54
|
+
version: string;
|
|
55
|
+
channelId: string;
|
|
52
56
|
}
|
|
53
57
|
/**
|
|
54
58
|
* MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge
|
|
@@ -182,11 +186,11 @@ export declare const MsgChannelOpenTry: {
|
|
|
182
186
|
fromPartial(object: DeepPartial<MsgChannelOpenTry>): MsgChannelOpenTry;
|
|
183
187
|
};
|
|
184
188
|
export declare const MsgChannelOpenTryResponse: {
|
|
185
|
-
encode(
|
|
189
|
+
encode(message: MsgChannelOpenTryResponse, writer?: _m0.Writer): _m0.Writer;
|
|
186
190
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgChannelOpenTryResponse;
|
|
187
|
-
fromJSON(
|
|
188
|
-
toJSON(
|
|
189
|
-
fromPartial(
|
|
191
|
+
fromJSON(object: any): MsgChannelOpenTryResponse;
|
|
192
|
+
toJSON(message: MsgChannelOpenTryResponse): unknown;
|
|
193
|
+
fromPartial(object: DeepPartial<MsgChannelOpenTryResponse>): MsgChannelOpenTryResponse;
|
|
190
194
|
};
|
|
191
195
|
export declare const MsgChannelOpenAck: {
|
|
192
196
|
encode(message: MsgChannelOpenAck, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -13,25 +13,25 @@ exports.protobufPackage = "ibc.core.channel.v1";
|
|
|
13
13
|
/** ResponseResultType defines the possible outcomes of the execution of a message */
|
|
14
14
|
var ResponseResultType;
|
|
15
15
|
(function (ResponseResultType) {
|
|
16
|
-
/**
|
|
17
|
-
ResponseResultType[ResponseResultType["
|
|
18
|
-
/**
|
|
19
|
-
ResponseResultType[ResponseResultType["
|
|
20
|
-
/**
|
|
21
|
-
ResponseResultType[ResponseResultType["
|
|
16
|
+
/** RESPONSE_RESULT_TYPE_UNSPECIFIED - Default zero value enumeration */
|
|
17
|
+
ResponseResultType[ResponseResultType["RESPONSE_RESULT_TYPE_UNSPECIFIED"] = 0] = "RESPONSE_RESULT_TYPE_UNSPECIFIED";
|
|
18
|
+
/** RESPONSE_RESULT_TYPE_NOOP - The message did not call the IBC application callbacks (because, for example, the packet had already been relayed) */
|
|
19
|
+
ResponseResultType[ResponseResultType["RESPONSE_RESULT_TYPE_NOOP"] = 1] = "RESPONSE_RESULT_TYPE_NOOP";
|
|
20
|
+
/** RESPONSE_RESULT_TYPE_SUCCESS - The message was executed successfully */
|
|
21
|
+
ResponseResultType[ResponseResultType["RESPONSE_RESULT_TYPE_SUCCESS"] = 2] = "RESPONSE_RESULT_TYPE_SUCCESS";
|
|
22
22
|
ResponseResultType[ResponseResultType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
23
23
|
})(ResponseResultType = exports.ResponseResultType || (exports.ResponseResultType = {}));
|
|
24
24
|
function responseResultTypeFromJSON(object) {
|
|
25
25
|
switch (object) {
|
|
26
26
|
case 0:
|
|
27
|
-
case "
|
|
28
|
-
return ResponseResultType.
|
|
27
|
+
case "RESPONSE_RESULT_TYPE_UNSPECIFIED":
|
|
28
|
+
return ResponseResultType.RESPONSE_RESULT_TYPE_UNSPECIFIED;
|
|
29
29
|
case 1:
|
|
30
|
-
case "
|
|
31
|
-
return ResponseResultType.
|
|
30
|
+
case "RESPONSE_RESULT_TYPE_NOOP":
|
|
31
|
+
return ResponseResultType.RESPONSE_RESULT_TYPE_NOOP;
|
|
32
32
|
case 2:
|
|
33
|
-
case "
|
|
34
|
-
return ResponseResultType.
|
|
33
|
+
case "RESPONSE_RESULT_TYPE_SUCCESS":
|
|
34
|
+
return ResponseResultType.RESPONSE_RESULT_TYPE_SUCCESS;
|
|
35
35
|
case -1:
|
|
36
36
|
case "UNRECOGNIZED":
|
|
37
37
|
default:
|
|
@@ -41,12 +41,12 @@ function responseResultTypeFromJSON(object) {
|
|
|
41
41
|
exports.responseResultTypeFromJSON = responseResultTypeFromJSON;
|
|
42
42
|
function responseResultTypeToJSON(object) {
|
|
43
43
|
switch (object) {
|
|
44
|
-
case ResponseResultType.
|
|
45
|
-
return "
|
|
46
|
-
case ResponseResultType.
|
|
47
|
-
return "
|
|
48
|
-
case ResponseResultType.
|
|
49
|
-
return "
|
|
44
|
+
case ResponseResultType.RESPONSE_RESULT_TYPE_UNSPECIFIED:
|
|
45
|
+
return "RESPONSE_RESULT_TYPE_UNSPECIFIED";
|
|
46
|
+
case ResponseResultType.RESPONSE_RESULT_TYPE_NOOP:
|
|
47
|
+
return "RESPONSE_RESULT_TYPE_NOOP";
|
|
48
|
+
case ResponseResultType.RESPONSE_RESULT_TYPE_SUCCESS:
|
|
49
|
+
return "RESPONSE_RESULT_TYPE_SUCCESS";
|
|
50
50
|
default:
|
|
51
51
|
return "UNKNOWN";
|
|
52
52
|
}
|
|
@@ -127,12 +127,15 @@ exports.MsgChannelOpenInit = {
|
|
|
127
127
|
return message;
|
|
128
128
|
},
|
|
129
129
|
};
|
|
130
|
-
const baseMsgChannelOpenInitResponse = { channelId: "" };
|
|
130
|
+
const baseMsgChannelOpenInitResponse = { channelId: "", version: "" };
|
|
131
131
|
exports.MsgChannelOpenInitResponse = {
|
|
132
132
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
133
133
|
if (message.channelId !== "") {
|
|
134
134
|
writer.uint32(10).string(message.channelId);
|
|
135
135
|
}
|
|
136
|
+
if (message.version !== "") {
|
|
137
|
+
writer.uint32(18).string(message.version);
|
|
138
|
+
}
|
|
136
139
|
return writer;
|
|
137
140
|
},
|
|
138
141
|
decode(input, length) {
|
|
@@ -145,6 +148,9 @@ exports.MsgChannelOpenInitResponse = {
|
|
|
145
148
|
case 1:
|
|
146
149
|
message.channelId = reader.string();
|
|
147
150
|
break;
|
|
151
|
+
case 2:
|
|
152
|
+
message.version = reader.string();
|
|
153
|
+
break;
|
|
148
154
|
default:
|
|
149
155
|
reader.skipType(tag & 7);
|
|
150
156
|
break;
|
|
@@ -158,17 +164,23 @@ exports.MsgChannelOpenInitResponse = {
|
|
|
158
164
|
object.channelId !== undefined && object.channelId !== null
|
|
159
165
|
? String(object.channelId)
|
|
160
166
|
: "";
|
|
167
|
+
message.version =
|
|
168
|
+
object.version !== undefined && object.version !== null
|
|
169
|
+
? String(object.version)
|
|
170
|
+
: "";
|
|
161
171
|
return message;
|
|
162
172
|
},
|
|
163
173
|
toJSON(message) {
|
|
164
174
|
const obj = {};
|
|
165
175
|
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
176
|
+
message.version !== undefined && (obj.version = message.version);
|
|
166
177
|
return obj;
|
|
167
178
|
},
|
|
168
179
|
fromPartial(object) {
|
|
169
|
-
var _a;
|
|
180
|
+
var _a, _b;
|
|
170
181
|
const message = Object.assign({}, baseMsgChannelOpenInitResponse);
|
|
171
182
|
message.channelId = (_a = object.channelId) !== null && _a !== void 0 ? _a : "";
|
|
183
|
+
message.version = (_b = object.version) !== null && _b !== void 0 ? _b : "";
|
|
172
184
|
return message;
|
|
173
185
|
},
|
|
174
186
|
};
|
|
@@ -312,9 +324,15 @@ exports.MsgChannelOpenTry = {
|
|
|
312
324
|
return message;
|
|
313
325
|
},
|
|
314
326
|
};
|
|
315
|
-
const baseMsgChannelOpenTryResponse = {};
|
|
327
|
+
const baseMsgChannelOpenTryResponse = { version: "", channelId: "" };
|
|
316
328
|
exports.MsgChannelOpenTryResponse = {
|
|
317
|
-
encode(
|
|
329
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
330
|
+
if (message.version !== "") {
|
|
331
|
+
writer.uint32(10).string(message.version);
|
|
332
|
+
}
|
|
333
|
+
if (message.channelId !== "") {
|
|
334
|
+
writer.uint32(18).string(message.channelId);
|
|
335
|
+
}
|
|
318
336
|
return writer;
|
|
319
337
|
},
|
|
320
338
|
decode(input, length) {
|
|
@@ -324,6 +342,12 @@ exports.MsgChannelOpenTryResponse = {
|
|
|
324
342
|
while (reader.pos < end) {
|
|
325
343
|
const tag = reader.uint32();
|
|
326
344
|
switch (tag >>> 3) {
|
|
345
|
+
case 1:
|
|
346
|
+
message.version = reader.string();
|
|
347
|
+
break;
|
|
348
|
+
case 2:
|
|
349
|
+
message.channelId = reader.string();
|
|
350
|
+
break;
|
|
327
351
|
default:
|
|
328
352
|
reader.skipType(tag & 7);
|
|
329
353
|
break;
|
|
@@ -331,16 +355,29 @@ exports.MsgChannelOpenTryResponse = {
|
|
|
331
355
|
}
|
|
332
356
|
return message;
|
|
333
357
|
},
|
|
334
|
-
fromJSON(
|
|
358
|
+
fromJSON(object) {
|
|
335
359
|
const message = Object.assign({}, baseMsgChannelOpenTryResponse);
|
|
360
|
+
message.version =
|
|
361
|
+
object.version !== undefined && object.version !== null
|
|
362
|
+
? String(object.version)
|
|
363
|
+
: "";
|
|
364
|
+
message.channelId =
|
|
365
|
+
object.channelId !== undefined && object.channelId !== null
|
|
366
|
+
? String(object.channelId)
|
|
367
|
+
: "";
|
|
336
368
|
return message;
|
|
337
369
|
},
|
|
338
|
-
toJSON(
|
|
370
|
+
toJSON(message) {
|
|
339
371
|
const obj = {};
|
|
372
|
+
message.version !== undefined && (obj.version = message.version);
|
|
373
|
+
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
340
374
|
return obj;
|
|
341
375
|
},
|
|
342
|
-
fromPartial(
|
|
376
|
+
fromPartial(object) {
|
|
377
|
+
var _a, _b;
|
|
343
378
|
const message = Object.assign({}, baseMsgChannelOpenTryResponse);
|
|
379
|
+
message.version = (_a = object.version) !== null && _a !== void 0 ? _a : "";
|
|
380
|
+
message.channelId = (_b = object.channelId) !== null && _b !== void 0 ? _b : "";
|
|
344
381
|
return message;
|
|
345
382
|
},
|
|
346
383
|
};
|
|
@@ -90,7 +90,11 @@ export interface Height {
|
|
|
90
90
|
}
|
|
91
91
|
/** Params defines the set of IBC light client parameters. */
|
|
92
92
|
export interface Params {
|
|
93
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* allowed_clients defines the list of allowed client state types which can be created
|
|
95
|
+
* and interacted with. If a client type is removed from the allowed clients list, usage
|
|
96
|
+
* of this client will be disabled until it is added again to the list.
|
|
97
|
+
*/
|
|
94
98
|
allowedClients: string[];
|
|
95
99
|
}
|
|
96
100
|
export declare const IdentifiedClientState: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { IdentifiedClientState, ConsensusStateWithHeight, ClientConsensusStates, ClientUpdateProposal, UpgradeProposal, Height, Params } from "./client";
|
|
2
2
|
export { GenesisMetadata, IdentifiedGenesisMetadata } from "./genesis";
|
|
3
|
-
export { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query";
|
|
3
|
+
export { QueryClientStateRequest, QueryClientStateResponse, QueryClientStatesRequest, QueryClientStatesResponse, QueryConsensusStateRequest, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryConsensusStatesResponse, QueryConsensusStateHeightsRequest, QueryConsensusStateHeightsResponse, QueryClientStatusRequest, QueryClientStatusResponse, QueryClientParamsRequest, QueryClientParamsResponse, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse } from "./query";
|
|
4
4
|
export { MsgCreateClient, MsgCreateClientResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpgradeClient, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse } from "./tx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MsgSubmitMisbehaviourResponse = exports.MsgSubmitMisbehaviour = exports.MsgUpgradeClientResponse = exports.MsgUpgradeClient = exports.MsgUpdateClientResponse = exports.MsgUpdateClient = exports.MsgCreateClientResponse = exports.MsgCreateClient = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryUpgradedClientStateResponse = exports.QueryUpgradedClientStateRequest = exports.QueryClientParamsResponse = exports.QueryClientParamsRequest = exports.QueryClientStatusResponse = exports.QueryClientStatusRequest = exports.QueryConsensusStatesResponse = exports.QueryConsensusStatesRequest = exports.QueryConsensusStateResponse = exports.QueryConsensusStateRequest = exports.QueryClientStatesResponse = exports.QueryClientStatesRequest = exports.QueryClientStateResponse = exports.QueryClientStateRequest = exports.IdentifiedGenesisMetadata = exports.GenesisMetadata = exports.Params = exports.Height = exports.UpgradeProposal = exports.ClientUpdateProposal = exports.ClientConsensusStates = exports.ConsensusStateWithHeight = exports.IdentifiedClientState = void 0;
|
|
3
|
+
exports.MsgSubmitMisbehaviourResponse = exports.MsgSubmitMisbehaviour = exports.MsgUpgradeClientResponse = exports.MsgUpgradeClient = exports.MsgUpdateClientResponse = exports.MsgUpdateClient = exports.MsgCreateClientResponse = exports.MsgCreateClient = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryUpgradedClientStateResponse = exports.QueryUpgradedClientStateRequest = exports.QueryClientParamsResponse = exports.QueryClientParamsRequest = exports.QueryClientStatusResponse = exports.QueryClientStatusRequest = exports.QueryConsensusStateHeightsResponse = exports.QueryConsensusStateHeightsRequest = exports.QueryConsensusStatesResponse = exports.QueryConsensusStatesRequest = exports.QueryConsensusStateResponse = exports.QueryConsensusStateRequest = exports.QueryClientStatesResponse = exports.QueryClientStatesRequest = exports.QueryClientStateResponse = exports.QueryClientStateRequest = exports.IdentifiedGenesisMetadata = exports.GenesisMetadata = exports.Params = exports.Height = exports.UpgradeProposal = exports.ClientUpdateProposal = exports.ClientConsensusStates = exports.ConsensusStateWithHeight = exports.IdentifiedClientState = void 0;
|
|
4
4
|
var client_1 = require("./client");
|
|
5
5
|
Object.defineProperty(exports, "IdentifiedClientState", { enumerable: true, get: function () { return client_1.IdentifiedClientState; } });
|
|
6
6
|
Object.defineProperty(exports, "ConsensusStateWithHeight", { enumerable: true, get: function () { return client_1.ConsensusStateWithHeight; } });
|
|
@@ -21,6 +21,8 @@ Object.defineProperty(exports, "QueryConsensusStateRequest", { enumerable: true,
|
|
|
21
21
|
Object.defineProperty(exports, "QueryConsensusStateResponse", { enumerable: true, get: function () { return query_1.QueryConsensusStateResponse; } });
|
|
22
22
|
Object.defineProperty(exports, "QueryConsensusStatesRequest", { enumerable: true, get: function () { return query_1.QueryConsensusStatesRequest; } });
|
|
23
23
|
Object.defineProperty(exports, "QueryConsensusStatesResponse", { enumerable: true, get: function () { return query_1.QueryConsensusStatesResponse; } });
|
|
24
|
+
Object.defineProperty(exports, "QueryConsensusStateHeightsRequest", { enumerable: true, get: function () { return query_1.QueryConsensusStateHeightsRequest; } });
|
|
25
|
+
Object.defineProperty(exports, "QueryConsensusStateHeightsResponse", { enumerable: true, get: function () { return query_1.QueryConsensusStateHeightsResponse; } });
|
|
24
26
|
Object.defineProperty(exports, "QueryClientStatusRequest", { enumerable: true, get: function () { return query_1.QueryClientStatusRequest; } });
|
|
25
27
|
Object.defineProperty(exports, "QueryClientStatusResponse", { enumerable: true, get: function () { return query_1.QueryClientStatusResponse; } });
|
|
26
28
|
Object.defineProperty(exports, "QueryClientParamsRequest", { enumerable: true, get: function () { return query_1.QueryClientParamsRequest; } });
|
|
@@ -93,6 +93,26 @@ export interface QueryConsensusStatesResponse {
|
|
|
93
93
|
/** pagination response */
|
|
94
94
|
pagination?: PageResponse;
|
|
95
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights
|
|
98
|
+
* RPC method.
|
|
99
|
+
*/
|
|
100
|
+
export interface QueryConsensusStateHeightsRequest {
|
|
101
|
+
/** client identifier */
|
|
102
|
+
clientId: string;
|
|
103
|
+
/** pagination request */
|
|
104
|
+
pagination?: PageRequest;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* QueryConsensusStateHeightsResponse is the response type for the
|
|
108
|
+
* Query/ConsensusStateHeights RPC method
|
|
109
|
+
*/
|
|
110
|
+
export interface QueryConsensusStateHeightsResponse {
|
|
111
|
+
/** consensus state heights */
|
|
112
|
+
consensusStateHeights: Height[];
|
|
113
|
+
/** pagination response */
|
|
114
|
+
pagination?: PageResponse;
|
|
115
|
+
}
|
|
96
116
|
/**
|
|
97
117
|
* QueryClientStatusRequest is the request type for the Query/ClientStatus RPC
|
|
98
118
|
* method
|
|
@@ -206,6 +226,20 @@ export declare const QueryConsensusStatesResponse: {
|
|
|
206
226
|
toJSON(message: QueryConsensusStatesResponse): unknown;
|
|
207
227
|
fromPartial(object: DeepPartial<QueryConsensusStatesResponse>): QueryConsensusStatesResponse;
|
|
208
228
|
};
|
|
229
|
+
export declare const QueryConsensusStateHeightsRequest: {
|
|
230
|
+
encode(message: QueryConsensusStateHeightsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
231
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryConsensusStateHeightsRequest;
|
|
232
|
+
fromJSON(object: any): QueryConsensusStateHeightsRequest;
|
|
233
|
+
toJSON(message: QueryConsensusStateHeightsRequest): unknown;
|
|
234
|
+
fromPartial(object: DeepPartial<QueryConsensusStateHeightsRequest>): QueryConsensusStateHeightsRequest;
|
|
235
|
+
};
|
|
236
|
+
export declare const QueryConsensusStateHeightsResponse: {
|
|
237
|
+
encode(message: QueryConsensusStateHeightsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
238
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryConsensusStateHeightsResponse;
|
|
239
|
+
fromJSON(object: any): QueryConsensusStateHeightsResponse;
|
|
240
|
+
toJSON(message: QueryConsensusStateHeightsResponse): unknown;
|
|
241
|
+
fromPartial(object: DeepPartial<QueryConsensusStateHeightsResponse>): QueryConsensusStateHeightsResponse;
|
|
242
|
+
};
|
|
209
243
|
export declare const QueryClientStatusRequest: {
|
|
210
244
|
encode(message: QueryClientStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
211
245
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryClientStatusRequest;
|
|
@@ -278,9 +312,11 @@ export interface Query {
|
|
|
278
312
|
* client.
|
|
279
313
|
*/
|
|
280
314
|
ConsensusStates(request: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse>;
|
|
315
|
+
/** ConsensusStateHeights queries the height of every consensus states associated with a given client. */
|
|
316
|
+
ConsensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise<QueryConsensusStateHeightsResponse>;
|
|
281
317
|
/** Status queries the status of an IBC client. */
|
|
282
318
|
ClientStatus(request: QueryClientStatusRequest): Promise<QueryClientStatusResponse>;
|
|
283
|
-
/** ClientParams queries all parameters of the ibc client. */
|
|
319
|
+
/** ClientParams queries all parameters of the ibc client submodule. */
|
|
284
320
|
ClientParams(request: QueryClientParamsRequest): Promise<QueryClientParamsResponse>;
|
|
285
321
|
/** UpgradedClientState queries an Upgraded IBC light client. */
|
|
286
322
|
UpgradedClientState(request: QueryUpgradedClientStateRequest): Promise<QueryUpgradedClientStateResponse>;
|
|
@@ -294,6 +330,7 @@ export declare class QueryClientImpl implements Query {
|
|
|
294
330
|
ClientStates(request: QueryClientStatesRequest): Promise<QueryClientStatesResponse>;
|
|
295
331
|
ConsensusState(request: QueryConsensusStateRequest): Promise<QueryConsensusStateResponse>;
|
|
296
332
|
ConsensusStates(request: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse>;
|
|
333
|
+
ConsensusStateHeights(request: QueryConsensusStateHeightsRequest): Promise<QueryConsensusStateHeightsResponse>;
|
|
297
334
|
ClientStatus(request: QueryClientStatusRequest): Promise<QueryClientStatusResponse>;
|
|
298
335
|
ClientParams(request: QueryClientParamsRequest): Promise<QueryClientParamsResponse>;
|
|
299
336
|
UpgradedClientState(request: QueryUpgradedClientStateRequest): Promise<QueryUpgradedClientStateResponse>;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.QueryClientImpl = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryUpgradedClientStateResponse = exports.QueryUpgradedClientStateRequest = exports.QueryClientParamsResponse = exports.QueryClientParamsRequest = exports.QueryClientStatusResponse = exports.QueryClientStatusRequest = exports.QueryConsensusStatesResponse = exports.QueryConsensusStatesRequest = exports.QueryConsensusStateResponse = exports.QueryConsensusStateRequest = exports.QueryClientStatesResponse = exports.QueryClientStatesRequest = exports.QueryClientStateResponse = exports.QueryClientStateRequest = exports.protobufPackage = void 0;
|
|
6
|
+
exports.QueryClientImpl = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryUpgradedClientStateResponse = exports.QueryUpgradedClientStateRequest = exports.QueryClientParamsResponse = exports.QueryClientParamsRequest = exports.QueryClientStatusResponse = exports.QueryClientStatusRequest = exports.QueryConsensusStateHeightsResponse = exports.QueryConsensusStateHeightsRequest = exports.QueryConsensusStatesResponse = exports.QueryConsensusStatesRequest = exports.QueryConsensusStateResponse = exports.QueryConsensusStateRequest = exports.QueryClientStatesResponse = exports.QueryClientStatesRequest = exports.QueryClientStateResponse = exports.QueryClientStateRequest = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -564,6 +564,136 @@ exports.QueryConsensusStatesResponse = {
|
|
|
564
564
|
return message;
|
|
565
565
|
},
|
|
566
566
|
};
|
|
567
|
+
const baseQueryConsensusStateHeightsRequest = { clientId: "" };
|
|
568
|
+
exports.QueryConsensusStateHeightsRequest = {
|
|
569
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
570
|
+
if (message.clientId !== "") {
|
|
571
|
+
writer.uint32(10).string(message.clientId);
|
|
572
|
+
}
|
|
573
|
+
if (message.pagination !== undefined) {
|
|
574
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
575
|
+
}
|
|
576
|
+
return writer;
|
|
577
|
+
},
|
|
578
|
+
decode(input, length) {
|
|
579
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
580
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
581
|
+
const message = Object.assign({}, baseQueryConsensusStateHeightsRequest);
|
|
582
|
+
while (reader.pos < end) {
|
|
583
|
+
const tag = reader.uint32();
|
|
584
|
+
switch (tag >>> 3) {
|
|
585
|
+
case 1:
|
|
586
|
+
message.clientId = reader.string();
|
|
587
|
+
break;
|
|
588
|
+
case 2:
|
|
589
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
590
|
+
break;
|
|
591
|
+
default:
|
|
592
|
+
reader.skipType(tag & 7);
|
|
593
|
+
break;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
return message;
|
|
597
|
+
},
|
|
598
|
+
fromJSON(object) {
|
|
599
|
+
const message = Object.assign({}, baseQueryConsensusStateHeightsRequest);
|
|
600
|
+
message.clientId =
|
|
601
|
+
object.clientId !== undefined && object.clientId !== null
|
|
602
|
+
? String(object.clientId)
|
|
603
|
+
: "";
|
|
604
|
+
message.pagination =
|
|
605
|
+
object.pagination !== undefined && object.pagination !== null
|
|
606
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
607
|
+
: undefined;
|
|
608
|
+
return message;
|
|
609
|
+
},
|
|
610
|
+
toJSON(message) {
|
|
611
|
+
const obj = {};
|
|
612
|
+
message.clientId !== undefined && (obj.clientId = message.clientId);
|
|
613
|
+
message.pagination !== undefined &&
|
|
614
|
+
(obj.pagination = message.pagination
|
|
615
|
+
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
616
|
+
: undefined);
|
|
617
|
+
return obj;
|
|
618
|
+
},
|
|
619
|
+
fromPartial(object) {
|
|
620
|
+
var _a;
|
|
621
|
+
const message = Object.assign({}, baseQueryConsensusStateHeightsRequest);
|
|
622
|
+
message.clientId = (_a = object.clientId) !== null && _a !== void 0 ? _a : "";
|
|
623
|
+
message.pagination =
|
|
624
|
+
object.pagination !== undefined && object.pagination !== null
|
|
625
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
626
|
+
: undefined;
|
|
627
|
+
return message;
|
|
628
|
+
},
|
|
629
|
+
};
|
|
630
|
+
const baseQueryConsensusStateHeightsResponse = {};
|
|
631
|
+
exports.QueryConsensusStateHeightsResponse = {
|
|
632
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
633
|
+
for (const v of message.consensusStateHeights) {
|
|
634
|
+
client_1.Height.encode(v, writer.uint32(10).fork()).ldelim();
|
|
635
|
+
}
|
|
636
|
+
if (message.pagination !== undefined) {
|
|
637
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
638
|
+
}
|
|
639
|
+
return writer;
|
|
640
|
+
},
|
|
641
|
+
decode(input, length) {
|
|
642
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
643
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
644
|
+
const message = Object.assign({}, baseQueryConsensusStateHeightsResponse);
|
|
645
|
+
message.consensusStateHeights = [];
|
|
646
|
+
while (reader.pos < end) {
|
|
647
|
+
const tag = reader.uint32();
|
|
648
|
+
switch (tag >>> 3) {
|
|
649
|
+
case 1:
|
|
650
|
+
message.consensusStateHeights.push(client_1.Height.decode(reader, reader.uint32()));
|
|
651
|
+
break;
|
|
652
|
+
case 2:
|
|
653
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
654
|
+
break;
|
|
655
|
+
default:
|
|
656
|
+
reader.skipType(tag & 7);
|
|
657
|
+
break;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
return message;
|
|
661
|
+
},
|
|
662
|
+
fromJSON(object) {
|
|
663
|
+
var _a;
|
|
664
|
+
const message = Object.assign({}, baseQueryConsensusStateHeightsResponse);
|
|
665
|
+
message.consensusStateHeights = ((_a = object.consensusStateHeights) !== null && _a !== void 0 ? _a : []).map((e) => client_1.Height.fromJSON(e));
|
|
666
|
+
message.pagination =
|
|
667
|
+
object.pagination !== undefined && object.pagination !== null
|
|
668
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
669
|
+
: undefined;
|
|
670
|
+
return message;
|
|
671
|
+
},
|
|
672
|
+
toJSON(message) {
|
|
673
|
+
const obj = {};
|
|
674
|
+
if (message.consensusStateHeights) {
|
|
675
|
+
obj.consensusStateHeights = message.consensusStateHeights.map((e) => e ? client_1.Height.toJSON(e) : undefined);
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
678
|
+
obj.consensusStateHeights = [];
|
|
679
|
+
}
|
|
680
|
+
message.pagination !== undefined &&
|
|
681
|
+
(obj.pagination = message.pagination
|
|
682
|
+
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
683
|
+
: undefined);
|
|
684
|
+
return obj;
|
|
685
|
+
},
|
|
686
|
+
fromPartial(object) {
|
|
687
|
+
var _a;
|
|
688
|
+
const message = Object.assign({}, baseQueryConsensusStateHeightsResponse);
|
|
689
|
+
message.consensusStateHeights = ((_a = object.consensusStateHeights) !== null && _a !== void 0 ? _a : []).map((e) => client_1.Height.fromPartial(e));
|
|
690
|
+
message.pagination =
|
|
691
|
+
object.pagination !== undefined && object.pagination !== null
|
|
692
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
693
|
+
: undefined;
|
|
694
|
+
return message;
|
|
695
|
+
},
|
|
696
|
+
};
|
|
567
697
|
const baseQueryClientStatusRequest = { clientId: "" };
|
|
568
698
|
exports.QueryClientStatusRequest = {
|
|
569
699
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -909,6 +1039,7 @@ class QueryClientImpl {
|
|
|
909
1039
|
this.ClientStates = this.ClientStates.bind(this);
|
|
910
1040
|
this.ConsensusState = this.ConsensusState.bind(this);
|
|
911
1041
|
this.ConsensusStates = this.ConsensusStates.bind(this);
|
|
1042
|
+
this.ConsensusStateHeights = this.ConsensusStateHeights.bind(this);
|
|
912
1043
|
this.ClientStatus = this.ClientStatus.bind(this);
|
|
913
1044
|
this.ClientParams = this.ClientParams.bind(this);
|
|
914
1045
|
this.UpgradedClientState = this.UpgradedClientState.bind(this);
|
|
@@ -934,6 +1065,11 @@ class QueryClientImpl {
|
|
|
934
1065
|
const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStates", data);
|
|
935
1066
|
return promise.then((data) => exports.QueryConsensusStatesResponse.decode(new minimal_1.default.Reader(data)));
|
|
936
1067
|
}
|
|
1068
|
+
ConsensusStateHeights(request) {
|
|
1069
|
+
const data = exports.QueryConsensusStateHeightsRequest.encode(request).finish();
|
|
1070
|
+
const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStateHeights", data);
|
|
1071
|
+
return promise.then((data) => exports.QueryConsensusStateHeightsResponse.decode(new minimal_1.default.Reader(data)));
|
|
1072
|
+
}
|
|
937
1073
|
ClientStatus(request) {
|
|
938
1074
|
const data = exports.QueryClientStatusRequest.encode(request).finish();
|
|
939
1075
|
const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStatus", data);
|