dexbot 1.1.10
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/LICENSE +21 -0
- package/README.md +287 -0
- package/claw/README.md +513 -0
- package/claw/scripts/memu_runner.py +385 -0
- package/claw/skills/bitshares-guide/SKILL.md +14 -0
- package/claw/skills/bitshares-guide/references/example-skill-shells.md +18 -0
- package/claw/skills/bitshares-guide/references/presentation-patterns.md +19 -0
- package/claw/skills/bitshares-guide/references/scope-guardrails.md +9 -0
- package/claw/skills/launcher-ops/SKILL.md +18 -0
- package/claw/skills/launcher-ops/references/launcher-workflow.md +23 -0
- package/claw/skills/margin-trading/SKILL.md +23 -0
- package/claw/skills/margin-trading/references/honest-asset-list.md +74 -0
- package/claw/skills/margin-trading/references/honest-assets.md +44 -0
- package/claw/skills/margin-trading/references/position-management.md +203 -0
- package/claw/skills/margin-trading/references/trading-concepts.md +80 -0
- package/claw/skills/memu-memory/SKILL.md +218 -0
- package/claw/skills/shared/references/js-automation-overview.md +24 -0
- package/claw/skills/shared/references/safety-and-staleness.md +11 -0
- package/claw/skills/shared/references/skill-boundaries.md +17 -0
- package/claw/skills/trend-detection/SKILL.md +33 -0
- package/claw/skills/trend-detection/agents/openai.yaml +3 -0
- package/claw/skills/trend-detection/references/service.md +45 -0
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.d.ts +3 -0
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.js +149 -0
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.js.map +1 -0
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.d.ts +3 -0
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.js +387 -0
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.js.map +1 -0
- package/dist/analysis/ama_fitting/calibrate_convergence_er.d.ts +3 -0
- package/dist/analysis/ama_fitting/calibrate_convergence_er.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/calibrate_convergence_er.js +200 -0
- package/dist/analysis/ama_fitting/calibrate_convergence_er.js.map +1 -0
- package/dist/analysis/ama_fitting/fetch_lp_candles.d.ts +3 -0
- package/dist/analysis/ama_fitting/fetch_lp_candles.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/fetch_lp_candles.js +212 -0
- package/dist/analysis/ama_fitting/fetch_lp_candles.js.map +1 -0
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.d.ts +31 -0
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.js +249 -0
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.js.map +1 -0
- package/dist/analysis/ama_fitting/optimizer_high_resolution.d.ts +2 -0
- package/dist/analysis/ama_fitting/optimizer_high_resolution.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/optimizer_high_resolution.js +782 -0
- package/dist/analysis/ama_fitting/optimizer_high_resolution.js.map +1 -0
- package/dist/analysis/analyze_derivatives.d.ts +95 -0
- package/dist/analysis/analyze_derivatives.d.ts.map +1 -0
- package/dist/analysis/analyze_derivatives.js +295 -0
- package/dist/analysis/analyze_derivatives.js.map +1 -0
- package/dist/analysis/analyze_dynamic_weight.d.ts +14 -0
- package/dist/analysis/analyze_dynamic_weight.d.ts.map +1 -0
- package/dist/analysis/analyze_dynamic_weight.js +208 -0
- package/dist/analysis/analyze_dynamic_weight.js.map +1 -0
- package/dist/analysis/analyze_kalman.d.ts +13 -0
- package/dist/analysis/analyze_kalman.d.ts.map +1 -0
- package/dist/analysis/analyze_kalman.js +123 -0
- package/dist/analysis/analyze_kalman.js.map +1 -0
- package/dist/analysis/analyze_regime.d.ts +20 -0
- package/dist/analysis/analyze_regime.d.ts.map +1 -0
- package/dist/analysis/analyze_regime.js +139 -0
- package/dist/analysis/analyze_regime.js.map +1 -0
- package/dist/analysis/analyze_regime_windows.d.ts +19 -0
- package/dist/analysis/analyze_regime_windows.d.ts.map +1 -0
- package/dist/analysis/analyze_regime_windows.js +413 -0
- package/dist/analysis/analyze_regime_windows.js.map +1 -0
- package/dist/analysis/analyze_risk_profile.d.ts +3 -0
- package/dist/analysis/analyze_risk_profile.d.ts.map +1 -0
- package/dist/analysis/analyze_risk_profile.js +159 -0
- package/dist/analysis/analyze_risk_profile.js.map +1 -0
- package/dist/analysis/analyze_trade_heatmap.d.ts +3 -0
- package/dist/analysis/analyze_trade_heatmap.d.ts.map +1 -0
- package/dist/analysis/analyze_trade_heatmap.js +367 -0
- package/dist/analysis/analyze_trade_heatmap.js.map +1 -0
- package/dist/analysis/analyze_volatility.d.ts +22 -0
- package/dist/analysis/analyze_volatility.d.ts.map +1 -0
- package/dist/analysis/analyze_volatility.js +172 -0
- package/dist/analysis/analyze_volatility.js.map +1 -0
- package/dist/analysis/bot_fitting/backtest_ama_sweep.d.ts +99 -0
- package/dist/analysis/bot_fitting/backtest_ama_sweep.d.ts.map +1 -0
- package/dist/analysis/bot_fitting/backtest_ama_sweep.js +804 -0
- package/dist/analysis/bot_fitting/backtest_ama_sweep.js.map +1 -0
- package/dist/analysis/bot_fitting/backtest_bot_fitting.d.ts +2 -0
- package/dist/analysis/bot_fitting/backtest_bot_fitting.d.ts.map +1 -0
- package/dist/analysis/bot_fitting/backtest_bot_fitting.js +347 -0
- package/dist/analysis/bot_fitting/backtest_bot_fitting.js.map +1 -0
- package/dist/analysis/bot_fitting/shared_utils.d.ts +15 -0
- package/dist/analysis/bot_fitting/shared_utils.d.ts.map +1 -0
- package/dist/analysis/bot_fitting/shared_utils.js +48 -0
- package/dist/analysis/bot_fitting/shared_utils.js.map +1 -0
- package/dist/analysis/bot_key_utils.d.ts +16 -0
- package/dist/analysis/bot_key_utils.d.ts.map +1 -0
- package/dist/analysis/bot_key_utils.js +61 -0
- package/dist/analysis/bot_key_utils.js.map +1 -0
- package/dist/analysis/bot_usage/discover_bot_accounts.d.ts +3 -0
- package/dist/analysis/bot_usage/discover_bot_accounts.d.ts.map +1 -0
- package/dist/analysis/bot_usage/discover_bot_accounts.js +498 -0
- package/dist/analysis/bot_usage/discover_bot_accounts.js.map +1 -0
- package/dist/analysis/bot_usage/kibana_bot_queries.d.ts +546 -0
- package/dist/analysis/bot_usage/kibana_bot_queries.d.ts.map +1 -0
- package/dist/analysis/bot_usage/kibana_bot_queries.js +427 -0
- package/dist/analysis/bot_usage/kibana_bot_queries.js.map +1 -0
- package/dist/analysis/chart_utils.d.ts +13 -0
- package/dist/analysis/chart_utils.d.ts.map +1 -0
- package/dist/analysis/chart_utils.js +142 -0
- package/dist/analysis/chart_utils.js.map +1 -0
- package/dist/analysis/derivative_chart_generator.d.ts +18 -0
- package/dist/analysis/derivative_chart_generator.d.ts.map +1 -0
- package/dist/analysis/derivative_chart_generator.js +896 -0
- package/dist/analysis/derivative_chart_generator.js.map +1 -0
- package/dist/analysis/math_utils.d.ts +35 -0
- package/dist/analysis/math_utils.d.ts.map +1 -0
- package/dist/analysis/math_utils.js +121 -0
- package/dist/analysis/math_utils.js.map +1 -0
- package/dist/analysis/price_sources.d.ts +34 -0
- package/dist/analysis/price_sources.d.ts.map +1 -0
- package/dist/analysis/price_sources.js +103 -0
- package/dist/analysis/price_sources.js.map +1 -0
- package/dist/analysis/trade_profitability.d.ts +115 -0
- package/dist/analysis/trade_profitability.d.ts.map +1 -0
- package/dist/analysis/trade_profitability.js +1247 -0
- package/dist/analysis/trade_profitability.js.map +1 -0
- package/dist/analysis/tradingview/analyze_tradingview.d.ts +38 -0
- package/dist/analysis/tradingview/analyze_tradingview.d.ts.map +1 -0
- package/dist/analysis/tradingview/analyze_tradingview.js +212 -0
- package/dist/analysis/tradingview/analyze_tradingview.js.map +1 -0
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts +9 -0
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts.map +1 -0
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js +1717 -0
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js.map +1 -0
- package/dist/analysis/trend_detection/derivative_analyzer.d.ts +250 -0
- package/dist/analysis/trend_detection/derivative_analyzer.d.ts.map +1 -0
- package/dist/analysis/trend_detection/derivative_analyzer.js +903 -0
- package/dist/analysis/trend_detection/derivative_analyzer.js.map +1 -0
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.d.ts +6 -0
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.d.ts.map +1 -0
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.js +1449 -0
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.js.map +1 -0
- package/dist/analysis/trend_detection/hurst_analyzer.d.ts +42 -0
- package/dist/analysis/trend_detection/hurst_analyzer.d.ts.map +1 -0
- package/dist/analysis/trend_detection/hurst_analyzer.js +159 -0
- package/dist/analysis/trend_detection/hurst_analyzer.js.map +1 -0
- package/dist/analysis/trend_detection/kalman_chart_generator.d.ts +6 -0
- package/dist/analysis/trend_detection/kalman_chart_generator.d.ts.map +1 -0
- package/dist/analysis/trend_detection/kalman_chart_generator.js +408 -0
- package/dist/analysis/trend_detection/kalman_chart_generator.js.map +1 -0
- package/dist/analysis/trend_detection/kalman_trend_analyzer.d.ts +103 -0
- package/dist/analysis/trend_detection/kalman_trend_analyzer.d.ts.map +1 -0
- package/dist/analysis/trend_detection/kalman_trend_analyzer.js +229 -0
- package/dist/analysis/trend_detection/kalman_trend_analyzer.js.map +1 -0
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.d.ts +34 -0
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.d.ts.map +1 -0
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.js +89 -0
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.js.map +1 -0
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.d.ts +39 -0
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.d.ts.map +1 -0
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.js +132 -0
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.js.map +1 -0
- package/dist/analysis/trend_detection/regime_chart_generator.d.ts +6 -0
- package/dist/analysis/trend_detection/regime_chart_generator.d.ts.map +1 -0
- package/dist/analysis/trend_detection/regime_chart_generator.js +345 -0
- package/dist/analysis/trend_detection/regime_chart_generator.js.map +1 -0
- package/dist/analysis/trend_detection/tests/test_kalman_trend.d.ts +2 -0
- package/dist/analysis/trend_detection/tests/test_kalman_trend.d.ts.map +1 -0
- package/dist/analysis/trend_detection/tests/test_kalman_trend.js +130 -0
- package/dist/analysis/trend_detection/tests/test_kalman_trend.js.map +1 -0
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.d.ts +2 -0
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.d.ts.map +1 -0
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.js +38 -0
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.js.map +1 -0
- package/dist/analysis/trend_detection/volatility_chart_generator.d.ts +6 -0
- package/dist/analysis/trend_detection/volatility_chart_generator.d.ts.map +1 -0
- package/dist/analysis/trend_detection/volatility_chart_generator.js +732 -0
- package/dist/analysis/trend_detection/volatility_chart_generator.js.map +1 -0
- package/dist/bot.d.ts +49 -0
- package/dist/bot.d.ts.map +1 -0
- package/dist/bot.js +221 -0
- package/dist/bot.js.map +1 -0
- package/dist/credential-daemon.d.ts +64 -0
- package/dist/credential-daemon.d.ts.map +1 -0
- package/dist/credential-daemon.js +987 -0
- package/dist/credential-daemon.js.map +1 -0
- package/dist/dexbot.d.ts +87 -0
- package/dist/dexbot.d.ts.map +1 -0
- package/dist/dexbot.js +1222 -0
- package/dist/dexbot.js.map +1 -0
- package/dist/market_adapter/ama_signal_runner.d.ts +3 -0
- package/dist/market_adapter/ama_signal_runner.d.ts.map +1 -0
- package/dist/market_adapter/ama_signal_runner.js +175 -0
- package/dist/market_adapter/ama_signal_runner.js.map +1 -0
- package/dist/market_adapter/candle_utils.d.ts +57 -0
- package/dist/market_adapter/candle_utils.d.ts.map +1 -0
- package/dist/market_adapter/candle_utils.js +252 -0
- package/dist/market_adapter/candle_utils.js.map +1 -0
- package/dist/market_adapter/core/asymmetric_bounds.d.ts +20 -0
- package/dist/market_adapter/core/asymmetric_bounds.d.ts.map +1 -0
- package/dist/market_adapter/core/asymmetric_bounds.js +88 -0
- package/dist/market_adapter/core/asymmetric_bounds.js.map +1 -0
- package/dist/market_adapter/core/config_normalizers.d.ts +10 -0
- package/dist/market_adapter/core/config_normalizers.d.ts.map +1 -0
- package/dist/market_adapter/core/config_normalizers.js +24 -0
- package/dist/market_adapter/core/config_normalizers.js.map +1 -0
- package/dist/market_adapter/core/kibana_candles.d.ts +74 -0
- package/dist/market_adapter/core/kibana_candles.d.ts.map +1 -0
- package/dist/market_adapter/core/kibana_candles.js +249 -0
- package/dist/market_adapter/core/kibana_candles.js.map +1 -0
- package/dist/market_adapter/core/kibana_client.d.ts +27 -0
- package/dist/market_adapter/core/kibana_client.d.ts.map +1 -0
- package/dist/market_adapter/core/kibana_client.js +120 -0
- package/dist/market_adapter/core/kibana_client.js.map +1 -0
- package/dist/market_adapter/core/kibana_market_candles.d.ts +143 -0
- package/dist/market_adapter/core/kibana_market_candles.d.ts.map +1 -0
- package/dist/market_adapter/core/kibana_market_candles.js +170 -0
- package/dist/market_adapter/core/kibana_market_candles.js.map +1 -0
- package/dist/market_adapter/core/market_adapter_service.d.ts +210 -0
- package/dist/market_adapter/core/market_adapter_service.d.ts.map +1 -0
- package/dist/market_adapter/core/market_adapter_service.js +2328 -0
- package/dist/market_adapter/core/market_adapter_service.js.map +1 -0
- package/dist/market_adapter/core/strategies/ama.d.ts +2 -0
- package/dist/market_adapter/core/strategies/ama.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/ama.js +138 -0
- package/dist/market_adapter/core/strategies/ama.js.map +1 -0
- package/dist/market_adapter/core/strategies/ama_slope_model.d.ts +50 -0
- package/dist/market_adapter/core/strategies/ama_slope_model.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/ama_slope_model.js +143 -0
- package/dist/market_adapter/core/strategies/ama_slope_model.js.map +1 -0
- package/dist/market_adapter/core/strategies/atr/calculator.d.ts +12 -0
- package/dist/market_adapter/core/strategies/atr/calculator.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/atr/calculator.js +47 -0
- package/dist/market_adapter/core/strategies/atr/calculator.js.map +1 -0
- package/dist/market_adapter/core/strategies/collateral_manager.d.ts +32 -0
- package/dist/market_adapter/core/strategies/collateral_manager.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/collateral_manager.js +68 -0
- package/dist/market_adapter/core/strategies/collateral_manager.js.map +1 -0
- package/dist/market_adapter/core/strategies/regime_gate.d.ts +66 -0
- package/dist/market_adapter/core/strategies/regime_gate.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/regime_gate.js +189 -0
- package/dist/market_adapter/core/strategies/regime_gate.js.map +1 -0
- package/dist/market_adapter/index.d.ts +10 -0
- package/dist/market_adapter/index.d.ts.map +1 -0
- package/dist/market_adapter/index.js +71 -0
- package/dist/market_adapter/index.js.map +1 -0
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.d.ts +3 -0
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.d.ts.map +1 -0
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js +1165 -0
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js.map +1 -0
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts +54 -0
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts.map +1 -0
- package/dist/market_adapter/inputs/fetch_lp_data.js +743 -0
- package/dist/market_adapter/inputs/fetch_lp_data.js.map +1 -0
- package/dist/market_adapter/inputs/kibana_source.d.ts +68 -0
- package/dist/market_adapter/inputs/kibana_source.d.ts.map +1 -0
- package/dist/market_adapter/inputs/kibana_source.js +143 -0
- package/dist/market_adapter/inputs/kibana_source.js.map +1 -0
- package/dist/market_adapter/interval_utils.d.ts +6 -0
- package/dist/market_adapter/interval_utils.d.ts.map +1 -0
- package/dist/market_adapter/interval_utils.js +14 -0
- package/dist/market_adapter/interval_utils.js.map +1 -0
- package/dist/market_adapter/log_format.d.ts +16 -0
- package/dist/market_adapter/log_format.d.ts.map +1 -0
- package/dist/market_adapter/log_format.js +72 -0
- package/dist/market_adapter/log_format.js.map +1 -0
- package/dist/market_adapter/lp_chart_core.d.ts +6 -0
- package/dist/market_adapter/lp_chart_core.d.ts.map +1 -0
- package/dist/market_adapter/lp_chart_core.js +874 -0
- package/dist/market_adapter/lp_chart_core.js.map +1 -0
- package/dist/market_adapter/lp_chart_runner.d.ts +135 -0
- package/dist/market_adapter/lp_chart_runner.d.ts.map +1 -0
- package/dist/market_adapter/lp_chart_runner.js +337 -0
- package/dist/market_adapter/lp_chart_runner.js.map +1 -0
- package/dist/market_adapter/lp_chart_strategy_loader.d.ts +23 -0
- package/dist/market_adapter/lp_chart_strategy_loader.d.ts.map +1 -0
- package/dist/market_adapter/lp_chart_strategy_loader.js +169 -0
- package/dist/market_adapter/lp_chart_strategy_loader.js.map +1 -0
- package/dist/market_adapter/market_adapter.d.ts +133 -0
- package/dist/market_adapter/market_adapter.d.ts.map +1 -0
- package/dist/market_adapter/market_adapter.js +1331 -0
- package/dist/market_adapter/market_adapter.js.map +1 -0
- package/dist/market_adapter/merge_lp_data.d.ts +3 -0
- package/dist/market_adapter/merge_lp_data.d.ts.map +1 -0
- package/dist/market_adapter/merge_lp_data.js +125 -0
- package/dist/market_adapter/merge_lp_data.js.map +1 -0
- package/dist/market_adapter/test_helpers.d.ts +14 -0
- package/dist/market_adapter/test_helpers.d.ts.map +1 -0
- package/dist/market_adapter/test_helpers.js +22 -0
- package/dist/market_adapter/test_helpers.js.map +1 -0
- package/dist/market_adapter/utils/adapter_client.d.ts +20 -0
- package/dist/market_adapter/utils/adapter_client.d.ts.map +1 -0
- package/dist/market_adapter/utils/adapter_client.js +88 -0
- package/dist/market_adapter/utils/adapter_client.js.map +1 -0
- package/dist/market_adapter/utils/atomic_write.d.ts +9 -0
- package/dist/market_adapter/utils/atomic_write.d.ts.map +1 -0
- package/dist/market_adapter/utils/atomic_write.js +13 -0
- package/dist/market_adapter/utils/atomic_write.js.map +1 -0
- package/dist/market_adapter/utils/chain.d.ts +50 -0
- package/dist/market_adapter/utils/chain.d.ts.map +1 -0
- package/dist/market_adapter/utils/chain.js +196 -0
- package/dist/market_adapter/utils/chain.js.map +1 -0
- package/dist/market_adapter/utils/data_discovery.d.ts +6 -0
- package/dist/market_adapter/utils/data_discovery.d.ts.map +1 -0
- package/dist/market_adapter/utils/data_discovery.js +35 -0
- package/dist/market_adapter/utils/data_discovery.js.map +1 -0
- package/dist/market_adapter/utils/dynamic_grid_snapshot.d.ts +15 -0
- package/dist/market_adapter/utils/dynamic_grid_snapshot.d.ts.map +1 -0
- package/dist/market_adapter/utils/dynamic_grid_snapshot.js +60 -0
- package/dist/market_adapter/utils/dynamic_grid_snapshot.js.map +1 -0
- package/dist/market_adapter/utils/file_lock.d.ts +19 -0
- package/dist/market_adapter/utils/file_lock.d.ts.map +1 -0
- package/dist/market_adapter/utils/file_lock.js +191 -0
- package/dist/market_adapter/utils/file_lock.js.map +1 -0
- package/dist/market_adapter/utils/native_history.d.ts +19 -0
- package/dist/market_adapter/utils/native_history.d.ts.map +1 -0
- package/dist/market_adapter/utils/native_history.js +172 -0
- package/dist/market_adapter/utils/native_history.js.map +1 -0
- package/dist/market_adapter/utils/paths.d.ts +5 -0
- package/dist/market_adapter/utils/paths.d.ts.map +1 -0
- package/dist/market_adapter/utils/paths.js +7 -0
- package/dist/market_adapter/utils/paths.js.map +1 -0
- package/dist/modules/account_bots.d.ts +112 -0
- package/dist/modules/account_bots.d.ts.map +1 -0
- package/dist/modules/account_bots.js +1259 -0
- package/dist/modules/account_bots.js.map +1 -0
- package/dist/modules/account_orders.d.ts +273 -0
- package/dist/modules/account_orders.d.ts.map +1 -0
- package/dist/modules/account_orders.js +662 -0
- package/dist/modules/account_orders.js.map +1 -0
- package/dist/modules/authority_resolver.d.ts +2 -0
- package/dist/modules/authority_resolver.d.ts.map +1 -0
- package/dist/modules/authority_resolver.js +231 -0
- package/dist/modules/authority_resolver.js.map +1 -0
- package/dist/modules/bitshares-native/chain_client.d.ts +38 -0
- package/dist/modules/bitshares-native/chain_client.d.ts.map +1 -0
- package/dist/modules/bitshares-native/chain_client.js +322 -0
- package/dist/modules/bitshares-native/chain_client.js.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts +59 -0
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc.browser.js +456 -0
- package/dist/modules/bitshares-native/crypto/ecc.browser.js.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc.d.ts +66 -0
- package/dist/modules/bitshares-native/crypto/ecc.d.ts.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc.js +557 -0
- package/dist/modules/bitshares-native/crypto/ecc.js.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc_selector.d.ts +2 -0
- package/dist/modules/bitshares-native/crypto/ecc_selector.d.ts.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc_selector.js +20 -0
- package/dist/modules/bitshares-native/crypto/ecc_selector.js.map +1 -0
- package/dist/modules/bitshares-native/index.d.ts +3 -0
- package/dist/modules/bitshares-native/index.d.ts.map +1 -0
- package/dist/modules/bitshares-native/index.js +32 -0
- package/dist/modules/bitshares-native/index.js.map +1 -0
- package/dist/modules/bitshares-native/resolvers.d.ts +40 -0
- package/dist/modules/bitshares-native/resolvers.d.ts.map +1 -0
- package/dist/modules/bitshares-native/resolvers.js +161 -0
- package/dist/modules/bitshares-native/resolvers.js.map +1 -0
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts +56 -0
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/chain_constants.js +92 -0
- package/dist/modules/bitshares-native/serial/chain_constants.js.map +1 -0
- package/dist/modules/bitshares-native/serial/index.d.ts +10 -0
- package/dist/modules/bitshares-native/serial/index.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/index.js +14 -0
- package/dist/modules/bitshares-native/serial/index.js.map +1 -0
- package/dist/modules/bitshares-native/serial/operations.d.ts +102 -0
- package/dist/modules/bitshares-native/serial/operations.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/operations.js +615 -0
- package/dist/modules/bitshares-native/serial/operations.js.map +1 -0
- package/dist/modules/bitshares-native/serial/serializer.d.ts +64 -0
- package/dist/modules/bitshares-native/serial/serializer.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/serializer.js +252 -0
- package/dist/modules/bitshares-native/serial/serializer.js.map +1 -0
- package/dist/modules/bitshares-native/serial/types.d.ts +120 -0
- package/dist/modules/bitshares-native/serial/types.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/types.js +837 -0
- package/dist/modules/bitshares-native/serial/types.js.map +1 -0
- package/dist/modules/bitshares-native/signing_client.d.ts +6 -0
- package/dist/modules/bitshares-native/signing_client.d.ts.map +1 -0
- package/dist/modules/bitshares-native/signing_client.js +141 -0
- package/dist/modules/bitshares-native/signing_client.js.map +1 -0
- package/dist/modules/bitshares-native/subscriptions.d.ts +6 -0
- package/dist/modules/bitshares-native/subscriptions.d.ts.map +1 -0
- package/dist/modules/bitshares-native/subscriptions.js +865 -0
- package/dist/modules/bitshares-native/subscriptions.js.map +1 -0
- package/dist/modules/bitshares-native/transport.d.ts +51 -0
- package/dist/modules/bitshares-native/transport.d.ts.map +1 -0
- package/dist/modules/bitshares-native/transport.js +447 -0
- package/dist/modules/bitshares-native/transport.js.map +1 -0
- package/dist/modules/bitshares-native/tx/builder.d.ts +30 -0
- package/dist/modules/bitshares-native/tx/builder.d.ts.map +1 -0
- package/dist/modules/bitshares-native/tx/builder.js +262 -0
- package/dist/modules/bitshares-native/tx/builder.js.map +1 -0
- package/dist/modules/bitshares_client.d.ts +129 -0
- package/dist/modules/bitshares_client.d.ts.map +1 -0
- package/dist/modules/bitshares_client.js +627 -0
- package/dist/modules/bitshares_client.js.map +1 -0
- package/dist/modules/bot_settings.d.ts +33 -0
- package/dist/modules/bot_settings.d.ts.map +1 -0
- package/dist/modules/bot_settings.js +328 -0
- package/dist/modules/bot_settings.js.map +1 -0
- package/dist/modules/bots_file_lock.d.ts +88 -0
- package/dist/modules/bots_file_lock.d.ts.map +1 -0
- package/dist/modules/bots_file_lock.js +161 -0
- package/dist/modules/bots_file_lock.js.map +1 -0
- package/dist/modules/chain_keys.d.ts +302 -0
- package/dist/modules/chain_keys.d.ts.map +1 -0
- package/dist/modules/chain_keys.js +1095 -0
- package/dist/modules/chain_keys.js.map +1 -0
- package/dist/modules/chain_orders.d.ts +423 -0
- package/dist/modules/chain_orders.d.ts.map +1 -0
- package/dist/modules/chain_orders.js +1201 -0
- package/dist/modules/chain_orders.js.map +1 -0
- package/dist/modules/cli_whitelist_args.d.ts +6 -0
- package/dist/modules/cli_whitelist_args.d.ts.map +1 -0
- package/dist/modules/cli_whitelist_args.js +13 -0
- package/dist/modules/cli_whitelist_args.js.map +1 -0
- package/dist/modules/config.d.ts +57 -0
- package/dist/modules/config.d.ts.map +1 -0
- package/dist/modules/config.js +107 -0
- package/dist/modules/config.js.map +1 -0
- package/dist/modules/constants.d.ts +635 -0
- package/dist/modules/constants.d.ts.map +1 -0
- package/dist/modules/constants.js +1464 -0
- package/dist/modules/constants.js.map +1 -0
- package/dist/modules/cr_planner.d.ts +51 -0
- package/dist/modules/cr_planner.d.ts.map +1 -0
- package/dist/modules/cr_planner.js +299 -0
- package/dist/modules/cr_planner.js.map +1 -0
- package/dist/modules/credential_policy.d.ts +188 -0
- package/dist/modules/credential_policy.d.ts.map +1 -0
- package/dist/modules/credential_policy.js +1452 -0
- package/dist/modules/credential_policy.js.map +1 -0
- package/dist/modules/credential_runtime.d.ts +42 -0
- package/dist/modules/credential_runtime.d.ts.map +1 -0
- package/dist/modules/credential_runtime.js +148 -0
- package/dist/modules/credential_runtime.js.map +1 -0
- package/dist/modules/credential_session_cache.d.ts +36 -0
- package/dist/modules/credential_session_cache.d.ts.map +1 -0
- package/dist/modules/credential_session_cache.js +106 -0
- package/dist/modules/credential_session_cache.js.map +1 -0
- package/dist/modules/credit_runtime.d.ts +412 -0
- package/dist/modules/credit_runtime.d.ts.map +1 -0
- package/dist/modules/credit_runtime.js +2866 -0
- package/dist/modules/credit_runtime.js.map +1 -0
- package/dist/modules/crypto/browser_provider.d.ts +15 -0
- package/dist/modules/crypto/browser_provider.d.ts.map +1 -0
- package/dist/modules/crypto/browser_provider.js +113 -0
- package/dist/modules/crypto/browser_provider.js.map +1 -0
- package/dist/modules/crypto/index.d.ts +9 -0
- package/dist/modules/crypto/index.d.ts.map +1 -0
- package/dist/modules/crypto/index.js +44 -0
- package/dist/modules/crypto/index.js.map +1 -0
- package/dist/modules/crypto/node_provider.d.ts +15 -0
- package/dist/modules/crypto/node_provider.d.ts.map +1 -0
- package/dist/modules/crypto/node_provider.js +74 -0
- package/dist/modules/crypto/node_provider.js.map +1 -0
- package/dist/modules/crypto/provider.d.ts +34 -0
- package/dist/modules/crypto/provider.d.ts.map +1 -0
- package/dist/modules/crypto/provider.js +3 -0
- package/dist/modules/crypto/provider.js.map +1 -0
- package/dist/modules/crypto/pure_ripemd160.d.ts +8 -0
- package/dist/modules/crypto/pure_ripemd160.d.ts.map +1 -0
- package/dist/modules/crypto/pure_ripemd160.js +142 -0
- package/dist/modules/crypto/pure_ripemd160.js.map +1 -0
- package/dist/modules/crypto/pure_scrypt.d.ts +23 -0
- package/dist/modules/crypto/pure_scrypt.d.ts.map +1 -0
- package/dist/modules/crypto/pure_scrypt.js +161 -0
- package/dist/modules/crypto/pure_scrypt.js.map +1 -0
- package/dist/modules/crypto/pure_secp256k1.d.ts +29 -0
- package/dist/modules/crypto/pure_secp256k1.d.ts.map +1 -0
- package/dist/modules/crypto/pure_secp256k1.js +195 -0
- package/dist/modules/crypto/pure_secp256k1.js.map +1 -0
- package/dist/modules/crypto/sync.d.ts +13 -0
- package/dist/modules/crypto/sync.d.ts.map +1 -0
- package/dist/modules/crypto/sync.js +37 -0
- package/dist/modules/crypto/sync.js.map +1 -0
- package/dist/modules/dexbot_class.d.ts +1074 -0
- package/dist/modules/dexbot_class.d.ts.map +1 -0
- package/dist/modules/dexbot_class.js +4613 -0
- package/dist/modules/dexbot_class.js.map +1 -0
- package/dist/modules/dexbot_credential_client.d.ts +71 -0
- package/dist/modules/dexbot_credential_client.d.ts.map +1 -0
- package/dist/modules/dexbot_credential_client.js +224 -0
- package/dist/modules/dexbot_credential_client.js.map +1 -0
- package/dist/modules/dexbot_fill_runtime.d.ts +173 -0
- package/dist/modules/dexbot_fill_runtime.d.ts.map +1 -0
- package/dist/modules/dexbot_fill_runtime.js +217 -0
- package/dist/modules/dexbot_fill_runtime.js.map +1 -0
- package/dist/modules/dexbot_maintenance_runtime.d.ts +279 -0
- package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -0
- package/dist/modules/dexbot_maintenance_runtime.js +1613 -0
- package/dist/modules/dexbot_maintenance_runtime.js.map +1 -0
- package/dist/modules/env.d.ts +12 -0
- package/dist/modules/env.d.ts.map +1 -0
- package/dist/modules/env.js +57 -0
- package/dist/modules/env.js.map +1 -0
- package/dist/modules/fund_registry.d.ts +96 -0
- package/dist/modules/fund_registry.d.ts.map +1 -0
- package/dist/modules/fund_registry.js +261 -0
- package/dist/modules/fund_registry.js.map +1 -0
- package/dist/modules/general_settings.d.ts +36 -0
- package/dist/modules/general_settings.d.ts.map +1 -0
- package/dist/modules/general_settings.js +63 -0
- package/dist/modules/general_settings.js.map +1 -0
- package/dist/modules/graceful_shutdown.d.ts +86 -0
- package/dist/modules/graceful_shutdown.d.ts.map +1 -0
- package/dist/modules/graceful_shutdown.js +164 -0
- package/dist/modules/graceful_shutdown.js.map +1 -0
- package/dist/modules/key_store.d.ts +60 -0
- package/dist/modules/key_store.d.ts.map +1 -0
- package/dist/modules/key_store.js +215 -0
- package/dist/modules/key_store.js.map +1 -0
- package/dist/modules/launcher/bot_supervisor.d.ts +84 -0
- package/dist/modules/launcher/bot_supervisor.d.ts.map +1 -0
- package/dist/modules/launcher/bot_supervisor.js +1067 -0
- package/dist/modules/launcher/bot_supervisor.js.map +1 -0
- package/dist/modules/launcher/child_env.d.ts +9 -0
- package/dist/modules/launcher/child_env.d.ts.map +1 -0
- package/dist/modules/launcher/child_env.js +78 -0
- package/dist/modules/launcher/child_env.js.map +1 -0
- package/dist/modules/launcher/credential_bootstrap.d.ts +22 -0
- package/dist/modules/launcher/credential_bootstrap.d.ts.map +1 -0
- package/dist/modules/launcher/credential_bootstrap.js +303 -0
- package/dist/modules/launcher/credential_bootstrap.js.map +1 -0
- package/dist/modules/launcher/credential_daemon.d.ts +32 -0
- package/dist/modules/launcher/credential_daemon.d.ts.map +1 -0
- package/dist/modules/launcher/credential_daemon.js +173 -0
- package/dist/modules/launcher/credential_daemon.js.map +1 -0
- package/dist/modules/launcher/credential_secret.d.ts +6 -0
- package/dist/modules/launcher/credential_secret.d.ts.map +1 -0
- package/dist/modules/launcher/credential_secret.js +15 -0
- package/dist/modules/launcher/credential_secret.js.map +1 -0
- package/dist/modules/launcher/foreign_cred_daemon.d.ts +2 -0
- package/dist/modules/launcher/foreign_cred_daemon.d.ts.map +1 -0
- package/dist/modules/launcher/foreign_cred_daemon.js +166 -0
- package/dist/modules/launcher/foreign_cred_daemon.js.map +1 -0
- package/dist/modules/launcher/headless_password.d.ts +8 -0
- package/dist/modules/launcher/headless_password.d.ts.map +1 -0
- package/dist/modules/launcher/headless_password.js +33 -0
- package/dist/modules/launcher/headless_password.js.map +1 -0
- package/dist/modules/launcher/launch_modes.d.ts +36 -0
- package/dist/modules/launcher/launch_modes.d.ts.map +1 -0
- package/dist/modules/launcher/launch_modes.js +129 -0
- package/dist/modules/launcher/launch_modes.js.map +1 -0
- package/dist/modules/launcher/market_adapter_runtime.d.ts +43 -0
- package/dist/modules/launcher/market_adapter_runtime.d.ts.map +1 -0
- package/dist/modules/launcher/market_adapter_runtime.js +217 -0
- package/dist/modules/launcher/market_adapter_runtime.js.map +1 -0
- package/dist/modules/launcher/market_adapter_watchdog.d.ts +26 -0
- package/dist/modules/launcher/market_adapter_watchdog.d.ts.map +1 -0
- package/dist/modules/launcher/market_adapter_watchdog.js +214 -0
- package/dist/modules/launcher/market_adapter_watchdog.js.map +1 -0
- package/dist/modules/launcher/monolithic_runtime.d.ts +89 -0
- package/dist/modules/launcher/monolithic_runtime.d.ts.map +1 -0
- package/dist/modules/launcher/monolithic_runtime.js +425 -0
- package/dist/modules/launcher/monolithic_runtime.js.map +1 -0
- package/dist/modules/launcher/runtime_entry.d.ts +26 -0
- package/dist/modules/launcher/runtime_entry.d.ts.map +1 -0
- package/dist/modules/launcher/runtime_entry.js +49 -0
- package/dist/modules/launcher/runtime_entry.js.map +1 -0
- package/dist/modules/launcher/status_reporting.d.ts +48 -0
- package/dist/modules/launcher/status_reporting.d.ts.map +1 -0
- package/dist/modules/launcher/status_reporting.js +113 -0
- package/dist/modules/launcher/status_reporting.js.map +1 -0
- package/dist/modules/launcher/supervisor_control.d.ts +6 -0
- package/dist/modules/launcher/supervisor_control.d.ts.map +1 -0
- package/dist/modules/launcher/supervisor_control.js +59 -0
- package/dist/modules/launcher/supervisor_control.js.map +1 -0
- package/dist/modules/logger.d.ts +2 -0
- package/dist/modules/logger.d.ts.map +1 -0
- package/dist/modules/logger.js +71 -0
- package/dist/modules/logger.js.map +1 -0
- package/dist/modules/market_adapter_whitelist.d.ts +22 -0
- package/dist/modules/market_adapter_whitelist.d.ts.map +1 -0
- package/dist/modules/market_adapter_whitelist.js +82 -0
- package/dist/modules/market_adapter_whitelist.js.map +1 -0
- package/dist/modules/node_health_cache.d.ts +55 -0
- package/dist/modules/node_health_cache.d.ts.map +1 -0
- package/dist/modules/node_health_cache.js +134 -0
- package/dist/modules/node_health_cache.js.map +1 -0
- package/dist/modules/node_manager.d.ts +215 -0
- package/dist/modules/node_manager.d.ts.map +1 -0
- package/dist/modules/node_manager.js +628 -0
- package/dist/modules/node_manager.js.map +1 -0
- package/dist/modules/order/accounting.d.ts +349 -0
- package/dist/modules/order/accounting.d.ts.map +1 -0
- package/dist/modules/order/accounting.js +1191 -0
- package/dist/modules/order/accounting.js.map +1 -0
- package/dist/modules/order/async_lock.d.ts +126 -0
- package/dist/modules/order/async_lock.d.ts.map +1 -0
- package/dist/modules/order/async_lock.js +195 -0
- package/dist/modules/order/async_lock.js.map +1 -0
- package/dist/modules/order/export.d.ts +129 -0
- package/dist/modules/order/export.d.ts.map +1 -0
- package/dist/modules/order/export.js +316 -0
- package/dist/modules/order/export.js.map +1 -0
- package/dist/modules/order/format.d.ts +158 -0
- package/dist/modules/order/format.d.ts.map +1 -0
- package/dist/modules/order/format.js +232 -0
- package/dist/modules/order/format.js.map +1 -0
- package/dist/modules/order/grid.d.ts +549 -0
- package/dist/modules/order/grid.d.ts.map +1 -0
- package/dist/modules/order/grid.js +1746 -0
- package/dist/modules/order/grid.js.map +1 -0
- package/dist/modules/order/grid_reconcile.d.ts +154 -0
- package/dist/modules/order/grid_reconcile.d.ts.map +1 -0
- package/dist/modules/order/grid_reconcile.js +1192 -0
- package/dist/modules/order/grid_reconcile.js.map +1 -0
- package/dist/modules/order/index.d.ts +55 -0
- package/dist/modules/order/index.d.ts.map +1 -0
- package/dist/modules/order/index.js +79 -0
- package/dist/modules/order/index.js.map +1 -0
- package/dist/modules/order/logger.d.ts +136 -0
- package/dist/modules/order/logger.d.ts.map +1 -0
- package/dist/modules/order/logger.js +614 -0
- package/dist/modules/order/logger.js.map +1 -0
- package/dist/modules/order/logger_state.d.ts +133 -0
- package/dist/modules/order/logger_state.d.ts.map +1 -0
- package/dist/modules/order/logger_state.js +170 -0
- package/dist/modules/order/logger_state.js.map +1 -0
- package/dist/modules/order/manager.d.ts +413 -0
- package/dist/modules/order/manager.d.ts.map +1 -0
- package/dist/modules/order/manager.js +1605 -0
- package/dist/modules/order/manager.js.map +1 -0
- package/dist/modules/order/processed_fill_store.d.ts +135 -0
- package/dist/modules/order/processed_fill_store.d.ts.map +1 -0
- package/dist/modules/order/processed_fill_store.js +288 -0
- package/dist/modules/order/processed_fill_store.js.map +1 -0
- package/dist/modules/order/runner.d.ts +70 -0
- package/dist/modules/order/runner.d.ts.map +1 -0
- package/dist/modules/order/runner.js +140 -0
- package/dist/modules/order/runner.js.map +1 -0
- package/dist/modules/order/strategy.d.ts +196 -0
- package/dist/modules/order/strategy.d.ts.map +1 -0
- package/dist/modules/order/strategy.js +398 -0
- package/dist/modules/order/strategy.js.map +1 -0
- package/dist/modules/order/sync_engine.d.ts +386 -0
- package/dist/modules/order/sync_engine.d.ts.map +1 -0
- package/dist/modules/order/sync_engine.js +1459 -0
- package/dist/modules/order/sync_engine.js.map +1 -0
- package/dist/modules/order/utils/math.d.ts +677 -0
- package/dist/modules/order/utils/math.d.ts.map +1 -0
- package/dist/modules/order/utils/math.js +1172 -0
- package/dist/modules/order/utils/math.js.map +1 -0
- package/dist/modules/order/utils/order.d.ts +572 -0
- package/dist/modules/order/utils/order.d.ts.map +1 -0
- package/dist/modules/order/utils/order.js +1145 -0
- package/dist/modules/order/utils/order.js.map +1 -0
- package/dist/modules/order/utils/system.d.ts +268 -0
- package/dist/modules/order/utils/system.d.ts.map +1 -0
- package/dist/modules/order/utils/system.js +1261 -0
- package/dist/modules/order/utils/system.js.map +1 -0
- package/dist/modules/order/utils/validate.d.ts +280 -0
- package/dist/modules/order/utils/validate.d.ts.map +1 -0
- package/dist/modules/order/utils/validate.js +918 -0
- package/dist/modules/order/utils/validate.js.map +1 -0
- package/dist/modules/order/working_grid.d.ts +212 -0
- package/dist/modules/order/working_grid.d.ts.map +1 -0
- package/dist/modules/order/working_grid.js +279 -0
- package/dist/modules/order/working_grid.js.map +1 -0
- package/dist/modules/path_api.d.ts +32 -0
- package/dist/modules/path_api.d.ts.map +1 -0
- package/dist/modules/path_api.js +148 -0
- package/dist/modules/path_api.js.map +1 -0
- package/dist/modules/paths.d.ts +58 -0
- package/dist/modules/paths.d.ts.map +1 -0
- package/dist/modules/paths.js +82 -0
- package/dist/modules/paths.js.map +1 -0
- package/dist/modules/process_discovery.d.ts +58 -0
- package/dist/modules/process_discovery.d.ts.map +1 -0
- package/dist/modules/process_discovery.js +265 -0
- package/dist/modules/process_discovery.js.map +1 -0
- package/dist/modules/runtime.d.ts +34 -0
- package/dist/modules/runtime.d.ts.map +1 -0
- package/dist/modules/runtime.js +98 -0
- package/dist/modules/runtime.js.map +1 -0
- package/dist/modules/runtime_settings.d.ts +12 -0
- package/dist/modules/runtime_settings.d.ts.map +1 -0
- package/dist/modules/runtime_settings.js +122 -0
- package/dist/modules/runtime_settings.js.map +1 -0
- package/dist/modules/settings_merge.d.ts +38 -0
- package/dist/modules/settings_merge.d.ts.map +1 -0
- package/dist/modules/settings_merge.js +246 -0
- package/dist/modules/settings_merge.js.map +1 -0
- package/dist/modules/storage/browser_adapter.d.ts +56 -0
- package/dist/modules/storage/browser_adapter.d.ts.map +1 -0
- package/dist/modules/storage/browser_adapter.js +231 -0
- package/dist/modules/storage/browser_adapter.js.map +1 -0
- package/dist/modules/storage/index.d.ts +28 -0
- package/dist/modules/storage/index.d.ts.map +1 -0
- package/dist/modules/storage/index.js +52 -0
- package/dist/modules/storage/index.js.map +1 -0
- package/dist/modules/storage/node_adapter.d.ts +49 -0
- package/dist/modules/storage/node_adapter.d.ts.map +1 -0
- package/dist/modules/storage/node_adapter.js +167 -0
- package/dist/modules/storage/node_adapter.js.map +1 -0
- package/dist/modules/storage/types.d.ts +92 -0
- package/dist/modules/storage/types.d.ts.map +1 -0
- package/dist/modules/storage/types.js +3 -0
- package/dist/modules/storage/types.js.map +1 -0
- package/dist/modules/types.d.ts +1382 -0
- package/dist/modules/types.d.ts.map +1 -0
- package/dist/modules/types.js +11 -0
- package/dist/modules/types.js.map +1 -0
- package/dist/modules/utils/base58check.d.ts +12 -0
- package/dist/modules/utils/base58check.d.ts.map +1 -0
- package/dist/modules/utils/base58check.js +112 -0
- package/dist/modules/utils/base58check.js.map +1 -0
- package/dist/modules/utils/build_dir.d.ts +7 -0
- package/dist/modules/utils/build_dir.d.ts.map +1 -0
- package/dist/modules/utils/build_dir.js +8 -0
- package/dist/modules/utils/build_dir.js.map +1 -0
- package/dist/modules/utils/fs_utils.d.ts +25 -0
- package/dist/modules/utils/fs_utils.d.ts.map +1 -0
- package/dist/modules/utils/fs_utils.js +27 -0
- package/dist/modules/utils/fs_utils.js.map +1 -0
- package/dist/modules/utils/math_utils.d.ts +10 -0
- package/dist/modules/utils/math_utils.d.ts.map +1 -0
- package/dist/modules/utils/math_utils.js +17 -0
- package/dist/modules/utils/math_utils.js.map +1 -0
- package/dist/modules/validate_profiles.d.ts +37 -0
- package/dist/modules/validate_profiles.d.ts.map +1 -0
- package/dist/modules/validate_profiles.js +369 -0
- package/dist/modules/validate_profiles.js.map +1 -0
- package/dist/pm2.d.ts +167 -0
- package/dist/pm2.d.ts.map +1 -0
- package/dist/pm2.js +998 -0
- package/dist/pm2.js.map +1 -0
- package/dist/scripts/analyze-git.d.ts +11 -0
- package/dist/scripts/analyze-git.d.ts.map +1 -0
- package/dist/scripts/analyze-git.js +851 -0
- package/dist/scripts/analyze-git.js.map +1 -0
- package/dist/scripts/analyze-orders.d.ts +17 -0
- package/dist/scripts/analyze-orders.d.ts.map +1 -0
- package/dist/scripts/analyze-orders.js +1568 -0
- package/dist/scripts/analyze-orders.js.map +1 -0
- package/dist/scripts/diagnose-kibana-candles.d.ts +3 -0
- package/dist/scripts/diagnose-kibana-candles.d.ts.map +1 -0
- package/dist/scripts/diagnose-kibana-candles.js +82 -0
- package/dist/scripts/diagnose-kibana-candles.js.map +1 -0
- package/dist/scripts/diagnose-pool-history.d.ts +3 -0
- package/dist/scripts/diagnose-pool-history.d.ts.map +1 -0
- package/dist/scripts/diagnose-pool-history.js +296 -0
- package/dist/scripts/diagnose-pool-history.js.map +1 -0
- package/dist/scripts/divergence-calc.d.ts +26 -0
- package/dist/scripts/divergence-calc.d.ts.map +1 -0
- package/dist/scripts/divergence-calc.js +119 -0
- package/dist/scripts/divergence-calc.js.map +1 -0
- package/dist/scripts/generate_lp_chart.d.ts +31 -0
- package/dist/scripts/generate_lp_chart.d.ts.map +1 -0
- package/dist/scripts/generate_lp_chart.js +92 -0
- package/dist/scripts/generate_lp_chart.js.map +1 -0
- package/dist/scripts/generate_mainnet_corpus_report.d.ts +24 -0
- package/dist/scripts/generate_mainnet_corpus_report.d.ts.map +1 -0
- package/dist/scripts/generate_mainnet_corpus_report.js +237 -0
- package/dist/scripts/generate_mainnet_corpus_report.js.map +1 -0
- package/dist/scripts/generate_market_adapter_whitelist.d.ts +2 -0
- package/dist/scripts/generate_market_adapter_whitelist.d.ts.map +1 -0
- package/dist/scripts/generate_market_adapter_whitelist.js +111 -0
- package/dist/scripts/generate_market_adapter_whitelist.js.map +1 -0
- package/dist/scripts/migrate_bot_keys.d.ts +6 -0
- package/dist/scripts/migrate_bot_keys.d.ts.map +1 -0
- package/dist/scripts/migrate_bot_keys.js +301 -0
- package/dist/scripts/migrate_bot_keys.js.map +1 -0
- package/dist/scripts/native_release_gates.d.ts +3 -0
- package/dist/scripts/native_release_gates.d.ts.map +1 -0
- package/dist/scripts/native_release_gates.js +52 -0
- package/dist/scripts/native_release_gates.js.map +1 -0
- package/dist/scripts/print_grid.d.ts +16 -0
- package/dist/scripts/print_grid.d.ts.map +1 -0
- package/dist/scripts/print_grid.js +80 -0
- package/dist/scripts/print_grid.js.map +1 -0
- package/dist/scripts/run-tests.d.ts +2 -0
- package/dist/scripts/run-tests.d.ts.map +1 -0
- package/dist/scripts/run-tests.js +49 -0
- package/dist/scripts/run-tests.js.map +1 -0
- package/dist/scripts/sync-version.d.ts +14 -0
- package/dist/scripts/sync-version.d.ts.map +1 -0
- package/dist/scripts/sync-version.js +158 -0
- package/dist/scripts/sync-version.js.map +1 -0
- package/dist/scripts/test-credit-renewal.d.ts +2 -0
- package/dist/scripts/test-credit-renewal.d.ts.map +1 -0
- package/dist/scripts/test-credit-renewal.js +329 -0
- package/dist/scripts/test-credit-renewal.js.map +1 -0
- package/dist/scripts/update.d.ts +24 -0
- package/dist/scripts/update.d.ts.map +1 -0
- package/dist/scripts/update.js +650 -0
- package/dist/scripts/update.js.map +1 -0
- package/dist/scripts/validate_bots.d.ts +16 -0
- package/dist/scripts/validate_bots.d.ts.map +1 -0
- package/dist/scripts/validate_bots.js +106 -0
- package/dist/scripts/validate_bots.js.map +1 -0
- package/dist/scripts/verify-browser-bundle.d.ts +22 -0
- package/dist/scripts/verify-browser-bundle.d.ts.map +1 -0
- package/dist/scripts/verify-browser-bundle.js +339 -0
- package/dist/scripts/verify-browser-bundle.js.map +1 -0
- package/dist/unlock.d.ts +48 -0
- package/dist/unlock.d.ts.map +1 -0
- package/dist/unlock.js +925 -0
- package/dist/unlock.js.map +1 -0
- package/package.json +112 -0
- package/scripts/README.md +356 -0
- package/scripts/clear-all.sh +195 -0
- package/scripts/clear-logs.sh +95 -0
- package/scripts/clear-market-adapter.sh +196 -0
- package/scripts/clear-orders.sh +113 -0
- package/scripts/create-bot-symlinks.sh +51 -0
- package/scripts/postinstall.js +9 -0
- package/scripts/reset-settings.sh +118 -0
|
@@ -0,0 +1,837 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const { getNodeRequire } = require('../../env');
|
|
3
|
+
const _require = getNodeRequire();
|
|
4
|
+
let _Buffer;
|
|
5
|
+
const Buffer = new Proxy({}, {
|
|
6
|
+
get(_, prop) {
|
|
7
|
+
if (!_Buffer && _require)
|
|
8
|
+
_Buffer = _require('buffer').Buffer;
|
|
9
|
+
return _Buffer ? _Buffer[prop] : undefined;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
const CC = require('./chain_constants');
|
|
13
|
+
const { BufferWriter, BufferReader } = require('./serializer');
|
|
14
|
+
const { RESERVED_SPACES, DB_MAX_INSTANCE_ID } = CC;
|
|
15
|
+
const isDigits = (v) => /^-?\d+$/.test(String(v));
|
|
16
|
+
const toNumber = (v) => {
|
|
17
|
+
if (typeof v === 'number')
|
|
18
|
+
return v;
|
|
19
|
+
return isDigits(v) ? Number(v) : NaN;
|
|
20
|
+
};
|
|
21
|
+
const int64ToSafeValue = (n) => (n >= BigInt(Number.MIN_SAFE_INTEGER) && n <= BigInt(Number.MAX_SAFE_INTEGER)
|
|
22
|
+
? Number(n)
|
|
23
|
+
: n.toString());
|
|
24
|
+
const unsigned = (v) => (v >>> 0);
|
|
25
|
+
const $required = (obj, name) => { if (obj == null)
|
|
26
|
+
throw new Error(`${name || 'value'} required`); };
|
|
27
|
+
const requireRange = (min, max, v, name) => {
|
|
28
|
+
if (v < min || v > max)
|
|
29
|
+
throw new Error(`${name || 'value'} out of range [${min}, ${max}]: ${v}`);
|
|
30
|
+
};
|
|
31
|
+
const strCmp = (a, b) => a > b ? 1 : a < b ? -1 : 0;
|
|
32
|
+
const firstEl = (el) => Array.isArray(el) ? el[0] : el;
|
|
33
|
+
function sortOperation(array, st_operation) {
|
|
34
|
+
if (!st_operation)
|
|
35
|
+
return array;
|
|
36
|
+
if (st_operation.compare) {
|
|
37
|
+
return array.sort((a, b) => st_operation.compare(firstEl(a), firstEl(b)));
|
|
38
|
+
}
|
|
39
|
+
if (st_operation.nosort)
|
|
40
|
+
return array;
|
|
41
|
+
return array.sort((a, b) => {
|
|
42
|
+
const fa = firstEl(a);
|
|
43
|
+
const fb = firstEl(b);
|
|
44
|
+
if (typeof fa === 'number' && typeof fb === 'number')
|
|
45
|
+
return fa - fb;
|
|
46
|
+
if (Buffer.isBuffer(fa) && Buffer.isBuffer(fb))
|
|
47
|
+
return strCmp(fa.toString('hex'), fb.toString('hex'));
|
|
48
|
+
return strCmp(String(fa), String(fb));
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
const void_type = {
|
|
52
|
+
fromByteBuffer() { return undefined; },
|
|
53
|
+
appendByteBuffer() { },
|
|
54
|
+
fromObject() { return undefined; },
|
|
55
|
+
toObject(object, debug) {
|
|
56
|
+
if (debug && debug.use_default && object === undefined)
|
|
57
|
+
return undefined;
|
|
58
|
+
return undefined;
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
const uint8 = {
|
|
62
|
+
fromByteBuffer(b) { return b.readUint8(); },
|
|
63
|
+
appendByteBuffer(b, v) { requireRange(0, 0xFF, v, 'uint8'); b.writeUint8(v); },
|
|
64
|
+
fromObject(v) { requireRange(0, 0xFF, v, 'uint8'); return v; },
|
|
65
|
+
toObject(v, debug) {
|
|
66
|
+
if (debug && debug.use_default && v === undefined)
|
|
67
|
+
return 0;
|
|
68
|
+
requireRange(0, 0xFF, v, 'uint8');
|
|
69
|
+
return parseInt(v, 10);
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
const uint16 = {
|
|
73
|
+
fromByteBuffer(b) { return b.readUint16(); },
|
|
74
|
+
appendByteBuffer(b, v) { requireRange(0, 0xFFFF, v, 'uint16'); b.writeUint16(v); },
|
|
75
|
+
fromObject(v) { requireRange(0, 0xFFFF, v, 'uint16'); return v; },
|
|
76
|
+
toObject(v, debug) {
|
|
77
|
+
if (debug && debug.use_default && v === undefined)
|
|
78
|
+
return 0;
|
|
79
|
+
requireRange(0, 0xFFFF, v, 'uint16');
|
|
80
|
+
return parseInt(v, 10);
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
const uint32 = {
|
|
84
|
+
fromByteBuffer(b) { return b.readUint32(); },
|
|
85
|
+
appendByteBuffer(b, v) { requireRange(0, 0xFFFFFFFF, v, 'uint32'); b.writeUint32(v); },
|
|
86
|
+
fromObject(v) { requireRange(0, 0xFFFFFFFF, v, 'uint32'); return v; },
|
|
87
|
+
toObject(v, debug) {
|
|
88
|
+
if (debug && debug.use_default && v === undefined)
|
|
89
|
+
return 0;
|
|
90
|
+
requireRange(0, 0xFFFFFFFF, v, 'uint32');
|
|
91
|
+
return parseInt(v, 10);
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
const varint32 = {
|
|
95
|
+
fromByteBuffer(b) { return b.readVarint32(); },
|
|
96
|
+
appendByteBuffer(b, v) {
|
|
97
|
+
requireRange(-2147483648, 2147483647, v, 'varint32');
|
|
98
|
+
b.writeVarint32(v);
|
|
99
|
+
},
|
|
100
|
+
fromObject(v) {
|
|
101
|
+
requireRange(-2147483648, 2147483647, v, 'varint32');
|
|
102
|
+
return v;
|
|
103
|
+
},
|
|
104
|
+
toObject(v, debug) {
|
|
105
|
+
if (debug && debug.use_default && v === undefined)
|
|
106
|
+
return 0;
|
|
107
|
+
requireRange(-2147483648, 2147483647, v, 'varint32');
|
|
108
|
+
return parseInt(v, 10);
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
const int64 = {
|
|
112
|
+
fromByteBuffer(b) { return b.readInt64(); },
|
|
113
|
+
appendByteBuffer(b, v) {
|
|
114
|
+
$required(v, 'int64');
|
|
115
|
+
const n = BigInt(String(v));
|
|
116
|
+
if (n < -0x8000000000000000n || n > 0x7fffffffffffffffn) {
|
|
117
|
+
throw new Error(`int64 out of range [-9223372036854775808, 9223372036854775807]: ${v}`);
|
|
118
|
+
}
|
|
119
|
+
b.writeInt64(n);
|
|
120
|
+
},
|
|
121
|
+
fromObject(v) {
|
|
122
|
+
$required(v, 'int64');
|
|
123
|
+
const n = BigInt(String(v));
|
|
124
|
+
if (n < -0x8000000000000000n || n > 0x7fffffffffffffffn) {
|
|
125
|
+
throw new Error(`int64 out of range [-9223372036854775808, 9223372036854775807]: ${v}`);
|
|
126
|
+
}
|
|
127
|
+
return int64ToSafeValue(n);
|
|
128
|
+
},
|
|
129
|
+
toObject(v, debug) {
|
|
130
|
+
if (debug && debug.use_default && v === undefined)
|
|
131
|
+
return '0';
|
|
132
|
+
$required(v, 'int64');
|
|
133
|
+
return String(v);
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
const uint64 = {
|
|
137
|
+
fromByteBuffer(b) { return b.readUint64(); },
|
|
138
|
+
appendByteBuffer(b, v) {
|
|
139
|
+
$required(v, 'uint64');
|
|
140
|
+
const n = BigInt(String(v));
|
|
141
|
+
if (n < 0n || n > 0xffffffffffffffffn) {
|
|
142
|
+
throw new Error(`uint64 out of range [0, 18446744073709551615]: ${v}`);
|
|
143
|
+
}
|
|
144
|
+
const buf = Buffer.allocUnsafe(8);
|
|
145
|
+
buf.writeBigUInt64LE(n, 0);
|
|
146
|
+
b.write(buf);
|
|
147
|
+
},
|
|
148
|
+
fromObject(v) {
|
|
149
|
+
$required(v, 'uint64');
|
|
150
|
+
const n = BigInt(String(v));
|
|
151
|
+
if (n < 0n || n > 0xffffffffffffffffn) {
|
|
152
|
+
throw new Error(`uint64 out of range [0, 18446744073709551615]: ${v}`);
|
|
153
|
+
}
|
|
154
|
+
return n <= BigInt(Number.MAX_SAFE_INTEGER) ? Number(n) : n.toString();
|
|
155
|
+
},
|
|
156
|
+
toObject(v, debug) {
|
|
157
|
+
if (debug && debug.use_default && v === undefined)
|
|
158
|
+
return '0';
|
|
159
|
+
$required(v, 'uint64');
|
|
160
|
+
const n = BigInt(String(v));
|
|
161
|
+
if (n < 0n || n > 0xffffffffffffffffn) {
|
|
162
|
+
throw new Error(`uint64 out of range [0, 18446744073709551615]: ${v}`);
|
|
163
|
+
}
|
|
164
|
+
return String(n);
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
const varuint64 = {
|
|
168
|
+
fromByteBuffer(b) { return b.readVarint64(); },
|
|
169
|
+
appendByteBuffer(b, v) { b.writeVarint64(BigInt(String(unsigned(v)))); },
|
|
170
|
+
fromObject(v) { return Number(BigInt(String(unsigned(v)))); },
|
|
171
|
+
toObject(v, debug) {
|
|
172
|
+
if (debug && debug.use_default && v === undefined)
|
|
173
|
+
return '0';
|
|
174
|
+
return String(unsigned(v));
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
const string_type = {
|
|
178
|
+
fromByteBuffer(b) {
|
|
179
|
+
const len = b.readVarint32();
|
|
180
|
+
const data = b.read(len);
|
|
181
|
+
return Buffer.from(data).toString('utf8');
|
|
182
|
+
},
|
|
183
|
+
appendByteBuffer(b, v) {
|
|
184
|
+
$required(v, 'string');
|
|
185
|
+
const buf = Buffer.from(String(v), 'utf8');
|
|
186
|
+
b.writeVarint32(buf.length);
|
|
187
|
+
b.write(buf);
|
|
188
|
+
},
|
|
189
|
+
fromObject(v) { $required(v, 'string'); return Buffer.from(String(v), 'utf8'); },
|
|
190
|
+
toObject(v, debug) {
|
|
191
|
+
if (debug && debug.use_default && v === undefined)
|
|
192
|
+
return '';
|
|
193
|
+
return String(v);
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
function bytesType(size) {
|
|
197
|
+
return {
|
|
198
|
+
fromByteBuffer(b) {
|
|
199
|
+
if (size === undefined) {
|
|
200
|
+
const len = b.readVarint32();
|
|
201
|
+
return b.read(len);
|
|
202
|
+
}
|
|
203
|
+
return b.read(size);
|
|
204
|
+
},
|
|
205
|
+
appendByteBuffer(b, v) {
|
|
206
|
+
$required(v, 'bytes');
|
|
207
|
+
let buf = Buffer.isBuffer(v) ? v : Buffer.from(String(v), 'hex');
|
|
208
|
+
if (size === undefined)
|
|
209
|
+
b.writeVarint32(buf.length);
|
|
210
|
+
b.write(buf);
|
|
211
|
+
},
|
|
212
|
+
fromObject(v) {
|
|
213
|
+
$required(v, 'bytes');
|
|
214
|
+
if (Buffer.isBuffer(v))
|
|
215
|
+
return v;
|
|
216
|
+
return Buffer.from(String(v), 'hex');
|
|
217
|
+
},
|
|
218
|
+
toObject(v, debug) {
|
|
219
|
+
if (debug && debug.use_default && v === undefined) {
|
|
220
|
+
if (size)
|
|
221
|
+
return '00'.repeat(size);
|
|
222
|
+
return '';
|
|
223
|
+
}
|
|
224
|
+
$required(v, 'bytes');
|
|
225
|
+
if (Buffer.isBuffer(v))
|
|
226
|
+
return v.toString('hex');
|
|
227
|
+
return String(v);
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
const bool_type = {
|
|
232
|
+
fromByteBuffer(b) { return b.readUint8() === 1; },
|
|
233
|
+
appendByteBuffer(b, v) { b.writeUint8(v ? 1 : 0); },
|
|
234
|
+
fromObject(v) { return !!v; },
|
|
235
|
+
toObject(v, debug) {
|
|
236
|
+
if (debug && debug.use_default && v === undefined)
|
|
237
|
+
return false;
|
|
238
|
+
return !!v;
|
|
239
|
+
},
|
|
240
|
+
};
|
|
241
|
+
function arrayType(st_operation) {
|
|
242
|
+
return {
|
|
243
|
+
fromByteBuffer(b) {
|
|
244
|
+
const size = b.readVarint32();
|
|
245
|
+
const result = [];
|
|
246
|
+
for (let i = 0; i < size; i++) {
|
|
247
|
+
result.push(st_operation.fromByteBuffer(b));
|
|
248
|
+
}
|
|
249
|
+
return result;
|
|
250
|
+
},
|
|
251
|
+
appendByteBuffer(b, v) {
|
|
252
|
+
$required(v, 'array');
|
|
253
|
+
b.writeVarint32(v.length);
|
|
254
|
+
for (const item of v) {
|
|
255
|
+
st_operation.appendByteBuffer(b, item);
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
fromObject(v) {
|
|
259
|
+
$required(v, 'array');
|
|
260
|
+
return v.map((item) => st_operation.fromObject(item));
|
|
261
|
+
},
|
|
262
|
+
toObject(v, debug) {
|
|
263
|
+
if (debug && debug.use_default && v === undefined) {
|
|
264
|
+
return [st_operation.toObject(undefined, debug)];
|
|
265
|
+
}
|
|
266
|
+
$required(v, 'array');
|
|
267
|
+
return v.map((item) => st_operation.toObject(item, debug));
|
|
268
|
+
},
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
const time_point_sec = {
|
|
272
|
+
fromByteBuffer(b) { return b.readUint32(); },
|
|
273
|
+
appendByteBuffer(b, v) {
|
|
274
|
+
if (typeof v !== 'number')
|
|
275
|
+
v = time_point_sec.fromObject(v);
|
|
276
|
+
b.writeUint32(v);
|
|
277
|
+
},
|
|
278
|
+
fromObject(v) {
|
|
279
|
+
$required(v, 'time_point_sec');
|
|
280
|
+
if (typeof v === 'number')
|
|
281
|
+
return v;
|
|
282
|
+
if (v instanceof Date)
|
|
283
|
+
return Math.floor(v.getTime() / 1000);
|
|
284
|
+
if (typeof v !== 'string')
|
|
285
|
+
throw new Error('Unknown date type: ' + v);
|
|
286
|
+
if (/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}$/.test(v))
|
|
287
|
+
v += 'Z';
|
|
288
|
+
return Math.floor(new Date(v).getTime() / 1000);
|
|
289
|
+
},
|
|
290
|
+
toObject(v, debug) {
|
|
291
|
+
if (debug && debug.use_default && v === undefined) {
|
|
292
|
+
return new Date(0).toISOString().split('.')[0];
|
|
293
|
+
}
|
|
294
|
+
$required(v, 'time_point_sec');
|
|
295
|
+
if (typeof v === 'string')
|
|
296
|
+
return v;
|
|
297
|
+
if (v instanceof Date)
|
|
298
|
+
return v.toISOString().split('.')[0];
|
|
299
|
+
const int = parseInt(v, 10);
|
|
300
|
+
requireRange(0, 0xFFFFFFFF, int, 'uint32');
|
|
301
|
+
return new Date(int * 1000).toISOString().split('.')[0];
|
|
302
|
+
},
|
|
303
|
+
};
|
|
304
|
+
function setType(st_operation) {
|
|
305
|
+
function validate(arr) {
|
|
306
|
+
const dup = {};
|
|
307
|
+
for (const item of arr) {
|
|
308
|
+
const key = (typeof item === 'number' || typeof item === 'string') ? item : undefined;
|
|
309
|
+
if (key !== undefined && dup[key] !== undefined) {
|
|
310
|
+
throw new Error('duplicate (set)');
|
|
311
|
+
}
|
|
312
|
+
if (key !== undefined)
|
|
313
|
+
dup[key] = true;
|
|
314
|
+
}
|
|
315
|
+
return sortOperation(arr, st_operation);
|
|
316
|
+
}
|
|
317
|
+
return {
|
|
318
|
+
validate,
|
|
319
|
+
fromByteBuffer(b) {
|
|
320
|
+
const size = b.readVarint32();
|
|
321
|
+
const result = [];
|
|
322
|
+
for (let i = 0; i < size; i++) {
|
|
323
|
+
result.push(st_operation.fromByteBuffer(b));
|
|
324
|
+
}
|
|
325
|
+
return validate(result);
|
|
326
|
+
},
|
|
327
|
+
appendByteBuffer(b, v) {
|
|
328
|
+
if (!v)
|
|
329
|
+
v = [];
|
|
330
|
+
const sorted = validate(v);
|
|
331
|
+
b.writeVarint32(sorted.length);
|
|
332
|
+
for (const item of sorted) {
|
|
333
|
+
st_operation.appendByteBuffer(b, item);
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
fromObject(v) {
|
|
337
|
+
if (!v)
|
|
338
|
+
v = [];
|
|
339
|
+
return validate(v.map((item) => st_operation.fromObject(item)));
|
|
340
|
+
},
|
|
341
|
+
toObject(v, debug) {
|
|
342
|
+
if (debug && debug.use_default && v === undefined) {
|
|
343
|
+
return [st_operation.toObject(undefined, debug)];
|
|
344
|
+
}
|
|
345
|
+
if (!v)
|
|
346
|
+
v = [];
|
|
347
|
+
return validate(v.map((item) => st_operation.toObject(item, debug)));
|
|
348
|
+
},
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
function fixedArrayType(count, st_operation) {
|
|
352
|
+
return {
|
|
353
|
+
fromByteBuffer(b) {
|
|
354
|
+
const result = [];
|
|
355
|
+
for (let i = 0; i < count; i++) {
|
|
356
|
+
result.push(st_operation.fromByteBuffer(b));
|
|
357
|
+
}
|
|
358
|
+
return result;
|
|
359
|
+
},
|
|
360
|
+
appendByteBuffer(b, v) {
|
|
361
|
+
if (count !== 0) {
|
|
362
|
+
$required(v, 'fixed_array');
|
|
363
|
+
}
|
|
364
|
+
for (let i = 0; i < count; i++) {
|
|
365
|
+
st_operation.appendByteBuffer(b, v ? v[i] : undefined);
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
fromObject(v) {
|
|
369
|
+
if (count !== 0)
|
|
370
|
+
$required(v, 'fixed_array');
|
|
371
|
+
const result = [];
|
|
372
|
+
for (let i = 0; i < count; i++) {
|
|
373
|
+
result.push(st_operation.fromObject(v ? v[i] : undefined));
|
|
374
|
+
}
|
|
375
|
+
return result;
|
|
376
|
+
},
|
|
377
|
+
toObject(v, debug) {
|
|
378
|
+
if (debug && debug.use_default && v === undefined) {
|
|
379
|
+
const result = [];
|
|
380
|
+
for (let i = 0; i < count; i++) {
|
|
381
|
+
result.push(st_operation.toObject(undefined, debug));
|
|
382
|
+
}
|
|
383
|
+
return result;
|
|
384
|
+
}
|
|
385
|
+
if (count !== 0)
|
|
386
|
+
$required(v, 'fixed_array');
|
|
387
|
+
const result = [];
|
|
388
|
+
for (let i = 0; i < count; i++) {
|
|
389
|
+
result.push(st_operation.toObject(v ? v[i] : undefined, debug));
|
|
390
|
+
}
|
|
391
|
+
return result;
|
|
392
|
+
},
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
function idType(reserved_spaces, object_type) {
|
|
396
|
+
const { OBJECT_TYPE } = require('./chain_constants');
|
|
397
|
+
const objectTypeId = OBJECT_TYPE[object_type] != null ? OBJECT_TYPE[object_type] : object_type;
|
|
398
|
+
return {
|
|
399
|
+
fromByteBuffer(b) { return b.readVarint32(); },
|
|
400
|
+
appendByteBuffer(b, v) {
|
|
401
|
+
$required(v, 'id_type');
|
|
402
|
+
if (/^\d+\.\d+\.\d+$/.test(String(v))) {
|
|
403
|
+
v = getInstance(reserved_spaces, object_type, v);
|
|
404
|
+
}
|
|
405
|
+
b.writeVarint32(toNumber(v));
|
|
406
|
+
},
|
|
407
|
+
fromObject(v) {
|
|
408
|
+
$required(v, 'id_type');
|
|
409
|
+
if (isDigits(v))
|
|
410
|
+
return toNumber(v);
|
|
411
|
+
return getInstance(reserved_spaces, object_type, v);
|
|
412
|
+
},
|
|
413
|
+
toObject(v, debug) {
|
|
414
|
+
if (debug && debug.use_default && v === undefined) {
|
|
415
|
+
return `${reserved_spaces}.${objectTypeId}.0`;
|
|
416
|
+
}
|
|
417
|
+
$required(v, 'id_type');
|
|
418
|
+
if (/^\d+\.\d+\.\d+$/.test(String(v))) {
|
|
419
|
+
v = getInstance(reserved_spaces, object_type, v);
|
|
420
|
+
}
|
|
421
|
+
return `${reserved_spaces}.${objectTypeId}.${v}`;
|
|
422
|
+
},
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
function getInstance(reserved_spaces, object_type, object) {
|
|
426
|
+
const parts = String(object).split('.');
|
|
427
|
+
if (parts.length !== 3)
|
|
428
|
+
throw new Error(`Invalid object ID: ${object}`);
|
|
429
|
+
return parseInt(parts[2], 10);
|
|
430
|
+
}
|
|
431
|
+
function protocolIdType(name) {
|
|
432
|
+
return idType(RESERVED_SPACES.protocol_ids, name);
|
|
433
|
+
}
|
|
434
|
+
const object_id_type = {
|
|
435
|
+
compare(a, b) {
|
|
436
|
+
if (a.space !== b.space)
|
|
437
|
+
return a.space - b.space;
|
|
438
|
+
if (a.type !== b.type)
|
|
439
|
+
return a.type - b.type;
|
|
440
|
+
const ai = typeof a.instance === 'bigint' ? a.instance : BigInt(a.instance);
|
|
441
|
+
const bi = typeof b.instance === 'bigint' ? b.instance : BigInt(b.instance);
|
|
442
|
+
return ai < bi ? -1 : ai > bi ? 1 : 0;
|
|
443
|
+
},
|
|
444
|
+
fromByteBuffer(b) {
|
|
445
|
+
const long = b.readUint64();
|
|
446
|
+
return ObjectId.fromLong(long);
|
|
447
|
+
},
|
|
448
|
+
appendByteBuffer(b, v) {
|
|
449
|
+
$required(v, 'object_id_type');
|
|
450
|
+
const obj = ObjectId.fromString(String(v));
|
|
451
|
+
obj.appendByteBuffer(b);
|
|
452
|
+
},
|
|
453
|
+
fromObject(v) {
|
|
454
|
+
$required(v, 'object_id_type');
|
|
455
|
+
return ObjectId.fromString(String(v));
|
|
456
|
+
},
|
|
457
|
+
toObject(v, debug) {
|
|
458
|
+
if (debug && debug.use_default && v === undefined)
|
|
459
|
+
return '0.0.0';
|
|
460
|
+
$required(v, 'object_id_type');
|
|
461
|
+
let obj = v;
|
|
462
|
+
if (obj instanceof ObjectId)
|
|
463
|
+
return obj.toString();
|
|
464
|
+
try {
|
|
465
|
+
obj = ObjectId.fromString(String(v));
|
|
466
|
+
}
|
|
467
|
+
catch (_) {
|
|
468
|
+
if (typeof v === 'number') {
|
|
469
|
+
obj = ObjectId.fromLong(v);
|
|
470
|
+
}
|
|
471
|
+
else {
|
|
472
|
+
throw new Error(`Invalid object_id: ${v}`);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
return obj.toString();
|
|
476
|
+
},
|
|
477
|
+
};
|
|
478
|
+
class ObjectId {
|
|
479
|
+
space;
|
|
480
|
+
type;
|
|
481
|
+
instance;
|
|
482
|
+
constructor(space, type, instance) {
|
|
483
|
+
this.space = Number(space);
|
|
484
|
+
this.type = Number(type);
|
|
485
|
+
this.instance = BigInt(String(instance));
|
|
486
|
+
if (!isDigits(String(instance)))
|
|
487
|
+
throw new Error('ObjectId instance must be digits');
|
|
488
|
+
}
|
|
489
|
+
static fromString(value) {
|
|
490
|
+
if (typeof value !== 'string' || value.split('.').length !== 3) {
|
|
491
|
+
throw new Error(`Invalid ObjectId: ${value}`);
|
|
492
|
+
}
|
|
493
|
+
const [space, type, instance] = value.split('.');
|
|
494
|
+
return new ObjectId(space, type, instance);
|
|
495
|
+
}
|
|
496
|
+
static fromLong(long) {
|
|
497
|
+
long = BigInt(long);
|
|
498
|
+
const space = Number((long >> 56n) & 0xffn);
|
|
499
|
+
const type = Number((long >> 48n) & 0xffn);
|
|
500
|
+
const instance = long & 0xffffffffffffn;
|
|
501
|
+
return new ObjectId(space, type, instance);
|
|
502
|
+
}
|
|
503
|
+
toString() {
|
|
504
|
+
return `${this.space}.${this.type}.${this.instance}`;
|
|
505
|
+
}
|
|
506
|
+
toLong() {
|
|
507
|
+
const space = BigInt(this.space) & 0xffn;
|
|
508
|
+
const type = BigInt(this.type) & 0xffn;
|
|
509
|
+
const instance = BigInt(this.instance) & 0xffffffffffffn;
|
|
510
|
+
return (space << 56n) | (type << 48n) | instance;
|
|
511
|
+
}
|
|
512
|
+
appendByteBuffer(b) {
|
|
513
|
+
const long = this.toLong();
|
|
514
|
+
const buf = Buffer.allocUnsafe(8);
|
|
515
|
+
buf.writeBigUInt64LE(long, 0);
|
|
516
|
+
b.write(buf);
|
|
517
|
+
}
|
|
518
|
+
toBuffer() {
|
|
519
|
+
const w = new BufferWriter();
|
|
520
|
+
this.appendByteBuffer(w);
|
|
521
|
+
return w.toBuffer();
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
function optionalType(st_operation) {
|
|
525
|
+
return {
|
|
526
|
+
fromByteBuffer(b) {
|
|
527
|
+
if (b.readUint8() !== 1)
|
|
528
|
+
return undefined;
|
|
529
|
+
return st_operation.fromByteBuffer(b);
|
|
530
|
+
},
|
|
531
|
+
appendByteBuffer(b, v) {
|
|
532
|
+
if (v !== null && v !== undefined) {
|
|
533
|
+
b.writeUint8(1);
|
|
534
|
+
st_operation.appendByteBuffer(b, v);
|
|
535
|
+
}
|
|
536
|
+
else {
|
|
537
|
+
b.writeUint8(0);
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
fromObject(v) {
|
|
541
|
+
if (v === undefined || v === null)
|
|
542
|
+
return undefined;
|
|
543
|
+
return st_operation.fromObject(v);
|
|
544
|
+
},
|
|
545
|
+
toObject(v, debug) {
|
|
546
|
+
if (!debug || !debug.use_default) {
|
|
547
|
+
if (v === undefined || v === null)
|
|
548
|
+
return undefined;
|
|
549
|
+
}
|
|
550
|
+
const result = st_operation.toObject(v, debug);
|
|
551
|
+
if (debug && debug.annotate) {
|
|
552
|
+
if (typeof result === 'object') {
|
|
553
|
+
result.__optional = 'parent is optional';
|
|
554
|
+
}
|
|
555
|
+
else {
|
|
556
|
+
return { __optional: result };
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
return result;
|
|
560
|
+
},
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
function extensionType(fields_def) {
|
|
564
|
+
return {
|
|
565
|
+
fromByteBuffer(b) {
|
|
566
|
+
const count = b.readVarint32();
|
|
567
|
+
if (count === 0)
|
|
568
|
+
return undefined;
|
|
569
|
+
const o = {};
|
|
570
|
+
for (let i = 0; i < count; i++) {
|
|
571
|
+
const index = b.readVarint32();
|
|
572
|
+
if (index >= fields_def.length)
|
|
573
|
+
throw new Error('extension index out of range: ' + index);
|
|
574
|
+
const field = fields_def[index];
|
|
575
|
+
o[field.name] = field.type.fromByteBuffer(b);
|
|
576
|
+
}
|
|
577
|
+
return o;
|
|
578
|
+
},
|
|
579
|
+
appendByteBuffer(b, v) {
|
|
580
|
+
const temp = new BufferWriter();
|
|
581
|
+
let count = 0;
|
|
582
|
+
if (v) {
|
|
583
|
+
fields_def.forEach((f, i) => {
|
|
584
|
+
if (v[f.name] !== undefined && v[f.name] !== null) {
|
|
585
|
+
temp.writeVarint32(i);
|
|
586
|
+
f.type.appendByteBuffer(temp, v[f.name]);
|
|
587
|
+
count++;
|
|
588
|
+
}
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
b.writeVarint32(count);
|
|
592
|
+
b.append(temp);
|
|
593
|
+
},
|
|
594
|
+
fromObject(v) {
|
|
595
|
+
if (v === undefined)
|
|
596
|
+
return undefined;
|
|
597
|
+
const result = {};
|
|
598
|
+
fields_def.forEach((f) => {
|
|
599
|
+
if (v[f.name] !== undefined && v[f.name] !== null) {
|
|
600
|
+
result[f.name] = f.type.fromObject(v[f.name]);
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
return result;
|
|
604
|
+
},
|
|
605
|
+
toObject(v, debug) {
|
|
606
|
+
if (v === undefined)
|
|
607
|
+
return undefined;
|
|
608
|
+
const result = {};
|
|
609
|
+
fields_def.forEach((f) => {
|
|
610
|
+
if (v[f.name] !== undefined && v[f.name] !== null) {
|
|
611
|
+
result[f.name] = f.type.toObject(v[f.name], debug);
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
return result;
|
|
615
|
+
},
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
function staticVariantType(st_operations) {
|
|
619
|
+
return {
|
|
620
|
+
nosort: true,
|
|
621
|
+
st_operations,
|
|
622
|
+
compare(a, b) {
|
|
623
|
+
return Number(a) - Number(b);
|
|
624
|
+
},
|
|
625
|
+
fromByteBuffer(b) {
|
|
626
|
+
const type_id = b.readVarint32();
|
|
627
|
+
const st_operation = this.st_operations[type_id];
|
|
628
|
+
if (!st_operation)
|
|
629
|
+
throw new Error(`Unknown static_variant type: ${type_id}`);
|
|
630
|
+
return [type_id, st_operation.fromByteBuffer(b)];
|
|
631
|
+
},
|
|
632
|
+
appendByteBuffer(b, v) {
|
|
633
|
+
$required(v, 'static_variant');
|
|
634
|
+
const type_id = v[0];
|
|
635
|
+
const st_operation = this.st_operations[type_id];
|
|
636
|
+
if (!st_operation)
|
|
637
|
+
throw new Error(`Unknown static_variant type: ${type_id}`);
|
|
638
|
+
b.writeVarint32(type_id);
|
|
639
|
+
st_operation.appendByteBuffer(b, v[1]);
|
|
640
|
+
},
|
|
641
|
+
fromObject(v) {
|
|
642
|
+
$required(v, 'static_variant');
|
|
643
|
+
const type_id = v[0];
|
|
644
|
+
const st_operation = this.st_operations[type_id];
|
|
645
|
+
if (!st_operation)
|
|
646
|
+
throw new Error(`Unknown static_variant type: ${type_id}`);
|
|
647
|
+
return [type_id, st_operation.fromObject(v[1])];
|
|
648
|
+
},
|
|
649
|
+
toObject(v, debug) {
|
|
650
|
+
if (debug && debug.use_default && v === undefined) {
|
|
651
|
+
const sto = this.st_operations[0];
|
|
652
|
+
if (!sto)
|
|
653
|
+
throw new Error('Unknown static_variant type: 0');
|
|
654
|
+
return [0, sto.toObject(undefined, debug)];
|
|
655
|
+
}
|
|
656
|
+
$required(v, 'static_variant');
|
|
657
|
+
const type_id = v[0];
|
|
658
|
+
const st_operation = this.st_operations[type_id];
|
|
659
|
+
if (!st_operation)
|
|
660
|
+
throw new Error(`Unknown static_variant type: ${type_id}`);
|
|
661
|
+
return [type_id, st_operation.toObject(v[1], debug)];
|
|
662
|
+
},
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
function mapType(key_st_operation, value_st_operation) {
|
|
666
|
+
function validate(arr) {
|
|
667
|
+
if (!Array.isArray(arr))
|
|
668
|
+
throw new Error('expecting array');
|
|
669
|
+
const dup = {};
|
|
670
|
+
for (const o of arr) {
|
|
671
|
+
if (!(o.length === 2))
|
|
672
|
+
throw new Error('expecting two elements');
|
|
673
|
+
const k = o[0];
|
|
674
|
+
if (typeof k === 'number' || typeof k === 'string') {
|
|
675
|
+
if (dup[k] !== undefined)
|
|
676
|
+
throw new Error('duplicate (map)');
|
|
677
|
+
dup[k] = true;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
return sortOperation(arr, key_st_operation);
|
|
681
|
+
}
|
|
682
|
+
return {
|
|
683
|
+
validate,
|
|
684
|
+
fromByteBuffer(b) {
|
|
685
|
+
const size = b.readVarint32();
|
|
686
|
+
const result = [];
|
|
687
|
+
for (let i = 0; i < size; i++) {
|
|
688
|
+
result.push([key_st_operation.fromByteBuffer(b), value_st_operation.fromByteBuffer(b)]);
|
|
689
|
+
}
|
|
690
|
+
return validate(result);
|
|
691
|
+
},
|
|
692
|
+
appendByteBuffer(b, v) {
|
|
693
|
+
validate(v);
|
|
694
|
+
b.writeVarint32(v.length);
|
|
695
|
+
for (const [k, val] of v) {
|
|
696
|
+
key_st_operation.appendByteBuffer(b, k);
|
|
697
|
+
value_st_operation.appendByteBuffer(b, val);
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
fromObject(v) {
|
|
701
|
+
$required(v, 'map');
|
|
702
|
+
const result = v.map(([k, val]) => [
|
|
703
|
+
key_st_operation.fromObject(k),
|
|
704
|
+
value_st_operation.fromObject(val),
|
|
705
|
+
]);
|
|
706
|
+
return validate(result);
|
|
707
|
+
},
|
|
708
|
+
toObject(v, debug) {
|
|
709
|
+
if (debug && debug.use_default && v === undefined) {
|
|
710
|
+
return [[key_st_operation.toObject(undefined, debug), value_st_operation.toObject(undefined, debug)]];
|
|
711
|
+
}
|
|
712
|
+
$required(v, 'map');
|
|
713
|
+
return validate(v.map(([k, val]) => [
|
|
714
|
+
key_st_operation.toObject(k, debug),
|
|
715
|
+
value_st_operation.toObject(val, debug),
|
|
716
|
+
]));
|
|
717
|
+
},
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
const vote_id = {
|
|
721
|
+
TYPE: 0x000000FF,
|
|
722
|
+
ID: 0xFFFFFF00,
|
|
723
|
+
fromByteBuffer(b) {
|
|
724
|
+
const val = b.readUint32();
|
|
725
|
+
return { type: val & this.TYPE, id: (val & this.ID) >>> 8 };
|
|
726
|
+
},
|
|
727
|
+
appendByteBuffer(b, v) {
|
|
728
|
+
$required(v, 'vote_id');
|
|
729
|
+
if (typeof v === 'string')
|
|
730
|
+
v = vote_id.fromObject(v);
|
|
731
|
+
b.writeUint32((v.id << 8) | v.type);
|
|
732
|
+
},
|
|
733
|
+
fromObject(v) {
|
|
734
|
+
$required(v, 'vote_id');
|
|
735
|
+
if (typeof v === 'object')
|
|
736
|
+
return v;
|
|
737
|
+
const [type, id] = String(v).split(':');
|
|
738
|
+
return { type: parseInt(type, 10), id: parseInt(id, 10) };
|
|
739
|
+
},
|
|
740
|
+
toObject(v, debug) {
|
|
741
|
+
if (debug && debug.use_default && v === undefined)
|
|
742
|
+
return '0:0';
|
|
743
|
+
$required(v, 'vote_id');
|
|
744
|
+
if (typeof v === 'string')
|
|
745
|
+
v = vote_id.fromObject(v);
|
|
746
|
+
return `${v.type}:${v.id}`;
|
|
747
|
+
},
|
|
748
|
+
compare(a, b) {
|
|
749
|
+
if (typeof a !== 'object')
|
|
750
|
+
a = vote_id.fromObject(a);
|
|
751
|
+
if (typeof b !== 'object')
|
|
752
|
+
b = vote_id.fromObject(b);
|
|
753
|
+
return parseInt(a.id, 10) - parseInt(b.id, 10);
|
|
754
|
+
},
|
|
755
|
+
};
|
|
756
|
+
const public_key_type = {
|
|
757
|
+
_toPublic() {
|
|
758
|
+
throw new Error('public_key type requires ecc module - import from index');
|
|
759
|
+
},
|
|
760
|
+
fromByteBuffer(b) {
|
|
761
|
+
return b.read(33);
|
|
762
|
+
},
|
|
763
|
+
appendByteBuffer(b, v) {
|
|
764
|
+
$required(v, 'public_key');
|
|
765
|
+
const buf = Buffer.isBuffer(v) ? v : Buffer.from(v, 'hex');
|
|
766
|
+
b.write(buf);
|
|
767
|
+
},
|
|
768
|
+
fromObject(v) {
|
|
769
|
+
$required(v, 'public_key');
|
|
770
|
+
if (Buffer.isBuffer(v))
|
|
771
|
+
return v;
|
|
772
|
+
return Buffer.from(v, 'hex');
|
|
773
|
+
},
|
|
774
|
+
toObject(v, debug) {
|
|
775
|
+
if (debug && debug.use_default && v === undefined)
|
|
776
|
+
return '';
|
|
777
|
+
$required(v, 'public_key');
|
|
778
|
+
if (Buffer.isBuffer(v))
|
|
779
|
+
return v.toString('hex');
|
|
780
|
+
return String(v);
|
|
781
|
+
},
|
|
782
|
+
};
|
|
783
|
+
const address_type = {
|
|
784
|
+
fromByteBuffer(b) { return b.read(20); },
|
|
785
|
+
appendByteBuffer(b, v) {
|
|
786
|
+
$required(v, 'address');
|
|
787
|
+
const buf = Buffer.isBuffer(v) ? v : Buffer.from(v, 'hex');
|
|
788
|
+
b.write(buf);
|
|
789
|
+
},
|
|
790
|
+
fromObject(v) {
|
|
791
|
+
$required(v, 'address');
|
|
792
|
+
if (Buffer.isBuffer(v))
|
|
793
|
+
return v;
|
|
794
|
+
return Buffer.from(v, 'hex');
|
|
795
|
+
},
|
|
796
|
+
toObject(v, debug) {
|
|
797
|
+
if (debug && debug.use_default && v === undefined)
|
|
798
|
+
return '';
|
|
799
|
+
$required(v, 'address');
|
|
800
|
+
if (Buffer.isBuffer(v))
|
|
801
|
+
return v.toString('hex');
|
|
802
|
+
return String(v);
|
|
803
|
+
},
|
|
804
|
+
};
|
|
805
|
+
module.exports = {
|
|
806
|
+
void: void_type,
|
|
807
|
+
uint8,
|
|
808
|
+
uint16,
|
|
809
|
+
uint32,
|
|
810
|
+
varint32,
|
|
811
|
+
int64,
|
|
812
|
+
uint64,
|
|
813
|
+
varuint64,
|
|
814
|
+
string: string_type,
|
|
815
|
+
bytes: bytesType,
|
|
816
|
+
bool: bool_type,
|
|
817
|
+
array: arrayType,
|
|
818
|
+
time_point_sec,
|
|
819
|
+
set: setType,
|
|
820
|
+
fixed_array: fixedArrayType,
|
|
821
|
+
id_type: idType,
|
|
822
|
+
protocol_id_type: protocolIdType,
|
|
823
|
+
object_id_type,
|
|
824
|
+
vote_id,
|
|
825
|
+
optional: optionalType,
|
|
826
|
+
extension: extensionType,
|
|
827
|
+
static_variant: staticVariantType,
|
|
828
|
+
map: mapType,
|
|
829
|
+
public_key: public_key_type,
|
|
830
|
+
address: address_type,
|
|
831
|
+
future_extensions: void_type,
|
|
832
|
+
ObjectId,
|
|
833
|
+
sortOperation,
|
|
834
|
+
firstEl,
|
|
835
|
+
strCmp,
|
|
836
|
+
};
|
|
837
|
+
//# sourceMappingURL=types.js.map
|