dexbot 1.4.12 → 1.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -42
- package/claw/data/positions.json +147132 -0
- package/claw/docs/AI_BOT_LIBRARY_API.md +632 -0
- package/claw/docs/DEXBOT2_TUNING_CHEAT_SHEET.md +243 -0
- package/claw/docs/POSITION_HEALTH.md +117 -0
- package/claw/docs/RUNTIME_COMPARISON.md +256 -0
- package/claw/ecosystem.config.cjs +29 -0
- package/claw/examples/claw_consumer_example.ts +54 -0
- package/claw/examples/claw_infra_example.ts +53 -0
- package/claw/examples/claw_profiles_example.ts +44 -0
- package/claw/examples/connection_test.ts +40 -0
- package/claw/examples/honest_ecosystem_example.ts +35 -0
- package/claw/examples/memu_integration_example.ts +92 -0
- package/claw/examples/position_manager_cli.ts +129 -0
- package/claw/examples/short_mpa_bts_strategy.ts +127 -0
- package/claw/examples/tsconfig.json +28 -0
- package/claw/index.ts +64 -0
- package/claw/modules/bitshares_client.ts +97 -0
- package/claw/modules/chain_actions.ts +352 -0
- package/claw/modules/chain_broadcast.ts +353 -0
- package/claw/modules/chain_queries.ts +157 -0
- package/claw/modules/claw_bridge.ts +423 -0
- package/claw/modules/claw_catalog.ts +802 -0
- package/claw/modules/claw_infra.ts +326 -0
- package/claw/modules/claw_launcher.ts +451 -0
- package/claw/modules/claw_manifest.ts +55 -0
- package/claw/modules/claw_runtime_matrix.ts +104 -0
- package/claw/modules/claw_skill_md.ts +313 -0
- package/claw/modules/credit_runtime_adapter.ts +144 -0
- package/claw/modules/decision_loop.ts +184 -0
- package/claw/modules/dexbot_bridge.ts +82 -0
- package/claw/modules/dexbot_credential_client.ts +55 -0
- package/claw/modules/dexbot_profiles.ts +1309 -0
- package/claw/modules/feed_price_source.ts +105 -0
- package/claw/modules/honest_ecosystem.ts +337 -0
- package/claw/modules/kibana_price_source.ts +133 -0
- package/claw/modules/launcher_mode_detector.ts +192 -0
- package/claw/modules/launcher_paths.ts +69 -0
- package/claw/modules/liquidity_pools.ts +51 -0
- package/claw/modules/mcp_utils.ts +108 -0
- package/claw/modules/memu_bridge.ts +505 -0
- package/claw/modules/mpa_utils.ts +66 -0
- package/claw/modules/position_discovery.ts +136 -0
- package/claw/modules/position_health.ts +341 -0
- package/claw/modules/position_manager.ts +705 -0
- package/claw/modules/position_manager_watch.ts +252 -0
- package/claw/modules/short_mpa_strategy.ts +185 -0
- package/claw/modules/skill_utils.ts +74 -0
- package/claw/modules/types.ts +172 -0
- package/claw/modules/utils.ts +9 -0
- package/claw/node_modules/.package-lock.json +935 -0
- package/claw/node_modules/@babel/runtime/LICENSE +22 -0
- package/claw/node_modules/@babel/runtime/README.md +19 -0
- package/claw/node_modules/@babel/runtime/helpers/AwaitValue.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/OverloadYield.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/applyDecs.js +236 -0
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2203.js +184 -0
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2203R.js +191 -0
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2301.js +222 -0
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2305.js +133 -0
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2311.js +124 -0
- package/claw/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/arrayWithHoles.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/assertClassBrand.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/assertThisInitialized.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +24 -0
- package/claw/node_modules/@babel/runtime/helpers/asyncIterator.js +45 -0
- package/claw/node_modules/@babel/runtime/helpers/asyncToGenerator.js +26 -0
- package/claw/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/callSuper.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/checkInRHS.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/classCallCheck.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/classNameTDZError.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/classPrivateGetter.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/classPrivateSetter.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/construct.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/createClass.js +13 -0
- package/claw/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +50 -0
- package/claw/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +19 -0
- package/claw/node_modules/@babel/runtime/helpers/createSuper.js +16 -0
- package/claw/node_modules/@babel/runtime/helpers/decorate.js +250 -0
- package/claw/node_modules/@babel/runtime/helpers/defaults.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/defineAccessor.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +12 -0
- package/claw/node_modules/@babel/runtime/helpers/defineProperty.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/dispose.js +28 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs.js +236 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +184 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +191 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +222 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +133 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +124 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +24 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +45 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +26 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/callSuper.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/construct.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/createClass.js +13 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +50 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +19 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/createSuper.js +16 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/decorate.js +250 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/defaults.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +12 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/defineProperty.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/dispose.js +28 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/extends.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/get.js +11 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/identity.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +27 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/inherits.js +14 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/instanceof.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +22 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +28 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/jsx.js +22 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/objectSpread.js +14 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +23 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/package.json +3 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/regenerator.js +89 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +33 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +22 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +77 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +19 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/set.js +22 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +12 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/superPropBase.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/superPropGet.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/superPropSet.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/tdz.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/temporalRef.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +2 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/toArray.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +12 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/toSetter.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/typeof.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/using.js +12 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/usingCtx.js +59 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +56 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +27 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +52 -0
- package/claw/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/extends.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/get.js +11 -0
- package/claw/node_modules/@babel/runtime/helpers/getPrototypeOf.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/identity.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/importDeferProxy.js +27 -0
- package/claw/node_modules/@babel/runtime/helpers/inherits.js +14 -0
- package/claw/node_modules/@babel/runtime/helpers/inheritsLoose.js +5 -0
- package/claw/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/instanceof.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/interopRequireDefault.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +22 -0
- package/claw/node_modules/@babel/runtime/helpers/isNativeFunction.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/iterableToArray.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +28 -0
- package/claw/node_modules/@babel/runtime/helpers/jsx.js +22 -0
- package/claw/node_modules/@babel/runtime/helpers/maybeArrayLike.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/newArrowCheck.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/nonIterableRest.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/nonIterableSpread.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/nullishReceiverError.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/objectSpread.js +14 -0
- package/claw/node_modules/@babel/runtime/helpers/objectSpread2.js +23 -0
- package/claw/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +13 -0
- package/claw/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/readOnlyError.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/regenerator.js +89 -0
- package/claw/node_modules/@babel/runtime/helpers/regeneratorAsync.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js +33 -0
- package/claw/node_modules/@babel/runtime/helpers/regeneratorDefine.js +22 -0
- package/claw/node_modules/@babel/runtime/helpers/regeneratorKeys.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +77 -0
- package/claw/node_modules/@babel/runtime/helpers/regeneratorValues.js +19 -0
- package/claw/node_modules/@babel/runtime/helpers/set.js +22 -0
- package/claw/node_modules/@babel/runtime/helpers/setFunctionName.js +12 -0
- package/claw/node_modules/@babel/runtime/helpers/setPrototypeOf.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/slicedToArray.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/superPropBase.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/superPropGet.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/superPropSet.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/tdz.js +4 -0
- package/claw/node_modules/@babel/runtime/helpers/temporalRef.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/temporalUndefined.js +2 -0
- package/claw/node_modules/@babel/runtime/helpers/toArray.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/toConsumableArray.js +8 -0
- package/claw/node_modules/@babel/runtime/helpers/toPrimitive.js +12 -0
- package/claw/node_modules/@babel/runtime/helpers/toPropertyKey.js +7 -0
- package/claw/node_modules/@babel/runtime/helpers/toSetter.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js +6 -0
- package/claw/node_modules/@babel/runtime/helpers/typeof.js +10 -0
- package/claw/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +9 -0
- package/claw/node_modules/@babel/runtime/helpers/using.js +12 -0
- package/claw/node_modules/@babel/runtime/helpers/usingCtx.js +59 -0
- package/claw/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +56 -0
- package/claw/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +27 -0
- package/claw/node_modules/@babel/runtime/helpers/wrapRegExp.js +52 -0
- package/claw/node_modules/@babel/runtime/helpers/writeOnlyError.js +4 -0
- package/claw/node_modules/@babel/runtime/package.json +1107 -0
- package/claw/node_modules/@babel/runtime/regenerator/index.js +15 -0
- package/claw/node_modules/assert/.github/FUNDING.yml +12 -0
- package/claw/node_modules/assert/.github/SECURITY.md +10 -0
- package/claw/node_modules/assert/.travis.yml +30 -0
- package/claw/node_modules/assert/.zuul.yml +13 -0
- package/claw/node_modules/assert/CHANGELOG.md +11 -0
- package/claw/node_modules/assert/LICENSE +18 -0
- package/claw/node_modules/assert/README.md +105 -0
- package/claw/node_modules/assert/assert.js +506 -0
- package/claw/node_modules/assert/package.json +32 -0
- package/claw/node_modules/assert/test.js +360 -0
- package/claw/node_modules/async-limiter/.eslintignore +2 -0
- package/claw/node_modules/async-limiter/.nycrc +10 -0
- package/claw/node_modules/async-limiter/.travis.yml +9 -0
- package/claw/node_modules/async-limiter/LICENSE +8 -0
- package/claw/node_modules/async-limiter/index.js +67 -0
- package/claw/node_modules/async-limiter/package.json +35 -0
- package/claw/node_modules/async-limiter/readme.md +132 -0
- package/claw/node_modules/available-typed-arrays/.eslintrc +5 -0
- package/claw/node_modules/available-typed-arrays/.github/FUNDING.yml +12 -0
- package/claw/node_modules/available-typed-arrays/.nycrc +9 -0
- package/claw/node_modules/available-typed-arrays/CHANGELOG.md +100 -0
- package/claw/node_modules/available-typed-arrays/LICENSE +21 -0
- package/claw/node_modules/available-typed-arrays/README.md +55 -0
- package/claw/node_modules/available-typed-arrays/index.d.ts +8 -0
- package/claw/node_modules/available-typed-arrays/index.js +17 -0
- package/claw/node_modules/available-typed-arrays/package.json +93 -0
- package/claw/node_modules/available-typed-arrays/test/index.js +18 -0
- package/claw/node_modules/available-typed-arrays/tsconfig.json +49 -0
- package/claw/node_modules/base-x/LICENSE.md +22 -0
- package/claw/node_modules/base-x/README.md +67 -0
- package/claw/node_modules/base-x/package.json +49 -0
- package/claw/node_modules/base-x/src/index.d.ts +10 -0
- package/claw/node_modules/base-x/src/index.js +123 -0
- package/claw/node_modules/bigi/CHANGELOG.md +85 -0
- package/claw/node_modules/bigi/LICENSE.md +30 -0
- package/claw/node_modules/bigi/README.md +14 -0
- package/claw/node_modules/bigi/lib/bigi.js +1509 -0
- package/claw/node_modules/bigi/lib/convert.js +91 -0
- package/claw/node_modules/bigi/lib/index.js +6 -0
- package/claw/node_modules/bigi/package.json +55 -0
- package/claw/node_modules/bignumber.js/CHANGELOG.md +222 -0
- package/claw/node_modules/bignumber.js/LICENCE +23 -0
- package/claw/node_modules/bignumber.js/README.md +266 -0
- package/claw/node_modules/bignumber.js/bignumber.d.ts +1797 -0
- package/claw/node_modules/bignumber.js/bignumber.js +2814 -0
- package/claw/node_modules/bignumber.js/bignumber.js.map +1 -0
- package/claw/node_modules/bignumber.js/bignumber.min.js +3 -0
- package/claw/node_modules/bignumber.js/bignumber.mjs +2793 -0
- package/claw/node_modules/bignumber.js/bower.json +36 -0
- package/claw/node_modules/bignumber.js/doc/API.html +2118 -0
- package/claw/node_modules/bignumber.js/package.json +39 -0
- package/claw/node_modules/bs58/CHANGELOG.md +61 -0
- package/claw/node_modules/bs58/README.md +71 -0
- package/claw/node_modules/bs58/index.js +4 -0
- package/claw/node_modules/bs58/package.json +37 -0
- package/claw/node_modules/btsdex/.babelrc +17 -0
- package/claw/node_modules/btsdex/.github/workflows/check-style.yml +16 -0
- package/claw/node_modules/btsdex/LICENSE +21 -0
- package/claw/node_modules/btsdex/README.md +467 -0
- package/claw/node_modules/btsdex/cli.js +165 -0
- package/claw/node_modules/btsdex/lib/account.js +60 -0
- package/claw/node_modules/btsdex/lib/asset.js +78 -0
- package/claw/node_modules/btsdex/lib/bitshares.js +363 -0
- package/claw/node_modules/btsdex/lib/event.js +137 -0
- package/claw/node_modules/btsdex/lib/fees.js +34 -0
- package/claw/node_modules/btsdex/lib/index.js +3 -0
- package/claw/node_modules/btsdex/lib/transaction/TransactionBuilder.js +797 -0
- package/claw/node_modules/btsdex/lib/transaction/index.js +64 -0
- package/claw/node_modules/btsdex/package.json +54 -0
- package/claw/node_modules/btsdex/yarn-error.log +3483 -0
- package/claw/node_modules/btsdex-api/.babelrc +14 -0
- package/claw/node_modules/btsdex-api/README.md +3 -0
- package/claw/node_modules/btsdex-api/lib/apis.js +59 -0
- package/claw/node_modules/btsdex-api/lib/config.js +39 -0
- package/claw/node_modules/btsdex-api/lib/connection.js +188 -0
- package/claw/node_modules/btsdex-api/lib/index.js +86 -0
- package/claw/node_modules/btsdex-api/lib/logger.js +45 -0
- package/claw/node_modules/btsdex-api/lib/servers.js +30 -0
- package/claw/node_modules/btsdex-api/package.json +29 -0
- package/claw/node_modules/btsdex-ecc/.babelrc +13 -0
- package/claw/node_modules/btsdex-ecc/lib/BrainKey.js +15 -0
- package/claw/node_modules/btsdex-ecc/lib/KeyUtils.js +205 -0
- package/claw/node_modules/btsdex-ecc/lib/PrivateKey.js +198 -0
- package/claw/node_modules/btsdex-ecc/lib/PublicKey.js +197 -0
- package/claw/node_modules/btsdex-ecc/lib/address.js +84 -0
- package/claw/node_modules/btsdex-ecc/lib/addressPrefix.js +15 -0
- package/claw/node_modules/btsdex-ecc/lib/aes.js +294 -0
- package/claw/node_modules/btsdex-ecc/lib/ecdsa.js +194 -0
- package/claw/node_modules/btsdex-ecc/lib/ecsignature.js +131 -0
- package/claw/node_modules/btsdex-ecc/lib/enforce_types.js +54 -0
- package/claw/node_modules/btsdex-ecc/lib/hash.js +60 -0
- package/claw/node_modules/btsdex-ecc/lib/index.js +84 -0
- package/claw/node_modules/btsdex-ecc/lib/signature.js +185 -0
- package/claw/node_modules/btsdex-ecc/package.json +37 -0
- package/claw/node_modules/btsdex-serializer/.babelrc +13 -0
- package/claw/node_modules/btsdex-serializer/lib/ChainTypes.js +154 -0
- package/claw/node_modules/btsdex-serializer/lib/FastParser.js +75 -0
- package/claw/node_modules/btsdex-serializer/lib/ObjectId.js +65 -0
- package/claw/node_modules/btsdex-serializer/lib/SerializerValidation.js +377 -0
- package/claw/node_modules/btsdex-serializer/lib/convert.js +54 -0
- package/claw/node_modules/btsdex-serializer/lib/error_with_cause.js +43 -0
- package/claw/node_modules/btsdex-serializer/lib/index.js +72 -0
- package/claw/node_modules/btsdex-serializer/lib/operations.js +1359 -0
- package/claw/node_modules/btsdex-serializer/lib/precision.js +108 -0
- package/claw/node_modules/btsdex-serializer/lib/serializer.js +205 -0
- package/claw/node_modules/btsdex-serializer/lib/template.js +23 -0
- package/claw/node_modules/btsdex-serializer/lib/types.js +1209 -0
- package/claw/node_modules/btsdex-serializer/package-lock.json +238 -0
- package/claw/node_modules/btsdex-serializer/package.json +32 -0
- package/claw/node_modules/bytebuffer/.travis.yml +5 -0
- package/claw/node_modules/bytebuffer/LICENSE +202 -0
- package/claw/node_modules/bytebuffer/README.md +64 -0
- package/claw/node_modules/bytebuffer/bower.json +12 -0
- package/claw/node_modules/bytebuffer/bytebuffer.png +0 -0
- package/claw/node_modules/bytebuffer/dist/README.md +47 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.js +3461 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.min.js +88 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.min.js.gz +0 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.min.map +8 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer-node.js +3454 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer.js +3746 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer.min.js +93 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer.min.js.gz +0 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer.min.map +8 -0
- package/claw/node_modules/bytebuffer/donate.png +0 -0
- package/claw/node_modules/bytebuffer/externs/bytebuffer.js +862 -0
- package/claw/node_modules/bytebuffer/externs/minimal-env.js +52 -0
- package/claw/node_modules/bytebuffer/index.js +1 -0
- package/claw/node_modules/bytebuffer/jsdoc.json +13 -0
- package/claw/node_modules/bytebuffer/package.json +51 -0
- package/claw/node_modules/bytebuffer/scripts/build.js +113 -0
- package/claw/node_modules/bytebuffer/src/bower.json +12 -0
- package/claw/node_modules/bytebuffer/src/bytebuffer.js +220 -0
- package/claw/node_modules/bytebuffer/src/encodings/base64.js +88 -0
- package/claw/node_modules/bytebuffer/src/encodings/binary.js +74 -0
- package/claw/node_modules/bytebuffer/src/encodings/debug.js +211 -0
- package/claw/node_modules/bytebuffer/src/encodings/hex.js +75 -0
- package/claw/node_modules/bytebuffer/src/encodings/impl/base64.js +3 -0
- package/claw/node_modules/bytebuffer/src/encodings/impl/binary.js +65 -0
- package/claw/node_modules/bytebuffer/src/encodings/impl/debug.js +3 -0
- package/claw/node_modules/bytebuffer/src/encodings/impl/hex.js +101 -0
- package/claw/node_modules/bytebuffer/src/encodings/impl/utf8.js +126 -0
- package/claw/node_modules/bytebuffer/src/encodings/utf8.js +71 -0
- package/claw/node_modules/bytebuffer/src/helpers.js +143 -0
- package/claw/node_modules/bytebuffer/src/macros.js +222 -0
- package/claw/node_modules/bytebuffer/src/methods/append.js +58 -0
- package/claw/node_modules/bytebuffer/src/methods/assert.js +12 -0
- package/claw/node_modules/bytebuffer/src/methods/capacity.js +8 -0
- package/claw/node_modules/bytebuffer/src/methods/clear.js +13 -0
- package/claw/node_modules/bytebuffer/src/methods/clone.js +34 -0
- package/claw/node_modules/bytebuffer/src/methods/compact.js +49 -0
- package/claw/node_modules/bytebuffer/src/methods/copy.js +73 -0
- package/claw/node_modules/bytebuffer/src/methods/ensureCapacity.js +15 -0
- package/claw/node_modules/bytebuffer/src/methods/fill.js +35 -0
- package/claw/node_modules/bytebuffer/src/methods/flip.js +11 -0
- package/claw/node_modules/bytebuffer/src/methods/mark.js +17 -0
- package/claw/node_modules/bytebuffer/src/methods/order.js +36 -0
- package/claw/node_modules/bytebuffer/src/methods/prepend.js +87 -0
- package/claw/node_modules/bytebuffer/src/methods/printDebug.js +16 -0
- package/claw/node_modules/bytebuffer/src/methods/remaining.js +9 -0
- package/claw/node_modules/bytebuffer/src/methods/reset.js +17 -0
- package/claw/node_modules/bytebuffer/src/methods/resize.js +39 -0
- package/claw/node_modules/bytebuffer/src/methods/reverse.js +25 -0
- package/claw/node_modules/bytebuffer/src/methods/skip.js +19 -0
- package/claw/node_modules/bytebuffer/src/methods/slice.js +18 -0
- package/claw/node_modules/bytebuffer/src/methods/static/accessor.js +13 -0
- package/claw/node_modules/bytebuffer/src/methods/static/allocate.js +14 -0
- package/claw/node_modules/bytebuffer/src/methods/static/concat.js +55 -0
- package/claw/node_modules/bytebuffer/src/methods/static/isByteBuffer.js +9 -0
- package/claw/node_modules/bytebuffer/src/methods/static/type.js +11 -0
- package/claw/node_modules/bytebuffer/src/methods/static/wrap.js +125 -0
- package/claw/node_modules/bytebuffer/src/methods/toBuffer.js +77 -0
- package/claw/node_modules/bytebuffer/src/methods/toString.js +43 -0
- package/claw/node_modules/bytebuffer/src/types/bytes/bitset.js +89 -0
- package/claw/node_modules/bytebuffer/src/types/bytes/bytes.js +34 -0
- package/claw/node_modules/bytebuffer/src/types/floats/float32.js +81 -0
- package/claw/node_modules/bytebuffer/src/types/floats/float64.js +77 -0
- package/claw/node_modules/bytebuffer/src/types/floats/ieee754.js +130 -0
- package/claw/node_modules/bytebuffer/src/types/ints/int16.js +167 -0
- package/claw/node_modules/bytebuffer/src/types/ints/int32.js +125 -0
- package/claw/node_modules/bytebuffer/src/types/ints/int64.js +194 -0
- package/claw/node_modules/bytebuffer/src/types/ints/int8.js +137 -0
- package/claw/node_modules/bytebuffer/src/types/strings/cstring.js +110 -0
- package/claw/node_modules/bytebuffer/src/types/strings/istring.js +81 -0
- package/claw/node_modules/bytebuffer/src/types/strings/utf8string.js +214 -0
- package/claw/node_modules/bytebuffer/src/types/strings/vstring.js +78 -0
- package/claw/node_modules/bytebuffer/src/types/varints/varint32.js +164 -0
- package/claw/node_modules/bytebuffer/src/types/varints/varint64.js +208 -0
- package/claw/node_modules/bytebuffer/src/wrap-node.js +50 -0
- package/claw/node_modules/bytebuffer/src/wrap.js +43 -0
- package/claw/node_modules/bytebuffer/tests/bench.js +99 -0
- package/claw/node_modules/bytebuffer/tests/suite.js +1005 -0
- package/claw/node_modules/call-bind/.eslintignore +1 -0
- package/claw/node_modules/call-bind/.eslintrc +16 -0
- package/claw/node_modules/call-bind/.github/FUNDING.yml +12 -0
- package/claw/node_modules/call-bind/.nycrc +9 -0
- package/claw/node_modules/call-bind/CHANGELOG.md +106 -0
- package/claw/node_modules/call-bind/LICENSE +21 -0
- package/claw/node_modules/call-bind/README.md +64 -0
- package/claw/node_modules/call-bind/callBound.js +15 -0
- package/claw/node_modules/call-bind/index.js +24 -0
- package/claw/node_modules/call-bind/package.json +93 -0
- package/claw/node_modules/call-bind/test/callBound.js +54 -0
- package/claw/node_modules/call-bind/test/index.js +74 -0
- package/claw/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/claw/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/claw/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/claw/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/claw/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/claw/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/claw/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/claw/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/claw/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/claw/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/claw/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/claw/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/claw/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/claw/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/claw/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/claw/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/claw/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/claw/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/claw/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/claw/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/claw/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/claw/node_modules/call-bound/.eslintrc +13 -0
- package/claw/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/claw/node_modules/call-bound/.nycrc +9 -0
- package/claw/node_modules/call-bound/CHANGELOG.md +42 -0
- package/claw/node_modules/call-bound/LICENSE +21 -0
- package/claw/node_modules/call-bound/README.md +53 -0
- package/claw/node_modules/call-bound/index.d.ts +94 -0
- package/claw/node_modules/call-bound/index.js +19 -0
- package/claw/node_modules/call-bound/package.json +99 -0
- package/claw/node_modules/call-bound/test/index.js +61 -0
- package/claw/node_modules/call-bound/tsconfig.json +10 -0
- package/claw/node_modules/cipher-base/.eslintrc +26 -0
- package/claw/node_modules/cipher-base/.github/FUNDING.yml +12 -0
- package/claw/node_modules/cipher-base/CHANGELOG.md +73 -0
- package/claw/node_modules/cipher-base/LICENSE +21 -0
- package/claw/node_modules/cipher-base/README.md +17 -0
- package/claw/node_modules/cipher-base/index.js +103 -0
- package/claw/node_modules/cipher-base/package.json +63 -0
- package/claw/node_modules/cipher-base/test/index.js +221 -0
- package/claw/node_modules/core-util-is/LICENSE +19 -0
- package/claw/node_modules/core-util-is/README.md +3 -0
- package/claw/node_modules/core-util-is/lib/util.js +107 -0
- package/claw/node_modules/core-util-is/package.json +38 -0
- package/claw/node_modules/create-hash/.travis.yml +17 -0
- package/claw/node_modules/create-hash/LICENSE +21 -0
- package/claw/node_modules/create-hash/README.md +19 -0
- package/claw/node_modules/create-hash/browser.js +30 -0
- package/claw/node_modules/create-hash/index.js +1 -0
- package/claw/node_modules/create-hash/md5.js +5 -0
- package/claw/node_modules/create-hash/package.json +39 -0
- package/claw/node_modules/create-hash/test.js +41 -0
- package/claw/node_modules/create-hmac/LICENSE +21 -0
- package/claw/node_modules/create-hmac/README.md +20 -0
- package/claw/node_modules/create-hmac/browser.js +62 -0
- package/claw/node_modules/create-hmac/index.js +1 -0
- package/claw/node_modules/create-hmac/legacy.js +46 -0
- package/claw/node_modules/create-hmac/package.json +45 -0
- package/claw/node_modules/crypto-js/CONTRIBUTING.md +28 -0
- package/claw/node_modules/crypto-js/LICENSE +24 -0
- package/claw/node_modules/crypto-js/README.md +241 -0
- package/claw/node_modules/crypto-js/aes.js +232 -0
- package/claw/node_modules/crypto-js/bower.json +35 -0
- package/claw/node_modules/crypto-js/cipher-core.js +880 -0
- package/claw/node_modules/crypto-js/core.js +760 -0
- package/claw/node_modules/crypto-js/crypto-js.js +5988 -0
- package/claw/node_modules/crypto-js/docs/QuickStartGuide.wiki +470 -0
- package/claw/node_modules/crypto-js/enc-base64.js +135 -0
- package/claw/node_modules/crypto-js/enc-hex.js +18 -0
- package/claw/node_modules/crypto-js/enc-latin1.js +18 -0
- package/claw/node_modules/crypto-js/enc-utf16.js +149 -0
- package/claw/node_modules/crypto-js/enc-utf8.js +18 -0
- package/claw/node_modules/crypto-js/evpkdf.js +132 -0
- package/claw/node_modules/crypto-js/format-hex.js +66 -0
- package/claw/node_modules/crypto-js/format-openssl.js +18 -0
- package/claw/node_modules/crypto-js/hmac-md5.js +18 -0
- package/claw/node_modules/crypto-js/hmac-ripemd160.js +18 -0
- package/claw/node_modules/crypto-js/hmac-sha1.js +18 -0
- package/claw/node_modules/crypto-js/hmac-sha224.js +18 -0
- package/claw/node_modules/crypto-js/hmac-sha256.js +18 -0
- package/claw/node_modules/crypto-js/hmac-sha3.js +18 -0
- package/claw/node_modules/crypto-js/hmac-sha384.js +18 -0
- package/claw/node_modules/crypto-js/hmac-sha512.js +18 -0
- package/claw/node_modules/crypto-js/hmac.js +143 -0
- package/claw/node_modules/crypto-js/index.js +18 -0
- package/claw/node_modules/crypto-js/lib-typedarrays.js +76 -0
- package/claw/node_modules/crypto-js/md5.js +268 -0
- package/claw/node_modules/crypto-js/mode-cfb.js +78 -0
- package/claw/node_modules/crypto-js/mode-ctr-gladman.js +116 -0
- package/claw/node_modules/crypto-js/mode-ctr.js +58 -0
- package/claw/node_modules/crypto-js/mode-ecb.js +40 -0
- package/claw/node_modules/crypto-js/mode-ofb.js +54 -0
- package/claw/node_modules/crypto-js/package.json +38 -0
- package/claw/node_modules/crypto-js/pad-ansix923.js +49 -0
- package/claw/node_modules/crypto-js/pad-iso10126.js +44 -0
- package/claw/node_modules/crypto-js/pad-iso97971.js +40 -0
- package/claw/node_modules/crypto-js/pad-nopadding.js +30 -0
- package/claw/node_modules/crypto-js/pad-pkcs7.js +18 -0
- package/claw/node_modules/crypto-js/pad-zeropadding.js +45 -0
- package/claw/node_modules/crypto-js/pbkdf2.js +145 -0
- package/claw/node_modules/crypto-js/rabbit-legacy.js +190 -0
- package/claw/node_modules/crypto-js/rabbit.js +192 -0
- package/claw/node_modules/crypto-js/rc4.js +139 -0
- package/claw/node_modules/crypto-js/ripemd160.js +267 -0
- package/claw/node_modules/crypto-js/sha1.js +150 -0
- package/claw/node_modules/crypto-js/sha224.js +80 -0
- package/claw/node_modules/crypto-js/sha256.js +199 -0
- package/claw/node_modules/crypto-js/sha3.js +323 -0
- package/claw/node_modules/crypto-js/sha384.js +83 -0
- package/claw/node_modules/crypto-js/sha512.js +323 -0
- package/claw/node_modules/crypto-js/tripledes.js +770 -0
- package/claw/node_modules/crypto-js/x64-core.js +304 -0
- package/claw/node_modules/deep-equal/.editorconfig +20 -0
- package/claw/node_modules/deep-equal/.eslintrc +28 -0
- package/claw/node_modules/deep-equal/.nycrc +17 -0
- package/claw/node_modules/deep-equal/.travis.yml +12 -0
- package/claw/node_modules/deep-equal/CHANGELOG.md +320 -0
- package/claw/node_modules/deep-equal/LICENSE +21 -0
- package/claw/node_modules/deep-equal/assert.js +3 -0
- package/claw/node_modules/deep-equal/example/cmp.js +11 -0
- package/claw/node_modules/deep-equal/index.js +112 -0
- package/claw/node_modules/deep-equal/lib/is_arguments.js +1 -0
- package/claw/node_modules/deep-equal/lib/keys.js +1 -0
- package/claw/node_modules/deep-equal/package.json +109 -0
- package/claw/node_modules/deep-equal/readme.markdown +73 -0
- package/claw/node_modules/deep-equal/test/_tape.js +42 -0
- package/claw/node_modules/deep-equal/test/cmp.js +1343 -0
- package/claw/node_modules/define-data-property/.eslintrc +24 -0
- package/claw/node_modules/define-data-property/.github/FUNDING.yml +12 -0
- package/claw/node_modules/define-data-property/.nycrc +13 -0
- package/claw/node_modules/define-data-property/CHANGELOG.md +70 -0
- package/claw/node_modules/define-data-property/LICENSE +21 -0
- package/claw/node_modules/define-data-property/README.md +67 -0
- package/claw/node_modules/define-data-property/index.d.ts +12 -0
- package/claw/node_modules/define-data-property/index.js +56 -0
- package/claw/node_modules/define-data-property/package.json +106 -0
- package/claw/node_modules/define-data-property/test/index.js +392 -0
- package/claw/node_modules/define-data-property/tsconfig.json +59 -0
- package/claw/node_modules/define-properties/.editorconfig +13 -0
- package/claw/node_modules/define-properties/.eslintrc +19 -0
- package/claw/node_modules/define-properties/.github/FUNDING.yml +12 -0
- package/claw/node_modules/define-properties/.nycrc +9 -0
- package/claw/node_modules/define-properties/CHANGELOG.md +91 -0
- package/claw/node_modules/define-properties/LICENSE +21 -0
- package/claw/node_modules/define-properties/README.md +84 -0
- package/claw/node_modules/define-properties/index.js +47 -0
- package/claw/node_modules/define-properties/package.json +88 -0
- package/claw/node_modules/dunder-proto/.eslintrc +5 -0
- package/claw/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/claw/node_modules/dunder-proto/.nycrc +13 -0
- package/claw/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/claw/node_modules/dunder-proto/LICENSE +21 -0
- package/claw/node_modules/dunder-proto/README.md +54 -0
- package/claw/node_modules/dunder-proto/get.d.ts +5 -0
- package/claw/node_modules/dunder-proto/get.js +30 -0
- package/claw/node_modules/dunder-proto/package.json +76 -0
- package/claw/node_modules/dunder-proto/set.d.ts +5 -0
- package/claw/node_modules/dunder-proto/set.js +35 -0
- package/claw/node_modules/dunder-proto/test/get.js +34 -0
- package/claw/node_modules/dunder-proto/test/index.js +4 -0
- package/claw/node_modules/dunder-proto/test/set.js +50 -0
- package/claw/node_modules/dunder-proto/tsconfig.json +9 -0
- package/claw/node_modules/ecurve/.min-wd +7 -0
- package/claw/node_modules/ecurve/.travis.yml +14 -0
- package/claw/node_modules/ecurve/CHANGELOG.md +154 -0
- package/claw/node_modules/ecurve/README.md +11 -0
- package/claw/node_modules/ecurve/lib/curve.js +77 -0
- package/claw/node_modules/ecurve/lib/curves.json +65 -0
- package/claw/node_modules/ecurve/lib/index.js +10 -0
- package/claw/node_modules/ecurve/lib/names.js +21 -0
- package/claw/node_modules/ecurve/lib/point.js +244 -0
- package/claw/node_modules/ecurve/package.json +32 -0
- package/claw/node_modules/es-define-property/.eslintrc +13 -0
- package/claw/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/claw/node_modules/es-define-property/.nycrc +9 -0
- package/claw/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/claw/node_modules/es-define-property/LICENSE +21 -0
- package/claw/node_modules/es-define-property/README.md +49 -0
- package/claw/node_modules/es-define-property/index.d.ts +3 -0
- package/claw/node_modules/es-define-property/index.js +14 -0
- package/claw/node_modules/es-define-property/package.json +81 -0
- package/claw/node_modules/es-define-property/test/index.js +56 -0
- package/claw/node_modules/es-define-property/tsconfig.json +10 -0
- package/claw/node_modules/es-errors/.eslintrc +5 -0
- package/claw/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/claw/node_modules/es-errors/CHANGELOG.md +40 -0
- package/claw/node_modules/es-errors/LICENSE +21 -0
- package/claw/node_modules/es-errors/README.md +55 -0
- package/claw/node_modules/es-errors/eval.d.ts +3 -0
- package/claw/node_modules/es-errors/eval.js +4 -0
- package/claw/node_modules/es-errors/index.d.ts +3 -0
- package/claw/node_modules/es-errors/index.js +4 -0
- package/claw/node_modules/es-errors/package.json +80 -0
- package/claw/node_modules/es-errors/range.d.ts +3 -0
- package/claw/node_modules/es-errors/range.js +4 -0
- package/claw/node_modules/es-errors/ref.d.ts +3 -0
- package/claw/node_modules/es-errors/ref.js +4 -0
- package/claw/node_modules/es-errors/syntax.d.ts +3 -0
- package/claw/node_modules/es-errors/syntax.js +4 -0
- package/claw/node_modules/es-errors/test/index.js +19 -0
- package/claw/node_modules/es-errors/tsconfig.json +49 -0
- package/claw/node_modules/es-errors/type.d.ts +3 -0
- package/claw/node_modules/es-errors/type.js +4 -0
- package/claw/node_modules/es-errors/uri.d.ts +3 -0
- package/claw/node_modules/es-errors/uri.js +4 -0
- package/claw/node_modules/es-object-atoms/.eslintrc +16 -0
- package/claw/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/claw/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/claw/node_modules/es-object-atoms/LICENSE +21 -0
- package/claw/node_modules/es-object-atoms/README.md +63 -0
- package/claw/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/claw/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/claw/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/claw/node_modules/es-object-atoms/ToObject.js +10 -0
- package/claw/node_modules/es-object-atoms/index.d.ts +3 -0
- package/claw/node_modules/es-object-atoms/index.js +4 -0
- package/claw/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/claw/node_modules/es-object-atoms/isObject.js +6 -0
- package/claw/node_modules/es-object-atoms/package.json +80 -0
- package/claw/node_modules/es-object-atoms/test/index.js +38 -0
- package/claw/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/claw/node_modules/for-each/.editorconfig +20 -0
- package/claw/node_modules/for-each/.eslintrc +30 -0
- package/claw/node_modules/for-each/.github/FUNDING.yml +12 -0
- package/claw/node_modules/for-each/.github/SECURITY.md +3 -0
- package/claw/node_modules/for-each/.nycrc +8 -0
- package/claw/node_modules/for-each/CHANGELOG.md +107 -0
- package/claw/node_modules/for-each/LICENSE +22 -0
- package/claw/node_modules/for-each/README.md +39 -0
- package/claw/node_modules/for-each/index.d.ts +35 -0
- package/claw/node_modules/for-each/index.js +69 -0
- package/claw/node_modules/for-each/package.json +76 -0
- package/claw/node_modules/for-each/test/test.js +224 -0
- package/claw/node_modules/for-each/tsconfig.json +8 -0
- package/claw/node_modules/function-bind/.eslintrc +21 -0
- package/claw/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/claw/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/claw/node_modules/function-bind/.nycrc +13 -0
- package/claw/node_modules/function-bind/CHANGELOG.md +136 -0
- package/claw/node_modules/function-bind/LICENSE +20 -0
- package/claw/node_modules/function-bind/README.md +46 -0
- package/claw/node_modules/function-bind/implementation.js +84 -0
- package/claw/node_modules/function-bind/index.js +5 -0
- package/claw/node_modules/function-bind/package.json +87 -0
- package/claw/node_modules/function-bind/test/.eslintrc +9 -0
- package/claw/node_modules/function-bind/test/index.js +252 -0
- package/claw/node_modules/functions-have-names/.editorconfig +20 -0
- package/claw/node_modules/functions-have-names/.eslintrc +19 -0
- package/claw/node_modules/functions-have-names/.github/FUNDING.yml +12 -0
- package/claw/node_modules/functions-have-names/.nycrc +9 -0
- package/claw/node_modules/functions-have-names/CHANGELOG.md +89 -0
- package/claw/node_modules/functions-have-names/LICENSE +21 -0
- package/claw/node_modules/functions-have-names/README.md +40 -0
- package/claw/node_modules/functions-have-names/index.js +31 -0
- package/claw/node_modules/functions-have-names/package.json +55 -0
- package/claw/node_modules/functions-have-names/test/index.js +65 -0
- package/claw/node_modules/get-intrinsic/.eslintrc +42 -0
- package/claw/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/claw/node_modules/get-intrinsic/.nycrc +9 -0
- package/claw/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/claw/node_modules/get-intrinsic/LICENSE +21 -0
- package/claw/node_modules/get-intrinsic/README.md +71 -0
- package/claw/node_modules/get-intrinsic/index.js +378 -0
- package/claw/node_modules/get-intrinsic/package.json +97 -0
- package/claw/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/claw/node_modules/get-proto/.eslintrc +10 -0
- package/claw/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/claw/node_modules/get-proto/.nycrc +9 -0
- package/claw/node_modules/get-proto/CHANGELOG.md +21 -0
- package/claw/node_modules/get-proto/LICENSE +21 -0
- package/claw/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/claw/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/claw/node_modules/get-proto/README.md +50 -0
- package/claw/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/claw/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/claw/node_modules/get-proto/index.d.ts +5 -0
- package/claw/node_modules/get-proto/index.js +27 -0
- package/claw/node_modules/get-proto/package.json +81 -0
- package/claw/node_modules/get-proto/test/index.js +68 -0
- package/claw/node_modules/get-proto/tsconfig.json +9 -0
- package/claw/node_modules/gopd/.eslintrc +16 -0
- package/claw/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/claw/node_modules/gopd/CHANGELOG.md +45 -0
- package/claw/node_modules/gopd/LICENSE +21 -0
- package/claw/node_modules/gopd/README.md +40 -0
- package/claw/node_modules/gopd/gOPD.d.ts +1 -0
- package/claw/node_modules/gopd/gOPD.js +4 -0
- package/claw/node_modules/gopd/index.d.ts +5 -0
- package/claw/node_modules/gopd/index.js +15 -0
- package/claw/node_modules/gopd/package.json +77 -0
- package/claw/node_modules/gopd/test/index.js +36 -0
- package/claw/node_modules/gopd/tsconfig.json +9 -0
- package/claw/node_modules/has-property-descriptors/.eslintrc +13 -0
- package/claw/node_modules/has-property-descriptors/.github/FUNDING.yml +12 -0
- package/claw/node_modules/has-property-descriptors/.nycrc +9 -0
- package/claw/node_modules/has-property-descriptors/CHANGELOG.md +35 -0
- package/claw/node_modules/has-property-descriptors/LICENSE +21 -0
- package/claw/node_modules/has-property-descriptors/README.md +43 -0
- package/claw/node_modules/has-property-descriptors/index.js +22 -0
- package/claw/node_modules/has-property-descriptors/package.json +77 -0
- package/claw/node_modules/has-property-descriptors/test/index.js +57 -0
- package/claw/node_modules/has-symbols/.eslintrc +11 -0
- package/claw/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/claw/node_modules/has-symbols/.nycrc +9 -0
- package/claw/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/claw/node_modules/has-symbols/LICENSE +21 -0
- package/claw/node_modules/has-symbols/README.md +46 -0
- package/claw/node_modules/has-symbols/index.d.ts +3 -0
- package/claw/node_modules/has-symbols/index.js +14 -0
- package/claw/node_modules/has-symbols/package.json +111 -0
- package/claw/node_modules/has-symbols/shams.d.ts +3 -0
- package/claw/node_modules/has-symbols/shams.js +45 -0
- package/claw/node_modules/has-symbols/test/index.js +22 -0
- package/claw/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/claw/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/claw/node_modules/has-symbols/test/tests.js +58 -0
- package/claw/node_modules/has-symbols/tsconfig.json +10 -0
- package/claw/node_modules/has-tostringtag/.eslintrc +5 -0
- package/claw/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
- package/claw/node_modules/has-tostringtag/.nycrc +13 -0
- package/claw/node_modules/has-tostringtag/CHANGELOG.md +42 -0
- package/claw/node_modules/has-tostringtag/LICENSE +21 -0
- package/claw/node_modules/has-tostringtag/README.md +46 -0
- package/claw/node_modules/has-tostringtag/index.d.ts +3 -0
- package/claw/node_modules/has-tostringtag/index.js +8 -0
- package/claw/node_modules/has-tostringtag/package.json +108 -0
- package/claw/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/claw/node_modules/has-tostringtag/shams.js +8 -0
- package/claw/node_modules/has-tostringtag/test/index.js +21 -0
- package/claw/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
- package/claw/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
- package/claw/node_modules/has-tostringtag/test/tests.js +15 -0
- package/claw/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/claw/node_modules/hash-base/.github/FUNDING.yml +12 -0
- package/claw/node_modules/hash-base/CHANGELOG.md +166 -0
- package/claw/node_modules/hash-base/LICENSE +21 -0
- package/claw/node_modules/hash-base/README.md +48 -0
- package/claw/node_modules/hash-base/index.js +109 -0
- package/claw/node_modules/hash-base/package.json +64 -0
- package/claw/node_modules/hash-base/to-buffer.js +20 -0
- package/claw/node_modules/hasown/.eslintrc +5 -0
- package/claw/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/claw/node_modules/hasown/.nycrc +13 -0
- package/claw/node_modules/hasown/CHANGELOG.md +40 -0
- package/claw/node_modules/hasown/LICENSE +21 -0
- package/claw/node_modules/hasown/README.md +40 -0
- package/claw/node_modules/hasown/index.d.ts +3 -0
- package/claw/node_modules/hasown/index.js +8 -0
- package/claw/node_modules/hasown/package.json +92 -0
- package/claw/node_modules/hasown/tsconfig.json +6 -0
- package/claw/node_modules/inherits/LICENSE +16 -0
- package/claw/node_modules/inherits/README.md +42 -0
- package/claw/node_modules/inherits/inherits.js +9 -0
- package/claw/node_modules/inherits/inherits_browser.js +27 -0
- package/claw/node_modules/inherits/package.json +29 -0
- package/claw/node_modules/is-arguments/.editorconfig +20 -0
- package/claw/node_modules/is-arguments/.eslintrc +9 -0
- package/claw/node_modules/is-arguments/.github/FUNDING.yml +12 -0
- package/claw/node_modules/is-arguments/.nycrc +9 -0
- package/claw/node_modules/is-arguments/CHANGELOG.md +201 -0
- package/claw/node_modules/is-arguments/LICENSE +20 -0
- package/claw/node_modules/is-arguments/README.md +47 -0
- package/claw/node_modules/is-arguments/index.d.ts +6 -0
- package/claw/node_modules/is-arguments/index.js +44 -0
- package/claw/node_modules/is-arguments/package.json +105 -0
- package/claw/node_modules/is-arguments/test/index.js +47 -0
- package/claw/node_modules/is-arguments/tsconfig.json +9 -0
- package/claw/node_modules/is-callable/.editorconfig +31 -0
- package/claw/node_modules/is-callable/.eslintrc +10 -0
- package/claw/node_modules/is-callable/.github/FUNDING.yml +12 -0
- package/claw/node_modules/is-callable/.nycrc +9 -0
- package/claw/node_modules/is-callable/CHANGELOG.md +158 -0
- package/claw/node_modules/is-callable/LICENSE +22 -0
- package/claw/node_modules/is-callable/README.md +83 -0
- package/claw/node_modules/is-callable/index.js +101 -0
- package/claw/node_modules/is-callable/package.json +106 -0
- package/claw/node_modules/is-callable/test/index.js +244 -0
- package/claw/node_modules/is-date-object/.editorconfig +20 -0
- package/claw/node_modules/is-date-object/.eslintrc +9 -0
- package/claw/node_modules/is-date-object/.github/FUNDING.yml +12 -0
- package/claw/node_modules/is-date-object/.nycrc +10 -0
- package/claw/node_modules/is-date-object/CHANGELOG.md +134 -0
- package/claw/node_modules/is-date-object/LICENSE +22 -0
- package/claw/node_modules/is-date-object/README.md +52 -0
- package/claw/node_modules/is-date-object/index.d.ts +3 -0
- package/claw/node_modules/is-date-object/index.js +27 -0
- package/claw/node_modules/is-date-object/package.json +99 -0
- package/claw/node_modules/is-date-object/test/index.js +38 -0
- package/claw/node_modules/is-date-object/tsconfig.json +6 -0
- package/claw/node_modules/is-regex/.editorconfig +23 -0
- package/claw/node_modules/is-regex/.eslintrc +10 -0
- package/claw/node_modules/is-regex/.nycrc +10 -0
- package/claw/node_modules/is-regex/CHANGELOG.md +233 -0
- package/claw/node_modules/is-regex/LICENSE +20 -0
- package/claw/node_modules/is-regex/README.md +52 -0
- package/claw/node_modules/is-regex/index.d.ts +3 -0
- package/claw/node_modules/is-regex/index.js +69 -0
- package/claw/node_modules/is-regex/package.json +104 -0
- package/claw/node_modules/is-regex/test/index.js +121 -0
- package/claw/node_modules/is-regex/tsconfig.json +9 -0
- package/claw/node_modules/is-typed-array/.editorconfig +20 -0
- package/claw/node_modules/is-typed-array/.eslintrc +13 -0
- package/claw/node_modules/is-typed-array/.github/FUNDING.yml +12 -0
- package/claw/node_modules/is-typed-array/.nycrc +9 -0
- package/claw/node_modules/is-typed-array/CHANGELOG.md +166 -0
- package/claw/node_modules/is-typed-array/LICENSE +22 -0
- package/claw/node_modules/is-typed-array/README.md +70 -0
- package/claw/node_modules/is-typed-array/index.d.ts +9 -0
- package/claw/node_modules/is-typed-array/index.js +8 -0
- package/claw/node_modules/is-typed-array/package.json +129 -0
- package/claw/node_modules/is-typed-array/test/index.js +111 -0
- package/claw/node_modules/is-typed-array/tsconfig.json +6 -0
- package/claw/node_modules/isarray/.travis.yml +4 -0
- package/claw/node_modules/isarray/Makefile +6 -0
- package/claw/node_modules/isarray/README.md +60 -0
- package/claw/node_modules/isarray/component.json +19 -0
- package/claw/node_modules/isarray/index.js +5 -0
- package/claw/node_modules/isarray/package.json +45 -0
- package/claw/node_modules/isarray/test.js +20 -0
- package/claw/node_modules/isomorphic-ws/LICENSE +21 -0
- package/claw/node_modules/isomorphic-ws/README.md +58 -0
- package/claw/node_modules/isomorphic-ws/browser.js +17 -0
- package/claw/node_modules/isomorphic-ws/index.d.ts +8 -0
- package/claw/node_modules/isomorphic-ws/node.js +3 -0
- package/claw/node_modules/isomorphic-ws/package.json +34 -0
- package/claw/node_modules/long/.travis.yml +5 -0
- package/claw/node_modules/long/LICENSE +202 -0
- package/claw/node_modules/long/README.md +513 -0
- package/claw/node_modules/long/bower.json +9 -0
- package/claw/node_modules/long/dist/README.md +16 -0
- package/claw/node_modules/long/dist/long.js +1209 -0
- package/claw/node_modules/long/dist/long.min.js +20 -0
- package/claw/node_modules/long/dist/long.min.js.gz +0 -0
- package/claw/node_modules/long/dist/long.min.map +8 -0
- package/claw/node_modules/long/doco/INDEX.md +6 -0
- package/claw/node_modules/long/doco/Long.md +473 -0
- package/claw/node_modules/long/donate.png +0 -0
- package/claw/node_modules/long/externs/long.js +416 -0
- package/claw/node_modules/long/index.js +1 -0
- package/claw/node_modules/long/jsdoc.json +13 -0
- package/claw/node_modules/long/long.png +0 -0
- package/claw/node_modules/long/package.json +33 -0
- package/claw/node_modules/long/scripts/build.js +28 -0
- package/claw/node_modules/long/src/bower.json +9 -0
- package/claw/node_modules/long/src/long.js +1172 -0
- package/claw/node_modules/long/src/wrap.js +38 -0
- package/claw/node_modules/long/tests/goog.math.long.js +807 -0
- package/claw/node_modules/long/tests/suite.js +195 -0
- package/claw/node_modules/lzma/.travis.yml +9 -0
- package/claw/node_modules/lzma/LICENSE +20 -0
- package/claw/node_modules/lzma/THANKS +7 -0
- package/claw/node_modules/lzma/bin/lzma.js +362 -0
- package/claw/node_modules/lzma/index.js +19 -0
- package/claw/node_modules/lzma/package.json +30 -0
- package/claw/node_modules/lzma/readme.md +149 -0
- package/claw/node_modules/lzma/src/lzma-c-min.js +1 -0
- package/claw/node_modules/lzma/src/lzma-c.js +2021 -0
- package/claw/node_modules/lzma/src/lzma-d-min.js +1 -0
- package/claw/node_modules/lzma/src/lzma-d.js +878 -0
- package/claw/node_modules/lzma/src/lzma-min.js +2 -0
- package/claw/node_modules/lzma/src/lzma.js +153 -0
- package/claw/node_modules/lzma/src/lzma_worker-min.js +2 -0
- package/claw/node_modules/lzma/src/lzma_worker.js +2668 -0
- package/claw/node_modules/math-intrinsics/.eslintrc +16 -0
- package/claw/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/claw/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/claw/node_modules/math-intrinsics/LICENSE +21 -0
- package/claw/node_modules/math-intrinsics/README.md +50 -0
- package/claw/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/claw/node_modules/math-intrinsics/abs.js +4 -0
- package/claw/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/claw/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/claw/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/claw/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/claw/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/claw/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/claw/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/claw/node_modules/math-intrinsics/floor.js +4 -0
- package/claw/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/claw/node_modules/math-intrinsics/isFinite.js +12 -0
- package/claw/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/claw/node_modules/math-intrinsics/isInteger.js +16 -0
- package/claw/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/claw/node_modules/math-intrinsics/isNaN.js +6 -0
- package/claw/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/claw/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/claw/node_modules/math-intrinsics/max.d.ts +1 -0
- package/claw/node_modules/math-intrinsics/max.js +4 -0
- package/claw/node_modules/math-intrinsics/min.d.ts +1 -0
- package/claw/node_modules/math-intrinsics/min.js +4 -0
- package/claw/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/claw/node_modules/math-intrinsics/mod.js +9 -0
- package/claw/node_modules/math-intrinsics/package.json +86 -0
- package/claw/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/claw/node_modules/math-intrinsics/pow.js +4 -0
- package/claw/node_modules/math-intrinsics/round.d.ts +1 -0
- package/claw/node_modules/math-intrinsics/round.js +4 -0
- package/claw/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/claw/node_modules/math-intrinsics/sign.js +11 -0
- package/claw/node_modules/math-intrinsics/test/index.js +192 -0
- package/claw/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/claw/node_modules/md5.js/LICENSE +21 -0
- package/claw/node_modules/md5.js/README.md +29 -0
- package/claw/node_modules/md5.js/index.js +146 -0
- package/claw/node_modules/md5.js/package.json +38 -0
- package/claw/node_modules/object-is/.eslintrc +5 -0
- package/claw/node_modules/object-is/.nycrc +9 -0
- package/claw/node_modules/object-is/CHANGELOG.md +175 -0
- package/claw/node_modules/object-is/LICENSE +20 -0
- package/claw/node_modules/object-is/README.md +60 -0
- package/claw/node_modules/object-is/auto.js +3 -0
- package/claw/node_modules/object-is/implementation.js +19 -0
- package/claw/node_modules/object-is/index.js +18 -0
- package/claw/node_modules/object-is/package.json +96 -0
- package/claw/node_modules/object-is/polyfill.js +7 -0
- package/claw/node_modules/object-is/shim.js +14 -0
- package/claw/node_modules/object-is/test/implementation.js +12 -0
- package/claw/node_modules/object-is/test/index.js +12 -0
- package/claw/node_modules/object-is/test/shimmed.js +28 -0
- package/claw/node_modules/object-is/test/tests.js +57 -0
- package/claw/node_modules/object-keys/.editorconfig +13 -0
- package/claw/node_modules/object-keys/.eslintrc +17 -0
- package/claw/node_modules/object-keys/.travis.yml +277 -0
- package/claw/node_modules/object-keys/CHANGELOG.md +232 -0
- package/claw/node_modules/object-keys/LICENSE +21 -0
- package/claw/node_modules/object-keys/README.md +76 -0
- package/claw/node_modules/object-keys/implementation.js +122 -0
- package/claw/node_modules/object-keys/index.js +32 -0
- package/claw/node_modules/object-keys/isArguments.js +17 -0
- package/claw/node_modules/object-keys/package.json +88 -0
- package/claw/node_modules/object-keys/test/index.js +5 -0
- package/claw/node_modules/object.assign/.editorconfig +20 -0
- package/claw/node_modules/object.assign/.eslintrc +28 -0
- package/claw/node_modules/object.assign/.github/FUNDING.yml +12 -0
- package/claw/node_modules/object.assign/.nycrc +9 -0
- package/claw/node_modules/object.assign/CHANGELOG.md +246 -0
- package/claw/node_modules/object.assign/LICENSE +21 -0
- package/claw/node_modules/object.assign/README.md +136 -0
- package/claw/node_modules/object.assign/auto.js +3 -0
- package/claw/node_modules/object.assign/dist/browser.js +1304 -0
- package/claw/node_modules/object.assign/hasSymbols.js +43 -0
- package/claw/node_modules/object.assign/implementation.js +46 -0
- package/claw/node_modules/object.assign/index.js +22 -0
- package/claw/node_modules/object.assign/package.json +96 -0
- package/claw/node_modules/object.assign/polyfill.js +55 -0
- package/claw/node_modules/object.assign/shim.js +14 -0
- package/claw/node_modules/object.assign/test/implementation.js +19 -0
- package/claw/node_modules/object.assign/test/index.js +17 -0
- package/claw/node_modules/object.assign/test/native.js +49 -0
- package/claw/node_modules/object.assign/test/ses-compat.js +12 -0
- package/claw/node_modules/object.assign/test/shimmed.js +52 -0
- package/claw/node_modules/object.assign/test/tests.js +232 -0
- package/claw/node_modules/possible-typed-array-names/.eslintrc +5 -0
- package/claw/node_modules/possible-typed-array-names/.github/FUNDING.yml +12 -0
- package/claw/node_modules/possible-typed-array-names/CHANGELOG.md +29 -0
- package/claw/node_modules/possible-typed-array-names/LICENSE +21 -0
- package/claw/node_modules/possible-typed-array-names/README.md +50 -0
- package/claw/node_modules/possible-typed-array-names/index.d.ts +16 -0
- package/claw/node_modules/possible-typed-array-names/index.js +17 -0
- package/claw/node_modules/possible-typed-array-names/package.json +84 -0
- package/claw/node_modules/possible-typed-array-names/test/index.js +19 -0
- package/claw/node_modules/possible-typed-array-names/tsconfig.json +9 -0
- package/claw/node_modules/process-nextick-args/index.js +45 -0
- package/claw/node_modules/process-nextick-args/license.md +19 -0
- package/claw/node_modules/process-nextick-args/package.json +25 -0
- package/claw/node_modules/process-nextick-args/readme.md +18 -0
- package/claw/node_modules/readable-stream/.travis.yml +34 -0
- package/claw/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/claw/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/claw/node_modules/readable-stream/LICENSE +47 -0
- package/claw/node_modules/readable-stream/README.md +58 -0
- package/claw/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/claw/node_modules/readable-stream/duplex-browser.js +1 -0
- package/claw/node_modules/readable-stream/duplex.js +1 -0
- package/claw/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
- package/claw/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
- package/claw/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
- package/claw/node_modules/readable-stream/lib/_stream_transform.js +214 -0
- package/claw/node_modules/readable-stream/lib/_stream_writable.js +685 -0
- package/claw/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
- package/claw/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
- package/claw/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/claw/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +21 -0
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/README.md +584 -0
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/index.d.ts +187 -0
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/index.js +62 -0
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/package.json +37 -0
- package/claw/node_modules/readable-stream/package.json +52 -0
- package/claw/node_modules/readable-stream/passthrough.js +1 -0
- package/claw/node_modules/readable-stream/readable-browser.js +7 -0
- package/claw/node_modules/readable-stream/readable.js +19 -0
- package/claw/node_modules/readable-stream/transform.js +1 -0
- package/claw/node_modules/readable-stream/writable-browser.js +1 -0
- package/claw/node_modules/readable-stream/writable.js +8 -0
- package/claw/node_modules/regexp.prototype.flags/.editorconfig +13 -0
- package/claw/node_modules/regexp.prototype.flags/.eslintrc +20 -0
- package/claw/node_modules/regexp.prototype.flags/.nycrc +9 -0
- package/claw/node_modules/regexp.prototype.flags/CHANGELOG.md +249 -0
- package/claw/node_modules/regexp.prototype.flags/LICENSE +22 -0
- package/claw/node_modules/regexp.prototype.flags/README.md +55 -0
- package/claw/node_modules/regexp.prototype.flags/auto.js +3 -0
- package/claw/node_modules/regexp.prototype.flags/implementation.js +39 -0
- package/claw/node_modules/regexp.prototype.flags/index.js +18 -0
- package/claw/node_modules/regexp.prototype.flags/package.json +105 -0
- package/claw/node_modules/regexp.prototype.flags/polyfill.js +39 -0
- package/claw/node_modules/regexp.prototype.flags/shim.js +26 -0
- package/claw/node_modules/regexp.prototype.flags/test/builtin.js +46 -0
- package/claw/node_modules/regexp.prototype.flags/test/implementation.js +20 -0
- package/claw/node_modules/regexp.prototype.flags/test/index.js +17 -0
- package/claw/node_modules/regexp.prototype.flags/test/shimmed.js +48 -0
- package/claw/node_modules/regexp.prototype.flags/test/tests.js +143 -0
- package/claw/node_modules/ripemd160/.github/FUNDING.yml +12 -0
- package/claw/node_modules/ripemd160/CHANGELOG.md +109 -0
- package/claw/node_modules/ripemd160/LICENSE +21 -0
- package/claw/node_modules/ripemd160/README.md +27 -0
- package/claw/node_modules/ripemd160/index.js +167 -0
- package/claw/node_modules/ripemd160/package.json +64 -0
- package/claw/node_modules/safe-buffer/LICENSE +21 -0
- package/claw/node_modules/safe-buffer/README.md +584 -0
- package/claw/node_modules/safe-buffer/index.d.ts +187 -0
- package/claw/node_modules/safe-buffer/index.js +65 -0
- package/claw/node_modules/safe-buffer/package.json +51 -0
- package/claw/node_modules/secure-random/CHANGELOG.md +51 -0
- package/claw/node_modules/secure-random/Makefile +8 -0
- package/claw/node_modules/secure-random/README.md +133 -0
- package/claw/node_modules/secure-random/lib/secure-random.js +83 -0
- package/claw/node_modules/secure-random/package.json +45 -0
- package/claw/node_modules/set-function-length/.eslintrc +27 -0
- package/claw/node_modules/set-function-length/.github/FUNDING.yml +12 -0
- package/claw/node_modules/set-function-length/.nycrc +13 -0
- package/claw/node_modules/set-function-length/CHANGELOG.md +70 -0
- package/claw/node_modules/set-function-length/LICENSE +21 -0
- package/claw/node_modules/set-function-length/README.md +56 -0
- package/claw/node_modules/set-function-length/env.d.ts +9 -0
- package/claw/node_modules/set-function-length/env.js +25 -0
- package/claw/node_modules/set-function-length/index.d.ts +7 -0
- package/claw/node_modules/set-function-length/index.js +42 -0
- package/claw/node_modules/set-function-length/package.json +102 -0
- package/claw/node_modules/set-function-length/tsconfig.json +9 -0
- package/claw/node_modules/set-function-name/.eslintrc +21 -0
- package/claw/node_modules/set-function-name/.github/FUNDING.yml +12 -0
- package/claw/node_modules/set-function-name/CHANGELOG.md +48 -0
- package/claw/node_modules/set-function-name/LICENSE +21 -0
- package/claw/node_modules/set-function-name/README.md +61 -0
- package/claw/node_modules/set-function-name/index.d.ts +5 -0
- package/claw/node_modules/set-function-name/index.js +23 -0
- package/claw/node_modules/set-function-name/package.json +99 -0
- package/claw/node_modules/set-function-name/tsconfig.json +59 -0
- package/claw/node_modules/sha.js/.eslintrc +76 -0
- package/claw/node_modules/sha.js/CHANGELOG.md +423 -0
- package/claw/node_modules/sha.js/LICENSE +49 -0
- package/claw/node_modules/sha.js/README.md +44 -0
- package/claw/node_modules/sha.js/bin.js +44 -0
- package/claw/node_modules/sha.js/hash.js +84 -0
- package/claw/node_modules/sha.js/index.js +19 -0
- package/claw/node_modules/sha.js/package.json +58 -0
- package/claw/node_modules/sha.js/sha.js +104 -0
- package/claw/node_modules/sha.js/sha1.js +109 -0
- package/claw/node_modules/sha.js/sha224.js +55 -0
- package/claw/node_modules/sha.js/sha256.js +189 -0
- package/claw/node_modules/sha.js/sha384.js +59 -0
- package/claw/node_modules/sha.js/sha512.js +382 -0
- package/claw/node_modules/sha.js/test/hash.js +80 -0
- package/claw/node_modules/sha.js/test/test.js +138 -0
- package/claw/node_modules/sha.js/test/vectors.js +72 -0
- package/claw/node_modules/string_decoder/.travis.yml +50 -0
- package/claw/node_modules/string_decoder/LICENSE +48 -0
- package/claw/node_modules/string_decoder/README.md +47 -0
- package/claw/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +21 -0
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/README.md +584 -0
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +187 -0
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/index.js +62 -0
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/package.json +37 -0
- package/claw/node_modules/string_decoder/package.json +31 -0
- package/claw/node_modules/to-buffer/.github/FUNDING.yml +12 -0
- package/claw/node_modules/to-buffer/CHANGELOG.md +81 -0
- package/claw/node_modules/to-buffer/LICENSE +21 -0
- package/claw/node_modules/to-buffer/README.md +44 -0
- package/claw/node_modules/to-buffer/index.js +109 -0
- package/claw/node_modules/to-buffer/node_modules/isarray/LICENSE +21 -0
- package/claw/node_modules/to-buffer/node_modules/isarray/README.md +38 -0
- package/claw/node_modules/to-buffer/node_modules/isarray/index.js +5 -0
- package/claw/node_modules/to-buffer/node_modules/isarray/package.json +48 -0
- package/claw/node_modules/to-buffer/package.json +62 -0
- package/claw/node_modules/typed-array-buffer/.eslintrc +13 -0
- package/claw/node_modules/typed-array-buffer/.github/FUNDING.yml +12 -0
- package/claw/node_modules/typed-array-buffer/.nycrc +13 -0
- package/claw/node_modules/typed-array-buffer/CHANGELOG.md +50 -0
- package/claw/node_modules/typed-array-buffer/LICENSE +21 -0
- package/claw/node_modules/typed-array-buffer/README.md +42 -0
- package/claw/node_modules/typed-array-buffer/index.d.ts +9 -0
- package/claw/node_modules/typed-array-buffer/index.js +19 -0
- package/claw/node_modules/typed-array-buffer/package.json +82 -0
- package/claw/node_modules/typed-array-buffer/test/index.js +23 -0
- package/claw/node_modules/typed-array-buffer/tsconfig.json +9 -0
- package/claw/node_modules/util/LICENSE +18 -0
- package/claw/node_modules/util/README.md +15 -0
- package/claw/node_modules/util/node_modules/inherits/LICENSE +16 -0
- package/claw/node_modules/util/node_modules/inherits/README.md +42 -0
- package/claw/node_modules/util/node_modules/inherits/inherits.js +7 -0
- package/claw/node_modules/util/node_modules/inherits/inherits_browser.js +23 -0
- package/claw/node_modules/util/node_modules/inherits/package.json +29 -0
- package/claw/node_modules/util/package.json +35 -0
- package/claw/node_modules/util/support/isBuffer.js +3 -0
- package/claw/node_modules/util/support/isBufferBrowser.js +6 -0
- package/claw/node_modules/util/util.js +586 -0
- package/claw/node_modules/util-deprecate/History.md +16 -0
- package/claw/node_modules/util-deprecate/LICENSE +24 -0
- package/claw/node_modules/util-deprecate/README.md +53 -0
- package/claw/node_modules/util-deprecate/browser.js +67 -0
- package/claw/node_modules/util-deprecate/node.js +6 -0
- package/claw/node_modules/util-deprecate/package.json +27 -0
- package/claw/node_modules/which-typed-array/.editorconfig +20 -0
- package/claw/node_modules/which-typed-array/.eslintrc +10 -0
- package/claw/node_modules/which-typed-array/.github/FUNDING.yml +12 -0
- package/claw/node_modules/which-typed-array/.nycrc +13 -0
- package/claw/node_modules/which-typed-array/CHANGELOG.md +269 -0
- package/claw/node_modules/which-typed-array/LICENSE +22 -0
- package/claw/node_modules/which-typed-array/README.md +70 -0
- package/claw/node_modules/which-typed-array/index.d.ts +66 -0
- package/claw/node_modules/which-typed-array/index.js +122 -0
- package/claw/node_modules/which-typed-array/package.json +130 -0
- package/claw/node_modules/which-typed-array/test/index.js +105 -0
- package/claw/node_modules/which-typed-array/tsconfig.json +9 -0
- package/claw/node_modules/ws/LICENSE +21 -0
- package/claw/node_modules/ws/README.md +449 -0
- package/claw/node_modules/ws/browser.js +8 -0
- package/claw/node_modules/ws/index.js +9 -0
- package/claw/node_modules/ws/lib/buffer-util.js +144 -0
- package/claw/node_modules/ws/lib/constants.js +10 -0
- package/claw/node_modules/ws/lib/event-target.js +170 -0
- package/claw/node_modules/ws/lib/extension.js +222 -0
- package/claw/node_modules/ws/lib/permessage-deflate.js +502 -0
- package/claw/node_modules/ws/lib/receiver.js +492 -0
- package/claw/node_modules/ws/lib/sender.js +358 -0
- package/claw/node_modules/ws/lib/validation.js +30 -0
- package/claw/node_modules/ws/lib/websocket-server.js +415 -0
- package/claw/node_modules/ws/lib/websocket.js +895 -0
- package/claw/node_modules/ws/package.json +45 -0
- package/claw/openclaw.plugin.json +13 -0
- package/claw/package.json +58 -0
- package/claw/runtimes/openclaw-plugin/index.ts +38 -0
- package/claw/runtimes/openclaw-plugin/openclaw.plugin.json +14 -0
- package/claw/runtimes/openclaw-plugin/package.json +7 -0
- package/claw/runtimes/openclaw-plugin/plugin-entry.d.ts +10 -0
- package/claw/runtimes/openclaw-plugin/skills/bitshares-claw/SKILL.md +20 -0
- package/claw/scripts/claw_bridge.ts +139 -0
- package/claw/scripts/claw_mcp_server.ts +133 -0
- package/claw/scripts/claw_skill_md.ts +92 -0
- package/claw/scripts/honest_assets_report.ts +405 -0
- package/claw/scripts/memu_mcp_server.ts +438 -0
- package/claw/skills/margin-trading/references/honest-assets.md +1 -1
- package/claw/skills/margin-trading/references/position-management.md +2 -2
- package/claw/skills/shared/references/js-automation-overview.md +2 -2
- package/claw/skills/trend-detection/references/service.md +24 -17
- package/claw/tests/package.json +3 -0
- package/claw/tests/test_claw_bridge.ts +542 -0
- package/claw/tests/test_claw_catalog_and_credentials.ts +152 -0
- package/claw/tests/test_claw_chain_layer.ts +719 -0
- package/claw/tests/test_claw_data_flow.ts +515 -0
- package/claw/tests/test_claw_domain_logic.ts +465 -0
- package/claw/tests/test_claw_manifest_and_matrix.ts +202 -0
- package/claw/tests/test_claw_mcp_transport.ts +238 -0
- package/claw/tests/test_claw_regressions.ts +580 -0
- package/claw/tests/test_claw_skill_generation.ts +103 -0
- package/claw/tests/test_claw_state_store.ts +44 -0
- package/claw/tests/test_dexbot_profiles.ts +572 -0
- package/claw/tests/test_memu_bridge.ts +189 -0
- package/claw/tests/test_nullclaw_tmp_integration.ts +58 -0
- package/claw/tests/test_position_health.ts +419 -0
- package/claw/tests/test_position_manager.ts +427 -0
- package/claw/tests/test_position_manager_watch_health.ts +104 -0
- package/claw/tests/test_short_mpa_strategy.ts +229 -0
- package/claw/tsconfig.json +35 -0
- package/dist/analysis/chart_utils.d.ts +13 -1
- package/dist/analysis/chart_utils.d.ts.map +1 -1
- package/dist/analysis/chart_utils.js +16 -1
- package/dist/analysis/chart_utils.js.map +1 -1
- package/dist/analysis/math_utils.d.ts +8 -12
- package/dist/analysis/math_utils.d.ts.map +1 -1
- package/dist/analysis/math_utils.js +9 -75
- package/dist/analysis/math_utils.js.map +1 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js +4 -4
- package/dist/credential-daemon.d.ts +1 -1
- package/dist/credential-daemon.js +1 -1
- package/dist/dexbot.d.ts.map +1 -1
- package/dist/dexbot.js +46 -43
- package/dist/dexbot.js.map +1 -1
- package/dist/market_adapter/candle_utils.d.ts +18 -1
- package/dist/market_adapter/candle_utils.d.ts.map +1 -1
- package/dist/market_adapter/candle_utils.js +50 -1
- package/dist/market_adapter/candle_utils.js.map +1 -1
- package/dist/market_adapter/core/config_normalizers.js +1 -1
- package/dist/market_adapter/core/config_normalizers.js.map +1 -1
- package/dist/market_adapter/core/kibana_client.d.ts +2 -2
- package/dist/market_adapter/core/kibana_client.js +2 -2
- package/dist/market_adapter/core/kibana_market_candles.d.ts +1 -87
- package/dist/market_adapter/core/kibana_market_candles.d.ts.map +1 -1
- package/dist/market_adapter/core/kibana_market_candles.js +1 -80
- package/dist/market_adapter/core/kibana_market_candles.js.map +1 -1
- package/dist/market_adapter/core/market_adapter_service.d.ts +0 -8
- package/dist/market_adapter/core/market_adapter_service.d.ts.map +1 -1
- package/dist/market_adapter/core/market_adapter_service.js +28 -115
- package/dist/market_adapter/core/market_adapter_service.js.map +1 -1
- package/dist/market_adapter/core/signals/hurst_analyzer.d.ts.map +1 -0
- package/dist/{analysis/trend_detection → market_adapter/core/signals}/hurst_analyzer.js +2 -2
- package/dist/market_adapter/core/signals/hurst_analyzer.js.map +1 -0
- package/dist/{analysis/trend_detection → market_adapter/core/signals}/kalman_trend_analyzer.d.ts +0 -1
- package/dist/market_adapter/core/signals/kalman_trend_analyzer.d.ts.map +1 -0
- package/dist/{analysis/trend_detection → market_adapter/core/signals}/kalman_trend_analyzer.js +2 -4
- package/dist/market_adapter/core/signals/kalman_trend_analyzer.js.map +1 -0
- package/dist/{analysis/trend_detection → market_adapter/core/signals}/kalman_velocity_smoothing.d.ts +25 -4
- package/dist/market_adapter/core/signals/kalman_velocity_smoothing.d.ts.map +1 -0
- package/dist/{analysis/trend_detection → market_adapter/core/signals}/kalman_velocity_smoothing.js +41 -19
- package/dist/market_adapter/core/signals/kalman_velocity_smoothing.js.map +1 -0
- package/dist/market_adapter/core/signals/permutation_entropy_analyzer.d.ts.map +1 -0
- package/dist/{analysis/trend_detection → market_adapter/core/signals}/permutation_entropy_analyzer.js +2 -2
- package/dist/market_adapter/core/signals/permutation_entropy_analyzer.js.map +1 -0
- package/dist/market_adapter/core/strategies/ama.d.ts +1 -19
- package/dist/market_adapter/core/strategies/ama.d.ts.map +1 -1
- package/dist/market_adapter/core/strategies/ama.js +1 -1
- package/dist/market_adapter/core/strategies/ama.js.map +1 -1
- package/dist/market_adapter/core/strategies/ama_slope_model.d.ts +2 -13
- package/dist/market_adapter/core/strategies/ama_slope_model.d.ts.map +1 -1
- package/dist/market_adapter/core/strategies/ama_slope_model.js +15 -26
- package/dist/market_adapter/core/strategies/ama_slope_model.js.map +1 -1
- package/dist/market_adapter/core/strategies/atr/calculator.d.ts +38 -3
- package/dist/market_adapter/core/strategies/atr/calculator.d.ts.map +1 -1
- package/dist/market_adapter/core/strategies/atr/calculator.js +84 -24
- package/dist/market_adapter/core/strategies/atr/calculator.js.map +1 -1
- package/dist/market_adapter/core/strategies/collateral_manager.d.ts +1 -1
- package/dist/market_adapter/core/strategies/collateral_manager.js +1 -1
- package/dist/market_adapter/core/strategies/dynamic_weight_series.d.ts +32 -0
- package/dist/market_adapter/core/strategies/dynamic_weight_series.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/dynamic_weight_series.js +136 -0
- package/dist/market_adapter/core/strategies/dynamic_weight_series.js.map +1 -0
- package/dist/market_adapter/core/strategies/regime_gate.d.ts +6 -21
- package/dist/market_adapter/core/strategies/regime_gate.d.ts.map +1 -1
- package/dist/market_adapter/core/strategies/regime_gate.js +11 -74
- package/dist/market_adapter/core/strategies/regime_gate.js.map +1 -1
- package/dist/market_adapter/core/strategies/regime_interp.d.ts +13 -0
- package/dist/market_adapter/core/strategies/regime_interp.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/regime_interp.js +74 -0
- package/dist/market_adapter/core/strategies/regime_interp.js.map +1 -0
- package/dist/market_adapter/core/strategies/volatility_shift.d.ts +22 -0
- package/dist/market_adapter/core/strategies/volatility_shift.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/volatility_shift.js +37 -0
- package/dist/market_adapter/core/strategies/volatility_shift.js.map +1 -0
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js +3 -4
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js.map +1 -1
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts +1 -10
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts.map +1 -1
- package/dist/market_adapter/inputs/fetch_lp_data.js +1 -1
- package/dist/market_adapter/inputs/fetch_lp_data.js.map +1 -1
- package/dist/market_adapter/lp_chart_core.d.ts.map +1 -1
- package/dist/market_adapter/lp_chart_core.js +0 -10
- package/dist/market_adapter/lp_chart_core.js.map +1 -1
- package/dist/market_adapter/lp_chart_runner.d.ts +1 -16
- package/dist/market_adapter/lp_chart_runner.d.ts.map +1 -1
- package/dist/market_adapter/lp_chart_runner.js +1 -15
- package/dist/market_adapter/lp_chart_runner.js.map +1 -1
- package/dist/market_adapter/market_adapter.d.ts +3 -3
- package/dist/market_adapter/market_adapter.d.ts.map +1 -1
- package/dist/market_adapter/market_adapter.js +6 -8
- package/dist/market_adapter/market_adapter.js.map +1 -1
- package/dist/market_adapter/merge_lp_data.js +5 -5
- package/dist/market_adapter/utils/adapter_client.d.ts +1 -3
- package/dist/market_adapter/utils/adapter_client.d.ts.map +1 -1
- package/dist/market_adapter/utils/adapter_client.js +1 -14
- package/dist/market_adapter/utils/adapter_client.js.map +1 -1
- package/dist/market_adapter/utils/data_discovery.d.ts.map +1 -1
- package/dist/market_adapter/utils/data_discovery.js +1 -2
- package/dist/market_adapter/utils/data_discovery.js.map +1 -1
- package/dist/market_adapter/utils/dynamic_grid_snapshot.d.ts +1 -3
- package/dist/market_adapter/utils/dynamic_grid_snapshot.d.ts.map +1 -1
- package/dist/market_adapter/utils/dynamic_grid_snapshot.js +1 -1
- package/dist/market_adapter/utils/dynamic_grid_snapshot.js.map +1 -1
- package/dist/market_adapter/utils/file_lock.d.ts +10 -2
- package/dist/market_adapter/utils/file_lock.d.ts.map +1 -1
- package/dist/market_adapter/utils/file_lock.js +171 -102
- package/dist/market_adapter/utils/file_lock.js.map +1 -1
- package/dist/market_adapter/utils/native_history.d.ts +1 -9
- package/dist/market_adapter/utils/native_history.d.ts.map +1 -1
- package/dist/market_adapter/utils/native_history.js +1 -21
- package/dist/market_adapter/utils/native_history.js.map +1 -1
- package/dist/modules/account_bots.d.ts +16 -38
- package/dist/modules/account_bots.d.ts.map +1 -1
- package/dist/modules/account_bots.js +16 -38
- package/dist/modules/account_bots.js.map +1 -1
- package/dist/modules/account_orders.d.ts +11 -11
- package/dist/modules/account_orders.d.ts.map +1 -1
- package/dist/modules/account_orders.js +11 -18
- package/dist/modules/account_orders.js.map +1 -1
- package/dist/modules/bitshares_client.d.ts +5 -8
- package/dist/modules/bitshares_client.d.ts.map +1 -1
- package/dist/modules/bitshares_client.js +6 -10
- package/dist/modules/bitshares_client.js.map +1 -1
- package/dist/modules/bots_file_lock.d.ts +8 -5
- package/dist/modules/bots_file_lock.d.ts.map +1 -1
- package/dist/modules/bots_file_lock.js +8 -5
- package/dist/modules/bots_file_lock.js.map +1 -1
- package/dist/modules/chain_keys.d.ts +31 -22
- package/dist/modules/chain_keys.d.ts.map +1 -1
- package/dist/modules/chain_keys.js +31 -22
- package/dist/modules/chain_keys.js.map +1 -1
- package/dist/modules/chain_orders.d.ts +52 -48
- package/dist/modules/chain_orders.d.ts.map +1 -1
- package/dist/modules/chain_orders.js +124 -49
- package/dist/modules/chain_orders.js.map +1 -1
- package/dist/modules/constants.d.ts +17 -13
- package/dist/modules/constants.d.ts.map +1 -1
- package/dist/modules/constants.js +43 -22
- package/dist/modules/constants.js.map +1 -1
- package/dist/modules/cr_planner.d.ts +2 -1
- package/dist/modules/cr_planner.d.ts.map +1 -1
- package/dist/modules/cr_planner.js +1 -1
- package/dist/modules/cr_planner.js.map +1 -1
- package/dist/modules/credential_policy.d.ts +6 -4
- package/dist/modules/credential_policy.d.ts.map +1 -1
- package/dist/modules/credential_policy.js +6 -4
- package/dist/modules/credential_policy.js.map +1 -1
- package/dist/modules/credit_runtime.d.ts.map +1 -1
- package/dist/modules/credit_runtime.js +4 -8
- package/dist/modules/credit_runtime.js.map +1 -1
- package/dist/modules/dexbot_class.d.ts +35 -72
- package/dist/modules/dexbot_class.d.ts.map +1 -1
- package/dist/modules/dexbot_class.js +43 -68
- package/dist/modules/dexbot_class.js.map +1 -1
- package/dist/modules/dexbot_cow_runtime.d.ts +25 -8
- package/dist/modules/dexbot_cow_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_cow_runtime.js +79 -14
- package/dist/modules/dexbot_cow_runtime.js.map +1 -1
- package/dist/modules/dexbot_credential_client.d.ts +3 -3
- package/dist/modules/dexbot_credential_client.js +3 -3
- package/dist/modules/dexbot_credential_client.js.map +1 -1
- package/dist/modules/dexbot_fill_runtime.d.ts +1 -7
- package/dist/modules/dexbot_fill_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_fill_runtime.js +1 -9
- package/dist/modules/dexbot_fill_runtime.js.map +1 -1
- package/dist/modules/dexbot_maintenance_runtime.d.ts +6 -0
- package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_maintenance_runtime.js +29 -6
- package/dist/modules/dexbot_maintenance_runtime.js.map +1 -1
- package/dist/modules/dexbot_state_recovery.d.ts.map +1 -1
- package/dist/modules/dexbot_state_recovery.js +99 -1
- package/dist/modules/dexbot_state_recovery.js.map +1 -1
- package/dist/modules/graceful_shutdown.d.ts +4 -2
- package/dist/modules/graceful_shutdown.d.ts.map +1 -1
- package/dist/modules/graceful_shutdown.js +4 -2
- package/dist/modules/graceful_shutdown.js.map +1 -1
- package/dist/modules/launcher/bot_supervisor.d.ts +1 -1
- package/dist/modules/launcher/bot_supervisor.d.ts.map +1 -1
- package/dist/modules/launcher/bot_supervisor.js +1 -4
- package/dist/modules/launcher/bot_supervisor.js.map +1 -1
- package/dist/modules/launcher/foreign_cred_daemon.d.ts +1 -1
- package/dist/modules/launcher/foreign_cred_daemon.js +1 -1
- package/dist/modules/launcher/supervisor_control.js +1 -1
- package/dist/modules/launcher/supervisor_control.js.map +1 -1
- package/dist/modules/market_adapter_whitelist.d.ts +1 -2
- package/dist/modules/market_adapter_whitelist.d.ts.map +1 -1
- package/dist/modules/market_adapter_whitelist.js +1 -4
- package/dist/modules/market_adapter_whitelist.js.map +1 -1
- package/dist/modules/node_health_cache.d.ts +12 -4
- package/dist/modules/node_health_cache.d.ts.map +1 -1
- package/dist/modules/node_health_cache.js +13 -13
- package/dist/modules/node_health_cache.js.map +1 -1
- package/dist/modules/node_manager.d.ts.map +1 -1
- package/dist/modules/node_manager.js +3 -6
- package/dist/modules/node_manager.js.map +1 -1
- package/dist/modules/order/accounting.d.ts +2 -37
- package/dist/modules/order/accounting.d.ts.map +1 -1
- package/dist/modules/order/accounting.js +2 -64
- package/dist/modules/order/accounting.js.map +1 -1
- package/dist/modules/order/async_lock.d.ts +25 -1
- package/dist/modules/order/async_lock.d.ts.map +1 -1
- package/dist/modules/order/async_lock.js +67 -6
- package/dist/modules/order/async_lock.js.map +1 -1
- package/dist/modules/order/export.d.ts +1 -37
- 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/format.d.ts +28 -14
- package/dist/modules/order/format.d.ts.map +1 -1
- package/dist/modules/order/format.js +73 -18
- package/dist/modules/order/format.js.map +1 -1
- package/dist/modules/order/grid.d.ts +11 -5
- package/dist/modules/order/grid.d.ts.map +1 -1
- package/dist/modules/order/grid.js +79 -37
- package/dist/modules/order/grid.js.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/logger_state.d.ts +3 -45
- package/dist/modules/order/logger_state.d.ts.map +1 -1
- package/dist/modules/order/logger_state.js +3 -55
- package/dist/modules/order/logger_state.js.map +1 -1
- package/dist/modules/order/manager.d.ts +0 -4
- package/dist/modules/order/manager.d.ts.map +1 -1
- package/dist/modules/order/manager.js +3 -9
- package/dist/modules/order/manager.js.map +1 -1
- package/dist/modules/order/sync_engine.d.ts +0 -2
- package/dist/modules/order/sync_engine.d.ts.map +1 -1
- package/dist/modules/order/sync_engine.js +1 -4
- package/dist/modules/order/sync_engine.js.map +1 -1
- package/dist/modules/order/utils/math.d.ts +2 -11
- package/dist/modules/order/utils/math.d.ts.map +1 -1
- package/dist/modules/order/utils/math.js +3 -14
- package/dist/modules/order/utils/math.js.map +1 -1
- package/dist/modules/order/utils/order.d.ts +1 -17
- package/dist/modules/order/utils/order.d.ts.map +1 -1
- package/dist/modules/order/utils/order.js +3 -21
- package/dist/modules/order/utils/order.js.map +1 -1
- package/dist/modules/order/utils/system.d.ts +1 -11
- package/dist/modules/order/utils/system.d.ts.map +1 -1
- package/dist/modules/order/utils/system.js +3 -3
- package/dist/modules/order/utils/system.js.map +1 -1
- package/dist/modules/order/utils/validate.d.ts +1 -26
- package/dist/modules/order/utils/validate.d.ts.map +1 -1
- package/dist/modules/order/utils/validate.js +1 -1
- package/dist/modules/order/utils/validate.js.map +1 -1
- package/dist/modules/order/working_grid.d.ts +3 -9
- package/dist/modules/order/working_grid.d.ts.map +1 -1
- package/dist/modules/order/working_grid.js +3 -11
- package/dist/modules/order/working_grid.js.map +1 -1
- package/dist/modules/runtime_settings.js +1 -1
- package/dist/modules/runtime_settings.js.map +1 -1
- package/dist/pm2.d.ts +1 -1
- package/dist/pm2.d.ts.map +1 -1
- package/dist/pm2.js +1 -4
- package/dist/pm2.js.map +1 -1
- package/dist/scripts/analyze-orders.d.ts.map +1 -1
- package/dist/scripts/analyze-orders.js +36 -45
- package/dist/scripts/analyze-orders.js.map +1 -1
- package/dist/scripts/sync-version.js +22 -0
- package/dist/scripts/sync-version.js.map +1 -1
- package/dist/scripts/update.js +6 -6
- package/dist/scripts/update.js.map +1 -1
- package/dist/unlock.d.ts.map +1 -1
- package/dist/unlock.js +15 -14
- package/dist/unlock.js.map +1 -1
- package/ecosystem.config.cjs +32 -0
- package/package.json +17 -4
- package/scripts/README.md +4 -4
- package/scripts/postinstall.js +1 -1
- package/dist/analysis/trend_detection/hurst_analyzer.d.ts.map +0 -1
- package/dist/analysis/trend_detection/hurst_analyzer.js.map +0 -1
- package/dist/analysis/trend_detection/kalman_trend_analyzer.d.ts.map +0 -1
- package/dist/analysis/trend_detection/kalman_trend_analyzer.js.map +0 -1
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.d.ts.map +0 -1
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.js.map +0 -1
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.d.ts.map +0 -1
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.js.map +0 -1
- package/dist/market_adapter/index.d.ts +0 -32
- package/dist/market_adapter/index.d.ts.map +0 -1
- package/dist/market_adapter/index.js +0 -39
- package/dist/market_adapter/index.js.map +0 -1
- package/dist/scripts/fix-err-message.d.ts +0 -3
- package/dist/scripts/fix-err-message.d.ts.map +0 -1
- package/dist/scripts/fix-err-message.js +0 -193
- package/dist/scripts/fix-err-message.js.map +0 -1
- /package/dist/{analysis/trend_detection → market_adapter/core/signals}/hurst_analyzer.d.ts +0 -0
- /package/dist/{analysis/trend_detection → market_adapter/core/signals}/permutation_entropy_analyzer.d.ts +0 -0
package/dist/{analysis/trend_detection → market_adapter/core/signals}/kalman_velocity_smoothing.js
RENAMED
|
@@ -1,23 +1,45 @@
|
|
|
1
|
-
import { clamp } from '../../modules/order/utils/math.js';
|
|
2
|
-
import { MARKET_ADAPTER } from '../../modules/constants.js';
|
|
3
1
|
'use strict';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { MARKET_ADAPTER } from '../../../modules/constants.js';
|
|
3
|
+
/**
|
|
4
|
+
* Kalman velocity smoothing — canonical implementation shared by the live
|
|
5
|
+
* market adapter service, analysis research charts, and the browser-embedded
|
|
6
|
+
* chart scripts (injected via fn.toString()).
|
|
7
|
+
*
|
|
8
|
+
* The public functions below are intentionally self-contained (no module
|
|
9
|
+
* imports referenced inside function bodies) so the chart generators can embed
|
|
10
|
+
* their exact source into generated HTML and keep every consumer on one logic
|
|
11
|
+
* path. Node-side defaults resolve from MARKET_ADAPTER constants; embedded
|
|
12
|
+
* browser callers pass explicit config values from the chart payload.
|
|
13
|
+
*/
|
|
14
|
+
const KALMAN_VELOCITY_DEFAULTS = {
|
|
15
|
+
kalmanSmoothPct: MARKET_ADAPTER.DYNAMIC_WEIGHT_KALMAN_SMOOTH_PCT_DEFAULT,
|
|
16
|
+
kalmanDispScaleMult: MARKET_ADAPTER.DYNAMIC_WEIGHT_KALMAN_DISP_SCALE_MULT_DEFAULT,
|
|
17
|
+
kalmanDispThresholdMult: MARKET_ADAPTER.DYNAMIC_WEIGHT_KALMAN_DISP_THRESHOLD_MULT_DEFAULT,
|
|
18
|
+
kalmanSmoothSpanPct: MARKET_ADAPTER.DYNAMIC_WEIGHT_KALMAN_SMOOTH_SPAN_PCT_DEFAULT,
|
|
19
|
+
smoothingBudget: MARKET_ADAPTER.DYNAMIC_WEIGHT_KALMAN_SMOOTHING_BUDGET,
|
|
20
|
+
smoothingFloor: MARKET_ADAPTER.DYNAMIC_WEIGHT_KALMAN_SMOOTHING_FLOOR,
|
|
21
|
+
};
|
|
22
|
+
function resolveKalmanVelocitySmoothingConfig(config = {}, defaults = {}) {
|
|
23
|
+
const blend = Math.max(0, Math.min(200, config.kalmanSmoothPct ?? defaults.kalmanSmoothPct ?? 100)) / 100;
|
|
24
|
+
const dispScale = Math.max(1.0, Math.min(3.0, config.kalmanDispScaleMult ?? defaults.kalmanDispScaleMult ?? 1.8));
|
|
25
|
+
const dispThreshold = Math.max(0.25, Math.min(3.0, config.kalmanDispThresholdMult ?? defaults.kalmanDispThresholdMult ?? 1.5));
|
|
26
|
+
const spanPct = Math.max(20, Math.min(200, config.kalmanSmoothSpanPct ?? defaults.kalmanSmoothSpanPct ?? 100));
|
|
27
|
+
const smoothingBudget = Number.isFinite(config.smoothingBudget)
|
|
28
|
+
? config.smoothingBudget
|
|
29
|
+
: (Number.isFinite(defaults.smoothingBudget) ? defaults.smoothingBudget : 0.60);
|
|
30
|
+
const smoothingFloor = Number.isFinite(config.smoothingFloor)
|
|
31
|
+
? config.smoothingFloor
|
|
32
|
+
: (Number.isFinite(defaults.smoothingFloor) ? defaults.smoothingFloor : 0);
|
|
11
33
|
return {
|
|
12
34
|
blend,
|
|
13
35
|
dispScale,
|
|
14
36
|
dispThreshold,
|
|
15
|
-
smoothingFloor
|
|
16
|
-
smoothingBudget
|
|
17
|
-
smoothingSpan:
|
|
37
|
+
smoothingFloor,
|
|
38
|
+
smoothingBudget,
|
|
39
|
+
smoothingSpan: smoothingBudget * spanPct / 100,
|
|
18
40
|
};
|
|
19
41
|
}
|
|
20
|
-
function smoothKalmanVelocityPoint(rawVelocityPct, displacementPct, prevAdaptiveVelocity, config = {}) {
|
|
42
|
+
function smoothKalmanVelocityPoint(rawVelocityPct, displacementPct, prevAdaptiveVelocity, config = {}, defaults = {}) {
|
|
21
43
|
if (rawVelocityPct == null || displacementPct == null) {
|
|
22
44
|
return {
|
|
23
45
|
adaptiveVelocityPct: null,
|
|
@@ -26,8 +48,8 @@ function smoothKalmanVelocityPoint(rawVelocityPct, displacementPct, prevAdaptive
|
|
|
26
48
|
smoothingAlpha: null,
|
|
27
49
|
};
|
|
28
50
|
}
|
|
29
|
-
const resolved = resolveKalmanVelocitySmoothingConfig(config);
|
|
30
|
-
const trendConfidence =
|
|
51
|
+
const resolved = resolveKalmanVelocitySmoothingConfig(config, defaults);
|
|
52
|
+
const trendConfidence = Math.max(0, Math.min(1, Math.abs(displacementPct) / (resolved.dispScale * resolved.dispThreshold)));
|
|
31
53
|
const smoothingAlpha = Math.min(resolved.smoothingBudget, resolved.smoothingFloor + (resolved.smoothingSpan * trendConfidence));
|
|
32
54
|
const adaptiveVelocityPct = prevAdaptiveVelocity == null
|
|
33
55
|
? rawVelocityPct
|
|
@@ -42,10 +64,10 @@ function smoothKalmanVelocityPoint(rawVelocityPct, displacementPct, prevAdaptive
|
|
|
42
64
|
smoothingAlpha,
|
|
43
65
|
};
|
|
44
66
|
}
|
|
45
|
-
function buildKalmanVelocitySeries(kalmanHistory, config = {}) {
|
|
67
|
+
function buildKalmanVelocitySeries(kalmanHistory, config = {}, defaults = {}) {
|
|
46
68
|
if (!Array.isArray(kalmanHistory) || kalmanHistory.length === 0)
|
|
47
69
|
return [];
|
|
48
|
-
const resolved = resolveKalmanVelocitySmoothingConfig(config);
|
|
70
|
+
const resolved = resolveKalmanVelocitySmoothingConfig(config, defaults);
|
|
49
71
|
if (resolved.blend === 0) {
|
|
50
72
|
const rawSeries = new Array(kalmanHistory.length).fill(null);
|
|
51
73
|
for (let i = 0; i < kalmanHistory.length; i++) {
|
|
@@ -60,7 +82,7 @@ function buildKalmanVelocitySeries(kalmanHistory, config = {}) {
|
|
|
60
82
|
let prevAdaptiveVelocity = null;
|
|
61
83
|
for (let i = 0; i < kalmanHistory.length; i++) {
|
|
62
84
|
const point = kalmanHistory[i];
|
|
63
|
-
const result = smoothKalmanVelocityPoint(point?.velocityPct ?? null, point?.displacementPct ?? null, prevAdaptiveVelocity, config);
|
|
85
|
+
const result = smoothKalmanVelocityPoint(point?.velocityPct ?? null, point?.displacementPct ?? null, prevAdaptiveVelocity, config, defaults);
|
|
64
86
|
series[i] = result.smoothedVelocityPct;
|
|
65
87
|
prevAdaptiveVelocity = result.adaptiveVelocityPct ?? null;
|
|
66
88
|
}
|
|
@@ -80,5 +102,5 @@ function computeAbsolutePercentileThreshold(series, clipPercentile, fallback = I
|
|
|
80
102
|
const idx = Math.min(Math.floor((100 - clipPercentile) / 100 * magnitudes.length), magnitudes.length - 1);
|
|
81
103
|
return magnitudes[idx];
|
|
82
104
|
}
|
|
83
|
-
export { buildKalmanVelocitySeries, computeAbsolutePercentileThreshold, resolveKalmanVelocitySmoothingConfig, smoothKalmanVelocityPoint };
|
|
105
|
+
export { buildKalmanVelocitySeries, computeAbsolutePercentileThreshold, resolveKalmanVelocitySmoothingConfig, smoothKalmanVelocityPoint, KALMAN_VELOCITY_DEFAULTS };
|
|
84
106
|
//# sourceMappingURL=kalman_velocity_smoothing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kalman_velocity_smoothing.js","sourceRoot":"","sources":["../../../../market_adapter/core/signals/kalman_velocity_smoothing.ts"],"names":[],"mappings":"AACA,YAAY,CAAC;AAEb,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D;;;;;;;;;;GAUG;AAEH,MAAM,wBAAwB,GAAG;IAC7B,eAAe,EAAE,cAAc,CAAC,wCAAwC;IACxE,mBAAmB,EAAE,cAAc,CAAC,6CAA6C;IACjF,uBAAuB,EAAE,cAAc,CAAC,iDAAiD;IACzF,mBAAmB,EAAE,cAAc,CAAC,6CAA6C;IACjF,eAAe,EAAE,cAAc,CAAC,sCAAsC;IACtE,cAAc,EAAE,cAAc,CAAC,qCAAqC;CACvE,CAAC;AAgBF,SAAS,oCAAoC,CAAC,SAA+B,EAAE,EAAE,WAA0C,EAAE;IACzH,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,eAAe,IAAI,QAAQ,CAAC,eAAe,IAAI,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;IAC1G,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,mBAAmB,IAAI,QAAQ,CAAC,mBAAmB,IAAI,GAAG,CAAC,CAAC,CAAC;IAClH,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IA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,EAAE,cAAsB,EAAE,QAAQ,GAAG,QAAQ;IAC1H,IAAI,CAAC,CAAC,cAAc,GAAG,CAAC,CAAC;QAAE,OAAO,QAAQ,CAAC;IAE3C,MAAM,UAAU,GAAa,EAAE,CAAC;IAChC,KAAK,MAAM,KAAK,IAAI,MAAM,IAAI,EAAE,EAAE,CAAC;QAC/B,IAAI,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;IAClF,CAAC;IACD,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAC;IAE7C,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAChB,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG,cAAc,CAAC,GAAG,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,EAC5D,UAAU,CAAC,MAAM,GAAG,CAAC,CACxB,CAAC;IACF,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC;AAED,OAAO,EAAE,yBAAyB,EAAE,kCAAkC,EAAE,oCAAoC,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permutation_entropy_analyzer.d.ts","sourceRoot":"","sources":["../../../../market_adapter/core/signals/permutation_entropy_analyzer.ts"],"names":[],"mappings":"AAsCA,UAAU,0BAA0B;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,cAAM,0BAA0B;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;;OAKG;gBACS,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;IAmB/C;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,0BAA0B;IAoCjD,WAAW,IAAI,0BAA0B;CAwB5C;AAED,OAAO,EAAE,0BAA0B,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MARKET_ADAPTER } from '../../modules/constants.js';
|
|
2
|
-
import { roundTo } from '../../modules/utils/math_utils.js';
|
|
3
1
|
'use strict';
|
|
2
|
+
import { MARKET_ADAPTER } from '../../../modules/constants.js';
|
|
3
|
+
import { roundTo } from '../../../modules/utils/math_utils.js';
|
|
4
4
|
/**
|
|
5
5
|
* Permutation Entropy Analyzer
|
|
6
6
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permutation_entropy_analyzer.js","sourceRoot":"","sources":["../../../../market_adapter/core/signals/permutation_entropy_analyzer.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAG/D;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;GAIG;AACH,SAAS,cAAc,CAAC,MAAgB,EAAE,KAAa,EAAE,CAAS,EAAE,KAAa;IAC7E,MAAM,IAAI,GAAG,IAA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,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC;QACzD,CAAC;aAAM,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC;YACtB,MAAM,GAAG,OAAO,CAAC;YACjB,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;QACjE,CAAC;aAAM,CAAC;YACJ,MAAM,GAAG,OAAO,CAAC;YACjB,cAAc,GAAG,CAAC,CAAC;QACvB,CAAC;QAED,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC;YACrC,iBAAiB,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC;YACzD,MAAM;YACN,cAAc,EAAE,OAAO,CAAC,cAAc,EAAE,GAAG,CAAC;YAC5C,WAAW,EAAE,IAAI,CAAC,YAAY;SACjC,CAAC;IACN,CAAC;CACJ;AAED,OAAO,EAAE,0BAA0B,EAAE,CAAA"}
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kaufman's Adaptive Moving Average (KAMA/AMA).
|
|
3
|
-
*/
|
|
4
|
-
declare class AMA {
|
|
5
|
-
erPeriod: any;
|
|
6
|
-
erSmoothPeriod: any;
|
|
7
|
-
erSmoothAlpha: any;
|
|
8
|
-
erSmoothValue: any;
|
|
9
|
-
fastSC: any;
|
|
10
|
-
slowSC: any;
|
|
11
|
-
prevAMA: any;
|
|
12
|
-
history: any;
|
|
13
|
-
warmedUp: any;
|
|
14
|
-
smaSum: any;
|
|
15
|
-
smaCount: any;
|
|
16
|
-
constructor(erPeriod: any, fastPeriod: any, slowPeriod: any, erSmoothPeriod: any);
|
|
17
|
-
update(price: any): any;
|
|
18
|
-
}
|
|
19
1
|
declare function getAmaWarmupBars(erPeriod: any, slowPeriod: any, lookbackBars: any, fastPeriod: any, erSmoothPeriod?: number): number;
|
|
20
2
|
declare function calculateAMA(closes: any, params: any): any[];
|
|
21
|
-
export {
|
|
3
|
+
export { calculateAMA, getAmaWarmupBars };
|
|
22
4
|
//# sourceMappingURL=ama.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ama.d.ts","sourceRoot":"","sources":["../../../../market_adapter/core/strategies/ama.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ama.d.ts","sourceRoot":"","sources":["../../../../market_adapter/core/strategies/ama.ts"],"names":[],"mappings":"AAgGA,iBAAS,gBAAgB,CAAC,QAAQ,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,cAAc,SAAI,UAoC/G;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,SAmB7C;AAED,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -129,5 +129,5 @@ function calculateAMA(closes, params) {
|
|
|
129
129
|
const indicator = new AMA(params.erPeriod, params.fastPeriod, params.slowPeriod, params.erSmoothPeriod);
|
|
130
130
|
return closes.map(price => indicator.update(price));
|
|
131
131
|
}
|
|
132
|
-
export {
|
|
132
|
+
export { calculateAMA, getAmaWarmupBars };
|
|
133
133
|
//# sourceMappingURL=ama.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ama.js","sourceRoot":"","sources":["../../../../market_adapter/core/strategies/ama.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,YAAY,CAAC;AAGb;;GAEG;AACH,MAAM,GAAG;IACL,QAAQ,CAAM;IACd,cAAc,CAAM;IACpB,aAAa,CAAM;IACnB,aAAa,CA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AAI,SAAS,CAAC,wEAAwE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;IACrH,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,SAAS,CAAC,sCAAsC,CAAC,CAAC;IAChE,CAAC;IAED,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IACxG,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AACxD,CAAC;AAED,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { computeAverageAmaSlopePct } from './dynamic_weight_series.js';
|
|
2
2
|
/**
|
|
3
3
|
* Compute AMA slope and volatility offsets from the AMA series.
|
|
4
4
|
*
|
|
@@ -16,23 +16,12 @@ declare function computeAverageAmaSlopePct(current: any, past: any, lookbackBars
|
|
|
16
16
|
* @param {number} [opts.volatilityScaleX=10.0] Scale factor penalty (10.0 = normal start)
|
|
17
17
|
* @param {number} [opts.volatilityThreshold=0.1] Minimum |symmetricDelta| before penalty applies
|
|
18
18
|
* @param {number} [opts.erPeriod=DEFAULT_ER_PERIOD] AMA warm-up bars to skip in isReady guard
|
|
19
|
-
* @param {number} [opts.slowPeriod=DEFAULT_SLOW_PERIOD] AMA slow period used for warm-up guard
|
|
20
|
-
* @param {number} [opts.fastPeriod=DEFAULT_FAST_PERIOD] AMA fast period used for warm-up guard
|
|
21
19
|
* @param {number} [opts.maxSlopeOffset=MARKET_ADAPTER.DYNAMIC_WEIGHT_ASYMMETRIC_OFFSET_CLAMP] Per-bot cap on buy/sell asymmetry offset
|
|
22
20
|
* @param {number} [opts.maxVolatilityOffset=MARKET_ADAPTER.DYNAMIC_WEIGHT_SYMMETRIC_SHIFT_CLAMP] Per-bot cap on volatility shift
|
|
23
|
-
* @param {number} [opts.
|
|
24
|
-
* @param {number} [opts.clipThreshold] Pre-computed clip threshold from slope history
|
|
21
|
+
* @param {number} [opts.clipThreshold=Infinity] Pre-computed clip threshold from slope history (percentile clipping is done by the caller)
|
|
25
22
|
* @returns {{ slopeOffset, rawSlopeOffset, symmetricDelta, slopePct, clippedSlopePct, confidence, trend, isReady }}
|
|
26
23
|
*/
|
|
27
24
|
declare function computeAmaSlopeWeights(amaValues: any, weightVariance: any, opts?: any): {
|
|
28
|
-
isReady: boolean;
|
|
29
|
-
slopeOffset: number;
|
|
30
|
-
symmetricDelta: number;
|
|
31
|
-
slopePct: number;
|
|
32
|
-
clippedSlopePct: number;
|
|
33
|
-
confidence: number;
|
|
34
|
-
trend: string;
|
|
35
|
-
} | {
|
|
36
25
|
slopeOffset: number;
|
|
37
26
|
rawSlopeOffset: number;
|
|
38
27
|
symmetricDelta: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ama_slope_model.d.ts","sourceRoot":"","sources":["../../../../market_adapter/core/strategies/ama_slope_model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ama_slope_model.d.ts","sourceRoot":"","sources":["../../../../market_adapter/core/strategies/ama_slope_model.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAOvE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAS,sBAAsB,CAAC,SAAS,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,IAAI,GAAE,GAAQ;;;;;;;;;EAiGlF;AAED,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,CAAA"}
|
|
@@ -2,17 +2,12 @@ import { clamp } from '../../../modules/order/utils/math.js';
|
|
|
2
2
|
import { MARKET_ADAPTER } from '../../../modules/constants.js';
|
|
3
3
|
import { roundTo } from '../../../modules/utils/math_utils.js';
|
|
4
4
|
import { normalizeMaxVolatilityOffset, normalizeVolatilityThreshold, } from '../config_normalizers.js';
|
|
5
|
+
import { computeVolatilityShift } from './volatility_shift.js';
|
|
6
|
+
// Canonical AMA slope % lives in dynamic_weight_series.ts (self-contained so the
|
|
7
|
+
// chart generators can embed its exact source); re-exported here for compat.
|
|
8
|
+
import { computeAverageAmaSlopePct } from './dynamic_weight_series.js';
|
|
5
9
|
const _DEFAULT_AMA_KEY = MARKET_ADAPTER.DEFAULT_AMA_KEY;
|
|
6
10
|
const DEFAULT_ER_PERIOD = MARKET_ADAPTER.AMAS[_DEFAULT_AMA_KEY].erPeriod;
|
|
7
|
-
function computeAverageAmaSlopePct(current, past, lookbackBars) {
|
|
8
|
-
const safeLookbackBars = Number.isFinite(lookbackBars) && lookbackBars > 0
|
|
9
|
-
? Math.ceil(lookbackBars)
|
|
10
|
-
: 1;
|
|
11
|
-
if (!Number.isFinite(current) || !Number.isFinite(past) || past === 0) {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
return ((current - past) / past * 100) / safeLookbackBars;
|
|
15
|
-
}
|
|
16
11
|
/**
|
|
17
12
|
* Compute AMA slope and volatility offsets from the AMA series.
|
|
18
13
|
*
|
|
@@ -30,12 +25,9 @@ function computeAverageAmaSlopePct(current, past, lookbackBars) {
|
|
|
30
25
|
* @param {number} [opts.volatilityScaleX=10.0] Scale factor penalty (10.0 = normal start)
|
|
31
26
|
* @param {number} [opts.volatilityThreshold=0.1] Minimum |symmetricDelta| before penalty applies
|
|
32
27
|
* @param {number} [opts.erPeriod=DEFAULT_ER_PERIOD] AMA warm-up bars to skip in isReady guard
|
|
33
|
-
* @param {number} [opts.slowPeriod=DEFAULT_SLOW_PERIOD] AMA slow period used for warm-up guard
|
|
34
|
-
* @param {number} [opts.fastPeriod=DEFAULT_FAST_PERIOD] AMA fast period used for warm-up guard
|
|
35
28
|
* @param {number} [opts.maxSlopeOffset=MARKET_ADAPTER.DYNAMIC_WEIGHT_ASYMMETRIC_OFFSET_CLAMP] Per-bot cap on buy/sell asymmetry offset
|
|
36
29
|
* @param {number} [opts.maxVolatilityOffset=MARKET_ADAPTER.DYNAMIC_WEIGHT_SYMMETRIC_SHIFT_CLAMP] Per-bot cap on volatility shift
|
|
37
|
-
* @param {number} [opts.
|
|
38
|
-
* @param {number} [opts.clipThreshold] Pre-computed clip threshold from slope history
|
|
30
|
+
* @param {number} [opts.clipThreshold=Infinity] Pre-computed clip threshold from slope history (percentile clipping is done by the caller)
|
|
39
31
|
* @returns {{ slopeOffset, rawSlopeOffset, symmetricDelta, slopePct, clippedSlopePct, confidence, trend, isReady }}
|
|
40
32
|
*/
|
|
41
33
|
function computeAmaSlopeWeights(amaValues, weightVariance, opts = {}) {
|
|
@@ -64,6 +56,7 @@ function computeAmaSlopeWeights(amaValues, weightVariance, opts = {}) {
|
|
|
64
56
|
const notReady = {
|
|
65
57
|
isReady: false,
|
|
66
58
|
slopeOffset: 0,
|
|
59
|
+
rawSlopeOffset: 0,
|
|
67
60
|
symmetricDelta: 0,
|
|
68
61
|
slopePct: 0,
|
|
69
62
|
clippedSlopePct: 0,
|
|
@@ -105,19 +98,15 @@ function computeAmaSlopeWeights(amaValues, weightVariance, opts = {}) {
|
|
|
105
98
|
? Math.round((Math.abs(slopeOffset) / maxSlopeOffset) * 100)
|
|
106
99
|
: 0;
|
|
107
100
|
// 5. Volatility penalty — symmetric downward shift from ATR/price ratio.
|
|
108
|
-
//
|
|
109
|
-
//
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
const rawSymmetricDelta = clamp(volDelta, -maxVolatilityOffset, 0);
|
|
118
|
-
symmetricDelta = Math.abs(rawSymmetricDelta) < volatilityThreshold ? 0 : rawSymmetricDelta;
|
|
119
|
-
}
|
|
120
|
-
const roundedSymmetricDelta = (roundTo(symmetricDelta, 100)) || 0;
|
|
101
|
+
// Canonical implementation shared with the volatility research tool and
|
|
102
|
+
// the browser-embedded chart scripts (see strategies/volatility_shift.ts).
|
|
103
|
+
const shift = computeVolatilityShift(safeWeightVariance, {
|
|
104
|
+
exponent: safeVolatilityExponent,
|
|
105
|
+
scaleX: safeVolatilityScaleX,
|
|
106
|
+
threshold: volatilityThreshold,
|
|
107
|
+
clampValue: maxVolatilityOffset,
|
|
108
|
+
});
|
|
109
|
+
const roundedSymmetricDelta = (roundTo(shift.symmetricDelta, 100)) || 0;
|
|
121
110
|
return {
|
|
122
111
|
slopeOffset: roundedSlopeOffset,
|
|
123
112
|
rawSlopeOffset: slopeOffset,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ama_slope_model.js","sourceRoot":"","sources":["../../../../market_adapter/core/strategies/ama_slope_model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EACH,4BAA4B,EAC5B,4BAA4B,GAC/B,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ama_slope_model.js","sourceRoot":"","sources":["../../../../market_adapter/core/strategies/ama_slope_model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EACH,4BAA4B,EAC5B,4BAA4B,GAC/B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,iFAAiF;AACjF,6EAA6E;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAIv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,8EAA8E;IAC9E,MAAM,KAAK,GAAG,sBAAsB,CAAC,kBAAkB,EAAE;QACrD,QAAQ,EAAE,sBAAsB;QAChC,MAAM,EAAE,oBAAoB;QAC5B,SAAS,EAAE,mBAAmB;QAC9B,UAAU,EAAE,mBAAmB;KAClC,CAAC,CAAC;IAEH,MAAM,qBAAqB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;IAExE,OAAO;QACH,WAAW,EAAE,kBAAkB;QAC/B,cAAc,EAAE,WAAW;QAC3B,cAAc,EAAE,qBAAqB;QACrC,QAAQ;QACR,eAAe;QACf,UAAU;QACV,KAAK;QACL,OAAO,EAAE,IAAI;KAChB,CAAC;AACN,CAAC;AAED,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,CAAA"}
|
|
@@ -1,13 +1,48 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Average True Range (ATR) Service
|
|
3
3
|
* Computes market volatility for symmetrical weight shifts.
|
|
4
|
+
*
|
|
5
|
+
* computeATRSeries is the canonical series implementation — it is shared by the
|
|
6
|
+
* live market adapter (via calculateATR), analysis tooling (re-exported through
|
|
7
|
+
* analysis/math_utils.ts), and the browser-embedded chart scripts (injected via
|
|
8
|
+
* fn.toString()). calculateATR is a thin single-value wrapper that preserves the
|
|
9
|
+
* production edge-case guards on top of the same series.
|
|
4
10
|
*/
|
|
11
|
+
/**
|
|
12
|
+
* ATR series over candles (High, Low, Close).
|
|
13
|
+
*
|
|
14
|
+
* Chain-breaking semantics: an invalid row resets the previous-close reference so
|
|
15
|
+
* a single bad candle never synthesizes a multi-bar gap into the next true range.
|
|
16
|
+
* Positions before `period` valid true ranges resolve to 0 (insufficient data).
|
|
17
|
+
*
|
|
18
|
+
* Candles may be rows ([timestamp, open, high, low, close, volume]) or objects
|
|
19
|
+
* ({ open, high, low, close, ... }); the getter logic is inlined so the function
|
|
20
|
+
* stays self-contained and can be injected into generated HTML verbatim.
|
|
21
|
+
*
|
|
22
|
+
* @param {Array} candles - Array of candle rows or candle objects
|
|
23
|
+
* @param {number} period - ATR period
|
|
24
|
+
* @param {Object} [stats] - Optional mutable object; when provided, the number of
|
|
25
|
+
* valid true ranges computed is written to `stats.validRanges`
|
|
26
|
+
* and the final running ATR value to `stats.atr` (useful for
|
|
27
|
+
* callers that need to distinguish "no valid data" from "warmup 0"
|
|
28
|
+
* without re-scanning the input, or to read the last computed ATR
|
|
29
|
+
* even when the final row is missing/invalid).
|
|
30
|
+
* @returns {number[]} Per-candle ATR values (0 during warmup / across breaks)
|
|
31
|
+
*/
|
|
32
|
+
declare function computeATRSeries(candles: any, period?: number, stats?: any): number[];
|
|
5
33
|
/**
|
|
6
34
|
* Calculates ATR from candles (High, Low, Close).
|
|
7
|
-
*
|
|
35
|
+
*
|
|
36
|
+
* Edge-case guards preserved on top of the shared series: all-invalid input
|
|
37
|
+
* yields NaN (so callers can detect a failed ATR and disable the volatility
|
|
38
|
+
* penalty) rather than a silent 0; fewer valid true ranges than the period
|
|
39
|
+
* remains a warmup 0. The final ATR is the last computed running value, so a
|
|
40
|
+
* trailing missing/invalid candle does not collapse a valid ATR to 0.
|
|
41
|
+
*
|
|
42
|
+
* @param {Array} candles - Array of candle rows or candle objects
|
|
8
43
|
* @param {number} period - ATR period
|
|
9
44
|
* @returns {number} Average True Range value
|
|
10
45
|
*/
|
|
11
|
-
declare function calculateATR(candles: any, period?: number):
|
|
12
|
-
export { calculateATR };
|
|
46
|
+
declare function calculateATR(candles: any, period?: number): any;
|
|
47
|
+
export { calculateATR, computeATRSeries };
|
|
13
48
|
//# sourceMappingURL=calculator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculator.d.ts","sourceRoot":"","sources":["../../../../../market_adapter/core/strategies/atr/calculator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"calculator.d.ts","sourceRoot":"","sources":["../../../../../market_adapter/core/strategies/atr/calculator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,iBAAS,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,MAAM,SAAK,EAAE,KAAK,GAAE,GAAU,YA0CrE;AAED;;;;;;;;;;;;GAYG;AACH,iBAAS,YAAY,CAAC,OAAO,EAAE,GAAG,EAAE,MAAM,SAAK,OAe9C;AAED,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,47 +1,107 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Average True Range (ATR) Service
|
|
3
3
|
* Computes market volatility for symmetrical weight shifts.
|
|
4
|
+
*
|
|
5
|
+
* computeATRSeries is the canonical series implementation — it is shared by the
|
|
6
|
+
* live market adapter (via calculateATR), analysis tooling (re-exported through
|
|
7
|
+
* analysis/math_utils.ts), and the browser-embedded chart scripts (injected via
|
|
8
|
+
* fn.toString()). calculateATR is a thin single-value wrapper that preserves the
|
|
9
|
+
* production edge-case guards on top of the same series.
|
|
4
10
|
*/
|
|
5
11
|
import { normalizeAtrPeriod } from '../../config_normalizers.js';
|
|
6
12
|
'use strict';
|
|
7
13
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
14
|
+
* ATR series over candles (High, Low, Close).
|
|
15
|
+
*
|
|
16
|
+
* Chain-breaking semantics: an invalid row resets the previous-close reference so
|
|
17
|
+
* a single bad candle never synthesizes a multi-bar gap into the next true range.
|
|
18
|
+
* Positions before `period` valid true ranges resolve to 0 (insufficient data).
|
|
19
|
+
*
|
|
20
|
+
* Candles may be rows ([timestamp, open, high, low, close, volume]) or objects
|
|
21
|
+
* ({ open, high, low, close, ... }); the getter logic is inlined so the function
|
|
22
|
+
* stays self-contained and can be injected into generated HTML verbatim.
|
|
23
|
+
*
|
|
24
|
+
* @param {Array} candles - Array of candle rows or candle objects
|
|
25
|
+
* @param {number} period - ATR period
|
|
26
|
+
* @param {Object} [stats] - Optional mutable object; when provided, the number of
|
|
27
|
+
* valid true ranges computed is written to `stats.validRanges`
|
|
28
|
+
* and the final running ATR value to `stats.atr` (useful for
|
|
29
|
+
* callers that need to distinguish "no valid data" from "warmup 0"
|
|
30
|
+
* without re-scanning the input, or to read the last computed ATR
|
|
31
|
+
* even when the final row is missing/invalid).
|
|
32
|
+
* @returns {number[]} Per-candle ATR values (0 during warmup / across breaks)
|
|
12
33
|
*/
|
|
13
|
-
function
|
|
14
|
-
const
|
|
34
|
+
function computeATRSeries(candles, period = 14, stats = null) {
|
|
35
|
+
const atrs = [];
|
|
15
36
|
if (!Array.isArray(candles))
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
let
|
|
37
|
+
return atrs;
|
|
38
|
+
const safePeriod = Math.max(1, Math.round(period));
|
|
39
|
+
let trSum = 0;
|
|
40
|
+
let trCount = 0;
|
|
20
41
|
let prevClose = null;
|
|
42
|
+
let atrVal = 0;
|
|
21
43
|
for (let i = 0; i < candles.length; i++) {
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
44
|
+
const c = candles[i];
|
|
45
|
+
const high = Array.isArray(c) ? Number(c?.[2]) : Number(c?.high);
|
|
46
|
+
const low = Array.isArray(c) ? Number(c?.[3]) : Number(c?.low);
|
|
47
|
+
const close = Array.isArray(c) ? Number(c?.[4]) : Number(c?.close);
|
|
25
48
|
if (!Number.isFinite(high) || !Number.isFinite(low) || !Number.isFinite(close)) {
|
|
26
|
-
// Break the ATR chain across missing/invalid rows so a single bad
|
|
27
|
-
// does not synthesize a multi-bar gap into the next valid true range.
|
|
49
|
+
// Break the ATR chain across missing/invalid rows so a single bad
|
|
50
|
+
// candle does not synthesize a multi-bar gap into the next valid true range.
|
|
28
51
|
prevClose = null;
|
|
52
|
+
atrs.push(0);
|
|
29
53
|
continue;
|
|
30
54
|
}
|
|
31
55
|
if (prevClose != null) {
|
|
32
|
-
tr
|
|
56
|
+
const tr = Math.max(high - low, Math.abs(high - prevClose), Math.abs(low - prevClose));
|
|
57
|
+
trCount++;
|
|
58
|
+
if (trCount <= safePeriod) {
|
|
59
|
+
trSum += tr;
|
|
60
|
+
atrVal = trSum / trCount;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
atrVal = (atrVal * (safePeriod - 1) + tr) / safePeriod;
|
|
64
|
+
}
|
|
33
65
|
}
|
|
34
66
|
prevClose = close;
|
|
67
|
+
atrs.push(trCount < safePeriod ? 0 : atrVal);
|
|
68
|
+
}
|
|
69
|
+
if (stats && typeof stats === 'object') {
|
|
70
|
+
stats.validRanges = trCount;
|
|
71
|
+
stats.atr = atrVal;
|
|
35
72
|
}
|
|
36
|
-
|
|
73
|
+
return atrs;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Calculates ATR from candles (High, Low, Close).
|
|
77
|
+
*
|
|
78
|
+
* Edge-case guards preserved on top of the shared series: all-invalid input
|
|
79
|
+
* yields NaN (so callers can detect a failed ATR and disable the volatility
|
|
80
|
+
* penalty) rather than a silent 0; fewer valid true ranges than the period
|
|
81
|
+
* remains a warmup 0. The final ATR is the last computed running value, so a
|
|
82
|
+
* trailing missing/invalid candle does not collapse a valid ATR to 0.
|
|
83
|
+
*
|
|
84
|
+
* @param {Array} candles - Array of candle rows or candle objects
|
|
85
|
+
* @param {number} period - ATR period
|
|
86
|
+
* @returns {number} Average True Range value
|
|
87
|
+
*/
|
|
88
|
+
function calculateATR(candles, period = 14) {
|
|
89
|
+
const safePeriod = normalizeAtrPeriod(period);
|
|
90
|
+
if (!Array.isArray(candles))
|
|
37
91
|
return Number.NaN;
|
|
38
|
-
if (
|
|
92
|
+
if (candles.length < safePeriod + 1)
|
|
39
93
|
return 0;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
94
|
+
const stats = {};
|
|
95
|
+
const series = computeATRSeries(candles, safePeriod, stats);
|
|
96
|
+
if (series.length === 0)
|
|
97
|
+
return Number.NaN;
|
|
98
|
+
// No valid true ranges at all (all rows missing/invalid) → NaN, not 0.
|
|
99
|
+
if (stats.validRanges === 0)
|
|
100
|
+
return Number.NaN;
|
|
101
|
+
// Fewer valid true ranges than the period → warmup 0.
|
|
102
|
+
if (stats.validRanges < safePeriod)
|
|
103
|
+
return 0;
|
|
104
|
+
return Number.isFinite(stats.atr) ? stats.atr : 0;
|
|
45
105
|
}
|
|
46
|
-
export { calculateATR };
|
|
106
|
+
export { calculateATR, computeATRSeries };
|
|
47
107
|
//# sourceMappingURL=calculator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculator.js","sourceRoot":"","sources":["../../../../../market_adapter/core/strategies/atr/calculator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"calculator.js","sourceRoot":"","sources":["../../../../../market_adapter/core/strategies/atr/calculator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,YAAY,CAAC;AAGb;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAS,gBAAgB,CAAC,OAAY,EAAE,MAAM,GAAG,EAAE,EAAE,QAAa,IAAI;IAClE,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAEzC,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACnD,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,IAAI,SAAS,GAAkB,IAAI,CAAC;IACpC,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EA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OAAO,CAAC,CAAC;IAE7C,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACtD,CAAC;AAED,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* and any CR adjustment should trigger a grid rebuild from fresh on-chain state.
|
|
16
16
|
*/
|
|
17
17
|
/**
|
|
18
|
-
* @param {Object} trendData -
|
|
18
|
+
* @param {Object} trendData - AMA slope model output ({ trend, confidence, isReady })
|
|
19
19
|
* @param {number} minRatio - Floor collateral ratio (e.g. 1.5)
|
|
20
20
|
* @param {number} maxRatio - Ceiling collateral ratio (e.g. 2.0)
|
|
21
21
|
* @returns {{ targetRatio: number, action: string, adjustment: number }}
|
|
@@ -17,7 +17,7 @@ import { roundTo, roundToDecimals } from '../../../modules/utils/math_utils.js';
|
|
|
17
17
|
* and any CR adjustment should trigger a grid rebuild from fresh on-chain state.
|
|
18
18
|
*/
|
|
19
19
|
/**
|
|
20
|
-
* @param {Object} trendData -
|
|
20
|
+
* @param {Object} trendData - AMA slope model output ({ trend, confidence, isReady })
|
|
21
21
|
* @param {number} minRatio - Floor collateral ratio (e.g. 1.5)
|
|
22
22
|
* @param {number} maxRatio - Ceiling collateral ratio (e.g. 2.0)
|
|
23
23
|
* @returns {{ targetRatio: number, action: string, adjustment: number }}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dynamic weight per-bar series — canonical implementation shared by the live
|
|
3
|
+
* market adapter service, the research test harness, and the browser-embedded
|
|
4
|
+
* dynamic-weight chart script.
|
|
5
|
+
*
|
|
6
|
+
* Computes the per-bar AMA/Kalman offset channels, the alpha-blended combined
|
|
7
|
+
* series, the pre-gain dead-band gate, the final gain/clamp, and the signal
|
|
8
|
+
* confirmation latch — the exact shape both the live `_computeDynamicWeights`
|
|
9
|
+
* and the interactive research chart render.
|
|
10
|
+
*
|
|
11
|
+
* This module is intentionally fully self-contained (no imports): the chart
|
|
12
|
+
* generator embeds its exact source into generated HTML via fn.toString(), so
|
|
13
|
+
* every consumer runs one logic path. The pure helper computeAverageAmaSlopePct
|
|
14
|
+
* is re-exported by strategies/ama_slope_model.ts so Node callers keep their
|
|
15
|
+
* existing import path.
|
|
16
|
+
*/
|
|
17
|
+
declare function computeAverageAmaSlopePct(current: any, past: any, lookbackBars: any): number | null;
|
|
18
|
+
declare function echoLatchSeries(appliedSeries: any[], preGainSeries: any[], confirmBars: any): {
|
|
19
|
+
echoedAppliedSeries: any[];
|
|
20
|
+
echoedPreGainSeries: any[];
|
|
21
|
+
};
|
|
22
|
+
declare function roundToN(value: any, factor: any): number;
|
|
23
|
+
declare function computeDynamicWeightSeries(inputs: any): {
|
|
24
|
+
amaOffsets: any[];
|
|
25
|
+
kalmanOffsets: any[];
|
|
26
|
+
combinedOffSeries: any[];
|
|
27
|
+
gatedOffSeries: any[];
|
|
28
|
+
echoedOffSeries: any[];
|
|
29
|
+
echoedGatedOffSeries: any[];
|
|
30
|
+
};
|
|
31
|
+
export { computeDynamicWeightSeries, computeAverageAmaSlopePct, echoLatchSeries, roundToN };
|
|
32
|
+
//# sourceMappingURL=dynamic_weight_series.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamic_weight_series.d.ts","sourceRoot":"","sources":["../../../../market_adapter/core/strategies/dynamic_weight_series.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AAEH,iBAAS,yBAAyB,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,iBAQ5E;AAED,iBAAS,eAAe,CAAC,aAAa,EAAE,GAAG,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,GAAG;;;EA+CpF;AAED,iBAAS,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,UAGxC;AAED,iBAAS,0BAA0B,CAAC,MAAM,EAAE,GAAG;;;;;;;EA6E9C;AAED,OAAO,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAA"}
|