diff --git a/.changeset/fifty-pears-mix.md b/.changeset/fifty-pears-mix.md new file mode 100644 index 0000000..c688e3f --- /dev/null +++ b/.changeset/fifty-pears-mix.md @@ -0,0 +1,5 @@ +--- +"@skip-router/core": minor +--- + +Add evm_swaps to smart_swap_options diff --git a/packages/core/src/types/converters.ts b/packages/core/src/types/converters.ts index 6c7f70d..6c6ed67 100644 --- a/packages/core/src/types/converters.ts +++ b/packages/core/src/types/converters.ts @@ -2277,6 +2277,7 @@ export function smartSwapOptionsFromJSON( ): SmartSwapOptions { return { splitRoutes: smartSwapOptionsJSON.split_routes, + evmSwaps: smartSwapOptionsJSON.evm_swaps, }; } @@ -2285,6 +2286,7 @@ export function smartSwapOptionsToJSON( ): SmartSwapOptionsJSON { return { split_routes: smartSwapOptions.splitRoutes, + evm_swaps: smartSwapOptions.evmSwaps, }; } diff --git a/packages/core/src/types/shared.ts b/packages/core/src/types/shared.ts index e5cc1df..57d3bc9 100644 --- a/packages/core/src/types/shared.ts +++ b/packages/core/src/types/shared.ts @@ -506,8 +506,10 @@ export type OriginAssetsResponse = { export type SmartSwapOptionsJSON = { split_routes: boolean; + evm_swaps: boolean; }; export type SmartSwapOptions = { splitRoutes: boolean; + evmSwaps: boolean; };