Skip to content

Release v0.3.0

Choose a tag to compare

@github-actions github-actions released this 13 Oct 12:07

πŸŽ‰ Zigeth v0.3.0

A complete Ethereum library for Zig!

πŸ“‹ What's Changed

  • chore: bump version to v0.3.0 (e82dbd5)
  • feat: Added proper error handling and updated readme to provide better documentation (1875ada)
  • fix: Updated auto release (442f45d)
  • feat: Added new account absctraction example (c9ab465)
  • feat: Added full account abstraction functionality and an example program (00066ec)
  • feat: Added functionality of functions of gas.zig (4798e79)
  • feat: Added implementation for functions in entrypoint.zig (058a0bf)
  • feat: Added implementation for functions in bundler.zig (8efa3db)
  • feat: Added example code (352043c)
  • feat: Added stub implementations for account_abstraction package (e6fb366)
  • chore: bump version to v0.2.1 [skip ci] (3e9f14c)

πŸ“Š Library Status

  • βœ… 334 tests passing
  • βœ… 100% feature complete
  • βœ… 13/13 modules production-ready
  • βœ… ERC-4337 Account Abstraction support
  • βœ… Integrated with Etherspot v2 API

Modules

Module Status Tests Description
🎯 Primitives βœ… 48 Address, Hash, Bytes, Signature, U256, Bloom
πŸ“¦ Types βœ… 23 Transaction, Block, Receipt, Log
πŸ” Crypto βœ… 27 Keccak-256, secp256k1, ECDSA
πŸ“‘ ABI βœ… 23 Encoding, Decoding, EIP-712
πŸ“ Contract βœ… 19 Calls, Deploy, Events
πŸ“œ RLP βœ… 36 Encoding, Decoding
🌐 RPC βœ… 27 Full JSON-RPC client
πŸ”Œ Providers βœ… 26 HTTP, WebSocket, IPC, Mock
🧰 Utils βœ… 35 Hex, Format, Units, Checksum
⚑ Solidity βœ… 15 Type mappings, Interfaces
βš™οΈ Middleware βœ… 23 Gas, Nonce, Signing
πŸ”‘ Wallets βœ… 35 Software, HD, Keystore, Ledger
🎯 Account Abstraction βœ… - ERC-4337 v0.6/v0.7/v0.8, Bundler, Paymaster

πŸš€ Quick Start

const zigeth = @import("zigeth");

// Create a wallet
var wallet = try zigeth.signer.Wallet.generate(allocator);

// Connect to Ethereum
var provider = try zigeth.providers.Networks.mainnet(allocator);
defer provider.deinit();

// Get balance
const balance = try provider.getBalance(address);

πŸ“₯ Installation

Add to your build.zig.zon:

.dependencies = .{
    .zigeth = .{
        .url = "https://github.com/ch4r10t33r/zigeth/archive/v0.3.0.tar.gz",
        .hash = "...", // zig will provide this
    },
},

πŸ“š Documentation

Full documentation: https://github.com/ch4r10t33r/zigeth#readme

🌐 Supported Networks

  • Ethereum (Mainnet, Sepolia)
  • Polygon
  • Arbitrum
  • Optimism
  • Base
  • Custom RPCs

All using Etherspot v2 API endpoints!