Configuration

All project configuration for web3market-kit is defined in a single file: kit.config.ts at the root of your project. This file uses the defineConfig() helper from @web3marketlabs/config for full type safety and editor autocompletion.

import { defineConfig } from '@web3marketlabs/config'
 
export default defineConfig({
  contracts: { framework: 'foundry' },
  chains: { default: 'sepolia' },
  codegen: { hooks: true },
})

The defineConfig() function provides TypeScript autocompletion and type checking but does not transform the config object. Validation happens at load time via Zod schemas.

The configuration file is loaded at runtime using jiti for TypeScript transpilation and validated against Zod schemas from @web3marketlabs/config. Every CLI command, code generation step, and deployment pipeline reads from this single source of truth.