carbon-js-sdk 0.11.47-beta.2 → 0.11.47
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/codec/Switcheo/carbon/ccm/ccm.d.ts +19 -0
- package/lib/codec/Switcheo/carbon/ccm/ccm.js +60 -0
- package/lib/codec/Switcheo/carbon/fee/proposal.d.ts +57 -0
- package/lib/codec/Switcheo/carbon/fee/proposal.js +311 -0
- 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/marketstats/params.d.ts +18 -0
- package/lib/codec/Switcheo/carbon/marketstats/params.js +46 -0
- package/lib/codec/Switcheo/carbon/oracle/proposal.d.ts +21 -0
- package/lib/codec/Switcheo/carbon/oracle/proposal.js +91 -0
- package/lib/codec/Switcheo/carbon/pricing/proposal.d.ts +31 -0
- package/lib/codec/Switcheo/carbon/pricing/proposal.js +148 -0
- 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.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/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/base/kv/v1beta1/kv.d.ts +31 -0
- package/lib/codec/cosmos/base/kv/v1beta1/kv.js +154 -0
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +160 -0
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.js +684 -0
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +54 -0
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.js +273 -0
- package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +62 -0
- package/lib/codec/cosmos/base/store/v1beta1/listening.js +341 -0
- package/lib/codec/cosmos/capability/module/v1/module.d.ts +23 -0
- package/lib/codec/cosmos/capability/module/v1/module.js +59 -0
- package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +51 -0
- package/lib/codec/cosmos/capability/v1beta1/capability.js +168 -0
- package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +40 -0
- package/lib/codec/cosmos/capability/v1beta1/genesis.js +146 -0
- package/lib/codec/cosmos/gov/v1beta1/export.d.ts +3 -0
- package/lib/codec/cosmos/gov/v1beta1/export.js +45 -0
- 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/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/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/interchain_accounts/v1/genesis.d.ts +76 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.js +424 -0
- 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/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/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/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/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/signless.d.ts +2 -0
- package/lib/constant/signless.js +5 -0
- package/lib/modules/feemarket.d.ts +20 -0
- package/lib/modules/feemarket.js +45 -0
- 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/amino/types/perpsliquidity.d.ts +4 -0
- package/lib/provider/amino/types/perpsliquidity.js +73 -0
- package/lib/provider/amino/types/signless.d.ts +12 -0
- package/lib/provider/amino/types/signless.js +193 -0
- package/lib/provider/ledger/CarbonEVMLedger/CarbonEVMLedger.d.ts +27 -0
- package/lib/provider/ledger/CarbonEVMLedger/CarbonEVMLedger.js +154 -0
- package/lib/provider/ledger/CarbonEVMLedger/index.d.ts +1 -0
- package/lib/provider/ledger/CarbonEVMLedger/index.js +8 -0
- package/lib/provider/ledger/CarbonEVMLedger/utils.d.ts +73 -0
- package/lib/provider/ledger/CarbonEVMLedger/utils.js +220 -0
- package/lib/provider/ledger/evm.d.ts +10 -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/util/signless.d.ts +11 -0
- package/lib/util/signless.js +92 -0
- package/lib/wallet/CarbonWallet.d.ts +0 -10
- package/lib/wallet/CarbonWallet.js +0 -22
- package/package.json +2 -3
- package/lib/eth/abis/ExternalTokenERC20.json +0 -340
- package/lib/hydrogen/common.d.ts +0 -5
- /package/lib/{hydrogen/common.js → provider/ledger/evm.js} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare const protobufPackage = "Switcheo.carbon.ccm";
|
|
4
|
+
/** Params defines the parameters for the ccm module. */
|
|
5
|
+
export interface Params {
|
|
6
|
+
emitZionEvents: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const Params: {
|
|
9
|
+
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Params;
|
|
11
|
+
fromJSON(object: any): Params;
|
|
12
|
+
toJSON(message: Params): unknown;
|
|
13
|
+
fromPartial(object: DeepPartial<Params>): Params;
|
|
14
|
+
};
|
|
15
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
16
|
+
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 {} ? {
|
|
17
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
18
|
+
} : Partial<T>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
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.Params = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
exports.protobufPackage = "Switcheo.carbon.ccm";
|
|
11
|
+
const baseParams = { emitZionEvents: false };
|
|
12
|
+
exports.Params = {
|
|
13
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
14
|
+
if (message.emitZionEvents === true) {
|
|
15
|
+
writer.uint32(8).bool(message.emitZionEvents);
|
|
16
|
+
}
|
|
17
|
+
return writer;
|
|
18
|
+
},
|
|
19
|
+
decode(input, length) {
|
|
20
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
21
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22
|
+
const message = Object.assign({}, baseParams);
|
|
23
|
+
while (reader.pos < end) {
|
|
24
|
+
const tag = reader.uint32();
|
|
25
|
+
switch (tag >>> 3) {
|
|
26
|
+
case 1:
|
|
27
|
+
message.emitZionEvents = reader.bool();
|
|
28
|
+
break;
|
|
29
|
+
default:
|
|
30
|
+
reader.skipType(tag & 7);
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return message;
|
|
35
|
+
},
|
|
36
|
+
fromJSON(object) {
|
|
37
|
+
const message = Object.assign({}, baseParams);
|
|
38
|
+
message.emitZionEvents =
|
|
39
|
+
object.emitZionEvents !== undefined && object.emitZionEvents !== null
|
|
40
|
+
? Boolean(object.emitZionEvents)
|
|
41
|
+
: false;
|
|
42
|
+
return message;
|
|
43
|
+
},
|
|
44
|
+
toJSON(message) {
|
|
45
|
+
const obj = {};
|
|
46
|
+
message.emitZionEvents !== undefined &&
|
|
47
|
+
(obj.emitZionEvents = message.emitZionEvents);
|
|
48
|
+
return obj;
|
|
49
|
+
},
|
|
50
|
+
fromPartial(object) {
|
|
51
|
+
var _a;
|
|
52
|
+
const message = Object.assign({}, baseParams);
|
|
53
|
+
message.emitZionEvents = (_a = object.emitZionEvents) !== null && _a !== void 0 ? _a : false;
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
58
|
+
minimal_1.default.util.Long = long_1.default;
|
|
59
|
+
minimal_1.default.configure();
|
|
60
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { MsgGasCost, MinGasPrice } from "./fee";
|
|
4
|
+
export declare const protobufPackage = "Switcheo.carbon.fee";
|
|
5
|
+
export interface SetMsgGasCostProposal {
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
msg?: MsgGasCost;
|
|
9
|
+
}
|
|
10
|
+
export interface SetMinGasPriceProposal {
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
msg?: MinGasPrice;
|
|
14
|
+
}
|
|
15
|
+
export interface RemoveMsgGasCostProposal {
|
|
16
|
+
title: string;
|
|
17
|
+
description: string;
|
|
18
|
+
msgType: string;
|
|
19
|
+
}
|
|
20
|
+
export interface RemoveMinGasPriceProposal {
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
denom: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const SetMsgGasCostProposal: {
|
|
26
|
+
encode(message: SetMsgGasCostProposal, writer?: _m0.Writer): _m0.Writer;
|
|
27
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SetMsgGasCostProposal;
|
|
28
|
+
fromJSON(object: any): SetMsgGasCostProposal;
|
|
29
|
+
toJSON(message: SetMsgGasCostProposal): unknown;
|
|
30
|
+
fromPartial(object: DeepPartial<SetMsgGasCostProposal>): SetMsgGasCostProposal;
|
|
31
|
+
};
|
|
32
|
+
export declare const SetMinGasPriceProposal: {
|
|
33
|
+
encode(message: SetMinGasPriceProposal, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SetMinGasPriceProposal;
|
|
35
|
+
fromJSON(object: any): SetMinGasPriceProposal;
|
|
36
|
+
toJSON(message: SetMinGasPriceProposal): unknown;
|
|
37
|
+
fromPartial(object: DeepPartial<SetMinGasPriceProposal>): SetMinGasPriceProposal;
|
|
38
|
+
};
|
|
39
|
+
export declare const RemoveMsgGasCostProposal: {
|
|
40
|
+
encode(message: RemoveMsgGasCostProposal, writer?: _m0.Writer): _m0.Writer;
|
|
41
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): RemoveMsgGasCostProposal;
|
|
42
|
+
fromJSON(object: any): RemoveMsgGasCostProposal;
|
|
43
|
+
toJSON(message: RemoveMsgGasCostProposal): unknown;
|
|
44
|
+
fromPartial(object: DeepPartial<RemoveMsgGasCostProposal>): RemoveMsgGasCostProposal;
|
|
45
|
+
};
|
|
46
|
+
export declare const RemoveMinGasPriceProposal: {
|
|
47
|
+
encode(message: RemoveMinGasPriceProposal, writer?: _m0.Writer): _m0.Writer;
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): RemoveMinGasPriceProposal;
|
|
49
|
+
fromJSON(object: any): RemoveMinGasPriceProposal;
|
|
50
|
+
toJSON(message: RemoveMinGasPriceProposal): unknown;
|
|
51
|
+
fromPartial(object: DeepPartial<RemoveMinGasPriceProposal>): RemoveMinGasPriceProposal;
|
|
52
|
+
};
|
|
53
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
54
|
+
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 {} ? {
|
|
55
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
56
|
+
} : Partial<T>;
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,311 @@
|
|
|
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.RemoveMinGasPriceProposal = exports.RemoveMsgGasCostProposal = exports.SetMinGasPriceProposal = exports.SetMsgGasCostProposal = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const fee_1 = require("./fee");
|
|
11
|
+
exports.protobufPackage = "Switcheo.carbon.fee";
|
|
12
|
+
const baseSetMsgGasCostProposal = { title: "", description: "" };
|
|
13
|
+
exports.SetMsgGasCostProposal = {
|
|
14
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
15
|
+
if (message.title !== "") {
|
|
16
|
+
writer.uint32(10).string(message.title);
|
|
17
|
+
}
|
|
18
|
+
if (message.description !== "") {
|
|
19
|
+
writer.uint32(18).string(message.description);
|
|
20
|
+
}
|
|
21
|
+
if (message.msg !== undefined) {
|
|
22
|
+
fee_1.MsgGasCost.encode(message.msg, writer.uint32(26).fork()).ldelim();
|
|
23
|
+
}
|
|
24
|
+
return writer;
|
|
25
|
+
},
|
|
26
|
+
decode(input, length) {
|
|
27
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
28
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
|
+
const message = Object.assign({}, baseSetMsgGasCostProposal);
|
|
30
|
+
while (reader.pos < end) {
|
|
31
|
+
const tag = reader.uint32();
|
|
32
|
+
switch (tag >>> 3) {
|
|
33
|
+
case 1:
|
|
34
|
+
message.title = reader.string();
|
|
35
|
+
break;
|
|
36
|
+
case 2:
|
|
37
|
+
message.description = reader.string();
|
|
38
|
+
break;
|
|
39
|
+
case 3:
|
|
40
|
+
message.msg = fee_1.MsgGasCost.decode(reader, reader.uint32());
|
|
41
|
+
break;
|
|
42
|
+
default:
|
|
43
|
+
reader.skipType(tag & 7);
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return message;
|
|
48
|
+
},
|
|
49
|
+
fromJSON(object) {
|
|
50
|
+
const message = Object.assign({}, baseSetMsgGasCostProposal);
|
|
51
|
+
message.title =
|
|
52
|
+
object.title !== undefined && object.title !== null
|
|
53
|
+
? String(object.title)
|
|
54
|
+
: "";
|
|
55
|
+
message.description =
|
|
56
|
+
object.description !== undefined && object.description !== null
|
|
57
|
+
? String(object.description)
|
|
58
|
+
: "";
|
|
59
|
+
message.msg =
|
|
60
|
+
object.msg !== undefined && object.msg !== null
|
|
61
|
+
? fee_1.MsgGasCost.fromJSON(object.msg)
|
|
62
|
+
: undefined;
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
toJSON(message) {
|
|
66
|
+
const obj = {};
|
|
67
|
+
message.title !== undefined && (obj.title = message.title);
|
|
68
|
+
message.description !== undefined &&
|
|
69
|
+
(obj.description = message.description);
|
|
70
|
+
message.msg !== undefined &&
|
|
71
|
+
(obj.msg = message.msg ? fee_1.MsgGasCost.toJSON(message.msg) : undefined);
|
|
72
|
+
return obj;
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
var _a, _b;
|
|
76
|
+
const message = Object.assign({}, baseSetMsgGasCostProposal);
|
|
77
|
+
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
78
|
+
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
|
|
79
|
+
message.msg =
|
|
80
|
+
object.msg !== undefined && object.msg !== null
|
|
81
|
+
? fee_1.MsgGasCost.fromPartial(object.msg)
|
|
82
|
+
: undefined;
|
|
83
|
+
return message;
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
const baseSetMinGasPriceProposal = { title: "", description: "" };
|
|
87
|
+
exports.SetMinGasPriceProposal = {
|
|
88
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
89
|
+
if (message.title !== "") {
|
|
90
|
+
writer.uint32(10).string(message.title);
|
|
91
|
+
}
|
|
92
|
+
if (message.description !== "") {
|
|
93
|
+
writer.uint32(18).string(message.description);
|
|
94
|
+
}
|
|
95
|
+
if (message.msg !== undefined) {
|
|
96
|
+
fee_1.MinGasPrice.encode(message.msg, writer.uint32(26).fork()).ldelim();
|
|
97
|
+
}
|
|
98
|
+
return writer;
|
|
99
|
+
},
|
|
100
|
+
decode(input, length) {
|
|
101
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
102
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
103
|
+
const message = Object.assign({}, baseSetMinGasPriceProposal);
|
|
104
|
+
while (reader.pos < end) {
|
|
105
|
+
const tag = reader.uint32();
|
|
106
|
+
switch (tag >>> 3) {
|
|
107
|
+
case 1:
|
|
108
|
+
message.title = reader.string();
|
|
109
|
+
break;
|
|
110
|
+
case 2:
|
|
111
|
+
message.description = reader.string();
|
|
112
|
+
break;
|
|
113
|
+
case 3:
|
|
114
|
+
message.msg = fee_1.MinGasPrice.decode(reader, reader.uint32());
|
|
115
|
+
break;
|
|
116
|
+
default:
|
|
117
|
+
reader.skipType(tag & 7);
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return message;
|
|
122
|
+
},
|
|
123
|
+
fromJSON(object) {
|
|
124
|
+
const message = Object.assign({}, baseSetMinGasPriceProposal);
|
|
125
|
+
message.title =
|
|
126
|
+
object.title !== undefined && object.title !== null
|
|
127
|
+
? String(object.title)
|
|
128
|
+
: "";
|
|
129
|
+
message.description =
|
|
130
|
+
object.description !== undefined && object.description !== null
|
|
131
|
+
? String(object.description)
|
|
132
|
+
: "";
|
|
133
|
+
message.msg =
|
|
134
|
+
object.msg !== undefined && object.msg !== null
|
|
135
|
+
? fee_1.MinGasPrice.fromJSON(object.msg)
|
|
136
|
+
: undefined;
|
|
137
|
+
return message;
|
|
138
|
+
},
|
|
139
|
+
toJSON(message) {
|
|
140
|
+
const obj = {};
|
|
141
|
+
message.title !== undefined && (obj.title = message.title);
|
|
142
|
+
message.description !== undefined &&
|
|
143
|
+
(obj.description = message.description);
|
|
144
|
+
message.msg !== undefined &&
|
|
145
|
+
(obj.msg = message.msg ? fee_1.MinGasPrice.toJSON(message.msg) : undefined);
|
|
146
|
+
return obj;
|
|
147
|
+
},
|
|
148
|
+
fromPartial(object) {
|
|
149
|
+
var _a, _b;
|
|
150
|
+
const message = Object.assign({}, baseSetMinGasPriceProposal);
|
|
151
|
+
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
152
|
+
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
|
|
153
|
+
message.msg =
|
|
154
|
+
object.msg !== undefined && object.msg !== null
|
|
155
|
+
? fee_1.MinGasPrice.fromPartial(object.msg)
|
|
156
|
+
: undefined;
|
|
157
|
+
return message;
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
const baseRemoveMsgGasCostProposal = {
|
|
161
|
+
title: "",
|
|
162
|
+
description: "",
|
|
163
|
+
msgType: "",
|
|
164
|
+
};
|
|
165
|
+
exports.RemoveMsgGasCostProposal = {
|
|
166
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
167
|
+
if (message.title !== "") {
|
|
168
|
+
writer.uint32(10).string(message.title);
|
|
169
|
+
}
|
|
170
|
+
if (message.description !== "") {
|
|
171
|
+
writer.uint32(18).string(message.description);
|
|
172
|
+
}
|
|
173
|
+
if (message.msgType !== "") {
|
|
174
|
+
writer.uint32(26).string(message.msgType);
|
|
175
|
+
}
|
|
176
|
+
return writer;
|
|
177
|
+
},
|
|
178
|
+
decode(input, length) {
|
|
179
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
180
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
181
|
+
const message = Object.assign({}, baseRemoveMsgGasCostProposal);
|
|
182
|
+
while (reader.pos < end) {
|
|
183
|
+
const tag = reader.uint32();
|
|
184
|
+
switch (tag >>> 3) {
|
|
185
|
+
case 1:
|
|
186
|
+
message.title = reader.string();
|
|
187
|
+
break;
|
|
188
|
+
case 2:
|
|
189
|
+
message.description = reader.string();
|
|
190
|
+
break;
|
|
191
|
+
case 3:
|
|
192
|
+
message.msgType = reader.string();
|
|
193
|
+
break;
|
|
194
|
+
default:
|
|
195
|
+
reader.skipType(tag & 7);
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return message;
|
|
200
|
+
},
|
|
201
|
+
fromJSON(object) {
|
|
202
|
+
const message = Object.assign({}, baseRemoveMsgGasCostProposal);
|
|
203
|
+
message.title =
|
|
204
|
+
object.title !== undefined && object.title !== null
|
|
205
|
+
? String(object.title)
|
|
206
|
+
: "";
|
|
207
|
+
message.description =
|
|
208
|
+
object.description !== undefined && object.description !== null
|
|
209
|
+
? String(object.description)
|
|
210
|
+
: "";
|
|
211
|
+
message.msgType =
|
|
212
|
+
object.msgType !== undefined && object.msgType !== null
|
|
213
|
+
? String(object.msgType)
|
|
214
|
+
: "";
|
|
215
|
+
return message;
|
|
216
|
+
},
|
|
217
|
+
toJSON(message) {
|
|
218
|
+
const obj = {};
|
|
219
|
+
message.title !== undefined && (obj.title = message.title);
|
|
220
|
+
message.description !== undefined &&
|
|
221
|
+
(obj.description = message.description);
|
|
222
|
+
message.msgType !== undefined && (obj.msgType = message.msgType);
|
|
223
|
+
return obj;
|
|
224
|
+
},
|
|
225
|
+
fromPartial(object) {
|
|
226
|
+
var _a, _b, _c;
|
|
227
|
+
const message = Object.assign({}, baseRemoveMsgGasCostProposal);
|
|
228
|
+
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
229
|
+
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
|
|
230
|
+
message.msgType = (_c = object.msgType) !== null && _c !== void 0 ? _c : "";
|
|
231
|
+
return message;
|
|
232
|
+
},
|
|
233
|
+
};
|
|
234
|
+
const baseRemoveMinGasPriceProposal = {
|
|
235
|
+
title: "",
|
|
236
|
+
description: "",
|
|
237
|
+
denom: "",
|
|
238
|
+
};
|
|
239
|
+
exports.RemoveMinGasPriceProposal = {
|
|
240
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
241
|
+
if (message.title !== "") {
|
|
242
|
+
writer.uint32(10).string(message.title);
|
|
243
|
+
}
|
|
244
|
+
if (message.description !== "") {
|
|
245
|
+
writer.uint32(18).string(message.description);
|
|
246
|
+
}
|
|
247
|
+
if (message.denom !== "") {
|
|
248
|
+
writer.uint32(26).string(message.denom);
|
|
249
|
+
}
|
|
250
|
+
return writer;
|
|
251
|
+
},
|
|
252
|
+
decode(input, length) {
|
|
253
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
254
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
255
|
+
const message = Object.assign({}, baseRemoveMinGasPriceProposal);
|
|
256
|
+
while (reader.pos < end) {
|
|
257
|
+
const tag = reader.uint32();
|
|
258
|
+
switch (tag >>> 3) {
|
|
259
|
+
case 1:
|
|
260
|
+
message.title = reader.string();
|
|
261
|
+
break;
|
|
262
|
+
case 2:
|
|
263
|
+
message.description = reader.string();
|
|
264
|
+
break;
|
|
265
|
+
case 3:
|
|
266
|
+
message.denom = reader.string();
|
|
267
|
+
break;
|
|
268
|
+
default:
|
|
269
|
+
reader.skipType(tag & 7);
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
return message;
|
|
274
|
+
},
|
|
275
|
+
fromJSON(object) {
|
|
276
|
+
const message = Object.assign({}, baseRemoveMinGasPriceProposal);
|
|
277
|
+
message.title =
|
|
278
|
+
object.title !== undefined && object.title !== null
|
|
279
|
+
? String(object.title)
|
|
280
|
+
: "";
|
|
281
|
+
message.description =
|
|
282
|
+
object.description !== undefined && object.description !== null
|
|
283
|
+
? String(object.description)
|
|
284
|
+
: "";
|
|
285
|
+
message.denom =
|
|
286
|
+
object.denom !== undefined && object.denom !== null
|
|
287
|
+
? String(object.denom)
|
|
288
|
+
: "";
|
|
289
|
+
return message;
|
|
290
|
+
},
|
|
291
|
+
toJSON(message) {
|
|
292
|
+
const obj = {};
|
|
293
|
+
message.title !== undefined && (obj.title = message.title);
|
|
294
|
+
message.description !== undefined &&
|
|
295
|
+
(obj.description = message.description);
|
|
296
|
+
message.denom !== undefined && (obj.denom = message.denom);
|
|
297
|
+
return obj;
|
|
298
|
+
},
|
|
299
|
+
fromPartial(object) {
|
|
300
|
+
var _a, _b, _c;
|
|
301
|
+
const message = Object.assign({}, baseRemoveMinGasPriceProposal);
|
|
302
|
+
message.title = (_a = object.title) !== null && _a !== void 0 ? _a : "";
|
|
303
|
+
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
|
|
304
|
+
message.denom = (_c = object.denom) !== null && _c !== void 0 ? _c : "";
|
|
305
|
+
return message;
|
|
306
|
+
},
|
|
307
|
+
};
|
|
308
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
309
|
+
minimal_1.default.util.Long = long_1.default;
|
|
310
|
+
minimal_1.default.configure();
|
|
311
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare const protobufPackage = "Switcheo.carbon.liquidation";
|
|
4
|
+
export interface Params {
|
|
5
|
+
}
|
|
6
|
+
export declare const Params: {
|
|
7
|
+
encode(_: Params, writer?: _m0.Writer): _m0.Writer;
|
|
8
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
|
9
|
+
fromJSON(_: any): Params;
|
|
10
|
+
toJSON(_: Params): unknown;
|
|
11
|
+
fromPartial(_: DeepPartial<Params>): Params;
|
|
12
|
+
};
|
|
13
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
14
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
15
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
16
|
+
} : Partial<T>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
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.Params = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
exports.protobufPackage = "Switcheo.carbon.liquidation";
|
|
11
|
+
const baseParams = {};
|
|
12
|
+
exports.Params = {
|
|
13
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
14
|
+
return writer;
|
|
15
|
+
},
|
|
16
|
+
decode(input, length) {
|
|
17
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
18
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
19
|
+
const message = Object.assign({}, baseParams);
|
|
20
|
+
while (reader.pos < end) {
|
|
21
|
+
const tag = reader.uint32();
|
|
22
|
+
switch (tag >>> 3) {
|
|
23
|
+
default:
|
|
24
|
+
reader.skipType(tag & 7);
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return message;
|
|
29
|
+
},
|
|
30
|
+
fromJSON(_) {
|
|
31
|
+
const message = Object.assign({}, baseParams);
|
|
32
|
+
return message;
|
|
33
|
+
},
|
|
34
|
+
toJSON(_) {
|
|
35
|
+
const obj = {};
|
|
36
|
+
return obj;
|
|
37
|
+
},
|
|
38
|
+
fromPartial(_) {
|
|
39
|
+
const message = Object.assign({}, baseParams);
|
|
40
|
+
return message;
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
44
|
+
minimal_1.default.util.Long = long_1.default;
|
|
45
|
+
minimal_1.default.configure();
|
|
46
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare const protobufPackage = "Switcheo.carbon.marketstats";
|
|
4
|
+
/** Params defines the parameters for the module. */
|
|
5
|
+
export interface Params {
|
|
6
|
+
}
|
|
7
|
+
export declare const Params: {
|
|
8
|
+
encode(_: Params, writer?: _m0.Writer): _m0.Writer;
|
|
9
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Params;
|
|
10
|
+
fromJSON(_: any): Params;
|
|
11
|
+
toJSON(_: Params): unknown;
|
|
12
|
+
fromPartial(_: DeepPartial<Params>): Params;
|
|
13
|
+
};
|
|
14
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
15
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
16
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
17
|
+
} : Partial<T>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
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.Params = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
exports.protobufPackage = "Switcheo.carbon.marketstats";
|
|
11
|
+
const baseParams = {};
|
|
12
|
+
exports.Params = {
|
|
13
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
14
|
+
return writer;
|
|
15
|
+
},
|
|
16
|
+
decode(input, length) {
|
|
17
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
18
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
19
|
+
const message = Object.assign({}, baseParams);
|
|
20
|
+
while (reader.pos < end) {
|
|
21
|
+
const tag = reader.uint32();
|
|
22
|
+
switch (tag >>> 3) {
|
|
23
|
+
default:
|
|
24
|
+
reader.skipType(tag & 7);
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return message;
|
|
29
|
+
},
|
|
30
|
+
fromJSON(_) {
|
|
31
|
+
const message = Object.assign({}, baseParams);
|
|
32
|
+
return message;
|
|
33
|
+
},
|
|
34
|
+
toJSON(_) {
|
|
35
|
+
const obj = {};
|
|
36
|
+
return obj;
|
|
37
|
+
},
|
|
38
|
+
fromPartial(_) {
|
|
39
|
+
const message = Object.assign({}, baseParams);
|
|
40
|
+
return message;
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
44
|
+
minimal_1.default.util.Long = long_1.default;
|
|
45
|
+
minimal_1.default.configure();
|
|
46
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { CreateOracleParams } from "./tx";
|
|
4
|
+
export declare const protobufPackage = "Switcheo.carbon.oracle";
|
|
5
|
+
export interface CreateOracleProposal {
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
msg?: CreateOracleParams;
|
|
9
|
+
}
|
|
10
|
+
export declare const CreateOracleProposal: {
|
|
11
|
+
encode(message: CreateOracleProposal, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): CreateOracleProposal;
|
|
13
|
+
fromJSON(object: any): CreateOracleProposal;
|
|
14
|
+
toJSON(message: CreateOracleProposal): unknown;
|
|
15
|
+
fromPartial(object: DeepPartial<CreateOracleProposal>): CreateOracleProposal;
|
|
16
|
+
};
|
|
17
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
18
|
+
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 {} ? {
|
|
19
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
20
|
+
} : Partial<T>;
|
|
21
|
+
export {};
|