Skip to content

evmts/voltaire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6,617 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Ethereum primitives and cryptography

voltaire-logo

npm version zig version CI status MIT License Status: Beta


Try it now in live playground → For application development, we recommend voltaire-effect — Effect.ts integration with typed errors, services, and composable operations.

Introduction

Voltaire is an high performance robust Ethereum toolchain primarily built in Zig, but extended to support many other platforms including:

  • Zig (Production ready)
  • TypeScript (Production ready)
    • TS/Wasm
    • Native-Bun
    • Effect.ts
  • Python (Beta)
  • Rust (Beta)
  • Golang (Beta)
  • Swift (Beta)
  • Kotlin (Planned)

Featured API: voltaire-effect

Voltaire Effect is the production grade robust abstraction layer for blockchain application development for the institutional era of ethereum

import { Effect } from "effect";
import {
  ContractRegistryService,
  makeContractRegistry,
  Provider,
  HttpTransport,
} from "voltaire-effect";

const Contracts = makeContractRegistry({
  USDC: {
    abi: erc20Abi,
    address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  },
  WETH: {
    abi: erc20Abi,
    address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
  },
});

const program = Effect.gen(function* () {
  const { USDC, WETH } = yield* ContractRegistryService;
  const usdcBalance = yield* USDC.read.balanceOf(userAddress);
  const wethBalance = yield* WETH.read.balanceOf(userAddress);
  return { usdcBalance, wethBalance };
}).pipe(
  Effect.retry({ times: 3 }),
  Effect.timeout("10 seconds"),
  Effect.provide(Contracts),
  Effect.provide(Provider),
  Effect.provide(HttpTransport("https://eth.llamarpc.com")),
);

Features: Typed errors, dependency injection, composable operations, tree-shakeable.

Get started with voltaire-effect →

Dependencies

TypeScript: @noble/curves, @noble/hashes, @scure/bip32, @scure/bip39, abitype, ox, whatsabi

Native: blst, c-kzg-4844, arkworks


Links

Related projects:


AI Agent Skills

Install Voltaire skills for Claude Code, Codex, Cursor, and other AI agents:

Claude Code

git clone https://github.com/evmts/skills ~/.claude/skills/voltaire-skills

Then use /voltaire or /voltaire-effect in Claude Code.

OpenAI Codex

git clone https://github.com/evmts/skills ~/.codex/skills/voltaire-skills

See evmts/skills for full installation instructions.


MIT License - see LICENSE

About

Ethereum primitives and cryptography

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 8