Skip to content

Latest commit

 

History

History
189 lines (141 loc) · 6.98 KB

File metadata and controls

189 lines (141 loc) · 6.98 KB

🎉 0xCast Mainnet Deployment - SUCCESS

Deployment Summary

Date: June 7, 2026
Network: Stacks Mainnet
Deployer Address: SP1W6XQZ6XVYGTVW32SJW2ZG48ZJBW9BATRD19N60
Status:ALL 13 CONTRACTS DEPLOYED


Deployed Contracts

# Contract Name Status Purpose Cost (µSTX)
1 access-control ✅ Deployed Role-based permissions (RBAC) 6,000
2 governance-core ✅ Deployed Proposal and voting system 42,045
3 governance-token ✅ Deployed CAST governance token (SIP-010) 15,390
4 liquidity-pool ✅ Deployed AMM-based liquidity pools 16,540
5 liquidity-rewards ✅ Deployed LP incentive distribution 7,935
6 market-core ✅ Deployed Enhanced market logic 201,085
7 market-fees ✅ Deployed Fee collection and distribution 9,660
8 market-multi ✅ Deployed Multi-outcome prediction markets 46,850
9 migration-manager ✅ Deployed Contract upgrade system 17,430
10 oracle-integration ✅ Deployed External data feeds integration 104,930
11 oracle-reputation ✅ Deployed Oracle performance tracking 8,925
12 oxcast ✅ Deployed Main prediction market contract 87,230
13 rate-limiter ✅ Deployed Transaction rate limiting 24,265

Total Deployment Cost: 588,285 µSTX (0.588285 STX)


Deployment Timeline

Initial Deployment Attempts

  • First batch: access-control, governance-core deployed successfully
  • Second batch: rate-limiter, market-fees, oracle-reputation, migration-manager deployed
  • Third batch: oxcast deployed successfully
  • Fourth batch: governance-token, liquidity-rewards, liquidity-pool deployed
  • Fifth batch: market-core, market-multi deployed
  • Final deployment: oracle-integration deployed (required market-core to be confirmed first)

Key Issues Resolved

  1. Batch deployment failures: Contracts were being deployed but batches failed on "ContractAlreadyExists" errors - resolved by checking Explorer and excluding already-deployed contracts
  2. oracle-integration dependency: Failed initially because it depends on market-core which wasn't confirmed yet - resolved by waiting for confirmation and redeploying

Contract Addresses

All contracts deployed at: SP1W6XQZ6XVYGTVW32SJW2ZG48ZJBW9BATRD19N60

View on Explorer

  • Deployer Address: View on Explorer
  • Individual Contracts: https://explorer.hiro.so/txid/SP1W6XQZ6XVYGTVW32SJW2ZG48ZJBW9BATRD19N60.{contract-name}?chain=mainnet

Frontend Integration Status

✅ Configuration Updated

  • Contract address updated to: SP1W6XQZ6XVYGTVW32SJW2ZG48ZJBW9BATRD19N60
  • Contract name updated to: oxcast
  • File: frontend/src/utils/networkUtils.ts

✅ Routes Re-enabled

All 6 previously disabled routes have been re-enabled:

Route Component Purpose
/governance GovernancePage Governance proposals and voting
/oracle OraclePage Oracle dashboard and management
/liquidity LiquidityPage Liquidity pool operations
/multi-markets MultiMarketsPage Multi-outcome markets listing
/multi-trade/:id MultiTradePage Multi-outcome trading interface
/create-multi-market CreateMultiMarketPage Create multi-outcome markets

File: frontend/src/App.tsx


Contract Categories

User-Facing Contracts (Public Functions)

These contracts have functions that regular users can call:

  1. governance-token - Token transfers, approvals, staking
  2. governance-core - Create proposals, vote, execute proposals
  3. liquidity-pool - Add/remove liquidity, swap tokens
  4. liquidity-rewards - Claim LP rewards
  5. market-multi - Create and trade multi-outcome markets
  6. oxcast - Create and trade binary markets
  7. market-core - Enhanced market operations

Admin/Infrastructure Contracts

These contracts are primarily for administrative operations:

  1. access-control - Role management (owner only)
  2. rate-limiter - Rate limit configuration (admin only)
  3. market-fees - Fee structure updates (admin only)
  4. oracle-reputation - Oracle score updates (oracle only)
  5. migration-manager - Contract upgrades (owner only)
  6. oracle-integration - Data feed management (oracle only)

Deployment Plans Used

Multiple deployment plans were created due to batch failures:

  • deployments/default.mainnet-plan.yaml - Initial full deployment
  • deployments/remaining-10-contracts.mainnet-plan.yaml
  • deployments/last-6-contracts.mainnet-plan.yaml
  • deployments/last-5-contracts.mainnet-plan.yaml
  • deployments/last-3-contracts.mainnet-plan.yaml
  • deployments/retry-oracle-integration.mainnet-plan.yaml - Final deployment

Next Steps

Immediate (Contract Initialization)

  1. ✅ Deploy all contracts to mainnet
  2. ⏭️ Initialize access-control with roles
  3. ⏭️ Configure rate limits in rate-limiter
  4. ⏭️ Set fee structures in market-fees
  5. ⏭️ Register initial oracles in oracle-integration
  6. ⏭️ Configure governance parameters

Testing

  1. ⏭️ Create test markets on mainnet
  2. ⏭️ Test trading functionality
  3. ⏭️ Verify governance proposals work
  4. ⏭️ Test liquidity pool operations
  5. ⏭️ Verify oracle integrations
  6. ⏭️ Test multi-outcome markets

Frontend Deployment

  1. ⏭️ Test frontend locally with mainnet
  2. ⏭️ Build production bundle
  3. ⏭️ Deploy to hosting (Vercel/Netlify)
  4. ⏭️ Configure production environment variables
  5. ⏭️ Test end-to-end on production

Documentation

  1. ⏭️ Update README with all contract addresses
  2. ⏭️ Create user guides
  3. ⏭️ Document contract interactions
  4. ⏭️ Provide integration examples
  5. ⏭️ Update API documentation

Security

  1. ⏭️ Conduct security audit
  2. ⏭️ Test access controls
  3. ⏭️ Verify oracle resistance
  4. ⏭️ Review upgrade mechanisms
  5. ⏭️ Monitor for vulnerabilities

Git History

Branch: fix/align-frontend-with-deployed-contracts

Key Commits:

  1. Prepare mainnet deployment plan for all platform contracts
  2. Complete mainnet deployment of all 13 contracts and update frontend

Status: Ready to merge to main


Support & Resources


Celebration 🎉

After careful deployment across multiple batches and resolving dependency issues, all 13 smart contracts for the 0xCast prediction market platform are now live on Stacks Mainnet, secured by Bitcoin!

The platform is ready for initialization and testing!


Deployment completed: June 7, 2026
Total deployment cost: 0.588285 STX (~$0.60 USD)