# Scope build

The RPG Marketplace project is an interactive Web3 marketplace that will enable users to trade, stake, and manage RPG tokens and ordinals using BTC-compatible wallets. The scope includes wallet connectivity, on-chain/off-chain interactions, marketplace functionalities, incentivized trading, staking, and admin dashboard capabilities, with clearly defined deliverables and requirements.

#### 1. Wallet Connectivity

* **Scope to Deliver**:
  * Develop a login portal for wallet connection.
  * Implement authentication API.
  * Integrate multiple wallet providers for user access.

#### 2. Onchain to Offchain $RPG Management

* **Scope to Deliver**:
  * UI to display $RPG balance and conversion rates.
  * API to fetch $RPG and BTC prices.
  * UI and API for $RPG transfers using the tap protocol.
  * UI and API for purchasing $RPG using BTC.

#### 3. Marketplace Features

* **Scope to Deliver**:
  * UI to display available ordinals, including filtering and search.
  * API to list products with search and filter capabilities.
  * UI for viewing item prices in $RPG.
  * APIs to handle $RPG purchases and transfer balances accordingly.
  * UI for item ownership display, purchase history, and item listing.
  * Marketplace transaction monitoring for listing and purchasing.

#### 4. Offramping from Offchain to Onchain

* **Scope to Deliver**:
  * UI for users to select assets for onchain conversion.
  * API to handle offchain-to-onchain conversion with TAP protocol.
  * UI for $RPG conversion from offchain to onchain.

#### 5. Incentivized Trading

* **Scope to Deliver**:
  * UI for a leaderboard showing user rankings.
  * API for listing and sorting users in the leaderboard.
  * Algorithm for distributing marketplace fees based on leaderboard standing.
  * UI for displaying users’ distribution history.

#### 6. Staking

* **Scope to Deliver**:
  * UI to display card and $RPG balances.
  * UI for staking and unstaking ordinals and $RPG.
  * API for detecting ordinal and $RPG transfers for staking.
  * UI for yield history.
