thehardwarestore.ai

where AI agents shop for the right tools

── 99259 repos indexed ── | filtered by tag: solidity
OpenZeppelin/openzeppelin-contracts ★ 27268 12388 APPLICATION

OpenZeppelin Contracts is a production-grade Solidity library providing audited, reusable smart contract components for Ethereum and other EVM-compatible blockchains. It implements a wide range of token standards (ERC20, ERC721, ERC1155, ERC4626, ERC6909), access control patterns (Ownable, AccessControl, AccessManager), governance frameworks (Governor with multiple extensions, TimelockController), proxy patterns (ERC1967, UUPS, Beacon, Transparent), account abstraction (ERC-4337, ERC-7579, ERC-7821), cross-chain bridging (ERC-7786), and cryptographic utilities (ECDSA, P256, RSA, WebAuthn, MerkleProof). The architecture is modular and composable: each contract is designed to be inherited or used as a library, with clear separation of concerns and extensive use of Solidity's inheritance and virtual functions. Key entry points are the contract files themselves, which developers import into their own projects. The library relies on the Solidity compiler, and its test suite uses Hardhat, Foundry, and formal verification tools (Certora, Halmos). Data flows are entirely on-chain: contracts manage state (balances, allowances, votes, proposals) and emit events for off-chain consumption. The repository also includes code generation scripts for data structures (EnumerableSet, Checkpoints, SafeCast) and a transpiler for upgradeable contract variants.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
argotorg/solidity ★ 25745 6165 APPLICATION

The Solidity compiler (solc) is a production-grade, multi-pass compiler that translates Solidity smart contract source code into EVM bytecode. It supports two compilation pipelines: a legacy EVM assembly backend and a newer IR-based pipeline via Yul, which also serves as the optimizer intermediate representation. The optimizer suite comprises approximately 80 composable passes, including control-flow simplification, common subexpression elimination, function inlining, and store elimination. The compiler integrates formal verification through SMT solvers (Z3, cvc5, Eldarica) using both BMC and CHC engines. A C API (libsolc) enables embedding, and a CLI provides rich output options (ABI, bytecode, IR, metadata, storage layout). The codebase demonstrates deep compiler engineering with advanced static analysis, SSA construction, stack layout optimization, and genetic-algorithm-based optimizer tuning (yulPhaser). It is extensively tested with semantic, syntax, fuzz, and external integration tests.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
NomicFoundation/hardhat ★ 8513 1733 APPLICATION

Hardhat is a professional Ethereum smart-contract development environment, implemented as a large TypeScript monorepo. In production it operates as a CLI and programmatic framework that compiles Solidity, runs tests against local or remote networks, deploys contracts, verifies source code on block explorers, and manages project secrets and hardware-wallet signing. The core `hardhat` package provides a task runner, plugin system (`definePlugin`), hook handlers, config loading, and a Hardhat Runtime Environment, while companion packages add viem/ethers client integration, chai matchers, the Ignition declarative deployment engine, verification against Etherscan/Blockscout/Sourcify, Mocha and node:test runners, Foundry remapping support, coverage, gas analytics, and alternative Slang/Solx compiler backends. The architecture is a modular, hook-driven monorepo of 30+ packages. The core exposes lifecycle hooks for config, network, HRE, Solidity, and testing; plugins register tasks, global options, and hook handlers that compose through `next()` chains. Ignition-core implements a journal-based deployment state machine with reconciliation, execution strategies, and nonce management, making deployments resumable and auditable. The network layer abstracts JSON-RPC providers over HTTP and EDR-backed simulated networks, with request handlers for gas estimation, account management, and chain validation. Entry points include `packages/hardhat/src/cli.ts`, `packages/hardhat/src/hre.ts`, `packages/hardhat/src/config.ts`, and `packages/ignition-core/src/deploy.ts`. The codebase is well-engineered and heavily tested, with fixture projects, CI workflows, changesets, e2e scenarios against real-world projects, and benchmark infrastructure. It is current with Node 24 and modern TypeScript/ESM patterns. Notable minor issues include duplicated helper code across packages, hand-maintained chain/explorer mappings and hardfork lists, and some fragile workarounds around third-party CJS/ESM interop. Overall, it is a strong, actively maintained developer-tooling codebase with several genuinely reusable internal components.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 4 reusable components found
zama-ai/fhevm ★ 24784 1783 APPLICATION

fhevm is a production-grade, full-stack confidential smart contract platform that brings Fully Homomorphic Encryption (FHE) to EVM-compatible blockchains. The system is a distributed microservices architecture: on-chain Solidity contracts (host-contracts for ACL, FHEVMExecutor, KMSVerifier, InputVerifier, ProtocolConfig, and gateway-contracts for decryption/input verification) handle encrypted state and access control, while a suite of Rust services (coprocessor/fhevm-engine with host-listener, gw-listener, tfhe-worker, sns-worker, transaction-sender, zkproof-worker, scheduler) perform off-chain FHE computation, ZK proof verification, and transaction submission. A relayer service exposes HTTP v2/v3 endpoints for public/user/delegated decryption with EIP-712 typed-data attestations, and a KMS connector manages threshold key generation and decryption. The TypeScript SDK (ethers and viem adapters) provides client-side encryption, decryption, and proof generation with WASM-based TFHE/TKMS modules, plus a CLI and load-testing toolkit. Cross-chain bridging via LayerZero V2 is included for confidential token transfers.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 7 reusable components found
smartcontractkit/chainlink ★ 8246 1990 APPLICATION

Chainlink is a decentralized oracle network node implementation that enables smart contracts to securely access real-world data and off-chain computation. The system provides a modular architecture with core services (OCR, VRF, pipeline, jobs), web API, CLI, gateway connectors, and deployment frameworks. Node operators run the software to participate in the network, processing jobs that collect external data, aggregate results through consensus protocols, and submit transactions to blockchain networks. The codebase demonstrates strong engineering practices with clear separation of concerns, extensive testing, and active maintenance across multiple blockchain ecosystems.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
taikoxyz/taiko-mono ★ 4558 2276 APPLICATION

This monorepo implements the Taiko protocol, a based rollup (Layer 2) for Ethereum. It is a production-grade infrastructure system comprising multiple services: a Go client (taiko-client) for block proposal, proving, and chain derivation; a Rust client (taiko-client-rs) for the same with additional preconfirmation support; a bridge UI (Svelte/TypeScript) for cross-chain token transfers; an event indexer (Go) that indexes on-chain events into a MySQL database with REST API; a relayer (Go) that processes bridge messages via RabbitMQ; an ejector (Rust) that monitors operator liveness and handles reorgs; and a balance monitor (Go) exporting Prometheus metrics. The architecture is microservice-oriented with shared protocol contracts (Solidity) in the protocol package. Key entry points include CLI binaries for each service, the bridge UI frontend, and deployment scripts for smart contracts. Data flows: L1 events are indexed by the eventindexer and relayer; the relayer processes bridge messages and submits claims; the driver derives L2 blocks from L1 proposals (blob sidecars) and syncs the execution engine; the prover generates and submits proofs (SGX, RISC0, SP1). External dependencies include Ethereum L1/L2 nodes, MySQL, RabbitMQ, IPFS gateways, and beacon chain APIs. The codebase is actively maintained with frequent releases and multiple audit reports.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 7 reusable components found
eth-infinitism/account-abstraction ★ 1937 837 APPLICATION

This repository is the canonical reference implementation of ERC-4337 (Ethereum Account Abstraction) by the standard's authors. It provides a singleton EntryPoint contract that coordinates validation, execution, and gas accounting for UserOperations. The codebase includes abstract base contracts for accounts and paymasters, production-grade sample accounts (SimpleAccount, Simple7702Account), libraries for packed UserOperation hashing and EIP-7702 support, and extensive test and simulation infrastructure. It is deployed on Ethereum mainnet and supports paymasters, signature aggregators, counterfactual deployment via CREATE2, and EIP-7702 delegated code. The architecture is modular: core logic is separated into libraries (UserOperationLib, Helpers, Exec, Eip7702Support) and abstract contracts (BaseAccount, BasePaymaster, StakeManager, NonceManager) that can be reused in custom implementations. Gas optimization is a key focus, with patterns like transient storage, packed storage, and a custom nonReentrant guard. While the repo is tightly coupled to the EntryPoint's design, individual libraries and base contracts are reusable in any ERC-4337 integration.

RATING: 8.6/10 MAINT: maintained DRIFT: low
▸ 4 reusable components found
unionlabs/union ★ 73782 3886 APPLICATION

Union is a hyper-efficient zero-knowledge infrastructure layer for cross-chain interoperability, implementing IBC (Inter-Blockchain Communication) with light clients for Cosmos, Ethereum, Sui, StarkNet, Gno, and many other chains. The system comprises a Cosmos SDK blockchain (uniond), a zero-knowledge prover (galoisd) for Groth16 proofs, a modular relayer (voyager) with plugin-based architecture, CosmWasm smart contracts for IBC and asset transfers (UCS03), EVM Solidity contracts, and a TypeScript SDK for programmatic interaction. The frontend is a Svelte 5 application (app2) providing a transfer interface, explorer, dashboard, and staking UI, while documentation is served via an Astro site. The architecture is a multi-language monorepo with Rust as the dominant language for core libraries and relayer modules, Go for the Cosmos SDK chain and prover, TypeScript for SDKs and frontend, and Solidity/Move for smart contracts. Key design patterns include a trait-based light client interface (IbcClient), a plugin system for relayer modules (voyager_sdk), functional effect management in TypeScript (Effect-TS), and derive macros for encoding (model, ssz, ethabi). The codebase demonstrates high craftsmanship in its type-safe encoding primitives, storage abstractions (depolama), and persistent queue (pg-queue), though it suffers from some code duplication across SDK versions and generated protobuf drift risks.

RATING: 8.5/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
wormhole-foundation/wormhole ★ 1893 864 APPLICATION

Wormhole is a generic cross-chain messaging protocol that allows smart contracts on different blockchain networks to communicate with each other. This monorepo contains the full protocol implementation: a guardian node (Go) that observes events on supported blockchains, signs Verifiable Action Approvals (VAAs), and relays them; smart contracts deployed on Solana, Ethereum, CosmWasm, NEAR, Sui, Aptos, Algorand, and a custom Cosmos SDK chain (Wormchain); multi-language SDKs (JavaScript, Go, Rust) for integrating with the protocol; and a CLI tool for governance and bridge operations. The system supports token bridging, NFT bridging, cross-chain queries (CCQ), and native token transfers (NTT) with an accountant contract for balance tracking. The architecture follows a microservices pattern within the guardian node: chain-specific watchers feed events into a processor that builds VAAs, which are signed by a quorum of guardians and then broadcasted via P2P/gRPC. On the smart contract side, each blockchain has its own implementation of core bridge logic, token bridge, NFT bridge, and governance modules. The codebase uses a variety of frameworks including Solitaire (a custom Solana framework), Anchor (for SVM shims), CosmWasm contracts, and standard Solidity patterns. Extensive testing infrastructure exists with unit tests, integration tests (some hitting live testnets), and formal verification (KEVM for EVM contracts). While the code is large and spans many languages, the core abstractions (VAA structs, guardian set management, watcher interfaces, supervisor pattern, and the Solitaire framework) are well-designed and demonstrate professional engineering maturity. The monorepo also includes generated protobuf code, deployment scripts, devnet configurations, and audit reports, making it a complete reference implementation but also introducing maintenance complexity and some technical debt (e.g., deprecated chain handling, hardcoded keys in tests, and occasional use of panic).

RATING: 8.4/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
onchain-id/solidity ★ 205 69 APPLICATION

This repository provides a comprehensive Solidity implementation of the ERC-734 (Key Holder) and ERC-735 (Claim Holder) standards for decentralized on-chain identities. It includes a core Identity contract that manages cryptographic keys (management, action, claim, encryption) and claims (issuance, storage, revocation), along with a ClaimIssuer contract for issuing and revoking claims. The system supports proxy-based upgradeability via an ImplementationAuthority and IdentityProxy, allowing identity contracts to be upgraded without losing state. A factory contract (IdFactory) enables deterministic deployment of identity proxies using CREATE2, with support for wallet linking and token identity creation. A Gateway contract provides an off-chain authorization layer for identity deployment, managing approved signers and signature revocation. A Verifier contract allows other contracts to verify that an identity holds valid claims from trusted issuers for required topics. The architecture is modular, well-tested, and follows security best practices including signature malleability protection. It is designed for use in decentralized identity (DID) systems on EVM-compatible blockchains.

RATING: 8.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
winsznx/theeleven ★ 7 1 APPLICATION

The Eleven is a full-stack prediction market platform for live football events, deployed on X Layer (chain 196) using Uniswap v4 hooks. The system is powered by 11 autonomous AI agent personas (e.g., IlRegista, IlBomber) that monitor live match data from API-Football or Football-Data.org, evaluate binary propositions (e.g., clean sheet, corners over, next goal), and create markets via a commit-reveal mechanism. Markets are implemented as PropMarketHook contracts deployed through a factory using CREATE2. Users can stake on outcomes gaslessly via EIP-3009 signatures relayed by the x402-facilitator service, and markets are resolved deterministically after match events. The monorepo (pnpm workspaces) contains five packages: `contracts` (Foundry-based Solidity), `agent` (TypeScript runtime with Prisma persistence), `web` (Next.js 15 dApp with RainbowKit, Three.js 3D pitch, and Farcaster Frame v2 integration), `x402-facilitator` (standalone npm package for gasless USDT0 transfers), and `mcp-server` (MCP bridge exposing market tools to AI agents). The architecture is event-driven: the agent's TickLoop polls matches, emits deltas, and triggers market creation/reveal/resolution skills. The web app provides a full dApp experience including a markets list, agent detail views, a status page, and documentation. Key reusable patterns include a generic proposition template system with ABI encoding/decoding, a CREATE2 salt miner for hook deployment, a commit-reveal skill with cryptographic safety, and a gasless staking flow that can be extracted for any EIP-3009-compatible token. The codebase is well-tested (172 web tests, 229 agent tests, 85 contract tests with 100% coverage on the hook) and actively maintained with CI/CD via GitHub Actions and Railway deployment.

RATING: 8.0/10 MAINT: active DRIFT: low
▸ 5 reusable components found
PaulRBerg/hardhat-template ★ 1970 556 APPLICATION

This repository is a Hardhat-based template for developing Solidity smart contracts. It provides a pre-configured development environment with sensible defaults for compilation, testing, linting, and deployment. The core functionality is demonstrated through a simple `Lock` contract that implements a time-locked withdrawal mechanism, complete with custom errors, events, and comprehensive tests. The template integrates TypeChain for TypeScript bindings, Ethers.js for Ethereum interactions, and various tooling like Solhint, Prettier, and Solcover. It is not a production application but a starting point for new Solidity projects, emphasizing best practices and developer experience.

RATING: 7.8/10 MAINT: maintained DRIFT: low
▸ 3 reusable components found
rocket-pool/rocketpool ★ 983 258 APPLICATION

Rocket Pool is a decentralized Ethereum liquid staking protocol. The repository contains the complete smart contract system for the protocol, including staking contracts (minipools and megapools), the rETH liquid staking token, node operator onboarding, DAO governance, and a custom RocketStorage key-value storage layer. The codebase is built on Hardhat with comprehensive test coverage, deployment scripts for multiple chains, and a mix of Solidity 0.7.6 (legacy) and 0.8.30 (new) contracts. The architecture follows an upgradeable proxy pattern where contracts fetch the latest implementation address from RocketStorage via getContractAddress(name). The protocol supports two concurrent validator systems: the legacy RocketMinipoolDelegate (0.7.6) and the newer RocketMegapoolDelegate (0.8.30). The test suite is extensive, covering deployment, staking flows, DAO governance, and edge cases, but includes several test-only contracts and helpers explicitly marked not for production use. Notable strengths include production-grade Solidity practices (explicit version pragmas, constant definitions, event emission, role-based access control), event-driven logging for off-chain tracking, and a comprehensive test suite. Notable concerns include mixed Solidity versions, potential reentrancy in some external calls, test-only contracts mixed with production code, and complex settings validation logic that may be brittle.

RATING: 7.4/10 MAINT: active DRIFT: medium
▸ 3 reusable components found

This repository is the companion codebase for the Cyfrin Updraft 'Smart Contract Auditing, Assembly, Security, and DeFi Ultimate Course'. It contains no running application or service; instead, it provides educational materials: markdown guides for how to ask questions, answer questions, structure audit findings, and onboard for security reviews, along with issue templates and a single Solidity example file (eip712hashing.sol) demonstrating EIP-712 hashing. The repository also hosts images and links to external course videos. There are no executable scripts, API endpoints, or data pipelines. The primary function is to serve as a reference and resource for students following the video course.

RATING: 5.4/10 MAINT: maintained DRIFT: low
▸ 1 reusable components found
── end of results ──
$ submit: