Closed DNR500 closed 1 month ago
Hey! This is your new endopint: https://b7cae349.widget-settingsev.pages.dev
Hey! This is your new endopint: https://d3f5bd09.widget-settingsev.pages.dev
Hey! This is your new endopint: https://e0759c6b.widget-settingsev.pages.dev
Hey! This is your new endopint: https://c05b5e54.widget-settingsev.pages.dev
Jira: LF-10342
This PR as the settingUpdate event - this event will fire whenever the settings in the Widget are changed
Testing
Note: for testing I have been cherry-picking the addition of the WidgetEventsControl from the https://github.com/lifinance/widget/pull/309. its in this one commit. Once that PR is merged those changes will be available here as well
To test using the WidgetEventsControl
Using the event
To add a listener
The payload for the event will look like this...
The above is for the slippage setting but each of the settings will emit an event when changed. This should cover - appearance, gasPrice, language, routePriority, enabledAutoRefuel, slippage, disabledBridges, enabledBridges, _enabledBridges, disabledExchanges, enabledExchanges and _enabledExchanges