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

txn-builder: utxos-to-account #245

Merged
merged 29 commits into from
May 21, 2021
Merged

txn-builder: utxos-to-account #245

merged 29 commits into from
May 21, 2021

Conversation

ivan-zynesis
Copy link
Contributor

@ivan-zynesis ivan-zynesis commented May 18, 2021

What kind of PR is this?:

/kind feature

What this PR does / why we need it:

FE dev friendly DfTx builder (utxos to account)

Which issue(s) does this PR fixes?:

Fixes part of #244

Additional comments?:

@ivan-zynesis ivan-zynesis marked this pull request as draft May 18, 2021 08:32
@ivan-zynesis ivan-zynesis self-assigned this May 18, 2021
@github-actions
Copy link

github-actions bot commented May 18, 2021

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/jellyfish/dist/jellyfish.umd.js 19.07 KB (0%) 382 ms (0%) 176 ms (-2.02% 🔽) 557 ms

@fuxingloh fuxingloh added kind/feature New feature request and removed needs/kind Needs kind label labels May 18, 2021
@codecov
Copy link

codecov bot commented May 18, 2021

Codecov Report

Merging #245 (f283f89) into main (cfbed46) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #245      +/-   ##
==========================================
+ Coverage   96.37%   96.41%   +0.03%     
==========================================
  Files          82       83       +1     
  Lines        2153     2177      +24     
  Branches      275      280       +5     
==========================================
+ Hits         2075     2099      +24     
  Misses         78       78              
Impacted Files Coverage Δ
...ackages/jellyfish-transaction-builder/src/index.ts 100.00% <100.00%> (ø)
...transaction-builder/src/txn/txn_builder_account.ts 100.00% <100.00%> (ø)
...h-transaction-builder/src/txn/txn_builder_error.ts 100.00% <100.00%> (ø)
packages/testing/src/account.ts 100.00% <0.00%> (ø)
packages/jellyfish-api-core/src/category/mining.ts 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cfbed46...f283f89. Read the comment docs.

@netlify
Copy link

netlify bot commented May 19, 2021

Deploy Preview for jellyfish-defi ready!

Built with commit 1646ac4

https://deploy-preview-245--jellyfish-defi.netlify.app

@fuxingloh fuxingloh marked this pull request as draft May 19, 2021 14:37
@codeclimate
Copy link

codeclimate bot commented May 21, 2021

Code Climate has analyzed commit f283f89 and detected 0 issues on this pull request.

View more on Code Climate.

@@ -76,6 +76,6 @@ export async function findOut (outs: TxOut[], pair: EllipticPair): Promise<TxOut
const address = Bech32.fromPubKey(pubKey, 'bcrt')

return outs.filter(value => {
return value.scriptPubKey.addresses.includes(address)
return value.scriptPubKey.addresses?.includes(address)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To return only Txout when Vout has non utxos output.

fuxingloh
fuxingloh previously approved these changes May 21, 2021
@fuxingloh fuxingloh changed the title utxos-to-account txn builder implementation txn-builder: utxos-to-account May 21, 2021
@fuxingloh fuxingloh merged commit 5a34f22 into main May 21, 2021
@fuxingloh fuxingloh deleted the feature/account-txn-builder branch May 21, 2021 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants