Skip to content

Commit

Permalink
feat: add new collections (decentraland#243)
Browse files Browse the repository at this point in the history
* feat: add new collections to indexer

* feat: add xmash up 2020 collection

* feat: add threelau

* feat: update webapp's contract service

Co-authored-by: Ignacio Mazzara <[email protected]>
  • Loading branch information
nicosantangelo and nachomazzara authored Dec 21, 2020
1 parent 066fec5 commit a455056
Show file tree
Hide file tree
Showing 11 changed files with 377 additions and 24 deletions.
5 changes: 5 additions & 0 deletions indexer/src/data/.addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,22 @@ export const ExclusiveMasksCollection = '{{address:ExclusiveMasksCollection}}'
export const Halloween2019Collection = '{{address:Halloween2019Collection}}'
export const Halloween2020Collection = '{{address:Halloween2020Collection}}'
export const MCHCollection = '{{address:MCHCollection}}'
export const MemeDontBuyThis = '{{address:MemeDontBuyThis}}'
export const MFSammichgamer = '{{address:MFSammichgamer}}'
export const MLPekingopera = '{{address:MLPekingopera}}'
export const Moonshot2020Collection = '{{address:Moonshot2020Collection}}'
export const PMDreamverseEminence = '{{address:PMDreamverseEminence}}'
export const PMOuttathisworldCollection =
'{{address:PMOuttathisworldCollection}}'
export const ReleaseTheKraken = '{{address:ReleaseTheKraken}}'
export const StaySafeCollection = '{{address:StaySafeCollection}}'
export const SugarclubYumi = '{{address:SugarclubYumi}}'
export const TechTribalMarc0matic = '{{address:TechTribalMarc0matic}}'
export const ThreeLAUBasics = '{{address:3LAUBasics}}'
export const WonderzoneMeteorchaserCollection =
'{{address:WonderzoneMeteorchaserCollection}}'
export const WonderzoneSteampunk = '{{address:WonderzoneSteampunk}}'
export const WZWonderbot = '{{address:WZWonderbot}}'
export const Xmas2019Collection = '{{address:Xmas2019Collection}}'
export const Xmas2020Collection = '{{address:Xmas2020Collection}}'
export const XmashUp2020 = '{{address:XmashUp2020}}'
6 changes: 6 additions & 0 deletions indexer/src/data/wearables/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,21 @@ export * from './exclusive_masks'
export * from './halloween_2019'
export * from './halloween_2020'
export * from './mch_collection'
export * from './meme_dontbuythis'
export * from './mf_sammichgamer'
export * from './ml_pekingopera'
export * from './moonshot_2020'
export * from './pm_dreamverse_eminence'
export * from './pm_outtathisworld'
export * from './release_the_kraken'
export * from './stay_safe'
export * from './sugarclub_yumi'
export * from './tech_tribal_marc0matic'
export * from './threelau_basics'
export * from './wonderzone_meteorchaser'
export * from './wonderzone_steampunk'
export * from './wz_wonderbot'
export * from './xmas_2019'
export * from './xmas_2020'
export * from './xmash_up_2020'

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

export let meme_dontbuythis: Wearable[] = [
new Wearable(
'meme_helmet_pineapple',
'Tasty Pineapple Head',
"Tasty Pineapple Head from the $Meme Collection - Don't wear this",
'helmet',
'epic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'meme_pants_pineapple',
'Fresh Pineapple Pants',
"Fresh Pineapple Pants from the $Meme collection - Don't wear this",
'lower_body',
'epic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'meme_suit_pineapple_onesie',
'Sweet Pineapple Onesie',
"Sweet Pineapple Onesie from the $Meme collection - Don't wear this",
'upper_body',
'epic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'meme_suit_pineapple',
'Cool Pineapple Suit',
"Cool Pineapple Suit from the $Meme collection - Don't wear this",
'upper_body',
'epic',
['BaseMale', 'BaseFemale']
)
]

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

export let release_the_kraken: Wearable[] = [
new Wearable(
'kraken_epic_hat',
'Kraken Ruby-Eye Crown',
'The Kraken is released upon Decentraland',
'hat',
'epic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'kraken_hat',
'Kraken Hat',
'The Kraken is released upon Decentraland',
'hat',
'common',
['BaseMale', 'BaseFemale']
),
new Wearable(
'kraken_legendary_hat',
'Kraken Gold-Eye Crown',
'The Kraken is released upon Decentraland',
'hat',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'kraken_mythic_hat',
'Kraken Cyborg Crown',
'The Kraken is released upon Decentraland',
'hat',
'mythic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'kraken_hoodie_upper_body',
'Kraken Logo Hoodie',
'The Kraken is released upon Decentraland',
'upper_body',
'common',
['BaseMale', 'BaseFemale']
),
new Wearable(
'kraken_tshirt_upper_body',
'Kraken Logo T- Shirt',
'The Kraken is released upon Decentraland',
'upper_body',
'common',
['BaseMale', 'BaseFemale']
)
]

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

export let threelau_basics: Wearable[] = [
new Wearable(
'3lau_blue_hat',
'3LAU Blue Triangle Cap',
"3LAU's signature triangle on a black and blue cap.",
'hat',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'3lau_white_hat',
'3LAU White Triangle Cap',
"3LAU's signature triangle on a black and white cap.",
'hat',
'epic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'3lau_hoodie_b_upper_body',
'3LAU Blue Triangle Hoodie',
"3LAU's signature triangle on a black and blue hoodie.",
'upper_body',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'3lau_hoodie_w_upper_body',
'3LAU White Triangle Hoodie',
"3LAU's signature triangle on a black and white hoodie.",
'upper_body',
'epic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'3lau_tshirt_b_upper_body',
'3LAU Blue Triangle Tee',
"3LAU's signature triangle on a black and blue tee.",
'upper_body',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'3lau_tshirt_w_upper_body',
'3LAU White Triangle Tee',
"3LAU's signature triangle on a black and white tee.",
'upper_body',
'epic',
['BaseMale', 'BaseFemale']
)
]

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

export let xmas_2020: Wearable[] = [
new Wearable(
'santa_xmas_2020_hat',
'Christmas Santa Hat',
'A festive gift from Save Xmas 2020',
'hat',
'epic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'covinch_xmas_mask',
'Covinch Christmas Mask',
'A festive gift from Save Xmas 2020',
'mask',
'mythic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'santa_xmas_mask',
'santa Christmas Mask',
'A festive gift from Save Xmas 2020',
'mask',
'mythic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'blue_jacket_xmas_upper_body',
'Blue Winter Jacket',
'A festive gift from Save Xmas 2020',
'upper_body',
'epic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'btc_xmas_sweater_upper_body',
'Bitcoin Christmas Sweater',
'A festive gift from Save Xmas 2020',
'upper_body',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'doge_xmas_tshirt_upper_body',
'Dogecoin T Shirt',
'A festive gift from Save Xmas 2020',
'upper_body',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'eth_xmas_sweater_upper_body',
'Ethereum Christmas Sweater',
'A festive gift from Save Xmas 2020',
'upper_body',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'mana_xmas_sweater_upper_body',
'MANA Christmas Sweater',
'A festive gift from Save Xmas 2020',
'upper_body',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'red_jacket_xmas_upper_body',
'Red Winter Jacket',
'A festive gift from Save Xmas 2020',
'upper_body',
'legendary',
['BaseMale', 'BaseFemale']
),
new Wearable(
'santa_xmas_2020_upper_body',
'Santa Christmas Suit',
'A festive gift from Save Xmas 2020',
'upper_body',
'epic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'yellow_jacket_xmas_upper_body',
'Yellow Winter Jacket',
'A festive gift from Save Xmas 2020',
'upper_body',
'legendary',
['BaseMale', 'BaseFemale']
)
]

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

export let xmash_up_2020: Wearable[] = [
new Wearable(
'xmash_up_googles_eyewear',
'Bryfocals - Guest Artists Collection',
'Bryfocals | Art by Bryan Blinkman - 3D Design by vrglit.ch | Guest Artists Collection',
'eyewear',
'mythic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'xmash_up_boots_feet',
'FEWO CLOUD SHOES - Guest Artists Collection',
'FEWO CLOUD SHOES. It’s like Walking on Air... | Art by fewocious - 3D Design by vrglit.ch | Guest Artists Collection',
'feet',
'mythic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'xmash_up_cap_hat',
'The Delbo Comic Cap - Guest Artists Collection',
'The Delbo Comic Cap. Because every great artist needs their hat... | Art by José Delbo - 3D Design by vrglit.ch | Guest Artists Collection',
'hat',
'mythic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'xmash_up_pants_lower_body',
'Free Money Pants - Guest Artists Collection',
'Free Money Pants. | Art by KJ Walker - 3D Design by vrglit.ch | Guest Artists Collection',
'lower_body',
'mythic',
['BaseMale', 'BaseFemale']
),
new Wearable(
'xmash_up_coat_upper_body',
'Infinity Cow Coat - Guest Artists Collection',
'Infinity Cow Coat. | Art by Jonathan Wolfe - 3D Design by vrglit.ch | Guest Artists Collection',
'upper_body',
'mythic',
['BaseMale', 'BaseFemale']
)
]

12 changes: 11 additions & 1 deletion indexer/src/handlers/parcel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,23 @@ import {
Halloween2019Collection,
Halloween2020Collection,
MCHCollection,
MemeDontBuyThis,
MFSammichgamer,
MLPekingopera,
Moonshot2020Collection,
PMDreamverseEminence,
PMOuttathisworldCollection,
ReleaseTheKraken,
StaySafeCollection,
SugarclubYumi,
TechTribalMarc0matic,
ThreeLAUBasics,
WonderzoneMeteorchaserCollection,
WonderzoneSteampunk,
WZWonderbot,
Xmas2019Collection
Xmas2019Collection,
Xmas2020Collection,
XmashUp2020
} from '../data/addresses'
import * as categories from '../modules/category/categories'
import * as addresses from '../data/addresses'
Expand Down Expand Up @@ -84,6 +89,11 @@ export function handleInitialize(_: InitializeCall): void {
ERC721.create(Address.fromString(TechTribalMarc0matic))
ERC721.create(Address.fromString(WonderzoneSteampunk))
ERC721.create(Address.fromString(WZWonderbot))
ERC721.create(Address.fromString(Xmas2020Collection))
ERC721.create(Address.fromString(XmashUp2020))
ERC721.create(Address.fromString(ReleaseTheKraken))
ERC721.create(Address.fromString(MemeDontBuyThis))
ERC721.create(Address.fromString(ThreeLAUBasics))

count.started = 1
count.save()
Expand Down
7 changes: 6 additions & 1 deletion indexer/src/modules/category/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ export function getCategory(contractAddress: string): string {
contractAddress == addresses.SugarclubYumi ||
contractAddress == addresses.TechTribalMarc0matic ||
contractAddress == addresses.WonderzoneSteampunk ||
contractAddress == addresses.WZWonderbot
contractAddress == addresses.WZWonderbot ||
contractAddress == addresses.Xmas2020Collection ||
contractAddress == addresses.XmashUp2020 ||
contractAddress == addresses.ReleaseTheKraken ||
contractAddress == addresses.MemeDontBuyThis ||
contractAddress == addresses.ThreeLAUBasics
) {
category = categories.WEARABLE
} else {
Expand Down
Loading

0 comments on commit a455056

Please sign in to comment.