Skip to content

Loot box system submission

Loot Box System (Sui Move)\

Highlights
-Secure randomness: `open_loot_box` is `entry` and creates `RandomGenerator` internally to prevent reroll/inspection attacks.\

  • NFT lifecycle: Mints a unique `GameItem`, emits `LootBoxOpened`, burns the `LootBox`, and transfers the item to the player.\
  • Rarity tiers: Weighted distribution with tier‑specific power ranges.\
  • Admin controls: `AdminCap` gated updates for rarity weights.\
  • Treasury: Payments collected safely in `GameConfig`.\
  • Testing: 11/11 unit tests passing (init, purchase, insufficient payment, open, events, transfer, burn, weght updates).

1st.png

Edited by Divyanshu Mani Tripathi

Merge request reports

Loading