kodadot / workers

Implementation of Cloudflare Workers in KodaDot
https://kodadot.xyz
10 stars 13 forks source link

Purge metadata #274

Open vikiival opened 7 months ago

vikiival commented 7 months ago

https://deploy-preview-10015--koda-canary.netlify.app/base/gallery/0x1b60a7ee6bba284a6aafa1eca0a1f7ea42099373-0

Thanks!

Ref:

preschian commented 7 months ago

did you mean something like this https://github.com/kodadot/workers/blob/e2a36193709250a11da5c512138737e00b6c1516/image/src/routes/ipfs.ts#L139-L151

but for metadata endpoint?

vikiival commented 7 months ago

did you mean something like this

I meant to remove that from R2/ images

https://deploy-preview-10015--koda-canary.netlify.app/base/collection/0x1b60a7ee6bba284a6aafa1eca0a1f7ea42099373

Screenshot 2024-04-08 at 12 03 42

https://imagedelivery.net/jk5b6spi_m_-9qC4VTnjpg/https---dyndata-deno-dev-base-image-0x1b60a7ee6bba284a6aafa1eca0a1f7ea42099373-0/public

query nft {
  nftEntityById(id:"0x1b60a7ee6bba284a6aafa1eca0a1f7ea42099373-0") {
    name
    image
    media
    metadata
    meta {
      id
      image
      animationUrl
    }
  }
}
{
  "data": {
    "nftEntityById": {
      "name": "Vortices #0",
      "image": "https://dyndata.deno.dev/base/image/0x1b60a7ee6bba284a6aafa1eca0a1f7ea42099373/0",
      "media": "ipfs://bafybeiexwsrhle2f4gjaptc5b3fm2rfo4ztfy5unsxointkqzyoarbpmsy/?hash=0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d",
      "metadata": "https://dyndata.deno.dev/base/content/0x1b60a7ee6bba284a6aafa1eca0a1f7ea42099373/0",
      "meta": {
        "id": "46b80655772c97c59ac6d5cfd9e16ddb",
        "image": "https://dyndata.deno.dev/base/image/0x1b60a7ee6bba284a6aafa1eca0a1f7ea42099373/0",
        "animationUrl": "ipfs://bafybeiexwsrhle2f4gjaptc5b3fm2rfo4ztfy5unsxointkqzyoarbpmsy/?hash=0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d"
      }
    }
  }
}

TL;DR

I expect to get this

68747470733a2f2f64796e646174612e64656e6f2e6465762f626173652f696d6167652f3078316236306137656536626261323834613661616661316563613061316637656134323039393337332f30

And I have this

public

preschian commented 7 months ago

eehh I accidentally commit it to the main branch https://github.com/kodadot/workers/commits/main/

We need to secure the main branch, I guess

vikiival commented 7 months ago

We need to secure the main branch, I guess

Screenshot 2024-04-08 at 18 59 41