Git Product home page Git Product logo

Comments (10)

vikiival avatar vikiival commented on June 26, 2024 1

@daiagi can you please take a look?

from stick.

daiagi avatar daiagi commented on June 26, 2024

not really wrong supply, but missing TokenEntity
the collection /ahp/collection/u-8
contains 300 nfts

100 that looks like this
image

and 200 that look like this
image

the tokenEntity of the second group is missing
image
image
image

@roiLeo @vikiival

from stick.

roiLeo avatar roiLeo commented on June 26, 2024

the tokenEntity of the second group is missing

Maybe something wrong with tokenEntities query from resolver

from stick.

daiagi avatar daiagi commented on June 26, 2024

i think there is some bug where the nfts don't get assigned to their token for some reason

anyhow, checking

from stick.

daiagi avatar daiagi commented on June 26, 2024

this is most likely the reason:

image

from stick.

daiagi avatar daiagi commented on June 26, 2024

or here we also have this on u-8-199
2 events, mint and list
image

mint is without metadata, but list have metadata (came from where??)

and sure enough, no tokenEntity (because mint was without metadata and setMetadata never called)

but it doesn't make sense to create tokenEntity on LIST events, does it?!

i guess the question is where the metadata came from ?

18:59:48 INFO  squid:log ⏳ [MINT] 4037386
18:59:48 DEBUG squid:log [MINT] {
                           "caller": "15CoYMEnJhhWHvdEPXDuTBnZKXwrJzMQdcMwcHGsVx5kXYvW",
                           "blockNumber": "4037386",
                           "timestamp": "2023-06-28T10:12:42.696Z",
                           "collectionId": "u-8",
                           "owner": "15CoYMEnJhhWHvdEPXDuTBnZKXwrJzMQdcMwcHGsVx5kXYvW",
                           "sn": "199"
                         }
18:59:48 DEBUG squid:log [TokenEntity] {
                           "mintHandler": "Handle mint for NFT u-8-199"
                         }
18:59:48 WARN  squid:log ⚠️ [TokenEntity] MISSING NFT MEDIA u-8-199
18:59:48 DEBUG squid:log [TokenEntity] {
                           "terminateEarly": "nftMedia undefined"
                         }
18:59:48 INFO  squid:log 💚 [MINT] u-8-199
18:59:48 DEBUG sqd:processor:mapping end
                                     blockHeight: 4037386
                                     blockHash: 0x1ca2dbba2777e03933201faec08bf4136147ba42ab04c3b5cdfc4b64f1a28acf
                                     hook: event
                                     eventName: Uniques.Issued
                                     eventId: 0004037386-000999-1ca2d
18:59:48 DEBUG sqd:processor:mapping begin
                                     blockHeight: 4037386
                                     blockHash: 0x1ca2dbba2777e03933201faec08bf4136147ba42ab04c3b5cdfc4b64f1a28acf
                                     hook: event
                                     eventName: Uniques.ItemPriceSet
                                     eventId: 0004037386-001001-1ca2d
18:59:48 INFO  squid:log ⏳ [LIST] 4037386
18:59:48 DEBUG squid:log [LIST] {
                           "caller": "15CoYMEnJhhWHvdEPXDuTBnZKXwrJzMQdcMwcHGsVx5kXYvW",
                           "blockNumber": "4037386",
                           "timestamp": "2023-06-28T10:12:42.696Z",
                           "collectionId": "u-8",
                           "sn": "199",
                           "price": "9000000000"
                         }
18:59:48 INFO  squid:log 💚 [LIST] u-8-199 by 15CoYMEnJhhWHvdEPXDuTBnZKXwrJzMQdcMwcHGsVx5kXYvW} for 9000000000
18:59:48 DEBUG sqd:processor:mapping end
                                     blockHeight: 4037386
                                     blockHash: 0x1ca2dbba2777e03933201faec08bf4136147ba42ab04c3b5cdfc4b64f1a28acf
                                     hook: event
                                     eventName: Uniques.ItemPriceSet
                                     eventId: 0004037386-001001-1ca2d
18:59:48 DEBUG sqd:processor:mapping begin
                                     blockHeight: 4037829
                                     blockHash: 0x71b493221a8e4b5fb3789f3b7ac080a804501d5e515717941218c3bf206c2880
                                     hook: event
                                     eventName: Uniques.CollectionMetadataSet
                                     eventId: 0004037829-000004-71b49
18:59:48 DEBUG squid:log [METADATA] {
                           "caller": "15CoYMEnJhhWHvdEPXDuTBnZKXwrJzMQdcMwcHGsVx5kXYvW",
                           "blockNumber": "4037829",
                           "timestamp": "2023-06-28T12:22:00.244Z",
                           "collectionId": "u-8",
                           "metadata": "ipfs://ipfs/bafkreiewudhu24qo5oerbizhcybhwe25f5getbu5xydtpjuvumpafhivpm"
                         }
                         ```

from stick.

daiagi avatar daiagi commented on June 26, 2024

@roiLeo
collectionMetadataSet?

I think that's it, all these nfts show the fallback collection metadata

image

from stick.

roiLeo avatar roiLeo commented on June 26, 2024

I think that's it, all these nfts show the fallback collection metadata

final.metadata = event.metadata || collection.metadata
?

from stick.

daiagi avatar daiagi commented on June 26, 2024

I think that's it, all these nfts show the fallback collection metadata

final.metadata = event.metadata || collection.metadata

?

damn. you're right
@vikiival to the rescue?

from stick.

daiagi avatar daiagi commented on June 26, 2024

ok i think i figured it out
the metadata on the collection is being set AFTER 200 nfts are minted
need to handle this situation in setMetadata mapping

something like

  1. find all the nft's in the collection that don't have token (or no metadata?)
  2. if any exists, create a new token using the collection metadata
  3. assign all of them to that token
 [MINT] 4037386
01:27:20 DEBUG squid:log [MINT] {
                           "caller": "15CoYMEnJhhWHvdEPXDuTBnZKXwrJzMQdcMwcHGsVx5kXYvW",
                           "blockNumber": "4037386",
                           "timestamp": "2023-06-28T10:12:42.696Z",
                           "collectionId": "u-8",
                           "owner": "15CoYMEnJhhWHvdEPXDuTBnZKXwrJzMQdcMwcHGsVx5kXYvW",
                           "sn": "199"
                         }
01:27:20 DEBUG squid:log [MINT] {
                           "collectionId": "u-8",
                           "nftId": "u-8-199",
                           "timestamp": "2023-06-28T10:12:42.696Z"
                         }
01:27:20 DEBUG squid:log [TokenEntity] {
                           "mintHandler": "Handle mint for NFT u-8-199"
                         }
01:27:20 WARN  squid:log ⚠️ [TokenEntity] MISSING NFT MEDIA u-8-199
01:27:20 INFO  squid:log 💚 [MINT] u-8-199
01:27:20 DEBUG sqd:processor:mapping end
                                     blockHeight: 4037386
                                     blockHash: 0x1ca2dbba2777e03933201faec08bf4136147ba42ab04c3b5cdfc4b64f1a28acf
                                     hook: event
                                     eventName: Uniques.Issued
                                     eventId: 0004037386-000999-1ca2d
01:27:20 DEBUG sqd:processor:mapping begin
                                     blockHeight: 4037386
                                     blockHash: 0x1ca2dbba2777e03933201faec08bf4136147ba42ab04c3b5cdfc4b64f1a28acf
                                     hook: event
                                     eventName: Uniques.ItemPriceSet
                                     eventId: 0004037386-001001-1ca2d
01:27:20 INFO  squid:log ⏳ [LIST] 4037386
01:27:20 DEBUG squid:log [LIST] {
                           "caller": "15CoYMEnJhhWHvdEPXDuTBnZKXwrJzMQdcMwcHGsVx5kXYvW",
                           "blockNumber": "4037386",
                           "timestamp": "2023-06-28T10:12:42.696Z",
                           "collectionId": "u-8",
                           "sn": "199",
                           "price": "9000000000"
                         }
01:27:20 INFO  squid:log 💚 [LIST] u-8-199 by 15CoYMEnJhhWHvdEPXDuTBnZKXwrJzMQdcMwcHGsVx5kXYvW} for 9000000000
01:27:20 DEBUG sqd:processor:mapping end
                                     blockHeight: 4037386
                                     blockHash: 0x1ca2dbba2777e03933201faec08bf4136147ba42ab04c3b5cdfc4b64f1a28acf
                                     hook: event
                                     eventName: Uniques.ItemPriceSet
                                     eventId: 0004037386-001001-1ca2d
01:27:20 DEBUG sqd:processor:mapping begin
                                     blockHeight: 4037829
                                     blockHash: 0x71b493221a8e4b5fb3789f3b7ac080a804501d5e515717941218c3bf206c2880
                                     hook: event
                                     eventName: Uniques.CollectionMetadataSet
                                     eventId: 0004037829-000004-71b49
01:27:20 DEBUG squid:log [METADATA] {
                           "caller": "15CoYMEnJhhWHvdEPXDuTBnZKXwrJzMQdcMwcHGsVx5kXYvW",
                           "blockNumber": "4037829",
                           "timestamp": "2023-06-28T12:22:00.244Z",
                           "collectionId": "u-8",
                           "metadata": "ipfs://ipfs/bafkreiewudhu24qo5oerbizhcybhwe25f5getbu5xydtpjuvumpafhivpm"
                         }
01:27:20 DEBUG squid:log [METADATA] {
                           "collectionId": "u-8",
                           "metadata": "ipfs://ipfs/bafkreiewudhu24qo5oerbizhcybhwe25f5getbu5xydtpjuvumpafhivpm",
                           "timestamp": "2023-06-28T12:22:00.244Z"
                         }

from stick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.