NFTr / mz-fusion-client

0 stars 0 forks source link

Metadata changes #84

Open grigb opened 8 months ago

grigb commented 8 months ago

Current version:

{
        "@type": "ImageObject",
        "encodingFormat": "image/webp",
        "sha256": "500a09fab629ec38ec0d3cd4e0ac437a1f99cfee46ac11c1a1bfdc849f4dc85b",
        "identifier": {
          "@type": "PropertyValue",
          "propertyID": "Fused Attribute",
          "name": "Pet: Jungle Toad",
          "value": "oddmentsjungletoad"
        },
        "url": [
          "https://arweave.net/7t1l26LrZ9xa3skJ3NP3shQPyY6soiugLqgUbLRQNus",
          "https://ipfs.io/ipfs/bafybeihtitgvm6hyxd252nlrvmrki6m2l5wyymxoqnadbjpczszef2pxa4/jungle-toad.webp",
          "https://gateway.pinata.cloud/ipfs/QmTSPdtYpFJ8WFdzSEL1BuoDrYE3n3nLpm6shAYifW1bgk"
        ],
        "mainEntity": {
          "@type": "PropertyValue",
          "propertyID": "NFTid",
          "value": "nft1ndcw3f9cxjj8k67an3z4lrvdcej2v7sl4v667q8kh4u5m4l7d8hqfz9ltz"
        },
        "additionalProperty": [
          {
            "@type": "PropertyValue",
            "name": "Transformation",
            "value": {
              "scale": [
                1.521618261177076,
                1.521618261177076,
                1
              ],
              "rotation": [
                0,
                0,
                -0.2164397052224706,
                0.9762959868826718
              ],
              "translation": [
                0.02500000000000001,
                0.19999999999999998,
                5
              ]
            }
          }
        ]
      }

Change to:


{
        "@type": "ImageObject",
        "encodingFormat": "image/webp",
        "sha256": "500a09fab629ec38ec0d3cd4e0ac437a1f99cfee46ac11c1a1bfdc849f4dc85b",
        "identifier": {
          "@type": "PropertyValue",
          "propertyID": "Fused Attribute",
          "name": "Pet: Jungle Toad",
          "value": "oddmentsjungletoad"
        },
        "url": [
          "https://arweave.net/7t1l26LrZ9xa3skJ3NP3shQPyY6soiugLqgUbLRQNus",
          "https://ipfs.io/ipfs/bafybeihtitgvm6hyxd252nlrvmrki6m2l5wyymxoqnadbjpczszef2pxa4/jungle-toad.webp",
          "https://gateway.pinata.cloud/ipfs/QmTSPdtYpFJ8WFdzSEL1BuoDrYE3n3nLpm6shAYifW1bgk"
        ],
        "mainEntity": {
          "@type": "PropertyValue",
          "propertyID": "NFTid",
          "value": "nft1ndcw3f9cxjj8k67an3z4lrvdcej2v7sl4v667q8kh4u5m4l7d8hqfz9ltz"
        },
        "additionalProperty": 
          {
            "@type": "PropertyValue",
            "name": "Transformation",
            "value": "{\"scale\":[1.1928486824035645,1.1928489208221436,1.1928489208221436],\"rotation\":[-0.7071068286895752,0.0,0.0,0.7071068286895752],\"translation\":[0.0,-0.5609532594680786,0.0]}"
          }

      }