@tevm/primitives
v1.0.0-next.142
Published
Core primitive types for tevm
Maintainers
Readme
@tevm/primitives
Core primitive types for Tevm built with Effect Schema.
Installation
Primitive types can be imported from tevm/primitives or @tevm/primitives
npm install tevmor
npm install @tevm/primitivesUsage
The @tevm/primitives package provides type-safe schemas built with Effect Schema for Ethereum types.
import { Address } from '@tevm/primitives'
// Validate an Ethereum address
const result = Address.parse('0x1234567890123456789012345678901234567890')Features
- Type-safe Ethereum primitive types using Effect Schema
- Runtime validation of Ethereum addresses, hashes, and hex values
- Seamless integration with the Effect.ts ecosystem
