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
|
@@ -24,7 +24,9 @@ export interface SnapshotItem {
|
|
|
24
24
|
iavl?: SnapshotIAVLItem | undefined;
|
|
25
25
|
extension?: SnapshotExtensionMeta | undefined;
|
|
26
26
|
extensionPayload?: SnapshotExtensionPayload | undefined;
|
|
27
|
+
/** @deprecated */
|
|
27
28
|
kv?: SnapshotKVItem | undefined;
|
|
29
|
+
/** @deprecated */
|
|
28
30
|
schema?: SnapshotSchema | undefined;
|
|
29
31
|
}
|
|
30
32
|
/**
|
|
@@ -69,6 +71,9 @@ export interface SnapshotExtensionPayload {
|
|
|
69
71
|
* SnapshotKVItem is an exported Key/Value Pair
|
|
70
72
|
*
|
|
71
73
|
* Since: cosmos-sdk 0.46
|
|
74
|
+
* Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47.
|
|
75
|
+
*
|
|
76
|
+
* @deprecated
|
|
72
77
|
*/
|
|
73
78
|
export interface SnapshotKVItem {
|
|
74
79
|
key: Uint8Array;
|
|
@@ -78,6 +83,9 @@ export interface SnapshotKVItem {
|
|
|
78
83
|
* SnapshotSchema is an exported schema of smt store
|
|
79
84
|
*
|
|
80
85
|
* Since: cosmos-sdk 0.46
|
|
86
|
+
* Deprecated: This message was part of store/v2alpha1 which has been deleted from v0.47.
|
|
87
|
+
*
|
|
88
|
+
* @deprecated
|
|
81
89
|
*/
|
|
82
90
|
export interface SnapshotSchema {
|
|
83
91
|
keys: Uint8Array[];
|
|
@@ -8,6 +8,7 @@ export declare const protobufPackage = "cosmos.base.store.v1beta1";
|
|
|
8
8
|
export interface CommitInfo {
|
|
9
9
|
version: Long;
|
|
10
10
|
storeInfos: StoreInfo[];
|
|
11
|
+
timestamp?: Date;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* StoreInfo defines store-specific commit information. It contains a reference
|
|
@@ -18,7 +19,7 @@ export interface StoreInfo {
|
|
|
18
19
|
commitId?: CommitID;
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
|
-
* CommitID defines the
|
|
22
|
+
* CommitID defines the commitment information when a specific store is
|
|
22
23
|
* committed.
|
|
23
24
|
*/
|
|
24
25
|
export interface CommitID {
|
|
@@ -7,6 +7,7 @@ exports.CommitID = exports.StoreInfo = exports.CommitInfo = exports.protobufPack
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const timestamp_1 = require("../../../../google/protobuf/timestamp");
|
|
10
11
|
exports.protobufPackage = "cosmos.base.store.v1beta1";
|
|
11
12
|
const baseCommitInfo = { version: long_1.default.ZERO };
|
|
12
13
|
exports.CommitInfo = {
|
|
@@ -17,6 +18,9 @@ exports.CommitInfo = {
|
|
|
17
18
|
for (const v of message.storeInfos) {
|
|
18
19
|
exports.StoreInfo.encode(v, writer.uint32(18).fork()).ldelim();
|
|
19
20
|
}
|
|
21
|
+
if (message.timestamp !== undefined) {
|
|
22
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).ldelim();
|
|
23
|
+
}
|
|
20
24
|
return writer;
|
|
21
25
|
},
|
|
22
26
|
decode(input, length) {
|
|
@@ -33,6 +37,9 @@ exports.CommitInfo = {
|
|
|
33
37
|
case 2:
|
|
34
38
|
message.storeInfos.push(exports.StoreInfo.decode(reader, reader.uint32()));
|
|
35
39
|
break;
|
|
40
|
+
case 3:
|
|
41
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
42
|
+
break;
|
|
36
43
|
default:
|
|
37
44
|
reader.skipType(tag & 7);
|
|
38
45
|
break;
|
|
@@ -48,6 +55,10 @@ exports.CommitInfo = {
|
|
|
48
55
|
? long_1.default.fromString(object.version)
|
|
49
56
|
: long_1.default.ZERO;
|
|
50
57
|
message.storeInfos = ((_a = object.storeInfos) !== null && _a !== void 0 ? _a : []).map((e) => exports.StoreInfo.fromJSON(e));
|
|
58
|
+
message.timestamp =
|
|
59
|
+
object.timestamp !== undefined && object.timestamp !== null
|
|
60
|
+
? fromJsonTimestamp(object.timestamp)
|
|
61
|
+
: undefined;
|
|
51
62
|
return message;
|
|
52
63
|
},
|
|
53
64
|
toJSON(message) {
|
|
@@ -60,16 +71,19 @@ exports.CommitInfo = {
|
|
|
60
71
|
else {
|
|
61
72
|
obj.storeInfos = [];
|
|
62
73
|
}
|
|
74
|
+
message.timestamp !== undefined &&
|
|
75
|
+
(obj.timestamp = message.timestamp.toISOString());
|
|
63
76
|
return obj;
|
|
64
77
|
},
|
|
65
78
|
fromPartial(object) {
|
|
66
|
-
var _a;
|
|
79
|
+
var _a, _b;
|
|
67
80
|
const message = Object.assign({}, baseCommitInfo);
|
|
68
81
|
message.version =
|
|
69
82
|
object.version !== undefined && object.version !== null
|
|
70
83
|
? long_1.default.fromValue(object.version)
|
|
71
84
|
: long_1.default.ZERO;
|
|
72
85
|
message.storeInfos = ((_a = object.storeInfos) !== null && _a !== void 0 ? _a : []).map((e) => exports.StoreInfo.fromPartial(e));
|
|
86
|
+
message.timestamp = (_b = object.timestamp) !== null && _b !== void 0 ? _b : undefined;
|
|
73
87
|
return message;
|
|
74
88
|
},
|
|
75
89
|
};
|
|
@@ -229,6 +243,30 @@ function base64FromBytes(arr) {
|
|
|
229
243
|
}
|
|
230
244
|
return btoa(bin.join(""));
|
|
231
245
|
}
|
|
246
|
+
function toTimestamp(date) {
|
|
247
|
+
const seconds = numberToLong(date.getTime() / 1000);
|
|
248
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
249
|
+
return { seconds, nanos };
|
|
250
|
+
}
|
|
251
|
+
function fromTimestamp(t) {
|
|
252
|
+
let millis = t.seconds.toNumber() * 1000;
|
|
253
|
+
millis += t.nanos / 1000000;
|
|
254
|
+
return new Date(millis);
|
|
255
|
+
}
|
|
256
|
+
function fromJsonTimestamp(o) {
|
|
257
|
+
if (o instanceof Date) {
|
|
258
|
+
return o;
|
|
259
|
+
}
|
|
260
|
+
else if (typeof o === "string") {
|
|
261
|
+
return new Date(o);
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
function numberToLong(number) {
|
|
268
|
+
return long_1.default.fromNumber(number);
|
|
269
|
+
}
|
|
232
270
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
233
271
|
minimal_1.default.util.Long = long_1.default;
|
|
234
272
|
minimal_1.default.configure();
|
|
@@ -7,37 +7,25 @@ import { Block } from "../../../../tendermint/types/block";
|
|
|
7
7
|
import { Block as Block1 } from "./types";
|
|
8
8
|
import { DefaultNodeInfo } from "../../../../tendermint/p2p/types";
|
|
9
9
|
export declare const protobufPackage = "cosmos.base.tendermint.v1beta1";
|
|
10
|
-
/**
|
|
11
|
-
* GetValidatorSetByHeightRequest is the request type for the
|
|
12
|
-
* Query/GetValidatorSetByHeight RPC method.
|
|
13
|
-
*/
|
|
10
|
+
/** GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */
|
|
14
11
|
export interface GetValidatorSetByHeightRequest {
|
|
15
12
|
height: Long;
|
|
16
13
|
/** pagination defines an pagination for the request. */
|
|
17
14
|
pagination?: PageRequest;
|
|
18
15
|
}
|
|
19
|
-
/**
|
|
20
|
-
* GetValidatorSetByHeightResponse is the response type for the
|
|
21
|
-
* Query/GetValidatorSetByHeight RPC method.
|
|
22
|
-
*/
|
|
16
|
+
/** GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */
|
|
23
17
|
export interface GetValidatorSetByHeightResponse {
|
|
24
18
|
blockHeight: Long;
|
|
25
19
|
validators: Validator[];
|
|
26
20
|
/** pagination defines an pagination for the response. */
|
|
27
21
|
pagination?: PageResponse;
|
|
28
22
|
}
|
|
29
|
-
/**
|
|
30
|
-
* GetLatestValidatorSetRequest is the request type for the
|
|
31
|
-
* Query/GetValidatorSetByHeight RPC method.
|
|
32
|
-
*/
|
|
23
|
+
/** GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. */
|
|
33
24
|
export interface GetLatestValidatorSetRequest {
|
|
34
25
|
/** pagination defines an pagination for the request. */
|
|
35
26
|
pagination?: PageRequest;
|
|
36
27
|
}
|
|
37
|
-
/**
|
|
38
|
-
* GetLatestValidatorSetResponse is the response type for the
|
|
39
|
-
* Query/GetValidatorSetByHeight RPC method.
|
|
40
|
-
*/
|
|
28
|
+
/** GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. */
|
|
41
29
|
export interface GetLatestValidatorSetResponse {
|
|
42
30
|
blockHeight: Long;
|
|
43
31
|
validators: Validator[];
|
|
@@ -51,17 +39,11 @@ export interface Validator {
|
|
|
51
39
|
votingPower: Long;
|
|
52
40
|
proposerPriority: Long;
|
|
53
41
|
}
|
|
54
|
-
/**
|
|
55
|
-
* GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight
|
|
56
|
-
* RPC method.
|
|
57
|
-
*/
|
|
42
|
+
/** GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. */
|
|
58
43
|
export interface GetBlockByHeightRequest {
|
|
59
44
|
height: Long;
|
|
60
45
|
}
|
|
61
|
-
/**
|
|
62
|
-
* GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight
|
|
63
|
-
* RPC method.
|
|
64
|
-
*/
|
|
46
|
+
/** GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. */
|
|
65
47
|
export interface GetBlockByHeightResponse {
|
|
66
48
|
blockId?: BlockID;
|
|
67
49
|
/** Deprecated: please use `sdk_block` instead */
|
|
@@ -69,16 +51,10 @@ export interface GetBlockByHeightResponse {
|
|
|
69
51
|
/** Since: cosmos-sdk 0.47 */
|
|
70
52
|
sdkBlock?: Block1;
|
|
71
53
|
}
|
|
72
|
-
/**
|
|
73
|
-
* GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC
|
|
74
|
-
* method.
|
|
75
|
-
*/
|
|
54
|
+
/** GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. */
|
|
76
55
|
export interface GetLatestBlockRequest {
|
|
77
56
|
}
|
|
78
|
-
/**
|
|
79
|
-
* GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC
|
|
80
|
-
* method.
|
|
81
|
-
*/
|
|
57
|
+
/** GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. */
|
|
82
58
|
export interface GetLatestBlockResponse {
|
|
83
59
|
blockId?: BlockID;
|
|
84
60
|
/** Deprecated: please use `sdk_block` instead */
|
|
@@ -96,10 +72,7 @@ export interface GetSyncingResponse {
|
|
|
96
72
|
/** GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. */
|
|
97
73
|
export interface GetNodeInfoRequest {
|
|
98
74
|
}
|
|
99
|
-
/**
|
|
100
|
-
* GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC
|
|
101
|
-
* method.
|
|
102
|
-
*/
|
|
75
|
+
/** GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC method. */
|
|
103
76
|
export interface GetNodeInfoResponse {
|
|
104
77
|
defaultNodeInfo?: DefaultNodeInfo;
|
|
105
78
|
applicationVersion?: VersionInfo;
|
|
@@ -133,8 +106,7 @@ export interface ABCIQueryRequest {
|
|
|
133
106
|
prove: boolean;
|
|
134
107
|
}
|
|
135
108
|
/**
|
|
136
|
-
* ABCIQueryResponse defines the response structure for the ABCIQuery gRPC
|
|
137
|
-
* query.
|
|
109
|
+
* ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query.
|
|
138
110
|
*
|
|
139
111
|
* Note: This type is a duplicate of the ResponseQuery proto type defined in
|
|
140
112
|
* Tendermint.
|
|
@@ -154,11 +126,10 @@ export interface ABCIQueryResponse {
|
|
|
154
126
|
}
|
|
155
127
|
/**
|
|
156
128
|
* ProofOp defines an operation used for calculating Merkle root. The data could
|
|
157
|
-
* be arbitrary format, providing
|
|
129
|
+
* be arbitrary format, providing necessary data for example neighbouring node
|
|
158
130
|
* hash.
|
|
159
131
|
*
|
|
160
|
-
* Note: This type is a duplicate of the ProofOp proto type defined in
|
|
161
|
-
* Tendermint.
|
|
132
|
+
* Note: This type is a duplicate of the ProofOp proto type defined in Tendermint.
|
|
162
133
|
*/
|
|
163
134
|
export interface ProofOp {
|
|
164
135
|
type: string;
|
|
@@ -168,8 +139,7 @@ export interface ProofOp {
|
|
|
168
139
|
/**
|
|
169
140
|
* ProofOps is Merkle proof defined by the list of ProofOps.
|
|
170
141
|
*
|
|
171
|
-
* Note: This type is a duplicate of the ProofOps proto type defined in
|
|
172
|
-
* Tendermint.
|
|
142
|
+
* Note: This type is a duplicate of the ProofOps proto type defined in Tendermint.
|
|
173
143
|
*/
|
|
174
144
|
export interface ProofOps {
|
|
175
145
|
ops: ProofOp[];
|
|
@@ -322,9 +292,9 @@ export interface Service {
|
|
|
322
292
|
/** GetValidatorSetByHeight queries validator-set at a given height. */
|
|
323
293
|
GetValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise<GetValidatorSetByHeightResponse>;
|
|
324
294
|
/**
|
|
325
|
-
* ABCIQuery defines a query handler that supports ABCI queries directly to
|
|
326
|
-
*
|
|
327
|
-
*
|
|
295
|
+
* ABCIQuery defines a query handler that supports ABCI queries directly to the
|
|
296
|
+
* application, bypassing Tendermint completely. The ABCI query must contain
|
|
297
|
+
* a valid and supported path, including app, custom, p2p, and store.
|
|
328
298
|
*
|
|
329
299
|
* Since: cosmos-sdk 0.46
|
|
330
300
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.QueryParamsResponse = exports.QueryParamsRequest = void 0;
|
|
4
|
+
var query_1 = require("./query");
|
|
5
|
+
Object.defineProperty(exports, "QueryParamsRequest", { enumerable: true, get: function () { return query_1.QueryParamsRequest; } });
|
|
6
|
+
Object.defineProperty(exports, "QueryParamsResponse", { enumerable: true, get: function () { return query_1.QueryParamsResponse; } });
|
|
7
|
+
var tx_1 = require("./tx");
|
|
8
|
+
Object.defineProperty(exports, "MsgUpdateParams", { enumerable: true, get: function () { return tx_1.MsgUpdateParams; } });
|
|
9
|
+
Object.defineProperty(exports, "MsgUpdateParamsResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateParamsResponse; } });
|
|
@@ -1,15 +1,38 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Coin } from "../../base/v1beta1/coin";
|
|
3
4
|
export declare const protobufPackage = "cosmos.crisis.v1beta1";
|
|
4
5
|
/** MsgVerifyInvariant represents a message to verify a particular invariance. */
|
|
5
6
|
export interface MsgVerifyInvariant {
|
|
7
|
+
/** sender is the account address of private key to send coins to fee collector account. */
|
|
6
8
|
sender: string;
|
|
9
|
+
/** name of the invariant module. */
|
|
7
10
|
invariantModuleName: string;
|
|
11
|
+
/** invariant_route is the msg's invariant route. */
|
|
8
12
|
invariantRoute: string;
|
|
9
13
|
}
|
|
10
14
|
/** MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. */
|
|
11
15
|
export interface MsgVerifyInvariantResponse {
|
|
12
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
19
|
+
*
|
|
20
|
+
* Since: cosmos-sdk 0.47
|
|
21
|
+
*/
|
|
22
|
+
export interface MsgUpdateParams {
|
|
23
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
24
|
+
authority: string;
|
|
25
|
+
/** constant_fee defines the x/crisis parameter. */
|
|
26
|
+
constantFee?: Coin;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
30
|
+
* MsgUpdateParams message.
|
|
31
|
+
*
|
|
32
|
+
* Since: cosmos-sdk 0.47
|
|
33
|
+
*/
|
|
34
|
+
export interface MsgUpdateParamsResponse {
|
|
35
|
+
}
|
|
13
36
|
export declare const MsgVerifyInvariant: {
|
|
14
37
|
encode(message: MsgVerifyInvariant, writer?: _m0.Writer): _m0.Writer;
|
|
15
38
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgVerifyInvariant;
|
|
@@ -24,15 +47,37 @@ export declare const MsgVerifyInvariantResponse: {
|
|
|
24
47
|
toJSON(_: MsgVerifyInvariantResponse): unknown;
|
|
25
48
|
fromPartial(_: DeepPartial<MsgVerifyInvariantResponse>): MsgVerifyInvariantResponse;
|
|
26
49
|
};
|
|
50
|
+
export declare const MsgUpdateParams: {
|
|
51
|
+
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
52
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParams;
|
|
53
|
+
fromJSON(object: any): MsgUpdateParams;
|
|
54
|
+
toJSON(message: MsgUpdateParams): unknown;
|
|
55
|
+
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams;
|
|
56
|
+
};
|
|
57
|
+
export declare const MsgUpdateParamsResponse: {
|
|
58
|
+
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
59
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParamsResponse;
|
|
60
|
+
fromJSON(_: any): MsgUpdateParamsResponse;
|
|
61
|
+
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
62
|
+
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse;
|
|
63
|
+
};
|
|
27
64
|
/** Msg defines the bank Msg service. */
|
|
28
65
|
export interface Msg {
|
|
29
|
-
/** VerifyInvariant defines a method to verify a particular
|
|
66
|
+
/** VerifyInvariant defines a method to verify a particular invariant. */
|
|
30
67
|
VerifyInvariant(request: MsgVerifyInvariant): Promise<MsgVerifyInvariantResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* UpdateParams defines a governance operation for updating the x/crisis module
|
|
70
|
+
* parameters. The authority is defined in the keeper.
|
|
71
|
+
*
|
|
72
|
+
* Since: cosmos-sdk 0.47
|
|
73
|
+
*/
|
|
74
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
31
75
|
}
|
|
32
76
|
export declare class MsgClientImpl implements Msg {
|
|
33
77
|
private readonly rpc;
|
|
34
78
|
constructor(rpc: Rpc);
|
|
35
79
|
VerifyInvariant(request: MsgVerifyInvariant): Promise<MsgVerifyInvariantResponse>;
|
|
80
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
36
81
|
}
|
|
37
82
|
interface Rpc {
|
|
38
83
|
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.MsgVerifyInvariantResponse = exports.MsgVerifyInvariant = exports.protobufPackage = void 0;
|
|
6
|
+
exports.MsgClientImpl = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.MsgVerifyInvariantResponse = exports.MsgVerifyInvariant = 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 coin_1 = require("../../base/v1beta1/coin");
|
|
10
11
|
exports.protobufPackage = "cosmos.crisis.v1beta1";
|
|
11
12
|
const baseMsgVerifyInvariant = {
|
|
12
13
|
sender: "",
|
|
@@ -116,16 +117,117 @@ exports.MsgVerifyInvariantResponse = {
|
|
|
116
117
|
return message;
|
|
117
118
|
},
|
|
118
119
|
};
|
|
120
|
+
const baseMsgUpdateParams = { authority: "" };
|
|
121
|
+
exports.MsgUpdateParams = {
|
|
122
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
123
|
+
if (message.authority !== "") {
|
|
124
|
+
writer.uint32(10).string(message.authority);
|
|
125
|
+
}
|
|
126
|
+
if (message.constantFee !== undefined) {
|
|
127
|
+
coin_1.Coin.encode(message.constantFee, writer.uint32(18).fork()).ldelim();
|
|
128
|
+
}
|
|
129
|
+
return writer;
|
|
130
|
+
},
|
|
131
|
+
decode(input, length) {
|
|
132
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
133
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
134
|
+
const message = Object.assign({}, baseMsgUpdateParams);
|
|
135
|
+
while (reader.pos < end) {
|
|
136
|
+
const tag = reader.uint32();
|
|
137
|
+
switch (tag >>> 3) {
|
|
138
|
+
case 1:
|
|
139
|
+
message.authority = reader.string();
|
|
140
|
+
break;
|
|
141
|
+
case 2:
|
|
142
|
+
message.constantFee = coin_1.Coin.decode(reader, reader.uint32());
|
|
143
|
+
break;
|
|
144
|
+
default:
|
|
145
|
+
reader.skipType(tag & 7);
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return message;
|
|
150
|
+
},
|
|
151
|
+
fromJSON(object) {
|
|
152
|
+
const message = Object.assign({}, baseMsgUpdateParams);
|
|
153
|
+
message.authority =
|
|
154
|
+
object.authority !== undefined && object.authority !== null
|
|
155
|
+
? String(object.authority)
|
|
156
|
+
: "";
|
|
157
|
+
message.constantFee =
|
|
158
|
+
object.constantFee !== undefined && object.constantFee !== null
|
|
159
|
+
? coin_1.Coin.fromJSON(object.constantFee)
|
|
160
|
+
: undefined;
|
|
161
|
+
return message;
|
|
162
|
+
},
|
|
163
|
+
toJSON(message) {
|
|
164
|
+
const obj = {};
|
|
165
|
+
message.authority !== undefined && (obj.authority = message.authority);
|
|
166
|
+
message.constantFee !== undefined &&
|
|
167
|
+
(obj.constantFee = message.constantFee
|
|
168
|
+
? coin_1.Coin.toJSON(message.constantFee)
|
|
169
|
+
: undefined);
|
|
170
|
+
return obj;
|
|
171
|
+
},
|
|
172
|
+
fromPartial(object) {
|
|
173
|
+
var _a;
|
|
174
|
+
const message = Object.assign({}, baseMsgUpdateParams);
|
|
175
|
+
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
176
|
+
message.constantFee =
|
|
177
|
+
object.constantFee !== undefined && object.constantFee !== null
|
|
178
|
+
? coin_1.Coin.fromPartial(object.constantFee)
|
|
179
|
+
: undefined;
|
|
180
|
+
return message;
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
const baseMsgUpdateParamsResponse = {};
|
|
184
|
+
exports.MsgUpdateParamsResponse = {
|
|
185
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
186
|
+
return writer;
|
|
187
|
+
},
|
|
188
|
+
decode(input, length) {
|
|
189
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
190
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
191
|
+
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
192
|
+
while (reader.pos < end) {
|
|
193
|
+
const tag = reader.uint32();
|
|
194
|
+
switch (tag >>> 3) {
|
|
195
|
+
default:
|
|
196
|
+
reader.skipType(tag & 7);
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return message;
|
|
201
|
+
},
|
|
202
|
+
fromJSON(_) {
|
|
203
|
+
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
204
|
+
return message;
|
|
205
|
+
},
|
|
206
|
+
toJSON(_) {
|
|
207
|
+
const obj = {};
|
|
208
|
+
return obj;
|
|
209
|
+
},
|
|
210
|
+
fromPartial(_) {
|
|
211
|
+
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
212
|
+
return message;
|
|
213
|
+
},
|
|
214
|
+
};
|
|
119
215
|
class MsgClientImpl {
|
|
120
216
|
constructor(rpc) {
|
|
121
217
|
this.rpc = rpc;
|
|
122
218
|
this.VerifyInvariant = this.VerifyInvariant.bind(this);
|
|
219
|
+
this.UpdateParams = this.UpdateParams.bind(this);
|
|
123
220
|
}
|
|
124
221
|
VerifyInvariant(request) {
|
|
125
222
|
const data = exports.MsgVerifyInvariant.encode(request).finish();
|
|
126
223
|
const promise = this.rpc.request("cosmos.crisis.v1beta1.Msg", "VerifyInvariant", data);
|
|
127
224
|
return promise.then((data) => exports.MsgVerifyInvariantResponse.decode(new minimal_1.default.Reader(data)));
|
|
128
225
|
}
|
|
226
|
+
UpdateParams(request) {
|
|
227
|
+
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
228
|
+
const promise = this.rpc.request("cosmos.crisis.v1beta1.Msg", "UpdateParams", data);
|
|
229
|
+
return promise.then((data) => exports.MsgUpdateParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
230
|
+
}
|
|
129
231
|
}
|
|
130
232
|
exports.MsgClientImpl = MsgClientImpl;
|
|
131
233
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
@@ -5,10 +5,22 @@ export declare const protobufPackage = "cosmos.distribution.v1beta1";
|
|
|
5
5
|
/** Params defines the set of params for the distribution module. */
|
|
6
6
|
export interface Params {
|
|
7
7
|
communityTax: string;
|
|
8
|
+
/**
|
|
9
|
+
* Deprecated: The base_proposer_reward field is deprecated and is no longer used
|
|
10
|
+
* in the x/distribution module's reward mechanism.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
8
14
|
baseProposerReward: string;
|
|
15
|
+
/**
|
|
16
|
+
* Deprecated: The bonus_proposer_reward field is deprecated and is no longer used
|
|
17
|
+
* in the x/distribution module's reward mechanism.
|
|
18
|
+
*
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
9
21
|
bonusProposerReward: string;
|
|
10
|
-
liquidityProviderReward: string;
|
|
11
22
|
withdrawAddrEnabled: boolean;
|
|
23
|
+
liquidityProviderReward: string;
|
|
12
24
|
}
|
|
13
25
|
/**
|
|
14
26
|
* ValidatorHistoricalRewards represents historical rewards for a validator.
|
|
@@ -76,6 +88,13 @@ export interface FeePool {
|
|
|
76
88
|
* CommunityPoolSpendProposal details a proposal for use of community funds,
|
|
77
89
|
* together with how many coins are proposed to be spent, and to which
|
|
78
90
|
* recipient account.
|
|
91
|
+
*
|
|
92
|
+
* Deprecated: Do not use. As of the Cosmos SDK release v0.47.x, there is no
|
|
93
|
+
* longer a need for an explicit CommunityPoolSpendProposal. To spend community
|
|
94
|
+
* pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov
|
|
95
|
+
* module via a v1 governance proposal.
|
|
96
|
+
*
|
|
97
|
+
* @deprecated
|
|
79
98
|
*/
|
|
80
99
|
export interface CommunityPoolSpendProposal {
|
|
81
100
|
title: string;
|
|
@@ -13,8 +13,8 @@ const baseParams = {
|
|
|
13
13
|
communityTax: "",
|
|
14
14
|
baseProposerReward: "",
|
|
15
15
|
bonusProposerReward: "",
|
|
16
|
-
liquidityProviderReward: "",
|
|
17
16
|
withdrawAddrEnabled: false,
|
|
17
|
+
liquidityProviderReward: "",
|
|
18
18
|
};
|
|
19
19
|
exports.Params = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -27,12 +27,12 @@ exports.Params = {
|
|
|
27
27
|
if (message.bonusProposerReward !== "") {
|
|
28
28
|
writer.uint32(26).string(message.bonusProposerReward);
|
|
29
29
|
}
|
|
30
|
-
if (message.liquidityProviderReward !== "") {
|
|
31
|
-
writer.uint32(42).string(message.liquidityProviderReward);
|
|
32
|
-
}
|
|
33
30
|
if (message.withdrawAddrEnabled === true) {
|
|
34
31
|
writer.uint32(32).bool(message.withdrawAddrEnabled);
|
|
35
32
|
}
|
|
33
|
+
if (message.liquidityProviderReward !== "") {
|
|
34
|
+
writer.uint32(42).string(message.liquidityProviderReward);
|
|
35
|
+
}
|
|
36
36
|
return writer;
|
|
37
37
|
},
|
|
38
38
|
decode(input, length) {
|
|
@@ -51,12 +51,12 @@ exports.Params = {
|
|
|
51
51
|
case 3:
|
|
52
52
|
message.bonusProposerReward = reader.string();
|
|
53
53
|
break;
|
|
54
|
-
case 5:
|
|
55
|
-
message.liquidityProviderReward = reader.string();
|
|
56
|
-
break;
|
|
57
54
|
case 4:
|
|
58
55
|
message.withdrawAddrEnabled = reader.bool();
|
|
59
56
|
break;
|
|
57
|
+
case 5:
|
|
58
|
+
message.liquidityProviderReward = reader.string();
|
|
59
|
+
break;
|
|
60
60
|
default:
|
|
61
61
|
reader.skipType(tag & 7);
|
|
62
62
|
break;
|
|
@@ -80,16 +80,16 @@ exports.Params = {
|
|
|
80
80
|
object.bonusProposerReward !== null
|
|
81
81
|
? String(object.bonusProposerReward)
|
|
82
82
|
: "";
|
|
83
|
-
message.liquidityProviderReward =
|
|
84
|
-
object.liquidityProviderReward !== undefined &&
|
|
85
|
-
object.liquidityProviderReward !== null
|
|
86
|
-
? String(object.liquidityProviderReward)
|
|
87
|
-
: "";
|
|
88
83
|
message.withdrawAddrEnabled =
|
|
89
84
|
object.withdrawAddrEnabled !== undefined &&
|
|
90
85
|
object.withdrawAddrEnabled !== null
|
|
91
86
|
? Boolean(object.withdrawAddrEnabled)
|
|
92
87
|
: false;
|
|
88
|
+
message.liquidityProviderReward =
|
|
89
|
+
object.liquidityProviderReward !== undefined &&
|
|
90
|
+
object.liquidityProviderReward !== null
|
|
91
|
+
? String(object.liquidityProviderReward)
|
|
92
|
+
: "";
|
|
93
93
|
return message;
|
|
94
94
|
},
|
|
95
95
|
toJSON(message) {
|
|
@@ -100,10 +100,10 @@ exports.Params = {
|
|
|
100
100
|
(obj.baseProposerReward = message.baseProposerReward);
|
|
101
101
|
message.bonusProposerReward !== undefined &&
|
|
102
102
|
(obj.bonusProposerReward = message.bonusProposerReward);
|
|
103
|
-
message.liquidityProviderReward !== undefined &&
|
|
104
|
-
(obj.liquidityProviderReward = message.liquidityProviderReward);
|
|
105
103
|
message.withdrawAddrEnabled !== undefined &&
|
|
106
104
|
(obj.withdrawAddrEnabled = message.withdrawAddrEnabled);
|
|
105
|
+
message.liquidityProviderReward !== undefined &&
|
|
106
|
+
(obj.liquidityProviderReward = message.liquidityProviderReward);
|
|
107
107
|
return obj;
|
|
108
108
|
},
|
|
109
109
|
fromPartial(object) {
|
|
@@ -112,8 +112,8 @@ exports.Params = {
|
|
|
112
112
|
message.communityTax = (_a = object.communityTax) !== null && _a !== void 0 ? _a : "";
|
|
113
113
|
message.baseProposerReward = (_b = object.baseProposerReward) !== null && _b !== void 0 ? _b : "";
|
|
114
114
|
message.bonusProposerReward = (_c = object.bonusProposerReward) !== null && _c !== void 0 ? _c : "";
|
|
115
|
-
message.
|
|
116
|
-
message.
|
|
115
|
+
message.withdrawAddrEnabled = (_d = object.withdrawAddrEnabled) !== null && _d !== void 0 ? _d : false;
|
|
116
|
+
message.liquidityProviderReward = (_e = object.liquidityProviderReward) !== null && _e !== void 0 ? _e : "";
|
|
117
117
|
return message;
|
|
118
118
|
},
|
|
119
119
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Params, ValidatorHistoricalRewards, ValidatorCurrentRewards, ValidatorAccumulatedCommission, ValidatorOutstandingRewards, ValidatorSlashEvent, ValidatorSlashEvents, FeePool, CommunityPoolSpendProposal, DelegatorStartingInfo, DelegationDelegatorReward, CommunityPoolSpendProposalWithDeposit } from "./distribution";
|
|
2
2
|
export { DelegatorWithdrawInfo, ValidatorOutstandingRewardsRecord, ValidatorAccumulatedCommissionRecord, ValidatorHistoricalRewardsRecord, ValidatorCurrentRewardsRecord, DelegatorStartingInfoRecord, ValidatorSlashEventRecord } from "./genesis";
|
|
3
|
-
export { QueryParamsRequest, QueryParamsResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse, QueryLiquidityProviderRewardsRequest, QueryLiquidityProviderRewardsResponse } from "./query";
|
|
4
|
-
export { MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse } from "./tx";
|
|
3
|
+
export { QueryParamsRequest, QueryParamsResponse, QueryValidatorDistributionInfoRequest, QueryValidatorDistributionInfoResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse, QueryLiquidityProviderRewardsRequest, QueryLiquidityProviderRewardsResponse } from "./query";
|
|
4
|
+
export { MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse, MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, MsgFundCommunityPoolResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgCommunityPoolSpend, MsgCommunityPoolSpendResponse } from "./tx";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MsgFundCommunityPoolResponse = exports.MsgFundCommunityPool = exports.MsgWithdrawValidatorCommissionResponse = exports.MsgWithdrawValidatorCommission = exports.MsgWithdrawDelegatorRewardResponse = exports.MsgWithdrawDelegatorReward = exports.MsgSetWithdrawAddressResponse = exports.MsgSetWithdrawAddress = 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.ValidatorSlashEventRecord = exports.DelegatorStartingInfoRecord = exports.ValidatorCurrentRewardsRecord = exports.ValidatorHistoricalRewardsRecord = exports.ValidatorAccumulatedCommissionRecord = exports.ValidatorOutstandingRewardsRecord = exports.DelegatorWithdrawInfo = exports.CommunityPoolSpendProposalWithDeposit = exports.DelegationDelegatorReward = exports.DelegatorStartingInfo = exports.CommunityPoolSpendProposal = exports.FeePool = exports.ValidatorSlashEvents = exports.ValidatorSlashEvent = exports.ValidatorOutstandingRewards = exports.ValidatorAccumulatedCommission = exports.ValidatorCurrentRewards = exports.ValidatorHistoricalRewards = exports.Params = void 0;
|
|
3
|
+
exports.MsgUpdateParams = exports.MsgFundCommunityPoolResponse = exports.MsgFundCommunityPool = exports.MsgWithdrawValidatorCommissionResponse = exports.MsgWithdrawValidatorCommission = exports.MsgWithdrawDelegatorRewardResponse = exports.MsgWithdrawDelegatorReward = exports.MsgSetWithdrawAddressResponse = exports.MsgSetWithdrawAddress = 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.ValidatorSlashEventRecord = exports.DelegatorStartingInfoRecord = exports.ValidatorCurrentRewardsRecord = exports.ValidatorHistoricalRewardsRecord = exports.ValidatorAccumulatedCommissionRecord = exports.ValidatorOutstandingRewardsRecord = exports.DelegatorWithdrawInfo = exports.CommunityPoolSpendProposalWithDeposit = exports.DelegationDelegatorReward = exports.DelegatorStartingInfo = exports.CommunityPoolSpendProposal = exports.FeePool = exports.ValidatorSlashEvents = exports.ValidatorSlashEvent = exports.ValidatorOutstandingRewards = exports.ValidatorAccumulatedCommission = exports.ValidatorCurrentRewards = exports.ValidatorHistoricalRewards = exports.Params = void 0;
|
|
4
|
+
exports.MsgCommunityPoolSpendResponse = exports.MsgCommunityPoolSpend = exports.MsgUpdateParamsResponse = void 0;
|
|
4
5
|
var distribution_1 = require("./distribution");
|
|
5
6
|
Object.defineProperty(exports, "Params", { enumerable: true, get: function () { return distribution_1.Params; } });
|
|
6
7
|
Object.defineProperty(exports, "ValidatorHistoricalRewards", { enumerable: true, get: function () { return distribution_1.ValidatorHistoricalRewards; } });
|
|
@@ -25,6 +26,8 @@ Object.defineProperty(exports, "ValidatorSlashEventRecord", { enumerable: true,
|
|
|
25
26
|
var query_1 = require("./query");
|
|
26
27
|
Object.defineProperty(exports, "QueryParamsRequest", { enumerable: true, get: function () { return query_1.QueryParamsRequest; } });
|
|
27
28
|
Object.defineProperty(exports, "QueryParamsResponse", { enumerable: true, get: function () { return query_1.QueryParamsResponse; } });
|
|
29
|
+
Object.defineProperty(exports, "QueryValidatorDistributionInfoRequest", { enumerable: true, get: function () { return query_1.QueryValidatorDistributionInfoRequest; } });
|
|
30
|
+
Object.defineProperty(exports, "QueryValidatorDistributionInfoResponse", { enumerable: true, get: function () { return query_1.QueryValidatorDistributionInfoResponse; } });
|
|
28
31
|
Object.defineProperty(exports, "QueryValidatorOutstandingRewardsRequest", { enumerable: true, get: function () { return query_1.QueryValidatorOutstandingRewardsRequest; } });
|
|
29
32
|
Object.defineProperty(exports, "QueryValidatorOutstandingRewardsResponse", { enumerable: true, get: function () { return query_1.QueryValidatorOutstandingRewardsResponse; } });
|
|
30
33
|
Object.defineProperty(exports, "QueryValidatorCommissionRequest", { enumerable: true, get: function () { return query_1.QueryValidatorCommissionRequest; } });
|
|
@@ -52,3 +55,7 @@ Object.defineProperty(exports, "MsgWithdrawValidatorCommission", { enumerable: t
|
|
|
52
55
|
Object.defineProperty(exports, "MsgWithdrawValidatorCommissionResponse", { enumerable: true, get: function () { return tx_1.MsgWithdrawValidatorCommissionResponse; } });
|
|
53
56
|
Object.defineProperty(exports, "MsgFundCommunityPool", { enumerable: true, get: function () { return tx_1.MsgFundCommunityPool; } });
|
|
54
57
|
Object.defineProperty(exports, "MsgFundCommunityPoolResponse", { enumerable: true, get: function () { return tx_1.MsgFundCommunityPoolResponse; } });
|
|
58
|
+
Object.defineProperty(exports, "MsgUpdateParams", { enumerable: true, get: function () { return tx_1.MsgUpdateParams; } });
|
|
59
|
+
Object.defineProperty(exports, "MsgUpdateParamsResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateParamsResponse; } });
|
|
60
|
+
Object.defineProperty(exports, "MsgCommunityPoolSpend", { enumerable: true, get: function () { return tx_1.MsgCommunityPoolSpend; } });
|
|
61
|
+
Object.defineProperty(exports, "MsgCommunityPoolSpendResponse", { enumerable: true, get: function () { return tx_1.MsgCommunityPoolSpendResponse; } });
|