carbon-js-sdk 0.7.6 → 0.7.7
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/CarbonSDK.d.ts +4 -0
- package/lib/CarbonSDK.js +50 -12
- package/lib/clients/BatchQueryClient.js +4 -4
- package/lib/clients/CarbonQueryClient.js +1 -1
- package/lib/clients/ETHClient.js +15 -15
- package/lib/clients/GasFee.d.ts +12 -0
- package/lib/clients/GasFee.js +38 -0
- package/lib/clients/HydrogenClient.js +1 -1
- package/lib/clients/InsightsQueryClient.js +3 -3
- package/lib/clients/NEOClient.js +12 -8
- package/lib/clients/TokenClient.js +2 -2
- package/lib/clients/ZILClient.js +17 -17
- package/lib/codec/Switcheo/carbon/adl/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/admin/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/admin/query.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/admin/tx.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/bank/event.d.ts +7 -7
- package/lib/codec/Switcheo/carbon/bank/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/bank/query.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/book/book.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/book/event.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/book/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/book/legacy.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/book/query.d.ts +12 -12
- package/lib/codec/Switcheo/carbon/broker/amm.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/broker/candlestick.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/broker/event.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/broker/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/broker/incoming_liquidations.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/broker/pagination.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/broker/query.d.ts +8 -8
- package/lib/codec/Switcheo/carbon/broker/tx.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/btcx/denom_cross_chain_info.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/btcx/denom_info.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/btcx/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/btcx/query.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/btcx/tx.d.ts +8 -8
- package/lib/codec/Switcheo/carbon/ccm/ccm.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/ccm/genesis.d.ts +7 -7
- package/lib/codec/Switcheo/carbon/ccm/query.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +8 -8
- package/lib/codec/Switcheo/carbon/cdp/asset_params.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/cdp/cdp_liquidations.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/cdp/debt_info.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/cdp/e_mode_category.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/cdp/event.d.ts +36 -36
- package/lib/codec/Switcheo/carbon/cdp/genesis.d.ts +10 -10
- package/lib/codec/Switcheo/carbon/cdp/params.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/cdp/query.d.ts +53 -53
- package/lib/codec/Switcheo/carbon/cdp/rate_strategy_params.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/cdp/reward_scheme.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/cdp/stablecoin_debt_info.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/cdp/stablecoin_interest_info.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +87 -87
- package/lib/codec/Switcheo/carbon/coin/bridge.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/coin/event.d.ts +14 -14
- package/lib/codec/Switcheo/carbon/coin/genesis.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/coin/group.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/coin/proposal.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/coin/query.d.ts +26 -26
- package/lib/codec/Switcheo/carbon/coin/token.d.ts +9 -9
- package/lib/codec/Switcheo/carbon/coin/tx.d.ts +48 -48
- package/lib/codec/Switcheo/carbon/erc20/erc20.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/erc20/events.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/erc20/genesis.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/erc20/query.d.ts +8 -8
- package/lib/codec/Switcheo/carbon/erc20/tx.d.ts +16 -16
- package/lib/codec/Switcheo/carbon/evmbank/genesis.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/evmbank/query.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/evmmerge/address.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/evmmerge/event.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/evmmerge/genesis.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/evmmerge/offchain.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/evmmerge/query.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/evmmerge/tx.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/fee/event.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/fee/fee.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/fee/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/fee/proposal.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/fee/query.d.ts +10 -10
- package/lib/codec/Switcheo/carbon/fee/tx.d.ts +10 -10
- package/lib/codec/Switcheo/carbon/headersync/consensus_peers.d.ts +7 -7
- package/lib/codec/Switcheo/carbon/headersync/genesis.d.ts +7 -7
- package/lib/codec/Switcheo/carbon/headersync/query.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/headersync/tx.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/inflation/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/inflation/inflation.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/inflation/query.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/insurance/event.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/insurance/fund.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/insurance/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/insurance/query.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/insurance/tx.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/leverage/event.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/leverage/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/leverage/leverage.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/leverage/query.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/leverage/tx.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/liquidation/genesis.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/liquidation/liquidation.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/liquidation/quote_changes.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/liquiditypool/event.d.ts +15 -15
- package/lib/codec/Switcheo/carbon/liquiditypool/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +12 -12
- package/lib/codec/Switcheo/carbon/liquiditypool/proposal.d.ts +11 -11
- package/lib/codec/Switcheo/carbon/liquiditypool/query.d.ts +31 -31
- package/lib/codec/Switcheo/carbon/liquiditypool/reward.d.ts +18 -18
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +39 -39
- package/lib/codec/Switcheo/carbon/lockproxy/event.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/lockproxy/genesis.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/lockproxy/lockproxy.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/lockproxy/query.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/lockproxy/tx.d.ts +12 -12
- package/lib/codec/Switcheo/carbon/market/event.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/market/fee.d.ts +7 -7
- package/lib/codec/Switcheo/carbon/market/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/market/market.d.ts +7 -7
- package/lib/codec/Switcheo/carbon/market/proposal.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/market/query.d.ts +20 -20
- package/lib/codec/Switcheo/carbon/market/tx.d.ts +21 -21
- package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/marketstats/marketstats.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/marketstats/params.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/misc/block.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/misc/message.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/misc/message_type.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/misc/query.d.ts +16 -16
- package/lib/codec/Switcheo/carbon/misc/trade.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/misc/transaction.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/oracle/event.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/oracle/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/oracle/oracle.d.ts +8 -8
- package/lib/codec/Switcheo/carbon/oracle/proposal.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/oracle/query.d.ts +28 -28
- package/lib/codec/Switcheo/carbon/oracle/slashing.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +14 -14
- package/lib/codec/Switcheo/carbon/order/event.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/order/genesis.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/order/order.d.ts +9 -9
- package/lib/codec/Switcheo/carbon/order/query.d.ts +12 -12
- package/lib/codec/Switcheo/carbon/order/tx.d.ts +12 -12
- package/lib/codec/Switcheo/carbon/perpspool/event.d.ts +9 -9
- package/lib/codec/Switcheo/carbon/perpspool/genesis.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/perpspool/market.d.ts +8 -8
- package/lib/codec/Switcheo/carbon/perpspool/params.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/perpspool/pool.d.ts +8 -8
- package/lib/codec/Switcheo/carbon/perpspool/query.d.ts +20 -20
- package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +18 -18
- package/lib/codec/Switcheo/carbon/position/event.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/position/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/position/position.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/position/query.d.ts +8 -8
- package/lib/codec/Switcheo/carbon/position/tx.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/pricing/event.d.ts +8 -8
- package/lib/codec/Switcheo/carbon/pricing/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/pricing/legacy.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/pricing/pricing.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/pricing/proposal.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/pricing/query.d.ts +16 -16
- package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +12 -12
- package/lib/codec/Switcheo/carbon/profile/event.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/profile/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/profile/profile.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/profile/query.d.ts +8 -8
- package/lib/codec/Switcheo/carbon/profile/tx.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/sequence/genesis.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/sequence/query.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/sequence/tx.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/subaccount/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/subaccount/legacy.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/subaccount/query.d.ts +19 -19
- package/lib/codec/Switcheo/carbon/subaccount/subaccount.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +8 -8
- package/lib/codec/alliance/alliance.d.ts +5 -5
- package/lib/codec/alliance/delegations.d.ts +8 -8
- package/lib/codec/alliance/events.d.ts +6 -6
- package/lib/codec/alliance/genesis.d.ts +7 -7
- package/lib/codec/alliance/gov.d.ts +5 -5
- package/lib/codec/alliance/params.d.ts +4 -4
- package/lib/codec/alliance/query.d.ts +24 -24
- package/lib/codec/alliance/tx.d.ts +10 -10
- package/lib/codec/carbon-models.js +5 -1
- package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +3 -3
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +4 -4
- package/lib/codec/cosmos/app/v1alpha1/module.d.ts +5 -5
- package/lib/codec/cosmos/app/v1alpha1/query.d.ts +4 -4
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +5 -5
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +20 -20
- package/lib/codec/cosmos/authz/v1beta1/authz.d.ts +6 -6
- package/lib/codec/cosmos/authz/v1beta1/event.d.ts +4 -4
- package/lib/codec/cosmos/authz/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +8 -8
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +8 -8
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +3 -3
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +9 -9
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +21 -21
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +6 -6
- package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +12 -12
- package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +4 -4
- package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +4 -4
- package/lib/codec/cosmos/base/query/v1beta1/pagination.d.ts +4 -4
- package/lib/codec/cosmos/base/reflection/v1beta1/reflection.d.ts +6 -6
- package/lib/codec/cosmos/base/reflection/v2alpha1/reflection.d.ts +28 -28
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +11 -11
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +5 -5
- package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +5 -5
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +21 -21
- package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +4 -4
- package/lib/codec/cosmos/base/v1beta1/coin.d.ts +6 -6
- package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +5 -5
- package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +4 -4
- package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +3 -3
- package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +7 -7
- package/lib/codec/cosmos/crypto/multisig/keys.d.ts +3 -3
- package/lib/codec/cosmos/crypto/multisig/v1beta1/multisig.d.ts +4 -4
- package/lib/codec/cosmos/crypto/secp256k1/keys.d.ts +4 -4
- package/lib/codec/cosmos/crypto/secp256r1/keys.d.ts +4 -4
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +14 -14
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +10 -10
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +22 -22
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +10 -10
- package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +3 -3
- package/lib/codec/cosmos/evidence/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +6 -6
- package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/feegrant/v1beta1/feegrant.d.ts +6 -6
- package/lib/codec/cosmos/feegrant/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +8 -8
- package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +6 -6
- package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1/gov.d.ts +10 -10
- package/lib/codec/cosmos/gov/v1/query.d.ts +18 -18
- package/lib/codec/cosmos/gov/v1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1/tx.d.ts +12 -12
- package/lib/codec/cosmos/gov/v1/tx.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +11 -11
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +18 -18
- package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +10 -10
- package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/group/v1/events.d.ts +11 -11
- package/lib/codec/cosmos/group/v1/events.js +2 -2
- package/lib/codec/cosmos/group/v1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/group/v1/query.d.ts +30 -30
- package/lib/codec/cosmos/group/v1/tx.d.ts +30 -30
- package/lib/codec/cosmos/group/v1/tx.js +4 -4
- package/lib/codec/cosmos/group/v1/types.d.ts +13 -13
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +4 -4
- package/lib/codec/cosmos/mint/v1beta1/query.d.ts +8 -8
- package/lib/codec/cosmos/nft/v1beta1/event.d.ts +5 -5
- package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +4 -4
- package/lib/codec/cosmos/nft/v1beta1/query.d.ts +16 -16
- package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +3 -3
- package/lib/codec/cosmos/orm/v1/orm.d.ts +6 -6
- package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +4 -4
- package/lib/codec/cosmos/params/v1beta1/params.d.ts +4 -4
- package/lib/codec/cosmos/params/v1beta1/query.d.ts +7 -7
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +6 -6
- package/lib/codec/cosmos/slashing/v1beta1/query.d.ts +8 -8
- package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +4 -4
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +4 -4
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +30 -30
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +22 -22
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +14 -14
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +7 -7
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +12 -12
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +15 -15
- package/lib/codec/cosmos/tx/v1beta1/tx.js +4 -4
- package/lib/codec/cosmos/upgrade/v1beta1/query.d.ts +12 -12
- package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +6 -6
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -6
- package/lib/codec/cosmos/vesting/v1beta1/tx.d.ts +8 -8
- package/lib/codec/cosmos/vesting/v1beta1/vesting.d.ts +8 -8
- package/lib/codec/cosmos-models.js +5 -1
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +4 -4
- package/lib/codec/ethermint/evm/v1/evm.d.ts +10 -10
- package/lib/codec/ethermint/evm/v1/genesis.d.ts +4 -4
- package/lib/codec/ethermint/evm/v1/query.d.ts +26 -26
- package/lib/codec/ethermint/evm/v1/tx.d.ts +8 -8
- package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +3 -3
- package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +3 -3
- package/lib/codec/ethermint/feemarket/v1/query.d.ts +8 -8
- package/lib/codec/ethermint/types/v1/account.d.ts +3 -3
- package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +3 -3
- package/lib/codec/ethermint/types/v1/indexer.d.ts +3 -3
- package/lib/codec/ethermint/types/v1/web3.d.ts +3 -3
- package/lib/codec/ethermint-models.js +5 -1
- package/lib/codec/google/protobuf/any.d.ts +3 -3
- package/lib/codec/google/protobuf/duration.d.ts +3 -3
- package/lib/codec/google/protobuf/timestamp.d.ts +3 -3
- package/lib/codec/google/protobuf/wrappers.d.ts +11 -11
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +4 -4
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/host.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/query.d.ts +4 -4
- package/lib/codec/ibc/applications/interchain_accounts/v1/account.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.d.ts +7 -7
- package/lib/codec/ibc/applications/interchain_accounts/v1/metadata.d.ts +3 -3
- package/lib/codec/ibc/applications/interchain_accounts/v1/packet.d.ts +4 -4
- package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +3 -3
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +10 -10
- package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +4 -4
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +4 -4
- package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +3 -3
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +8 -8
- package/lib/codec/ibc/core/channel/v1/genesis.d.ts +4 -4
- package/lib/codec/ibc/core/channel/v1/query.d.ts +28 -28
- package/lib/codec/ibc/core/channel/v1/tx.d.ts +22 -22
- package/lib/codec/ibc/core/client/v1/client.d.ts +9 -9
- package/lib/codec/ibc/core/client/v1/genesis.d.ts +5 -5
- package/lib/codec/ibc/core/client/v1/query.d.ts +18 -18
- package/lib/codec/ibc/core/client/v1/tx.d.ts +10 -10
- package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +6 -6
- package/lib/codec/ibc/core/connection/v1/connection.d.ts +9 -9
- package/lib/codec/ibc/core/connection/v1/genesis.d.ts +3 -3
- package/lib/codec/ibc/core/connection/v1/query.d.ts +12 -12
- package/lib/codec/ibc/core/connection/v1/tx.d.ts +10 -10
- package/lib/codec/ibc/core/types/v1/genesis.d.ts +3 -3
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts +3 -3
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts +18 -18
- package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +18 -18
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +7 -7
- package/lib/codec/ibc-models.js +5 -1
- package/lib/codec/index.js +5 -1
- package/lib/codec/polynetwork-models.js +5 -1
- package/lib/codec/proofs.d.ts +15 -15
- package/lib/codec/tendermint/abci/types.d.ts +46 -46
- package/lib/codec/tendermint/crypto/keys.d.ts +3 -3
- package/lib/codec/tendermint/crypto/proof.d.ts +7 -7
- package/lib/codec/tendermint/libs/bits/types.d.ts +3 -3
- package/lib/codec/tendermint/p2p/types.d.ts +6 -6
- package/lib/codec/tendermint/types/block.d.ts +3 -3
- package/lib/codec/tendermint/types/evidence.d.ts +6 -6
- package/lib/codec/tendermint/types/params.d.ts +8 -8
- package/lib/codec/tendermint/types/types.d.ts +15 -15
- package/lib/codec/tendermint/types/validator.d.ts +5 -5
- package/lib/codec/tendermint/version/types.d.ts +4 -4
- package/lib/constant/address.d.ts +1 -1
- package/lib/constant/generic.js +1 -1
- package/lib/constant/ibc.d.ts +3 -3
- package/lib/constant/ibc.js +5 -1
- package/lib/constant/index.js +5 -1
- package/lib/constant/node.d.ts +1 -1
- package/lib/eth/index.js +5 -1
- package/lib/hydrogen/index.js +5 -1
- package/lib/hydrogen/transfer.d.ts +2 -2
- package/lib/index.js +5 -1
- package/lib/insights/common.d.ts +1 -1
- package/lib/insights/index.js +5 -1
- package/lib/insights/position.d.ts +1 -1
- package/lib/modules/cdp.js +45 -45
- package/lib/modules/cosmwasm.js +2 -2
- package/lib/modules/evm.d.ts +1 -1
- package/lib/modules/evm.js +6 -6
- package/lib/modules/gov.js +12 -12
- package/lib/modules/index.js +5 -1
- package/lib/modules/liquiditypool.js +1 -1
- package/lib/modules/order.js +2 -2
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
- package/lib/provider/account/EthLedgerAccount/index.js +5 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.js +5 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.d.ts +1 -1
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +8 -4
- package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/index.js +5 -1
- package/lib/provider/account/index.js +5 -1
- package/lib/provider/amino/types/admin.js +32 -28
- package/lib/provider/amino/types/bank.js +6 -2
- package/lib/provider/amino/types/broker.js +6 -2
- package/lib/provider/amino/types/cdp.js +31 -27
- package/lib/provider/amino/types/coin.js +9 -5
- package/lib/provider/amino/types/erc20.js +7 -3
- package/lib/provider/amino/types/evm.js +6 -2
- package/lib/provider/amino/types/evmmerge.js +6 -2
- package/lib/provider/amino/types/feemarket.js +6 -2
- package/lib/provider/amino/types/gov.js +10 -6
- package/lib/provider/amino/types/ibc.js +6 -2
- package/lib/provider/amino/types/leverage.js +6 -2
- package/lib/provider/amino/types/liquidityPool.js +12 -8
- package/lib/provider/amino/types/market.js +11 -7
- package/lib/provider/amino/types/oracle.js +7 -3
- package/lib/provider/amino/types/order.js +9 -5
- package/lib/provider/amino/types/perpspool.js +11 -7
- package/lib/provider/amino/types/position.js +6 -2
- package/lib/provider/amino/types/profile.js +6 -2
- package/lib/provider/amino/types/staking.js +9 -5
- package/lib/provider/amino/types/subaccount.js +8 -4
- package/lib/provider/amino/utils.d.ts +2 -2
- package/lib/provider/amino/utils.js +11 -11
- package/lib/provider/keplr/KeplrAccount.js +6 -6
- package/lib/provider/leap/LeapAccount.js +2 -2
- package/lib/provider/ledger/ledger.js +9 -6
- package/lib/provider/metamask/MetaMask.d.ts +1 -1
- package/lib/provider/metamask/MetaMask.js +28 -24
- package/lib/provider/metamask/error.d.ts +1 -1
- package/lib/provider/o3/O3Types.d.ts +1 -1
- package/lib/provider/o3/O3Wallet.js +15 -11
- package/lib/provider/o3/index.js +5 -1
- package/lib/provider/zilpay/Zilpay.js +4 -4
- package/lib/provider/zilpay/index.js +5 -1
- package/lib/util/address.d.ts +5 -5
- package/lib/util/address.js +19 -15
- package/lib/util/api.d.ts +3 -3
- package/lib/util/api.js +4 -4
- package/lib/util/blockchain.d.ts +7 -7
- package/lib/util/blockchain.js +4 -4
- package/lib/util/eip712.js +3 -3
- package/lib/util/fetch.js +1 -1
- package/lib/util/generic.d.ts +3 -2
- package/lib/util/generic.js +3 -3
- package/lib/util/gov.d.ts +1 -1
- package/lib/util/index.js +5 -1
- package/lib/util/legacyEIP712.d.ts +2 -2
- package/lib/util/legacyEIP712.js +2 -2
- package/lib/util/network.js +3 -3
- package/lib/util/number.d.ts +4 -4
- package/lib/util/number.js +5 -5
- package/lib/util/tx.d.ts +3 -3
- package/lib/util/tx.js +5 -1
- package/lib/util/type.d.ts +1 -1
- package/lib/wallet/CarbonSigner.d.ts +5 -5
- package/lib/wallet/CarbonSigner.js +6 -6
- package/lib/wallet/CarbonSigningClient.js +15 -15
- package/lib/wallet/CarbonWallet.d.ts +4 -14
- package/lib/wallet/CarbonWallet.js +23 -51
- package/lib/wallet/index.js +5 -1
- package/lib/websocket/connector.js +8 -4
- package/lib/websocket/index.js +5 -1
- package/lib/websocket/types.d.ts +1 -1
- 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 -57
- package/lib/codec/book/book.js +0 -319
- 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 -141
- package/lib/codec/book/query.js +0 -606
- 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 -50
- package/lib/codec/broker/amm.js +0 -326
- 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 -53
- package/lib/codec/broker/event.js +0 -485
- 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 -25
- package/lib/codec/broker/genesis.js +0 -79
- package/lib/codec/broker/incoming_liquidations.d.ts +0 -18
- package/lib/codec/broker/incoming_liquidations.js +0 -93
- package/lib/codec/broker/incoming_pool_swap.d.ts +0 -23
- package/lib/codec/broker/incoming_pool_swap.js +0 -136
- 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 -446
- package/lib/codec/cdp/event.js +0 -2913
- 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 -68
- package/lib/codec/cdp/params.js +0 -210
- package/lib/codec/cdp/query.d.ts +0 -644
- package/lib/codec/cdp/query.js +0 -3099
- 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 -1026
- package/lib/codec/cdp/tx.js +0 -5191
- 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 -104
- package/lib/codec/coin/token.js +0 -700
- package/lib/codec/coin/tx.d.ts +0 -586
- package/lib/codec/coin/tx.js +0 -3131
- package/lib/codec/crisis/genesis.d.ts +0 -18
- package/lib/codec/crisis/genesis.js +0 -46
- package/lib/codec/crisis/query.d.ts +0 -43
- package/lib/codec/crisis/query.js +0 -103
- package/lib/codec/crisis/tx.d.ts +0 -12
- package/lib/codec/crisis/tx.js +0 -20
- 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/ethermint/evm/v1/events.d.ts +0 -72
- package/lib/codec/ethermint/evm/v1/events.js +0 -303
- package/lib/codec/ethermint/feemarket/v1/events.d.ts +0 -34
- package/lib/codec/ethermint/feemarket/v1/events.js +0 -116
- package/lib/codec/ethermint/feemarket/v1/tx.d.ts +0 -55
- package/lib/codec/ethermint/feemarket/v1/tx.js +0 -120
- 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/ibc/applications/fee/v1/ack.d.ts +0 -24
- package/lib/codec/ibc/applications/fee/v1/ack.js +0 -125
- package/lib/codec/ibc/applications/fee/v1/fee.d.ts +0 -68
- package/lib/codec/ibc/applications/fee/v1/fee.js +0 -289
- package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +0 -93
- package/lib/codec/ibc/applications/fee/v1/genesis.js +0 -390
- package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +0 -25
- package/lib/codec/ibc/applications/fee/v1/metadata.js +0 -71
- package/lib/codec/ibc/applications/fee/v1/query.d.ts +0 -312
- package/lib/codec/ibc/applications/fee/v1/query.js +0 -1187
- package/lib/codec/ibc/applications/fee/v1/tx.d.ts +0 -171
- package/lib/codec/ibc/applications/fee/v1/tx.js +0 -524
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +0 -78
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +0 -296
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +0 -80
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.js +0 -439
- 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 -26
- package/lib/codec/inflation/inflation.js +0 -165
- 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 -182
- package/lib/codec/liquiditypool/event.js +0 -1268
- 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 -32
- package/lib/codec/liquiditypool/genesis.js +0 -228
- 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 -370
- package/lib/codec/liquiditypool/query.js +0 -1738
- package/lib/codec/liquiditypool/reward.d.ts +0 -196
- package/lib/codec/liquiditypool/reward.js +0 -1204
- 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/legacy.d.ts +0 -62
- package/lib/codec/market/legacy.js +0 -630
- 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 -336
- package/lib/codec/oracle/query.js +0 -1551
- 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 -74
- package/lib/codec/position/position.js +0 -601
- 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/query/pagination.d.ts +0 -29
- package/lib/codec/query/pagination.js +0 -126
- 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 -28
- package/lib/codec/subaccount/genesis.js +0 -110
- 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 -229
- package/lib/codec/subaccount/query.js +0 -1026
- package/lib/codec/subaccount/subaccount.d.ts +0 -57
- package/lib/codec/subaccount/subaccount.js +0 -349
- package/lib/codec/subaccount/tx.d.ts +0 -92
- package/lib/codec/subaccount/tx.js +0 -395
- 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/modules/vault.d.ts +0 -56
- package/lib/modules/vault.js +0 -128
- package/lib/provider/amino/types/perpsliquidity.d.ts +0 -4
- package/lib/provider/amino/types/perpsliquidity.js +0 -73
- package/lib/provider/station/StationAccount.d.ts +0 -28
- package/lib/provider/station/StationAccount.js +0 -168
- package/lib/provider/station/index.d.ts +0 -2
- package/lib/provider/station/index.js +0 -10
|
@@ -138,97 +138,97 @@ export interface TxProof {
|
|
|
138
138
|
}
|
|
139
139
|
export declare const PartSetHeader: {
|
|
140
140
|
encode(message: PartSetHeader, writer?: _m0.Writer): _m0.Writer;
|
|
141
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
141
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PartSetHeader;
|
|
142
142
|
fromJSON(object: any): PartSetHeader;
|
|
143
143
|
toJSON(message: PartSetHeader): unknown;
|
|
144
144
|
fromPartial(object: DeepPartial<PartSetHeader>): PartSetHeader;
|
|
145
145
|
};
|
|
146
146
|
export declare const Part: {
|
|
147
147
|
encode(message: Part, writer?: _m0.Writer): _m0.Writer;
|
|
148
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
148
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Part;
|
|
149
149
|
fromJSON(object: any): Part;
|
|
150
150
|
toJSON(message: Part): unknown;
|
|
151
151
|
fromPartial(object: DeepPartial<Part>): Part;
|
|
152
152
|
};
|
|
153
153
|
export declare const BlockID: {
|
|
154
154
|
encode(message: BlockID, writer?: _m0.Writer): _m0.Writer;
|
|
155
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
155
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BlockID;
|
|
156
156
|
fromJSON(object: any): BlockID;
|
|
157
157
|
toJSON(message: BlockID): unknown;
|
|
158
158
|
fromPartial(object: DeepPartial<BlockID>): BlockID;
|
|
159
159
|
};
|
|
160
160
|
export declare const Header: {
|
|
161
161
|
encode(message: Header, writer?: _m0.Writer): _m0.Writer;
|
|
162
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
162
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Header;
|
|
163
163
|
fromJSON(object: any): Header;
|
|
164
164
|
toJSON(message: Header): unknown;
|
|
165
165
|
fromPartial(object: DeepPartial<Header>): Header;
|
|
166
166
|
};
|
|
167
167
|
export declare const Data: {
|
|
168
168
|
encode(message: Data, writer?: _m0.Writer): _m0.Writer;
|
|
169
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
169
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Data;
|
|
170
170
|
fromJSON(object: any): Data;
|
|
171
171
|
toJSON(message: Data): unknown;
|
|
172
172
|
fromPartial(object: DeepPartial<Data>): Data;
|
|
173
173
|
};
|
|
174
174
|
export declare const Vote: {
|
|
175
175
|
encode(message: Vote, writer?: _m0.Writer): _m0.Writer;
|
|
176
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
176
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Vote;
|
|
177
177
|
fromJSON(object: any): Vote;
|
|
178
178
|
toJSON(message: Vote): unknown;
|
|
179
179
|
fromPartial(object: DeepPartial<Vote>): Vote;
|
|
180
180
|
};
|
|
181
181
|
export declare const Commit: {
|
|
182
182
|
encode(message: Commit, writer?: _m0.Writer): _m0.Writer;
|
|
183
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
183
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Commit;
|
|
184
184
|
fromJSON(object: any): Commit;
|
|
185
185
|
toJSON(message: Commit): unknown;
|
|
186
186
|
fromPartial(object: DeepPartial<Commit>): Commit;
|
|
187
187
|
};
|
|
188
188
|
export declare const CommitSig: {
|
|
189
189
|
encode(message: CommitSig, writer?: _m0.Writer): _m0.Writer;
|
|
190
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
190
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CommitSig;
|
|
191
191
|
fromJSON(object: any): CommitSig;
|
|
192
192
|
toJSON(message: CommitSig): unknown;
|
|
193
193
|
fromPartial(object: DeepPartial<CommitSig>): CommitSig;
|
|
194
194
|
};
|
|
195
195
|
export declare const Proposal: {
|
|
196
196
|
encode(message: Proposal, writer?: _m0.Writer): _m0.Writer;
|
|
197
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
197
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Proposal;
|
|
198
198
|
fromJSON(object: any): Proposal;
|
|
199
199
|
toJSON(message: Proposal): unknown;
|
|
200
200
|
fromPartial(object: DeepPartial<Proposal>): Proposal;
|
|
201
201
|
};
|
|
202
202
|
export declare const SignedHeader: {
|
|
203
203
|
encode(message: SignedHeader, writer?: _m0.Writer): _m0.Writer;
|
|
204
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
204
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SignedHeader;
|
|
205
205
|
fromJSON(object: any): SignedHeader;
|
|
206
206
|
toJSON(message: SignedHeader): unknown;
|
|
207
207
|
fromPartial(object: DeepPartial<SignedHeader>): SignedHeader;
|
|
208
208
|
};
|
|
209
209
|
export declare const LightBlock: {
|
|
210
210
|
encode(message: LightBlock, writer?: _m0.Writer): _m0.Writer;
|
|
211
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
211
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LightBlock;
|
|
212
212
|
fromJSON(object: any): LightBlock;
|
|
213
213
|
toJSON(message: LightBlock): unknown;
|
|
214
214
|
fromPartial(object: DeepPartial<LightBlock>): LightBlock;
|
|
215
215
|
};
|
|
216
216
|
export declare const BlockMeta: {
|
|
217
217
|
encode(message: BlockMeta, writer?: _m0.Writer): _m0.Writer;
|
|
218
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
218
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BlockMeta;
|
|
219
219
|
fromJSON(object: any): BlockMeta;
|
|
220
220
|
toJSON(message: BlockMeta): unknown;
|
|
221
221
|
fromPartial(object: DeepPartial<BlockMeta>): BlockMeta;
|
|
222
222
|
};
|
|
223
223
|
export declare const TxProof: {
|
|
224
224
|
encode(message: TxProof, writer?: _m0.Writer): _m0.Writer;
|
|
225
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
225
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TxProof;
|
|
226
226
|
fromJSON(object: any): TxProof;
|
|
227
227
|
toJSON(message: TxProof): unknown;
|
|
228
228
|
fromPartial(object: DeepPartial<TxProof>): TxProof;
|
|
229
229
|
};
|
|
230
|
-
|
|
231
|
-
export
|
|
230
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
231
|
+
export 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 {} ? {
|
|
232
232
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
233
233
|
} : Partial<T>;
|
|
234
234
|
export {};
|
|
@@ -19,27 +19,27 @@ export interface SimpleValidator {
|
|
|
19
19
|
}
|
|
20
20
|
export declare const ValidatorSet: {
|
|
21
21
|
encode(message: ValidatorSet, writer?: _m0.Writer): _m0.Writer;
|
|
22
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
22
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSet;
|
|
23
23
|
fromJSON(object: any): ValidatorSet;
|
|
24
24
|
toJSON(message: ValidatorSet): unknown;
|
|
25
25
|
fromPartial(object: DeepPartial<ValidatorSet>): ValidatorSet;
|
|
26
26
|
};
|
|
27
27
|
export declare const Validator: {
|
|
28
28
|
encode(message: Validator, writer?: _m0.Writer): _m0.Writer;
|
|
29
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
29
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Validator;
|
|
30
30
|
fromJSON(object: any): Validator;
|
|
31
31
|
toJSON(message: Validator): unknown;
|
|
32
32
|
fromPartial(object: DeepPartial<Validator>): Validator;
|
|
33
33
|
};
|
|
34
34
|
export declare const SimpleValidator: {
|
|
35
35
|
encode(message: SimpleValidator, writer?: _m0.Writer): _m0.Writer;
|
|
36
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
36
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SimpleValidator;
|
|
37
37
|
fromJSON(object: any): SimpleValidator;
|
|
38
38
|
toJSON(message: SimpleValidator): unknown;
|
|
39
39
|
fromPartial(object: DeepPartial<SimpleValidator>): SimpleValidator;
|
|
40
40
|
};
|
|
41
|
-
|
|
42
|
-
export
|
|
41
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
42
|
+
export 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 {} ? {
|
|
43
43
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
44
44
|
} : Partial<T>;
|
|
45
45
|
export {};
|
|
@@ -21,20 +21,20 @@ export interface Consensus {
|
|
|
21
21
|
}
|
|
22
22
|
export declare const App: {
|
|
23
23
|
encode(message: App, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
24
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): App;
|
|
25
25
|
fromJSON(object: any): App;
|
|
26
26
|
toJSON(message: App): unknown;
|
|
27
27
|
fromPartial(object: DeepPartial<App>): App;
|
|
28
28
|
};
|
|
29
29
|
export declare const Consensus: {
|
|
30
30
|
encode(message: Consensus, writer?: _m0.Writer): _m0.Writer;
|
|
31
|
-
decode(input: _m0.Reader | Uint8Array, length?: number
|
|
31
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Consensus;
|
|
32
32
|
fromJSON(object: any): Consensus;
|
|
33
33
|
toJSON(message: Consensus): unknown;
|
|
34
34
|
fromPartial(object: DeepPartial<Consensus>): Consensus;
|
|
35
35
|
};
|
|
36
|
-
|
|
37
|
-
export
|
|
36
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
37
|
+
export 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 {} ? {
|
|
38
38
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
39
39
|
} : Partial<T>;
|
|
40
40
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Bech32AddrType = "main" | "validator" | "consensus";
|
|
2
2
|
export declare const ZeroAddress = "0x0000000000000000000000000000000000000000";
|
|
3
3
|
export declare const NativeTokenHash = "0000000000000000000000000000000000000000";
|
package/lib/constant/generic.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.DEFAULT_FEE_DENOM = "swth";
|
|
|
12
12
|
exports.DEFAULT_GAS_PRICE = new bignumber_js_1.default(10);
|
|
13
13
|
exports.DEFAULT_GAS = new bignumber_js_1.default(10000000);
|
|
14
14
|
exports.DEFAULT_FEE = {
|
|
15
|
-
amount: proto_signing_1.coins(exports.DEFAULT_GAS_PRICE.times(exports.DEFAULT_GAS).dp(0).toString(), "swth"),
|
|
15
|
+
amount: (0, proto_signing_1.coins)(exports.DEFAULT_GAS_PRICE.times(exports.DEFAULT_GAS).dp(0).toString(), "swth"),
|
|
16
16
|
gas: exports.DEFAULT_GAS.toString(10),
|
|
17
17
|
};
|
|
18
18
|
exports.CARBON_GAS_PRICE = {
|
package/lib/constant/ibc.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface ChainInfoExplorerTmRpc extends ChainInfo {
|
|
|
6
6
|
tmRpc?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const IBCAddress: {
|
|
9
|
-
getAddressBytes(bech32Address: string, prefix?: string
|
|
9
|
+
getAddressBytes(bech32Address: string, prefix?: string): Uint8Array;
|
|
10
10
|
defaultBech32Config(mainPrefix: string, validatorPrefix?: string, consensusPrefix?: string, publicPrefix?: string, operatorPrefix?: string): Bech32Config;
|
|
11
11
|
deriveAddressFromBytes(bytes: Uint8Array, prefix: string): string;
|
|
12
12
|
};
|
|
@@ -63,7 +63,7 @@ export declare enum ChainIds {
|
|
|
63
63
|
export declare const swthIbcWhitelist: string[];
|
|
64
64
|
export declare const ibcWhitelist: string[];
|
|
65
65
|
export declare const EmbedChainInfosInit: SimpleMap<ChainInfoExplorerTmRpc>;
|
|
66
|
-
export
|
|
66
|
+
export type AssetListObj = SimpleMap<SimpleMap<AppCurrency>>;
|
|
67
67
|
export interface ChannelConfig {
|
|
68
68
|
ibc: ChannelSet;
|
|
69
69
|
cw20?: CosmWasmChannelSet;
|
|
@@ -85,7 +85,7 @@ export declare const ibcNetworkRegex: RegExp;
|
|
|
85
85
|
export declare const ibcTransferChannelRegex: RegExp;
|
|
86
86
|
export declare const ibcDefaultGas: number;
|
|
87
87
|
export declare const DefaultGasPriceStep: GasPriceStep;
|
|
88
|
-
export
|
|
88
|
+
export type MinimalDenomMap = SimpleMap<string>;
|
|
89
89
|
export interface ExtendedChainInfo extends ChainInfo {
|
|
90
90
|
minimalDenomMap: MinimalDenomMap;
|
|
91
91
|
bestRpcs: URLProviderObj[];
|
package/lib/constant/ibc.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/constant/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/constant/node.d.ts
CHANGED
package/lib/eth/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/hydrogen/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -96,7 +96,7 @@ export interface ChainTransaction {
|
|
|
96
96
|
link_status: string;
|
|
97
97
|
cross_chain_flow_id: string;
|
|
98
98
|
}
|
|
99
|
-
export
|
|
99
|
+
export type EventParams = string | CrossChainEventEventParams | IbcWriteAckEventEventParams | IbcSendPacketEventEventParams | VerifyHeaderAndExecuteTxEventEventParams | NEOCrossChainUnlockEventEventParams | NEOCrossChainLockEventEventParams | MakePolyProofEventEventParams | Attribute[];
|
|
100
100
|
export interface CrossChainEventEventParams {
|
|
101
101
|
txId: string;
|
|
102
102
|
sender: string;
|
|
@@ -152,7 +152,7 @@ export interface IbcWriteAckEventEventParams extends IbcEventEventParams {
|
|
|
152
152
|
export interface IbcSendPacketEventEventParams extends IbcEventEventParams {
|
|
153
153
|
packet_channel_ordering: string;
|
|
154
154
|
}
|
|
155
|
-
export
|
|
155
|
+
export type Attribute = {
|
|
156
156
|
key: string;
|
|
157
157
|
value: string;
|
|
158
158
|
};
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/insights/common.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare const InsightsEndpoints: {
|
|
|
42
42
|
"alliances/stake": string;
|
|
43
43
|
"alliances/rewards": string;
|
|
44
44
|
};
|
|
45
|
-
export
|
|
45
|
+
export type Interval = "millisecond" | "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter";
|
|
46
46
|
export interface QueryByTimeRequest {
|
|
47
47
|
interval?: Interval;
|
|
48
48
|
from?: string;
|
package/lib/insights/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -16,7 +16,7 @@ export interface LeaderboardResult {
|
|
|
16
16
|
rows: IndivPnl[];
|
|
17
17
|
meta: PageMeta;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type QueryGetLeaderboardResponse = Entries<LeaderboardResult>;
|
|
20
20
|
export interface LiquidationEntry {
|
|
21
21
|
id: string;
|
|
22
22
|
block_height: string;
|
package/lib/modules/cdp.js
CHANGED
|
@@ -529,7 +529,7 @@ class CDPModule extends base_1.default {
|
|
|
529
529
|
let availableBorrowsUsd = number_1.BN_ZERO;
|
|
530
530
|
let currLiquidationThreshold = number_1.BN_ZERO;
|
|
531
531
|
for (let i = 0; i < collaterals.length; i++) {
|
|
532
|
-
const amount = number_1.bnOrZero(collaterals[i].collateralAmount);
|
|
532
|
+
const amount = (0, number_1.bnOrZero)(collaterals[i].collateralAmount);
|
|
533
533
|
if (amount.isZero()) {
|
|
534
534
|
continue; // no collateral for denom
|
|
535
535
|
}
|
|
@@ -546,9 +546,9 @@ class CDPModule extends base_1.default {
|
|
|
546
546
|
if (!assetParam) {
|
|
547
547
|
continue;
|
|
548
548
|
}
|
|
549
|
-
const ltv = number_1.bnOrZero(assetParam.loanToValue).div(number_1.BN_10000);
|
|
549
|
+
const ltv = (0, number_1.bnOrZero)(assetParam.loanToValue).div(number_1.BN_10000);
|
|
550
550
|
const availableBorrowUsd = collateralUsdVal.times(ltv);
|
|
551
|
-
const liquidationThreshold = number_1.bnOrZero(assetParam.liquidationThreshold).div(number_1.BN_10000);
|
|
551
|
+
const liquidationThreshold = (0, number_1.bnOrZero)(assetParam.liquidationThreshold).div(number_1.BN_10000);
|
|
552
552
|
const liquidationThresholdVal = collateralUsdVal.times(liquidationThreshold);
|
|
553
553
|
totalCollateralsUsd = totalCollateralsUsd.plus(collateralUsdVal);
|
|
554
554
|
availableBorrowsUsd = availableBorrowsUsd.plus(availableBorrowUsd);
|
|
@@ -559,7 +559,7 @@ class CDPModule extends base_1.default {
|
|
|
559
559
|
let totalDebtsUsd = number_1.BN_ZERO;
|
|
560
560
|
const debtsUsdRequests = [];
|
|
561
561
|
for (let i = 0; i < debts.length; i++) {
|
|
562
|
-
const amount = number_1.bnOrZero(debts[i].principalDebt);
|
|
562
|
+
const amount = (0, number_1.bnOrZero)(debts[i].principalDebt);
|
|
563
563
|
const denom = debts[i].denom;
|
|
564
564
|
if (amount.isZero()) {
|
|
565
565
|
continue;
|
|
@@ -582,7 +582,7 @@ class CDPModule extends base_1.default {
|
|
|
582
582
|
if (stablecoinDebtInfo) {
|
|
583
583
|
const accountStablecoin = yield sdk.query.cdp.AccountStablecoin({ address: account });
|
|
584
584
|
const stablecoinDecimals = (_a = (yield this.sdkProvider.getTokenClient().getDecimals(stablecoinDebtInfo.denom))) !== null && _a !== void 0 ? _a : number_1.BN_ZERO;
|
|
585
|
-
const stablecoinDebtAmount = number_1.bnOrZero(accountStablecoin.principalDebt).plus(number_1.bnOrZero(accountStablecoin.interestDebt));
|
|
585
|
+
const stablecoinDebtAmount = (0, number_1.bnOrZero)(accountStablecoin.principalDebt).plus((0, number_1.bnOrZero)(accountStablecoin.interestDebt));
|
|
586
586
|
stablecoinDebtUsd = stablecoinDebtAmount.shiftedBy(-stablecoinDecimals);
|
|
587
587
|
totalDebtsUsd = totalDebtsUsd.plus(stablecoinDebtUsd);
|
|
588
588
|
}
|
|
@@ -603,7 +603,7 @@ class CDPModule extends base_1.default {
|
|
|
603
603
|
const sdk = this.sdkProvider;
|
|
604
604
|
const cdpAddress = this.getCdpModuleAddress();
|
|
605
605
|
const balanceRsp = yield sdk.query.bank.Balance(query_2.QueryBalanceRequest.fromPartial({ address: cdpAddress, denom }));
|
|
606
|
-
return number_1.bnOrZero((_a = balanceRsp.balance) === null || _a === void 0 ? void 0 : _a.amount);
|
|
606
|
+
return (0, number_1.bnOrZero)((_a = balanceRsp.balance) === null || _a === void 0 ? void 0 : _a.amount);
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
609
|
getCdpToActualRatio(cdpDenom, interestFee) {
|
|
@@ -618,14 +618,14 @@ class CDPModule extends base_1.default {
|
|
|
618
618
|
const cdpAmountRsp = supplyRsp.amount;
|
|
619
619
|
if (!cdpAmountRsp)
|
|
620
620
|
throw new Error("unable to retrieve cdp token supply");
|
|
621
|
-
const cdpAmount = number_1.bnOrZero(cdpAmountRsp.amount);
|
|
621
|
+
const cdpAmount = (0, number_1.bnOrZero)(cdpAmountRsp.amount);
|
|
622
622
|
if (!balanceRsp.balance)
|
|
623
623
|
throw new Error("unable to retrieve cdp module balance");
|
|
624
624
|
const debtInfo = debtInfoRsp.debtInfo;
|
|
625
625
|
if (!debtInfo)
|
|
626
626
|
throw new Error("unable to retrieve debt info");
|
|
627
627
|
const owedAmount = yield this.getTotalTokenDebt(denom, debtInfo, interestFee);
|
|
628
|
-
const actualAmount = number_1.bnOrZero(balanceRsp.balance.amount).plus(owedAmount);
|
|
628
|
+
const actualAmount = (0, number_1.bnOrZero)(balanceRsp.balance.amount).plus(owedAmount);
|
|
629
629
|
if (!owedAmount)
|
|
630
630
|
throw new Error("unable to retrieve total token debt");
|
|
631
631
|
return cdpAmount.div(actualAmount);
|
|
@@ -648,8 +648,8 @@ class CDPModule extends base_1.default {
|
|
|
648
648
|
const debtAmtRequests = [];
|
|
649
649
|
for (let i = 0; i < allDebts.length; i++) {
|
|
650
650
|
const denom = allDebts[i].denom;
|
|
651
|
-
const interest = number_1.bnOrZero(allDebts[i].totalAccumulatedInterest);
|
|
652
|
-
const principal = number_1.bnOrZero(allDebts[i].totalPrincipal);
|
|
651
|
+
const interest = (0, number_1.bnOrZero)(allDebts[i].totalAccumulatedInterest);
|
|
652
|
+
const principal = (0, number_1.bnOrZero)(allDebts[i].totalPrincipal);
|
|
653
653
|
const debtAmt = interest.plus(principal);
|
|
654
654
|
debtAmtRequests.push(this.getTokenUsdVal(denom, debtAmt));
|
|
655
655
|
}
|
|
@@ -665,7 +665,7 @@ class CDPModule extends base_1.default {
|
|
|
665
665
|
const stablecoinDebtRes = yield this.sdkProvider.query.cdp.StablecoinDebt({});
|
|
666
666
|
if (stablecoinDebtRes.stablecoinDebtInfo) {
|
|
667
667
|
const debtInfo = stablecoinDebtRes.stablecoinDebtInfo;
|
|
668
|
-
const debtAmt = number_1.bnOrZero(debtInfo.totalPrincipal).plus(number_1.bnOrZero(debtInfo.totalAccumulatedInterest));
|
|
668
|
+
const debtAmt = (0, number_1.bnOrZero)(debtInfo.totalPrincipal).plus((0, number_1.bnOrZero)(debtInfo.totalAccumulatedInterest));
|
|
669
669
|
const stablecoinDecimals = (_a = (yield sdk.getTokenClient().getDecimals(debtInfo.denom))) !== null && _a !== void 0 ? _a : 0;
|
|
670
670
|
const debtUsdVal = debtAmt.shiftedBy(-stablecoinDecimals);
|
|
671
671
|
totalDebt = totalDebt.plus(debtUsdVal);
|
|
@@ -690,7 +690,7 @@ class CDPModule extends base_1.default {
|
|
|
690
690
|
const assetParamsPromise = sdk.query.cdp.AssetAll(CarbonSDK_1.Carbon.Cdp.QueryAssetAllRequest.fromPartial(Object.assign({}, maxPageLimit)));
|
|
691
691
|
const rateStrategyPromise = sdk.query.cdp.RateStrategyAll(CarbonSDK_1.Carbon.Cdp.QueryRateStrategyAllRequest.fromPartial(Object.assign({}, maxPageLimit)));
|
|
692
692
|
const [collateralPoolBalances, totalSupply, cdpParams, tokenPriceAll, debtInfosAll, assetParamsAll, rateStrategies, cdpModuleBalances] = yield Promise.all([collateralPoolBalancePromise, totalSupplyPromise, cdpParamsPromise, tokenPriceAllPromise, debtInfosPromise, assetParamsPromise, rateStrategyPromise, cdpModuleBalancesPromise]);
|
|
693
|
-
const interestFee = number_1.bnOrZero((_a = cdpParams.params) === null || _a === void 0 ? void 0 : _a.interestFee);
|
|
693
|
+
const interestFee = (0, number_1.bnOrZero)((_a = cdpParams.params) === null || _a === void 0 ? void 0 : _a.interestFee);
|
|
694
694
|
if (!interestFee)
|
|
695
695
|
throw new Error("unable to retrieve interest fee");
|
|
696
696
|
const tokenPrices = tokenPriceAll.tokenPrices;
|
|
@@ -718,8 +718,8 @@ class CDPModule extends base_1.default {
|
|
|
718
718
|
const newInterestRate = CDPModule.calculateInterestForTimePeriod(apy, (_b = debtInfo.lastUpdatedTime) !== null && _b !== void 0 ? _b : new Date(0), new Date());
|
|
719
719
|
return this.getTotalTokenDebt(underlyingDenom, debtInfo, interestFee, newInterestRate)
|
|
720
720
|
.then((totalDebt) => {
|
|
721
|
-
const ratio = number_1.bnOrZero(supply).div(number_1.bnOrZero(balance).plus(number_1.bnOrZero(totalDebt)));
|
|
722
|
-
const actualAmount = number_1.bnOrZero(token.amount).div(ratio);
|
|
721
|
+
const ratio = (0, number_1.bnOrZero)(supply).div((0, number_1.bnOrZero)(balance).plus((0, number_1.bnOrZero)(totalDebt)));
|
|
722
|
+
const actualAmount = (0, number_1.bnOrZero)(token.amount).div(ratio);
|
|
723
723
|
return this.getTokenUsdVal(underlyingDenom, actualAmount, tokenPrice);
|
|
724
724
|
});
|
|
725
725
|
});
|
|
@@ -748,7 +748,7 @@ class CDPModule extends base_1.default {
|
|
|
748
748
|
throw new Error("unable to retrieve token price for " + denom);
|
|
749
749
|
price = priceResult.tokenPrice;
|
|
750
750
|
}
|
|
751
|
-
const twap = number_1.bnOrZero(price.twap).shiftedBy(-18);
|
|
751
|
+
const twap = (0, number_1.bnOrZero)(price.twap).shiftedBy(-18);
|
|
752
752
|
return amount.multipliedBy(twap).shiftedBy(-decimals);
|
|
753
753
|
});
|
|
754
754
|
}
|
|
@@ -757,7 +757,7 @@ class CDPModule extends base_1.default {
|
|
|
757
757
|
return __awaiter(this, void 0, void 0, function* () {
|
|
758
758
|
if (!interestFee) {
|
|
759
759
|
const cdpParamsRsp = yield this.sdkProvider.query.cdp.Params(query_1.QueryParamsRequest.fromPartial({}));
|
|
760
|
-
interestFee = number_1.bnOrZero((_a = cdpParamsRsp.params) === null || _a === void 0 ? void 0 : _a.interestFee);
|
|
760
|
+
interestFee = (0, number_1.bnOrZero)((_a = cdpParamsRsp.params) === null || _a === void 0 ? void 0 : _a.interestFee);
|
|
761
761
|
}
|
|
762
762
|
if (!interestFee)
|
|
763
763
|
throw new Error("unable to retrieve interest fee");
|
|
@@ -771,8 +771,8 @@ class CDPModule extends base_1.default {
|
|
|
771
771
|
const cimRsp = yield this.recalculateCIM(denom, debtInfo);
|
|
772
772
|
newInterestRate = cimRsp.interest;
|
|
773
773
|
}
|
|
774
|
-
const principal = number_1.bnOrZero(debtInfo.totalPrincipal);
|
|
775
|
-
const accumInterest = number_1.bnOrZero(debtInfo.totalAccumulatedInterest);
|
|
774
|
+
const principal = (0, number_1.bnOrZero)(debtInfo.totalPrincipal);
|
|
775
|
+
const accumInterest = (0, number_1.bnOrZero)(debtInfo.totalAccumulatedInterest);
|
|
776
776
|
const newInterest = principal.times(newInterestRate).plus(accumInterest.times(number_1.BN_ONE.plus(newInterestRate)));
|
|
777
777
|
const interest = newInterest.times(number_1.BN_10000.minus(interestFee)).dividedToIntegerBy(number_1.BN_10000);
|
|
778
778
|
return principal.plus(interest);
|
|
@@ -791,8 +791,8 @@ class CDPModule extends base_1.default {
|
|
|
791
791
|
const debtRes = yield sdk.query.cdp.AccountDebt({ address: account, denom: denom });
|
|
792
792
|
debt = debtRes.debt;
|
|
793
793
|
}
|
|
794
|
-
const principalAmount = number_1.bnOrZero(debt === null || debt === void 0 ? void 0 : debt.principalDebt);
|
|
795
|
-
const initialCIM = number_1.bnOrZero(debt === null || debt === void 0 ? void 0 : debt.initialCumulativeInterestMultiplier);
|
|
794
|
+
const principalAmount = (0, number_1.bnOrZero)(debt === null || debt === void 0 ? void 0 : debt.principalDebt);
|
|
795
|
+
const initialCIM = (0, number_1.bnOrZero)(debt === null || debt === void 0 ? void 0 : debt.initialCumulativeInterestMultiplier);
|
|
796
796
|
if (principalAmount.isZero() || initialCIM.isZero())
|
|
797
797
|
return number_1.BN_ZERO;
|
|
798
798
|
const cimRsp = yield this.recalculateCIM(denom, debtInfo);
|
|
@@ -818,8 +818,8 @@ class CDPModule extends base_1.default {
|
|
|
818
818
|
const debtResp = yield sdk.query.cdp.AccountStablecoin(CarbonSDK_1.Carbon.Cdp.QueryAccountStablecoinRequest.fromPartial({ address: account }));
|
|
819
819
|
debt = debtResp;
|
|
820
820
|
}
|
|
821
|
-
principalAmount = number_1.bnOrZero(debt.principalDebt);
|
|
822
|
-
const initialCIM = number_1.bnOrZero(debt.initialCumulativeInterestMultiplier);
|
|
821
|
+
principalAmount = (0, number_1.bnOrZero)(debt.principalDebt);
|
|
822
|
+
const initialCIM = (0, number_1.bnOrZero)(debt.initialCumulativeInterestMultiplier);
|
|
823
823
|
const cim = yield this.recalculateStablecoinCIM(debtInfo);
|
|
824
824
|
if (!cim)
|
|
825
825
|
throw new Error("unable to retrieve account debt");
|
|
@@ -860,7 +860,7 @@ class CDPModule extends base_1.default {
|
|
|
860
860
|
return number_1.BN_ZERO;
|
|
861
861
|
}
|
|
862
862
|
const diffSeconds = new bignumber_js_1.BigNumber(diffMs).shiftedBy(-3).dp(0, bignumber_js_1.BigNumber.ROUND_CEIL);
|
|
863
|
-
const secondsAYear = number_1.bnOrZero(31536000);
|
|
863
|
+
const secondsAYear = (0, number_1.bnOrZero)(31536000);
|
|
864
864
|
const numPeriods = secondsAYear.div(diffSeconds).dp(18);
|
|
865
865
|
return apy.div(numPeriods).dp(18); // carbon backend sdk.dec max 18 dp
|
|
866
866
|
}
|
|
@@ -884,8 +884,8 @@ class CDPModule extends base_1.default {
|
|
|
884
884
|
throw new Error("unable to retrieve cdp params for " + denom);
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
const interestFeeRate = number_1.bnOrZero(params.interestFee).div(number_1.BN_10000);
|
|
888
|
-
const utilizationRate = number_1.bnOrZero(debtInfo.utilizationRate).shiftedBy(-18);
|
|
887
|
+
const interestFeeRate = (0, number_1.bnOrZero)(params.interestFee).div(number_1.BN_10000);
|
|
888
|
+
const utilizationRate = (0, number_1.bnOrZero)(debtInfo.utilizationRate).shiftedBy(-18);
|
|
889
889
|
return borrowInterest.times(utilizationRate).times(number_1.BN_ONE.minus(interestFeeRate));
|
|
890
890
|
});
|
|
891
891
|
}
|
|
@@ -900,7 +900,7 @@ class CDPModule extends base_1.default {
|
|
|
900
900
|
return { cim: number_1.BN_ZERO, interest: number_1.BN_ZERO };
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
|
-
const cim = number_1.bnOrZero(debtInfo.cumulativeInterestMultiplier);
|
|
903
|
+
const cim = (0, number_1.bnOrZero)(debtInfo.cumulativeInterestMultiplier);
|
|
904
904
|
const apy = yield this.calculateAPY(denom, debtInfo);
|
|
905
905
|
const newInterest = CDPModule.calculateInterestForTimePeriod(apy, (_a = debtInfo.lastUpdatedTime) !== null && _a !== void 0 ? _a : new Date(0), new Date());
|
|
906
906
|
const newCIM = cim.times(newInterest.plus(1));
|
|
@@ -919,8 +919,8 @@ class CDPModule extends base_1.default {
|
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
921
|
const stablecoinInterestResponse = yield sdk.query.cdp.StablecoinInterest({});
|
|
922
|
-
const cim = number_1.bnOrZero(debtInfo.cumulativeInterestMultiplier);
|
|
923
|
-
const apy = number_1.bnOrZero((_a = stablecoinInterestResponse.stablecoinInterestInfo) === null || _a === void 0 ? void 0 : _a.stablecoinInterestRate);
|
|
922
|
+
const cim = (0, number_1.bnOrZero)(debtInfo.cumulativeInterestMultiplier);
|
|
923
|
+
const apy = (0, number_1.bnOrZero)((_a = stablecoinInterestResponse.stablecoinInterestInfo) === null || _a === void 0 ? void 0 : _a.stablecoinInterestRate);
|
|
924
924
|
if (!apy) {
|
|
925
925
|
return number_1.BN_ZERO;
|
|
926
926
|
}
|
|
@@ -949,7 +949,7 @@ class CDPModule extends base_1.default {
|
|
|
949
949
|
cdpDenom: cdpDenom,
|
|
950
950
|
});
|
|
951
951
|
const [accountData, tokenPrice, accountCollateral] = yield Promise.all([accountDataRequest, tokenPriceRequest, accountCollateralRequest]);
|
|
952
|
-
const tokenTwap = number_1.bnOrZero((_a = tokenPrice.tokenPrice) === null || _a === void 0 ? void 0 : _a.twap);
|
|
952
|
+
const tokenTwap = (0, number_1.bnOrZero)((_a = tokenPrice.tokenPrice) === null || _a === void 0 ? void 0 : _a.twap);
|
|
953
953
|
if (tokenTwap.isZero())
|
|
954
954
|
throw new Error("unable to retrieve token price for " + denom);
|
|
955
955
|
const tokenDecimals = (_b = (yield sdk.getTokenClient().getDecimals(denom))) !== null && _b !== void 0 ? _b : 0;
|
|
@@ -958,7 +958,7 @@ class CDPModule extends base_1.default {
|
|
|
958
958
|
const tokenAmt = unlockableUsd.div(tokenTwap.shiftedBy(-18)).shiftedBy(tokenDecimals);
|
|
959
959
|
const cdpToActualRatio = (_c = (yield this.getCdpToActualRatio(cdpDenom))) !== null && _c !== void 0 ? _c : number_1.BN_ZERO;
|
|
960
960
|
const cdpTokenAmt = tokenAmt.multipliedBy(cdpToActualRatio);
|
|
961
|
-
const lockedAmount = number_1.bnOrZero((_e = (_d = accountCollateral.collateral) === null || _d === void 0 ? void 0 : _d.collateralAmount) !== null && _e !== void 0 ? _e : "0");
|
|
961
|
+
const lockedAmount = (0, number_1.bnOrZero)((_e = (_d = accountCollateral.collateral) === null || _d === void 0 ? void 0 : _d.collateralAmount) !== null && _e !== void 0 ? _e : "0");
|
|
962
962
|
return lockedAmount.lt(cdpTokenAmt) ? lockedAmount : cdpTokenAmt;
|
|
963
963
|
});
|
|
964
964
|
}
|
|
@@ -976,7 +976,7 @@ class CDPModule extends base_1.default {
|
|
|
976
976
|
const denom = this.getUnderlyingDenom(cdpDenom);
|
|
977
977
|
const cdpToActualRatio = (_a = (yield this.getCdpToActualRatio(cdpDenom))) !== null && _a !== void 0 ? _a : number_1.BN_ZERO;
|
|
978
978
|
const tokenPrice = yield sdk.query.pricing.TokenPrice({ denom: denom });
|
|
979
|
-
const tokenTwap = number_1.bnOrZero((_b = tokenPrice.tokenPrice) === null || _b === void 0 ? void 0 : _b.twap).shiftedBy(-18);
|
|
979
|
+
const tokenTwap = (0, number_1.bnOrZero)((_b = tokenPrice.tokenPrice) === null || _b === void 0 ? void 0 : _b.twap).shiftedBy(-18);
|
|
980
980
|
return tokenTwap.multipliedBy(cdpToActualRatio);
|
|
981
981
|
});
|
|
982
982
|
}
|
|
@@ -1009,22 +1009,22 @@ class CDPModule extends base_1.default {
|
|
|
1009
1009
|
if (!debtorAccountCollateral.collateral) {
|
|
1010
1010
|
throw Error("unable to retrieve debtor's collateral amount");
|
|
1011
1011
|
}
|
|
1012
|
-
const bonus = number_1.bnOrZero(asset.assetParams.liquidationDiscount).div(number_1.BN_10000);
|
|
1012
|
+
const bonus = (0, number_1.bnOrZero)(asset.assetParams.liquidationDiscount).div(number_1.BN_10000);
|
|
1013
1013
|
const cdpTokenPrice = yield this.getCdpTokenPrice(cdpDenom);
|
|
1014
1014
|
const cdpTokenDiscountedPrice = cdpTokenPrice.multipliedBy(number_1.BN_ONE.minus(bonus));
|
|
1015
1015
|
// get close factor
|
|
1016
1016
|
const debtorAccountData = yield sdk.query.cdp.AccountData({
|
|
1017
1017
|
address: debtor,
|
|
1018
1018
|
});
|
|
1019
|
-
const debtorTotalCollateralVal = number_1.bnOrZero(debtorAccountData.totalCollateralsUsd);
|
|
1020
|
-
const debtorTotalDebtVal = number_1.bnOrZero(debtorAccountData.totalDebtsUsd);
|
|
1021
|
-
const currentLiqThreshold = number_1.bnOrZero(debtorAccountData.currLiquidationThreshold);
|
|
1022
|
-
const smallLiqSize = number_1.bnOrZero(params.params.smallLiquidationSize);
|
|
1023
|
-
const minCloseFactor = number_1.bnOrZero(params.params.minimumCloseFactor);
|
|
1024
|
-
const completeLiqThreshold = number_1.bnOrZero(params.params.completeLiquidationThreshold);
|
|
1019
|
+
const debtorTotalCollateralVal = (0, number_1.bnOrZero)(debtorAccountData.totalCollateralsUsd);
|
|
1020
|
+
const debtorTotalDebtVal = (0, number_1.bnOrZero)(debtorAccountData.totalDebtsUsd);
|
|
1021
|
+
const currentLiqThreshold = (0, number_1.bnOrZero)(debtorAccountData.currLiquidationThreshold);
|
|
1022
|
+
const smallLiqSize = (0, number_1.bnOrZero)(params.params.smallLiquidationSize);
|
|
1023
|
+
const minCloseFactor = (0, number_1.bnOrZero)(params.params.minimumCloseFactor);
|
|
1024
|
+
const completeLiqThreshold = (0, number_1.bnOrZero)(params.params.completeLiquidationThreshold);
|
|
1025
1025
|
const closeFactor = this.computeCloseFactor(debtorTotalDebtVal, debtorTotalCollateralVal, currentLiqThreshold, smallLiqSize, minCloseFactor, completeLiqThreshold);
|
|
1026
1026
|
// get max repayable amount given the debtor's debt and how much liquidator wants to repay
|
|
1027
|
-
const debtDecimals = number_1.bnOrZero(yield sdk.getTokenClient().getDecimals(debtDenom));
|
|
1027
|
+
const debtDecimals = (0, number_1.bnOrZero)(yield sdk.getTokenClient().getDecimals(debtDenom));
|
|
1028
1028
|
const maxRepayableValue = debtorTotalDebtVal.multipliedBy(closeFactor);
|
|
1029
1029
|
const maxRepayableAmt = maxRepayableValue.shiftedBy(debtDecimals.toNumber());
|
|
1030
1030
|
if (debtRepaymentAmount.isGreaterThan(maxRepayableAmt)) {
|
|
@@ -1032,7 +1032,7 @@ class CDPModule extends base_1.default {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
// calculate collateral amount that can be obtained given that debt amount and debtor's collateral balance
|
|
1034
1034
|
// AND, recalculate debt repay amount if needed
|
|
1035
|
-
const cdpTokenDecimals = number_1.bnOrZero(yield sdk.getTokenClient().getDecimals(cdpActualDenom));
|
|
1035
|
+
const cdpTokenDecimals = (0, number_1.bnOrZero)(yield sdk.getTokenClient().getDecimals(cdpActualDenom));
|
|
1036
1036
|
let collateralAmtToLiquidate = this.calculateCollateralRequiredForDebt(number_1.BN_ONE, // assumes USC is $1
|
|
1037
1037
|
cdpTokenDiscountedPrice, debtRepaymentAmount, cdpTokenDecimals, debtDecimals);
|
|
1038
1038
|
const debtorCollateralAmt = new bignumber_js_1.BigNumber(debtorAccountCollateral.collateral.collateralAmount);
|
|
@@ -1097,11 +1097,11 @@ class CDPModule extends base_1.default {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
exports.CDPModule = CDPModule;
|
|
1099
1099
|
CDPModule.calculateInterestAPY = (debtInfo, rateStrategy) => {
|
|
1100
|
-
const utilizationRate = number_1.bnOrZero(debtInfo.utilizationRate).shiftedBy(-18);
|
|
1101
|
-
const optimalUsage = number_1.bnOrZero(rateStrategy.optimalUsage).shiftedBy(-4);
|
|
1102
|
-
const variableRate1 = number_1.bnOrZero(rateStrategy.variableRateSlope1).shiftedBy(-4);
|
|
1103
|
-
const variableRate2 = number_1.bnOrZero(rateStrategy.variableRateSlope2).shiftedBy(-4);
|
|
1104
|
-
const baseVariableBorrowRate = number_1.bnOrZero(rateStrategy.baseVariableBorrowRate).shiftedBy(-4);
|
|
1100
|
+
const utilizationRate = (0, number_1.bnOrZero)(debtInfo.utilizationRate).shiftedBy(-18);
|
|
1101
|
+
const optimalUsage = (0, number_1.bnOrZero)(rateStrategy.optimalUsage).shiftedBy(-4);
|
|
1102
|
+
const variableRate1 = (0, number_1.bnOrZero)(rateStrategy.variableRateSlope1).shiftedBy(-4);
|
|
1103
|
+
const variableRate2 = (0, number_1.bnOrZero)(rateStrategy.variableRateSlope2).shiftedBy(-4);
|
|
1104
|
+
const baseVariableBorrowRate = (0, number_1.bnOrZero)(rateStrategy.baseVariableBorrowRate).shiftedBy(-4);
|
|
1105
1105
|
if (utilizationRate.lte(optimalUsage)) {
|
|
1106
1106
|
const vRate = utilizationRate.times(variableRate1).div(optimalUsage).dp(4, bignumber_js_1.BigNumber.ROUND_CEIL);
|
|
1107
1107
|
return vRate.plus(baseVariableBorrowRate);
|