dexbot 1.4.11 → 1.4.12
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/README.md +4 -4
- package/dist/analysis/chart_utils.d.ts.map +1 -1
- package/dist/analysis/chart_utils.js +9 -18
- package/dist/analysis/chart_utils.js.map +1 -1
- package/dist/analysis/math_utils.d.ts.map +1 -1
- package/dist/analysis/math_utils.js +6 -16
- package/dist/analysis/math_utils.js.map +1 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts +1 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts.map +1 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js +31 -38
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js.map +1 -1
- package/dist/analysis/trend_detection/hurst_analyzer.js +7 -10
- package/dist/analysis/trend_detection/hurst_analyzer.js.map +1 -1
- package/dist/analysis/trend_detection/kalman_trend_analyzer.js +10 -14
- package/dist/analysis/trend_detection/kalman_trend_analyzer.js.map +1 -1
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.js +10 -15
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.js.map +1 -1
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.js +7 -10
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.js.map +1 -1
- package/dist/bot.d.ts.map +1 -1
- package/dist/bot.js +4 -12
- package/dist/bot.js.map +1 -1
- package/dist/credential-daemon.d.ts +0 -1
- package/dist/credential-daemon.d.ts.map +1 -1
- package/dist/credential-daemon.js +3 -123
- package/dist/credential-daemon.js.map +1 -1
- package/dist/dexbot.d.ts +0 -87
- package/dist/dexbot.d.ts.map +1 -1
- package/dist/dexbot.js +11 -14
- package/dist/dexbot.js.map +1 -1
- package/dist/market_adapter/ama_signal_runner.js +8 -9
- package/dist/market_adapter/ama_signal_runner.js.map +1 -1
- package/dist/market_adapter/candle_utils.js +1 -7
- package/dist/market_adapter/candle_utils.js.map +1 -1
- package/dist/market_adapter/core/asymmetric_bounds.js +1 -4
- package/dist/market_adapter/core/asymmetric_bounds.js.map +1 -1
- package/dist/market_adapter/core/config_normalizers.js +5 -9
- package/dist/market_adapter/core/config_normalizers.js.map +1 -1
- package/dist/market_adapter/core/kibana_candles.js +8 -15
- package/dist/market_adapter/core/kibana_candles.js.map +1 -1
- package/dist/market_adapter/core/kibana_client.js +7 -13
- package/dist/market_adapter/core/kibana_client.js.map +1 -1
- package/dist/market_adapter/core/kibana_market_candles.js +6 -12
- package/dist/market_adapter/core/kibana_market_candles.js.map +1 -1
- package/dist/market_adapter/core/market_adapter_service.js +92 -102
- package/dist/market_adapter/core/market_adapter_service.js.map +1 -1
- package/dist/market_adapter/core/strategies/ama.js +5 -10
- package/dist/market_adapter/core/strategies/ama.js.map +1 -1
- package/dist/market_adapter/core/strategies/ama_slope_model.js +21 -24
- package/dist/market_adapter/core/strategies/ama_slope_model.js.map +1 -1
- package/dist/market_adapter/core/strategies/atr/calculator.js +3 -5
- package/dist/market_adapter/core/strategies/atr/calculator.js.map +1 -1
- package/dist/market_adapter/core/strategies/collateral_manager.js +4 -6
- package/dist/market_adapter/core/strategies/collateral_manager.js.map +1 -1
- package/dist/market_adapter/core/strategies/regime_gate.js +15 -22
- package/dist/market_adapter/core/strategies/regime_gate.js.map +1 -1
- package/dist/market_adapter/index.d.ts +23 -23
- package/dist/market_adapter/index.d.ts.map +1 -1
- package/dist/market_adapter/index.js +24 -82
- package/dist/market_adapter/index.js.map +1 -1
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js +2 -1
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js.map +1 -1
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts.map +1 -1
- package/dist/market_adapter/inputs/fetch_lp_data.js +59 -98
- package/dist/market_adapter/inputs/fetch_lp_data.js.map +1 -1
- package/dist/market_adapter/inputs/kibana_source.js +11 -17
- package/dist/market_adapter/inputs/kibana_source.js.map +1 -1
- package/dist/market_adapter/interval_utils.js +1 -2
- package/dist/market_adapter/interval_utils.js.map +1 -1
- package/dist/market_adapter/log_format.js +1 -7
- package/dist/market_adapter/log_format.js.map +1 -1
- package/dist/market_adapter/lp_chart_core.js +20 -22
- package/dist/market_adapter/lp_chart_core.js.map +1 -1
- package/dist/market_adapter/lp_chart_runner.d.ts +1 -1
- package/dist/market_adapter/lp_chart_runner.d.ts.map +1 -1
- package/dist/market_adapter/lp_chart_runner.js +41 -57
- package/dist/market_adapter/lp_chart_runner.js.map +1 -1
- package/dist/market_adapter/lp_chart_strategy_loader.js +30 -34
- package/dist/market_adapter/lp_chart_strategy_loader.js.map +1 -1
- package/dist/market_adapter/market_adapter.d.ts +2 -2
- package/dist/market_adapter/market_adapter.d.ts.map +1 -1
- package/dist/market_adapter/market_adapter.js +157 -221
- package/dist/market_adapter/market_adapter.js.map +1 -1
- package/dist/market_adapter/merge_lp_data.js +17 -18
- package/dist/market_adapter/merge_lp_data.js.map +1 -1
- package/dist/market_adapter/test_helpers.js +3 -14
- package/dist/market_adapter/test_helpers.js.map +1 -1
- package/dist/market_adapter/utils/adapter_client.js +7 -16
- package/dist/market_adapter/utils/adapter_client.js.map +1 -1
- package/dist/market_adapter/utils/atomic_write.js +3 -5
- package/dist/market_adapter/utils/atomic_write.js.map +1 -1
- package/dist/market_adapter/utils/chain.d.ts.map +1 -1
- package/dist/market_adapter/utils/chain.js +9 -17
- package/dist/market_adapter/utils/chain.js.map +1 -1
- package/dist/market_adapter/utils/data_discovery.js +8 -10
- package/dist/market_adapter/utils/data_discovery.js.map +1 -1
- package/dist/market_adapter/utils/dynamic_grid_snapshot.d.ts.map +1 -1
- package/dist/market_adapter/utils/dynamic_grid_snapshot.js +11 -14
- package/dist/market_adapter/utils/dynamic_grid_snapshot.js.map +1 -1
- package/dist/market_adapter/utils/file_lock.js +14 -19
- package/dist/market_adapter/utils/file_lock.js.map +1 -1
- package/dist/market_adapter/utils/native_history.js +8 -14
- package/dist/market_adapter/utils/native_history.js.map +1 -1
- package/dist/market_adapter/utils/paths.js +3 -6
- package/dist/market_adapter/utils/paths.js.map +1 -1
- package/dist/modules/account_bots.d.ts +1 -1
- package/dist/modules/account_bots.d.ts.map +1 -1
- package/dist/modules/account_bots.js +90 -97
- package/dist/modules/account_bots.js.map +1 -1
- package/dist/modules/account_orders.d.ts +0 -9
- package/dist/modules/account_orders.d.ts.map +1 -1
- package/dist/modules/account_orders.js +26 -121
- package/dist/modules/account_orders.js.map +1 -1
- package/dist/modules/authority_resolver.js +12 -18
- package/dist/modules/authority_resolver.js.map +1 -1
- package/dist/modules/bitshares-native/chain_client.js +16 -21
- package/dist/modules/bitshares-native/chain_client.js.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.browser.js +12 -72
- package/dist/modules/bitshares-native/crypto/ecc.browser.js.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.js +13 -40
- package/dist/modules/bitshares-native/crypto/ecc.js.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc_selector.d.ts.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc_selector.js +5 -6
- package/dist/modules/bitshares-native/crypto/ecc_selector.js.map +1 -1
- package/dist/modules/bitshares-native/index.d.ts +8 -8
- package/dist/modules/bitshares-native/index.d.ts.map +1 -1
- package/dist/modules/bitshares-native/index.js +11 -68
- package/dist/modules/bitshares-native/index.js.map +1 -1
- package/dist/modules/bitshares-native/lru_cache.js +3 -6
- package/dist/modules/bitshares-native/lru_cache.js.map +1 -1
- package/dist/modules/bitshares-native/resolvers.js +9 -11
- package/dist/modules/bitshares-native/resolvers.js.map +1 -1
- package/dist/modules/bitshares-native/serial/chain_constants.js +3 -28
- package/dist/modules/bitshares-native/serial/chain_constants.js.map +1 -1
- package/dist/modules/bitshares-native/serial/index.d.ts +4 -4
- package/dist/modules/bitshares-native/serial/index.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/index.js +5 -46
- package/dist/modules/bitshares-native/serial/index.js.map +1 -1
- package/dist/modules/bitshares-native/serial/operations.d.ts +98 -98
- package/dist/modules/bitshares-native/serial/operations.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/operations.js +372 -473
- package/dist/modules/bitshares-native/serial/operations.js.map +1 -1
- package/dist/modules/bitshares-native/serial/serializer.js +3 -8
- package/dist/modules/bitshares-native/serial/serializer.js.map +1 -1
- package/dist/modules/bitshares-native/serial/types.js +9 -74
- package/dist/modules/bitshares-native/serial/types.js.map +1 -1
- package/dist/modules/bitshares-native/signing_client.d.ts.map +1 -1
- package/dist/modules/bitshares-native/signing_client.js +11 -48
- package/dist/modules/bitshares-native/signing_client.js.map +1 -1
- package/dist/modules/bitshares-native/subscriptions.d.ts.map +1 -1
- package/dist/modules/bitshares-native/subscriptions.js +24 -27
- package/dist/modules/bitshares-native/subscriptions.js.map +1 -1
- package/dist/modules/bitshares-native/transport.d.ts.map +1 -1
- package/dist/modules/bitshares-native/transport.js +14 -26
- package/dist/modules/bitshares-native/transport.js.map +1 -1
- package/dist/modules/bitshares-native/tx/builder.js +29 -72
- package/dist/modules/bitshares-native/tx/builder.js.map +1 -1
- package/dist/modules/bitshares-native/tx/tx_cache.js +12 -21
- package/dist/modules/bitshares-native/tx/tx_cache.js.map +1 -1
- package/dist/modules/bitshares_client.d.ts +21 -0
- package/dist/modules/bitshares_client.d.ts.map +1 -1
- package/dist/modules/bitshares_client.js +32 -86
- package/dist/modules/bitshares_client.js.map +1 -1
- package/dist/modules/bot_settings.d.ts.map +1 -1
- package/dist/modules/bot_settings.js +30 -49
- package/dist/modules/bot_settings.js.map +1 -1
- package/dist/modules/bots_file_lock.d.ts.map +1 -1
- package/dist/modules/bots_file_lock.js +5 -13
- package/dist/modules/bots_file_lock.js.map +1 -1
- package/dist/modules/broadcast_failure.js +1 -3
- package/dist/modules/broadcast_failure.js.map +1 -1
- package/dist/modules/chain_keys.d.ts +4 -9
- package/dist/modules/chain_keys.d.ts.map +1 -1
- package/dist/modules/chain_keys.js +77 -182
- package/dist/modules/chain_keys.js.map +1 -1
- package/dist/modules/chain_orders.d.ts +2 -2
- package/dist/modules/chain_orders.d.ts.map +1 -1
- package/dist/modules/chain_orders.js +81 -144
- package/dist/modules/chain_orders.js.map +1 -1
- package/dist/modules/config.d.ts.map +1 -1
- package/dist/modules/config.js +23 -28
- package/dist/modules/config.js.map +1 -1
- package/dist/modules/constants.d.ts +2 -9
- package/dist/modules/constants.d.ts.map +1 -1
- package/dist/modules/constants.js +38 -73
- package/dist/modules/constants.js.map +1 -1
- package/dist/modules/cr_planner.js +15 -26
- package/dist/modules/cr_planner.js.map +1 -1
- package/dist/modules/credential_policy.d.ts +3 -6
- package/dist/modules/credential_policy.d.ts.map +1 -1
- package/dist/modules/credential_policy.js +62 -153
- package/dist/modules/credential_policy.js.map +1 -1
- package/dist/modules/credential_runtime.d.ts +1 -1
- package/dist/modules/credential_runtime.d.ts.map +1 -1
- package/dist/modules/credential_runtime.js +34 -41
- package/dist/modules/credential_runtime.js.map +1 -1
- package/dist/modules/credential_session_cache.d.ts +1 -1
- package/dist/modules/credential_session_cache.d.ts.map +1 -1
- package/dist/modules/credential_session_cache.js +5 -42
- package/dist/modules/credential_session_cache.js.map +1 -1
- package/dist/modules/credit_runtime.d.ts.map +1 -1
- package/dist/modules/credit_runtime.js +126 -162
- package/dist/modules/credit_runtime.js.map +1 -1
- package/dist/modules/crypto/browser_provider.d.ts +1 -1
- package/dist/modules/crypto/browser_provider.d.ts.map +1 -1
- package/dist/modules/crypto/browser_provider.js +7 -11
- package/dist/modules/crypto/browser_provider.js.map +1 -1
- package/dist/modules/crypto/index.d.ts +6 -6
- package/dist/modules/crypto/index.d.ts.map +1 -1
- package/dist/modules/crypto/index.js +12 -30
- package/dist/modules/crypto/index.js.map +1 -1
- package/dist/modules/crypto/node_provider.d.ts +1 -1
- package/dist/modules/crypto/node_provider.d.ts.map +1 -1
- package/dist/modules/crypto/node_provider.js +3 -5
- package/dist/modules/crypto/node_provider.js.map +1 -1
- package/dist/modules/crypto/provider.js +1 -2
- package/dist/modules/crypto/pure_ripemd160.js +1 -3
- package/dist/modules/crypto/pure_ripemd160.js.map +1 -1
- package/dist/modules/crypto/pure_scrypt.js +1 -4
- package/dist/modules/crypto/pure_scrypt.js.map +1 -1
- package/dist/modules/crypto/pure_secp256k1.d.ts +1 -1
- package/dist/modules/crypto/pure_secp256k1.d.ts.map +1 -1
- package/dist/modules/crypto/pure_secp256k1.js +1 -16
- package/dist/modules/crypto/pure_secp256k1.js.map +1 -1
- package/dist/modules/crypto/sync.d.ts.map +1 -1
- package/dist/modules/crypto/sync.js +16 -17
- package/dist/modules/crypto/sync.js.map +1 -1
- package/dist/modules/daemon_node_health.js +14 -16
- package/dist/modules/daemon_node_health.js.map +1 -1
- package/dist/modules/dexbot_class.d.ts +19 -14
- package/dist/modules/dexbot_class.d.ts.map +1 -1
- package/dist/modules/dexbot_class.js +127 -164
- package/dist/modules/dexbot_class.js.map +1 -1
- package/dist/modules/dexbot_cow_runtime.d.ts +28 -27
- package/dist/modules/dexbot_cow_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_cow_runtime.js +55 -45
- package/dist/modules/dexbot_cow_runtime.js.map +1 -1
- package/dist/modules/dexbot_credential_client.d.ts +6 -2
- package/dist/modules/dexbot_credential_client.d.ts.map +1 -1
- package/dist/modules/dexbot_credential_client.js +21 -31
- package/dist/modules/dexbot_credential_client.js.map +1 -1
- package/dist/modules/dexbot_fill_runtime.d.ts +23 -23
- package/dist/modules/dexbot_fill_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_fill_runtime.js +119 -77
- package/dist/modules/dexbot_fill_runtime.js.map +1 -1
- package/dist/modules/dexbot_maintenance_runtime.d.ts +46 -38
- package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_maintenance_runtime.js +81 -81
- package/dist/modules/dexbot_maintenance_runtime.js.map +1 -1
- package/dist/modules/dexbot_startup_runtime.d.ts +3 -3
- package/dist/modules/dexbot_startup_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_startup_runtime.js +43 -81
- package/dist/modules/dexbot_startup_runtime.js.map +1 -1
- package/dist/modules/dexbot_state_recovery.d.ts +11 -11
- package/dist/modules/dexbot_state_recovery.js +32 -78
- package/dist/modules/dexbot_state_recovery.js.map +1 -1
- package/dist/modules/env.js +3 -7
- package/dist/modules/env.js.map +1 -1
- package/dist/modules/fund_registry.d.ts.map +1 -1
- package/dist/modules/fund_registry.js +12 -24
- package/dist/modules/fund_registry.js.map +1 -1
- package/dist/modules/general_settings.js +10 -16
- package/dist/modules/general_settings.js.map +1 -1
- package/dist/modules/graceful_shutdown.d.ts.map +1 -1
- package/dist/modules/graceful_shutdown.js +12 -19
- package/dist/modules/graceful_shutdown.js.map +1 -1
- package/dist/modules/key_store.d.ts.map +1 -1
- package/dist/modules/key_store.js +27 -65
- package/dist/modules/key_store.js.map +1 -1
- package/dist/modules/launcher/bot_supervisor.d.ts +1 -1
- package/dist/modules/launcher/bot_supervisor.d.ts.map +1 -1
- package/dist/modules/launcher/bot_supervisor.js +89 -118
- package/dist/modules/launcher/bot_supervisor.js.map +1 -1
- package/dist/modules/launcher/child_env.js +1 -5
- package/dist/modules/launcher/child_env.js.map +1 -1
- package/dist/modules/launcher/credential_bootstrap.js +22 -31
- package/dist/modules/launcher/credential_bootstrap.js.map +1 -1
- package/dist/modules/launcher/credential_daemon.js +37 -75
- package/dist/modules/launcher/credential_daemon.js.map +1 -1
- package/dist/modules/launcher/credential_secret.js +2 -37
- package/dist/modules/launcher/credential_secret.js.map +1 -1
- package/dist/modules/launcher/foreign_cred_daemon.js +25 -31
- package/dist/modules/launcher/foreign_cred_daemon.js.map +1 -1
- package/dist/modules/launcher/headless_password.js +10 -12
- package/dist/modules/launcher/headless_password.js.map +1 -1
- package/dist/modules/launcher/launch_modes.js +3 -9
- package/dist/modules/launcher/launch_modes.js.map +1 -1
- package/dist/modules/launcher/market_adapter_runtime.d.ts +1 -1
- package/dist/modules/launcher/market_adapter_runtime.d.ts.map +1 -1
- package/dist/modules/launcher/market_adapter_runtime.js +25 -35
- package/dist/modules/launcher/market_adapter_runtime.js.map +1 -1
- package/dist/modules/launcher/market_adapter_watchdog.d.ts.map +1 -1
- package/dist/modules/launcher/market_adapter_watchdog.js +42 -45
- package/dist/modules/launcher/market_adapter_watchdog.js.map +1 -1
- package/dist/modules/launcher/monolithic_runtime.d.ts +1 -1
- package/dist/modules/launcher/monolithic_runtime.d.ts.map +1 -1
- package/dist/modules/launcher/monolithic_runtime.js +67 -138
- package/dist/modules/launcher/monolithic_runtime.js.map +1 -1
- package/dist/modules/launcher/runtime_entry.d.ts +1 -11
- package/dist/modules/launcher/runtime_entry.d.ts.map +1 -1
- package/dist/modules/launcher/runtime_entry.js +12 -15
- package/dist/modules/launcher/runtime_entry.js.map +1 -1
- package/dist/modules/launcher/status_reporting.d.ts +1 -1
- package/dist/modules/launcher/status_reporting.d.ts.map +1 -1
- package/dist/modules/launcher/status_reporting.js +15 -36
- package/dist/modules/launcher/status_reporting.js.map +1 -1
- package/dist/modules/launcher/supervisor_control.js +4 -9
- package/dist/modules/launcher/supervisor_control.js.map +1 -1
- package/dist/modules/logger.d.ts +1 -1
- package/dist/modules/logger.d.ts.map +1 -1
- package/dist/modules/logger.js +3 -38
- package/dist/modules/logger.js.map +1 -1
- package/dist/modules/market_adapter_whitelist.js +9 -18
- package/dist/modules/market_adapter_whitelist.js.map +1 -1
- package/dist/modules/node_failure_ledger.js +1 -3
- package/dist/modules/node_failure_ledger.js.map +1 -1
- package/dist/modules/node_health_cache.d.ts.map +1 -1
- package/dist/modules/node_health_cache.js +15 -25
- package/dist/modules/node_health_cache.js.map +1 -1
- package/dist/modules/node_manager.d.ts +1 -1
- package/dist/modules/node_manager.d.ts.map +1 -1
- package/dist/modules/node_manager.js +44 -43
- package/dist/modules/node_manager.js.map +1 -1
- package/dist/modules/order/accounting.d.ts.map +1 -1
- package/dist/modules/order/accounting.js +102 -118
- package/dist/modules/order/accounting.js.map +1 -1
- package/dist/modules/order/async_lock.d.ts +3 -15
- package/dist/modules/order/async_lock.d.ts.map +1 -1
- package/dist/modules/order/async_lock.js +6 -26
- package/dist/modules/order/async_lock.js.map +1 -1
- package/dist/modules/order/export.js +34 -75
- package/dist/modules/order/export.js.map +1 -1
- package/dist/modules/order/format.d.ts +1 -3
- package/dist/modules/order/format.d.ts.map +1 -1
- package/dist/modules/order/format.js +4 -24
- package/dist/modules/order/format.js.map +1 -1
- package/dist/modules/order/grid.d.ts +3 -3
- package/dist/modules/order/grid.d.ts.map +1 -1
- package/dist/modules/order/grid.js +206 -262
- package/dist/modules/order/grid.js.map +1 -1
- package/dist/modules/order/grid_reconcile.d.ts.map +1 -1
- package/dist/modules/order/grid_reconcile.js +77 -94
- package/dist/modules/order/grid_reconcile.js.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.d.ts.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.js +117 -149
- package/dist/modules/order/grid_reconcile_internal.js.map +1 -1
- package/dist/modules/order/index.d.ts.map +1 -1
- package/dist/modules/order/index.js +11 -45
- package/dist/modules/order/index.js.map +1 -1
- package/dist/modules/order/logger.js +28 -69
- package/dist/modules/order/logger.js.map +1 -1
- package/dist/modules/order/logger_state.d.ts.map +1 -1
- package/dist/modules/order/logger_state.js +3 -4
- package/dist/modules/order/logger_state.js.map +1 -1
- package/dist/modules/order/manager.d.ts +10 -0
- package/dist/modules/order/manager.d.ts.map +1 -1
- package/dist/modules/order/manager.js +131 -151
- package/dist/modules/order/manager.js.map +1 -1
- package/dist/modules/order/processed_fill_store.js +2 -7
- package/dist/modules/order/processed_fill_store.js.map +1 -1
- package/dist/modules/order/strategy.js +23 -25
- package/dist/modules/order/strategy.js.map +1 -1
- package/dist/modules/order/sync_engine.d.ts +27 -0
- package/dist/modules/order/sync_engine.d.ts.map +1 -1
- package/dist/modules/order/sync_engine.js +232 -181
- package/dist/modules/order/sync_engine.js.map +1 -1
- package/dist/modules/order/utils/math.d.ts +1 -25
- package/dist/modules/order/utils/math.d.ts.map +1 -1
- package/dist/modules/order/utils/math.js +49 -172
- package/dist/modules/order/utils/math.js.map +1 -1
- package/dist/modules/order/utils/order.d.ts +46 -2
- package/dist/modules/order/utils/order.d.ts.map +1 -1
- package/dist/modules/order/utils/order.js +165 -143
- package/dist/modules/order/utils/order.js.map +1 -1
- package/dist/modules/order/utils/system.d.ts +3 -1
- package/dist/modules/order/utils/system.d.ts.map +1 -1
- package/dist/modules/order/utils/system.js +152 -211
- package/dist/modules/order/utils/system.js.map +1 -1
- package/dist/modules/order/utils/timeout.js +1 -4
- package/dist/modules/order/utils/timeout.js.map +1 -1
- package/dist/modules/order/utils/validate.js +91 -142
- package/dist/modules/order/utils/validate.js.map +1 -1
- package/dist/modules/order/utils/withPoolRef.js +21 -61
- package/dist/modules/order/utils/withPoolRef.js.map +1 -1
- package/dist/modules/order/working_grid.js +6 -9
- package/dist/modules/order/working_grid.js.map +1 -1
- package/dist/modules/path_api.d.ts.map +1 -1
- package/dist/modules/path_api.js +8 -11
- package/dist/modules/path_api.js.map +1 -1
- package/dist/modules/paths.d.ts.map +1 -1
- package/dist/modules/paths.js +61 -67
- package/dist/modules/paths.js.map +1 -1
- package/dist/modules/process_discovery.js +13 -21
- package/dist/modules/process_discovery.js.map +1 -1
- package/dist/modules/runtime.js +7 -11
- package/dist/modules/runtime.js.map +1 -1
- package/dist/modules/runtime_settings.d.ts.map +1 -1
- package/dist/modules/runtime_settings.js +14 -16
- package/dist/modules/runtime_settings.js.map +1 -1
- package/dist/modules/settings_merge.js +1 -3
- package/dist/modules/settings_merge.js.map +1 -1
- package/dist/modules/socket_json_client.js +3 -5
- package/dist/modules/socket_json_client.js.map +1 -1
- package/dist/modules/storage/browser_adapter.js +1 -4
- package/dist/modules/storage/browser_adapter.js.map +1 -1
- package/dist/modules/storage/index.d.ts +3 -2
- package/dist/modules/storage/index.d.ts.map +1 -1
- package/dist/modules/storage/index.js +5 -8
- package/dist/modules/storage/index.js.map +1 -1
- package/dist/modules/storage/node_adapter.d.ts +3 -4
- package/dist/modules/storage/node_adapter.d.ts.map +1 -1
- package/dist/modules/storage/node_adapter.js +12 -16
- package/dist/modules/storage/node_adapter.js.map +1 -1
- package/dist/modules/storage/types.js +1 -2
- package/dist/modules/types.d.ts +0 -6
- package/dist/modules/types.d.ts.map +1 -1
- package/dist/modules/types.js +1 -2
- package/dist/modules/types.js.map +1 -1
- package/dist/modules/utils/base58check.js +8 -15
- package/dist/modules/utils/base58check.js.map +1 -1
- package/dist/modules/utils/build_dir.js +3 -7
- package/dist/modules/utils/build_dir.js.map +1 -1
- package/dist/modules/utils/errors.js +1 -5
- package/dist/modules/utils/errors.js.map +1 -1
- package/dist/modules/utils/math_utils.d.ts +1 -1
- package/dist/modules/utils/math_utils.d.ts.map +1 -1
- package/dist/modules/utils/math_utils.js +2 -7
- package/dist/modules/utils/math_utils.js.map +1 -1
- package/dist/modules/validate_profiles.d.ts.map +1 -1
- package/dist/modules/validate_profiles.js +18 -25
- package/dist/modules/validate_profiles.js.map +1 -1
- package/dist/pm2.d.ts +4 -70
- package/dist/pm2.d.ts.map +1 -1
- package/dist/pm2.js +106 -132
- package/dist/pm2.js.map +1 -1
- package/dist/scripts/analyze-git.js +13 -17
- package/dist/scripts/analyze-git.js.map +1 -1
- package/dist/scripts/analyze-orders.d.ts.map +1 -1
- package/dist/scripts/analyze-orders.js +48 -63
- package/dist/scripts/analyze-orders.js.map +1 -1
- package/dist/scripts/diagnose-kibana-candles.d.ts.map +1 -1
- package/dist/scripts/diagnose-kibana-candles.js +2 -1
- package/dist/scripts/diagnose-kibana-candles.js.map +1 -1
- package/dist/scripts/diagnose-pool-history.d.ts.map +1 -1
- package/dist/scripts/diagnose-pool-history.js +2 -1
- package/dist/scripts/diagnose-pool-history.js.map +1 -1
- package/dist/scripts/divergence-calc.d.ts.map +1 -1
- package/dist/scripts/divergence-calc.js +2 -2
- package/dist/scripts/divergence-calc.js.map +1 -1
- package/dist/scripts/fix-err-message.js +17 -22
- package/dist/scripts/fix-err-message.js.map +1 -1
- package/dist/scripts/generate_lp_chart.d.ts.map +1 -1
- package/dist/scripts/generate_lp_chart.js +7 -15
- package/dist/scripts/generate_lp_chart.js.map +1 -1
- package/dist/scripts/generate_mainnet_corpus_report.d.ts.map +1 -1
- package/dist/scripts/generate_mainnet_corpus_report.js +3 -2
- package/dist/scripts/generate_mainnet_corpus_report.js.map +1 -1
- package/dist/scripts/generate_market_adapter_whitelist.d.ts.map +1 -1
- package/dist/scripts/generate_market_adapter_whitelist.js +18 -24
- package/dist/scripts/generate_market_adapter_whitelist.js.map +1 -1
- package/dist/scripts/native_release_gates.js +15 -19
- package/dist/scripts/native_release_gates.js.map +1 -1
- package/dist/scripts/print_grid.d.ts.map +1 -1
- package/dist/scripts/print_grid.js +2 -2
- package/dist/scripts/print_grid.js.map +1 -1
- package/dist/scripts/run-tests.js +12 -17
- package/dist/scripts/run-tests.js.map +1 -1
- package/dist/scripts/runner.d.ts.map +1 -1
- package/dist/scripts/runner.js +18 -20
- package/dist/scripts/runner.js.map +1 -1
- package/dist/scripts/sync-version.js +2 -2
- package/dist/scripts/sync-version.js.map +1 -1
- package/dist/scripts/test-credit-renewal.d.ts.map +1 -1
- package/dist/scripts/test-credit-renewal.js +4 -3
- package/dist/scripts/test-credit-renewal.js.map +1 -1
- package/dist/scripts/update.js +77 -89
- package/dist/scripts/update.js.map +1 -1
- package/dist/scripts/validate_bots.d.ts.map +1 -1
- package/dist/scripts/validate_bots.js +2 -2
- package/dist/scripts/validate_bots.js.map +1 -1
- package/dist/scripts/verify-browser-bundle.js +12 -17
- package/dist/scripts/verify-browser-bundle.js.map +1 -1
- package/dist/unlock.d.ts +0 -30
- package/dist/unlock.d.ts.map +1 -1
- package/dist/unlock.js +95 -143
- package/dist/unlock.js.map +1 -1
- package/package.json +5 -8
- package/scripts/README.md +1 -1
- package/scripts/create-bot-symlinks.sh +2 -2
- package/dist/modules/utils/fs_utils.d.ts +0 -18
- package/dist/modules/utils/fs_utils.d.ts.map +0 -1
- package/dist/modules/utils/fs_utils.js +0 -32
- package/dist/modules/utils/fs_utils.js.map +0 -1
- package/dist/scripts/migrate_bot_keys.d.ts +0 -3
- package/dist/scripts/migrate_bot_keys.d.ts.map +0 -1
- package/dist/scripts/migrate_bot_keys.js +0 -225
- package/dist/scripts/migrate_bot_keys.js.map +0 -1
|
@@ -7,21 +7,21 @@ declare function usesAmaGridPrice(bot: any): boolean;
|
|
|
7
7
|
/**
|
|
8
8
|
* Find a bot entry in the bots config snapshot that matches a runtime config.
|
|
9
9
|
* Matches by botKey or name.
|
|
10
|
-
* @param {import('./types').BotsConfigSnapshot} snapshot - Bots configuration snapshot
|
|
10
|
+
* @param {import('./types.js').BotsConfigSnapshot} snapshot - Bots configuration snapshot
|
|
11
11
|
* @param {Object} config - Runtime bot configuration
|
|
12
12
|
* @returns {Object|null} Matched bot entry or null
|
|
13
13
|
*/
|
|
14
14
|
declare function findSnapshotBotForRuntimeConfig(snapshot: any, config: any): any;
|
|
15
15
|
/**
|
|
16
16
|
* Check if a runtime bot configuration requires the market adapter.
|
|
17
|
-
* @param {import('./types').BotsConfigSnapshot} snapshot - Bots configuration snapshot
|
|
17
|
+
* @param {import('./types.js').BotsConfigSnapshot} snapshot - Bots configuration snapshot
|
|
18
18
|
* @param {Object} config - Runtime bot configuration
|
|
19
19
|
* @returns {boolean} True if the bot uses AMA grid pricing
|
|
20
20
|
*/
|
|
21
21
|
declare function runtimeConfigNeedsMarketAdapter(snapshot: any, config: any): boolean;
|
|
22
22
|
/**
|
|
23
23
|
* Load and fingerprint the bots.json configuration file.
|
|
24
|
-
* @returns {import('./types').BotsConfigSnapshot} Snapshot with exists flag, fingerprint, active bots list, and adapter requirement
|
|
24
|
+
* @returns {import('./types.js').BotsConfigSnapshot} Snapshot with exists flag, fingerprint, active bots list, and adapter requirement
|
|
25
25
|
*/
|
|
26
26
|
declare function loadBotsConfigSnapshot(): {
|
|
27
27
|
exists: boolean;
|
|
@@ -44,9 +44,9 @@ declare function stopMarketAdapterPm2(): Promise<void>;
|
|
|
44
44
|
/**
|
|
45
45
|
* Synchronize market adapter state based on periodic config checks.
|
|
46
46
|
* Starts or stops the market adapter based on whether any active bot uses AMA grid pricing.
|
|
47
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
47
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
48
48
|
* @param {string} [context='periodic'] - Context label for logging
|
|
49
|
-
* @returns {Promise<import('./types').MarketAdapterSyncResult>}
|
|
49
|
+
* @returns {Promise<import('./types.js').MarketAdapterSyncResult>}
|
|
50
50
|
*/
|
|
51
51
|
declare function syncMarketAdapterOnPeriodicConfigCheck(bot: any, context?: any): Promise<{
|
|
52
52
|
skipped: boolean;
|
|
@@ -74,7 +74,7 @@ declare function syncMarketAdapterOnPeriodicConfigCheck(bot: any, context?: any)
|
|
|
74
74
|
running: boolean;
|
|
75
75
|
started: boolean;
|
|
76
76
|
stopped: boolean;
|
|
77
|
-
error:
|
|
77
|
+
error: string;
|
|
78
78
|
skipped?: undefined;
|
|
79
79
|
reason?: undefined;
|
|
80
80
|
mode?: undefined;
|
|
@@ -82,9 +82,9 @@ declare function syncMarketAdapterOnPeriodicConfigCheck(bot: any, context?: any)
|
|
|
82
82
|
/**
|
|
83
83
|
* Refresh the dynamic weight distribution from the AMA center snapshot.
|
|
84
84
|
* Applies live dynamic weights if the bot is whitelisted and weights are ready.
|
|
85
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
85
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
86
86
|
* @param {string} [context='runtime'] - Context label for logging
|
|
87
|
-
* @returns {import('./types').DynamicWeightRefreshResult}
|
|
87
|
+
* @returns {import('./types.js').DynamicWeightRefreshResult}
|
|
88
88
|
*/
|
|
89
89
|
declare function refreshDynamicWeightDistribution(bot: any, context?: any): {
|
|
90
90
|
applied: boolean;
|
|
@@ -112,8 +112,8 @@ declare function updateBotGridResetMetadata(botKey: any, options?: {
|
|
|
112
112
|
/**
|
|
113
113
|
* Perform a full grid resync: reload config, optionally refresh center price,
|
|
114
114
|
* recalculate the grid, persist, and record reset metadata.
|
|
115
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
116
|
-
* @param {import('./types').GridResyncOptions} [options] - Grid resync options
|
|
115
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
116
|
+
* @param {import('./types.js').GridResyncOptions} [options] - Grid resync options
|
|
117
117
|
* @param {boolean} [options.skipIdle=false] - Skip the idle-cooldown deferral
|
|
118
118
|
* @returns {Promise<boolean>} True if resync succeeded
|
|
119
119
|
*/
|
|
@@ -127,74 +127,76 @@ declare function performGridResync(bot: any, options?: {
|
|
|
127
127
|
/**
|
|
128
128
|
* Handle a pending trigger file detected at startup or during runtime.
|
|
129
129
|
* Processes the trigger and performs a grid resync if the trigger file exists.
|
|
130
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
130
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
131
131
|
* @returns {Promise<boolean>} True if reset was handled successfully
|
|
132
132
|
*/
|
|
133
133
|
declare function handlePendingTriggerReset(bot: any): Promise<boolean>;
|
|
134
134
|
/**
|
|
135
135
|
* Set up a file watcher on the profiles directory to detect trigger file creation.
|
|
136
136
|
* When a trigger file appears, debounces and processes the grid resync.
|
|
137
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
137
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
138
138
|
* @returns {Promise<void>}
|
|
139
139
|
*/
|
|
140
140
|
declare function setupTriggerFileDetection(bot: any): Promise<void>;
|
|
141
141
|
/**
|
|
142
142
|
* Perform periodic grid health checks (divergence, spread condition, dust detection).
|
|
143
143
|
* Called as part of the periodic blockchain fetch interval.
|
|
144
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
144
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
145
145
|
* @returns {Promise<void>}
|
|
146
146
|
*/
|
|
147
147
|
declare function performPeriodicGridChecks(bot: any): Promise<void>;
|
|
148
148
|
/**
|
|
149
149
|
* Check if the continuous open-orders sync loop is enabled.
|
|
150
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
150
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
151
151
|
* @returns {boolean} True if the sync loop is enabled in TIMING config
|
|
152
152
|
*/
|
|
153
153
|
declare function isOpenOrdersSyncLoopEnabled(bot: any): boolean;
|
|
154
154
|
/**
|
|
155
155
|
* Start the continuous open-orders sync loop.
|
|
156
156
|
* Periodically reads on-chain orders and synchronizes with the grid manager.
|
|
157
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
157
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
158
158
|
*/
|
|
159
159
|
declare function startOpenOrdersSyncLoop(bot: any): void;
|
|
160
160
|
/**
|
|
161
161
|
* Stop the continuous open-orders sync loop.
|
|
162
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
162
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
163
163
|
* @returns {Promise<void>}
|
|
164
164
|
*/
|
|
165
165
|
declare function stopOpenOrdersSyncLoop(bot: any): Promise<void>;
|
|
166
166
|
/**
|
|
167
167
|
* Set up the periodic blockchain fetch interval.
|
|
168
168
|
* Periodically fetches account totals and syncs open orders from the blockchain.
|
|
169
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
169
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
170
170
|
*/
|
|
171
171
|
declare function setupBlockchainFetchInterval(bot: any): void;
|
|
172
172
|
/**
|
|
173
173
|
* Stop the periodic blockchain fetch interval.
|
|
174
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
174
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
175
175
|
*/
|
|
176
176
|
declare function stopBlockchainFetchInterval(bot: any): void;
|
|
177
177
|
/**
|
|
178
178
|
* Release the market adapter runtime for a bot.
|
|
179
179
|
* In PM2 mode this is a no-op; in direct mode it calls the shared runtime's releaseBot.
|
|
180
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
180
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
181
181
|
* @param {string} botId - Bot identifier
|
|
182
182
|
* @param {string} [context='shutdown'] - Context label for logging
|
|
183
|
-
* @returns {Promise<import('./types').MarketAdapterReleaseResult>}
|
|
183
|
+
* @returns {Promise<import('./types.js').MarketAdapterReleaseResult>}
|
|
184
184
|
*/
|
|
185
185
|
declare function releaseMarketAdapterRuntime(_bot: any, botId: any, context?: any): Promise<any>;
|
|
186
186
|
/**
|
|
187
187
|
* Check if an error message indicates that an order does not exist on the blockchain.
|
|
188
|
+
* Delegates to the canonical implementation in order/utils/order.ts (single source
|
|
189
|
+
* of truth shared with the correction/reconcile-cancel paths).
|
|
188
190
|
* @param {string} message - Error message to check
|
|
189
191
|
* @param {string} [orderId] - Optional order ID for context-aware matching
|
|
190
192
|
* @returns {boolean} True if the message indicates a nonexistent order
|
|
191
193
|
*/
|
|
192
|
-
declare function isOrderDoesNotExistError(message: any, orderId: any):
|
|
194
|
+
declare function isOrderDoesNotExistError(message: any, orderId: any): any;
|
|
193
195
|
/**
|
|
194
196
|
* Execute the core maintenance logic: recalculate funds, check pipeline,
|
|
195
197
|
* refresh dynamic weights, check grid health, cancel dust orders,
|
|
196
198
|
* apply divergence corrections, and fix spread conditions.
|
|
197
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
199
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
198
200
|
* @param {string} context - Context label for logging (e.g. 'periodic', 'dust-timer')
|
|
199
201
|
* @returns {Promise<void>}
|
|
200
202
|
*/
|
|
@@ -204,10 +206,10 @@ declare function executeMaintenanceLogic(bot: any, context: any): Promise<void>;
|
|
|
204
206
|
* Each dust order is cancelled on chain and its slot is rotated through
|
|
205
207
|
* the normal synthetic-fill pipeline. Failures are logged and retried on
|
|
206
208
|
* the next detection cycle (next fill batch or 5-min health check).
|
|
207
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
209
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
208
210
|
* @param {Object} [options] - Dust cancellation options
|
|
209
|
-
* @param {import('./types').Order[]} [options.buy=[]] - Buy-side dust orders
|
|
210
|
-
* @param {import('./types').Order[]} [options.sell=[]] - Sell-side dust orders
|
|
211
|
+
* @param {import('./types.js').Order[]} [options.buy=[]] - Buy-side dust orders
|
|
212
|
+
* @param {import('./types.js').Order[]} [options.sell=[]] - Sell-side dust orders
|
|
211
213
|
* @returns {Promise<{cancelledCount: number, batchResult: {aborted: boolean}|null}>}
|
|
212
214
|
*/
|
|
213
215
|
declare function cancelDustOrders(bot: any, { buy: buyDust, sell: sellDust }?: any): Promise<{
|
|
@@ -222,7 +224,7 @@ declare function cancelDustOrders(bot: any, { buy: buyDust, sell: sellDust }?: a
|
|
|
222
224
|
/**
|
|
223
225
|
* Run grid maintenance with idle detection and lock acquisition.
|
|
224
226
|
* Checks if the bot is idle before proceeding, and acquires the fill processing lock.
|
|
225
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
227
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
226
228
|
* @param {string} [context='periodic'] - Context label for logging
|
|
227
229
|
* @param {Object} [options] - Maintenance options
|
|
228
230
|
* @param {boolean} [options.skipIdle=false] - Skip idle delay check
|
|
@@ -235,31 +237,31 @@ declare function runGridMaintenance(bot: any, context?: any, options?: {
|
|
|
235
237
|
* Check if the bot's BTS balance is below the minimum threshold and trigger acquisition.
|
|
236
238
|
* Only applies to non-BTS pairs. Uses hysteresis: triggers at 1× min_BTS_value,
|
|
237
239
|
* fills to BTS_ACQUIRE_TARGET_MULTIPLIER × min_BTS_value.
|
|
238
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
240
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
239
241
|
* @returns {Promise<void>}
|
|
240
242
|
*/
|
|
241
243
|
declare function checkBtsBalanceAndAcquire(bot: any): Promise<void>;
|
|
242
244
|
/**
|
|
243
245
|
* Acquire BTS by swapping one of the trading pair assets through an AMM pool.
|
|
244
246
|
* Tries both assets for a BTS pool, picks the best (lowest price impact).
|
|
245
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
247
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
246
248
|
* @param {number} deficit - Amount of BTS needed (float)
|
|
247
249
|
* @returns {Promise<void>}
|
|
248
250
|
*/
|
|
249
251
|
declare function acquireBts(bot: any, deficit: any): Promise<void>;
|
|
250
252
|
/**
|
|
251
253
|
* Run a single dust health check cycle.
|
|
252
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
254
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
253
255
|
*/
|
|
254
256
|
declare function runDustHealthCheck(bot: any): Promise<void>;
|
|
255
257
|
/**
|
|
256
258
|
* Set up the periodic dust health check interval.
|
|
257
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
259
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
258
260
|
*/
|
|
259
261
|
declare function setupDustHealthCheckInterval(bot: any): void;
|
|
260
262
|
/**
|
|
261
263
|
* Request a full grid reset from fresh on-chain state.
|
|
262
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
264
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
263
265
|
* @param {string} [reason='structural change']
|
|
264
266
|
* @param {{refreshCenterPrice?: boolean, skipIdle?: boolean, skipFillLock?: boolean}} [options={}]
|
|
265
267
|
* @returns {Promise<Object>}
|
|
@@ -271,12 +273,12 @@ declare function requestGridReset(bot: any, reason?: any, options?: {
|
|
|
271
273
|
}): Promise<any>;
|
|
272
274
|
/**
|
|
273
275
|
* Wire the structural grid resync request handler on the manager.
|
|
274
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
276
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
275
277
|
*/
|
|
276
278
|
declare function wireStructuralGridResyncRequest(bot: any): void;
|
|
277
279
|
/**
|
|
278
280
|
* Get current pipeline signal state for congestion checks.
|
|
279
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
281
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
280
282
|
* @returns {Object}
|
|
281
283
|
*/
|
|
282
284
|
declare function getPipelineSignals(bot: any): {
|
|
@@ -288,28 +290,34 @@ declare function getPipelineSignals(bot: any): {
|
|
|
288
290
|
};
|
|
289
291
|
/**
|
|
290
292
|
* Mark that grid activity occurred (updates idle timer).
|
|
291
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
293
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
292
294
|
* @param {string} [reason='activity']
|
|
293
295
|
*/
|
|
294
296
|
declare function markGridActivity(bot: any, reason?: any): void;
|
|
295
297
|
/**
|
|
296
298
|
* Get current metrics for monitoring and debugging.
|
|
297
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
299
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
298
300
|
* @returns {Object}
|
|
299
301
|
*/
|
|
300
302
|
declare function getMetrics(bot: any): any;
|
|
301
303
|
/**
|
|
302
304
|
* Read open orders from chain, sync with local state, and process any fills found.
|
|
303
|
-
* @param {import('./dexbot_class').DEXBot} bot
|
|
305
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
304
306
|
* @param {string} tag - Context label for logging
|
|
305
307
|
* @returns {Promise<Object>}
|
|
306
308
|
*/
|
|
307
309
|
declare function syncOpenOrdersAndProcessFills(bot: any, tag: any): Promise<{
|
|
310
|
+
syncResult: null;
|
|
311
|
+
aborted: boolean;
|
|
312
|
+
hasUnmatched: number;
|
|
313
|
+
openOrders: null;
|
|
314
|
+
} | {
|
|
308
315
|
syncResult: any;
|
|
309
316
|
aborted: boolean;
|
|
310
317
|
hasUnmatched: any;
|
|
311
|
-
openOrders: any;
|
|
318
|
+
openOrders: any[];
|
|
312
319
|
}>;
|
|
320
|
+
export { loadBotsConfigSnapshot, refreshDynamicWeightDistribution, performGridResync, updateBotGridResetMetadata, handlePendingTriggerReset, setupTriggerFileDetection, performPeriodicGridChecks, isOpenOrdersSyncLoopEnabled, startOpenOrdersSyncLoop, stopOpenOrdersSyncLoop, setupBlockchainFetchInterval, stopBlockchainFetchInterval, executeMaintenanceLogic, cancelDustOrders, isOrderDoesNotExistError, runGridMaintenance, stopMarketAdapterPm2, releaseMarketAdapterRuntime, syncMarketAdapterOnPeriodicConfigCheck, findSnapshotBotForRuntimeConfig, runtimeConfigNeedsMarketAdapter, usesAmaGridPrice, checkBtsBalanceAndAcquire, acquireBts, runDustHealthCheck, setupDustHealthCheckInterval, requestGridReset, wireStructuralGridResyncRequest, getPipelineSignals, markGridActivity, getMetrics, syncOpenOrdersAndProcessFills };
|
|
313
321
|
declare const _default: {
|
|
314
322
|
loadBotsConfigSnapshot: typeof loadBotsConfigSnapshot;
|
|
315
323
|
refreshDynamicWeightDistribution: typeof refreshDynamicWeightDistribution;
|
|
@@ -344,5 +352,5 @@ declare const _default: {
|
|
|
344
352
|
getMetrics: typeof getMetrics;
|
|
345
353
|
syncOpenOrdersAndProcessFills: typeof syncOpenOrdersAndProcessFills;
|
|
346
354
|
};
|
|
347
|
-
export
|
|
355
|
+
export default _default;
|
|
348
356
|
//# sourceMappingURL=dexbot_maintenance_runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dexbot_maintenance_runtime.d.ts","sourceRoot":"","sources":["../../modules/dexbot_maintenance_runtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dexbot_maintenance_runtime.d.ts","sourceRoot":"","sources":["../../modules/dexbot_maintenance_runtime.ts"],"names":[],"mappings":"AAuGA;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,GAAG,EAAE,GAAG,WAGjC;AAED;;;;;;GAMG;AACH,iBAAS,+BAA+B,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAalE;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