Comments (10)
@daiagi can you please take a look?
from stick.
not really wrong supply, but missing TokenEntity
the collection /ahp/collection/u-8
contains 300 nfts
the tokenEntity of the second group is missing
from stick.
the tokenEntity of the second group is missing
Maybe something wrong with tokenEntities
query from resolver
from stick.
i think there is some bug where the nfts don't get assigned to their token for some reason
anyhow, checking
from stick.
this is most likely the reason:
from stick.
or here we also have this on u-8-199
2 events, mint and list
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.
@roiLeo
collectionMetadataSet?
I think that's it, all these nfts show the fallback collection metadata
from stick.
I think that's it, all these nfts show the fallback collection metadata
stick/src/mappings/uniques/mint.ts
Line 39 in 6292f4e
from stick.
I think that's it, all these nfts show the fallback collection metadata
stick/src/mappings/uniques/mint.ts
Line 39 in 6292f4e
?
damn. you're right
@vikiival to the rescue?
from stick.
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
- find all the nft's in the collection that don't have token (or no metadata?)
- if any exists, create a new token using the collection metadata
- 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)
- TokenEntity is merging nfts that has placeholder as an image HOT 6
- use md5 hash as a id for MetadataEntity
- Index external url
- Support for testnet HOT 2
- Allowlisted buyer
- TokenEntity Schema development
- TokenEntity burn
- TokenEntity mint
- TokenEntity set metadata
- Run comparison tests
- TokenEntity resolver reports incorrect count HOT 1
- DB schema diagram
- [stellate] nftEntities - implement some kind of NullType HOT 7
- `nft.meta.id` not updated HOT 1
- Dev mode from specific block HOT 1
- Inconsistent Order by `createdAt_ASC` HOT 8
- Add generativeUri to metadata :)
- Update stellate config for Stick HOT 4
- Update packages
- Implement `baseUri` for CollectionEntity HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stick.