From f7734551a5019bc98738a995a15a734e7acd5a0a Mon Sep 17 00:00:00 2001 From: Samy RABAH-MONTAROU Date: Mon, 6 Jan 2025 09:33:09 +0100 Subject: [PATCH 1/4] mev protected option added to server config + doc --- .../docs/discover/wallet-api/server/wallet-api-server/index.mdx | 1 + packages/server/src/types.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/docs/pages/docs/discover/wallet-api/server/wallet-api-server/index.mdx b/apps/docs/pages/docs/discover/wallet-api/server/wallet-api-server/index.mdx index 3cf2d988..c3bbf1a8 100644 --- a/apps/docs/pages/docs/discover/wallet-api/server/wallet-api-server/index.mdx +++ b/apps/docs/pages/docs/discover/wallet-api/server/wallet-api-server/index.mdx @@ -170,6 +170,7 @@ ServerConfig = { name: string; version: string; }; + mevProtected: boolean; // whether the user opted in for MEV protection }; ``` diff --git a/packages/server/src/types.ts b/packages/server/src/types.ts index 292f4633..460b3c4b 100644 --- a/packages/server/src/types.ts +++ b/packages/server/src/types.ts @@ -148,6 +148,7 @@ export type ServerConfig = { tracking: boolean; wallet: WalletInfo; appId: string; + mevProtected?: boolean; }; export type CustomHandlers = Record< From ca14546b6ab0944007a4a93fbf77376599fc5749 Mon Sep 17 00:00:00 2001 From: Samy RABAH-MONTAROU Date: Mon, 6 Jan 2025 09:34:00 +0100 Subject: [PATCH 2/4] changeset --- .changeset/cyan-frogs-judge.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/cyan-frogs-judge.md diff --git a/.changeset/cyan-frogs-judge.md b/.changeset/cyan-frogs-judge.md new file mode 100644 index 00000000..b63eddc3 --- /dev/null +++ b/.changeset/cyan-frogs-judge.md @@ -0,0 +1,6 @@ +--- +"@ledgerhq/wallet-api-server": patch +"@ledgerhq/wallet-api-docs": patch +--- + +feat: mevProtected boolean added to server config object From 0d71f1c1efd2627ab53dbec0f640567ba6d72968 Mon Sep 17 00:00:00 2001 From: Samy RABAH-MONTAROU Date: Tue, 7 Jan 2025 11:54:55 +0100 Subject: [PATCH 3/4] mevProtected optional to be backwar compatible, reflected in doc --- .../docs/discover/wallet-api/server/wallet-api-server/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/docs/pages/docs/discover/wallet-api/server/wallet-api-server/index.mdx b/apps/docs/pages/docs/discover/wallet-api/server/wallet-api-server/index.mdx index c3bbf1a8..15bb7374 100644 --- a/apps/docs/pages/docs/discover/wallet-api/server/wallet-api-server/index.mdx +++ b/apps/docs/pages/docs/discover/wallet-api/server/wallet-api-server/index.mdx @@ -170,7 +170,7 @@ ServerConfig = { name: string; version: string; }; - mevProtected: boolean; // whether the user opted in for MEV protection + mevProtected?: boolean; // whether the user opted in for MEV protection }; ``` From 4dd6c3607f5309497ea9d6fad0367a13c8c2f5b9 Mon Sep 17 00:00:00 2001 From: Samy Rabah Date: Tue, 7 Jan 2025 14:53:22 +0100 Subject: [PATCH 4/4] Update .changeset/cyan-frogs-judge.md Co-authored-by: Quentin Jaccarino --- .changeset/cyan-frogs-judge.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.changeset/cyan-frogs-judge.md b/.changeset/cyan-frogs-judge.md index b63eddc3..489b8bee 100644 --- a/.changeset/cyan-frogs-judge.md +++ b/.changeset/cyan-frogs-judge.md @@ -1,6 +1,5 @@ --- -"@ledgerhq/wallet-api-server": patch -"@ledgerhq/wallet-api-docs": patch +"@ledgerhq/wallet-api-server": minor --- feat: mevProtected boolean added to server config object