safe-global / safe-core-sdk

The Safe{Core} SDK allows builders to add account abstraction functionality into their apps.
https://docs.safe.global/sdk/overview
MIT License
243 stars 179 forks source link

Use AbiType to type CompatibilityFallbackHandler contract #725

Closed dasanra closed 3 months ago

dasanra commented 4 months ago

Context / issue

The current typing library is deprecated and this prevent us to update to Web3.js v4 or adding Viem as an adapter in the protocol-kit. Also it's way more complex than current solutions adding more complexity to the SDK maintenance.

https://github.com/safe-global/safe-core-sdk/issues/577

Proposed solution

Migrate CompatibilityFallbackHandler types for web3.js and ethers adapter based on the previous PR #604 .