Skip to content

Commit

Permalink
Graph currency improvement and bump android/ios 1.0.5 (25) (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-wallet authored Jan 14, 2025
1 parent ff941ff commit 668bb39
Show file tree
Hide file tree
Showing 9 changed files with 257 additions and 375 deletions.
46 changes: 46 additions & 0 deletions packages/fetch-extension/src/config.ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,321 +42,367 @@ export const FiatCurrencies: FiatCurrency[] = [
{
currency: "usd",
symbol: "$",
symbolName: "$",
maxDecimals: 2,
locale: "en-US",
name: "United States Dollar",
},
{
currency: "aed",
symbol: "د.إ",
symbolName: "AED",
maxDecimals: 2,
locale: "ar-AE",
name: "United Arab Emirates Dirham",
},
{
currency: "ars",
symbol: "$",
symbolName: "ARS",
maxDecimals: 2,
locale: "es-AR",
name: "Argentine Peso",
},
{
currency: "aud",
symbol: "AU$",
symbolName: "AU$",
maxDecimals: 2,
locale: "en-AU",
name: "Australian Dollar",
},
{
currency: "bdt",
symbol: "৳",
symbolName: "BDT",
maxDecimals: 2,
locale: "bn-BD",
name: "Bangladeshi Taka",
},
{
currency: "bhd",
symbol: ".د.ب",
symbolName: "BHD",
maxDecimals: 3,
locale: "ar-BH",
name: "Bahraini Dinar",
},
{
currency: "bmd",
symbol: "BD$",
symbolName: "BD$",
maxDecimals: 2,
locale: "en-BM",
name: "Bermudian Dollar",
},
{
currency: "brl",
symbol: "R$",
symbolName: "R$",
maxDecimals: 2,
locale: "pt-BR",
name: "Brazilian Real",
},
{
currency: "cad",
symbol: "CA$",
symbolName: "CA$",
maxDecimals: 2,
locale: "en-CA",
name: "Canadian Dollar",
},
{
currency: "chf",
symbol: "CHF",
symbolName: "CHF",
maxDecimals: 2,
locale: "de-CH",
name: "Swiss Franc",
},
{
currency: "clp",
symbol: "$",
symbolName: "CLP",
maxDecimals: 2,
locale: "es-CL",
name: "Chilean Peso",
},
{
currency: "cny",
symbol: "¥",
symbolName: "CN¥",
maxDecimals: 1,
locale: "zh-CN",
name: "Chinese Yuan",
},
{
currency: "czk",
symbol: "Kč",
symbolName: "CZK",
maxDecimals: 2,
locale: "cs-CZ",
name: "Czech Koruna",
},
{
currency: "dkk",
symbol: "kr",
symbolName: "DKK",
maxDecimals: 2,
locale: "da-DK",
name: "Danish Krone",
},
{
currency: "eur",
symbol: "€",
symbolName: "€",
maxDecimals: 2,
locale: "en-IE",
name: "Euro",
},
{
currency: "gbp",
symbol: "£",
symbolName: "£",
maxDecimals: 2,
locale: "en-GB",
name: "British Pound Sterling",
},
{
currency: "gel",
symbol: "₾",
symbolName: "GEL",
maxDecimals: 2,
locale: "ka-GE",
name: "Georgian Lari",
},
{
currency: "hkd",
symbol: "HK$",
symbolName: "HK$",
maxDecimals: 1,
locale: "en-HK",
name: "Hong Kong Dollar",
},
{
currency: "huf",
symbol: "Ft",
symbolName: "HUF",
maxDecimals: 2,
locale: "hu-HU",
name: "Hungarian Forint",
},
{
currency: "idr",
symbol: "Rp",
symbolName: "IDR",
maxDecimals: 2,
locale: "id-ID",
name: "Indonesian Rupiah",
},
{
currency: "ils",
symbol: "₪",
symbolName: "₪",
maxDecimals: 2,
locale: "he-IL",
name: "Israeli New Shekel",
},
{
currency: "inr",
symbol: "₹",
symbolName: "₹",
maxDecimals: 1,
locale: "en-IN",
name: "Indian Rupee",
},
{
currency: "jpy",
symbol: "¥",
symbolName: "¥",
maxDecimals: 2,
locale: "ja-JP",
name: "Japanese Yen",
},
{
currency: "krw",
symbol: "₩",
symbolName: "₩",
maxDecimals: 2,
locale: "ko-KR",
name: "South Korean Won",
},
{
currency: "kwd",
symbol: "د.ك",
symbolName: "KWD",
maxDecimals: 3,
locale: "ar-KW",
name: "Kuwaiti Dinar",
},
{
currency: "lkr",
symbol: "Rs",
symbolName: "LKR",
maxDecimals: 2,
locale: "si-LK",
name: "Sri Lankan Rupee",
},
{
currency: "mmk",
symbol: "K",
symbolName: "MMK",
maxDecimals: 0,
locale: "my-MM",
name: "Myanmar Kyat",
},
{
currency: "mxn",
symbol: "MX$",
symbolName: "MX$",
maxDecimals: 2,
locale: "es-MX",
name: "Mexican Peso",
},
{
currency: "myr",
symbol: "RM",
symbolName: "RM",
maxDecimals: 2,
locale: "ms-MY",
name: "Malaysian Ringgit",
},
{
currency: "ngn",
symbol: "₦",
symbolName: "NGN",
maxDecimals: 2,
locale: "en-NG",
name: "Nigerian Naira",
},
{
currency: "nok",
symbol: "kr",
symbolName: "NOK",
maxDecimals: 2,
locale: "nb-NO",
name: "Norwegian Krone",
},
{
currency: "nzd",
symbol: "NZ$",
symbolName: "NZ$",
maxDecimals: 2,
locale: "en-NZ",
name: "New Zealand Dollar",
},
{
currency: "php",
symbol: "₱",
symbolName: "₱",
maxDecimals: 2,
locale: "en-PH",
name: "Philippine Peso",
},
{
currency: "pkr",
symbol: "₨",
symbolName: "PKR",
maxDecimals: 2,
locale: "en-PK",
name: "Pakistani Rupee",
},
{
currency: "pln",
symbol: "zł",
symbolName: "PLN",
maxDecimals: 2,
locale: "pl-PL",
name: "Polish Zloty",
},
{
currency: "rub",
symbol: "₽",
symbolName: "RUB",
maxDecimals: 2,
locale: "ru-RU",
name: "Russian Ruble",
},
{
currency: "sar",
symbol: "ر.س",
symbolName: "SAR",
maxDecimals: 2,
locale: "ar-SA",
name: "Saudi Riyal",
},
{
currency: "sek",
symbol: "kr",
symbolName: "SEK",
maxDecimals: 2,
locale: "sv-SE",
name: "Swedish Krona",
},
{
currency: "sgd",
symbol: "S$",
symbolName: "S$",
maxDecimals: 2,
locale: "en-SG",
name: "Singapore Dollar",
},
{
currency: "thb",
symbol: "฿",
symbolName: "THB",
maxDecimals: 2,
locale: "th-TH",
name: "Thai Baht",
},
{
currency: "try",
symbol: "₺",
symbolName: "TRY",
maxDecimals: 2,
locale: "tr-TR",
name: "Turkish Lira",
},
{
currency: "twd",
symbol: "NT$",
symbolName: "NT$",
maxDecimals: 2,
locale: "zh-TW",
name: "New Taiwan Dollar",
},
{
currency: "uah",
symbol: "₴",
symbolName: "UAH",
maxDecimals: 2,
locale: "uk-UA",
name: "Ukrainian Hryvnia",
},
{
currency: "vef",
symbol: "Bs",
symbolName: "VEF",
maxDecimals: 2,
locale: "es-VE",
name: "Venezuelan Bolívar",
},
{
currency: "vnd",
symbol: "₫",
symbolName: "VND",
maxDecimals: 2,
locale: "vi-VN",
name: "Vietnamese Dong",
},
{
currency: "zar",
symbol: "R",
symbolName: "ZAR",
maxDecimals: 2,
locale: "en-ZA",
name: "South African Rand",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const Balances: React.FC<Props> = observer(({ tokenState }) => {
style["changeInDollars"] + " " + changeInDollarsClass
}
>
{priceStore.getFiatCurrency(fiatCurrency)?.symbolName}{" "}
{changeInDollarsValue.toFixed(4)} {totalDenom}
</div>
<div className={style["changeInPer"]}>
Expand Down Expand Up @@ -184,7 +185,8 @@ export const Balances: React.FC<Props> = observer(({ tokenState }) => {
style["changeInDollars"] + " " + changeInDollarsClass
}
>
{changeInDollarsValue.toFixed(4)} {fiatCurrency.toUpperCase()}
{priceStore.getFiatCurrency(fiatCurrency)?.symbolName}{" "}
{changeInDollarsValue.toFixed(4)}
</div>
<div className={style["changeInPer"]}>
({tokenState.type === "positive" ? "+" : "-"}
Expand Down
4 changes: 2 additions & 2 deletions packages/mobile/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ android {
applicationId "com.fetchai.wallet"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 24
versionName "1.0.4"
versionCode 25
versionName "1.0.5"

missingDimensionStrategy 'react-native-camera', 'general'
}
Expand Down
Loading

0 comments on commit 668bb39

Please sign in to comment.