Skip to content
Open
Show file tree
Hide file tree
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
117 changes: 117 additions & 0 deletions docs/wRTC_QUICKSTART.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# wRTC Quickstart Guide

This guide covers everything you need to know about **wRTC (wrapped RustChain Token)** on Solana - how to buy, verify, and bridge between RTC and wRTC.

## 📋 Table of Contents
- [What is wRTC?](#what-is-wrtc)
- [How to Buy wRTC](#how-to-buy-wrtc)
- [How to Verify wRTC](#how-to-verify-wrtc)
- [How to Bridge RTC ↔ wRTC](#how-to-bridge-rtc--wrtc)
- [Token Information](#token-information)
- [Security Notes](#security-notes)

## What is wRTC?

**wRTC (wrapped RustChain Token)** is the Solana-compatible version of RustChain's native RTC token. It allows you to:
- Trade RTC on Solana DEXes like Raydium
- Use RTC in Solana DeFi protocols
- Bridge between RustChain mainnet and Solana

The wRTC token maintains a 1:1 peg with native RTC through the BoTTube Bridge.

## How to Buy wRTC

### Option 1: Swap on Raydium DEX
1. Go to [Raydium DEX](https://raydium.io/swap/)
2. Connect your Solana wallet (Phantom, Backpack, etc.)
3. Select **SOL** as input token
4. Paste the wRTC contract address as output token:
`12TAdKXxcGf6oCv4rqDz2NkgxjyHq6HQKoxKZYGf5i4X`
5. Enter the amount you want to swap
6. Click **Swap** and confirm the transaction

### Option 2: Direct Link
Use this pre-configured Raydium link to swap SOL for wRTC directly:
[Raydium wRTC Swap](https://raydium.io/swap/?inputMint=sol&outputMint=12TAdKXxcGf6oCv4rqDz2NkgxjyHq6HQKoxKZYGf5i4X)

## How to Verify wRTC

### On Solana Explorer
1. Visit [Solana Explorer](https://explorer.solana.com/)
2. Search for the wRTC token address:
`12TAdKXxcGf6oCv4rqDz2NkgxjyHq6HQKoxKZYGf5i4X`
3. Verify the token details:
- **Name**: wRTC (wrapped RustChain Token)
- **Symbol**: wRTC
- **Decimals**: 9
- **Total Supply**: Check against official RustChain supply

### On DexScreener
Monitor wRTC price and liquidity on [DexScreener](https://dexscreener.com/solana/8CF2Q8nSCxRacDShbtF86XTSrYjueBMKmfdR3MLdnYzb)

### Wallet Verification
When you receive wRTC in your wallet:
- Ensure the token address matches: `12TAdKXxcGf6oCv4rqDz2NkgxjyHq6HQKoxKZYGf5i4X`
- Check that your wallet shows it as "wRTC" or "wrapped RustChain Token"
- Verify the balance matches your expected amount

## How to Bridge RTC ↔ wRTC

### Bridge from RustChain to Solana (RTC → wRTC)
1. Go to the [BoTTube Bridge](https://bottube.ai/bridge)
2. Connect your **RustChain wallet** (contains native RTC)
3. Connect your **Solana wallet** (will receive wRTC)
4. Enter the amount of RTC to bridge
5. Review the bridge fee and confirmation details
6. Confirm the transaction on both chains
7. Wait for the bridge to complete (typically 5-15 minutes)

### Bridge from Solana to RustChain (wRTC → RTC)
1. Go to the [BoTTube Bridge](https://bottube.ai/bridge)
2. Connect your **Solana wallet** (contains wRTC)
3. Connect your **RustChain wallet** (will receive native RTC)
4. Enter the amount of wRTC to bridge
5. Review the bridge fee and confirmation details
6. Confirm the transaction on both chains
7. Wait for the bridge to complete (typically 5-15 minutes)

### Bridge Requirements
- **Minimum amounts**: Check current minimums on the bridge interface
- **Gas fees**: You'll need SOL for Solana transactions and RTC for RustChain transactions
- **Wallet compatibility**: Ensure both wallets support the respective chains

## Token Information

| Property | Value |
|----------|-------|
| **Token Name** | wrapped RustChain Token |
| **Symbol** | wRTC |
| **Chain** | Solana |
| **Contract Address** | `12TAdKXxcGf6oCv4rqDz2NkgxjyHq6HQKoxKZYGf5i4X` |
| **Decimals** | 9 |
| **Bridge** | [BoTTube Bridge](https://bottube.ai/bridge) |
| **DEX** | [Raydium](https://raydium.io/swap/?inputMint=sol&outputMint=12TAdKXxcGf6oCv4rqDz2NkgxjyHq6HQKoxKZYGf5i4X) |

## Security Notes

### 🔒 Always Verify
- **Double-check contract addresses** before any transaction
- **Bookmark official links** to avoid phishing sites
- **Verify token details** in your wallet before approving transactions

### ⚠️ Bridge Safety
- Start with **small test amounts** when using the bridge for the first time
- Ensure you have **sufficient gas fees** on both chains
- **Never share your private keys** with bridge interfaces

### 🛡️ Official Resources
- **Website**: [rustchain.org](https://rustchain.org)
- **Explorer**: [rustchain.org/explorer](https://rustchain.org/explorer)
- **Whitepaper**: [RustChain Whitepaper](docs/RustChain_Whitepaper_Flameholder_v0.97-1.pdf)
- **GitHub**: [github.com/Scottcjn/Rustchain](https://github.com/Scottcjn/Rustchain)

---

> **Note**: wRTC enables RustChain's Proof-of-Antiquity ecosystem to integrate with Solana's DeFi landscape while maintaining the core principle that **authentic vintage hardware deserves recognition and value**.

*If you use RustChain, you're not just mining tokens – you're preserving computing history.*
24 changes: 24 additions & 0 deletions submit_pr.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# Submit PR for XP/Badge Automation Hardening Tests
echo "Adding files to git..."
git add .github/workflows/xp-badge-tests.yml
git add tests/
git add README.md

echo "Committing changes..."
git commit -m "feat: Add comprehensive XP/Badge automation hardening tests

- Add GitHub Actions workflow for XP/Badge automation testing
- Implement core logic tests for badge unlocking
- Add JSON schema validation for proof_of_antiquity.json and relic_rewards.json
- Include data consistency tests for badge IDs and descriptions
- Add error handling and edge case testing
- Update README with testing documentation

Fixes #312"

echo "Pushing to branch..."
git push origin xp-badge-hardening-tests

echo "PR ready to be submitted!"
47 changes: 47 additions & 0 deletions tests/schemas/badge_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Badge Schema",
"description": "Schema for RustChain NFT badge JSON files",
"type": "object",
"properties": {
"nft_id": {
"type": "string",
"description": "Unique identifier for the badge"
},
"title": {
"type": "string",
"description": "Display title of the badge"
},
"category": {
"type": "string",
"description": "Category of the badge (e.g., 'Hardware', 'Milestone', 'Community')"
},
"description": {
"type": "string",
"description": "Detailed description of the badge"
},
"emotional_resonance": {
"type": "string",
"description": "Emotional impact or story behind the badge"
},
"symbol": {
"type": "string",
"description": "Unicode symbol representing the badge"
},
"visual_anchor": {
"type": "string",
"description": "Visual reference or anchor point"
},
"rarity": {
"type": "string",
"enum": ["Common", "Uncommon", "Rare", "Epic", "Legendary", "Mythic"],
"description": "Rarity level of the badge"
},
"bound": {
"type": "boolean",
"description": "Whether the badge is bound to a specific wallet"
}
},
"required": ["nft_id", "title", "category", "description", "emotional_resonance", "symbol", "visual_anchor", "rarity", "bound"],
"additionalProperties": false
}
55 changes: 55 additions & 0 deletions tests/schemas/proof_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Proof of Antiquity Schema",
"description": "Schema for proof_of_antiquity.json validation",
"type": "object",
"properties": {
"cpu_model": {
"type": "string",
"description": "CPU model name"
},
"cpu_architecture": {
"type": "string",
"description": "CPU architecture (e.g., PowerPC, x86_64)"
},
"bios_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "BIOS date in YYYY-MM-DD format"
},
"entropy_score": {
"type": "number",
"minimum": 0,
"description": "Entropy score for hardware authenticity"
},
"antiquity_multiplier": {
"type": "number",
"minimum": 0,
"description": "Antiquity multiplier based on hardware age"
},
"hardware_fingerprint": {
"type": "string",
"description": "Unique hardware fingerprint"
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp of proof generation"
},
"validator_version": {
"type": "string",
"description": "Version of the validator that generated this proof"
}
},
"required": [
"cpu_model",
"cpu_architecture",
"bios_date",
"entropy_score",
"antiquity_multiplier",
"hardware_fingerprint",
"timestamp",
"validator_version"
],
"additionalProperties": false
}
Loading
Loading