Skip to content

Commit

Permalink
Add missing exchange type for new app-exchange (#277)
Browse files Browse the repository at this point in the history
* add missing exchange type for new app-exchange

Signed-off-by: Stéphane Prohaszka <[email protected]>

* reformat enum

Signed-off-by: Stéphane Prohaszka <[email protected]>

* add changeset

Signed-off-by: Stéphane Prohaszka <[email protected]>

---------

Signed-off-by: Stéphane Prohaszka <[email protected]>
  • Loading branch information
sprohaszka-ledger authored Dec 8, 2023
1 parent 9e61950 commit 51b9152
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/great-weeks-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/wallet-api-core": minor
---

add start exchange ng
9 changes: 8 additions & 1 deletion packages/core/src/spec/types/ExchangeStart.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { z } from "zod";

const schemaExchangeType = z.enum(["SWAP", "SELL", "FUND"]);
const schemaExchangeType = z.enum([
"SWAP",
"SELL",
"FUND",
"SWAP_NG",
"SELL_NG",
"FUND_NG",
]);

const schemaExchangeStartParams = z.object({
exchangeType: schemaExchangeType,
Expand Down

2 comments on commit 51b9152

@vercel
Copy link

@vercel vercel bot commented on 51b9152 Dec 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wallet-api – ./apps/docs

wallet-api-git-main-ledgerhq.vercel.app
wallet-api-ledgerhq.vercel.app
wallet.api.live.ledger.com

@vercel
Copy link

@vercel vercel bot commented on 51b9152 Dec 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wallet-api-wallet-api-tools – ./apps/wallet-api-tools

wallet-api-wallet-api-tools-ledgerhq.vercel.app
wallet-api-wallet-api-tools.vercel.app
wallet-api-wallet-api-tools-git-main-ledgerhq.vercel.app

Please sign in to comment.