npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

create3-proxy

v0.1.4

Published

Create3 deterministic addresses for Upgradeable Proxies

Downloads

3

Readme

CREATE3 for Upgradeable Proxies

GitHub license Build npm version

A Solidity library for deploying upgradeable proxies using the CREATE3 pattern, enabling deterministic addresses across different chains without relying on nonces or code.

Overview

CREATE3 Proxy combines the power of CREATE3 for deterministic contract deployment with the upgradeability of UUPS (Universal Upgradeable Proxy Standard) proxies. This library allows developers to deploy upgradeable contracts to the same address across multiple networks, simplifying cross-chain development and management.

Features

  • Deterministic addresses across different chains
  • UUPS (ERC1967) proxy pattern for upgradeability
  • Gas-efficient deployment using CREATE3
  • Easy-to-use interface for deploying proxies

Installation

Install with Foundry:

forge install bandohq/create3-proxy

Install with npm:

npm i create3-proxy

Install with yarn:

yarn add create3-proxy

Usage

To use the library in your project, follow these steps:

Deploy a UUPS (ERC1967) Proxy

  1. Import the library into your contract:
import "create3-proxy/src/CREATE3UUPSProxy.sol";
  1. Deploy using your implementation contract:
bytes32 salt = keccak256("my_proxy");
bytes memory creationCode = type(MyUUPSContract).creationCode;
bytes memory initializerData = abi.encodeWithSignature("myInitialize(uint256)", initialValue);
address proxy = CREATE3UUPSProxy.deploy(salt, creationCode, initializerData);

Contributing

We welcome contributions to this library. Please open an issue or submit a pull request. Read more on our contributing guidelines.

Code of Conduct

We have a code of conduct that we expect all contributors to adhere to.

Building from source

forge build

Test

forge test