kodadot / bao

Repository with random hacks we wrote
5 stars 2 forks source link

Off-chain fetch RMRK2 entities to CFI/R2 #19

Open vikiival opened 1 year ago

vikiival commented 1 year ago

Current indexing is slow.

the task is:

const res = await $obtain(uri, ['rmrk'])
const link = $purify(uri, ['rmrk']).at(0)
const res = await obtainMedia(link)

Now use ipfs_to_cf (in this repo to push it to CF images)

vikiival commented 1 year ago
➜  ~ wc -l filename.txt
   49039 filename.txt

Got 50k of unique images

Non-unique

  ~ cat rmrk.json | jq '.data.entities | .[] | .image' | wc -l
  525562

so half a mil