@mysten-incubation/devstack 0.0.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/LICENSE +189 -0
- package/README.md +94 -0
- package/dist/_virtual/_rolldown/runtime.mjs +13 -0
- package/dist/api/define-capabilities.d.mts +25 -0
- package/dist/api/define-capabilities.mjs +19 -0
- package/dist/api/define-capabilities.mjs.map +1 -0
- package/dist/api/define-devstack-with.d.mts +41 -0
- package/dist/api/define-devstack-with.mjs +24 -0
- package/dist/api/define-devstack-with.mjs.map +1 -0
- package/dist/api/define-devstack.d.mts +62 -0
- package/dist/api/define-devstack.mjs +108 -0
- package/dist/api/define-devstack.mjs.map +1 -0
- package/dist/api/define-plugin.d.mts +1 -0
- package/dist/api/inference-network.mjs +122 -0
- package/dist/api/inference-network.mjs.map +1 -0
- package/dist/api/mode-narrowed-factory.d.mts +26 -0
- package/dist/api/mode-narrowed-factory.mjs +8 -0
- package/dist/api/mode-narrowed-factory.mjs.map +1 -0
- package/dist/api/plugin-errors.mjs +10 -0
- package/dist/api/plugin-errors.mjs.map +1 -0
- package/dist/api/run-stack.d.mts +82 -0
- package/dist/api/run-stack.mjs +127 -0
- package/dist/api/run-stack.mjs.map +1 -0
- package/dist/build-integrations/playwright/config.d.mts +92 -0
- package/dist/build-integrations/playwright/config.mjs +71 -0
- package/dist/build-integrations/playwright/config.mjs.map +1 -0
- package/dist/build-integrations/playwright/errors.d.mts +82 -0
- package/dist/build-integrations/playwright/errors.mjs +43 -0
- package/dist/build-integrations/playwright/errors.mjs.map +1 -0
- package/dist/build-integrations/playwright/global-setup.d.mts +64 -0
- package/dist/build-integrations/playwright/global-setup.mjs +44 -0
- package/dist/build-integrations/playwright/global-setup.mjs.map +1 -0
- package/dist/build-integrations/playwright/index.d.mts +6 -0
- package/dist/build-integrations/playwright/index.mjs +6 -0
- package/dist/build-integrations/playwright/stack-context.d.mts +95 -0
- package/dist/build-integrations/playwright/stack-context.mjs +277 -0
- package/dist/build-integrations/playwright/stack-context.mjs.map +1 -0
- package/dist/build-integrations/playwright/wallet-context.d.mts +87 -0
- package/dist/build-integrations/playwright/wallet-context.mjs +148 -0
- package/dist/build-integrations/playwright/wallet-context.mjs.map +1 -0
- package/dist/build-integrations/runtime/cold-start-url.d.mts +67 -0
- package/dist/build-integrations/runtime/cold-start-url.mjs +56 -0
- package/dist/build-integrations/runtime/cold-start-url.mjs.map +1 -0
- package/dist/build-integrations/runtime/dapp-kit-slot.mjs +10 -0
- package/dist/build-integrations/runtime/dapp-kit-slot.mjs.map +1 -0
- package/dist/build-integrations/runtime/discover.d.mts +78 -0
- package/dist/build-integrations/runtime/discover.mjs +124 -0
- package/dist/build-integrations/runtime/discover.mjs.map +1 -0
- package/dist/build-integrations/runtime/endpoint-registry.d.mts +26 -0
- package/dist/build-integrations/runtime/endpoint-registry.mjs +41 -0
- package/dist/build-integrations/runtime/endpoint-registry.mjs.map +1 -0
- package/dist/build-integrations/runtime/errors.d.mts +64 -0
- package/dist/build-integrations/runtime/errors.mjs +51 -0
- package/dist/build-integrations/runtime/errors.mjs.map +1 -0
- package/dist/build-integrations/runtime/index.d.mts +7 -0
- package/dist/build-integrations/runtime/index.mjs +6 -0
- package/dist/build-integrations/runtime/read-stack-context.d.mts +38 -0
- package/dist/build-integrations/runtime/read-stack-context.mjs +130 -0
- package/dist/build-integrations/runtime/read-stack-context.mjs.map +1 -0
- package/dist/build-integrations/runtime/stack-context.d.mts +53 -0
- package/dist/build-integrations/vitest/config.d.mts +62 -0
- package/dist/build-integrations/vitest/config.mjs +80 -0
- package/dist/build-integrations/vitest/config.mjs.map +1 -0
- package/dist/build-integrations/vitest/env.d.mts +48 -0
- package/dist/build-integrations/vitest/env.mjs +50 -0
- package/dist/build-integrations/vitest/env.mjs.map +1 -0
- package/dist/build-integrations/vitest/errors.d.mts +44 -0
- package/dist/build-integrations/vitest/errors.mjs +18 -0
- package/dist/build-integrations/vitest/errors.mjs.map +1 -0
- package/dist/build-integrations/vitest/index.d.mts +6 -0
- package/dist/build-integrations/vitest/index.mjs +6 -0
- package/dist/build-integrations/vitest/setup.d.mts +53 -0
- package/dist/build-integrations/vitest/setup.mjs +56 -0
- package/dist/build-integrations/vitest/setup.mjs.map +1 -0
- package/dist/build-integrations/vitest/stack-context.d.mts +58 -0
- package/dist/build-integrations/vitest/stack-context.mjs +67 -0
- package/dist/build-integrations/vitest/stack-context.mjs.map +1 -0
- package/dist/cli/main.d.mts +5 -0
- package/dist/cli/main.mjs +586 -0
- package/dist/cli/main.mjs.map +1 -0
- package/dist/cli/prune-direct.mjs +216 -0
- package/dist/cli/prune-direct.mjs.map +1 -0
- package/dist/cli/snapshot-reader.mjs +73 -0
- package/dist/cli/snapshot-reader.mjs.map +1 -0
- package/dist/cli/up-lifecycle.mjs +28 -0
- package/dist/cli/up-lifecycle.mjs.map +1 -0
- package/dist/contracts/capability-decl.d.mts +42 -0
- package/dist/contracts/chain-probe.d.mts +26 -0
- package/dist/contracts/chain-probe.mjs +8 -0
- package/dist/contracts/chain-probe.mjs.map +1 -0
- package/dist/contracts/codegenable.d.mts +43 -0
- package/dist/contracts/container-runtime.d.mts +245 -0
- package/dist/contracts/liveness-classifier.d.mts +19 -0
- package/dist/contracts/network-resolver.d.mts +15 -0
- package/dist/contracts/network-resolver.mjs +7 -0
- package/dist/contracts/network-resolver.mjs.map +1 -0
- package/dist/contracts/projection.d.mts +15 -0
- package/dist/contracts/routable.d.mts +53 -0
- package/dist/contracts/snapshotable.d.mts +39 -0
- package/dist/contracts/strategy-contributor.d.mts +26 -0
- package/dist/index.d.mts +89 -0
- package/dist/index.mjs +37 -0
- package/dist/orchestrators/codegen/bindings.d.mts +2 -0
- package/dist/orchestrators/codegen/bindings.mjs +340 -0
- package/dist/orchestrators/codegen/bindings.mjs.map +1 -0
- package/dist/orchestrators/codegen/emit.mjs +56 -0
- package/dist/orchestrators/codegen/emit.mjs.map +1 -0
- package/dist/orchestrators/codegen/errors.d.mts +1 -0
- package/dist/orchestrators/codegen/errors.mjs +66 -0
- package/dist/orchestrators/codegen/errors.mjs.map +1 -0
- package/dist/orchestrators/codegen/extras.mjs +16 -0
- package/dist/orchestrators/codegen/extras.mjs.map +1 -0
- package/dist/orchestrators/codegen/format.mjs +109 -0
- package/dist/orchestrators/codegen/format.mjs.map +1 -0
- package/dist/orchestrators/codegen/gitignore.mjs +67 -0
- package/dist/orchestrators/codegen/gitignore.mjs.map +1 -0
- package/dist/orchestrators/codegen/paths.d.mts +1 -0
- package/dist/orchestrators/codegen/paths.mjs +33 -0
- package/dist/orchestrators/codegen/paths.mjs.map +1 -0
- package/dist/orchestrators/codegen/permissions.mjs +6 -0
- package/dist/orchestrators/codegen/permissions.mjs.map +1 -0
- package/dist/orchestrators/codegen/service.d.mts +1 -0
- package/dist/orchestrators/codegen/service.mjs +276 -0
- package/dist/orchestrators/codegen/service.mjs.map +1 -0
- package/dist/orchestrators/router/cleanup.mjs +58 -0
- package/dist/orchestrators/router/cleanup.mjs.map +1 -0
- package/dist/orchestrators/router/cors.mjs +31 -0
- package/dist/orchestrators/router/cors.mjs.map +1 -0
- package/dist/orchestrators/router/entrypoints.d.mts +1 -0
- package/dist/orchestrators/router/entrypoints.mjs +80 -0
- package/dist/orchestrators/router/entrypoints.mjs.map +1 -0
- package/dist/orchestrators/router/errors.d.mts +1 -0
- package/dist/orchestrators/router/errors.mjs +103 -0
- package/dist/orchestrators/router/errors.mjs.map +1 -0
- package/dist/orchestrators/router/file-provider.d.mts +1 -0
- package/dist/orchestrators/router/file-provider.mjs +320 -0
- package/dist/orchestrators/router/file-provider.mjs.map +1 -0
- package/dist/orchestrators/router/hostname.d.mts +1 -0
- package/dist/orchestrators/router/hostname.mjs +107 -0
- package/dist/orchestrators/router/hostname.mjs.map +1 -0
- package/dist/orchestrators/router/index.d.mts +1 -0
- package/dist/orchestrators/router/profile.d.mts +1 -0
- package/dist/orchestrators/router/profile.mjs +109 -0
- package/dist/orchestrators/router/profile.mjs.map +1 -0
- package/dist/orchestrators/router/service.d.mts +3 -0
- package/dist/orchestrators/router/service.mjs +421 -0
- package/dist/orchestrators/router/service.mjs.map +1 -0
- package/dist/orchestrators/router/traefik-container.d.mts +1 -0
- package/dist/orchestrators/router/traefik-container.mjs +229 -0
- package/dist/orchestrators/router/traefik-container.mjs.map +1 -0
- package/dist/orchestrators/runtime-composition.d.mts +10 -0
- package/dist/orchestrators/runtime-composition.mjs +168 -0
- package/dist/orchestrators/runtime-composition.mjs.map +1 -0
- package/dist/orchestrators/snapshot/capture.d.mts +1 -0
- package/dist/orchestrators/snapshot/capture.mjs +350 -0
- package/dist/orchestrators/snapshot/capture.mjs.map +1 -0
- package/dist/orchestrators/snapshot/descriptor.d.mts +1 -0
- package/dist/orchestrators/snapshot/descriptor.mjs +109 -0
- package/dist/orchestrators/snapshot/descriptor.mjs.map +1 -0
- package/dist/orchestrators/snapshot/identity-guard.d.mts +1 -0
- package/dist/orchestrators/snapshot/identity-guard.mjs +132 -0
- package/dist/orchestrators/snapshot/identity-guard.mjs.map +1 -0
- package/dist/orchestrators/snapshot/image-bundle-tags.mjs +207 -0
- package/dist/orchestrators/snapshot/image-bundle-tags.mjs.map +1 -0
- package/dist/orchestrators/snapshot/index.d.mts +1 -0
- package/dist/orchestrators/snapshot/integrity.d.mts +1 -0
- package/dist/orchestrators/snapshot/integrity.mjs +74 -0
- package/dist/orchestrators/snapshot/integrity.mjs.map +1 -0
- package/dist/orchestrators/snapshot/prune.d.mts +1 -0
- package/dist/orchestrators/snapshot/prune.mjs +110 -0
- package/dist/orchestrators/snapshot/prune.mjs.map +1 -0
- package/dist/orchestrators/snapshot/restore.d.mts +1 -0
- package/dist/orchestrators/snapshot/restore.mjs +404 -0
- package/dist/orchestrators/snapshot/restore.mjs.map +1 -0
- package/dist/orchestrators/snapshot/service.d.mts +1 -0
- package/dist/orchestrators/snapshot/service.mjs +296 -0
- package/dist/orchestrators/snapshot/service.mjs.map +1 -0
- package/dist/orchestrators/snapshot/state-document.mjs +18 -0
- package/dist/orchestrators/snapshot/state-document.mjs.map +1 -0
- package/dist/orchestrators/snapshot/wipe.d.mts +1 -0
- package/dist/orchestrators/snapshot/wipe.mjs +59 -0
- package/dist/orchestrators/snapshot/wipe.mjs.map +1 -0
- package/dist/plugins/account/codegen.d.mts +12 -0
- package/dist/plugins/account/codegen.mjs +22 -0
- package/dist/plugins/account/codegen.mjs.map +1 -0
- package/dist/plugins/account/errors.d.mts +44 -0
- package/dist/plugins/account/errors.mjs +16 -0
- package/dist/plugins/account/errors.mjs.map +1 -0
- package/dist/plugins/account/funding.d.mts +94 -0
- package/dist/plugins/account/funding.mjs +199 -0
- package/dist/plugins/account/funding.mjs.map +1 -0
- package/dist/plugins/account/index.d.mts +54 -0
- package/dist/plugins/account/index.mjs +151 -0
- package/dist/plugins/account/index.mjs.map +1 -0
- package/dist/plugins/account/keypair.d.mts +32 -0
- package/dist/plugins/account/keypair.mjs +99 -0
- package/dist/plugins/account/keypair.mjs.map +1 -0
- package/dist/plugins/account/lease.mjs +21 -0
- package/dist/plugins/account/lease.mjs.map +1 -0
- package/dist/plugins/account/registry.d.mts +33 -0
- package/dist/plugins/account/registry.mjs +36 -0
- package/dist/plugins/account/registry.mjs.map +1 -0
- package/dist/plugins/account/service.d.mts +104 -0
- package/dist/plugins/account/service.mjs +405 -0
- package/dist/plugins/account/service.mjs.map +1 -0
- package/dist/plugins/account/snapshot.mjs +33 -0
- package/dist/plugins/account/snapshot.mjs.map +1 -0
- package/dist/plugins/account/variants/env.mjs +24 -0
- package/dist/plugins/account/variants/env.mjs.map +1 -0
- package/dist/plugins/account/variants/ephemeral.mjs +72 -0
- package/dist/plugins/account/variants/ephemeral.mjs.map +1 -0
- package/dist/plugins/account/variants/impersonate.d.mts +16 -0
- package/dist/plugins/account/variants/impersonate.mjs +48 -0
- package/dist/plugins/account/variants/impersonate.mjs.map +1 -0
- package/dist/plugins/account/variants/inline.mjs +13 -0
- package/dist/plugins/account/variants/inline.mjs.map +1 -0
- package/dist/plugins/account/variants/keystore.mjs +93 -0
- package/dist/plugins/account/variants/keystore.mjs.map +1 -0
- package/dist/plugins/account/variants/signer.mjs +31 -0
- package/dist/plugins/account/variants/signer.mjs.map +1 -0
- package/dist/plugins/action/build-context.d.mts +41 -0
- package/dist/plugins/action/discriminator.d.mts +20 -0
- package/dist/plugins/action/discriminator.mjs +13 -0
- package/dist/plugins/action/discriminator.mjs.map +1 -0
- package/dist/plugins/action/errors.d.mts +31 -0
- package/dist/plugins/action/errors.mjs +13 -0
- package/dist/plugins/action/errors.mjs.map +1 -0
- package/dist/plugins/action/execute.d.mts +2 -0
- package/dist/plugins/action/execute.mjs +145 -0
- package/dist/plugins/action/execute.mjs.map +1 -0
- package/dist/plugins/action/index.d.mts +56 -0
- package/dist/plugins/action/index.mjs +82 -0
- package/dist/plugins/action/index.mjs.map +1 -0
- package/dist/plugins/action/service.d.mts +26 -0
- package/dist/plugins/action/service.mjs +84 -0
- package/dist/plugins/action/service.mjs.map +1 -0
- package/dist/plugins/coin/address-resolution.d.mts +34 -0
- package/dist/plugins/coin/address-resolution.mjs +80 -0
- package/dist/plugins/coin/address-resolution.mjs.map +1 -0
- package/dist/plugins/coin/codegen.d.mts +16 -0
- package/dist/plugins/coin/codegen.mjs +21 -0
- package/dist/plugins/coin/codegen.mjs.map +1 -0
- package/dist/plugins/coin/discovery.d.mts +26 -0
- package/dist/plugins/coin/discovery.mjs +112 -0
- package/dist/plugins/coin/discovery.mjs.map +1 -0
- package/dist/plugins/coin/errors.d.mts +48 -0
- package/dist/plugins/coin/errors.mjs +13 -0
- package/dist/plugins/coin/errors.mjs.map +1 -0
- package/dist/plugins/coin/index.d.mts +95 -0
- package/dist/plugins/coin/index.mjs +172 -0
- package/dist/plugins/coin/index.mjs.map +1 -0
- package/dist/plugins/coin/metadata.d.mts +15 -0
- package/dist/plugins/coin/metadata.mjs +99 -0
- package/dist/plugins/coin/metadata.mjs.map +1 -0
- package/dist/plugins/coin/mint.d.mts +34 -0
- package/dist/plugins/coin/mint.mjs +164 -0
- package/dist/plugins/coin/mint.mjs.map +1 -0
- package/dist/plugins/coin/registry.d.mts +1 -0
- package/dist/plugins/coin/registry.mjs +37 -0
- package/dist/plugins/coin/registry.mjs.map +1 -0
- package/dist/plugins/coin/service.d.mts +47 -0
- package/dist/plugins/coin/service.mjs +51 -0
- package/dist/plugins/coin/service.mjs.map +1 -0
- package/dist/plugins/coin/snapshot.mjs +19 -0
- package/dist/plugins/coin/snapshot.mjs.map +1 -0
- package/dist/plugins/coin/type-strings.mjs +49 -0
- package/dist/plugins/coin/type-strings.mjs.map +1 -0
- package/dist/plugins/deepbook/codegen.d.mts +39 -0
- package/dist/plugins/deepbook/codegen.mjs +15 -0
- package/dist/plugins/deepbook/codegen.mjs.map +1 -0
- package/dist/plugins/deepbook/deploy.mjs +437 -0
- package/dist/plugins/deepbook/deploy.mjs.map +1 -0
- package/dist/plugins/deepbook/errors.d.mts +29 -0
- package/dist/plugins/deepbook/errors.mjs +26 -0
- package/dist/plugins/deepbook/errors.mjs.map +1 -0
- package/dist/plugins/deepbook/faucet-strategy.d.mts +8 -0
- package/dist/plugins/deepbook/faucet-strategy.mjs +81 -0
- package/dist/plugins/deepbook/faucet-strategy.mjs.map +1 -0
- package/dist/plugins/deepbook/index.d.mts +171 -0
- package/dist/plugins/deepbook/index.mjs +359 -0
- package/dist/plugins/deepbook/index.mjs.map +1 -0
- package/dist/plugins/deepbook/plugin-key.mjs +7 -0
- package/dist/plugins/deepbook/plugin-key.mjs.map +1 -0
- package/dist/plugins/deepbook/pyth/index.mjs +226 -0
- package/dist/plugins/deepbook/pyth/index.mjs.map +1 -0
- package/dist/plugins/deepbook/routable.mjs +21 -0
- package/dist/plugins/deepbook/routable.mjs.map +1 -0
- package/dist/plugins/deepbook/snapshot.mjs +49 -0
- package/dist/plugins/deepbook/snapshot.mjs.map +1 -0
- package/dist/plugins/deepbook/types.d.mts +125 -0
- package/dist/plugins/deepbook/types.mjs +12 -0
- package/dist/plugins/deepbook/types.mjs.map +1 -0
- package/dist/plugins/faucet/dispatcher.d.mts +9 -0
- package/dist/plugins/faucet/dispatcher.mjs +13 -0
- package/dist/plugins/faucet/dispatcher.mjs.map +1 -0
- package/dist/plugins/faucet/errors.d.mts +86 -0
- package/dist/plugins/faucet/errors.mjs +19 -0
- package/dist/plugins/faucet/errors.mjs.map +1 -0
- package/dist/plugins/faucet/http.mjs +127 -0
- package/dist/plugins/faucet/http.mjs.map +1 -0
- package/dist/plugins/faucet/index.d.mts +43 -0
- package/dist/plugins/faucet/index.mjs +42 -0
- package/dist/plugins/faucet/index.mjs.map +1 -0
- package/dist/plugins/faucet/service.d.mts +20 -0
- package/dist/plugins/faucet/strategies/sui-local.d.mts +23 -0
- package/dist/plugins/faucet/strategies/sui-local.mjs +29 -0
- package/dist/plugins/faucet/strategies/sui-local.mjs.map +1 -0
- package/dist/plugins/host-service/errors.d.mts +27 -0
- package/dist/plugins/host-service/errors.mjs +14 -0
- package/dist/plugins/host-service/errors.mjs.map +1 -0
- package/dist/plugins/host-service/index.d.mts +10 -0
- package/dist/plugins/host-service/index.mjs +48 -0
- package/dist/plugins/host-service/index.mjs.map +1 -0
- package/dist/plugins/host-service/routable.mjs +24 -0
- package/dist/plugins/host-service/routable.mjs.map +1 -0
- package/dist/plugins/host-service/service.d.mts +49 -0
- package/dist/plugins/host-service/service.mjs +375 -0
- package/dist/plugins/host-service/service.mjs.map +1 -0
- package/dist/plugins/package/build.d.mts +1 -0
- package/dist/plugins/package/build.mjs +24 -0
- package/dist/plugins/package/build.mjs.map +1 -0
- package/dist/plugins/package/codegen.d.mts +19 -0
- package/dist/plugins/package/codegen.mjs +41 -0
- package/dist/plugins/package/codegen.mjs.map +1 -0
- package/dist/plugins/package/dep-resolution.mjs +10 -0
- package/dist/plugins/package/dep-resolution.mjs.map +1 -0
- package/dist/plugins/package/errors.d.mts +34 -0
- package/dist/plugins/package/errors.mjs +13 -0
- package/dist/plugins/package/errors.mjs.map +1 -0
- package/dist/plugins/package/index.d.mts +109 -0
- package/dist/plugins/package/index.mjs +207 -0
- package/dist/plugins/package/index.mjs.map +1 -0
- package/dist/plugins/package/mode-known.mjs +41 -0
- package/dist/plugins/package/mode-known.mjs.map +1 -0
- package/dist/plugins/package/mode-local.d.mts +1 -0
- package/dist/plugins/package/mode-local.mjs +183 -0
- package/dist/plugins/package/mode-local.mjs.map +1 -0
- package/dist/plugins/package/publish-executor.mjs +202 -0
- package/dist/plugins/package/publish-executor.mjs.map +1 -0
- package/dist/plugins/package/publish-output.d.mts +28 -0
- package/dist/plugins/package/publish-output.mjs +45 -0
- package/dist/plugins/package/publish-output.mjs.map +1 -0
- package/dist/plugins/package/registry.d.mts +25 -0
- package/dist/plugins/package/registry.mjs +30 -0
- package/dist/plugins/package/registry.mjs.map +1 -0
- package/dist/plugins/package/service.mjs +20 -0
- package/dist/plugins/package/service.mjs.map +1 -0
- package/dist/plugins/package/snapshot.mjs +25 -0
- package/dist/plugins/package/snapshot.mjs.map +1 -0
- package/dist/plugins/postgres/codegen.mjs +42 -0
- package/dist/plugins/postgres/codegen.mjs.map +1 -0
- package/dist/plugins/postgres/connection.d.mts +33 -0
- package/dist/plugins/postgres/connection.mjs +19 -0
- package/dist/plugins/postgres/connection.mjs.map +1 -0
- package/dist/plugins/postgres/db-ensure.mjs +100 -0
- package/dist/plugins/postgres/db-ensure.mjs.map +1 -0
- package/dist/plugins/postgres/errors.d.mts +55 -0
- package/dist/plugins/postgres/errors.mjs +29 -0
- package/dist/plugins/postgres/errors.mjs.map +1 -0
- package/dist/plugins/postgres/index.d.mts +37 -0
- package/dist/plugins/postgres/index.mjs +75 -0
- package/dist/plugins/postgres/index.mjs.map +1 -0
- package/dist/plugins/postgres/routable.mjs +33 -0
- package/dist/plugins/postgres/routable.mjs.map +1 -0
- package/dist/plugins/postgres/service.d.mts +50 -0
- package/dist/plugins/postgres/service.mjs +145 -0
- package/dist/plugins/postgres/service.mjs.map +1 -0
- package/dist/plugins/postgres/snapshot.d.mts +1 -0
- package/dist/plugins/postgres/snapshot.mjs +32 -0
- package/dist/plugins/postgres/snapshot.mjs.map +1 -0
- package/dist/plugins/router-entrypoints.mjs +21 -0
- package/dist/plugins/router-entrypoints.mjs.map +1 -0
- package/dist/plugins/seal/bootstrap-assets/cargo-image.mjs +59 -0
- package/dist/plugins/seal/bootstrap-assets/cargo-image.mjs.map +1 -0
- package/dist/plugins/seal/bootstrap-assets/source-fetch.mjs +132 -0
- package/dist/plugins/seal/bootstrap-assets/source-fetch.mjs.map +1 -0
- package/dist/plugins/seal/codegen.d.mts +19 -0
- package/dist/plugins/seal/codegen.mjs +16 -0
- package/dist/plugins/seal/codegen.mjs.map +1 -0
- package/dist/plugins/seal/config-render.mjs +82 -0
- package/dist/plugins/seal/config-render.mjs.map +1 -0
- package/dist/plugins/seal/deploy.mjs +198 -0
- package/dist/plugins/seal/deploy.mjs.map +1 -0
- package/dist/plugins/seal/errors.d.mts +52 -0
- package/dist/plugins/seal/errors.mjs +19 -0
- package/dist/plugins/seal/errors.mjs.map +1 -0
- package/dist/plugins/seal/index.d.mts +161 -0
- package/dist/plugins/seal/index.mjs +235 -0
- package/dist/plugins/seal/index.mjs.map +1 -0
- package/dist/plugins/seal/key-manager.d.mts +22 -0
- package/dist/plugins/seal/key-manager.mjs +22 -0
- package/dist/plugins/seal/key-manager.mjs.map +1 -0
- package/dist/plugins/seal/key-server.mjs +175 -0
- package/dist/plugins/seal/key-server.mjs.map +1 -0
- package/dist/plugins/seal/keygen.mjs +96 -0
- package/dist/plugins/seal/keygen.mjs.map +1 -0
- package/dist/plugins/seal/mode/fork-known.d.mts +8 -0
- package/dist/plugins/seal/mode/fork-known.mjs +23 -0
- package/dist/plugins/seal/mode/fork-known.mjs.map +1 -0
- package/dist/plugins/seal/mode/live.d.mts +18 -0
- package/dist/plugins/seal/mode/live.mjs +64 -0
- package/dist/plugins/seal/mode/live.mjs.map +1 -0
- package/dist/plugins/seal/mode/local-keygen.mjs +180 -0
- package/dist/plugins/seal/mode/local-keygen.mjs.map +1 -0
- package/dist/plugins/seal/plugin-key.mjs +7 -0
- package/dist/plugins/seal/plugin-key.mjs.map +1 -0
- package/dist/plugins/seal/registry-publish.d.mts +43 -0
- package/dist/plugins/seal/registry-publish.mjs +9 -0
- package/dist/plugins/seal/registry-publish.mjs.map +1 -0
- package/dist/plugins/seal/routable.mjs +57 -0
- package/dist/plugins/seal/routable.mjs.map +1 -0
- package/dist/plugins/seal/service.mjs +17 -0
- package/dist/plugins/seal/service.mjs.map +1 -0
- package/dist/plugins/seal/snapshot.mjs +51 -0
- package/dist/plugins/seal/snapshot.mjs.map +1 -0
- package/dist/plugins/sui/auto-tick.mjs +45 -0
- package/dist/plugins/sui/auto-tick.mjs.map +1 -0
- package/dist/plugins/sui/chain-build-container.d.mts +1 -0
- package/dist/plugins/sui/chain-probe.d.mts +85 -0
- package/dist/plugins/sui/chain-probe.mjs +104 -0
- package/dist/plugins/sui/chain-probe.mjs.map +1 -0
- package/dist/plugins/sui/codegen.d.mts +14 -0
- package/dist/plugins/sui/codegen.mjs +26 -0
- package/dist/plugins/sui/codegen.mjs.map +1 -0
- package/dist/plugins/sui/errors.d.mts +74 -0
- package/dist/plugins/sui/errors.mjs +28 -0
- package/dist/plugins/sui/errors.mjs.map +1 -0
- package/dist/plugins/sui/fork-orchestration.mjs +24 -0
- package/dist/plugins/sui/fork-orchestration.mjs.map +1 -0
- package/dist/plugins/sui/fork-transaction.mjs +96 -0
- package/dist/plugins/sui/fork-transaction.mjs.map +1 -0
- package/dist/plugins/sui/index.d.mts +318 -0
- package/dist/plugins/sui/index.mjs +182 -0
- package/dist/plugins/sui/index.mjs.map +1 -0
- package/dist/plugins/sui/mode/external.mjs +60 -0
- package/dist/plugins/sui/mode/external.mjs.map +1 -0
- package/dist/plugins/sui/mode/fork.mjs +283 -0
- package/dist/plugins/sui/mode/fork.mjs.map +1 -0
- package/dist/plugins/sui/mode/live.mjs +103 -0
- package/dist/plugins/sui/mode/live.mjs.map +1 -0
- package/dist/plugins/sui/mode/local.mjs +293 -0
- package/dist/plugins/sui/mode/local.mjs.map +1 -0
- package/dist/plugins/sui/mode/shared-boot.mjs +254 -0
- package/dist/plugins/sui/mode/shared-boot.mjs.map +1 -0
- package/dist/plugins/sui/mode/shared.d.mts +103 -0
- package/dist/plugins/sui/mode/shared.mjs +12 -0
- package/dist/plugins/sui/mode/shared.mjs.map +1 -0
- package/dist/plugins/sui/mode/spec.d.mts +94 -0
- package/dist/plugins/sui/network-resolver.d.mts +23 -0
- package/dist/plugins/sui/routable.mjs +88 -0
- package/dist/plugins/sui/routable.mjs.map +1 -0
- package/dist/plugins/sui/seed-objects.d.mts +18 -0
- package/dist/plugins/sui/seed-objects.mjs +25 -0
- package/dist/plugins/sui/seed-objects.mjs.map +1 -0
- package/dist/plugins/sui/service.mjs +38 -0
- package/dist/plugins/sui/service.mjs.map +1 -0
- package/dist/plugins/sui/snapshot.mjs +53 -0
- package/dist/plugins/sui/snapshot.mjs.map +1 -0
- package/dist/plugins/wallet/codegen.d.mts +33 -0
- package/dist/plugins/wallet/codegen.mjs +34 -0
- package/dist/plugins/wallet/codegen.mjs.map +1 -0
- package/dist/plugins/wallet/errors.d.mts +66 -0
- package/dist/plugins/wallet/errors.mjs +16 -0
- package/dist/plugins/wallet/errors.mjs.map +1 -0
- package/dist/plugins/wallet/index.d.mts +63 -0
- package/dist/plugins/wallet/index.mjs +126 -0
- package/dist/plugins/wallet/index.mjs.map +1 -0
- package/dist/plugins/wallet/origin-policy.d.mts +1 -0
- package/dist/plugins/wallet/origin-policy.mjs +65 -0
- package/dist/plugins/wallet/origin-policy.mjs.map +1 -0
- package/dist/plugins/wallet/pairing.d.mts +11 -0
- package/dist/plugins/wallet/pairing.mjs +125 -0
- package/dist/plugins/wallet/pairing.mjs.map +1 -0
- package/dist/plugins/wallet/protocol.d.mts +1 -0
- package/dist/plugins/wallet/protocol.mjs +96 -0
- package/dist/plugins/wallet/protocol.mjs.map +1 -0
- package/dist/plugins/wallet/routable.mjs +32 -0
- package/dist/plugins/wallet/routable.mjs.map +1 -0
- package/dist/plugins/wallet/server.d.mts +12 -0
- package/dist/plugins/wallet/server.mjs +317 -0
- package/dist/plugins/wallet/server.mjs.map +1 -0
- package/dist/plugins/wallet/service.d.mts +68 -0
- package/dist/plugins/wallet/service.mjs +97 -0
- package/dist/plugins/wallet/service.mjs.map +1 -0
- package/dist/plugins/wallet/snapshot.d.mts +1 -0
- package/dist/plugins/wallet/snapshot.mjs +14 -0
- package/dist/plugins/wallet/snapshot.mjs.map +1 -0
- package/dist/plugins/walrus/bootstrap-assets/cargo-image.mjs +42 -0
- package/dist/plugins/walrus/bootstrap-assets/cargo-image.mjs.map +1 -0
- package/dist/plugins/walrus/codegen.d.mts +38 -0
- package/dist/plugins/walrus/codegen.mjs +34 -0
- package/dist/plugins/walrus/codegen.mjs.map +1 -0
- package/dist/plugins/walrus/deploy-paths.mjs +14 -0
- package/dist/plugins/walrus/deploy-paths.mjs.map +1 -0
- package/dist/plugins/walrus/deploy.d.mts +1 -0
- package/dist/plugins/walrus/deploy.mjs +224 -0
- package/dist/plugins/walrus/deploy.mjs.map +1 -0
- package/dist/plugins/walrus/errors.d.mts +38 -0
- package/dist/plugins/walrus/errors.mjs +26 -0
- package/dist/plugins/walrus/errors.mjs.map +1 -0
- package/dist/plugins/walrus/faucet-strategy.d.mts +12 -0
- package/dist/plugins/walrus/faucet-strategy.mjs +62 -0
- package/dist/plugins/walrus/faucet-strategy.mjs.map +1 -0
- package/dist/plugins/walrus/index.d.mts +177 -0
- package/dist/plugins/walrus/index.mjs +284 -0
- package/dist/plugins/walrus/index.mjs.map +1 -0
- package/dist/plugins/walrus/mode/known-deploy.d.mts +25 -0
- package/dist/plugins/walrus/mode/known-deploy.mjs +71 -0
- package/dist/plugins/walrus/mode/known-deploy.mjs.map +1 -0
- package/dist/plugins/walrus/mode/local-cluster.d.mts +34 -0
- package/dist/plugins/walrus/mode/local-cluster.mjs +153 -0
- package/dist/plugins/walrus/mode/local-cluster.mjs.map +1 -0
- package/dist/plugins/walrus/plugin-key.mjs +7 -0
- package/dist/plugins/walrus/plugin-key.mjs.map +1 -0
- package/dist/plugins/walrus/registry-publish.d.mts +24 -0
- package/dist/plugins/walrus/registry-publish.mjs +7 -0
- package/dist/plugins/walrus/registry-publish.mjs.map +1 -0
- package/dist/plugins/walrus/routable.mjs +99 -0
- package/dist/plugins/walrus/routable.mjs.map +1 -0
- package/dist/plugins/walrus/service.mjs +20 -0
- package/dist/plugins/walrus/service.mjs.map +1 -0
- package/dist/plugins/walrus/snapshot.mjs +53 -0
- package/dist/plugins/walrus/snapshot.mjs.map +1 -0
- package/dist/plugins/walrus/storage-nodes.d.mts +15 -0
- package/dist/plugins/walrus/storage-nodes.mjs +154 -0
- package/dist/plugins/walrus/storage-nodes.mjs.map +1 -0
- package/dist/plugins/walrus/wal-swap.d.mts +2 -0
- package/dist/plugins/walrus/wal-swap.mjs +58 -0
- package/dist/plugins/walrus/wal-swap.mjs.map +1 -0
- package/dist/primitives/artifact-publisher.d.mts +12 -0
- package/dist/primitives/cache.d.mts +1 -0
- package/dist/runtime/built-in-plugin-layers.mjs +49 -0
- package/dist/runtime/built-in-plugin-layers.mjs.map +1 -0
- package/dist/runtime/docker/client.d.mts +2 -0
- package/dist/runtime/docker/client.mjs +54 -0
- package/dist/runtime/docker/client.mjs.map +1 -0
- package/dist/runtime/docker/container.d.mts +1 -0
- package/dist/runtime/docker/container.mjs +562 -0
- package/dist/runtime/docker/container.mjs.map +1 -0
- package/dist/runtime/docker/errors.d.mts +1 -0
- package/dist/runtime/docker/errors.mjs +187 -0
- package/dist/runtime/docker/errors.mjs.map +1 -0
- package/dist/runtime/docker/exec.d.mts +1 -0
- package/dist/runtime/docker/exec.mjs +63 -0
- package/dist/runtime/docker/exec.mjs.map +1 -0
- package/dist/runtime/docker/image.d.mts +1 -0
- package/dist/runtime/docker/image.mjs +278 -0
- package/dist/runtime/docker/image.mjs.map +1 -0
- package/dist/runtime/docker/index.d.mts +1 -0
- package/dist/runtime/docker/inventory.d.mts +1 -0
- package/dist/runtime/docker/inventory.mjs +167 -0
- package/dist/runtime/docker/inventory.mjs.map +1 -0
- package/dist/runtime/docker/labels.d.mts +1 -0
- package/dist/runtime/docker/labels.mjs +97 -0
- package/dist/runtime/docker/labels.mjs.map +1 -0
- package/dist/runtime/docker/logs.d.mts +1 -0
- package/dist/runtime/docker/logs.mjs +34 -0
- package/dist/runtime/docker/logs.mjs.map +1 -0
- package/dist/runtime/docker/network.d.mts +1 -0
- package/dist/runtime/docker/network.mjs +168 -0
- package/dist/runtime/docker/network.mjs.map +1 -0
- package/dist/runtime/docker/service.d.mts +9 -0
- package/dist/runtime/docker/service.mjs +266 -0
- package/dist/runtime/docker/service.mjs.map +1 -0
- package/dist/runtime/docker/sweep.d.mts +1 -0
- package/dist/runtime/docker/sweep.mjs +220 -0
- package/dist/runtime/docker/sweep.mjs.map +1 -0
- package/dist/runtime/docker/volume.d.mts +1 -0
- package/dist/runtime/docker/volume.mjs +24 -0
- package/dist/runtime/docker/volume.mjs.map +1 -0
- package/dist/runtime/docker/wrap.d.mts +1 -0
- package/dist/runtime/docker/wrap.mjs +131 -0
- package/dist/runtime/docker/wrap.mjs.map +1 -0
- package/dist/substrate/brand.d.mts +24 -0
- package/dist/substrate/brand.mjs +14 -0
- package/dist/substrate/brand.mjs.map +1 -0
- package/dist/substrate/cross-process.d.mts +1 -0
- package/dist/substrate/cross-process.mjs +28 -0
- package/dist/substrate/cross-process.mjs.map +1 -0
- package/dist/substrate/events.d.mts +117 -0
- package/dist/substrate/identity.d.mts +13 -0
- package/dist/substrate/lifecycle.d.mts +12 -0
- package/dist/substrate/manifest.d.mts +39 -0
- package/dist/substrate/manifest.mjs +33 -0
- package/dist/substrate/manifest.mjs.map +1 -0
- package/dist/substrate/network.d.mts +34 -0
- package/dist/substrate/options.d.mts +23 -0
- package/dist/substrate/plugin.d.mts +101 -0
- package/dist/substrate/plugin.mjs +61 -0
- package/dist/substrate/plugin.mjs.map +1 -0
- package/dist/substrate/projection.d.mts +100 -0
- package/dist/substrate/runtime/artifact-publisher/index.mjs +76 -0
- package/dist/substrate/runtime/artifact-publisher/index.mjs.map +1 -0
- package/dist/substrate/runtime/atomic-write.mjs +106 -0
- package/dist/substrate/runtime/atomic-write.mjs.map +1 -0
- package/dist/substrate/runtime/cache/index.d.mts +1 -0
- package/dist/substrate/runtime/cache/schema.d.mts +1 -0
- package/dist/substrate/runtime/cache/schema.mjs +22 -0
- package/dist/substrate/runtime/cache/schema.mjs.map +1 -0
- package/dist/substrate/runtime/cache/service.d.mts +1 -0
- package/dist/substrate/runtime/cache/service.mjs +89 -0
- package/dist/substrate/runtime/cache/service.mjs.map +1 -0
- package/dist/substrate/runtime/capability-sinks/index.d.mts +1 -0
- package/dist/substrate/runtime/capability-sinks/layer.d.mts +1 -0
- package/dist/substrate/runtime/capability-sinks/layer.mjs +31 -0
- package/dist/substrate/runtime/capability-sinks/layer.mjs.map +1 -0
- package/dist/substrate/runtime/capability-sinks/service.d.mts +36 -0
- package/dist/substrate/runtime/capability-sinks/service.mjs +74 -0
- package/dist/substrate/runtime/capability-sinks/service.mjs.map +1 -0
- package/dist/substrate/runtime/config-validation.d.mts +38 -0
- package/dist/substrate/runtime/config-validation.mjs +137 -0
- package/dist/substrate/runtime/config-validation.mjs.map +1 -0
- package/dist/substrate/runtime/context-helpers.mjs +32 -0
- package/dist/substrate/runtime/context-helpers.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/command-channel/channel.mjs +128 -0
- package/dist/substrate/runtime/cross-process/command-channel/channel.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/command-channel/file-channel.mjs +136 -0
- package/dist/substrate/runtime/cross-process/command-channel/file-channel.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/command-channel/protocol.mjs +49 -0
- package/dist/substrate/runtime/cross-process/command-channel/protocol.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/command-channel/runtime-control-lock.mjs +9 -0
- package/dist/substrate/runtime/cross-process/command-channel/runtime-control-lock.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/liveness.mjs +119 -0
- package/dist/substrate/runtime/cross-process/liveness.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/roster.mjs +275 -0
- package/dist/substrate/runtime/cross-process/roster.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/snapshot-reservation.d.mts +1 -0
- package/dist/substrate/runtime/cross-process/snapshot-reservation.mjs +117 -0
- package/dist/substrate/runtime/cross-process/snapshot-reservation.mjs.map +1 -0
- package/dist/substrate/runtime/cross-process/stack-lock.d.mts +1 -0
- package/dist/substrate/runtime/cross-process/stack-lock.mjs +142 -0
- package/dist/substrate/runtime/cross-process/stack-lock.mjs.map +1 -0
- package/dist/substrate/runtime/current-plugin.mjs +15 -0
- package/dist/substrate/runtime/current-plugin.mjs.map +1 -0
- package/dist/substrate/runtime/errors.d.mts +1 -0
- package/dist/substrate/runtime/errors.mjs +76 -0
- package/dist/substrate/runtime/errors.mjs.map +1 -0
- package/dist/substrate/runtime/host-tree-tar/index.mjs +364 -0
- package/dist/substrate/runtime/host-tree-tar/index.mjs.map +1 -0
- package/dist/substrate/runtime/http-probe.d.mts +35 -0
- package/dist/substrate/runtime/http-probe.mjs +65 -0
- package/dist/substrate/runtime/http-probe.mjs.map +1 -0
- package/dist/substrate/runtime/lease-broker/index.d.mts +1 -0
- package/dist/substrate/runtime/lease-broker/service.d.mts +64 -0
- package/dist/substrate/runtime/lease-broker/service.mjs +155 -0
- package/dist/substrate/runtime/lease-broker/service.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/dep-graph.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/dep-graph.mjs +138 -0
- package/dist/substrate/runtime/lifecycle/dep-graph.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/index.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/lifecycle-fact.mjs +31 -0
- package/dist/substrate/runtime/lifecycle/lifecycle-fact.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/plugin-registry.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/plugin-registry.mjs +133 -0
- package/dist/substrate/runtime/lifecycle/plugin-registry.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/ready-gate.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/ready-gate.mjs +34 -0
- package/dist/substrate/runtime/lifecycle/ready-gate.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/selective-restart.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/selective-restart.mjs +43 -0
- package/dist/substrate/runtime/lifecycle/selective-restart.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/signals.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/signals.mjs +64 -0
- package/dist/substrate/runtime/lifecycle/signals.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/state-machine.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/state-machine.mjs +38 -0
- package/dist/substrate/runtime/lifecycle/state-machine.mjs.map +1 -0
- package/dist/substrate/runtime/lifecycle/watch-attribution.d.mts +1 -0
- package/dist/substrate/runtime/lifecycle/watch-attribution.mjs +27 -0
- package/dist/substrate/runtime/lifecycle/watch-attribution.mjs.map +1 -0
- package/dist/substrate/runtime/managed-container.d.mts +30 -0
- package/dist/substrate/runtime/managed-container.mjs +32 -0
- package/dist/substrate/runtime/managed-container.mjs.map +1 -0
- package/dist/substrate/runtime/manifest/manifest.mjs +73 -0
- package/dist/substrate/runtime/manifest/manifest.mjs.map +1 -0
- package/dist/substrate/runtime/mode-errors.d.mts +36 -0
- package/dist/substrate/runtime/observability/cascade-formatter.d.mts +1 -0
- package/dist/substrate/runtime/observability/cascade-formatter.mjs +135 -0
- package/dist/substrate/runtime/observability/cascade-formatter.mjs.map +1 -0
- package/dist/substrate/runtime/observability/formatter-registry.d.mts +1 -0
- package/dist/substrate/runtime/observability/formatter-registry.mjs +65 -0
- package/dist/substrate/runtime/observability/formatter-registry.mjs.map +1 -0
- package/dist/substrate/runtime/observability/index.d.mts +3 -0
- package/dist/substrate/runtime/observability/logger.d.mts +58 -0
- package/dist/substrate/runtime/observability/logger.mjs +89 -0
- package/dist/substrate/runtime/observability/logger.mjs.map +1 -0
- package/dist/substrate/runtime/observability/pretty-error.d.mts +1 -0
- package/dist/substrate/runtime/observability/pretty-error.mjs +119 -0
- package/dist/substrate/runtime/observability/pretty-error.mjs.map +1 -0
- package/dist/substrate/runtime/observability/process-lines.d.mts +31 -0
- package/dist/substrate/runtime/observability/process-lines.mjs +40 -0
- package/dist/substrate/runtime/observability/process-lines.mjs.map +1 -0
- package/dist/substrate/runtime/observability/redaction.d.mts +28 -0
- package/dist/substrate/runtime/observability/redaction.mjs +45 -0
- package/dist/substrate/runtime/observability/redaction.mjs.map +1 -0
- package/dist/substrate/runtime/observability/spans.d.mts +1 -0
- package/dist/substrate/runtime/observability/spans.mjs +87 -0
- package/dist/substrate/runtime/observability/spans.mjs.map +1 -0
- package/dist/substrate/runtime/observability/subprocess-capture.d.mts +2 -0
- package/dist/substrate/runtime/observability/subprocess-capture.mjs +82 -0
- package/dist/substrate/runtime/observability/subprocess-capture.mjs.map +1 -0
- package/dist/substrate/runtime/paths.d.mts +17 -0
- package/dist/substrate/runtime/paths.mjs +61 -0
- package/dist/substrate/runtime/paths.mjs.map +1 -0
- package/dist/substrate/runtime/port-broker/index.d.mts +1 -0
- package/dist/substrate/runtime/port-broker/service.d.mts +1 -0
- package/dist/substrate/runtime/port-broker/service.mjs +319 -0
- package/dist/substrate/runtime/port-broker/service.mjs.map +1 -0
- package/dist/substrate/runtime/post-acquire-tasks.d.mts +1 -0
- package/dist/substrate/runtime/post-acquire-tasks.mjs +34 -0
- package/dist/substrate/runtime/post-acquire-tasks.mjs.map +1 -0
- package/dist/substrate/runtime/probes.d.mts +51 -0
- package/dist/substrate/runtime/probes.mjs +84 -0
- package/dist/substrate/runtime/probes.mjs.map +1 -0
- package/dist/substrate/runtime/process-supervisor.d.mts +57 -0
- package/dist/substrate/runtime/process-supervisor.mjs +73 -0
- package/dist/substrate/runtime/process-supervisor.mjs.map +1 -0
- package/dist/substrate/runtime/projection/operational-endpoints.mjs +44 -0
- package/dist/substrate/runtime/projection/operational-endpoints.mjs.map +1 -0
- package/dist/substrate/runtime/projection/persisted.mjs +195 -0
- package/dist/substrate/runtime/projection/persisted.mjs.map +1 -0
- package/dist/substrate/runtime/projection/state-ref.mjs +48 -0
- package/dist/substrate/runtime/projection/state-ref.mjs.map +1 -0
- package/dist/substrate/runtime/projection/update.mjs +200 -0
- package/dist/substrate/runtime/projection/update.mjs.map +1 -0
- package/dist/substrate/runtime/retry-policy.d.mts +18 -0
- package/dist/substrate/runtime/retry-policy.mjs +16 -0
- package/dist/substrate/runtime/retry-policy.mjs.map +1 -0
- package/dist/substrate/runtime/run.mjs +86 -0
- package/dist/substrate/runtime/run.mjs.map +1 -0
- package/dist/substrate/runtime/runtime-decode.d.mts +32 -0
- package/dist/substrate/runtime/runtime-decode.mjs +53 -0
- package/dist/substrate/runtime/runtime-decode.mjs.map +1 -0
- package/dist/substrate/runtime/scoped-http-server.mjs +36 -0
- package/dist/substrate/runtime/scoped-http-server.mjs.map +1 -0
- package/dist/substrate/runtime/scoped-ref-map/service.mjs +83 -0
- package/dist/substrate/runtime/scoped-ref-map/service.mjs.map +1 -0
- package/dist/substrate/runtime/stage-and-swap/index.d.mts +1 -0
- package/dist/substrate/runtime/stage-and-swap/index.mjs +131 -0
- package/dist/substrate/runtime/stage-and-swap/index.mjs.map +1 -0
- package/dist/substrate/runtime/state-store/schema.mjs +36 -0
- package/dist/substrate/runtime/state-store/schema.mjs.map +1 -0
- package/dist/substrate/runtime/strategy-registry/chain-probe-for.d.mts +1 -0
- package/dist/substrate/runtime/strategy-registry/chain-probe-for.mjs +22 -0
- package/dist/substrate/runtime/strategy-registry/chain-probe-for.mjs.map +1 -0
- package/dist/substrate/runtime/strategy-registry/faucet-capability-for.d.mts +1 -0
- package/dist/substrate/runtime/strategy-registry/faucet-capability-for.mjs +30 -0
- package/dist/substrate/runtime/strategy-registry/faucet-capability-for.mjs.map +1 -0
- package/dist/substrate/runtime/strategy-registry/index.d.mts +1 -0
- package/dist/substrate/runtime/strategy-registry/service.d.mts +1 -0
- package/dist/substrate/runtime/strategy-registry/service.mjs +67 -0
- package/dist/substrate/runtime/strategy-registry/service.mjs.map +1 -0
- package/dist/substrate/runtime/sui-execute/index.d.mts +11 -0
- package/dist/substrate/runtime/sui-execute/index.mjs +144 -0
- package/dist/substrate/runtime/sui-execute/index.mjs.map +1 -0
- package/dist/substrate/runtime/sui-move-build/index.d.mts +1 -0
- package/dist/substrate/runtime/sui-move-build/index.mjs +283 -0
- package/dist/substrate/runtime/sui-move-build/index.mjs.map +1 -0
- package/dist/substrate/runtime/supervisor.d.mts +1 -0
- package/dist/substrate/runtime/supervisor.mjs +831 -0
- package/dist/substrate/runtime/supervisor.mjs.map +1 -0
- package/dist/surfaces/cli/command-tree.mjs +276 -0
- package/dist/surfaces/cli/command-tree.mjs.map +1 -0
- package/dist/surfaces/cli/commands/config.mjs +31 -0
- package/dist/surfaces/cli/commands/config.mjs.map +1 -0
- package/dist/surfaces/cli/commands/confirm-node.mjs +26 -0
- package/dist/surfaces/cli/commands/confirm-node.mjs.map +1 -0
- package/dist/surfaces/cli/commands/confirm.mjs +26 -0
- package/dist/surfaces/cli/commands/confirm.mjs.map +1 -0
- package/dist/surfaces/cli/commands/doctor-probes.mjs +452 -0
- package/dist/surfaces/cli/commands/doctor-probes.mjs.map +1 -0
- package/dist/surfaces/cli/commands/doctor.mjs +38 -0
- package/dist/surfaces/cli/commands/doctor.mjs.map +1 -0
- package/dist/surfaces/cli/commands/prune-picker.mjs +347 -0
- package/dist/surfaces/cli/commands/prune-picker.mjs.map +1 -0
- package/dist/surfaces/cli/commands/prune.mjs +178 -0
- package/dist/surfaces/cli/commands/prune.mjs.map +1 -0
- package/dist/surfaces/cli/commands/snapshot.mjs +141 -0
- package/dist/surfaces/cli/commands/snapshot.mjs.map +1 -0
- package/dist/surfaces/cli/commands/status.mjs +95 -0
- package/dist/surfaces/cli/commands/status.mjs.map +1 -0
- package/dist/surfaces/cli/commands/supervisor-presence.mjs +33 -0
- package/dist/surfaces/cli/commands/supervisor-presence.mjs.map +1 -0
- package/dist/surfaces/cli/commands/wipe.mjs +28 -0
- package/dist/surfaces/cli/commands/wipe.mjs.map +1 -0
- package/dist/surfaces/cli/envelope.mjs +43 -0
- package/dist/surfaces/cli/envelope.mjs.map +1 -0
- package/dist/surfaces/cli/errors.mjs +110 -0
- package/dist/surfaces/cli/errors.mjs.map +1 -0
- package/dist/surfaces/cli/flags.mjs +56 -0
- package/dist/surfaces/cli/flags.mjs.map +1 -0
- package/dist/surfaces/cli/index.mjs +418 -0
- package/dist/surfaces/cli/index.mjs.map +1 -0
- package/dist/surfaces/cli/output.mjs +115 -0
- package/dist/surfaces/cli/output.mjs.map +1 -0
- package/dist/surfaces/cli/sysexits.mjs +139 -0
- package/dist/surfaces/cli/sysexits.mjs.map +1 -0
- package/dist/surfaces/tui/app.mjs +104 -0
- package/dist/surfaces/tui/app.mjs.map +1 -0
- package/dist/surfaces/tui/dashboard.mjs +261 -0
- package/dist/surfaces/tui/dashboard.mjs.map +1 -0
- package/dist/surfaces/tui/display-derivation.mjs +395 -0
- package/dist/surfaces/tui/display-derivation.mjs.map +1 -0
- package/dist/surfaces/tui/errors.mjs +11 -0
- package/dist/surfaces/tui/errors.mjs.map +1 -0
- package/dist/surfaces/tui/event-log.mjs +155 -0
- package/dist/surfaces/tui/event-log.mjs.map +1 -0
- package/dist/surfaces/tui/heartbeat.mjs +33 -0
- package/dist/surfaces/tui/heartbeat.mjs.map +1 -0
- package/dist/surfaces/tui/index.mjs +50 -0
- package/dist/surfaces/tui/index.mjs.map +1 -0
- package/dist/surfaces/tui/input.mjs +104 -0
- package/dist/surfaces/tui/input.mjs.map +1 -0
- package/dist/surfaces/tui/mode-detect.mjs +32 -0
- package/dist/surfaces/tui/mode-detect.mjs.map +1 -0
- package/dist/surfaces/tui/mount-ink.mjs +31 -0
- package/dist/surfaces/tui/mount-ink.mjs.map +1 -0
- package/dist/surfaces/tui/plain-renderer.mjs +170 -0
- package/dist/surfaces/tui/plain-renderer.mjs.map +1 -0
- package/dist/surfaces/tui/resource-table.mjs +507 -0
- package/dist/surfaces/tui/resource-table.mjs.map +1 -0
- package/images/_shared/signal-forward.sh +77 -0
- package/images/postgres/Dockerfile +32 -0
- package/images/seal/Dockerfile +68 -0
- package/images/seal/entrypoint.sh +65 -0
- package/images/sui/Dockerfile +73 -0
- package/images/sui/entrypoint.sh +244 -0
- package/images/sui-fork/Dockerfile +53 -0
- package/images/sui-fork/entrypoint.sh +51 -0
- package/images/walrus/Dockerfile +122 -0
- package/images/walrus/deploy-walrus.sh +305 -0
- package/images/walrus/run-walrus.sh +53 -0
- package/package.json +94 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { deepbookPluginError } from "./errors.mjs";
|
|
2
|
+
import { Effect } from "effect";
|
|
3
|
+
import { Transaction } from "@mysten/sui/transactions";
|
|
4
|
+
import { DeepBookClient } from "@mysten/deepbook-v3";
|
|
5
|
+
//#region src/plugins/deepbook/faucet-strategy.ts
|
|
6
|
+
const DEEPBOOK_TESTNET_DEEP_COIN_TYPE = "0x36dbef866a1d62bf7328989a10fb2f07d769f4ee587c0de4a0a256e57e0a58a8::deep::DEEP";
|
|
7
|
+
const DEEPBOOK_DEEP_FAUCET_STRATEGY_KEY = `coinType:${DEEPBOOK_TESTNET_DEEP_COIN_TYPE}`;
|
|
8
|
+
const DEEPBOOK_DEEP_POOL_KEY = "DEEP_SUI";
|
|
9
|
+
const DEEP_SCALAR = 1000000n;
|
|
10
|
+
const SUI_SCALAR = 1000000000n;
|
|
11
|
+
const DEFAULT_INPUT_BUFFER_BPS = 500n;
|
|
12
|
+
const decimalToRaw = (value, scalar, round) => {
|
|
13
|
+
const scaled = value * Number(scalar);
|
|
14
|
+
if (!Number.isFinite(scaled) || scaled < 0) return Effect.fail(deepbookPluginError("fund-deep", `DeepBook quote returned an invalid decimal amount: ${value}.`));
|
|
15
|
+
return Effect.succeed(BigInt(round === "ceil" ? Math.ceil(scaled) : Math.floor(scaled)));
|
|
16
|
+
};
|
|
17
|
+
const applyInputBuffer = (raw, bufferBps) => (raw * (10000n + bufferBps) + 9999n) / 10000n;
|
|
18
|
+
const buildDeepbookClient = (req, suiSdk) => new DeepBookClient({
|
|
19
|
+
address: req.account.address,
|
|
20
|
+
client: suiSdk.client,
|
|
21
|
+
network: "testnet"
|
|
22
|
+
});
|
|
23
|
+
const makeDeepbookDeepFundingStrategy = (opts) => ({
|
|
24
|
+
usesAccountSigner: true,
|
|
25
|
+
request: (req) => Effect.gen(function* () {
|
|
26
|
+
if (req.amount <= 0n) return;
|
|
27
|
+
const deepBook = buildDeepbookClient(req, opts.suiSdk);
|
|
28
|
+
const quote = yield* Effect.tryPromise({
|
|
29
|
+
try: () => deepBook.getQuoteQuantityIn(DEEPBOOK_DEEP_POOL_KEY, req.amount, false),
|
|
30
|
+
catch: (cause) => deepbookPluginError("fund-deep", `DeepBook DEEP funding quote failed for ${req.amount} base units.`, { cause })
|
|
31
|
+
});
|
|
32
|
+
const baseOutRaw = yield* decimalToRaw(quote.baseOut, DEEP_SCALAR, "floor");
|
|
33
|
+
if (baseOutRaw < req.amount) return yield* Effect.fail(deepbookPluginError("fund-deep", `DeepBook DEEP funding quote cannot satisfy ${req.amount} base units; quoted ${baseOutRaw}.`));
|
|
34
|
+
const quoteInRaw = yield* decimalToRaw(quote.quoteIn, SUI_SCALAR, "ceil");
|
|
35
|
+
if (quoteInRaw <= 0n) return yield* Effect.fail(deepbookPluginError("fund-deep", `DeepBook DEEP funding quote returned zero SUI input for ${req.amount} base units.`));
|
|
36
|
+
const quoteAmountRaw = applyInputBuffer(quoteInRaw, opts.inputBufferBps ?? DEFAULT_INPUT_BUFFER_BPS);
|
|
37
|
+
const deepAmountRaw = yield* decimalToRaw(quote.deepRequired, DEEP_SCALAR, "ceil");
|
|
38
|
+
yield* req.account.withTransactionSigner((lockedSigner) => Effect.gen(function* () {
|
|
39
|
+
const tx = yield* Effect.try({
|
|
40
|
+
try: () => {
|
|
41
|
+
const transaction = new Transaction();
|
|
42
|
+
transaction.setSender(req.account.address);
|
|
43
|
+
const [baseCoin, quoteCoin, deepCoin] = transaction.add(deepBook.deepBook.swapExactQuantity({
|
|
44
|
+
poolKey: DEEPBOOK_DEEP_POOL_KEY,
|
|
45
|
+
amount: quoteAmountRaw,
|
|
46
|
+
deepAmount: deepAmountRaw,
|
|
47
|
+
minOut: req.amount,
|
|
48
|
+
isBaseToCoin: false
|
|
49
|
+
}));
|
|
50
|
+
transaction.transferObjects([
|
|
51
|
+
baseCoin,
|
|
52
|
+
quoteCoin,
|
|
53
|
+
deepCoin
|
|
54
|
+
], req.address);
|
|
55
|
+
return transaction;
|
|
56
|
+
},
|
|
57
|
+
catch: (cause) => deepbookPluginError("fund-deep", "DeepBook DEEP funding transaction build failed.", { cause })
|
|
58
|
+
});
|
|
59
|
+
const txBytes = yield* Effect.tryPromise({
|
|
60
|
+
try: () => tx.build({ client: opts.suiSdk.client }),
|
|
61
|
+
catch: (cause) => deepbookPluginError("fund-deep", `DeepBook DEEP funding transaction serialization failed: ${cause instanceof Error ? cause.message : String(cause)}.`, { cause })
|
|
62
|
+
});
|
|
63
|
+
yield* lockedSigner.signAndExecute(txBytes).pipe(Effect.mapError((cause) => deepbookPluginError("fund-deep", `DeepBook DEEP funding transaction failed for account '${req.account.name}'.`, { cause })));
|
|
64
|
+
})).pipe(Effect.asVoid);
|
|
65
|
+
}).pipe(Effect.withSpan("devstack.plugin.deepbook.fundDeep", { attributes: {
|
|
66
|
+
"account.name": req.account.name,
|
|
67
|
+
"account.address": req.account.address,
|
|
68
|
+
"fund.coin": DEEPBOOK_TESTNET_DEEP_COIN_TYPE,
|
|
69
|
+
"fund.amount": req.amount.toString()
|
|
70
|
+
} }))
|
|
71
|
+
});
|
|
72
|
+
const makeDeepbookDeepFundingContribution = (strategy) => ({
|
|
73
|
+
kind: "strategy-contributor",
|
|
74
|
+
capabilityKey: DEEPBOOK_DEEP_FAUCET_STRATEGY_KEY,
|
|
75
|
+
strategy,
|
|
76
|
+
autoMounted: true
|
|
77
|
+
});
|
|
78
|
+
//#endregion
|
|
79
|
+
export { DEEPBOOK_DEEP_FAUCET_STRATEGY_KEY, DEEPBOOK_TESTNET_DEEP_COIN_TYPE, makeDeepbookDeepFundingContribution, makeDeepbookDeepFundingStrategy };
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=faucet-strategy.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faucet-strategy.mjs","names":[],"sources":["../../../src/plugins/deepbook/faucet-strategy.ts"],"sourcesContent":["// DeepBook DEEP funding strategy.\n//\n// Testnet DEEP has no public mint faucet. The usable funding path is a\n// real DeepBook swap from the requesting account's SUI balance into\n// DEEP. This strategy is contributed by the known testnet DeepBook\n// plugin under the standard `coinType:<fullCoinType>` key, so accounts\n// can request DEEP through the same cross-cutting funding pipeline as\n// SUI and WAL.\n\nimport { Effect } from 'effect';\n\nimport { DeepBookClient, type DeepBookCompatibleClient } from '@mysten/deepbook-v3';\nimport { Transaction } from '@mysten/sui/transactions';\n\nimport type { StrategyContributorDecl } from '../../contracts/strategy-contributor.ts';\nimport type { AccountFundingRequest, AccountFundingStrategy } from '../account/funding.ts';\nimport type { SuiSdkShim } from '../sui/chain-probe.ts';\n\nimport { deepbookPluginError, type DeepbookPluginError } from './errors.ts';\n\nexport const DEEPBOOK_TESTNET_DEEP_COIN_TYPE =\n\t'0x36dbef866a1d62bf7328989a10fb2f07d769f4ee587c0de4a0a256e57e0a58a8::deep::DEEP' as const;\nexport const DEEPBOOK_DEEP_FAUCET_STRATEGY_KEY =\n\t`coinType:${DEEPBOOK_TESTNET_DEEP_COIN_TYPE}` as const;\n\nconst DEEPBOOK_DEEP_POOL_KEY = 'DEEP_SUI';\nconst DEEP_SCALAR = 1_000_000n;\nconst SUI_SCALAR = 1_000_000_000n;\nconst DEFAULT_INPUT_BUFFER_BPS = 500n;\n\ntype TransactionBuildClient = Parameters<Transaction['build']>[0] extends\n\t| { readonly client?: infer Client }\n\t| undefined\n\t? Client\n\t: never;\n\nexport interface DeepbookDeepFundingStrategyOptions {\n\treadonly suiSdk: SuiSdkShim;\n\t/** Extra SUI input above the quote. 500 bps means 5%. */\n\treadonly inputBufferBps?: bigint;\n}\n\nexport type DeepbookDeepFundingStrategy = AccountFundingStrategy<DeepbookPluginError>;\n\nconst decimalToRaw = (\n\tvalue: number,\n\tscalar: bigint,\n\tround: 'ceil' | 'floor',\n): Effect.Effect<bigint, DeepbookPluginError> => {\n\tconst scaled = value * Number(scalar);\n\tif (!Number.isFinite(scaled) || scaled < 0) {\n\t\treturn Effect.fail(\n\t\t\tdeepbookPluginError(\n\t\t\t\t'fund-deep',\n\t\t\t\t`DeepBook quote returned an invalid decimal amount: ${value}.`,\n\t\t\t),\n\t\t);\n\t}\n\treturn Effect.succeed(BigInt(round === 'ceil' ? Math.ceil(scaled) : Math.floor(scaled)));\n};\n\nconst applyInputBuffer = (raw: bigint, bufferBps: bigint): bigint =>\n\t(raw * (10_000n + bufferBps) + 9_999n) / 10_000n;\n\nconst buildDeepbookClient = (req: AccountFundingRequest, suiSdk: SuiSdkShim): DeepBookClient =>\n\tnew DeepBookClient({\n\t\taddress: req.account.address,\n\t\tclient: suiSdk.client as DeepBookCompatibleClient,\n\t\tnetwork: 'testnet',\n\t});\n\nexport const makeDeepbookDeepFundingStrategy = (\n\topts: DeepbookDeepFundingStrategyOptions,\n): DeepbookDeepFundingStrategy => ({\n\tusesAccountSigner: true,\n\trequest: (req) =>\n\t\tEffect.gen(function* () {\n\t\t\tif (req.amount <= 0n) return;\n\n\t\t\tconst deepBook = buildDeepbookClient(req, opts.suiSdk);\n\t\t\tconst quote = yield* Effect.tryPromise({\n\t\t\t\ttry: () => deepBook.getQuoteQuantityIn(DEEPBOOK_DEEP_POOL_KEY, req.amount, false),\n\t\t\t\tcatch: (cause): DeepbookPluginError =>\n\t\t\t\t\tdeepbookPluginError(\n\t\t\t\t\t\t'fund-deep',\n\t\t\t\t\t\t`DeepBook DEEP funding quote failed for ${req.amount} base units.`,\n\t\t\t\t\t\t{ cause },\n\t\t\t\t\t),\n\t\t\t});\n\n\t\t\tconst baseOutRaw = yield* decimalToRaw(quote.baseOut, DEEP_SCALAR, 'floor');\n\t\t\tif (baseOutRaw < req.amount) {\n\t\t\t\treturn yield* Effect.fail(\n\t\t\t\t\tdeepbookPluginError(\n\t\t\t\t\t\t'fund-deep',\n\t\t\t\t\t\t`DeepBook DEEP funding quote cannot satisfy ${req.amount} base units; quoted ${baseOutRaw}.`,\n\t\t\t\t\t),\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst quoteInRaw = yield* decimalToRaw(quote.quoteIn, SUI_SCALAR, 'ceil');\n\t\t\tif (quoteInRaw <= 0n) {\n\t\t\t\treturn yield* Effect.fail(\n\t\t\t\t\tdeepbookPluginError(\n\t\t\t\t\t\t'fund-deep',\n\t\t\t\t\t\t`DeepBook DEEP funding quote returned zero SUI input for ${req.amount} base units.`,\n\t\t\t\t\t),\n\t\t\t\t);\n\t\t\t}\n\t\t\tconst quoteAmountRaw = applyInputBuffer(\n\t\t\t\tquoteInRaw,\n\t\t\t\topts.inputBufferBps ?? DEFAULT_INPUT_BUFFER_BPS,\n\t\t\t);\n\t\t\tconst deepAmountRaw = yield* decimalToRaw(quote.deepRequired, DEEP_SCALAR, 'ceil');\n\n\t\t\tyield* req.account\n\t\t\t\t.withTransactionSigner((lockedSigner) =>\n\t\t\t\t\tEffect.gen(function* () {\n\t\t\t\t\t\tconst tx = yield* Effect.try({\n\t\t\t\t\t\t\ttry: () => {\n\t\t\t\t\t\t\t\tconst transaction = new Transaction();\n\t\t\t\t\t\t\t\ttransaction.setSender(req.account.address);\n\t\t\t\t\t\t\t\tconst [baseCoin, quoteCoin, deepCoin] = transaction.add(\n\t\t\t\t\t\t\t\t\tdeepBook.deepBook.swapExactQuantity({\n\t\t\t\t\t\t\t\t\t\tpoolKey: DEEPBOOK_DEEP_POOL_KEY,\n\t\t\t\t\t\t\t\t\t\tamount: quoteAmountRaw,\n\t\t\t\t\t\t\t\t\t\tdeepAmount: deepAmountRaw,\n\t\t\t\t\t\t\t\t\t\tminOut: req.amount,\n\t\t\t\t\t\t\t\t\t\tisBaseToCoin: false,\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\ttransaction.transferObjects([baseCoin, quoteCoin, deepCoin], req.address);\n\t\t\t\t\t\t\t\treturn transaction;\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tcatch: (cause): DeepbookPluginError =>\n\t\t\t\t\t\t\t\tdeepbookPluginError(\n\t\t\t\t\t\t\t\t\t'fund-deep',\n\t\t\t\t\t\t\t\t\t'DeepBook DEEP funding transaction build failed.',\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcause,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tconst txBytes = yield* Effect.tryPromise({\n\t\t\t\t\t\t\ttry: () =>\n\t\t\t\t\t\t\t\ttx.build({\n\t\t\t\t\t\t\t\t\tclient: opts.suiSdk.client as TransactionBuildClient,\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tcatch: (cause): DeepbookPluginError =>\n\t\t\t\t\t\t\t\tdeepbookPluginError(\n\t\t\t\t\t\t\t\t\t'fund-deep',\n\t\t\t\t\t\t\t\t\t`DeepBook DEEP funding transaction serialization failed: ${\n\t\t\t\t\t\t\t\t\t\tcause instanceof Error ? cause.message : String(cause)\n\t\t\t\t\t\t\t\t\t}.`,\n\t\t\t\t\t\t\t\t\t{ cause },\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tyield* lockedSigner\n\t\t\t\t\t\t\t.signAndExecute(txBytes)\n\t\t\t\t\t\t\t.pipe(\n\t\t\t\t\t\t\t\tEffect.mapError(\n\t\t\t\t\t\t\t\t\t(cause): DeepbookPluginError =>\n\t\t\t\t\t\t\t\t\t\tdeepbookPluginError(\n\t\t\t\t\t\t\t\t\t\t\t'fund-deep',\n\t\t\t\t\t\t\t\t\t\t\t`DeepBook DEEP funding transaction failed for account '${req.account.name}'.`,\n\t\t\t\t\t\t\t\t\t\t\t{ cause },\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t);\n\t\t\t\t\t}),\n\t\t\t\t)\n\t\t\t\t.pipe(Effect.asVoid);\n\t\t}).pipe(\n\t\t\tEffect.withSpan('devstack.plugin.deepbook.fundDeep', {\n\t\t\t\tattributes: {\n\t\t\t\t\t'account.name': req.account.name,\n\t\t\t\t\t'account.address': req.account.address,\n\t\t\t\t\t'fund.coin': DEEPBOOK_TESTNET_DEEP_COIN_TYPE,\n\t\t\t\t\t'fund.amount': req.amount.toString(),\n\t\t\t\t},\n\t\t\t}),\n\t\t),\n});\n\nexport const makeDeepbookDeepFundingContribution = (\n\tstrategy: DeepbookDeepFundingStrategy,\n): StrategyContributorDecl<\n\ttypeof DEEPBOOK_DEEP_FAUCET_STRATEGY_KEY,\n\tDeepbookDeepFundingStrategy\n> => ({\n\tkind: 'strategy-contributor',\n\tcapabilityKey: DEEPBOOK_DEEP_FAUCET_STRATEGY_KEY,\n\tstrategy,\n\tautoMounted: true,\n});\n"],"mappings":";;;;;AAoBA,MAAa,kCACZ;AACD,MAAa,oCACZ,YAAY;AAEb,MAAM,yBAAyB;AAC/B,MAAM,cAAc;AACpB,MAAM,aAAa;AACnB,MAAM,2BAA2B;AAgBjC,MAAM,gBACL,OACA,QACA,UACgD;CAChD,MAAM,SAAS,QAAQ,OAAO,OAAO;AACrC,KAAI,CAAC,OAAO,SAAS,OAAO,IAAI,SAAS,EACxC,QAAO,OAAO,KACb,oBACC,aACA,sDAAsD,MAAM,GAC5D,CACD;AAEF,QAAO,OAAO,QAAQ,OAAO,UAAU,SAAS,KAAK,KAAK,OAAO,GAAG,KAAK,MAAM,OAAO,CAAC,CAAC;;AAGzF,MAAM,oBAAoB,KAAa,eACrC,OAAO,SAAU,aAAa,SAAU;AAE1C,MAAM,uBAAuB,KAA4B,WACxD,IAAI,eAAe;CAClB,SAAS,IAAI,QAAQ;CACrB,QAAQ,OAAO;CACf,SAAS;CACT,CAAC;AAEH,MAAa,mCACZ,UACkC;CAClC,mBAAmB;CACnB,UAAU,QACT,OAAO,IAAI,aAAa;AACvB,MAAI,IAAI,UAAU,GAAI;EAEtB,MAAM,WAAW,oBAAoB,KAAK,KAAK,OAAO;EACtD,MAAM,QAAQ,OAAO,OAAO,WAAW;GACtC,WAAW,SAAS,mBAAmB,wBAAwB,IAAI,QAAQ,MAAM;GACjF,QAAQ,UACP,oBACC,aACA,0CAA0C,IAAI,OAAO,eACrD,EAAE,OAAO,CACT;GACF,CAAC;EAEF,MAAM,aAAa,OAAO,aAAa,MAAM,SAAS,aAAa,QAAQ;AAC3E,MAAI,aAAa,IAAI,OACpB,QAAO,OAAO,OAAO,KACpB,oBACC,aACA,8CAA8C,IAAI,OAAO,sBAAsB,WAAW,GAC1F,CACD;EAGF,MAAM,aAAa,OAAO,aAAa,MAAM,SAAS,YAAY,OAAO;AACzE,MAAI,cAAc,GACjB,QAAO,OAAO,OAAO,KACpB,oBACC,aACA,2DAA2D,IAAI,OAAO,cACtE,CACD;EAEF,MAAM,iBAAiB,iBACtB,YACA,KAAK,kBAAkB,yBACvB;EACD,MAAM,gBAAgB,OAAO,aAAa,MAAM,cAAc,aAAa,OAAO;AAElF,SAAO,IAAI,QACT,uBAAuB,iBACvB,OAAO,IAAI,aAAa;GACvB,MAAM,KAAK,OAAO,OAAO,IAAI;IAC5B,WAAW;KACV,MAAM,cAAc,IAAI,aAAa;AACrC,iBAAY,UAAU,IAAI,QAAQ,QAAQ;KAC1C,MAAM,CAAC,UAAU,WAAW,YAAY,YAAY,IACnD,SAAS,SAAS,kBAAkB;MACnC,SAAS;MACT,QAAQ;MACR,YAAY;MACZ,QAAQ,IAAI;MACZ,cAAc;MACd,CAAC,CACF;AACD,iBAAY,gBAAgB;MAAC;MAAU;MAAW;MAAS,EAAE,IAAI,QAAQ;AACzE,YAAO;;IAER,QAAQ,UACP,oBACC,aACA,mDACA,EACC,OACA,CACD;IACF,CAAC;GAEF,MAAM,UAAU,OAAO,OAAO,WAAW;IACxC,WACC,GAAG,MAAM,EACR,QAAQ,KAAK,OAAO,QACpB,CAAC;IACH,QAAQ,UACP,oBACC,aACA,2DACC,iBAAiB,QAAQ,MAAM,UAAU,OAAO,MAAM,CACtD,IACD,EAAE,OAAO,CACT;IACF,CAAC;AAEF,UAAO,aACL,eAAe,QAAQ,CACvB,KACA,OAAO,UACL,UACA,oBACC,aACA,yDAAyD,IAAI,QAAQ,KAAK,KAC1E,EAAE,OAAO,CACT,CACF,CACD;IACD,CACF,CACA,KAAK,OAAO,OAAO;GACpB,CAAC,KACF,OAAO,SAAS,qCAAqC,EACpD,YAAY;EACX,gBAAgB,IAAI,QAAQ;EAC5B,mBAAmB,IAAI,QAAQ;EAC/B,aAAa;EACb,eAAe,IAAI,OAAO,UAAU;EACpC,EACD,CAAC,CACF;CACF;AAED,MAAa,uCACZ,cAIK;CACL,MAAM;CACN,eAAe;CACf;CACA,aAAa;CACb"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { CodegenableDecl } from "../../contracts/codegenable.mjs";
|
|
2
|
+
import { SnapshotableDecl } from "../../contracts/snapshotable.mjs";
|
|
3
|
+
import { StrategyContributorDecl } from "../../contracts/strategy-contributor.mjs";
|
|
4
|
+
import { Plugin, ResourceRef } from "../../substrate/plugin.mjs";
|
|
5
|
+
import { ModeNamespace } from "../../api/mode-narrowed-factory.mjs";
|
|
6
|
+
import { SeedObjectsAccumulator } from "../sui/seed-objects.mjs";
|
|
7
|
+
import { SuiClient } from "../sui/mode/shared.mjs";
|
|
8
|
+
import { SuiOptions } from "../sui/mode/spec.mjs";
|
|
9
|
+
import { DeepbookConfigError, DeepbookError, DeepbookPhase, DeepbookPluginError } from "./errors.mjs";
|
|
10
|
+
import { DeepbookDeepFundingStrategy } from "./faucet-strategy.mjs";
|
|
11
|
+
import { AccountMemberAlias, CoinMemberAlias, DEEP_PRICE_FEED_ID, DeepbookPackageMember, DeepbookPool, DeepbookPoolCoin, DeepbookPoolSeedLiquidity, DeepbookPoolSeedOrder, DeepbookPoolSpec, PythFeed, PythHandle, PythOptions, PythPackageMember, PythPriceFeedId, SUI_PRICE_FEED_ID, USDC_PRICE_FEED_ID, pythPriceFeedId } from "./types.mjs";
|
|
12
|
+
import { DeepbookBindings, DeepbookPoolBinding } from "./codegen.mjs";
|
|
13
|
+
//#region src/plugins/deepbook/index.d.ts
|
|
14
|
+
/** The deepbook resolved value. Mode-asymmetric:
|
|
15
|
+
*
|
|
16
|
+
* - `adminCapId` is `null` for known-deployment mode.
|
|
17
|
+
* - `margin` / `serverUrl` / `indexerUrl` / `marketMakerRunning`
|
|
18
|
+
* are `null` when the corresponding sub-feature is not enabled. */
|
|
19
|
+
interface DeepbookResolved {
|
|
20
|
+
readonly mode: 'local' | 'override' | 'known';
|
|
21
|
+
readonly chain: string;
|
|
22
|
+
readonly packageId: string;
|
|
23
|
+
readonly registryId: string;
|
|
24
|
+
readonly adminCapId: string | null;
|
|
25
|
+
readonly deepTreasuryId: string | null;
|
|
26
|
+
readonly pools: ReadonlyArray<DeepbookPool>;
|
|
27
|
+
readonly pyth: PythHandle | null;
|
|
28
|
+
readonly margin: {
|
|
29
|
+
readonly packageId: string;
|
|
30
|
+
readonly registryId: string;
|
|
31
|
+
} | null;
|
|
32
|
+
readonly serverUrl: string | null;
|
|
33
|
+
readonly indexerUrl: string | null;
|
|
34
|
+
readonly marketMakerRunning: boolean;
|
|
35
|
+
readonly deepFundingStrategy: DeepbookDeepFundingStrategy | null;
|
|
36
|
+
}
|
|
37
|
+
interface DeepbookCommonOptions {
|
|
38
|
+
readonly name?: string;
|
|
39
|
+
}
|
|
40
|
+
/** Override mode wraps an explicitly supplied deployment. It does not
|
|
41
|
+
* publish or manage DeepBook locally. */
|
|
42
|
+
interface DeepbookOverrideOptions extends DeepbookCommonOptions {
|
|
43
|
+
readonly packageId: string;
|
|
44
|
+
readonly registryId: string;
|
|
45
|
+
readonly adminCapId: string;
|
|
46
|
+
readonly chain?: string;
|
|
47
|
+
}
|
|
48
|
+
/** Local mode wraps an explicitly supplied local DeepBook package. */
|
|
49
|
+
interface DeepbookLocalOptions<Publisher extends AccountMemberAlias = AccountMemberAlias, Package extends DeepbookPackageMember = DeepbookPackageMember, Pools extends ReadonlyArray<DeepbookPoolSpec> = readonly [], Pyth extends PythOptions | undefined = undefined> extends DeepbookCommonOptions {
|
|
50
|
+
/** Publisher account — Direct Member Ref (locked API decision). */
|
|
51
|
+
readonly publisher: Publisher;
|
|
52
|
+
/** Published DeepBook package member. The package must capture the
|
|
53
|
+
* `registry::Registry` and `registry::DeepbookAdminCap` object ids. */
|
|
54
|
+
readonly package: Package;
|
|
55
|
+
/** Optional local mock-Pyth package + feed setup. */
|
|
56
|
+
readonly pyth?: Pyth;
|
|
57
|
+
/** Capture key for the package-created `registry::Registry`. */
|
|
58
|
+
readonly registryIdKey?: string;
|
|
59
|
+
/** Capture key for the package-created `registry::DeepbookAdminCap`. */
|
|
60
|
+
readonly adminCapIdKey?: string;
|
|
61
|
+
/** Optional capture key for a DEEP treasury object used by SDK bindings. */
|
|
62
|
+
readonly deepTreasuryIdKey?: string;
|
|
63
|
+
/** Pools to create after the DeepBook package publishes. Pass `[]`
|
|
64
|
+
* only for composition tests or known-empty deployments. */
|
|
65
|
+
readonly pools: Pools;
|
|
66
|
+
}
|
|
67
|
+
type DeepbookKnownNetwork = 'mainnet' | 'testnet';
|
|
68
|
+
interface DeepbookKnownCommonOptions extends DeepbookCommonOptions {
|
|
69
|
+
/** Optional chain id pin (defaults to the configured network). */
|
|
70
|
+
readonly chain?: string;
|
|
71
|
+
}
|
|
72
|
+
interface DeepbookKnownNetworkOptions extends DeepbookKnownCommonOptions {
|
|
73
|
+
readonly network: DeepbookKnownNetwork;
|
|
74
|
+
readonly packageId?: string;
|
|
75
|
+
readonly registryId?: string;
|
|
76
|
+
}
|
|
77
|
+
interface DeepbookKnownExplicitOptions extends DeepbookKnownCommonOptions {
|
|
78
|
+
readonly packageId: string;
|
|
79
|
+
readonly registryId: string;
|
|
80
|
+
readonly network?: DeepbookKnownNetwork;
|
|
81
|
+
}
|
|
82
|
+
type DeepbookKnownOptions = DeepbookKnownNetworkOptions | DeepbookKnownExplicitOptions;
|
|
83
|
+
type DeepbookOptions<Publisher extends AccountMemberAlias = AccountMemberAlias, Pyth extends PythOptions | undefined = PythOptions | undefined> = ({
|
|
84
|
+
readonly mode: 'local';
|
|
85
|
+
} & DeepbookLocalOptions<Publisher, DeepbookPackageMember, ReadonlyArray<DeepbookPoolSpec>, Pyth>) | ({
|
|
86
|
+
readonly mode: 'override';
|
|
87
|
+
} & DeepbookOverrideOptions) | ({
|
|
88
|
+
readonly mode: 'known';
|
|
89
|
+
} & DeepbookKnownOptions);
|
|
90
|
+
type DeepbookLocalEmptyPoolOptions<Publisher extends AccountMemberAlias, Package extends DeepbookPackageMember, Pyth extends PythOptions | undefined = undefined> = Omit<DeepbookLocalOptions<Publisher, Package, readonly [], Pyth>, 'pools'> & {
|
|
91
|
+
readonly pools: readonly [];
|
|
92
|
+
};
|
|
93
|
+
type PoolCoinRefs<Pools extends ReadonlyArray<DeepbookPoolSpec>> = Pools[number] extends DeepbookPoolSpec<infer Base, infer Quote> ? Base | Quote : never;
|
|
94
|
+
type PoolCoinRefTuple<Pools extends ReadonlyArray<DeepbookPoolSpec>> = Pools extends readonly [] ? readonly [] : readonly PoolCoinRefs<Pools>[];
|
|
95
|
+
type PythRefs<Pyth extends PythOptions | undefined> = Pyth extends PythOptions<infer Package, infer Pusher> ? readonly [Pusher, Package] : readonly [];
|
|
96
|
+
declare const buildOverridePlugin: (opts: DeepbookOverrideOptions) => Plugin<`deepbook/${string}`, DeepbookResolved, readonly [ResourceRef<"sui", SuiClient & {
|
|
97
|
+
readonly mode: SuiOptions["mode"];
|
|
98
|
+
readonly seedObjects: SeedObjectsAccumulator;
|
|
99
|
+
}>], readonly [SnapshotableDecl, CodegenableDecl<"deepbook-network">]>;
|
|
100
|
+
declare const buildLocalPlugin: <const Publisher extends AccountMemberAlias, const Package extends DeepbookPackageMember, const Pools extends ReadonlyArray<DeepbookPoolSpec> = readonly [], const Pyth extends PythOptions | undefined = undefined>(opts: DeepbookLocalOptions<Publisher, Package, Pools, Pyth>) => Plugin<`deepbook/${string}`, DeepbookResolved, readonly [ResourceRef<"sui", SuiClient & {
|
|
101
|
+
readonly mode: SuiOptions["mode"];
|
|
102
|
+
readonly seedObjects: SeedObjectsAccumulator;
|
|
103
|
+
}>, Publisher, Package, ...PythRefs<Pyth>, ...PoolCoinRefTuple<Pools>], readonly [SnapshotableDecl, CodegenableDecl<"deepbook-network">]>;
|
|
104
|
+
declare const buildKnownPlugin: (opts: DeepbookKnownOptions) => Plugin<`deepbook/${string}`, DeepbookResolved, readonly [ResourceRef<"sui", SuiClient & {
|
|
105
|
+
readonly mode: SuiOptions["mode"];
|
|
106
|
+
readonly seedObjects: SeedObjectsAccumulator;
|
|
107
|
+
}>], readonly [SnapshotableDecl, CodegenableDecl<"deepbook-network">, ...StrategyContributorDecl<"coinType:0x36dbef866a1d62bf7328989a10fb2f07d769f4ee587c0de4a0a256e57e0a58a8::deep::DEEP", DeepbookDeepFundingStrategy>[]]>;
|
|
108
|
+
/** Env-driven factory. Defaults to local mode on localnet when passed local
|
|
109
|
+
* options. Explicit `override` and `known` modes bypass env inference. */
|
|
110
|
+
type DeepbookLocalMember<Publisher extends AccountMemberAlias, Package extends DeepbookPackageMember, Pools extends ReadonlyArray<DeepbookPoolSpec>, Pyth extends PythOptions | undefined = undefined> = ReturnType<typeof buildLocalPlugin<Publisher, Package, Pools, Pyth>>;
|
|
111
|
+
type DeepbookOverrideMember = ReturnType<typeof buildOverridePlugin>;
|
|
112
|
+
type DeepbookKnownMember = ReturnType<typeof buildKnownPlugin>;
|
|
113
|
+
declare function deepbookCore<const Publisher extends AccountMemberAlias, const Package extends DeepbookPackageMember, const Pyth extends PythOptions | undefined = undefined>(opts: {
|
|
114
|
+
readonly mode: 'local';
|
|
115
|
+
} & DeepbookLocalEmptyPoolOptions<Publisher, Package, Pyth>): DeepbookLocalMember<Publisher, Package, readonly [], Pyth>;
|
|
116
|
+
declare function deepbookCore<const Publisher extends AccountMemberAlias, const Package extends DeepbookPackageMember, const Pools extends ReadonlyArray<DeepbookPoolSpec> = readonly [], const Pyth extends PythOptions | undefined = undefined>(opts: {
|
|
117
|
+
readonly mode: 'local';
|
|
118
|
+
} & DeepbookLocalOptions<Publisher, Package, Pools, Pyth>): DeepbookLocalMember<Publisher, Package, Pools, Pyth>;
|
|
119
|
+
declare function deepbookCore(opts: {
|
|
120
|
+
readonly mode: 'override';
|
|
121
|
+
} & DeepbookOverrideOptions): DeepbookOverrideMember;
|
|
122
|
+
declare function deepbookCore(opts: {
|
|
123
|
+
readonly mode: 'known';
|
|
124
|
+
} & DeepbookKnownOptions): DeepbookKnownMember;
|
|
125
|
+
declare function deepbookCore<const Publisher extends AccountMemberAlias, const Package extends DeepbookPackageMember, const Pyth extends PythOptions | undefined = undefined>(opts: DeepbookLocalEmptyPoolOptions<Publisher, Package, Pyth>): DeepbookLocalMember<Publisher, Package, readonly [], Pyth>;
|
|
126
|
+
declare function deepbookCore<const Publisher extends AccountMemberAlias, const Package extends DeepbookPackageMember, const Pools extends ReadonlyArray<DeepbookPoolSpec> = readonly [], const Pyth extends PythOptions | undefined = undefined>(opts: DeepbookLocalOptions<Publisher, Package, Pools, Pyth>): DeepbookLocalMember<Publisher, Package, Pools, Pyth>;
|
|
127
|
+
/** Mode-narrowed factory namespace.
|
|
128
|
+
*
|
|
129
|
+
* Usage:
|
|
130
|
+
* const local = { mode: 'local', chain: 'sui:localnet' } as const;
|
|
131
|
+
* deepbookFor(local).local({publisher, package, pools}) // OK
|
|
132
|
+
* deepbookFor(local).override({packageId, registryId, adminCapId}) // OK
|
|
133
|
+
* deepbookFor(local).known({...}) // OK
|
|
134
|
+
*
|
|
135
|
+
* const fork = { mode: 'fork', chain: 'sui:mainnet-fork', upstream: 'mainnet' } as const;
|
|
136
|
+
* deepbookFor(fork).local({...}) // COMPILE ERROR
|
|
137
|
+
* deepbookFor(fork).override({...}) // COMPILE ERROR
|
|
138
|
+
*
|
|
139
|
+
* The fork branch has NO `.local` or `.override` entry — `deepbookFor(forkNetwork).local`
|
|
140
|
+
* is a compile-time refusal. */
|
|
141
|
+
declare const deepbookFor: ModeNamespace<{
|
|
142
|
+
local: {
|
|
143
|
+
local: <const Publisher extends AccountMemberAlias, const Package extends DeepbookPackageMember, const Pools extends ReadonlyArray<DeepbookPoolSpec> = readonly [], const Pyth extends PythOptions | undefined = undefined>(opts: DeepbookLocalOptions<Publisher, Package, Pools, Pyth>) => Plugin<`deepbook/${string}`, DeepbookResolved, readonly [ResourceRef<"sui", SuiClient & {
|
|
144
|
+
readonly mode: SuiOptions["mode"];
|
|
145
|
+
readonly seedObjects: SeedObjectsAccumulator;
|
|
146
|
+
}>, Publisher, Package, ...PythRefs<Pyth>, ...PoolCoinRefTuple<Pools>], readonly [SnapshotableDecl, CodegenableDecl<"deepbook-network">]>;
|
|
147
|
+
override: (opts: DeepbookOverrideOptions) => Plugin<`deepbook/${string}`, DeepbookResolved, readonly [ResourceRef<"sui", SuiClient & {
|
|
148
|
+
readonly mode: SuiOptions["mode"];
|
|
149
|
+
readonly seedObjects: SeedObjectsAccumulator;
|
|
150
|
+
}>], readonly [SnapshotableDecl, CodegenableDecl<"deepbook-network">]>;
|
|
151
|
+
known: (opts: DeepbookKnownOptions) => Plugin<`deepbook/${string}`, DeepbookResolved, readonly [ResourceRef<"sui", SuiClient & {
|
|
152
|
+
readonly mode: SuiOptions["mode"];
|
|
153
|
+
readonly seedObjects: SeedObjectsAccumulator;
|
|
154
|
+
}>], readonly [SnapshotableDecl, CodegenableDecl<"deepbook-network">, ...StrategyContributorDecl<"coinType:0x36dbef866a1d62bf7328989a10fb2f07d769f4ee587c0de4a0a256e57e0a58a8::deep::DEEP", DeepbookDeepFundingStrategy>[]]>;
|
|
155
|
+
};
|
|
156
|
+
live: {
|
|
157
|
+
known: (opts: DeepbookKnownOptions) => Plugin<`deepbook/${string}`, DeepbookResolved, readonly [ResourceRef<"sui", SuiClient & {
|
|
158
|
+
readonly mode: SuiOptions["mode"];
|
|
159
|
+
readonly seedObjects: SeedObjectsAccumulator;
|
|
160
|
+
}>], readonly [SnapshotableDecl, CodegenableDecl<"deepbook-network">, ...StrategyContributorDecl<"coinType:0x36dbef866a1d62bf7328989a10fb2f07d769f4ee587c0de4a0a256e57e0a58a8::deep::DEEP", DeepbookDeepFundingStrategy>[]]>;
|
|
161
|
+
};
|
|
162
|
+
fork: {
|
|
163
|
+
known: (opts: DeepbookKnownOptions) => Plugin<`deepbook/${string}`, DeepbookResolved, readonly [ResourceRef<"sui", SuiClient & {
|
|
164
|
+
readonly mode: SuiOptions["mode"];
|
|
165
|
+
readonly seedObjects: SeedObjectsAccumulator;
|
|
166
|
+
}>], readonly [SnapshotableDecl, CodegenableDecl<"deepbook-network">, ...StrategyContributorDecl<"coinType:0x36dbef866a1d62bf7328989a10fb2f07d769f4ee587c0de4a0a256e57e0a58a8::deep::DEEP", DeepbookDeepFundingStrategy>[]]>;
|
|
167
|
+
};
|
|
168
|
+
}>;
|
|
169
|
+
//#endregion
|
|
170
|
+
export { DeepbookCommonOptions, DeepbookKnownNetwork, DeepbookKnownOptions, DeepbookOptions, DeepbookOverrideOptions, DeepbookResolved, deepbookCore, deepbookFor };
|
|
171
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { definePlugin, resource } from "../../substrate/plugin.mjs";
|
|
2
|
+
import { pluginErrorContributions } from "../../api/plugin-errors.mjs";
|
|
3
|
+
import { defineModeNamespace } from "../../api/mode-narrowed-factory.mjs";
|
|
4
|
+
import { setCurrentPluginPhase } from "../../substrate/runtime/current-plugin.mjs";
|
|
5
|
+
import { suiResource } from "../sui/index.mjs";
|
|
6
|
+
import { ArtifactPublisherService } from "../../substrate/runtime/artifact-publisher/index.mjs";
|
|
7
|
+
import { deepbookPluginKey } from "./plugin-key.mjs";
|
|
8
|
+
import { DEEPBOOK_ERROR_TAGS, deepbookConfigError, deepbookPluginError } from "./errors.mjs";
|
|
9
|
+
import { makeDeepbookCodegenable } from "./codegen.mjs";
|
|
10
|
+
import { makeDeepbookDeepFundingContribution, makeDeepbookDeepFundingStrategy } from "./faucet-strategy.mjs";
|
|
11
|
+
import { makeKnownSnapshotable, makeLocalSnapshotable } from "./snapshot.mjs";
|
|
12
|
+
import { createDeepbookPools, seedDeepbookPools } from "./deploy.mjs";
|
|
13
|
+
import "./types.mjs";
|
|
14
|
+
import { initLocalPythFeeds } from "./pyth/index.mjs";
|
|
15
|
+
import { Effect } from "effect";
|
|
16
|
+
//#region src/plugins/deepbook/index.ts
|
|
17
|
+
const makeDeepbookResource = (name) => resource(`deepbook/${name}`);
|
|
18
|
+
const DEFAULT_NAME = "deepbook";
|
|
19
|
+
const deepbookErrorContributions = pluginErrorContributions(DEEPBOOK_ERROR_TAGS);
|
|
20
|
+
const KNOWN_DEEPBOOK_DEPLOYMENTS = {
|
|
21
|
+
testnet: {
|
|
22
|
+
chain: "sui:testnet",
|
|
23
|
+
packageId: "0x22be4cade64bf2d02412c7e8d0e8beea2f78828b948118d46735315409371a3c",
|
|
24
|
+
registryId: "0x7c256edbda983a2cd6f946655f4bf3f00a41043993781f8674a7046e8c0e11d1",
|
|
25
|
+
deepTreasuryId: "0x69fffdae0075f8f71f4fa793549c11079266910e8905169845af1f5d00e09dcb",
|
|
26
|
+
pyth: {
|
|
27
|
+
packageId: null,
|
|
28
|
+
stateId: "0x243759059f4c3111179da5878c12f68d612c21a8d54d85edc86164bb18be1c7c",
|
|
29
|
+
wormholeStateId: "0x31358d198147da50db32eda2562951d53973a0c0ad5ed738e9b17d88b213d790",
|
|
30
|
+
feeds: []
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
mainnet: {
|
|
34
|
+
chain: "sui:mainnet",
|
|
35
|
+
packageId: "0xf48222c4e057fa468baf136bff8e12504209d43850c5778f76159292a96f621e",
|
|
36
|
+
registryId: "0xaf16199a2dff736e9f07a845f23c5da6df6f756eddb631aed9d24a93efc4549d",
|
|
37
|
+
deepTreasuryId: "0x032abf8948dda67a271bcc18e776dbbcfb0d58c8d288a700ff0d5521e57a1ffe",
|
|
38
|
+
pyth: {
|
|
39
|
+
packageId: null,
|
|
40
|
+
stateId: "0x1f9310238ee9298fb703c3419030b35b22bb1cc37113e3bb5007c99aec79e5b8",
|
|
41
|
+
wormholeStateId: "0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c",
|
|
42
|
+
feeds: []
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const poolCoinRefs = (pools) => pools.flatMap((pool) => [pool.base.coin, pool.quote.coin]);
|
|
47
|
+
const pythRefs = (pyth) => pyth === void 0 ? [] : [pyth.pusher, pyth.package];
|
|
48
|
+
const localDependsOn = (opts) => [
|
|
49
|
+
suiResource,
|
|
50
|
+
opts.publisher,
|
|
51
|
+
opts.package,
|
|
52
|
+
...pythRefs(opts.pyth),
|
|
53
|
+
...poolCoinRefs(opts.pools)
|
|
54
|
+
];
|
|
55
|
+
const requireCapturedId = (pkg, key, kind) => {
|
|
56
|
+
const value = pkg.captured[key];
|
|
57
|
+
if (typeof value === "string" && value.length > 0) return Effect.succeed(value);
|
|
58
|
+
return Effect.fail(deepbookPluginError("publish", `deepbook local package '${pkg.name}' is missing captured ${kind} '${key}'.`));
|
|
59
|
+
};
|
|
60
|
+
const resolvePoolSpecs = (pools, coinValuesByRefId) => pools.map((pool) => {
|
|
61
|
+
const base = coinValuesByRefId.get(pool.base.coin.id);
|
|
62
|
+
const quote = coinValuesByRefId.get(pool.quote.coin.id);
|
|
63
|
+
return {
|
|
64
|
+
name: pool.name,
|
|
65
|
+
base: pool.base.key,
|
|
66
|
+
quote: pool.quote.key,
|
|
67
|
+
baseCoinType: base.fullCoinType,
|
|
68
|
+
quoteCoinType: quote.fullCoinType,
|
|
69
|
+
...base.fundingStrategy === void 0 ? {} : { baseFundingStrategy: base.fundingStrategy },
|
|
70
|
+
...quote.fundingStrategy === void 0 ? {} : { quoteFundingStrategy: quote.fundingStrategy },
|
|
71
|
+
tickSize: pool.tickSize,
|
|
72
|
+
lotSize: pool.lotSize,
|
|
73
|
+
minSize: pool.minSize,
|
|
74
|
+
whitelisted: pool.whitelisted ?? true,
|
|
75
|
+
stablePool: pool.stablePool ?? false,
|
|
76
|
+
...pool.seed === void 0 ? {} : { seed: pool.seed }
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
const assertUniquePoolNames = (name, pools) => {
|
|
80
|
+
const seen = /* @__PURE__ */ new Set();
|
|
81
|
+
for (const pool of pools) {
|
|
82
|
+
if (seen.has(pool.name)) throw deepbookConfigError("pools", `deepbook({mode:'local', name:'${name}'}) has duplicate pool '${pool.name}'.`, "Give each local DeepBook pool a unique SDK key.");
|
|
83
|
+
seen.add(pool.name);
|
|
84
|
+
for (const order of pool.seed?.orders ?? []) {
|
|
85
|
+
if (order.quantity < pool.minSize) throw deepbookConfigError("pools", `deepbook({mode:'local', name:'${name}'}) seed order for pool '${pool.name}' is below minSize.`, "Use a seed order quantity greater than or equal to the pool minSize.");
|
|
86
|
+
if (order.quantity % pool.lotSize !== 0n) throw deepbookConfigError("pools", `deepbook({mode:'local', name:'${name}'}) seed order for pool '${pool.name}' is not lot-aligned.`, "Use a seed order quantity divisible by the pool lotSize.");
|
|
87
|
+
if (order.price % pool.tickSize !== 0n) throw deepbookConfigError("pools", `deepbook({mode:'local', name:'${name}'}) seed order for pool '${pool.name}' is not tick-aligned.`, "Use a seed order price divisible by the pool tickSize.");
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const buildOverridePlugin = (opts) => {
|
|
92
|
+
const name = opts.name ?? DEFAULT_NAME;
|
|
93
|
+
if (!opts.packageId || !opts.registryId || !opts.adminCapId) throw deepbookConfigError("packageId", `deepbook({mode:'override', name:'${name}'}) requires packageId, registryId, and adminCapId.`, `Pass explicit deployment ids or use deepbook({mode:'known', network:'testnet'}).`);
|
|
94
|
+
const deepbookResource = makeDeepbookResource(name);
|
|
95
|
+
const snap = makeKnownSnapshotable({ name });
|
|
96
|
+
return definePlugin({
|
|
97
|
+
id: deepbookResource.id,
|
|
98
|
+
dependsOn: [suiResource],
|
|
99
|
+
role: "task",
|
|
100
|
+
pluginKey: deepbookPluginKey(name),
|
|
101
|
+
start: (deps) => Effect.sync(() => {
|
|
102
|
+
const [sui] = deps;
|
|
103
|
+
return {
|
|
104
|
+
mode: "override",
|
|
105
|
+
chain: opts.chain ?? sui.chain,
|
|
106
|
+
packageId: opts.packageId,
|
|
107
|
+
registryId: opts.registryId,
|
|
108
|
+
adminCapId: opts.adminCapId,
|
|
109
|
+
deepTreasuryId: null,
|
|
110
|
+
pools: [],
|
|
111
|
+
pyth: null,
|
|
112
|
+
margin: null,
|
|
113
|
+
serverUrl: null,
|
|
114
|
+
indexerUrl: null,
|
|
115
|
+
marketMakerRunning: false,
|
|
116
|
+
deepFundingStrategy: null
|
|
117
|
+
};
|
|
118
|
+
}),
|
|
119
|
+
capabilities: ({ value: resolved }) => {
|
|
120
|
+
return [snap, makeDeepbookCodegenable({
|
|
121
|
+
name,
|
|
122
|
+
chain: resolved.chain,
|
|
123
|
+
packageId: resolved.packageId,
|
|
124
|
+
registryId: resolved.registryId,
|
|
125
|
+
adminCapId: resolved.adminCapId,
|
|
126
|
+
deepTreasuryId: resolved.deepTreasuryId,
|
|
127
|
+
pools: [],
|
|
128
|
+
pyth: null,
|
|
129
|
+
margin: null,
|
|
130
|
+
serverUrl: null,
|
|
131
|
+
indexerUrl: null
|
|
132
|
+
})];
|
|
133
|
+
},
|
|
134
|
+
errorContributions: deepbookErrorContributions
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
const buildLocalPlugin = (opts) => {
|
|
138
|
+
const name = opts.name ?? DEFAULT_NAME;
|
|
139
|
+
if (!opts.package) throw deepbookConfigError("packageId", `deepbook({mode:'local', name:'${name}'}) requires a DeepBook package ref.`, `Pass \`package: <localPackageMember>\` with captured registryId/adminCapId.`);
|
|
140
|
+
assertUniquePoolNames(name, opts.pools);
|
|
141
|
+
const deepbookResource = makeDeepbookResource(name);
|
|
142
|
+
const dependsOn = localDependsOn(opts);
|
|
143
|
+
return definePlugin({
|
|
144
|
+
id: deepbookResource.id,
|
|
145
|
+
dependsOn,
|
|
146
|
+
role: "task",
|
|
147
|
+
pluginKey: deepbookPluginKey(name),
|
|
148
|
+
start: (deps) => Effect.gen(function* () {
|
|
149
|
+
const [sui, publisher, deepbookPackage, ...extraValues] = deps;
|
|
150
|
+
const pythValueCount = opts.pyth === void 0 ? 0 : 2;
|
|
151
|
+
const pythValues = extraValues.slice(0, pythValueCount);
|
|
152
|
+
const coinValues = extraValues.slice(pythValueCount);
|
|
153
|
+
yield* Effect.annotateCurrentSpan({
|
|
154
|
+
"deepbook.name": name,
|
|
155
|
+
"deepbook.chain": sui.chain,
|
|
156
|
+
"deepbook.publisher": publisher.address
|
|
157
|
+
});
|
|
158
|
+
yield* setCurrentPluginPhase("reading deployment captures");
|
|
159
|
+
const registryId = yield* requireCapturedId(deepbookPackage, opts.registryIdKey ?? "registryId", "registryId");
|
|
160
|
+
const adminCapId = yield* requireCapturedId(deepbookPackage, opts.adminCapIdKey ?? "adminCapId", "adminCapId");
|
|
161
|
+
const deepTreasuryId = opts.deepTreasuryIdKey === void 0 ? null : deepbookPackage.captured[opts.deepTreasuryIdKey] ?? null;
|
|
162
|
+
const deployment = {
|
|
163
|
+
packageId: deepbookPackage.packageId,
|
|
164
|
+
registryId,
|
|
165
|
+
adminCapId,
|
|
166
|
+
deepTreasuryId
|
|
167
|
+
};
|
|
168
|
+
const poolRefs = poolCoinRefs(opts.pools);
|
|
169
|
+
const coinValuesByRefId = /* @__PURE__ */ new Map();
|
|
170
|
+
for (let i = 0; i < poolRefs.length; i += 1) {
|
|
171
|
+
const ref = poolRefs[i];
|
|
172
|
+
const value = coinValues[i];
|
|
173
|
+
if (ref !== void 0 && value !== void 0) coinValuesByRefId.set(ref.id, value);
|
|
174
|
+
}
|
|
175
|
+
const poolSpecs = resolvePoolSpecs(opts.pools, coinValuesByRefId);
|
|
176
|
+
const artifactPublisher = yield* ArtifactPublisherService;
|
|
177
|
+
yield* setCurrentPluginPhase(opts.pyth === void 0 ? "creating pools" : "initializing Pyth feeds");
|
|
178
|
+
const pyth = opts.pyth === void 0 ? null : yield* initLocalPythFeeds(artifactPublisher, sui.sdk, sui.chain, pythValues[0], { packageId: pythValues[1].packageId }, opts.pyth.feeds);
|
|
179
|
+
yield* setCurrentPluginPhase("creating pools");
|
|
180
|
+
const poolResult = yield* createDeepbookPools(artifactPublisher, sui.sdk, sui.chain, publisher, deployment, poolSpecs);
|
|
181
|
+
yield* setCurrentPluginPhase("seeding pools");
|
|
182
|
+
const seedResults = yield* seedDeepbookPools(artifactPublisher, sui.sdk, sui.chain, publisher, deployment, poolSpecs, poolResult.pools);
|
|
183
|
+
yield* setCurrentPluginPhase(null);
|
|
184
|
+
return {
|
|
185
|
+
mode: "local",
|
|
186
|
+
chain: sui.chain,
|
|
187
|
+
packageId: deployment.packageId,
|
|
188
|
+
registryId: deployment.registryId,
|
|
189
|
+
adminCapId: deployment.adminCapId,
|
|
190
|
+
deepTreasuryId,
|
|
191
|
+
pools: poolResult.pools,
|
|
192
|
+
pyth,
|
|
193
|
+
margin: null,
|
|
194
|
+
serverUrl: null,
|
|
195
|
+
indexerUrl: null,
|
|
196
|
+
marketMakerRunning: seedResults.length > 0,
|
|
197
|
+
deepFundingStrategy: null
|
|
198
|
+
};
|
|
199
|
+
}).pipe(Effect.catch((err) => {
|
|
200
|
+
if (typeof err === "object" && err !== null && "_tag" in err && (err._tag === "DeepbookPluginError" || err._tag === "DeepbookConfigError" || err._tag === "ForkIncompatibleError")) return Effect.fail(err);
|
|
201
|
+
return Effect.fail(deepbookPluginError("publish", `deepbook acquire failed: ${String(err)}`));
|
|
202
|
+
})),
|
|
203
|
+
capabilities: ({ value: resolved, runtime: acquireCtx }) => {
|
|
204
|
+
return [makeLocalSnapshotable({
|
|
205
|
+
name,
|
|
206
|
+
app: acquireCtx.identity.app,
|
|
207
|
+
stack: acquireCtx.identity.stack,
|
|
208
|
+
indexerEnabled: false,
|
|
209
|
+
serverEnabled: false
|
|
210
|
+
}), makeDeepbookCodegenable({
|
|
211
|
+
name,
|
|
212
|
+
chain: resolved.chain,
|
|
213
|
+
packageId: resolved.packageId,
|
|
214
|
+
registryId: resolved.registryId,
|
|
215
|
+
adminCapId: resolved.adminCapId,
|
|
216
|
+
deepTreasuryId: resolved.deepTreasuryId,
|
|
217
|
+
pools: resolved.pools.map((p) => ({
|
|
218
|
+
name: p.name,
|
|
219
|
+
poolId: p.poolId,
|
|
220
|
+
base: p.base,
|
|
221
|
+
quote: p.quote,
|
|
222
|
+
baseCoinType: p.baseCoinType,
|
|
223
|
+
quoteCoinType: p.quoteCoinType
|
|
224
|
+
})),
|
|
225
|
+
pyth: resolved.pyth ? {
|
|
226
|
+
packageId: resolved.pyth.packageId,
|
|
227
|
+
stateId: resolved.pyth.stateId,
|
|
228
|
+
wormholeStateId: resolved.pyth.wormholeStateId,
|
|
229
|
+
feeds: resolved.pyth.feeds.map((feed) => ({
|
|
230
|
+
symbol: feed.symbol,
|
|
231
|
+
feedId: feed.feedId,
|
|
232
|
+
priceInfoObjectId: feed.priceInfoObjectId,
|
|
233
|
+
price: feed.price.toString(),
|
|
234
|
+
expo: feed.expo
|
|
235
|
+
}))
|
|
236
|
+
} : null,
|
|
237
|
+
margin: resolved.margin,
|
|
238
|
+
serverUrl: resolved.serverUrl,
|
|
239
|
+
indexerUrl: resolved.indexerUrl
|
|
240
|
+
})];
|
|
241
|
+
},
|
|
242
|
+
errorContributions: deepbookErrorContributions
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
function buildLocalPluginPublic(opts) {
|
|
246
|
+
return buildLocalPlugin(opts);
|
|
247
|
+
}
|
|
248
|
+
const buildKnownPlugin = (opts) => {
|
|
249
|
+
const name = opts.name ?? DEFAULT_NAME;
|
|
250
|
+
const known = opts.network ? KNOWN_DEEPBOOK_DEPLOYMENTS[opts.network] : null;
|
|
251
|
+
const packageId = opts.packageId ?? known?.packageId;
|
|
252
|
+
const registryId = opts.registryId ?? known?.registryId;
|
|
253
|
+
if (!packageId || !registryId) throw deepbookConfigError("packageId", `deepbook({mode:'known', name:'${name}'}) requires packageId and registryId, or network:'mainnet'|'testnet'.`, `Pass explicit ids or use deepbook({mode:'known', network:'testnet'}).`);
|
|
254
|
+
const deepbookResource = makeDeepbookResource(name);
|
|
255
|
+
const snap = makeKnownSnapshotable({ name });
|
|
256
|
+
return definePlugin({
|
|
257
|
+
id: deepbookResource.id,
|
|
258
|
+
dependsOn: [suiResource],
|
|
259
|
+
role: "task",
|
|
260
|
+
start: (deps) => Effect.sync(() => {
|
|
261
|
+
const [sui] = deps;
|
|
262
|
+
const chain = opts.chain ?? known?.chain ?? sui.chain;
|
|
263
|
+
return {
|
|
264
|
+
mode: "known",
|
|
265
|
+
chain,
|
|
266
|
+
packageId,
|
|
267
|
+
registryId,
|
|
268
|
+
adminCapId: null,
|
|
269
|
+
deepTreasuryId: known?.deepTreasuryId ?? null,
|
|
270
|
+
pools: [],
|
|
271
|
+
pyth: known?.pyth ?? null,
|
|
272
|
+
margin: null,
|
|
273
|
+
serverUrl: null,
|
|
274
|
+
indexerUrl: null,
|
|
275
|
+
marketMakerRunning: false,
|
|
276
|
+
deepFundingStrategy: opts.network === "testnet" && String(chain) === "sui:testnet" ? makeDeepbookDeepFundingStrategy({ suiSdk: sui.sdk }) : null
|
|
277
|
+
};
|
|
278
|
+
}),
|
|
279
|
+
capabilities: ({ value: resolved }) => {
|
|
280
|
+
const bindings = {
|
|
281
|
+
name,
|
|
282
|
+
chain: resolved.chain,
|
|
283
|
+
packageId: resolved.packageId,
|
|
284
|
+
registryId: resolved.registryId,
|
|
285
|
+
adminCapId: null,
|
|
286
|
+
deepTreasuryId: resolved.deepTreasuryId,
|
|
287
|
+
pools: [],
|
|
288
|
+
pyth: resolved.pyth ? {
|
|
289
|
+
packageId: resolved.pyth.packageId,
|
|
290
|
+
stateId: resolved.pyth.stateId,
|
|
291
|
+
wormholeStateId: resolved.pyth.wormholeStateId,
|
|
292
|
+
feeds: resolved.pyth.feeds.map((feed) => ({
|
|
293
|
+
symbol: feed.symbol,
|
|
294
|
+
feedId: feed.feedId,
|
|
295
|
+
priceInfoObjectId: feed.priceInfoObjectId,
|
|
296
|
+
price: feed.price.toString(),
|
|
297
|
+
expo: feed.expo
|
|
298
|
+
}))
|
|
299
|
+
} : null,
|
|
300
|
+
margin: null,
|
|
301
|
+
serverUrl: null,
|
|
302
|
+
indexerUrl: null
|
|
303
|
+
};
|
|
304
|
+
const deepFunding = resolved.deepFundingStrategy === null ? [] : [makeDeepbookDeepFundingContribution(resolved.deepFundingStrategy)];
|
|
305
|
+
return [
|
|
306
|
+
snap,
|
|
307
|
+
makeDeepbookCodegenable(bindings),
|
|
308
|
+
...deepFunding
|
|
309
|
+
];
|
|
310
|
+
},
|
|
311
|
+
errorContributions: deepbookErrorContributions
|
|
312
|
+
});
|
|
313
|
+
};
|
|
314
|
+
const resolveDefaultMode = (opts) => {
|
|
315
|
+
const env = globalThis.process?.env?.DEVSTACK_NETWORK;
|
|
316
|
+
if (env === void 0 || env === "localnet") {
|
|
317
|
+
if (!opts || !opts.publisher) throw deepbookConfigError("publisher", `deepbook() on localnet requires \`publisher\` and \`package\` member refs.`, `Pass options via deepbook({mode:'local', publisher, package: deepbookPackage, ...}).`);
|
|
318
|
+
return {
|
|
319
|
+
mode: "local",
|
|
320
|
+
...opts
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
throw deepbookConfigError("mode", `deepbook(): cannot auto-default to known mode on network='${env}'.`, `Use deepbookFor(network).known({packageId, registryId, ...}).`);
|
|
324
|
+
};
|
|
325
|
+
function deepbookCore(opts) {
|
|
326
|
+
const resolved = opts !== void 0 && "mode" in opts ? opts : resolveDefaultMode(opts);
|
|
327
|
+
switch (resolved.mode) {
|
|
328
|
+
case "local": return buildLocalPluginPublic(resolved);
|
|
329
|
+
case "override": return buildOverridePlugin(resolved);
|
|
330
|
+
case "known": return buildKnownPlugin(resolved);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
/** Mode-narrowed factory namespace.
|
|
334
|
+
*
|
|
335
|
+
* Usage:
|
|
336
|
+
* const local = { mode: 'local', chain: 'sui:localnet' } as const;
|
|
337
|
+
* deepbookFor(local).local({publisher, package, pools}) // OK
|
|
338
|
+
* deepbookFor(local).override({packageId, registryId, adminCapId}) // OK
|
|
339
|
+
* deepbookFor(local).known({...}) // OK
|
|
340
|
+
*
|
|
341
|
+
* const fork = { mode: 'fork', chain: 'sui:mainnet-fork', upstream: 'mainnet' } as const;
|
|
342
|
+
* deepbookFor(fork).local({...}) // COMPILE ERROR
|
|
343
|
+
* deepbookFor(fork).override({...}) // COMPILE ERROR
|
|
344
|
+
*
|
|
345
|
+
* The fork branch has NO `.local` or `.override` entry — `deepbookFor(forkNetwork).local`
|
|
346
|
+
* is a compile-time refusal. */
|
|
347
|
+
const deepbookFor = defineModeNamespace({
|
|
348
|
+
local: {
|
|
349
|
+
local: (opts) => buildLocalPluginPublic(opts),
|
|
350
|
+
override: (opts) => buildOverridePlugin(opts),
|
|
351
|
+
known: (opts) => buildKnownPlugin(opts)
|
|
352
|
+
},
|
|
353
|
+
live: { known: (opts) => buildKnownPlugin(opts) },
|
|
354
|
+
fork: { known: (opts) => buildKnownPlugin(opts) }
|
|
355
|
+
});
|
|
356
|
+
//#endregion
|
|
357
|
+
export { deepbookCore, deepbookFor };
|
|
358
|
+
|
|
359
|
+
//# sourceMappingURL=index.mjs.map
|