Skip to content

Commit

Permalink
Feat/mev protection (#418)
Browse files Browse the repository at this point in the history
* mev protected option added to server config + doc

* changeset

* mevProtected optional to be backwar compatible, reflected in doc

* Update .changeset/cyan-frogs-judge.md

Co-authored-by: Quentin Jaccarino <[email protected]>

---------

Co-authored-by: Quentin Jaccarino <[email protected]>
  • Loading branch information
Wozacosta and Justkant authored Jan 7, 2025
1 parent b167aca commit 808985d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-frogs-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/wallet-api-server": minor
---

feat: mevProtected boolean added to server config object
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ ServerConfig = {
name: string;
version: string;
};
mevProtected?: boolean; // whether the user opted in for MEV protection
};
```

Expand Down
1 change: 1 addition & 0 deletions packages/server/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export type ServerConfig = {
tracking: boolean;
wallet: WalletInfo;
appId: string;
mevProtected?: boolean;
};

export type CustomHandlers = Record<
Expand Down

0 comments on commit 808985d

Please sign in to comment.