Skip to content

Release v0.2.1

Choose a tag to compare

@github-actions github-actions released this 09 Oct 21:08

πŸŽ‰ Zigeth v0.2.1

A complete Ethereum library for Zig!

πŸ“‹ What's Changed

  • chore: bump version to v0.2.1 [skip ci] (fa7c105)
  • fix: Fixed memory leaks error (1ebf37c)
  • fix: Fixed segmentation faults (aefa173)
  • chore: bump version to v0.2.0 [skip ci] (b1dcad0)

πŸ“Š Library Status

  • βœ… 334 tests passing
  • βœ… 100% feature complete
  • βœ… 12/12 modules production-ready
  • βœ… 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

πŸš€ 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.2.1.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!