Skip to content

Feature/hierarchical-native-script-support#206

Open
Andre-Diamond wants to merge 8 commits intomainfrom
feature/hierarchical-native-script-support
Open

Feature/hierarchical-native-script-support#206
Andre-Diamond wants to merge 8 commits intomainfrom
feature/hierarchical-native-script-support

Conversation

@Andre-Diamond
Copy link
Collaborator

  • Replaced hardcoded deposit values with constants from protocol-deposit-constants for DRep deregistration in offchain.ts and retire.tsx.
  • Updated transaction handling logic in useTransaction to account for DRep deposit adjustments.
  • Refactored getTxBuilder to use the new deposit constant for staking.
  • Removed the deprecated staking-constants.ts file to streamline codebase and improve maintainability.
  • Added support for hierarchical scripts

- Added `getCanonicalWalletAddress` function to standardize wallet address retrieval based on wallet type in `useWalletBalances.ts`.
- Refactored balance fetching logic to utilize the new canonical address function.
- Improved error handling for multisig wallet construction in the API endpoint, falling back to decoding stored CBOR for imported wallets.
- Introduced native script utilities in `nativeScriptUtils.ts` for decoding, converting, and analyzing native scripts.
- Added comprehensive tests for the new native script utilities, covering various scenarios including hierarchical and deeply nested scripts.
- Updated `common.ts` to leverage new native script utilities for wallet construction.
- Cleaned up unused code and improved overall structure for better maintainability.
…osit handling

- Introduced a new `buildStakingActionConfigs` function to streamline staking action configurations.
- Refactored the `StakeButton` component to utilize the new action configuration system, improving code clarity and maintainability.
- Implemented logic to handle stake key deposits dynamically based on the selected staking action.
- Enhanced transaction signing logic in `useTransaction` to account for stake key deposit adjustments.
- Updated `getTxBuilder` to explicitly provide stake key deposit parameters for deterministic transaction behavior.
- Improved proxy merging logic to combine API proxies with store-enriched data, ensuring accurate representation of available proxies.
- Updated transaction creation process to handle Discord notifications with error handling, ensuring that transaction success is not dependent on notification delivery.
- Refactored signer description rendering in transaction cards for better readability and maintainability.
- Enhanced wallet access control logic to support multiple requester addresses, improving security and flexibility.
- Updated type annotations in ProxyDataLoader, ProxyControl, and ProxyTransferStep components to ensure better type safety and prevent potential runtime errors.
- Enhanced error handling in useWalletBalances to gracefully manage 404 errors, improving user experience for unused addresses.
- Refactored wallet balance fetching logic to utilize canonical addresses, ensuring consistency across wallet types.
- Introduced utility functions for better management of payment signature scripts and native script handling in common and nativeScriptUtils modules.
- Introduced useMemo for stable wallet arrays in balance fetching to prevent unnecessary re-renders.
- Enhanced useUserWallets to utilize useMemo for mapping wallets, improving performance and readability.
- Updated useWalletBalances to ensure cleanup of in-flight processing on unmount, enhancing resource management.
- Improved error handling for wallet address mismatches in payment scripts, ensuring consistency across wallet types.
- Replaced hardcoded deposit values with constants from `protocol-deposit-constants` for DRep deregistration in `offchain.ts` and `retire.tsx`.
- Updated transaction handling logic in `useTransaction` to account for DRep deposit adjustments.
- Refactored `getTxBuilder` to use the new deposit constant for staking.
- Removed the deprecated `staking-constants.ts` file to streamline codebase and improve maintainability.
@vercel
Copy link

vercel bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
multisig Ready Ready Preview, Comment Feb 19, 2026 10:09am

Request Review

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.

1 participant

Comments