Context
Currently, the user must implement a custom signer interface to connect Freighter to the SDK. Since Freighter is the most popular wallet on Stellar, we should provide a first-party connector.
Requirements
- Add a
FreighterConnector class implementing IWalletConnector.
- It should handle
signTransaction and signAuthEntry.
- Automatically detect if
window.freighter is available and throw a specific WalletNotInstalledError if not.
Context
Currently, the user must implement a custom signer interface to connect Freighter to the SDK. Since Freighter is the most popular wallet on Stellar, we should provide a first-party connector.
Requirements
FreighterConnectorclass implementingIWalletConnector.signTransactionandsignAuthEntry.window.freighteris available and throw a specificWalletNotInstalledErrorif not.