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

featue: add support for nexa (OK-20657) #3146

Merged
merged 132 commits into from
Jul 25, 2023
Merged

Conversation

huhuanming
Copy link
Contributor

@huhuanming huhuanming commented Jun 25, 2023

No description provided.

@huhuanming huhuanming requested a review from a team as a code owner June 25, 2023 01:32
@huhuanming huhuanming marked this pull request as draft June 25, 2023 01:32
@what-the-diff
Copy link

what-the-diff bot commented Jun 25, 2023

PR摘要

  • 增加了nexaaddrjs和nexcore-lib包
    将这两个包加入到了package.json文件中。

  • 为nexa添加mockProvider
    在provider文件中为nexa添加了mockProvider。

  • 在derivation文件中添加COINTYPE_NEXA和INCREMENT_LEVEL_TAG
    向该文件中添加了这两个常量。

  • 在impl文件中添加COINTYPE_NEXA和IMPL_NEXA
    向该文件中添加了这两个常量。

  • 为nexa添加impl和settings
    在factory.createVaultSettings文件中为nexa添加了impl和settings。

  • 在factory文件中添加VaultNexa、settings和VaultHelperNexa
    为nexa添加了这些类。

  • 在Vault和VaultHelper文件中添加Vault和VaultHelper
    为nexa添加了这些类。

  • 在package.json文件中为nexa添加providers
    向该文件中添加了nexa的providers。

  • 为nexa添加KeyringHd、KeyringHardware、KeyringImported和KeyringWatching
    在keyring文件中添加了这些类。

  • 在provider和sdk文件中为nexa添加Provider和Nexa包
    向这两个文件中添加了这些包。

  • 在settings文件中为nexa添加settings
    向该文件中添加了nexa的settings。

  • 在utils文件中为nexa添加verifyNexaAddress函数
    向该文件中添加了此功能。

  • 在networks.ts文件中添加新的网络'nexa'和'nexa-testnet'
    在packages/engine/src/vaults/utils/btcForkChain/provider/路径下,向该文件中添加了这两个网络。

  • 在presetNetworks.ts文件中添加新的网络'nexa--testnet'
    在packages/shared/src/config/路径下,向该文件中添加了这个网络。

  • 在engineConsts.ts文件中添加新的常量IMPL_NEXA和COINTYPE_NEXA
    在packages/shared/src/engine/路径下,向该文件中添加了这两个常量。

  • 添加了新的WebSocketRequest.ts文件
    在packages/shared/src/request/路径下添加了这个新文件。

  • 修改了index.html.ejs文件以覆盖window.alert函数
    在packages/shared/src/web/路径下,对该文件进行了修改。

  • 修改了webpack.config.js文件以添加代理
    在packages/web/路径下,对该文件进行了修改,并为/nexa_ws添加了代理,目标为wss://testnet-explorer.nexa.org:30004

@socket-security
Copy link

socket-security bot commented Jun 25, 2023

Updated and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
ripple-keypairs 1.3.0...1.1.4 None +2/-2 121 kB jst5000
react-native-ble-manager 10.1.2...10.0.2 None +0/-0 415 kB marcosinigaglia

🚮 Removed packages: @onekeyfe/hd-ble-sdk@0.3.15, @onekeyfe/hd-core@0.3.15, @onekeyfe/hd-shared@0.3.15, @onekeyfe/hd-transport@0.3.15, @onekeyfe/hd-web-sdk@0.3.15

@github-actions
Copy link

github-actions bot commented Jun 25, 2023

Bundle Stats-ios bundle diff

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
1 36.8 MB -> 36.85 MB (+53.14 KB) +0.14%
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
bundle 36.8 MB -> 36.85 MB (+53.14 KB) +0.14%

Smaller

No assets were smaller

Unchanged

No assets were unchanged

@huhuanming huhuanming force-pushed the feature/add-nexa-OK-20657 branch from d62be6f to e62e09c Compare June 28, 2023 08:24
@huhuanming huhuanming marked this pull request as ready for review July 24, 2023 09:15
@huhuanming huhuanming requested review from originalix and loatheb July 24, 2023 09:21
@huhuanming huhuanming enabled auto-merge (squash) July 25, 2023 03:53
@huhuanming huhuanming merged commit bdde24b into onekey Jul 25, 2023
@huhuanming huhuanming deleted the feature/add-nexa-OK-20657 branch July 25, 2023 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants