Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions src/pages/controller/inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,35 @@ const connector = new CartridgeConnector({
```typescript
controller.openProfile("inventory");
```

## Cross-Profile Features

The Controller supports viewing and interacting with other users' profiles and inventories, enabling features like purchasing assets from other players.

### View Other Profiles

You can navigate to another user's profile by using URL parameters:

```
https://your-app.com/account/username?address=0x1234567890abcdef...
```

The `address` parameter allows you to override the current profile view to display another user's inventory and assets.

### Cross-Profile Purchases

When viewing another user's profile, you can purchase their listed marketplace assets directly. The purchase flow includes:

1. **Browse Assets**: View assets listed for sale in another user's inventory
2. **Purchase Flow**: Execute purchase transactions for listed items
3. **Automatic Updates**: The UI automatically refreshes after successful purchases to reflect changes

This functionality enables peer-to-peer trading and marketplace interactions between players in games using the Controller.

### Profile Navigation

The profile system supports flexible navigation patterns:

- **Direct Profile Access**: Navigate to specific profiles using account addresses
- **Marketplace Integration**: Purchase assets across different user profiles
- **Seamless UX**: Profile switching maintains session state and preferences