dexbot 1.6.2 → 1.6.4
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/CHANGELOG.md +53 -3
- package/README.md +11 -7
- package/analysis/README.md +20 -14
- package/analysis/account_resolver.ts +171 -0
- package/analysis/ama_fitting/analyze_lambda_vs_slow.ts +2 -5
- package/analysis/ama_fitting/package.json +1 -1
- package/analysis/bot_usage/discover_bot_accounts.ts +20 -27
- package/analysis/chain_pool.ts +47 -0
- package/analysis/chart_utils.ts +33 -20
- package/analysis/derivative_chart_generator.ts +2 -3
- package/analysis/fills_source.ts +234 -0
- package/analysis/grid_correction_check.ts +104 -244
- package/analysis/results/ama_sweep_results_lp_pool_133_1h.json +2455 -0
- package/analysis/results/bot_fitting_results_lp_pool_133_1h.json +218 -0
- package/analysis/trade_profitability.ts +169 -304
- package/analysis/tradingview/README.md +2 -2
- package/analysis/tradingview/h-bts_tradingview.html +1570 -0
- package/analysis/tradingview/t-bts_tradingview.html +1570 -0
- package/analysis/tradingview/tradingview_uplot_chart_generator.ts +3 -4
- package/analysis/trend_detection/dynamic_weight_chart_generator.ts +2 -3
- package/analysis/trend_detection/kalman_chart_generator.ts +2 -3
- package/analysis/trend_detection/package.json +1 -1
- package/analysis/trend_detection/regime_chart_generator.ts +2 -3
- package/analysis/trend_detection/volatility_chart_generator.ts +2 -3
- package/claw/package.json +1 -1
- package/claw/runtimes/openclaw-plugin/openclaw.plugin.json +1 -1
- package/claw/runtimes/openclaw-plugin/package.json +1 -1
- package/claw/tests/test_claw_mcp_transport.ts +2 -2
- package/dist/analysis/account_resolver.d.ts +43 -0
- package/dist/analysis/account_resolver.d.ts.map +1 -0
- package/dist/analysis/account_resolver.js +137 -0
- package/dist/analysis/account_resolver.js.map +1 -0
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.d.ts.map +1 -1
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.js +2 -4
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.js.map +1 -1
- package/dist/analysis/bot_usage/discover_bot_accounts.js +20 -28
- package/dist/analysis/bot_usage/discover_bot_accounts.js.map +1 -1
- package/dist/analysis/chain_pool.d.ts +10 -0
- package/dist/analysis/chain_pool.d.ts.map +1 -0
- package/dist/analysis/chain_pool.js +47 -0
- package/dist/analysis/chain_pool.js.map +1 -0
- package/dist/analysis/chart_utils.d.ts +14 -1
- package/dist/analysis/chart_utils.d.ts.map +1 -1
- package/dist/analysis/chart_utils.js +32 -22
- package/dist/analysis/chart_utils.js.map +1 -1
- package/dist/analysis/derivative_chart_generator.d.ts.map +1 -1
- package/dist/analysis/derivative_chart_generator.js +2 -3
- package/dist/analysis/derivative_chart_generator.js.map +1 -1
- package/dist/analysis/fills_source.d.ts +79 -0
- package/dist/analysis/fills_source.d.ts.map +1 -0
- package/dist/analysis/fills_source.js +186 -0
- package/dist/analysis/fills_source.js.map +1 -0
- package/dist/analysis/grid_correction_check.d.ts +4 -20
- package/dist/analysis/grid_correction_check.d.ts.map +1 -1
- package/dist/analysis/grid_correction_check.js +95 -248
- package/dist/analysis/grid_correction_check.js.map +1 -1
- package/dist/analysis/trade_profitability.d.ts +18 -19
- package/dist/analysis/trade_profitability.d.ts.map +1 -1
- package/dist/analysis/trade_profitability.js +136 -280
- package/dist/analysis/trade_profitability.js.map +1 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts.map +1 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js +3 -4
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js.map +1 -1
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.d.ts.map +1 -1
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.js +2 -3
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.js.map +1 -1
- package/dist/analysis/trend_detection/kalman_chart_generator.d.ts.map +1 -1
- package/dist/analysis/trend_detection/kalman_chart_generator.js +2 -3
- package/dist/analysis/trend_detection/kalman_chart_generator.js.map +1 -1
- package/dist/analysis/trend_detection/regime_chart_generator.d.ts.map +1 -1
- package/dist/analysis/trend_detection/regime_chart_generator.js +2 -3
- package/dist/analysis/trend_detection/regime_chart_generator.js.map +1 -1
- package/dist/analysis/trend_detection/volatility_chart_generator.d.ts.map +1 -1
- package/dist/analysis/trend_detection/volatility_chart_generator.js +2 -3
- package/dist/analysis/trend_detection/volatility_chart_generator.js.map +1 -1
- package/dist/market_adapter/lp_chart_core.d.ts.map +1 -1
- package/dist/market_adapter/lp_chart_core.js +2 -3
- package/dist/market_adapter/lp_chart_core.js.map +1 -1
- package/dist/modules/account_bots.d.ts +1 -18
- package/dist/modules/account_bots.d.ts.map +1 -1
- package/dist/modules/account_bots.js +1 -1
- package/dist/modules/account_bots.js.map +1 -1
- package/dist/modules/bitshares-native/serial/operations.d.ts +1 -84
- package/dist/modules/bitshares-native/serial/operations.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/operations.js +1 -38
- package/dist/modules/bitshares-native/serial/operations.js.map +1 -1
- package/dist/modules/cli_colors.d.ts +0 -1
- package/dist/modules/cli_colors.d.ts.map +1 -1
- package/dist/modules/constants.js +5 -5
- package/dist/modules/constants.js.map +1 -1
- package/dist/modules/credential_policy.d.ts +1 -25
- package/dist/modules/credential_policy.d.ts.map +1 -1
- package/dist/modules/credential_policy.js +1 -1
- package/dist/modules/credential_policy.js.map +1 -1
- package/dist/modules/credential_runtime.d.ts +1 -6
- package/dist/modules/credential_runtime.d.ts.map +1 -1
- package/dist/modules/credential_runtime.js +1 -1
- package/dist/modules/credential_runtime.js.map +1 -1
- package/dist/modules/credential_session_cache.d.ts +1 -5
- package/dist/modules/credential_session_cache.d.ts.map +1 -1
- package/dist/modules/credential_session_cache.js +1 -1
- package/dist/modules/credential_session_cache.js.map +1 -1
- package/dist/modules/crypto/pure_secp256k1.d.ts +1 -2
- package/dist/modules/crypto/pure_secp256k1.d.ts.map +1 -1
- package/dist/modules/crypto/pure_secp256k1.js +1 -1
- package/dist/modules/crypto/pure_secp256k1.js.map +1 -1
- package/dist/modules/dexbot_class.d.ts +9 -8
- package/dist/modules/dexbot_class.d.ts.map +1 -1
- package/dist/modules/dexbot_class.js +9 -8
- package/dist/modules/dexbot_class.js.map +1 -1
- package/dist/modules/dexbot_cow_runtime.d.ts +87 -7
- package/dist/modules/dexbot_cow_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_cow_runtime.js +489 -14
- package/dist/modules/dexbot_cow_runtime.js.map +1 -1
- package/dist/modules/dexbot_fill_runtime.d.ts +1 -17
- package/dist/modules/dexbot_fill_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_fill_runtime.js +1 -1
- package/dist/modules/dexbot_fill_runtime.js.map +1 -1
- package/dist/modules/dexbot_maintenance_runtime.d.ts +1 -1
- package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_maintenance_runtime.js +21 -5
- package/dist/modules/dexbot_maintenance_runtime.js.map +1 -1
- package/dist/modules/dexbot_state_recovery.d.ts +1 -7
- package/dist/modules/dexbot_state_recovery.d.ts.map +1 -1
- package/dist/modules/dexbot_state_recovery.js +1 -1
- package/dist/modules/dexbot_state_recovery.js.map +1 -1
- package/dist/modules/launcher/adapter_requirement.d.ts +1 -5
- package/dist/modules/launcher/adapter_requirement.d.ts.map +1 -1
- package/dist/modules/launcher/adapter_requirement.js +1 -1
- package/dist/modules/launcher/adapter_requirement.js.map +1 -1
- package/dist/modules/launcher/bot_supervisor.d.ts +1 -6
- package/dist/modules/launcher/bot_supervisor.d.ts.map +1 -1
- package/dist/modules/launcher/bot_supervisor.js +1 -1
- package/dist/modules/launcher/bot_supervisor.js.map +1 -1
- package/dist/modules/launcher/foreign_cred_daemon.d.ts +1 -3
- package/dist/modules/launcher/foreign_cred_daemon.d.ts.map +1 -1
- package/dist/modules/launcher/foreign_cred_daemon.js +1 -1
- package/dist/modules/launcher/foreign_cred_daemon.js.map +1 -1
- package/dist/modules/launcher/launch_modes.d.ts +1 -2
- package/dist/modules/launcher/launch_modes.d.ts.map +1 -1
- package/dist/modules/launcher/launch_modes.js +1 -1
- package/dist/modules/launcher/launch_modes.js.map +1 -1
- package/dist/modules/launcher/market_adapter_runtime.d.ts +1 -3
- package/dist/modules/launcher/market_adapter_runtime.d.ts.map +1 -1
- package/dist/modules/launcher/market_adapter_runtime.js +1 -1
- package/dist/modules/launcher/market_adapter_runtime.js.map +1 -1
- package/dist/modules/launcher/monolithic_runtime.d.ts +1 -5
- package/dist/modules/launcher/monolithic_runtime.d.ts.map +1 -1
- package/dist/modules/launcher/monolithic_runtime.js +1 -1
- package/dist/modules/launcher/monolithic_runtime.js.map +1 -1
- package/dist/modules/launcher/status_reporting.d.ts +1 -2
- package/dist/modules/launcher/status_reporting.d.ts.map +1 -1
- package/dist/modules/launcher/status_reporting.js +1 -1
- package/dist/modules/launcher/status_reporting.js.map +1 -1
- package/dist/modules/order/export.d.ts +1 -8
- package/dist/modules/order/export.d.ts.map +1 -1
- package/dist/modules/order/export.js +1 -1
- package/dist/modules/order/export.js.map +1 -1
- package/dist/modules/order/grid.d.ts +7 -0
- package/dist/modules/order/grid.d.ts.map +1 -1
- package/dist/modules/order/grid.js +52 -98
- package/dist/modules/order/grid.js.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.d.ts +1 -10
- package/dist/modules/order/grid_reconcile_internal.d.ts.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.js +2 -2
- package/dist/modules/order/grid_reconcile_internal.js.map +1 -1
- package/dist/modules/order/manager.d.ts +10 -2
- package/dist/modules/order/manager.d.ts.map +1 -1
- package/dist/modules/order/manager.js +20 -7
- package/dist/modules/order/manager.js.map +1 -1
- package/dist/modules/order/sync_engine.d.ts.map +1 -1
- package/dist/modules/order/sync_engine.js +25 -20
- package/dist/modules/order/sync_engine.js.map +1 -1
- package/dist/modules/order/utils/math.d.ts +1 -10
- package/dist/modules/order/utils/math.d.ts.map +1 -1
- package/dist/modules/order/utils/math.js +1 -1
- package/dist/modules/order/utils/math.js.map +1 -1
- package/dist/modules/order/utils/order.d.ts +45 -7
- package/dist/modules/order/utils/order.d.ts.map +1 -1
- package/dist/modules/order/utils/order.js +160 -15
- package/dist/modules/order/utils/order.js.map +1 -1
- package/dist/modules/order/utils/system.d.ts +0 -15
- package/dist/modules/order/utils/system.d.ts.map +1 -1
- package/dist/modules/order/utils/system.js +2 -2
- package/dist/modules/order/utils/system.js.map +1 -1
- package/dist/modules/process_discovery.d.ts +0 -3
- package/dist/modules/process_discovery.d.ts.map +1 -1
- package/dist/modules/process_discovery.js +1 -1
- package/dist/modules/process_discovery.js.map +1 -1
- package/dist/modules/utils/chain_logs.d.ts +1 -2
- package/dist/modules/utils/chain_logs.d.ts.map +1 -1
- package/dist/modules/utils/chain_logs.js +1 -1
- package/dist/modules/utils/chain_logs.js.map +1 -1
- package/dist/scripts/analyze-git.js +2 -2
- package/dist/scripts/analyze-git.js.map +1 -1
- package/dist/scripts/update.js +46 -31
- package/dist/scripts/update.js.map +1 -1
- package/docs/BITSHARES_ONBOARDING.md +110 -40
- package/docs/COPY_ON_WRITE_MASTER_PLAN.md +10 -207
- package/docs/COW_INVARIANTS.md +16 -10
- package/docs/DEXBOT_COMPARISON.md +3 -3
- package/docs/EVOLUTION.md +75 -29
- package/docs/FUND_MOVEMENT_AND_ACCOUNTING.md +6 -6
- package/docs/GRID_RECALCULATION.md +14 -6
- package/docs/GRID_RECONCILE.md +28 -25
- package/docs/LIFECYCLE.md +12 -11
- package/docs/README.md +48 -42
- package/docs/architecture.md +19 -30
- package/docs/developer_guide.md +3 -3
- package/package.json +1 -1
- package/scripts/git-viewer.sh +1 -1
- package/tests/README.md +10 -1
|
@@ -64,8 +64,14 @@ declare function formatUnmatchedChainOrderForLog(order: any): any;
|
|
|
64
64
|
* Record a pending CREATE broadcast on the manager.
|
|
65
65
|
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
66
66
|
* @param {Object} entry
|
|
67
|
+
* @returns {string|null} The fingerprint the entry was stored under (null
|
|
68
|
+
* when recording was skipped). Callers that must later remap the entry's
|
|
69
|
+
* stored opIndex/ctxIndex (the final pivot gate's compaction) collect
|
|
70
|
+
* these to identify exactly which pending entries belong to THIS batch —
|
|
71
|
+
* entry.batchId is unreliable because _currentBatchId is never populated
|
|
72
|
+
* in production (always null), so batchId scoping cannot discriminate.
|
|
67
73
|
*/
|
|
68
|
-
declare function recordPendingBroadcast(bot: any, entry: any):
|
|
74
|
+
declare function recordPendingBroadcast(bot: any, entry: any): string | null;
|
|
69
75
|
/**
|
|
70
76
|
* Clear the pending-broadcast cache.
|
|
71
77
|
* @param {Map} pendingBroadcasts
|
|
@@ -241,11 +247,12 @@ declare function executeWithRetryOnUncertain(bot: any, operations: any, opContex
|
|
|
241
247
|
declare function formatPartialBroadcastSummary(err: any): string;
|
|
242
248
|
/**
|
|
243
249
|
* Execute a batch with retry-on-uncertain semantics, enforcing a gap-slot
|
|
244
|
-
* per-broadcast operation cap (_getGapSlotBatchSize). When the
|
|
245
|
-
* more operations than the cap, it is split into sequential
|
|
246
|
-
* of at most `maxOps` operations each, so a single on-chain
|
|
247
|
-
* holds more than gapSlots order operations (the
|
|
248
|
-
* per broadcast" intent, applied at the op level rather
|
|
250
|
+
* per-broadcast operation cap (_getGapSlotBatchSize = gapSlots + 1). When the
|
|
251
|
+
* batch carries more operations than the cap, it is split into sequential
|
|
252
|
+
* broadcast chunks of at most `maxOps` operations each, so a single on-chain
|
|
253
|
+
* transaction never holds more than gapSlots + 1 order operations (the
|
|
254
|
+
* original "N fills per broadcast" intent, applied at the op level rather
|
|
255
|
+
* than the fill level).
|
|
249
256
|
*
|
|
250
257
|
* Failure isolation — no swallowed orders: if one chunk's broadcast is
|
|
251
258
|
* uncertain (BroadcastUncertainError), the remaining chunks are STILL
|
|
@@ -516,6 +523,78 @@ declare function resolveOnGridPivot(manager: any, rawPrice: any): {
|
|
|
516
523
|
idx: number | null;
|
|
517
524
|
nearestDrift: number | null;
|
|
518
525
|
};
|
|
526
|
+
/**
|
|
527
|
+
* Final pre-broadcast pivot gate: re-check BUILT ops against a re-refreshed
|
|
528
|
+
* pivot RIGHT BEFORE broadcast.
|
|
529
|
+
*
|
|
530
|
+
* Why this exists (2026-09-13 incident on a live market-pair bot): the batch-start freeze
|
|
531
|
+
* refreshes the pivot once, then every CREATE / rotation-UPDATE /
|
|
532
|
+
* fallback-CREATE is judged against that frozen value (skipRefresh=true).
|
|
533
|
+
* A fill that is queued AFTER the freeze but BEFORE broadcast (in the
|
|
534
|
+
* incident: freeze at .745, fill queued at .765, broadcast at .910) passes
|
|
535
|
+
* every per-action check on a stale pivot and ships. The batch summary
|
|
536
|
+
* prints pivotRefreshed=false — the freeze honestly found nothing — and
|
|
537
|
+
* the violating ops broadcast anyway.
|
|
538
|
+
*
|
|
539
|
+
* Placement (see FINAL-GATE CONTRACT on runLastFillGuardCheck):
|
|
540
|
+
* 1. Called after the op-building action loop, BEFORE the LAST-FILL-GUARD
|
|
541
|
+
* batch summary line (so dropped ops are visible as skipped, not
|
|
542
|
+
* passed) and BEFORE fund validation (so the VALIDATION snapshot
|
|
543
|
+
* reflects the filtered ops).
|
|
544
|
+
* 2. Must run before pair-mode/chunk grouping, which indexes op positions.
|
|
545
|
+
* executeOperationsWithStrategy groups lazily at broadcast time from
|
|
546
|
+
* the (filtered) opContexts it receives, so filtering here is safe —
|
|
547
|
+
* but any future grouping computed between op-building and broadcast
|
|
548
|
+
* must be rebuilt after the gate (same rule as the contract).
|
|
549
|
+
*
|
|
550
|
+
* Semantics:
|
|
551
|
+
* - Peek-only refresh (never drains the fill queue — same as the freeze).
|
|
552
|
+
* - Pivot UNCHANGED since the freeze => pure no-op: returns the input
|
|
553
|
+
* arrays untouched, no extra log lines beyond queue-depth debug.
|
|
554
|
+
* - Pivot CHANGED => re-run isLastFillGuardBlocked against each built op's
|
|
555
|
+
* final price with the SAME bypass rules as the build loop
|
|
556
|
+
* (spread-correction CREATEs, stamped gap-evacuation UPDATEs). Violating
|
|
557
|
+
* ops + their contexts are dropped; their slots feed the existing
|
|
558
|
+
* skippedUpdateSlotIds/skippedCreateSlotIds restore paths so the working
|
|
559
|
+
* grid stays consistent (dropped rotations restore from master, dropped
|
|
560
|
+
* creates count toward the boundary-hold intersect).
|
|
561
|
+
* - fail-open on everything unjudgeable: unresolvable price/type, cold
|
|
562
|
+
* pivot (null), or a refresh/inference throw => the op is KEPT. A gate
|
|
563
|
+
* that cannot prove a violation must not invent one — dropping a healthy
|
|
564
|
+
* op strands its slot, while a missed violation is still caught by the
|
|
565
|
+
* next cycle's guard + commit chain adoption.
|
|
566
|
+
* - size-update ops are NEVER gated (same-price, no repricing).
|
|
567
|
+
* - cancel ops are NEVER gated or dropped.
|
|
568
|
+
*
|
|
569
|
+
* Stale-index hygiene: recordPendingBroadcast stores opIndex/ctxIndex
|
|
570
|
+
* against the build-time arrays. Dropped CREATEs must have their pending
|
|
571
|
+
* entries removed (else the reconcile path adopts a broadcast that never
|
|
572
|
+
* shipped), and KEPT entries must have their stored indexes REMAPPED: a
|
|
573
|
+
* lockstep compaction keeps operations/opContexts aligned with each other,
|
|
574
|
+
* but the absolute indexes stored inside the pending entries are not
|
|
575
|
+
* rewritten by it — after the first drop, an unremapped ctxIndex resolves
|
|
576
|
+
* to a shifted position (undefined at best, a DIFFERENT create's context at
|
|
577
|
+
* worst, which would let adoptMatchedEntries synchronize the wrong slot
|
|
578
|
+
* with a matched chain order). The gate therefore builds an old→new index
|
|
579
|
+
* map during compaction and remaps/removes entries identified by
|
|
580
|
+
* opts.batchPendingFps (the fingerprints THIS batch recorded — entry.batchId
|
|
581
|
+
* is always null in production, so it cannot discriminate). Sibling
|
|
582
|
+
* batches' entries are never touched (their indexes refer to their own
|
|
583
|
+
* build-time arrays).
|
|
584
|
+
*
|
|
585
|
+
* @param {import('./dexbot_class.js').DEXBot} bot
|
|
586
|
+
* @param {Array} operations - Built chain ops (mutated in place on drop)
|
|
587
|
+
* @param {Array} opContexts - Built op contexts (mutated in place on drop)
|
|
588
|
+
* @param {Object} opts - { actions, cowResult, frozenPivot, frozenType,
|
|
589
|
+
* lastFillGuardStats, skippedUpdateSlotIds, skippedCreateSlotIds,
|
|
590
|
+
* skippedUpdateCountRef: { count }, freezeQueueDepth, batchPendingFps }
|
|
591
|
+
* @returns {{ dropped: Array, pivotChanged: boolean, refreshed: boolean }}
|
|
592
|
+
*/
|
|
593
|
+
declare function runFinalPivotGate(bot: any, operations: any[], opContexts: any[], opts?: any): {
|
|
594
|
+
dropped: Array<any>;
|
|
595
|
+
pivotChanged: boolean;
|
|
596
|
+
refreshed: boolean;
|
|
597
|
+
};
|
|
519
598
|
/**
|
|
520
599
|
* Process results from batch transaction execution.
|
|
521
600
|
* Updates order state, synchronizes with chain, and deducts BTS fees.
|
|
@@ -529,7 +608,7 @@ declare function processBatchResults(bot: any, result: any, opContexts: any): Pr
|
|
|
529
608
|
hadRotation: boolean;
|
|
530
609
|
updateOperationCount: number;
|
|
531
610
|
}>;
|
|
532
|
-
export { isLastFillGuardBlocked, resolveOnGridPivot, checkGridPriceInvariant, deriveRotationPrice, refreshLastFillPivotFromQueue, buildOutsideInPairGroupsForOrders, buildOutsideInPairGroupsForCreateEntries,
|
|
611
|
+
export { isLastFillGuardBlocked, resolveOnGridPivot, checkGridPriceInvariant, deriveRotationPrice, refreshLastFillPivotFromQueue, runFinalPivotGate, buildOutsideInPairGroupsForOrders, buildOutsideInPairGroupsForCreateEntries, markMissingCreateResultsAsStructuralBlocker, formatUnmatchedChainOrderForLog, recordPendingBroadcast, clearPendingBroadcasts, popPushedWorkingGrid, findChainOrderForSlot, reconcileAfterUncertainBroadcast, reconcileAfterUncertainBroadcastImpl, autoCancelOneUnmatchedOrphan, executeWithRetryOnUncertain, executeChunkedWithRetryOnUncertain, formatPartialBroadcastSummary, executeOperationsWithStrategy, buildActionsFromPlan, buildCowResultFromPlan, applyRotationTransitionsToWorkingGrid, pollChainForConfirmation, updateOrdersOnChainBatchCOW, processBatchResults, adoptPlacedBatchFromChain, resolveRefillBoundaryHold, toRefillSlotIdSet, trackBoundaryHold };
|
|
533
612
|
export { restoreDiscardedCreates };
|
|
534
613
|
declare const _default: {
|
|
535
614
|
buildOutsideInPairGroupsForOrders: typeof buildOutsideInPairGroupsForOrders;
|
|
@@ -566,6 +645,7 @@ declare const _default: {
|
|
|
566
645
|
pollChainForConfirmation: typeof pollChainForConfirmation;
|
|
567
646
|
updateOrdersOnChainBatchCOW: typeof updateOrdersOnChainBatchCOW;
|
|
568
647
|
processBatchResults: typeof processBatchResults;
|
|
648
|
+
runFinalPivotGate: typeof runFinalPivotGate;
|
|
569
649
|
};
|
|
570
650
|
export default _default;
|
|
571
651
|
//# sourceMappingURL=dexbot_cow_runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dexbot_cow_runtime.d.ts","sourceRoot":"","sources":["../../modules/dexbot_cow_runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA4BH;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,GAAG,OAAO,CAarI;AAwCD;;;;GAIG;AACH,iBAAS,iCAAiC,CAAC,MAAM,EAAE,GAAG,OAErD;AAED;;;;GAIG;AACH,iBAAS,wCAAwC,CAAC,aAAa,EAAE,GAAG,OAEnE;AA4HD;;;;;;GAMG;AACH,iBAAS,uBAAuB,CAAC,MAAM,EAAE,GAAG,EAAE,WAAW,GAAE,GAAQ,EAAE,KAAK,GAAE,QAAQ,GAAG,IAAW,SAmBjG;AAED;;;;;GAKG;AACH,iBAAS,+BAA+B,CAAC,gBAAgB,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG;WACnD,MAAM;SAAO,GAAG;IAa3C;AAED;;;;GAIG;AACH,iBAAS,2CAA2C,CAAC,GAAG,EAAE,GAAG,EA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