Deployment to Luntra Infrastructure
Environment Setup
Create .env file:
# .env
PRIVATE_KEY=your_private_key_here
LUNTRA_RPC_URL=https://luntra.rpc.caldera.xyz/httpLoad environment variables:
source .envDeploy Contract
Method 1: Using Private Key
forge script script/Counter.s.sol:CounterScript \
--rpc-url https://luntra.rpc.caldera.xyz/http \
--private-key $PRIVATE_KEY \
--broadcastMethod 2: Using Environment Variable
forge script script/Counter.s.sol:CounterScript \
--rpc-url $LUNTRA_RPC_URL \
--private-key $PRIVATE_KEY \
--broadcast \
--verifyMethod 3: Using Named Network
Interactive Deployment
Last updated