Deployment Documentation
Comprehensive deployment documentation for Riddlen Protocol smart contracts. This section will contain detailed deployment procedures, configuration guides, and best practices for deploying contracts to Polygon networks.
Coming Soon
Detailed deployment documentation is currently under development. In the meantime, you can:
View Current Testnet Deployment
See our live testnet deployment for reference:
- Testnet Deployment Guide - Current v6.0 deployment on Polygon Amoy
Review Deployment Scripts
Examine the deployment scripts in the GitHub repository:
- GitHub
/contracts/scripts/Directory - Deployment scripts for all core contracts
- Configuration and initialization examples
Access Source Code
Review contract implementations and deployment patterns:
Planned Deployment Sections
The following deployment documentation sections are planned:
Deployment Guides
- Local Development - Deploying to Hardhat network
- Testnet Deployment - Step-by-step Amoy deployment
- Mainnet Deployment - Production deployment checklist
- Proxy Upgrades - UUPS upgrade procedures
Configuration
- Network Configuration - RPC endpoints and chain IDs
- Environment Variables - Required configuration values
- Gas Optimization - Deployment cost management
- Contract Verification - PolygonScan verification guide
Security Procedures
- Pre-Deployment Checklist - Security verification steps
- Access Control Setup - Role assignment procedures
- Initial Configuration - Safe initialization patterns
- Post-Deployment Verification - Testing deployed contracts
Maintenance
- Upgrade Procedures - How to upgrade UUPS proxies
- Emergency Procedures - Pause and unpause protocols
- Configuration Changes - Safe parameter updates
- Monitoring Setup - Contract health monitoring
Quick Reference
Current Deployment (v6.0 - Amoy Testnet)
# Network Information
Network: Polygon Amoy Testnet
Chain ID: 80002
RPC: https://rpc-amoy.polygon.technology/
# Core Contract Addresses
RDLN Token: 0x133029184EC460F661d05b0dC57BFC916b4AB0eB
RON Reputation: 0xD86b146Ed091b59cE050B9d40f8e2760f14Ab635
RiddleNFT V2: 0x529e3076cB9A48D6FAd086abE5d23ea76159e9E3
RiddlenAirdrop: 0x4f3f2202f3F865074f534aA324a259DF962C6FBA
Oracle Network: 0xBd005201294984eFf3c353c32c9E5a96Fd640493
Deployment Tools
- Framework: Hardhat
- Language: Solidity ^0.8.20
- Libraries: OpenZeppelin Contracts (Upgradeable)
- Verification: PolygonScan API
Developer Resources
Prerequisites
For local development and deployment:
# Clone repository
git clone https://github.com/RiddlenBaba/riddlen.git
cd riddlen/contracts
# Install dependencies
npm install
# Configure environment
cp .env.example .env
# Add your PRIVATE_KEY and POLYGONSCAN_API_KEY
# Run tests
npm test
# Deploy to local network
npx hardhat node
npx hardhat run scripts/deploy-all.js --network localhost
Documentation Links
- Smart Contract Specifications - Contract details
- Frontend Integration - Integration guide
- Testnet Deployment - Live deployment
Community Support
Have deployment questions? Get help:
- GitHub Discussions: How It Works
- GitHub Issues: Report Issues
- Telegram: Developer Chat
Comprehensive deployment documentation coming soon. Check back for updates!
Last updated: October 2025