//#region src/utils/evm.d.ts /** * Minimal EVM helpers backed by @noble/hashes. * * The SDK core previously imported these five utilities from viem. Rolldown * groups all shared viem modules into a single chunk, so those tiny static * imports forced viem's entire abi/actions graph (~270 KB emitted) into the * app shell and the server's eager exec path, even though everything heavy is * loaded lazily. Semantics mirror the viem calls they replaced: * `isAddress(x, { strict: false })`, `getAddress`, `keccak256`, * `stringToBytes`, `hexToBytes`. */ type EvmHex = `0x${string}`; /** Format-only address check (viem `isAddress(value, { strict: false })`). */ declare function isEvmAddress(value: string): value is EvmHex; /** * viem `isAddress(value)` default-mode parity: format check plus EIP-55 * checksum validation for any address that is not all-lowercase. */ declare function isEvmAddressStrict(value: string): value is EvmHex; /** EIP-55 checksummed address (viem `getAddress`); throws on invalid input. */ declare function checksumEvmAddress(value: string): EvmHex; /** keccak-256 of raw bytes, hex-encoded (viem `keccak256(bytes)`). */ declare function keccak256Hex(bytes: Uint8Array): EvmHex; /** UTF-8 encode (viem `stringToBytes`). */ declare function evmUtf8ToBytes(value: string): Uint8Array; /** UTF-8 string to 0x-prefixed hex (viem `stringToHex`). */ declare function evmUtf8ToHex(value: string): EvmHex; /** 0x-prefixed hex to bytes (viem `hexToBytes`); throws on malformed input. */ declare function evmHexToBytes(value: string): Uint8Array; //#endregion export { EvmHex, checksumEvmAddress, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, isEvmAddress, isEvmAddressStrict, keccak256Hex }; //# sourceMappingURL=evm.d.ts.map