Skip to content

๐ŸŸ๏ธ Test Arena โ€‹

Battle-test your code! Each passing test earns XP!

โš”๏ธ Current Session Stats โ€‹

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘  ๐ŸŽฎ FLEET SDK TEST ARENA                                  โ•‘
โ•‘                                                           โ•‘
โ•‘  Tests Passed: 0 / 25        XP Earned: 0                โ•‘
โ•‘  Current Streak: ๐Ÿ”ฅ x1       Rank: ๐Ÿฅ‰ Novice              โ•‘
โ•‘                                                           โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

โš”๏ธ Battle Stages โ€‹

๐ŸŸข Stage 1: Basic Combat โ€‹

Difficulty: Easy | XP Pool: 60

#TestStatusXP
1Transaction creationโฌœ+10
2Insufficient funds errorโฌœ+10
3Minimum box valueโฌœ+10
4Multi-output transactionโฌœ+15
5Fee calculationโฌœ+15
bash
# โš”๏ธ FIGHT!
pnpm test tests/basic-transfer.test.ts

Victory Reward: ๐Ÿ… "Transaction Initiate" Badge


๐ŸŸก Stage 2: Token Warfare โ€‹

Difficulty: Medium | XP Pool: 135

#TestStatusXP
1Single token transferโฌœ+20
2Token change preservationโฌœ+20
3Multiple token typesโฌœ+25
4NFT creation (amount=1)โฌœ+30
5Token validationโฌœ+15
6Metadata encodingโฌœ+25
bash
# โš”๏ธ FIGHT!
pnpm test tests/token-operations.test.ts

Victory Reward: ๐Ÿ… "Token Master" Badge


๐ŸŸ  Stage 3: Utility Arsenal โ€‹

Difficulty: Medium | XP Pool: 120

#TestStatusXP
1ERG โ†’ nanoERG conversionโฌœ+10
2nanoERG โ†’ ERG conversionโฌœ+10
3Address validation (valid)โฌœ+15
4Address validation (invalid)โฌœ+15
5Token ID validationโฌœ+15
6Box value calculationโฌœ+20
7Fee estimation (simple)โฌœ+15
8Fee estimation (complex)โฌœ+20
bash
# โš”๏ธ FIGHT!
pnpm test tests/utils.test.ts

Victory Reward: ๐Ÿ… "Utility Belt" Badge


๐Ÿ”ด Stage 4: Mock Chain Dungeon โ€‹

Difficulty: BOSS | XP Pool: 205

#TestStatusXP
1First-fit box selectionโฌœ+25
2Largest-first selectionโฌœ+25
3UTXO trackingโฌœ+30
4Double-spend preventionโฌœ+35
5Height lock conditionโฌœ+40
6Combined AND conditionsโฌœ+50
bash
# โš”๏ธ BOSS FIGHT!
pnpm test tests/mock-chain.test.ts

Victory Reward: ๐Ÿ… "Chain Simulator" Badge + ๐Ÿ‘‘ Title Upgrade


๐Ÿ† Victory Screen โ€‹

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                                                             โ”‚
โ”‚   โš”๏ธ BATTLE COMPLETE!                                      โ”‚
โ”‚                                                             โ”‚
โ”‚   โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—    โ”‚
โ”‚   โ•‘                                                   โ•‘    โ”‚
โ”‚   โ•‘   Tests Passed: โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 25/25                 โ•‘    โ”‚
โ”‚   โ•‘   XP Earned: +520                                 โ•‘    โ”‚
โ”‚   โ•‘   Streak Bonus: ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ x3.0                       โ•‘    โ”‚
โ”‚   โ•‘   Total XP: 1,560                                 โ•‘    โ”‚
โ”‚   โ•‘                                                   โ•‘    โ”‚
โ”‚   โ•‘   ๐Ÿ… NEW BADGES UNLOCKED:                        โ•‘    โ”‚
โ”‚   โ•‘      โ€ข Transaction Initiate                       โ•‘    โ”‚
โ”‚   โ•‘      โ€ข Token Master                               โ•‘    โ”‚
โ”‚   โ•‘      โ€ข Utility Belt                               โ•‘    โ”‚
โ”‚   โ•‘      โ€ข Chain Simulator                            โ•‘    โ”‚
โ”‚   โ•‘                                                   โ•‘    โ”‚
โ”‚   โ•‘   ๐Ÿ‘‘ RANK UP: Code Warrior โ†’ Fleet Master!       โ•‘    โ”‚
โ”‚   โ•‘                                                   โ•‘    โ”‚
โ”‚   โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•    โ”‚
โ”‚                                                             โ”‚
โ”‚   [Continue] [View Stats] [Leaderboard] [Share Victory]    โ”‚
โ”‚                                                             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“Š XP System โ€‹

Total XP Available: 520 โ€‹

StageXPDifficulty
Basic Combat60๐ŸŸข
Token Warfare135๐ŸŸก
Utility Arsenal120๐ŸŸ 
Mock Chain Dungeon205๐Ÿ”ด

Rank Progression โ€‹

RankXPTitle
๐Ÿฅ‰0Novice Developer
๐Ÿฅˆ150Code Warrior
๐Ÿฅ‡300Test Champion
๐Ÿ‘‘450Fleet Master
๐Ÿ’Ž520Legendary (100%)

๐Ÿ”ฅ Streak Bonuses โ€‹

TestsMultiplier
3+x1.25
5+x1.5
10+x2.0
All 25x3.0

๐ŸŽฎ Battle Commands โ€‹

bash
# Full Arena Mode
pnpm test

# Speedrun Mode (timed)
time pnpm test

# Spectator Mode (watch)
pnpm test:watch

# Coverage Mode (completionist)
pnpm test:coverage

# Interactive UI Mode
pnpm test:ui

๐Ÿ’ก Pro Gamer Tips โ€‹

  1. Read error messages - They reveal enemy weaknesses
  2. Use BigInt - Always add n suffix: 1000n
  3. Test edge cases - Empty arrays, zero values, limits
  4. Check types - number vs bigint matters!
  5. Chain streak - More passes = more XP multiplier

โš”๏ธ Enter the Arena! โ€‹

bash
cd fleet-sdk-tutorial
pnpm install
pnpm quest:start
pnpm test

Battle Now

Released under the MIT License.