Skip to content

Commit

Permalink
Add evm_swaps to smart_swap_options
Browse files Browse the repository at this point in the history
  • Loading branch information
wllmshao committed Jun 18, 2024
1 parent bd45294 commit 05630c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-pears-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@skip-router/core": minor
---

Add evm_swaps to smart_swap_options
2 changes: 2 additions & 0 deletions packages/core/src/types/converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2277,6 +2277,7 @@ export function smartSwapOptionsFromJSON(
): SmartSwapOptions {
return {
splitRoutes: smartSwapOptionsJSON.split_routes,
evmSwaps: smartSwapOptionsJSON.evm_swaps,
};
}

Expand All @@ -2285,6 +2286,7 @@ export function smartSwapOptionsToJSON(
): SmartSwapOptionsJSON {
return {
split_routes: smartSwapOptions.splitRoutes,
evm_swaps: smartSwapOptions.evmSwaps,
};
}

Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/types/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,10 @@ export type OriginAssetsResponse = {

export type SmartSwapOptionsJSON = {
split_routes: boolean;
evm_swaps: boolean;
};

export type SmartSwapOptions = {
splitRoutes: boolean;
evmSwaps: boolean;
};

0 comments on commit 05630c1

Please sign in to comment.