mirror of
https://github.com/morluto/rea.git
synced 2026-12-02 11:33:10 +00:00
24 lines
1.0 KiB
TypeScript
24 lines
1.0 KiB
TypeScript
import { EvmInterfaceService } from "../application/evm/EvmInterfaceService.js";
|
|
import { EvmoleInterfaceProvider } from "../evm/EvmoleInterfaceProvider.js";
|
|
import { HOST_PLATFORM, type HostPlatform } from "../platform/HostPlatform.js";
|
|
import { INSPECT_EVM_INTERFACE_CONTRACT } from "../contracts/evm/evmToolContracts.js";
|
|
|
|
/** Compose offline interface analysis without import-time I/O or dependency acquisition. */
|
|
export const createEvmInterfaceService = (
|
|
environment: Readonly<NodeJS.ProcessEnv> = process.env,
|
|
host: HostPlatform = HOST_PLATFORM,
|
|
): EvmInterfaceService =>
|
|
new EvmInterfaceService(
|
|
new EvmoleInterfaceProvider(environment, undefined, undefined, host),
|
|
);
|
|
|
|
/**
|
|
* Static binding of the existing operation, command and fresh service factory.
|
|
* The host owns injected service identity and its retryable cleanup lifetime.
|
|
* Construction performs no acquisition, target I/O or import-time execution.
|
|
*/
|
|
export const evmInterfaceModule = {
|
|
contract: INSPECT_EVM_INTERFACE_CONTRACT,
|
|
create: createEvmInterfaceService,
|
|
} as const;
|