Closed Nick-1979 closed 3 weeks ago
The updates introduce a new ReservedReasons
component to the extension-polkagate
package, which displays account balance reserved reasons. The component fetches and presents account details, including reserved balances. Additionally, the isOnRelayChain
function was refactored for more accurate chain identification using genesisHash
instead of chainName
.
File Path | Change Summary |
---|---|
.../extension-polkagate/src/popup/account/ReservedReasons.tsx |
Added ReservedReasons component to display account reserved reasons. |
.../extension-polkagate/src/popup/account/index.tsx |
Integrated ReservedReasons component and related state management. |
.../extension-polkagate/src/fullscreen/accountDetails/index.tsx |
Refactored isOnRelayChain check to use genesisHash and imported from utils . |
.../extension-polkagate/src/util/utils.ts |
Added isOnRelayChain function using RELAY_CHAINS_GENESISHASH from constants. |
sequenceDiagram
participant User
participant Popup
participant ReservedReasons
participant Backend
User->>Popup: Click "Show Reserved Reasons"
Popup->>ReservedReasons: Render with props
ReservedReasons->>Backend: Fetch account details
Backend-->>ReservedReasons: Return account details
ReservedReasons-->>Popup: Display reserved reasons
Popup-->>User: Show reserved reasons
In the code where balance lies,
Reserved reasons now arise,
WithgenesisHash
we now align,
To check the chain, so true and fine.
PolkaGate's new feature bright,
Makes account details clear in sight.
🌟🐇✨
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?
closes #1358
Summary by CodeRabbit
New Features
Improvements
genesisHash
.Refactor
isOnRelayChain
function to a shared utility for better code reuse.