Skip to content

Latest commit

 

History

History
76 lines (54 loc) · 1.32 KB

DEPLOYMENT.md

File metadata and controls

76 lines (54 loc) · 1.32 KB

Deployment Guide

Local Development

  1. Start a local blockchain:
make anvil

This will start Anvil (local Ethereum node) in the background

  1. Deploy to local network:
make deploy-local
  1. Stop the local blockchain when done:
make stop-anvil

Note: Local deployment uses Anvil's default private key for convenience. Never use this key in production.

Setting up Secure Deployment Keys

  1. Generate a new wallet:
make new-wallet
  1. Import the private key to an encrypted keystore:
make import-wallet

Follow the prompts to:

  • Enter your private key
  • Set a strong password (20+ characters)
  1. List available keystores:
make list-wallets
  1. Set up your environment:
  • Copy .env.example to .env
  • Fill in your RPC URLs and API keys
  • Set your KEYSTORE_NAME and KEYSTORE_PASSWORD

Deploying

  1. To deploy to Mumbai testnet:
make deploy-mumbai
  1. To deploy to Polygon mainnet:
make deploy-polygon

Security Best Practices

  1. Keystore Password:

    • Use a strong password (20+ characters)
    • Never store the password in plaintext
    • Consider using a password manager
  2. Environment Security:

    • Never commit .env file
    • Use different keys for testnet and mainnet
    • Clear environment variables after use