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.Pool = exports.RedelegationResponse = exports.RedelegationEntryResponse = exports.DelegationResponse = exports.Params = exports.Redelegation = exports.RedelegationEntry = exports.UnbondingDelegationEntry = exports.UnbondingDelegation = exports.Delegation = exports.DVVTriplets = exports.DVVTriplet = exports.DVPairs = exports.DVPair = exports.ValAddresses = exports.Validator = exports.Description = exports.Commission = exports.CommissionRates = exports.HistoricalInfo = exports.bondStatusToJSON = exports.bondStatusFromJSON = exports.BondStatus = exports.protobufPackage = void 0;
|
|
6
|
+
exports.ValidatorUpdates = exports.Pool = exports.RedelegationResponse = exports.RedelegationEntryResponse = exports.DelegationResponse = exports.Params = exports.Redelegation = exports.RedelegationEntry = exports.UnbondingDelegationEntry = exports.UnbondingDelegation = exports.Delegation = exports.DVVTriplets = exports.DVVTriplet = exports.DVPairs = exports.DVPair = exports.ValAddresses = exports.Validator = exports.Description = exports.Commission = exports.CommissionRates = exports.HistoricalInfo = exports.infractionToJSON = exports.infractionFromJSON = exports.Infraction = exports.bondStatusToJSON = exports.bondStatusFromJSON = exports.BondStatus = 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"));
|
|
@@ -12,6 +12,7 @@ const any_1 = require("../../../google/protobuf/any");
|
|
|
12
12
|
const duration_1 = require("../../../google/protobuf/duration");
|
|
13
13
|
const coin_1 = require("../../base/v1beta1/coin");
|
|
14
14
|
const timestamp_1 = require("../../../google/protobuf/timestamp");
|
|
15
|
+
const types_2 = require("../../../tendermint/abci/types");
|
|
15
16
|
exports.protobufPackage = "cosmos.staking.v1beta1";
|
|
16
17
|
/** BondStatus is the status of a validator. */
|
|
17
18
|
var BondStatus;
|
|
@@ -62,6 +63,48 @@ function bondStatusToJSON(object) {
|
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
exports.bondStatusToJSON = bondStatusToJSON;
|
|
66
|
+
/** Infraction indicates the infraction a validator commited. */
|
|
67
|
+
var Infraction;
|
|
68
|
+
(function (Infraction) {
|
|
69
|
+
/** INFRACTION_UNSPECIFIED - UNSPECIFIED defines an empty infraction. */
|
|
70
|
+
Infraction[Infraction["INFRACTION_UNSPECIFIED"] = 0] = "INFRACTION_UNSPECIFIED";
|
|
71
|
+
/** INFRACTION_DOUBLE_SIGN - DOUBLE_SIGN defines a validator that double-signs a block. */
|
|
72
|
+
Infraction[Infraction["INFRACTION_DOUBLE_SIGN"] = 1] = "INFRACTION_DOUBLE_SIGN";
|
|
73
|
+
/** INFRACTION_DOWNTIME - DOWNTIME defines a validator that missed signing too many blocks. */
|
|
74
|
+
Infraction[Infraction["INFRACTION_DOWNTIME"] = 2] = "INFRACTION_DOWNTIME";
|
|
75
|
+
Infraction[Infraction["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
76
|
+
})(Infraction = exports.Infraction || (exports.Infraction = {}));
|
|
77
|
+
function infractionFromJSON(object) {
|
|
78
|
+
switch (object) {
|
|
79
|
+
case 0:
|
|
80
|
+
case "INFRACTION_UNSPECIFIED":
|
|
81
|
+
return Infraction.INFRACTION_UNSPECIFIED;
|
|
82
|
+
case 1:
|
|
83
|
+
case "INFRACTION_DOUBLE_SIGN":
|
|
84
|
+
return Infraction.INFRACTION_DOUBLE_SIGN;
|
|
85
|
+
case 2:
|
|
86
|
+
case "INFRACTION_DOWNTIME":
|
|
87
|
+
return Infraction.INFRACTION_DOWNTIME;
|
|
88
|
+
case -1:
|
|
89
|
+
case "UNRECOGNIZED":
|
|
90
|
+
default:
|
|
91
|
+
return Infraction.UNRECOGNIZED;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.infractionFromJSON = infractionFromJSON;
|
|
95
|
+
function infractionToJSON(object) {
|
|
96
|
+
switch (object) {
|
|
97
|
+
case Infraction.INFRACTION_UNSPECIFIED:
|
|
98
|
+
return "INFRACTION_UNSPECIFIED";
|
|
99
|
+
case Infraction.INFRACTION_DOUBLE_SIGN:
|
|
100
|
+
return "INFRACTION_DOUBLE_SIGN";
|
|
101
|
+
case Infraction.INFRACTION_DOWNTIME:
|
|
102
|
+
return "INFRACTION_DOWNTIME";
|
|
103
|
+
default:
|
|
104
|
+
return "UNKNOWN";
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.infractionToJSON = infractionToJSON;
|
|
65
108
|
const baseHistoricalInfo = {};
|
|
66
109
|
exports.HistoricalInfo = {
|
|
67
110
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -373,6 +416,8 @@ const baseValidator = {
|
|
|
373
416
|
delegatorShares: "",
|
|
374
417
|
unbondingHeight: long_1.default.ZERO,
|
|
375
418
|
minSelfDelegation: "",
|
|
419
|
+
unbondingOnHoldRefCount: long_1.default.ZERO,
|
|
420
|
+
unbondingIds: long_1.default.UZERO,
|
|
376
421
|
};
|
|
377
422
|
exports.Validator = {
|
|
378
423
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -409,12 +454,21 @@ exports.Validator = {
|
|
|
409
454
|
if (message.minSelfDelegation !== "") {
|
|
410
455
|
writer.uint32(90).string(message.minSelfDelegation);
|
|
411
456
|
}
|
|
457
|
+
if (!message.unbondingOnHoldRefCount.isZero()) {
|
|
458
|
+
writer.uint32(96).int64(message.unbondingOnHoldRefCount);
|
|
459
|
+
}
|
|
460
|
+
writer.uint32(106).fork();
|
|
461
|
+
for (const v of message.unbondingIds) {
|
|
462
|
+
writer.uint64(v);
|
|
463
|
+
}
|
|
464
|
+
writer.ldelim();
|
|
412
465
|
return writer;
|
|
413
466
|
},
|
|
414
467
|
decode(input, length) {
|
|
415
468
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
416
469
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
417
470
|
const message = Object.assign({}, baseValidator);
|
|
471
|
+
message.unbondingIds = [];
|
|
418
472
|
while (reader.pos < end) {
|
|
419
473
|
const tag = reader.uint32();
|
|
420
474
|
switch (tag >>> 3) {
|
|
@@ -451,6 +505,20 @@ exports.Validator = {
|
|
|
451
505
|
case 11:
|
|
452
506
|
message.minSelfDelegation = reader.string();
|
|
453
507
|
break;
|
|
508
|
+
case 12:
|
|
509
|
+
message.unbondingOnHoldRefCount = reader.int64();
|
|
510
|
+
break;
|
|
511
|
+
case 13:
|
|
512
|
+
if ((tag & 7) === 2) {
|
|
513
|
+
const end2 = reader.uint32() + reader.pos;
|
|
514
|
+
while (reader.pos < end2) {
|
|
515
|
+
message.unbondingIds.push(reader.uint64());
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
else {
|
|
519
|
+
message.unbondingIds.push(reader.uint64());
|
|
520
|
+
}
|
|
521
|
+
break;
|
|
454
522
|
default:
|
|
455
523
|
reader.skipType(tag & 7);
|
|
456
524
|
break;
|
|
@@ -459,6 +527,7 @@ exports.Validator = {
|
|
|
459
527
|
return message;
|
|
460
528
|
},
|
|
461
529
|
fromJSON(object) {
|
|
530
|
+
var _a;
|
|
462
531
|
const message = Object.assign({}, baseValidator);
|
|
463
532
|
message.operatorAddress =
|
|
464
533
|
object.operatorAddress !== undefined && object.operatorAddress !== null
|
|
@@ -505,6 +574,12 @@ exports.Validator = {
|
|
|
505
574
|
object.minSelfDelegation !== null
|
|
506
575
|
? String(object.minSelfDelegation)
|
|
507
576
|
: "";
|
|
577
|
+
message.unbondingOnHoldRefCount =
|
|
578
|
+
object.unbondingOnHoldRefCount !== undefined &&
|
|
579
|
+
object.unbondingOnHoldRefCount !== null
|
|
580
|
+
? long_1.default.fromString(object.unbondingOnHoldRefCount)
|
|
581
|
+
: long_1.default.ZERO;
|
|
582
|
+
message.unbondingIds = ((_a = object.unbondingIds) !== null && _a !== void 0 ? _a : []).map((e) => long_1.default.fromString(e));
|
|
508
583
|
return message;
|
|
509
584
|
},
|
|
510
585
|
toJSON(message) {
|
|
@@ -535,10 +610,18 @@ exports.Validator = {
|
|
|
535
610
|
: undefined);
|
|
536
611
|
message.minSelfDelegation !== undefined &&
|
|
537
612
|
(obj.minSelfDelegation = message.minSelfDelegation);
|
|
613
|
+
message.unbondingOnHoldRefCount !== undefined &&
|
|
614
|
+
(obj.unbondingOnHoldRefCount = (message.unbondingOnHoldRefCount || long_1.default.ZERO).toString());
|
|
615
|
+
if (message.unbondingIds) {
|
|
616
|
+
obj.unbondingIds = message.unbondingIds.map((e) => (e || long_1.default.UZERO).toString());
|
|
617
|
+
}
|
|
618
|
+
else {
|
|
619
|
+
obj.unbondingIds = [];
|
|
620
|
+
}
|
|
538
621
|
return obj;
|
|
539
622
|
},
|
|
540
623
|
fromPartial(object) {
|
|
541
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
624
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
542
625
|
const message = Object.assign({}, baseValidator);
|
|
543
626
|
message.operatorAddress = (_a = object.operatorAddress) !== null && _a !== void 0 ? _a : "";
|
|
544
627
|
message.consensusPubkey =
|
|
@@ -563,6 +646,12 @@ exports.Validator = {
|
|
|
563
646
|
? exports.Commission.fromPartial(object.commission)
|
|
564
647
|
: undefined;
|
|
565
648
|
message.minSelfDelegation = (_g = object.minSelfDelegation) !== null && _g !== void 0 ? _g : "";
|
|
649
|
+
message.unbondingOnHoldRefCount =
|
|
650
|
+
object.unbondingOnHoldRefCount !== undefined &&
|
|
651
|
+
object.unbondingOnHoldRefCount !== null
|
|
652
|
+
? long_1.default.fromValue(object.unbondingOnHoldRefCount)
|
|
653
|
+
: long_1.default.ZERO;
|
|
654
|
+
message.unbondingIds = ((_h = object.unbondingIds) !== null && _h !== void 0 ? _h : []).map((e) => long_1.default.fromValue(e));
|
|
566
655
|
return message;
|
|
567
656
|
},
|
|
568
657
|
};
|
|
@@ -1007,6 +1096,8 @@ const baseUnbondingDelegationEntry = {
|
|
|
1007
1096
|
creationHeight: long_1.default.ZERO,
|
|
1008
1097
|
initialBalance: "",
|
|
1009
1098
|
balance: "",
|
|
1099
|
+
unbondingId: long_1.default.UZERO,
|
|
1100
|
+
unbondingOnHoldRefCount: long_1.default.ZERO,
|
|
1010
1101
|
};
|
|
1011
1102
|
exports.UnbondingDelegationEntry = {
|
|
1012
1103
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -1022,6 +1113,12 @@ exports.UnbondingDelegationEntry = {
|
|
|
1022
1113
|
if (message.balance !== "") {
|
|
1023
1114
|
writer.uint32(34).string(message.balance);
|
|
1024
1115
|
}
|
|
1116
|
+
if (!message.unbondingId.isZero()) {
|
|
1117
|
+
writer.uint32(40).uint64(message.unbondingId);
|
|
1118
|
+
}
|
|
1119
|
+
if (!message.unbondingOnHoldRefCount.isZero()) {
|
|
1120
|
+
writer.uint32(48).int64(message.unbondingOnHoldRefCount);
|
|
1121
|
+
}
|
|
1025
1122
|
return writer;
|
|
1026
1123
|
},
|
|
1027
1124
|
decode(input, length) {
|
|
@@ -1043,6 +1140,12 @@ exports.UnbondingDelegationEntry = {
|
|
|
1043
1140
|
case 4:
|
|
1044
1141
|
message.balance = reader.string();
|
|
1045
1142
|
break;
|
|
1143
|
+
case 5:
|
|
1144
|
+
message.unbondingId = reader.uint64();
|
|
1145
|
+
break;
|
|
1146
|
+
case 6:
|
|
1147
|
+
message.unbondingOnHoldRefCount = reader.int64();
|
|
1148
|
+
break;
|
|
1046
1149
|
default:
|
|
1047
1150
|
reader.skipType(tag & 7);
|
|
1048
1151
|
break;
|
|
@@ -1068,6 +1171,15 @@ exports.UnbondingDelegationEntry = {
|
|
|
1068
1171
|
object.balance !== undefined && object.balance !== null
|
|
1069
1172
|
? String(object.balance)
|
|
1070
1173
|
: "";
|
|
1174
|
+
message.unbondingId =
|
|
1175
|
+
object.unbondingId !== undefined && object.unbondingId !== null
|
|
1176
|
+
? long_1.default.fromString(object.unbondingId)
|
|
1177
|
+
: long_1.default.UZERO;
|
|
1178
|
+
message.unbondingOnHoldRefCount =
|
|
1179
|
+
object.unbondingOnHoldRefCount !== undefined &&
|
|
1180
|
+
object.unbondingOnHoldRefCount !== null
|
|
1181
|
+
? long_1.default.fromString(object.unbondingOnHoldRefCount)
|
|
1182
|
+
: long_1.default.ZERO;
|
|
1071
1183
|
return message;
|
|
1072
1184
|
},
|
|
1073
1185
|
toJSON(message) {
|
|
@@ -1079,6 +1191,10 @@ exports.UnbondingDelegationEntry = {
|
|
|
1079
1191
|
message.initialBalance !== undefined &&
|
|
1080
1192
|
(obj.initialBalance = message.initialBalance);
|
|
1081
1193
|
message.balance !== undefined && (obj.balance = message.balance);
|
|
1194
|
+
message.unbondingId !== undefined &&
|
|
1195
|
+
(obj.unbondingId = (message.unbondingId || long_1.default.UZERO).toString());
|
|
1196
|
+
message.unbondingOnHoldRefCount !== undefined &&
|
|
1197
|
+
(obj.unbondingOnHoldRefCount = (message.unbondingOnHoldRefCount || long_1.default.ZERO).toString());
|
|
1082
1198
|
return obj;
|
|
1083
1199
|
},
|
|
1084
1200
|
fromPartial(object) {
|
|
@@ -1091,6 +1207,15 @@ exports.UnbondingDelegationEntry = {
|
|
|
1091
1207
|
message.completionTime = (_a = object.completionTime) !== null && _a !== void 0 ? _a : undefined;
|
|
1092
1208
|
message.initialBalance = (_b = object.initialBalance) !== null && _b !== void 0 ? _b : "";
|
|
1093
1209
|
message.balance = (_c = object.balance) !== null && _c !== void 0 ? _c : "";
|
|
1210
|
+
message.unbondingId =
|
|
1211
|
+
object.unbondingId !== undefined && object.unbondingId !== null
|
|
1212
|
+
? long_1.default.fromValue(object.unbondingId)
|
|
1213
|
+
: long_1.default.UZERO;
|
|
1214
|
+
message.unbondingOnHoldRefCount =
|
|
1215
|
+
object.unbondingOnHoldRefCount !== undefined &&
|
|
1216
|
+
object.unbondingOnHoldRefCount !== null
|
|
1217
|
+
? long_1.default.fromValue(object.unbondingOnHoldRefCount)
|
|
1218
|
+
: long_1.default.ZERO;
|
|
1094
1219
|
return message;
|
|
1095
1220
|
},
|
|
1096
1221
|
};
|
|
@@ -1098,6 +1223,8 @@ const baseRedelegationEntry = {
|
|
|
1098
1223
|
creationHeight: long_1.default.ZERO,
|
|
1099
1224
|
initialBalance: "",
|
|
1100
1225
|
sharesDst: "",
|
|
1226
|
+
unbondingId: long_1.default.UZERO,
|
|
1227
|
+
unbondingOnHoldRefCount: long_1.default.ZERO,
|
|
1101
1228
|
};
|
|
1102
1229
|
exports.RedelegationEntry = {
|
|
1103
1230
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -1113,6 +1240,12 @@ exports.RedelegationEntry = {
|
|
|
1113
1240
|
if (message.sharesDst !== "") {
|
|
1114
1241
|
writer.uint32(34).string(message.sharesDst);
|
|
1115
1242
|
}
|
|
1243
|
+
if (!message.unbondingId.isZero()) {
|
|
1244
|
+
writer.uint32(40).uint64(message.unbondingId);
|
|
1245
|
+
}
|
|
1246
|
+
if (!message.unbondingOnHoldRefCount.isZero()) {
|
|
1247
|
+
writer.uint32(48).int64(message.unbondingOnHoldRefCount);
|
|
1248
|
+
}
|
|
1116
1249
|
return writer;
|
|
1117
1250
|
},
|
|
1118
1251
|
decode(input, length) {
|
|
@@ -1134,6 +1267,12 @@ exports.RedelegationEntry = {
|
|
|
1134
1267
|
case 4:
|
|
1135
1268
|
message.sharesDst = reader.string();
|
|
1136
1269
|
break;
|
|
1270
|
+
case 5:
|
|
1271
|
+
message.unbondingId = reader.uint64();
|
|
1272
|
+
break;
|
|
1273
|
+
case 6:
|
|
1274
|
+
message.unbondingOnHoldRefCount = reader.int64();
|
|
1275
|
+
break;
|
|
1137
1276
|
default:
|
|
1138
1277
|
reader.skipType(tag & 7);
|
|
1139
1278
|
break;
|
|
@@ -1159,6 +1298,15 @@ exports.RedelegationEntry = {
|
|
|
1159
1298
|
object.sharesDst !== undefined && object.sharesDst !== null
|
|
1160
1299
|
? String(object.sharesDst)
|
|
1161
1300
|
: "";
|
|
1301
|
+
message.unbondingId =
|
|
1302
|
+
object.unbondingId !== undefined && object.unbondingId !== null
|
|
1303
|
+
? long_1.default.fromString(object.unbondingId)
|
|
1304
|
+
: long_1.default.UZERO;
|
|
1305
|
+
message.unbondingOnHoldRefCount =
|
|
1306
|
+
object.unbondingOnHoldRefCount !== undefined &&
|
|
1307
|
+
object.unbondingOnHoldRefCount !== null
|
|
1308
|
+
? long_1.default.fromString(object.unbondingOnHoldRefCount)
|
|
1309
|
+
: long_1.default.ZERO;
|
|
1162
1310
|
return message;
|
|
1163
1311
|
},
|
|
1164
1312
|
toJSON(message) {
|
|
@@ -1170,6 +1318,10 @@ exports.RedelegationEntry = {
|
|
|
1170
1318
|
message.initialBalance !== undefined &&
|
|
1171
1319
|
(obj.initialBalance = message.initialBalance);
|
|
1172
1320
|
message.sharesDst !== undefined && (obj.sharesDst = message.sharesDst);
|
|
1321
|
+
message.unbondingId !== undefined &&
|
|
1322
|
+
(obj.unbondingId = (message.unbondingId || long_1.default.UZERO).toString());
|
|
1323
|
+
message.unbondingOnHoldRefCount !== undefined &&
|
|
1324
|
+
(obj.unbondingOnHoldRefCount = (message.unbondingOnHoldRefCount || long_1.default.ZERO).toString());
|
|
1173
1325
|
return obj;
|
|
1174
1326
|
},
|
|
1175
1327
|
fromPartial(object) {
|
|
@@ -1182,6 +1334,15 @@ exports.RedelegationEntry = {
|
|
|
1182
1334
|
message.completionTime = (_a = object.completionTime) !== null && _a !== void 0 ? _a : undefined;
|
|
1183
1335
|
message.initialBalance = (_b = object.initialBalance) !== null && _b !== void 0 ? _b : "";
|
|
1184
1336
|
message.sharesDst = (_c = object.sharesDst) !== null && _c !== void 0 ? _c : "";
|
|
1337
|
+
message.unbondingId =
|
|
1338
|
+
object.unbondingId !== undefined && object.unbondingId !== null
|
|
1339
|
+
? long_1.default.fromValue(object.unbondingId)
|
|
1340
|
+
: long_1.default.UZERO;
|
|
1341
|
+
message.unbondingOnHoldRefCount =
|
|
1342
|
+
object.unbondingOnHoldRefCount !== undefined &&
|
|
1343
|
+
object.unbondingOnHoldRefCount !== null
|
|
1344
|
+
? long_1.default.fromValue(object.unbondingOnHoldRefCount)
|
|
1345
|
+
: long_1.default.ZERO;
|
|
1185
1346
|
return message;
|
|
1186
1347
|
},
|
|
1187
1348
|
};
|
|
@@ -1660,6 +1821,55 @@ exports.Pool = {
|
|
|
1660
1821
|
return message;
|
|
1661
1822
|
},
|
|
1662
1823
|
};
|
|
1824
|
+
const baseValidatorUpdates = {};
|
|
1825
|
+
exports.ValidatorUpdates = {
|
|
1826
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1827
|
+
for (const v of message.updates) {
|
|
1828
|
+
types_2.ValidatorUpdate.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1829
|
+
}
|
|
1830
|
+
return writer;
|
|
1831
|
+
},
|
|
1832
|
+
decode(input, length) {
|
|
1833
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1834
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1835
|
+
const message = Object.assign({}, baseValidatorUpdates);
|
|
1836
|
+
message.updates = [];
|
|
1837
|
+
while (reader.pos < end) {
|
|
1838
|
+
const tag = reader.uint32();
|
|
1839
|
+
switch (tag >>> 3) {
|
|
1840
|
+
case 1:
|
|
1841
|
+
message.updates.push(types_2.ValidatorUpdate.decode(reader, reader.uint32()));
|
|
1842
|
+
break;
|
|
1843
|
+
default:
|
|
1844
|
+
reader.skipType(tag & 7);
|
|
1845
|
+
break;
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
return message;
|
|
1849
|
+
},
|
|
1850
|
+
fromJSON(object) {
|
|
1851
|
+
var _a;
|
|
1852
|
+
const message = Object.assign({}, baseValidatorUpdates);
|
|
1853
|
+
message.updates = ((_a = object.updates) !== null && _a !== void 0 ? _a : []).map((e) => types_2.ValidatorUpdate.fromJSON(e));
|
|
1854
|
+
return message;
|
|
1855
|
+
},
|
|
1856
|
+
toJSON(message) {
|
|
1857
|
+
const obj = {};
|
|
1858
|
+
if (message.updates) {
|
|
1859
|
+
obj.updates = message.updates.map((e) => e ? types_2.ValidatorUpdate.toJSON(e) : undefined);
|
|
1860
|
+
}
|
|
1861
|
+
else {
|
|
1862
|
+
obj.updates = [];
|
|
1863
|
+
}
|
|
1864
|
+
return obj;
|
|
1865
|
+
},
|
|
1866
|
+
fromPartial(object) {
|
|
1867
|
+
var _a;
|
|
1868
|
+
const message = Object.assign({}, baseValidatorUpdates);
|
|
1869
|
+
message.updates = ((_a = object.updates) !== null && _a !== void 0 ? _a : []).map((e) => types_2.ValidatorUpdate.fromPartial(e));
|
|
1870
|
+
return message;
|
|
1871
|
+
},
|
|
1872
|
+
};
|
|
1663
1873
|
function toTimestamp(date) {
|
|
1664
1874
|
const seconds = numberToLong(date.getTime() / 1000);
|
|
1665
1875
|
const nanos = (date.getTime() % 1000) * 1000000;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Description, CommissionRates } from "./staking";
|
|
3
|
+
import { Description, CommissionRates, Params } from "./staking";
|
|
4
4
|
import { Any } from "../../../google/protobuf/any";
|
|
5
5
|
import { Coin } from "../../base/v1beta1/coin";
|
|
6
6
|
export declare const protobufPackage = "cosmos.staking.v1beta1";
|
|
@@ -92,6 +92,29 @@ export interface MsgCancelUnbondingDelegation {
|
|
|
92
92
|
*/
|
|
93
93
|
export interface MsgCancelUnbondingDelegationResponse {
|
|
94
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
97
|
+
*
|
|
98
|
+
* Since: cosmos-sdk 0.47
|
|
99
|
+
*/
|
|
100
|
+
export interface MsgUpdateParams {
|
|
101
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
102
|
+
authority: string;
|
|
103
|
+
/**
|
|
104
|
+
* params defines the x/staking parameters to update.
|
|
105
|
+
*
|
|
106
|
+
* NOTE: All parameters must be supplied.
|
|
107
|
+
*/
|
|
108
|
+
params?: Params;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
112
|
+
* MsgUpdateParams message.
|
|
113
|
+
*
|
|
114
|
+
* Since: cosmos-sdk 0.47
|
|
115
|
+
*/
|
|
116
|
+
export interface MsgUpdateParamsResponse {
|
|
117
|
+
}
|
|
95
118
|
export declare const MsgCreateValidator: {
|
|
96
119
|
encode(message: MsgCreateValidator, writer?: _m0.Writer): _m0.Writer;
|
|
97
120
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgCreateValidator;
|
|
@@ -176,6 +199,20 @@ export declare const MsgCancelUnbondingDelegationResponse: {
|
|
|
176
199
|
toJSON(_: MsgCancelUnbondingDelegationResponse): unknown;
|
|
177
200
|
fromPartial(_: DeepPartial<MsgCancelUnbondingDelegationResponse>): MsgCancelUnbondingDelegationResponse;
|
|
178
201
|
};
|
|
202
|
+
export declare const MsgUpdateParams: {
|
|
203
|
+
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
204
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParams;
|
|
205
|
+
fromJSON(object: any): MsgUpdateParams;
|
|
206
|
+
toJSON(message: MsgUpdateParams): unknown;
|
|
207
|
+
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams;
|
|
208
|
+
};
|
|
209
|
+
export declare const MsgUpdateParamsResponse: {
|
|
210
|
+
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
211
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParamsResponse;
|
|
212
|
+
fromJSON(_: any): MsgUpdateParamsResponse;
|
|
213
|
+
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
214
|
+
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse;
|
|
215
|
+
};
|
|
179
216
|
/** Msg defines the staking Msg service. */
|
|
180
217
|
export interface Msg {
|
|
181
218
|
/** CreateValidator defines a method for creating a new validator. */
|
|
@@ -204,6 +241,12 @@ export interface Msg {
|
|
|
204
241
|
* Since: cosmos-sdk 0.46
|
|
205
242
|
*/
|
|
206
243
|
CancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise<MsgCancelUnbondingDelegationResponse>;
|
|
244
|
+
/**
|
|
245
|
+
* UpdateParams defines an operation for updating the x/staking module
|
|
246
|
+
* parameters.
|
|
247
|
+
* Since: cosmos-sdk 0.47
|
|
248
|
+
*/
|
|
249
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
207
250
|
}
|
|
208
251
|
export declare class MsgClientImpl implements Msg {
|
|
209
252
|
private readonly rpc;
|
|
@@ -214,6 +257,7 @@ export declare class MsgClientImpl implements Msg {
|
|
|
214
257
|
BeginRedelegate(request: MsgBeginRedelegate): Promise<MsgBeginRedelegateResponse>;
|
|
215
258
|
Undelegate(request: MsgUndelegate): Promise<MsgUndelegateResponse>;
|
|
216
259
|
CancelUnbondingDelegation(request: MsgCancelUnbondingDelegation): Promise<MsgCancelUnbondingDelegationResponse>;
|
|
260
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
217
261
|
}
|
|
218
262
|
interface Rpc {
|
|
219
263
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -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.MsgClientImpl = exports.MsgCancelUnbondingDelegationResponse = exports.MsgCancelUnbondingDelegation = exports.MsgUndelegateResponse = exports.MsgUndelegate = exports.MsgBeginRedelegateResponse = exports.MsgBeginRedelegate = exports.MsgDelegateResponse = exports.MsgDelegate = exports.MsgEditValidatorResponse = exports.MsgEditValidator = exports.MsgCreateValidatorResponse = exports.MsgCreateValidator = exports.protobufPackage = void 0;
|
|
6
|
+
exports.MsgClientImpl = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.MsgCancelUnbondingDelegationResponse = exports.MsgCancelUnbondingDelegation = exports.MsgUndelegateResponse = exports.MsgUndelegate = exports.MsgBeginRedelegateResponse = exports.MsgBeginRedelegate = exports.MsgDelegateResponse = exports.MsgDelegate = exports.MsgEditValidatorResponse = exports.MsgEditValidator = exports.MsgCreateValidatorResponse = exports.MsgCreateValidator = 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"));
|
|
@@ -814,6 +814,99 @@ exports.MsgCancelUnbondingDelegationResponse = {
|
|
|
814
814
|
return message;
|
|
815
815
|
},
|
|
816
816
|
};
|
|
817
|
+
const baseMsgUpdateParams = { authority: "" };
|
|
818
|
+
exports.MsgUpdateParams = {
|
|
819
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
820
|
+
if (message.authority !== "") {
|
|
821
|
+
writer.uint32(10).string(message.authority);
|
|
822
|
+
}
|
|
823
|
+
if (message.params !== undefined) {
|
|
824
|
+
staking_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
825
|
+
}
|
|
826
|
+
return writer;
|
|
827
|
+
},
|
|
828
|
+
decode(input, length) {
|
|
829
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
830
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
831
|
+
const message = Object.assign({}, baseMsgUpdateParams);
|
|
832
|
+
while (reader.pos < end) {
|
|
833
|
+
const tag = reader.uint32();
|
|
834
|
+
switch (tag >>> 3) {
|
|
835
|
+
case 1:
|
|
836
|
+
message.authority = reader.string();
|
|
837
|
+
break;
|
|
838
|
+
case 2:
|
|
839
|
+
message.params = staking_1.Params.decode(reader, reader.uint32());
|
|
840
|
+
break;
|
|
841
|
+
default:
|
|
842
|
+
reader.skipType(tag & 7);
|
|
843
|
+
break;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
return message;
|
|
847
|
+
},
|
|
848
|
+
fromJSON(object) {
|
|
849
|
+
const message = Object.assign({}, baseMsgUpdateParams);
|
|
850
|
+
message.authority =
|
|
851
|
+
object.authority !== undefined && object.authority !== null
|
|
852
|
+
? String(object.authority)
|
|
853
|
+
: "";
|
|
854
|
+
message.params =
|
|
855
|
+
object.params !== undefined && object.params !== null
|
|
856
|
+
? staking_1.Params.fromJSON(object.params)
|
|
857
|
+
: undefined;
|
|
858
|
+
return message;
|
|
859
|
+
},
|
|
860
|
+
toJSON(message) {
|
|
861
|
+
const obj = {};
|
|
862
|
+
message.authority !== undefined && (obj.authority = message.authority);
|
|
863
|
+
message.params !== undefined &&
|
|
864
|
+
(obj.params = message.params ? staking_1.Params.toJSON(message.params) : undefined);
|
|
865
|
+
return obj;
|
|
866
|
+
},
|
|
867
|
+
fromPartial(object) {
|
|
868
|
+
var _a;
|
|
869
|
+
const message = Object.assign({}, baseMsgUpdateParams);
|
|
870
|
+
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
871
|
+
message.params =
|
|
872
|
+
object.params !== undefined && object.params !== null
|
|
873
|
+
? staking_1.Params.fromPartial(object.params)
|
|
874
|
+
: undefined;
|
|
875
|
+
return message;
|
|
876
|
+
},
|
|
877
|
+
};
|
|
878
|
+
const baseMsgUpdateParamsResponse = {};
|
|
879
|
+
exports.MsgUpdateParamsResponse = {
|
|
880
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
881
|
+
return writer;
|
|
882
|
+
},
|
|
883
|
+
decode(input, length) {
|
|
884
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
885
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
886
|
+
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
887
|
+
while (reader.pos < end) {
|
|
888
|
+
const tag = reader.uint32();
|
|
889
|
+
switch (tag >>> 3) {
|
|
890
|
+
default:
|
|
891
|
+
reader.skipType(tag & 7);
|
|
892
|
+
break;
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
return message;
|
|
896
|
+
},
|
|
897
|
+
fromJSON(_) {
|
|
898
|
+
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
899
|
+
return message;
|
|
900
|
+
},
|
|
901
|
+
toJSON(_) {
|
|
902
|
+
const obj = {};
|
|
903
|
+
return obj;
|
|
904
|
+
},
|
|
905
|
+
fromPartial(_) {
|
|
906
|
+
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
907
|
+
return message;
|
|
908
|
+
},
|
|
909
|
+
};
|
|
817
910
|
class MsgClientImpl {
|
|
818
911
|
constructor(rpc) {
|
|
819
912
|
this.rpc = rpc;
|
|
@@ -823,6 +916,7 @@ class MsgClientImpl {
|
|
|
823
916
|
this.BeginRedelegate = this.BeginRedelegate.bind(this);
|
|
824
917
|
this.Undelegate = this.Undelegate.bind(this);
|
|
825
918
|
this.CancelUnbondingDelegation = this.CancelUnbondingDelegation.bind(this);
|
|
919
|
+
this.UpdateParams = this.UpdateParams.bind(this);
|
|
826
920
|
}
|
|
827
921
|
CreateValidator(request) {
|
|
828
922
|
const data = exports.MsgCreateValidator.encode(request).finish();
|
|
@@ -854,6 +948,11 @@ class MsgClientImpl {
|
|
|
854
948
|
const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CancelUnbondingDelegation", data);
|
|
855
949
|
return promise.then((data) => exports.MsgCancelUnbondingDelegationResponse.decode(new minimal_1.default.Reader(data)));
|
|
856
950
|
}
|
|
951
|
+
UpdateParams(request) {
|
|
952
|
+
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
953
|
+
const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "UpdateParams", data);
|
|
954
|
+
return promise.then((data) => exports.MsgUpdateParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
955
|
+
}
|
|
857
956
|
}
|
|
858
957
|
exports.MsgClientImpl = MsgClientImpl;
|
|
859
958
|
function toTimestamp(date) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { OrderBy, orderByFromJSON, orderByToJSON, BroadcastMode, broadcastModeFromJSON, broadcastModeToJSON, GetTxsEventRequest, GetTxsEventResponse, BroadcastTxRequest, BroadcastTxResponse, SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse, ServiceClientImpl } from "./service";
|
|
1
|
+
export { OrderBy, orderByFromJSON, orderByToJSON, BroadcastMode, broadcastModeFromJSON, broadcastModeToJSON, GetTxsEventRequest, GetTxsEventResponse, BroadcastTxRequest, BroadcastTxResponse, SimulateRequest, SimulateResponse, GetTxRequest, GetTxResponse, GetBlockWithTxsRequest, GetBlockWithTxsResponse, TxDecodeRequest, TxDecodeResponse, TxEncodeRequest, TxEncodeResponse, TxEncodeAminoRequest, TxEncodeAminoResponse, TxDecodeAminoRequest, TxDecodeAminoResponse, ServiceClientImpl } from "./service";
|
|
2
2
|
export { Tx, TxRaw, SignDoc, SignDocDirectAux, TxBody, AuthInfo, SignerInfo, ModeInfo, ModeInfo_Single, ModeInfo_Multi, Fee, Tip, AuxSignerData } from "./tx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuxSignerData = exports.Tip = exports.Fee = exports.ModeInfo_Multi = exports.ModeInfo_Single = exports.ModeInfo = exports.SignerInfo = exports.AuthInfo = exports.TxBody = exports.SignDocDirectAux = exports.SignDoc = exports.TxRaw = exports.Tx = exports.ServiceClientImpl = exports.GetBlockWithTxsResponse = exports.GetBlockWithTxsRequest = exports.GetTxResponse = exports.GetTxRequest = exports.SimulateResponse = exports.SimulateRequest = exports.BroadcastTxResponse = exports.BroadcastTxRequest = exports.GetTxsEventResponse = exports.GetTxsEventRequest = exports.broadcastModeToJSON = exports.broadcastModeFromJSON = exports.BroadcastMode = exports.orderByToJSON = exports.orderByFromJSON = exports.OrderBy = void 0;
|
|
3
|
+
exports.AuxSignerData = exports.Tip = exports.Fee = exports.ModeInfo_Multi = exports.ModeInfo_Single = exports.ModeInfo = exports.SignerInfo = exports.AuthInfo = exports.TxBody = exports.SignDocDirectAux = exports.SignDoc = exports.TxRaw = exports.Tx = exports.ServiceClientImpl = exports.TxDecodeAminoResponse = exports.TxDecodeAminoRequest = exports.TxEncodeAminoResponse = exports.TxEncodeAminoRequest = exports.TxEncodeResponse = exports.TxEncodeRequest = exports.TxDecodeResponse = exports.TxDecodeRequest = exports.GetBlockWithTxsResponse = exports.GetBlockWithTxsRequest = exports.GetTxResponse = exports.GetTxRequest = exports.SimulateResponse = exports.SimulateRequest = exports.BroadcastTxResponse = exports.BroadcastTxRequest = exports.GetTxsEventResponse = exports.GetTxsEventRequest = exports.broadcastModeToJSON = exports.broadcastModeFromJSON = exports.BroadcastMode = exports.orderByToJSON = exports.orderByFromJSON = exports.OrderBy = void 0;
|
|
4
4
|
var service_1 = require("./service");
|
|
5
5
|
Object.defineProperty(exports, "OrderBy", { enumerable: true, get: function () { return service_1.OrderBy; } });
|
|
6
6
|
Object.defineProperty(exports, "orderByFromJSON", { enumerable: true, get: function () { return service_1.orderByFromJSON; } });
|
|
@@ -18,6 +18,14 @@ Object.defineProperty(exports, "GetTxRequest", { enumerable: true, get: function
|
|
|
18
18
|
Object.defineProperty(exports, "GetTxResponse", { enumerable: true, get: function () { return service_1.GetTxResponse; } });
|
|
19
19
|
Object.defineProperty(exports, "GetBlockWithTxsRequest", { enumerable: true, get: function () { return service_1.GetBlockWithTxsRequest; } });
|
|
20
20
|
Object.defineProperty(exports, "GetBlockWithTxsResponse", { enumerable: true, get: function () { return service_1.GetBlockWithTxsResponse; } });
|
|
21
|
+
Object.defineProperty(exports, "TxDecodeRequest", { enumerable: true, get: function () { return service_1.TxDecodeRequest; } });
|
|
22
|
+
Object.defineProperty(exports, "TxDecodeResponse", { enumerable: true, get: function () { return service_1.TxDecodeResponse; } });
|
|
23
|
+
Object.defineProperty(exports, "TxEncodeRequest", { enumerable: true, get: function () { return service_1.TxEncodeRequest; } });
|
|
24
|
+
Object.defineProperty(exports, "TxEncodeResponse", { enumerable: true, get: function () { return service_1.TxEncodeResponse; } });
|
|
25
|
+
Object.defineProperty(exports, "TxEncodeAminoRequest", { enumerable: true, get: function () { return service_1.TxEncodeAminoRequest; } });
|
|
26
|
+
Object.defineProperty(exports, "TxEncodeAminoResponse", { enumerable: true, get: function () { return service_1.TxEncodeAminoResponse; } });
|
|
27
|
+
Object.defineProperty(exports, "TxDecodeAminoRequest", { enumerable: true, get: function () { return service_1.TxDecodeAminoRequest; } });
|
|
28
|
+
Object.defineProperty(exports, "TxDecodeAminoResponse", { enumerable: true, get: function () { return service_1.TxDecodeAminoResponse; } });
|
|
21
29
|
Object.defineProperty(exports, "ServiceClientImpl", { enumerable: true, get: function () { return service_1.ServiceClientImpl; } });
|
|
22
30
|
var tx_1 = require("./tx");
|
|
23
31
|
Object.defineProperty(exports, "Tx", { enumerable: true, get: function () { return tx_1.Tx; } });
|