Skip to content

Commit 808985d

Browse files
WozacostaJustkant
andauthored
Feat/mev protection (#418)
* 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]>
1 parent b167aca commit 808985d

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.changeset/cyan-frogs-judge.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ledgerhq/wallet-api-server": minor
3+
---
4+
5+
feat: mevProtected boolean added to server config object

apps/docs/pages/docs/discover/wallet-api/server/wallet-api-server/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ ServerConfig = {
170170
name: string;
171171
version: string;
172172
};
173+
mevProtected?: boolean; // whether the user opted in for MEV protection
173174
};
174175
```
175176

packages/server/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export type ServerConfig = {
148148
tracking: boolean;
149149
wallet: WalletInfo;
150150
appId: string;
151+
mevProtected?: boolean;
151152
};
152153

153154
export type CustomHandlers = Record<

0 commit comments

Comments
 (0)