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(jellyfish-transaction): Add updatemasternode dftx #1863

Merged
merged 34 commits into from
Dec 1, 2022

Conversation

marktanrj
Copy link
Contributor

@marktanrj marktanrj commented Nov 18, 2022

What this PR does / why we need it:

  • updatemasternode DfTx parsing

Which issue(s) does this PR fixes?:

Fixes part of #1842

@github-actions github-actions bot added area/packages kind/feature New feature request labels Nov 18, 2022
@codeclimate
Copy link

codeclimate bot commented Nov 18, 2022

Code Climate has analyzed commit d4d7736 and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 3

View more on Code Climate.

@marktanrj marktanrj changed the title feat(jellyfish-api-core): Add updatemasternode dftx feat(jellyfish-transaction): Add updatemasternode dftx Nov 18, 2022
@netlify
Copy link

netlify bot commented Nov 18, 2022

Deploy Preview for jellyfishsdk ready!

Name Link
🔨 Latest commit d4d7736
🔍 Latest deploy log https://app.netlify.com/sites/jellyfishsdk/deploys/63884b2751b9c000081b8c70
😎 Deploy Preview https://deploy-preview-1863--jellyfishsdk.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codecov
Copy link

codecov bot commented Nov 19, 2022

Codecov Report

Base: 84.52% // Head: 91.73% // Increases project coverage by +7.20% 🎉

Coverage data is based on head (d4d7736) compared to base (fd18179).
Patch coverage: 30.43% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1863      +/-   ##
==========================================
+ Coverage   84.52%   91.73%   +7.20%     
==========================================
  Files         358      361       +3     
  Lines       10414    10496      +82     
  Branches     1314     1321       +7     
==========================================
+ Hits         8802     9628     +826     
+ Misses       1537      825     -712     
+ Partials       75       43      -32     
Impacted Files Coverage Δ
...ish-transaction/src/script/dftx/dftx_masternode.ts 67.56% <29.41%> (-32.44%) ⬇️
...ages/jellyfish-transaction/src/script/dftx/dftx.ts 95.68% <33.33%> (+4.44%) ⬆️
...ckages/jellyfish-transaction/src/script/mapping.ts 94.19% <33.33%> (+14.45%) ⬆️
packages/whale-api-client/src/api/oracles.ts 22.22% <0.00%> (-77.78%) ⬇️
...hale-api/src/module.api/legacy.subgraph.service.ts 16.12% <0.00%> (-70.17%) ⬇️
apps/libs/caches/src/LegacyCache.ts 33.33% <0.00%> (-66.67%) ⬇️
apps/whale-api/src/module.api/legacy.controller.ts 36.84% <0.00%> (-63.16%) ⬇️
packages/whale-api-client/src/whale.rpc.client.ts 50.00% <0.00%> (-50.00%) ⬇️
...-api-client/src/errors/client.timeout.exception.ts 50.00% <0.00%> (-50.00%) ⬇️
apps/whale-api/src/module.api/oracle.controller.ts 44.00% <0.00%> (-44.00%) ⬇️
... and 111 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link

github-actions bot commented Nov 19, 2022

Docker build preview for jellyfish/apps is ready!

Built with commit 541b9e8

  • ghcr.io/jellyfishsdk/legacy-api:pr-1863
  • ghcr.io/jellyfishsdk/ocean-api:pr-1863
  • ghcr.io/jellyfishsdk/playground-api:pr-1863
  • ghcr.io/jellyfishsdk/status-api:pr-1863
  • ghcr.io/jellyfishsdk/whale-api:pr-1863

You can also get an immutable image with the commit hash

  • ghcr.io/jellyfishsdk/legacy-api:541b9e8190363518b8dd0ebe7514885011e2abb5
  • ghcr.io/jellyfishsdk/ocean-api:541b9e8190363518b8dd0ebe7514885011e2abb5
  • ghcr.io/jellyfishsdk/playground-api:541b9e8190363518b8dd0ebe7514885011e2abb5
  • ghcr.io/jellyfishsdk/status-api:541b9e8190363518b8dd0ebe7514885011e2abb5
  • ghcr.io/jellyfishsdk/whale-api:541b9e8190363518b8dd0ebe7514885011e2abb5

imkven
imkven previously approved these changes Nov 30, 2022
Copy link
Contributor

@imkven imkven left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@infinia-yzl infinia-yzl left a comment

Choose a reason for hiding this comment

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

Please add the tests mentioned in the call we had earlier. Other than that, LGTM!

infinia-yzl
infinia-yzl previously approved these changes Nov 30, 2022
Copy link
Contributor

@infinia-yzl infinia-yzl left a comment

Choose a reason for hiding this comment

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

Mostly nitpicks. Other than that, LGTM.

Copy link
Contributor

@imkven imkven left a comment

Choose a reason for hiding this comment

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

LGTM. There have other comments from other stakeholders.

imkven
imkven previously approved these changes Dec 1, 2022
@marktanrj
Copy link
Contributor Author

Give me a moment, trying to see if I can make the vout change/utxo amount more deterministic based on feedback from @delphk

@marktanrj marktanrj dismissed stale reviews from imkven and infinia-yzl via 0574935 December 1, 2022 04:21
@marktanrj
Copy link
Contributor Author

Ready for review again 😅

@marktanrj
Copy link
Contributor Author

Shifted transaction builder code to #1894

Copy link
Contributor

@fuxingloh fuxingloh left a comment

Choose a reason for hiding this comment

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

LGTM, this part is clear

@fuxingloh fuxingloh merged commit 9b418aa into main Dec 1, 2022
@fuxingloh fuxingloh deleted the marktanrj/updatemasternode-dftx branch December 1, 2022 07:03
fuxingloh pushed a commit that referenced this pull request Jan 14, 2023
… builder (#1894)

<!--  Thanks for sending a pull request! -->

#### What this PR does / why we need it:
- updatemasternode transaction builder

#### Which issue(s) does this PR fixes?:
<!--
(Optional) Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes part of #1842

#### Additional comments?:
- #1863 needed for typings
- <del> #1892 needed for createDeFiTx </del>

Co-authored-by: Isaac Yong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants