Skill — Copyable reference implementation. Use as-is or customize. See Skills Philosophy.
Why Effect.ts + Voltaire?
Type-Safe Error Channels
Voltaire’s errors all have a typesafename property, making them perfect for Effect’s typed error channels:
Schema Validation for Branded Types
Use Effect Schema to validate and decode branded types:Planned Implementation
Effect Wrappers for Voltaire Functions
Address Module with Effect
Transaction Pipeline
Provider with Effect
Error Recovery
Key Benefits
| Feature | Benefit |
|---|---|
| Typed Errors | Know exactly what can fail at compile time |
| Composable | Chain operations with pipe and flatMap |
| Retries | Built-in retry policies for network operations |
| Interruption | Cancel long-running operations cleanly |
| Concurrency | Parallel operations with resource limits |
| Telemetry | Built-in tracing and metrics |
Error Types Reference
Voltaire’s errors are organized hierarchically, making them easy to match:name: Typesafe discriminator (e.g.,"InvalidFormatError")code: Programmatic error code (e.g.,"INVALID_FORMAT")message: Human-readable descriptioncontext: Optional debugging metadata
Related
- react-query — React integration
- ethers-provider — Provider implementation
- sign-verify-messages — Message signing

