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
|
@@ -5,8 +5,19 @@ import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
|
5
5
|
export declare const protobufPackage = "cosmos.evidence.v1beta1";
|
|
6
6
|
/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */
|
|
7
7
|
export interface QueryEvidenceRequest {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* evidence_hash defines the hash of the requested evidence.
|
|
10
|
+
* Deprecated: Use hash, a HEX encoded string, instead.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
9
14
|
evidenceHash: Uint8Array;
|
|
15
|
+
/**
|
|
16
|
+
* hash defines the evidence hash of the requested evidence.
|
|
17
|
+
*
|
|
18
|
+
* Since: cosmos-sdk 0.47
|
|
19
|
+
*/
|
|
20
|
+
hash: string;
|
|
10
21
|
}
|
|
11
22
|
/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */
|
|
12
23
|
export interface QueryEvidenceResponse {
|
|
@@ -10,12 +10,15 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
|
10
10
|
const any_1 = require("../../../google/protobuf/any");
|
|
11
11
|
const pagination_1 = require("../../base/query/v1beta1/pagination");
|
|
12
12
|
exports.protobufPackage = "cosmos.evidence.v1beta1";
|
|
13
|
-
const baseQueryEvidenceRequest = {};
|
|
13
|
+
const baseQueryEvidenceRequest = { hash: "" };
|
|
14
14
|
exports.QueryEvidenceRequest = {
|
|
15
15
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
16
16
|
if (message.evidenceHash.length !== 0) {
|
|
17
17
|
writer.uint32(10).bytes(message.evidenceHash);
|
|
18
18
|
}
|
|
19
|
+
if (message.hash !== "") {
|
|
20
|
+
writer.uint32(18).string(message.hash);
|
|
21
|
+
}
|
|
19
22
|
return writer;
|
|
20
23
|
},
|
|
21
24
|
decode(input, length) {
|
|
@@ -29,6 +32,9 @@ exports.QueryEvidenceRequest = {
|
|
|
29
32
|
case 1:
|
|
30
33
|
message.evidenceHash = reader.bytes();
|
|
31
34
|
break;
|
|
35
|
+
case 2:
|
|
36
|
+
message.hash = reader.string();
|
|
37
|
+
break;
|
|
32
38
|
default:
|
|
33
39
|
reader.skipType(tag & 7);
|
|
34
40
|
break;
|
|
@@ -42,6 +48,10 @@ exports.QueryEvidenceRequest = {
|
|
|
42
48
|
object.evidenceHash !== undefined && object.evidenceHash !== null
|
|
43
49
|
? bytesFromBase64(object.evidenceHash)
|
|
44
50
|
: new Uint8Array();
|
|
51
|
+
message.hash =
|
|
52
|
+
object.hash !== undefined && object.hash !== null
|
|
53
|
+
? String(object.hash)
|
|
54
|
+
: "";
|
|
45
55
|
return message;
|
|
46
56
|
},
|
|
47
57
|
toJSON(message) {
|
|
@@ -50,12 +60,14 @@ exports.QueryEvidenceRequest = {
|
|
|
50
60
|
(obj.evidenceHash = base64FromBytes(message.evidenceHash !== undefined
|
|
51
61
|
? message.evidenceHash
|
|
52
62
|
: new Uint8Array()));
|
|
63
|
+
message.hash !== undefined && (obj.hash = message.hash);
|
|
53
64
|
return obj;
|
|
54
65
|
},
|
|
55
66
|
fromPartial(object) {
|
|
56
|
-
var _a;
|
|
67
|
+
var _a, _b;
|
|
57
68
|
const message = Object.assign({}, baseQueryEvidenceRequest);
|
|
58
69
|
message.evidenceHash = (_a = object.evidenceHash) !== null && _a !== void 0 ? _a : new Uint8Array();
|
|
70
|
+
message.hash = (_b = object.hash) !== null && _b !== void 0 ? _b : "";
|
|
59
71
|
return message;
|
|
60
72
|
},
|
|
61
73
|
};
|
|
@@ -7,7 +7,9 @@ export declare const protobufPackage = "cosmos.evidence.v1beta1";
|
|
|
7
7
|
* Evidence of misbehavior such as equivocation or counterfactual signing.
|
|
8
8
|
*/
|
|
9
9
|
export interface MsgSubmitEvidence {
|
|
10
|
+
/** submitter is the signer account address of evidence. */
|
|
10
11
|
submitter: string;
|
|
12
|
+
/** evidence defines the evidence of misbehavior. */
|
|
11
13
|
evidence?: Any;
|
|
12
14
|
}
|
|
13
15
|
/** MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { DepositParams, VotingParams, TallyParams, Deposit, Vote, Proposal } from "./gov";
|
|
3
|
+
import { DepositParams, VotingParams, TallyParams, Params, Deposit, Vote, Proposal } from "./gov";
|
|
4
4
|
export declare const protobufPackage = "cosmos.gov.v1";
|
|
5
5
|
/** Since: cosmos-sdk 0.46 */
|
|
6
6
|
/** GenesisState defines the gov module's genesis state. */
|
|
@@ -13,12 +13,33 @@ export interface GenesisState {
|
|
|
13
13
|
votes: Vote[];
|
|
14
14
|
/** proposals defines all the proposals present at genesis. */
|
|
15
15
|
proposals: Proposal[];
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Deprecated: Prefer to use `params` instead.
|
|
18
|
+
* deposit_params defines all the paramaters of related to deposit.
|
|
19
|
+
*
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
17
22
|
depositParams?: DepositParams;
|
|
18
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Deprecated: Prefer to use `params` instead.
|
|
25
|
+
* voting_params defines all the paramaters of related to voting.
|
|
26
|
+
*
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
19
29
|
votingParams?: VotingParams;
|
|
20
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Deprecated: Prefer to use `params` instead.
|
|
32
|
+
* tally_params defines all the paramaters of related to tally.
|
|
33
|
+
*
|
|
34
|
+
* @deprecated
|
|
35
|
+
*/
|
|
21
36
|
tallyParams?: TallyParams;
|
|
37
|
+
/**
|
|
38
|
+
* params defines all the paramaters of x/gov module.
|
|
39
|
+
*
|
|
40
|
+
* Since: cosmos-sdk 0.47
|
|
41
|
+
*/
|
|
42
|
+
params?: Params;
|
|
22
43
|
}
|
|
23
44
|
export declare const GenesisState: {
|
|
24
45
|
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -33,6 +33,9 @@ exports.GenesisState = {
|
|
|
33
33
|
if (message.tallyParams !== undefined) {
|
|
34
34
|
gov_1.TallyParams.encode(message.tallyParams, writer.uint32(58).fork()).ldelim();
|
|
35
35
|
}
|
|
36
|
+
if (message.params !== undefined) {
|
|
37
|
+
gov_1.Params.encode(message.params, writer.uint32(66).fork()).ldelim();
|
|
38
|
+
}
|
|
36
39
|
return writer;
|
|
37
40
|
},
|
|
38
41
|
decode(input, length) {
|
|
@@ -66,6 +69,9 @@ exports.GenesisState = {
|
|
|
66
69
|
case 7:
|
|
67
70
|
message.tallyParams = gov_1.TallyParams.decode(reader, reader.uint32());
|
|
68
71
|
break;
|
|
72
|
+
case 8:
|
|
73
|
+
message.params = gov_1.Params.decode(reader, reader.uint32());
|
|
74
|
+
break;
|
|
69
75
|
default:
|
|
70
76
|
reader.skipType(tag & 7);
|
|
71
77
|
break;
|
|
@@ -96,6 +102,10 @@ exports.GenesisState = {
|
|
|
96
102
|
object.tallyParams !== undefined && object.tallyParams !== null
|
|
97
103
|
? gov_1.TallyParams.fromJSON(object.tallyParams)
|
|
98
104
|
: undefined;
|
|
105
|
+
message.params =
|
|
106
|
+
object.params !== undefined && object.params !== null
|
|
107
|
+
? gov_1.Params.fromJSON(object.params)
|
|
108
|
+
: undefined;
|
|
99
109
|
return message;
|
|
100
110
|
},
|
|
101
111
|
toJSON(message) {
|
|
@@ -132,6 +142,8 @@ exports.GenesisState = {
|
|
|
132
142
|
(obj.tallyParams = message.tallyParams
|
|
133
143
|
? gov_1.TallyParams.toJSON(message.tallyParams)
|
|
134
144
|
: undefined);
|
|
145
|
+
message.params !== undefined &&
|
|
146
|
+
(obj.params = message.params ? gov_1.Params.toJSON(message.params) : undefined);
|
|
135
147
|
return obj;
|
|
136
148
|
},
|
|
137
149
|
fromPartial(object) {
|
|
@@ -157,6 +169,10 @@ exports.GenesisState = {
|
|
|
157
169
|
object.tallyParams !== undefined && object.tallyParams !== null
|
|
158
170
|
? gov_1.TallyParams.fromPartial(object.tallyParams)
|
|
159
171
|
: undefined;
|
|
172
|
+
message.params =
|
|
173
|
+
object.params !== undefined && object.params !== null
|
|
174
|
+
? gov_1.Params.fromPartial(object.params)
|
|
175
|
+
: undefined;
|
|
160
176
|
return message;
|
|
161
177
|
},
|
|
162
178
|
};
|
|
@@ -56,7 +56,9 @@ export declare function proposalStatusFromJSON(object: any): ProposalStatus;
|
|
|
56
56
|
export declare function proposalStatusToJSON(object: ProposalStatus): string;
|
|
57
57
|
/** WeightedVoteOption defines a unit of vote for vote split. */
|
|
58
58
|
export interface WeightedVoteOption {
|
|
59
|
+
/** option defines the valid vote options, it must not contain duplicate vote options. */
|
|
59
60
|
option: VoteOption;
|
|
61
|
+
/** weight is the vote weight associated with the vote option. */
|
|
60
62
|
weight: string;
|
|
61
63
|
}
|
|
62
64
|
/**
|
|
@@ -64,14 +66,20 @@ export interface WeightedVoteOption {
|
|
|
64
66
|
* proposal.
|
|
65
67
|
*/
|
|
66
68
|
export interface Deposit {
|
|
69
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
67
70
|
proposalId: Long;
|
|
71
|
+
/** depositor defines the deposit addresses from the proposals. */
|
|
68
72
|
depositor: string;
|
|
73
|
+
/** amount to be deposited by depositor. */
|
|
69
74
|
amount: Coin[];
|
|
70
75
|
}
|
|
71
76
|
/** Proposal defines the core field members of a governance proposal. */
|
|
72
77
|
export interface Proposal {
|
|
78
|
+
/** id defines the unique id of the proposal. */
|
|
73
79
|
id: Long;
|
|
80
|
+
/** messages are the arbitrary messages to be executed if the proposal passes. */
|
|
74
81
|
messages: Any[];
|
|
82
|
+
/** status defines the proposal status. */
|
|
75
83
|
status: ProposalStatus;
|
|
76
84
|
/**
|
|
77
85
|
* final_tally_result is the final tally result of the proposal. When
|
|
@@ -79,19 +87,46 @@ export interface Proposal {
|
|
|
79
87
|
* proposal's voting period has ended.
|
|
80
88
|
*/
|
|
81
89
|
finalTallyResult?: TallyResult;
|
|
90
|
+
/** submit_time is the time of proposal submission. */
|
|
82
91
|
submitTime?: Date;
|
|
92
|
+
/** deposit_end_time is the end time for deposition. */
|
|
83
93
|
depositEndTime?: Date;
|
|
94
|
+
/** total_deposit is the total deposit on the proposal. */
|
|
84
95
|
totalDeposit: Coin[];
|
|
96
|
+
/** voting_start_time is the starting time to vote on a proposal. */
|
|
85
97
|
votingStartTime?: Date;
|
|
98
|
+
/** voting_end_time is the end time of voting on a proposal. */
|
|
86
99
|
votingEndTime?: Date;
|
|
87
100
|
/** metadata is any arbitrary metadata attached to the proposal. */
|
|
88
101
|
metadata: string;
|
|
102
|
+
/**
|
|
103
|
+
* title is the title of the proposal
|
|
104
|
+
*
|
|
105
|
+
* Since: cosmos-sdk 0.47
|
|
106
|
+
*/
|
|
107
|
+
title: string;
|
|
108
|
+
/**
|
|
109
|
+
* summary is a short summary of the proposal
|
|
110
|
+
*
|
|
111
|
+
* Since: cosmos-sdk 0.47
|
|
112
|
+
*/
|
|
113
|
+
summary: string;
|
|
114
|
+
/**
|
|
115
|
+
* Proposer is the address of the proposal sumbitter
|
|
116
|
+
*
|
|
117
|
+
* Since: cosmos-sdk 0.47
|
|
118
|
+
*/
|
|
119
|
+
proposer: string;
|
|
89
120
|
}
|
|
90
121
|
/** TallyResult defines a standard tally for a governance proposal. */
|
|
91
122
|
export interface TallyResult {
|
|
123
|
+
/** yes_count is the number of yes votes on a proposal. */
|
|
92
124
|
yesCount: string;
|
|
125
|
+
/** abstain_count is the number of abstain votes on a proposal. */
|
|
93
126
|
abstainCount: string;
|
|
127
|
+
/** no_count is the number of no votes on a proposal. */
|
|
94
128
|
noCount: string;
|
|
129
|
+
/** no_with_veto_count is the number of no with veto votes on a proposal. */
|
|
95
130
|
noWithVetoCount: string;
|
|
96
131
|
}
|
|
97
132
|
/**
|
|
@@ -99,8 +134,11 @@ export interface TallyResult {
|
|
|
99
134
|
* A Vote consists of a proposal ID, the voter, and the vote option.
|
|
100
135
|
*/
|
|
101
136
|
export interface Vote {
|
|
137
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
102
138
|
proposalId: Long;
|
|
139
|
+
/** voter is the voter address of the proposal. */
|
|
103
140
|
voter: string;
|
|
141
|
+
/** options is the weighted vote options. */
|
|
104
142
|
options: WeightedVoteOption[];
|
|
105
143
|
/** metadata is any arbitrary metadata to attached to the vote. */
|
|
106
144
|
metadata: string;
|
|
@@ -111,17 +149,45 @@ export interface DepositParams {
|
|
|
111
149
|
minDeposit: Coin[];
|
|
112
150
|
/**
|
|
113
151
|
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
|
114
|
-
*
|
|
152
|
+
* months.
|
|
115
153
|
*/
|
|
116
154
|
maxDepositPeriod?: Duration;
|
|
117
155
|
}
|
|
118
156
|
/** VotingParams defines the params for voting on governance proposals. */
|
|
119
157
|
export interface VotingParams {
|
|
120
|
-
/**
|
|
158
|
+
/** Duration of the voting period. */
|
|
121
159
|
votingPeriod?: Duration;
|
|
122
160
|
}
|
|
123
161
|
/** TallyParams defines the params for tallying votes on governance proposals. */
|
|
124
162
|
export interface TallyParams {
|
|
163
|
+
/**
|
|
164
|
+
* Minimum percentage of total stake needed to vote for a result to be
|
|
165
|
+
* considered valid.
|
|
166
|
+
*/
|
|
167
|
+
quorum: string;
|
|
168
|
+
/** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
|
|
169
|
+
threshold: string;
|
|
170
|
+
/**
|
|
171
|
+
* Minimum value of Veto votes to Total votes ratio for proposal to be
|
|
172
|
+
* vetoed. Default value: 1/3.
|
|
173
|
+
*/
|
|
174
|
+
vetoThreshold: string;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Params defines the parameters for the x/gov module.
|
|
178
|
+
*
|
|
179
|
+
* Since: cosmos-sdk 0.47
|
|
180
|
+
*/
|
|
181
|
+
export interface Params {
|
|
182
|
+
/** Minimum deposit for a proposal to enter voting period. */
|
|
183
|
+
minDeposit: Coin[];
|
|
184
|
+
/**
|
|
185
|
+
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
|
186
|
+
* months.
|
|
187
|
+
*/
|
|
188
|
+
maxDepositPeriod?: Duration;
|
|
189
|
+
/** Duration of the voting period. */
|
|
190
|
+
votingPeriod?: Duration;
|
|
125
191
|
/**
|
|
126
192
|
* Minimum percentage of total stake needed to vote for a result to be
|
|
127
193
|
* considered valid.
|
|
@@ -134,6 +200,14 @@ export interface TallyParams {
|
|
|
134
200
|
* vetoed. Default value: 1/3.
|
|
135
201
|
*/
|
|
136
202
|
vetoThreshold: string;
|
|
203
|
+
/** The ratio representing the proportion of the deposit value that must be paid at proposal submission. */
|
|
204
|
+
minInitialDepositRatio: string;
|
|
205
|
+
/** burn deposits if a proposal does not meet quorum */
|
|
206
|
+
burnVoteQuorum: boolean;
|
|
207
|
+
/** burn deposits if the proposal does not enter voting period */
|
|
208
|
+
burnProposalDepositPrevote: boolean;
|
|
209
|
+
/** burn deposits if quorum with vote type no_veto is met */
|
|
210
|
+
burnVoteVeto: boolean;
|
|
137
211
|
}
|
|
138
212
|
export declare const WeightedVoteOption: {
|
|
139
213
|
encode(message: WeightedVoteOption, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -191,6 +265,13 @@ export declare const TallyParams: {
|
|
|
191
265
|
toJSON(message: TallyParams): unknown;
|
|
192
266
|
fromPartial(object: DeepPartial<TallyParams>): TallyParams;
|
|
193
267
|
};
|
|
268
|
+
export declare const Params: {
|
|
269
|
+
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
|
270
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Params;
|
|
271
|
+
fromJSON(object: any): Params;
|
|
272
|
+
toJSON(message: Params): unknown;
|
|
273
|
+
fromPartial(object: DeepPartial<Params>): Params;
|
|
274
|
+
};
|
|
194
275
|
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
195
276
|
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
196
277
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -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.TallyParams = exports.VotingParams = exports.DepositParams = exports.Vote = exports.TallyResult = exports.Proposal = exports.Deposit = exports.WeightedVoteOption = exports.proposalStatusToJSON = exports.proposalStatusFromJSON = exports.ProposalStatus = exports.voteOptionToJSON = exports.voteOptionFromJSON = exports.VoteOption = exports.protobufPackage = void 0;
|
|
6
|
+
exports.Params = exports.TallyParams = exports.VotingParams = exports.DepositParams = exports.Vote = exports.TallyResult = exports.Proposal = exports.Deposit = exports.WeightedVoteOption = exports.proposalStatusToJSON = exports.proposalStatusFromJSON = exports.ProposalStatus = exports.voteOptionToJSON = exports.voteOptionFromJSON = exports.VoteOption = 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"));
|
|
@@ -282,7 +282,14 @@ exports.Deposit = {
|
|
|
282
282
|
return message;
|
|
283
283
|
},
|
|
284
284
|
};
|
|
285
|
-
const baseProposal = {
|
|
285
|
+
const baseProposal = {
|
|
286
|
+
id: long_1.default.UZERO,
|
|
287
|
+
status: 0,
|
|
288
|
+
metadata: "",
|
|
289
|
+
title: "",
|
|
290
|
+
summary: "",
|
|
291
|
+
proposer: "",
|
|
292
|
+
};
|
|
286
293
|
exports.Proposal = {
|
|
287
294
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
288
295
|
if (!message.id.isZero()) {
|
|
@@ -315,6 +322,15 @@ exports.Proposal = {
|
|
|
315
322
|
if (message.metadata !== "") {
|
|
316
323
|
writer.uint32(82).string(message.metadata);
|
|
317
324
|
}
|
|
325
|
+
if (message.title !== "") {
|
|
326
|
+
writer.uint32(90).string(message.title);
|
|
327
|
+
}
|
|
328
|
+
if (message.summary !== "") {
|
|
329
|
+
writer.uint32(98).string(message.summary);
|
|
330
|
+
}
|
|
331
|
+
if (message.proposer !== "") {
|
|
332
|
+
writer.uint32(106).string(message.proposer);
|
|
333
|
+
}
|
|
318
334
|
return writer;
|
|
319
335
|
},
|
|
320
336
|
decode(input, length) {
|
|
@@ -356,6 +372,15 @@ exports.Proposal = {
|
|
|
356
372
|
case 10:
|
|
357
373
|
message.metadata = reader.string();
|
|
358
374
|
break;
|
|
375
|
+
case 11:
|
|
376
|
+
message.title = reader.string();
|
|
377
|
+
break;
|
|
378
|
+
case 12:
|
|
379
|
+
message.summary = reader.string();
|
|
380
|
+
break;
|
|
381
|
+
case 13:
|
|
382
|
+
message.proposer = reader.string();
|
|
383
|
+
break;
|
|
359
384
|
default:
|
|
360
385
|
reader.skipType(tag & 7);
|
|
361
386
|
break;
|
|
@@ -400,6 +425,18 @@ exports.Proposal = {
|
|
|
400
425
|
object.metadata !== undefined && object.metadata !== null
|
|
401
426
|
? String(object.metadata)
|
|
402
427
|
: "";
|
|
428
|
+
message.title =
|
|
429
|
+
object.title !== undefined && object.title !== null
|
|
430
|
+
? String(object.title)
|
|
431
|
+
: "";
|
|
432
|
+
message.summary =
|
|
433
|
+
object.summary !== undefined && object.summary !== null
|
|
434
|
+
? String(object.summary)
|
|
435
|
+
: "";
|
|
436
|
+
message.proposer =
|
|
437
|
+
object.proposer !== undefined && object.proposer !== null
|
|
438
|
+
? String(object.proposer)
|
|
439
|
+
: "";
|
|
403
440
|
return message;
|
|
404
441
|
},
|
|
405
442
|
toJSON(message) {
|
|
@@ -433,10 +470,13 @@ exports.Proposal = {
|
|
|
433
470
|
message.votingEndTime !== undefined &&
|
|
434
471
|
(obj.votingEndTime = message.votingEndTime.toISOString());
|
|
435
472
|
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
473
|
+
message.title !== undefined && (obj.title = message.title);
|
|
474
|
+
message.summary !== undefined && (obj.summary = message.summary);
|
|
475
|
+
message.proposer !== undefined && (obj.proposer = message.proposer);
|
|
436
476
|
return obj;
|
|
437
477
|
},
|
|
438
478
|
fromPartial(object) {
|
|
439
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
479
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
440
480
|
const message = Object.assign({}, baseProposal);
|
|
441
481
|
message.id =
|
|
442
482
|
object.id !== undefined && object.id !== null
|
|
@@ -454,6 +494,9 @@ exports.Proposal = {
|
|
|
454
494
|
message.votingStartTime = (_f = object.votingStartTime) !== null && _f !== void 0 ? _f : undefined;
|
|
455
495
|
message.votingEndTime = (_g = object.votingEndTime) !== null && _g !== void 0 ? _g : undefined;
|
|
456
496
|
message.metadata = (_h = object.metadata) !== null && _h !== void 0 ? _h : "";
|
|
497
|
+
message.title = (_j = object.title) !== null && _j !== void 0 ? _j : "";
|
|
498
|
+
message.summary = (_k = object.summary) !== null && _k !== void 0 ? _k : "";
|
|
499
|
+
message.proposer = (_l = object.proposer) !== null && _l !== void 0 ? _l : "";
|
|
457
500
|
return message;
|
|
458
501
|
},
|
|
459
502
|
};
|
|
@@ -825,6 +868,191 @@ exports.TallyParams = {
|
|
|
825
868
|
return message;
|
|
826
869
|
},
|
|
827
870
|
};
|
|
871
|
+
const baseParams = {
|
|
872
|
+
quorum: "",
|
|
873
|
+
threshold: "",
|
|
874
|
+
vetoThreshold: "",
|
|
875
|
+
minInitialDepositRatio: "",
|
|
876
|
+
burnVoteQuorum: false,
|
|
877
|
+
burnProposalDepositPrevote: false,
|
|
878
|
+
burnVoteVeto: false,
|
|
879
|
+
};
|
|
880
|
+
exports.Params = {
|
|
881
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
882
|
+
for (const v of message.minDeposit) {
|
|
883
|
+
coin_1.Coin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
884
|
+
}
|
|
885
|
+
if (message.maxDepositPeriod !== undefined) {
|
|
886
|
+
duration_1.Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim();
|
|
887
|
+
}
|
|
888
|
+
if (message.votingPeriod !== undefined) {
|
|
889
|
+
duration_1.Duration.encode(message.votingPeriod, writer.uint32(26).fork()).ldelim();
|
|
890
|
+
}
|
|
891
|
+
if (message.quorum !== "") {
|
|
892
|
+
writer.uint32(34).string(message.quorum);
|
|
893
|
+
}
|
|
894
|
+
if (message.threshold !== "") {
|
|
895
|
+
writer.uint32(42).string(message.threshold);
|
|
896
|
+
}
|
|
897
|
+
if (message.vetoThreshold !== "") {
|
|
898
|
+
writer.uint32(50).string(message.vetoThreshold);
|
|
899
|
+
}
|
|
900
|
+
if (message.minInitialDepositRatio !== "") {
|
|
901
|
+
writer.uint32(58).string(message.minInitialDepositRatio);
|
|
902
|
+
}
|
|
903
|
+
if (message.burnVoteQuorum === true) {
|
|
904
|
+
writer.uint32(104).bool(message.burnVoteQuorum);
|
|
905
|
+
}
|
|
906
|
+
if (message.burnProposalDepositPrevote === true) {
|
|
907
|
+
writer.uint32(112).bool(message.burnProposalDepositPrevote);
|
|
908
|
+
}
|
|
909
|
+
if (message.burnVoteVeto === true) {
|
|
910
|
+
writer.uint32(120).bool(message.burnVoteVeto);
|
|
911
|
+
}
|
|
912
|
+
return writer;
|
|
913
|
+
},
|
|
914
|
+
decode(input, length) {
|
|
915
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
916
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
917
|
+
const message = Object.assign({}, baseParams);
|
|
918
|
+
message.minDeposit = [];
|
|
919
|
+
while (reader.pos < end) {
|
|
920
|
+
const tag = reader.uint32();
|
|
921
|
+
switch (tag >>> 3) {
|
|
922
|
+
case 1:
|
|
923
|
+
message.minDeposit.push(coin_1.Coin.decode(reader, reader.uint32()));
|
|
924
|
+
break;
|
|
925
|
+
case 2:
|
|
926
|
+
message.maxDepositPeriod = duration_1.Duration.decode(reader, reader.uint32());
|
|
927
|
+
break;
|
|
928
|
+
case 3:
|
|
929
|
+
message.votingPeriod = duration_1.Duration.decode(reader, reader.uint32());
|
|
930
|
+
break;
|
|
931
|
+
case 4:
|
|
932
|
+
message.quorum = reader.string();
|
|
933
|
+
break;
|
|
934
|
+
case 5:
|
|
935
|
+
message.threshold = reader.string();
|
|
936
|
+
break;
|
|
937
|
+
case 6:
|
|
938
|
+
message.vetoThreshold = reader.string();
|
|
939
|
+
break;
|
|
940
|
+
case 7:
|
|
941
|
+
message.minInitialDepositRatio = reader.string();
|
|
942
|
+
break;
|
|
943
|
+
case 13:
|
|
944
|
+
message.burnVoteQuorum = reader.bool();
|
|
945
|
+
break;
|
|
946
|
+
case 14:
|
|
947
|
+
message.burnProposalDepositPrevote = reader.bool();
|
|
948
|
+
break;
|
|
949
|
+
case 15:
|
|
950
|
+
message.burnVoteVeto = reader.bool();
|
|
951
|
+
break;
|
|
952
|
+
default:
|
|
953
|
+
reader.skipType(tag & 7);
|
|
954
|
+
break;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
return message;
|
|
958
|
+
},
|
|
959
|
+
fromJSON(object) {
|
|
960
|
+
var _a;
|
|
961
|
+
const message = Object.assign({}, baseParams);
|
|
962
|
+
message.minDeposit = ((_a = object.minDeposit) !== null && _a !== void 0 ? _a : []).map((e) => coin_1.Coin.fromJSON(e));
|
|
963
|
+
message.maxDepositPeriod =
|
|
964
|
+
object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null
|
|
965
|
+
? duration_1.Duration.fromJSON(object.maxDepositPeriod)
|
|
966
|
+
: undefined;
|
|
967
|
+
message.votingPeriod =
|
|
968
|
+
object.votingPeriod !== undefined && object.votingPeriod !== null
|
|
969
|
+
? duration_1.Duration.fromJSON(object.votingPeriod)
|
|
970
|
+
: undefined;
|
|
971
|
+
message.quorum =
|
|
972
|
+
object.quorum !== undefined && object.quorum !== null
|
|
973
|
+
? String(object.quorum)
|
|
974
|
+
: "";
|
|
975
|
+
message.threshold =
|
|
976
|
+
object.threshold !== undefined && object.threshold !== null
|
|
977
|
+
? String(object.threshold)
|
|
978
|
+
: "";
|
|
979
|
+
message.vetoThreshold =
|
|
980
|
+
object.vetoThreshold !== undefined && object.vetoThreshold !== null
|
|
981
|
+
? String(object.vetoThreshold)
|
|
982
|
+
: "";
|
|
983
|
+
message.minInitialDepositRatio =
|
|
984
|
+
object.minInitialDepositRatio !== undefined &&
|
|
985
|
+
object.minInitialDepositRatio !== null
|
|
986
|
+
? String(object.minInitialDepositRatio)
|
|
987
|
+
: "";
|
|
988
|
+
message.burnVoteQuorum =
|
|
989
|
+
object.burnVoteQuorum !== undefined && object.burnVoteQuorum !== null
|
|
990
|
+
? Boolean(object.burnVoteQuorum)
|
|
991
|
+
: false;
|
|
992
|
+
message.burnProposalDepositPrevote =
|
|
993
|
+
object.burnProposalDepositPrevote !== undefined &&
|
|
994
|
+
object.burnProposalDepositPrevote !== null
|
|
995
|
+
? Boolean(object.burnProposalDepositPrevote)
|
|
996
|
+
: false;
|
|
997
|
+
message.burnVoteVeto =
|
|
998
|
+
object.burnVoteVeto !== undefined && object.burnVoteVeto !== null
|
|
999
|
+
? Boolean(object.burnVoteVeto)
|
|
1000
|
+
: false;
|
|
1001
|
+
return message;
|
|
1002
|
+
},
|
|
1003
|
+
toJSON(message) {
|
|
1004
|
+
const obj = {};
|
|
1005
|
+
if (message.minDeposit) {
|
|
1006
|
+
obj.minDeposit = message.minDeposit.map((e) => e ? coin_1.Coin.toJSON(e) : undefined);
|
|
1007
|
+
}
|
|
1008
|
+
else {
|
|
1009
|
+
obj.minDeposit = [];
|
|
1010
|
+
}
|
|
1011
|
+
message.maxDepositPeriod !== undefined &&
|
|
1012
|
+
(obj.maxDepositPeriod = message.maxDepositPeriod
|
|
1013
|
+
? duration_1.Duration.toJSON(message.maxDepositPeriod)
|
|
1014
|
+
: undefined);
|
|
1015
|
+
message.votingPeriod !== undefined &&
|
|
1016
|
+
(obj.votingPeriod = message.votingPeriod
|
|
1017
|
+
? duration_1.Duration.toJSON(message.votingPeriod)
|
|
1018
|
+
: undefined);
|
|
1019
|
+
message.quorum !== undefined && (obj.quorum = message.quorum);
|
|
1020
|
+
message.threshold !== undefined && (obj.threshold = message.threshold);
|
|
1021
|
+
message.vetoThreshold !== undefined &&
|
|
1022
|
+
(obj.vetoThreshold = message.vetoThreshold);
|
|
1023
|
+
message.minInitialDepositRatio !== undefined &&
|
|
1024
|
+
(obj.minInitialDepositRatio = message.minInitialDepositRatio);
|
|
1025
|
+
message.burnVoteQuorum !== undefined &&
|
|
1026
|
+
(obj.burnVoteQuorum = message.burnVoteQuorum);
|
|
1027
|
+
message.burnProposalDepositPrevote !== undefined &&
|
|
1028
|
+
(obj.burnProposalDepositPrevote = message.burnProposalDepositPrevote);
|
|
1029
|
+
message.burnVoteVeto !== undefined &&
|
|
1030
|
+
(obj.burnVoteVeto = message.burnVoteVeto);
|
|
1031
|
+
return obj;
|
|
1032
|
+
},
|
|
1033
|
+
fromPartial(object) {
|
|
1034
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1035
|
+
const message = Object.assign({}, baseParams);
|
|
1036
|
+
message.minDeposit = ((_a = object.minDeposit) !== null && _a !== void 0 ? _a : []).map((e) => coin_1.Coin.fromPartial(e));
|
|
1037
|
+
message.maxDepositPeriod =
|
|
1038
|
+
object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null
|
|
1039
|
+
? duration_1.Duration.fromPartial(object.maxDepositPeriod)
|
|
1040
|
+
: undefined;
|
|
1041
|
+
message.votingPeriod =
|
|
1042
|
+
object.votingPeriod !== undefined && object.votingPeriod !== null
|
|
1043
|
+
? duration_1.Duration.fromPartial(object.votingPeriod)
|
|
1044
|
+
: undefined;
|
|
1045
|
+
message.quorum = (_b = object.quorum) !== null && _b !== void 0 ? _b : "";
|
|
1046
|
+
message.threshold = (_c = object.threshold) !== null && _c !== void 0 ? _c : "";
|
|
1047
|
+
message.vetoThreshold = (_d = object.vetoThreshold) !== null && _d !== void 0 ? _d : "";
|
|
1048
|
+
message.minInitialDepositRatio = (_e = object.minInitialDepositRatio) !== null && _e !== void 0 ? _e : "";
|
|
1049
|
+
message.burnVoteQuorum = (_f = object.burnVoteQuorum) !== null && _f !== void 0 ? _f : false;
|
|
1050
|
+
message.burnProposalDepositPrevote =
|
|
1051
|
+
(_g = object.burnProposalDepositPrevote) !== null && _g !== void 0 ? _g : false;
|
|
1052
|
+
message.burnVoteVeto = (_h = object.burnVoteVeto) !== null && _h !== void 0 ? _h : false;
|
|
1053
|
+
return message;
|
|
1054
|
+
},
|
|
1055
|
+
};
|
|
828
1056
|
function toTimestamp(date) {
|
|
829
1057
|
const seconds = numberToLong(date.getTime() / 1000);
|
|
830
1058
|
const nanos = (date.getTime() % 1000) * 1000000;
|