KEKTECH 2.0 revolutionizes prediction markets by integrating NFT staking, social engagement, and flexible governance into a unified ecosystem. Built on Based Network, the platform rewards active participation through a sophisticated off-chain Oracle system while maintaining on-chain security and transparency.
The system consists of three interconnected layers:
- Smart Contract Layer - Handles value transfer, ownership, and core logic
- Oracle Service - Performs complex calculations and reward distribution
- Frontend Interface - Provides user interaction and data visualization
- Dual Market Creation: Choose between refundable bonds or permanent fees
- NFT-Weighted Rewards: Rarity multipliers amplify staking rewards
- Flexible Parameters: All system values adjustable without redeployment
- Activity-Based Distribution: Oracle calculates rewards across multiple dimensions
- Proposal Governance: Community votes on new markets with weighted influence
- Node.js 18+
- PostgreSQL 14+
- Git
- Hardhat
- Based Network RPC access
# Clone the repository
git clone https://github.com/your-org/kektech2.0.git
cd kektech2.0
# Install dependencies
npm install
# Configure environment
cp .env.example .env
# Edit .env with your values
# Compile contracts
npx hardhat compile
# Run tests
npx hardhat testCreate a .env file with the following:
# Network Configuration
RPC_URL=https://mainnet.base.org
PRIVATE_KEY=your-deployment-private-key
ETHERSCAN_API_KEY=your-api-key
# Token Addresses
TECH_TOKEN_ADDRESS=0x...
KEKTECH_NFT_ADDRESS=0x...
# Team Configuration
TEAM_WALLET=0x...
ORACLE_ADDRESS=0x...
ORACLE_PRIVATE_KEY=oracle-private-key
# Database
DATABASE_URL=postgresql://user:password@localhost:5432/kektech
# Oracle Settings
UPDATE_INTERVAL=21600 # 6 hours
BATCH_SIZE=100
MIN_REWARD_THRESHOLD=1000000000000000# Deploy all contracts
npx hardhat run scripts/deploy-main.js --network based
# Load NFT rarity data
npx hardhat run scripts/load-rarity-data.js --network based
# Start Oracle service
cd oracle
npm startFor production, deploy in phases:
# Phase 1: Core infrastructure
npx hardhat run scripts/deploy/01-deploy-core.js --network based
# Phase 2: NFT system
npx hardhat run scripts/deploy/02-deploy-nft.js --network based
# Phase 3: Markets
npx hardhat run scripts/deploy/03-deploy-markets.js --network based
# Phase 4: Governance
npx hardhat run scripts/deploy/04-deploy-governance.js --network based
# Phase 5: Initialize connections
npx hardhat run scripts/deploy/05-initialize.js --network based- Stake NFTs: Lock your KEKTECH NFTs to earn base rewards
- Create Markets: Propose prediction markets through the proposal system
- Place Bets: Participate in markets to earn activity rewards
- Engage Socially: Comment and vote to build reputation
- Claim Rewards: Collect accumulated TECH and BASED tokens
// Interact with contracts
const registry = await ethers.getContractAt("Registry", REGISTRY_ADDRESS);
const marketFactory = await registry.getContract(
ethers.utils.keccak256(ethers.utils.toUtf8Bytes("MARKET_FACTORY"))
);
// Create a market proposal
await marketFactory.proposeMarket({
creator: userAddress,
question: "Will ETH reach $10k by 2025?",
endTime: Math.floor(Date.now() / 1000) + 30 * 24 * 3600,
token: ethers.constants.AddressZero, // Native token
creationType: 0, // BOND
marketType: 0, // STANDARD
tierIndex: 1,
additionalData: "0x"
}, {
value: ethers.utils.parseEther("42000") // Tier 1 bond
});- Internal audit complete
- External audit scheduled
- Bug bounty program active
- Reentrancy protection on all value transfers
- Emergency pause mechanisms
- Time-locked parameter changes
- Multi-signature admin controls
- Slashing for malicious markets
The Oracle monitors blockchain events and calculates rewards based on:
- NFT staking duration and rarity
- Prediction market accuracy
- Social engagement quality
- Market creation success
cd oracle
npm install
npm start# View logs
tail -f oracle/oracle-combined.log
# Check health
curl http://localhost:3000/health
# Manual reward calculation
npm run calculate-rewardsnpx hardhat testnpx hardhat test test/integration/*.test.jsnpx hardhat coverageAll system parameters can be adjusted without redeployment:
// Update a parameter
const paramStorage = await ethers.getContractAt(
"ParameterStorage",
PARAM_STORAGE_ADDRESS
);
await paramStorage.updateParameter(
ethers.utils.keccak256(ethers.utils.toUtf8Bytes("STAKING")),
ethers.utils.keccak256(ethers.utils.toUtf8Bytes("BASE_REWARD_PER_DAY")),
ethers.utils.parseEther("150") // Increase from 100 to 150 TECH
);We welcome contributions! Please see CONTRIBUTING.md for guidelines.
- Fork the repository
- Create a feature branch
- Write tests for new functionality
- Implement the feature
- Run tests and linting
- Submit a pull request
MIT License - see LICENSE file for details
- Technical Issues: tech@kektech.io
- Security Issues: security@kektech.io (PGP key available)
- Discord: Join our server
- Telegram: @KEKTECH
- โ Core infrastructure deployment
- โ NFT staking system
- โ Basic prediction markets
- โ Proposal governance
- ๐ Multi-outcome markets
- ๐ Duel marketplace
- ๐ Creator reputation system
- ๐ Advanced Oracle features
- โณ Cross-chain NFT battles
- โณ Layer 2 integration
- โณ Mobile app launch
- โณ DAO governance transition
- โณ Institutional markets
- โณ AI-powered market creation
- โณ Global expansion
- โณ Full decentralization
# Check system health
npm run health-check
# Update parameters
npm run update-params
# Emergency pause
npm run emergency-pause
# Generate reports
npm run generate-reports
# Backup Oracle database
npm run backup-dbBuilt with love by the KEKTECH team for the Based and Pepe communities. Special thanks to all contributors, testers, and believers in the vision of decentralized prediction markets enhanced by NFT culture.
KEKTECH 2.0 - Where NFTs Meet Prediction Markets ๐๐ธ