-
Notifications
You must be signed in to change notification settings - Fork 249
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
feat(contract-standards): add events to FT contract standard #723
Conversation
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.
Looks pretty straightforward to me, but I'll leave it to @austinabell to have the final say since he might point out some serialization stuff I might not know of
@@ -7,17 +7,17 @@ | |||
//! This is an extension of the events format (nep-297): | |||
//! <https://github.com/near/NEPs/blob/master/specs/Standards/EventsFormat.md> | |||
//! | |||
//! The three events in this standard are [`NftMintData`], [`NftTransferData`], and [`NftBurnData`]. | |||
//! The three events in this standard are [`NftMint`], [`NftTransfer`], and [`NftBurn`]. |
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.
Nice, thanks for the catching this!
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.
Awesome!
Hey @frol and/or @telezhnaya I should have pinged you guys to make sure this all matches up with what gets picked up by the indexer. Do you guys mind having a quick look before I release this? |
@austinabell Sorry for the delay. This implementation is compatible with the NEP, and I have even checked how it works with the FT example: near-examples/FT#106 |
} | ||
|
||
#[test] | ||
fn nft_transfers() { |
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.
nit: it should be tf_transfers
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.
ft_transfers
🙂
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.
Thank you!
} | ||
|
||
#[test] | ||
fn nft_burns() { |
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.
ft_burns
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.
Oh it's merged 😅 I just noticed that
Created PR with the fix #735
As minting and burning are not a part of FT contract standard yet, these events are not being emitted