I have some inquiries regarding event logging for NFTs. I noticed that there are predefined event types such as Mint, Burn, Transfer, etc. I was wondering if it’s possible to add additional event types, and if so, what is the process for doing so? Furthermore, I’m curious about the ability for anyone to log events on tokens. If this isn’t allowed, could you please clarify the rules and requirements for logging events on a specific token?
Good example code for the events outside the standard. Thanks.
Last thing: let’s say someone creates another contract (different or copy of our) and starts to log events using a token created in our contract. Is that allowed/possible?
Thank you for the information. To clarify, when creating a list of events for a token, it is advisable to include only events that are relevant to the contract that originally created the token. While it is hopefully uncommon for individuals to log events for other tokens - it could potentially confuse the owner of the token
You should only include events from the contract that has the token. Otherwise you will have potentially incorrect view.
Technically each logged event has a token ID. The full token address is contract address + token id so when processing an event you should categorize them by token address.