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 178 forks source link

[EIP-1193] Research implementation #753

Closed dasanra closed 2 months ago

dasanra commented 3 months ago

Context / issue

We want to move away from specific EthAdapters. All major EthAdapters are compatible with EIP-1193, which specifies a standard for Javascript libraries that expose an Ethereum API. Having such standard it doesn't make sense that we mantain several libraries at the same time. This will enable us to unify the types we use in our SDK

Proposed solution

Research EIP-1193 and propose a draft implementation. It's important to verify that the current structure allows to integrate as a new provider. We also need to pay attention to the typing limitation.

The current research docs:

EIP-1193 provider can substitute adapters Current implementation

dasanra commented 2 months ago

This will be the selected implementation changes.