5afe / safe-core-sdk-demo

Account Abstraction with Safe{Core} SDK
https://safe-account-abstraction-demo.netlify.app/
GNU General Public License v3.0
35 stars 24 forks source link

feat: ERC20 token support #36

Closed tmjssz closed 9 months ago

tmjssz commented 9 months ago

What it solves

Resolves #6

Added a new prop supportedErc20Tokens to the chains config which defines the ERC20 token contract addresses that should be supported to send transactions with. The Safe info section shows a token selector with the respective balances and the selected token will be used by the Relay Kit demo.

Note: I didn't add the USDC contract addresses to Görli and Mumbai because it's not supported by Gelato in those networks, unfortunately. Instead, I added the addresses for WETH (Görli) and WMATIC (Mumbai) as they are the only supported ERC20 tokens.

Due to missing funds on main nets, I was not able to test in any network other than Görli and Mumbai yet.

Screenshot 2023-11-10 at 19 01 18 Screenshot 2023-11-10 at 19 12 15