When opportunity knocks, you gunna answer it? One Shot lets a user mint a rapper NFT, have it gain experience in the streets (staking) and Rap Battle against other NFTs for Cred.
High - 100xp
Medium - 20xp
Low - 2xp
Starts: February 22, 2024 Noon UTC
Ends: February 29, 2024 Noon UTC
This code was created for Codehawks as the first flight. It is made with bugs and flaws on purpose. Don't use any part of this code without reviewing it and audit it.
Created by equious.eth
When opportunity knocks, you gunna answer it? One Shot lets a user mint a rapper NFT, have it gain experience in the streets (staking) and Rap Battle against other NFTs for Cred.
The Rapper NFT.
Users mint a rapper that begins with all the flaws and self-doubt we all experience. NFT Mints with the following properties:
weakKnees
- TrueheavyArms
- TruespaghettiSweater
- TruecalmandReady
- FalsebattlesWon
- 0The only way to improve these stats is by staking in the Streets.sol
:
Experience on the streets will earn you Cred and remove your rapper's doubts.
Users can put their Cred on the line to step on stage and battle their Rappers. A base skill of 50 is applied to all rappers in battle, and this is modified by the properties the rapper holds.
Each rapper's skill is then used to weight their likelihood of randomly winning the battle!
ERC20 token that represents a Rapper's credibility and time on the streets. The primary currency at risk in a rap battle.
git --version
and you see a response like git version x.x.x
forge --version
and you see a response like forge 0.2.0 (816e00b 2023-03-16T00:05:26.396218Z)
forge test
forge coverage
and for coverage based testing:
forge coverage --report debug
├── src
│ ├── CredToken.sol
│ ├── OneShot.sol
│ ├── RapBattle.sol
│ ├── Streets.sol
^0.8.20
User - Should be able to mint a rapper, stake and unstake their rapper and go on stage/battle
None
Rank | Username | ||||
1 | G GlitchicaL | 343 | 3 (0) | 0 (0) | 1 |
2 | R Ritos | 326 | 3 (0) | 1 (0) | 3 |
3 | a azanux | 322 | 3 (0) | 1 (0) | 1 |
4 | D DanielEth | 320 | 3 (0) | 1 (0) | 0 |
5 | n | 306 | 3 (0) | 0 (0) | 3 |
6 | E EloiManuel | 305 | 3 (0) | 0 (0) | 2 |
7 | C CarlosAlbaWork | 304 | 3 (0) | 0 (0) | 2 |
8 | f farismaulana | 304 | 3 (0) | 0 (0) | 2 |
9 | S Sahil | 304 | 3 (0) | 0 (0) | 2 |
10 | 0 0x0bserver | 304 | 3 (0) | 0 (0) | 2 |
11 | Z Zkillua | 304 | 3 (0) | 0 (0) | 2 |
12 | A AtulRS | 302 | 3 (0) | 0 (0) | 1 |
13 | p | 302 | 3 (0) | 0 (0) | 1 |
14 | 0 0x6a70 | 302 | 3 (0) | 0 (0) | 1 |
15 | C CazandoCrytpo | 302 | 3 (0) | 0 (0) | 1 |
16 | a abhishekthakur | 302 | 3 (0) | 0 (0) | 1 |
17 | t | 302 | 3 (0) | 0 (0) | 1 |
18 | i i3arba | 302 | 3 (0) | 0 (0) | 1 |
19 | d dimah7 | 302 | 3 (0) | 0 (0) | 1 |
20 | V Vasquez | 300 | 3 (0) | 0 (0) | 0 |
21 | 0 | 300 | 3 (0) | 0 (0) | 0 |
22 | T Turetos | 300 | 3 (0) | 0 (0) | 0 |
23 | f funkornaut | 300 | 3 (0) | 0 (0) | 0 |
24 | R RedPlus | 300 | 3 (0) | 0 (0) | 0 |
25 | s | 275 | 2 (0) | 1 (0) | 3 |
26 | c ceseshi | 246 | 2 (0) | 0 (0) | 3 |
27 | r ret2basic | 228 | 2 (0) | 1 (0) | 0 |
28 | 0 0xjoona | 222 | 2 (0) | 1 (0) | 1 |
29 | N Nocturnus | 222 | 2 (0) | 1 (0) | 1 |
30 | B | 206 | 2 (0) | 0 (0) | 3 |
31 | B Benmunyiri | 204 | 2 (0) | 0 (0) | 2 |
32 | 0 0xlrivo | 202 | 2 (0) | 0 (0) | 1 |
33 | e emacab98 | 202 | 2 (0) | 0 (0) | 1 |
34 | 4 4th05 | 202 | 2 (0) | 0 (0) | 1 |
35 | C Clemmos | 202 | 2 (0) | 0 (0) | 1 |
36 | y y0ng0p3 | 202 | 2 (0) | 0 (0) | 1 |
37 | e easyFloyd | 202 | 2 (0) | 0 (0) | 1 |
38 | n | 202 | 2 (0) | 0 (0) | 1 |
39 | j jenniferSun | 202 | 2 (0) | 0 (0) | 1 |
40 | k kostov | 202 | 2 (0) | 0 (0) | 1 |
41 | 0 0xloscar01 | 200 | 2 (0) | 0 (0) | 0 |
42 | d dougo | 200 | 2 (0) | 0 (0) | 0 |
43 | k k3ySk1lls | 200 | 2 (0) | 0 (0) | 0 |
44 | 0 0xShitgem | 200 | 2 (0) | 0 (0) | 0 |
45 | 0 0xEzSwim | 200 | 2 (0) | 0 (0) | 0 |
46 | C Coffee | 200 | 2 (0) | 0 (0) | 0 |
47 | O Owenzo | 123 | 1 (0) | 1 (0) | 1 |
48 | L | 122 | 1 (0) | 1 (0) | 1 |
49 | D Davide | 122 | 1 (0) | 1 (0) | 1 |
50 | 0 | 120 | 1 (0) | 1 (0) | 0 |
51 | D DuncanDuMond | 120 | 1 (0) | 1 (0) | 0 |
52 | O Oxmetapunk | 120 | 1 (0) | 1 (0) | 0 |
53 | 0 0xshmeks | 104 | 1 (0) | 0 (0) | 2 |
54 | s sweetjimmy0 | 104 | 1 (0) | 0 (0) | 2 |
55 | s steadyman | 102 | 1 (0) | 0 (0) | 1 |
56 | g guru | 102 | 1 (0) | 0 (0) | 1 |
57 | 0 0xRolko | 102 | 1 (0) | 0 (0) | 1 |
58 | J Josh4324 | 102 | 1 (0) | 0 (0) | 1 |
59 | m mahivasisth | 102 | 1 (0) | 0 (0) | 1 |
60 | 0 0xeLSeR17 | 102 | 1 (0) | 0 (0) | 1 |
61 | d ducanh2706 | 102 | 1 (0) | 0 (0) | 1 |
62 | m maziXYZ | 102 | 1 (0) | 0 (0) | 1 |
63 | K | 102 | 1 (0) | 0 (0) | 1 |
64 | B BadalSharma | 100 | 1 (0) | 0 (0) | 0 |
65 | m mircha | 100 | 1 (0) | 0 (0) | 0 |
66 | S Sungyuk1 | 100 | 1 (0) | 0 (0) | 0 |
67 | a ayakd | 100 | 1 (0) | 0 (0) | 0 |
68 | s spidy730 | 100 | 1 (0) | 0 (0) | 0 |
69 | p palmcivet | 100 | 1 (0) | 0 (0) | 0 |
70 | V Vunderthehood | 100 | 1 (0) | 0 (0) | 0 |
71 | m mrMorningstar | 100 | 1 (0) | 0 (0) | 0 |
72 | s shivam21 | 100 | 1 (0) | 0 (0) | 0 |
73 | s sidrahh12 | 100 | 1 (0) | 0 (0) | 0 |
74 | B BalaSmart | 100 | 1 (0) | 0 (0) | 0 |
75 | Y Yasmine | 100 | 1 (0) | 0 (0) | 0 |
76 | 0 0xkeesmark | 2 | 0 (0) | 0 (0) | 1 |
77 | A Awacs | 2 | 0 (0) | 0 (0) | 1 |