Skip to content
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: added runestone to reveal tx #28

Merged
merged 12 commits into from
Aug 9, 2024
Merged

Conversation

veeso
Copy link
Member

@veeso veeso commented Jul 25, 2024

Motivation

Added the possibility to pass the runestone to the reveal transaction. This allows etching and minting for runes.

Changes

Added runestone argument to Reveal transaction args.

// tx out
#[cfg(feature = "rune")]
Copy link
Contributor

@Maximkaaa Maximkaaa Jul 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature-based logic inside a method seems like something impossible to support in future, and would probably not work correctly for some use cases.

What's even more confusing is that the type is called OrdTransactionBuilder using RevealTransactionArgs but we build a runestone transaction instead that has nothing to do with ord or with reveal.

I think if we want to use this crate in future, it would be better to invest some time to refactor the code to be less confusing and more correct.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Maximkaaa Actually etching requires an inscription. I agree with your point, so at least I've created a dedicated function for this in the rune module.

@veeso veeso requested a review from Maximkaaa July 31, 2024 07:58
@veeso veeso merged commit 9cf75b9 into main Aug 9, 2024
6 checks passed
@veeso veeso deleted the EPROD-944-add-runestone-to-reveal branch August 9, 2024 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants