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(sdk): pre-inscriber + better utxo splitting #130

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kevzzsk
Copy link
Collaborator

@kevzzsk kevzzsk commented Dec 10, 2024

What this PR does / why we need it:

Introduced PreInscriber that is used to combine multiple seller PSBTs and 1 buyer psbt into a valid PSBT. This requires (n + 1) dummy utxos where n is the number of inscription/seller psbts.

Upgraded UTXOManager by introducing a new fn splitUTXOIntoRefundable which will split utxo into n different refundable (dummy) utxos for PreInscriber

Added BigNumber to handle conversion of sats -> BTC and BTC -> sats

Which issue(s) does this PR fixes?:

Additional comments?:

Developer Checklist:

  • Read your code changes at least once
  • No console errors
  • Unit tests*
  • Added e2e tests*

@kevzzsk kevzzsk self-assigned this Dec 10, 2024
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.

1 participant