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

fix: devnet #270

Merged
merged 8 commits into from
Feb 12, 2025
Merged

fix: devnet #270

merged 8 commits into from
Feb 12, 2025

Conversation

fmorency
Copy link
Contributor

@fmorency fmorency commented Feb 12, 2025

See #269

Summary by CodeRabbit

  • New Features

    • Introduced an enhanced configuration that dynamically selects blockchain manifest data based on the deployment environment.
    • Added a new function to convert CryptoJS.lib.WordArray into Uint8Array for improved data handling.
  • Chores

    • Updated and added dependencies to enhance system stability and functionality.
  • Refactor

    • Centralized the sourcing of chain and asset information across the application for streamlined data management.
  • Tests

    • Adjusted test setups to align with the new configuration strategy.

fmorency and others added 6 commits February 12, 2025 13:07
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Félix C. Morency <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Félix C. Morency <[email protected]>
@fmorency fmorency requested a review from chalabi2 February 12, 2025 21:38
@fmorency fmorency self-assigned this Feb 12, 2025
Copy link
Contributor

coderabbitai bot commented Feb 12, 2025

Walkthrough

This pull request introduces a new configuration module that dynamically builds a manifest based on an environment variable, conditionally loading different manifest files depending on the build type. It updates several parts of the application by replacing hardcoded imports with references to the new manifest module. Additionally, it refines fee estimation logic to standardize the gas price token suffix, bumps dependency versions, adds a new dependency, and introduces a helper function in staking utilities for converting CryptoJS word arrays.

Changes

File(s) Change Summary
config/manifestChain.ts New module that dynamically builds a manifest using the buildType environment variable; conditionally loads development, testnet, or QA-specific manifest data; exports manifestAssets, manifestChain, and manifestIbc.
hooks/useFeeEstimation.ts Simplified fee estimation logic to always append 'umfx' as the gas price token suffix, removing the conditional check for chainName.
package.json Updated dependency versions for @chain-registry/assets and chain-registry; added a new dependency, bech32 (version ^2.0.0).
pages/_app.tsx, tests/render.tsx Updated import paths to use the new @/config/manifestChain module for manifest data instead of referencing the legacy chain-registry/testnet/manifesttestnet.
utils/ibc.ts Changed the imports of manifest assets and IBC data to reference the new configuration module at @/config/manifestChain.
utils/staking.ts Modified the import style for bech32 (from namespace to named import) and added a new function, wordArrayToUint8Array, to convert a CryptoJS WordArray into a Uint8Array.

Sequence Diagram(s)

sequenceDiagram
    participant App as Application
    participant M as ManifestModule
    participant Env as Environment

    App->>M: Import manifest module
    M->>Env: Read buildType value
    alt buildType is undefined
        M-->>App: Throw error
    else buildType is "qa"
        M->>M: Load QA manifest (empty IBC data)
    else
        M->>M: Conditionally load dev/testnet manifest
    end
    M-->>App: Export manifestAssets, manifestChain, manifestIbc
Loading
sequenceDiagram
    participant FeeHook as useFeeEstimation
    participant Chain as ChainName

    FeeHook->>Chain: Check chainName value
    FeeHook-->>FeeHook: Set gas token suffix "umfx"
Loading

Possibly related PRs

  • fix: complete skip integration for ibc #258: The changes in the main PR, specifically the introduction of manifestAssets and manifestChain in config/manifestChain.ts, are related to the updates in the retrieved PR where these variables are imported and utilized in various components, indicating a direct connection at the code level.

Suggested labels

enhancement

Poem

Hop along, dear coder, in a meadow of code so bright,
I’ve revamped the manifest with logic that feels just right.
New imports and tokens now dance in the stream,
With assets and IBC flowing like a dream.
This rabbit cheers, with a joyful, bouncing beat,
CodeRabbit Inc. says, "Keep it hopping neat!"
🐰💻

✨ Finishing Touches
  • 📝 Generate Docstrings (Beta)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • 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 generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

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. (Beta)
  • @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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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.

@fmorency fmorency mentioned this pull request Feb 12, 2025
Copy link
Contributor

@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 (6)
utils/staking.ts (1)

184-195: Add input validation to the wordArrayToUint8Array function.

While the implementation is correct, consider adding input validation to handle edge cases.

 function wordArrayToUint8Array(wordArray: CryptoJS.lib.WordArray) {
+  if (!wordArray || !wordArray.words || !wordArray.sigBytes) {
+    throw new Error('Invalid WordArray input');
+  }
+
   const words = wordArray.words;
   const sigBytes = wordArray.sigBytes;
   const u8 = new Uint8Array(sigBytes);
config/manifestChain.ts (2)

4-14: Improve error handling for environment variable.

The error message could be more descriptive to help with troubleshooting.

-  throw new Error('Chain tier environment variable is not set');
+  throw new Error('Required environment variable "chainTier" is not set. Expected values: "qa" or "testnet".');
🧰 Tools
🪛 GitHub Check: codecov/patch

[warning] 13-13: config/manifestChain.ts#L13
Added line #L13 was not covered by tests


16-20: Consider using dynamic imports for better code splitting.

Using require for conditional imports can be replaced with dynamic imports for better tree-shaking and code splitting.

-if (buildType === 'qa') {
-  manifestModule = require('chain-registry/devnet/manifestdevnet');
-} else {
-  manifestModule = require('chain-registry/testnet/manifesttestnet');
-}
+manifestModule = await import(
+  buildType === 'qa'
+    ? 'chain-registry/devnet/manifestdevnet'
+    : 'chain-registry/testnet/manifesttestnet'
+);
🧰 Tools
🪛 GitHub Check: codecov/patch

[warning] 17-17: config/manifestChain.ts#L17
Added line #L17 was not covered by tests

hooks/useFeeEstimation.ts (1)

28-34: Add test coverage for fee estimation with devnet.

The changes to gas price token suffix logic lack test coverage, particularly for the 'manifestdevnet' case.

Additionally, consider extracting the token suffix logic to a configuration file for better maintainability:

+const GAS_PRICE_TOKENS = {
+  manifesttestnet: 'umfx',
+  manifestdevnet: 'umfx',
+  default: 'uosmo'
+};
+
 GasPrice.fromString(
-  `${gasPrice}${
-    chainName === 'manifesttestnet' || chainName === 'manifestdevnet'
-      ? 'umfx'
-      : 'uosmo'
-  }`
+  `${gasPrice}${GAS_PRICE_TOKENS[chainName] || GAS_PRICE_TOKENS.default}`
 )
❌ Verification inconclusive

🏁 Script executed:

#!/bin/bash
# Description: Check test coverage for fee estimation

# Find test files related to fee estimation
fd -e test.ts -e spec.ts -e test.tsx -e spec.tsx . | grep -i fee

# Check if there are any tests for devnet fee estimation
rg -l "manifestdevnet.*useFeeEstimation" -g '*.test.{ts,tsx}' -g '*.spec.{ts,tsx}'

Length of output: 151


Action: Add test coverage for the manifestdevnet case in fee estimation.

Our investigation did not uncover any test files or references covering the devnet scenario in useFeeEstimation.ts, confirming that this new behavior lacks test coverage. Please add tests to verify that when chainName is set to 'manifestdevnet', the fee estimation logic correctly appends the 'umfx' suffix. Additionally, consider refactoring the token suffix logic into a configuration object for improved maintainability.

🧰 Tools
🪛 ESLint

[error] 30-32: Replace ⏎············?·'umfx'⏎··········· with ·?·'umfx'

(prettier/prettier)

🪛 GitHub Check: codecov/patch

[warning] 28-34: hooks/useFeeEstimation.ts#L28-L34
Added lines #L28 - L34 were not covered by tests

pages/_app.tsx (2)

183-195: Consider extracting endpoint configuration.

The endpoint configuration is currently embedded in the component. Consider extracting it to the manifest configuration module for better maintainability and consistency with the new dynamic configuration approach.

-  const endpointOptions = {
-    isLazy: true,
-    endpoints: {
-      [env.chain]: {
-        rpc: [env.rpcUrl],
-        rest: [env.apiUrl],
-      },
-      ['osmosistestnet']: {
-        rpc: [env.osmosisRpcUrl],
-        rest: [env.osmosisApiUrl],
-      },
-    },
-  };
+  const endpointOptions = getEndpointOptions(env);

Create a new function in the manifest configuration module:

// @/config/manifestChain.ts
export function getEndpointOptions(env: typeof import('@/config/env').default) {
  return {
    isLazy: true,
    endpoints: {
      [env.chain]: {
        rpc: [env.rpcUrl],
        rest: [env.apiUrl],
      },
      ['osmosistestnet']: {
        rpc: [env.osmosisRpcUrl],
        rest: [env.osmosisApiUrl],
      },
    },
  };
}

215-219: Update metadata in WalletConnect configuration.

The WalletConnect metadata appears to be using placeholder values. Update these with appropriate production values:

   metadata: {
-    name: 'Alberto',
-    description: 'Manifest Network Web App',
-    url: 'https://alberto.com',
+    name: 'Manifest Network',
+    description: 'Manifest Network - Web3 Application',
+    url: 'https://manifest.network',
     icons: [],
   },
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 18dc41c and 5af6548.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (7)
  • config/manifestChain.ts (1 hunks)
  • hooks/useFeeEstimation.ts (1 hunks)
  • package.json (2 hunks)
  • pages/_app.tsx (1 hunks)
  • tests/render.tsx (1 hunks)
  • utils/ibc.ts (1 hunks)
  • utils/staking.ts (2 hunks)
🧰 Additional context used
🪛 ESLint
hooks/useFeeEstimation.ts

[error] 30-32: Replace ⏎············?·'umfx'⏎··········· with ·?·'umfx'

(prettier/prettier)

🪛 GitHub Check: codecov/patch
hooks/useFeeEstimation.ts

[warning] 28-34: hooks/useFeeEstimation.ts#L28-L34
Added lines #L28 - L34 were not covered by tests

config/manifestChain.ts

[warning] 13-13: config/manifestChain.ts#L13
Added line #L13 was not covered by tests


[warning] 17-17: config/manifestChain.ts#L17
Added line #L17 was not covered by tests


[warning] 25-28: config/manifestChain.ts#L25-L28
Added lines #L25 - L28 were not covered by tests

🪛 GitHub Actions: Prettier
hooks/useFeeEstimation.ts

[warning] 1-1: Code style issues found in the above file. Run Prettier with --write to fix.

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build
🔇 Additional comments (6)
utils/staking.ts (1)

2-2: LGTM! Import style improvement.

The change from namespace import to named import for bech32 follows better practices by being more explicit about what's being imported.

package.json (1)

36-36: Verify compatibility of updated dependencies.

Let's check for any breaking changes in the updated packages.

Also applies to: 58-59

❌ Verification inconclusive

🌐 Web query:

What are the latest versions and any breaking changes for:
1. @chain-registry/assets
2. bech32
3. chain-registry

Error during web search


Review: Dependency Version Compatibility

The patch-level updates for @chain-registry/assets (^1.70.122) and chain-registry (^1.69.122) are generally expected to be backward compatible under semantic versioning. However, the addition of bech32 at a new major version (^2.0.0) means there could be breaking changes compared to the previous version. Since our initial web query for breaking changes did not return results, please verify—by checking the official release notes or documentation for bech32 v2.0.0—whether its API changes impact our usage in the codebase.

tests/render.tsx (1)

13-13: LGTM!

The import statement has been correctly updated to use the new manifest configuration module.

utils/ibc.ts (1)

8-8: LGTM!

The import statement and IBC data initialization have been correctly updated to use the new manifest configuration module.

Also applies to: 70-70

pages/_app.tsx (2)

44-45: LGTM! Import changes align with dynamic manifest configuration.

The change to import from @/config/manifestChain instead of directly from chain-registry supports the PR's objective of fixing devnet configuration by allowing dynamic manifest loading based on environment.


203-204: Verify chain configuration compatibility.

The ChainProvider is configured with multiple chains (manifest, osmosis, axelar). Please ensure that the new manifest configuration from @/config/manifestChain maintains compatibility with the other chain configurations, particularly for cross-chain operations.

Run this script to verify chain configuration compatibility:

✅ Verification successful

🏁 Script executed:

#!/bin/bash
# Description: Check for potential chain configuration mismatches

# Check chain configurations
ast-grep --pattern 'chain as manifestChain' 
ast-grep --pattern 'assets as manifestAssets'

# Check usage in cross-chain operations
rg -A 5 'manifestChain|manifestAssets' 

Length of output: 2617


Chain configuration compatibility is maintained.
The manifestChain and manifestAssets from config/manifestChain.ts are structured and exported similarly to the other chain configurations. They’re used consistently in the ChainProvider (in pages/_app.tsx), in tests, and in cross-chain utilities (e.g., utils/ibc.ts). Notably, while the manifestIbc field conditionally returns an empty array in QA builds—which is an intentional design decision—the overall configuration remains compatible with cross-chain operations.

Comment on lines +24 to +34
if (buildType === 'qa') {
const { assets, chain } = manifestModule;
manifestAssets = assets;
manifestChain = chain;
manifestIbc = []; // Default value since devnet doesn't include ibc
} else {
const { assets, chain, ibc } = manifestModule;
manifestAssets = assets;
manifestChain = chain;
manifestIbc = ibc!;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Add test coverage for manifest initialization.

The manifest initialization logic lacks test coverage, which is crucial for ensuring correct behavior across different build types.


🏁 Script executed:

#!/bin/bash
# Description: Check test coverage for manifest initialization

# Find test files related to manifest configuration
fd -e test.ts -e spec.ts -e test.tsx -e spec.tsx . | grep -i manifest

# Check if there are any tests importing manifestChain
rg -l "from ['\"]\@\/config\/manifestChain['\"]" -g '*.test.{ts,tsx}' -g '*.spec.{ts,tsx}'

Length of output: 282


I'm going to re-run the test search with an updated command that avoids regex escape issues. We'll use rg -F for fixed-string matching. Please run the following script:

Once we have the output, we can determine whether tests exist for the manifest initialization logic or if additional coverage needs to be added.


🏁 Script executed:

#!/bin/bash
echo "Searching for tests that import manifestChain..."
rg -l -F "@/config/manifestChain" -g "*.test.ts" -g "*.spec.ts" -g "*.test.tsx" -g "*.spec.tsx" .

Length of output: 204


Manifest Initialization Test Coverage Missing

Our investigation confirms that no tests are importing or referencing @/config/manifestChain. This indicates that the manifest initialization logic (i.e., setting of manifestAssets, manifestChain, and manifestIbc for different build types) currently lacks test coverage.

  • File: config/manifestChain.ts
  • Issue: No tests found covering manifest initialization logic

Please add tests that simulate different buildType values (e.g., 'qa' and others) to validate that assets, chain, and ibc are correctly initialized based on the manifest module.

🧰 Tools
🪛 GitHub Check: codecov/patch

[warning] 25-28: config/manifestChain.ts#L25-L28
Added lines #L25 - L28 were not covered by tests

Copy link

codecov bot commented Feb 12, 2025

Codecov Report

Attention: Patch coverage is 73.91304% with 6 lines in your changes missing coverage. Please review.

Project coverage is 54.48%. Comparing base (18dc41c) to head (df7d2ff).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
config/manifestChain.ts 73.68% 5 Missing ⚠️
hooks/useFeeEstimation.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #270      +/-   ##
==========================================
+ Coverage   54.47%   54.48%   +0.01%     
==========================================
  Files         206      207       +1     
  Lines       17712    17727      +15     
==========================================
+ Hits         9649     9659      +10     
- Misses       8063     8068       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@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 (2)
hooks/useFeeEstimation.ts (2)

5-35: Add test coverage for fee estimation with the standardized token.

The fee estimation logic with the standardized 'umfx' token is not covered by tests. Given the critical nature of fee estimation in blockchain transactions, please add test cases to verify:

  1. Fee calculation with the standard gas price token
  2. Error handling for invalid client states
  3. Gas estimation with different modifiers

Would you like me to help generate comprehensive test cases for the fee estimation logic?

🧰 Tools
🪛 GitHub Check: codecov/patch

[warning] 28-28: hooks/useFeeEstimation.ts#L28
Added line #L28 was not covered by tests


5-6: Consider documenting or refactoring the chainName parameter.

The chainName parameter is still required but no longer influences the gas price token suffix. Consider either:

  1. Documenting why the parameter is needed despite not affecting the token suffix
  2. Refactoring to make the parameter usage more explicit
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5af6548 and 68b1c81.

📒 Files selected for processing (1)
  • hooks/useFeeEstimation.ts (1 hunks)
🧰 Additional context used
🪛 GitHub Check: codecov/patch
hooks/useFeeEstimation.ts

[warning] 28-28: hooks/useFeeEstimation.ts#L28
Added line #L28 was not covered by tests

🔇 Additional comments (1)
hooks/useFeeEstimation.ts (1)

28-28: Verify the implications of standardizing the gas price token.

The gas price token suffix has been standardized to 'umfx', removing the previous chain-specific logic. While this aligns with the devnet fix objective, please verify that this won't affect other chains or environments.

✅ Verification successful

🏁 Script executed:

#!/bin/bash
# Search for other uses of gas price tokens in the codebase
echo "Searching for gas price token references..."
rg -i "umfx|uosmo" --type ts

Length of output: 3861


Gas Price Token Standardization Verified

  • The search indicates that the umfx denomination is used consistently across the codebase (e.g., in fee queries, UI components, and tests), which confirms that the change in hooks/useFeeEstimation.ts aligns with our current devnet configuration.
  • However, note that the hook still accepts a chainName parameter even though it no longer affects the token suffix. If the intention is to support only devnet (with umfx), consider either removing or clearly documenting this parameter to prevent confusion.
  • As the modified line is currently not covered by tests—and given the critical nature of fee estimation—it is recommended to add tests to validate that fee estimation works as expected.
🧰 Tools
🪛 GitHub Check: codecov/patch

[warning] 28-28: hooks/useFeeEstimation.ts#L28
Added line #L28 was not covered by tests

Copy link
Collaborator

@chalabi2 chalabi2 left a comment

Choose a reason for hiding this comment

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

fixed issues all checks pass

Copy link
Contributor

@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 (3)
config/manifestChain.ts (3)

11-11: Track mainnet manifest implementation.

The TODO comment indicates pending work for mainnet support.

Would you like me to create an issue to track the implementation of mainnet manifest support?


13-17: Consider enhancing manifest loading logic.

A few suggestions to improve the manifest loading:

  1. Consider using dynamic imports instead of require() for better tree-shaking and code splitting.
  2. Add error handling for invalid build types.

Here's a suggested implementation:

-if (buildType === 'qa') {
-  manifestModule = require('chain-registry/devnet/manifestdevnet');
-} else {
-  manifestModule = require('chain-registry/testnet/manifesttestnet');
-}
+const getManifestModule = async () => {
+  switch (buildType) {
+    case 'qa':
+      return import('chain-registry/devnet/manifestdevnet');
+    case 'testnet':
+      return import('chain-registry/testnet/manifesttestnet');
+    default:
+      throw new Error(`Unsupported build type: ${buildType}`);
+  }
+};
+manifestModule = await getManifestModule();
🧰 Tools
🪛 GitHub Check: codecov/patch

[warning] 14-14: config/manifestChain.ts#L14
Added line #L14 was not covered by tests


21-31: Refactor manifest initialization to reduce duplication.

The current implementation has duplicated initialization logic and uses a potentially unsafe non-null assertion.

Here's a suggested implementation that reduces duplication and improves type safety:

-if (buildType === 'qa') {
-  const { assets, chain } = manifestModule;
-  manifestAssets = assets;
-  manifestChain = chain;
-  manifestIbc = []; // Default value since devnet doesn't include ibc
-} else {
-  const { assets, chain, ibc } = manifestModule;
-  manifestAssets = assets;
-  manifestChain = chain;
-  manifestIbc = ibc!;
-}
+const { assets, chain, ibc } = manifestModule;
+manifestAssets = assets;
+manifestChain = chain;
+manifestIbc = buildType === 'qa' ? [] : (ibc ?? []);
🧰 Tools
🪛 GitHub Check: codecov/patch

[warning] 22-25: config/manifestChain.ts#L22-L25
Added lines #L22 - L25 were not covered by tests

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 68b1c81 and df7d2ff.

📒 Files selected for processing (1)
  • config/manifestChain.ts (1 hunks)
🧰 Additional context used
🪛 GitHub Check: codecov/patch
config/manifestChain.ts

[warning] 14-14: config/manifestChain.ts#L14
Added line #L14 was not covered by tests


[warning] 22-25: config/manifestChain.ts#L22-L25
Added lines #L22 - L25 were not covered by tests

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build
🔇 Additional comments (3)
config/manifestChain.ts (3)

1-9: LGTM! Clean imports and type definitions.

The imports and type definitions are well-structured and provide good type safety for the manifest data.


21-31: Add test coverage for manifest initialization.

The manifest initialization logic lacks test coverage, which is crucial for ensuring correct behavior across different build types.

🧰 Tools
🪛 GitHub Check: codecov/patch

[warning] 22-25: config/manifestChain.ts#L22-L25
Added lines #L22 - L25 were not covered by tests


33-33: LGTM! Clean exports.

The exports are well-defined and provide access to all necessary manifest data.

@fmorency fmorency merged commit d549e82 into main Feb 12, 2025
10 checks passed
@fmorency fmorency deleted the bump-chain-registry branch February 12, 2025 22:46
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.

3 participants