mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-07-27 06:55:00 +00:00
- protocol-kit ^5.2.26 → ^7.1.0 - types-kit ^1.0.5 → ^3.1.0 - api-kit ^2.4.6 → ^4.1.0 - safe-deployments ^1.37.53 → ^1.37.54 - safe-modules-deployments ^3.0.1 → ^3.0.2 - safe-apps-provider ^0.18.5 → ^0.18.6 Replace all 103 deep imports from protocol-kit/dist/ with: - Public API imports for newly-exported symbols - ethers ZeroAddress for ZERO_ADDRESS (40 files) - Local constants for EMPTY_DATA, SENTINEL_ADDRESS - Inlined getSimulateTxAccessorContract using safe-deployments - Temporary re-implementations for generatePreValidatedSignature, adjustVInSignature, calculateSafeTransactionHash, SAFE_FEATURES, hasSafeFeature (pending SDK PR to export these publicly) Co-authored-by: Hanzo Dev <dev@hanzo.ai> chore: replace temporary SDK shims with direct protocol-kit imports Now that safe-global/safe-core-sdk#1326 exports generatePreValidatedSignature, adjustVInSignature, calculateSafeTransactionHash, SAFE_FEATURES, and hasSafeFeature from the public API, delete the temporary local re-implementations and update all 22 import sites to use @safe-global/protocol-kit directly. Co-authored-by: Hanzo Dev <dev@hanzo.ai> chore: consume networks from protocol-kit instead of local copy Remove the 539-entry local eip-3770-networks.ts copy and import `networks` directly from @safe-global/protocol-kit, which now exports it as part of its public API (safe-global/safe-core-sdk#1326). Co-authored-by: Hanzo Dev <dev@hanzo.ai> chore: align with updated protocol-kit exports Adopt API changes from safe-global/safe-core-sdk#1326: - Rename SAFE_FEATURES → SafeFeature (enum rename) - Replace networks array iteration with EIP-3770 lookup functions - Add getEip3770ShortName / getEip3770ChainId helpers to utils/chains.ts so components don't inline the try/catch pattern themselves - Back the chains shortName↔chainId dict with a Proxy that delegates to getChainIdFromEip3770NetworkPrefix Co-authored-by: Hanzo Dev <dev@hanzo.ai> refactor: use @safe-global/utils/config/chains instead of local duplicate Replace the local apps/web/src/config/chains.ts (which was identical to packages/utils/src/config/chains.ts) with imports from the shared package. Co-authored-by: Hanzo Dev <dev@hanzo.ai> fix: update remaining relative import of deleted chains.ts Co-authored-by: Hanzo Dev <dev@hanzo.ai> fix: yarn chore: update protocol-kit fix: failing tests fix: tests