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
|
@@ -42,7 +42,7 @@ import { QueryClientImpl as PositionQueryClient } from "../codec/Switcheo/carbon
|
|
|
42
42
|
import { QueryClientImpl as PricingQueryClient } from "../codec/Switcheo/carbon/pricing/query";
|
|
43
43
|
import { QueryClientImpl as ProfileQueryClient } from "../codec/Switcheo/carbon/profile/query";
|
|
44
44
|
import { QueryClientImpl as SubaccountQueryClient } from "../codec/Switcheo/carbon/subaccount/query";
|
|
45
|
-
import { QueryClientImpl as AllianceClient } from "../codec/alliance/query";
|
|
45
|
+
import { QueryClientImpl as AllianceClient } from "../codec/alliance/alliance/query";
|
|
46
46
|
import { QueryClientImpl as PerpspoolQueryClient } from "../codec/Switcheo/carbon/perpspool/query";
|
|
47
47
|
import { QueryClientImpl as ERC20QueryClient } from "../codec/Switcheo/carbon/erc20/query";
|
|
48
48
|
import { Tendermint37Client } from "@cosmjs/tendermint-rpc";
|
|
@@ -47,7 +47,7 @@ const query_41 = require("../codec/Switcheo/carbon/position/query");
|
|
|
47
47
|
const query_42 = require("../codec/Switcheo/carbon/pricing/query");
|
|
48
48
|
const query_43 = require("../codec/Switcheo/carbon/profile/query");
|
|
49
49
|
const query_44 = require("../codec/Switcheo/carbon/subaccount/query");
|
|
50
|
-
const query_45 = require("../codec/alliance/query");
|
|
50
|
+
const query_45 = require("../codec/alliance/alliance/query");
|
|
51
51
|
const query_46 = require("../codec/Switcheo/carbon/perpspool/query");
|
|
52
52
|
const query_47 = require("../codec/Switcheo/carbon/erc20/query");
|
|
53
53
|
const stargate_1 = require("@cosmjs/stargate");
|
|
@@ -47,7 +47,7 @@ declare class InsightsQueryClient {
|
|
|
47
47
|
Leaderboard(req: Insights.GetLeaderboardPathParams, query: Insights.GetLeaderboardQueryParams): Promise<Insights.InsightsQueryResponse<Insights.QueryGetLeaderboardResponse>>;
|
|
48
48
|
PositionStats(req: Insights.GetPositionStatsPathParams, query: Insights.GetPositionStatsQueryParams): Promise<Insights.InsightsQueryResponse<Insights.QueryGetPositionStatsResponse>>;
|
|
49
49
|
DenomToGeckoIdMap(): Promise<Insights.InsightsQueryResponse<Insights.QueryDenomToGeckoIdMap>>;
|
|
50
|
-
FundingHistory(query: Insights.
|
|
50
|
+
FundingHistory(query: Insights.QueryGetFundingHistoryRequest): Promise<Insights.InsightsQueryResponse<Insights.QueryGetFundingHistoryResponse>>;
|
|
51
51
|
HistoricalFundingHistory(query: Insights.QueryGetFundingRateRequest): Promise<Insights.InsightsQueryResponse<Insights.QueryGetFundingRateResponse>>;
|
|
52
52
|
ProposalVotes(req: Insights.GetProposalVotesPathParams, query: Insights.GetProposalVotesQueryParams): Promise<Insights.InsightsQueryResponse<Insights.QueryGetProposalVotesResponse>>;
|
|
53
53
|
Delegations(req: Insights.GetDelegationsPathParams, query: Insights.GetDelegationsQueryParams): Promise<Insights.InsightsQueryResponse<Insights.QueryGetDelegationsResponse>>;
|
|
@@ -384,7 +384,7 @@ class InsightsQueryClient {
|
|
|
384
384
|
FundingHistory(query) {
|
|
385
385
|
var _a, _b, _c;
|
|
386
386
|
return __awaiter(this, void 0, void 0, function* () {
|
|
387
|
-
const request = this.apiManager.path("market/funding", {}, {
|
|
387
|
+
const request = this.apiManager.path("market/funding/history/all", {}, {
|
|
388
388
|
market: (_a = query.market) !== null && _a !== void 0 ? _a : "",
|
|
389
389
|
limit: (_b = query.limit) !== null && _b !== void 0 ? _b : 100,
|
|
390
390
|
offset: (_c = query.offset) !== null && _c !== void 0 ? _c : 0,
|
|
@@ -394,12 +394,10 @@ class InsightsQueryClient {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
HistoricalFundingHistory(query) {
|
|
397
|
-
var _a, _b
|
|
397
|
+
var _a, _b;
|
|
398
398
|
return __awaiter(this, void 0, void 0, function* () {
|
|
399
399
|
const request = this.apiManager.path("market/funding/history", {}, {
|
|
400
400
|
market: (_b = (_a = query.market) === null || _a === void 0 ? void 0 : _a.replace('%2F', '/')) !== null && _b !== void 0 ? _b : "",
|
|
401
|
-
limit: (_c = query.limit) !== null && _c !== void 0 ? _c : 100,
|
|
402
|
-
offset: (_d = query.offset) !== null && _d !== void 0 ? _d : 0,
|
|
403
401
|
});
|
|
404
402
|
const response = yield request.get();
|
|
405
403
|
return response.data;
|
|
@@ -2,12 +2,17 @@ import Long from "long";
|
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
export declare const protobufPackage = "Switcheo.carbon.book";
|
|
4
4
|
export interface OrderBookEvent {
|
|
5
|
-
type: string;
|
|
6
5
|
market: string;
|
|
7
6
|
side: string;
|
|
8
7
|
price: string;
|
|
9
8
|
quantity: string;
|
|
10
9
|
}
|
|
10
|
+
export interface VirtualOrderBookEvent {
|
|
11
|
+
book?: OrderBookEvent;
|
|
12
|
+
}
|
|
13
|
+
export interface ClearVirtualOrderBookEvent {
|
|
14
|
+
market: string;
|
|
15
|
+
}
|
|
11
16
|
export declare const OrderBookEvent: {
|
|
12
17
|
encode(message: OrderBookEvent, writer?: _m0.Writer): _m0.Writer;
|
|
13
18
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): OrderBookEvent;
|
|
@@ -15,6 +20,20 @@ export declare const OrderBookEvent: {
|
|
|
15
20
|
toJSON(message: OrderBookEvent): unknown;
|
|
16
21
|
fromPartial(object: DeepPartial<OrderBookEvent>): OrderBookEvent;
|
|
17
22
|
};
|
|
23
|
+
export declare const VirtualOrderBookEvent: {
|
|
24
|
+
encode(message: VirtualOrderBookEvent, writer?: _m0.Writer): _m0.Writer;
|
|
25
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): VirtualOrderBookEvent;
|
|
26
|
+
fromJSON(object: any): VirtualOrderBookEvent;
|
|
27
|
+
toJSON(message: VirtualOrderBookEvent): unknown;
|
|
28
|
+
fromPartial(object: DeepPartial<VirtualOrderBookEvent>): VirtualOrderBookEvent;
|
|
29
|
+
};
|
|
30
|
+
export declare const ClearVirtualOrderBookEvent: {
|
|
31
|
+
encode(message: ClearVirtualOrderBookEvent, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ClearVirtualOrderBookEvent;
|
|
33
|
+
fromJSON(object: any): ClearVirtualOrderBookEvent;
|
|
34
|
+
toJSON(message: ClearVirtualOrderBookEvent): unknown;
|
|
35
|
+
fromPartial(object: DeepPartial<ClearVirtualOrderBookEvent>): ClearVirtualOrderBookEvent;
|
|
36
|
+
};
|
|
18
37
|
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
19
38
|
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 {} ? {
|
|
20
39
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -3,13 +3,12 @@ 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.OrderBookEvent = exports.protobufPackage = void 0;
|
|
6
|
+
exports.ClearVirtualOrderBookEvent = exports.VirtualOrderBookEvent = exports.OrderBookEvent = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
10
|
exports.protobufPackage = "Switcheo.carbon.book";
|
|
11
11
|
const baseOrderBookEvent = {
|
|
12
|
-
type: "",
|
|
13
12
|
market: "",
|
|
14
13
|
side: "",
|
|
15
14
|
price: "",
|
|
@@ -17,9 +16,6 @@ const baseOrderBookEvent = {
|
|
|
17
16
|
};
|
|
18
17
|
exports.OrderBookEvent = {
|
|
19
18
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.type !== "") {
|
|
21
|
-
writer.uint32(10).string(message.type);
|
|
22
|
-
}
|
|
23
19
|
if (message.market !== "") {
|
|
24
20
|
writer.uint32(18).string(message.market);
|
|
25
21
|
}
|
|
@@ -41,9 +37,6 @@ exports.OrderBookEvent = {
|
|
|
41
37
|
while (reader.pos < end) {
|
|
42
38
|
const tag = reader.uint32();
|
|
43
39
|
switch (tag >>> 3) {
|
|
44
|
-
case 1:
|
|
45
|
-
message.type = reader.string();
|
|
46
|
-
break;
|
|
47
40
|
case 2:
|
|
48
41
|
message.market = reader.string();
|
|
49
42
|
break;
|
|
@@ -65,10 +58,6 @@ exports.OrderBookEvent = {
|
|
|
65
58
|
},
|
|
66
59
|
fromJSON(object) {
|
|
67
60
|
const message = Object.assign({}, baseOrderBookEvent);
|
|
68
|
-
message.type =
|
|
69
|
-
object.type !== undefined && object.type !== null
|
|
70
|
-
? String(object.type)
|
|
71
|
-
: "";
|
|
72
61
|
message.market =
|
|
73
62
|
object.market !== undefined && object.market !== null
|
|
74
63
|
? String(object.market)
|
|
@@ -89,7 +78,6 @@ exports.OrderBookEvent = {
|
|
|
89
78
|
},
|
|
90
79
|
toJSON(message) {
|
|
91
80
|
const obj = {};
|
|
92
|
-
message.type !== undefined && (obj.type = message.type);
|
|
93
81
|
message.market !== undefined && (obj.market = message.market);
|
|
94
82
|
message.side !== undefined && (obj.side = message.side);
|
|
95
83
|
message.price !== undefined && (obj.price = message.price);
|
|
@@ -97,13 +85,107 @@ exports.OrderBookEvent = {
|
|
|
97
85
|
return obj;
|
|
98
86
|
},
|
|
99
87
|
fromPartial(object) {
|
|
100
|
-
var _a, _b, _c, _d
|
|
88
|
+
var _a, _b, _c, _d;
|
|
101
89
|
const message = Object.assign({}, baseOrderBookEvent);
|
|
102
|
-
message.
|
|
103
|
-
message.
|
|
104
|
-
message.
|
|
105
|
-
message.
|
|
106
|
-
message
|
|
90
|
+
message.market = (_a = object.market) !== null && _a !== void 0 ? _a : "";
|
|
91
|
+
message.side = (_b = object.side) !== null && _b !== void 0 ? _b : "";
|
|
92
|
+
message.price = (_c = object.price) !== null && _c !== void 0 ? _c : "";
|
|
93
|
+
message.quantity = (_d = object.quantity) !== null && _d !== void 0 ? _d : "";
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
const baseVirtualOrderBookEvent = {};
|
|
98
|
+
exports.VirtualOrderBookEvent = {
|
|
99
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
100
|
+
if (message.book !== undefined) {
|
|
101
|
+
exports.OrderBookEvent.encode(message.book, writer.uint32(10).fork()).ldelim();
|
|
102
|
+
}
|
|
103
|
+
return writer;
|
|
104
|
+
},
|
|
105
|
+
decode(input, length) {
|
|
106
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
107
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
108
|
+
const message = Object.assign({}, baseVirtualOrderBookEvent);
|
|
109
|
+
while (reader.pos < end) {
|
|
110
|
+
const tag = reader.uint32();
|
|
111
|
+
switch (tag >>> 3) {
|
|
112
|
+
case 1:
|
|
113
|
+
message.book = exports.OrderBookEvent.decode(reader, reader.uint32());
|
|
114
|
+
break;
|
|
115
|
+
default:
|
|
116
|
+
reader.skipType(tag & 7);
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return message;
|
|
121
|
+
},
|
|
122
|
+
fromJSON(object) {
|
|
123
|
+
const message = Object.assign({}, baseVirtualOrderBookEvent);
|
|
124
|
+
message.book =
|
|
125
|
+
object.book !== undefined && object.book !== null
|
|
126
|
+
? exports.OrderBookEvent.fromJSON(object.book)
|
|
127
|
+
: undefined;
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
toJSON(message) {
|
|
131
|
+
const obj = {};
|
|
132
|
+
message.book !== undefined &&
|
|
133
|
+
(obj.book = message.book
|
|
134
|
+
? exports.OrderBookEvent.toJSON(message.book)
|
|
135
|
+
: undefined);
|
|
136
|
+
return obj;
|
|
137
|
+
},
|
|
138
|
+
fromPartial(object) {
|
|
139
|
+
const message = Object.assign({}, baseVirtualOrderBookEvent);
|
|
140
|
+
message.book =
|
|
141
|
+
object.book !== undefined && object.book !== null
|
|
142
|
+
? exports.OrderBookEvent.fromPartial(object.book)
|
|
143
|
+
: undefined;
|
|
144
|
+
return message;
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
const baseClearVirtualOrderBookEvent = { market: "" };
|
|
148
|
+
exports.ClearVirtualOrderBookEvent = {
|
|
149
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
150
|
+
if (message.market !== "") {
|
|
151
|
+
writer.uint32(10).string(message.market);
|
|
152
|
+
}
|
|
153
|
+
return writer;
|
|
154
|
+
},
|
|
155
|
+
decode(input, length) {
|
|
156
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
157
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
158
|
+
const message = Object.assign({}, baseClearVirtualOrderBookEvent);
|
|
159
|
+
while (reader.pos < end) {
|
|
160
|
+
const tag = reader.uint32();
|
|
161
|
+
switch (tag >>> 3) {
|
|
162
|
+
case 1:
|
|
163
|
+
message.market = reader.string();
|
|
164
|
+
break;
|
|
165
|
+
default:
|
|
166
|
+
reader.skipType(tag & 7);
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return message;
|
|
171
|
+
},
|
|
172
|
+
fromJSON(object) {
|
|
173
|
+
const message = Object.assign({}, baseClearVirtualOrderBookEvent);
|
|
174
|
+
message.market =
|
|
175
|
+
object.market !== undefined && object.market !== null
|
|
176
|
+
? String(object.market)
|
|
177
|
+
: "";
|
|
178
|
+
return message;
|
|
179
|
+
},
|
|
180
|
+
toJSON(message) {
|
|
181
|
+
const obj = {};
|
|
182
|
+
message.market !== undefined && (obj.market = message.market);
|
|
183
|
+
return obj;
|
|
184
|
+
},
|
|
185
|
+
fromPartial(object) {
|
|
186
|
+
var _a;
|
|
187
|
+
const message = Object.assign({}, baseClearVirtualOrderBookEvent);
|
|
188
|
+
message.market = (_a = object.market) !== null && _a !== void 0 ? _a : "";
|
|
107
189
|
return message;
|
|
108
190
|
},
|
|
109
191
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { OrderBookLevel, OrderBook, StopBook, StopOrder } from "./book";
|
|
2
|
-
export { OrderBookEvent } from "./event";
|
|
2
|
+
export { OrderBookEvent, VirtualOrderBookEvent, ClearVirtualOrderBookEvent } from "./event";
|
|
3
3
|
export { StopbookV2320 } from "./legacy";
|
|
4
4
|
export { QueryImpactPriceRequest, QueryImpactPriceResponse, QueryGetBookRequest, QueryGetBookResponse, QueryAllBookRequest, QueryAllBookResponse, QueryGetStopBookRequest, QueryGetStopBookResponse, QueryAllStopBookRequest, QueryAllStopBookResponse } from "./query";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QueryAllStopBookResponse = exports.QueryAllStopBookRequest = exports.QueryGetStopBookResponse = exports.QueryGetStopBookRequest = exports.QueryAllBookResponse = exports.QueryAllBookRequest = exports.QueryGetBookResponse = exports.QueryGetBookRequest = exports.QueryImpactPriceResponse = exports.QueryImpactPriceRequest = exports.StopbookV2320 = exports.OrderBookEvent = exports.StopOrder = exports.StopBook = exports.OrderBook = exports.OrderBookLevel = void 0;
|
|
3
|
+
exports.QueryAllStopBookResponse = exports.QueryAllStopBookRequest = exports.QueryGetStopBookResponse = exports.QueryGetStopBookRequest = exports.QueryAllBookResponse = exports.QueryAllBookRequest = exports.QueryGetBookResponse = exports.QueryGetBookRequest = exports.QueryImpactPriceResponse = exports.QueryImpactPriceRequest = exports.StopbookV2320 = exports.ClearVirtualOrderBookEvent = exports.VirtualOrderBookEvent = exports.OrderBookEvent = exports.StopOrder = exports.StopBook = exports.OrderBook = exports.OrderBookLevel = void 0;
|
|
4
4
|
var book_1 = require("./book");
|
|
5
5
|
Object.defineProperty(exports, "OrderBookLevel", { enumerable: true, get: function () { return book_1.OrderBookLevel; } });
|
|
6
6
|
Object.defineProperty(exports, "OrderBook", { enumerable: true, get: function () { return book_1.OrderBook; } });
|
|
@@ -8,6 +8,8 @@ Object.defineProperty(exports, "StopBook", { enumerable: true, get: function ()
|
|
|
8
8
|
Object.defineProperty(exports, "StopOrder", { enumerable: true, get: function () { return book_1.StopOrder; } });
|
|
9
9
|
var event_1 = require("./event");
|
|
10
10
|
Object.defineProperty(exports, "OrderBookEvent", { enumerable: true, get: function () { return event_1.OrderBookEvent; } });
|
|
11
|
+
Object.defineProperty(exports, "VirtualOrderBookEvent", { enumerable: true, get: function () { return event_1.VirtualOrderBookEvent; } });
|
|
12
|
+
Object.defineProperty(exports, "ClearVirtualOrderBookEvent", { enumerable: true, get: function () { return event_1.ClearVirtualOrderBookEvent; } });
|
|
11
13
|
var legacy_1 = require("./legacy");
|
|
12
14
|
Object.defineProperty(exports, "StopbookV2320", { enumerable: true, get: function () { return legacy_1.StopbookV2320; } });
|
|
13
15
|
var query_1 = require("./query");
|
|
@@ -113,12 +113,16 @@ export declare const QueryAllStopBookResponse: {
|
|
|
113
113
|
export interface Query {
|
|
114
114
|
/** Get impact price for a market */
|
|
115
115
|
ImpactPrice(request: QueryImpactPriceRequest): Promise<QueryImpactPriceResponse>;
|
|
116
|
-
/** Get order book for a market */
|
|
117
|
-
|
|
116
|
+
/** Get combined order book for a market */
|
|
117
|
+
CombinedBook(request: QueryGetBookRequest): Promise<QueryGetBookResponse>;
|
|
118
|
+
/** Get concrete book for a market */
|
|
119
|
+
ConcreteBook(request: QueryGetBookRequest): Promise<QueryGetBookResponse>;
|
|
120
|
+
/** Get virtual order book for a market */
|
|
121
|
+
VirtualBook(request: QueryGetBookRequest): Promise<QueryGetBookResponse>;
|
|
118
122
|
/** Get stop order book for a market */
|
|
119
123
|
StopBook(request: QueryGetStopBookRequest): Promise<QueryGetStopBookResponse>;
|
|
120
|
-
/** Get order books for all markets */
|
|
121
|
-
|
|
124
|
+
/** Get combined order books for all markets */
|
|
125
|
+
CombinedBookAll(request: QueryAllBookRequest): Promise<QueryAllBookResponse>;
|
|
122
126
|
/** Get all stop order book for a market */
|
|
123
127
|
StopBookAll(request: QueryAllStopBookRequest): Promise<QueryAllStopBookResponse>;
|
|
124
128
|
}
|
|
@@ -126,9 +130,11 @@ export declare class QueryClientImpl implements Query {
|
|
|
126
130
|
private readonly rpc;
|
|
127
131
|
constructor(rpc: Rpc);
|
|
128
132
|
ImpactPrice(request: QueryImpactPriceRequest): Promise<QueryImpactPriceResponse>;
|
|
129
|
-
|
|
133
|
+
CombinedBook(request: QueryGetBookRequest): Promise<QueryGetBookResponse>;
|
|
134
|
+
ConcreteBook(request: QueryGetBookRequest): Promise<QueryGetBookResponse>;
|
|
135
|
+
VirtualBook(request: QueryGetBookRequest): Promise<QueryGetBookResponse>;
|
|
130
136
|
StopBook(request: QueryGetStopBookRequest): Promise<QueryGetStopBookResponse>;
|
|
131
|
-
|
|
137
|
+
CombinedBookAll(request: QueryAllBookRequest): Promise<QueryAllBookResponse>;
|
|
132
138
|
StopBookAll(request: QueryAllStopBookRequest): Promise<QueryAllStopBookResponse>;
|
|
133
139
|
}
|
|
134
140
|
interface Rpc {
|
|
@@ -568,9 +568,11 @@ class QueryClientImpl {
|
|
|
568
568
|
constructor(rpc) {
|
|
569
569
|
this.rpc = rpc;
|
|
570
570
|
this.ImpactPrice = this.ImpactPrice.bind(this);
|
|
571
|
-
this.
|
|
571
|
+
this.CombinedBook = this.CombinedBook.bind(this);
|
|
572
|
+
this.ConcreteBook = this.ConcreteBook.bind(this);
|
|
573
|
+
this.VirtualBook = this.VirtualBook.bind(this);
|
|
572
574
|
this.StopBook = this.StopBook.bind(this);
|
|
573
|
-
this.
|
|
575
|
+
this.CombinedBookAll = this.CombinedBookAll.bind(this);
|
|
574
576
|
this.StopBookAll = this.StopBookAll.bind(this);
|
|
575
577
|
}
|
|
576
578
|
ImpactPrice(request) {
|
|
@@ -578,9 +580,19 @@ class QueryClientImpl {
|
|
|
578
580
|
const promise = this.rpc.request("Switcheo.carbon.book.Query", "ImpactPrice", data);
|
|
579
581
|
return promise.then((data) => exports.QueryImpactPriceResponse.decode(new minimal_1.default.Reader(data)));
|
|
580
582
|
}
|
|
581
|
-
|
|
583
|
+
CombinedBook(request) {
|
|
582
584
|
const data = exports.QueryGetBookRequest.encode(request).finish();
|
|
583
|
-
const promise = this.rpc.request("Switcheo.carbon.book.Query", "
|
|
585
|
+
const promise = this.rpc.request("Switcheo.carbon.book.Query", "CombinedBook", data);
|
|
586
|
+
return promise.then((data) => exports.QueryGetBookResponse.decode(new minimal_1.default.Reader(data)));
|
|
587
|
+
}
|
|
588
|
+
ConcreteBook(request) {
|
|
589
|
+
const data = exports.QueryGetBookRequest.encode(request).finish();
|
|
590
|
+
const promise = this.rpc.request("Switcheo.carbon.book.Query", "ConcreteBook", data);
|
|
591
|
+
return promise.then((data) => exports.QueryGetBookResponse.decode(new minimal_1.default.Reader(data)));
|
|
592
|
+
}
|
|
593
|
+
VirtualBook(request) {
|
|
594
|
+
const data = exports.QueryGetBookRequest.encode(request).finish();
|
|
595
|
+
const promise = this.rpc.request("Switcheo.carbon.book.Query", "VirtualBook", data);
|
|
584
596
|
return promise.then((data) => exports.QueryGetBookResponse.decode(new minimal_1.default.Reader(data)));
|
|
585
597
|
}
|
|
586
598
|
StopBook(request) {
|
|
@@ -588,9 +600,9 @@ class QueryClientImpl {
|
|
|
588
600
|
const promise = this.rpc.request("Switcheo.carbon.book.Query", "StopBook", data);
|
|
589
601
|
return promise.then((data) => exports.QueryGetStopBookResponse.decode(new minimal_1.default.Reader(data)));
|
|
590
602
|
}
|
|
591
|
-
|
|
603
|
+
CombinedBookAll(request) {
|
|
592
604
|
const data = exports.QueryAllBookRequest.encode(request).finish();
|
|
593
|
-
const promise = this.rpc.request("Switcheo.carbon.book.Query", "
|
|
605
|
+
const promise = this.rpc.request("Switcheo.carbon.book.Query", "CombinedBookAll", data);
|
|
594
606
|
return promise.then((data) => exports.QueryAllBookResponse.decode(new minimal_1.default.Reader(data)));
|
|
595
607
|
}
|
|
596
608
|
StopBookAll(request) {
|
|
@@ -6,6 +6,10 @@ export interface SpotAmm {
|
|
|
6
6
|
poolId: Long;
|
|
7
7
|
market: string;
|
|
8
8
|
reservesHash: Uint8Array;
|
|
9
|
+
/**
|
|
10
|
+
* TODO: change to reserved after being used for migration
|
|
11
|
+
* reserved 4; // used to be orders, but deprecated
|
|
12
|
+
*/
|
|
9
13
|
orders: string[];
|
|
10
14
|
poolRoute: Uint8Array;
|
|
11
15
|
}
|
|
@@ -19,6 +23,10 @@ export interface PerpsAmm {
|
|
|
19
23
|
/** PerpsMarketAmm exists when it is active or when there's orders or open position */
|
|
20
24
|
export interface PerpsMarketAmm {
|
|
21
25
|
market: string;
|
|
26
|
+
/**
|
|
27
|
+
* TODO: change to reserved after being used for migration
|
|
28
|
+
* reserved 2; // used to be orders, but deprecated
|
|
29
|
+
*/
|
|
22
30
|
orders: string[];
|
|
23
31
|
lastIndexPrice: string;
|
|
24
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Params } from "./ccm";
|
|
2
2
|
export { GenesisState_CreatedTxDetailsEntry, GenesisState_ReceivedTxIdsEntry, GenesisState_DenomCreatorsEntry, GenesisState_ZionCreatedTxDetailsEntry } from "./genesis";
|
|
3
3
|
export { QueryCheckModuleContractRequest, QueryCheckModuleContractResponse } from "./query";
|
|
4
|
-
export { MsgProcessCrossChainTx, MsgProcessZionCrossChainTx, MsgProcessCrossChainTxResponse, MsgProcessZionCrossChainTxResponse, MsgCreateEmitEvent, MsgToggleEmitZionEvents } from "./tx";
|
|
4
|
+
export { MsgProcessCrossChainTx, MsgProcessZionCrossChainTx, MsgProcessCrossChainTxResponse, MsgProcessZionCrossChainTxResponse, MsgCreateEmitEvent, MsgToggleEmitZionEvents, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MsgToggleEmitZionEvents = exports.MsgCreateEmitEvent = exports.MsgProcessZionCrossChainTxResponse = exports.MsgProcessCrossChainTxResponse = exports.MsgProcessZionCrossChainTx = exports.MsgProcessCrossChainTx = exports.QueryCheckModuleContractResponse = exports.QueryCheckModuleContractRequest = exports.GenesisState_ZionCreatedTxDetailsEntry = exports.GenesisState_DenomCreatorsEntry = exports.GenesisState_ReceivedTxIdsEntry = exports.GenesisState_CreatedTxDetailsEntry = exports.Params = void 0;
|
|
3
|
+
exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.MsgToggleEmitZionEvents = exports.MsgCreateEmitEvent = exports.MsgProcessZionCrossChainTxResponse = exports.MsgProcessCrossChainTxResponse = exports.MsgProcessZionCrossChainTx = exports.MsgProcessCrossChainTx = exports.QueryCheckModuleContractResponse = exports.QueryCheckModuleContractRequest = exports.GenesisState_ZionCreatedTxDetailsEntry = exports.GenesisState_DenomCreatorsEntry = exports.GenesisState_ReceivedTxIdsEntry = exports.GenesisState_CreatedTxDetailsEntry = exports.Params = void 0;
|
|
4
4
|
var ccm_1 = require("./ccm");
|
|
5
5
|
Object.defineProperty(exports, "Params", { enumerable: true, get: function () { return ccm_1.Params; } });
|
|
6
6
|
var genesis_1 = require("./genesis");
|
|
@@ -18,3 +18,5 @@ Object.defineProperty(exports, "MsgProcessCrossChainTxResponse", { enumerable: t
|
|
|
18
18
|
Object.defineProperty(exports, "MsgProcessZionCrossChainTxResponse", { enumerable: true, get: function () { return tx_1.MsgProcessZionCrossChainTxResponse; } });
|
|
19
19
|
Object.defineProperty(exports, "MsgCreateEmitEvent", { enumerable: true, get: function () { return tx_1.MsgCreateEmitEvent; } });
|
|
20
20
|
Object.defineProperty(exports, "MsgToggleEmitZionEvents", { enumerable: true, get: function () { return tx_1.MsgToggleEmitZionEvents; } });
|
|
21
|
+
Object.defineProperty(exports, "MsgUpdateParams", { enumerable: true, get: function () { return tx_1.MsgUpdateParams; } });
|
|
22
|
+
Object.defineProperty(exports, "MsgUpdateParamsResponse", { enumerable: true, get: function () { return tx_1.MsgUpdateParamsResponse; } });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Params } from "./ccm";
|
|
3
4
|
export declare const protobufPackage = "Switcheo.carbon.ccm";
|
|
4
5
|
/** this line is used by starport scaffolding # proto/tx/message */
|
|
5
6
|
export interface MsgProcessCrossChainTx {
|
|
@@ -31,6 +32,29 @@ export interface MsgToggleEmitZionEvents {
|
|
|
31
32
|
creator: string;
|
|
32
33
|
toggleTo: boolean;
|
|
33
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
37
|
+
*
|
|
38
|
+
* Since: cosmos-sdk 0.47
|
|
39
|
+
*/
|
|
40
|
+
export interface MsgUpdateParams {
|
|
41
|
+
/** authority is the address of the governance account. */
|
|
42
|
+
authority: string;
|
|
43
|
+
/**
|
|
44
|
+
* params defines the parameters to update.
|
|
45
|
+
*
|
|
46
|
+
* NOTE: All parameters must be supplied.
|
|
47
|
+
*/
|
|
48
|
+
params?: Params;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
52
|
+
* MsgUpdateParams message.
|
|
53
|
+
*
|
|
54
|
+
* Since: cosmos-sdk 0.47
|
|
55
|
+
*/
|
|
56
|
+
export interface MsgUpdateParamsResponse {
|
|
57
|
+
}
|
|
34
58
|
export declare const MsgProcessCrossChainTx: {
|
|
35
59
|
encode(message: MsgProcessCrossChainTx, writer?: _m0.Writer): _m0.Writer;
|
|
36
60
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgProcessCrossChainTx;
|
|
@@ -73,12 +97,33 @@ export declare const MsgToggleEmitZionEvents: {
|
|
|
73
97
|
toJSON(message: MsgToggleEmitZionEvents): unknown;
|
|
74
98
|
fromPartial(object: DeepPartial<MsgToggleEmitZionEvents>): MsgToggleEmitZionEvents;
|
|
75
99
|
};
|
|
100
|
+
export declare const MsgUpdateParams: {
|
|
101
|
+
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
102
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParams;
|
|
103
|
+
fromJSON(object: any): MsgUpdateParams;
|
|
104
|
+
toJSON(message: MsgUpdateParams): unknown;
|
|
105
|
+
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams;
|
|
106
|
+
};
|
|
107
|
+
export declare const MsgUpdateParamsResponse: {
|
|
108
|
+
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
109
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateParamsResponse;
|
|
110
|
+
fromJSON(_: any): MsgUpdateParamsResponse;
|
|
111
|
+
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
112
|
+
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse;
|
|
113
|
+
};
|
|
76
114
|
/** Msg defines the Msg service. */
|
|
77
115
|
export interface Msg {
|
|
78
116
|
/** this line is used by starport scaffolding # proto/tx/rpc */
|
|
79
117
|
Process(request: MsgProcessCrossChainTx): Promise<MsgProcessCrossChainTxResponse>;
|
|
80
118
|
ProcessZion(request: MsgProcessZionCrossChainTx): Promise<MsgProcessZionCrossChainTxResponse>;
|
|
81
119
|
ProcessToggleEmitZionEvents(request: MsgToggleEmitZionEvents): Promise<MsgProcessCrossChainTxResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* UpdateParams defines a governance operation for updating the module
|
|
122
|
+
* parameters. The authority is hard-coded to the x/gov module account.
|
|
123
|
+
*
|
|
124
|
+
* Since: cosmos-sdk 0.47
|
|
125
|
+
*/
|
|
126
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
82
127
|
}
|
|
83
128
|
export declare class MsgClientImpl implements Msg {
|
|
84
129
|
private readonly rpc;
|
|
@@ -86,6 +131,7 @@ export declare class MsgClientImpl implements Msg {
|
|
|
86
131
|
Process(request: MsgProcessCrossChainTx): Promise<MsgProcessCrossChainTxResponse>;
|
|
87
132
|
ProcessZion(request: MsgProcessZionCrossChainTx): Promise<MsgProcessZionCrossChainTxResponse>;
|
|
88
133
|
ProcessToggleEmitZionEvents(request: MsgToggleEmitZionEvents): Promise<MsgProcessCrossChainTxResponse>;
|
|
134
|
+
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
89
135
|
}
|
|
90
136
|
interface Rpc {
|
|
91
137
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -3,10 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MsgClientImpl = exports.MsgToggleEmitZionEvents = exports.MsgCreateEmitEvent = exports.MsgProcessZionCrossChainTxResponse = exports.MsgProcessCrossChainTxResponse = exports.MsgProcessZionCrossChainTx = exports.MsgProcessCrossChainTx = exports.protobufPackage = void 0;
|
|
6
|
+
exports.MsgClientImpl = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.MsgToggleEmitZionEvents = exports.MsgCreateEmitEvent = exports.MsgProcessZionCrossChainTxResponse = exports.MsgProcessCrossChainTxResponse = exports.MsgProcessZionCrossChainTx = exports.MsgProcessCrossChainTx = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const ccm_1 = require("./ccm");
|
|
10
11
|
exports.protobufPackage = "Switcheo.carbon.ccm";
|
|
11
12
|
const baseMsgProcessCrossChainTx = {
|
|
12
13
|
submitter: "",
|
|
@@ -431,6 +432,99 @@ exports.MsgToggleEmitZionEvents = {
|
|
|
431
432
|
return message;
|
|
432
433
|
},
|
|
433
434
|
};
|
|
435
|
+
const baseMsgUpdateParams = { authority: "" };
|
|
436
|
+
exports.MsgUpdateParams = {
|
|
437
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
438
|
+
if (message.authority !== "") {
|
|
439
|
+
writer.uint32(10).string(message.authority);
|
|
440
|
+
}
|
|
441
|
+
if (message.params !== undefined) {
|
|
442
|
+
ccm_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
443
|
+
}
|
|
444
|
+
return writer;
|
|
445
|
+
},
|
|
446
|
+
decode(input, length) {
|
|
447
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
448
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
449
|
+
const message = Object.assign({}, baseMsgUpdateParams);
|
|
450
|
+
while (reader.pos < end) {
|
|
451
|
+
const tag = reader.uint32();
|
|
452
|
+
switch (tag >>> 3) {
|
|
453
|
+
case 1:
|
|
454
|
+
message.authority = reader.string();
|
|
455
|
+
break;
|
|
456
|
+
case 2:
|
|
457
|
+
message.params = ccm_1.Params.decode(reader, reader.uint32());
|
|
458
|
+
break;
|
|
459
|
+
default:
|
|
460
|
+
reader.skipType(tag & 7);
|
|
461
|
+
break;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
return message;
|
|
465
|
+
},
|
|
466
|
+
fromJSON(object) {
|
|
467
|
+
const message = Object.assign({}, baseMsgUpdateParams);
|
|
468
|
+
message.authority =
|
|
469
|
+
object.authority !== undefined && object.authority !== null
|
|
470
|
+
? String(object.authority)
|
|
471
|
+
: "";
|
|
472
|
+
message.params =
|
|
473
|
+
object.params !== undefined && object.params !== null
|
|
474
|
+
? ccm_1.Params.fromJSON(object.params)
|
|
475
|
+
: undefined;
|
|
476
|
+
return message;
|
|
477
|
+
},
|
|
478
|
+
toJSON(message) {
|
|
479
|
+
const obj = {};
|
|
480
|
+
message.authority !== undefined && (obj.authority = message.authority);
|
|
481
|
+
message.params !== undefined &&
|
|
482
|
+
(obj.params = message.params ? ccm_1.Params.toJSON(message.params) : undefined);
|
|
483
|
+
return obj;
|
|
484
|
+
},
|
|
485
|
+
fromPartial(object) {
|
|
486
|
+
var _a;
|
|
487
|
+
const message = Object.assign({}, baseMsgUpdateParams);
|
|
488
|
+
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
489
|
+
message.params =
|
|
490
|
+
object.params !== undefined && object.params !== null
|
|
491
|
+
? ccm_1.Params.fromPartial(object.params)
|
|
492
|
+
: undefined;
|
|
493
|
+
return message;
|
|
494
|
+
},
|
|
495
|
+
};
|
|
496
|
+
const baseMsgUpdateParamsResponse = {};
|
|
497
|
+
exports.MsgUpdateParamsResponse = {
|
|
498
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
499
|
+
return writer;
|
|
500
|
+
},
|
|
501
|
+
decode(input, length) {
|
|
502
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
503
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
504
|
+
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
505
|
+
while (reader.pos < end) {
|
|
506
|
+
const tag = reader.uint32();
|
|
507
|
+
switch (tag >>> 3) {
|
|
508
|
+
default:
|
|
509
|
+
reader.skipType(tag & 7);
|
|
510
|
+
break;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
return message;
|
|
514
|
+
},
|
|
515
|
+
fromJSON(_) {
|
|
516
|
+
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
517
|
+
return message;
|
|
518
|
+
},
|
|
519
|
+
toJSON(_) {
|
|
520
|
+
const obj = {};
|
|
521
|
+
return obj;
|
|
522
|
+
},
|
|
523
|
+
fromPartial(_) {
|
|
524
|
+
const message = Object.assign({}, baseMsgUpdateParamsResponse);
|
|
525
|
+
return message;
|
|
526
|
+
},
|
|
527
|
+
};
|
|
434
528
|
class MsgClientImpl {
|
|
435
529
|
constructor(rpc) {
|
|
436
530
|
this.rpc = rpc;
|
|
@@ -438,6 +532,7 @@ class MsgClientImpl {
|
|
|
438
532
|
this.ProcessZion = this.ProcessZion.bind(this);
|
|
439
533
|
this.ProcessToggleEmitZionEvents =
|
|
440
534
|
this.ProcessToggleEmitZionEvents.bind(this);
|
|
535
|
+
this.UpdateParams = this.UpdateParams.bind(this);
|
|
441
536
|
}
|
|
442
537
|
Process(request) {
|
|
443
538
|
const data = exports.MsgProcessCrossChainTx.encode(request).finish();
|
|
@@ -454,6 +549,11 @@ class MsgClientImpl {
|
|
|
454
549
|
const promise = this.rpc.request("Switcheo.carbon.ccm.Msg", "ProcessToggleEmitZionEvents", data);
|
|
455
550
|
return promise.then((data) => exports.MsgProcessCrossChainTxResponse.decode(new minimal_1.default.Reader(data)));
|
|
456
551
|
}
|
|
552
|
+
UpdateParams(request) {
|
|
553
|
+
const data = exports.MsgUpdateParams.encode(request).finish();
|
|
554
|
+
const promise = this.rpc.request("Switcheo.carbon.ccm.Msg", "UpdateParams", data);
|
|
555
|
+
return promise.then((data) => exports.MsgUpdateParamsResponse.decode(new minimal_1.default.Reader(data)));
|
|
556
|
+
}
|
|
457
557
|
}
|
|
458
558
|
exports.MsgClientImpl = MsgClientImpl;
|
|
459
559
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
@@ -10,4 +10,4 @@ export { RateStrategyParams } from "./rate_strategy_params";
|
|
|
10
10
|
export { RewardScheme, CreateRewardSchemeParams, UpdateRewardSchemeParams, RewardDebt } from "./reward_scheme";
|
|
11
11
|
export { StablecoinDebtInfo } from "./stablecoin_debt_info";
|
|
12
12
|
export { StablecoinInterestInfo } from "./stablecoin_interest_info";
|
|
13
|
-
export { MsgAddRateStrategy, MsgAddRateStrategyResponse, MsgUpdateRateStrategy, MsgUpdateRateStrategyResponse, MsgRemoveRateStrategy, MsgRemoveRateStrategyResponse, MsgAddAsset, MsgAddAssetResponse, MsgUpdateAsset, MsgUpdateAssetResponse, MsgSupplyAsset, MsgSupplyAssetResponse, MsgWithdrawAsset, MsgWithdrawAssetResponse, MsgLockCollateral, MsgLockCollateralResponse, MsgUnlockCollateral, MsgUnlockCollateralResponse, MsgBorrowAsset, MsgBorrowAssetResponse, MsgRepayAsset, MsgRepayAssetResponse, MsgSupplyAssetAndLockCollateral, MsgSupplyAssetAndLockCollateralResponse, MsgUnlockCollateralAndWithdrawAsset, MsgUnlockCollateralAndWithdrawAssetResponse, MsgLiquidateCollateral, MsgLiquidateCollateralResponse, MsgSetLiquidationFee, MsgSetLiquidationFeeResponse, MsgSetInterestFee, MsgSetInterestFeeResponse, MsgRepayAssetWithCdpTokens, MsgRepayAssetWithCdpTokensResponse, MsgRepayAssetWithCollateral, MsgRepayAssetWithCollateralResponse, MsgSetStablecoinMintCap, MsgSetStablecoinMintCapResponse, MsgSetStablecoinInterestRate, MsgSetStablecoinInterestRateResponse, MsgMintStablecoin, MsgMintStablecoinResponse, MsgReturnStablecoin, MsgReturnStablecoinResponse, MsgSetCompleteLiquidationThreshold, MsgSetCompleteLiquidationThresholdResponse, MsgSetMinimumCloseFactor, MsgSetMinimumCloseFactorResponse, MsgSetSmallLiquidationSize, MsgSetSmallLiquidationSizeResponse, MsgLiquidateCollateralWithCdpTokens, MsgLiquidateCollateralWithCdpTokensResponse, MsgLiquidateCollateralWithCollateral, MsgLiquidateCollateralWithCollateralResponse, MsgLiquidateCollateralWithStablecoin, MsgLiquidateCollateralWithStablecoinResponse, MsgCreateRewardScheme, MsgCreateRewardSchemeResponse, MsgUpdateRewardScheme, MsgUpdateRewardSchemeResponse, MsgClaimRewards, MsgClaimRewardsResponse, MsgSetStalePriceGracePeriod, MsgSetStalePriceGracePeriodResponse, MsgSetCdpPaused, MsgSetCdpPausedResponse, MsgReturnStablecoinWithInterestInCollateral, MsgReturnStablecoinWithInterestInCollateralResponse, MsgReturnStablecoinWithInterestInCdpTokens, MsgReturnStablecoinWithInterestInCdpTokensResponse, MsgLiquidateCollateralWithStablecoinAndInterestInCdpTokens, MsgLiquidateCollateralWithStablecoinAndInterestInCdpTokensResponse, MsgLiquidateCollateralWithStablecoinAndInterestInCollateral, MsgLiquidateCollateralWithStablecoinAndInterestInCollateralResponse, MsgConvertTokenInCdpToGroupTokens, MsgConvertTokenInCdpToGroupTokensResponse, MsgAddEModeCategory, MsgAddEModeCategoryResponse, MsgUpdateEModeCategory, UpdateEModeCategoryParams, MsgUpdateEModeCategoryResponse, MsgSetAccountEMode, MsgSetAccountEModeResponse, MsgRemoveAccountEMode, MsgRemoveAccountEModeResponse } from "./tx";
|
|
13
|
+
export { MsgAddRateStrategy, MsgAddRateStrategyResponse, MsgUpdateRateStrategy, MsgUpdateRateStrategyResponse, MsgRemoveRateStrategy, MsgRemoveRateStrategyResponse, MsgAddAsset, MsgAddAssetResponse, MsgUpdateAsset, MsgUpdateAssetResponse, MsgSupplyAsset, MsgSupplyAssetResponse, MsgWithdrawAsset, MsgWithdrawAssetResponse, MsgLockCollateral, MsgLockCollateralResponse, MsgUnlockCollateral, MsgUnlockCollateralResponse, MsgBorrowAsset, MsgBorrowAssetResponse, MsgRepayAsset, MsgRepayAssetResponse, MsgSupplyAssetAndLockCollateral, MsgSupplyAssetAndLockCollateralResponse, MsgUnlockCollateralAndWithdrawAsset, MsgUnlockCollateralAndWithdrawAssetResponse, MsgLiquidateCollateral, MsgLiquidateCollateralResponse, MsgSetLiquidationFee, MsgSetLiquidationFeeResponse, MsgSetInterestFee, MsgSetInterestFeeResponse, MsgRepayAssetWithCdpTokens, MsgRepayAssetWithCdpTokensResponse, MsgRepayAssetWithCollateral, MsgRepayAssetWithCollateralResponse, MsgSetStablecoinMintCap, MsgSetStablecoinMintCapResponse, MsgSetStablecoinInterestRate, MsgSetStablecoinInterestRateResponse, MsgMintStablecoin, MsgMintStablecoinResponse, MsgReturnStablecoin, MsgReturnStablecoinResponse, MsgSetCompleteLiquidationThreshold, MsgSetCompleteLiquidationThresholdResponse, MsgSetMinimumCloseFactor, MsgSetMinimumCloseFactorResponse, MsgSetSmallLiquidationSize, MsgSetSmallLiquidationSizeResponse, MsgLiquidateCollateralWithCdpTokens, MsgLiquidateCollateralWithCdpTokensResponse, MsgLiquidateCollateralWithCollateral, MsgLiquidateCollateralWithCollateralResponse, MsgLiquidateCollateralWithStablecoin, MsgLiquidateCollateralWithStablecoinResponse, MsgCreateRewardScheme, MsgCreateRewardSchemeResponse, MsgUpdateRewardScheme, MsgUpdateRewardSchemeResponse, MsgClaimRewards, MsgClaimRewardsResponse, MsgSetStalePriceGracePeriod, MsgSetStalePriceGracePeriodResponse, MsgSetCdpPaused, MsgSetCdpPausedResponse, MsgReturnStablecoinWithInterestInCollateral, MsgReturnStablecoinWithInterestInCollateralResponse, MsgReturnStablecoinWithInterestInCdpTokens, MsgReturnStablecoinWithInterestInCdpTokensResponse, MsgLiquidateCollateralWithStablecoinAndInterestInCdpTokens, MsgLiquidateCollateralWithStablecoinAndInterestInCdpTokensResponse, MsgLiquidateCollateralWithStablecoinAndInterestInCollateral, MsgLiquidateCollateralWithStablecoinAndInterestInCollateralResponse, MsgConvertTokenInCdpToGroupTokens, MsgConvertTokenInCdpToGroupTokensResponse, MsgAddEModeCategory, MsgAddEModeCategoryResponse, MsgUpdateEModeCategory, UpdateEModeCategoryParams, MsgUpdateEModeCategoryResponse, MsgSetAccountEMode, MsgSetAccountEModeResponse, MsgRemoveAccountEMode, MsgRemoveAccountEModeResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx";
|