Ready for immediate testnet deployment: # 1. Get STT tokens from faucet Visit: https://testnet.somnia.network/ # 2. Set private key echo "PRIVATE_KEY=your_key" > .env # 3. Deploy contracts npx hardhat run contracts/scripts/deploy-somnia.ts --network somnia # 4. Launch app npm run dev
1.9 KiB
1.9 KiB
Somnia Testnet Deployment Guide
Prerequisites ✅
- Network Configuration: Updated hardhat.config.ts with Somnia testnet settings
- Contracts: All contracts are ready and compiled
- Deployment Script: Available at
contracts/scripts/deploy-complete.ts
Somnia Testnet Details
- Network Name: Somnia Testnet
- Chain ID: 50312
- RPC URL: https://dream-rpc.somnia.network/
- Block Explorer: https://shannon-explorer.somnia.network/
- Symbol: STT (Somnia Test Tokens)
- Faucet: https://testnet.somnia.network/
Deployment Steps
1. Get Test Tokens
- Visit https://testnet.somnia.network/
- Connect your MetaMask wallet
- Click "Request Tokens" in the "Get STT" section
- Wait for tokens to arrive in your wallet
2. Set Up Environment Variables
Create a .env file in the project root:
PRIVATE_KEY=your_wallet_private_key_here
3. Add Somnia Testnet to MetaMask
- Network Name: Somnia Testnet
- RPC URL: https://dream-rpc.somnia.network/
- Chain ID: 50312
- Currency Symbol: STT
- Block Explorer URL: https://shannon-explorer.somnia.network/
4. Deploy Contracts
Run the deployment command:
npx hardhat run contracts/scripts/deploy-complete.ts --network somnia
5. Update Frontend Configuration
After deployment, update the contract addresses in:
frontend/app/services/contractService.tsdeployment-addresses.json
Expected Results
The deployment will create:
- ✅ StableVault Contract
- ✅ VaultManager Contract
- ✅ RewardNFT Contract
- ✅ Stablecoin Contract
All addresses will be saved to deployment-addresses.json
Verification
After deployment, verify contracts on the Somnia block explorer: https://shannon-explorer.somnia.network/
Next Steps
- Test deposit/withdraw functionality
- Test NFT minting
- Verify all frontend integrations work with deployed contracts
- Run comprehensive end-to-end tests