-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add nft custom color #190
Add nft custom color #190
Conversation
…to bugfix/custom-color
|
||
@classmethod | ||
def custom_color_nft_atomicals(cls, nft_atomicals, operations_found_at_inputs, tx): | ||
# define op `z` to custom-color nft |
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.
Is it for 'z' ?
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.
Yes, same with the Ft
expected_output_index = 0 | ||
else: | ||
# if out_idx not in payload keys, skip | ||
if str(out_idx) not in compact_atomical_id_data.keys(): |
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 happens to the nft if it's not specified and skipped?
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.
If not specified defined, it will try to color output0. If defined, and the quantity is set to 0 or a negative number, it will burn.
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.
LGTM!
Define a
custom_color_nft_atomicals
method, By specifying the payload, the NFT can be transferred to a specific output. If the value set in the payload is less than 0, it will be burned.