EigenKub CLI

The EigenKub CLI is a command-line tool that helps you create, compile, test, and deploy smart contracts on the EigenKub blockchain. It's designed to make development as smooth as possible.

Installation

You can install the EigenKub CLI using npm:

bash
# Install the EigenKub CLI
npm install -g eigenkub-cli

Available Commands

The EigenKub CLI provides a variety of commands to help you develop on EigenKub:

bash
# Create a new project
eigenkub init my-dapp

# Compile contracts
eigenkub compile

# Deploy contracts
eigenkub deploy

# Run tests
eigenkub test

# Start a local development node
eigenkub node

# Get account information
eigenkub account info 0x1234...

# Get network status
eigenkub network status

Configuration

You can configure the EigenKub CLI by creating an eigenkub.config.json file in your project root:

json
{
  "networks": {
    "development": {
      "host": "127.0.0.1",
      "port": 8545,
      "network_id": "*"
    },
    "eigenkub": {
      "provider": "https://rpc.eigenkub.com",
      "network_id": 1337,
      "gas": 5500000,
      "gasPrice": 10000000000
    }
  },
  "compilers": {
    "solc": {
      "version": "0.8.17",
      "settings": {
        "optimizer": {
          "enabled": true,
          "runs": 200
        }
      }
    }
  }
}

Hardhat

EigenKub is fully compatible with Hardhat, a popular Ethereum development environment. You can use Hardhat to compile, deploy, test, and debug your Ethereum software.

To configure Hardhat for EigenKub, add the following to your hardhat.config.js file:

javascript
module.exports = {
  solidity: "0.8.17",
  networks: {
    eigenkub: {
      url: "https://rpc.eigenkub.com",
      accounts: [process.env.PRIVATE_KEY],
      chainId: 1337
    }
  }
};

Truffle

Truffle is another popular development environment for Ethereum that works seamlessly with EigenKub. To configure Truffle for EigenKub, update your truffle-config.js file as shown in the Getting Started guide.

Foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development. It's fully compatible with EigenKub.

To configure Foundry for EigenKub, add the following to your foundry.toml file:

toml
[profile.default]
src = 'src'
out = 'out'
libs = ['lib']

[rpc_endpoints]
eigenkub = "https://rpc.eigenkub.com"