New:Socket for Asana Is Now Available.Learn more
Get Started

arb-deploy

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arb-deploy

A simple, scalable package for deploying Ethereum smart contracts

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

arb-deploy

A simple, scalable npm package for deploying Ethereum smart contracts, specifically designed for MedInvoiceContract and PPTToken contracts.

Features

  • Easy deployment of smart contracts to multiple Ethereum networks
  • Support for contract verification on block explorers
  • Simple CLI interface for quick deployments
  • Programmatic API for integration with other tools
  • Supports multiple networks including Arbitrum, Optimism, Filecoin, and Celo

Installation

npm install -g arb-deploy

Or install locally in your project:

npm install --save-dev arb-deploy

Quick Start

Initialize a new project

arb-deploy init

This will create:

  • A .env file template for your credentials
  • A deploy.config.json file for configuring your deployments

Configure your environment

Edit the .env file with your deployment credentials:

# Ethereum node endpoint
RPC_URL=https://sepolia-rollup.arbitrum.io/rpc

# Private key for deployment (without 0x prefix)
PRIVATE_KEY=your_private_key_here

# API key for contract verification
VERIFY_KEY=your_etherscan_api_key_here

Deploy a single contract

arb-deploy deploy --contract PPTToken --network arbitrumSepolia --args 100000 --verify

Deploy multiple contracts

Create a deploy.config.json file:

{
  "network": "arbitrumSepolia",
  "verify": true,
  "contracts": [
    {
      "contract": "PPTToken",
      "constructorArgs": [100000]
    },
    {
      "contract": "MedInvoiceContract",
      "constructorArgs": ["<PPTToken-address>"]
    }
  ]
}

Then run:

arb-deploy deploy-multiple --config deploy.config.json

Programmatic Usage

You can also use arb-deploy programmatically in your JavaScript code:

import { deploy, deployMultiple } from 'arb-deploy';

// Deploy a single contract
const result = await deploy({
  contractName: 'PPTToken',
  network: 'arbitrumSepolia',
  constructorArgs: [100000],
  verify: true
});

console.log(`Contract deployed to: ${result.address}`);

// Deploy multiple contracts
const results = await deployMultiple([
  {
    contractName: 'PPTToken',
    constructorArgs: [100000]
  },
  {
    contractName: 'MedInvoiceContract',
    constructorArgs: ['<PPTToken-address>']
  }
], {
  network: 'arbitrumSepolia',
  verify: true
});

Supported Networks

  • Arbitrum Sepolia (testnet)
  • Optimism Sepolia (testnet)
  • Optimism (mainnet)
  • Filecoin Calibration (testnet)
  • Celo Alfajores (testnet)

License

MIT

Keywords

ethereum

FAQs

Package last updated on 10 May 2025

Related posts