Skip to content

devop: prep release 2.10#732

Merged
kvhnuke merged 50 commits intodevelopfrom
devop/package-updates-2-10
Aug 7, 2025
Merged

devop: prep release 2.10#732
kvhnuke merged 50 commits intodevelopfrom
devop/package-updates-2-10

Conversation

@kvhnuke
Copy link
Contributor

@kvhnuke kvhnuke commented Jul 15, 2025

Summary by CodeRabbit

  • Chores
    • Updated multiple dependencies and development tools across various packages for improved stability and consistency.
    • Removed SKALE Razor and Arthera networks and their configurations.
    • Disabled activity fetching on several networks by replacing handlers with no-op implementations.
    • Applied extensive code style and formatting enhancements across UI components, core libraries, and network definitions.
  • New Features
    • Added full support for the CoreDAO network, including configuration and price tracking.
    • Added AppLayer Testnet network with complete setup and activity handling.
    • Introduced OKX as a new Solana DEX aggregator provider supporting token swap quotes, transaction creation, and status monitoring.
    • Enhanced Solana swap capabilities to handle raw serialized transactions with accurate fee calculations and improved transaction processing.
  • Tests
    • Added comprehensive integration tests for the OKX provider to validate swap functionality and robustness on Solana.

kvhnuke and others added 20 commits June 30, 2025 19:53
commit 0928965
Author: julian.martinez <julian_martinez28@outlook.com>
Date:   Mon Jul 7 17:08:14 2025 -0700

    end of buffer

commit 2f286c9
Author: julian.martinez <julian_martinez28@outlook.com>
Date:   Mon Jul 7 15:59:32 2025 -0700

    update okx provider logic

commit 12b50c2
Merge: a687ae4 98ad4a2
Author: julian.martinez <julian_martinez28@outlook.com>
Date:   Mon Jul 7 15:49:53 2025 -0700

    Merge branch 'main' of https://github.com/Julian-dev28/enKrypt

commit a687ae4
Author: Julian Martinez <julian.martinez@okg.com>
Date:   Mon Jun 16 21:50:08 2025 -0700

    update request/response params

commit 98ad4a2
Author: julian.martinez <julian_martinez28@outlook.com>
Date:   Mon Jun 16 19:18:08 2025 -0700

    update request/response params

commit eff5837
Author: julian.martinez <julian_martinez28@outlook.com>
Date:   Thu Jun 12 18:39:25 2025 -0700

    add okx provider

commit 934e55b
Author: julian.martinez <julian_martinez28@outlook.com>
Date:   Wed Jun 11 10:29:01 2025 -0700

    add okx provider
@coderabbitai
Copy link

coderabbitai bot commented Jul 15, 2025

Walkthrough

This update consists entirely of dependency version bumps across multiple package.json files throughout the repository. Both runtime and development dependencies were incremented to newer minor or patch versions. Additionally, minor formatting and stylistic improvements were made in various source files, including code formatting, import statement consolidation, removal of unused variables or parameters, and improved error logging in some catch blocks. A new Ethereum-compatible network configuration for the AppLayer Testnet was added, including its network options, activity handler, and integration into network enums and exports. The CoreDAO network was also added with its configuration, activity handler, and integration. Support for raw Solana transactions was introduced in the swap libs, modifying transaction processing and fee calculation logic accordingly. A new OKX DEX aggregator provider for Solana swaps was implemented, including token fetching, quote and swap transaction generation, and status checking, along with associated types and tests. No other functional code or exported/public entity signatures were modified.

Changes

Files/Groups Change Summary
package.json Bumped @swc/core and concurrently devDependencies to newer versions.
packages/extension-bridge/package.json Updated several devDependencies: ESLint, Prettier, TypeScript-related packages to newer versions.
packages/extension/package.json Bumped multiple dependencies and devDependencies, including Vue, Polkadot, Amplitude, ESLint, Prettier, etc.
packages/hw-wallets/package.json Upgraded Ledger, Polkadot, Trezor, ESLint, Prettier, Vitest, and TypeScript-related dependencies.
packages/keyring/package.json Updated @polkadot/util and several devDependencies to newer versions.
packages/name-resolution/package.json Bumped @bonfida/spl-name-service, viem, ESLint, Prettier, Vitest, and TypeScript-related packages; changed lint script to use Prettier instead of ESLint autofix.
packages/request/package.json Updated json-rpc-2.0, ws, and several devDependencies to newer versions.
packages/signers/bitcoin/package.json Upgraded all devDependencies: ESLint, Prettier, Vitest, TypeScript, and types.
packages/signers/ethereum/package.json Updated all devDependencies: ESLint, Prettier, Vitest, TypeScript, and types.
packages/signers/kadena/package.json Bumped @polkadot/util-crypto and all devDependencies to newer versions.
packages/signers/polkadot/package.json Upgraded @polkadot/util, @polkadot/util-crypto, and all devDependencies.
packages/storage/package.json Updated all devDependencies: ESLint, Prettier, Vitest, TypeScript-related packages.
packages/swap/package.json Bumped bignumber.js, json-rpc-2.0, ws, and all devDependencies.
packages/types/package.json Updated all devDependencies: ESLint, Prettier, TypeScript-related packages.
packages/utils/package.json Bumped @polkadot/util-crypto and all devDependencies to newer versions.
Various source files in packages/extension/src/** and packages/name-resolution/src/** and tests Minor formatting and stylistic updates including adding/removing trailing commas, consolidating imports, removing unused variables in catch blocks, and improving code readability.
Various Vue components, CSS, and TypeScript types in packages/extension/src/ui/action/** and packages/extension/src/ui/onboard/** Formatting fixes, removal of unused imports, improved error logging in some catch blocks, and minor syntax corrections.
packages/name-resolution/.eslintignore Deleted .eslintignore file.
packages/name-resolution/README.md Added newline at end of file.
packages/extension/src/providers/ethereum/libs/activity-handlers/providers/etherscan/configs.ts Added new network endpoint URL for AppLayerTestnet.
packages/extension/src/providers/ethereum/networks/applayer-testnet.ts Added new Ethereum-compatible network configuration for AppLayer Testnet with activity handler.
packages/extension/src/providers/ethereum/networks/coredao.ts Added new Ethereum-compatible network configuration for CoreDAO with activity handler.
packages/extension/src/providers/ethereum/networks/index.ts Imported and added appLayerTestnet and coredao to exported networks object.
packages/types/src/networks.ts Extended NetworkNames enum with CoreDAO and AppLayerTestnet; extended CoingeckoPlatform enum with CoreDAO.
packages/extension/src/providers/ethereum/libs/assets-handlers/token-lists.ts Added CoreDAO token list entry to token lists mapping.
packages/extension/src/providers/ethereum/libs/assets-handlers/types/tokenbalance-mew.ts Added CoreDAO to supported network names type alias.
packages/extension/src/ui/action/views/swap/libs/solana-gasvals.ts Added support for raw Solana transactions with new types and updated fee calculation and transaction handling logic.
packages/extension/src/ui/action/views/swap/libs/swap-txs.ts Modified Solana swap transaction processing to handle raw transaction data without deserialization.
packages/swap/src/configs.ts Added new fee configuration for okx provider with specific wallet fees.
packages/swap/src/index.ts Added OKX provider to Solana network providers in swap initialization.
packages/swap/src/providers/okx/index.ts Added new OKX DEX aggregator provider for Solana swaps with full implementation including token fetching, quoting, swapping, and status checking.
packages/swap/src/providers/okx/types.ts Added TypeScript interfaces for OKX provider API request and response payloads.
packages/swap/src/types/index.ts Extended ProviderName enum with okx.
packages/swap/tests/okx.test.ts Added test suite for OKX provider covering quote and swap functionality on Solana network.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Extension
    participant EthereumNetworkProviders
    participant SwapProviders
    participant OKXAPI

    User->>Extension: Request network info (AppLayer Testnet, CoreDAO)
    Extension->>EthereumNetworkProviders: Query network configs and activity handlers
    EthereumNetworkProviders-->>Extension: Return network data and activity info
    Extension-->>User: Provide network info

    User->>Extension: Request swap quote (OKX provider)
    Extension->>SwapProviders: Forward quote request to OKX provider
    SwapProviders->>OKXAPI: Fetch token list and quote from OKX API
    OKXAPI-->>SwapProviders: Return quote data
    SwapProviders-->>Extension: Return quote to user

    User->>Extension: Request swap transaction (OKX provider)
    Extension->>SwapProviders: Forward swap request to OKX provider
    SwapProviders->>OKXAPI: Fetch swap transaction data
    OKXAPI-->>SwapProviders: Return transaction data
    SwapProviders-->>Extension: Return transaction to user
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

  • Add AppLayer Testnet Network #735: Both PRs introduce the AppLayer Testnet network by adding its configuration, updating network enums, and integrating activity handlers.
  • add okx provider #726: Both PRs add and implement the OKX provider integration for Solana token swaps, including provider class, types, swap transaction handling, and tests.
  • Add CoreDAO network #728: Both PRs add and integrate the CoreDAO network into the project by updating enums, network configuration files, asset handlers, activity handlers, and network exports, showing a direct and strong connection at the code level regarding CoreDAO network support.

Suggested reviewers

  • gamalielhere
  • NickKelly1

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch devop/package-updates-2-10

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions
Copy link

github-actions bot commented Jul 15, 2025

💼 Build Files
chrome: enkrypt-chrome-f5325ff3.zip
firefox: enkrypt-firefox-f5325ff3.zip

💉 Virus total analysis
chrome: f5325ff3
firefox: f5325ff3

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

♻️ Duplicate comments (9)
packages/signers/bitcoin/package.json (1)

35-50: Same ESLint 9/Prettier 3 concerns as noted for extension-bridge

The dev-dependency set mirrors the earlier package; please run its lint/test scripts under Node 18+ and address any rule churn.

packages/storage/package.json (1)

31-45: Same ESLint 9/Prettier 3 concerns as noted for extension-bridge

The dev-dependency set mirrors the earlier package; please run its lint/test scripts under Node 18+ and address any rule churn.

packages/types/package.json (1)

28-41: Same ESLint 9/Prettier 3 concerns as noted for extension-bridge

The dev-dependency set mirrors the earlier package; please run its lint/test scripts under Node 18+ and address any rule churn.

packages/signers/kadena/package.json (1)

31-48: Same ESLint/TS-ESLint mismatch as in signer-ethereum

The dev-dependency block still pins @typescript-eslint/* to 8.x while eslint is now 9.x.
Linting will crash for this package as well.

Please align the versions as suggested in the ethereum signer package or revert ESLint to 8.x.

packages/swap/package.json (1)

42-58: Repeat of ESLint/TS-ESLint version skew

Same comment as above – dev-deps are inconsistent (eslint@9 + @typescript-eslint@8).
Synchronise versions to restore linting.

packages/signers/polkadot/package.json (1)

34-49: Same ESLint-9 / meta-package concerns as noted in @enkryptcom/request.

packages/utils/package.json (1)

34-49: Same ESLint-9 / meta-package concerns as noted in @enkryptcom/request.

packages/keyring/package.json (1)

38-52: Same ESLint-9 / meta-package concerns as noted in @enkryptcom/request.

packages/hw-wallets/package.json (1)

25-41: Same ESLint-9 / meta-package concerns as noted in @enkryptcom/request.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dc24615 and 080ed46.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (15)
  • package.json (1 hunks)
  • packages/extension-bridge/package.json (1 hunks)
  • packages/extension/package.json (5 hunks)
  • packages/hw-wallets/package.json (2 hunks)
  • packages/keyring/package.json (1 hunks)
  • packages/name-resolution/package.json (2 hunks)
  • packages/request/package.json (1 hunks)
  • packages/signers/bitcoin/package.json (1 hunks)
  • packages/signers/ethereum/package.json (1 hunks)
  • packages/signers/kadena/package.json (1 hunks)
  • packages/signers/polkadot/package.json (1 hunks)
  • packages/storage/package.json (1 hunks)
  • packages/swap/package.json (1 hunks)
  • packages/types/package.json (1 hunks)
  • packages/utils/package.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: test
  • GitHub Check: test
  • GitHub Check: buildAll
  • GitHub Check: test
  • GitHub Check: test
🔇 Additional comments (8)
package.json (1)

37-38: Upgrade looks safe ‒ please regenerate yarn.lock and run CI

@swc/core and concurrently are both patch-level bumps, so no breaking-change risk is expected.
Just make sure to:

  1. re-run yarn install so the lockfile picks up the new ranges, and
  2. let CI execute the full test / build matrix to catch any hidden native-binding / spawn issues.

No further action required if CI passes.

packages/extension-bridge/package.json (1)

49-65: Ensure dependencies are installed & re-run ESLint 9 + Prettier 3 lint check

Please install deps and verify linting under the new versions:

  • Run yarn install at the repo root.
  • Execute yarn workspace @enkryptcom/extension-bridge lint --max-warnings=0.
  • If lint exits non-zero:
    • Drop/rename any deprecated ESLint rules in .eslintrc.
    • Bump engines.node to >=18 in packages/extension-bridge/package.json.
  • Confirm eslint-config-prettier@10 fully neutralizes Prettier 3’s stricter formatting.
packages/name-resolution/package.json (1)

50-52: Runtime dependency: confirm @bonfida/spl-name-service 3.0.12 is still ESM-safe

Upgrading a Solana package occasionally introduces CommonJS/ESM interop issues.
Run the unit test suite for name-resolution against Node ≥18 to ensure dynamic import still works.

packages/request/package.json (1)

28-31: ✔ Node engine compatibility verified

  • json-rpc-2.0@1.7.1: no engines field (no Node version restriction)
  • ws@8.18.3: engines.node = ">=10.0.0" (Node 14.15+ is supported)

No changes required.

packages/signers/polkadot/package.json (1)

27-29: Polkadot util patch looks good – only a micro bug-fix; no breaking API surface.

packages/utils/package.json (1)

27-27: Safe bump@polkadot/util-crypto@13.5.3 is a patch release; no action required.

packages/keyring/package.json (1)

32-32: Minor util bump acknowledged – API unchanged, 👍

packages/hw-wallets/package.json (1)

55-67: No explicit Node engine constraints in upgraded hardware-wallet libs
I checked the npm metadata for the bumped packages (@ledgerhq/hw-app-btc@10.9.3, @ledgerhq/hw-transport@6.31.7, @trezor/connect@9.6.2) and none of them declare an “engines” field—so they don’t explicitly drop Node 14 support. However, many now ship ESM-only bundles.

Please verify that your downstream builds (web extension, Electron, etc.) still compile and run correctly under your "engines": ">=14.15.0" constraint.

@kvhnuke kvhnuke changed the title devop: update packages devop: prep release 2.10 Aug 4, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 7

🧹 Nitpick comments (3)
packages/swap/tests/okx.test.ts (1)

1-554: Consider adding test timeouts and retry logic for flaky network tests.

Since these tests make real API calls, they may be flaky due to network issues. Consider:

  1. Adding retry logic for failed API calls
  2. Using longer timeouts for network operations
  3. Potentially mocking API responses for more stable unit tests
packages/swap/src/providers/okx/index.ts (2)

740-741: Consider extracting fee percentage calculation for consistency.

The fee percentage calculation (feeConf.fee * 100) appears in multiple places. Consider extracting it to avoid potential inconsistencies.

+      const feePercentage = feeConf.fee * 100;
       // Referral fee configuration using existing fee config
-      feePercent: (feeConf.fee * 100).toString(), // Convert to percentage
+      feePercent: feePercentage.toString(), // Convert to percentage

Later in the return statement (line 819), use the same variable:

-      feePercentage: feeConf.fee * 100,
+      feePercentage,

862-890: Consider adding more descriptive logging for address lookup table handling.

The code handles versioned transactions with address lookup tables but the logging could be more descriptive about why the transaction is returned unmodified.

                   logger.info(
-                    `  - Returning unmodified OKX transaction to preserve lookup table integrity`,
+                    `  - Returning unmodified OKX versioned transaction with ${lookups.length} address lookup table(s) to preserve integrity`,
                   );
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a15fb7c and 88ebdd6.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (9)
  • packages/extension/src/ui/action/views/swap/libs/solana-gasvals.ts (3 hunks)
  • packages/extension/src/ui/action/views/swap/libs/swap-txs.ts (1 hunks)
  • packages/extension/src/ui/action/views/swap/views/swap-best-offer/index.vue (3 hunks)
  • packages/swap/src/configs.ts (1 hunks)
  • packages/swap/src/index.ts (2 hunks)
  • packages/swap/src/providers/okx/index.ts (1 hunks)
  • packages/swap/src/providers/okx/types.ts (1 hunks)
  • packages/swap/src/types/index.ts (1 hunks)
  • packages/swap/tests/okx.test.ts (1 hunks)
✅ Files skipped from review due to trivial changes (4)
  • packages/swap/src/index.ts
  • packages/swap/src/types/index.ts
  • packages/swap/src/configs.ts
  • packages/swap/src/providers/okx/types.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: buildAll
  • GitHub Check: test
  • GitHub Check: test
🔇 Additional comments (5)
packages/extension/src/ui/action/views/swap/views/swap-best-offer/index.vue (1)

64-64: LGTM!

The type assertion to GasFeeType is appropriate since gasCostValues is already typed as Partial<GasFeeType>.

packages/extension/src/ui/action/views/swap/libs/swap-txs.ts (1)

112-127: LGTM! Good simplification of Solana transaction handling.

The removal of complex deserialization logic in favor of returning raw transaction data with metadata is a good architectural decision. This approach:

  • Reduces complexity and potential points of failure
  • Allows downstream consumers to handle deserialization as needed
  • Properly flags the data as raw with isRawData: true
packages/extension/src/ui/action/views/swap/libs/solana-gasvals.ts (3)

26-41: LGTM! Well-structured type extension for raw transactions.

The new RawTransaction type and updated TaggedTransaction union properly extend the type system to handle raw transaction data. The type includes all necessary fields for tracking unprocessed transactions.


149-156: LGTM! Reasonable default fee for raw transactions.

Using a default fee of 10000 lamports (0.00001 SOL) for raw transactions is appropriate as it represents a typical Solana transaction fee. The implementation correctly skips further processing for raw transactions.


204-210: LGTM! Good defensive programming.

The error handling for null messages is appropriate, and using a fallback fee ensures the function doesn't fail unexpectedly.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (2)
packages/extension/src/providers/ethereum/networks/xlayer.ts (1)

23-23: Verify intentional disabling of activity handler for X Layer network.

The activity handler has been replaced with a no-op function that returns an empty array, effectively disabling transaction history tracking for the X Layer network. This will impact user experience as transaction activities won't be displayed.

Given this is part of release preparation (v2.10), this might be intentional to ensure stability, but please confirm:

  1. Is this change temporary or permanent?
  2. Are there known issues with the X Layer activity provider that necessitate this change?

Consider adding a comment explaining the rationale:

- activityHandler: wrapActivityHandler(() => Promise.resolve([])),
+ // TODO: Temporarily disabled for release stability - re-enable after resolving provider issues
+ activityHandler: wrapActivityHandler(() => Promise.resolve([])),
packages/extension/src/providers/ethereum/networks/sdn.ts (1)

4-5: Remove unused imports for activity handling.

The imports EtherscanActivity and wrapActivityHandler are no longer being used since the activity handler has been replaced with a no-op function. Consider removing these unused imports to clean up the code.

-import { EtherscanActivity } from '../libs/activity-handlers';
-import wrapActivityHandler from '@/libs/activity-state/wrap-activity-handler';
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1de67ae and 064e68d.

📒 Files selected for processing (10)
  • packages/extension/src/libs/dapp-list/index.ts (0 hunks)
  • packages/extension/src/providers/ethereum/libs/activity-handlers/providers/etherscan/configs.ts (2 hunks)
  • packages/extension/src/providers/ethereum/networks/aa.ts (0 hunks)
  • packages/extension/src/providers/ethereum/networks/aat.ts (0 hunks)
  • packages/extension/src/providers/ethereum/networks/index.ts (2 hunks)
  • packages/extension/src/providers/ethereum/networks/sdn.ts (1 hunks)
  • packages/extension/src/providers/ethereum/networks/xlayer.ts (1 hunks)
  • packages/extension/src/providers/polkadot/libs/activity-handlers/providers/subscan/configs.ts (0 hunks)
  • packages/extension/src/providers/polkadot/networks/unique/quartz.ts (1 hunks)
  • packages/types/src/networks.ts (2 hunks)
💤 Files with no reviewable changes (4)
  • packages/extension/src/libs/dapp-list/index.ts
  • packages/extension/src/providers/polkadot/libs/activity-handlers/providers/subscan/configs.ts
  • packages/extension/src/providers/ethereum/networks/aa.ts
  • packages/extension/src/providers/ethereum/networks/aat.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • packages/extension/src/providers/ethereum/libs/activity-handlers/providers/etherscan/configs.ts
  • packages/types/src/networks.ts
  • packages/extension/src/providers/ethereum/networks/index.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: buildAll
  • GitHub Check: test
  • GitHub Check: test
🔇 Additional comments (1)
packages/extension/src/providers/polkadot/networks/unique/quartz.ts (1)

28-28: Verify intentional disabling of Quartz network activityHandler

The activityHandler in packages/extension/src/providers/polkadot/networks/unique/quartz.ts was changed to a no-op (wrapActivityHandler(() => Promise.resolve([]))), which removes transaction history for Quartz. Similar changes exist for Edgeware, Pendulum, Solana, and all Ethereum networks, but Subscan still supports Quartz endpoints.

Please clarify:

  • Is Quartz activity currently unsupported by Subscan (or another API)?
  • If intentional, add a comment (e.g. // Quartz not yet supported by Subscan) and link to an issue or documentation.
  • If unintentional, revert to wrapActivityHandler(subscanActivity).

Location to review:

  • packages/extension/src/providers/polkadot/networks/unique/quartz.ts – line 28

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

♻️ Duplicate comments (2)
packages/swap/tests/okx.test.ts (2)

281-312: Remove or conditionally enable console.log statements in tests.

Test files should not contain console.log statements by default. Consider using a debug flag or test utilities for logging.


446-465: Remove debug console.log statements from test assertions.

These console.log statements appear to be leftover debugging code and should be removed from the test.

🧹 Nitpick comments (2)
packages/swap/tests/okx.test.ts (2)

353-383: Remove debug console.log statements.

These console.log statements should be removed or wrapped in a conditional debug flag to keep test output clean.

-      console.log(
-        "🚀 Testing SOL -> USDC swap with Wrapped SOL account detection",
-      );
+      // Testing SOL -> USDC swap with Wrapped SOL account detection

       const solQuote = await okx.getQuote(solQuoteOptions, {
         infiniteApproval: true,
         walletIdentifier: WalletIdentifier.enkrypt,
         slippage: "0.5",
       });

-      console.log("🔍 SOL quote result:", solQuote ? "SUCCESS" : "FAILED");

       if (solQuote) {
         expect(solQuote).not.toBeNull();
         expect(solQuote.provider).toBe(ProviderName.okx);

-        console.log("🔍 Getting SOL swap transaction...");
         const solSwap = await okx.getSwap(solQuote.quote);
-        console.log("🔍 SOL swap result:", solSwap ? "SUCCESS" : "FAILED");

         if (solSwap) {
           expect(solSwap).not.toBeNull();
           expect(solSwap.transactions[0]).toHaveProperty("kind");
           expect((solSwap.transactions[0] as SolanaTransaction).kind).toBe(
             "versioned",
           );
-          console.log("✅ SOL swap transaction created successfully");
-          console.log(
-            "✅ Wrapped SOL account detection and creation logic executed",
-          );
         }

474-494: Remove remaining debug console statements.

Additional console.log and console.error statements should be removed to maintain clean test output.

       let tx: LegacyTransaction;
       try {
         tx = LegacyTransaction.from(buffer);
-        console.log("Successfully deserialized legacy transaction");
       } catch (e) {
-        console.error("Failed to deserialize legacy transaction:", e);
         // For now, let's just log the error and continue with basic tests
         // The transaction structure might be different for OKX
         expect(swap!.transactions[0]).toHaveProperty("serialized");
         expect(swap!.transactions[0]).toHaveProperty("from");
         expect(swap!.transactions[0]).toHaveProperty("to");
         expect(swap!.transactions[0]).toHaveProperty("type");
         expect(swap!.transactions[0]).toHaveProperty("kind");
         expect((swap!.transactions[0] as SolanaTransaction).kind).toBe(
           "versioned",
         );
         return; // Skip the detailed transaction analysis for now
       }

       // If we get here, the transaction was successfully deserialized
       // For legacy transactions, we can directly access instructions
-      console.log(
-        `Legacy transaction has ${tx.instructions.length} instructions`,
-      );
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5248b47 and 97226b8.

📒 Files selected for processing (2)
  • packages/swap/src/providers/okx/index.ts (1 hunks)
  • packages/swap/tests/okx.test.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/swap/src/providers/okx/index.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: buildAll
  • GitHub Check: test
  • GitHub Check: test
🔇 Additional comments (2)
packages/swap/tests/okx.test.ts (2)

1-36: LGTM!

The test suite setup and imports are appropriate for testing the OKX provider with real API calls.


38-41: LGTM!

Basic initialization test correctly verifies provider instantiation.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
packages/extension/src/providers/ethereum/networks/hoodi.ts (1)

1-1: Consider using a Hoodi-specific icon.

The configuration uses the generic Ethereum icon (eth.webp) instead of a Hoodi-specific icon. Consider adding a dedicated icon for better network identification in the UI.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 97226b8 and f5325ff.

📒 Files selected for processing (5)
  • packages/extension/src/libs/dapp-list/index.ts (0 hunks)
  • packages/extension/src/providers/ethereum/networks/holesky.ts (0 hunks)
  • packages/extension/src/providers/ethereum/networks/hoodi.ts (1 hunks)
  • packages/extension/src/providers/ethereum/networks/index.ts (4 hunks)
  • packages/types/src/networks.ts (3 hunks)
💤 Files with no reviewable changes (2)
  • packages/extension/src/libs/dapp-list/index.ts
  • packages/extension/src/providers/ethereum/networks/holesky.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • packages/types/src/networks.ts
  • packages/extension/src/providers/ethereum/networks/index.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: buildAll
🔇 Additional comments (3)
packages/extension/src/providers/ethereum/networks/hoodi.ts (3)

18-18: Activity handler implementation is consistent.

The wrapped activity handler that returns an empty array is consistent with the pattern used for other networks in this release, as mentioned in the AI summary.


21-23: Network instantiation and export follow standard pattern.

The EvmNetwork instantiation and default export follow the established pattern used throughout the codebase for network configurations.


6-19: Please confirm WebSocket handshake connectivity for the Hoodi node

  • Chain ID 0x88bb0 → decimal 560048 ✓
  • Block explorer https://hoodi.etherscan.io returns HTTP 200 ✓
  • WebSocket endpoint wss://nodes.mewapi.io/ws/hoodi responds (HTTP 403) on a plain GET—please test a real WebSocket handshake (e.g. with websocat or a browser console) to ensure the node is accepting connections

No code changes required; just verify the live WSS handshake before merging.

@kvhnuke kvhnuke merged commit 9f85baf into develop Aug 7, 2025
5 checks passed
@kvhnuke kvhnuke deleted the devop/package-updates-2-10 branch August 7, 2025 19:34
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.

4 participants