darcy5d / Fintech-Project-3-Ledgermon-Lair

MIT License
0 stars 0 forks source link

Metadata does not fulfil OpenSea standards. #6

Open natbutter opened 7 months ago

natbutter commented 7 months ago

See https://docs.opensea.io/docs/metadata-standards for details.

In summary, change:

[
    {
        "name": "Ruh",
        "number": 1,
        "type": [
            "Mystic"
        ],
        "attributes": {
            "attack": 39,
            "defense": 80,
            "speed": 87
        },
        "item": "Scroll",
        "rare_item": null,
        "sprite": "1.png",
        "ipfs_link": "https://teal-key-jaguar-194.mypinata.cloud/ipfs/QmPZ1JibhWRtPk2pJcmakj1iSo1rcchp77nngiihunwP2Z/1.png"
    },
    ...
]

to

[
 {
  "description": "Ledgermon. Defs not pokemon, they are on the ledger!", 
  "external_url": "https://github.com/darcy5d/Fintech-Project-3-Ledgermon-Lair", 
  "image": "https://teal-key-jaguar-194.mypinata.cloud/ipfs/QmPZ1JibhWRtPk2pJcmakj1iSo1rcchp77nngiihunwP2Z/1.png"", 
  "name": "Ruh",
  "attributes": [ 
                                  {       
                                          "trait_type": "Number",
                                          "value": 1
                                  },
                {
                    "trait_type": "attack",
                    "value": 39
                },
                {
                    "trait_type": "defense",
                    "value": 80
                },
                {
                    "trait_type": "speed",
                    "value": 87
                },  
                                 {
                    "trait_type": "Type",
                    "value": "Mystic"
                },              
                {
                    "trait_type": "item",
                    "value": "Scroll"
                },
                {
                    "trait_type": "rare_item",
                    "value": null
                }
            ]
 },
....
]
natbutter commented 7 months ago

@miaomiaonana @darcy5d

natbutter commented 7 months ago

I am sure I have missed some commas or something.