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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gearbox-protocol/permissionless-cli

v0.1.8

Published

Permissionsless scripts

Readme

Gearbox Permissionless scripts

Environment Variables

Ensure the following environment variables are properly configured:

  • RPC_URL – RPC URL
  • ANVIL_URL – Testnet RPC URL for txs simulations and batching
  • ADDRESS_PROVIDER – Address of the "Address Provider" contract
    • The address for the Mainnet Address Provider:
      0xF7f0a609BfAb9a0A98786951ef10e5FE26cC1E38
  • PRIVATE_KEY – Private key
  • PINATA_JWT – Pinata JWT token for IPFS upload
  • PINATA_GATEWAY – Pinata gateway URL

Scripts arguments

Ensure the following environment variables are properly configured:

  • -r, --rpc-url Mainnet RPC URL. If not provided, the script assumes you're using a testnet.
    Env var: RPC_URL

  • --anvil-url (mandatory)
    RPC URL for testnet simulations and batching.
    Env var: ANVIL_URL

  • -p, --address-provider>
    Address of the AddressProvider contract.
    Env var: ADDRESS_PROVIDER

  • -k, --private-key
    Private key for mainnet transactions.
    Env var: PRIVATE_KEY

  • -a, --account
    Testnet account address. Defaults to the InstanceManager owner if not provided.

  • -o, --out-dir
    Directory path to save output results.
    Env var: OUTPUT_DIR

  • --testnet
    Flag to indicate usage of a testnet.

  • --execute
    Actually execute the prepared transactions.

  • --force
    Force transaction execution, ignoring safety checks.

  • --timelock
    Wrap transactions using queueTransaction (timelock logic).

  • -s, --skip-batching
    Skip batching transactions. Useful to debug Anvil issues.
    Default: false

  • -c, --config
    Path to the configuration file.
    Default: undefined

  • -e, --eta (mandatory for --timelock)
    ETA timestamp for queued transactions.
    Default: undefined

  • -m, --market-configurator(mandatory for --timelock)
    Address of the MarketConfigurator contract.

  • -u, --upload Upload transactions to ipfs


Scripts Information

  • Update price feeds
    pnpm start update-feeds
    Update price feeds.

  • Batch txs
    pnpm start batch-txs -t "path/to/txs"
    Simaulte and convert RawTxs from json to Safe Bathces.

  • Execute batches
    pnpm start execute-batches
    Create execute txs for queued batches

Router Deployment and Setup

To deploy and configure the Router, follow these steps.

Configuration file: src/commands/configs/routerConfig.ts

Prerequisites

  1. Configure router for your network Edit src/commands/configs/routerConfig.ts and add/update the configuration for your chain ID with the required workers.

  2. Start Anvil fork

    anvil --fork-url <YOUR_RPC_URL>
  3. Configure environment variables Ensure all variables from .env.example are set:

    • RPC_URL – RPC URL
    • ANVIL_URL – Testnet RPC URL for simulations (e.g., http://127.0.0.1:8545)
    • ADDRESS_PROVIDER – Address of the AddressProvider contract
    • PRIVATE_KEY – Private key for transactions
    • PINATA_JWT – Pinata JWT token for IPFS upload
    • PINATA_GATEWAY – Pinata gateway URL

Deploy Router

pnpm start deploy-router --execute

Restart Anvil

After deployment, restart the Anvil fork before running setup:

# Stop current Anvil instance (Ctrl+C) and start again
anvil --fork-url <YOUR_RPC_URL>

Setup Router

pnpm start setup-router --testnet --execute --upload

Withdrawal Compressor Deployment and Setup

To deploy and configure the Withdrawal Compressor, follow these steps.

Configuration file: src/commands/configs/withdrawalCompressorConfig.ts

Prerequisites

  1. Configure withdrawal compressor for your network Edit src/commands/configs/withdrawalCompressorConfig.ts and add/update the configuration for your chain ID with the required subcompressors.

  2. Start Anvil fork

    anvil --fork-url <YOUR_RPC_URL>
  3. Configure environment variables Ensure all variables from .env.example are set:

    • RPC_URL – RPC URL
    • ANVIL_URL – Testnet RPC URL for simulations (e.g., http://127.0.0.1:8545)
    • ADDRESS_PROVIDER – Address of the AddressProvider contract
    • PRIVATE_KEY – Private key for transactions
    • PINATA_JWT – Pinata JWT token for IPFS upload
    • PINATA_GATEWAY – Pinata gateway URL

Deploy Withdrawal Compressor

pnpm start deploy-withdrawal-compressor --execute

Restart Anvil

After deployment, restart the Anvil fork before running setup:

# Stop current Anvil instance (Ctrl+C) and start again
anvil --fork-url <YOUR_RPC_URL>

Setup Withdrawal Compressor

pnpm start setup-withdrawal-compressor --testnet --execute --upload