From 04a17a175c94b63f66bc6275333c70ddc0101443 Mon Sep 17 00:00:00 2001 From: PavitraAgarwal21 Date: Wed, 4 Dec 2024 11:05:19 +0530 Subject: [PATCH 1/3] Upgrade NFT Traits --- src/base/token_uris/traits.cairo | 11 +- src/base/token_uris/traits/back.cairo | 51 ++ src/base/token_uris/traits/background.cairo | 13 +- src/base/token_uris/traits/beard.cairo | 45 - src/base/token_uris/traits/body.cairo | 883 +++++++++++++++++++ src/base/token_uris/traits/cloth.cairo | 32 +- src/base/token_uris/traits/eyeacessory.cairo | 47 - src/base/token_uris/traits/face.cairo | 62 ++ src/base/token_uris/traits/glass.cairo | 46 - src/base/token_uris/traits/head.cairo | 112 +-- src/base/token_uris/traits/profile.cairo | 17 +- 11 files changed, 1063 insertions(+), 256 deletions(-) create mode 100644 src/base/token_uris/traits/back.cairo delete mode 100644 src/base/token_uris/traits/beard.cairo create mode 100644 src/base/token_uris/traits/body.cairo delete mode 100644 src/base/token_uris/traits/eyeacessory.cairo create mode 100644 src/base/token_uris/traits/face.cairo delete mode 100644 src/base/token_uris/traits/glass.cairo diff --git a/src/base/token_uris/traits.cairo b/src/base/token_uris/traits.cairo index 1b1b821..524fcb6 100644 --- a/src/base/token_uris/traits.cairo +++ b/src/base/token_uris/traits.cairo @@ -1,9 +1,10 @@ -pub mod head; -pub mod glass; +pub mod head; // 5 +pub mod back; //4 pub mod color; -pub mod beard; -pub mod background; -pub mod cloth; +pub mod body; //3 +pub mod background; //2 +pub mod cloth; //1 +pub mod face; pub mod profile; pub mod handle; pub mod follow; diff --git a/src/base/token_uris/traits/back.cairo b/src/base/token_uris/traits/back.cairo new file mode 100644 index 0000000..d14acb1 --- /dev/null +++ b/src/base/token_uris/traits/back.cairo @@ -0,0 +1,51 @@ +// let make the face of the profile svg + +pub mod back { + use coloniz::base::utils::byte_array_extra::FeltTryIntoByteArray; + + #[derive(Drop)] + enum BackVariant { + BLUEFLAG, // 1 + BLUEGOLFSTICK, // 2 + FISHINGSTICK, // 3 + REDFLAG, // 4 + STYLIZEDBATON, // 5 + WHITEGOLFSTICK, // 6 + } + + pub fn backSvgStart() -> ByteArray { + getbackVariant(BackVariant::BLUEFLAG) + } + + + pub fn getbackVariant(backVariant: BackVariant) -> ByteArray { + let mut decidedBack: ByteArray = Default::default(); + match backVariant { + BackVariant::BLUEFLAG => { + decidedBack = + "" + }, + BackVariant::BLUEGOLFSTICK => { + decidedBack = + "" + }, + BackVariant::FISHINGSTICK => { + decidedBack = + "" + }, + BackVariant::REDFLAG => { + decidedBack = + "" + }, + BackVariant::STYLIZEDBATON => { + decidedBack = + "" + }, + BackVariant::WHITEGOLFSTICK => { + decidedBack = + "" + } + } + decidedBack + } +} diff --git a/src/base/token_uris/traits/background.cairo b/src/base/token_uris/traits/background.cairo index cd8c18f..8d95a53 100644 --- a/src/base/token_uris/traits/background.cairo +++ b/src/base/token_uris/traits/background.cairo @@ -9,6 +9,7 @@ pub mod background { BACKGROUND2, // 2 BACKGROUND3, // 3 BACKGROUND4, // 4 + BACKGROUND5, // 5 } pub fn backgroundSvgStart() -> ByteArray { @@ -20,19 +21,23 @@ pub mod background { match backgroundVariant { BackgroundVariants::BACKGROUND1 => { decidedbackground = - "" + "" }, BackgroundVariants::BACKGROUND2 => { decidedbackground = - "" + "" }, BackgroundVariants::BACKGROUND3 => { decidedbackground = - "" + "" }, BackgroundVariants::BACKGROUND4 => { decidedbackground = - "" + "" + }, + BackgroundVariants::BACKGROUND5 => { + decidedbackground = + "" }, } decidedbackground diff --git a/src/base/token_uris/traits/beard.cairo b/src/base/token_uris/traits/beard.cairo deleted file mode 100644 index fab4c3a..0000000 --- a/src/base/token_uris/traits/beard.cairo +++ /dev/null @@ -1,45 +0,0 @@ -// let make the face of the profile svg - -pub mod beard { - use coloniz::base::utils::byte_array_extra::FeltTryIntoByteArray; - - #[derive(Drop)] - enum BeardVariants { - Beard1, // 1 - Beard2, // 2 - Beard3, // 3 - Beard4, // 4 - Beard5, // 5 - } - - pub fn beardSvgStart() -> ByteArray { - getBeardvariant(BeardVariants::Beard3) - } - - pub fn getBeardvariant(glassVariant: BeardVariants) -> ByteArray { - let mut decidedBeard: ByteArray = Default::default(); - match glassVariant { - BeardVariants::Beard1 => { - decidedBeard = - "" - }, - BeardVariants::Beard2 => { - decidedBeard = - "" - }, - BeardVariants::Beard3 => { - decidedBeard = - "" - }, - BeardVariants::Beard4 => { - decidedBeard = - "" - }, - BeardVariants::Beard5 => { - decidedBeard = - "" - } - } - decidedBeard - } -} diff --git a/src/base/token_uris/traits/body.cairo b/src/base/token_uris/traits/body.cairo new file mode 100644 index 0000000..e8fe335 --- /dev/null +++ b/src/base/token_uris/traits/body.cairo @@ -0,0 +1,883 @@ +// let make the face of the profile svg + +pub mod body { + use coloniz::base::utils::byte_array_extra::FeltTryIntoByteArray; + + #[derive(Drop)] + enum BodyVariants { + Body1, // 1 + Body2, // 2 + Body3, // 3 + Body4, // 4 + Body5, // 5 + Body6, + Body7, + } + + pub fn bodySvgStart() -> ByteArray { + getBodyvariant(BodyVariants::Body7) + } + + pub fn getBodyvariant(backVariant: BodyVariants) -> ByteArray { + let mut decidedBody: ByteArray = Default::default(); + match backVariant { + BodyVariants::Body1 => { + decidedBody = + "" + }, + BodyVariants::Body2 => { + decidedBody = + "" + }, + BodyVariants::Body3 => { + decidedBody = + "" + }, + BodyVariants::Body4 => { + decidedBody = + "" + }, + BodyVariants::Body5 => { + decidedBody = + "" + }, + BodyVariants::Body6 => { + decidedBody = + "" + }, + BodyVariants::Body7 => { + decidedBody = + "" + }, + } + decidedBody + } +} diff --git a/src/base/token_uris/traits/cloth.cairo b/src/base/token_uris/traits/cloth.cairo index 7a7a690..d63910b 100644 --- a/src/base/token_uris/traits/cloth.cairo +++ b/src/base/token_uris/traits/cloth.cairo @@ -5,40 +5,40 @@ pub mod cloth { #[derive(Drop)] enum ClothVariants { - BlACKCOLLARSHIRT, // 1 - BLACKSHIRT, // 2 - COLLARSHIRT, // 3 - PINKTSHIRT, // 4 - TANKTOP, // 5 + CLOTH1, + ClOTH2, // 1 + CLOTH3, // 2 + CLOTH4, // 3 + CLOTH5, // 4 } pub fn clothSvgStart() -> ByteArray { - getClothvariant(ClothVariants::BlACKCOLLARSHIRT) + getClothvariant(ClothVariants::ClOTH2) } pub fn getClothvariant(clothVariant: ClothVariants) -> ByteArray { let mut decidedCloth: ByteArray = Default::default(); match clothVariant { - ClothVariants::BlACKCOLLARSHIRT => { + ClothVariants::CLOTH1 => { decidedCloth = - "" + "" }, - ClothVariants::BLACKSHIRT // 2 + ClothVariants::ClOTH2 // 2 => { decidedCloth = - "" + "" }, - ClothVariants::COLLARSHIRT => { + ClothVariants::CLOTH3 => { decidedCloth = - "" + "" }, - ClothVariants::PINKTSHIRT => { + ClothVariants::CLOTH4 => { decidedCloth = - "" + "" }, - ClothVariants::TANKTOP => { + ClothVariants::CLOTH5 => { decidedCloth = - "" + "" } } decidedCloth diff --git a/src/base/token_uris/traits/eyeacessory.cairo b/src/base/token_uris/traits/eyeacessory.cairo deleted file mode 100644 index e696c19..0000000 --- a/src/base/token_uris/traits/eyeacessory.cairo +++ /dev/null @@ -1,47 +0,0 @@ -// let make the face of the profile svg - -pub mod eyeacessory { - use core::traits::TryInto; - use coloniz::base::token_uris::traits::color::colonizColors; - use coloniz::base::utils::byte_array_extra::FeltTryIntoByteArray; - - #[derive(Drop)] - enum EyeAcessoryVariants { - BALL, // 1 - BLACKSTUD, // 2 - CIRCULAR, // 3 - CROSS, // 4 - SPEAR, // 5 - } - - pub fn eyeacessorySvgStart() -> ByteArray { - getacessoryvariant(EyeAcessoryVariants::CIRCULAR) - } - - pub fn getacessoryvariant(eyeAcessoryVariant: EyeAcessoryVariants) -> ByteArray { - let mut decidedAcessory: ByteArray = Default::default(); - match eyeAcessoryVariant { - EyeAcessoryVariants::BALL => { - decidedAcessory = - "" - }, - EyeAcessoryVariants::BLACKSTUD => { - decidedAcessory = - "" - }, - EyeAcessoryVariants::CIRCULAR => { - decidedAcessory = - "" - }, - EyeAcessoryVariants::CROSS => { - decidedAcessory = - "" - }, - EyeAcessoryVariants::SPEAR => { - decidedAcessory = - "" - } - } - decidedAcessory - } -} diff --git a/src/base/token_uris/traits/face.cairo b/src/base/token_uris/traits/face.cairo new file mode 100644 index 0000000..c44048a --- /dev/null +++ b/src/base/token_uris/traits/face.cairo @@ -0,0 +1,62 @@ +// let make the face of the profile svg + +pub mod face { + use core::traits::TryInto; + use coloniz::base::token_uris::traits::color::colonizColors; + use coloniz::base::utils::byte_array_extra::FeltTryIntoByteArray; + + #[derive(Drop)] + enum FaceVariants { + FACE1, // 1 + FACE2, // 2 + FACE3, // 3 + FACE4, // 4 + FACE5, // 5 + FACE6, // 6 + FACE7, // 7 + FACE8, // 8 + } + + pub fn faceSvgStart() -> ByteArray { + getacessoryvariant(FaceVariants::FACE1) + } + + pub fn getacessoryvariant(faceVariant: FaceVariants) -> ByteArray { + let mut decidedAcessory: ByteArray = Default::default(); + match faceVariant { + FaceVariants::FACE1 => { + decidedAcessory = + "" + }, + FaceVariants::FACE2 => { + decidedAcessory = + "" + }, + FaceVariants::FACE3 => { + decidedAcessory = + "" + }, + FaceVariants::FACE4 => { + decidedAcessory = + "" + }, + FaceVariants::FACE5 => { + decidedAcessory = + "" + }, + FaceVariants::FACE6 => { + decidedAcessory = + "" + }, + FaceVariants::FACE7 => { + decidedAcessory = + "HELLO" + }, + FaceVariants::FACE8 => { + decidedAcessory = + "" + }, + } + decidedAcessory + } +} diff --git a/src/base/token_uris/traits/glass.cairo b/src/base/token_uris/traits/glass.cairo deleted file mode 100644 index 3b057d5..0000000 --- a/src/base/token_uris/traits/glass.cairo +++ /dev/null @@ -1,46 +0,0 @@ -// let make the face of the profile svg - -pub mod glass { - use coloniz::base::utils::byte_array_extra::FeltTryIntoByteArray; - - #[derive(Drop)] - enum GlassVariants { - CIRCULARLENSDARKSHADES, // 1 - DARKSHADES, // 2 - EYEPATCH, // 3 - PHOTOSNIPER, // 4 - VRSET, // 5 - } - - pub fn glassSvgStart() -> ByteArray { - getGlassvariant(GlassVariants::EYEPATCH) - } - - - pub fn getGlassvariant(glassVariant: GlassVariants) -> ByteArray { - let mut decidedGlass: ByteArray = Default::default(); - match glassVariant { - GlassVariants::CIRCULARLENSDARKSHADES => { - decidedGlass = - "" - }, - GlassVariants::DARKSHADES => { - decidedGlass = - "" - }, - GlassVariants::EYEPATCH => { - decidedGlass = - "" - }, - GlassVariants::PHOTOSNIPER => { - decidedGlass = - "" - }, - GlassVariants::VRSET => { - decidedGlass = - "" - } - } - decidedGlass - } -} diff --git a/src/base/token_uris/traits/head.cairo b/src/base/token_uris/traits/head.cairo index 8b2bbfa..b6b5e49 100644 --- a/src/base/token_uris/traits/head.cairo +++ b/src/base/token_uris/traits/head.cairo @@ -4,111 +4,51 @@ pub mod head { use coloniz::base::utils::byte_array_extra::FeltTryIntoByteArray; #[derive(Drop)] - enum FaceVariants { - HEAD1NEUTRAL1, // 1 - HEAD1NEUTRAL2, //2 - HEAD1SAD, // 3 - HEAD1SMILE, // 4 - HEAD2NEUTRAL1, // 5 - HEAD2NEUTRAL2, - HEAD2SAD, - HEAD2SMILE, - HEAD3NEUTRAL1, - HEAD3SAD, - HEAD3SMILE, - HEAD4NEUTRAL1, - HEAD4NEUTRAL2, - HEAD4SAD, - HEAD4SMILE, - HEAD5NEUTRAL1, - HEAD5NEUTRAL2, - HEAD5SAD, - HEAD5SMILE, + enum HeadVariants { + BLACKVISOR, // 1 + BLUEMASK, //2 + CAP, // 3 + ORANGEMASK, // 4 + PINKVISOR, // 5 + REDMASK, // 6 + VRHEADSET, // 7 } - pub fn faceSvgStart() -> ByteArray { - getHeadvariant(FaceVariants::HEAD5SMILE) + pub fn headSvgStart() -> ByteArray { + getHeadvariant(HeadVariants::BLACKVISOR) } - pub fn getHeadvariant(faceVariant: FaceVariants) -> ByteArray { + pub fn getHeadvariant(headVariant: HeadVariants) -> ByteArray { let mut decidedFace: ByteArray = Default::default(); - match faceVariant { - FaceVariants::HEAD1NEUTRAL1 => { + match headVariant { + HeadVariants::BLACKVISOR => { decidedFace = - "" + "" }, - FaceVariants::HEAD1NEUTRAL2 => { + HeadVariants::BLUEMASK => { decidedFace = - "" + "" }, - FaceVariants::HEAD1SAD => { + HeadVariants::CAP => { decidedFace = - "" + "" }, - FaceVariants::HEAD1SMILE => { + HeadVariants::ORANGEMASK => { decidedFace = - "" + "" }, - FaceVariants::HEAD2NEUTRAL1 => { + HeadVariants::PINKVISOR => { decidedFace = - "" + "" }, - FaceVariants::HEAD2NEUTRAL2 => { + HeadVariants::REDMASK => { decidedFace = - ""; + "" }, - FaceVariants::HEAD2SAD => { + HeadVariants::VRHEADSET => { decidedFace = - ""; - }, - FaceVariants::HEAD2SMILE => { - decidedFace = - ""; - }, - FaceVariants::HEAD3NEUTRAL1 => { - decidedFace = - ""; - }, - FaceVariants::HEAD3SAD => { - decidedFace = - ""; - }, - FaceVariants::HEAD3SMILE => { - decidedFace = - ""; - }, - FaceVariants::HEAD4NEUTRAL1 => { - decidedFace = - "" - }, - FaceVariants::HEAD4NEUTRAL2 => { - decidedFace = - "" - }, - FaceVariants::HEAD4SAD => { - decidedFace = - "" - }, - FaceVariants::HEAD4SMILE => { - decidedFace = - "" - }, - FaceVariants::HEAD5NEUTRAL1 => { - decidedFace = - "" - }, - FaceVariants::HEAD5NEUTRAL2 => { - decidedFace = - "" - }, - FaceVariants::HEAD5SAD => { - decidedFace = - "" - }, - FaceVariants::HEAD5SMILE => { - decidedFace = - "" + "" }, } return decidedFace; diff --git a/src/base/token_uris/traits/profile.cairo b/src/base/token_uris/traits/profile.cairo index 0ddce31..f9330ee 100644 --- a/src/base/token_uris/traits/profile.cairo +++ b/src/base/token_uris/traits/profile.cairo @@ -1,18 +1,21 @@ pub mod ProfileSvg { - use coloniz::base::token_uris::traits::head::head::faceSvgStart; - use coloniz::base::token_uris::traits::glass::glass::glassSvgStart; - use coloniz::base::token_uris::traits::beard::beard::beardSvgStart; + use coloniz::base::token_uris::traits::head::head::headSvgStart; + use coloniz::base::token_uris::traits::back::back::backSvgStart; + use coloniz::base::token_uris::traits::body::body::bodySvgStart; use coloniz::base::token_uris::traits::cloth::cloth::clothSvgStart; use coloniz::base::token_uris::traits::background::background::backgroundSvgStart; - + use coloniz::base::token_uris::traits::face::face::faceSvgStart; pub fn gen_profile_svg() -> ByteArray { let mut profilesvg: ByteArray = ""; profilesvg.append(@backgroundSvgStart()); - profilesvg.append(@faceSvgStart()); - profilesvg.append(@glassSvgStart()); - profilesvg.append(@beardSvgStart()); + // profilesvg.append(@faceSvgStart()); + // profilesvg.append(@glassSvgStart()); + profilesvg.append(@bodySvgStart()); profilesvg.append(@clothSvgStart()); + profilesvg.append(@headSvgStart()); + profilesvg.append(@backSvgStart()); + profilesvg.append(@faceSvgStart()); profilesvg.append(@""); profilesvg } From 6c0e1734e4c7c873937159426c171e714bd7366a Mon Sep 17 00:00:00 2001 From: PavitraAgarwal21 Date: Wed, 4 Dec 2024 20:20:17 +0530 Subject: [PATCH 2/3] remove unwanted traits --- src/base/token_uris/traits.cairo | 2 +- src/base/token_uris/traits/eyebrows.cairo | 47 ----------------------- src/base/token_uris/traits/eyecolor.cairo | 47 ----------------------- src/base/token_uris/traits/profile.cairo | 2 - 4 files changed, 1 insertion(+), 97 deletions(-) delete mode 100644 src/base/token_uris/traits/eyebrows.cairo delete mode 100644 src/base/token_uris/traits/eyecolor.cairo diff --git a/src/base/token_uris/traits.cairo b/src/base/token_uris/traits.cairo index 524fcb6..072de7c 100644 --- a/src/base/token_uris/traits.cairo +++ b/src/base/token_uris/traits.cairo @@ -1,10 +1,10 @@ pub mod head; // 5 pub mod back; //4 -pub mod color; pub mod body; //3 pub mod background; //2 pub mod cloth; //1 pub mod face; +pub mod color; pub mod profile; pub mod handle; pub mod follow; diff --git a/src/base/token_uris/traits/eyebrows.cairo b/src/base/token_uris/traits/eyebrows.cairo deleted file mode 100644 index 4eaff0b..0000000 --- a/src/base/token_uris/traits/eyebrows.cairo +++ /dev/null @@ -1,47 +0,0 @@ -// let make the face of the profile svg - -mod eyebrows { - use core::traits::TryInto; - use coloniz::base::token_uris::traits::color::colonizColors; - use coloniz::base::utils::byte_array_extra::FeltTryIntoByteArray; - - #[derive(Drop)] - enum EyebrowsVariants { - EYEBROW1, // 1 - EYEBROW2, // 2 - EYEBROW3, // 3 - EYEBROW4, // 4 - EYEBROW5, // 5 - } - - pub fn eyebrowsSvgStart() -> ByteArray { - geteyebrowsvariant(EyebrowsVariants::EYEBROW3) - } - - pub fn geteyebrowsvariant(glassVariant: EyebrowsVariants) -> ByteArray { - let mut decidedEyebrow: ByteArray = Default::default(); - match glassVariant { - EyebrowsVariants::EYEBROW1 => { - decidedEyebrow = - "" - }, - EyebrowsVariants::EYEBROW2 => { - decidedEyebrow = - "" - }, - EyebrowsVariants::EYEBROW3 => { - decidedEyebrow = - "" - }, - EyebrowsVariants::EYEBROW4 => { - decidedEyebrow = - "" - }, - EyebrowsVariants::EYEBROW5 => { - decidedEyebrow = - "" - } - } - decidedEyebrow - } -} diff --git a/src/base/token_uris/traits/eyecolor.cairo b/src/base/token_uris/traits/eyecolor.cairo deleted file mode 100644 index 20ab215..0000000 --- a/src/base/token_uris/traits/eyecolor.cairo +++ /dev/null @@ -1,47 +0,0 @@ -// let make the face of the profile svg - -mod eyecolor { - use core::traits::TryInto; - use coloniz::base::token_uris::traits::color::colonizColors; - use coloniz::base::utils::byte_array_extra::FeltTryIntoByteArray; - - #[derive(Drop)] - enum EyeColorVariants { - BLUE, // 1 - GREEN, // 2 - ORANGE, // 3 - RED, // 4 - SATORANGE, // 5 - } - - pub fn eyecolorSvgStart() -> ByteArray { - geteyecolorvariant(EyeColorVariants::RED) - } - - pub fn geteyecolorvariant(eyeColorVariant: EyeColorVariants) -> ByteArray { - let mut decidedcolor: ByteArray = Default::default(); - match eyeColorVariant { - EyeColorVariants::BLUE => { - decidedcolor = - "" - }, - EyeColorVariants::GREEN => { - decidedcolor = - "" - }, - EyeColorVariants::ORANGE => { - decidedcolor = - "" - }, - EyeColorVariants::RED => { - decidedcolor = - "" - }, - EyeColorVariants::SATORANGE => { - decidedcolor = - "" - } - } - decidedcolor - } -} diff --git a/src/base/token_uris/traits/profile.cairo b/src/base/token_uris/traits/profile.cairo index f9330ee..c854c4b 100644 --- a/src/base/token_uris/traits/profile.cairo +++ b/src/base/token_uris/traits/profile.cairo @@ -9,8 +9,6 @@ pub mod ProfileSvg { let mut profilesvg: ByteArray = ""; profilesvg.append(@backgroundSvgStart()); - // profilesvg.append(@faceSvgStart()); - // profilesvg.append(@glassSvgStart()); profilesvg.append(@bodySvgStart()); profilesvg.append(@clothSvgStart()); profilesvg.append(@headSvgStart()); From cf958bfbba9e9d840ee6e142ed3d4856301ff169 Mon Sep 17 00:00:00 2001 From: PavitraAgarwal21 Date: Thu, 5 Dec 2024 09:38:44 +0530 Subject: [PATCH 3/3] restructure of traits files --- src/base/token_uris/traits.cairo | 6 ------ src/base/token_uris/traits/profile.cairo | 21 ++++++++++++------- .../traits/{ => profile}/back.cairo | 0 .../traits/{ => profile}/background.cairo | 0 .../traits/{ => profile}/body.cairo | 0 .../traits/{ => profile}/cloth.cairo | 0 .../traits/{ => profile}/face.cairo | 0 .../traits/{ => profile}/head.cairo | 0 8 files changed, 14 insertions(+), 13 deletions(-) rename src/base/token_uris/traits/{ => profile}/back.cairo (100%) rename src/base/token_uris/traits/{ => profile}/background.cairo (100%) rename src/base/token_uris/traits/{ => profile}/body.cairo (100%) rename src/base/token_uris/traits/{ => profile}/cloth.cairo (100%) rename src/base/token_uris/traits/{ => profile}/face.cairo (100%) rename src/base/token_uris/traits/{ => profile}/head.cairo (100%) diff --git a/src/base/token_uris/traits.cairo b/src/base/token_uris/traits.cairo index 072de7c..c8980b2 100644 --- a/src/base/token_uris/traits.cairo +++ b/src/base/token_uris/traits.cairo @@ -1,9 +1,3 @@ -pub mod head; // 5 -pub mod back; //4 -pub mod body; //3 -pub mod background; //2 -pub mod cloth; //1 -pub mod face; pub mod color; pub mod profile; pub mod handle; diff --git a/src/base/token_uris/traits/profile.cairo b/src/base/token_uris/traits/profile.cairo index c854c4b..2272e73 100644 --- a/src/base/token_uris/traits/profile.cairo +++ b/src/base/token_uris/traits/profile.cairo @@ -1,10 +1,17 @@ -pub mod ProfileSvg { - use coloniz::base::token_uris::traits::head::head::headSvgStart; - use coloniz::base::token_uris::traits::back::back::backSvgStart; - use coloniz::base::token_uris::traits::body::body::bodySvgStart; - use coloniz::base::token_uris::traits::cloth::cloth::clothSvgStart; - use coloniz::base::token_uris::traits::background::background::backgroundSvgStart; - use coloniz::base::token_uris::traits::face::face::faceSvgStart; +pub mod head; +pub mod back; +pub mod body; +pub mod cloth; +pub mod background; +pub mod face; + +pub mod profile { + use coloniz::base::token_uris::traits::profile::head::head::headSvgStart; + use coloniz::base::token_uris::traits::profile::back::back::backSvgStart; + use coloniz::base::token_uris::traits::profile::body::body::bodySvgStart; + use coloniz::base::token_uris::traits::profile::cloth::cloth::clothSvgStart; + use coloniz::base::token_uris::traits::profile::background::background::backgroundSvgStart; + use coloniz::base::token_uris::traits::profile::face::face::faceSvgStart; pub fn gen_profile_svg() -> ByteArray { let mut profilesvg: ByteArray = ""; diff --git a/src/base/token_uris/traits/back.cairo b/src/base/token_uris/traits/profile/back.cairo similarity index 100% rename from src/base/token_uris/traits/back.cairo rename to src/base/token_uris/traits/profile/back.cairo diff --git a/src/base/token_uris/traits/background.cairo b/src/base/token_uris/traits/profile/background.cairo similarity index 100% rename from src/base/token_uris/traits/background.cairo rename to src/base/token_uris/traits/profile/background.cairo diff --git a/src/base/token_uris/traits/body.cairo b/src/base/token_uris/traits/profile/body.cairo similarity index 100% rename from src/base/token_uris/traits/body.cairo rename to src/base/token_uris/traits/profile/body.cairo diff --git a/src/base/token_uris/traits/cloth.cairo b/src/base/token_uris/traits/profile/cloth.cairo similarity index 100% rename from src/base/token_uris/traits/cloth.cairo rename to src/base/token_uris/traits/profile/cloth.cairo diff --git a/src/base/token_uris/traits/face.cairo b/src/base/token_uris/traits/profile/face.cairo similarity index 100% rename from src/base/token_uris/traits/face.cairo rename to src/base/token_uris/traits/profile/face.cairo diff --git a/src/base/token_uris/traits/head.cairo b/src/base/token_uris/traits/profile/head.cairo similarity index 100% rename from src/base/token_uris/traits/head.cairo rename to src/base/token_uris/traits/profile/head.cairo