Closed AMIRKHANEF closed 1 week ago
The pull request introduces significant updates to the package.json
file, primarily upgrading multiple @polkadot
package dependencies from version 11.2.1
to 14.3.1
, along with minor updates to other related packages. Additionally, several components within the codebase have been modified, including changes to type definitions and error handling in various files. Notable modifications include updates to the ShowValue
component, adjustments in type definitions for StakingInputs
, and enhancements to error handling in asset fetching functions.
File Path | Change Summary |
---|---|
package.json |
Upgraded multiple @polkadot packages from 11.2.1 to 14.3.1 and updated versions of @polkadot/util and @polkadot/util-crypto from 13.1.1 to 13.2.3 . Resolutions section updated accordingly. |
packages/extension-polkagate/src/components/ShowValue.tsx |
Updated Props interface to remove BN type from value property; value now accepts number , string , null , or undefined . Default value for unit set to an empty string. |
packages/extension-polkagate/src/fullscreen/stake/type.ts |
Changed extraInfo property type from Record<string, unknown> to Record<string, any> in StakingInputs interface. |
packages/extension-polkagate/src/util/utils.ts |
Modified decodeHexValues function: changed objAsRecord type to Record<string, any> and added conditional logic for handling x1 property. |
packages/extension-polkagate/src/util/workers/getAssetOnAssetHub.js |
Enhanced error handling in getAssets and getAssetOnAssetHub functions, including retry logic for asset fetching and improved error logging. |
package.json
file, particularly upgrading multiple @polkadot
packages, which may relate to the enhancements in governance transaction support and foreign assets in PR #1577.commify
prop in the FormatPrice
component in the main PR aligns with the changes in PR #1641, which also focuses on enhancing price formatting, including the handling of small decimals.withSmallDecimal
prop in the FormatPrice
component in the main PR directly relates to the changes in PR #1653, which also adds functionality for displaying prices with small decimals.change requested
🐰 In the garden where code does bloom,
Dependencies upgraded, dispelling the gloom.
FromBN
we part, tonumber
we sway,
With clearer logs, we fetch without fray.
So hop along, let’s celebrate this cheer,
For better code is what we hold dear! 🌼✨
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