carbon-js-sdk 0.7.4-beta.2 → 0.7.4-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/CarbonSDK.d.ts +5 -6
- package/lib/CarbonSDK.js +1 -2
- package/lib/clients/BlockchainClient.d.ts +3 -3
- package/lib/clients/BlockchainClient.js +1 -1
- package/lib/clients/CarbonQueryClient.d.ts +28 -28
- package/lib/clients/CarbonQueryClient.js +26 -26
- package/lib/clients/TokenClient.js +3 -10
- package/lib/codec/Switcheo/carbon/adl/genesis.d.ts +18 -0
- package/lib/codec/Switcheo/carbon/adl/genesis.js +46 -0
- package/lib/codec/Switcheo/carbon/adl/query.d.ts +12 -0
- package/lib/codec/Switcheo/carbon/adl/query.js +20 -0
- package/lib/codec/Switcheo/carbon/adl/tx.d.ts +12 -0
- package/lib/codec/Switcheo/carbon/adl/tx.js +20 -0
- package/lib/codec/Switcheo/carbon/admin/export.d.ts +2 -0
- package/lib/codec/Switcheo/carbon/admin/export.js +13 -0
- package/lib/codec/Switcheo/carbon/admin/genesis.d.ts +18 -0
- package/lib/codec/Switcheo/carbon/admin/genesis.js +46 -0
- package/lib/codec/Switcheo/carbon/admin/query.d.ts +62 -0
- package/lib/codec/Switcheo/carbon/admin/query.js +186 -0
- package/lib/codec/Switcheo/carbon/admin/tx.d.ts +62 -0
- package/lib/codec/Switcheo/carbon/admin/tx.js +198 -0
- package/lib/codec/Switcheo/carbon/bank/event.d.ts +65 -0
- package/lib/codec/Switcheo/carbon/bank/event.js +332 -0
- package/lib/codec/Switcheo/carbon/bank/export.d.ts +2 -0
- package/lib/codec/Switcheo/carbon/bank/export.js +14 -0
- package/lib/codec/Switcheo/carbon/bank/genesis.d.ts +18 -0
- package/lib/codec/Switcheo/carbon/bank/genesis.js +46 -0
- package/lib/codec/Switcheo/carbon/bank/query.d.ts +77 -0
- package/lib/codec/Switcheo/carbon/bank/query.js +459 -0
- package/lib/codec/Switcheo/carbon/book/book.d.ts +57 -0
- package/lib/codec/Switcheo/carbon/book/book.js +319 -0
- package/lib/codec/Switcheo/carbon/book/event.d.ts +22 -0
- package/lib/codec/Switcheo/carbon/book/event.js +113 -0
- package/lib/codec/Switcheo/carbon/book/export.d.ts +4 -0
- package/lib/codec/Switcheo/carbon/book/export.js +23 -0
- package/lib/codec/Switcheo/carbon/book/genesis.d.ts +25 -0
- package/lib/codec/Switcheo/carbon/book/genesis.js +79 -0
- package/lib/codec/Switcheo/carbon/book/legacy.d.ts +22 -0
- package/lib/codec/Switcheo/carbon/book/legacy.js +120 -0
- package/lib/codec/Switcheo/carbon/book/query.d.ts +141 -0
- package/lib/codec/Switcheo/carbon/book/query.js +606 -0
- package/lib/codec/Switcheo/carbon/book/tx.d.ts +12 -0
- package/lib/codec/Switcheo/carbon/book/tx.js +20 -0
- package/lib/codec/Switcheo/carbon/broker/amm.d.ts +50 -0
- package/lib/codec/Switcheo/carbon/broker/amm.js +326 -0
- package/lib/codec/Switcheo/carbon/broker/candlestick.d.ts +27 -0
- package/lib/codec/Switcheo/carbon/broker/candlestick.js +211 -0
- package/lib/codec/Switcheo/carbon/broker/event.d.ts +53 -0
- package/lib/codec/Switcheo/carbon/broker/event.js +485 -0
- package/lib/codec/Switcheo/carbon/broker/export.d.ts +7 -0
- package/lib/codec/Switcheo/carbon/broker/export.js +27 -0
- package/lib/codec/Switcheo/carbon/broker/genesis.d.ts +25 -0
- package/lib/codec/Switcheo/carbon/broker/genesis.js +79 -0
- package/lib/codec/Switcheo/carbon/broker/incoming_liquidations.d.ts +18 -0
- package/lib/codec/Switcheo/carbon/broker/incoming_liquidations.js +93 -0
- package/lib/codec/Switcheo/carbon/broker/pagination.d.ts +19 -0
- package/lib/codec/Switcheo/carbon/broker/pagination.js +78 -0
- package/lib/codec/Switcheo/carbon/broker/query.d.ts +107 -0
- package/lib/codec/Switcheo/carbon/broker/query.js +597 -0
- package/lib/codec/Switcheo/carbon/broker/tx.d.ts +53 -0
- package/lib/codec/Switcheo/carbon/broker/tx.js +176 -0
- package/lib/codec/Switcheo/carbon/btcx/denom_cross_chain_info.d.ts +21 -0
- package/lib/codec/Switcheo/carbon/btcx/denom_cross_chain_info.js +98 -0
- package/lib/codec/Switcheo/carbon/btcx/denom_info.d.ts +24 -0
- package/lib/codec/Switcheo/carbon/btcx/denom_info.js +140 -0
- package/lib/codec/Switcheo/carbon/btcx/export.d.ts +4 -0
- package/lib/codec/Switcheo/carbon/btcx/export.js +19 -0
- package/lib/codec/Switcheo/carbon/btcx/genesis.d.ts +18 -0
- package/lib/codec/Switcheo/carbon/btcx/genesis.js +46 -0
- package/lib/codec/Switcheo/carbon/btcx/query.d.ts +68 -0
- package/lib/codec/Switcheo/carbon/btcx/query.js +275 -0
- package/lib/codec/Switcheo/carbon/btcx/tx.d.ts +92 -0
- package/lib/codec/Switcheo/carbon/btcx/tx.js +436 -0
- package/lib/codec/Switcheo/carbon/ccm/ccm.d.ts +19 -0
- package/lib/codec/Switcheo/carbon/ccm/ccm.js +60 -0
- package/lib/codec/Switcheo/carbon/ccm/export.d.ts +4 -0
- package/lib/codec/Switcheo/carbon/ccm/export.js +20 -0
- package/lib/codec/Switcheo/carbon/ccm/genesis.d.ts +83 -0
- package/lib/codec/Switcheo/carbon/ccm/genesis.js +438 -0
- package/lib/codec/Switcheo/carbon/ccm/query.d.ts +45 -0
- package/lib/codec/Switcheo/carbon/ccm/query.js +197 -0
- package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +97 -0
- package/lib/codec/Switcheo/carbon/ccm/tx.js +462 -0
- package/lib/codec/Switcheo/carbon/cdp/asset_params.d.ts +57 -0
- package/lib/codec/Switcheo/carbon/cdp/asset_params.js +411 -0
- package/lib/codec/Switcheo/carbon/cdp/cdp_liquidations.d.ts +32 -0
- package/lib/codec/Switcheo/carbon/cdp/cdp_liquidations.js +288 -0
- package/lib/codec/Switcheo/carbon/cdp/debt_info.d.ts +23 -0
- package/lib/codec/Switcheo/carbon/cdp/debt_info.js +158 -0
- package/lib/codec/Switcheo/carbon/cdp/e_mode_category.d.ts +23 -0
- package/lib/codec/Switcheo/carbon/cdp/e_mode_category.js +135 -0
- package/lib/codec/Switcheo/carbon/cdp/event.d.ts +446 -0
- package/lib/codec/Switcheo/carbon/cdp/event.js +2913 -0
- package/lib/codec/Switcheo/carbon/cdp/export.d.ts +13 -0
- package/lib/codec/Switcheo/carbon/cdp/export.js +210 -0
- package/lib/codec/Switcheo/carbon/cdp/genesis.d.ts +134 -0
- package/lib/codec/Switcheo/carbon/cdp/genesis.js +825 -0
- package/lib/codec/Switcheo/carbon/cdp/params.d.ts +68 -0
- package/lib/codec/Switcheo/carbon/cdp/params.js +210 -0
- package/lib/codec/Switcheo/carbon/cdp/query.d.ts +644 -0
- package/lib/codec/Switcheo/carbon/cdp/query.js +3099 -0
- package/lib/codec/Switcheo/carbon/cdp/rate_strategy_params.d.ts +26 -0
- package/lib/codec/Switcheo/carbon/cdp/rate_strategy_params.js +180 -0
- package/lib/codec/Switcheo/carbon/cdp/reward_scheme.d.ts +71 -0
- package/lib/codec/Switcheo/carbon/cdp/reward_scheme.js +550 -0
- package/lib/codec/Switcheo/carbon/cdp/stablecoin_debt_info.d.ts +22 -0
- package/lib/codec/Switcheo/carbon/cdp/stablecoin_debt_info.js +144 -0
- package/lib/codec/Switcheo/carbon/cdp/stablecoin_interest_info.d.ts +19 -0
- package/lib/codec/Switcheo/carbon/cdp/stablecoin_interest_info.js +99 -0
- package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +1026 -0
- package/lib/codec/Switcheo/carbon/cdp/tx.js +5191 -0
- package/lib/codec/Switcheo/carbon/coin/bridge.d.ts +24 -0
- package/lib/codec/Switcheo/carbon/coin/bridge.js +151 -0
- package/lib/codec/Switcheo/carbon/coin/event.d.ts +143 -0
- package/lib/codec/Switcheo/carbon/coin/event.js +775 -0
- package/lib/codec/Switcheo/carbon/coin/export.d.ts +8 -0
- package/lib/codec/Switcheo/carbon/coin/export.js +107 -0
- package/lib/codec/Switcheo/carbon/coin/genesis.d.ts +42 -0
- package/lib/codec/Switcheo/carbon/coin/genesis.js +207 -0
- package/lib/codec/Switcheo/carbon/coin/group.d.ts +50 -0
- package/lib/codec/Switcheo/carbon/coin/group.js +230 -0
- package/lib/codec/Switcheo/carbon/coin/proposal.d.ts +21 -0
- package/lib/codec/Switcheo/carbon/coin/proposal.js +91 -0
- package/lib/codec/Switcheo/carbon/coin/query.d.ts +310 -0
- package/lib/codec/Switcheo/carbon/coin/query.js +1439 -0
- package/lib/codec/Switcheo/carbon/coin/token.d.ts +104 -0
- package/lib/codec/Switcheo/carbon/coin/token.js +700 -0
- package/lib/codec/Switcheo/carbon/coin/tx.d.ts +586 -0
- package/lib/codec/Switcheo/carbon/coin/tx.js +3131 -0
- package/lib/codec/Switcheo/carbon/erc20/erc20.d.ts +41 -0
- package/lib/codec/Switcheo/carbon/erc20/erc20.js +144 -0
- package/lib/codec/Switcheo/carbon/erc20/events.d.ts +76 -0
- package/lib/codec/Switcheo/carbon/erc20/events.js +330 -0
- package/lib/codec/Switcheo/carbon/erc20/export.d.ts +5 -0
- package/lib/codec/Switcheo/carbon/erc20/export.js +37 -0
- package/lib/codec/Switcheo/carbon/erc20/genesis.d.ts +40 -0
- package/lib/codec/Switcheo/carbon/erc20/genesis.js +139 -0
- package/lib/codec/Switcheo/carbon/erc20/query.d.ts +117 -0
- package/lib/codec/Switcheo/carbon/erc20/query.js +333 -0
- package/lib/codec/Switcheo/carbon/erc20/tx.d.ts +232 -0
- package/lib/codec/Switcheo/carbon/erc20/tx.js +765 -0
- package/lib/codec/Switcheo/carbon/evmbank/export.d.ts +2 -0
- package/lib/codec/Switcheo/carbon/evmbank/export.js +8 -0
- package/lib/codec/Switcheo/carbon/evmbank/genesis.d.ts +32 -0
- package/lib/codec/Switcheo/carbon/evmbank/genesis.js +152 -0
- package/lib/codec/Switcheo/carbon/evmbank/query.d.ts +40 -0
- package/lib/codec/Switcheo/carbon/evmbank/query.js +116 -0
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +18 -0
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.js +46 -0
- package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +12 -0
- package/lib/codec/Switcheo/carbon/evmcontract/query.js +20 -0
- package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +12 -0
- package/lib/codec/Switcheo/carbon/evmcontract/tx.js +20 -0
- package/lib/codec/Switcheo/carbon/evmmerge/address.d.ts +19 -0
- package/lib/codec/Switcheo/carbon/evmmerge/address.js +75 -0
- package/lib/codec/Switcheo/carbon/evmmerge/event.d.ts +20 -0
- package/lib/codec/Switcheo/carbon/evmmerge/event.js +90 -0
- package/lib/codec/Switcheo/carbon/evmmerge/export.d.ts +6 -0
- package/lib/codec/Switcheo/carbon/evmmerge/export.js +20 -0
- package/lib/codec/Switcheo/carbon/evmmerge/genesis.d.ts +48 -0
- package/lib/codec/Switcheo/carbon/evmmerge/genesis.js +216 -0
- package/lib/codec/Switcheo/carbon/evmmerge/offchain.d.ts +22 -0
- package/lib/codec/Switcheo/carbon/evmmerge/offchain.js +105 -0
- package/lib/codec/Switcheo/carbon/evmmerge/query.d.ts +75 -0
- package/lib/codec/Switcheo/carbon/evmmerge/query.js +254 -0
- package/lib/codec/Switcheo/carbon/evmmerge/tx.d.ts +45 -0
- package/lib/codec/Switcheo/carbon/evmmerge/tx.js +128 -0
- package/lib/codec/Switcheo/carbon/fee/event.d.ts +20 -0
- package/lib/codec/Switcheo/carbon/fee/event.js +83 -0
- package/lib/codec/Switcheo/carbon/fee/export.d.ts +5 -0
- package/lib/codec/Switcheo/carbon/fee/export.js +32 -0
- package/lib/codec/Switcheo/carbon/fee/fee.d.ts +42 -0
- package/lib/codec/Switcheo/carbon/fee/fee.js +183 -0
- package/lib/codec/Switcheo/carbon/fee/genesis.d.ts +23 -0
- package/lib/codec/Switcheo/carbon/fee/genesis.js +79 -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/fee/query.d.ts +114 -0
- package/lib/codec/Switcheo/carbon/fee/query.js +470 -0
- package/lib/codec/Switcheo/carbon/fee/tx.d.ts +108 -0
- package/lib/codec/Switcheo/carbon/fee/tx.js +415 -0
- package/lib/codec/Switcheo/carbon/headersync/consensus_peers.d.ts +70 -0
- package/lib/codec/Switcheo/carbon/headersync/consensus_peers.js +383 -0
- package/lib/codec/Switcheo/carbon/headersync/export.d.ts +4 -0
- package/lib/codec/Switcheo/carbon/headersync/export.js +24 -0
- package/lib/codec/Switcheo/carbon/headersync/genesis.d.ts +79 -0
- package/lib/codec/Switcheo/carbon/headersync/genesis.js +419 -0
- package/lib/codec/Switcheo/carbon/headersync/query.d.ts +64 -0
- package/lib/codec/Switcheo/carbon/headersync/query.js +231 -0
- package/lib/codec/Switcheo/carbon/headersync/tx.d.ts +64 -0
- package/lib/codec/Switcheo/carbon/headersync/tx.js +215 -0
- package/lib/codec/Switcheo/carbon/inflation/export.d.ts +2 -0
- package/lib/codec/Switcheo/carbon/inflation/export.js +8 -0
- package/lib/codec/Switcheo/carbon/inflation/genesis.d.ts +25 -0
- package/lib/codec/Switcheo/carbon/inflation/genesis.js +79 -0
- package/lib/codec/Switcheo/carbon/inflation/inflation.d.ts +26 -0
- package/lib/codec/Switcheo/carbon/inflation/inflation.js +165 -0
- package/lib/codec/Switcheo/carbon/inflation/query.d.ts +41 -0
- package/lib/codec/Switcheo/carbon/inflation/query.js +109 -0
- package/lib/codec/Switcheo/carbon/inflation/tx.d.ts +12 -0
- package/lib/codec/Switcheo/carbon/inflation/tx.js +20 -0
- package/lib/codec/Switcheo/carbon/insurance/event.d.ts +24 -0
- package/lib/codec/Switcheo/carbon/insurance/event.js +46 -0
- package/lib/codec/Switcheo/carbon/insurance/export.d.ts +4 -0
- package/lib/codec/Switcheo/carbon/insurance/export.js +14 -0
- package/lib/codec/Switcheo/carbon/insurance/fund.d.ts +29 -0
- package/lib/codec/Switcheo/carbon/insurance/fund.js +148 -0
- package/lib/codec/Switcheo/carbon/insurance/genesis.d.ts +18 -0
- package/lib/codec/Switcheo/carbon/insurance/genesis.js +46 -0
- package/lib/codec/Switcheo/carbon/insurance/query.d.ts +41 -0
- package/lib/codec/Switcheo/carbon/insurance/query.js +108 -0
- package/lib/codec/Switcheo/carbon/insurance/tx.d.ts +44 -0
- package/lib/codec/Switcheo/carbon/insurance/tx.js +144 -0
- package/lib/codec/Switcheo/carbon/leverage/event.d.ts +21 -0
- package/lib/codec/Switcheo/carbon/leverage/event.js +100 -0
- package/lib/codec/Switcheo/carbon/leverage/export.d.ts +4 -0
- package/lib/codec/Switcheo/carbon/leverage/export.js +16 -0
- package/lib/codec/Switcheo/carbon/leverage/genesis.d.ts +24 -0
- package/lib/codec/Switcheo/carbon/leverage/genesis.js +64 -0
- package/lib/codec/Switcheo/carbon/leverage/leverage.d.ts +30 -0
- package/lib/codec/Switcheo/carbon/leverage/leverage.js +134 -0
- package/lib/codec/Switcheo/carbon/leverage/query.d.ts +70 -0
- package/lib/codec/Switcheo/carbon/leverage/query.js +234 -0
- package/lib/codec/Switcheo/carbon/leverage/tx.d.ts +43 -0
- package/lib/codec/Switcheo/carbon/leverage/tx.js +127 -0
- package/lib/codec/Switcheo/carbon/liquidation/export.d.ts +5 -0
- package/lib/codec/Switcheo/carbon/liquidation/export.js +17 -0
- package/lib/codec/Switcheo/carbon/liquidation/genesis.d.ts +37 -0
- package/lib/codec/Switcheo/carbon/liquidation/genesis.js +136 -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/liquidation/outstanding_position.d.ts +33 -0
- package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.js +203 -0
- package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +77 -0
- package/lib/codec/Switcheo/carbon/liquidation/query.js +341 -0
- package/lib/codec/Switcheo/carbon/liquidation/quote_changes.d.ts +22 -0
- package/lib/codec/Switcheo/carbon/liquidation/quote_changes.js +95 -0
- package/lib/codec/Switcheo/carbon/liquidation/tx.d.ts +12 -0
- package/lib/codec/Switcheo/carbon/liquidation/tx.js +20 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/event.d.ts +182 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/event.js +1268 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/export.d.ts +6 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/export.js +125 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/genesis.d.ts +32 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/genesis.js +228 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +138 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.js +943 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/proposal.d.ts +117 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/proposal.js +697 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/query.d.ts +370 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/query.js +1738 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/reward.d.ts +196 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/reward.js +1204 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +453 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.js +2423 -0
- package/lib/codec/Switcheo/carbon/lockproxy/event.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/lockproxy/event.js +348 -0
- package/lib/codec/Switcheo/carbon/lockproxy/export.d.ts +5 -0
- package/lib/codec/Switcheo/carbon/lockproxy/export.js +28 -0
- package/lib/codec/Switcheo/carbon/lockproxy/genesis.d.ts +68 -0
- package/lib/codec/Switcheo/carbon/lockproxy/genesis.js +355 -0
- package/lib/codec/Switcheo/carbon/lockproxy/lockproxy.d.ts +22 -0
- package/lib/codec/Switcheo/carbon/lockproxy/lockproxy.js +147 -0
- package/lib/codec/Switcheo/carbon/lockproxy/query.d.ts +67 -0
- package/lib/codec/Switcheo/carbon/lockproxy/query.js +274 -0
- package/lib/codec/Switcheo/carbon/lockproxy/tx.d.ts +147 -0
- package/lib/codec/Switcheo/carbon/lockproxy/tx.js +808 -0
- package/lib/codec/Switcheo/carbon/market/event.d.ts +20 -0
- package/lib/codec/Switcheo/carbon/market/event.js +76 -0
- package/lib/codec/Switcheo/carbon/market/export.d.ts +6 -0
- package/lib/codec/Switcheo/carbon/market/export.js +61 -0
- package/lib/codec/Switcheo/carbon/market/fee.d.ts +123 -0
- package/lib/codec/Switcheo/carbon/market/fee.js +334 -0
- package/lib/codec/Switcheo/carbon/market/genesis.d.ts +31 -0
- package/lib/codec/Switcheo/carbon/market/genesis.js +147 -0
- package/lib/codec/Switcheo/carbon/market/market.d.ts +131 -0
- package/lib/codec/Switcheo/carbon/market/market.js +1245 -0
- package/lib/codec/Switcheo/carbon/market/proposal.d.ts +46 -0
- package/lib/codec/Switcheo/carbon/market/proposal.js +245 -0
- package/lib/codec/Switcheo/carbon/market/query.d.ts +233 -0
- package/lib/codec/Switcheo/carbon/market/query.js +938 -0
- package/lib/codec/Switcheo/carbon/market/tx.d.ts +250 -0
- package/lib/codec/Switcheo/carbon/market/tx.js +1265 -0
- package/lib/codec/Switcheo/carbon/marketstats/export.d.ts +3 -0
- package/lib/codec/Switcheo/carbon/marketstats/export.js +12 -0
- package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +21 -0
- package/lib/codec/Switcheo/carbon/marketstats/genesis.js +63 -0
- package/lib/codec/Switcheo/carbon/marketstats/marketstats.d.ts +31 -0
- package/lib/codec/Switcheo/carbon/marketstats/marketstats.js +258 -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/marketstats/query.d.ts +66 -0
- package/lib/codec/Switcheo/carbon/marketstats/query.js +195 -0
- package/lib/codec/Switcheo/carbon/marketstats/tx.d.ts +12 -0
- package/lib/codec/Switcheo/carbon/marketstats/tx.js +20 -0
- package/lib/codec/Switcheo/carbon/misc/block.d.ts +21 -0
- package/lib/codec/Switcheo/carbon/misc/block.js +105 -0
- package/lib/codec/Switcheo/carbon/misc/export.d.ts +6 -0
- package/lib/codec/Switcheo/carbon/misc/export.js +29 -0
- package/lib/codec/Switcheo/carbon/misc/message.d.ts +22 -0
- package/lib/codec/Switcheo/carbon/misc/message.js +128 -0
- package/lib/codec/Switcheo/carbon/misc/message_type.d.ts +18 -0
- package/lib/codec/Switcheo/carbon/misc/message_type.js +60 -0
- package/lib/codec/Switcheo/carbon/misc/query.d.ts +192 -0
- package/lib/codec/Switcheo/carbon/misc/query.js +884 -0
- package/lib/codec/Switcheo/carbon/misc/trade.d.ts +28 -0
- package/lib/codec/Switcheo/carbon/misc/trade.js +224 -0
- package/lib/codec/Switcheo/carbon/misc/transaction.d.ts +45 -0
- package/lib/codec/Switcheo/carbon/misc/transaction.js +369 -0
- package/lib/codec/Switcheo/carbon/oracle/event.d.ts +37 -0
- package/lib/codec/Switcheo/carbon/oracle/event.js +228 -0
- package/lib/codec/Switcheo/carbon/oracle/export.d.ts +6 -0
- package/lib/codec/Switcheo/carbon/oracle/export.js +58 -0
- package/lib/codec/Switcheo/carbon/oracle/genesis.d.ts +28 -0
- package/lib/codec/Switcheo/carbon/oracle/genesis.js +141 -0
- package/lib/codec/Switcheo/carbon/oracle/oracle.d.ts +94 -0
- package/lib/codec/Switcheo/carbon/oracle/oracle.js +650 -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/oracle/query.d.ts +336 -0
- package/lib/codec/Switcheo/carbon/oracle/query.js +1551 -0
- package/lib/codec/Switcheo/carbon/oracle/slashing.d.ts +33 -0
- package/lib/codec/Switcheo/carbon/oracle/slashing.js +191 -0
- package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +169 -0
- package/lib/codec/Switcheo/carbon/oracle/tx.js +877 -0
- package/lib/codec/Switcheo/carbon/order/event.d.ts +23 -0
- package/lib/codec/Switcheo/carbon/order/event.js +146 -0
- package/lib/codec/Switcheo/carbon/order/export.d.ts +5 -0
- package/lib/codec/Switcheo/carbon/order/export.js +39 -0
- package/lib/codec/Switcheo/carbon/order/genesis.d.ts +62 -0
- package/lib/codec/Switcheo/carbon/order/genesis.js +322 -0
- package/lib/codec/Switcheo/carbon/order/order.d.ts +113 -0
- package/lib/codec/Switcheo/carbon/order/order.js +875 -0
- package/lib/codec/Switcheo/carbon/order/query.d.ts +143 -0
- package/lib/codec/Switcheo/carbon/order/query.js +596 -0
- package/lib/codec/Switcheo/carbon/order/tx.d.ts +146 -0
- package/lib/codec/Switcheo/carbon/order/tx.js +715 -0
- package/lib/codec/Switcheo/carbon/perpspool/event.d.ts +95 -0
- package/lib/codec/Switcheo/carbon/perpspool/event.js +561 -0
- package/lib/codec/Switcheo/carbon/perpspool/export.d.ts +7 -0
- package/lib/codec/Switcheo/carbon/perpspool/export.js +68 -0
- package/lib/codec/Switcheo/carbon/perpspool/genesis.d.ts +61 -0
- package/lib/codec/Switcheo/carbon/perpspool/genesis.js +343 -0
- package/lib/codec/Switcheo/carbon/perpspool/market.d.ts +96 -0
- package/lib/codec/Switcheo/carbon/perpspool/market.js +493 -0
- package/lib/codec/Switcheo/carbon/perpspool/params.d.ts +30 -0
- package/lib/codec/Switcheo/carbon/perpspool/params.js +189 -0
- package/lib/codec/Switcheo/carbon/perpspool/pool.d.ts +103 -0
- package/lib/codec/Switcheo/carbon/perpspool/pool.js +638 -0
- package/lib/codec/Switcheo/carbon/perpspool/query.d.ts +247 -0
- package/lib/codec/Switcheo/carbon/perpspool/query.js +1141 -0
- package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +229 -0
- package/lib/codec/Switcheo/carbon/perpspool/tx.js +1144 -0
- package/lib/codec/Switcheo/carbon/position/event.d.ts +26 -0
- package/lib/codec/Switcheo/carbon/position/event.js +180 -0
- package/lib/codec/Switcheo/carbon/position/export.d.ts +4 -0
- package/lib/codec/Switcheo/carbon/position/export.js +20 -0
- package/lib/codec/Switcheo/carbon/position/genesis.d.ts +24 -0
- package/lib/codec/Switcheo/carbon/position/genesis.js +64 -0
- package/lib/codec/Switcheo/carbon/position/position.d.ts +74 -0
- package/lib/codec/Switcheo/carbon/position/position.js +601 -0
- package/lib/codec/Switcheo/carbon/position/query.d.ts +92 -0
- package/lib/codec/Switcheo/carbon/position/query.js +400 -0
- package/lib/codec/Switcheo/carbon/position/tx.d.ts +42 -0
- package/lib/codec/Switcheo/carbon/position/tx.js +127 -0
- package/lib/codec/Switcheo/carbon/pricing/event.d.ts +74 -0
- package/lib/codec/Switcheo/carbon/pricing/event.js +361 -0
- package/lib/codec/Switcheo/carbon/pricing/export.d.ts +6 -0
- package/lib/codec/Switcheo/carbon/pricing/export.js +45 -0
- package/lib/codec/Switcheo/carbon/pricing/genesis.d.ts +26 -0
- package/lib/codec/Switcheo/carbon/pricing/genesis.js +95 -0
- package/lib/codec/Switcheo/carbon/pricing/legacy.d.ts +22 -0
- package/lib/codec/Switcheo/carbon/pricing/legacy.js +93 -0
- package/lib/codec/Switcheo/carbon/pricing/pricing.d.ts +60 -0
- package/lib/codec/Switcheo/carbon/pricing/pricing.js +456 -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/Switcheo/carbon/pricing/query.d.ts +183 -0
- package/lib/codec/Switcheo/carbon/pricing/query.js +759 -0
- package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +131 -0
- package/lib/codec/Switcheo/carbon/pricing/tx.js +529 -0
- package/lib/codec/Switcheo/carbon/profile/event.d.ts +20 -0
- package/lib/codec/Switcheo/carbon/profile/event.js +78 -0
- package/lib/codec/Switcheo/carbon/profile/export.d.ts +4 -0
- package/lib/codec/Switcheo/carbon/profile/export.js +17 -0
- package/lib/codec/Switcheo/carbon/profile/genesis.d.ts +24 -0
- package/lib/codec/Switcheo/carbon/profile/genesis.js +64 -0
- package/lib/codec/Switcheo/carbon/profile/profile.d.ts +20 -0
- package/lib/codec/Switcheo/carbon/profile/profile.js +83 -0
- package/lib/codec/Switcheo/carbon/profile/query.d.ts +92 -0
- package/lib/codec/Switcheo/carbon/profile/query.js +360 -0
- package/lib/codec/Switcheo/carbon/profile/tx.d.ts +43 -0
- package/lib/codec/Switcheo/carbon/profile/tx.js +127 -0
- package/lib/codec/Switcheo/carbon/sequence/export.d.ts +3 -0
- package/lib/codec/Switcheo/carbon/sequence/export.js +13 -0
- package/lib/codec/Switcheo/carbon/sequence/genesis.d.ts +30 -0
- package/lib/codec/Switcheo/carbon/sequence/genesis.js +122 -0
- package/lib/codec/Switcheo/carbon/sequence/query.d.ts +63 -0
- package/lib/codec/Switcheo/carbon/sequence/query.js +208 -0
- package/lib/codec/Switcheo/carbon/sequence/tx.d.ts +41 -0
- package/lib/codec/Switcheo/carbon/sequence/tx.js +148 -0
- package/lib/codec/Switcheo/carbon/subaccount/export.d.ts +4 -0
- package/lib/codec/Switcheo/carbon/subaccount/export.js +35 -0
- package/lib/codec/Switcheo/carbon/subaccount/genesis.d.ts +28 -0
- package/lib/codec/Switcheo/carbon/subaccount/genesis.js +110 -0
- package/lib/codec/Switcheo/carbon/subaccount/legacy.d.ts +19 -0
- package/lib/codec/Switcheo/carbon/subaccount/legacy.js +72 -0
- package/lib/codec/Switcheo/carbon/subaccount/query.d.ts +229 -0
- package/lib/codec/Switcheo/carbon/subaccount/query.js +1026 -0
- package/lib/codec/Switcheo/carbon/subaccount/subaccount.d.ts +57 -0
- package/lib/codec/Switcheo/carbon/subaccount/subaccount.js +349 -0
- package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +92 -0
- package/lib/codec/Switcheo/carbon/subaccount/tx.js +395 -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/carbon-models.d.ts +26 -26
- package/lib/codec/carbon-models.js +26 -26
- 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/ethermint/evm/v1/export.d.ts +1 -2
- package/lib/codec/ethermint/evm/v1/export.js +1 -8
- package/lib/codec/ethermint/evm/v1/tx.d.ts +1 -37
- package/lib/codec/ethermint/evm/v1/tx.js +1 -100
- package/lib/codec/ethermint/feemarket/v1/export.d.ts +0 -2
- package/lib/codec/ethermint/feemarket/v1/export.js +1 -7
- package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +0 -10
- package/lib/codec/ethermint/feemarket/v1/feemarket.js +1 -28
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +1 -2
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +1 -8
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +0 -26
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +1 -113
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +1 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +6 -1
- package/lib/codec/ibc/applications/transfer/v1/export.d.ts +1 -1
- package/lib/codec/ibc/applications/transfer/v1/export.js +1 -3
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +1 -30
- package/lib/codec/ibc/applications/transfer/v1/query.js +1 -110
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +4 -8
- package/lib/codec/ibc/applications/transfer/v1/tx.js +6 -35
- package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +0 -2
- package/lib/codec/ibc/applications/transfer/v2/packet.js +1 -14
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +0 -20
- package/lib/codec/ibc/core/channel/v1/channel.js +1 -78
- package/lib/codec/ibc/core/channel/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/channel/v1/export.js +2 -3
- package/lib/codec/ibc/core/channel/v1/tx.d.ts +12 -15
- package/lib/codec/ibc/core/channel/v1/tx.js +25 -50
- package/lib/codec/ibc/core/client/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/client/v1/export.js +1 -3
- package/lib/codec/ibc/core/client/v1/query.d.ts +1 -38
- package/lib/codec/ibc/core/client/v1/query.js +1 -137
- package/lib/codec/ibc/core/connection/v1/export.d.ts +1 -1
- package/lib/codec/ibc/core/connection/v1/export.js +1 -3
- package/lib/codec/ibc/core/connection/v1/query.d.ts +1 -26
- package/lib/codec/ibc/core/connection/v1/query.js +1 -87
- package/lib/codec/ibc/core/connection/v1/tx.d.ts +2 -3
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +4 -6
- package/lib/codec/index.d.ts +164 -173
- package/lib/codec/index.js +11963 -12594
- package/lib/codec/market/legacy.d.ts +62 -0
- package/lib/codec/market/legacy.js +630 -0
- package/lib/codec/polynetwork-models.d.ts +4 -4
- package/lib/codec/polynetwork-models.js +4 -4
- package/lib/codec/proofs.d.ts +0 -1
- package/lib/codec/proofs.js +0 -6
- package/lib/codec/query/pagination.d.ts +29 -0
- package/lib/codec/query/pagination.js +126 -0
- package/lib/modules/broker.js +1 -1
- package/lib/modules/cdp.d.ts +1 -1
- package/lib/modules/cdp.js +4 -5
- package/lib/modules/coin.js +1 -1
- package/lib/modules/cosmwasm.d.ts +2 -2
- package/lib/modules/cosmwasm.js +2 -2
- package/lib/modules/evm.d.ts +0 -1
- package/lib/modules/evm.js +2 -44
- package/lib/modules/gov.d.ts +1 -1
- package/lib/modules/gov.js +6 -6
- package/lib/modules/ibc.d.ts +1 -1
- package/lib/modules/index.d.ts +0 -1
- package/lib/modules/index.js +0 -1
- package/lib/modules/leverage.js +1 -1
- package/lib/modules/market.js +1 -1
- package/lib/modules/oracle.js +1 -1
- package/lib/modules/order.js +1 -1
- package/lib/modules/position.js +1 -1
- package/lib/modules/profile.js +1 -1
- package/lib/modules/subaccount.js +1 -1
- package/lib/modules/vault.d.ts +56 -0
- package/lib/modules/vault.js +128 -0
- package/lib/modules/xchain.js +2 -2
- package/lib/provider/amino/types/evm.js +0 -6
- 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/generic.d.ts +3 -3
- package/lib/util/generic.js +1 -1
- package/lib/util/tx.d.ts +152 -168
- package/lib/wallet/CarbonSigningClient.d.ts +2 -2
- package/lib/wallet/CarbonWallet.d.ts +4 -4
- package/lib/wallet/CarbonWallet.js +2 -2
- package/package.json +3 -3
package/lib/CarbonSDK.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Network, NetworkConfig, Network as _Network } from "./constant";
|
|
3
|
-
import {
|
|
3
|
+
import { Tendermint37Client } from "@cosmjs/tendermint-rpc";
|
|
4
4
|
import * as clients from "./clients";
|
|
5
5
|
import { CarbonQueryClient, ETHClient, HydrogenClient, InsightsQueryClient, NEOClient, TokenClient, ZILClient } from "./clients";
|
|
6
6
|
import GrpcQueryClient from "./clients/GrpcQueryClient";
|
|
7
7
|
import N3Client from "./clients/N3Client";
|
|
8
|
-
import { AdminModule, AllianceModule, BankModule, BrokerModule, CDPModule, CoinModule, ERC20Module, EvmMergeModule, EvmModule, FeeModule,
|
|
8
|
+
import { AdminModule, AllianceModule, BankModule, BrokerModule, CDPModule, CoinModule, ERC20Module, EvmMergeModule, EvmModule, FeeModule, GovModule, IBCModule, LeverageModule, LiquidityPoolModule, MarketModule, OracleModule, OrderModule, PerpspoolModule, PositionModule, ProfileModule, SubAccountModule, XChainModule } from "./modules";
|
|
9
9
|
import { StakingModule } from "./modules/staking";
|
|
10
10
|
import { CosmosLedger, Keplr, LeapExtended } from "./provider";
|
|
11
11
|
import { MetaMask } from "./provider/metamask/MetaMask";
|
|
@@ -16,7 +16,7 @@ export { DenomPrefix } from "./constant";
|
|
|
16
16
|
export * as Carbon from "./codec/carbon-models";
|
|
17
17
|
export interface CarbonSDKOpts {
|
|
18
18
|
network: Network;
|
|
19
|
-
tmClient:
|
|
19
|
+
tmClient: Tendermint37Client;
|
|
20
20
|
wallet?: CarbonWallet;
|
|
21
21
|
chainId?: string;
|
|
22
22
|
evmChainId?: string;
|
|
@@ -31,7 +31,7 @@ export interface CarbonSDKOpts {
|
|
|
31
31
|
}
|
|
32
32
|
export interface CarbonSDKInitOpts {
|
|
33
33
|
network: Network;
|
|
34
|
-
tmClient?:
|
|
34
|
+
tmClient?: Tendermint37Client;
|
|
35
35
|
config?: Partial<NetworkConfig>;
|
|
36
36
|
wallet?: CarbonWallet;
|
|
37
37
|
skipInit?: boolean;
|
|
@@ -61,7 +61,7 @@ declare class CarbonSDK {
|
|
|
61
61
|
network: Network;
|
|
62
62
|
configOverride: Partial<NetworkConfig>;
|
|
63
63
|
networkConfig: NetworkConfig;
|
|
64
|
-
tmClient:
|
|
64
|
+
tmClient: Tendermint37Client;
|
|
65
65
|
token: TokenClient;
|
|
66
66
|
admin: AdminModule;
|
|
67
67
|
alliance: AllianceModule;
|
|
@@ -86,7 +86,6 @@ declare class CarbonSDK {
|
|
|
86
86
|
xchain: XChainModule;
|
|
87
87
|
evm: EvmModule;
|
|
88
88
|
evmmerge: EvmMergeModule;
|
|
89
|
-
feemarket: FeemarketModule;
|
|
90
89
|
neo: NEOClient;
|
|
91
90
|
eth: ETHClient;
|
|
92
91
|
bsc: ETHClient;
|
package/lib/CarbonSDK.js
CHANGED
|
@@ -113,7 +113,6 @@ class CarbonSDK {
|
|
|
113
113
|
this.xchain = new modules_1.XChainModule(this);
|
|
114
114
|
this.evm = new modules_1.EvmModule(this);
|
|
115
115
|
this.evmmerge = new modules_1.EvmMergeModule(this);
|
|
116
|
-
this.feemarket = new modules_1.FeemarketModule(this);
|
|
117
116
|
this.neo = clients_1.NEOClient.instance({
|
|
118
117
|
configProvider: this,
|
|
119
118
|
blockchain: blockchain_1.Blockchain.Neo,
|
|
@@ -159,7 +158,7 @@ class CarbonSDK {
|
|
|
159
158
|
const configOverride = (_b = opts.config) !== null && _b !== void 0 ? _b : {};
|
|
160
159
|
const defaultTimeoutBlocks = opts.defaultTimeoutBlocks;
|
|
161
160
|
const networkConfig = util_1.GenericUtils.overrideConfig(constant_1.NetworkConfigs[network], configOverride);
|
|
162
|
-
const tmClient = (_c = opts.tmClient) !== null && _c !== void 0 ? _c : new tendermint_rpc_1.
|
|
161
|
+
const tmClient = (_c = opts.tmClient) !== null && _c !== void 0 ? _c : new tendermint_rpc_1.Tendermint37Client(new clients.BatchQueryClient(networkConfig.tmRpcUrl)); // fallback tmClient
|
|
163
162
|
let chainId = networkConfig.chainId; // fallback chain ID
|
|
164
163
|
let normalInit = true;
|
|
165
164
|
try {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { StargateClient } from "@cosmjs/stargate";
|
|
2
|
-
import {
|
|
2
|
+
import { Tendermint37Client } from "@cosmjs/tendermint-rpc";
|
|
3
3
|
/**
|
|
4
4
|
* BlockchainClient is functionally the same with StargateClient,
|
|
5
5
|
* with an additional static initializer:
|
|
6
6
|
*
|
|
7
7
|
* ```
|
|
8
|
-
* BlockchainClient.connectWithTm(tmClient:
|
|
8
|
+
* BlockchainClient.connectWithTm(tmClient: Tendermint37Client)
|
|
9
9
|
* ```
|
|
10
10
|
*
|
|
11
11
|
* @see StargateClient
|
|
12
12
|
*/
|
|
13
13
|
declare class BlockchainClient extends StargateClient {
|
|
14
|
-
static connectWithTm(tmClient:
|
|
14
|
+
static connectWithTm(tmClient: Tendermint37Client): BlockchainClient;
|
|
15
15
|
}
|
|
16
16
|
export default BlockchainClient;
|
|
@@ -6,7 +6,7 @@ const stargate_1 = require("@cosmjs/stargate");
|
|
|
6
6
|
* with an additional static initializer:
|
|
7
7
|
*
|
|
8
8
|
* ```
|
|
9
|
-
* BlockchainClient.connectWithTm(tmClient:
|
|
9
|
+
* BlockchainClient.connectWithTm(tmClient: Tendermint37Client)
|
|
10
10
|
* ```
|
|
11
11
|
*
|
|
12
12
|
* @see StargateClient
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { QueryClientImpl as ADLQueryClient } from "../codec/adl/query";
|
|
2
|
-
import { QueryClientImpl as BookQueryClient } from "../codec/book/query";
|
|
3
|
-
import { QueryClientImpl as BrokerQueryClient } from "../codec/broker/query";
|
|
4
|
-
import { QueryClientImpl as CDPQueryClient } from "../codec/cdp/query";
|
|
5
|
-
import { QueryClientImpl as CoinQueryClient } from "../codec/coin/query";
|
|
1
|
+
import { QueryClientImpl as ADLQueryClient } from "../codec/Switcheo/carbon/adl/query";
|
|
2
|
+
import { QueryClientImpl as BookQueryClient } from "../codec/Switcheo/carbon/book/query";
|
|
3
|
+
import { QueryClientImpl as BrokerQueryClient } from "../codec/Switcheo/carbon/broker/query";
|
|
4
|
+
import { QueryClientImpl as CDPQueryClient } from "../codec/Switcheo/carbon/cdp/query";
|
|
5
|
+
import { QueryClientImpl as CoinQueryClient } from "../codec/Switcheo/carbon/coin/query";
|
|
6
6
|
import { QueryClientImpl as AuthQueryClient } from "../codec/cosmos/auth/v1beta1/query";
|
|
7
7
|
import { QueryClientImpl as BankQueryClient } from "../codec/cosmos/bank/v1beta1/query";
|
|
8
|
-
import { QueryClientImpl as NativeBankQueryClient } from "../codec/bank/query";
|
|
8
|
+
import { QueryClientImpl as NativeBankQueryClient } from "../codec/Switcheo/carbon/bank/query";
|
|
9
9
|
import { ServiceClientImpl as CosmosTmClient } from "../codec/cosmos/base/tendermint/v1beta1/query";
|
|
10
10
|
import { QueryClientImpl as DistributionQueryClient } from "../codec/cosmos/distribution/v1beta1/query";
|
|
11
11
|
import { QueryClientImpl as EvidenceQueryClient } from "../codec/cosmos/evidence/v1beta1/query";
|
|
@@ -17,35 +17,35 @@ import { QueryClientImpl as SlashingQueryClient } from "../codec/cosmos/slashing
|
|
|
17
17
|
import { QueryClientImpl as StakingQueryClient } from "../codec/cosmos/staking/v1beta1/query";
|
|
18
18
|
import { QueryClientImpl as UpgradeQueryClient } from "../codec/cosmos/upgrade/v1beta1/query";
|
|
19
19
|
import { QueryClientImpl as EthermintEVMQueryClient } from "../codec/ethermint/evm/v1/query";
|
|
20
|
-
import { QueryClientImpl as EvmMergeQueryClient } from "../codec/evmmerge/query";
|
|
21
|
-
import { QueryClientImpl as EvmBankQueryClient } from "../codec/evmbank/query";
|
|
20
|
+
import { QueryClientImpl as EvmMergeQueryClient } from "../codec/Switcheo/carbon/evmmerge/query";
|
|
21
|
+
import { QueryClientImpl as EvmBankQueryClient } from "../codec/Switcheo/carbon/evmbank/query";
|
|
22
22
|
import { QueryClientImpl as EthermintFeeMarketQueryClient } from "../codec/ethermint/feemarket/v1/query";
|
|
23
|
-
import { QueryClientImpl as FeeQueryClient } from "../codec/fee/query";
|
|
24
|
-
import { QueryClientImpl as HeadersyncQueryClient } from "../codec/headersync/query";
|
|
23
|
+
import { QueryClientImpl as FeeQueryClient } from "../codec/Switcheo/carbon/fee/query";
|
|
24
|
+
import { QueryClientImpl as HeadersyncQueryClient } from "../codec/Switcheo/carbon/headersync/query";
|
|
25
25
|
import { QueryClientImpl as IBCInterchainControlQueryClient } from "../codec/ibc/applications/interchain_accounts/controller/v1/query";
|
|
26
26
|
import { QueryClientImpl as IBCInterchainHostQueryClient } from "../codec/ibc/applications/interchain_accounts/host/v1/query";
|
|
27
27
|
import { QueryClientImpl as IBCTransferQueryClient } from "../codec/ibc/applications/transfer/v1/query";
|
|
28
28
|
import { QueryClientImpl as IBCClientQueryClient } from "../codec/ibc/core/client/v1/query";
|
|
29
29
|
import { QueryClientImpl as IBCConnectionQueryClient } from "../codec/ibc/core/connection/v1/query";
|
|
30
30
|
import { QueryClientImpl as IBCChannelQueryClient } from "../codec/ibc/core/channel/v1/query";
|
|
31
|
-
import { QueryClientImpl as InflationQueryClient } from "../codec/inflation/query";
|
|
32
|
-
import { QueryClientImpl as InsuranceQueryClient } from "../codec/insurance/query";
|
|
33
|
-
import { QueryClientImpl as LeverageQueryClient } from "../codec/leverage/query";
|
|
34
|
-
import { QueryClientImpl as LiquidationQueryClient } from "../codec/liquidation/query";
|
|
35
|
-
import { QueryClientImpl as LiquidityPoolQueryClient } from "../codec/liquiditypool/query";
|
|
36
|
-
import { QueryClientImpl as MarketQueryClient } from "../codec/market/query";
|
|
37
|
-
import { QueryClientImpl as MarketStatsQueryClient } from "../codec/marketstats/query";
|
|
38
|
-
import { QueryClientImpl as MiscQueryClient } from "../codec/misc/query";
|
|
39
|
-
import { QueryClientImpl as OracleQueryClient } from "../codec/oracle/query";
|
|
40
|
-
import { QueryClientImpl as OrderQueryClient } from "../codec/order/query";
|
|
41
|
-
import { QueryClientImpl as PositionQueryClient } from "../codec/position/query";
|
|
42
|
-
import { QueryClientImpl as PricingQueryClient } from "../codec/pricing/query";
|
|
43
|
-
import { QueryClientImpl as ProfileQueryClient } from "../codec/profile/query";
|
|
44
|
-
import { QueryClientImpl as SubaccountQueryClient } from "../codec/subaccount/query";
|
|
31
|
+
import { QueryClientImpl as InflationQueryClient } from "../codec/Switcheo/carbon/inflation/query";
|
|
32
|
+
import { QueryClientImpl as InsuranceQueryClient } from "../codec/Switcheo/carbon/insurance/query";
|
|
33
|
+
import { QueryClientImpl as LeverageQueryClient } from "../codec/Switcheo/carbon/leverage/query";
|
|
34
|
+
import { QueryClientImpl as LiquidationQueryClient } from "../codec/Switcheo/carbon/liquidation/query";
|
|
35
|
+
import { QueryClientImpl as LiquidityPoolQueryClient } from "../codec/Switcheo/carbon/liquiditypool/query";
|
|
36
|
+
import { QueryClientImpl as MarketQueryClient } from "../codec/Switcheo/carbon/market/query";
|
|
37
|
+
import { QueryClientImpl as MarketStatsQueryClient } from "../codec/Switcheo/carbon/marketstats/query";
|
|
38
|
+
import { QueryClientImpl as MiscQueryClient } from "../codec/Switcheo/carbon/misc/query";
|
|
39
|
+
import { QueryClientImpl as OracleQueryClient } from "../codec/Switcheo/carbon/oracle/query";
|
|
40
|
+
import { QueryClientImpl as OrderQueryClient } from "../codec/Switcheo/carbon/order/query";
|
|
41
|
+
import { QueryClientImpl as PositionQueryClient } from "../codec/Switcheo/carbon/position/query";
|
|
42
|
+
import { QueryClientImpl as PricingQueryClient } from "../codec/Switcheo/carbon/pricing/query";
|
|
43
|
+
import { QueryClientImpl as ProfileQueryClient } from "../codec/Switcheo/carbon/profile/query";
|
|
44
|
+
import { QueryClientImpl as SubaccountQueryClient } from "../codec/Switcheo/carbon/subaccount/query";
|
|
45
45
|
import { QueryClientImpl as AllianceClient } from "../codec/alliance/query";
|
|
46
|
-
import { QueryClientImpl as PerpspoolQueryClient } from "../codec/perpspool/query";
|
|
47
|
-
import { QueryClientImpl as ERC20QueryClient } from "../codec/erc20/query";
|
|
48
|
-
import {
|
|
46
|
+
import { QueryClientImpl as PerpspoolQueryClient } from "../codec/Switcheo/carbon/perpspool/query";
|
|
47
|
+
import { QueryClientImpl as ERC20QueryClient } from "../codec/Switcheo/carbon/erc20/query";
|
|
48
|
+
import { Tendermint37Client } from "@cosmjs/tendermint-rpc";
|
|
49
49
|
import BlockchainClient from "./BlockchainClient";
|
|
50
50
|
import GrpcQueryClient from "./GrpcQueryClient";
|
|
51
51
|
export interface IBCClientGroup {
|
|
@@ -61,7 +61,7 @@ export interface EthermintClientGroup {
|
|
|
61
61
|
feeMarket: EthermintFeeMarketQueryClient;
|
|
62
62
|
}
|
|
63
63
|
export interface CarbonQueryClientOpts {
|
|
64
|
-
tmClient:
|
|
64
|
+
tmClient: Tendermint37Client;
|
|
65
65
|
grpcClient?: GrpcQueryClient;
|
|
66
66
|
}
|
|
67
67
|
declare class CarbonQueryClient {
|
|
@@ -3,14 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const query_1 = require("../codec/adl/query");
|
|
7
|
-
const query_2 = require("../codec/book/query");
|
|
8
|
-
const query_3 = require("../codec/broker/query");
|
|
9
|
-
const query_4 = require("../codec/cdp/query");
|
|
10
|
-
const query_5 = require("../codec/coin/query");
|
|
6
|
+
const query_1 = require("../codec/Switcheo/carbon/adl/query");
|
|
7
|
+
const query_2 = require("../codec/Switcheo/carbon/book/query");
|
|
8
|
+
const query_3 = require("../codec/Switcheo/carbon/broker/query");
|
|
9
|
+
const query_4 = require("../codec/Switcheo/carbon/cdp/query");
|
|
10
|
+
const query_5 = require("../codec/Switcheo/carbon/coin/query");
|
|
11
11
|
const query_6 = require("../codec/cosmos/auth/v1beta1/query");
|
|
12
12
|
const query_7 = require("../codec/cosmos/bank/v1beta1/query");
|
|
13
|
-
const query_8 = require("../codec/bank/query");
|
|
13
|
+
const query_8 = require("../codec/Switcheo/carbon/bank/query");
|
|
14
14
|
const query_9 = require("../codec/cosmos/base/tendermint/v1beta1/query");
|
|
15
15
|
const query_10 = require("../codec/cosmos/distribution/v1beta1/query");
|
|
16
16
|
const query_11 = require("../codec/cosmos/evidence/v1beta1/query");
|
|
@@ -22,34 +22,34 @@ const query_16 = require("../codec/cosmos/slashing/v1beta1/query");
|
|
|
22
22
|
const query_17 = require("../codec/cosmos/staking/v1beta1/query");
|
|
23
23
|
const query_18 = require("../codec/cosmos/upgrade/v1beta1/query");
|
|
24
24
|
const query_19 = require("../codec/ethermint/evm/v1/query");
|
|
25
|
-
const query_20 = require("../codec/evmmerge/query");
|
|
26
|
-
const query_21 = require("../codec/evmbank/query");
|
|
25
|
+
const query_20 = require("../codec/Switcheo/carbon/evmmerge/query");
|
|
26
|
+
const query_21 = require("../codec/Switcheo/carbon/evmbank/query");
|
|
27
27
|
const query_22 = require("../codec/ethermint/feemarket/v1/query");
|
|
28
|
-
const query_23 = require("../codec/fee/query");
|
|
29
|
-
const query_24 = require("../codec/headersync/query");
|
|
28
|
+
const query_23 = require("../codec/Switcheo/carbon/fee/query");
|
|
29
|
+
const query_24 = require("../codec/Switcheo/carbon/headersync/query");
|
|
30
30
|
const query_25 = require("../codec/ibc/applications/interchain_accounts/controller/v1/query");
|
|
31
31
|
const query_26 = require("../codec/ibc/applications/interchain_accounts/host/v1/query");
|
|
32
32
|
const query_27 = require("../codec/ibc/applications/transfer/v1/query");
|
|
33
33
|
const query_28 = require("../codec/ibc/core/client/v1/query");
|
|
34
34
|
const query_29 = require("../codec/ibc/core/connection/v1/query");
|
|
35
35
|
const query_30 = require("../codec/ibc/core/channel/v1/query");
|
|
36
|
-
const query_31 = require("../codec/inflation/query");
|
|
37
|
-
const query_32 = require("../codec/insurance/query");
|
|
38
|
-
const query_33 = require("../codec/leverage/query");
|
|
39
|
-
const query_34 = require("../codec/liquidation/query");
|
|
40
|
-
const query_35 = require("../codec/liquiditypool/query");
|
|
41
|
-
const query_36 = require("../codec/market/query");
|
|
42
|
-
const query_37 = require("../codec/marketstats/query");
|
|
43
|
-
const query_38 = require("../codec/misc/query");
|
|
44
|
-
const query_39 = require("../codec/oracle/query");
|
|
45
|
-
const query_40 = require("../codec/order/query");
|
|
46
|
-
const query_41 = require("../codec/position/query");
|
|
47
|
-
const query_42 = require("../codec/pricing/query");
|
|
48
|
-
const query_43 = require("../codec/profile/query");
|
|
49
|
-
const query_44 = require("../codec/subaccount/query");
|
|
36
|
+
const query_31 = require("../codec/Switcheo/carbon/inflation/query");
|
|
37
|
+
const query_32 = require("../codec/Switcheo/carbon/insurance/query");
|
|
38
|
+
const query_33 = require("../codec/Switcheo/carbon/leverage/query");
|
|
39
|
+
const query_34 = require("../codec/Switcheo/carbon/liquidation/query");
|
|
40
|
+
const query_35 = require("../codec/Switcheo/carbon/liquiditypool/query");
|
|
41
|
+
const query_36 = require("../codec/Switcheo/carbon/market/query");
|
|
42
|
+
const query_37 = require("../codec/Switcheo/carbon/marketstats/query");
|
|
43
|
+
const query_38 = require("../codec/Switcheo/carbon/misc/query");
|
|
44
|
+
const query_39 = require("../codec/Switcheo/carbon/oracle/query");
|
|
45
|
+
const query_40 = require("../codec/Switcheo/carbon/order/query");
|
|
46
|
+
const query_41 = require("../codec/Switcheo/carbon/position/query");
|
|
47
|
+
const query_42 = require("../codec/Switcheo/carbon/pricing/query");
|
|
48
|
+
const query_43 = require("../codec/Switcheo/carbon/profile/query");
|
|
49
|
+
const query_44 = require("../codec/Switcheo/carbon/subaccount/query");
|
|
50
50
|
const query_45 = require("../codec/alliance/query");
|
|
51
|
-
const query_46 = require("../codec/perpspool/query");
|
|
52
|
-
const query_47 = require("../codec/erc20/query");
|
|
51
|
+
const query_46 = require("../codec/Switcheo/carbon/perpspool/query");
|
|
52
|
+
const query_47 = require("../codec/Switcheo/carbon/erc20/query");
|
|
53
53
|
const stargate_1 = require("@cosmjs/stargate");
|
|
54
54
|
const BlockchainClient_1 = __importDefault(require("./BlockchainClient"));
|
|
55
55
|
class CarbonQueryClient {
|
|
@@ -656,19 +656,12 @@ class TokenClient {
|
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
658
|
getDenomToGeckoIdMap() {
|
|
659
|
-
var _a;
|
|
660
659
|
return __awaiter(this, void 0, void 0, function* () {
|
|
661
660
|
const networkConfig = this.configProvider.getConfig();
|
|
662
661
|
const insights = new InsightsQueryClient_1.default(networkConfig);
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
tokens = response.result.gecko;
|
|
667
|
-
return tokens;
|
|
668
|
-
}
|
|
669
|
-
catch (err) {
|
|
670
|
-
throw new Error((_a = err.message) !== null && _a !== void 0 ? _a : "Unknown gecko query error");
|
|
671
|
-
}
|
|
662
|
+
const response = yield insights.DenomToGeckoIdMap();
|
|
663
|
+
const tokens = response.result.gecko;
|
|
664
|
+
return tokens;
|
|
672
665
|
});
|
|
673
666
|
}
|
|
674
667
|
setCommonAssetConfig() {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare const protobufPackage = "Switcheo.carbon.adl";
|
|
4
|
+
/** GenesisState defines the adl module's genesis state. */
|
|
5
|
+
export interface GenesisState {
|
|
6
|
+
}
|
|
7
|
+
export declare const GenesisState: {
|
|
8
|
+
encode(_: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
9
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
|
|
10
|
+
fromJSON(_: any): GenesisState;
|
|
11
|
+
toJSON(_: GenesisState): unknown;
|
|
12
|
+
fromPartial(_: DeepPartial<GenesisState>): GenesisState;
|
|
13
|
+
};
|
|
14
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
15
|
+
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 {} ? {
|
|
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.GenesisState = 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.adl";
|
|
11
|
+
const baseGenesisState = {};
|
|
12
|
+
exports.GenesisState = {
|
|
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({}, baseGenesisState);
|
|
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({}, baseGenesisState);
|
|
32
|
+
return message;
|
|
33
|
+
},
|
|
34
|
+
toJSON(_) {
|
|
35
|
+
const obj = {};
|
|
36
|
+
return obj;
|
|
37
|
+
},
|
|
38
|
+
fromPartial(_) {
|
|
39
|
+
const message = Object.assign({}, baseGenesisState);
|
|
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,12 @@
|
|
|
1
|
+
export declare const protobufPackage = "Switcheo.carbon.adl";
|
|
2
|
+
/** Query defines the gRPC querier service. */
|
|
3
|
+
export interface Query {
|
|
4
|
+
}
|
|
5
|
+
export declare class QueryClientImpl implements Query {
|
|
6
|
+
private readonly rpc;
|
|
7
|
+
constructor(rpc: Rpc);
|
|
8
|
+
}
|
|
9
|
+
interface Rpc {
|
|
10
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
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.QueryClientImpl = 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.adl";
|
|
11
|
+
class QueryClientImpl {
|
|
12
|
+
constructor(rpc) {
|
|
13
|
+
this.rpc = rpc;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.QueryClientImpl = QueryClientImpl;
|
|
17
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
18
|
+
minimal_1.default.util.Long = long_1.default;
|
|
19
|
+
minimal_1.default.configure();
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const protobufPackage = "Switcheo.carbon.adl";
|
|
2
|
+
/** Msg defines the Msg service. */
|
|
3
|
+
export interface Msg {
|
|
4
|
+
}
|
|
5
|
+
export declare class MsgClientImpl implements Msg {
|
|
6
|
+
private readonly rpc;
|
|
7
|
+
constructor(rpc: Rpc);
|
|
8
|
+
}
|
|
9
|
+
interface Rpc {
|
|
10
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
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.MsgClientImpl = 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.adl";
|
|
11
|
+
class MsgClientImpl {
|
|
12
|
+
constructor(rpc) {
|
|
13
|
+
this.rpc = rpc;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.MsgClientImpl = MsgClientImpl;
|
|
17
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
18
|
+
minimal_1.default.util.Long = long_1.default;
|
|
19
|
+
minimal_1.default.configure();
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgAcceptAdminTransferResponse = exports.MsgAcceptAdminTransfer = exports.MsgInitiateAdminTransferResponse = exports.MsgInitiateAdminTransfer = exports.QueryAdminRecipientResponse = exports.QueryAdminRecipientRequest = exports.QueryAdminResponse = exports.QueryAdminRequest = void 0;
|
|
4
|
+
var query_1 = require("./query");
|
|
5
|
+
Object.defineProperty(exports, "QueryAdminRequest", { enumerable: true, get: function () { return query_1.QueryAdminRequest; } });
|
|
6
|
+
Object.defineProperty(exports, "QueryAdminResponse", { enumerable: true, get: function () { return query_1.QueryAdminResponse; } });
|
|
7
|
+
Object.defineProperty(exports, "QueryAdminRecipientRequest", { enumerable: true, get: function () { return query_1.QueryAdminRecipientRequest; } });
|
|
8
|
+
Object.defineProperty(exports, "QueryAdminRecipientResponse", { enumerable: true, get: function () { return query_1.QueryAdminRecipientResponse; } });
|
|
9
|
+
var tx_1 = require("./tx");
|
|
10
|
+
Object.defineProperty(exports, "MsgInitiateAdminTransfer", { enumerable: true, get: function () { return tx_1.MsgInitiateAdminTransfer; } });
|
|
11
|
+
Object.defineProperty(exports, "MsgInitiateAdminTransferResponse", { enumerable: true, get: function () { return tx_1.MsgInitiateAdminTransferResponse; } });
|
|
12
|
+
Object.defineProperty(exports, "MsgAcceptAdminTransfer", { enumerable: true, get: function () { return tx_1.MsgAcceptAdminTransfer; } });
|
|
13
|
+
Object.defineProperty(exports, "MsgAcceptAdminTransferResponse", { enumerable: true, get: function () { return tx_1.MsgAcceptAdminTransferResponse; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare const protobufPackage = "Switcheo.carbon.admin";
|
|
4
|
+
/** GenesisState defines the admin module's genesis state. */
|
|
5
|
+
export interface GenesisState {
|
|
6
|
+
}
|
|
7
|
+
export declare const GenesisState: {
|
|
8
|
+
encode(_: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
9
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
|
|
10
|
+
fromJSON(_: any): GenesisState;
|
|
11
|
+
toJSON(_: GenesisState): unknown;
|
|
12
|
+
fromPartial(_: DeepPartial<GenesisState>): GenesisState;
|
|
13
|
+
};
|
|
14
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
15
|
+
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 {} ? {
|
|
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.GenesisState = 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.admin";
|
|
11
|
+
const baseGenesisState = {};
|
|
12
|
+
exports.GenesisState = {
|
|
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({}, baseGenesisState);
|
|
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({}, baseGenesisState);
|
|
32
|
+
return message;
|
|
33
|
+
},
|
|
34
|
+
toJSON(_) {
|
|
35
|
+
const obj = {};
|
|
36
|
+
return obj;
|
|
37
|
+
},
|
|
38
|
+
fromPartial(_) {
|
|
39
|
+
const message = Object.assign({}, baseGenesisState);
|
|
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,62 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare const protobufPackage = "Switcheo.carbon.admin";
|
|
4
|
+
export interface QueryAdminRequest {
|
|
5
|
+
}
|
|
6
|
+
export interface QueryAdminResponse {
|
|
7
|
+
address: string;
|
|
8
|
+
}
|
|
9
|
+
export interface QueryAdminRecipientRequest {
|
|
10
|
+
}
|
|
11
|
+
export interface QueryAdminRecipientResponse {
|
|
12
|
+
address: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const QueryAdminRequest: {
|
|
15
|
+
encode(_: QueryAdminRequest, writer?: _m0.Writer): _m0.Writer;
|
|
16
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminRequest;
|
|
17
|
+
fromJSON(_: any): QueryAdminRequest;
|
|
18
|
+
toJSON(_: QueryAdminRequest): unknown;
|
|
19
|
+
fromPartial(_: DeepPartial<QueryAdminRequest>): QueryAdminRequest;
|
|
20
|
+
};
|
|
21
|
+
export declare const QueryAdminResponse: {
|
|
22
|
+
encode(message: QueryAdminResponse, writer?: _m0.Writer): _m0.Writer;
|
|
23
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminResponse;
|
|
24
|
+
fromJSON(object: any): QueryAdminResponse;
|
|
25
|
+
toJSON(message: QueryAdminResponse): unknown;
|
|
26
|
+
fromPartial(object: DeepPartial<QueryAdminResponse>): QueryAdminResponse;
|
|
27
|
+
};
|
|
28
|
+
export declare const QueryAdminRecipientRequest: {
|
|
29
|
+
encode(_: QueryAdminRecipientRequest, writer?: _m0.Writer): _m0.Writer;
|
|
30
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminRecipientRequest;
|
|
31
|
+
fromJSON(_: any): QueryAdminRecipientRequest;
|
|
32
|
+
toJSON(_: QueryAdminRecipientRequest): unknown;
|
|
33
|
+
fromPartial(_: DeepPartial<QueryAdminRecipientRequest>): QueryAdminRecipientRequest;
|
|
34
|
+
};
|
|
35
|
+
export declare const QueryAdminRecipientResponse: {
|
|
36
|
+
encode(message: QueryAdminRecipientResponse, writer?: _m0.Writer): _m0.Writer;
|
|
37
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAdminRecipientResponse;
|
|
38
|
+
fromJSON(object: any): QueryAdminRecipientResponse;
|
|
39
|
+
toJSON(message: QueryAdminRecipientResponse): unknown;
|
|
40
|
+
fromPartial(object: DeepPartial<QueryAdminRecipientResponse>): QueryAdminRecipientResponse;
|
|
41
|
+
};
|
|
42
|
+
/** Query defines the gRPC querier service. */
|
|
43
|
+
export interface Query {
|
|
44
|
+
/** Queries a list of Admin items. */
|
|
45
|
+
Admin(request: QueryAdminRequest): Promise<QueryAdminResponse>;
|
|
46
|
+
/** Queries a list of AdminRecipient items. */
|
|
47
|
+
AdminRecipient(request: QueryAdminRecipientRequest): Promise<QueryAdminRecipientResponse>;
|
|
48
|
+
}
|
|
49
|
+
export declare class QueryClientImpl implements Query {
|
|
50
|
+
private readonly rpc;
|
|
51
|
+
constructor(rpc: Rpc);
|
|
52
|
+
Admin(request: QueryAdminRequest): Promise<QueryAdminResponse>;
|
|
53
|
+
AdminRecipient(request: QueryAdminRecipientRequest): Promise<QueryAdminRecipientResponse>;
|
|
54
|
+
}
|
|
55
|
+
interface Rpc {
|
|
56
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
57
|
+
}
|
|
58
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
59
|
+
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 {} ? {
|
|
60
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
61
|
+
} : Partial<T>;
|
|
62
|
+
export {};
|