carbon-js-sdk 0.9.2 → 0.10.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/CarbonSDK.js +5 -9
- package/lib/clients/BatchQueryClient.js +4 -4
- package/lib/clients/CarbonQueryClient.js +1 -1
- package/lib/clients/ETHClient.js +15 -15
- package/lib/clients/HydrogenClient.js +1 -1
- package/lib/clients/InsightsQueryClient.js +3 -3
- package/lib/clients/NEOClient.js +8 -12
- 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 +5 -5
- 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/bridge/bridge.d.ts +108 -0
- package/lib/codec/Switcheo/carbon/bridge/bridge.js +632 -0
- package/lib/codec/Switcheo/carbon/bridge/event.d.ts +187 -0
- package/lib/codec/Switcheo/carbon/bridge/event.js +1172 -0
- package/lib/codec/Switcheo/carbon/bridge/genesis.d.ts +20 -0
- package/lib/codec/Switcheo/carbon/bridge/genesis.js +63 -0
- package/lib/codec/Switcheo/carbon/bridge/params.d.ts +28 -0
- package/lib/codec/Switcheo/carbon/bridge/params.js +81 -0
- package/lib/codec/Switcheo/carbon/bridge/query.d.ts +177 -0
- package/lib/codec/Switcheo/carbon/bridge/query.js +639 -0
- package/lib/codec/Switcheo/carbon/bridge/tx.d.ts +528 -0
- package/lib/codec/Switcheo/carbon/bridge/tx.js +2558 -0
- package/lib/codec/Switcheo/carbon/broker/amm.d.ts +9 -6
- 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 +19 -0
- package/lib/codec/Switcheo/carbon/ccm/ccm.js +60 -0
- package/lib/codec/Switcheo/carbon/ccm/genesis.d.ts +15 -9
- package/lib/codec/Switcheo/carbon/ccm/params.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/ccm/query.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +10 -10
- 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 +19 -9
- 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 +90 -90
- package/lib/codec/Switcheo/carbon/cdp/tx.js +9 -9
- 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 +11 -8
- 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 +51 -50
- package/lib/codec/Switcheo/carbon/erc20/erc20.d.ts +7 -4
- package/lib/codec/Switcheo/carbon/erc20/events.d.ts +14 -8
- package/lib/codec/Switcheo/carbon/erc20/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/erc20/params.d.ts +11 -7
- package/lib/codec/Switcheo/carbon/erc20/query.d.ts +12 -9
- package/lib/codec/Switcheo/carbon/erc20/tx.d.ts +49 -27
- 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/evm_hooks.d.ts +7 -7
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/evmcontract/params.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +10 -10
- package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +8 -8
- 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 +7 -4
- package/lib/codec/Switcheo/carbon/evmmerge/query.d.ts +22 -10
- package/lib/codec/Switcheo/carbon/evmmerge/tx.d.ts +12 -6
- 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 +15 -9
- 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 +7 -4
- package/lib/codec/Switcheo/carbon/inflation/query.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/insurance/event.d.ts +4 -4
- 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/event.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/liquidation/genesis.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/liquidation/liquidation.d.ts +17 -0
- package/lib/codec/Switcheo/carbon/liquidation/liquidation.js +46 -0
- package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +4 -4
- 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/params.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/liquiditypool/proposal.d.ts +11 -11
- package/lib/codec/Switcheo/carbon/liquiditypool/query.d.ts +33 -33
- package/lib/codec/Switcheo/carbon/liquiditypool/reward.d.ts +18 -18
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +41 -41
- 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 +18 -12
- package/lib/codec/Switcheo/carbon/market/genesis.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/market/market.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/market/params.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/market/proposal.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/market/query.d.ts +30 -24
- package/lib/codec/Switcheo/carbon/market/tx.d.ts +27 -27
- 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 +18 -0
- package/lib/codec/Switcheo/carbon/marketstats/params.js +46 -0
- package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +4 -4
- 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 +7 -7
- package/lib/codec/Switcheo/carbon/oracle/params.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/oracle/proposal.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/oracle/query.d.ts +30 -30
- package/lib/codec/Switcheo/carbon/oracle/slashing.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +16 -16
- package/lib/codec/Switcheo/carbon/order/event.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/order/evm_hooks.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/order/genesis.d.ts +6 -6
- package/lib/codec/Switcheo/carbon/order/order.d.ts +8 -8
- package/lib/codec/Switcheo/carbon/order/params.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/order/query.d.ts +12 -12
- package/lib/codec/Switcheo/carbon/order/tx.d.ts +14 -14
- 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 +27 -14
- package/lib/codec/Switcheo/carbon/perpspool/params.d.ts +8 -5
- package/lib/codec/Switcheo/carbon/perpspool/pool.d.ts +16 -10
- 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/evm_hooks.d.ts +4 -4
- 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/params.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/pricing/pricing.d.ts +4 -4
- 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 +16 -16
- 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/params.d.ts +4 -4
- package/lib/codec/Switcheo/carbon/subaccount/query.d.ts +19 -19
- package/lib/codec/Switcheo/carbon/subaccount/subaccount.d.ts +5 -5
- package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +10 -10
- package/lib/codec/adl/genesis.d.ts +18 -0
- package/lib/codec/adl/genesis.js +46 -0
- package/lib/codec/adl/query.d.ts +12 -0
- package/lib/codec/adl/query.js +20 -0
- package/lib/codec/adl/tx.d.ts +12 -0
- package/lib/codec/adl/tx.js +20 -0
- package/lib/codec/admin/export.d.ts +2 -0
- package/lib/codec/admin/export.js +13 -0
- package/lib/codec/admin/genesis.d.ts +18 -0
- package/lib/codec/admin/genesis.js +46 -0
- package/lib/codec/admin/query.d.ts +62 -0
- package/lib/codec/admin/query.js +186 -0
- package/lib/codec/admin/tx.d.ts +62 -0
- package/lib/codec/admin/tx.js +198 -0
- package/lib/codec/alliance/alliance/alliance.d.ts +5 -5
- package/lib/codec/alliance/alliance/delegations.d.ts +6 -6
- package/lib/codec/alliance/alliance/events.d.ts +7 -7
- package/lib/codec/alliance/alliance/export.d.ts +1 -1
- package/lib/codec/alliance/alliance/export.js +6 -5
- package/lib/codec/alliance/alliance/genesis.d.ts +7 -7
- package/lib/codec/alliance/alliance/gov.d.ts +7 -5
- package/lib/codec/alliance/alliance/gov.js +20 -0
- package/lib/codec/alliance/alliance/params.d.ts +5 -4
- package/lib/codec/alliance/alliance/params.js +14 -2
- package/lib/codec/alliance/alliance/query.d.ts +88 -100
- package/lib/codec/alliance/alliance/query.js +262 -250
- package/lib/codec/alliance/alliance/redelegations.d.ts +5 -5
- package/lib/codec/alliance/alliance/tx.d.ts +20 -18
- package/lib/codec/alliance/alliance/tx.js +20 -0
- package/lib/codec/alliance/alliance/unbonding.d.ts +5 -3
- package/lib/codec/alliance/alliance/unbonding.js +18 -2
- package/lib/codec/alliance/alliance.d.ts +65 -0
- package/lib/codec/alliance/alliance.js +354 -0
- package/lib/codec/alliance/delegations.d.ts +86 -0
- package/lib/codec/alliance/delegations.js +489 -0
- package/lib/codec/alliance/events.d.ts +61 -0
- package/lib/codec/alliance/events.js +403 -0
- package/lib/codec/alliance/export.d.ts +8 -0
- package/lib/codec/alliance/export.js +64 -0
- package/lib/codec/alliance/genesis.d.ts +74 -0
- package/lib/codec/alliance/genesis.js +469 -0
- package/lib/codec/alliance/gov.d.ts +78 -0
- package/lib/codec/alliance/gov.js +380 -0
- package/lib/codec/alliance/params.d.ts +34 -0
- package/lib/codec/alliance/params.js +182 -0
- package/lib/codec/alliance/query.d.ts +333 -0
- package/lib/codec/alliance/query.js +1497 -0
- package/lib/codec/alliance/tx.d.ts +111 -0
- package/lib/codec/alliance/tx.js +495 -0
- package/lib/codec/bank/event.d.ts +65 -0
- package/lib/codec/bank/event.js +332 -0
- package/lib/codec/bank/export.d.ts +2 -0
- package/lib/codec/bank/export.js +14 -0
- package/lib/codec/bank/genesis.d.ts +18 -0
- package/lib/codec/bank/genesis.js +46 -0
- package/lib/codec/bank/query.d.ts +77 -0
- package/lib/codec/bank/query.js +459 -0
- package/lib/codec/book/book.d.ts +57 -0
- package/lib/codec/book/book.js +319 -0
- package/lib/codec/book/event.d.ts +22 -0
- package/lib/codec/book/event.js +113 -0
- package/lib/codec/book/export.d.ts +4 -0
- package/lib/codec/book/export.js +23 -0
- package/lib/codec/book/genesis.d.ts +25 -0
- package/lib/codec/book/genesis.js +79 -0
- package/lib/codec/book/legacy.d.ts +22 -0
- package/lib/codec/book/legacy.js +120 -0
- package/lib/codec/book/query.d.ts +141 -0
- package/lib/codec/book/query.js +606 -0
- package/lib/codec/book/tx.d.ts +12 -0
- package/lib/codec/book/tx.js +20 -0
- package/lib/codec/broker/amm.d.ts +50 -0
- package/lib/codec/broker/amm.js +326 -0
- package/lib/codec/broker/candlestick.d.ts +27 -0
- package/lib/codec/broker/candlestick.js +211 -0
- package/lib/codec/broker/event.d.ts +53 -0
- package/lib/codec/broker/event.js +485 -0
- package/lib/codec/broker/export.d.ts +7 -0
- package/lib/codec/broker/export.js +27 -0
- package/lib/codec/broker/genesis.d.ts +25 -0
- package/lib/codec/broker/genesis.js +79 -0
- package/lib/codec/broker/incoming_liquidations.d.ts +18 -0
- package/lib/codec/broker/incoming_liquidations.js +93 -0
- package/lib/codec/broker/incoming_pool_swap.d.ts +23 -0
- package/lib/codec/broker/incoming_pool_swap.js +136 -0
- package/lib/codec/broker/pagination.d.ts +19 -0
- package/lib/codec/broker/pagination.js +78 -0
- package/lib/codec/broker/query.d.ts +107 -0
- package/lib/codec/broker/query.js +597 -0
- package/lib/codec/broker/tx.d.ts +53 -0
- package/lib/codec/broker/tx.js +176 -0
- package/lib/codec/btcx/denom_cross_chain_info.d.ts +21 -0
- package/lib/codec/btcx/denom_cross_chain_info.js +98 -0
- package/lib/codec/btcx/denom_info.d.ts +24 -0
- package/lib/codec/btcx/denom_info.js +140 -0
- package/lib/codec/btcx/export.d.ts +4 -0
- package/lib/codec/btcx/export.js +19 -0
- package/lib/codec/btcx/genesis.d.ts +18 -0
- package/lib/codec/btcx/genesis.js +46 -0
- package/lib/codec/btcx/query.d.ts +68 -0
- package/lib/codec/btcx/query.js +275 -0
- package/lib/codec/btcx/tx.d.ts +92 -0
- package/lib/codec/btcx/tx.js +436 -0
- package/lib/codec/carbon-models.js +1 -5
- package/lib/codec/ccm/ccm.d.ts +19 -0
- package/lib/codec/ccm/ccm.js +60 -0
- package/lib/codec/ccm/export.d.ts +4 -0
- package/lib/codec/ccm/export.js +20 -0
- package/lib/codec/ccm/genesis.d.ts +83 -0
- package/lib/codec/ccm/genesis.js +438 -0
- package/lib/codec/ccm/query.d.ts +45 -0
- package/lib/codec/ccm/query.js +197 -0
- package/lib/codec/ccm/tx.d.ts +97 -0
- package/lib/codec/ccm/tx.js +462 -0
- package/lib/codec/cdp/asset_params.d.ts +57 -0
- package/lib/codec/cdp/asset_params.js +411 -0
- package/lib/codec/cdp/cdp_liquidations.d.ts +32 -0
- package/lib/codec/cdp/cdp_liquidations.js +288 -0
- package/lib/codec/cdp/debt_info.d.ts +23 -0
- package/lib/codec/cdp/debt_info.js +158 -0
- package/lib/codec/cdp/e_mode_category.d.ts +23 -0
- package/lib/codec/cdp/e_mode_category.js +135 -0
- package/lib/codec/cdp/event.d.ts +446 -0
- package/lib/codec/cdp/event.js +2913 -0
- package/lib/codec/cdp/export.d.ts +13 -0
- package/lib/codec/cdp/export.js +210 -0
- package/lib/codec/cdp/genesis.d.ts +134 -0
- package/lib/codec/cdp/genesis.js +825 -0
- package/lib/codec/cdp/params.d.ts +68 -0
- package/lib/codec/cdp/params.js +210 -0
- package/lib/codec/cdp/query.d.ts +644 -0
- package/lib/codec/cdp/query.js +3099 -0
- package/lib/codec/cdp/rate_strategy_params.d.ts +26 -0
- package/lib/codec/cdp/rate_strategy_params.js +180 -0
- package/lib/codec/cdp/reward_scheme.d.ts +71 -0
- package/lib/codec/cdp/reward_scheme.js +550 -0
- package/lib/codec/cdp/stablecoin_debt_info.d.ts +22 -0
- package/lib/codec/cdp/stablecoin_debt_info.js +144 -0
- package/lib/codec/cdp/stablecoin_interest_info.d.ts +19 -0
- package/lib/codec/cdp/stablecoin_interest_info.js +99 -0
- package/lib/codec/cdp/tx.d.ts +1026 -0
- package/lib/codec/cdp/tx.js +5191 -0
- package/lib/codec/coin/bridge.d.ts +24 -0
- package/lib/codec/coin/bridge.js +151 -0
- package/lib/codec/coin/event.d.ts +143 -0
- package/lib/codec/coin/event.js +775 -0
- package/lib/codec/coin/export.d.ts +8 -0
- package/lib/codec/coin/export.js +107 -0
- package/lib/codec/coin/genesis.d.ts +42 -0
- package/lib/codec/coin/genesis.js +207 -0
- package/lib/codec/coin/group.d.ts +50 -0
- package/lib/codec/coin/group.js +230 -0
- package/lib/codec/coin/proposal.d.ts +21 -0
- package/lib/codec/coin/proposal.js +91 -0
- package/lib/codec/coin/query.d.ts +310 -0
- package/lib/codec/coin/query.js +1439 -0
- package/lib/codec/coin/token.d.ts +104 -0
- package/lib/codec/coin/token.js +700 -0
- package/lib/codec/coin/tx.d.ts +586 -0
- package/lib/codec/coin/tx.js +3131 -0
- package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +18 -0
- package/lib/codec/cosmos/app/module/v1alpha1/module.js +46 -0
- package/lib/codec/cosmos/app/runtime/v1alpha1/module.d.ts +22 -4
- package/lib/codec/cosmos/app/runtime/v1alpha1/module.js +50 -2
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +5 -5
- package/lib/codec/cosmos/app/v1alpha1/module.d.ts +6 -6
- package/lib/codec/cosmos/app/v1alpha1/query.d.ts +4 -4
- package/lib/codec/cosmos/auth/module/v1/module.d.ts +4 -4
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +6 -6
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +22 -22
- package/lib/codec/cosmos/auth/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/authz/module/v1/module.d.ts +3 -3
- 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 +9 -9
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +23 -23
- package/lib/codec/cosmos/authz/v1beta1/tx.js +36 -36
- package/lib/codec/cosmos/autocli/v1/options.d.ts +11 -13
- package/lib/codec/cosmos/autocli/v1/options.js +4 -19
- package/lib/codec/cosmos/autocli/v1/query.d.ts +5 -5
- package/lib/codec/cosmos/bank/module/v1/module.d.ts +5 -5
- 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/export.d.ts +1 -1
- package/lib/codec/cosmos/bank/v1beta1/export.js +5 -1
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +111 -26
- package/lib/codec/cosmos/bank/v1beta1/query.js +257 -3
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +11 -10
- package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +35 -12
- package/lib/codec/cosmos/base/abci/v1beta1/abci.js +137 -1
- package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +4 -4
- package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +40 -4
- package/lib/codec/cosmos/base/node/v1beta1/query.js +257 -3
- 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 +14 -8
- package/lib/codec/cosmos/capability/module/v1/module.d.ts +3 -3
- 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/circuit/module/v1/module.d.ts +3 -3
- package/lib/codec/cosmos/circuit/v1/query.d.ts +8 -8
- package/lib/codec/cosmos/circuit/v1/tx.d.ts +8 -8
- package/lib/codec/cosmos/circuit/v1/types.d.ts +5 -5
- package/lib/codec/cosmos/consensus/module/v1/module.d.ts +3 -3
- package/lib/codec/cosmos/consensus/v1/query.d.ts +5 -5
- package/lib/codec/cosmos/consensus/v1/tx.d.ts +9 -7
- package/lib/codec/cosmos/consensus/v1/tx.js +16 -0
- package/lib/codec/cosmos/crisis/module/v1/module.d.ts +3 -3
- package/lib/codec/cosmos/crisis/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +6 -6
- package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +5 -5
- 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/module/v1/module.d.ts +3 -3
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +14 -14
- package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/export.js +3 -1
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +10 -10
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +25 -25
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +55 -14
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +117 -1
- package/lib/codec/cosmos/evidence/module/v1/module.d.ts +3 -3
- 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/module/v1/module.d.ts +3 -3
- 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 +10 -10
- package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +43 -6
- package/lib/codec/cosmos/feegrant/v1beta1/tx.js +84 -1
- package/lib/codec/cosmos/genutil/module/v1/module.d.ts +3 -3
- package/lib/codec/cosmos/genutil/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/module/v1/module.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +12 -3
- package/lib/codec/cosmos/gov/v1/genesis.js +18 -2
- package/lib/codec/cosmos/gov/v1/gov.d.ts +83 -17
- package/lib/codec/cosmos/gov/v1/gov.js +127 -6
- package/lib/codec/cosmos/gov/v1/query.d.ts +43 -19
- package/lib/codec/cosmos/gov/v1/query.js +87 -3
- package/lib/codec/cosmos/gov/v1/tx.d.ts +66 -14
- package/lib/codec/cosmos/gov/v1/tx.js +190 -4
- package/lib/codec/cosmos/gov/v1beta1/export.d.ts +3 -0
- package/lib/codec/cosmos/gov/v1beta1/export.js +45 -0
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +6 -6
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +11 -11
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +19 -19
- package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +11 -11
- package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/group/module/v1/module.d.ts +3 -3
- package/lib/codec/cosmos/group/v1/events.d.ts +12 -12
- package/lib/codec/cosmos/group/v1/events.js +4 -4
- 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 +22 -16
- package/lib/codec/cosmos/ics23/v1/proofs.d.ts +15 -15
- package/lib/codec/cosmos/mint/module/v1/module.d.ts +3 -3
- 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/mint/v1beta1/tx.d.ts +4 -4
- package/lib/codec/cosmos/nft/module/v1/module.d.ts +3 -3
- 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 +5 -5
- package/lib/codec/cosmos/orm/query/v1alpha1/query.d.ts +9 -9
- package/lib/codec/cosmos/orm/v1/orm.d.ts +11 -8
- package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +6 -26
- package/lib/codec/cosmos/orm/v1alpha1/schema.js +2 -32
- package/lib/codec/cosmos/params/module/v1/module.d.ts +3 -3
- 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/reflection/v1/reflection.d.ts +4 -4
- package/lib/codec/cosmos/slashing/module/v1/module.d.ts +3 -3
- 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 +13 -12
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +6 -6
- package/lib/codec/cosmos/staking/module/v1/module.d.ts +7 -3
- package/lib/codec/cosmos/staking/module/v1/module.js +35 -2
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +6 -4
- package/lib/codec/cosmos/staking/v1beta1/authz.js +7 -0
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +6 -5
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +30 -30
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +27 -27
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +29 -16
- package/lib/codec/cosmos/staking/v1beta1/tx.js +16 -0
- package/lib/codec/cosmos/store/internal/kv/v1beta1/kv.d.ts +4 -4
- package/lib/codec/cosmos/store/snapshots/v1/snapshot.d.ts +9 -9
- package/lib/codec/cosmos/store/streaming/abci/grpc.d.ts +6 -6
- package/lib/codec/cosmos/store/v1beta1/commit_info.d.ts +5 -5
- package/lib/codec/cosmos/store/v1beta1/listening.d.ts +4 -4
- package/lib/codec/cosmos/tx/config/v1/config.d.ts +3 -3
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +11 -10
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +4 -3
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +52 -29
- package/lib/codec/cosmos/tx/v1beta1/service.js +26 -7
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +21 -20
- package/lib/codec/cosmos/tx/v1beta1/tx.js +4 -4
- package/lib/codec/cosmos/upgrade/module/v1/module.d.ts +3 -3
- 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/module/v1/module.d.ts +3 -3
- 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 +1 -5
- package/lib/codec/crisis/genesis.d.ts +18 -0
- package/lib/codec/crisis/genesis.js +46 -0
- package/lib/codec/crisis/query.d.ts +43 -0
- package/lib/codec/crisis/query.js +103 -0
- package/lib/codec/crisis/tx.d.ts +12 -0
- package/lib/codec/crisis/tx.js +20 -0
- package/lib/codec/erc20/erc20.d.ts +41 -0
- package/lib/codec/erc20/erc20.js +144 -0
- package/lib/codec/erc20/events.d.ts +76 -0
- package/lib/codec/erc20/events.js +330 -0
- package/lib/codec/erc20/export.d.ts +5 -0
- package/lib/codec/erc20/export.js +37 -0
- package/lib/codec/erc20/genesis.d.ts +40 -0
- package/lib/codec/erc20/genesis.js +139 -0
- package/lib/codec/erc20/query.d.ts +117 -0
- package/lib/codec/erc20/query.js +333 -0
- package/lib/codec/erc20/tx.d.ts +232 -0
- package/lib/codec/erc20/tx.js +765 -0
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +4 -4
- package/lib/codec/ethermint/evm/v1/events.d.ts +6 -6
- 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 +10 -10
- package/lib/codec/ethermint/feemarket/v1/events.d.ts +4 -4
- 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/feemarket/v1/tx.d.ts +4 -4
- 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 +1 -5
- package/lib/codec/evmbank/export.d.ts +2 -0
- package/lib/codec/evmbank/export.js +8 -0
- package/lib/codec/evmbank/genesis.d.ts +32 -0
- package/lib/codec/evmbank/genesis.js +152 -0
- package/lib/codec/evmbank/query.d.ts +40 -0
- package/lib/codec/evmbank/query.js +116 -0
- package/lib/codec/evmcontract/genesis.d.ts +18 -0
- package/lib/codec/evmcontract/genesis.js +46 -0
- package/lib/codec/evmcontract/query.d.ts +12 -0
- package/lib/codec/evmcontract/query.js +20 -0
- package/lib/codec/evmcontract/tx.d.ts +12 -0
- package/lib/codec/evmcontract/tx.js +20 -0
- package/lib/codec/evmmerge/address.d.ts +19 -0
- package/lib/codec/evmmerge/address.js +75 -0
- package/lib/codec/evmmerge/event.d.ts +20 -0
- package/lib/codec/evmmerge/event.js +90 -0
- package/lib/codec/evmmerge/export.d.ts +6 -0
- package/lib/codec/evmmerge/export.js +20 -0
- package/lib/codec/evmmerge/genesis.d.ts +48 -0
- package/lib/codec/evmmerge/genesis.js +216 -0
- package/lib/codec/evmmerge/offchain.d.ts +22 -0
- package/lib/codec/evmmerge/offchain.js +105 -0
- package/lib/codec/evmmerge/query.d.ts +75 -0
- package/lib/codec/evmmerge/query.js +254 -0
- package/lib/codec/evmmerge/tx.d.ts +45 -0
- package/lib/codec/evmmerge/tx.js +128 -0
- package/lib/codec/fee/event.d.ts +20 -0
- package/lib/codec/fee/event.js +83 -0
- package/lib/codec/fee/export.d.ts +5 -0
- package/lib/codec/fee/export.js +32 -0
- package/lib/codec/fee/fee.d.ts +42 -0
- package/lib/codec/fee/fee.js +183 -0
- package/lib/codec/fee/genesis.d.ts +23 -0
- package/lib/codec/fee/genesis.js +79 -0
- package/lib/codec/fee/proposal.d.ts +57 -0
- package/lib/codec/fee/proposal.js +311 -0
- package/lib/codec/fee/query.d.ts +114 -0
- package/lib/codec/fee/query.js +470 -0
- package/lib/codec/fee/tx.d.ts +108 -0
- package/lib/codec/fee/tx.js +415 -0
- package/lib/codec/google/protobuf/any.d.ts +8 -7
- package/lib/codec/google/protobuf/descriptor.d.ts +295 -40
- package/lib/codec/google/protobuf/descriptor.js +1060 -41
- package/lib/codec/google/protobuf/duration.d.ts +3 -3
- package/lib/codec/google/protobuf/timestamp.d.ts +4 -4
- package/lib/codec/google/protobuf/wrappers.d.ts +11 -11
- package/lib/codec/headersync/consensus_peers.d.ts +70 -0
- package/lib/codec/headersync/consensus_peers.js +383 -0
- package/lib/codec/headersync/export.d.ts +4 -0
- package/lib/codec/headersync/export.js +24 -0
- package/lib/codec/headersync/genesis.d.ts +79 -0
- package/lib/codec/headersync/genesis.js +419 -0
- package/lib/codec/headersync/query.d.ts +64 -0
- package/lib/codec/headersync/query.js +231 -0
- package/lib/codec/headersync/tx.d.ts +64 -0
- package/lib/codec/headersync/tx.js +215 -0
- package/lib/codec/ibc/applications/fee/v1/ack.d.ts +3 -3
- package/lib/codec/ibc/applications/fee/v1/fee.d.ts +6 -6
- package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +7 -7
- package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +3 -3
- package/lib/codec/ibc/applications/fee/v1/query.d.ts +29 -23
- package/lib/codec/ibc/applications/fee/v1/query.js +54 -0
- package/lib/codec/ibc/applications/fee/v1/tx.d.ts +10 -10
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +1 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +3 -1
- 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 +6 -6
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +38 -6
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +101 -1
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +7 -7
- package/lib/codec/ibc/applications/interchain_accounts/host/export.d.ts +1 -0
- package/lib/codec/ibc/applications/interchain_accounts/host/export.js +4 -1
- 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/host/v1/tx.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 +76 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.js +424 -0
- 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/authz.d.ts +4 -4
- package/lib/codec/ibc/applications/transfer/v1/export.d.ts +1 -1
- package/lib/codec/ibc/applications/transfer/v1/export.js +3 -1
- package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +3 -3
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +17 -17
- package/lib/codec/ibc/applications/transfer/v1/query.js +6 -6
- package/lib/codec/ibc/applications/transfer/v1/transfer.d.ts +4 -4
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +39 -4
- package/lib/codec/ibc/applications/transfer/v1/tx.js +101 -1
- package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +3 -3
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +27 -9
- package/lib/codec/ibc/core/channel/v1/channel.js +65 -1
- package/lib/codec/ibc/core/channel/v1/export.d.ts +2 -2
- package/lib/codec/ibc/core/channel/v1/export.js +5 -2
- package/lib/codec/ibc/core/channel/v1/genesis.d.ts +4 -4
- package/lib/codec/ibc/core/channel/v1/query.d.ts +67 -28
- package/lib/codec/ibc/core/channel/v1/query.js +147 -1
- package/lib/codec/ibc/core/channel/v1/tx.d.ts +22 -22
- package/lib/codec/ibc/core/client/v1/client.d.ts +57 -49
- package/lib/codec/ibc/core/client/v1/client.js +117 -117
- package/lib/codec/ibc/core/client/v1/export.d.ts +2 -2
- package/lib/codec/ibc/core/client/v1/export.js +9 -3
- package/lib/codec/ibc/core/client/v1/genesis.d.ts +11 -6
- package/lib/codec/ibc/core/client/v1/query.d.ts +20 -20
- package/lib/codec/ibc/core/client/v1/tx.d.ts +118 -26
- package/lib/codec/ibc/core/client/v1/tx.js +335 -1
- 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/export.d.ts +1 -1
- package/lib/codec/ibc/core/connection/v1/export.js +3 -1
- package/lib/codec/ibc/core/connection/v1/genesis.d.ts +3 -3
- package/lib/codec/ibc/core/connection/v1/query.d.ts +14 -14
- package/lib/codec/ibc/core/connection/v1/tx.d.ts +45 -11
- package/lib/codec/ibc/core/connection/v1/tx.js +100 -1
- package/lib/codec/ibc/core/types/v1/genesis.d.ts +3 -3
- package/lib/codec/ibc/lightclients/localhost/v1/export.d.ts +1 -0
- package/lib/codec/ibc/lightclients/localhost/v1/export.js +5 -0
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts +26 -0
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.js +76 -0
- package/lib/codec/ibc/lightclients/localhost/v2/localhost.d.ts +3 -3
- package/lib/codec/ibc/lightclients/solomachine/v1/export.d.ts +1 -0
- package/lib/codec/ibc/lightclients/solomachine/v1/export.js +23 -0
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts +298 -0
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.js +1356 -0
- package/lib/codec/ibc/lightclients/solomachine/v2/solomachine.d.ts +18 -18
- package/lib/codec/ibc/lightclients/solomachine/v3/solomachine.d.ts +10 -10
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +7 -7
- package/lib/codec/ibc-models.js +1 -5
- package/lib/codec/index.d.ts +30 -4
- package/lib/codec/index.js +1623 -843
- package/lib/codec/inflation/export.d.ts +2 -0
- package/lib/codec/inflation/export.js +8 -0
- package/lib/codec/inflation/genesis.d.ts +25 -0
- package/lib/codec/inflation/genesis.js +79 -0
- package/lib/codec/inflation/inflation.d.ts +26 -0
- package/lib/codec/inflation/inflation.js +165 -0
- package/lib/codec/inflation/query.d.ts +41 -0
- package/lib/codec/inflation/query.js +109 -0
- package/lib/codec/inflation/tx.d.ts +12 -0
- package/lib/codec/inflation/tx.js +20 -0
- package/lib/codec/insurance/event.d.ts +24 -0
- package/lib/codec/insurance/event.js +46 -0
- package/lib/codec/insurance/export.d.ts +4 -0
- package/lib/codec/insurance/export.js +14 -0
- package/lib/codec/insurance/fund.d.ts +29 -0
- package/lib/codec/insurance/fund.js +148 -0
- package/lib/codec/insurance/genesis.d.ts +18 -0
- package/lib/codec/insurance/genesis.js +46 -0
- package/lib/codec/insurance/query.d.ts +41 -0
- package/lib/codec/insurance/query.js +108 -0
- package/lib/codec/insurance/tx.d.ts +44 -0
- package/lib/codec/insurance/tx.js +144 -0
- package/lib/codec/leverage/event.d.ts +21 -0
- package/lib/codec/leverage/event.js +100 -0
- package/lib/codec/leverage/export.d.ts +4 -0
- package/lib/codec/leverage/export.js +16 -0
- package/lib/codec/leverage/genesis.d.ts +24 -0
- package/lib/codec/leverage/genesis.js +64 -0
- package/lib/codec/leverage/leverage.d.ts +30 -0
- package/lib/codec/leverage/leverage.js +134 -0
- package/lib/codec/leverage/query.d.ts +70 -0
- package/lib/codec/leverage/query.js +234 -0
- package/lib/codec/leverage/tx.d.ts +43 -0
- package/lib/codec/leverage/tx.js +127 -0
- package/lib/codec/liquidation/export.d.ts +5 -0
- package/lib/codec/liquidation/export.js +17 -0
- package/lib/codec/liquidation/genesis.d.ts +37 -0
- package/lib/codec/liquidation/genesis.js +136 -0
- package/lib/codec/liquidation/liquidation.d.ts +17 -0
- package/lib/codec/liquidation/liquidation.js +46 -0
- package/lib/codec/liquidation/outstanding_position.d.ts +33 -0
- package/lib/codec/liquidation/outstanding_position.js +203 -0
- package/lib/codec/liquidation/query.d.ts +77 -0
- package/lib/codec/liquidation/query.js +341 -0
- package/lib/codec/liquidation/quote_changes.d.ts +22 -0
- package/lib/codec/liquidation/quote_changes.js +95 -0
- package/lib/codec/liquidation/tx.d.ts +12 -0
- package/lib/codec/liquidation/tx.js +20 -0
- package/lib/codec/liquiditypool/event.d.ts +182 -0
- package/lib/codec/liquiditypool/event.js +1268 -0
- package/lib/codec/liquiditypool/export.d.ts +6 -0
- package/lib/codec/liquiditypool/export.js +125 -0
- package/lib/codec/liquiditypool/genesis.d.ts +32 -0
- package/lib/codec/liquiditypool/genesis.js +228 -0
- package/lib/codec/liquiditypool/liquiditypool.d.ts +138 -0
- package/lib/codec/liquiditypool/liquiditypool.js +943 -0
- package/lib/codec/liquiditypool/proposal.d.ts +117 -0
- package/lib/codec/liquiditypool/proposal.js +697 -0
- package/lib/codec/liquiditypool/query.d.ts +370 -0
- package/lib/codec/liquiditypool/query.js +1738 -0
- package/lib/codec/liquiditypool/reward.d.ts +196 -0
- package/lib/codec/liquiditypool/reward.js +1204 -0
- package/lib/codec/liquiditypool/tx.d.ts +453 -0
- package/lib/codec/liquiditypool/tx.js +2423 -0
- package/lib/codec/lockproxy/event.d.ts +46 -0
- package/lib/codec/lockproxy/event.js +348 -0
- package/lib/codec/lockproxy/export.d.ts +5 -0
- package/lib/codec/lockproxy/export.js +28 -0
- package/lib/codec/lockproxy/genesis.d.ts +68 -0
- package/lib/codec/lockproxy/genesis.js +355 -0
- package/lib/codec/lockproxy/lockproxy.d.ts +22 -0
- package/lib/codec/lockproxy/lockproxy.js +147 -0
- package/lib/codec/lockproxy/query.d.ts +67 -0
- package/lib/codec/lockproxy/query.js +274 -0
- package/lib/codec/lockproxy/tx.d.ts +147 -0
- package/lib/codec/lockproxy/tx.js +808 -0
- package/lib/codec/market/event.d.ts +20 -0
- package/lib/codec/market/event.js +76 -0
- package/lib/codec/market/export.d.ts +6 -0
- package/lib/codec/market/export.js +61 -0
- package/lib/codec/market/fee.d.ts +123 -0
- package/lib/codec/market/fee.js +334 -0
- package/lib/codec/market/genesis.d.ts +31 -0
- package/lib/codec/market/genesis.js +147 -0
- package/lib/codec/market/legacy.d.ts +62 -0
- package/lib/codec/market/legacy.js +630 -0
- package/lib/codec/market/market.d.ts +131 -0
- package/lib/codec/market/market.js +1245 -0
- package/lib/codec/market/proposal.d.ts +46 -0
- package/lib/codec/market/proposal.js +245 -0
- package/lib/codec/market/query.d.ts +233 -0
- package/lib/codec/market/query.js +938 -0
- package/lib/codec/market/tx.d.ts +250 -0
- package/lib/codec/market/tx.js +1265 -0
- package/lib/codec/marketstats/export.d.ts +3 -0
- package/lib/codec/marketstats/export.js +12 -0
- package/lib/codec/marketstats/genesis.d.ts +21 -0
- package/lib/codec/marketstats/genesis.js +63 -0
- package/lib/codec/marketstats/marketstats.d.ts +31 -0
- package/lib/codec/marketstats/marketstats.js +258 -0
- package/lib/codec/marketstats/params.d.ts +18 -0
- package/lib/codec/marketstats/params.js +46 -0
- package/lib/codec/marketstats/query.d.ts +66 -0
- package/lib/codec/marketstats/query.js +195 -0
- package/lib/codec/marketstats/tx.d.ts +12 -0
- package/lib/codec/marketstats/tx.js +20 -0
- package/lib/codec/misc/block.d.ts +21 -0
- package/lib/codec/misc/block.js +105 -0
- package/lib/codec/misc/export.d.ts +6 -0
- package/lib/codec/misc/export.js +29 -0
- package/lib/codec/misc/message.d.ts +22 -0
- package/lib/codec/misc/message.js +128 -0
- package/lib/codec/misc/message_type.d.ts +18 -0
- package/lib/codec/misc/message_type.js +60 -0
- package/lib/codec/misc/query.d.ts +192 -0
- package/lib/codec/misc/query.js +884 -0
- package/lib/codec/misc/trade.d.ts +28 -0
- package/lib/codec/misc/trade.js +224 -0
- package/lib/codec/misc/transaction.d.ts +45 -0
- package/lib/codec/misc/transaction.js +369 -0
- package/lib/codec/oracle/event.d.ts +37 -0
- package/lib/codec/oracle/event.js +228 -0
- package/lib/codec/oracle/export.d.ts +6 -0
- package/lib/codec/oracle/export.js +58 -0
- package/lib/codec/oracle/genesis.d.ts +28 -0
- package/lib/codec/oracle/genesis.js +141 -0
- package/lib/codec/oracle/oracle.d.ts +94 -0
- package/lib/codec/oracle/oracle.js +650 -0
- package/lib/codec/oracle/proposal.d.ts +21 -0
- package/lib/codec/oracle/proposal.js +91 -0
- package/lib/codec/oracle/query.d.ts +336 -0
- package/lib/codec/oracle/query.js +1551 -0
- package/lib/codec/oracle/slashing.d.ts +33 -0
- package/lib/codec/oracle/slashing.js +191 -0
- package/lib/codec/oracle/tx.d.ts +169 -0
- package/lib/codec/oracle/tx.js +877 -0
- package/lib/codec/order/event.d.ts +23 -0
- package/lib/codec/order/event.js +146 -0
- package/lib/codec/order/export.d.ts +5 -0
- package/lib/codec/order/export.js +39 -0
- package/lib/codec/order/genesis.d.ts +62 -0
- package/lib/codec/order/genesis.js +322 -0
- package/lib/codec/order/order.d.ts +113 -0
- package/lib/codec/order/order.js +875 -0
- package/lib/codec/order/query.d.ts +143 -0
- package/lib/codec/order/query.js +596 -0
- package/lib/codec/order/tx.d.ts +146 -0
- package/lib/codec/order/tx.js +715 -0
- package/lib/codec/perpsliquidity/event.d.ts +115 -0
- package/lib/codec/perpsliquidity/event.js +657 -0
- package/lib/codec/perpsliquidity/genesis.d.ts +36 -0
- package/lib/codec/perpsliquidity/genesis.js +163 -0
- package/lib/codec/perpsliquidity/market.d.ts +84 -0
- package/lib/codec/perpsliquidity/market.js +431 -0
- package/lib/codec/perpsliquidity/params.d.ts +27 -0
- package/lib/codec/perpsliquidity/params.js +129 -0
- package/lib/codec/perpsliquidity/pool.d.ts +119 -0
- package/lib/codec/perpsliquidity/pool.js +774 -0
- package/lib/codec/perpsliquidity/query.d.ts +246 -0
- package/lib/codec/perpsliquidity/query.js +1125 -0
- package/lib/codec/perpsliquidity/tx.d.ts +203 -0
- package/lib/codec/perpsliquidity/tx.js +973 -0
- package/lib/codec/perpspool/event.d.ts +95 -0
- package/lib/codec/perpspool/event.js +561 -0
- package/lib/codec/perpspool/export.d.ts +7 -0
- package/lib/codec/perpspool/export.js +68 -0
- package/lib/codec/perpspool/genesis.d.ts +61 -0
- package/lib/codec/perpspool/genesis.js +343 -0
- package/lib/codec/perpspool/market.d.ts +96 -0
- package/lib/codec/perpspool/market.js +493 -0
- package/lib/codec/perpspool/params.d.ts +30 -0
- package/lib/codec/perpspool/params.js +189 -0
- package/lib/codec/perpspool/pool.d.ts +103 -0
- package/lib/codec/perpspool/pool.js +638 -0
- package/lib/codec/perpspool/query.d.ts +247 -0
- package/lib/codec/perpspool/query.js +1141 -0
- package/lib/codec/perpspool/tx.d.ts +229 -0
- package/lib/codec/perpspool/tx.js +1144 -0
- package/lib/codec/polynetwork-models.js +1 -5
- package/lib/codec/position/event.d.ts +26 -0
- package/lib/codec/position/event.js +180 -0
- package/lib/codec/position/export.d.ts +4 -0
- package/lib/codec/position/export.js +20 -0
- package/lib/codec/position/genesis.d.ts +24 -0
- package/lib/codec/position/genesis.js +64 -0
- package/lib/codec/position/position.d.ts +74 -0
- package/lib/codec/position/position.js +601 -0
- package/lib/codec/position/query.d.ts +92 -0
- package/lib/codec/position/query.js +400 -0
- package/lib/codec/position/tx.d.ts +42 -0
- package/lib/codec/position/tx.js +127 -0
- package/lib/codec/pricing/event.d.ts +74 -0
- package/lib/codec/pricing/event.js +361 -0
- package/lib/codec/pricing/export.d.ts +6 -0
- package/lib/codec/pricing/export.js +45 -0
- package/lib/codec/pricing/genesis.d.ts +26 -0
- package/lib/codec/pricing/genesis.js +95 -0
- package/lib/codec/pricing/legacy.d.ts +22 -0
- package/lib/codec/pricing/legacy.js +93 -0
- package/lib/codec/pricing/pricing.d.ts +60 -0
- package/lib/codec/pricing/pricing.js +456 -0
- package/lib/codec/pricing/proposal.d.ts +31 -0
- package/lib/codec/pricing/proposal.js +148 -0
- package/lib/codec/pricing/query.d.ts +183 -0
- package/lib/codec/pricing/query.js +759 -0
- package/lib/codec/pricing/tx.d.ts +131 -0
- package/lib/codec/pricing/tx.js +529 -0
- package/lib/codec/profile/event.d.ts +20 -0
- package/lib/codec/profile/event.js +78 -0
- package/lib/codec/profile/export.d.ts +4 -0
- package/lib/codec/profile/export.js +17 -0
- package/lib/codec/profile/genesis.d.ts +24 -0
- package/lib/codec/profile/genesis.js +64 -0
- package/lib/codec/profile/profile.d.ts +20 -0
- package/lib/codec/profile/profile.js +83 -0
- package/lib/codec/profile/query.d.ts +92 -0
- package/lib/codec/profile/query.js +360 -0
- package/lib/codec/profile/tx.d.ts +43 -0
- package/lib/codec/profile/tx.js +127 -0
- package/lib/codec/proofs.d.ts +315 -0
- package/lib/codec/proofs.js +1304 -0
- package/lib/codec/query/pagination.d.ts +29 -0
- package/lib/codec/query/pagination.js +126 -0
- package/lib/codec/sequence/export.d.ts +3 -0
- package/lib/codec/sequence/export.js +13 -0
- package/lib/codec/sequence/genesis.d.ts +30 -0
- package/lib/codec/sequence/genesis.js +122 -0
- package/lib/codec/sequence/query.d.ts +63 -0
- package/lib/codec/sequence/query.js +208 -0
- package/lib/codec/sequence/tx.d.ts +41 -0
- package/lib/codec/sequence/tx.js +148 -0
- package/lib/codec/subaccount/export.d.ts +4 -0
- package/lib/codec/subaccount/export.js +35 -0
- package/lib/codec/subaccount/genesis.d.ts +28 -0
- package/lib/codec/subaccount/genesis.js +110 -0
- package/lib/codec/subaccount/legacy.d.ts +19 -0
- package/lib/codec/subaccount/legacy.js +72 -0
- package/lib/codec/subaccount/query.d.ts +229 -0
- package/lib/codec/subaccount/query.js +1026 -0
- package/lib/codec/subaccount/subaccount.d.ts +57 -0
- package/lib/codec/subaccount/subaccount.js +349 -0
- package/lib/codec/subaccount/tx.d.ts +92 -0
- package/lib/codec/subaccount/tx.js +395 -0
- package/lib/codec/tendermint/abci/types.d.ts +213 -149
- package/lib/codec/tendermint/abci/types.js +1100 -798
- 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 +31 -8
- package/lib/codec/tendermint/types/params.js +67 -1
- package/lib/codec/tendermint/types/types.d.ts +67 -27
- package/lib/codec/tendermint/types/types.js +250 -49
- package/lib/codec/tendermint/types/validator.d.ts +19 -5
- package/lib/codec/tendermint/types/validator.js +50 -1
- package/lib/codec/tendermint/version/types.d.ts +4 -4
- package/lib/constant/address.d.ts +1 -1
- package/lib/constant/amino.d.ts +0 -0
- package/lib/constant/amino.js +1 -0
- package/lib/constant/chainConfig.d.ts +26 -0
- package/lib/constant/chainConfig.js +154 -0
- package/lib/constant/eip6963Provider.d.ts +26 -0
- package/lib/constant/eip6963Provider.js +31 -0
- package/lib/constant/generic.js +1 -1
- package/lib/constant/ibc.d.ts +3 -3
- package/lib/constant/ibc.js +1 -5
- package/lib/constant/index.js +1 -5
- package/lib/constant/network.d.ts +0 -1
- package/lib/constant/network.js +0 -4
- package/lib/constant/node.d.ts +1 -1
- package/lib/constant/node.js +0 -3
- package/lib/constant/signless.d.ts +2 -0
- package/lib/constant/signless.js +5 -0
- package/lib/eth/index.js +1 -5
- package/lib/hydrogen/index.js +1 -5
- package/lib/hydrogen/transfer.d.ts +2 -2
- package/lib/index.js +1 -5
- package/lib/insights/common.d.ts +1 -1
- package/lib/insights/index.js +1 -5
- package/lib/insights/node.d.ts +0 -1
- package/lib/insights/position.d.ts +1 -1
- package/lib/modules/alliance.js +1 -1
- package/lib/modules/cdp.js +49 -49
- 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/feemarket.d.ts +20 -0
- package/lib/modules/feemarket.js +45 -0
- package/lib/modules/gov.js +1 -1
- package/lib/modules/index.js +1 -5
- package/lib/modules/liquiditypool.js +1 -1
- package/lib/modules/order.js +1 -1
- package/lib/modules/perpsliquidity.d.ts +49 -0
- package/lib/modules/perpsliquidity.js +118 -0
- package/lib/modules/signless.d.ts +24 -0
- package/lib/modules/signless.js +108 -0
- package/lib/modules/vault.d.ts +56 -0
- package/lib/modules/vault.js +128 -0
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.d.ts +29 -0
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +178 -0
- package/lib/provider/account/EthLedgerAccount/EthLedgerSigner.d.ts +13 -0
- package/lib/provider/account/EthLedgerAccount/EthLedgerSigner.js +81 -0
- package/lib/provider/account/EthLedgerAccount/index.d.ts +2 -0
- package/lib/provider/account/EthLedgerAccount/index.js +14 -0
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/index.js +1 -5
- 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 +4 -8
- package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/index.js +1 -5
- package/lib/provider/account/index.js +1 -5
- package/lib/provider/amino/types/admin.js +28 -32
- package/lib/provider/amino/types/bank.js +2 -6
- package/lib/provider/amino/types/broker.js +2 -6
- package/lib/provider/amino/types/cdp.js +27 -31
- package/lib/provider/amino/types/coin.js +5 -9
- package/lib/provider/amino/types/erc20.js +3 -7
- package/lib/provider/amino/types/evm.js +2 -6
- package/lib/provider/amino/types/evmmerge.js +2 -6
- package/lib/provider/amino/types/feemarket.js +2 -6
- package/lib/provider/amino/types/gov.js +5 -9
- package/lib/provider/amino/types/grant.js +10 -14
- package/lib/provider/amino/types/ibc.js +2 -6
- package/lib/provider/amino/types/leverage.js +2 -6
- package/lib/provider/amino/types/liquidityPool.js +8 -12
- package/lib/provider/amino/types/market.js +7 -11
- package/lib/provider/amino/types/oracle.js +3 -7
- package/lib/provider/amino/types/order.js +5 -9
- package/lib/provider/amino/types/perpsliquidity.d.ts +4 -0
- package/lib/provider/amino/types/perpsliquidity.js +73 -0
- package/lib/provider/amino/types/perpspool.js +7 -11
- package/lib/provider/amino/types/position.js +2 -6
- package/lib/provider/amino/types/profile.js +2 -6
- package/lib/provider/amino/types/signless.d.ts +12 -0
- package/lib/provider/amino/types/signless.js +193 -0
- package/lib/provider/amino/types/staking.js +5 -9
- package/lib/provider/amino/types/subaccount.js +4 -8
- package/lib/provider/amino/utils.d.ts +2 -2
- package/lib/provider/amino/utils.js +12 -12
- package/lib/provider/eip6963Provider/Eip6963Provider.d.ts +8 -0
- package/lib/provider/eip6963Provider/Eip6963Provider.js +23 -0
- package/lib/provider/eip6963Provider/index.d.ts +1 -0
- package/lib/provider/eip6963Provider/index.js +8 -0
- package/lib/provider/keplr/KeplrAccount.js +6 -6
- package/lib/provider/leap/LeapAccount.js +3 -3
- package/lib/provider/ledger/ledger.js +6 -9
- package/lib/provider/metamask/MetaMask.d.ts +1 -1
- package/lib/provider/metamask/MetaMask.js +24 -28
- package/lib/provider/metamask/error.d.ts +1 -1
- package/lib/provider/o3/O3Types.d.ts +1 -1
- package/lib/provider/o3/O3Wallet.js +11 -15
- package/lib/provider/o3/index.js +1 -5
- package/lib/provider/rainbowKit/RainbowKitAccount.d.ts +40 -0
- package/lib/provider/rainbowKit/RainbowKitAccount.js +322 -0
- package/lib/provider/rainbowKit/index.d.ts +1 -0
- package/lib/provider/rainbowKit/index.js +8 -0
- package/lib/provider/station/StationAccount.d.ts +28 -0
- package/lib/provider/station/StationAccount.js +168 -0
- package/lib/provider/station/index.d.ts +2 -0
- package/lib/provider/station/index.js +10 -0
- package/lib/provider/zilpay/Zilpay.js +4 -4
- package/lib/provider/zilpay/index.js +1 -5
- package/lib/util/address.d.ts +5 -5
- package/lib/util/address.js +15 -19
- package/lib/util/alliance.d.ts +1 -1
- 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 +2 -3
- package/lib/util/generic.js +3 -3
- package/lib/util/gov.d.ts +1 -1
- package/lib/util/grant.d.ts +1 -1
- package/lib/util/grant.js +1 -1
- package/lib/util/index.js +1 -5
- 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/signless.d.ts +11 -0
- package/lib/util/signless.js +92 -0
- package/lib/util/tx.d.ts +31 -5
- package/lib/util/tx.js +1 -5
- 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 +1 -1
- package/lib/wallet/CarbonWallet.js +12 -12
- package/lib/wallet/index.js +1 -5
- package/lib/websocket/connector.js +4 -8
- package/lib/websocket/index.js +1 -5
- package/lib/websocket/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MarketConfigWithPoolId = exports.GenesisState = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const params_1 = require("./params");
|
|
11
|
+
const market_1 = require("./market");
|
|
12
|
+
const pool_1 = require("./pool");
|
|
13
|
+
exports.protobufPackage = "Switcheo.carbon.perpsliquidity";
|
|
14
|
+
const baseGenesisState = {};
|
|
15
|
+
exports.GenesisState = {
|
|
16
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
17
|
+
if (message.params !== undefined) {
|
|
18
|
+
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
19
|
+
}
|
|
20
|
+
for (const v of message.pools) {
|
|
21
|
+
pool_1.PlPool.encode(v, writer.uint32(18).fork()).ldelim();
|
|
22
|
+
}
|
|
23
|
+
for (const v of message.marketConfigWithPoolIds) {
|
|
24
|
+
exports.MarketConfigWithPoolId.encode(v, writer.uint32(26).fork()).ldelim();
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = Object.assign({}, baseGenesisState);
|
|
32
|
+
message.pools = [];
|
|
33
|
+
message.marketConfigWithPoolIds = [];
|
|
34
|
+
while (reader.pos < end) {
|
|
35
|
+
const tag = reader.uint32();
|
|
36
|
+
switch (tag >>> 3) {
|
|
37
|
+
case 1:
|
|
38
|
+
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
39
|
+
break;
|
|
40
|
+
case 2:
|
|
41
|
+
message.pools.push(pool_1.PlPool.decode(reader, reader.uint32()));
|
|
42
|
+
break;
|
|
43
|
+
case 3:
|
|
44
|
+
message.marketConfigWithPoolIds.push(exports.MarketConfigWithPoolId.decode(reader, reader.uint32()));
|
|
45
|
+
break;
|
|
46
|
+
default:
|
|
47
|
+
reader.skipType(tag & 7);
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return message;
|
|
52
|
+
},
|
|
53
|
+
fromJSON(object) {
|
|
54
|
+
var _a, _b;
|
|
55
|
+
const message = Object.assign({}, baseGenesisState);
|
|
56
|
+
message.params =
|
|
57
|
+
object.params !== undefined && object.params !== null
|
|
58
|
+
? params_1.Params.fromJSON(object.params)
|
|
59
|
+
: undefined;
|
|
60
|
+
message.pools = ((_a = object.pools) !== null && _a !== void 0 ? _a : []).map((e) => pool_1.PlPool.fromJSON(e));
|
|
61
|
+
message.marketConfigWithPoolIds = ((_b = object.marketConfigWithPoolIds) !== null && _b !== void 0 ? _b : []).map((e) => exports.MarketConfigWithPoolId.fromJSON(e));
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
toJSON(message) {
|
|
65
|
+
const obj = {};
|
|
66
|
+
message.params !== undefined &&
|
|
67
|
+
(obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
|
|
68
|
+
if (message.pools) {
|
|
69
|
+
obj.pools = message.pools.map((e) => (e ? pool_1.PlPool.toJSON(e) : undefined));
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
obj.pools = [];
|
|
73
|
+
}
|
|
74
|
+
if (message.marketConfigWithPoolIds) {
|
|
75
|
+
obj.marketConfigWithPoolIds = message.marketConfigWithPoolIds.map((e) => e ? exports.MarketConfigWithPoolId.toJSON(e) : undefined);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
obj.marketConfigWithPoolIds = [];
|
|
79
|
+
}
|
|
80
|
+
return obj;
|
|
81
|
+
},
|
|
82
|
+
fromPartial(object) {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
const message = Object.assign({}, baseGenesisState);
|
|
85
|
+
message.params =
|
|
86
|
+
object.params !== undefined && object.params !== null
|
|
87
|
+
? params_1.Params.fromPartial(object.params)
|
|
88
|
+
: undefined;
|
|
89
|
+
message.pools = ((_a = object.pools) !== null && _a !== void 0 ? _a : []).map((e) => pool_1.PlPool.fromPartial(e));
|
|
90
|
+
message.marketConfigWithPoolIds = ((_b = object.marketConfigWithPoolIds) !== null && _b !== void 0 ? _b : []).map((e) => exports.MarketConfigWithPoolId.fromPartial(e));
|
|
91
|
+
return message;
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
const baseMarketConfigWithPoolId = { poolId: long_1.default.UZERO };
|
|
95
|
+
exports.MarketConfigWithPoolId = {
|
|
96
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
97
|
+
if (!message.poolId.isZero()) {
|
|
98
|
+
writer.uint32(8).uint64(message.poolId);
|
|
99
|
+
}
|
|
100
|
+
if (message.marketConfig !== undefined) {
|
|
101
|
+
market_1.MarketConfig.encode(message.marketConfig, writer.uint32(18).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({}, baseMarketConfigWithPoolId);
|
|
109
|
+
while (reader.pos < end) {
|
|
110
|
+
const tag = reader.uint32();
|
|
111
|
+
switch (tag >>> 3) {
|
|
112
|
+
case 1:
|
|
113
|
+
message.poolId = reader.uint64();
|
|
114
|
+
break;
|
|
115
|
+
case 2:
|
|
116
|
+
message.marketConfig = market_1.MarketConfig.decode(reader, reader.uint32());
|
|
117
|
+
break;
|
|
118
|
+
default:
|
|
119
|
+
reader.skipType(tag & 7);
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return message;
|
|
124
|
+
},
|
|
125
|
+
fromJSON(object) {
|
|
126
|
+
const message = Object.assign({}, baseMarketConfigWithPoolId);
|
|
127
|
+
message.poolId =
|
|
128
|
+
object.poolId !== undefined && object.poolId !== null
|
|
129
|
+
? long_1.default.fromString(object.poolId)
|
|
130
|
+
: long_1.default.UZERO;
|
|
131
|
+
message.marketConfig =
|
|
132
|
+
object.marketConfig !== undefined && object.marketConfig !== null
|
|
133
|
+
? market_1.MarketConfig.fromJSON(object.marketConfig)
|
|
134
|
+
: undefined;
|
|
135
|
+
return message;
|
|
136
|
+
},
|
|
137
|
+
toJSON(message) {
|
|
138
|
+
const obj = {};
|
|
139
|
+
message.poolId !== undefined &&
|
|
140
|
+
(obj.poolId = (message.poolId || long_1.default.UZERO).toString());
|
|
141
|
+
message.marketConfig !== undefined &&
|
|
142
|
+
(obj.marketConfig = message.marketConfig
|
|
143
|
+
? market_1.MarketConfig.toJSON(message.marketConfig)
|
|
144
|
+
: undefined);
|
|
145
|
+
return obj;
|
|
146
|
+
},
|
|
147
|
+
fromPartial(object) {
|
|
148
|
+
const message = Object.assign({}, baseMarketConfigWithPoolId);
|
|
149
|
+
message.poolId =
|
|
150
|
+
object.poolId !== undefined && object.poolId !== null
|
|
151
|
+
? long_1.default.fromValue(object.poolId)
|
|
152
|
+
: long_1.default.UZERO;
|
|
153
|
+
message.marketConfig =
|
|
154
|
+
object.marketConfig !== undefined && object.marketConfig !== null
|
|
155
|
+
? market_1.MarketConfig.fromPartial(object.marketConfig)
|
|
156
|
+
: undefined;
|
|
157
|
+
return message;
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
161
|
+
minimal_1.default.util.Long = long_1.default;
|
|
162
|
+
minimal_1.default.configure();
|
|
163
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare const protobufPackage = "Switcheo.carbon.perpsliquidity";
|
|
4
|
+
export interface Quote {
|
|
5
|
+
quotePriceType: string;
|
|
6
|
+
quotePriceValue: string;
|
|
7
|
+
quoteAmountRatio: string;
|
|
8
|
+
}
|
|
9
|
+
/** MarketConfig config for each market in the Pool */
|
|
10
|
+
export interface MarketConfig {
|
|
11
|
+
/** unique id representing the market */
|
|
12
|
+
marketId: string;
|
|
13
|
+
/**
|
|
14
|
+
* ratio of the pool liquidity that can be used for the market
|
|
15
|
+
* ratio where 0 < max_liquidity_ratio <= 1
|
|
16
|
+
*/
|
|
17
|
+
maxLiquidityRatio: string;
|
|
18
|
+
/** borrow_fee_multiplier controls the multiplier for the base borrow fee charged on the pool. riskier markets should have a higher multiplier */
|
|
19
|
+
borrowFeeMultiplier: string;
|
|
20
|
+
/**
|
|
21
|
+
* Available modes:
|
|
22
|
+
* active - market is active for quoting
|
|
23
|
+
* paused - open quotes are cancelled, current positions are held, no new quotes
|
|
24
|
+
* close_only - quotes will be open only on the closing side. borrow fees are increased?
|
|
25
|
+
*/
|
|
26
|
+
mode: string;
|
|
27
|
+
/** represents the shape of quoting for each side against [0] index price, [1+] prev quotes */
|
|
28
|
+
quoteShape: Quote[];
|
|
29
|
+
}
|
|
30
|
+
export interface UpdateMarketConfigParams {
|
|
31
|
+
maxLiquidityRatio: string;
|
|
32
|
+
borrowFeeMultiplier: string;
|
|
33
|
+
mode?: string;
|
|
34
|
+
quoteShape: Quote[];
|
|
35
|
+
}
|
|
36
|
+
/** TWAMarketUtilizationRate represents the calculated TWA utilization rate of a market */
|
|
37
|
+
export interface TWAMarketUtilizationRate {
|
|
38
|
+
lastUpdatedAt?: Date;
|
|
39
|
+
twaUtilizationRate: string;
|
|
40
|
+
}
|
|
41
|
+
export interface MarketUtilizationMultiplier {
|
|
42
|
+
market: string;
|
|
43
|
+
multiplier: string;
|
|
44
|
+
}
|
|
45
|
+
export declare const Quote: {
|
|
46
|
+
encode(message: Quote, writer?: _m0.Writer): _m0.Writer;
|
|
47
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Quote;
|
|
48
|
+
fromJSON(object: any): Quote;
|
|
49
|
+
toJSON(message: Quote): unknown;
|
|
50
|
+
fromPartial(object: DeepPartial<Quote>): Quote;
|
|
51
|
+
};
|
|
52
|
+
export declare const MarketConfig: {
|
|
53
|
+
encode(message: MarketConfig, writer?: _m0.Writer): _m0.Writer;
|
|
54
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MarketConfig;
|
|
55
|
+
fromJSON(object: any): MarketConfig;
|
|
56
|
+
toJSON(message: MarketConfig): unknown;
|
|
57
|
+
fromPartial(object: DeepPartial<MarketConfig>): MarketConfig;
|
|
58
|
+
};
|
|
59
|
+
export declare const UpdateMarketConfigParams: {
|
|
60
|
+
encode(message: UpdateMarketConfigParams, writer?: _m0.Writer): _m0.Writer;
|
|
61
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateMarketConfigParams;
|
|
62
|
+
fromJSON(object: any): UpdateMarketConfigParams;
|
|
63
|
+
toJSON(message: UpdateMarketConfigParams): unknown;
|
|
64
|
+
fromPartial(object: DeepPartial<UpdateMarketConfigParams>): UpdateMarketConfigParams;
|
|
65
|
+
};
|
|
66
|
+
export declare const TWAMarketUtilizationRate: {
|
|
67
|
+
encode(message: TWAMarketUtilizationRate, writer?: _m0.Writer): _m0.Writer;
|
|
68
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): TWAMarketUtilizationRate;
|
|
69
|
+
fromJSON(object: any): TWAMarketUtilizationRate;
|
|
70
|
+
toJSON(message: TWAMarketUtilizationRate): unknown;
|
|
71
|
+
fromPartial(object: DeepPartial<TWAMarketUtilizationRate>): TWAMarketUtilizationRate;
|
|
72
|
+
};
|
|
73
|
+
export declare const MarketUtilizationMultiplier: {
|
|
74
|
+
encode(message: MarketUtilizationMultiplier, writer?: _m0.Writer): _m0.Writer;
|
|
75
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MarketUtilizationMultiplier;
|
|
76
|
+
fromJSON(object: any): MarketUtilizationMultiplier;
|
|
77
|
+
toJSON(message: MarketUtilizationMultiplier): unknown;
|
|
78
|
+
fromPartial(object: DeepPartial<MarketUtilizationMultiplier>): MarketUtilizationMultiplier;
|
|
79
|
+
};
|
|
80
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
81
|
+
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 {} ? {
|
|
82
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
83
|
+
} : Partial<T>;
|
|
84
|
+
export {};
|
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MarketUtilizationMultiplier = exports.TWAMarketUtilizationRate = exports.UpdateMarketConfigParams = exports.MarketConfig = exports.Quote = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
11
|
+
const wrappers_1 = require("../google/protobuf/wrappers");
|
|
12
|
+
exports.protobufPackage = "Switcheo.carbon.perpsliquidity";
|
|
13
|
+
const baseQuote = {
|
|
14
|
+
quotePriceType: "",
|
|
15
|
+
quotePriceValue: "",
|
|
16
|
+
quoteAmountRatio: "",
|
|
17
|
+
};
|
|
18
|
+
exports.Quote = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.quotePriceType !== "") {
|
|
21
|
+
writer.uint32(10).string(message.quotePriceType);
|
|
22
|
+
}
|
|
23
|
+
if (message.quotePriceValue !== "") {
|
|
24
|
+
writer.uint32(18).string(message.quotePriceValue);
|
|
25
|
+
}
|
|
26
|
+
if (message.quoteAmountRatio !== "") {
|
|
27
|
+
writer.uint32(26).string(message.quoteAmountRatio);
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input, length) {
|
|
32
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = Object.assign({}, baseQuote);
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
message.quotePriceType = reader.string();
|
|
40
|
+
break;
|
|
41
|
+
case 2:
|
|
42
|
+
message.quotePriceValue = reader.string();
|
|
43
|
+
break;
|
|
44
|
+
case 3:
|
|
45
|
+
message.quoteAmountRatio = reader.string();
|
|
46
|
+
break;
|
|
47
|
+
default:
|
|
48
|
+
reader.skipType(tag & 7);
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return message;
|
|
53
|
+
},
|
|
54
|
+
fromJSON(object) {
|
|
55
|
+
const message = Object.assign({}, baseQuote);
|
|
56
|
+
message.quotePriceType =
|
|
57
|
+
object.quotePriceType !== undefined && object.quotePriceType !== null
|
|
58
|
+
? String(object.quotePriceType)
|
|
59
|
+
: "";
|
|
60
|
+
message.quotePriceValue =
|
|
61
|
+
object.quotePriceValue !== undefined && object.quotePriceValue !== null
|
|
62
|
+
? String(object.quotePriceValue)
|
|
63
|
+
: "";
|
|
64
|
+
message.quoteAmountRatio =
|
|
65
|
+
object.quoteAmountRatio !== undefined && object.quoteAmountRatio !== null
|
|
66
|
+
? String(object.quoteAmountRatio)
|
|
67
|
+
: "";
|
|
68
|
+
return message;
|
|
69
|
+
},
|
|
70
|
+
toJSON(message) {
|
|
71
|
+
const obj = {};
|
|
72
|
+
message.quotePriceType !== undefined &&
|
|
73
|
+
(obj.quotePriceType = message.quotePriceType);
|
|
74
|
+
message.quotePriceValue !== undefined &&
|
|
75
|
+
(obj.quotePriceValue = message.quotePriceValue);
|
|
76
|
+
message.quoteAmountRatio !== undefined &&
|
|
77
|
+
(obj.quoteAmountRatio = message.quoteAmountRatio);
|
|
78
|
+
return obj;
|
|
79
|
+
},
|
|
80
|
+
fromPartial(object) {
|
|
81
|
+
var _a, _b, _c;
|
|
82
|
+
const message = Object.assign({}, baseQuote);
|
|
83
|
+
message.quotePriceType = (_a = object.quotePriceType) !== null && _a !== void 0 ? _a : "";
|
|
84
|
+
message.quotePriceValue = (_b = object.quotePriceValue) !== null && _b !== void 0 ? _b : "";
|
|
85
|
+
message.quoteAmountRatio = (_c = object.quoteAmountRatio) !== null && _c !== void 0 ? _c : "";
|
|
86
|
+
return message;
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
const baseMarketConfig = {
|
|
90
|
+
marketId: "",
|
|
91
|
+
maxLiquidityRatio: "",
|
|
92
|
+
borrowFeeMultiplier: "",
|
|
93
|
+
mode: "",
|
|
94
|
+
};
|
|
95
|
+
exports.MarketConfig = {
|
|
96
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
97
|
+
if (message.marketId !== "") {
|
|
98
|
+
writer.uint32(10).string(message.marketId);
|
|
99
|
+
}
|
|
100
|
+
if (message.maxLiquidityRatio !== "") {
|
|
101
|
+
writer.uint32(18).string(message.maxLiquidityRatio);
|
|
102
|
+
}
|
|
103
|
+
if (message.borrowFeeMultiplier !== "") {
|
|
104
|
+
writer.uint32(26).string(message.borrowFeeMultiplier);
|
|
105
|
+
}
|
|
106
|
+
if (message.mode !== "") {
|
|
107
|
+
writer.uint32(34).string(message.mode);
|
|
108
|
+
}
|
|
109
|
+
for (const v of message.quoteShape) {
|
|
110
|
+
exports.Quote.encode(v, writer.uint32(42).fork()).ldelim();
|
|
111
|
+
}
|
|
112
|
+
return writer;
|
|
113
|
+
},
|
|
114
|
+
decode(input, length) {
|
|
115
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
116
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
117
|
+
const message = Object.assign({}, baseMarketConfig);
|
|
118
|
+
message.quoteShape = [];
|
|
119
|
+
while (reader.pos < end) {
|
|
120
|
+
const tag = reader.uint32();
|
|
121
|
+
switch (tag >>> 3) {
|
|
122
|
+
case 1:
|
|
123
|
+
message.marketId = reader.string();
|
|
124
|
+
break;
|
|
125
|
+
case 2:
|
|
126
|
+
message.maxLiquidityRatio = reader.string();
|
|
127
|
+
break;
|
|
128
|
+
case 3:
|
|
129
|
+
message.borrowFeeMultiplier = reader.string();
|
|
130
|
+
break;
|
|
131
|
+
case 4:
|
|
132
|
+
message.mode = reader.string();
|
|
133
|
+
break;
|
|
134
|
+
case 5:
|
|
135
|
+
message.quoteShape.push(exports.Quote.decode(reader, reader.uint32()));
|
|
136
|
+
break;
|
|
137
|
+
default:
|
|
138
|
+
reader.skipType(tag & 7);
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return message;
|
|
143
|
+
},
|
|
144
|
+
fromJSON(object) {
|
|
145
|
+
var _a;
|
|
146
|
+
const message = Object.assign({}, baseMarketConfig);
|
|
147
|
+
message.marketId =
|
|
148
|
+
object.marketId !== undefined && object.marketId !== null
|
|
149
|
+
? String(object.marketId)
|
|
150
|
+
: "";
|
|
151
|
+
message.maxLiquidityRatio =
|
|
152
|
+
object.maxLiquidityRatio !== undefined &&
|
|
153
|
+
object.maxLiquidityRatio !== null
|
|
154
|
+
? String(object.maxLiquidityRatio)
|
|
155
|
+
: "";
|
|
156
|
+
message.borrowFeeMultiplier =
|
|
157
|
+
object.borrowFeeMultiplier !== undefined &&
|
|
158
|
+
object.borrowFeeMultiplier !== null
|
|
159
|
+
? String(object.borrowFeeMultiplier)
|
|
160
|
+
: "";
|
|
161
|
+
message.mode =
|
|
162
|
+
object.mode !== undefined && object.mode !== null
|
|
163
|
+
? String(object.mode)
|
|
164
|
+
: "";
|
|
165
|
+
message.quoteShape = ((_a = object.quoteShape) !== null && _a !== void 0 ? _a : []).map((e) => exports.Quote.fromJSON(e));
|
|
166
|
+
return message;
|
|
167
|
+
},
|
|
168
|
+
toJSON(message) {
|
|
169
|
+
const obj = {};
|
|
170
|
+
message.marketId !== undefined && (obj.marketId = message.marketId);
|
|
171
|
+
message.maxLiquidityRatio !== undefined &&
|
|
172
|
+
(obj.maxLiquidityRatio = message.maxLiquidityRatio);
|
|
173
|
+
message.borrowFeeMultiplier !== undefined &&
|
|
174
|
+
(obj.borrowFeeMultiplier = message.borrowFeeMultiplier);
|
|
175
|
+
message.mode !== undefined && (obj.mode = message.mode);
|
|
176
|
+
if (message.quoteShape) {
|
|
177
|
+
obj.quoteShape = message.quoteShape.map((e) => e ? exports.Quote.toJSON(e) : undefined);
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
obj.quoteShape = [];
|
|
181
|
+
}
|
|
182
|
+
return obj;
|
|
183
|
+
},
|
|
184
|
+
fromPartial(object) {
|
|
185
|
+
var _a, _b, _c, _d, _e;
|
|
186
|
+
const message = Object.assign({}, baseMarketConfig);
|
|
187
|
+
message.marketId = (_a = object.marketId) !== null && _a !== void 0 ? _a : "";
|
|
188
|
+
message.maxLiquidityRatio = (_b = object.maxLiquidityRatio) !== null && _b !== void 0 ? _b : "";
|
|
189
|
+
message.borrowFeeMultiplier = (_c = object.borrowFeeMultiplier) !== null && _c !== void 0 ? _c : "";
|
|
190
|
+
message.mode = (_d = object.mode) !== null && _d !== void 0 ? _d : "";
|
|
191
|
+
message.quoteShape = ((_e = object.quoteShape) !== null && _e !== void 0 ? _e : []).map((e) => exports.Quote.fromPartial(e));
|
|
192
|
+
return message;
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
const baseUpdateMarketConfigParams = {
|
|
196
|
+
maxLiquidityRatio: "",
|
|
197
|
+
borrowFeeMultiplier: "",
|
|
198
|
+
};
|
|
199
|
+
exports.UpdateMarketConfigParams = {
|
|
200
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
201
|
+
if (message.maxLiquidityRatio !== "") {
|
|
202
|
+
writer.uint32(10).string(message.maxLiquidityRatio);
|
|
203
|
+
}
|
|
204
|
+
if (message.borrowFeeMultiplier !== "") {
|
|
205
|
+
writer.uint32(18).string(message.borrowFeeMultiplier);
|
|
206
|
+
}
|
|
207
|
+
if (message.mode !== undefined) {
|
|
208
|
+
wrappers_1.StringValue.encode({ value: message.mode }, writer.uint32(26).fork()).ldelim();
|
|
209
|
+
}
|
|
210
|
+
for (const v of message.quoteShape) {
|
|
211
|
+
exports.Quote.encode(v, writer.uint32(34).fork()).ldelim();
|
|
212
|
+
}
|
|
213
|
+
return writer;
|
|
214
|
+
},
|
|
215
|
+
decode(input, length) {
|
|
216
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
217
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
218
|
+
const message = Object.assign({}, baseUpdateMarketConfigParams);
|
|
219
|
+
message.quoteShape = [];
|
|
220
|
+
while (reader.pos < end) {
|
|
221
|
+
const tag = reader.uint32();
|
|
222
|
+
switch (tag >>> 3) {
|
|
223
|
+
case 1:
|
|
224
|
+
message.maxLiquidityRatio = reader.string();
|
|
225
|
+
break;
|
|
226
|
+
case 2:
|
|
227
|
+
message.borrowFeeMultiplier = reader.string();
|
|
228
|
+
break;
|
|
229
|
+
case 3:
|
|
230
|
+
message.mode = wrappers_1.StringValue.decode(reader, reader.uint32()).value;
|
|
231
|
+
break;
|
|
232
|
+
case 4:
|
|
233
|
+
message.quoteShape.push(exports.Quote.decode(reader, reader.uint32()));
|
|
234
|
+
break;
|
|
235
|
+
default:
|
|
236
|
+
reader.skipType(tag & 7);
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
return message;
|
|
241
|
+
},
|
|
242
|
+
fromJSON(object) {
|
|
243
|
+
var _a;
|
|
244
|
+
const message = Object.assign({}, baseUpdateMarketConfigParams);
|
|
245
|
+
message.maxLiquidityRatio =
|
|
246
|
+
object.maxLiquidityRatio !== undefined &&
|
|
247
|
+
object.maxLiquidityRatio !== null
|
|
248
|
+
? String(object.maxLiquidityRatio)
|
|
249
|
+
: "";
|
|
250
|
+
message.borrowFeeMultiplier =
|
|
251
|
+
object.borrowFeeMultiplier !== undefined &&
|
|
252
|
+
object.borrowFeeMultiplier !== null
|
|
253
|
+
? String(object.borrowFeeMultiplier)
|
|
254
|
+
: "";
|
|
255
|
+
message.mode =
|
|
256
|
+
object.mode !== undefined && object.mode !== null
|
|
257
|
+
? String(object.mode)
|
|
258
|
+
: undefined;
|
|
259
|
+
message.quoteShape = ((_a = object.quoteShape) !== null && _a !== void 0 ? _a : []).map((e) => exports.Quote.fromJSON(e));
|
|
260
|
+
return message;
|
|
261
|
+
},
|
|
262
|
+
toJSON(message) {
|
|
263
|
+
const obj = {};
|
|
264
|
+
message.maxLiquidityRatio !== undefined &&
|
|
265
|
+
(obj.maxLiquidityRatio = message.maxLiquidityRatio);
|
|
266
|
+
message.borrowFeeMultiplier !== undefined &&
|
|
267
|
+
(obj.borrowFeeMultiplier = message.borrowFeeMultiplier);
|
|
268
|
+
message.mode !== undefined && (obj.mode = message.mode);
|
|
269
|
+
if (message.quoteShape) {
|
|
270
|
+
obj.quoteShape = message.quoteShape.map((e) => e ? exports.Quote.toJSON(e) : undefined);
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
obj.quoteShape = [];
|
|
274
|
+
}
|
|
275
|
+
return obj;
|
|
276
|
+
},
|
|
277
|
+
fromPartial(object) {
|
|
278
|
+
var _a, _b, _c, _d;
|
|
279
|
+
const message = Object.assign({}, baseUpdateMarketConfigParams);
|
|
280
|
+
message.maxLiquidityRatio = (_a = object.maxLiquidityRatio) !== null && _a !== void 0 ? _a : "";
|
|
281
|
+
message.borrowFeeMultiplier = (_b = object.borrowFeeMultiplier) !== null && _b !== void 0 ? _b : "";
|
|
282
|
+
message.mode = (_c = object.mode) !== null && _c !== void 0 ? _c : undefined;
|
|
283
|
+
message.quoteShape = ((_d = object.quoteShape) !== null && _d !== void 0 ? _d : []).map((e) => exports.Quote.fromPartial(e));
|
|
284
|
+
return message;
|
|
285
|
+
},
|
|
286
|
+
};
|
|
287
|
+
const baseTWAMarketUtilizationRate = { twaUtilizationRate: "" };
|
|
288
|
+
exports.TWAMarketUtilizationRate = {
|
|
289
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
290
|
+
if (message.lastUpdatedAt !== undefined) {
|
|
291
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.lastUpdatedAt), writer.uint32(10).fork()).ldelim();
|
|
292
|
+
}
|
|
293
|
+
if (message.twaUtilizationRate !== "") {
|
|
294
|
+
writer.uint32(18).string(message.twaUtilizationRate);
|
|
295
|
+
}
|
|
296
|
+
return writer;
|
|
297
|
+
},
|
|
298
|
+
decode(input, length) {
|
|
299
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
300
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
301
|
+
const message = Object.assign({}, baseTWAMarketUtilizationRate);
|
|
302
|
+
while (reader.pos < end) {
|
|
303
|
+
const tag = reader.uint32();
|
|
304
|
+
switch (tag >>> 3) {
|
|
305
|
+
case 1:
|
|
306
|
+
message.lastUpdatedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
307
|
+
break;
|
|
308
|
+
case 2:
|
|
309
|
+
message.twaUtilizationRate = reader.string();
|
|
310
|
+
break;
|
|
311
|
+
default:
|
|
312
|
+
reader.skipType(tag & 7);
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return message;
|
|
317
|
+
},
|
|
318
|
+
fromJSON(object) {
|
|
319
|
+
const message = Object.assign({}, baseTWAMarketUtilizationRate);
|
|
320
|
+
message.lastUpdatedAt =
|
|
321
|
+
object.lastUpdatedAt !== undefined && object.lastUpdatedAt !== null
|
|
322
|
+
? fromJsonTimestamp(object.lastUpdatedAt)
|
|
323
|
+
: undefined;
|
|
324
|
+
message.twaUtilizationRate =
|
|
325
|
+
object.twaUtilizationRate !== undefined &&
|
|
326
|
+
object.twaUtilizationRate !== null
|
|
327
|
+
? String(object.twaUtilizationRate)
|
|
328
|
+
: "";
|
|
329
|
+
return message;
|
|
330
|
+
},
|
|
331
|
+
toJSON(message) {
|
|
332
|
+
const obj = {};
|
|
333
|
+
message.lastUpdatedAt !== undefined &&
|
|
334
|
+
(obj.lastUpdatedAt = message.lastUpdatedAt.toISOString());
|
|
335
|
+
message.twaUtilizationRate !== undefined &&
|
|
336
|
+
(obj.twaUtilizationRate = message.twaUtilizationRate);
|
|
337
|
+
return obj;
|
|
338
|
+
},
|
|
339
|
+
fromPartial(object) {
|
|
340
|
+
var _a, _b;
|
|
341
|
+
const message = Object.assign({}, baseTWAMarketUtilizationRate);
|
|
342
|
+
message.lastUpdatedAt = (_a = object.lastUpdatedAt) !== null && _a !== void 0 ? _a : undefined;
|
|
343
|
+
message.twaUtilizationRate = (_b = object.twaUtilizationRate) !== null && _b !== void 0 ? _b : "";
|
|
344
|
+
return message;
|
|
345
|
+
},
|
|
346
|
+
};
|
|
347
|
+
const baseMarketUtilizationMultiplier = { market: "", multiplier: "" };
|
|
348
|
+
exports.MarketUtilizationMultiplier = {
|
|
349
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
350
|
+
if (message.market !== "") {
|
|
351
|
+
writer.uint32(10).string(message.market);
|
|
352
|
+
}
|
|
353
|
+
if (message.multiplier !== "") {
|
|
354
|
+
writer.uint32(18).string(message.multiplier);
|
|
355
|
+
}
|
|
356
|
+
return writer;
|
|
357
|
+
},
|
|
358
|
+
decode(input, length) {
|
|
359
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
360
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
361
|
+
const message = Object.assign({}, baseMarketUtilizationMultiplier);
|
|
362
|
+
while (reader.pos < end) {
|
|
363
|
+
const tag = reader.uint32();
|
|
364
|
+
switch (tag >>> 3) {
|
|
365
|
+
case 1:
|
|
366
|
+
message.market = reader.string();
|
|
367
|
+
break;
|
|
368
|
+
case 2:
|
|
369
|
+
message.multiplier = reader.string();
|
|
370
|
+
break;
|
|
371
|
+
default:
|
|
372
|
+
reader.skipType(tag & 7);
|
|
373
|
+
break;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
return message;
|
|
377
|
+
},
|
|
378
|
+
fromJSON(object) {
|
|
379
|
+
const message = Object.assign({}, baseMarketUtilizationMultiplier);
|
|
380
|
+
message.market =
|
|
381
|
+
object.market !== undefined && object.market !== null
|
|
382
|
+
? String(object.market)
|
|
383
|
+
: "";
|
|
384
|
+
message.multiplier =
|
|
385
|
+
object.multiplier !== undefined && object.multiplier !== null
|
|
386
|
+
? String(object.multiplier)
|
|
387
|
+
: "";
|
|
388
|
+
return message;
|
|
389
|
+
},
|
|
390
|
+
toJSON(message) {
|
|
391
|
+
const obj = {};
|
|
392
|
+
message.market !== undefined && (obj.market = message.market);
|
|
393
|
+
message.multiplier !== undefined && (obj.multiplier = message.multiplier);
|
|
394
|
+
return obj;
|
|
395
|
+
},
|
|
396
|
+
fromPartial(object) {
|
|
397
|
+
var _a, _b;
|
|
398
|
+
const message = Object.assign({}, baseMarketUtilizationMultiplier);
|
|
399
|
+
message.market = (_a = object.market) !== null && _a !== void 0 ? _a : "";
|
|
400
|
+
message.multiplier = (_b = object.multiplier) !== null && _b !== void 0 ? _b : "";
|
|
401
|
+
return message;
|
|
402
|
+
},
|
|
403
|
+
};
|
|
404
|
+
function toTimestamp(date) {
|
|
405
|
+
const seconds = numberToLong(date.getTime() / 1000);
|
|
406
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
407
|
+
return { seconds, nanos };
|
|
408
|
+
}
|
|
409
|
+
function fromTimestamp(t) {
|
|
410
|
+
let millis = t.seconds.toNumber() * 1000;
|
|
411
|
+
millis += t.nanos / 1000000;
|
|
412
|
+
return new Date(millis);
|
|
413
|
+
}
|
|
414
|
+
function fromJsonTimestamp(o) {
|
|
415
|
+
if (o instanceof Date) {
|
|
416
|
+
return o;
|
|
417
|
+
}
|
|
418
|
+
else if (typeof o === "string") {
|
|
419
|
+
return new Date(o);
|
|
420
|
+
}
|
|
421
|
+
else {
|
|
422
|
+
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
function numberToLong(number) {
|
|
426
|
+
return long_1.default.fromNumber(number);
|
|
427
|
+
}
|
|
428
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
429
|
+
minimal_1.default.util.Long = long_1.default;
|
|
430
|
+
minimal_1.default.configure();
|
|
431
|
+
}
|