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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@bananapus/fee-project-deployer-v5

v0.0.2

Published

Deploys the Bananapus project with project ID #1, which receives Juicebox ecosystem fees.

Readme

Bananapus Fee Project Deployer

Deploys the Bananapus project with project ID #1, which receives Juicebox ecosystem fees.

If you're having trouble understanding this contract, take a look at the core protocol contracts and the documentation first. If you have questions, reach out on Discord.

Usage

Install

How to install nana-fee-project-deployer in another project.

For projects using npm to manage dependencies (recommended):

npm install @bananapus/fee-project-deployer

For projects using forge to manage dependencies (not recommended):

forge install Bananapus/nana-fee-project-deployer

If you're using forge to manage dependencies, add @bananapus/fee-project-deployer/=lib/nana-fee-project-deployer/ to remappings.txt. You'll also need to install nana-fee-project-deployer's dependencies and add similar remappings for them.

Develop

nana-fee-project-deployer uses npm (version >=20.0.0) for package management and the Foundry development toolchain for builds, tests, and deployments. To get set up, install Node.js and install Foundry:

curl -L https://foundry.paradigm.xyz | sh

You can download and install dependencies with:

npm ci && forge install

If you run into trouble with forge install, try using git submodule update --init --recursive to ensure that nested submodules have been properly initialized.

Some useful commands:

| Command | Description | | --------------------- | --------------------------------------------------- | | forge build | Compile the contracts and write artifacts to out. | | forge fmt | Lint. | | forge test | Run the tests. | | forge build --sizes | Get contract sizes. | | forge coverage | Generate a test coverage report. | | foundryup | Update foundry. Run this periodically. | | forge clean | Remove the build artifacts and cache directories. |

To learn more, visit the Foundry Book docs.

Scripts

For convenience, several utility commands are available in package.json.

| Command | Description | | ------------------- | ------------------------------------------------------- | | npm run artifacts | Fetch Sphinx artifacts and write them to deployments/ |

Deployments

With Sphinx

nana-fee-project-deployer manages deployments with Sphinx. To run the deployment scripts, install the npm devDependencies with:

`npm ci --also=dev`

You'll also need to set up a .env file based on .example.env. Then run one of the following commands:

| Command | Description | | ------------------------- | ---------------------------- | | npm run deploy:mainnets | Propose mainnet deployments. | | npm run deploy:testnets | Propose testnet deployments. |

Your teammates can review and approve the proposed deployments in the Sphinx UI. Once approved, the deployments will be executed.

Without Sphinx

You can use the Sphinx CLI to run the deployment scripts without paying for Sphinx. First, install the npm devDependencies with:

`npm ci --also=dev`

You can deploy the contracts like so:

PRIVATE_KEY="0x123..." RPC_ETHEREUM_SEPOLIA="https://rpc.ankr.com/eth_sepolia" npx sphinx deploy script/Deploy.s.sol --network ethereum_sepolia

This example deploys nana-fee-project-deployer to the Sepolia testnet using the specified private key. You can configure new networks in foundry.toml.

Tips

To view test coverage, run npm run coverage to generate an LCOV test report. You can use an extension like Coverage Gutters to view coverage in your editor.

If you're using Nomic Foundation's Solidity extension in VSCode, you may run into LSP errors because the extension cannot find dependencies outside of lib. You can often fix this by running:

forge remappings >> remappings.txt

This makes the extension aware of default remappings.

Repository Layout

The root directory contains this README, an MIT license, and config files. If you're developing, you're probably looking for one of these directories:

fee-project-deployer/
├── .github/
│   └── workflows/ - CI/CD workflows
└── script/
    └── Deploy.s.sol - Fee project deployment script

Description

How Fees Work

Project ID #1 receives Juicebox ecosystem fees. For example, see JBMultiTerminal._FEE_BENEFICIARY_PROJECT_ID:

/// @notice Project ID #1 receives fees. It should be the first project launched during the deployment process.
uint256 internal constant _FEE_BENEFICIARY_PROJECT_ID = 1;

This ID is referenced in JBMultiTerminal.executeProcessFee(…). Note that this is done by convention – in theory, someone could launch a terminal which pays fees to a different project, or doesn't pay fees at all.

Project Description

The project deployed by nana-fee-project-deployer is not a vanilla Juicebox project:

  • The fee project is deployed to Ethereum mainnet and Optimism mainnet.
  • The fee project is deployed with two terminals.
    • A JBMultiTerminal which accepts payments in JBConstants.NATIVE_TOKEN – the native token on each network.
    • A JBSwapTerminal which accepts any other token and swaps it for the JBConstants.NATIVE_TOKEN.
  • The fee project is a Revnet.
    • The initial split operator is the OPERATOR address, which is hard-coded to 0x961d4191965C49537c88F764D88318872CE405bE.
    • It pre-mints 37,000,000 tokens to the OPERATOR address on Optimism.
    • Its first stage starts 24 hours after the deployment.
    • It has a 20% split rate (reserved rate in standard Juicebox terminology).
    • Its initial issuance rate is 1,000 tokens per native token.
    • Every 7 days, this issuance rate decays by 1%.
    • The price floor tax intensity is 0.3.
  • The fee project is deployed with a buyback hook. It buys from the 1% fee Uniswap v3 pool between $NANA (the project's token) and the (wrapped) native token on each network.
  • The fee project can mint tiered ERC-721 tokens via the CropTop publisher. It launches with 6 pre-configured tiers.
  • The fee project supports cross-chain bridging via nana-suckers. At launch, it maps between each network's native token to the other.