Closed Poafs1 closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
celatone-frontend-staging | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 27, 2024 7:40am |
The changes introduce updates to the blockchain configuration structure, including the addition of a new chainId
property to the ChainConfig
interface and DEFAULT_CHAIN_CONFIG
object. Enhancements to error handling and network management functions were made, along with the creation of new utility functions for wallet configurations and registry data. Additionally, the README.md
was updated to improve documentation for local development setup.
Files | Change Summary |
---|---|
src/config/chain/default.ts src/config/chain/types.ts |
Added a new chainId property to DEFAULT_CHAIN_CONFIG and the ChainConfig interface. |
src/config/chain/chain-configs.ts |
Defined configurations for the "miniwasm-2" and "localosmosis" testnets, detailing various properties and settings. |
src/config/chain/devChainConfigs.ts |
Created configuration for the "Local Osmosis" development chain, specifying endpoints, wallets, and features. |
src/config/chain/index.ts |
Consolidated exports to emphasize development-specific chain configurations. |
src/lib/app-provider/contexts/app.tsx |
Enhanced error handling in handleOnChainIdChange to set default state on invalid configurations. |
src/lib/app-provider/hooks/useChainConfigs.ts |
Improved loading state management, incorporating development-specific chain configurations. |
src/lib/utils/chain-config.ts |
Removed populateChainConfig function; added getRegistryChain and getRegistryAssets functions. |
src/lib/types/chain-config.ts |
Introduced TierMap , mapping tier values of ChainConfig to numeric identifiers. |
src/lib/types/index.ts |
Added export statement for the chain-config module, enhancing module functionality. |
README.md |
Updated Node.js version requirement to 20 and added a section for configuring a local development environment. |
sequenceDiagram
participant User
participant AppProvider
participant Config
participant ChainConfig
User->>AppProvider: Requests network change
AppProvider->>Config: Fetches chain configuration
Config->>ChainConfig: Validates chainId
ChainConfig-->>AppProvider: Returns valid configuration
AppProvider-->>User: Network change successful
🐇 In the fields where chains do lie,
A newchainId
hops by!
With better checks and error grace,
Our network's now a faster pace!
So here we cheer, with joyful thump,
For changes made, we now can jump! 🐾
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?
Summary by CodeRabbit
New Features
useGas
hook for dynamic gas fee management, improving responsiveness in fee calculations.Bug Fixes
chainId
configurations, ensuring clearer error messages when issues arise.Refactor