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
|
@@ -18,7 +18,7 @@ export interface DelegatorWithdrawInfo {
|
|
|
18
18
|
export interface ValidatorOutstandingRewardsRecord {
|
|
19
19
|
/** validator_address is the address of the validator. */
|
|
20
20
|
validatorAddress: string;
|
|
21
|
-
/** outstanding_rewards represents the
|
|
21
|
+
/** outstanding_rewards represents the outstanding rewards of a validator. */
|
|
22
22
|
outstandingRewards: DecCoin[];
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -63,7 +63,7 @@ export interface DelegatorStartingInfoRecord {
|
|
|
63
63
|
export interface ValidatorSlashEventRecord {
|
|
64
64
|
/** validator_address is the address of the validator. */
|
|
65
65
|
validatorAddress: string;
|
|
66
|
-
/** height defines the block height at which the slash event
|
|
66
|
+
/** height defines the block height at which the slash event occurred. */
|
|
67
67
|
height: Long;
|
|
68
68
|
/** period is the period of the slash event. */
|
|
69
69
|
period: Long;
|
|
@@ -72,7 +72,7 @@ export interface ValidatorSlashEventRecord {
|
|
|
72
72
|
}
|
|
73
73
|
/** GenesisState defines the distribution module's genesis state. */
|
|
74
74
|
export interface GenesisState {
|
|
75
|
-
/** params defines all the
|
|
75
|
+
/** params defines all the parameters of the module. */
|
|
76
76
|
params?: Params;
|
|
77
77
|
/** fee_pool defines the fee pool at genesis. */
|
|
78
78
|
feePool?: FeePool;
|
|
@@ -82,7 +82,7 @@ export interface GenesisState {
|
|
|
82
82
|
previousProposer: string;
|
|
83
83
|
/** fee_pool defines the outstanding rewards of all validators at genesis. */
|
|
84
84
|
outstandingRewards: ValidatorOutstandingRewardsRecord[];
|
|
85
|
-
/** fee_pool defines the accumulated
|
|
85
|
+
/** fee_pool defines the accumulated commissions of all validators at genesis. */
|
|
86
86
|
validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[];
|
|
87
87
|
/** fee_pool defines the historical rewards of all validators at genesis. */
|
|
88
88
|
validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[];
|
|
@@ -12,6 +12,20 @@ export interface QueryParamsResponse {
|
|
|
12
12
|
/** params defines the parameters of the module. */
|
|
13
13
|
params?: Params;
|
|
14
14
|
}
|
|
15
|
+
/** QueryValidatorDistributionInfoRequest is the request type for the Query/ValidatorDistributionInfo RPC method. */
|
|
16
|
+
export interface QueryValidatorDistributionInfoRequest {
|
|
17
|
+
/** validator_address defines the validator address to query for. */
|
|
18
|
+
validatorAddress: string;
|
|
19
|
+
}
|
|
20
|
+
/** QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method. */
|
|
21
|
+
export interface QueryValidatorDistributionInfoResponse {
|
|
22
|
+
/** operator_address defines the validator operator address. */
|
|
23
|
+
operatorAddress: string;
|
|
24
|
+
/** self_bond_rewards defines the self delegations rewards. */
|
|
25
|
+
selfBondRewards: DecCoin[];
|
|
26
|
+
/** commission defines the commission the validator received. */
|
|
27
|
+
commission: DecCoin[];
|
|
28
|
+
}
|
|
15
29
|
/**
|
|
16
30
|
* QueryValidatorOutstandingRewardsRequest is the request type for the
|
|
17
31
|
* Query/ValidatorOutstandingRewards RPC method.
|
|
@@ -40,7 +54,7 @@ export interface QueryValidatorCommissionRequest {
|
|
|
40
54
|
* Query/ValidatorCommission RPC method
|
|
41
55
|
*/
|
|
42
56
|
export interface QueryValidatorCommissionResponse {
|
|
43
|
-
/** commission defines the
|
|
57
|
+
/** commission defines the commission the validator received. */
|
|
44
58
|
commission?: ValidatorAccumulatedCommission;
|
|
45
59
|
}
|
|
46
60
|
/**
|
|
@@ -177,6 +191,20 @@ export declare const QueryParamsResponse: {
|
|
|
177
191
|
toJSON(message: QueryParamsResponse): unknown;
|
|
178
192
|
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
|
179
193
|
};
|
|
194
|
+
export declare const QueryValidatorDistributionInfoRequest: {
|
|
195
|
+
encode(message: QueryValidatorDistributionInfoRequest, writer?: _m0.Writer): _m0.Writer;
|
|
196
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryValidatorDistributionInfoRequest;
|
|
197
|
+
fromJSON(object: any): QueryValidatorDistributionInfoRequest;
|
|
198
|
+
toJSON(message: QueryValidatorDistributionInfoRequest): unknown;
|
|
199
|
+
fromPartial(object: DeepPartial<QueryValidatorDistributionInfoRequest>): QueryValidatorDistributionInfoRequest;
|
|
200
|
+
};
|
|
201
|
+
export declare const QueryValidatorDistributionInfoResponse: {
|
|
202
|
+
encode(message: QueryValidatorDistributionInfoResponse, writer?: _m0.Writer): _m0.Writer;
|
|
203
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryValidatorDistributionInfoResponse;
|
|
204
|
+
fromJSON(object: any): QueryValidatorDistributionInfoResponse;
|
|
205
|
+
toJSON(message: QueryValidatorDistributionInfoResponse): unknown;
|
|
206
|
+
fromPartial(object: DeepPartial<QueryValidatorDistributionInfoResponse>): QueryValidatorDistributionInfoResponse;
|
|
207
|
+
};
|
|
180
208
|
export declare const QueryValidatorOutstandingRewardsRequest: {
|
|
181
209
|
encode(message: QueryValidatorOutstandingRewardsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
182
210
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryValidatorOutstandingRewardsRequest;
|
|
@@ -307,6 +335,8 @@ export declare const QueryLiquidityProviderRewardsResponse: {
|
|
|
307
335
|
export interface Query {
|
|
308
336
|
/** Params queries params of the distribution module. */
|
|
309
337
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
338
|
+
/** ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator */
|
|
339
|
+
ValidatorDistributionInfo(request: QueryValidatorDistributionInfoRequest): Promise<QueryValidatorDistributionInfoResponse>;
|
|
310
340
|
/** ValidatorOutstandingRewards queries rewards of a validator address. */
|
|
311
341
|
ValidatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise<QueryValidatorOutstandingRewardsResponse>;
|
|
312
342
|
/** ValidatorCommission queries accumulated commission for a validator. */
|
|
@@ -333,6 +363,7 @@ export declare class QueryClientImpl implements Query {
|
|
|
333
363
|
private readonly rpc;
|
|
334
364
|
constructor(rpc: Rpc);
|
|
335
365
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
366
|
+
ValidatorDistributionInfo(request: QueryValidatorDistributionInfoRequest): Promise<QueryValidatorDistributionInfoResponse>;
|
|
336
367
|
ValidatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise<QueryValidatorOutstandingRewardsResponse>;
|
|
337
368
|
ValidatorCommission(request: QueryValidatorCommissionRequest): Promise<QueryValidatorCommissionResponse>;
|
|
338
369
|
ValidatorSlashes(request: QueryValidatorSlashesRequest): Promise<QueryValidatorSlashesResponse>;
|
|
@@ -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.QueryLiquidityProviderRewardsResponse = exports.QueryLiquidityProviderRewardsRequest = exports.QueryCommunityPoolResponse = exports.QueryCommunityPoolRequest = exports.QueryDelegatorWithdrawAddressResponse = exports.QueryDelegatorWithdrawAddressRequest = exports.QueryDelegatorValidatorsResponse = exports.QueryDelegatorValidatorsRequest = exports.QueryDelegationTotalRewardsResponse = exports.QueryDelegationTotalRewardsRequest = exports.QueryDelegationRewardsResponse = exports.QueryDelegationRewardsRequest = exports.QueryValidatorSlashesResponse = exports.QueryValidatorSlashesRequest = exports.QueryValidatorCommissionResponse = exports.QueryValidatorCommissionRequest = exports.QueryValidatorOutstandingRewardsResponse = exports.QueryValidatorOutstandingRewardsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
|
|
6
|
+
exports.QueryClientImpl = exports.QueryLiquidityProviderRewardsResponse = exports.QueryLiquidityProviderRewardsRequest = exports.QueryCommunityPoolResponse = exports.QueryCommunityPoolRequest = exports.QueryDelegatorWithdrawAddressResponse = exports.QueryDelegatorWithdrawAddressRequest = exports.QueryDelegatorValidatorsResponse = exports.QueryDelegatorValidatorsRequest = exports.QueryDelegationTotalRewardsResponse = exports.QueryDelegationTotalRewardsRequest = exports.QueryDelegationRewardsResponse = exports.QueryDelegationRewardsRequest = exports.QueryValidatorSlashesResponse = exports.QueryValidatorSlashesRequest = exports.QueryValidatorCommissionResponse = exports.QueryValidatorCommissionRequest = exports.QueryValidatorOutstandingRewardsResponse = exports.QueryValidatorOutstandingRewardsRequest = exports.QueryValidatorDistributionInfoResponse = exports.QueryValidatorDistributionInfoRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = 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"));
|
|
@@ -91,6 +91,133 @@ exports.QueryParamsResponse = {
|
|
|
91
91
|
return message;
|
|
92
92
|
},
|
|
93
93
|
};
|
|
94
|
+
const baseQueryValidatorDistributionInfoRequest = {
|
|
95
|
+
validatorAddress: "",
|
|
96
|
+
};
|
|
97
|
+
exports.QueryValidatorDistributionInfoRequest = {
|
|
98
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
99
|
+
if (message.validatorAddress !== "") {
|
|
100
|
+
writer.uint32(10).string(message.validatorAddress);
|
|
101
|
+
}
|
|
102
|
+
return writer;
|
|
103
|
+
},
|
|
104
|
+
decode(input, length) {
|
|
105
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
106
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
107
|
+
const message = Object.assign({}, baseQueryValidatorDistributionInfoRequest);
|
|
108
|
+
while (reader.pos < end) {
|
|
109
|
+
const tag = reader.uint32();
|
|
110
|
+
switch (tag >>> 3) {
|
|
111
|
+
case 1:
|
|
112
|
+
message.validatorAddress = reader.string();
|
|
113
|
+
break;
|
|
114
|
+
default:
|
|
115
|
+
reader.skipType(tag & 7);
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return message;
|
|
120
|
+
},
|
|
121
|
+
fromJSON(object) {
|
|
122
|
+
const message = Object.assign({}, baseQueryValidatorDistributionInfoRequest);
|
|
123
|
+
message.validatorAddress =
|
|
124
|
+
object.validatorAddress !== undefined && object.validatorAddress !== null
|
|
125
|
+
? String(object.validatorAddress)
|
|
126
|
+
: "";
|
|
127
|
+
return message;
|
|
128
|
+
},
|
|
129
|
+
toJSON(message) {
|
|
130
|
+
const obj = {};
|
|
131
|
+
message.validatorAddress !== undefined &&
|
|
132
|
+
(obj.validatorAddress = message.validatorAddress);
|
|
133
|
+
return obj;
|
|
134
|
+
},
|
|
135
|
+
fromPartial(object) {
|
|
136
|
+
var _a;
|
|
137
|
+
const message = Object.assign({}, baseQueryValidatorDistributionInfoRequest);
|
|
138
|
+
message.validatorAddress = (_a = object.validatorAddress) !== null && _a !== void 0 ? _a : "";
|
|
139
|
+
return message;
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
const baseQueryValidatorDistributionInfoResponse = {
|
|
143
|
+
operatorAddress: "",
|
|
144
|
+
};
|
|
145
|
+
exports.QueryValidatorDistributionInfoResponse = {
|
|
146
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
147
|
+
if (message.operatorAddress !== "") {
|
|
148
|
+
writer.uint32(10).string(message.operatorAddress);
|
|
149
|
+
}
|
|
150
|
+
for (const v of message.selfBondRewards) {
|
|
151
|
+
coin_1.DecCoin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
152
|
+
}
|
|
153
|
+
for (const v of message.commission) {
|
|
154
|
+
coin_1.DecCoin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
155
|
+
}
|
|
156
|
+
return writer;
|
|
157
|
+
},
|
|
158
|
+
decode(input, length) {
|
|
159
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
160
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
161
|
+
const message = Object.assign({}, baseQueryValidatorDistributionInfoResponse);
|
|
162
|
+
message.selfBondRewards = [];
|
|
163
|
+
message.commission = [];
|
|
164
|
+
while (reader.pos < end) {
|
|
165
|
+
const tag = reader.uint32();
|
|
166
|
+
switch (tag >>> 3) {
|
|
167
|
+
case 1:
|
|
168
|
+
message.operatorAddress = reader.string();
|
|
169
|
+
break;
|
|
170
|
+
case 2:
|
|
171
|
+
message.selfBondRewards.push(coin_1.DecCoin.decode(reader, reader.uint32()));
|
|
172
|
+
break;
|
|
173
|
+
case 3:
|
|
174
|
+
message.commission.push(coin_1.DecCoin.decode(reader, reader.uint32()));
|
|
175
|
+
break;
|
|
176
|
+
default:
|
|
177
|
+
reader.skipType(tag & 7);
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return message;
|
|
182
|
+
},
|
|
183
|
+
fromJSON(object) {
|
|
184
|
+
var _a, _b;
|
|
185
|
+
const message = Object.assign({}, baseQueryValidatorDistributionInfoResponse);
|
|
186
|
+
message.operatorAddress =
|
|
187
|
+
object.operatorAddress !== undefined && object.operatorAddress !== null
|
|
188
|
+
? String(object.operatorAddress)
|
|
189
|
+
: "";
|
|
190
|
+
message.selfBondRewards = ((_a = object.selfBondRewards) !== null && _a !== void 0 ? _a : []).map((e) => coin_1.DecCoin.fromJSON(e));
|
|
191
|
+
message.commission = ((_b = object.commission) !== null && _b !== void 0 ? _b : []).map((e) => coin_1.DecCoin.fromJSON(e));
|
|
192
|
+
return message;
|
|
193
|
+
},
|
|
194
|
+
toJSON(message) {
|
|
195
|
+
const obj = {};
|
|
196
|
+
message.operatorAddress !== undefined &&
|
|
197
|
+
(obj.operatorAddress = message.operatorAddress);
|
|
198
|
+
if (message.selfBondRewards) {
|
|
199
|
+
obj.selfBondRewards = message.selfBondRewards.map((e) => e ? coin_1.DecCoin.toJSON(e) : undefined);
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
obj.selfBondRewards = [];
|
|
203
|
+
}
|
|
204
|
+
if (message.commission) {
|
|
205
|
+
obj.commission = message.commission.map((e) => e ? coin_1.DecCoin.toJSON(e) : undefined);
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
obj.commission = [];
|
|
209
|
+
}
|
|
210
|
+
return obj;
|
|
211
|
+
},
|
|
212
|
+
fromPartial(object) {
|
|
213
|
+
var _a, _b, _c;
|
|
214
|
+
const message = Object.assign({}, baseQueryValidatorDistributionInfoResponse);
|
|
215
|
+
message.operatorAddress = (_a = object.operatorAddress) !== null && _a !== void 0 ? _a : "";
|
|
216
|
+
message.selfBondRewards = ((_b = object.selfBondRewards) !== null && _b !== void 0 ? _b : []).map((e) => coin_1.DecCoin.fromPartial(e));
|
|
217
|
+
message.commission = ((_c = object.commission) !== null && _c !== void 0 ? _c : []).map((e) => coin_1.DecCoin.fromPartial(e));
|
|
218
|
+
return message;
|
|
219
|
+
},
|
|
220
|
+
};
|
|
94
221
|
const baseQueryValidatorOutstandingRewardsRequest = {
|
|
95
222
|
validatorAddress: "",
|
|
96
223
|
};
|
|
@@ -1030,6 +1157,7 @@ class QueryClientImpl {
|
|
|
1030
1157
|
constructor(rpc) {
|
|
1031
1158
|
this.rpc = rpc;
|
|
1032
1159
|
this.Params = this.Params.bind(this);
|
|
1160
|
+
this.ValidatorDistributionInfo = this.ValidatorDistributionInfo.bind(this);
|
|
1033
1161
|
this.ValidatorOutstandingRewards =
|
|
1034
1162
|
this.ValidatorOutstandingRewards.bind(this);
|
|
1035
1163
|
this.ValidatorCommission = this.ValidatorCommission.bind(this);
|
|
@@ -1046,6 +1174,11 @@ class QueryClientImpl {
|
|
|
1046
1174
|
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "Params", data);
|
|
1047
1175
|
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
1048
1176
|
}
|
|
1177
|
+
ValidatorDistributionInfo(request) {
|
|
1178
|
+
const data = exports.QueryValidatorDistributionInfoRequest.encode(request).finish();
|
|
1179
|
+
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorDistributionInfo", data);
|
|
1180
|
+
return promise.then((data) => exports.QueryValidatorDistributionInfoResponse.decode(new minimal_1.default.Reader(data)));
|
|
1181
|
+
}
|
|
1049
1182
|
ValidatorOutstandingRewards(request) {
|
|
1050
1183
|
const data = exports.QueryValidatorOutstandingRewardsRequest.encode(request).finish();
|
|
1051
1184
|
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorOutstandingRewards", data);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Params } from "./distribution";
|
|
3
4
|
import { Coin } from "../../base/v1beta1/coin";
|
|
4
5
|
export declare const protobufPackage = "cosmos.distribution.v1beta1";
|
|
5
6
|
/**
|
|
@@ -10,7 +11,10 @@ export interface MsgSetWithdrawAddress {
|
|
|
10
11
|
delegatorAddress: string;
|
|
11
12
|
withdrawAddress: string;
|
|
12
13
|
}
|
|
13
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response
|
|
16
|
+
* type.
|
|
17
|
+
*/
|
|
14
18
|
export interface MsgSetWithdrawAddressResponse {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
@@ -21,7 +25,10 @@ export interface MsgWithdrawDelegatorReward {
|
|
|
21
25
|
delegatorAddress: string;
|
|
22
26
|
validatorAddress: string;
|
|
23
27
|
}
|
|
24
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward
|
|
30
|
+
* response type.
|
|
31
|
+
*/
|
|
25
32
|
export interface MsgWithdrawDelegatorRewardResponse {
|
|
26
33
|
/** Since: cosmos-sdk 0.46 */
|
|
27
34
|
amount: Coin[];
|
|
@@ -33,7 +40,10 @@ export interface MsgWithdrawDelegatorRewardResponse {
|
|
|
33
40
|
export interface MsgWithdrawValidatorCommission {
|
|
34
41
|
validatorAddress: string;
|
|
35
42
|
}
|
|
36
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* MsgWithdrawValidatorCommissionResponse defines the
|
|
45
|
+
* Msg/WithdrawValidatorCommission response type.
|
|
46
|
+
*/
|
|
37
47
|
export interface MsgWithdrawValidatorCommissionResponse {
|
|
38
48
|
/** Since: cosmos-sdk 0.46 */
|
|
39
49
|
amount: Coin[];
|
|
@@ -49,6 +59,50 @@ export interface MsgFundCommunityPool {
|
|
|
49
59
|
/** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */
|
|
50
60
|
export interface MsgFundCommunityPoolResponse {
|
|
51
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
64
|
+
*
|
|
65
|
+
* Since: cosmos-sdk 0.47
|
|
66
|
+
*/
|
|
67
|
+
export interface MsgUpdateParams {
|
|
68
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
69
|
+
authority: string;
|
|
70
|
+
/**
|
|
71
|
+
* params defines the x/distribution parameters to update.
|
|
72
|
+
*
|
|
73
|
+
* NOTE: All parameters must be supplied.
|
|
74
|
+
*/
|
|
75
|
+
params?: Params;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
79
|
+
* MsgUpdateParams message.
|
|
80
|
+
*
|
|
81
|
+
* Since: cosmos-sdk 0.47
|
|
82
|
+
*/
|
|
83
|
+
export interface MsgUpdateParamsResponse {
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* MsgCommunityPoolSpend defines a message for sending tokens from the community
|
|
87
|
+
* pool to another account. This message is typically executed via a governance
|
|
88
|
+
* proposal with the governance module being the executing authority.
|
|
89
|
+
*
|
|
90
|
+
* Since: cosmos-sdk 0.47
|
|
91
|
+
*/
|
|
92
|
+
export interface MsgCommunityPoolSpend {
|
|
93
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
94
|
+
authority: string;
|
|
95
|
+
recipient: string;
|
|
96
|
+
amount: Coin[];
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* MsgCommunityPoolSpendResponse defines the response to executing a
|
|
100
|
+
* MsgCommunityPoolSpend message.
|
|
101
|
+
*
|
|
102
|
+
* Since: cosmos-sdk 0.47
|
|
103
|
+
*/
|
|
104
|
+
export interface MsgCommunityPoolSpendResponse {
|
|
105
|
+
}
|
|
52
106
|
export declare const MsgSetWithdrawAddress: {
|
|
53
107
|
encode(message: MsgSetWithdrawAddress, writer?: _m0.Writer): _m0.Writer;
|
|
54
108
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgSetWithdrawAddress;
|
|
@@ -105,6 +159,34 @@ export declare const MsgFundCommunityPoolResponse: {
|
|
|
105
159
|
toJSON(_: MsgFundCommunityPoolResponse): unknown;
|
|
106
160
|
fromPartial(_: DeepPartial<MsgFundCommunityPoolResponse>): MsgFundCommunityPoolResponse;
|
|
107
161
|
};
|
|
162
|
+
export declare const MsgUpdateParams: {
|
|
163
|
+
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
164
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParams;
|
|
165
|
+
fromJSON(object: any): MsgUpdateParams;
|
|
166
|
+
toJSON(message: MsgUpdateParams): unknown;
|
|
167
|
+
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams;
|
|
168
|
+
};
|
|
169
|
+
export declare const MsgUpdateParamsResponse: {
|
|
170
|
+
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
171
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParamsResponse;
|
|
172
|
+
fromJSON(_: any): MsgUpdateParamsResponse;
|
|
173
|
+
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
174
|
+
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse;
|
|
175
|
+
};
|
|
176
|
+
export declare const MsgCommunityPoolSpend: {
|
|
177
|
+
encode(message: MsgCommunityPoolSpend, writer?: _m0.Writer): _m0.Writer;
|
|
178
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgCommunityPoolSpend;
|
|
179
|
+
fromJSON(object: any): MsgCommunityPoolSpend;
|
|
180
|
+
toJSON(message: MsgCommunityPoolSpend): unknown;
|
|
181
|
+
fromPartial(object: DeepPartial<MsgCommunityPoolSpend>): MsgCommunityPoolSpend;
|
|
182
|
+
};
|
|
183
|
+
export declare const MsgCommunityPoolSpendResponse: {
|
|
184
|
+
encode(_: MsgCommunityPoolSpendResponse, writer?: _m0.Writer): _m0.Writer;
|
|
185
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgCommunityPoolSpendResponse;
|
|
186
|
+
fromJSON(_: any): MsgCommunityPoolSpendResponse;
|
|
187
|
+
toJSON(_: MsgCommunityPoolSpendResponse): unknown;
|
|
188
|
+
fromPartial(_: DeepPartial<MsgCommunityPoolSpendResponse>): MsgCommunityPoolSpendResponse;
|
|
189
|
+
};
|
|
108
190
|
/** Msg defines the distribution Msg service. */
|
|
109
191
|
export interface Msg {
|
|
110
192
|
/**
|
|
@@ -127,6 +209,22 @@ export interface Msg {
|
|
|
127
209
|
* fund the community pool.
|
|
128
210
|
*/
|
|
129
211
|
FundCommunityPool(request: MsgFundCommunityPool): Promise<MsgFundCommunityPoolResponse>;
|
|
212
|
+
/**
|
|
213
|
+
* UpdateParams defines a governance operation for updating the x/distribution
|
|
214
|
+
* module parameters. The authority is defined in the keeper.
|
|
215
|
+
*
|
|
216
|
+
* Since: cosmos-sdk 0.47
|
|
217
|
+
*/
|
|
218
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
219
|
+
/**
|
|
220
|
+
* CommunityPoolSpend defines a governance operation for sending tokens from
|
|
221
|
+
* the community pool in the x/distribution module to another account, which
|
|
222
|
+
* could be the governance module itself. The authority is defined in the
|
|
223
|
+
* keeper.
|
|
224
|
+
*
|
|
225
|
+
* Since: cosmos-sdk 0.47
|
|
226
|
+
*/
|
|
227
|
+
CommunityPoolSpend(request: MsgCommunityPoolSpend): Promise<MsgCommunityPoolSpendResponse>;
|
|
130
228
|
}
|
|
131
229
|
export declare class MsgClientImpl implements Msg {
|
|
132
230
|
private readonly rpc;
|
|
@@ -135,6 +233,8 @@ export declare class MsgClientImpl implements Msg {
|
|
|
135
233
|
WithdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise<MsgWithdrawDelegatorRewardResponse>;
|
|
136
234
|
WithdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise<MsgWithdrawValidatorCommissionResponse>;
|
|
137
235
|
FundCommunityPool(request: MsgFundCommunityPool): Promise<MsgFundCommunityPoolResponse>;
|
|
236
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
237
|
+
CommunityPoolSpend(request: MsgCommunityPoolSpend): Promise<MsgCommunityPoolSpendResponse>;
|
|
138
238
|
}
|
|
139
239
|
interface Rpc {
|
|
140
240
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -3,10 +3,11 @@ 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.MsgFundCommunityPoolResponse = exports.MsgFundCommunityPool = exports.MsgWithdrawValidatorCommissionResponse = exports.MsgWithdrawValidatorCommission = exports.MsgWithdrawDelegatorRewardResponse = exports.MsgWithdrawDelegatorReward = exports.MsgSetWithdrawAddressResponse = exports.MsgSetWithdrawAddress = exports.protobufPackage = void 0;
|
|
6
|
+
exports.MsgClientImpl = exports.MsgCommunityPoolSpendResponse = exports.MsgCommunityPoolSpend = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.MsgFundCommunityPoolResponse = exports.MsgFundCommunityPool = exports.MsgWithdrawValidatorCommissionResponse = exports.MsgWithdrawValidatorCommission = exports.MsgWithdrawDelegatorRewardResponse = exports.MsgWithdrawDelegatorReward = exports.MsgSetWithdrawAddressResponse = exports.MsgSetWithdrawAddress = 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"));
|
|
10
|
+
const distribution_1 = require("./distribution");
|
|
10
11
|
const coin_1 = require("../../base/v1beta1/coin");
|
|
11
12
|
exports.protobufPackage = "cosmos.distribution.v1beta1";
|
|
12
13
|
const baseMsgSetWithdrawAddress = {
|
|
@@ -402,6 +403,204 @@ exports.MsgFundCommunityPoolResponse = {
|
|
|
402
403
|
return message;
|
|
403
404
|
},
|
|
404
405
|
};
|
|
406
|
+
const baseMsgUpdateParams = { authority: "" };
|
|
407
|
+
exports.MsgUpdateParams = {
|
|
408
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
409
|
+
if (message.authority !== "") {
|
|
410
|
+
writer.uint32(10).string(message.authority);
|
|
411
|
+
}
|
|
412
|
+
if (message.params !== undefined) {
|
|
413
|
+
distribution_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
414
|
+
}
|
|
415
|
+
return writer;
|
|
416
|
+
},
|
|
417
|
+
decode(input, length) {
|
|
418
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
419
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
420
|
+
const message = Object.assign({}, baseMsgUpdateParams);
|
|
421
|
+
while (reader.pos < end) {
|
|
422
|
+
const tag = reader.uint32();
|
|
423
|
+
switch (tag >>> 3) {
|
|
424
|
+
case 1:
|
|
425
|
+
message.authority = reader.string();
|
|
426
|
+
break;
|
|
427
|
+
case 2:
|
|
428
|
+
message.params = distribution_1.Params.decode(reader, reader.uint32());
|
|
429
|
+
break;
|
|
430
|
+
default:
|
|
431
|
+
reader.skipType(tag & 7);
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
return message;
|
|
436
|
+
},
|
|
437
|
+
fromJSON(object) {
|
|
438
|
+
const message = Object.assign({}, baseMsgUpdateParams);
|
|
439
|
+
message.authority =
|
|
440
|
+
object.authority !== undefined && object.authority !== null
|
|
441
|
+
? String(object.authority)
|
|
442
|
+
: "";
|
|
443
|
+
message.params =
|
|
444
|
+
object.params !== undefined && object.params !== null
|
|
445
|
+
? distribution_1.Params.fromJSON(object.params)
|
|
446
|
+
: undefined;
|
|
447
|
+
return message;
|
|
448
|
+
},
|
|
449
|
+
toJSON(message) {
|
|
450
|
+
const obj = {};
|
|
451
|
+
message.authority !== undefined && (obj.authority = message.authority);
|
|
452
|
+
message.params !== undefined &&
|
|
453
|
+
(obj.params = message.params ? distribution_1.Params.toJSON(message.params) : undefined);
|
|
454
|
+
return obj;
|
|
455
|
+
},
|
|
456
|
+
fromPartial(object) {
|
|
457
|
+
var _a;
|
|
458
|
+
const message = Object.assign({}, baseMsgUpdateParams);
|
|
459
|
+
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
460
|
+
message.params =
|
|
461
|
+
object.params !== undefined && object.params !== null
|
|
462
|
+
? distribution_1.Params.fromPartial(object.params)
|
|
463
|
+
: undefined;
|
|
464
|
+
return message;
|
|
465
|
+
},
|
|
466
|
+
};
|
|
467
|
+
const baseMsgUpdateParamsResponse = {};
|
|
468
|
+
exports.MsgUpdateParamsResponse = {
|
|
469
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
470
|
+
return writer;
|
|
471
|
+
},
|
|
472
|
+
decode(input, length) {
|
|
473
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
474
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
475
|
+
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
476
|
+
while (reader.pos < end) {
|
|
477
|
+
const tag = reader.uint32();
|
|
478
|
+
switch (tag >>> 3) {
|
|
479
|
+
default:
|
|
480
|
+
reader.skipType(tag & 7);
|
|
481
|
+
break;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
return message;
|
|
485
|
+
},
|
|
486
|
+
fromJSON(_) {
|
|
487
|
+
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
488
|
+
return message;
|
|
489
|
+
},
|
|
490
|
+
toJSON(_) {
|
|
491
|
+
const obj = {};
|
|
492
|
+
return obj;
|
|
493
|
+
},
|
|
494
|
+
fromPartial(_) {
|
|
495
|
+
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
496
|
+
return message;
|
|
497
|
+
},
|
|
498
|
+
};
|
|
499
|
+
const baseMsgCommunityPoolSpend = { authority: "", recipient: "" };
|
|
500
|
+
exports.MsgCommunityPoolSpend = {
|
|
501
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
502
|
+
if (message.authority !== "") {
|
|
503
|
+
writer.uint32(10).string(message.authority);
|
|
504
|
+
}
|
|
505
|
+
if (message.recipient !== "") {
|
|
506
|
+
writer.uint32(18).string(message.recipient);
|
|
507
|
+
}
|
|
508
|
+
for (const v of message.amount) {
|
|
509
|
+
coin_1.Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
510
|
+
}
|
|
511
|
+
return writer;
|
|
512
|
+
},
|
|
513
|
+
decode(input, length) {
|
|
514
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
515
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
516
|
+
const message = Object.assign({}, baseMsgCommunityPoolSpend);
|
|
517
|
+
message.amount = [];
|
|
518
|
+
while (reader.pos < end) {
|
|
519
|
+
const tag = reader.uint32();
|
|
520
|
+
switch (tag >>> 3) {
|
|
521
|
+
case 1:
|
|
522
|
+
message.authority = reader.string();
|
|
523
|
+
break;
|
|
524
|
+
case 2:
|
|
525
|
+
message.recipient = reader.string();
|
|
526
|
+
break;
|
|
527
|
+
case 3:
|
|
528
|
+
message.amount.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
529
|
+
break;
|
|
530
|
+
default:
|
|
531
|
+
reader.skipType(tag & 7);
|
|
532
|
+
break;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
return message;
|
|
536
|
+
},
|
|
537
|
+
fromJSON(object) {
|
|
538
|
+
var _a;
|
|
539
|
+
const message = Object.assign({}, baseMsgCommunityPoolSpend);
|
|
540
|
+
message.authority =
|
|
541
|
+
object.authority !== undefined && object.authority !== null
|
|
542
|
+
? String(object.authority)
|
|
543
|
+
: "";
|
|
544
|
+
message.recipient =
|
|
545
|
+
object.recipient !== undefined && object.recipient !== null
|
|
546
|
+
? String(object.recipient)
|
|
547
|
+
: "";
|
|
548
|
+
message.amount = ((_a = object.amount) !== null && _a !== void 0 ? _a : []).map((e) => coin_1.Coin.fromJSON(e));
|
|
549
|
+
return message;
|
|
550
|
+
},
|
|
551
|
+
toJSON(message) {
|
|
552
|
+
const obj = {};
|
|
553
|
+
message.authority !== undefined && (obj.authority = message.authority);
|
|
554
|
+
message.recipient !== undefined && (obj.recipient = message.recipient);
|
|
555
|
+
if (message.amount) {
|
|
556
|
+
obj.amount = message.amount.map((e) => (e ? coin_1.Coin.toJSON(e) : undefined));
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
obj.amount = [];
|
|
560
|
+
}
|
|
561
|
+
return obj;
|
|
562
|
+
},
|
|
563
|
+
fromPartial(object) {
|
|
564
|
+
var _a, _b, _c;
|
|
565
|
+
const message = Object.assign({}, baseMsgCommunityPoolSpend);
|
|
566
|
+
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
567
|
+
message.recipient = (_b = object.recipient) !== null && _b !== void 0 ? _b : "";
|
|
568
|
+
message.amount = ((_c = object.amount) !== null && _c !== void 0 ? _c : []).map((e) => coin_1.Coin.fromPartial(e));
|
|
569
|
+
return message;
|
|
570
|
+
},
|
|
571
|
+
};
|
|
572
|
+
const baseMsgCommunityPoolSpendResponse = {};
|
|
573
|
+
exports.MsgCommunityPoolSpendResponse = {
|
|
574
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
575
|
+
return writer;
|
|
576
|
+
},
|
|
577
|
+
decode(input, length) {
|
|
578
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
579
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
580
|
+
const message = Object.assign({}, baseMsgCommunityPoolSpendResponse);
|
|
581
|
+
while (reader.pos < end) {
|
|
582
|
+
const tag = reader.uint32();
|
|
583
|
+
switch (tag >>> 3) {
|
|
584
|
+
default:
|
|
585
|
+
reader.skipType(tag & 7);
|
|
586
|
+
break;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
return message;
|
|
590
|
+
},
|
|
591
|
+
fromJSON(_) {
|
|
592
|
+
const message = Object.assign({}, baseMsgCommunityPoolSpendResponse);
|
|
593
|
+
return message;
|
|
594
|
+
},
|
|
595
|
+
toJSON(_) {
|
|
596
|
+
const obj = {};
|
|
597
|
+
return obj;
|
|
598
|
+
},
|
|
599
|
+
fromPartial(_) {
|
|
600
|
+
const message = Object.assign({}, baseMsgCommunityPoolSpendResponse);
|
|
601
|
+
return message;
|
|
602
|
+
},
|
|
603
|
+
};
|
|
405
604
|
class MsgClientImpl {
|
|
406
605
|
constructor(rpc) {
|
|
407
606
|
this.rpc = rpc;
|
|
@@ -410,6 +609,8 @@ class MsgClientImpl {
|
|
|
410
609
|
this.WithdrawValidatorCommission =
|
|
411
610
|
this.WithdrawValidatorCommission.bind(this);
|
|
412
611
|
this.FundCommunityPool = this.FundCommunityPool.bind(this);
|
|
612
|
+
this.UpdateParams = this.UpdateParams.bind(this);
|
|
613
|
+
this.CommunityPoolSpend = this.CommunityPoolSpend.bind(this);
|
|
413
614
|
}
|
|
414
615
|
SetWithdrawAddress(request) {
|
|
415
616
|
const data = exports.MsgSetWithdrawAddress.encode(request).finish();
|
|
@@ -431,6 +632,16 @@ class MsgClientImpl {
|
|
|
431
632
|
const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "FundCommunityPool", data);
|
|
432
633
|
return promise.then((data) => exports.MsgFundCommunityPoolResponse.decode(new minimal_1.default.Reader(data)));
|
|
433
634
|
}
|
|
635
|
+
UpdateParams(request) {
|
|
636
|
+
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
637
|
+
const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "UpdateParams", data);
|
|
638
|
+
return promise.then((data) => exports.MsgUpdateParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
639
|
+
}
|
|
640
|
+
CommunityPoolSpend(request) {
|
|
641
|
+
const data = exports.MsgCommunityPoolSpend.encode(request).finish();
|
|
642
|
+
const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "CommunityPoolSpend", data);
|
|
643
|
+
return promise.then((data) => exports.MsgCommunityPoolSpendResponse.decode(new minimal_1.default.Reader(data)));
|
|
644
|
+
}
|
|
434
645
|
}
|
|
435
646
|
exports.MsgClientImpl = MsgClientImpl;
|
|
436
647
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
@@ -6,9 +6,13 @@ export declare const protobufPackage = "cosmos.evidence.v1beta1";
|
|
|
6
6
|
* signing misbehavior.
|
|
7
7
|
*/
|
|
8
8
|
export interface Equivocation {
|
|
9
|
+
/** height is the equivocation height. */
|
|
9
10
|
height: Long;
|
|
11
|
+
/** time is the equivocation time. */
|
|
10
12
|
time?: Date;
|
|
13
|
+
/** power is the equivocation validator power. */
|
|
11
14
|
power: Long;
|
|
15
|
+
/** consensus_address is the equivocation validator consensus address. */
|
|
12
16
|
consensusAddress: string;
|
|
13
17
|
}
|
|
14
18
|
export declare const Equivocation: {
|