From 9255ce06f9a3e548cd49774a83a4cd53e412e510 Mon Sep 17 00:00:00 2001 From: Ilias Trichopoulos Date: Mon, 23 Dec 2024 13:12:10 +0100 Subject: [PATCH 1/4] Add Thai Baht currency --- packages/shared/src/currencies.ts | 5 +++++ packages/shared/src/types/currencies.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/shared/src/currencies.ts b/packages/shared/src/currencies.ts index f1236a3c4..ababdb910 100644 --- a/packages/shared/src/currencies.ts +++ b/packages/shared/src/currencies.ts @@ -56,5 +56,10 @@ export const CURRENCIES: Record = { name: 'Australian Dollar', ticker: 'AUD', symbol: 'A$' + }, + THB: { + name: 'Thai Baht', + ticker: 'THB', + symbol: '฿' } } diff --git a/packages/shared/src/types/currencies.ts b/packages/shared/src/types/currencies.ts index 7cbc401aa..395d703f5 100644 --- a/packages/shared/src/types/currencies.ts +++ b/packages/shared/src/types/currencies.ts @@ -1 +1 @@ -export type Currency = 'CHF' | 'IDR' | 'GBP' | 'EUR' | 'USD' | 'VND' | 'RUB' | 'TRY' | 'CAD' | 'AUD' +export type Currency = 'CHF' | 'IDR' | 'GBP' | 'EUR' | 'USD' | 'VND' | 'RUB' | 'TRY' | 'CAD' | 'AUD' | 'THB' From ca98ff9263a16d776e16f865c5a18a5b557d232f Mon Sep 17 00:00:00 2001 From: Ilias Trichopoulos Date: Fri, 17 Jan 2025 16:21:17 +0800 Subject: [PATCH 2/4] Add Hong Kong Dollar --- packages/shared/src/currencies.ts | 5 +++++ packages/shared/src/types/currencies.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/shared/src/currencies.ts b/packages/shared/src/currencies.ts index ababdb910..b214a11e8 100644 --- a/packages/shared/src/currencies.ts +++ b/packages/shared/src/currencies.ts @@ -61,5 +61,10 @@ export const CURRENCIES: Record = { name: 'Thai Baht', ticker: 'THB', symbol: '฿' + }, + HKD: { + name: 'Hong Kong Dollar', + ticker: 'HKD', + symbol: 'HK$' } } diff --git a/packages/shared/src/types/currencies.ts b/packages/shared/src/types/currencies.ts index 395d703f5..e4f65a528 100644 --- a/packages/shared/src/types/currencies.ts +++ b/packages/shared/src/types/currencies.ts @@ -1 +1 @@ -export type Currency = 'CHF' | 'IDR' | 'GBP' | 'EUR' | 'USD' | 'VND' | 'RUB' | 'TRY' | 'CAD' | 'AUD' | 'THB' +export type Currency = 'CHF' | 'IDR' | 'GBP' | 'EUR' | 'USD' | 'VND' | 'RUB' | 'TRY' | 'CAD' | 'AUD' | 'THB' | 'HKD' From f5379700d235118938a6d5ab0612dd1e9b4a347b Mon Sep 17 00:00:00 2001 From: Ilias Trichopoulos Date: Fri, 17 Jan 2025 16:21:26 +0800 Subject: [PATCH 3/4] Fix display of CHF --- packages/shared/src/currencies.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/shared/src/currencies.ts b/packages/shared/src/currencies.ts index b214a11e8..e8a7ce29e 100644 --- a/packages/shared/src/currencies.ts +++ b/packages/shared/src/currencies.ts @@ -8,9 +8,9 @@ type CurrencyData = { export const CURRENCIES: Record = { CHF: { - name: 'Swiss francs', + name: 'Swiss Franc', ticker: 'CHF', - symbol: 'CHF' + symbol: 'Fr.' }, EUR: { name: 'Euro', From 89ae79390c3747c77b0dc0a5a6312abf9b95204c Mon Sep 17 00:00:00 2001 From: Ilias Trichopoulos Date: Mon, 27 Jan 2025 11:19:30 +0700 Subject: [PATCH 4/4] Add changesets --- .changeset/calm-hairs-rescue.md | 5 +++++ .changeset/eighty-squids-drive.md | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/calm-hairs-rescue.md create mode 100644 .changeset/eighty-squids-drive.md diff --git a/.changeset/calm-hairs-rescue.md b/.changeset/calm-hairs-rescue.md new file mode 100644 index 000000000..739ff737f --- /dev/null +++ b/.changeset/calm-hairs-rescue.md @@ -0,0 +1,5 @@ +--- +"@alephium/mobile-wallet": patch +--- + +Enable Thai Baht (THB) and Hong Kong Dollar (HKD) fiat currencies diff --git a/.changeset/eighty-squids-drive.md b/.changeset/eighty-squids-drive.md new file mode 100644 index 000000000..ba157ebc2 --- /dev/null +++ b/.changeset/eighty-squids-drive.md @@ -0,0 +1,5 @@ +--- +"alephium-desktop-wallet": patch +--- + +Enable Thai Baht (THB) and Hong Kong Dollar (HKD) fiat currencies