project-cpu-mcp 0.10.0 → 0.12.0
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 +111 -35
- package/dist/api/authentication-required.error.d.ts +6 -0
- package/dist/api/authentication-required.error.d.ts.map +1 -0
- package/dist/api/authentication-required.error.js +9 -0
- package/dist/api/authentication-required.error.js.map +1 -0
- package/dist/api/client.d.ts +7 -5
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +29 -14
- package/dist/api/client.js.map +1 -1
- package/dist/api/constants.d.ts +2 -0
- package/dist/api/constants.d.ts.map +1 -1
- package/dist/api/constants.js +6 -0
- package/dist/api/constants.js.map +1 -1
- package/dist/api/types.d.ts +189 -220
- package/dist/api/types.d.ts.map +1 -1
- package/dist/api/types.js +43 -29
- package/dist/api/types.js.map +1 -1
- package/dist/config/constants.d.ts +6 -2
- package/dist/config/constants.d.ts.map +1 -1
- package/dist/config/constants.js +6 -2
- package/dist/config/constants.js.map +1 -1
- package/dist/config/types.js +2 -2
- package/dist/config/types.js.map +1 -1
- package/dist/contracts/cell.abi.d.ts +26 -2
- package/dist/contracts/cell.abi.d.ts.map +1 -1
- package/dist/contracts/cell.abi.js +21 -2
- package/dist/contracts/cell.abi.js.map +1 -1
- package/dist/contracts/erc20.abi.d.ts.map +1 -1
- package/dist/contracts/erc20.abi.js +1 -2
- package/dist/contracts/erc20.abi.js.map +1 -1
- package/dist/contracts/trade.abi.d.ts +341 -0
- package/dist/contracts/trade.abi.d.ts.map +1 -1
- package/dist/contracts/trade.abi.js +163 -0
- package/dist/contracts/trade.abi.js.map +1 -1
- package/dist/contracts/trade.types.d.ts +14 -0
- package/dist/contracts/trade.types.d.ts.map +1 -0
- package/dist/contracts/trade.types.js +15 -0
- package/dist/contracts/trade.types.js.map +1 -0
- package/dist/contracts/transport.abi.d.ts +4 -0
- package/dist/contracts/transport.abi.d.ts.map +1 -1
- package/dist/contracts/transport.abi.js +1 -0
- package/dist/contracts/transport.abi.js.map +1 -1
- package/dist/index.js +40 -3
- package/dist/index.js.map +1 -1
- package/dist/logger/constants.d.ts +7 -0
- package/dist/logger/constants.d.ts.map +1 -1
- package/dist/logger/constants.js +11 -0
- package/dist/logger/constants.js.map +1 -1
- package/dist/logger/file-log.utils.d.ts +4 -0
- package/dist/logger/file-log.utils.d.ts.map +1 -0
- package/dist/logger/file-log.utils.js +23 -0
- package/dist/logger/file-log.utils.js.map +1 -0
- package/dist/logger/index.d.ts +1 -1
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +5 -3
- package/dist/logger/index.js.map +1 -1
- package/dist/logger/logger.d.ts +4 -0
- package/dist/logger/logger.d.ts.map +1 -1
- package/dist/logger/logger.js +48 -3
- package/dist/logger/logger.js.map +1 -1
- package/dist/logger/redact.utils.d.ts.map +1 -1
- package/dist/logger/redact.utils.js +7 -2
- package/dist/logger/redact.utils.js.map +1 -1
- package/dist/logger/types.d.ts +8 -0
- package/dist/logger/types.d.ts.map +1 -1
- package/dist/map/attention.utils.d.ts.map +1 -1
- package/dist/map/attention.utils.js +1 -0
- package/dist/map/attention.utils.js.map +1 -1
- package/dist/map/cell-view.utils.d.ts.map +1 -1
- package/dist/map/cell-view.utils.js +5 -3
- package/dist/map/cell-view.utils.js.map +1 -1
- package/dist/map/process-projection.utils.js +2 -2
- package/dist/map/process-projection.utils.js.map +1 -1
- package/dist/map/reader.utils.d.ts.map +1 -1
- package/dist/map/reader.utils.js +3 -2
- package/dist/map/reader.utils.js.map +1 -1
- package/dist/map/storage.utils.d.ts.map +1 -1
- package/dist/map/storage.utils.js +5 -1
- package/dist/map/storage.utils.js.map +1 -1
- package/dist/map/types.d.ts +21 -0
- package/dist/map/types.d.ts.map +1 -1
- package/dist/map/types.js +6 -0
- package/dist/map/types.js.map +1 -1
- package/dist/paybox/auth/authority.d.ts +46 -0
- package/dist/paybox/auth/authority.d.ts.map +1 -0
- package/dist/paybox/auth/authority.js +410 -0
- package/dist/paybox/auth/authority.js.map +1 -0
- package/dist/paybox/auth/browser-opener.d.ts +8 -0
- package/dist/paybox/auth/browser-opener.d.ts.map +1 -0
- package/dist/paybox/auth/browser-opener.js +22 -0
- package/dist/paybox/auth/browser-opener.js.map +1 -0
- package/dist/paybox/auth/browser-opener.utils.d.ts +2 -0
- package/dist/paybox/auth/browser-opener.utils.d.ts.map +1 -0
- package/dist/paybox/auth/browser-opener.utils.js +10 -0
- package/dist/paybox/auth/browser-opener.utils.js.map +1 -0
- package/dist/paybox/auth/constants.d.ts +16 -0
- package/dist/paybox/auth/constants.d.ts.map +1 -0
- package/dist/paybox/auth/constants.js +16 -0
- package/dist/paybox/auth/constants.js.map +1 -0
- package/dist/paybox/auth/coordinator.d.ts +21 -0
- package/dist/paybox/auth/coordinator.d.ts.map +1 -0
- package/dist/paybox/auth/coordinator.factory.d.ts +5 -0
- package/dist/paybox/auth/coordinator.factory.d.ts.map +1 -0
- package/dist/paybox/auth/coordinator.factory.js +5 -0
- package/dist/paybox/auth/coordinator.factory.js.map +1 -0
- package/dist/paybox/auth/coordinator.js +87 -0
- package/dist/paybox/auth/coordinator.js.map +1 -0
- package/dist/paybox/auth/coordinator.utils.d.ts +4 -0
- package/dist/paybox/auth/coordinator.utils.d.ts.map +1 -0
- package/dist/paybox/auth/coordinator.utils.js +8 -0
- package/dist/paybox/auth/coordinator.utils.js.map +1 -0
- package/dist/paybox/auth/flow-session.d.ts +24 -0
- package/dist/paybox/auth/flow-session.d.ts.map +1 -0
- package/dist/paybox/auth/flow-session.js +155 -0
- package/dist/paybox/auth/flow-session.js.map +1 -0
- package/dist/paybox/auth/loopback-flow.d.ts +49 -0
- package/dist/paybox/auth/loopback-flow.d.ts.map +1 -0
- package/dist/paybox/auth/loopback-flow.js +381 -0
- package/dist/paybox/auth/loopback-flow.js.map +1 -0
- package/dist/paybox/auth/loopback-flow.utils.d.ts +7 -0
- package/dist/paybox/auth/loopback-flow.utils.d.ts.map +1 -0
- package/dist/paybox/auth/loopback-flow.utils.js +47 -0
- package/dist/paybox/auth/loopback-flow.utils.js.map +1 -0
- package/dist/paybox/auth/loopback-page-fonts.constants.d.ts +3 -0
- package/dist/paybox/auth/loopback-page-fonts.constants.d.ts.map +1 -0
- package/dist/paybox/auth/loopback-page-fonts.constants.js +228 -0
- package/dist/paybox/auth/loopback-page-fonts.constants.js.map +1 -0
- package/dist/paybox/auth/loopback-page.utils.d.ts +4 -0
- package/dist/paybox/auth/loopback-page.utils.d.ts.map +1 -0
- package/dist/paybox/auth/loopback-page.utils.js +261 -0
- package/dist/paybox/auth/loopback-page.utils.js.map +1 -0
- package/dist/paybox/auth/provisioning.utils.d.ts +3 -0
- package/dist/paybox/auth/provisioning.utils.d.ts.map +1 -0
- package/dist/paybox/auth/provisioning.utils.js +27 -0
- package/dist/paybox/auth/provisioning.utils.js.map +1 -0
- package/dist/paybox/auth/signing-key.utils.d.ts +2 -0
- package/dist/paybox/auth/signing-key.utils.d.ts.map +1 -0
- package/dist/paybox/auth/signing-key.utils.js +14 -0
- package/dist/paybox/auth/signing-key.utils.js.map +1 -0
- package/dist/paybox/auth/types.d.ts +18 -0
- package/dist/paybox/auth/types.d.ts.map +1 -0
- package/dist/paybox/auth/types.js +6 -0
- package/dist/paybox/auth/types.js.map +1 -0
- package/dist/paybox/auth/utils.d.ts +5 -0
- package/dist/paybox/auth/utils.d.ts.map +1 -0
- package/dist/paybox/auth/utils.js +17 -0
- package/dist/paybox/auth/utils.js.map +1 -0
- package/dist/paybox/constants.d.ts +11 -0
- package/dist/paybox/constants.d.ts.map +1 -0
- package/dist/paybox/constants.js +11 -0
- package/dist/paybox/constants.js.map +1 -0
- package/dist/paybox/errors.d.ts +43 -0
- package/dist/paybox/errors.d.ts.map +1 -0
- package/dist/paybox/errors.js +141 -0
- package/dist/paybox/errors.js.map +1 -0
- package/dist/paybox/sdk/adapter.d.ts +16 -0
- package/dist/paybox/sdk/adapter.d.ts.map +1 -0
- package/dist/paybox/sdk/adapter.js +127 -0
- package/dist/paybox/sdk/adapter.js.map +1 -0
- package/dist/paybox/sdk/constants.d.ts +14 -0
- package/dist/paybox/sdk/constants.d.ts.map +1 -0
- package/dist/paybox/sdk/constants.js +23 -0
- package/dist/paybox/sdk/constants.js.map +1 -0
- package/dist/paybox/sdk/factory.d.ts +4 -0
- package/dist/paybox/sdk/factory.d.ts.map +1 -0
- package/dist/paybox/sdk/factory.js +24 -0
- package/dist/paybox/sdk/factory.js.map +1 -0
- package/dist/paybox/sdk/logging.utils.d.ts +4 -0
- package/dist/paybox/sdk/logging.utils.d.ts.map +1 -0
- package/dist/paybox/sdk/logging.utils.js +19 -0
- package/dist/paybox/sdk/logging.utils.js.map +1 -0
- package/dist/paybox/sdk/utils.d.ts +7 -0
- package/dist/paybox/sdk/utils.d.ts.map +1 -0
- package/dist/paybox/sdk/utils.js +182 -0
- package/dist/paybox/sdk/utils.js.map +1 -0
- package/dist/paybox/storage.d.ts +17 -0
- package/dist/paybox/storage.d.ts.map +1 -0
- package/dist/paybox/storage.js +87 -0
- package/dist/paybox/storage.js.map +1 -0
- package/dist/paybox/types.d.ts +481 -0
- package/dist/paybox/types.d.ts.map +1 -0
- package/dist/paybox/types.js +144 -0
- package/dist/paybox/types.js.map +1 -0
- package/dist/paybox/wallet/manager.d.ts +22 -0
- package/dist/paybox/wallet/manager.d.ts.map +1 -0
- package/dist/paybox/wallet/manager.js +111 -0
- package/dist/paybox/wallet/manager.js.map +1 -0
- package/dist/paybox/wallet/rpc.client.d.ts +16 -0
- package/dist/paybox/wallet/rpc.client.d.ts.map +1 -0
- package/dist/paybox/wallet/rpc.client.js +53 -0
- package/dist/paybox/wallet/rpc.client.js.map +1 -0
- package/dist/paybox/wallet/utils.d.ts +5 -0
- package/dist/paybox/wallet/utils.d.ts.map +1 -0
- package/dist/paybox/wallet/utils.js +82 -0
- package/dist/paybox/wallet/utils.js.map +1 -0
- package/dist/server.constants.d.ts.map +1 -1
- package/dist/server.constants.js +5 -2
- package/dist/server.constants.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +8 -2
- package/dist/server.js.map +1 -1
- package/dist/services/app-config.utils.d.ts.map +1 -1
- package/dist/services/app-config.utils.js +22 -11
- package/dist/services/app-config.utils.js.map +1 -1
- package/dist/services/auth.service.d.ts +3 -5
- package/dist/services/auth.service.d.ts.map +1 -1
- package/dist/services/auth.service.js +20 -77
- package/dist/services/auth.service.js.map +1 -1
- package/dist/services/cell.client.d.ts.map +1 -1
- package/dist/services/cell.client.js +22 -9
- package/dist/services/cell.client.js.map +1 -1
- package/dist/services/lot-return.constants.d.ts +3 -0
- package/dist/services/lot-return.constants.d.ts.map +1 -0
- package/dist/services/lot-return.constants.js +35 -0
- package/dist/services/lot-return.constants.js.map +1 -0
- package/dist/services/lot-return.service.d.ts +25 -0
- package/dist/services/lot-return.service.d.ts.map +1 -0
- package/dist/services/lot-return.service.js +151 -0
- package/dist/services/lot-return.service.js.map +1 -0
- package/dist/services/lot-return.types.d.ts +19 -0
- package/dist/services/lot-return.types.d.ts.map +1 -0
- package/dist/services/lot-return.types.js +2 -0
- package/dist/services/lot-return.types.js.map +1 -0
- package/dist/services/lot-return.utils.d.ts +33 -0
- package/dist/services/lot-return.utils.d.ts.map +1 -0
- package/dist/services/lot-return.utils.js +128 -0
- package/dist/services/lot-return.utils.js.map +1 -0
- package/dist/services/lot-terms.constants.d.ts +4 -0
- package/dist/services/lot-terms.constants.d.ts.map +1 -0
- package/dist/services/lot-terms.constants.js +5 -0
- package/dist/services/lot-terms.constants.js.map +1 -0
- package/dist/services/lot-terms.helpers.d.ts +11 -0
- package/dist/services/lot-terms.helpers.d.ts.map +1 -0
- package/dist/services/lot-terms.helpers.js +45 -0
- package/dist/services/lot-terms.helpers.js.map +1 -0
- package/dist/services/lot-terms.service.d.ts +20 -0
- package/dist/services/lot-terms.service.d.ts.map +1 -0
- package/dist/services/lot-terms.service.js +119 -0
- package/dist/services/lot-terms.service.js.map +1 -0
- package/dist/services/lot-terms.types.d.ts +25 -0
- package/dist/services/lot-terms.types.d.ts.map +1 -0
- package/dist/services/lot-terms.types.js +2 -0
- package/dist/services/lot-terms.types.js.map +1 -0
- package/dist/services/reveal-revert.utils.d.ts +1 -0
- package/dist/services/reveal-revert.utils.d.ts.map +1 -1
- package/dist/services/reveal-revert.utils.js +20 -0
- package/dist/services/reveal-revert.utils.js.map +1 -1
- package/dist/services/reveal.constants.d.ts +1 -1
- package/dist/services/reveal.constants.d.ts.map +1 -1
- package/dist/services/reveal.constants.js +1 -1
- package/dist/services/reveal.constants.js.map +1 -1
- package/dist/services/reveal.service.d.ts +4 -3
- package/dist/services/reveal.service.d.ts.map +1 -1
- package/dist/services/reveal.service.js +35 -10
- package/dist/services/reveal.service.js.map +1 -1
- package/dist/services/reveal.utils.d.ts +7 -8
- package/dist/services/reveal.utils.d.ts.map +1 -1
- package/dist/services/reveal.utils.js +15 -8
- package/dist/services/reveal.utils.js.map +1 -1
- package/dist/services/route.constants.d.ts +12 -1
- package/dist/services/route.constants.d.ts.map +1 -1
- package/dist/services/route.constants.js +66 -15
- package/dist/services/route.constants.js.map +1 -1
- package/dist/services/route.lots.d.ts +18 -0
- package/dist/services/route.lots.d.ts.map +1 -0
- package/dist/services/route.lots.js +33 -0
- package/dist/services/route.lots.js.map +1 -0
- package/dist/services/route.service.d.ts +13 -4
- package/dist/services/route.service.d.ts.map +1 -1
- package/dist/services/route.service.js +95 -13
- package/dist/services/route.service.js.map +1 -1
- package/dist/services/route.types.d.ts +76 -0
- package/dist/services/route.types.d.ts.map +1 -0
- package/dist/services/route.types.js +8 -0
- package/dist/services/route.types.js.map +1 -0
- package/dist/services/route.utils.d.ts +19 -0
- package/dist/services/route.utils.d.ts.map +1 -1
- package/dist/services/route.utils.js +35 -0
- package/dist/services/route.utils.js.map +1 -1
- package/dist/services/trade-eviction.constants.d.ts +12 -0
- package/dist/services/trade-eviction.constants.d.ts.map +1 -0
- package/dist/services/trade-eviction.constants.js +25 -0
- package/dist/services/trade-eviction.constants.js.map +1 -0
- package/dist/services/trade-eviction.service.d.ts +22 -0
- package/dist/services/trade-eviction.service.d.ts.map +1 -0
- package/dist/services/trade-eviction.service.js +101 -0
- package/dist/services/trade-eviction.service.js.map +1 -0
- package/dist/services/trade-eviction.types.d.ts +30 -0
- package/dist/services/trade-eviction.types.d.ts.map +1 -0
- package/dist/services/trade-eviction.types.js +2 -0
- package/dist/services/trade-eviction.types.js.map +1 -0
- package/dist/services/trade-eviction.utils.d.ts +9 -0
- package/dist/services/trade-eviction.utils.d.ts.map +1 -0
- package/dist/services/trade-eviction.utils.js +38 -0
- package/dist/services/trade-eviction.utils.js.map +1 -0
- package/dist/services/trade-rules.service.d.ts +15 -0
- package/dist/services/trade-rules.service.d.ts.map +1 -0
- package/dist/services/trade-rules.service.js +45 -0
- package/dist/services/trade-rules.service.js.map +1 -0
- package/dist/services/trade.client.d.ts +11 -1
- package/dist/services/trade.client.d.ts.map +1 -1
- package/dist/services/trade.client.js +87 -0
- package/dist/services/trade.client.js.map +1 -1
- package/dist/services/trade.constants.d.ts +9 -0
- package/dist/services/trade.constants.d.ts.map +1 -0
- package/dist/services/trade.constants.js +28 -0
- package/dist/services/trade.constants.js.map +1 -0
- package/dist/services/trade.helpers.d.ts +9 -1
- package/dist/services/trade.helpers.d.ts.map +1 -1
- package/dist/services/trade.helpers.js +40 -27
- package/dist/services/trade.helpers.js.map +1 -1
- package/dist/services/transport-revert.utils.d.ts +3 -0
- package/dist/services/transport-revert.utils.d.ts.map +1 -0
- package/dist/services/transport-revert.utils.js +15 -0
- package/dist/services/transport-revert.utils.js.map +1 -0
- package/dist/services/transport.client.d.ts.map +1 -1
- package/dist/services/transport.client.js +14 -6
- package/dist/services/transport.client.js.map +1 -1
- package/dist/services/types.d.ts +249 -21
- package/dist/services/types.d.ts.map +1 -1
- package/dist/services/types.js +25 -0
- package/dist/services/types.js.map +1 -1
- package/dist/services/warehouse.utils.d.ts +8 -0
- package/dist/services/warehouse.utils.d.ts.map +1 -1
- package/dist/services/warehouse.utils.js +25 -0
- package/dist/services/warehouse.utils.js.map +1 -1
- package/dist/session/manager.d.ts +1 -0
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +13 -0
- package/dist/session/manager.js.map +1 -1
- package/dist/session/storage.d.ts +0 -3
- package/dist/session/storage.d.ts.map +1 -1
- package/dist/session/storage.js +6 -43
- package/dist/session/storage.js.map +1 -1
- package/dist/session/types.d.ts +4 -98
- package/dist/session/types.d.ts.map +1 -1
- package/dist/session/types.js +0 -15
- package/dist/session/types.js.map +1 -1
- package/dist/tools/authenticate.d.ts +1 -1
- package/dist/tools/authenticate.d.ts.map +1 -1
- package/dist/tools/authenticate.js +19 -45
- package/dist/tools/authenticate.js.map +1 -1
- package/dist/tools/config/get-game-config/constants.d.ts +3 -0
- package/dist/tools/config/get-game-config/constants.d.ts.map +1 -1
- package/dist/tools/config/get-game-config/constants.js +13 -2
- package/dist/tools/config/get-game-config/constants.js.map +1 -1
- package/dist/tools/config/get-game-config/get-game-config.d.ts.map +1 -1
- package/dist/tools/config/get-game-config/get-game-config.js +6 -3
- package/dist/tools/config/get-game-config/get-game-config.js.map +1 -1
- package/dist/tools/config/get-game-config/get-game-config.utils.d.ts +4 -4
- package/dist/tools/config/get-game-config/get-game-config.utils.d.ts.map +1 -1
- package/dist/tools/config/get-game-config/get-game-config.utils.js +26 -9
- package/dist/tools/config/get-game-config/get-game-config.utils.js.map +1 -1
- package/dist/tools/config/get-game-config/types.d.ts +6 -2
- package/dist/tools/config/get-game-config/types.d.ts.map +1 -1
- package/dist/tools/config/resource-lens/resource-lens.utils.d.ts.map +1 -1
- package/dist/tools/config/resource-lens/resource-lens.utils.js +5 -4
- package/dist/tools/config/resource-lens/resource-lens.utils.js.map +1 -1
- package/dist/tools/map/attention/attention.d.ts.map +1 -1
- package/dist/tools/map/attention/attention.js +16 -5
- package/dist/tools/map/attention/attention.js.map +1 -1
- package/dist/tools/map/attention/constants.d.ts +6 -0
- package/dist/tools/map/attention/constants.d.ts.map +1 -1
- package/dist/tools/map/attention/constants.js +16 -2
- package/dist/tools/map/attention/constants.js.map +1 -1
- package/dist/tools/map/attention/evicted.service.d.ts +19 -0
- package/dist/tools/map/attention/evicted.service.d.ts.map +1 -0
- package/dist/tools/map/attention/evicted.service.js +73 -0
- package/dist/tools/map/attention/evicted.service.js.map +1 -0
- package/dist/tools/map/attention/evicted.utils.d.ts +16 -0
- package/dist/tools/map/attention/evicted.utils.d.ts.map +1 -0
- package/dist/tools/map/attention/evicted.utils.js +72 -0
- package/dist/tools/map/attention/evicted.utils.js.map +1 -0
- package/dist/tools/map/attention/panel.utils.d.ts.map +1 -1
- package/dist/tools/map/attention/panel.utils.js +1 -0
- package/dist/tools/map/attention/panel.utils.js.map +1 -1
- package/dist/tools/map/attention/types.d.ts +17 -0
- package/dist/tools/map/attention/types.d.ts.map +1 -1
- package/dist/tools/map/attention/types.js.map +1 -1
- package/dist/tools/map/get-map/constants.d.ts.map +1 -1
- package/dist/tools/map/get-map/constants.js +4 -2
- package/dist/tools/map/get-map/constants.js.map +1 -1
- package/dist/tools/reveal/constants.d.ts.map +1 -1
- package/dist/tools/reveal/constants.js +3 -1
- package/dist/tools/reveal/constants.js.map +1 -1
- package/dist/tools/trade/buy-lot/buy-lot.d.ts.map +1 -1
- package/dist/tools/trade/buy-lot/buy-lot.js +2 -0
- package/dist/tools/trade/buy-lot/buy-lot.js.map +1 -1
- package/dist/tools/trade/buy-lot/constants.d.ts.map +1 -1
- package/dist/tools/trade/buy-lot/constants.js +2 -0
- package/dist/tools/trade/buy-lot/constants.js.map +1 -1
- package/dist/tools/trade/buyer-guard/constants.d.ts +4 -0
- package/dist/tools/trade/buyer-guard/constants.d.ts.map +1 -0
- package/dist/tools/trade/buyer-guard/constants.js +11 -0
- package/dist/tools/trade/buyer-guard/constants.js.map +1 -0
- package/dist/tools/trade/buyer-guard/lot-open.guard.d.ts +9 -0
- package/dist/tools/trade/buyer-guard/lot-open.guard.d.ts.map +1 -0
- package/dist/tools/trade/buyer-guard/lot-open.guard.js +15 -0
- package/dist/tools/trade/buyer-guard/lot-open.guard.js.map +1 -0
- package/dist/tools/trade/buyer-guard/types.d.ts +6 -0
- package/dist/tools/trade/buyer-guard/types.d.ts.map +1 -0
- package/dist/tools/trade/buyer-guard/types.js +2 -0
- package/dist/tools/trade/buyer-guard/types.js.map +1 -0
- package/dist/tools/trade/constants.d.ts +5 -0
- package/dist/tools/trade/constants.d.ts.map +1 -0
- package/dist/tools/trade/constants.js +14 -0
- package/dist/tools/trade/constants.js.map +1 -0
- package/dist/tools/trade/create-lot/constants.d.ts.map +1 -1
- package/dist/tools/trade/create-lot/constants.js +4 -1
- package/dist/tools/trade/create-lot/constants.js.map +1 -1
- package/dist/tools/trade/create-lot/create-lot.d.ts +2 -1
- package/dist/tools/trade/create-lot/create-lot.d.ts.map +1 -1
- package/dist/tools/trade/create-lot/create-lot.js +15 -1
- package/dist/tools/trade/create-lot/create-lot.js.map +1 -1
- package/dist/tools/trade/evict-lot/constants.d.ts +4 -0
- package/dist/tools/trade/evict-lot/constants.d.ts.map +1 -0
- package/dist/tools/trade/evict-lot/constants.js +13 -0
- package/dist/tools/trade/evict-lot/constants.js.map +1 -0
- package/dist/tools/trade/evict-lot/evict-lot.d.ts +6 -0
- package/dist/tools/trade/evict-lot/evict-lot.d.ts.map +1 -0
- package/dist/tools/trade/evict-lot/evict-lot.js +35 -0
- package/dist/tools/trade/evict-lot/evict-lot.js.map +1 -0
- package/dist/tools/trade/evict-lot/format.utils.d.ts +5 -0
- package/dist/tools/trade/evict-lot/format.utils.d.ts.map +1 -0
- package/dist/tools/trade/evict-lot/format.utils.js +10 -0
- package/dist/tools/trade/evict-lot/format.utils.js.map +1 -0
- package/dist/tools/trade/evict-lot/types.d.ts +5 -0
- package/dist/tools/trade/evict-lot/types.d.ts.map +1 -0
- package/dist/tools/trade/evict-lot/types.js +8 -0
- package/dist/tools/trade/evict-lot/types.js.map +1 -0
- package/dist/tools/trade/format.utils.d.ts +2 -4
- package/dist/tools/trade/format.utils.d.ts.map +1 -1
- package/dist/tools/trade/format.utils.js +11 -13
- package/dist/tools/trade/format.utils.js.map +1 -1
- package/dist/tools/trade/get-lot/constants.d.ts.map +1 -1
- package/dist/tools/trade/get-lot/constants.js +2 -1
- package/dist/tools/trade/get-lot/constants.js.map +1 -1
- package/dist/tools/trade/list-lots/constants.d.ts +2 -0
- package/dist/tools/trade/list-lots/constants.d.ts.map +1 -1
- package/dist/tools/trade/list-lots/constants.js +5 -1
- package/dist/tools/trade/list-lots/constants.js.map +1 -1
- package/dist/tools/trade/list-lots/list-lots.d.ts.map +1 -1
- package/dist/tools/trade/list-lots/list-lots.js +2 -1
- package/dist/tools/trade/list-lots/list-lots.js.map +1 -1
- package/dist/tools/trade/list-lots/list-lots.utils.d.ts +8 -0
- package/dist/tools/trade/list-lots/list-lots.utils.d.ts.map +1 -0
- package/dist/tools/trade/list-lots/list-lots.utils.js +10 -0
- package/dist/tools/trade/list-lots/list-lots.utils.js.map +1 -0
- package/dist/tools/trade/list-mine/constants.d.ts.map +1 -1
- package/dist/tools/trade/list-mine/constants.js +3 -1
- package/dist/tools/trade/list-mine/constants.js.map +1 -1
- package/dist/tools/trade/lot-terms/constants.d.ts +5 -0
- package/dist/tools/trade/lot-terms/constants.d.ts.map +1 -0
- package/dist/tools/trade/lot-terms/constants.js +13 -0
- package/dist/tools/trade/lot-terms/constants.js.map +1 -0
- package/dist/tools/trade/lot-terms/factory.d.ts +4 -0
- package/dist/tools/trade/lot-terms/factory.d.ts.map +1 -0
- package/dist/tools/trade/lot-terms/factory.js +14 -0
- package/dist/tools/trade/lot-terms/factory.js.map +1 -0
- package/dist/tools/trade/lot-terms/format.utils.d.ts +4 -0
- package/dist/tools/trade/lot-terms/format.utils.d.ts.map +1 -0
- package/dist/tools/trade/lot-terms/format.utils.js +30 -0
- package/dist/tools/trade/lot-terms/format.utils.js.map +1 -0
- package/dist/tools/trade/lot-terms/lot-terms.d.ts +5 -0
- package/dist/tools/trade/lot-terms/lot-terms.d.ts.map +1 -0
- package/dist/tools/trade/lot-terms/lot-terms.js +23 -0
- package/dist/tools/trade/lot-terms/lot-terms.js.map +1 -0
- package/dist/tools/trade/lot-terms/types.d.ts +6 -0
- package/dist/tools/trade/lot-terms/types.d.ts.map +1 -0
- package/dist/tools/trade/lot-terms/types.js +7 -0
- package/dist/tools/trade/lot-terms/types.js.map +1 -0
- package/dist/tools/trade/market-index/constants.d.ts.map +1 -1
- package/dist/tools/trade/market-index/constants.js +2 -0
- package/dist/tools/trade/market-index/constants.js.map +1 -1
- package/dist/tools/trade/markets/constants.d.ts.map +1 -1
- package/dist/tools/trade/markets/constants.js +2 -1
- package/dist/tools/trade/markets/constants.js.map +1 -1
- package/dist/tools/trade/quote-buy/constants.d.ts.map +1 -1
- package/dist/tools/trade/quote-buy/constants.js +4 -2
- package/dist/tools/trade/quote-buy/constants.js.map +1 -1
- package/dist/tools/trade/quote-buy/quote-buy.d.ts.map +1 -1
- package/dist/tools/trade/quote-buy/quote-buy.js +2 -0
- package/dist/tools/trade/quote-buy/quote-buy.js.map +1 -1
- package/dist/tools/trade/quote-lot-return/constants.d.ts +2 -0
- package/dist/tools/trade/quote-lot-return/constants.d.ts.map +1 -0
- package/dist/tools/trade/quote-lot-return/constants.js +11 -0
- package/dist/tools/trade/quote-lot-return/constants.js.map +1 -0
- package/dist/tools/trade/quote-lot-return/quote-lot-return.d.ts +5 -0
- package/dist/tools/trade/quote-lot-return/quote-lot-return.d.ts.map +1 -0
- package/dist/tools/trade/quote-lot-return/quote-lot-return.js +20 -0
- package/dist/tools/trade/quote-lot-return/quote-lot-return.js.map +1 -0
- package/dist/tools/trade/return-lot/constants.d.ts +5 -0
- package/dist/tools/trade/return-lot/constants.d.ts.map +1 -0
- package/dist/tools/trade/return-lot/constants.js +26 -0
- package/dist/tools/trade/return-lot/constants.js.map +1 -0
- package/dist/tools/trade/return-lot/factory.d.ts +4 -0
- package/dist/tools/trade/return-lot/factory.d.ts.map +1 -0
- package/dist/tools/trade/return-lot/factory.js +18 -0
- package/dist/tools/trade/return-lot/factory.js.map +1 -0
- package/dist/tools/trade/return-lot/format.utils.d.ts +5 -0
- package/dist/tools/trade/return-lot/format.utils.d.ts.map +1 -0
- package/dist/tools/trade/return-lot/format.utils.js +39 -0
- package/dist/tools/trade/return-lot/format.utils.js.map +1 -0
- package/dist/tools/trade/return-lot/return-lot.d.ts +5 -0
- package/dist/tools/trade/return-lot/return-lot.d.ts.map +1 -0
- package/dist/tools/trade/return-lot/return-lot.js +25 -0
- package/dist/tools/trade/return-lot/return-lot.js.map +1 -0
- package/dist/tools/trade/return-lot/types.d.ts +11 -0
- package/dist/tools/trade/return-lot/types.d.ts.map +1 -0
- package/dist/tools/trade/return-lot/types.js +21 -0
- package/dist/tools/trade/return-lot/types.js.map +1 -0
- package/dist/tools/trade/types.d.ts +0 -4
- package/dist/tools/trade/types.d.ts.map +1 -1
- package/dist/tools/trade/types.js +4 -12
- package/dist/tools/trade/types.js.map +1 -1
- package/dist/tools/transport/constants.d.ts.map +1 -1
- package/dist/tools/transport/constants.js +9 -0
- package/dist/tools/transport/constants.js.map +1 -1
- package/dist/tools/transport/network/constants.d.ts +2 -0
- package/dist/tools/transport/network/constants.d.ts.map +1 -1
- package/dist/tools/transport/network/constants.js +2 -0
- package/dist/tools/transport/network/constants.js.map +1 -1
- package/dist/tools/transport/network/panel.utils.d.ts +2 -2
- package/dist/tools/transport/network/panel.utils.d.ts.map +1 -1
- package/dist/tools/transport/network/panel.utils.js +20 -0
- package/dist/tools/transport/network/panel.utils.js.map +1 -1
- package/dist/tools/transport/network/route-network.d.ts.map +1 -1
- package/dist/tools/transport/network/route-network.js +1 -1
- package/dist/tools/transport/network/route-network.js.map +1 -1
- package/dist/tools/transport/next-hops/next-hops.d.ts.map +1 -1
- package/dist/tools/transport/next-hops/next-hops.js +13 -3
- package/dist/tools/transport/next-hops/next-hops.js.map +1 -1
- package/dist/tools/transport/quote/constants.d.ts.map +1 -1
- package/dist/tools/transport/quote/constants.js +5 -3
- package/dist/tools/transport/quote/constants.js.map +1 -1
- package/dist/tools/transport/types.d.ts +2 -0
- package/dist/tools/transport/types.d.ts.map +1 -1
- package/dist/tools/transport/types.js +16 -0
- package/dist/tools/transport/types.js.map +1 -1
- package/dist/tools/types.d.ts +7 -1
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js +16 -1
- package/dist/tools/types.js.map +1 -1
- package/dist/types.d.ts +3 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/wei.constants.d.ts +6 -0
- package/dist/utils/wei.constants.d.ts.map +1 -0
- package/dist/utils/wei.constants.js +6 -0
- package/dist/utils/wei.constants.js.map +1 -0
- package/dist/wallet/index.d.ts.map +1 -1
- package/dist/wallet/index.js +2 -3
- package/dist/wallet/index.js.map +1 -1
- package/dist/wallet/types.d.ts +0 -9
- package/dist/wallet/types.d.ts.map +1 -1
- package/dist/wallet/types.js.map +1 -1
- package/package.json +2 -2
- package/dist/tools/trade/cancel-lot/cancel-lot.d.ts +0 -4
- package/dist/tools/trade/cancel-lot/cancel-lot.d.ts.map +0 -1
- package/dist/tools/trade/cancel-lot/cancel-lot.js +0 -20
- package/dist/tools/trade/cancel-lot/cancel-lot.js.map +0 -1
- package/dist/tools/trade/cancel-lot/constants.d.ts +0 -2
- package/dist/tools/trade/cancel-lot/constants.d.ts.map +0 -1
- package/dist/tools/trade/cancel-lot/constants.js +0 -8
- package/dist/tools/trade/cancel-lot/constants.js.map +0 -1
- package/dist/wallet/agw.manager.d.ts +0 -20
- package/dist/wallet/agw.manager.d.ts.map +0 -1
- package/dist/wallet/agw.manager.js +0 -90
- package/dist/wallet/agw.manager.js.map +0 -1
- package/dist/wallet/agw.provider.d.ts +0 -14
- package/dist/wallet/agw.provider.d.ts.map +0 -1
- package/dist/wallet/agw.provider.js +0 -48
- package/dist/wallet/agw.provider.js.map +0 -1
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
export const SALE_FEE_STRUCTURAL_BOUND_PERCENT = 100;
|
|
2
2
|
export const SALE_FEE_STRUCTURAL_BOUND_NOTE = '(the structural bound — a hub owner can set any rate up to this maximum)';
|
|
3
|
+
export const LOT_LISTING_LABEL = 'Lot listing:';
|
|
4
|
+
export const EFFECTIVE_BOUNDS_SOURCE_NOTE = [
|
|
5
|
+
'the exact unit window for one hub and one resource is read from the Trade contract itself, never worked',
|
|
6
|
+
'out from these shares',
|
|
7
|
+
].join(' ');
|
|
8
|
+
export const LOT_LISTING_UNAVAILABLE_NOTE = [
|
|
9
|
+
'the listing window and the per-seller lot limit live on the Trade contract and could not be read right',
|
|
10
|
+
'now (no wallet configured, or the chain is unreachable) — retry once a session exists rather than',
|
|
11
|
+
'assuming a bound',
|
|
12
|
+
].join(' ');
|
|
3
13
|
export const ENTRY_POINT_LOOKUP = {
|
|
4
14
|
building: 'cpu_get_building',
|
|
5
15
|
buildingSearch: 'cpu_find_buildings',
|
|
@@ -46,7 +56,7 @@ export const BUILDING_INDEX_SECTION_TITLE = 'Building index';
|
|
|
46
56
|
export const EMPTY_CATALOG_NOTE = 'No buildings in the catalog of this network.';
|
|
47
57
|
export const REVEAL_PAYMENT_UNKNOWN_SUMMARY = [
|
|
48
58
|
'every reveal is charged, the first reveal of a cell included, but this network serves no price for it, so',
|
|
49
|
-
'the amounts are unknown here — `cpu_reveal` reads the
|
|
59
|
+
'the amounts are unknown here — `cpu_reveal` reads the current budget and burn from the Cell before paying.',
|
|
50
60
|
].join(' ');
|
|
51
61
|
export const SELF_SERVICE_RANDOMNESS_SUMMARY = [
|
|
52
62
|
'self-service — `cpu_reveal` runs both steps itself and hands back the drawn deposits; if it returns',
|
|
@@ -58,7 +68,8 @@ export const PUSH_RANDOMNESS_SUMMARY = [
|
|
|
58
68
|
'(poll `cpu_get_cell`); a reveal-fulfilment tool has nothing to do on this network.',
|
|
59
69
|
].join(' ');
|
|
60
70
|
export const STORAGE_SHELVES_SUMMARY = [
|
|
61
|
-
'storage caps are explicit per-resource cell/hub shelf pairs (`0` means unlimited
|
|
71
|
+
'storage caps are explicit per-resource cell/hub shelf pairs (`0` means unlimited for WCPU alone and no',
|
|
72
|
+
'room for every other resource); map reads label the',
|
|
62
73
|
'shelf currently in force as each resource storage `cap`, and the machine block below carries every pair',
|
|
63
74
|
].join(' ');
|
|
64
75
|
export const TRANSIT_FEE_FLOOR_SUMMARY = "every resource carries a transit-fee floor ($CPU/u; a hub's non-zero override wins over it)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/tools/config/get-game-config/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,CAAC;AAErD,MAAM,CAAC,MAAM,8BAA8B,GACvC,0EAA0E,CAAC;AAE/E,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,QAAQ,EAAE,kBAAkB;IAC5B,cAAc,EAAE,oBAAoB;IACpC,QAAQ,EAAE,kBAAkB;IAC5B,OAAO,EAAE,kBAAkB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACvC,uGAAuG;IACvG,uGAAuG;IACvG,2GAA2G;IAC3G,wGAAwG;IACxG,oCAAoC,kBAAkB,CAAC,QAAQ,8CAA8C;IAC7G,YAAY,kBAAkB,CAAC,cAAc,8DAA8D;IAC3G,KAAK,kBAAkB,CAAC,QAAQ,2CAA2C,kBAAkB,CAAC,OAAO,QAAQ;IAC7G,4CAA4C;CAC/C,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,yBAAyB,GAClC,gGAAgG,CAAC;AAErG,MAAM,CAAC,MAAM,qBAAqB,GAAG,yBAAyB,CAAC;AAE/D,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,8BAA8B,kBAAkB,CAAC,QAAQ,4CAA4C;IACrG,0GAA0G;IAC1G,eA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MAAM,gBAAgB,CAAC;AAEpD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"get-game-config.d.ts","sourceRoot":"","sources":["../../../../src/tools/config/get-game-config/get-game-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,GAAG,IAAI,CAkB1F"}
|
|
@@ -2,11 +2,14 @@ import { GET_GAME_CONFIG_DESCRIPTION } from './constants.js';
|
|
|
2
2
|
import { buildGameConfigReference, renderEntryPoint } from './get-game-config.utils.js';
|
|
3
3
|
export function registerGetGameConfigTool(server, context) {
|
|
4
4
|
server.registerTool('cpu_get_game_config', { description: GET_GAME_CONFIG_DESCRIPTION, inputSchema: {} }, async () => {
|
|
5
|
-
const config = await
|
|
5
|
+
const [config, lotListing] = await Promise.all([
|
|
6
|
+
context.appConfig.load(),
|
|
7
|
+
context.tradeRules.loadLotListingRules(),
|
|
8
|
+
]);
|
|
6
9
|
return {
|
|
7
10
|
content: [
|
|
8
|
-
{ type: 'text', text: renderEntryPoint(config) },
|
|
9
|
-
{ type: 'text', text: JSON.stringify(buildGameConfigReference(config)) },
|
|
11
|
+
{ type: 'text', text: renderEntryPoint(config, lotListing) },
|
|
12
|
+
{ type: 'text', text: JSON.stringify(buildGameConfigReference(config, lotListing)) },
|
|
10
13
|
],
|
|
11
14
|
};
|
|
12
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-game-config.js","sourceRoot":"","sources":["../../../../src/tools/config/get-game-config/get-game-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAIxF,MAAM,UAAU,yBAAyB,CAAC,MAAqB,EAAE,OAAmB;IAChF,MAAM,CAAC,YAAY,CACf,qBAAqB,EACrB,EAAE,WAAW,EAAE,2BAA2B,EAAE,WAAW,EAAE,EAAE,EAAE,EAC7D,KAAK,IAAI,EAAE;QACP,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"get-game-config.js","sourceRoot":"","sources":["../../../../src/tools/config/get-game-config/get-game-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAIxF,MAAM,UAAU,yBAAyB,CAAC,MAAqB,EAAE,OAAmB;IAChF,MAAM,CAAC,YAAY,CACf,qBAAqB,EACrB,EAAE,WAAW,EAAE,2BAA2B,EAAE,WAAW,EAAE,EAAE,EAAE,EAC7D,KAAK,IAAI,EAAE;QACP,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAC3C,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE;YACxB,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE;SAC3C,CAAC,CAAC;QAEH,OAAO;YACH,OAAO,EAAE;gBACL,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE;gBAC5D,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,EAAE;aACvF;SACJ,CAAC;IACN,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { GameConfigReferenceView } from './types.js';
|
|
2
2
|
import { type RandomnessDescriptor, type RevealPaymentView } from '../../../api/types.js';
|
|
3
|
-
import type { AppConfig } from '../../../services/types.js';
|
|
3
|
+
import type { AppConfig, LotListingRulesView } from '../../../services/types.js';
|
|
4
4
|
export declare function describeRandomnessMode(randomness: RandomnessDescriptor): string;
|
|
5
5
|
export declare function describeRevealPayment(payment: RevealPaymentView | null): string;
|
|
6
6
|
export declare function renderHeadline(config: AppConfig): string;
|
|
7
7
|
export declare function renderRoutingMap(): string;
|
|
8
|
-
export declare function renderStaticFacts(config: AppConfig): string;
|
|
8
|
+
export declare function renderStaticFacts(config: AppConfig, lotListing: LotListingRulesView | null): string;
|
|
9
9
|
export declare function renderBuildingIndex(config: AppConfig): string;
|
|
10
|
-
export declare function renderEntryPoint(config: AppConfig): string;
|
|
11
|
-
export declare function buildGameConfigReference(config: AppConfig): GameConfigReferenceView;
|
|
10
|
+
export declare function renderEntryPoint(config: AppConfig, lotListing: LotListingRulesView | null): string;
|
|
11
|
+
export declare function buildGameConfigReference(config: AppConfig, lotListing: LotListingRulesView | null): GameConfigReferenceView;
|
|
12
12
|
//# sourceMappingURL=get-game-config.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-game-config.utils.d.ts","sourceRoot":"","sources":["../../../../src/tools/config/get-game-config/get-game-config.utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-game-config.utils.d.ts","sourceRoot":"","sources":["../../../../src/tools/config/get-game-config/get-game-config.utils.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,uBAAuB,EAAqB,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAgB,KAAK,oBAAoB,EAAkB,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACxH,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAIjF,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,oBAAoB,GAAG,MAAM,CAE/E;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,GAAG,MAAM,CAS/E;AA8CD,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAKxD;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CASzC;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,mBAAmB,GAAG,IAAI,GAAG,MAAM,CAcnG;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAS7D;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,mBAAmB,GAAG,IAAI,GAAG,MAAM,CAOlG;AAED,wBAAgB,wBAAwB,CACpC,MAAM,EAAE,SAAS,EACjB,UAAU,EAAE,mBAAmB,GAAG,IAAI,GACvC,uBAAuB,CAmBzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BUILDING_INDEX_SECTION_TITLE, EMPTY_CATALOG_NOTE, ENTRY_POINT_HEADLINE_TAIL, ENTRY_POINT_LOOKUP, NONE_LABEL, PUSH_RANDOMNESS_SUMMARY, REVEAL_PAYMENT_UNKNOWN_SUMMARY, ROUTING_BUILDING_CARD_LINE, ROUTING_FIND_BUILDINGS_LINE, ROUTING_RECIPES_LINE, ROUTING_RESOURCE_LENS_LINE, ROUTING_SECTION_TITLE, ROUTING_UNKNOWN_ID_LINE, SALE_FEE_STRUCTURAL_BOUND_NOTE, SALE_FEE_STRUCTURAL_BOUND_PERCENT, SELF_SERVICE_RANDOMNESS_SUMMARY, STATIC_SECTION_TITLE, STORAGE_SHELVES_SUMMARY, TRANSIT_FEE_FLOOR_SUMMARY, } from './constants.js';
|
|
1
|
+
import { BUILDING_INDEX_SECTION_TITLE, EFFECTIVE_BOUNDS_SOURCE_NOTE, EMPTY_CATALOG_NOTE, ENTRY_POINT_HEADLINE_TAIL, ENTRY_POINT_LOOKUP, LOT_LISTING_LABEL, LOT_LISTING_UNAVAILABLE_NOTE, NONE_LABEL, PUSH_RANDOMNESS_SUMMARY, REVEAL_PAYMENT_UNKNOWN_SUMMARY, ROUTING_BUILDING_CARD_LINE, ROUTING_FIND_BUILDINGS_LINE, ROUTING_RECIPES_LINE, ROUTING_RESOURCE_LENS_LINE, ROUTING_SECTION_TITLE, ROUTING_UNKNOWN_ID_LINE, SALE_FEE_STRUCTURAL_BOUND_NOTE, SALE_FEE_STRUCTURAL_BOUND_PERCENT, SELF_SERVICE_RANDOMNESS_SUMMARY, STATIC_SECTION_TITLE, STORAGE_SHELVES_SUMMARY, TRANSIT_FEE_FLOOR_SUMMARY, } from './constants.js';
|
|
2
2
|
import { BuildingKind, RandomnessKind } from '../../../api/types.js';
|
|
3
3
|
import { INDEX_COLUMNS_LEGEND } from '../find-buildings/constants.js';
|
|
4
4
|
import { renderBuildingIndexLine } from '../find-buildings/find-buildings.utils.js';
|
|
@@ -9,9 +9,9 @@ export function describeRevealPayment(payment) {
|
|
|
9
9
|
if (payment === null) {
|
|
10
10
|
return REVEAL_PAYMENT_UNKNOWN_SUMMARY;
|
|
11
11
|
}
|
|
12
|
-
return (`every reveal
|
|
13
|
-
`
|
|
14
|
-
`
|
|
12
|
+
return (`every reveal has a ${payment.ethBudget} ETH budget and burns ${payment.cpuBurn} $CPU, the first reveal ` +
|
|
13
|
+
`of a cell included; the pool contribution, live randomness fee and metadata publication charge are ` +
|
|
14
|
+
`carved out of that budget, and cpu_reveal checks the current split on-chain before paying it`);
|
|
15
15
|
}
|
|
16
16
|
function renderPairs(entries) {
|
|
17
17
|
return entries.length > 0 ? entries.map(([key, value]) => `${key}:${value}`).join(', ') : NONE_LABEL;
|
|
@@ -34,6 +34,17 @@ function describeTrade(config) {
|
|
|
34
34
|
return (`${config.trade.saleBurnPercent}% sale burn, sale fee up to ${SALE_FEE_STRUCTURAL_BOUND_PERCENT}% ` +
|
|
35
35
|
SALE_FEE_STRUCTURAL_BOUND_NOTE);
|
|
36
36
|
}
|
|
37
|
+
function describeLotListing(rules) {
|
|
38
|
+
if (rules === null) {
|
|
39
|
+
return LOT_LISTING_UNAVAILABLE_NOTE;
|
|
40
|
+
}
|
|
41
|
+
return (`one new lot must hold between ${rules.minLotSharePercent}% and ${rules.maxLotSharePercent}% of the ` +
|
|
42
|
+
`hub's storage shelf for the resource; where that shelf is uncapped the window is an absolute ` +
|
|
43
|
+
`${rules.minUncappedLotValue}–${rules.maxUncappedLotValue} units instead. At most ` +
|
|
44
|
+
`${rules.maxLotsPerSellerHubResource} live lots per seller, hub and resource — delivering, open and ` +
|
|
45
|
+
`evicted ones all count. Asking price floor ${rules.minPricePerUnit} $CPU/u. ` +
|
|
46
|
+
`Note: ${EFFECTIVE_BOUNDS_SOURCE_NOTE}`);
|
|
47
|
+
}
|
|
37
48
|
export function renderHeadline(config) {
|
|
38
49
|
return (`Network ${config.network} (chainId ${config.chainId}), ${config.buildings.length} building(s), ` +
|
|
39
50
|
`${config.recipes.length} recipe(s). ${ENTRY_POINT_HEADLINE_TAIL}`);
|
|
@@ -48,12 +59,13 @@ export function renderRoutingMap() {
|
|
|
48
59
|
ROUTING_UNKNOWN_ID_LINE,
|
|
49
60
|
].join('\n');
|
|
50
61
|
}
|
|
51
|
-
export function renderStaticFacts(config) {
|
|
62
|
+
export function renderStaticFacts(config, lotListing) {
|
|
52
63
|
return [
|
|
53
64
|
STATIC_SECTION_TITLE,
|
|
54
65
|
`Reveal: ${describeRevealPayment(config.reveal)}.`,
|
|
55
66
|
`Randomness: ${describeRandomnessMode(config.randomness)}`,
|
|
56
67
|
`Trade: ${describeTrade(config)}.`,
|
|
68
|
+
`${LOT_LISTING_LABEL} ${describeLotListing(lotListing)}.`,
|
|
57
69
|
`Transit: ${describeTransit(config)}.`,
|
|
58
70
|
`Storage: ${STORAGE_SHELVES_SUMMARY}.`,
|
|
59
71
|
`Resources: ${renderPairs(Object.entries(config.resources))}.`,
|
|
@@ -70,10 +82,15 @@ export function renderBuildingIndex(config) {
|
|
|
70
82
|
const rows = config.buildings.map((building) => renderBuildingIndexLine(building, config.recipes, config.resources));
|
|
71
83
|
return [heading, ...rows].join('\n');
|
|
72
84
|
}
|
|
73
|
-
export function renderEntryPoint(config) {
|
|
74
|
-
return [
|
|
85
|
+
export function renderEntryPoint(config, lotListing) {
|
|
86
|
+
return [
|
|
87
|
+
renderHeadline(config),
|
|
88
|
+
renderRoutingMap(),
|
|
89
|
+
renderStaticFacts(config, lotListing),
|
|
90
|
+
renderBuildingIndex(config),
|
|
91
|
+
].join('\n\n');
|
|
75
92
|
}
|
|
76
|
-
export function buildGameConfigReference(config) {
|
|
93
|
+
export function buildGameConfigReference(config, lotListing) {
|
|
77
94
|
return {
|
|
78
95
|
network: config.network,
|
|
79
96
|
chainId: config.chainId,
|
|
@@ -82,7 +99,7 @@ export function buildGameConfigReference(config) {
|
|
|
82
99
|
resources: config.resources,
|
|
83
100
|
reveal: config.reveal,
|
|
84
101
|
transport: { ...config.transport, hubRadii: hubTierRadii(config) },
|
|
85
|
-
trade: config.trade,
|
|
102
|
+
trade: { ...config.trade, lotListing },
|
|
86
103
|
storage: config.storage,
|
|
87
104
|
catalog: { buildingCount: config.buildings.length, recipeCount: config.recipes.length },
|
|
88
105
|
lookup: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-game-config.utils.js","sourceRoot":"","sources":["../../../../src/tools/config/get-game-config/get-game-config.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,4BAA4B,EAC5B,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EAClB,UAAU,EACV,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC1B,2BAA2B,EAC3B,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,8BAA8B,EAC9B,iCAAiC,EACjC,+BAA+B,EAC/B,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,GAC5B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,YAAY,EAA6B,cAAc,EAA0B,MAAM,uBAAuB,CAAC;AAExH,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,MAAM,UAAU,sBAAsB,CAAC,UAAgC;IACnE,OAAO,UAAU,CAAC,IAAI,KAAK,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,uBAAuB,CAAC;AAChH,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,OAAiC;IACnE,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACnB,OAAO,8BAA8B,CAAC;IAC1C,CAAC;IACD,OAAO,CACH,
|
|
1
|
+
{"version":3,"file":"get-game-config.utils.js","sourceRoot":"","sources":["../../../../src/tools/config/get-game-config/get-game-config.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,4BAA4B,EAC5B,4BAA4B,EAC5B,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EAClB,iBAAiB,EACjB,4BAA4B,EAC5B,UAAU,EACV,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC1B,2BAA2B,EAC3B,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,8BAA8B,EAC9B,iCAAiC,EACjC,+BAA+B,EAC/B,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,GAC5B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,YAAY,EAA6B,cAAc,EAA0B,MAAM,uBAAuB,CAAC;AAExH,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,MAAM,UAAU,sBAAsB,CAAC,UAAgC;IACnE,OAAO,UAAU,CAAC,IAAI,KAAK,cAAc,CAAC,KAAK,CAAC,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StorageConfigView, TransportRoutingView } from '../../../api/types.js';
|
|
2
2
|
import type { Network } from '../../../config/types.js';
|
|
3
|
-
import type { AppContracts, TradeConfigView } from '../../../services/types.js';
|
|
3
|
+
import type { AppContracts, LotListingRulesView, TradeConfigView } from '../../../services/types.js';
|
|
4
4
|
/** One Hub tier's routing reach, so a structured reader never has to treat `hubRadius` as universal. */
|
|
5
5
|
export interface HubTierRadiusView {
|
|
6
6
|
type: string;
|
|
@@ -10,6 +10,10 @@ export interface HubTierRadiusView {
|
|
|
10
10
|
export interface TransportReferenceView extends TransportRoutingView {
|
|
11
11
|
hubRadii: Array<HubTierRadiusView>;
|
|
12
12
|
}
|
|
13
|
+
/** The fee parameters the game API projects, plus the listing window read off the Trade contract. */
|
|
14
|
+
export interface TradeReferenceView extends TradeConfigView {
|
|
15
|
+
lotListing: LotListingRulesView | null;
|
|
16
|
+
}
|
|
13
17
|
export interface CatalogSizeView {
|
|
14
18
|
buildingCount: number;
|
|
15
19
|
recipeCount: number;
|
|
@@ -28,7 +32,7 @@ export interface GameConfigReferenceView {
|
|
|
28
32
|
resources: Record<number, string>;
|
|
29
33
|
reveal: RevealPaymentView | null;
|
|
30
34
|
transport: TransportReferenceView;
|
|
31
|
-
trade:
|
|
35
|
+
trade: TradeReferenceView;
|
|
32
36
|
storage: StorageConfigView;
|
|
33
37
|
catalog: CatalogSizeView;
|
|
34
38
|
lookup: EntryPointLookupView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/tools/config/get-game-config/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/tools/config/get-game-config/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAErG,wGAAwG;AACxG,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,sBAAuB,SAAQ,oBAAoB;IAChE,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACtC;AAED,qGAAqG;AACrG,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACvD,UAAU,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAC1C;AAED,MAAM,WAAW,eAAe;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,YAAY,CAAC;IACxB,UAAU,EAAE,oBAAoB,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACjC,SAAS,EAAE,sBAAsB,CAAC;IAClC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,OAAO,EAAE,eAAe,CAAC;IACzB,MAAM,EAAE,oBAAoB,CAAC;CAChC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-lens.utils.d.ts","sourceRoot":"","sources":["../../../../src/tools/config/resource-lens/resource-lens.utils.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAA2B,gBAAgB,EAAyB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"resource-lens.utils.d.ts","sourceRoot":"","sources":["../../../../src/tools/config/resource-lens/resource-lens.utils.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAA2B,gBAAgB,EAAyB,MAAM,YAAY,CAAC;AAGnG,OAAO,KAAK,EAAE,SAAS,EAAuB,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAA+B,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC;AA6BjG,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,GAAG,gBAAgB,CAyBzF;AA8DD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,aAAa,GAAG,MAAM,CAa3F"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BUILD_INPUT_TO_SECTION, CELL_SHELF_LABEL, EMPTY_GROUP_VALUE, HUB_SHELF_LABEL, IDLE_RESOURCE_NOTE, LENS_HEADLINE_TAIL, LENS_INDENT, MINED_BY_SECTION, PER_BUILD_LABEL, PER_CYCLE_LABEL, RECIPE_INPUT_TO_SECTION, RECIPE_OUTPUT_OF_SECTION, RUN_BY_LABEL, SHELVES_MISSING_NOTE, STORAGE_SECTION_TITLE, TRANSIT_FEE_FLOOR_LABEL, TRANSIT_FEE_FLOOR_MISSING_NOTE, TRANSIT_FEE_FLOOR_NOTE, TRANSIT_SECTION_TITLE, UNKNOWN_RESOURCE_NOTE, UNLIMITED_SHELF_CAP, UNLIMITED_SHELF_VALUE, } from './constants.js';
|
|
2
|
+
import { WCPU_RESOURCE_ID } from '../../../config/constants.js';
|
|
2
3
|
import { resourceLabel, resourceName } from '../../../utils/format.utils.js';
|
|
3
4
|
import { PANEL_FIELD_SEPARATOR } from '../../../utils/panel.constants.js';
|
|
4
5
|
import { buildIndexRow, renderIndexRow } from '../find-buildings/find-buildings.utils.js';
|
|
@@ -65,8 +66,8 @@ function recipeRowLine(row) {
|
|
|
65
66
|
`${RUN_BY_LABEL} ${runners}`,
|
|
66
67
|
].join(PANEL_FIELD_SEPARATOR);
|
|
67
68
|
}
|
|
68
|
-
function shelfValue(units) {
|
|
69
|
-
return units === UNLIMITED_SHELF_CAP ? UNLIMITED_SHELF_VALUE : `${units} units`;
|
|
69
|
+
function shelfValue(resourceId, units) {
|
|
70
|
+
return resourceId === WCPU_RESOURCE_ID && units === UNLIMITED_SHELF_CAP ? UNLIMITED_SHELF_VALUE : `${units} units`;
|
|
70
71
|
}
|
|
71
72
|
function storageLines(lens) {
|
|
72
73
|
if (lens.storage === null) {
|
|
@@ -74,8 +75,8 @@ function storageLines(lens) {
|
|
|
74
75
|
}
|
|
75
76
|
return [
|
|
76
77
|
STORAGE_SECTION_TITLE,
|
|
77
|
-
`${LENS_INDENT}${CELL_SHELF_LABEL}: ${shelfValue(lens.storage.cellShelf)}`,
|
|
78
|
-
`${LENS_INDENT}${HUB_SHELF_LABEL}: ${shelfValue(lens.storage.hubShelf)}`,
|
|
78
|
+
`${LENS_INDENT}${CELL_SHELF_LABEL}: ${shelfValue(lens.resourceId, lens.storage.cellShelf)}`,
|
|
79
|
+
`${LENS_INDENT}${HUB_SHELF_LABEL}: ${shelfValue(lens.resourceId, lens.storage.hubShelf)}`,
|
|
79
80
|
];
|
|
80
81
|
}
|
|
81
82
|
function transitLines(lens) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-lens.utils.js","sourceRoot":"","sources":["../../../../src/tools/config/resource-lens/resource-lens.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,GACxB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"resource-lens.utils.js","sourceRoot":"","sources":["../../../../src/tools/config/resource-lens/resource-lens.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,GACxB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAsB,MAAM,gCAAgC,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAE1F,SAAS,WAAW,CAAC,MAA6B,EAAE,UAAkB;IAClE,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC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AAM,kBAAkB,EAAE,CAAC;IACxF,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;QAClB,OAAO,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;IAC7C,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,IAAsB,EAAE,SAAwB;IAC/E,OAAO;QACH,GAAG,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC;QACjC,EAAE;QACF,GAAG,UAAU,CAAC,gBAAgB,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QAClE,GAAG,UAAU,CAAC,sBAAsB,EAAE,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QAC7E,GAAG,UAAU,CAAC,uBAAuB,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAC7E,GAAG,UAAU,CAAC,wBAAwB,EAAE,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAC/E,EAAE;QACF,GAAG,YAAY,CAAC,IAAI,CAAC;QACrB,EAAE;QACF,GAAG,YAAY,CAAC,IAAI,CAAC;KACxB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attention.d.ts","sourceRoot":"","sources":["../../../../src/tools/map/attention/attention.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"attention.d.ts","sourceRoot":"","sources":["../../../../src/tools/map/attention/attention.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AA2CpD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,GAAG,IAAI,CA6FzF"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { GET_ATTENTION_DESCRIPTION } from './constants.js';
|
|
1
|
+
import { EVICTED_COUNT_UNREACHABLE_NOTE, GET_ATTENTION_DESCRIPTION, LOT_RETURN_COST_NOTE } from './constants.js';
|
|
2
|
+
import { createEvictedLotCountService } from './evicted.service.js';
|
|
3
|
+
import { evictedAttentionItems, liveHubTokenIds } from './evicted.utils.js';
|
|
2
4
|
import { warehousePressurePanel } from './panel.utils.js';
|
|
3
5
|
import { getAttentionInputSchema } from './types.js';
|
|
4
6
|
import { LotState } from '../../../api/types.js';
|
|
@@ -27,7 +29,7 @@ function lotItem(lot) {
|
|
|
27
29
|
lotId: lot.id,
|
|
28
30
|
message: `Frozen: the hub's live sale fee (${lot.saleFeePercent}%) exceeds your tolerance ` +
|
|
29
31
|
`(${lot.maxSaleFeePercent}%); buys revert until the hub lowers the rate to your tolerance or below. ` +
|
|
30
|
-
|
|
32
|
+
LOT_RETURN_COST_NOTE,
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
35
|
if (lot.saleFeePercent === lot.maxSaleFeePercent) {
|
|
@@ -35,13 +37,16 @@ function lotItem(lot) {
|
|
|
35
37
|
resourceId: lot.resourceId,
|
|
36
38
|
lotId: lot.id,
|
|
37
39
|
message: `At risk: the hub's live sale fee (${lot.saleFeePercent}%) sits at your tolerance ` +
|
|
38
|
-
`(${lot.maxSaleFeePercent}%); the next hike freezes this lot and buys would revert.
|
|
39
|
-
|
|
40
|
+
`(${lot.maxSaleFeePercent}%); the next hike freezes this lot and buys would revert. ` +
|
|
41
|
+
LOT_RETURN_COST_NOTE,
|
|
40
42
|
});
|
|
41
43
|
}
|
|
42
44
|
return null;
|
|
43
45
|
}
|
|
44
46
|
export function registerGetAttentionTool(server, context) {
|
|
47
|
+
// Built on first use, not at registration: registration runs before the process has a wallet or a
|
|
48
|
+
// chain client, and nothing here may depend on either being live that early.
|
|
49
|
+
let evictedCounts = null;
|
|
45
50
|
server.registerTool('cpu_get_attention', { description: GET_ATTENTION_DESCRIPTION, inputSchema: getAttentionInputSchema }, async (args) => {
|
|
46
51
|
const self = getWalletAddress(context);
|
|
47
52
|
const target = args.owner ?? self;
|
|
@@ -63,13 +68,19 @@ export function registerGetAttentionTool(server, context) {
|
|
|
63
68
|
}
|
|
64
69
|
if (!scouting) {
|
|
65
70
|
try {
|
|
66
|
-
const lots = await context.trade.listMyLots(
|
|
71
|
+
const lots = await context.trade.listMyLots(null);
|
|
67
72
|
for (const lot of lots) {
|
|
68
73
|
const item = lotItem(lot);
|
|
69
74
|
if (item !== null) {
|
|
70
75
|
extraItems.push(item);
|
|
71
76
|
}
|
|
72
77
|
}
|
|
78
|
+
evictedCounts ??= createEvictedLotCountService(context);
|
|
79
|
+
const counts = await evictedCounts.forHubs(liveHubTokenIds(lots));
|
|
80
|
+
extraItems.push(...evictedAttentionItems(lots, counts));
|
|
81
|
+
if (counts.some((entry) => entry.count === null)) {
|
|
82
|
+
notes.push(EVICTED_COUNT_UNREACHABLE_NOTE);
|
|
83
|
+
}
|
|
73
84
|
}
|
|
74
85
|
catch (error) {
|
|
75
86
|
context.logger.warn('attention: lots fetch failed', { error: errorMessage(error) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attention.js","sourceRoot":"","sources":["../../../../src/tools/map/attention/attention.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"attention.js","sourceRoot":"","sources":["../../../../src/tools/map/attention/attention.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACjH,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OA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WAAW,CAAC,CAAC;aAChE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACZ,GAAG,IAAI;YACP,YAAY,EAAE,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC;SAC3F,CAAC,CAAC,CAAC;QAER,MAAM,KAAK,GAAG,sBAAsB,CAAC;YACjC,QAAQ;YACR,KAAK,EAAE,MAAM;YACb,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,KAAK;YACL,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,SAAS;SACZ,CAAC,CAAC;QAEH,OAAO;YACH,OAAO,EAAE;gBACL,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE;gBAC7B;oBACI,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC;iBAChG;aACJ;SACJ,CAAC;IACN,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -12,8 +12,14 @@ export declare const WAREHOUSE_PRESSURE_LABELS: {
|
|
|
12
12
|
nearFull: string;
|
|
13
13
|
peakFill: string;
|
|
14
14
|
stalled: string;
|
|
15
|
+
evicted: string;
|
|
15
16
|
note: string;
|
|
16
17
|
};
|
|
18
|
+
export declare const LOT_RETURN_COST_NOTE: string;
|
|
19
|
+
export declare const EVICTED_LOT_NOT_SELLING: string;
|
|
20
|
+
export declare const EVICTED_LISTING_BLOCK = "No lot of any resource can be listed on this hub until that outstanding count reaches zero.";
|
|
21
|
+
export declare const EVICTED_COUNT_UNREADABLE: string;
|
|
22
|
+
export declare const EVICTED_COUNT_UNREACHABLE_NOTE: string;
|
|
17
23
|
export declare const WAREHOUSE_PRESSURE_SCOPE_SELF = "self";
|
|
18
24
|
export declare const WAREHOUSE_PRESSURE_SCOPE_SCOUTING = "scouting";
|
|
19
25
|
export declare const WAREHOUSE_PRESSURE_NO_OWNER_NOTE = "Attention needs a wallet or an `owner` address \u2014 call authenticate or pass owner. Nothing to scope to.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tools/map/attention/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tools/map/attention/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,eAAO,MAAM,yBAAyB,QAyB3B,CAAC;AAEZ,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;CAarC,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAE2B,CAAC;AAE7D,eAAO,MAAM,uBAAuB,QAEb,CAAC;AAExB,eAAO,MAAM,qBAAqB,gGAC+D,CAAC;AAElG,eAAO,MAAM,wBAAwB,QAEb,CAAC;AAEzB,eAAO,MAAM,8BAA8B,QAEe,CAAC;AAE3D,eAAO,MAAM,6BAA6B,SAAS,CAAC;AACpD,eAAO,MAAM,iCAAiC,aAAa,CAAC;AAE5D,eAAO,MAAM,gCAAgC,gHAC+D,CAAC;AAE7G,eAAO,MAAM,eAAe,EAAE,aAAa,CAAC,eAAe,CAG1D,CAAC"}
|
|
@@ -5,10 +5,14 @@ export const GET_ATTENTION_DESCRIPTION = [
|
|
|
5
5
|
'cycle, so nothing settles and the wait burns); a reveal request of yours still open long after the client',
|
|
6
6
|
'should have settled it in the background, and a cell locked by a reveal request opened at a randomness',
|
|
7
7
|
'source the chain config has since replaced — that one no call of yours can clear, only an admin cleanup of',
|
|
8
|
-
'the contracts
|
|
8
|
+
'the contracts; and every lot of yours a hub has evicted — it sells to nobody, it still holds one of your',
|
|
9
|
+
'per-seller lot slots, and it blocks you from listing any resource on that hub until the outstanding count',
|
|
10
|
+
'reaches zero, so it is reconciled against the count the Trade contract itself reports (critical);',
|
|
11
|
+
'a near-full warehouse on an actively-produced',
|
|
9
12
|
'resource, a job that has run its scheduled cycles and now idles the cell until claimed, an arrived delivery',
|
|
10
13
|
'ready to finalize, an extractor on a depleted deposit, or one of your open lots frozen because the hub',
|
|
11
|
-
'raised its live sale fee above your tolerance (buys revert;
|
|
14
|
+
'raised its live sale fee above your tolerance (buys revert; getting the goods back is a lot return and pays',
|
|
15
|
+
'the Transit fee for that move) (warning);',
|
|
12
16
|
'revealed-but-unbuilt cells, cells in a post-demolish rebuild cooldown, and an open lot whose live sale fee',
|
|
13
17
|
'now sits exactly at your tolerance so the next hike freezes it (info — on a `demolish_cooldown` item',
|
|
14
18
|
'`arrivalAt` marks when rebuild reopens and `demolishingType` names what is coming down, `null` when that',
|
|
@@ -33,8 +37,18 @@ export const WAREHOUSE_PRESSURE_LABELS = {
|
|
|
33
37
|
nearFull: 'Near full',
|
|
34
38
|
peakFill: 'Peak fill',
|
|
35
39
|
stalled: 'Stalled',
|
|
40
|
+
evicted: 'Evicted',
|
|
36
41
|
note: 'Note',
|
|
37
42
|
};
|
|
43
|
+
export const LOT_RETURN_COST_NOTE = 'Getting the goods back is a lot return: it moves the remainder over the network to a cell of yours and ' +
|
|
44
|
+
'pays the Transit fee for that move, so it is not free.';
|
|
45
|
+
export const EVICTED_LOT_NOT_SELLING = 'It is out of the hub and sells to nobody; the remainder stays yours, stranded, until you return it to a ' +
|
|
46
|
+
'cell of your own.';
|
|
47
|
+
export const EVICTED_LISTING_BLOCK = 'No lot of any resource can be listed on this hub until that outstanding count reaches zero.';
|
|
48
|
+
export const EVICTED_COUNT_UNREADABLE = 'The hub could not be asked how many evicted lots of yours are still outstanding, so treat the listing ' +
|
|
49
|
+
'block as in force.';
|
|
50
|
+
export const EVICTED_COUNT_UNREACHABLE_NOTE = 'The outstanding evicted-lot count of at least one hub could not be read from the chain; the evicted lots ' +
|
|
51
|
+
'below are still listed and no hub is reported clear.';
|
|
38
52
|
export const WAREHOUSE_PRESSURE_SCOPE_SELF = 'self';
|
|
39
53
|
export const WAREHOUSE_PRESSURE_SCOPE_SCOUTING = 'scouting';
|
|
40
54
|
export const WAREHOUSE_PRESSURE_NO_OWNER_NOTE = 'Attention needs a wallet or an `owner` address — call authenticate or pass owner. Nothing to scope to.';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/tools/map/attention/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,2GAA2G;IAC3G,yGAAyG;IACzG,2GAA2G;IAC3G,wGAAwG;IACxG,4GAA4G;IAC5G,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/tools/map/attention/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,2GAA2G;IAC3G,yGAAyG;IACzG,2GAA2G;IAC3G,wGAAwG;IACxG,4GAA4G;IAC5G,0GAA0G;IAC1G,2GAA2G;IAC3G,mGAAmG;IACnG,+CAA+C;IAC/C,6GAA6G;IAC7G,wGAAwG;IACxG,6GAA6G;IAC7G,2CAA2C;IAC3C,4GAA4G;IAC5G,sGAAsG;IACtG,0GAA0G;IAC1G,4FAA4F;IAC5F,mEAAmE;IACnE,2GAA2G;IAC3G,8GAA8G;IAC9G,6GAA6G;IAC7G,oGAAoG;IACpG,sGAAsG;IACtG,oDAAoD;CACvD,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAE7D,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;IACrB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAC7B,yGAAyG;IACzG,wDAAwD,CAAC;AAE7D,MAAM,CAAC,MAAM,uBAAuB,GAChC,0GAA0G;IAC1G,mBAAmB,CAAC;AAExB,MAAM,CAAC,MAAM,qBAAqB,GAC9B,6FAA6F,CAAC;AAElG,MAAM,CAAC,MAAM,wBAAwB,GACjC,wGAAwG;IACxG,oBAAoB,CAAC;AAEzB,MAAM,CAAC,MAAM,8BAA8B,GACvC,2GAA2G;IAC3G,sDAAsD,CAAC;AAE3D,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC;AACpD,MAAM,CAAC,MAAM,iCAAiC,GAAG,UAAU,CAAC;AAE5D,MAAM,CAAC,MAAM,gCAAgC,GACzC,wGAAwG,CAAC;AAE7G,MAAM,CAAC,MAAM,eAAe,GAAmC;IAC3D,eAAe,CAAC,aAAa;IAC7B,eAAe,CAAC,YAAY;CAC/B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { EvictedHubCount, EvictedLotCountServiceOptions, IEvictedLotCounts } from './types.js';
|
|
2
|
+
import type { AppContext } from '../../../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* The per-hub count of the seller's outstanding evicted lots, read from the Trade contract. The count is
|
|
5
|
+
* the only authority on whether a hub still blocks new listings: the projection can lag it in either
|
|
6
|
+
* direction, so an unreadable count answers null and never zero — a guessed zero would report a hub clear
|
|
7
|
+
* that is still blocked.
|
|
8
|
+
*/
|
|
9
|
+
export declare class EvictedLotCountService implements IEvictedLotCounts {
|
|
10
|
+
private readonly appConfig;
|
|
11
|
+
private readonly wallet;
|
|
12
|
+
private readonly tradeClient;
|
|
13
|
+
private readonly logger;
|
|
14
|
+
constructor(options: EvictedLotCountServiceOptions);
|
|
15
|
+
forHubs(hubTokenIds: ReadonlyArray<string>): Promise<Array<EvictedHubCount>>;
|
|
16
|
+
private unknown;
|
|
17
|
+
}
|
|
18
|
+
export declare function createEvictedLotCountService(context: AppContext): IEvictedLotCounts;
|
|
19
|
+
//# sourceMappingURL=evicted.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evicted.service.d.ts","sourceRoot":"","sources":["../../../../src/tools/map/attention/evicted.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAMpG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAKpD;;;;;GAKG;AACH,qBAAa,sBAAuB,YAAW,iBAAiB;IAC5D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAa;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;IACxC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAe;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAU;gBAErB,OAAO,EAAE,6BAA6B;IAO5C,OAAO,CAAC,WAAW,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAsClF,OAAO,CAAC,OAAO;CAGlB;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,UAAU,GAAG,iBAAiB,CASnF"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { preparePaidAction } from '../../../services/paid-action.js';
|
|
2
|
+
import { AppContract } from '../../../services/paid-action.types.js';
|
|
3
|
+
import { TradeClient } from '../../../services/trade.client.js';
|
|
4
|
+
import { errorMessage } from '../../../utils/error.utils.js';
|
|
5
|
+
import { ContractClient } from '../../../wallet/contract-client.js';
|
|
6
|
+
/**
|
|
7
|
+
* The per-hub count of the seller's outstanding evicted lots, read from the Trade contract. The count is
|
|
8
|
+
* the only authority on whether a hub still blocks new listings: the projection can lag it in either
|
|
9
|
+
* direction, so an unreadable count answers null and never zero — a guessed zero would report a hub clear
|
|
10
|
+
* that is still blocked.
|
|
11
|
+
*/
|
|
12
|
+
export class EvictedLotCountService {
|
|
13
|
+
appConfig;
|
|
14
|
+
wallet;
|
|
15
|
+
tradeClient;
|
|
16
|
+
logger;
|
|
17
|
+
constructor(options) {
|
|
18
|
+
this.appConfig = options.appConfig;
|
|
19
|
+
this.wallet = options.wallet;
|
|
20
|
+
this.tradeClient = options.tradeClient;
|
|
21
|
+
this.logger = options.logger;
|
|
22
|
+
}
|
|
23
|
+
async forHubs(hubTokenIds) {
|
|
24
|
+
if (hubTokenIds.length === 0) {
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
if (!this.wallet.isReady()) {
|
|
28
|
+
return this.unknown(hubTokenIds);
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
const action = await preparePaidAction({ appConfig: this.appConfig, wallet: this.wallet });
|
|
32
|
+
const trade = action.requireContract(AppContract.Trade, 'cannot read the outstanding evicted lot count');
|
|
33
|
+
const seller = action.wallet.getAddress();
|
|
34
|
+
return await Promise.all(hubTokenIds.map(async (hubTokenId) => {
|
|
35
|
+
try {
|
|
36
|
+
const count = await this.tradeClient.getSellerEvictedCount({
|
|
37
|
+
trade,
|
|
38
|
+
seller,
|
|
39
|
+
hub: BigInt(hubTokenId),
|
|
40
|
+
});
|
|
41
|
+
return { hubTokenId, count: Number(count) };
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
this.logger.warn('could not read the outstanding evicted lot count of a hub', {
|
|
45
|
+
hubTokenId,
|
|
46
|
+
error: errorMessage(error),
|
|
47
|
+
});
|
|
48
|
+
return { hubTokenId, count: null };
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
this.logger.warn('could not reach the Trade contract for the evicted lot counts', {
|
|
54
|
+
error: errorMessage(error),
|
|
55
|
+
});
|
|
56
|
+
return this.unknown(hubTokenIds);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
unknown(hubTokenIds) {
|
|
60
|
+
return hubTokenIds.map((hubTokenId) => ({ hubTokenId, count: null }));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export function createEvictedLotCountService(context) {
|
|
64
|
+
const logger = context.logger.child('attention:evicted');
|
|
65
|
+
const contracts = new ContractClient({ wallet: context.wallet, logger, retry: null });
|
|
66
|
+
return new EvictedLotCountService({
|
|
67
|
+
appConfig: context.appConfig,
|
|
68
|
+
wallet: context.wallet,
|
|
69
|
+
tradeClient: new TradeClient({ contracts, logger }),
|
|
70
|
+
logger,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=evicted.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evicted.service.js","sourceRoot":"","sources":["../../../../src/tools/map/attention/evicted.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGhE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAGpE;;;;;GAKG;AACH,MAAM,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
import type { EvictedHubCount } from './types.js';
|
|
2
|
+
import { type LotView } from '../../../api/types.js';
|
|
3
|
+
import { type AttentionItem } from '../../../map/types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Hubs worth asking the chain about. Every hub the seller still has a live lot on qualifies, not only the
|
|
6
|
+
* ones with a visible evicted row: a hub whose evicted rows have not been projected yet is exactly the
|
|
7
|
+
* case the count has to catch.
|
|
8
|
+
*/
|
|
9
|
+
export declare function liveHubTokenIds(lots: ReadonlyArray<LotView>): Array<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Reconciles the seller's evicted rows against the authoritative per-hub count. A zero count is the one
|
|
12
|
+
* thing that may drop a row; a count above what is listed keeps the hub blocked with an item of its own,
|
|
13
|
+
* so a lagging list never reads as a clear hub.
|
|
14
|
+
*/
|
|
15
|
+
export declare function evictedAttentionItems(lots: ReadonlyArray<LotView>, counts: ReadonlyArray<EvictedHubCount>): Array<AttentionItem>;
|
|
16
|
+
//# sourceMappingURL=evicted.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evicted.utils.d.ts","sourceRoot":"","sources":["../../../../src/tools/map/attention/evicted.utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAY,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,uBAAuB,CAAC;AAe5E;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAE3E;AAsBD;;;;GAIG;AACH,wBAAgB,qBAAqB,CACjC,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,EAC5B,MAAM,EAAE,aAAa,CAAC,eAAe,CAAC,GACvC,KAAK,CAAC,aAAa,CAAC,CA4BtB"}
|