Files
d39ebd186b chore: bump Safe SDK packages to latest versions (#7617)
- 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)

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.

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).

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

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.

fix: update remaining relative import of deleted chains.ts

fix: yarn

chore: update protocol-kit

fix: failing tests

fix: tests

Co-authored-by: Hanzo Dev <[email protected]>
2026-04-17 13:31:19 +02:00

20 lines
411 B
JSON

{
"name": "@safe-global/test",
"version": "0.0.0",
"main": "index.ts",
"dependencies": {
"@faker-js/faker": "^9.2.0",
"@safe-global/store": "workspace:^",
"@safe-global/types-kit": "^3.1.0",
"ethers": "6.14.3",
"jest": "^29.7.0",
"msw": "^2.7.3",
"ts-jest": "29.2.5"
},
"devDependencies": {
"jest-transform-stub": "2.0.0"
},
"license": "MIT",
"private": true
}