Upgrade Your Widget
Last updated
Last updated
This guide will help you migrate your existing widget integration to Squid v2.0.
After migrating explore upgrading your widget's style with the .
Squid v2.0 is a completely new version of the widget, designed to be more flexible and customizable.
If you're coming from Squid V1, you'll need to make some changes to your code to migrate to Squid v2.0 and the v3 widget.
To upgrade to the newest version of the widget update to 3.0.10
Squid v2.0 uses Wagmi v2 and ethers v6. Make sure to upgrade to these versions if you have these packages as a part of your project:
Learn more about the
defaultTokens
has been renamed to defaultTokensPerChain
initialFromChainId
and initialToChainId
are now defined in the initialAssets
object
The API URL is now https://apiplus.squidrouter.com
.
So, if you had something like this:
You'll need to change it to this:
The new Squid widget comes with a new theming system to better match your brand.
The style
property has been removed in favor of theme
The themeType
property has been added
These properties have been removed from the widget config:
enableGetGasOnDestination
(Will be added back in the future)
companyName
titles
enableExpress
mainLogoUrl
internalSameChainSwapAllowed
advanced.disableTradeLimit
advanced.shareOnTwitter
favTokens
comingSoonChainIds
showOnRampLink
onChainQuoting
environment
infiniteApproval
degenMode
If you're coming from the old Squid v2.0 widget, you'll need to make some changes to your code to migrate to the new one.
The API URL is now https://apiplus.squidrouter.com
.
Squid v2.0 comes with a new theming system to better match your brand.
The style
property has been removed in favor of theme
The themeType
property has been added
Visit our new widget studio to create your theme.
These properties have been removed from the widget config:
enableGetGasOnDestination
(Will be added back in the future)
companyName
titles
enableExpress
mainLogoUrl
internalSameChainSwapAllowed
advanced.disableTradeLimit
advanced.shareOnTwitter
favTokens
comingSoonChainIds
showOnRampLink
onChainQuoting
environment
infiniteApproval
degenMode
Visit our new to create your theme.