diff --git a/android/app/build.gradle b/android/app/build.gradle index 13473ef..706776e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -95,7 +95,7 @@ android { applicationId "com.minibits_wallet" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 58070 + versionCode 58071 versionName "0.4.0" } diff --git a/package.json b/package.json index ebf087d..df95ae7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "minibits_wallet", - "version": "0.4.0-beta.5", + "version": "0.4.0-beta.6", "private": true, "scripts": { "android:clean": "cd android && ./gradlew clean", diff --git a/src/components/ChfIcon.tsx b/src/components/ChfIcon.tsx new file mode 100644 index 0000000..665366a --- /dev/null +++ b/src/components/ChfIcon.tsx @@ -0,0 +1 @@ +export const ChfIcon = ` ` \ No newline at end of file diff --git a/src/models/WalletStore.ts b/src/models/WalletStore.ts index 449ea15..971c06f 100644 --- a/src/models/WalletStore.ts +++ b/src/models/WalletStore.ts @@ -28,7 +28,7 @@ import { Proof } from './Proof' import { InFlightRequest, Mint } from './Mint' import { getRootStore } from './helpers/getRootStore' import { Transaction } from './Transaction' -// refresh refresh +// refresh /* Not persisted, in-memory only model of the cashu-ts wallet instances and wallet keys persisted in the device secure store. diff --git a/src/screens/DeveloperScreen.tsx b/src/screens/DeveloperScreen.tsx index df6f1cc..91591a0 100644 --- a/src/screens/DeveloperScreen.tsx +++ b/src/screens/DeveloperScreen.tsx @@ -34,7 +34,7 @@ import RNExitApp from 'react-native-exit-app' import { TransactionStatus } from '../models/Transaction' import { maxTransactionsInHistory } from '../models/TransactionsStore' import { StaticScreenProps, useNavigation } from '@react-navigation/native' -// refresh refresh +// refresh type Props = StaticScreenProps diff --git a/src/services/logService.ts b/src/services/logService.ts index 68a3dc9..ae08879 100644 --- a/src/services/logService.ts +++ b/src/services/logService.ts @@ -18,7 +18,7 @@ import { Platform } from "react-native" import AppError, { Err } from "../utils/AppError" const { userSettingsStore } = rootStoreInstance -// refresh refresh +// refresh if (!__DEV__) { Sentry.init({ diff --git a/src/services/wallet/currency.ts b/src/services/wallet/currency.ts index 2a721e7..62b6b66 100644 --- a/src/services/wallet/currency.ts +++ b/src/services/wallet/currency.ts @@ -2,6 +2,7 @@ import numbro from 'numbro' import { BtcIcon, EurIcon, UsdIcon, CadIcon, GbpIcon } from '../../components' import AppError, { Err } from '../../utils/AppError' import { ExchangeRate } from '../../models/WalletStore' +import { ChfIcon } from '../../components/ChfIcon' export type MintUnit = typeof MintUnits[number] @@ -11,7 +12,7 @@ export const MintUnits = ['btc', 'sat', 'msat', 'usd', 'eur'] as const export enum CurrencyCode { BTC = 'BTC', SAT = 'SAT', MSAT = 'MSAT', EUR = 'EUR', GBP = 'GBP', CZK = 'CZK', USD = 'USD', PLN = 'PLN', HUF = 'HUF', RON = 'RON', - CAD = 'CAD' + CAD = 'CAD', CHF = 'CHF', JPY = 'JPY', AUD = 'AUD', SEK = 'SEK', NOK = 'NOK', } export type MintUnitCurrencyPair = { @@ -19,7 +20,7 @@ export type MintUnitCurrencyPair = { } /** add any currency codes you want to allow the user to select as "reference currency" in the app settings, here: */ -export const availableExchangeCurrencies = [CurrencyCode.USD, CurrencyCode.EUR, CurrencyCode.CAD, CurrencyCode.GBP] as const; +export const availableExchangeCurrencies = [CurrencyCode.USD, CurrencyCode.EUR, CurrencyCode.CAD, CurrencyCode.GBP, CurrencyCode.CHF] as const; export const MintUnitCurrencyPairs: MintUnitCurrencyPair = { btc:CurrencyCode.BTC, sat:CurrencyCode.SAT, msat:CurrencyCode.MSAT, eur:CurrencyCode.EUR, usd:CurrencyCode.USD, @@ -127,6 +128,14 @@ export const Currencies: CurrencyList = { precision: 100, mantissa: 2, }, + CHF: { + symbol: 'CHF', + title: 'Swiss franc', + code: CurrencyCode.CHF, + icon: ChfIcon, + precision: 100, + mantissa: 2, + }, } as const