leather-io / mono

Leather monorepo
https://leather.io
MIT License
12 stars 5 forks source link

feat: add psbt functionality #641

Open edgarkhanzadian opened 1 week ago

edgarkhanzadian commented 1 week ago

Note: I'll leave the commits unsquashed for now until right before the merge, just in case i need to revert some of the changes.

codecov[bot] commented 4 days ago

Codecov Report

Attention: Patch coverage is 0.57143% with 174 lines in your changes missing coverage. Please review.

Project coverage is 28.71%. Comparing base (1a71396) to head (da5ade0). Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
packages/bitcoin/src/psbt/psbt-details.ts 0.00% 43 Missing :warning:
packages/bitcoin/src/psbt/psbt-totals.ts 0.00% 41 Missing :warning:
packages/bitcoin/src/psbt/psbt-inputs.ts 0.00% 33 Missing :warning:
packages/bitcoin/src/psbt/psbt-outputs.ts 0.00% 24 Missing :warning:
packages/bitcoin/src/psbt/utils.ts 0.00% 17 Missing :warning:
packages/bitcoin/src/index.ts 0.00% 6 Missing :warning:
packages/bitcoin/src/bitcoin.utils.ts 16.66% 5 Missing :warning:
...es/services/src/market-data/market-data.service.ts 0.00% 4 Missing :warning:
...s/query/src/bitcoin/balance/btc-blockbook-utxos.ts 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #641 +/- ## ========================================== - Coverage 29.41% 28.71% -0.71% ========================================== Files 175 180 +5 Lines 6836 7008 +172 Branches 457 462 +5 ========================================== + Hits 2011 2012 +1 - Misses 4825 4996 +171 ``` | [Files with missing lines](https://app.codecov.io/gh/leather-io/mono/pull/641?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io) | Coverage Δ | | |---|---|---| | [...s/query/src/bitcoin/balance/btc-blockbook-utxos.ts](https://app.codecov.io/gh/leather-io/mono/pull/641?src=pr&el=tree&filepath=packages%2Fquery%2Fsrc%2Fbitcoin%2Fbalance%2Fbtc-blockbook-utxos.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io#diff-cGFja2FnZXMvcXVlcnkvc3JjL2JpdGNvaW4vYmFsYW5jZS9idGMtYmxvY2tib29rLXV0eG9zLnRz) | `0.00% <0.00%> (ø)` | | | [...es/services/src/market-data/market-data.service.ts](https://app.codecov.io/gh/leather-io/mono/pull/641?src=pr&el=tree&filepath=packages%2Fservices%2Fsrc%2Fmarket-data%2Fmarket-data.service.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io#diff-cGFja2FnZXMvc2VydmljZXMvc3JjL21hcmtldC1kYXRhL21hcmtldC1kYXRhLnNlcnZpY2UudHM=) | `0.00% <0.00%> (ø)` | | | [packages/bitcoin/src/bitcoin.utils.ts](https://app.codecov.io/gh/leather-io/mono/pull/641?src=pr&el=tree&filepath=packages%2Fbitcoin%2Fsrc%2Fbitcoin.utils.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io#diff-cGFja2FnZXMvYml0Y29pbi9zcmMvYml0Y29pbi51dGlscy50cw==) | `41.55% <16.66%> (-0.67%)` | :arrow_down: | | [packages/bitcoin/src/index.ts](https://app.codecov.io/gh/leather-io/mono/pull/641?src=pr&el=tree&filepath=packages%2Fbitcoin%2Fsrc%2Findex.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io#diff-cGFja2FnZXMvYml0Y29pbi9zcmMvaW5kZXgudHM=) | `0.00% <0.00%> (ø)` | | | [packages/bitcoin/src/psbt/utils.ts](https://app.codecov.io/gh/leather-io/mono/pull/641?src=pr&el=tree&filepath=packages%2Fbitcoin%2Fsrc%2Fpsbt%2Futils.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io#diff-cGFja2FnZXMvYml0Y29pbi9zcmMvcHNidC91dGlscy50cw==) | `0.00% <0.00%> (ø)` | | | [packages/bitcoin/src/psbt/psbt-outputs.ts](https://app.codecov.io/gh/leather-io/mono/pull/641?src=pr&el=tree&filepath=packages%2Fbitcoin%2Fsrc%2Fpsbt%2Fpsbt-outputs.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io#diff-cGFja2FnZXMvYml0Y29pbi9zcmMvcHNidC9wc2J0LW91dHB1dHMudHM=) | `0.00% <0.00%> (ø)` | | | [packages/bitcoin/src/psbt/psbt-inputs.ts](https://app.codecov.io/gh/leather-io/mono/pull/641?src=pr&el=tree&filepath=packages%2Fbitcoin%2Fsrc%2Fpsbt%2Fpsbt-inputs.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io#diff-cGFja2FnZXMvYml0Y29pbi9zcmMvcHNidC9wc2J0LWlucHV0cy50cw==) | `0.00% <0.00%> (ø)` | | | [packages/bitcoin/src/psbt/psbt-totals.ts](https://app.codecov.io/gh/leather-io/mono/pull/641?src=pr&el=tree&filepath=packages%2Fbitcoin%2Fsrc%2Fpsbt%2Fpsbt-totals.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io#diff-cGFja2FnZXMvYml0Y29pbi9zcmMvcHNidC9wc2J0LXRvdGFscy50cw==) | `0.00% <0.00%> (ø)` | | | [packages/bitcoin/src/psbt/psbt-details.ts](https://app.codecov.io/gh/leather-io/mono/pull/641?src=pr&el=tree&filepath=packages%2Fbitcoin%2Fsrc%2Fpsbt%2Fpsbt-details.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io#diff-cGFja2FnZXMvYml0Y29pbi9zcmMvcHNidC9wc2J0LWRldGFpbHMudHM=) | `0.00% <0.00%> (ø)` | | | [Components](https://app.codecov.io/gh/leather-io/mono/pull/641/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io) | Coverage Δ | | |---|---|---| | [bitcoin](https://app.codecov.io/gh/leather-io/mono/pull/641/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io) | `62.23% <0.58%> (-9.02%)` | :arrow_down: | | [query](https://app.codecov.io/gh/leather-io/mono/pull/641/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io) | `12.65% <0.00%> (ø)` | | | [utils](https://app.codecov.io/gh/leather-io/mono/pull/641/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io) | `49.19% <ø> (ø)` | | | [crypto](https://app.codecov.io/gh/leather-io/mono/pull/641/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io) | `68.21% <ø> (ø)` | | | [stacks](https://app.codecov.io/gh/leather-io/mono/pull/641/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=leather-io) | `72.38% <ø> (ø)` | |
fbwoolf commented 1 day ago

Great work @edgarkhanzadian, can you rebase on my latest merge before I approve? My changes in onInitSendTransfer in use-send-form.tsx should generate the unsigned psbt to pass to your work.