Developer Cheat Sheet

Details are provisional and may be updated during development.

Quick Command Reference

# EVM Development (unchanged from Ethereum)
npx hardhat compile                    # Compile contracts
npx hardhat deploy --network arichain # Deploy to Arichain
npx hardhat verify --network arichain # Verify contracts
npx hardhat console --network arichain # Interactive console

# SVM Development (unchanged from Solana)
anchor build                          # Build programs
anchor deploy                         # Deploy to Arichain
anchor test --skip-local-validator    # Run tests
solana program show <program-id>      # Show program info

# MultiVM Specific Commands
npm install @arichain/sdk             # Install MultiVM SDK
arichain account link                 # Link EVM and SVM accounts
arichain balance --unified            # Check unified balance
arichain deploy --optimize           # Deploy with VM optimization

Network Configuration

// EVM Network Config
const evmConfig = {
    chainId: 1338,
    rpcUrl: 'https://evm-rpc.arichain.network (TBD)',
    blockExplorer: 'https://explorer.arichain.network (TBD)',
    nativeCurrency: { name: 'ARI', symbol: 'ARI', decimals: 18 }
};

// SVM Network Config
const svmConfig = {
    cluster: 'https://svm-rpc.arichain.network (TBD)',
    commitment: 'confirmed'
};

// MultiVM SDK Config
const multivmConfig = {
    evmRpc: 'https://evm-rpc.arichain.network (TBD)',
    svmRpc: 'https://svm-rpc.arichain.network (TBD)',
    enableCrossVM: true
};

Performance Tips

  • Route high-frequency operations to SVM

  • Use EVM for complex state management

  • Batch operations when possible

  • Monitor gas usage on both VMs

  • Leverage unified asset management for better UX

Last updated