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-address, jellyfish-wallet): add eth.fromScript #2157

Merged
merged 3 commits into from
Sep 26, 2023

Conversation

canonbrother
Copy link
Contributor

@canonbrother canonbrother commented Sep 26, 2023

What this PR does / why we need it:

add eth.fromScript(evmScript) -> evmAddr and "PR pool" some fixes

Which issue(s) does this PR fixes?:

Additional comments?:

@netlify
Copy link

netlify bot commented Sep 26, 2023

Deploy Preview for jellyfishsdk ready!

Name Link
🔨 Latest commit 35aa1e5
🔍 Latest deploy log https://app.netlify.com/sites/jellyfishsdk/deploys/65123eaca5d0960008fa86c6
😎 Deploy Preview https://deploy-preview-2157--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 configuration.

@github-actions github-actions bot added area/packages kind/feature New feature request labels Sep 26, 2023
@canonbrother canonbrother changed the title feat(): add eth.fromScript feat(jellyfish-address,jellyfish-wallet): add eth.fromScript Sep 26, 2023
@canonbrother canonbrother changed the title feat(jellyfish-address,jellyfish-wallet): add eth.fromScript feat(jellyfish-address, jellyfish-wallet): add eth.fromScript Sep 26, 2023
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Merging #2157 (35aa1e5) into main (1a2fcf4) will increase coverage by 1.97%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2157      +/-   ##
==========================================
+ Coverage   90.19%   92.16%   +1.97%     
==========================================
  Files         371      373       +2     
  Lines       11217    11243      +26     
  Branches     1463     1467       +4     
==========================================
+ Hits        10117    10362     +245     
+ Misses       1038      845     -193     
+ Partials       62       36      -26     
Files Coverage Δ
packages/jellyfish-address/src/eth.ts 100.00% <100.00%> (ø)
...llyfish-transaction-builder/src/txn/txn_builder.ts 98.24% <ø> (ø)
...transaction-builder/src/txn/txn_builder_account.ts 100.00% <ø> (+5.12%) ⬆️
packages/jellyfish-wallet/src/wallet_account.ts 25.71% <ø> (-48.58%) ⬇️

... and 76 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions
Copy link

Docker build preview for jellyfish/apps is ready!

Built with commit a331176

  • ghcr.io/birthdayresearch/legacy-api:pr-2157
  • ghcr.io/birthdayresearch/playground-api:pr-2157
  • ghcr.io/birthdayresearch/status-api:pr-2157
  • ghcr.io/birthdayresearch/whale-api:pr-2157

You can also get an immutable image with the commit hash

  • ghcr.io/birthdayresearch/legacy-api:a3311765da4aaaca630b1c9e29e4bda4960bacc1
  • ghcr.io/birthdayresearch/playground-api:a3311765da4aaaca630b1c9e29e4bda4960bacc1
  • ghcr.io/birthdayresearch/status-api:a3311765da4aaaca630b1c9e29e4bda4960bacc1
  • ghcr.io/birthdayresearch/whale-api:a3311765da4aaaca630b1c9e29e4bda4960bacc1

@@ -15,7 +15,7 @@ import { calculateFeeP2WPKH } from './txn_fee'
import { TxnBuilderError, TxnBuilderErrorType } from './txn_builder_error'
import { EllipticPair } from '@defichain/jellyfish-crypto'
import { Network } from '@defichain/jellyfish-network'
import { ListUnspentQueryOptions } from '@defichain/jellyfish-api-core/dist/category/wallet'
import { ListUnspentQueryOptions } from '@defichain/jellyfish-api-core/src/category/wallet'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
import { ListUnspentQueryOptions } from '@defichain/jellyfish-api-core/src/category/wallet'
import { ListUnspentQueryOptions } from '@defichain/jellyfish-api-core'

It should be this, but frankly speaking jellyfish-transaction-builder shouldn't have access to jellyfish-api-core since it's agnostic

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@fuxingloh fuxingloh merged commit 8baa393 into main Sep 26, 2023
38 checks passed
@fuxingloh fuxingloh deleted the canonbrother/eth-fromscript branch September 26, 2023 03:34
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.

None yet

4 participants