v0.0.31
github-actions
released this
06 Aug 08:56
·
76 commits
to refs/heads/main
since this release
What’s Changed
- refactor(sdk)!: dynamic fee calculation and improvements @iamcrazycoder (#30)
BREAKING
- Arguments for
Ordit.signPsbt
fn has been updated - Default values for
pubKeyType
argument ofgenerateBuyerPsbt
fn removed - Unnecessary
try..catch
blocks removed. - Empty
catch
block in atry..catch
. Thesetry..catch
blocks were entirely removed to prevent error suppression. Though this is a good change for better visibility and troubleshooting, some processes might break because errors will no longer be suppressed.
Refactor & Fix
- Replaced hardcoded values for fee calculation w/ dynamic calculation
- Hard limit of max 1000 sats removed for refundable utxo consideration. Any UTXO > 600 sats can be used as a refundable UTXO now
- Updated buyer PSBT generation flow to take only unused UTXOs into account
enableRBF
option exposed increatePsbt
fn as opposed to enabling it by-default- Added
finalize
option to Unisat signPsbt fn such that unfinalized+signed PSBTs can be created for instant-buy-sell flow