-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NFT & ISCN table #27
NFT & ISCN table #27
Conversation
Add begin, end to do pagination
+ using handlers models + process every message in an tx
move Extractor function to db
+ move createNftClass sql to db + add sql/reset.sql for easily reset db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some concern on the performance on the ranking query, since it needs joining 4 tables (nft
, nft_class
, nft_events
, iscn
) and we need something like COUNT(nft_events)
for ranking by NFT trade counts.
Not sure whether we can accomplish this by simply using this schema, or by another extractor for this query.
after, before -> next_key order -> reverse
+ add liked command in test/
"/likechain.iscn.MsgChangeIscnRecordOwnership": transferISCN, | ||
"new_class": createNftClass, | ||
"mint_nft": mintNft, | ||
"/cosmos.nft.v1beta1.MsgSend": sendNft, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if we query account based nft class?
👽️ Modify path according to x/likenft path
remove panic
ISCN
iscn
table extracted from txsmeta
table to record synced height of iscnother changes:
NFT
/likenft/class?iscn_id_prefix=&expand=
取得單一 ISCN 的所有 NFT Classes,加上 expand 可以展開 class 底下的 NFT https://nft-dev.wancat.cc/likenft/class?iscn_id_prefix=iscn://likecoin-chain/LfNpeWjRHC8NncTZNZ1pJlWDvApnESJCU9b6zVkzEq4/likenft/nft?owner=
取得一個 owner 有的 NFT 清單 https://nft-dev.wancat.cc/likenft/nft?owner=like1qv66yzpgg9f8w46zj7gkuk9wd2nrpqmca3huxf/likenft/owner?class_id=
取得一個 NFT Class 的擁有者名單以及他們持有的 NFT https://nft-dev.wancat.cc/likenft/owner?class_id=likenft1ewcmlx4kq4uwctmz08zs6kh5s9te4g6nghrz8rwdharpd6wsxe4s0zgjlj/likenft/event?class_id=&nft_id=&iscn_id_prefix=&verbose=
取得 events (包含 NFT Class 的所有 events)