Skip to content

Commit

Permalink
feat: Support buy option for polygon and binance #3141 #3142
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Dec 2, 2024
1 parent e4987a7 commit af45831
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 17 deletions.
7 changes: 5 additions & 2 deletions lib/dashboard/wert/cubit/wert_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ class WertCubit extends Cubit<String> {
case BlockchainType.ethereum:
link = '$link&commodities=ETH&commodity=ETH';
case BlockchainType.polygon:
link = '$link&commodities=MATIC&commodity=MATIC';
case BlockchainType.fantom:
link = '$link&commodity=POL&network=polygon'
'&commodity_id=pol.simple.polygon';
case BlockchainType.binance:
link = '$link&commodity=BNB&network=bsc'
'&commodity_id=bnb.simple.bsc';
case BlockchainType.fantom:
case BlockchainType.etherlink:
break;
}
Expand Down
8 changes: 4 additions & 4 deletions lib/dashboard/wert/view/wert_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ class _WertViewState extends State<WertView> {
body:
state.currentAccount!.blockchainType == BlockchainType.fantom ||
state.currentAccount!.blockchainType ==
BlockchainType.binance
BlockchainType.etherlink
? Center(
child: Text(
state.currentAccount!.blockchainType ==
BlockchainType.binance
? l10n.thisFeatureIsNotSupportedYetForBinance
: l10n.thisFeatureIsNotSupportedYetForFantom,
BlockchainType.fantom
? l10n.thisFeatureIsNotSupportedYetForFantom
: l10n.thisFeatureIsNotSupportedYetForEtherlink,
),
)
: WebViewWidget(controller: _controller),
Expand Down
3 changes: 1 addition & 2 deletions lib/l10n/arb/app_ca.arb
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,7 @@
"credentialsRequestedBy": "credencials demanades per",
"transactionIsLikelyToFail": "La transacció probablement fallarà.",
"buy": "Comprar",
"thisFeatureIsNotSupportedYetForFantom": "Aquesta funció encara no s'admet a Fantom.",
"thisFeatureIsNotSupportedYetForBinance": "Aquesta funció encara no s'admet a BNB Chain.",
"thisFeatureIsNotSupportedYetForFantom": "Aquesta funció encara no s'admet a Fantom.",
"faqs": "Preguntes freqüents",
"softwareLicenses": "Llicències de software",
"notAValidWalletAddress": "Adreça de cartera invàlida.",
Expand Down
4 changes: 2 additions & 2 deletions lib/l10n/arb/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,6 @@
"transactionIsLikelyToFail": "Transaction is likely to fail.",
"buy": "Buy coins",
"thisFeatureIsNotSupportedYetForFantom": "This feature is not supported yet for Fantom.",
"thisFeatureIsNotSupportedYetForBinance": "This feature is not supported yet for BNB Chain.",
"faqs": "Frequently Asked Questions (FAQs)",
"softwareLicenses": "Software Licenses",
"notAValidWalletAddress": "Not a valid wallet address!",
Expand Down Expand Up @@ -1162,5 +1161,6 @@
"credentialIssuanceIsStillPending": "Credential issuance is still pending",
"bakerFee": "Baker fee",
"storageFee": "Storage Fee",
"doYouWantToSetupTheProfile": "Do you want to setup the profile?"
"doYouWantToSetupTheProfile": "Do you want to setup the profile?",
"thisFeatureIsNotSupportedYetForEtherlink": "This feature is not supported yet for Etherlink Chain."
}
3 changes: 1 addition & 2 deletions lib/l10n/arb/app_es.arb
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,7 @@
"credentialsRequestedBy": "credenciales solicitadas por",
"transactionIsLikelyToFail": "Es probable que falle la transacción.",
"buy": "Comprar",
"thisFeatureIsNotSupportedYetForFantom": "Esta función no es compatible aún para Fantom.",
"thisFeatureIsNotSupportedYetForBinance": "Esta función no es compatible aún para BNB Chain.",
"thisFeatureIsNotSupportedYetForFantom": "Esta función no es compatible aún para Fantom.",
"faqs": "Preguntas frecuentes (P+F)",
"softwareLicenses": "Licencias de software",
"notAValidWalletAddress": "¡No es una dirección de cartera válida!",
Expand Down
3 changes: 1 addition & 2 deletions lib/l10n/arb/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,7 @@
"credentialsRequestedBy": "informations demandées par",
"transactionIsLikelyToFail": "La transaction est susceptible d'échouer.",
"buy": "Acheter",
"thisFeatureIsNotSupportedYetForFantom": "Cette fonctionnalité n'est pas encore prise en charge pour Fantom.",
"thisFeatureIsNotSupportedYetForBinance": "Cette fonctionnalité n'est pas encore prise en charge pour BNB Chain.",
"thisFeatureIsNotSupportedYetForFantom": "Cette fonctionnalité n'est pas encore prise en charge pour Fantom.",
"faqs": "FAQ",
"softwareLicenses": "Licences logicielles",
"notAValidWalletAddress": "L'adresse n'est pas valide !",
Expand Down
9 changes: 6 additions & 3 deletions lib/l10n/untranslated.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"payload",
"keyBindingHeader",
"keyBindingPayload",
"ebsiV4DecentralizedId"
"ebsiV4DecentralizedId",
"thisFeatureIsNotSupportedYetForEtherlink"
],

"es": [
Expand All @@ -18,7 +19,8 @@
"payload",
"keyBindingHeader",
"keyBindingPayload",
"ebsiV4DecentralizedId"
"ebsiV4DecentralizedId",
"thisFeatureIsNotSupportedYetForEtherlink"
],

"fr": [
Expand Down Expand Up @@ -106,6 +108,7 @@
"credentialIssuanceIsStillPending",
"bakerFee",
"storageFee",
"doYouWantToSetupTheProfile"
"doYouWantToSetupTheProfile",
"thisFeatureIsNotSupportedYetForEtherlink"
]
}

0 comments on commit af45831

Please sign in to comment.