Skip to content

Conversation

@Jharmony
Copy link
Collaborator

@Jharmony Jharmony commented Jan 8, 2026

This PR enables Bazar to spawn and interact with AO profiles on mainnet (HyperBEAM) instead of legacy testnet infrastructure. The implementation uses a minimal, focused approach that leverages existing PermawebLibs infrastructure - by configuring the AO connection for mainnet at the provider level, all operations automatically use mainnet.

Changes

Core Configuration

  • Added AO_NODE configuration with mainnet HyperBEAM settings (gateway URL, scheduler, authority)
  • Made AOCONFIG dynamic to support mainnet/legacy mode switching
  • Updated PermawebProvider to create mainnet-configured AO connection and pass it to PermawebLibs

Mode Switching

  • Added support for VITE_AO environment variable to switch between mainnet and legacy modes
  • Updated aoconnect.ts helper to respect mode passed in arguments
  • Added mode switching in vite.config.ts for build-time constants

Build Configuration

  • Updated productionAddresses to use mainnet MODULE and SCHEDULER values
  • Fixed @permaweb/ucm alias to use correct package path (index.esm.js instead of browser.js)
  • Updated profile error message for clarity

@Jharmony Jharmony requested a review from NickJ202 January 8, 2026 23:18
@Jharmony Jharmony self-assigned this Jan 8, 2026
@Jharmony Jharmony added the Bazar label Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants