From e8bd9c0c5f866780ccb25daab052c27d2b9bdc30 Mon Sep 17 00:00:00 2001 From: Melisa Anabella Rossi Date: Fri, 7 Jul 2023 16:30:01 -0300 Subject: [PATCH] feat: add hands wear category (#98) --- README.md | 18 +++++++++--------- schema.graphql | 3 ++- src/modules/metadata/wearable/index.ts | 3 ++- subgraph.template.yaml | 6 +++--- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 033ec88..917ddd3 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,15 @@ |Network|URL|Current|Previous| |-|-|-|-| -|Mainnet (Satsuma)|https://subgraph.satsuma-prod.com/decentraland/collections-ethereum-mainnet/playground|Qmf1ouGZcxBegEWodVy5fjFYFgQaB7wzw7j5rHwLcKeSXB|QmXAJWxr83ff8yqZkK8NrWUxETRHyXbq69sy2bmQznT136| -|Mainnet (Hosted Services)|https://thegraph.com/explorer/subgraph/decentraland/collections-ethereum-mainnet|QmPjcwU1HSxWAf9sMyAag6NGSYxP2Y2U2PAx4sPg15mmJZ|QmXAJWxr83ff8yqZkK8NrWUxETRHyXbq69sy2bmQznT136| -|Goerli (Satsuma)|https://thegraph.com/explorer/subgraph/decentraland/collections-ethereum-goerli|QmSSzDJBxX7Kj4EqszCUw3AHiznkt5W1fJEpLhiTsVdaqN|QmbL8a1aMAuKoMZKNjjP2pzyekFqb6AdRWji3nsPnQkEoo| -|Goerli (Hosted Services)|https://thegraph.com/explorer/subgraph/decentraland/collections-ethereum-goerli|QmTNQHzovP1WLp1zBmJvU72uRpHhmzeHe1wb1hwysaXx6F|QmPtETAfzq2eCJ3U7HsS5ugC7L4WK4oNZ6RaNkYoKZZbZL| -|Matic (Satsuma)|https://subgraph.satsuma-prod.com/decentraland/collections-matic-mainnet/playground|Qmf1ouGZcxBegEWodVy5fjFYFgQaB7wzw7j5rHwLcKeSXB|QmUCo2VWg5Cj8C46nS1LNVemLbiXPcf2ad75d3dMrhdpJv| -|Matic (Hosted Services)|https://thegraph.com/explorer/subgraph/decentraland/collections-matic-mainnet|Qmf3igvJs24gozdwCwnDyPNz9DEBQMPQRFmEhUzEvgxZSq|QmUCo2VWg5Cj8C46nS1LNVemLbiXPcf2ad75d3dMrhdpJv| -|Matic Temp (Hosted Services)|https://thegraph.com/explorer/subgraph/decentraland/collections-matic-mainnet-temp|QmXyrt3tNkrnDRopnMdY7Na9y8jbKi1645gbR4cJTURbk5|QmUCo2VWg5Cj8C46nS1LNVemLbiXPcf2ad75d3dMrhdpJv| -|Mumbai (Satsuma)|https://subgraph.satsuma-prod.com/decentraland/collections-matic-mumbai/playground|QmeSvj8AMGwFcQSoDdbMnB1SrVhrhAYq2DaUukEdMDpZ3v|QmQRwsc2CCebd4KVHNVeTcLZacqc3PGU5gt6yEo1n19x7L| -|Mumbai (Hosted Service)|https://thegraph.com/explorer/subgraph/decentraland/collections-matic-mumbai|QmdwRWh1FeGi3bJFYkD1Hu8w2uHvAHzJqbdCtszymfoqDS|QmQRwsc2CCebd4KVHNVeTcLZacqc3PGU5gt6yEo1n19x7L| +|Mainnet (Satsuma)|https://subgraph.satsuma-prod.com/decentraland/collections-ethereum-mainnet/playground|QmcyYqqmE3egvtZReHk1aVxmZawxRSECuj1PcZLgMVzHSp|QmbzvX1C9aBbb1Z2nJc99JcmgmWmURQ9mPvjZV6Zb4gcx2| +|Mainnet (Hosted Services)|https://thegraph.com/explorer/subgraph/decentraland/collections-ethereum-mainnet|QmP2EQebbD9W8AaphRTzNUL7NLdMH8FdqNNWtqUiNg2VkB|QmPjcwU1HSxWAf9sMyAag6NGSYxP2Y2U2PAx4sPg15mmJZ| +|Goerli (Satsuma)|https://thegraph.com/explorer/subgraph/decentraland/collections-ethereum-goerli|QmUvtxgRKdFf1zcZZLrJ5nZ6HyoUYKPtByGQigP4rHxwSj|QmSSzDJBxX7Kj4EqszCUw3AHiznkt5W1fJEpLhiTsVdaqN| +|Goerli (Hosted Services)|https://thegraph.com/explorer/subgraph/decentraland/collections-ethereum-goerli|QmUvtxgRKdFf1zcZZLrJ5nZ6HyoUYKPtByGQigP4rHxwSj|QmTNQHzovP1WLp1zBmJvU72uRpHhmzeHe1wb1hwysaXx6F| +|Matic (Satsuma)|https://subgraph.satsuma-prod.com/decentraland/collections-matic-mainnet/playground|QmdavX3eGWLYCjjzYAZv924hyoLv8f9Rg6FxHD7kAJ4fXn|Qmf1ouGZcxBegEWodVy5fjFYFgQaB7wzw7j5rHwLcKeSXB| +|Matic (Hosted Services)|https://thegraph.com/explorer/subgraph/decentraland/collections-matic-mainnet|QmXEwSeNTT5xHRQPcTUDQJayjjfhcbaxYf2o7ycuYf8YF7|Qmf3igvJs24gozdwCwnDyPNz9DEBQMPQRFmEhUzEvgxZSq| +|Matic Temp (Hosted Services)|https://thegraph.com/explorer/subgraph/decentraland/collections-matic-mainnet-temp|Qmf3igvJs24gozdwCwnDyPNz9DEBQMPQRFmEhUzEvgxZSq|QmXyrt3tNkrnDRopnMdY7Na9y8jbKi1645gbR4cJTURbk5| +|Mumbai (Satsuma)|https://subgraph.satsuma-prod.com/decentraland/collections-matic-mumbai/playground|QmRpCReFLwhB4tATJhur1MEjsPY1Rgo2yVrd5oinnjCrAy|QmY4hQRkXCtKRGP3aCYn4ES8kv1MmeHfov5gSK4EvTbzwz| +|Mumbai (Hosted Service)|https://thegraph.com/explorer/subgraph/decentraland/collections-matic-mumbai|QmegTREYw1Li3DYMAcCVJDcoBuquoCFKDUCzxrxyGhWwUW|QmdwRWh1FeGi3bJFYkD1Hu8w2uHvAHzJqbdCtszymfoqDS| Using [The Graph](https://thegraph.com) and [Satsuma](https://www.satsuma.xyz/) diff --git a/schema.graphql b/schema.graphql index 0575241..7b26736 100644 --- a/schema.graphql +++ b/schema.graphql @@ -189,7 +189,8 @@ enum WearableCategory @entity { mask tiara top_head - skin + skin, + hands_wear } enum EmoteCategory @entity { diff --git a/src/modules/metadata/wearable/index.ts b/src/modules/metadata/wearable/index.ts index 48485dd..a63a949 100644 --- a/src/modules/metadata/wearable/index.ts +++ b/src/modules/metadata/wearable/index.ts @@ -98,7 +98,8 @@ function isValidWearableCategory(category: string): boolean { category == 'mask' || category == 'tiara' || category == 'top_head' || - category == 'skin' + category == 'skin' || + category == 'hands_wear' ) { return true } diff --git a/subgraph.template.yaml b/subgraph.template.yaml index 693d612..48844db 100644 --- a/subgraph.template.yaml +++ b/subgraph.template.yaml @@ -3,8 +3,8 @@ description: Decentraland collections # features: # - grafting # graft: -# base: QmcT5JznEDo65TZwWsb6V6pRzdate1TFJCG1QCHgBhKwRo # Subgraph ID of base subgraph -# block: 33108726 # Block number +# base: QmY4hQRkXCtKRGP3aCYn4ES8kv1MmeHfov5gSK4EvTbzwz # Subgraph ID of base subgraph +# block: 37597980 # Block number repository: https://github.com/decentraland/collections-graph schema: file: ./schema.graphql @@ -435,4 +435,4 @@ templates: - NFT abis: - name: CollectionStore - file: ./abis/CollectionStore.json \ No newline at end of file + file: ./abis/CollectionStore.json