carbon-js-sdk 0.8.4 → 0.8.6
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 +8 -4
- package/lib/clients/BatchQueryClient.js +4 -4
- package/lib/clients/CarbonQueryClient.d.ts +1 -1
- package/lib/clients/CarbonQueryClient.js +2 -2
- 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 +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 +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/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 +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 +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 +89 -89
- 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/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 +3 -3
- package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +10 -10
- package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +10 -10
- 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/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 +13 -13
- 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 +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 +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 +22 -22
- package/lib/codec/Switcheo/carbon/market/tx.d.ts +23 -23
- 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/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 +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 +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 +9 -9
- 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 +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 +20 -20
- 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/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 +14 -14
- 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 +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/genesis.d.ts +7 -7
- package/lib/codec/alliance/alliance/gov.d.ts +5 -5
- package/lib/codec/alliance/alliance/params.d.ts +4 -4
- package/lib/codec/alliance/alliance/query.d.ts +30 -30
- package/lib/codec/alliance/alliance/redelegations.d.ts +5 -5
- package/lib/codec/alliance/alliance/tx.d.ts +18 -18
- package/lib/codec/alliance/alliance/unbonding.d.ts +3 -3
- 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 +5 -1
- 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/runtime/v1alpha1/module.d.ts +4 -4
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +5 -5
- 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/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 +8 -8
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +8 -8
- package/lib/codec/cosmos/autocli/v1/options.d.ts +9 -9
- package/lib/codec/cosmos/autocli/v1/query.d.ts +5 -5
- package/lib/codec/cosmos/bank/module/v1/module.d.ts +3 -3
- 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 +25 -25
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +10 -10
- 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/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/consensus/module/v1/module.d.ts +3 -3
- package/lib/codec/cosmos/consensus/v1/query.d.ts +4 -4
- package/lib/codec/cosmos/consensus/v1/tx.d.ts +4 -4
- 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 +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/module/v1/module.d.ts +3 -3
- 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 +24 -24
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +14 -14
- 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 +8 -8
- package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +6 -6
- 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 +3 -3
- package/lib/codec/cosmos/gov/v1/gov.d.ts +11 -11
- 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 +14 -14
- 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/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 +13 -13
- 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 +3 -3
- package/lib/codec/cosmos/orm/query/v1alpha1/query.d.ts +9 -9
- 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/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 +4 -4
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +6 -6
- package/lib/codec/cosmos/staking/module/v1/module.d.ts +3 -3
- 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 +23 -23
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +16 -16
- package/lib/codec/cosmos/tx/config/v1/config.d.ts +3 -3
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +7 -7
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +20 -20
- 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/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 +5 -1
- 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 +5 -1
- 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 +3 -3
- package/lib/codec/google/protobuf/descriptor.d.ts +29 -29
- 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/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 +22 -22
- package/lib/codec/ibc/applications/fee/v1/tx.d.ts +10 -10
- 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 +6 -6
- package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +7 -7
- 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/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/genesis.d.ts +3 -3
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +14 -14
- 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 +9 -9
- 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 +20 -20
- 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 +14 -14
- 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/v2/localhost.d.ts +3 -3
- 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 +5 -1
- package/lib/codec/index.js +14 -9
- 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 +5 -1
- 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/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 +48 -48
- 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/amino.d.ts +0 -0
- package/lib/constant/amino.js +1 -0
- 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 +46 -46
- 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.d.ts +1 -0
- package/lib/modules/gov.js +14 -13
- package/lib/modules/index.js +5 -1
- 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/vault.d.ts +56 -0
- package/lib/modules/vault.js +128 -0
- 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/grant.js +14 -10
- 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/perpsliquidity.d.ts +4 -0
- package/lib/provider/amino/types/perpsliquidity.js +73 -0
- 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/signless.js +13 -9
- 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 +12 -12
- package/lib/provider/keplr/KeplrAccount.js +6 -6
- package/lib/provider/leap/LeapAccount.js +3 -3
- 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/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 +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 +34 -17
- package/lib/util/gov.js +234 -37
- package/lib/util/grant.d.ts +1 -1
- package/lib/util/grant.js +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/signless.d.ts +1 -1
- package/lib/util/signless.js +1 -1
- 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 +2 -1
- package/lib/wallet/CarbonWallet.js +17 -13
- 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/cosmos/consensus/v1/export.d.ts +0 -2
- package/lib/codec/cosmos/consensus/v1/export.js +0 -9
- package/lib/provider/leap/types.d.ts +0 -59
- package/lib/provider/leap/types.js +0 -11
package/lib/util/address.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];
|
|
@@ -94,13 +98,13 @@ const randomMnemonic = () => {
|
|
|
94
98
|
};
|
|
95
99
|
exports.randomMnemonic = randomMnemonic;
|
|
96
100
|
const wifEncodePrivateKey = (privateKey, iter = 128) => {
|
|
97
|
-
const privateKeyBuf = exports.stringOrBufferToBuffer(privateKey);
|
|
101
|
+
const privateKeyBuf = (0, exports.stringOrBufferToBuffer)(privateKey);
|
|
98
102
|
return wif.encode(iter, privateKeyBuf, true);
|
|
99
103
|
};
|
|
100
104
|
exports.wifEncodePrivateKey = wifEncodePrivateKey;
|
|
101
105
|
exports.SWTHAddress = {
|
|
102
106
|
newMnemonic: () => {
|
|
103
|
-
return exports.randomMnemonic();
|
|
107
|
+
return (0, exports.randomMnemonic)();
|
|
104
108
|
},
|
|
105
109
|
coinType: () => {
|
|
106
110
|
return SWTH_COIN_TYPE;
|
|
@@ -110,10 +114,10 @@ exports.SWTHAddress = {
|
|
|
110
114
|
return new BIP44Path(BIP44_PURPOSE, coinType).update(index, change, account).toArray();
|
|
111
115
|
},
|
|
112
116
|
publicKeyToScriptHash: (publicKey) => {
|
|
113
|
-
const pubKeyBuffer = exports.stringOrBufferToBuffer(publicKey);
|
|
117
|
+
const pubKeyBuffer = (0, exports.stringOrBufferToBuffer)(publicKey);
|
|
114
118
|
const sha256Hash = ethers_1.ethers.utils.sha256(pubKeyBuffer);
|
|
115
119
|
const ripemdHash = ethers_1.ethers.utils.ripemd160(sha256Hash);
|
|
116
|
-
return generic_1.stripHexPrefix(ripemdHash);
|
|
120
|
+
return (0, generic_1.stripHexPrefix)(ripemdHash);
|
|
117
121
|
},
|
|
118
122
|
publicKeyToAddress: (publicKey, opts) => {
|
|
119
123
|
const scriptHash = exports.SWTHAddress.publicKeyToScriptHash(publicKey);
|
|
@@ -135,7 +139,7 @@ exports.SWTHAddress = {
|
|
|
135
139
|
return privateKey;
|
|
136
140
|
},
|
|
137
141
|
privateToPublicKey: (privateKey) => {
|
|
138
|
-
const privateKeyBuff = exports.stringOrBufferToBuffer(privateKey);
|
|
142
|
+
const privateKeyBuff = (0, exports.stringOrBufferToBuffer)(privateKey);
|
|
139
143
|
const publicKeyUint8Array = secp256k1.publicKeyCreate(privateKeyBuff, true);
|
|
140
144
|
const publicKey = Buffer.from(publicKeyUint8Array);
|
|
141
145
|
return publicKey;
|
|
@@ -146,7 +150,7 @@ exports.SWTHAddress = {
|
|
|
146
150
|
return address;
|
|
147
151
|
},
|
|
148
152
|
encode: (hash, opts) => {
|
|
149
|
-
const hashBuff = exports.stringOrBufferToBuffer(hash, "hex");
|
|
153
|
+
const hashBuff = (0, exports.stringOrBufferToBuffer)(hash, "hex");
|
|
150
154
|
const words = bech32.toWords(hashBuff.slice(0, 20));
|
|
151
155
|
const addressPrefix = exports.SWTHAddress.getBech32Prefix(opts === null || opts === void 0 ? void 0 : opts.network, opts === null || opts === void 0 ? void 0 : opts.bech32Prefix, opts === null || opts === void 0 ? void 0 : opts.type);
|
|
152
156
|
const address = bech32.encode(addressPrefix, words);
|
|
@@ -205,7 +209,7 @@ exports.NEOAddress = {
|
|
|
205
209
|
]);
|
|
206
210
|
const sha256Hash = ethers_1.ethers.utils.sha256(addressScript);
|
|
207
211
|
const ripemdHash = ethers_1.ethers.utils.ripemd160(sha256Hash);
|
|
208
|
-
return generic_1.stripHexPrefix(ripemdHash);
|
|
212
|
+
return (0, generic_1.stripHexPrefix)(ripemdHash);
|
|
209
213
|
},
|
|
210
214
|
publicKeyToAddress: (publicKey) => {
|
|
211
215
|
const addressScript = exports.NEOAddress.publicKeyToScriptHash(publicKey);
|
|
@@ -213,7 +217,7 @@ exports.NEOAddress = {
|
|
|
213
217
|
return address;
|
|
214
218
|
},
|
|
215
219
|
encodePublicKey: (unencodedPublicKey) => {
|
|
216
|
-
const unencPubKeyBuf = exports.stringOrBufferToBuffer(unencodedPublicKey);
|
|
220
|
+
const unencPubKeyBuf = (0, exports.stringOrBufferToBuffer)(unencodedPublicKey);
|
|
217
221
|
if (unencPubKeyBuf.length <= 33) {
|
|
218
222
|
// length indicates already encoded
|
|
219
223
|
return unencPubKeyBuf;
|
|
@@ -238,7 +242,7 @@ exports.NEOAddress = {
|
|
|
238
242
|
return privateKey;
|
|
239
243
|
},
|
|
240
244
|
privateToPublicKey: (privateKey) => {
|
|
241
|
-
const privateKeyBuff = exports.stringOrBufferToBuffer(privateKey);
|
|
245
|
+
const privateKeyBuff = (0, exports.stringOrBufferToBuffer)(privateKey);
|
|
242
246
|
const publicKeyUint8Array = secp256r1.publicKeyCreate(privateKeyBuff, true);
|
|
243
247
|
return Buffer.from(publicKeyUint8Array);
|
|
244
248
|
},
|
|
@@ -256,7 +260,7 @@ exports.NEOAddress = {
|
|
|
256
260
|
},
|
|
257
261
|
};
|
|
258
262
|
exports.N3Address = Object.assign(Object.assign({}, exports.NEOAddress), { publicKeyToScriptHash: (publicKey) => {
|
|
259
|
-
const publicKeyHex = exports.stringOrBufferToBuffer(publicKey).toString("hex");
|
|
263
|
+
const publicKeyHex = (0, exports.stringOrBufferToBuffer)(publicKey).toString("hex");
|
|
260
264
|
return neon_core_next_1.wallet.getScriptHashFromPublicKey(publicKeyHex);
|
|
261
265
|
}, publicKeyToAddress: (publicKey) => {
|
|
262
266
|
const addressScript = exports.N3Address.publicKeyToScriptHash(publicKey);
|
|
@@ -282,7 +286,7 @@ exports.ETHAddress = {
|
|
|
282
286
|
return ethers_1.ethers.utils.keccak256(encodedPublicKey);
|
|
283
287
|
},
|
|
284
288
|
publicKeyToAddress: (publicKey) => {
|
|
285
|
-
const publicKeyBuff = exports.stringOrBufferToBuffer(publicKey);
|
|
289
|
+
const publicKeyBuff = (0, exports.stringOrBufferToBuffer)(publicKey);
|
|
286
290
|
return ethers_1.ethers.utils.computeAddress(publicKeyBuff);
|
|
287
291
|
},
|
|
288
292
|
publicKeyToBech32Address: (publicKey, opts) => {
|
|
@@ -290,7 +294,7 @@ exports.ETHAddress = {
|
|
|
290
294
|
return exports.ETHAddress.encode(hexAddress.split('0x')[1], opts);
|
|
291
295
|
},
|
|
292
296
|
encodePublicKey: (unencodedPublicKey) => {
|
|
293
|
-
const unencodedPublicKeyBuff = exports.stringOrBufferToBuffer(unencodedPublicKey);
|
|
297
|
+
const unencodedPublicKeyBuff = (0, exports.stringOrBufferToBuffer)(unencodedPublicKey);
|
|
294
298
|
const publicKey = ethers_1.ethers.utils.computePublicKey(unencodedPublicKeyBuff, true);
|
|
295
299
|
return Buffer.from(publicKey, "hex");
|
|
296
300
|
},
|
|
@@ -302,7 +306,7 @@ exports.ETHAddress = {
|
|
|
302
306
|
return Buffer.from((_a = wallet.privateKey) === null || _a === void 0 ? void 0 : _a.replace(/^0x/, ""), "hex");
|
|
303
307
|
},
|
|
304
308
|
privateToPublicKey: (privateKey) => {
|
|
305
|
-
const privateKeyBuff = exports.stringOrBufferToBuffer(privateKey);
|
|
309
|
+
const privateKeyBuff = (0, exports.stringOrBufferToBuffer)(privateKey);
|
|
306
310
|
return Buffer.from(ethers_1.ethers.utils.computePublicKey(privateKeyBuff).replace(/^0x/, ""), "hex");
|
|
307
311
|
},
|
|
308
312
|
privateKeyToAddress: (privateKey) => {
|
|
@@ -315,7 +319,7 @@ exports.ETHAddress = {
|
|
|
315
319
|
return exports.ETHAddress.privateKeyToAddress(privateKey);
|
|
316
320
|
},
|
|
317
321
|
encode: (hash, opts) => {
|
|
318
|
-
const hashBuff = exports.stringOrBufferToBuffer(hash, "hex");
|
|
322
|
+
const hashBuff = (0, exports.stringOrBufferToBuffer)(hash, "hex");
|
|
319
323
|
const words = bech32.toWords(hashBuff.slice(0, 20));
|
|
320
324
|
const addressPrefix = exports.SWTHAddress.getBech32Prefix(opts === null || opts === void 0 ? void 0 : opts.network, opts === null || opts === void 0 ? void 0 : opts.bech32Prefix, opts === null || opts === void 0 ? void 0 : opts.type);
|
|
321
325
|
const address = bech32.encode(addressPrefix, words);
|
package/lib/util/api.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export declare class HTTP<PathSpecs> {
|
|
|
61
61
|
* @param routeParams object map for route parameters.
|
|
62
62
|
* @param queryParams object map for query parameters.
|
|
63
63
|
*/
|
|
64
|
-
path: (path: keyof PathSpecs, routeParams?: PathParams
|
|
64
|
+
path: (path: keyof PathSpecs, routeParams?: PathParams, queryParams?: PathParams) => string;
|
|
65
65
|
/**
|
|
66
66
|
* Executes HTTP GET request with fetch
|
|
67
67
|
*/
|
|
@@ -89,10 +89,10 @@ export declare class RequestError extends Error {
|
|
|
89
89
|
result: RequestResult;
|
|
90
90
|
constructor(result: RequestResult, message?: string);
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
type RequestOpts = Omit<RequestInit, "body"> & {
|
|
93
93
|
body?: any;
|
|
94
94
|
};
|
|
95
|
-
export
|
|
95
|
+
export type APIRequester = (options?: RequestOpts, parser?: ResponseParser) => Promise<RequestResult>;
|
|
96
96
|
export interface APIExecutor {
|
|
97
97
|
get: APIRequester;
|
|
98
98
|
post: APIRequester;
|
package/lib/util/api.js
CHANGED
|
@@ -84,7 +84,7 @@ class HTTP {
|
|
|
84
84
|
* Executes HTTP GET request with fetch
|
|
85
85
|
*/
|
|
86
86
|
this.get = ({ url, headers }) => {
|
|
87
|
-
return fetch_1.fetch(url, {
|
|
87
|
+
return (0, fetch_1.fetch)(url, {
|
|
88
88
|
method: "GET",
|
|
89
89
|
headers,
|
|
90
90
|
});
|
|
@@ -93,7 +93,7 @@ class HTTP {
|
|
|
93
93
|
* Executes HTTP POST request with fetch
|
|
94
94
|
*/
|
|
95
95
|
this.post = (options) => {
|
|
96
|
-
return fetch_1.fetch(options.url, {
|
|
96
|
+
return (0, fetch_1.fetch)(options.url, {
|
|
97
97
|
method: "POST",
|
|
98
98
|
headers: Object.assign({ "Content-Type": options.content_type || "application/json" }, options.headers),
|
|
99
99
|
body: JSON.stringify(options.body),
|
|
@@ -103,7 +103,7 @@ class HTTP {
|
|
|
103
103
|
* Executes HTTP DELETE request with fetch
|
|
104
104
|
*/
|
|
105
105
|
this.del = (options) => {
|
|
106
|
-
return fetch_1.fetch(options.url, {
|
|
106
|
+
return (0, fetch_1.fetch)(options.url, {
|
|
107
107
|
method: "DELETE",
|
|
108
108
|
headers: Object.assign({ "Content-Type": options.content_type || "application/json" }, options.headers),
|
|
109
109
|
body: JSON.stringify(options.body),
|
|
@@ -114,7 +114,7 @@ class HTTP {
|
|
|
114
114
|
*/
|
|
115
115
|
this.raw = (options) => {
|
|
116
116
|
const { url } = options, otherOpts = __rest(options, ["url"]);
|
|
117
|
-
return fetch_1.fetch(url, otherOpts);
|
|
117
|
+
return (0, fetch_1.fetch)(url, otherOpts);
|
|
118
118
|
};
|
|
119
119
|
this.apiPrefix = apiPrefix;
|
|
120
120
|
this.apiEndpoints = apiEndpoints;
|
package/lib/util/blockchain.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare enum Blockchain {
|
|
|
44
44
|
Agoric = "agoric",
|
|
45
45
|
Sommelier = "sommelier"
|
|
46
46
|
}
|
|
47
|
-
export
|
|
47
|
+
export type BlockchainV2 = ReturnType<TokenClient['getAllBlockchainNames']>[number] | "Native" | "Carbon" | "Tradehub" | "Ibc" | "Polynetwork";
|
|
48
48
|
export declare const BLOCKCHAIN_V2_TO_V1_MAPPING: SimpleMap<Blockchain>;
|
|
49
49
|
export declare const BRIDGE_IDS: {
|
|
50
50
|
polynetwork: number;
|
|
@@ -66,7 +66,7 @@ export interface BridgeMap {
|
|
|
66
66
|
polynetwork: PolyNetworkBridge[];
|
|
67
67
|
ibc: IbcBridge[];
|
|
68
68
|
}
|
|
69
|
-
export
|
|
69
|
+
export type ChainIds = SimpleMap<number>;
|
|
70
70
|
export declare const ChainNames: {
|
|
71
71
|
readonly 1: "MainNet";
|
|
72
72
|
readonly 3: "Ropsten";
|
|
@@ -89,10 +89,10 @@ export declare const CHAIN_IDS_TEST: ChainIds;
|
|
|
89
89
|
export declare const chainIdsByBlockchain: SimpleMap<ChainIds>;
|
|
90
90
|
export declare function parseBlockchain(value: string | null): Blockchain | null;
|
|
91
91
|
export declare function getChainFromID(id: number): string | undefined;
|
|
92
|
-
export declare const getBlockchainFromChain: (chainId?: number
|
|
93
|
-
export declare const blockchainForChainId: (chainId?: number
|
|
94
|
-
export declare const getBlockchainFromChainV2: (chainId?: number
|
|
95
|
-
export declare const blockchainForChainIdV2: (chainId?: number
|
|
92
|
+
export declare const getBlockchainFromChain: (chainId?: number) => Blockchain.Ethereum | Blockchain.BinanceSmartChain | Blockchain.Zilliqa | Blockchain.Arbitrum | Blockchain.Polygon | Blockchain.Okc | undefined;
|
|
93
|
+
export declare const blockchainForChainId: (chainId?: number, network?: Network) => Blockchain | undefined;
|
|
94
|
+
export declare const getBlockchainFromChainV2: (chainId?: number) => "Carbon" | "Ethereum" | "Binance Smart Chain" | "Arbitrum" | "Polygon" | "Okc" | "Zilliqa" | undefined;
|
|
95
|
+
export declare const blockchainForChainIdV2: (chainId?: number, network?: Network) => Blockchain | BlockchainV2 | undefined;
|
|
96
96
|
export declare const EvmChains: readonly ["Ethereum", "Binance Smart Chain", "Arbitrum", "Polygon", "OKC", "Carbon"];
|
|
97
|
-
export
|
|
97
|
+
export type EVMChain = (typeof EvmChains)[number];
|
|
98
98
|
export declare const isEvmChain: (chain: string) => chain is "Carbon" | "Ethereum" | "Binance Smart Chain" | "Arbitrum" | "Polygon" | "OKC";
|
package/lib/util/blockchain.js
CHANGED
|
@@ -306,10 +306,10 @@ const getBlockchainFromChainV2 = (chainId) => {
|
|
|
306
306
|
case 42161:
|
|
307
307
|
case 421611:
|
|
308
308
|
return 'Arbitrum';
|
|
309
|
-
case Number(ethermint_1.parseChainId((network_1.CarbonEvmChainIDs[network_1.Network.LocalHost]))):
|
|
310
|
-
case Number(ethermint_1.parseChainId((network_1.CarbonEvmChainIDs[network_1.Network.DevNet]))):
|
|
311
|
-
case Number(ethermint_1.parseChainId((network_1.CarbonEvmChainIDs[network_1.Network.TestNet]))):
|
|
312
|
-
case Number(ethermint_1.parseChainId((network_1.CarbonEvmChainIDs[network_1.Network.MainNet]))):
|
|
309
|
+
case Number((0, ethermint_1.parseChainId)((network_1.CarbonEvmChainIDs[network_1.Network.LocalHost]))):
|
|
310
|
+
case Number((0, ethermint_1.parseChainId)((network_1.CarbonEvmChainIDs[network_1.Network.DevNet]))):
|
|
311
|
+
case Number((0, ethermint_1.parseChainId)((network_1.CarbonEvmChainIDs[network_1.Network.TestNet]))):
|
|
312
|
+
case Number((0, ethermint_1.parseChainId)((network_1.CarbonEvmChainIDs[network_1.Network.MainNet]))):
|
|
313
313
|
return 'Carbon';
|
|
314
314
|
}
|
|
315
315
|
return undefined;
|
package/lib/util/eip712.js
CHANGED
|
@@ -114,7 +114,7 @@ function getMsgValueType(msgTypeUrl, msgValue, msgTypeName, msgTypeIndex, types,
|
|
|
114
114
|
const isArray = type.includes('[]') ? true : false;
|
|
115
115
|
// TypeValue0 --> Value
|
|
116
116
|
const objectName = typeName.split('Type')[1].split(/\d+/)[0];
|
|
117
|
-
const nestedTypeName = `Type${objectName ? objectName : ''}${name.split('_').map((subName) => lodash_1.capitalize(subName)).join('')}`;
|
|
117
|
+
const nestedTypeName = `Type${objectName ? objectName : ''}${name.split('_').map((subName) => (0, lodash_1.capitalize)(subName)).join('')}`;
|
|
118
118
|
const nestedMsgTypeIndex = getLatestMsgTypeIndex(nestedTypeName, types);
|
|
119
119
|
const nestedType = getTypeName(name, nestedMsgTypeIndex, objectName, true, isArray);
|
|
120
120
|
msgTypeDefinitions[typeName] = [...msgTypeDefinitions[typeName], { name, type: nestedType }];
|
|
@@ -156,7 +156,7 @@ function getGjsonPrimitiveType(value) {
|
|
|
156
156
|
}
|
|
157
157
|
function getTypeName(name, index, objectName, nestedType = false, isArray = false) {
|
|
158
158
|
if (nestedType) {
|
|
159
|
-
return `Type${objectName ? objectName : ''}${name.split('_').map(subName => lodash_1.capitalize(subName)).join('')}${index}${isArray ? '[]' : ''}`;
|
|
159
|
+
return `Type${objectName ? objectName : ''}${name.split('_').map(subName => (0, lodash_1.capitalize)(subName)).join('')}${index}${isArray ? '[]' : ''}`;
|
|
160
160
|
}
|
|
161
161
|
return name;
|
|
162
162
|
}
|
|
@@ -183,7 +183,7 @@ function constructEIP712Tx(doc) {
|
|
|
183
183
|
const eip712Tx = {
|
|
184
184
|
types: getTypes(doc.msgs),
|
|
185
185
|
primaryType: "Tx",
|
|
186
|
-
domain: Object.assign(Object.assign({}, eip712_1.DEFAULT_CARBON_DOMAIN_FIELDS), { chainId: ethermint_1.parseChainId(doc.chain_id) }),
|
|
186
|
+
domain: Object.assign(Object.assign({}, eip712_1.DEFAULT_CARBON_DOMAIN_FIELDS), { chainId: (0, ethermint_1.parseChainId)(doc.chain_id) }),
|
|
187
187
|
message: Object.assign({ account_number, chain_id, fee, memo, sequence }, convertMsgs(doc.msgs)),
|
|
188
188
|
};
|
|
189
189
|
return eip712Tx;
|
package/lib/util/fetch.js
CHANGED
package/lib/util/generic.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
2
3
|
import { Tendermint37Client } from "@cosmjs/tendermint-rpc";
|
|
3
4
|
export declare const overrideConfig: <T = unknown>(defaults: T, override?: Partial<T> | undefined) => T;
|
|
4
5
|
export declare const sortObject: (input: any) => unknown;
|
|
5
6
|
export declare const stripHexPrefix: (input: string) => string;
|
|
6
7
|
export declare const appendHexPrefix: (input: string) => string;
|
|
7
|
-
export declare const computeTxHash: (bytes?: Uint8Array | Buffer
|
|
8
|
-
export declare const toTxHash: (bytes?: Uint8Array | Buffer
|
|
8
|
+
export declare const computeTxHash: (bytes?: Uint8Array | Buffer) => string | undefined;
|
|
9
|
+
export declare const toTxHash: (bytes?: Uint8Array | Buffer) => string | undefined;
|
|
9
10
|
/**
|
|
10
11
|
* Make tendermint client send RPC requests with the same request
|
|
11
12
|
* ID instead of using a random id that is unread in the client.
|
package/lib/util/generic.js
CHANGED
|
@@ -21,7 +21,7 @@ const overrideConfig = (defaults, override) => {
|
|
|
21
21
|
if (typeof member === "undefined")
|
|
22
22
|
continue;
|
|
23
23
|
if (typeof member === "object") {
|
|
24
|
-
result[key] = exports.overrideConfig(result[key], member);
|
|
24
|
+
result[key] = (0, exports.overrideConfig)(result[key], member);
|
|
25
25
|
}
|
|
26
26
|
else {
|
|
27
27
|
result[key] = member;
|
|
@@ -38,7 +38,7 @@ const sortObject = (input) => {
|
|
|
38
38
|
const output = {};
|
|
39
39
|
Object.keys(input)
|
|
40
40
|
.sort()
|
|
41
|
-
.forEach((key) => (output[key] = exports.sortObject(input[key])));
|
|
41
|
+
.forEach((key) => (output[key] = (0, exports.sortObject)(input[key])));
|
|
42
42
|
return output;
|
|
43
43
|
};
|
|
44
44
|
exports.sortObject = sortObject;
|
|
@@ -53,7 +53,7 @@ exports.appendHexPrefix = appendHexPrefix;
|
|
|
53
53
|
const computeTxHash = (bytes) => {
|
|
54
54
|
if (!bytes)
|
|
55
55
|
return bytes;
|
|
56
|
-
return exports.toTxHash(crypto_1.sha256(bytes));
|
|
56
|
+
return (0, exports.toTxHash)((0, crypto_1.sha256)(bytes));
|
|
57
57
|
};
|
|
58
58
|
exports.computeTxHash = computeTxHash;
|
|
59
59
|
const toTxHash = (bytes) => {
|
package/lib/util/gov.d.ts
CHANGED
|
@@ -5,29 +5,46 @@ export declare enum ProposalTypes {
|
|
|
5
5
|
CancelSoftwareUpgrade = "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",
|
|
6
6
|
CommunityPoolSpend = "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",
|
|
7
7
|
Text = "/cosmos.gov.v1beta1.TextProposal",
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
SetCommitmentCurve = "/Switcheo.carbon.liquiditypool.MsgSetCommitmentCurve",
|
|
18
|
-
UpdateMarket = "/Switcheo.carbon.market.MsgUpdateMarket",
|
|
19
|
-
SettlementPrice = "/Switcheo.carbon.pricing.MsgUpdateSettlementPrice",
|
|
8
|
+
CommunityPoolSpendV2 = "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend",
|
|
9
|
+
SoftwareUpgradeV2 = "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade",
|
|
10
|
+
CancelSoftwareUpgradeV2 = "/cosmos.upgrade.v1beta1.MsgCancelUpgrade",
|
|
11
|
+
CreateAlliance = "/alliance.alliance.MsgCreateAllianceProposal",
|
|
12
|
+
UpdateAlliance = "/alliance.alliance.MsgUpdateAllianceProposal",
|
|
13
|
+
DeleteAlliance = "/alliance.alliance.MsgDeleteAllianceProposal",
|
|
14
|
+
CreateAllianceV2 = "/alliance.alliance.MsgCreateAlliance",
|
|
15
|
+
UpdateAllianceV2 = "/alliance.alliance.MsgUpdateAlliance",
|
|
16
|
+
DeleteAllianceV2 = "/alliance.alliance.MsgDeleteAlliance",
|
|
20
17
|
ClientUpdateProposal = "/ibc.core.client.v1.ClientUpdateProposal",
|
|
18
|
+
UpdateMarket = "/Switcheo.carbon.market.UpdateMarketProposal",
|
|
19
|
+
UpdateMarketV2 = "/Switcheo.carbon.market.MsgUpdateMarket",
|
|
20
|
+
SetMsgGasCost = "/Switcheo.carbon.fee.SetMsgGasCostProposal",
|
|
21
|
+
SetMinGasPrice = "/Switcheo.carbon.fee.SetMinGasPriceProposal",
|
|
22
|
+
RemoveMsgGasCost = "/Switcheo.carbon.fee.RemoveMsgGasCostProposal",
|
|
23
|
+
RemoveMinGasPrice = "/Switcheo.carbon.fee.RemoveMinGasPriceProposal",
|
|
24
|
+
SetMsgGasCostV2 = "/Switcheo.carbon.fee.MsgSetGasCost",
|
|
25
|
+
SetMinGasPriceV2 = "/Switcheo.carbon.fee.MsgSetMinGasPrice",
|
|
26
|
+
RemoveMsgGasCostV2 = "/Switcheo.carbon.fee.MsgRemoveGasCost",
|
|
27
|
+
RemoveMinGasPriceV2 = "/Switcheo.carbon.fee.MsgRemoveMinGasPrice",
|
|
28
|
+
UpdatePool = "/Switcheo.carbon.liquiditypool.UpdatePoolProposal",
|
|
29
|
+
SetRewardCurve = "/Switcheo.carbon.liquiditypool.SetRewardCurveProposal",
|
|
30
|
+
SetRewardsWeights = "/Switcheo.carbon.liquiditypool.SetRewardsWeightsProposal",
|
|
31
|
+
SetCommitmentCurve = "/Switcheo.carbon.liquiditypool.SetCommitmentCurveProposal",
|
|
32
|
+
UpdatePoolV2 = "/Switcheo.carbon.liquiditypool.MsgUpdatePool",
|
|
33
|
+
SetRewardCurveV2 = "/Switcheo.carbon.liquiditypool.MsgSetRewardCurve",
|
|
34
|
+
SetRewardsWeightsV2 = "/Switcheo.carbon.liquiditypool.MsgSetRewardsWeights",
|
|
35
|
+
SetCommitmentCurveV2 = "/Switcheo.carbon.liquiditypool.MsgSetCommitmentCurve",
|
|
36
|
+
SettlementPrice = "/Switcheo.carbon.pricing.SettlementPriceProposal",
|
|
37
|
+
SettlementPriceV2 = "/Switcheo.carbon.pricing.MsgUpdateSettlementPrice",
|
|
38
|
+
CreateOracle = "/Switcheo.carbon.oracle.CreateOracleProposal",
|
|
39
|
+
CreateOracleV2 = "/Switcheo.carbon.oracle.MsgCreateOracle",
|
|
40
|
+
CreateToken = "/Switcheo.carbon.coin.CreateTokenProposal",
|
|
21
41
|
CreateGroup = "/Switcheo.carbon.coin.CreateGroupProposal",
|
|
22
42
|
UpdateGroup = "/Switcheo.carbon.coin.UpdateGroupProposal",
|
|
23
43
|
RegisterToGroup = "/Switcheo.carbon.coin.RegisterToGroupProposal",
|
|
24
44
|
DeregisterFromGroup = "/Switcheo.carbon.coin.DeregisterFromGroupProposal",
|
|
25
45
|
DepositToGroup = "/Switcheo.carbon.coin.DepositToGroupProposal",
|
|
26
46
|
WithdrawFromGroup = "/Switcheo.carbon.coin.WithdrawFromGroupProposal",
|
|
27
|
-
UpdateGroupTokenConfig = "/Switcheo.carbon.coin.UpdateGroupTokenConfigProposal"
|
|
28
|
-
CreateAlliance = "/alliance.alliance.MsgCreateAllianceProposal",
|
|
29
|
-
UpdateAlliance = "/alliance.alliance.MsgUpdateAllianceProposal",
|
|
30
|
-
DeleteAlliance = "/alliance.alliance.MsgDeleteAllianceProposal"
|
|
47
|
+
UpdateGroupTokenConfig = "/Switcheo.carbon.coin.UpdateGroupTokenConfigProposal"
|
|
31
48
|
}
|
|
32
49
|
export interface PropDecoded {
|
|
33
50
|
typeUrl: string;
|
|
@@ -37,4 +54,4 @@ export declare const emptyProposal: {
|
|
|
37
54
|
typeUrl: string;
|
|
38
55
|
value: {};
|
|
39
56
|
};
|
|
40
|
-
export declare const decodeContent: (content?: Any
|
|
57
|
+
export declare const decodeContent: (content?: Any) => PropDecoded;
|