Skip to content

Commit

Permalink
feat: add 5 new collections. sort by name (decentraland#210)
Browse files Browse the repository at this point in the history
* feat: add 5 new collections. sort by name

* feat: add collections to the mkt

* fix: typos

* fix: capitalize

* chore: spaces
  • Loading branch information
nicosantangelo authored Jul 25, 2020
1 parent 54d87aa commit e3b2652
Show file tree
Hide file tree
Showing 12 changed files with 343 additions and 4 deletions.
11 changes: 11 additions & 0 deletions indexer/src/data/.addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,25 @@ export const Null = '0x0000000000000000000000000000000000000000'
// This will be correctly set if you deploy using `npm run deploy` or using the deploy.ts script directly
export const LANDRegistry = '{{address:LANDRegistry}}'
export const EstateRegistry = '{{address:EstateRegistry}}'
export const Marketplace = '{{address:Marketplace}}'

export const DCLRegistrar = '{{address:DCLRegistrar}}'

export const CommunityContestCollection =
'{{address:CommunityContestCollection}}'
export const DappcraftMoonminerCollection =
'{{address:DappcraftMoonminerCollection}}'
export const DCGCollection = '{{address:DCGCollection}}'
export const DCLLaunchCollection = '{{address:DCLLaunchCollection}}'
export const DGSummer2020Collection = '{{address:DGSummer2020Collection}}'
export const DgtbleHeadspaceCollection = '{{address:DgtbleHeadspaceCollection}}'
export const ExclusiveMasksCollection = '{{address:ExclusiveMasksCollection}}'
export const Halloween2019Collection = '{{address:Halloween2019Collection}}'
export const MCHCollection = '{{address:MCHCollection}}'
export const Moonshot2020Collection = '{{address:Moonshot2020Collection}}'
export const PMOuttathisworldCollection =
'{{address:PMOuttathisworldCollection}}'
export const StaySafeCollection = '{{address:StaySafeCollection}}'
export const WonderzoneMeteorchaserCollection =
'{{address:WonderzoneMeteorchaserCollection}}'
export const Xmas2019Collection = '{{address:Xmas2019Collection}}'
53 changes: 53 additions & 0 deletions indexer/src/data/wearables/dappcraft_moonminer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import { Wearable } from './Wearable'

export let dappcraft_moonminer: Wearable[] = [
new Wearable(
'moonminer_goggles_eyewear',
'DappCraft Moon Miner Goggles',
'You can see reality as it is. ',
'eyewear',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'moonminer_boots_feet',
'DappCraft Moon Miner Boots',
'Moonlight will recharge these trousers to keep neon effect going',
'feet',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'moonminer_neurahairs_hair',
'DappCraft Moon Miner Neurahairs',
'Neuralink prototype, (not yet) approved by Elon. Use with caution.',
'hair',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'moonminer_helmet',
'DappCraft Moon Miner Helmet',
'New level of crypto mining. Your brain is now connected to the neuro mining pool. Instant payouts. ',
'hat',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'moonminer_pants_lower_body',
'DappCraft Moon Miner Trousers',
'Keep them away from sunlight. Colors might change.',
'lower_body',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'moonminer_jacket_upper_body',
'DappCraft Moon Miner Jacket',
'Moonlight will recharge these trousers to keep neon effect going',
'upper_body',
'legendary',
['BaseMale', 'BaseFemale']
)
]

49 changes: 49 additions & 0 deletions indexer/src/data/wearables/dg_summer_2020.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import { Wearable } from './Wearable'

export let dg_summer_2020: Wearable[] = [
new Wearable(
'dg_flip_up_spectacles_eyewear',
'Shades glasses',
'Swaggy flip up shades for any occasion, inside or outside, featuring a chain to keep them secure. #ice',
'eyewear',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable('dg_deezys_feet', 'Shoes', 'Comfy kicks.', 'feet', 'legendary', [
'BaseMale',
'BaseFemale'
]),
new Wearable(
'dg_slides_feet',
'Slides',
'Lazy day but designer slides complete with socks to keep your toes warm.',
'feet',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'dg_tracksuit_bottom_lower_body',
'Tracksuit bottom',
'The bottom of the decadent and elegant Decentral Games tracksuit fit. #drip',
'lower_body',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'dg_mink_fur_coat_upper_body',
'Mink fur coat',
'An opulent fur coat made from minks. #extrasaus',
'upper_body',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'dg_tracksuit_top_upper_body',
'Tracksuit top',
'The top of the decadent and elegant Decentral Games tracksuit fit. #drip',
'upper_body',
'legendary',
['BaseMale', 'BaseFemale']
)
]

53 changes: 53 additions & 0 deletions indexer/src/data/wearables/dgtble_headspace.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import { Wearable } from './Wearable'

export let dgtble_headspace: Wearable[] = [
new Wearable(
'dgtble_rainbow_grid_shoes_feet',
'The Headspace Rainbow Grid Shoes',
'Rainbow Grid is a licensed artwork collab between The Headspace and Daniel Prust whose aysyemetric patterns and abstract designs deliver an experimental style that transforms outlandish dreams into pleasing aesthetics.',
'feet',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'dgtble_shorts_folife_lower_body',
'The Headspace Flower of Life Shorts',
'We are the divine, and together we make a web of divine life on this planet and beyond that is infinite and unbreakable.',
'lower_body',
'legendary',
['BaseMale']
),
new Wearable(
'dgtble_protection_mask_dala_mask',
'The Headspace Mandala Love Mask',
'Mandala Love is a licensed artwork collab between The Headspace and Cameron Grey an Aria nominated Melbourne Artist who believes you must teach people how to empower themselves from within their true self, at their core level of being, and the rest will always follow.',
'mask',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'dgtble_dress_folife_upper_body',
'The Headspace Flower of Life Dress',
'In your mind�s eye witness The Flower of Life in this space, floating before you in golden light. Take a moment to absorb the divine wisdom contained in this sacred figure.',
'upper_body',
'legendary',
['BaseFemale']
),
new Wearable(
'dgtble_hoodi_linetang_upper_body',
'The Headspace Linetangles Hoodie',
'Linetangles is a licensed artwork from Daniel Prust whose aysyemetric patterns and abstract designs deliver an experimental style that transforms outlandish dreams into pleasing aesthetics. ',
'upper_body',
'legendary',
['BaseMale']
),
new Wearable(
'dgtble_tshirt_message_upper_body',
'The Headspace The Messanger T-Shirt',
'The Messenger is a licensed artwork from Grokko whose hand-drawn works are laid with the intention of stirring memories within our subconscious, to return us to the origins of humanity and discover our purpose going forward. It is through the connection to our timeless selves that our dreams can materialize.',
'upper_body',
'legendary',
['BaseMale']
)
]

6 changes: 6 additions & 0 deletions indexer/src/data/wearables/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
export * from './Wearable'

export * from './community_contest'
export * from './dappcraft_moonminer'
export * from './dcg_collection'
export * from './dcl_launch'
export * from './dg_summer_2020'
export * from './dgtble_headspace'
export * from './exclusive_masks'
export * from './halloween_2019'
export * from './mch_collection'
export * from './moonshot_2020'
export * from './pm_outtathisworld'
export * from './stay_safe'
export * from './wonderzone_meteorchaser'
export * from './xmas_2019'
53 changes: 53 additions & 0 deletions indexer/src/data/wearables/pm_outtathisworld.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import { Wearable } from './Wearable'

export let pm_outtathisworld: Wearable[] = [
new Wearable(
'pm_col1_alien_helmet',
'Alien Helmet',
'An out of this world hat for the believers',
'helmet',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'pm_col1_cat_helmet',
'Cat Helmet',
'A domesticated purring mammal helmet for Cat Lovers',
'helmet',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'pm_col1_dino_helmet',
'Dino Helmet',
'A cartoon pre-human predator helmet',
'helmet',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'pm_col1_panda_helmet',
'Panda Helmet',
'A bamboo-eater helmet for Panda Lovers',
'helmet',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'pm_col1_cargo_pants_lower_body',
'Polygonal Mind - Cargo Pants',
'Some trendy triangle-patterned pants for you to show off',
'lower_body',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'pm_col1_trendy_coat_upper_body',
'Polygonal Mind - Trendy Coat',
'A trendy triangle-patterned coat for you to show off and stay warm in winter',
'upper_body',
'legendary',
['BaseMale', 'BaseFemale']
)
]

53 changes: 53 additions & 0 deletions indexer/src/data/wearables/wonderzone_meteorchaser.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import { Wearable } from './Wearable'

export let wonderzone_meteorchaser: Wearable[] = [
new Wearable(
'meteorchaser_transmitter_earring',
'Meteorchaser transmitters',
'Crafting reward from WonderZone. Gives the wearer a bonus while mining meteorites. Created by Chestnutbruze',
'earring',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'meteorchaser_shoes_feet',
'Shoes of the meteorchaser',
'Crafting reward from WonderZone. Gives the wearer a bonus while mining meteorites. Created by Chestnutbruze',
'feet',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'meteorite_protective_hardhat_hat',
'Meteorite protective hardhat',
'Crafting reward from WonderZone. Will save your life from meteorites falling on your head. Also gives the wearer a bonus while mining meteorites. Created by Chestnutbruze',
'hat',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'meteorchaser_trousers_lower_body',
'Trousers of the meteorchaser',
'Crafting reward from WonderZone. Gives the wearer a bonus while mining meteorites. Created by Chestnutbruze',
'lower_body',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'meteorite_dustmask_mask',
'Meteorite dustmask',
'Crafting reward from WonderZone. Gives the wearer a bonus while mining meteorites. Created by Chestnutbruze',
'mask',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'meteorchaser_vest_upper_body',
'Vest of the Meteorchaser',
'Crafting reward from WonderZone. Gives the wearer a bonus while mining meteorites. Created by Chestnutbruze',
'upper_body',
'legendary',
['BaseMale', 'BaseFemale']
)
]

10 changes: 10 additions & 0 deletions indexer/src/handlers/parcel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ import {
EstateRegistry,
DCLRegistrar,
CommunityContestCollection,
DappcraftMoonminerCollection,
DCGCollection,
DCLLaunchCollection,
DGSummer2020Collection,
DgtbleHeadspaceCollection,
ExclusiveMasksCollection,
Halloween2019Collection,
MCHCollection,
Moonshot2020Collection,
PMOuttathisworldCollection,
StaySafeCollection,
WonderzoneMeteorchaserCollection,
Xmas2019Collection
} from '../data/addresses'
import * as categories from '../modules/category/categories'
Expand All @@ -31,13 +36,18 @@ export function handleInitialize(_: InitializeCall): void {
ERC721.create(Address.fromString(EstateRegistry))
ERC721.create(Address.fromString(DCLRegistrar))
ERC721.create(Address.fromString(CommunityContestCollection))
ERC721.create(Address.fromString(DappcraftMoonminerCollection))
ERC721.create(Address.fromString(DCGCollection))
ERC721.create(Address.fromString(DCLLaunchCollection))
ERC721.create(Address.fromString(DGSummer2020Collection))
ERC721.create(Address.fromString(DgtbleHeadspaceCollection))
ERC721.create(Address.fromString(ExclusiveMasksCollection))
ERC721.create(Address.fromString(Halloween2019Collection))
ERC721.create(Address.fromString(MCHCollection))
ERC721.create(Address.fromString(Moonshot2020Collection))
ERC721.create(Address.fromString(PMOuttathisworldCollection))
ERC721.create(Address.fromString(StaySafeCollection))
ERC721.create(Address.fromString(WonderzoneMeteorchaserCollection))
ERC721.create(Address.fromString(Xmas2019Collection))

count.started = 1
Expand Down
9 changes: 7 additions & 2 deletions indexer/src/modules/category/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,25 @@ export function getCategory(contractAddress: string): string {
category = categories.PARCEL
} else if (contractAddress == addresses.EstateRegistry) {
category = categories.ESTATE
} else if (contractAddress == addresses.DCLRegistrar) {
category = categories.ENS
} else if (
contractAddress == addresses.CommunityContestCollection ||
contractAddress == addresses.DappcraftMoonminerCollection ||
contractAddress == addresses.DCGCollection ||
contractAddress == addresses.DCLLaunchCollection ||
contractAddress == addresses.DGSummer2020Collection ||
contractAddress == addresses.DgtbleHeadspaceCollection ||
contractAddress == addresses.ExclusiveMasksCollection ||
contractAddress == addresses.Halloween2019Collection ||
contractAddress == addresses.MCHCollection ||
contractAddress == addresses.Moonshot2020Collection ||
contractAddress == addresses.PMOuttathisworldCollection ||
contractAddress == addresses.StaySafeCollection ||
contractAddress == addresses.WonderzoneMeteorchaserCollection ||
contractAddress == addresses.Xmas2019Collection
) {
category = categories.WEARABLE
} else if (contractAddress == addresses.DCLRegistrar) {
category = categories.ENS
} else {
log.warning('Contract address {} not being monitored', [contractAddress])
category = contractAddress
Expand Down
Loading

0 comments on commit e3b2652

Please sign in to comment.