The OpenZeppelin Uniswap Hooks Library v1.0 is now live π¦
This release introduces secure, modular hooks for Uniswap v4, making it easier for developers to build powerful applications on top of liquidity pools.
Here is what's in it π
The first release of the Hooks Contracts is divided in 3 sections:
β’ Base Hooks
β’ Fee Hooks
β’ Utilities
1οΈβ£ Base Hooks
These contracts provide core functionality and common patterns for secure, modular Uniswap hooks:
β’ BaseCustomAccounting: Custom accounting implementation, with support for swaps and liquidity management.
β’ BaseCustomCurve: Implementation for custom curves, built on top of custom accounting.
β’ BaseHook: Base implementation for hooks.
β’ BaseAsyncSwap: Implementation for asynchronous swaps.
2οΈβ£ Fee Hooks
These contracts manage and customize pool fees, featuring dynamic fee adjustments, fee overrides, and post-swap fee calculations:
β’ BaseDynamicFee: Applies a manual dynamic fee via the Uniswap PoolManager contract.
β’ BaseOverrideFee: Overrides and applies a fee automatically before swapping.
β’ BaseDynamicAfterFee: Overrides and applies a fee based on the delta after swapping.
3οΈβ£ Utilities
These libraries and general-purpose utilities help hook development:
β’ CurrencySettler: Library used to interact with the pool manager to settle any open delta, supporting ERC-6909 and native currencies.
Weβre excited to see what youβll build using the OpenZeppelin Uniswap Hooks Contracts π οΈ
Community feedback is very welcome as this is just the first release, and many new contracts are on the way.
π Big news! OpenZeppelin has received a grant from the @ethereum Foundation
Now, we will enhance AccountAbstraction via ERC-4337 in our battle-tested OpenZeppelin Contracts library.
Here's what we're building and why it matters. π§΅π
TRUSTED DEVELOPMENT FRAMEWORK
Since 2016, OpenZeppelin Contracts have been the go-to for smart contract development, securing trillions in transactions. Trusted across the ecosystem, from DeFi giants to individual builders π
MODULAR IMPLEMENTATIONS
This grant enables us to add modular ERC-4337 implementations, advancing Account Abstraction to help developers build more secure applications and flexible smart wallets. π»
OpenZeppelin Contracts 5.0 Release Candidate is now available for public testing π§ͺ
5.0 includes an all new AccessManager module for improved security and transparency, plus efficiency improvements and simplifications.
Bug bounty rewards increase by 50% during the RC phase.
Redefined Access Control π
AccessManager is a new and comprehensive solution for role management across contracts. Instead of having to manage them separately, AccessManager allows you to manage permissions from a central contract, also making your system easier to audit.
AccessManager built-ins
β° Permissions can be time locked by default βΒ no need for separate contracts.
π Governor DAOs can interact with contracts using AccessManager through GovernorTimelockAccess.
β‘οΈ Existing contracts can migrate to AccessManager without upgrades.
Did you know that you can use a collection of Forta detection bots to automatically analyze, inspect, and detect bugs on newly deployed Contracts?
Thread belowπ
The Contract Bots Gang is a collection of @FortaNetwork bots separated into three layers developed by our Security Research Experts at OpenZeppelin:
βοΈ Deconstruction layer
π‘ Detection layer
π Bug hunting layer
βοΈ: The Deconstruction layer right now is composed of a single Forta bot that inspects each transaction in the blockchain and reacts whenever the transaction contains a new smart contract deployment.
Introducing Contracts Wizard for Cairo! An interactive generator to bootstrap your smart contracts and learn about OpenZeppelin Contracts for Cairo.
A thread ββπ
What is Cairo: Contracts Wizard for Cairo is an interface to interactively build a smart contract out of components from OpenZeppelin Contracts for Cairo. Cairo is the native smart contract language for StarkNet, a decentralized ZK Rollup.
How to use: Select the kind of contract that you want, set your parameters and desired features (token name, symbol, premint amount, etc.), and Contracts Wizard for Cairo will generate all of the code necessary.
2 years ago, the DAO was hacked and we learned the importance of security in smart contract development the hard way. We created #OpenZeppelin to fill this gap
As of today, #OpenZeppelin libraries were downloaded 100,000+ times, leveraging a community of 4500+ developers. Still, smart contract development remains a difficult and inefficient endeavor, analogous to the early days of computing
We are now making @zeppelin_os the canonical smart contract development platform β improving the experience of developing, deploying* and managing** decentralized applications