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
package/lib/codec/cdp/genesis.js
DELETED
|
@@ -1,825 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.GenesisState_AccountToEModeCategoryEntry = exports.GenesisState_AccountToRewardDebtEntry = exports.GenesisState_AccountToStablecoinInitialCumulativeInterestMultiplierEntry = exports.GenesisState_AccountToPrincipalStablecoinDebtEntry = exports.GenesisState_AccountToInitialCumulativeInterestMultiplierEntry = exports.GenesisState_AccountToPrincipalDebtEntry = exports.GenesisState_AccountToCollateralizedEntry = exports.GenesisState = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const long_1 = __importDefault(require("long"));
|
|
9
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const params_1 = require("./params");
|
|
11
|
-
const stablecoin_debt_info_1 = require("./stablecoin_debt_info");
|
|
12
|
-
const stablecoin_interest_info_1 = require("./stablecoin_interest_info");
|
|
13
|
-
const rate_strategy_params_1 = require("./rate_strategy_params");
|
|
14
|
-
const asset_params_1 = require("./asset_params");
|
|
15
|
-
const debt_info_1 = require("./debt_info");
|
|
16
|
-
const reward_scheme_1 = require("./reward_scheme");
|
|
17
|
-
const e_mode_category_1 = require("./e_mode_category");
|
|
18
|
-
exports.protobufPackage = "Switcheo.carbon.cdp";
|
|
19
|
-
const baseGenesisState = { sequenceNumber: long_1.default.UZERO };
|
|
20
|
-
exports.GenesisState = {
|
|
21
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
22
|
-
if (message.params !== undefined) {
|
|
23
|
-
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
24
|
-
}
|
|
25
|
-
for (const v of message.rateStrategies) {
|
|
26
|
-
rate_strategy_params_1.RateStrategyParams.encode(v, writer.uint32(18).fork()).ldelim();
|
|
27
|
-
}
|
|
28
|
-
for (const v of message.assets) {
|
|
29
|
-
asset_params_1.AssetParams.encode(v, writer.uint32(26).fork()).ldelim();
|
|
30
|
-
}
|
|
31
|
-
for (const v of message.debtInfos) {
|
|
32
|
-
debt_info_1.DebtInfo.encode(v, writer.uint32(34).fork()).ldelim();
|
|
33
|
-
}
|
|
34
|
-
for (const v of message.rewardSchemes) {
|
|
35
|
-
reward_scheme_1.RewardScheme.encode(v, writer.uint32(42).fork()).ldelim();
|
|
36
|
-
}
|
|
37
|
-
if (!message.sequenceNumber.isZero()) {
|
|
38
|
-
writer.uint32(48).uint64(message.sequenceNumber);
|
|
39
|
-
}
|
|
40
|
-
Object.entries(message.accountToCollateralized).forEach(([key, value]) => {
|
|
41
|
-
exports.GenesisState_AccountToCollateralizedEntry.encode({ key: key, value }, writer.uint32(58).fork()).ldelim();
|
|
42
|
-
});
|
|
43
|
-
Object.entries(message.accountToPrincipalDebt).forEach(([key, value]) => {
|
|
44
|
-
exports.GenesisState_AccountToPrincipalDebtEntry.encode({ key: key, value }, writer.uint32(66).fork()).ldelim();
|
|
45
|
-
});
|
|
46
|
-
Object.entries(message.accountToInitialCumulativeInterestMultiplier).forEach(([key, value]) => {
|
|
47
|
-
exports.GenesisState_AccountToInitialCumulativeInterestMultiplierEntry.encode({ key: key, value }, writer.uint32(74).fork()).ldelim();
|
|
48
|
-
});
|
|
49
|
-
if (message.stablecoinDebtInfo !== undefined) {
|
|
50
|
-
stablecoin_debt_info_1.StablecoinDebtInfo.encode(message.stablecoinDebtInfo, writer.uint32(82).fork()).ldelim();
|
|
51
|
-
}
|
|
52
|
-
Object.entries(message.accountToPrincipalStablecoinDebt).forEach(([key, value]) => {
|
|
53
|
-
exports.GenesisState_AccountToPrincipalStablecoinDebtEntry.encode({ key: key, value }, writer.uint32(90).fork()).ldelim();
|
|
54
|
-
});
|
|
55
|
-
Object.entries(message.accountToStablecoinInitialCumulativeInterestMultiplier).forEach(([key, value]) => {
|
|
56
|
-
exports.GenesisState_AccountToStablecoinInitialCumulativeInterestMultiplierEntry.encode({ key: key, value }, writer.uint32(98).fork()).ldelim();
|
|
57
|
-
});
|
|
58
|
-
Object.entries(message.accountToRewardDebt).forEach(([key, value]) => {
|
|
59
|
-
exports.GenesisState_AccountToRewardDebtEntry.encode({ key: key, value }, writer.uint32(106).fork()).ldelim();
|
|
60
|
-
});
|
|
61
|
-
if (message.stablecoinInterestInfo !== undefined) {
|
|
62
|
-
stablecoin_interest_info_1.StablecoinInterestInfo.encode(message.stablecoinInterestInfo, writer.uint32(114).fork()).ldelim();
|
|
63
|
-
}
|
|
64
|
-
for (const v of message.eModeCategories) {
|
|
65
|
-
e_mode_category_1.EModeCategory.encode(v, writer.uint32(122).fork()).ldelim();
|
|
66
|
-
}
|
|
67
|
-
Object.entries(message.accountToEModeCategory).forEach(([key, value]) => {
|
|
68
|
-
exports.GenesisState_AccountToEModeCategoryEntry.encode({ key: key, value }, writer.uint32(130).fork()).ldelim();
|
|
69
|
-
});
|
|
70
|
-
return writer;
|
|
71
|
-
},
|
|
72
|
-
decode(input, length) {
|
|
73
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
74
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
75
|
-
const message = Object.assign({}, baseGenesisState);
|
|
76
|
-
message.rateStrategies = [];
|
|
77
|
-
message.assets = [];
|
|
78
|
-
message.debtInfos = [];
|
|
79
|
-
message.rewardSchemes = [];
|
|
80
|
-
message.accountToCollateralized = {};
|
|
81
|
-
message.accountToPrincipalDebt = {};
|
|
82
|
-
message.accountToInitialCumulativeInterestMultiplier = {};
|
|
83
|
-
message.accountToPrincipalStablecoinDebt = {};
|
|
84
|
-
message.accountToStablecoinInitialCumulativeInterestMultiplier = {};
|
|
85
|
-
message.accountToRewardDebt = {};
|
|
86
|
-
message.eModeCategories = [];
|
|
87
|
-
message.accountToEModeCategory = {};
|
|
88
|
-
while (reader.pos < end) {
|
|
89
|
-
const tag = reader.uint32();
|
|
90
|
-
switch (tag >>> 3) {
|
|
91
|
-
case 1:
|
|
92
|
-
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
93
|
-
break;
|
|
94
|
-
case 2:
|
|
95
|
-
message.rateStrategies.push(rate_strategy_params_1.RateStrategyParams.decode(reader, reader.uint32()));
|
|
96
|
-
break;
|
|
97
|
-
case 3:
|
|
98
|
-
message.assets.push(asset_params_1.AssetParams.decode(reader, reader.uint32()));
|
|
99
|
-
break;
|
|
100
|
-
case 4:
|
|
101
|
-
message.debtInfos.push(debt_info_1.DebtInfo.decode(reader, reader.uint32()));
|
|
102
|
-
break;
|
|
103
|
-
case 5:
|
|
104
|
-
message.rewardSchemes.push(reward_scheme_1.RewardScheme.decode(reader, reader.uint32()));
|
|
105
|
-
break;
|
|
106
|
-
case 6:
|
|
107
|
-
message.sequenceNumber = reader.uint64();
|
|
108
|
-
break;
|
|
109
|
-
case 7:
|
|
110
|
-
const entry7 = exports.GenesisState_AccountToCollateralizedEntry.decode(reader, reader.uint32());
|
|
111
|
-
if (entry7.value !== undefined) {
|
|
112
|
-
message.accountToCollateralized[entry7.key] = entry7.value;
|
|
113
|
-
}
|
|
114
|
-
break;
|
|
115
|
-
case 8:
|
|
116
|
-
const entry8 = exports.GenesisState_AccountToPrincipalDebtEntry.decode(reader, reader.uint32());
|
|
117
|
-
if (entry8.value !== undefined) {
|
|
118
|
-
message.accountToPrincipalDebt[entry8.key] = entry8.value;
|
|
119
|
-
}
|
|
120
|
-
break;
|
|
121
|
-
case 9:
|
|
122
|
-
const entry9 = exports.GenesisState_AccountToInitialCumulativeInterestMultiplierEntry.decode(reader, reader.uint32());
|
|
123
|
-
if (entry9.value !== undefined) {
|
|
124
|
-
message.accountToInitialCumulativeInterestMultiplier[entry9.key] =
|
|
125
|
-
entry9.value;
|
|
126
|
-
}
|
|
127
|
-
break;
|
|
128
|
-
case 10:
|
|
129
|
-
message.stablecoinDebtInfo = stablecoin_debt_info_1.StablecoinDebtInfo.decode(reader, reader.uint32());
|
|
130
|
-
break;
|
|
131
|
-
case 11:
|
|
132
|
-
const entry11 = exports.GenesisState_AccountToPrincipalStablecoinDebtEntry.decode(reader, reader.uint32());
|
|
133
|
-
if (entry11.value !== undefined) {
|
|
134
|
-
message.accountToPrincipalStablecoinDebt[entry11.key] =
|
|
135
|
-
entry11.value;
|
|
136
|
-
}
|
|
137
|
-
break;
|
|
138
|
-
case 12:
|
|
139
|
-
const entry12 = exports.GenesisState_AccountToStablecoinInitialCumulativeInterestMultiplierEntry.decode(reader, reader.uint32());
|
|
140
|
-
if (entry12.value !== undefined) {
|
|
141
|
-
message.accountToStablecoinInitialCumulativeInterestMultiplier[entry12.key] = entry12.value;
|
|
142
|
-
}
|
|
143
|
-
break;
|
|
144
|
-
case 13:
|
|
145
|
-
const entry13 = exports.GenesisState_AccountToRewardDebtEntry.decode(reader, reader.uint32());
|
|
146
|
-
if (entry13.value !== undefined) {
|
|
147
|
-
message.accountToRewardDebt[entry13.key] = entry13.value;
|
|
148
|
-
}
|
|
149
|
-
break;
|
|
150
|
-
case 14:
|
|
151
|
-
message.stablecoinInterestInfo = stablecoin_interest_info_1.StablecoinInterestInfo.decode(reader, reader.uint32());
|
|
152
|
-
break;
|
|
153
|
-
case 15:
|
|
154
|
-
message.eModeCategories.push(e_mode_category_1.EModeCategory.decode(reader, reader.uint32()));
|
|
155
|
-
break;
|
|
156
|
-
case 16:
|
|
157
|
-
const entry16 = exports.GenesisState_AccountToEModeCategoryEntry.decode(reader, reader.uint32());
|
|
158
|
-
if (entry16.value !== undefined) {
|
|
159
|
-
message.accountToEModeCategory[entry16.key] = entry16.value;
|
|
160
|
-
}
|
|
161
|
-
break;
|
|
162
|
-
default:
|
|
163
|
-
reader.skipType(tag & 7);
|
|
164
|
-
break;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
return message;
|
|
168
|
-
},
|
|
169
|
-
fromJSON(object) {
|
|
170
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
171
|
-
const message = Object.assign({}, baseGenesisState);
|
|
172
|
-
message.params =
|
|
173
|
-
object.params !== undefined && object.params !== null
|
|
174
|
-
? params_1.Params.fromJSON(object.params)
|
|
175
|
-
: undefined;
|
|
176
|
-
message.rateStrategies = ((_a = object.rateStrategies) !== null && _a !== void 0 ? _a : []).map((e) => rate_strategy_params_1.RateStrategyParams.fromJSON(e));
|
|
177
|
-
message.assets = ((_b = object.assets) !== null && _b !== void 0 ? _b : []).map((e) => asset_params_1.AssetParams.fromJSON(e));
|
|
178
|
-
message.debtInfos = ((_c = object.debtInfos) !== null && _c !== void 0 ? _c : []).map((e) => debt_info_1.DebtInfo.fromJSON(e));
|
|
179
|
-
message.rewardSchemes = ((_d = object.rewardSchemes) !== null && _d !== void 0 ? _d : []).map((e) => reward_scheme_1.RewardScheme.fromJSON(e));
|
|
180
|
-
message.sequenceNumber =
|
|
181
|
-
object.sequenceNumber !== undefined && object.sequenceNumber !== null
|
|
182
|
-
? long_1.default.fromString(object.sequenceNumber)
|
|
183
|
-
: long_1.default.UZERO;
|
|
184
|
-
message.accountToCollateralized = Object.entries((_e = object.accountToCollateralized) !== null && _e !== void 0 ? _e : {}).reduce((acc, [key, value]) => {
|
|
185
|
-
acc[key] = bytesFromBase64(value);
|
|
186
|
-
return acc;
|
|
187
|
-
}, {});
|
|
188
|
-
message.accountToPrincipalDebt = Object.entries((_f = object.accountToPrincipalDebt) !== null && _f !== void 0 ? _f : {}).reduce((acc, [key, value]) => {
|
|
189
|
-
acc[key] = bytesFromBase64(value);
|
|
190
|
-
return acc;
|
|
191
|
-
}, {});
|
|
192
|
-
message.accountToInitialCumulativeInterestMultiplier = Object.entries((_g = object.accountToInitialCumulativeInterestMultiplier) !== null && _g !== void 0 ? _g : {}).reduce((acc, [key, value]) => {
|
|
193
|
-
acc[key] = bytesFromBase64(value);
|
|
194
|
-
return acc;
|
|
195
|
-
}, {});
|
|
196
|
-
message.stablecoinDebtInfo =
|
|
197
|
-
object.stablecoinDebtInfo !== undefined &&
|
|
198
|
-
object.stablecoinDebtInfo !== null
|
|
199
|
-
? stablecoin_debt_info_1.StablecoinDebtInfo.fromJSON(object.stablecoinDebtInfo)
|
|
200
|
-
: undefined;
|
|
201
|
-
message.accountToPrincipalStablecoinDebt = Object.entries((_h = object.accountToPrincipalStablecoinDebt) !== null && _h !== void 0 ? _h : {}).reduce((acc, [key, value]) => {
|
|
202
|
-
acc[key] = bytesFromBase64(value);
|
|
203
|
-
return acc;
|
|
204
|
-
}, {});
|
|
205
|
-
message.accountToStablecoinInitialCumulativeInterestMultiplier =
|
|
206
|
-
Object.entries((_j = object.accountToStablecoinInitialCumulativeInterestMultiplier) !== null && _j !== void 0 ? _j : {}).reduce((acc, [key, value]) => {
|
|
207
|
-
acc[key] = bytesFromBase64(value);
|
|
208
|
-
return acc;
|
|
209
|
-
}, {});
|
|
210
|
-
message.accountToRewardDebt = Object.entries((_k = object.accountToRewardDebt) !== null && _k !== void 0 ? _k : {}).reduce((acc, [key, value]) => {
|
|
211
|
-
acc[key] = bytesFromBase64(value);
|
|
212
|
-
return acc;
|
|
213
|
-
}, {});
|
|
214
|
-
message.stablecoinInterestInfo =
|
|
215
|
-
object.stablecoinInterestInfo !== undefined &&
|
|
216
|
-
object.stablecoinInterestInfo !== null
|
|
217
|
-
? stablecoin_interest_info_1.StablecoinInterestInfo.fromJSON(object.stablecoinInterestInfo)
|
|
218
|
-
: undefined;
|
|
219
|
-
message.eModeCategories = ((_l = object.eModeCategories) !== null && _l !== void 0 ? _l : []).map((e) => e_mode_category_1.EModeCategory.fromJSON(e));
|
|
220
|
-
message.accountToEModeCategory = Object.entries((_m = object.accountToEModeCategory) !== null && _m !== void 0 ? _m : {}).reduce((acc, [key, value]) => {
|
|
221
|
-
acc[key] = String(value);
|
|
222
|
-
return acc;
|
|
223
|
-
}, {});
|
|
224
|
-
return message;
|
|
225
|
-
},
|
|
226
|
-
toJSON(message) {
|
|
227
|
-
const obj = {};
|
|
228
|
-
message.params !== undefined &&
|
|
229
|
-
(obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
|
|
230
|
-
if (message.rateStrategies) {
|
|
231
|
-
obj.rateStrategies = message.rateStrategies.map((e) => e ? rate_strategy_params_1.RateStrategyParams.toJSON(e) : undefined);
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
obj.rateStrategies = [];
|
|
235
|
-
}
|
|
236
|
-
if (message.assets) {
|
|
237
|
-
obj.assets = message.assets.map((e) => e ? asset_params_1.AssetParams.toJSON(e) : undefined);
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
obj.assets = [];
|
|
241
|
-
}
|
|
242
|
-
if (message.debtInfos) {
|
|
243
|
-
obj.debtInfos = message.debtInfos.map((e) => e ? debt_info_1.DebtInfo.toJSON(e) : undefined);
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
obj.debtInfos = [];
|
|
247
|
-
}
|
|
248
|
-
if (message.rewardSchemes) {
|
|
249
|
-
obj.rewardSchemes = message.rewardSchemes.map((e) => e ? reward_scheme_1.RewardScheme.toJSON(e) : undefined);
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
obj.rewardSchemes = [];
|
|
253
|
-
}
|
|
254
|
-
message.sequenceNumber !== undefined &&
|
|
255
|
-
(obj.sequenceNumber = (message.sequenceNumber || long_1.default.UZERO).toString());
|
|
256
|
-
obj.accountToCollateralized = {};
|
|
257
|
-
if (message.accountToCollateralized) {
|
|
258
|
-
Object.entries(message.accountToCollateralized).forEach(([k, v]) => {
|
|
259
|
-
obj.accountToCollateralized[k] = base64FromBytes(v);
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
obj.accountToPrincipalDebt = {};
|
|
263
|
-
if (message.accountToPrincipalDebt) {
|
|
264
|
-
Object.entries(message.accountToPrincipalDebt).forEach(([k, v]) => {
|
|
265
|
-
obj.accountToPrincipalDebt[k] = base64FromBytes(v);
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
obj.accountToInitialCumulativeInterestMultiplier = {};
|
|
269
|
-
if (message.accountToInitialCumulativeInterestMultiplier) {
|
|
270
|
-
Object.entries(message.accountToInitialCumulativeInterestMultiplier).forEach(([k, v]) => {
|
|
271
|
-
obj.accountToInitialCumulativeInterestMultiplier[k] =
|
|
272
|
-
base64FromBytes(v);
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
message.stablecoinDebtInfo !== undefined &&
|
|
276
|
-
(obj.stablecoinDebtInfo = message.stablecoinDebtInfo
|
|
277
|
-
? stablecoin_debt_info_1.StablecoinDebtInfo.toJSON(message.stablecoinDebtInfo)
|
|
278
|
-
: undefined);
|
|
279
|
-
obj.accountToPrincipalStablecoinDebt = {};
|
|
280
|
-
if (message.accountToPrincipalStablecoinDebt) {
|
|
281
|
-
Object.entries(message.accountToPrincipalStablecoinDebt).forEach(([k, v]) => {
|
|
282
|
-
obj.accountToPrincipalStablecoinDebt[k] = base64FromBytes(v);
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
obj.accountToStablecoinInitialCumulativeInterestMultiplier = {};
|
|
286
|
-
if (message.accountToStablecoinInitialCumulativeInterestMultiplier) {
|
|
287
|
-
Object.entries(message.accountToStablecoinInitialCumulativeInterestMultiplier).forEach(([k, v]) => {
|
|
288
|
-
obj.accountToStablecoinInitialCumulativeInterestMultiplier[k] =
|
|
289
|
-
base64FromBytes(v);
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
obj.accountToRewardDebt = {};
|
|
293
|
-
if (message.accountToRewardDebt) {
|
|
294
|
-
Object.entries(message.accountToRewardDebt).forEach(([k, v]) => {
|
|
295
|
-
obj.accountToRewardDebt[k] = base64FromBytes(v);
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
message.stablecoinInterestInfo !== undefined &&
|
|
299
|
-
(obj.stablecoinInterestInfo = message.stablecoinInterestInfo
|
|
300
|
-
? stablecoin_interest_info_1.StablecoinInterestInfo.toJSON(message.stablecoinInterestInfo)
|
|
301
|
-
: undefined);
|
|
302
|
-
if (message.eModeCategories) {
|
|
303
|
-
obj.eModeCategories = message.eModeCategories.map((e) => e ? e_mode_category_1.EModeCategory.toJSON(e) : undefined);
|
|
304
|
-
}
|
|
305
|
-
else {
|
|
306
|
-
obj.eModeCategories = [];
|
|
307
|
-
}
|
|
308
|
-
obj.accountToEModeCategory = {};
|
|
309
|
-
if (message.accountToEModeCategory) {
|
|
310
|
-
Object.entries(message.accountToEModeCategory).forEach(([k, v]) => {
|
|
311
|
-
obj.accountToEModeCategory[k] = v;
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
return obj;
|
|
315
|
-
},
|
|
316
|
-
fromPartial(object) {
|
|
317
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
318
|
-
const message = Object.assign({}, baseGenesisState);
|
|
319
|
-
message.params =
|
|
320
|
-
object.params !== undefined && object.params !== null
|
|
321
|
-
? params_1.Params.fromPartial(object.params)
|
|
322
|
-
: undefined;
|
|
323
|
-
message.rateStrategies = ((_a = object.rateStrategies) !== null && _a !== void 0 ? _a : []).map((e) => rate_strategy_params_1.RateStrategyParams.fromPartial(e));
|
|
324
|
-
message.assets = ((_b = object.assets) !== null && _b !== void 0 ? _b : []).map((e) => asset_params_1.AssetParams.fromPartial(e));
|
|
325
|
-
message.debtInfos = ((_c = object.debtInfos) !== null && _c !== void 0 ? _c : []).map((e) => debt_info_1.DebtInfo.fromPartial(e));
|
|
326
|
-
message.rewardSchemes = ((_d = object.rewardSchemes) !== null && _d !== void 0 ? _d : []).map((e) => reward_scheme_1.RewardScheme.fromPartial(e));
|
|
327
|
-
message.sequenceNumber =
|
|
328
|
-
object.sequenceNumber !== undefined && object.sequenceNumber !== null
|
|
329
|
-
? long_1.default.fromValue(object.sequenceNumber)
|
|
330
|
-
: long_1.default.UZERO;
|
|
331
|
-
message.accountToCollateralized = Object.entries((_e = object.accountToCollateralized) !== null && _e !== void 0 ? _e : {}).reduce((acc, [key, value]) => {
|
|
332
|
-
if (value !== undefined) {
|
|
333
|
-
acc[key] = value;
|
|
334
|
-
}
|
|
335
|
-
return acc;
|
|
336
|
-
}, {});
|
|
337
|
-
message.accountToPrincipalDebt = Object.entries((_f = object.accountToPrincipalDebt) !== null && _f !== void 0 ? _f : {}).reduce((acc, [key, value]) => {
|
|
338
|
-
if (value !== undefined) {
|
|
339
|
-
acc[key] = value;
|
|
340
|
-
}
|
|
341
|
-
return acc;
|
|
342
|
-
}, {});
|
|
343
|
-
message.accountToInitialCumulativeInterestMultiplier = Object.entries((_g = object.accountToInitialCumulativeInterestMultiplier) !== null && _g !== void 0 ? _g : {}).reduce((acc, [key, value]) => {
|
|
344
|
-
if (value !== undefined) {
|
|
345
|
-
acc[key] = value;
|
|
346
|
-
}
|
|
347
|
-
return acc;
|
|
348
|
-
}, {});
|
|
349
|
-
message.stablecoinDebtInfo =
|
|
350
|
-
object.stablecoinDebtInfo !== undefined &&
|
|
351
|
-
object.stablecoinDebtInfo !== null
|
|
352
|
-
? stablecoin_debt_info_1.StablecoinDebtInfo.fromPartial(object.stablecoinDebtInfo)
|
|
353
|
-
: undefined;
|
|
354
|
-
message.accountToPrincipalStablecoinDebt = Object.entries((_h = object.accountToPrincipalStablecoinDebt) !== null && _h !== void 0 ? _h : {}).reduce((acc, [key, value]) => {
|
|
355
|
-
if (value !== undefined) {
|
|
356
|
-
acc[key] = value;
|
|
357
|
-
}
|
|
358
|
-
return acc;
|
|
359
|
-
}, {});
|
|
360
|
-
message.accountToStablecoinInitialCumulativeInterestMultiplier =
|
|
361
|
-
Object.entries((_j = object.accountToStablecoinInitialCumulativeInterestMultiplier) !== null && _j !== void 0 ? _j : {}).reduce((acc, [key, value]) => {
|
|
362
|
-
if (value !== undefined) {
|
|
363
|
-
acc[key] = value;
|
|
364
|
-
}
|
|
365
|
-
return acc;
|
|
366
|
-
}, {});
|
|
367
|
-
message.accountToRewardDebt = Object.entries((_k = object.accountToRewardDebt) !== null && _k !== void 0 ? _k : {}).reduce((acc, [key, value]) => {
|
|
368
|
-
if (value !== undefined) {
|
|
369
|
-
acc[key] = value;
|
|
370
|
-
}
|
|
371
|
-
return acc;
|
|
372
|
-
}, {});
|
|
373
|
-
message.stablecoinInterestInfo =
|
|
374
|
-
object.stablecoinInterestInfo !== undefined &&
|
|
375
|
-
object.stablecoinInterestInfo !== null
|
|
376
|
-
? stablecoin_interest_info_1.StablecoinInterestInfo.fromPartial(object.stablecoinInterestInfo)
|
|
377
|
-
: undefined;
|
|
378
|
-
message.eModeCategories = ((_l = object.eModeCategories) !== null && _l !== void 0 ? _l : []).map((e) => e_mode_category_1.EModeCategory.fromPartial(e));
|
|
379
|
-
message.accountToEModeCategory = Object.entries((_m = object.accountToEModeCategory) !== null && _m !== void 0 ? _m : {}).reduce((acc, [key, value]) => {
|
|
380
|
-
if (value !== undefined) {
|
|
381
|
-
acc[key] = String(value);
|
|
382
|
-
}
|
|
383
|
-
return acc;
|
|
384
|
-
}, {});
|
|
385
|
-
return message;
|
|
386
|
-
},
|
|
387
|
-
};
|
|
388
|
-
const baseGenesisState_AccountToCollateralizedEntry = { key: "" };
|
|
389
|
-
exports.GenesisState_AccountToCollateralizedEntry = {
|
|
390
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
391
|
-
if (message.key !== "") {
|
|
392
|
-
writer.uint32(10).string(message.key);
|
|
393
|
-
}
|
|
394
|
-
if (message.value.length !== 0) {
|
|
395
|
-
writer.uint32(18).bytes(message.value);
|
|
396
|
-
}
|
|
397
|
-
return writer;
|
|
398
|
-
},
|
|
399
|
-
decode(input, length) {
|
|
400
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
401
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
402
|
-
const message = Object.assign({}, baseGenesisState_AccountToCollateralizedEntry);
|
|
403
|
-
message.value = new Uint8Array();
|
|
404
|
-
while (reader.pos < end) {
|
|
405
|
-
const tag = reader.uint32();
|
|
406
|
-
switch (tag >>> 3) {
|
|
407
|
-
case 1:
|
|
408
|
-
message.key = reader.string();
|
|
409
|
-
break;
|
|
410
|
-
case 2:
|
|
411
|
-
message.value = reader.bytes();
|
|
412
|
-
break;
|
|
413
|
-
default:
|
|
414
|
-
reader.skipType(tag & 7);
|
|
415
|
-
break;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
return message;
|
|
419
|
-
},
|
|
420
|
-
fromJSON(object) {
|
|
421
|
-
const message = Object.assign({}, baseGenesisState_AccountToCollateralizedEntry);
|
|
422
|
-
message.key =
|
|
423
|
-
object.key !== undefined && object.key !== null ? String(object.key) : "";
|
|
424
|
-
message.value =
|
|
425
|
-
object.value !== undefined && object.value !== null
|
|
426
|
-
? bytesFromBase64(object.value)
|
|
427
|
-
: new Uint8Array();
|
|
428
|
-
return message;
|
|
429
|
-
},
|
|
430
|
-
toJSON(message) {
|
|
431
|
-
const obj = {};
|
|
432
|
-
message.key !== undefined && (obj.key = message.key);
|
|
433
|
-
message.value !== undefined &&
|
|
434
|
-
(obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
435
|
-
return obj;
|
|
436
|
-
},
|
|
437
|
-
fromPartial(object) {
|
|
438
|
-
var _a, _b;
|
|
439
|
-
const message = Object.assign({}, baseGenesisState_AccountToCollateralizedEntry);
|
|
440
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
441
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array();
|
|
442
|
-
return message;
|
|
443
|
-
},
|
|
444
|
-
};
|
|
445
|
-
const baseGenesisState_AccountToPrincipalDebtEntry = { key: "" };
|
|
446
|
-
exports.GenesisState_AccountToPrincipalDebtEntry = {
|
|
447
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
448
|
-
if (message.key !== "") {
|
|
449
|
-
writer.uint32(10).string(message.key);
|
|
450
|
-
}
|
|
451
|
-
if (message.value.length !== 0) {
|
|
452
|
-
writer.uint32(18).bytes(message.value);
|
|
453
|
-
}
|
|
454
|
-
return writer;
|
|
455
|
-
},
|
|
456
|
-
decode(input, length) {
|
|
457
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
458
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
459
|
-
const message = Object.assign({}, baseGenesisState_AccountToPrincipalDebtEntry);
|
|
460
|
-
message.value = new Uint8Array();
|
|
461
|
-
while (reader.pos < end) {
|
|
462
|
-
const tag = reader.uint32();
|
|
463
|
-
switch (tag >>> 3) {
|
|
464
|
-
case 1:
|
|
465
|
-
message.key = reader.string();
|
|
466
|
-
break;
|
|
467
|
-
case 2:
|
|
468
|
-
message.value = reader.bytes();
|
|
469
|
-
break;
|
|
470
|
-
default:
|
|
471
|
-
reader.skipType(tag & 7);
|
|
472
|
-
break;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
return message;
|
|
476
|
-
},
|
|
477
|
-
fromJSON(object) {
|
|
478
|
-
const message = Object.assign({}, baseGenesisState_AccountToPrincipalDebtEntry);
|
|
479
|
-
message.key =
|
|
480
|
-
object.key !== undefined && object.key !== null ? String(object.key) : "";
|
|
481
|
-
message.value =
|
|
482
|
-
object.value !== undefined && object.value !== null
|
|
483
|
-
? bytesFromBase64(object.value)
|
|
484
|
-
: new Uint8Array();
|
|
485
|
-
return message;
|
|
486
|
-
},
|
|
487
|
-
toJSON(message) {
|
|
488
|
-
const obj = {};
|
|
489
|
-
message.key !== undefined && (obj.key = message.key);
|
|
490
|
-
message.value !== undefined &&
|
|
491
|
-
(obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
492
|
-
return obj;
|
|
493
|
-
},
|
|
494
|
-
fromPartial(object) {
|
|
495
|
-
var _a, _b;
|
|
496
|
-
const message = Object.assign({}, baseGenesisState_AccountToPrincipalDebtEntry);
|
|
497
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
498
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array();
|
|
499
|
-
return message;
|
|
500
|
-
},
|
|
501
|
-
};
|
|
502
|
-
const baseGenesisState_AccountToInitialCumulativeInterestMultiplierEntry = { key: "" };
|
|
503
|
-
exports.GenesisState_AccountToInitialCumulativeInterestMultiplierEntry = {
|
|
504
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
505
|
-
if (message.key !== "") {
|
|
506
|
-
writer.uint32(10).string(message.key);
|
|
507
|
-
}
|
|
508
|
-
if (message.value.length !== 0) {
|
|
509
|
-
writer.uint32(18).bytes(message.value);
|
|
510
|
-
}
|
|
511
|
-
return writer;
|
|
512
|
-
},
|
|
513
|
-
decode(input, length) {
|
|
514
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
515
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
516
|
-
const message = Object.assign({}, baseGenesisState_AccountToInitialCumulativeInterestMultiplierEntry);
|
|
517
|
-
message.value = new Uint8Array();
|
|
518
|
-
while (reader.pos < end) {
|
|
519
|
-
const tag = reader.uint32();
|
|
520
|
-
switch (tag >>> 3) {
|
|
521
|
-
case 1:
|
|
522
|
-
message.key = reader.string();
|
|
523
|
-
break;
|
|
524
|
-
case 2:
|
|
525
|
-
message.value = reader.bytes();
|
|
526
|
-
break;
|
|
527
|
-
default:
|
|
528
|
-
reader.skipType(tag & 7);
|
|
529
|
-
break;
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
return message;
|
|
533
|
-
},
|
|
534
|
-
fromJSON(object) {
|
|
535
|
-
const message = Object.assign({}, baseGenesisState_AccountToInitialCumulativeInterestMultiplierEntry);
|
|
536
|
-
message.key =
|
|
537
|
-
object.key !== undefined && object.key !== null ? String(object.key) : "";
|
|
538
|
-
message.value =
|
|
539
|
-
object.value !== undefined && object.value !== null
|
|
540
|
-
? bytesFromBase64(object.value)
|
|
541
|
-
: new Uint8Array();
|
|
542
|
-
return message;
|
|
543
|
-
},
|
|
544
|
-
toJSON(message) {
|
|
545
|
-
const obj = {};
|
|
546
|
-
message.key !== undefined && (obj.key = message.key);
|
|
547
|
-
message.value !== undefined &&
|
|
548
|
-
(obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
549
|
-
return obj;
|
|
550
|
-
},
|
|
551
|
-
fromPartial(object) {
|
|
552
|
-
var _a, _b;
|
|
553
|
-
const message = Object.assign({}, baseGenesisState_AccountToInitialCumulativeInterestMultiplierEntry);
|
|
554
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
555
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array();
|
|
556
|
-
return message;
|
|
557
|
-
},
|
|
558
|
-
};
|
|
559
|
-
const baseGenesisState_AccountToPrincipalStablecoinDebtEntry = {
|
|
560
|
-
key: "",
|
|
561
|
-
};
|
|
562
|
-
exports.GenesisState_AccountToPrincipalStablecoinDebtEntry = {
|
|
563
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
564
|
-
if (message.key !== "") {
|
|
565
|
-
writer.uint32(10).string(message.key);
|
|
566
|
-
}
|
|
567
|
-
if (message.value.length !== 0) {
|
|
568
|
-
writer.uint32(18).bytes(message.value);
|
|
569
|
-
}
|
|
570
|
-
return writer;
|
|
571
|
-
},
|
|
572
|
-
decode(input, length) {
|
|
573
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
574
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
575
|
-
const message = Object.assign({}, baseGenesisState_AccountToPrincipalStablecoinDebtEntry);
|
|
576
|
-
message.value = new Uint8Array();
|
|
577
|
-
while (reader.pos < end) {
|
|
578
|
-
const tag = reader.uint32();
|
|
579
|
-
switch (tag >>> 3) {
|
|
580
|
-
case 1:
|
|
581
|
-
message.key = reader.string();
|
|
582
|
-
break;
|
|
583
|
-
case 2:
|
|
584
|
-
message.value = reader.bytes();
|
|
585
|
-
break;
|
|
586
|
-
default:
|
|
587
|
-
reader.skipType(tag & 7);
|
|
588
|
-
break;
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
return message;
|
|
592
|
-
},
|
|
593
|
-
fromJSON(object) {
|
|
594
|
-
const message = Object.assign({}, baseGenesisState_AccountToPrincipalStablecoinDebtEntry);
|
|
595
|
-
message.key =
|
|
596
|
-
object.key !== undefined && object.key !== null ? String(object.key) : "";
|
|
597
|
-
message.value =
|
|
598
|
-
object.value !== undefined && object.value !== null
|
|
599
|
-
? bytesFromBase64(object.value)
|
|
600
|
-
: new Uint8Array();
|
|
601
|
-
return message;
|
|
602
|
-
},
|
|
603
|
-
toJSON(message) {
|
|
604
|
-
const obj = {};
|
|
605
|
-
message.key !== undefined && (obj.key = message.key);
|
|
606
|
-
message.value !== undefined &&
|
|
607
|
-
(obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
608
|
-
return obj;
|
|
609
|
-
},
|
|
610
|
-
fromPartial(object) {
|
|
611
|
-
var _a, _b;
|
|
612
|
-
const message = Object.assign({}, baseGenesisState_AccountToPrincipalStablecoinDebtEntry);
|
|
613
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
614
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array();
|
|
615
|
-
return message;
|
|
616
|
-
},
|
|
617
|
-
};
|
|
618
|
-
const baseGenesisState_AccountToStablecoinInitialCumulativeInterestMultiplierEntry = { key: "" };
|
|
619
|
-
exports.GenesisState_AccountToStablecoinInitialCumulativeInterestMultiplierEntry = {
|
|
620
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
621
|
-
if (message.key !== "") {
|
|
622
|
-
writer.uint32(10).string(message.key);
|
|
623
|
-
}
|
|
624
|
-
if (message.value.length !== 0) {
|
|
625
|
-
writer.uint32(18).bytes(message.value);
|
|
626
|
-
}
|
|
627
|
-
return writer;
|
|
628
|
-
},
|
|
629
|
-
decode(input, length) {
|
|
630
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
631
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
632
|
-
const message = Object.assign({}, baseGenesisState_AccountToStablecoinInitialCumulativeInterestMultiplierEntry);
|
|
633
|
-
message.value = new Uint8Array();
|
|
634
|
-
while (reader.pos < end) {
|
|
635
|
-
const tag = reader.uint32();
|
|
636
|
-
switch (tag >>> 3) {
|
|
637
|
-
case 1:
|
|
638
|
-
message.key = reader.string();
|
|
639
|
-
break;
|
|
640
|
-
case 2:
|
|
641
|
-
message.value = reader.bytes();
|
|
642
|
-
break;
|
|
643
|
-
default:
|
|
644
|
-
reader.skipType(tag & 7);
|
|
645
|
-
break;
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
return message;
|
|
649
|
-
},
|
|
650
|
-
fromJSON(object) {
|
|
651
|
-
const message = Object.assign({}, baseGenesisState_AccountToStablecoinInitialCumulativeInterestMultiplierEntry);
|
|
652
|
-
message.key =
|
|
653
|
-
object.key !== undefined && object.key !== null
|
|
654
|
-
? String(object.key)
|
|
655
|
-
: "";
|
|
656
|
-
message.value =
|
|
657
|
-
object.value !== undefined && object.value !== null
|
|
658
|
-
? bytesFromBase64(object.value)
|
|
659
|
-
: new Uint8Array();
|
|
660
|
-
return message;
|
|
661
|
-
},
|
|
662
|
-
toJSON(message) {
|
|
663
|
-
const obj = {};
|
|
664
|
-
message.key !== undefined && (obj.key = message.key);
|
|
665
|
-
message.value !== undefined &&
|
|
666
|
-
(obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
667
|
-
return obj;
|
|
668
|
-
},
|
|
669
|
-
fromPartial(object) {
|
|
670
|
-
var _a, _b;
|
|
671
|
-
const message = Object.assign({}, baseGenesisState_AccountToStablecoinInitialCumulativeInterestMultiplierEntry);
|
|
672
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
673
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array();
|
|
674
|
-
return message;
|
|
675
|
-
},
|
|
676
|
-
};
|
|
677
|
-
const baseGenesisState_AccountToRewardDebtEntry = { key: "" };
|
|
678
|
-
exports.GenesisState_AccountToRewardDebtEntry = {
|
|
679
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
680
|
-
if (message.key !== "") {
|
|
681
|
-
writer.uint32(10).string(message.key);
|
|
682
|
-
}
|
|
683
|
-
if (message.value.length !== 0) {
|
|
684
|
-
writer.uint32(18).bytes(message.value);
|
|
685
|
-
}
|
|
686
|
-
return writer;
|
|
687
|
-
},
|
|
688
|
-
decode(input, length) {
|
|
689
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
690
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
691
|
-
const message = Object.assign({}, baseGenesisState_AccountToRewardDebtEntry);
|
|
692
|
-
message.value = new Uint8Array();
|
|
693
|
-
while (reader.pos < end) {
|
|
694
|
-
const tag = reader.uint32();
|
|
695
|
-
switch (tag >>> 3) {
|
|
696
|
-
case 1:
|
|
697
|
-
message.key = reader.string();
|
|
698
|
-
break;
|
|
699
|
-
case 2:
|
|
700
|
-
message.value = reader.bytes();
|
|
701
|
-
break;
|
|
702
|
-
default:
|
|
703
|
-
reader.skipType(tag & 7);
|
|
704
|
-
break;
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
return message;
|
|
708
|
-
},
|
|
709
|
-
fromJSON(object) {
|
|
710
|
-
const message = Object.assign({}, baseGenesisState_AccountToRewardDebtEntry);
|
|
711
|
-
message.key =
|
|
712
|
-
object.key !== undefined && object.key !== null ? String(object.key) : "";
|
|
713
|
-
message.value =
|
|
714
|
-
object.value !== undefined && object.value !== null
|
|
715
|
-
? bytesFromBase64(object.value)
|
|
716
|
-
: new Uint8Array();
|
|
717
|
-
return message;
|
|
718
|
-
},
|
|
719
|
-
toJSON(message) {
|
|
720
|
-
const obj = {};
|
|
721
|
-
message.key !== undefined && (obj.key = message.key);
|
|
722
|
-
message.value !== undefined &&
|
|
723
|
-
(obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array()));
|
|
724
|
-
return obj;
|
|
725
|
-
},
|
|
726
|
-
fromPartial(object) {
|
|
727
|
-
var _a, _b;
|
|
728
|
-
const message = Object.assign({}, baseGenesisState_AccountToRewardDebtEntry);
|
|
729
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
730
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array();
|
|
731
|
-
return message;
|
|
732
|
-
},
|
|
733
|
-
};
|
|
734
|
-
const baseGenesisState_AccountToEModeCategoryEntry = {
|
|
735
|
-
key: "",
|
|
736
|
-
value: "",
|
|
737
|
-
};
|
|
738
|
-
exports.GenesisState_AccountToEModeCategoryEntry = {
|
|
739
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
740
|
-
if (message.key !== "") {
|
|
741
|
-
writer.uint32(10).string(message.key);
|
|
742
|
-
}
|
|
743
|
-
if (message.value !== "") {
|
|
744
|
-
writer.uint32(18).string(message.value);
|
|
745
|
-
}
|
|
746
|
-
return writer;
|
|
747
|
-
},
|
|
748
|
-
decode(input, length) {
|
|
749
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
750
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
751
|
-
const message = Object.assign({}, baseGenesisState_AccountToEModeCategoryEntry);
|
|
752
|
-
while (reader.pos < end) {
|
|
753
|
-
const tag = reader.uint32();
|
|
754
|
-
switch (tag >>> 3) {
|
|
755
|
-
case 1:
|
|
756
|
-
message.key = reader.string();
|
|
757
|
-
break;
|
|
758
|
-
case 2:
|
|
759
|
-
message.value = reader.string();
|
|
760
|
-
break;
|
|
761
|
-
default:
|
|
762
|
-
reader.skipType(tag & 7);
|
|
763
|
-
break;
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
return message;
|
|
767
|
-
},
|
|
768
|
-
fromJSON(object) {
|
|
769
|
-
const message = Object.assign({}, baseGenesisState_AccountToEModeCategoryEntry);
|
|
770
|
-
message.key =
|
|
771
|
-
object.key !== undefined && object.key !== null ? String(object.key) : "";
|
|
772
|
-
message.value =
|
|
773
|
-
object.value !== undefined && object.value !== null
|
|
774
|
-
? String(object.value)
|
|
775
|
-
: "";
|
|
776
|
-
return message;
|
|
777
|
-
},
|
|
778
|
-
toJSON(message) {
|
|
779
|
-
const obj = {};
|
|
780
|
-
message.key !== undefined && (obj.key = message.key);
|
|
781
|
-
message.value !== undefined && (obj.value = message.value);
|
|
782
|
-
return obj;
|
|
783
|
-
},
|
|
784
|
-
fromPartial(object) {
|
|
785
|
-
var _a, _b;
|
|
786
|
-
const message = Object.assign({}, baseGenesisState_AccountToEModeCategoryEntry);
|
|
787
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
788
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
789
|
-
return message;
|
|
790
|
-
},
|
|
791
|
-
};
|
|
792
|
-
var globalThis = (() => {
|
|
793
|
-
if (typeof globalThis !== "undefined")
|
|
794
|
-
return globalThis;
|
|
795
|
-
if (typeof self !== "undefined")
|
|
796
|
-
return self;
|
|
797
|
-
if (typeof window !== "undefined")
|
|
798
|
-
return window;
|
|
799
|
-
if (typeof global !== "undefined")
|
|
800
|
-
return global;
|
|
801
|
-
throw "Unable to locate global object";
|
|
802
|
-
})();
|
|
803
|
-
const atob = globalThis.atob ||
|
|
804
|
-
((b64) => globalThis.Buffer.from(b64, "base64").toString("binary"));
|
|
805
|
-
function bytesFromBase64(b64) {
|
|
806
|
-
const bin = atob(b64);
|
|
807
|
-
const arr = new Uint8Array(bin.length);
|
|
808
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
809
|
-
arr[i] = bin.charCodeAt(i);
|
|
810
|
-
}
|
|
811
|
-
return arr;
|
|
812
|
-
}
|
|
813
|
-
const btoa = globalThis.btoa ||
|
|
814
|
-
((bin) => globalThis.Buffer.from(bin, "binary").toString("base64"));
|
|
815
|
-
function base64FromBytes(arr) {
|
|
816
|
-
const bin = [];
|
|
817
|
-
for (const byte of arr) {
|
|
818
|
-
bin.push(String.fromCharCode(byte));
|
|
819
|
-
}
|
|
820
|
-
return btoa(bin.join(""));
|
|
821
|
-
}
|
|
822
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
823
|
-
minimal_1.default.util.Long = long_1.default;
|
|
824
|
-
minimal_1.default.configure();
|
|
825
|
-
}
|