-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
186a0f4
commit fe2749b
Showing
23 changed files
with
671 additions
and
169 deletions.
There are no files selected for viewing
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
use blob::generation::traits::data::jewelry; | ||
|
||
const jewelry_COUNT: u8 = 9; | ||
fn jewellries(index: u8) -> (ByteArray, ByteArray) { | ||
assert(index < jewelry_COUNT, 'wrong jewelry index'); | ||
let index: felt252 = index.into(); | ||
|
||
match index { | ||
0 => (jewelry::amulet(), "Amulet"), | ||
1 => (jewelry::bronzering(), "Bronze Ring"), | ||
2 => (jewelry::goldring(), "Gold Ring"), | ||
3 => (jewelry::necklace(), "Necklace"), | ||
4 => (jewelry::nounsglasses(), "Nouns Glasses"), | ||
5 => (jewelry::pendant(), "Pendant"), | ||
6 => (jewelry::platinumring(), "Platinum Ring"), | ||
7 => (jewelry::silverring(), "Silver Ring"), | ||
8 => (jewelry::titaniumring(), "Titanium Ring"), | ||
_ => panic!("wrong jewelry index") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 119 additions & 0 deletions
119
contracts/src/tests/unit_tests/test_descriptor_custom.cairo
Large diffs are not rendered by default.
Oops, something went wrong.
98 changes: 98 additions & 0 deletions
98
contracts/src/tests/unit_tests/test_descriptor_regular.cairo
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.