mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 11:39:22 +00:00
Cw 503 ledger support (#1310)
* CW-503 Prepare Ledger integration * CW-503 Revert Tor ignore * CW-503 Add Connect Device Page * CW-503 Add createWalletFromDevice for monero * CW-503 Add Connect Device Page * CW-503 Add Connect Device Page * CW-503 Add Debug Options * CW-503 Add proper hardware wallet selection screen * CW-503 Minor design changes on connect_device_page * CW-503 Add Create Wallet from Ledger * CW-503 Spent Ledger ETH Funds * CW-503 Minor fixes * CW-503 Fix Merge conflicts * CW-503 Fix Merge conflicts * CW-503 Fix Merge conflicts * CW-503 Fix minor conflicts * CW-503 Improve Ledger BLE Communication * CW-503 Improve Ledger BLE Communication * CW-503 Rollback Monero Test code * CW-503 Fix Execution failed for task :app:checkReleaseDuplicateClasses * CW-503 Better Error-Exceptions * CW-503 Add SetPinScreen before restore from hardware-wallet * CW-503 override web3dart to use cake's git hosted version * CW-503 Implement ledger sign messages * CW-503 Implement ledger sign messages and send erc20 tokens * CW-503 Fix merge conflicts * CW-503 Fix merge conflicts * CW-503 Use dep override for ledger_flutter * CW-503 Ledger ERC20 finalisation * CW-503 More graceful error handling * CW-503 Even more graceful error handling & remove debug code * CW-503 Minor Changes for Vik * CW-503 Fix USB connection * CW-503 Maybe this overrides web3dart finally * Indicate Loading on the first 5 Wallet Accounts * Fix conflicts with main * Add Bluetooth permission to iOS [skip ci] * add privacyinfo for ios [skip ci] * update PrivacyInfo.xcprivacy [scip ci] * ios shit [skip ci] * Resolve open Todos regarding iOS Support * Remove erc20 dependency to have more granular control over the tx UX * Better error handling * Improve Ledger account handling * Implement requested Changes * Implement requested Changes * Implement requested Changes * Implement requested Changes * Fix merge conflicts * Update wallet_info.dart --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
parent
4c50cc7551
commit
4fc7b2a924
99 changed files with 2777 additions and 485 deletions
|
@ -9,6 +9,26 @@
|
||||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||||
<uses-permission android:name="android.permission.CAMERA" />
|
<uses-permission android:name="android.permission.CAMERA" />
|
||||||
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
|
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
|
||||||
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
|
||||||
|
|
||||||
|
<!--bibo01 : hardware option-->
|
||||||
|
<uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
|
||||||
|
<uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/>
|
||||||
|
|
||||||
|
<!-- required for API 18 - 30 -->
|
||||||
|
<uses-permission
|
||||||
|
android:name="android.permission.BLUETOOTH"
|
||||||
|
android:maxSdkVersion="30" />
|
||||||
|
<uses-permission
|
||||||
|
android:name="android.permission.BLUETOOTH_ADMIN"
|
||||||
|
android:maxSdkVersion="30" />
|
||||||
|
|
||||||
|
<!-- API 31+ -->
|
||||||
|
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
|
||||||
|
<uses-permission
|
||||||
|
android:name="android.permission.BLUETOOTH_SCAN"
|
||||||
|
android:usesPermissionFlags="neverForLocation" />
|
||||||
|
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:name=".Application"
|
android:name=".Application"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = '1.7.10'
|
ext.kotlin_version = '1.8.21'
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
jcenter()
|
jcenter()
|
||||||
|
|
BIN
assets/images/bluetooth.png
Normal file
BIN
assets/images/bluetooth.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
assets/images/ledger_nano.png
Normal file
BIN
assets/images/ledger_nano.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/images/usb.png
Normal file
BIN
assets/images/usb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
|
@ -14,8 +14,10 @@ import 'package:hive/hive.dart';
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
import 'package:bip39/bip39.dart' as bip39;
|
import 'package:bip39/bip39.dart' as bip39;
|
||||||
|
|
||||||
class BitcoinWalletService extends WalletService<BitcoinNewWalletCredentials,
|
class BitcoinWalletService extends WalletService<
|
||||||
BitcoinRestoreWalletFromSeedCredentials, BitcoinRestoreWalletFromWIFCredentials> {
|
BitcoinNewWalletCredentials,
|
||||||
|
BitcoinRestoreWalletFromSeedCredentials,
|
||||||
|
BitcoinRestoreWalletFromWIFCredentials, BitcoinNewWalletCredentials> {
|
||||||
BitcoinWalletService(this.walletInfoSource, this.unspentCoinsInfoSource);
|
BitcoinWalletService(this.walletInfoSource, this.unspentCoinsInfoSource);
|
||||||
|
|
||||||
final Box<WalletInfo> walletInfoSource;
|
final Box<WalletInfo> walletInfoSource;
|
||||||
|
@ -99,6 +101,11 @@ class BitcoinWalletService extends WalletService<BitcoinNewWalletCredentials,
|
||||||
await walletInfoSource.put(currentWalletInfo.key, newWalletInfo);
|
await walletInfoSource.put(currentWalletInfo.key, newWalletInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<BitcoinWallet> restoreFromHardwareWallet(BitcoinNewWalletCredentials credentials) {
|
||||||
|
throw UnimplementedError("Restoring a Bitcoin wallet from a hardware wallet is not yet supported!");
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<BitcoinWallet> restoreFromKeys(BitcoinRestoreWalletFromWIFCredentials credentials,
|
Future<BitcoinWallet> restoreFromKeys(BitcoinRestoreWalletFromWIFCredentials credentials,
|
||||||
{bool? isTestnet}) async =>
|
{bool? isTestnet}) async =>
|
||||||
|
|
|
@ -1263,7 +1263,7 @@ abstract class ElectrumWalletBase
|
||||||
void setExceptionHandler(void Function(FlutterErrorDetails) onError) => _onError = onError;
|
void setExceptionHandler(void Function(FlutterErrorDetails) onError) => _onError = onError;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String signMessage(String message, {String? address = null}) {
|
Future<String> signMessage(String message, {String? address = null}) async {
|
||||||
final index = address != null
|
final index = address != null
|
||||||
? walletAddresses.allAddresses.firstWhere((element) => element.address == address).index
|
? walletAddresses.allAddresses.firstWhere((element) => element.address == address).index
|
||||||
: null;
|
: null;
|
||||||
|
|
|
@ -16,7 +16,7 @@ import 'package:bip39/bip39.dart' as bip39;
|
||||||
class LitecoinWalletService extends WalletService<
|
class LitecoinWalletService extends WalletService<
|
||||||
BitcoinNewWalletCredentials,
|
BitcoinNewWalletCredentials,
|
||||||
BitcoinRestoreWalletFromSeedCredentials,
|
BitcoinRestoreWalletFromSeedCredentials,
|
||||||
BitcoinRestoreWalletFromWIFCredentials> {
|
BitcoinRestoreWalletFromWIFCredentials,BitcoinNewWalletCredentials> {
|
||||||
LitecoinWalletService(this.walletInfoSource, this.unspentCoinsInfoSource);
|
LitecoinWalletService(this.walletInfoSource, this.unspentCoinsInfoSource);
|
||||||
|
|
||||||
final Box<WalletInfo> walletInfoSource;
|
final Box<WalletInfo> walletInfoSource;
|
||||||
|
@ -94,6 +94,11 @@ class LitecoinWalletService extends WalletService<
|
||||||
await walletInfoSource.put(currentWalletInfo.key, newWalletInfo);
|
await walletInfoSource.put(currentWalletInfo.key, newWalletInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<LitecoinWallet> restoreFromHardwareWallet(BitcoinNewWalletCredentials credentials) {
|
||||||
|
throw UnimplementedError("Restoring a Litecoin wallet from a hardware wallet is not yet supported!");
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<LitecoinWallet> restoreFromKeys(
|
Future<LitecoinWallet> restoreFromKeys(
|
||||||
BitcoinRestoreWalletFromWIFCredentials credentials, {bool? isTestnet}) async =>
|
BitcoinRestoreWalletFromWIFCredentials credentials, {bool? isTestnet}) async =>
|
||||||
|
|
|
@ -166,7 +166,7 @@ abstract class BitcoinCashWalletBase extends ElectrumWallet with Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String signMessage(String message, {String? address = null}) {
|
Future<String> signMessage(String message, {String? address = null}) async {
|
||||||
final index = address != null
|
final index = address != null
|
||||||
? walletAddresses.allAddresses
|
? walletAddresses.allAddresses
|
||||||
.firstWhere((element) => element.address == AddressUtils.toLegacyAddress(address))
|
.firstWhere((element) => element.address == AddressUtils.toLegacyAddress(address))
|
||||||
|
|
|
@ -12,7 +12,7 @@ import 'package:collection/collection.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
|
||||||
class BitcoinCashWalletService extends WalletService<BitcoinCashNewWalletCredentials,
|
class BitcoinCashWalletService extends WalletService<BitcoinCashNewWalletCredentials,
|
||||||
BitcoinCashRestoreWalletFromSeedCredentials, BitcoinCashRestoreWalletFromWIFCredentials> {
|
BitcoinCashRestoreWalletFromSeedCredentials, BitcoinCashRestoreWalletFromWIFCredentials, BitcoinCashNewWalletCredentials> {
|
||||||
BitcoinCashWalletService(this.walletInfoSource, this.unspentCoinsInfoSource);
|
BitcoinCashWalletService(this.walletInfoSource, this.unspentCoinsInfoSource);
|
||||||
|
|
||||||
final Box<WalletInfo> walletInfoSource;
|
final Box<WalletInfo> walletInfoSource;
|
||||||
|
@ -93,6 +93,11 @@ class BitcoinCashWalletService extends WalletService<BitcoinCashNewWalletCredent
|
||||||
await walletInfoSource.put(currentWalletInfo.key, newWalletInfo);
|
await walletInfoSource.put(currentWalletInfo.key, newWalletInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<BitcoinCashWallet> restoreFromHardwareWallet(BitcoinCashNewWalletCredentials credentials) {
|
||||||
|
throw UnimplementedError("Restoring a Bitcoin Cash wallet from a hardware wallet is not yet supported!");
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<BitcoinCashWallet> restoreFromKeys(credentials, {bool? isTestnet}) {
|
Future<BitcoinCashWallet> restoreFromKeys(credentials, {bool? isTestnet}) {
|
||||||
// TODO: implement restoreFromKeys
|
// TODO: implement restoreFromKeys
|
||||||
|
|
27
cw_core/lib/hardware/device_connection_type.dart
Normal file
27
cw_core/lib/hardware/device_connection_type.dart
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
import 'package:cw_core/wallet_type.dart';
|
||||||
|
|
||||||
|
enum DeviceConnectionType {
|
||||||
|
usb,
|
||||||
|
ble;
|
||||||
|
|
||||||
|
static List<DeviceConnectionType> supportedConnectionTypes(WalletType walletType,
|
||||||
|
[bool isIOS = false]) {
|
||||||
|
switch (walletType) {
|
||||||
|
case WalletType.ethereum:
|
||||||
|
case WalletType.polygon:
|
||||||
|
if (isIOS) return [DeviceConnectionType.ble];
|
||||||
|
return [DeviceConnectionType.ble, DeviceConnectionType.usb];
|
||||||
|
default:
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
String get iconString {
|
||||||
|
switch (this) {
|
||||||
|
case ble:
|
||||||
|
return 'assets/images/bluetooth.png';
|
||||||
|
case usb:
|
||||||
|
return 'assets/images/usb.png';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
7
cw_core/lib/hardware/device_not_connected_exception.dart
Normal file
7
cw_core/lib/hardware/device_not_connected_exception.dart
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
class DeviceNotConnectedException implements Exception {
|
||||||
|
final String message;
|
||||||
|
|
||||||
|
DeviceNotConnectedException({
|
||||||
|
this.message = '',
|
||||||
|
});
|
||||||
|
}
|
17
cw_core/lib/hardware/hardware_account_data.dart
Normal file
17
cw_core/lib/hardware/hardware_account_data.dart
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
import 'dart:typed_data';
|
||||||
|
|
||||||
|
class HardwareAccountData {
|
||||||
|
HardwareAccountData({
|
||||||
|
required this.address,
|
||||||
|
required this.accountIndex,
|
||||||
|
this.xpub,
|
||||||
|
this.masterFingerprint,
|
||||||
|
});
|
||||||
|
|
||||||
|
final String address;
|
||||||
|
final int accountIndex;
|
||||||
|
|
||||||
|
// Bitcoin Specific
|
||||||
|
final Uint8List? masterFingerprint;
|
||||||
|
final String? xpub;
|
||||||
|
}
|
|
@ -16,3 +16,4 @@ const POW_NODE_TYPE_ID = 14;
|
||||||
const DERIVATION_TYPE_TYPE_ID = 15;
|
const DERIVATION_TYPE_TYPE_ID = 15;
|
||||||
const SPL_TOKEN_TYPE_ID = 16;
|
const SPL_TOKEN_TYPE_ID = 16;
|
||||||
const DERIVATION_INFO_TYPE_ID = 17;
|
const DERIVATION_INFO_TYPE_ID = 17;
|
||||||
|
const HARDWARE_WALLET_TYPE_TYPE_ID = 18;
|
||||||
|
|
|
@ -56,6 +56,8 @@ abstract class WalletBase<BalanceType extends Balance, HistoryType extends Trans
|
||||||
|
|
||||||
bool get isEnabledAutoGenerateSubaddress => false;
|
bool get isEnabledAutoGenerateSubaddress => false;
|
||||||
|
|
||||||
|
bool get isHardwareWallet => walletInfo.isHardwareWallet;
|
||||||
|
|
||||||
Future<void> connectToNode({required Node node});
|
Future<void> connectToNode({required Node node});
|
||||||
|
|
||||||
// there is a default definition here because only coins with a pow node (nano based) need to override this
|
// there is a default definition here because only coins with a pow node (nano based) need to override this
|
||||||
|
@ -88,7 +90,7 @@ abstract class WalletBase<BalanceType extends Balance, HistoryType extends Trans
|
||||||
|
|
||||||
Future<void> renameWalletFiles(String newWalletName);
|
Future<void> renameWalletFiles(String newWalletName);
|
||||||
|
|
||||||
String signMessage(String message, {String? address = null}) => throw UnimplementedError();
|
Future<String> signMessage(String message, {String? address = null}) => throw UnimplementedError();
|
||||||
|
|
||||||
bool? isTestnet;
|
bool? isTestnet;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ abstract class WalletCredentials {
|
||||||
this.password,
|
this.password,
|
||||||
this.passphrase,
|
this.passphrase,
|
||||||
this.derivationInfo,
|
this.derivationInfo,
|
||||||
|
this.hardwareWalletType,
|
||||||
}) {
|
}) {
|
||||||
if (this.walletInfo != null && derivationInfo != null) {
|
if (this.walletInfo != null && derivationInfo != null) {
|
||||||
this.walletInfo!.derivationInfo = derivationInfo;
|
this.walletInfo!.derivationInfo = derivationInfo;
|
||||||
|
@ -22,4 +23,5 @@ abstract class WalletCredentials {
|
||||||
String? passphrase;
|
String? passphrase;
|
||||||
WalletInfo? walletInfo;
|
WalletInfo? walletInfo;
|
||||||
DerivationInfo? derivationInfo;
|
DerivationInfo? derivationInfo;
|
||||||
|
HardwareWalletType? hardwareWalletType;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:cw_core/address_info.dart';
|
import 'package:cw_core/address_info.dart';
|
||||||
import 'package:cw_core/hive_type_ids.dart';
|
import 'package:cw_core/hive_type_ids.dart';
|
||||||
import 'package:cw_core/wallet_type.dart';
|
import 'package:cw_core/wallet_type.dart';
|
||||||
|
@ -20,6 +21,12 @@ enum DerivationType {
|
||||||
electrum,
|
electrum,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@HiveType(typeId: HARDWARE_WALLET_TYPE_TYPE_ID)
|
||||||
|
enum HardwareWalletType {
|
||||||
|
@HiveField(0)
|
||||||
|
ledger,
|
||||||
|
}
|
||||||
|
|
||||||
@HiveType(typeId: DerivationInfo.typeId)
|
@HiveType(typeId: DerivationInfo.typeId)
|
||||||
class DerivationInfo extends HiveObject {
|
class DerivationInfo extends HiveObject {
|
||||||
DerivationInfo({
|
DerivationInfo({
|
||||||
|
@ -40,7 +47,7 @@ class DerivationInfo extends HiveObject {
|
||||||
@HiveField(1, defaultValue: '')
|
@HiveField(1, defaultValue: '')
|
||||||
String balance;
|
String balance;
|
||||||
|
|
||||||
@HiveField(2)
|
@HiveField(2, defaultValue: 0)
|
||||||
int transactionsCount;
|
int transactionsCount;
|
||||||
|
|
||||||
@HiveField(3)
|
@HiveField(3)
|
||||||
|
@ -71,8 +78,9 @@ class WalletInfo extends HiveObject {
|
||||||
this.yatEid,
|
this.yatEid,
|
||||||
this.yatLastUsedAddressRaw,
|
this.yatLastUsedAddressRaw,
|
||||||
this.showIntroCakePayCard,
|
this.showIntroCakePayCard,
|
||||||
this.derivationInfo)
|
this.derivationInfo,
|
||||||
: _yatLastUsedAddressController = StreamController<String>.broadcast();
|
this.hardwareWalletType,
|
||||||
|
): _yatLastUsedAddressController = StreamController<String>.broadcast();
|
||||||
|
|
||||||
factory WalletInfo.external({
|
factory WalletInfo.external({
|
||||||
required String id,
|
required String id,
|
||||||
|
@ -88,6 +96,7 @@ class WalletInfo extends HiveObject {
|
||||||
String yatEid = '',
|
String yatEid = '',
|
||||||
String yatLastUsedAddressRaw = '',
|
String yatLastUsedAddressRaw = '',
|
||||||
DerivationInfo? derivationInfo,
|
DerivationInfo? derivationInfo,
|
||||||
|
HardwareWalletType? hardwareWalletType,
|
||||||
}) {
|
}) {
|
||||||
return WalletInfo(
|
return WalletInfo(
|
||||||
id,
|
id,
|
||||||
|
@ -103,6 +112,7 @@ class WalletInfo extends HiveObject {
|
||||||
yatLastUsedAddressRaw,
|
yatLastUsedAddressRaw,
|
||||||
showIntroCakePayCard,
|
showIntroCakePayCard,
|
||||||
derivationInfo,
|
derivationInfo,
|
||||||
|
hardwareWalletType,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,6 +179,9 @@ class WalletInfo extends HiveObject {
|
||||||
@HiveField(20)
|
@HiveField(20)
|
||||||
DerivationInfo? derivationInfo;
|
DerivationInfo? derivationInfo;
|
||||||
|
|
||||||
|
@HiveField(21)
|
||||||
|
HardwareWalletType? hardwareWalletType;
|
||||||
|
|
||||||
String get yatLastUsedAddress => yatLastUsedAddressRaw ?? '';
|
String get yatLastUsedAddress => yatLastUsedAddressRaw ?? '';
|
||||||
|
|
||||||
set yatLastUsedAddress(String address) {
|
set yatLastUsedAddress(String address) {
|
||||||
|
@ -185,6 +198,8 @@ class WalletInfo extends HiveObject {
|
||||||
return showIntroCakePayCard!;
|
return showIntroCakePayCard!;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool get isHardwareWallet => hardwareWalletType != null;
|
||||||
|
|
||||||
DateTime get date => DateTime.fromMillisecondsSinceEpoch(timestamp);
|
DateTime get date => DateTime.fromMillisecondsSinceEpoch(timestamp);
|
||||||
|
|
||||||
Stream<String> get yatLastUsedAddressStream => _yatLastUsedAddressController.stream;
|
Stream<String> get yatLastUsedAddressStream => _yatLastUsedAddressController.stream;
|
||||||
|
|
|
@ -6,11 +6,13 @@ import 'package:cw_core/wallet_credentials.dart';
|
||||||
import 'package:cw_core/wallet_type.dart';
|
import 'package:cw_core/wallet_type.dart';
|
||||||
|
|
||||||
abstract class WalletService<N extends WalletCredentials, RFS extends WalletCredentials,
|
abstract class WalletService<N extends WalletCredentials, RFS extends WalletCredentials,
|
||||||
RFK extends WalletCredentials> {
|
RFK extends WalletCredentials, RFH extends WalletCredentials> {
|
||||||
WalletType getType();
|
WalletType getType();
|
||||||
|
|
||||||
Future<WalletBase> create(N credentials, {bool? isTestnet});
|
Future<WalletBase> create(N credentials, {bool? isTestnet});
|
||||||
|
|
||||||
|
Future<WalletBase> restoreFromHardwareWallet(RFH credentials);
|
||||||
|
|
||||||
Future<WalletBase> restoreFromSeed(RFS credentials, {bool? isTestnet});
|
Future<WalletBase> restoreFromSeed(RFS credentials, {bool? isTestnet});
|
||||||
|
|
||||||
Future<WalletBase> restoreFromKeys(RFK credentials, {bool? isTestnet});
|
Future<WalletBase> restoreFromKeys(RFK credentials, {bool? isTestnet});
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
|
import 'package:bip39/bip39.dart' as bip39;
|
||||||
import 'package:cw_core/wallet_base.dart';
|
import 'package:cw_core/wallet_base.dart';
|
||||||
|
import 'package:cw_core/wallet_info.dart';
|
||||||
import 'package:cw_core/wallet_type.dart';
|
import 'package:cw_core/wallet_type.dart';
|
||||||
import 'package:cw_ethereum/ethereum_client.dart';
|
import 'package:cw_ethereum/ethereum_client.dart';
|
||||||
import 'package:cw_ethereum/ethereum_mnemonics_exception.dart';
|
import 'package:cw_ethereum/ethereum_mnemonics_exception.dart';
|
||||||
import 'package:cw_ethereum/ethereum_wallet.dart';
|
import 'package:cw_ethereum/ethereum_wallet.dart';
|
||||||
import 'package:cw_evm/evm_chain_wallet_creation_credentials.dart';
|
import 'package:cw_evm/evm_chain_wallet_creation_credentials.dart';
|
||||||
import 'package:cw_evm/evm_chain_wallet_service.dart';
|
import 'package:cw_evm/evm_chain_wallet_service.dart';
|
||||||
import 'package:bip39/bip39.dart' as bip39;
|
|
||||||
|
|
||||||
class EthereumWalletService extends EVMChainWalletService<EthereumWallet> {
|
class EthereumWalletService extends EVMChainWalletService<EthereumWallet> {
|
||||||
EthereumWalletService(super.walletInfoSource, {required this.client});
|
EthereumWalletService(super.walletInfoSource, {required this.client});
|
||||||
|
@ -82,6 +83,29 @@ class EthereumWalletService extends EVMChainWalletService<EthereumWallet> {
|
||||||
await walletInfoSource.put(currentWalletInfo.key, newWalletInfo);
|
await walletInfoSource.put(currentWalletInfo.key, newWalletInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<EthereumWallet> restoreFromHardwareWallet(
|
||||||
|
EVMChainRestoreWalletFromHardware credentials) async {
|
||||||
|
credentials.walletInfo!.derivationInfo = DerivationInfo(
|
||||||
|
derivationType: DerivationType.bip39,
|
||||||
|
derivationPath: "m/44'/60'/${credentials.hwAccountData.accountIndex}'/0/0"
|
||||||
|
);
|
||||||
|
credentials.walletInfo!.hardwareWalletType = credentials.hardwareWalletType;
|
||||||
|
credentials.walletInfo!.address = credentials.hwAccountData.address;
|
||||||
|
|
||||||
|
final wallet = EthereumWallet(
|
||||||
|
walletInfo: credentials.walletInfo!,
|
||||||
|
password: credentials.password!,
|
||||||
|
client: client,
|
||||||
|
);
|
||||||
|
|
||||||
|
await wallet.init();
|
||||||
|
wallet.addInitialTokens();
|
||||||
|
await wallet.save();
|
||||||
|
|
||||||
|
return wallet;
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<EthereumWallet> restoreFromKeys(EVMChainRestoreWalletFromPrivateKey credentials,
|
Future<EthereumWallet> restoreFromKeys(EVMChainRestoreWalletFromPrivateKey credentials,
|
||||||
{bool? isTestnet}) async {
|
{bool? isTestnet}) async {
|
||||||
|
|
|
@ -19,6 +19,12 @@ dependencies:
|
||||||
path: ../cw_evm
|
path: ../cw_evm
|
||||||
hive: ^2.2.3
|
hive: ^2.2.3
|
||||||
|
|
||||||
|
dependency_overrides:
|
||||||
|
web3dart:
|
||||||
|
git:
|
||||||
|
url: https://github.com/cake-tech/web3dart.git
|
||||||
|
ref: cake
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
209
cw_evm/lib/contract/erc20.dart
Normal file
209
cw_evm/lib/contract/erc20.dart
Normal file
|
@ -0,0 +1,209 @@
|
||||||
|
import 'dart:typed_data';
|
||||||
|
|
||||||
|
import 'package:web3dart/web3dart.dart' as web3;
|
||||||
|
|
||||||
|
final _contractAbi = web3.ContractAbi.fromJson(
|
||||||
|
'[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]',
|
||||||
|
'Erc20');
|
||||||
|
|
||||||
|
/// Interface of the ERC20 standard as defined in the EIP.
|
||||||
|
class ERC20 extends web3.GeneratedContract {
|
||||||
|
/// Constructor.
|
||||||
|
ERC20({
|
||||||
|
required web3.EthereumAddress address,
|
||||||
|
required web3.Web3Client client,
|
||||||
|
int? chainId,
|
||||||
|
}) : super(web3.DeployedContract(_contractAbi, address), client, chainId);
|
||||||
|
|
||||||
|
/// Returns the remaining number of tokens that [spender] will be allowed to spend on behalf of [owner] through [transferFrom]. This is zero by default. This value changes when [approve] or [transferFrom] are called.
|
||||||
|
///
|
||||||
|
/// The optional [atBlock] parameter can be used to view historical data. When
|
||||||
|
/// set, the function will be evaluated in the specified block. By default, the
|
||||||
|
/// latest on-chain block will be used.
|
||||||
|
Future<BigInt> allowance(
|
||||||
|
web3.EthereumAddress owner,
|
||||||
|
web3.EthereumAddress spender, {
|
||||||
|
web3.BlockNum? atBlock,
|
||||||
|
}) async {
|
||||||
|
final function = self.abi.functions[0];
|
||||||
|
assert(checkSignature(function, 'dd62ed3e'));
|
||||||
|
final params = [owner, spender];
|
||||||
|
final response = await read(function, params, atBlock);
|
||||||
|
return (response[0] as BigInt);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Sets [amount] as the allowance of [spender] over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an [Approval] event.
|
||||||
|
///
|
||||||
|
/// The optional [transaction] parameter can be used to override parameters
|
||||||
|
/// like the gas price, nonce and max gas. The `data` and `to` fields will be
|
||||||
|
/// set by the contract.
|
||||||
|
Future<Uint8List> approve(
|
||||||
|
web3.EthereumAddress spender,
|
||||||
|
BigInt amount, {
|
||||||
|
required web3.Credentials credentials,
|
||||||
|
web3.Transaction? transaction,
|
||||||
|
}) async {
|
||||||
|
final function = self.abi.functions[1];
|
||||||
|
assert(checkSignature(function, '095ea7b3'));
|
||||||
|
final params = [spender, amount];
|
||||||
|
return writeRaw(credentials, transaction, function, params);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns the amount of tokens owned by [account].
|
||||||
|
///
|
||||||
|
/// The optional [atBlock] parameter can be used to view historical data. When
|
||||||
|
/// set, the function will be evaluated in the specified block. By default, the
|
||||||
|
/// latest on-chain block will be used.
|
||||||
|
Future<BigInt> balanceOf(
|
||||||
|
web3.EthereumAddress account, {
|
||||||
|
web3.BlockNum? atBlock,
|
||||||
|
}) async {
|
||||||
|
final function = self.abi.functions[2];
|
||||||
|
assert(checkSignature(function, '70a08231'));
|
||||||
|
final params = [account];
|
||||||
|
final response = await read(function, params, atBlock);
|
||||||
|
return (response[0] as BigInt);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns the decimal precision of the token.
|
||||||
|
///
|
||||||
|
/// The optional [atBlock] parameter can be used to view historical data. When
|
||||||
|
/// set, the function will be evaluated in the specified block. By default, the
|
||||||
|
/// latest on-chain block will be used.
|
||||||
|
Future<BigInt> decimals({web3.BlockNum? atBlock}) async {
|
||||||
|
final function = self.abi.functions[3];
|
||||||
|
assert(checkSignature(function, '313ce567'));
|
||||||
|
final params = [];
|
||||||
|
final response = await read(function, params, atBlock);
|
||||||
|
return (response[0] as BigInt);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns the name of the token.
|
||||||
|
///
|
||||||
|
/// The optional [atBlock] parameter can be used to view historical data. When
|
||||||
|
/// set, the function will be evaluated in the specified block. By default, the
|
||||||
|
/// latest on-chain block will be used.
|
||||||
|
Future<String> name({web3.BlockNum? atBlock}) async {
|
||||||
|
final function = self.abi.functions[4];
|
||||||
|
assert(checkSignature(function, '06fdde03'));
|
||||||
|
final params = [];
|
||||||
|
final response = await read(function, params, atBlock);
|
||||||
|
return (response[0] as String);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns the symbol of the token.
|
||||||
|
///
|
||||||
|
/// The optional [atBlock] parameter can be used to view historical data. When
|
||||||
|
/// set, the function will be evaluated in the specified block. By default, the
|
||||||
|
/// latest on-chain block will be used.
|
||||||
|
Future<String> symbol({web3.BlockNum? atBlock}) async {
|
||||||
|
final function = self.abi.functions[5];
|
||||||
|
assert(checkSignature(function, '95d89b41'));
|
||||||
|
final params = [];
|
||||||
|
final response = await read(function, params, atBlock);
|
||||||
|
return (response[0] as String);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns the amount of tokens in existence.
|
||||||
|
///
|
||||||
|
/// The optional [atBlock] parameter can be used to view historical data. When
|
||||||
|
/// set, the function will be evaluated in the specified block. By default, the
|
||||||
|
/// latest on-chain block will be used.
|
||||||
|
Future<BigInt> totalSupply({web3.BlockNum? atBlock}) async {
|
||||||
|
final function = self.abi.functions[6];
|
||||||
|
assert(checkSignature(function, '18160ddd'));
|
||||||
|
final params = [];
|
||||||
|
final response = await read(function, params, atBlock);
|
||||||
|
return (response[0] as BigInt);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Moves [amount] tokens from the caller's account to [recipient]. Returns a boolean value indicating whether the operation succeeded. Emits a [Transfer] event.
|
||||||
|
///
|
||||||
|
/// The optional [transaction] parameter can be used to override parameters
|
||||||
|
/// like the gas price, nonce and max gas. The `data` and `to` fields will be
|
||||||
|
/// set by the contract.
|
||||||
|
Future<Uint8List> transfer(
|
||||||
|
web3.EthereumAddress recipient,
|
||||||
|
BigInt amount, {
|
||||||
|
required web3.Credentials credentials,
|
||||||
|
web3.Transaction? transaction,
|
||||||
|
}) async {
|
||||||
|
final function = self.abi.functions[7];
|
||||||
|
assert(checkSignature(function, 'a9059cbb'));
|
||||||
|
final params = [recipient, amount];
|
||||||
|
return writeRaw(credentials, transaction, function, params);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Moves [amount] tokens from [sender] to [recipient] using the allowance mechanism. [amount] is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a [Transfer] event.
|
||||||
|
///
|
||||||
|
/// The optional [transaction] parameter can be used to override parameters
|
||||||
|
/// like the gas price, nonce and max gas. The `data` and `to` fields will be
|
||||||
|
/// set by the contract.
|
||||||
|
Future<Uint8List> transferFrom(web3.EthereumAddress sender,
|
||||||
|
web3.EthereumAddress recipient, BigInt amount,
|
||||||
|
{required web3.Credentials credentials,
|
||||||
|
web3.Transaction? transaction}) async {
|
||||||
|
final function = self.abi.functions[8];
|
||||||
|
assert(checkSignature(function, '23b872dd'));
|
||||||
|
final params = [sender, recipient, amount];
|
||||||
|
return writeRaw(credentials, transaction, function, params);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns a live stream of all Approval events emitted by this contract.
|
||||||
|
Stream<Approval> approvalEvents(
|
||||||
|
{web3.BlockNum? fromBlock, web3.BlockNum? toBlock}) {
|
||||||
|
final event = self.event('Approval');
|
||||||
|
final filter = web3.FilterOptions.events(
|
||||||
|
contract: self, event: event, fromBlock: fromBlock, toBlock: toBlock);
|
||||||
|
return client.events(filter).map((web3.FilterEvent result) {
|
||||||
|
final decoded = event.decodeResults(result.topics!, result.data!);
|
||||||
|
return Approval._(decoded);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns a live stream of all Transfer events emitted by this contract.
|
||||||
|
Stream<Transfer> transferEvents(
|
||||||
|
{web3.BlockNum? fromBlock, web3.BlockNum? toBlock}) {
|
||||||
|
final event = self.event('Transfer');
|
||||||
|
final filter = web3.FilterOptions.events(
|
||||||
|
contract: self, event: event, fromBlock: fromBlock, toBlock: toBlock);
|
||||||
|
return client.events(filter).map((web3.FilterEvent result) {
|
||||||
|
final decoded = event.decodeResults(result.topics!, result.data!);
|
||||||
|
return Transfer._(decoded);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Emitted when the allowance of a [spender] for an [owner] is set by a call to [ERC20.approve]. [value] is the new allowance.
|
||||||
|
class Approval {
|
||||||
|
Approval._(List<dynamic> response)
|
||||||
|
: owner = (response[0] as web3.EthereumAddress),
|
||||||
|
spender = (response[1] as web3.EthereumAddress),
|
||||||
|
value = (response[2] as BigInt);
|
||||||
|
|
||||||
|
/// The owner address.
|
||||||
|
final web3.EthereumAddress owner;
|
||||||
|
|
||||||
|
/// The spender address.
|
||||||
|
final web3.EthereumAddress spender;
|
||||||
|
|
||||||
|
/// Value.
|
||||||
|
final BigInt value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Emitted when [value] tokens are moved from one account ([from]) to another ([to]). Note that [value] may be zero.
|
||||||
|
class Transfer {
|
||||||
|
Transfer._(List<dynamic> response)
|
||||||
|
: from = (response[0] as web3.EthereumAddress),
|
||||||
|
to = (response[1] as web3.EthereumAddress),
|
||||||
|
value = (response[2] as BigInt);
|
||||||
|
|
||||||
|
/// From address.
|
||||||
|
final web3.EthereumAddress from;
|
||||||
|
|
||||||
|
/// To address.
|
||||||
|
final web3.EthereumAddress to;
|
||||||
|
|
||||||
|
/// Value.
|
||||||
|
final BigInt value;
|
||||||
|
}
|
|
@ -2,21 +2,20 @@ import 'dart:async';
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:developer';
|
import 'dart:developer';
|
||||||
|
|
||||||
import 'package:cw_core/node.dart';
|
|
||||||
import 'package:cw_core/erc20_token.dart';
|
|
||||||
import 'package:cw_core/crypto_currency.dart';
|
import 'package:cw_core/crypto_currency.dart';
|
||||||
|
import 'package:cw_core/erc20_token.dart';
|
||||||
import 'package:cw_evm/evm_erc20_balance.dart';
|
import 'package:cw_core/node.dart';
|
||||||
import 'package:cw_evm/evm_chain_transaction_model.dart';
|
import 'package:cw_evm/evm_chain_transaction_model.dart';
|
||||||
import 'package:cw_evm/pending_evm_chain_transaction.dart';
|
|
||||||
import 'package:cw_evm/evm_chain_transaction_priority.dart';
|
import 'package:cw_evm/evm_chain_transaction_priority.dart';
|
||||||
|
import 'package:cw_evm/evm_erc20_balance.dart';
|
||||||
|
import 'package:cw_evm/pending_evm_chain_transaction.dart';
|
||||||
import 'package:cw_evm/.secrets.g.dart' as secrets;
|
import 'package:cw_evm/.secrets.g.dart' as secrets;
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
|
|
||||||
import 'package:http/http.dart';
|
|
||||||
import 'package:erc20/erc20.dart';
|
|
||||||
import 'package:web3dart/web3dart.dart';
|
|
||||||
import 'package:hex/hex.dart' as hex;
|
import 'package:hex/hex.dart' as hex;
|
||||||
|
import 'package:http/http.dart';
|
||||||
|
import 'package:web3dart/web3dart.dart';
|
||||||
|
|
||||||
|
import 'contract/erc20.dart';
|
||||||
|
|
||||||
abstract class EVMChainClient {
|
abstract class EVMChainClient {
|
||||||
final httpClient = Client();
|
final httpClient = Client();
|
||||||
|
@ -82,7 +81,7 @@ abstract class EVMChainClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<PendingEVMChainTransaction> signTransaction({
|
Future<PendingEVMChainTransaction> signTransaction({
|
||||||
required EthPrivateKey privateKey,
|
required Credentials privateKey,
|
||||||
required String toAddress,
|
required String toAddress,
|
||||||
required BigInt amount,
|
required BigInt amount,
|
||||||
required int gas,
|
required int gas,
|
||||||
|
@ -96,8 +95,7 @@ abstract class EVMChainClient {
|
||||||
currency == CryptoCurrency.maticpoly ||
|
currency == CryptoCurrency.maticpoly ||
|
||||||
contractAddress != null);
|
contractAddress != null);
|
||||||
|
|
||||||
bool isEVMCompatibleChain =
|
bool isNativeToken = currency == CryptoCurrency.eth || currency == CryptoCurrency.maticpoly;
|
||||||
currency == CryptoCurrency.eth || currency == CryptoCurrency.maticpoly;
|
|
||||||
|
|
||||||
final price = _client!.getGasPrice();
|
final price = _client!.getGasPrice();
|
||||||
|
|
||||||
|
@ -105,17 +103,16 @@ abstract class EVMChainClient {
|
||||||
from: privateKey.address,
|
from: privateKey.address,
|
||||||
to: EthereumAddress.fromHex(toAddress),
|
to: EthereumAddress.fromHex(toAddress),
|
||||||
maxPriorityFeePerGas: EtherAmount.fromInt(EtherUnit.gwei, priority.tip),
|
maxPriorityFeePerGas: EtherAmount.fromInt(EtherUnit.gwei, priority.tip),
|
||||||
amount: isEVMCompatibleChain ? EtherAmount.inWei(amount) : EtherAmount.zero(),
|
amount: isNativeToken ? EtherAmount.inWei(amount) : EtherAmount.zero(),
|
||||||
data: data != null ? hexToBytes(data) : null,
|
data: data != null ? hexToBytes(data) : null,
|
||||||
);
|
);
|
||||||
|
|
||||||
final signedTransaction =
|
Uint8List signedTransaction;
|
||||||
await _client!.signTransaction(privateKey, transaction, chainId: chainId);
|
|
||||||
|
|
||||||
final Function _sendTransaction;
|
final Function _sendTransaction;
|
||||||
|
|
||||||
if (isEVMCompatibleChain) {
|
if (isNativeToken) {
|
||||||
_sendTransaction = () async => await sendTransaction(signedTransaction);
|
signedTransaction = await _client!.signTransaction(privateKey, transaction, chainId: chainId);
|
||||||
} else {
|
} else {
|
||||||
final erc20 = ERC20(
|
final erc20 = ERC20(
|
||||||
client: _client!,
|
client: _client!,
|
||||||
|
@ -123,16 +120,17 @@ abstract class EVMChainClient {
|
||||||
chainId: chainId,
|
chainId: chainId,
|
||||||
);
|
);
|
||||||
|
|
||||||
_sendTransaction = () async {
|
signedTransaction = await erc20.transfer(
|
||||||
await erc20.transfer(
|
EthereumAddress.fromHex(toAddress),
|
||||||
EthereumAddress.fromHex(toAddress),
|
amount,
|
||||||
amount,
|
credentials: privateKey,
|
||||||
credentials: privateKey,
|
transaction: transaction,
|
||||||
transaction: transaction,
|
);
|
||||||
);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_sendTransaction = () async => await sendTransaction(signedTransaction);
|
||||||
|
|
||||||
|
|
||||||
return PendingEVMChainTransaction(
|
return PendingEVMChainTransaction(
|
||||||
signedTransaction: signedTransaction,
|
signedTransaction: signedTransaction,
|
||||||
amount: amount.toString(),
|
amount: amount.toString(),
|
||||||
|
@ -158,8 +156,9 @@ abstract class EVMChainClient {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String> sendTransaction(Uint8List signedTransaction) async =>
|
Future<String> sendTransaction(Uint8List signedTransaction) async {
|
||||||
await _client!.sendRawTransaction(prepareSignedTransactionForSending(signedTransaction));
|
return await _client!.sendRawTransaction(prepareSignedTransactionForSending(signedTransaction));
|
||||||
|
}
|
||||||
|
|
||||||
Future getTransactionDetails(String transactionHash) async {
|
Future getTransactionDetails(String transactionHash) async {
|
||||||
// Wait for the transaction receipt to become available
|
// Wait for the transaction receipt to become available
|
||||||
|
|
|
@ -6,6 +6,8 @@ class EVMChainTransactionCreationException implements Exception {
|
||||||
EVMChainTransactionCreationException(CryptoCurrency currency)
|
EVMChainTransactionCreationException(CryptoCurrency currency)
|
||||||
: exceptionMessage = 'Wrong balance. Not enough ${currency.title} on your balance.';
|
: exceptionMessage = 'Wrong balance. Not enough ${currency.title} on your balance.';
|
||||||
|
|
||||||
|
EVMChainTransactionCreationException.fromMessage(this.exceptionMessage);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => exceptionMessage;
|
String toString() => exceptionMessage;
|
||||||
}
|
}
|
||||||
|
|
30
cw_evm/lib/evm_chain_hardware_wallet_service.dart
Normal file
30
cw_evm/lib/evm_chain_hardware_wallet_service.dart
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
import 'dart:async';
|
||||||
|
|
||||||
|
import 'package:cw_core/hardware/hardware_account_data.dart';
|
||||||
|
import 'package:ledger_ethereum/ledger_ethereum.dart';
|
||||||
|
import 'package:ledger_flutter/ledger_flutter.dart';
|
||||||
|
|
||||||
|
class EVMChainHardwareWalletService {
|
||||||
|
EVMChainHardwareWalletService(this.ledger, this.device);
|
||||||
|
|
||||||
|
final Ledger ledger;
|
||||||
|
final LedgerDevice device;
|
||||||
|
|
||||||
|
Future<List<HardwareAccountData>> getAvailableAccounts({int index = 0, int limit = 5}) async {
|
||||||
|
final ethereumLedgerApp = EthereumLedgerApp(ledger);
|
||||||
|
|
||||||
|
final version = await ethereumLedgerApp.getVersion(device);
|
||||||
|
|
||||||
|
final accounts = <HardwareAccountData>[];
|
||||||
|
final indexRange = List.generate(limit, (i) => i + index);
|
||||||
|
|
||||||
|
for (final i in indexRange) {
|
||||||
|
final derivationPath = "m/44'/60'/$i'/0/0";
|
||||||
|
final address = await ethereumLedgerApp.getAccounts(device, accountsDerivationPath: derivationPath);
|
||||||
|
|
||||||
|
accounts.add(HardwareAccountData(address: address.first, accountIndex: i));
|
||||||
|
}
|
||||||
|
|
||||||
|
return accounts;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
import 'package:cw_core/crypto_currency.dart';
|
import 'package:cw_core/crypto_currency.dart';
|
||||||
import 'package:cw_core/output_info.dart';
|
import 'package:cw_core/output_info.dart';
|
||||||
import 'package:cw_evm/evm_chain_transaction_priority.dart';
|
import 'package:cw_evm/evm_chain_transaction_priority.dart';
|
||||||
|
import 'package:ledger_flutter/ledger_flutter.dart';
|
||||||
|
|
||||||
class EVMChainTransactionCredentials {
|
class EVMChainTransactionCredentials {
|
||||||
EVMChainTransactionCredentials(
|
EVMChainTransactionCredentials(
|
||||||
|
|
|
@ -25,6 +25,7 @@ import 'package:cw_evm/evm_chain_transaction_history.dart';
|
||||||
import 'package:cw_evm/evm_chain_transaction_model.dart';
|
import 'package:cw_evm/evm_chain_transaction_model.dart';
|
||||||
import 'package:cw_evm/evm_chain_transaction_priority.dart';
|
import 'package:cw_evm/evm_chain_transaction_priority.dart';
|
||||||
import 'package:cw_evm/evm_chain_wallet_addresses.dart';
|
import 'package:cw_evm/evm_chain_wallet_addresses.dart';
|
||||||
|
import 'package:cw_evm/evm_ledger_credentials.dart';
|
||||||
import 'package:cw_evm/file.dart';
|
import 'package:cw_evm/file.dart';
|
||||||
import 'package:hex/hex.dart';
|
import 'package:hex/hex.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
@ -83,9 +84,9 @@ abstract class EVMChainWalletBase
|
||||||
|
|
||||||
late final Box<Erc20Token> evmChainErc20TokensBox;
|
late final Box<Erc20Token> evmChainErc20TokensBox;
|
||||||
|
|
||||||
late final EthPrivateKey _evmChainPrivateKey;
|
late final Credentials _evmChainPrivateKey;
|
||||||
|
|
||||||
EthPrivateKey get evmChainPrivateKey => _evmChainPrivateKey;
|
Credentials get evmChainPrivateKey => _evmChainPrivateKey;
|
||||||
|
|
||||||
late EVMChainClient _client;
|
late EVMChainClient _client;
|
||||||
|
|
||||||
|
@ -141,12 +142,18 @@ abstract class EVMChainWalletBase
|
||||||
|
|
||||||
await walletAddresses.init();
|
await walletAddresses.init();
|
||||||
await transactionHistory.init();
|
await transactionHistory.init();
|
||||||
_evmChainPrivateKey = await getPrivateKey(
|
|
||||||
mnemonic: _mnemonic,
|
if (walletInfo.isHardwareWallet) {
|
||||||
privateKey: _hexPrivateKey,
|
_evmChainPrivateKey = EvmLedgerCredentials(walletInfo.address);
|
||||||
password: _password,
|
walletAddresses.address = walletInfo.address;
|
||||||
);
|
} else {
|
||||||
walletAddresses.address = _evmChainPrivateKey.address.hexEip55;
|
_evmChainPrivateKey = await getPrivateKey(
|
||||||
|
mnemonic: _mnemonic,
|
||||||
|
privateKey: _hexPrivateKey,
|
||||||
|
password: _password,
|
||||||
|
);
|
||||||
|
walletAddresses.address = _evmChainPrivateKey.address.hexEip55;
|
||||||
|
}
|
||||||
await save();
|
await save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -283,6 +290,11 @@ abstract class EVMChainWalletBase
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (transactionCurrency is Erc20Token && isHardwareWallet) {
|
||||||
|
await (_evmChainPrivateKey as EvmLedgerCredentials)
|
||||||
|
.provideERC20Info(transactionCurrency.contractAddress, _client.chainId);
|
||||||
|
}
|
||||||
|
|
||||||
final pendingEVMChainTransaction = await _client.signTransaction(
|
final pendingEVMChainTransaction = await _client.signTransaction(
|
||||||
privateKey: _evmChainPrivateKey,
|
privateKey: _evmChainPrivateKey,
|
||||||
toAddress: _credentials.outputs.first.isParsedAddress
|
toAddress: _credentials.outputs.first.isParsedAddress
|
||||||
|
@ -377,7 +389,9 @@ abstract class EVMChainWalletBase
|
||||||
String? get seed => _mnemonic;
|
String? get seed => _mnemonic;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get privateKey => HEX.encode(_evmChainPrivateKey.privateKey);
|
String? get privateKey => evmChainPrivateKey is EthPrivateKey
|
||||||
|
? HEX.encode((evmChainPrivateKey as EthPrivateKey).privateKey)
|
||||||
|
: null;
|
||||||
|
|
||||||
Future<String> makePath() async => pathForWallet(name: walletInfo.name, type: walletInfo.type);
|
Future<String> makePath() async => pathForWallet(name: walletInfo.name, type: walletInfo.type);
|
||||||
|
|
||||||
|
@ -535,8 +549,8 @@ abstract class EVMChainWalletBase
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String signMessage(String message, {String? address}) =>
|
Future<String> signMessage(String message, {String? address}) async =>
|
||||||
bytesToHex(_evmChainPrivateKey.signPersonalMessageToUint8List(ascii.encode(message)));
|
bytesToHex(await _evmChainPrivateKey.signPersonalMessage(ascii.encode(message)));
|
||||||
|
|
||||||
Web3Client? getWeb3Client() => _client.getWeb3Client();
|
Web3Client? getWeb3Client() => _client.getWeb3Client();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import 'package:cw_core/hardware/hardware_account_data.dart';
|
||||||
import 'package:cw_core/wallet_credentials.dart';
|
import 'package:cw_core/wallet_credentials.dart';
|
||||||
import 'package:cw_core/wallet_info.dart';
|
import 'package:cw_core/wallet_info.dart';
|
||||||
|
|
||||||
|
@ -27,3 +28,13 @@ class EVMChainRestoreWalletFromPrivateKey extends WalletCredentials {
|
||||||
|
|
||||||
final String privateKey;
|
final String privateKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class EVMChainRestoreWalletFromHardware extends WalletCredentials {
|
||||||
|
EVMChainRestoreWalletFromHardware({
|
||||||
|
required String name,
|
||||||
|
required this.hwAccountData,
|
||||||
|
WalletInfo? walletInfo,
|
||||||
|
}) : super(name: name, walletInfo: walletInfo);
|
||||||
|
|
||||||
|
final HardwareAccountData hwAccountData;
|
||||||
|
}
|
||||||
|
|
|
@ -13,7 +13,8 @@ import 'package:hive/hive.dart';
|
||||||
abstract class EVMChainWalletService<T extends EVMChainWallet> extends WalletService<
|
abstract class EVMChainWalletService<T extends EVMChainWallet> extends WalletService<
|
||||||
EVMChainNewWalletCredentials,
|
EVMChainNewWalletCredentials,
|
||||||
EVMChainRestoreWalletFromSeedCredentials,
|
EVMChainRestoreWalletFromSeedCredentials,
|
||||||
EVMChainRestoreWalletFromPrivateKey> {
|
EVMChainRestoreWalletFromPrivateKey,
|
||||||
|
EVMChainRestoreWalletFromHardware> {
|
||||||
EVMChainWalletService(this.walletInfoSource);
|
EVMChainWalletService(this.walletInfoSource);
|
||||||
|
|
||||||
final Box<WalletInfo> walletInfoSource;
|
final Box<WalletInfo> walletInfoSource;
|
||||||
|
@ -24,6 +25,9 @@ abstract class EVMChainWalletService<T extends EVMChainWallet> extends WalletSer
|
||||||
@override
|
@override
|
||||||
Future<T> create(EVMChainNewWalletCredentials credentials, {bool? isTestnet});
|
Future<T> create(EVMChainNewWalletCredentials credentials, {bool? isTestnet});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<T> restoreFromHardwareWallet(EVMChainRestoreWalletFromHardware credentials);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<T> openWallet(String name, String password);
|
Future<T> openWallet(String name, String password);
|
||||||
|
|
||||||
|
|
103
cw_evm/lib/evm_ledger_credentials.dart
Normal file
103
cw_evm/lib/evm_ledger_credentials.dart
Normal file
|
@ -0,0 +1,103 @@
|
||||||
|
import 'dart:async';
|
||||||
|
import 'dart:typed_data';
|
||||||
|
|
||||||
|
import 'package:cw_core/hardware/device_not_connected_exception.dart';
|
||||||
|
import 'package:ledger_ethereum/ledger_ethereum.dart';
|
||||||
|
import 'package:ledger_flutter/ledger_flutter.dart';
|
||||||
|
import 'package:web3dart/crypto.dart';
|
||||||
|
import 'package:web3dart/web3dart.dart';
|
||||||
|
|
||||||
|
class EvmLedgerCredentials extends CredentialsWithKnownAddress {
|
||||||
|
final String _address;
|
||||||
|
|
||||||
|
Ledger? ledger;
|
||||||
|
LedgerDevice? ledgerDevice;
|
||||||
|
EthereumLedgerApp? ethereumLedgerApp;
|
||||||
|
|
||||||
|
EvmLedgerCredentials(this._address);
|
||||||
|
|
||||||
|
@override
|
||||||
|
EthereumAddress get address => EthereumAddress.fromHex(_address);
|
||||||
|
|
||||||
|
void setLedger(Ledger setLedger, [LedgerDevice? setLedgerDevice, String? derivationPath]) {
|
||||||
|
ledger = setLedger;
|
||||||
|
ledgerDevice = setLedgerDevice;
|
||||||
|
ethereumLedgerApp =
|
||||||
|
EthereumLedgerApp(ledger!, derivationPath: derivationPath ?? "m/44'/60'/0'/0/0");
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
MsgSignature signToEcSignature(Uint8List payload, {int? chainId, bool isEIP1559 = false}) =>
|
||||||
|
throw UnimplementedError("EvmLedgerCredentials.signToEcSignature");
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<MsgSignature> signToSignature(Uint8List payload,
|
||||||
|
{int? chainId, bool isEIP1559 = false}) async {
|
||||||
|
if (ledgerDevice == null && ledger?.devices.isNotEmpty != true) {
|
||||||
|
throw DeviceNotConnectedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
final sig = await ethereumLedgerApp!.signTransaction(device, payload);
|
||||||
|
|
||||||
|
final v = sig[0].toInt();
|
||||||
|
final r = bytesToHex(sig.sublist(1, 1 + 32));
|
||||||
|
final s = bytesToHex(sig.sublist(1 + 32, 1 + 32 + 32));
|
||||||
|
|
||||||
|
var truncChainId = chainId ?? 1;
|
||||||
|
while (truncChainId.bitLength > 32) {
|
||||||
|
truncChainId >>= 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
final truncTarget = truncChainId * 2 + 35;
|
||||||
|
|
||||||
|
int parity = v;
|
||||||
|
if (truncTarget & 0xff == v) {
|
||||||
|
parity = 0;
|
||||||
|
} else if ((truncTarget + 1) & 0xff == v) {
|
||||||
|
parity = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://github.com/ethereumjs/ethereumjs-util/blob/8ffe697fafb33cefc7b7ec01c11e3a7da787fe0e/src/signature.ts#L26
|
||||||
|
int chainIdV;
|
||||||
|
if (isEIP1559) {
|
||||||
|
chainIdV = v;
|
||||||
|
} else {
|
||||||
|
chainIdV = chainId != null ? (parity + (chainId * 2 + 35)) : parity;
|
||||||
|
}
|
||||||
|
|
||||||
|
return MsgSignature(BigInt.parse(r, radix: 16), BigInt.parse(s, radix: 16), chainIdV);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<Uint8List> signPersonalMessage(Uint8List payload, {int? chainId}) async {
|
||||||
|
if (isNotConnected) throw DeviceNotConnectedException();
|
||||||
|
|
||||||
|
final sig = await ethereumLedgerApp!.signMessage(device, payload);
|
||||||
|
|
||||||
|
final r = sig.sublist(1, 1 + 32);
|
||||||
|
final s = sig.sublist(1 + 32, 1 + 32 + 32);
|
||||||
|
final v = [sig[0]];
|
||||||
|
|
||||||
|
// https://github.com/ethereumjs/ethereumjs-util/blob/8ffe697fafb33cefc7b7ec01c11e3a7da787fe0e/src/signature.ts#L63
|
||||||
|
return Uint8List.fromList(r + s + v);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Uint8List signPersonalMessageToUint8List(Uint8List payload, {int? chainId}) =>
|
||||||
|
throw UnimplementedError("EvmLedgerCredentials.signPersonalMessageToUint8List");
|
||||||
|
|
||||||
|
Future<void> provideERC20Info(String erc20ContractAddress, int chainId) async {
|
||||||
|
if (isNotConnected) throw DeviceNotConnectedException();
|
||||||
|
|
||||||
|
try {
|
||||||
|
await ethereumLedgerApp!.getAndProvideERC20TokenInformation(device,
|
||||||
|
erc20ContractAddress: erc20ContractAddress, chainId: chainId);
|
||||||
|
} on LedgerException catch (e) {
|
||||||
|
if (e.errorCode != -28672) rethrow;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool get isNotConnected => (ledgerDevice ?? ledger?.devices.firstOrNull) == null;
|
||||||
|
|
||||||
|
LedgerDevice get device => ledgerDevice ?? ledger!.devices.first;
|
||||||
|
}
|
|
@ -13,7 +13,6 @@ dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
web3dart: ^2.7.1
|
web3dart: ^2.7.1
|
||||||
erc20: ^1.0.1
|
|
||||||
bip39: ^1.0.6
|
bip39: ^1.0.6
|
||||||
bip32: ^2.0.0
|
bip32: ^2.0.0
|
||||||
hex: ^0.2.0
|
hex: ^0.2.0
|
||||||
|
@ -23,6 +22,20 @@ dependencies:
|
||||||
shared_preferences: ^2.0.15
|
shared_preferences: ^2.0.15
|
||||||
cw_core:
|
cw_core:
|
||||||
path: ../cw_core
|
path: ../cw_core
|
||||||
|
ledger_flutter: ^1.0.1
|
||||||
|
ledger_ethereum:
|
||||||
|
git:
|
||||||
|
url: https://github.com/cake-tech/ledger-ethereum.git
|
||||||
|
|
||||||
|
dependency_overrides:
|
||||||
|
web3dart:
|
||||||
|
git:
|
||||||
|
url: https://github.com/cake-tech/web3dart.git
|
||||||
|
ref: cake
|
||||||
|
ledger_flutter:
|
||||||
|
git:
|
||||||
|
url: https://github.com/cake-tech/ledger-flutter.git
|
||||||
|
ref: cake
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
|
@ -56,7 +56,8 @@ class HavenRestoreWalletFromKeysCredentials extends WalletCredentials {
|
||||||
class HavenWalletService extends WalletService<
|
class HavenWalletService extends WalletService<
|
||||||
HavenNewWalletCredentials,
|
HavenNewWalletCredentials,
|
||||||
HavenRestoreWalletFromSeedCredentials,
|
HavenRestoreWalletFromSeedCredentials,
|
||||||
HavenRestoreWalletFromKeysCredentials> {
|
HavenRestoreWalletFromKeysCredentials,
|
||||||
|
HavenNewWalletCredentials> {
|
||||||
HavenWalletService(this.walletInfoSource);
|
HavenWalletService(this.walletInfoSource);
|
||||||
|
|
||||||
final Box<WalletInfo> walletInfoSource;
|
final Box<WalletInfo> walletInfoSource;
|
||||||
|
@ -172,6 +173,11 @@ class HavenWalletService extends WalletService<
|
||||||
await walletInfoSource.put(currentWalletInfo.key, newWalletInfo);
|
await walletInfoSource.put(currentWalletInfo.key, newWalletInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<HavenWallet> restoreFromHardwareWallet(HavenNewWalletCredentials credentials) {
|
||||||
|
throw UnimplementedError("Restoring a Haven wallet from a hardware wallet is not yet supported!");
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<HavenWallet> restoreFromKeys(
|
Future<HavenWallet> restoreFromKeys(
|
||||||
HavenRestoreWalletFromKeysCredentials credentials, {bool? isTestnet}) async {
|
HavenRestoreWalletFromKeysCredentials credentials, {bool? isTestnet}) async {
|
||||||
|
|
|
@ -17,6 +17,9 @@ typedef restore_wallet_from_keys = Int8 Function(Pointer<Utf8>, Pointer<Utf8>, P
|
||||||
typedef restore_wallet_from_spend_key = Int8 Function(Pointer<Utf8>, Pointer<Utf8>, Pointer<Utf8>,
|
typedef restore_wallet_from_spend_key = Int8 Function(Pointer<Utf8>, Pointer<Utf8>, Pointer<Utf8>,
|
||||||
Pointer<Utf8>, Pointer<Utf8>, Int32, Int64, Pointer<Utf8>);
|
Pointer<Utf8>, Pointer<Utf8>, Int32, Int64, Pointer<Utf8>);
|
||||||
|
|
||||||
|
// typedef restore_wallet_from_device = Int8 Function(Pointer<Utf8>, Pointer<Utf8>, Pointer<Utf8>,
|
||||||
|
// Int32, Int64, Pointer<Utf8>);
|
||||||
|
|
||||||
typedef is_wallet_exist = Int8 Function(Pointer<Utf8>);
|
typedef is_wallet_exist = Int8 Function(Pointer<Utf8>);
|
||||||
|
|
||||||
typedef load_wallet = Int8 Function(Pointer<Utf8>, Pointer<Utf8>, Int8);
|
typedef load_wallet = Int8 Function(Pointer<Utf8>, Pointer<Utf8>, Int8);
|
||||||
|
|
|
@ -17,6 +17,9 @@ typedef RestoreWalletFromKeys = int Function(Pointer<Utf8>, Pointer<Utf8>,
|
||||||
typedef RestoreWalletFromSpendKey = int Function(Pointer<Utf8>, Pointer<Utf8>, Pointer<Utf8>,
|
typedef RestoreWalletFromSpendKey = int Function(Pointer<Utf8>, Pointer<Utf8>, Pointer<Utf8>,
|
||||||
Pointer<Utf8>, Pointer<Utf8>, int, int, Pointer<Utf8>);
|
Pointer<Utf8>, Pointer<Utf8>, int, int, Pointer<Utf8>);
|
||||||
|
|
||||||
|
typedef RestoreWalletFromDevice = int Function(Pointer<Utf8>, Pointer<Utf8>, Pointer<Utf8>,
|
||||||
|
int, int, Pointer<Utf8>);
|
||||||
|
|
||||||
typedef IsWalletExist = int Function(Pointer<Utf8>);
|
typedef IsWalletExist = int Function(Pointer<Utf8>);
|
||||||
|
|
||||||
typedef LoadWallet = int Function(Pointer<Utf8>, Pointer<Utf8>, int);
|
typedef LoadWallet = int Function(Pointer<Utf8>, Pointer<Utf8>, int);
|
||||||
|
|
|
@ -31,6 +31,11 @@ final restoreWalletFromSpendKeyNative = moneroApi
|
||||||
'restore_wallet_from_spend_key')
|
'restore_wallet_from_spend_key')
|
||||||
.asFunction<RestoreWalletFromSpendKey>();
|
.asFunction<RestoreWalletFromSpendKey>();
|
||||||
|
|
||||||
|
// final restoreWalletFromDeviceNative = moneroApi
|
||||||
|
// .lookup<NativeFunction<restore_wallet_from_device>>(
|
||||||
|
// 'restore_wallet_from_device')
|
||||||
|
// .asFunction<RestoreWalletFromDevice>();
|
||||||
|
|
||||||
final isWalletExistNative = moneroApi
|
final isWalletExistNative = moneroApi
|
||||||
.lookup<NativeFunction<is_wallet_exist>>('is_wallet_exist')
|
.lookup<NativeFunction<is_wallet_exist>>('is_wallet_exist')
|
||||||
.asFunction<IsWalletExist>();
|
.asFunction<IsWalletExist>();
|
||||||
|
@ -185,6 +190,38 @@ void restoreWalletFromSpendKeySync(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// void restoreMoneroWalletFromDevice(
|
||||||
|
// {required String path,
|
||||||
|
// required String password,
|
||||||
|
// required String deviceName,
|
||||||
|
// int nettype = 0,
|
||||||
|
// int restoreHeight = 0}) {
|
||||||
|
//
|
||||||
|
// final pathPointer = path.toNativeUtf8();
|
||||||
|
// final passwordPointer = password.toNativeUtf8();
|
||||||
|
// final deviceNamePointer = deviceName.toNativeUtf8();
|
||||||
|
// final errorMessagePointer = ''.toNativeUtf8();
|
||||||
|
//
|
||||||
|
// final isWalletRestored = restoreWalletFromDeviceNative(
|
||||||
|
// pathPointer,
|
||||||
|
// passwordPointer,
|
||||||
|
// deviceNamePointer,
|
||||||
|
// nettype,
|
||||||
|
// restoreHeight,
|
||||||
|
// errorMessagePointer) != 0;
|
||||||
|
//
|
||||||
|
// calloc.free(pathPointer);
|
||||||
|
// calloc.free(passwordPointer);
|
||||||
|
//
|
||||||
|
// storeSync();
|
||||||
|
//
|
||||||
|
// if (!isWalletRestored) {
|
||||||
|
// throw WalletRestoreFromKeysException(
|
||||||
|
// message: convertUTF8ToString(pointer: errorMessagePointer));
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
void loadWallet({
|
void loadWallet({
|
||||||
required String path,
|
required String path,
|
||||||
required String password,
|
required String password,
|
||||||
|
|
|
@ -686,7 +686,7 @@ abstract class MoneroWalletBase
|
||||||
void setExceptionHandler(void Function(FlutterErrorDetails) e) => onError = e;
|
void setExceptionHandler(void Function(FlutterErrorDetails) e) => onError = e;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String signMessage(String message, {String? address}) {
|
Future<String> signMessage(String message, {String? address}) async {
|
||||||
final useAddress = address ?? "";
|
final useAddress = address ?? "";
|
||||||
return monero_wallet.signMessage(message, address: useAddress);
|
return monero_wallet.signMessage(message, address: useAddress);
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ class MoneroRestoreWalletFromKeysCredentials extends WalletCredentials {
|
||||||
}
|
}
|
||||||
|
|
||||||
class MoneroWalletService extends WalletService<MoneroNewWalletCredentials,
|
class MoneroWalletService extends WalletService<MoneroNewWalletCredentials,
|
||||||
MoneroRestoreWalletFromSeedCredentials, MoneroRestoreWalletFromKeysCredentials> {
|
MoneroRestoreWalletFromSeedCredentials, MoneroRestoreWalletFromKeysCredentials, MoneroNewWalletCredentials> {
|
||||||
MoneroWalletService(this.walletInfoSource, this.unspentCoinsInfoSource);
|
MoneroWalletService(this.walletInfoSource, this.unspentCoinsInfoSource);
|
||||||
|
|
||||||
final Box<WalletInfo> walletInfoSource;
|
final Box<WalletInfo> walletInfoSource;
|
||||||
|
@ -227,6 +227,11 @@ class MoneroWalletService extends WalletService<MoneroNewWalletCredentials,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<MoneroWallet> restoreFromHardwareWallet(MoneroNewWalletCredentials credentials) {
|
||||||
|
throw UnimplementedError("Restoring a Monero wallet from a hardware wallet is not yet supported!");
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<MoneroWallet> restoreFromSeed(MoneroRestoreWalletFromSeedCredentials credentials,
|
Future<MoneroWallet> restoreFromSeed(MoneroRestoreWalletFromSeedCredentials credentials,
|
||||||
{bool? isTestnet}) async {
|
{bool? isTestnet}) async {
|
||||||
|
|
|
@ -14,7 +14,7 @@ import 'package:nanodart/nanodart.dart';
|
||||||
import 'package:nanoutil/nanoutil.dart';
|
import 'package:nanoutil/nanoutil.dart';
|
||||||
|
|
||||||
class NanoWalletService extends WalletService<NanoNewWalletCredentials,
|
class NanoWalletService extends WalletService<NanoNewWalletCredentials,
|
||||||
NanoRestoreWalletFromSeedCredentials, NanoRestoreWalletFromKeysCredentials> {
|
NanoRestoreWalletFromSeedCredentials, NanoRestoreWalletFromKeysCredentials, NanoNewWalletCredentials> {
|
||||||
NanoWalletService(this.walletInfoSource);
|
NanoWalletService(this.walletInfoSource);
|
||||||
|
|
||||||
final Box<WalletInfo> walletInfoSource;
|
final Box<WalletInfo> walletInfoSource;
|
||||||
|
@ -109,6 +109,11 @@ class NanoWalletService extends WalletService<NanoNewWalletCredentials,
|
||||||
return wallet;
|
return wallet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<NanoWallet> restoreFromHardwareWallet(NanoNewWalletCredentials credentials) {
|
||||||
|
throw UnimplementedError("Restoring a Nano wallet from a hardware wallet is not yet supported!");
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<NanoWallet> restoreFromSeed(NanoRestoreWalletFromSeedCredentials credentials, {bool? isTestnet}) async {
|
Future<NanoWallet> restoreFromSeed(NanoRestoreWalletFromSeedCredentials credentials, {bool? isTestnet}) async {
|
||||||
if (credentials.mnemonic.contains(' ')) {
|
if (credentials.mnemonic.contains(' ')) {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import 'package:bip39/bip39.dart' as bip39;
|
import 'package:bip39/bip39.dart' as bip39;
|
||||||
import 'package:cw_core/wallet_base.dart';
|
import 'package:cw_core/wallet_base.dart';
|
||||||
|
import 'package:cw_core/wallet_info.dart';
|
||||||
import 'package:cw_core/wallet_type.dart';
|
import 'package:cw_core/wallet_type.dart';
|
||||||
import 'package:cw_evm/evm_chain_wallet_creation_credentials.dart';
|
import 'package:cw_evm/evm_chain_wallet_creation_credentials.dart';
|
||||||
import 'package:cw_evm/evm_chain_wallet_service.dart';
|
import 'package:cw_evm/evm_chain_wallet_service.dart';
|
||||||
|
@ -86,6 +87,29 @@ class PolygonWalletService extends EVMChainWalletService<PolygonWallet> {
|
||||||
return wallet;
|
return wallet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<PolygonWallet> restoreFromHardwareWallet(
|
||||||
|
EVMChainRestoreWalletFromHardware credentials) async {
|
||||||
|
credentials.walletInfo!.derivationInfo = DerivationInfo(
|
||||||
|
derivationType: DerivationType.bip39,
|
||||||
|
derivationPath: "m/44'/60'/${credentials.hwAccountData.accountIndex}'/0/0"
|
||||||
|
);
|
||||||
|
credentials.walletInfo!.hardwareWalletType = credentials.hardwareWalletType;
|
||||||
|
credentials.walletInfo!.address = credentials.hwAccountData.address;
|
||||||
|
|
||||||
|
final wallet = PolygonWallet(
|
||||||
|
walletInfo: credentials.walletInfo!,
|
||||||
|
password: credentials.password!,
|
||||||
|
client: client,
|
||||||
|
);
|
||||||
|
|
||||||
|
await wallet.init();
|
||||||
|
wallet.addInitialTokens();
|
||||||
|
await wallet.save();
|
||||||
|
|
||||||
|
return wallet;
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<PolygonWallet> restoreFromSeed(EVMChainRestoreWalletFromSeedCredentials credentials,
|
Future<PolygonWallet> restoreFromSeed(EVMChainRestoreWalletFromSeedCredentials credentials,
|
||||||
{bool? isTestnet}) async {
|
{bool? isTestnet}) async {
|
||||||
|
|
|
@ -23,6 +23,11 @@ dependencies:
|
||||||
bip39: ^1.0.6
|
bip39: ^1.0.6
|
||||||
collection: ^1.17.1
|
collection: ^1.17.1
|
||||||
|
|
||||||
|
dependency_overrides:
|
||||||
|
web3dart:
|
||||||
|
git:
|
||||||
|
url: https://github.com/cake-tech/web3dart.git
|
||||||
|
ref: cake
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
|
@ -2,7 +2,10 @@ import 'dart:io';
|
||||||
|
|
||||||
import 'package:bip39/bip39.dart' as bip39;
|
import 'package:bip39/bip39.dart' as bip39;
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
|
import 'package:cw_core/balance.dart';
|
||||||
import 'package:cw_core/pathForWallet.dart';
|
import 'package:cw_core/pathForWallet.dart';
|
||||||
|
import 'package:cw_core/transaction_history.dart';
|
||||||
|
import 'package:cw_core/transaction_info.dart';
|
||||||
import 'package:cw_core/wallet_base.dart';
|
import 'package:cw_core/wallet_base.dart';
|
||||||
import 'package:cw_core/wallet_info.dart';
|
import 'package:cw_core/wallet_info.dart';
|
||||||
import 'package:cw_core/wallet_service.dart';
|
import 'package:cw_core/wallet_service.dart';
|
||||||
|
@ -13,7 +16,7 @@ import 'package:cw_solana/solana_wallet_creation_credentials.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
|
||||||
class SolanaWalletService extends WalletService<SolanaNewWalletCredentials,
|
class SolanaWalletService extends WalletService<SolanaNewWalletCredentials,
|
||||||
SolanaRestoreWalletFromSeedCredentials, SolanaRestoreWalletFromPrivateKey> {
|
SolanaRestoreWalletFromSeedCredentials, SolanaRestoreWalletFromPrivateKey, SolanaNewWalletCredentials> {
|
||||||
SolanaWalletService(this.walletInfoSource);
|
SolanaWalletService(this.walletInfoSource);
|
||||||
|
|
||||||
final Box<WalletInfo> walletInfoSource;
|
final Box<WalletInfo> walletInfoSource;
|
||||||
|
@ -134,4 +137,10 @@ class SolanaWalletService extends WalletService<SolanaNewWalletCredentials,
|
||||||
|
|
||||||
await walletInfoSource.put(currentWalletInfo.key, newWalletInfo);
|
await walletInfoSource.put(currentWalletInfo.key, newWalletInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo>> restoreFromHardwareWallet(SolanaNewWalletCredentials credentials) {
|
||||||
|
// TODO: implement restoreFromHardwareWallet
|
||||||
|
throw UnimplementedError();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
||||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
||||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
||||||
|
9F46EE5E2BC11178009318F5 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 9F46EE5D2BC11178009318F5 /* PrivacyInfo.xcprivacy */; };
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
|
@ -40,6 +41,7 @@
|
||||||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
|
9F46EE5D2BC11178009318F5 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
|
||||||
AD0937B0140D5A4C24E73BEA /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
AD0937B0140D5A4C24E73BEA /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
|
@ -123,6 +125,7 @@
|
||||||
97C146FD1CF9000F007C117D /* Assets.xcassets */,
|
97C146FD1CF9000F007C117D /* Assets.xcassets */,
|
||||||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
|
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
|
||||||
97C147021CF9000F007C117D /* Info.plist */,
|
97C147021CF9000F007C117D /* Info.plist */,
|
||||||
|
9F46EE5D2BC11178009318F5 /* PrivacyInfo.xcprivacy */,
|
||||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
|
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
|
||||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
|
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
|
||||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
|
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
|
||||||
|
@ -196,6 +199,7 @@
|
||||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
|
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
|
||||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
||||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
||||||
|
9F46EE5E2BC11178009318F5 /* PrivacyInfo.xcprivacy in Resources */,
|
||||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
|
|
@ -208,6 +208,10 @@
|
||||||
<string>Enable Face ID for fast and secure access to wallets and private keys</string>
|
<string>Enable Face ID for fast and secure access to wallets and private keys</string>
|
||||||
<key>NSPhotoLibraryUsageDescription</key>
|
<key>NSPhotoLibraryUsageDescription</key>
|
||||||
<string>We need access to documents folder for getting access to open/save backup file</string>
|
<string>We need access to documents folder for getting access to open/save backup file</string>
|
||||||
|
<key>NSBluetoothPeripheralUsageDescription</key>
|
||||||
|
<string>We need access to Bluetooth in order to connect to your hardware wallet when needed</string>
|
||||||
|
<key>NSBluetoothAlwaysUsageDescription</key>
|
||||||
|
<string>We need access to Bluetooth in order to connect to your hardware wallet when needed</string>
|
||||||
<key>UIBackgroundModes</key>
|
<key>UIBackgroundModes</key>
|
||||||
<array>
|
<array>
|
||||||
<string>fetch</string>
|
<string>fetch</string>
|
||||||
|
|
24
ios/Runner/PrivacyInfo.xcprivacy
Normal file
24
ios/Runner/PrivacyInfo.xcprivacy
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<!--
|
||||||
|
PrivacyInfo.xcprivacy
|
||||||
|
|
||||||
|
|
||||||
|
Created by Omar Hatem on 06/04/2024.
|
||||||
|
Copyright (c) 2024 Cake Labs. All rights reserved.
|
||||||
|
-->
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>NSPrivacyAccessedAPITypes</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>NSPrivacyAccessedAPIType</key>
|
||||||
|
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
||||||
|
<key>NSPrivacyAccessedAPITypeReasons</key>
|
||||||
|
<array>
|
||||||
|
<string>CA92.1</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
|
@ -1,5 +1,6 @@
|
||||||
import 'package:cake_wallet/buy/buy_amount.dart';
|
import 'package:cake_wallet/buy/buy_amount.dart';
|
||||||
import 'package:cake_wallet/buy/order.dart';
|
import 'package:cake_wallet/buy/order.dart';
|
||||||
|
import 'package:cake_wallet/view_model/hardware_wallet/ledger_view_model.dart';
|
||||||
import 'package:cw_core/wallet_base.dart';
|
import 'package:cw_core/wallet_base.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
@ -7,10 +8,12 @@ abstract class BuyProvider {
|
||||||
BuyProvider({
|
BuyProvider({
|
||||||
required this.wallet,
|
required this.wallet,
|
||||||
required this.isTestEnvironment,
|
required this.isTestEnvironment,
|
||||||
|
required this.ledgerVM,
|
||||||
});
|
});
|
||||||
|
|
||||||
final WalletBase wallet;
|
final WalletBase wallet;
|
||||||
final bool isTestEnvironment;
|
final bool isTestEnvironment;
|
||||||
|
final LedgerViewModel? ledgerVM;
|
||||||
|
|
||||||
String get title;
|
String get title;
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,11 @@ import 'dart:convert';
|
||||||
import 'package:cake_wallet/buy/buy_provider.dart';
|
import 'package:cake_wallet/buy/buy_provider.dart';
|
||||||
import 'package:cake_wallet/generated/i18n.dart';
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
import 'package:cake_wallet/routes.dart';
|
import 'package:cake_wallet/routes.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/connect_device/connect_device_page.dart';
|
||||||
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
||||||
import 'package:cake_wallet/utils/device_info.dart';
|
import 'package:cake_wallet/utils/device_info.dart';
|
||||||
import 'package:cake_wallet/utils/show_pop_up.dart';
|
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||||
|
import 'package:cake_wallet/view_model/hardware_wallet/ledger_view_model.dart';
|
||||||
import 'package:cw_core/wallet_base.dart';
|
import 'package:cw_core/wallet_base.dart';
|
||||||
import 'package:cw_core/wallet_type.dart';
|
import 'package:cw_core/wallet_type.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
@ -13,8 +15,8 @@ import 'package:http/http.dart' as http;
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
class DFXBuyProvider extends BuyProvider {
|
class DFXBuyProvider extends BuyProvider {
|
||||||
DFXBuyProvider({required WalletBase wallet, bool isTestEnvironment = false})
|
DFXBuyProvider({required WalletBase wallet, bool isTestEnvironment = false, LedgerViewModel? ledgerVM})
|
||||||
: super(wallet: wallet, isTestEnvironment: isTestEnvironment);
|
: super(wallet: wallet, isTestEnvironment: isTestEnvironment, ledgerVM: ledgerVM);
|
||||||
|
|
||||||
static const _baseUrl = 'api.dfx.swiss';
|
static const _baseUrl = 'api.dfx.swiss';
|
||||||
// static const _signMessagePath = '/v1/auth/signMessage';
|
// static const _signMessagePath = '/v1/auth/signMessage';
|
||||||
|
@ -91,7 +93,7 @@ class DFXBuyProvider extends BuyProvider {
|
||||||
// }
|
// }
|
||||||
|
|
||||||
Future<String> auth() async {
|
Future<String> auth() async {
|
||||||
final signMessage = getSignature(await getSignMessage());
|
final signMessage = await getSignature(await getSignMessage());
|
||||||
|
|
||||||
final requestBody = jsonEncode({
|
final requestBody = jsonEncode({
|
||||||
'wallet': walletName,
|
'wallet': walletName,
|
||||||
|
@ -118,7 +120,7 @@ class DFXBuyProvider extends BuyProvider {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String getSignature(String message) {
|
Future<String> getSignature(String message) async {
|
||||||
switch (wallet.type) {
|
switch (wallet.type) {
|
||||||
case WalletType.ethereum:
|
case WalletType.ethereum:
|
||||||
case WalletType.polygon:
|
case WalletType.polygon:
|
||||||
|
@ -135,6 +137,20 @@ class DFXBuyProvider extends BuyProvider {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> launchProvider(BuildContext context, bool? isBuyAction) async {
|
Future<void> launchProvider(BuildContext context, bool? isBuyAction) async {
|
||||||
|
if (wallet.isHardwareWallet) {
|
||||||
|
if (!ledgerVM!.isConnected) {
|
||||||
|
await Navigator.of(context).pushNamed(Routes.connectDevices,
|
||||||
|
arguments: ConnectDevicePageParams(
|
||||||
|
walletType: wallet.walletInfo.type,
|
||||||
|
onConnectDevice: (BuildContext context, LedgerViewModel ledgerVM) {
|
||||||
|
ledgerVM.setLedger(wallet);
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
}));
|
||||||
|
} else {
|
||||||
|
ledgerVM!.setLedger(wallet);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final assetOut = this.assetOut;
|
final assetOut = this.assetOut;
|
||||||
final blockchain = this.blockchain;
|
final blockchain = this.blockchain;
|
||||||
|
|
|
@ -14,7 +14,6 @@ import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
||||||
import 'package:cake_wallet/store/settings_store.dart';
|
import 'package:cake_wallet/store/settings_store.dart';
|
||||||
import 'package:cake_wallet/themes/theme_base.dart';
|
import 'package:cake_wallet/themes/theme_base.dart';
|
||||||
import 'package:cake_wallet/utils/device_info.dart';
|
import 'package:cake_wallet/utils/device_info.dart';
|
||||||
import 'package:crypto/crypto.dart';
|
|
||||||
import 'package:cw_core/crypto_currency.dart';
|
import 'package:cw_core/crypto_currency.dart';
|
||||||
import 'package:cw_core/wallet_base.dart';
|
import 'package:cw_core/wallet_base.dart';
|
||||||
import 'package:cw_core/wallet_type.dart';
|
import 'package:cw_core/wallet_type.dart';
|
||||||
|
@ -30,7 +29,7 @@ class MoonPayProvider extends BuyProvider {
|
||||||
}) : baseSellUrl = isTestEnvironment ? _baseSellTestUrl : _baseSellProductUrl,
|
}) : baseSellUrl = isTestEnvironment ? _baseSellTestUrl : _baseSellProductUrl,
|
||||||
baseBuyUrl = isTestEnvironment ? _baseBuyTestUrl : _baseBuyProductUrl,
|
baseBuyUrl = isTestEnvironment ? _baseBuyTestUrl : _baseBuyProductUrl,
|
||||||
this._settingsStore = settingsStore,
|
this._settingsStore = settingsStore,
|
||||||
super(wallet: wallet, isTestEnvironment: isTestEnvironment);
|
super(wallet: wallet, isTestEnvironment: isTestEnvironment, ledgerVM: null);
|
||||||
|
|
||||||
final SettingsStore _settingsStore;
|
final SettingsStore _settingsStore;
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ import 'package:url_launcher/url_launcher.dart';
|
||||||
class OnRamperBuyProvider extends BuyProvider {
|
class OnRamperBuyProvider extends BuyProvider {
|
||||||
OnRamperBuyProvider(this._settingsStore,
|
OnRamperBuyProvider(this._settingsStore,
|
||||||
{required WalletBase wallet, bool isTestEnvironment = false})
|
{required WalletBase wallet, bool isTestEnvironment = false})
|
||||||
: super(wallet: wallet, isTestEnvironment: isTestEnvironment);
|
: super(wallet: wallet, isTestEnvironment: isTestEnvironment, ledgerVM: null);
|
||||||
|
|
||||||
static const _baseUrl = 'buy.onramper.com';
|
static const _baseUrl = 'buy.onramper.com';
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,11 @@ import 'dart:convert';
|
||||||
import 'package:cake_wallet/.secrets.g.dart' as secrets;
|
import 'package:cake_wallet/.secrets.g.dart' as secrets;
|
||||||
import 'package:cake_wallet/buy/buy_provider.dart';
|
import 'package:cake_wallet/buy/buy_provider.dart';
|
||||||
import 'package:cake_wallet/generated/i18n.dart';
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
|
import 'package:cake_wallet/routes.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/connect_device/connect_device_page.dart';
|
||||||
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
||||||
import 'package:cake_wallet/utils/show_pop_up.dart';
|
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||||
|
import 'package:cake_wallet/view_model/hardware_wallet/ledger_view_model.dart';
|
||||||
import 'package:cw_core/wallet_base.dart';
|
import 'package:cw_core/wallet_base.dart';
|
||||||
import 'package:cw_core/wallet_type.dart';
|
import 'package:cw_core/wallet_type.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
@ -12,8 +15,8 @@ import 'package:http/http.dart' as http;
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
class RobinhoodBuyProvider extends BuyProvider {
|
class RobinhoodBuyProvider extends BuyProvider {
|
||||||
RobinhoodBuyProvider({required WalletBase wallet, bool isTestEnvironment = false})
|
RobinhoodBuyProvider({required WalletBase wallet, bool isTestEnvironment = false, LedgerViewModel? ledgerVM})
|
||||||
: super(wallet: wallet, isTestEnvironment: isTestEnvironment);
|
: super(wallet: wallet, isTestEnvironment: isTestEnvironment, ledgerVM: ledgerVM);
|
||||||
|
|
||||||
static const _baseUrl = 'applink.robinhood.com';
|
static const _baseUrl = 'applink.robinhood.com';
|
||||||
static const _cIdBaseUrl = 'exchange-helper.cakewallet.com';
|
static const _cIdBaseUrl = 'exchange-helper.cakewallet.com';
|
||||||
|
@ -34,7 +37,7 @@ class RobinhoodBuyProvider extends BuyProvider {
|
||||||
|
|
||||||
String get _apiSecret => secrets.exchangeHelperApiKey;
|
String get _apiSecret => secrets.exchangeHelperApiKey;
|
||||||
|
|
||||||
String getSignature(String message) {
|
Future<String> getSignature(String message) {
|
||||||
switch (wallet.type) {
|
switch (wallet.type) {
|
||||||
case WalletType.ethereum:
|
case WalletType.ethereum:
|
||||||
case WalletType.polygon:
|
case WalletType.polygon:
|
||||||
|
@ -53,7 +56,7 @@ class RobinhoodBuyProvider extends BuyProvider {
|
||||||
final valid_until = (DateTime.now().millisecondsSinceEpoch / 1000).round() + 10;
|
final valid_until = (DateTime.now().millisecondsSinceEpoch / 1000).round() + 10;
|
||||||
final message = "$_apiSecret:${valid_until}";
|
final message = "$_apiSecret:${valid_until}";
|
||||||
|
|
||||||
final signature = getSignature(message);
|
final signature = await getSignature(message);
|
||||||
|
|
||||||
final uri = Uri.https(_cIdBaseUrl, "/api/robinhood");
|
final uri = Uri.https(_cIdBaseUrl, "/api/robinhood");
|
||||||
|
|
||||||
|
@ -84,6 +87,20 @@ class RobinhoodBuyProvider extends BuyProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> launchProvider(BuildContext context, bool? isBuyAction) async {
|
Future<void> launchProvider(BuildContext context, bool? isBuyAction) async {
|
||||||
|
if (wallet.isHardwareWallet) {
|
||||||
|
if (!ledgerVM!.isConnected) {
|
||||||
|
await Navigator.of(context).pushNamed(Routes.connectDevices,
|
||||||
|
arguments: ConnectDevicePageParams(
|
||||||
|
walletType: wallet.walletInfo.type,
|
||||||
|
onConnectDevice: (BuildContext context, LedgerViewModel ledgerVM) {
|
||||||
|
ledgerVM.setLedger(wallet);
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
}));
|
||||||
|
} else {
|
||||||
|
ledgerVM!.setLedger(wallet);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final uri = await requestProviderUrl();
|
final uri = await requestProviderUrl();
|
||||||
await launchUrl(uri, mode: LaunchMode.externalApplication);
|
await launchUrl(uri, mode: LaunchMode.externalApplication);
|
||||||
|
|
|
@ -14,7 +14,7 @@ import 'package:cake_wallet/.secrets.g.dart' as secrets;
|
||||||
class WyreBuyProvider extends BuyProvider {
|
class WyreBuyProvider extends BuyProvider {
|
||||||
WyreBuyProvider({required WalletBase wallet, bool isTestEnvironment = false})
|
WyreBuyProvider({required WalletBase wallet, bool isTestEnvironment = false})
|
||||||
: baseApiUrl = isTestEnvironment ? _baseTestApiUrl : _baseProductApiUrl,
|
: baseApiUrl = isTestEnvironment ? _baseTestApiUrl : _baseProductApiUrl,
|
||||||
super(wallet: wallet, isTestEnvironment: isTestEnvironment);
|
super(wallet: wallet, isTestEnvironment: isTestEnvironment, ledgerVM: null);
|
||||||
|
|
||||||
static const _baseTestApiUrl = 'https://api.testwyre.com';
|
static const _baseTestApiUrl = 'https://api.testwyre.com';
|
||||||
static const _baseProductApiUrl = 'https://api.sendwyre.com';
|
static const _baseProductApiUrl = 'https://api.sendwyre.com';
|
||||||
|
|
|
@ -101,4 +101,19 @@ class WalletCreationService {
|
||||||
|
|
||||||
return wallet;
|
return wallet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<WalletBase> restoreFromHardwareWallet(WalletCredentials credentials) async {
|
||||||
|
checkIfExists(credentials.name);
|
||||||
|
final password = generateWalletPassword();
|
||||||
|
credentials.password = password;
|
||||||
|
await keyService.saveWalletPassword(password: password, walletName: credentials.name);
|
||||||
|
final wallet = await _service!.restoreFromHardwareWallet(credentials);
|
||||||
|
|
||||||
|
if (wallet.type == WalletType.monero) {
|
||||||
|
await sharedPreferences.setBool(
|
||||||
|
PreferencesKey.moneroWalletUpdateV1Key(wallet.name), _isNewMoneroWalletPasswordUpdated);
|
||||||
|
}
|
||||||
|
|
||||||
|
return wallet;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
327
lib/di.dart
327
lib/di.dart
|
@ -1,236 +1,237 @@
|
||||||
|
import 'package:cake_wallet/.secrets.g.dart' as secrets;
|
||||||
import 'package:cake_wallet/anonpay/anonpay_api.dart';
|
import 'package:cake_wallet/anonpay/anonpay_api.dart';
|
||||||
import 'package:cake_wallet/anonpay/anonpay_info_base.dart';
|
import 'package:cake_wallet/anonpay/anonpay_info_base.dart';
|
||||||
import 'package:cake_wallet/anonpay/anonpay_invoice_info.dart';
|
import 'package:cake_wallet/anonpay/anonpay_invoice_info.dart';
|
||||||
|
import 'package:cake_wallet/anypay/any_pay_payment_committed_info.dart';
|
||||||
|
import 'package:cake_wallet/anypay/anypay_api.dart';
|
||||||
|
import 'package:cake_wallet/bitcoin/bitcoin.dart';
|
||||||
|
import 'package:cake_wallet/bitcoin_cash/bitcoin_cash.dart';
|
||||||
import 'package:cake_wallet/buy/moonpay/moonpay_provider.dart';
|
import 'package:cake_wallet/buy/moonpay/moonpay_provider.dart';
|
||||||
import 'package:cake_wallet/buy/onramper/onramper_buy_provider.dart';
|
import 'package:cake_wallet/buy/onramper/onramper_buy_provider.dart';
|
||||||
import 'package:cake_wallet/bitcoin_cash/bitcoin_cash.dart';
|
import 'package:cake_wallet/buy/order.dart';
|
||||||
import 'package:cake_wallet/buy/payfura/payfura_buy_provider.dart';
|
import 'package:cake_wallet/buy/payfura/payfura_buy_provider.dart';
|
||||||
|
import 'package:cake_wallet/buy/robinhood/robinhood_buy_provider.dart';
|
||||||
|
import 'package:cake_wallet/core/auth_service.dart';
|
||||||
|
import 'package:cake_wallet/core/backup_service.dart';
|
||||||
|
import 'package:cake_wallet/core/key_service.dart';
|
||||||
import 'package:cake_wallet/core/wallet_connect/wallet_connect_key_service.dart';
|
import 'package:cake_wallet/core/wallet_connect/wallet_connect_key_service.dart';
|
||||||
import 'package:cake_wallet/core/wallet_connect/wc_bottom_sheet_service.dart';
|
import 'package:cake_wallet/core/wallet_connect/wc_bottom_sheet_service.dart';
|
||||||
import 'package:cake_wallet/buy/robinhood/robinhood_buy_provider.dart';
|
|
||||||
import 'package:cake_wallet/core/wallet_connect/web3wallet_service.dart';
|
import 'package:cake_wallet/core/wallet_connect/web3wallet_service.dart';
|
||||||
|
import 'package:cake_wallet/core/wallet_creation_service.dart';
|
||||||
|
import 'package:cake_wallet/core/wallet_loading_service.dart';
|
||||||
import 'package:cake_wallet/core/yat_service.dart';
|
import 'package:cake_wallet/core/yat_service.dart';
|
||||||
import 'package:cake_wallet/entities/background_tasks.dart';
|
import 'package:cake_wallet/entities/background_tasks.dart';
|
||||||
|
import 'package:cake_wallet/entities/biometric_auth.dart';
|
||||||
|
import 'package:cake_wallet/entities/contact.dart';
|
||||||
|
import 'package:cake_wallet/entities/contact_record.dart';
|
||||||
import 'package:cake_wallet/entities/exchange_api_mode.dart';
|
import 'package:cake_wallet/entities/exchange_api_mode.dart';
|
||||||
import 'package:cake_wallet/entities/parse_address_from_domain.dart';
|
import 'package:cake_wallet/entities/parse_address_from_domain.dart';
|
||||||
import 'package:cake_wallet/src/screens/transaction_details/rbf_details_page.dart';
|
import 'package:cake_wallet/entities/qr_view_data.dart';
|
||||||
import 'package:cw_core/receive_page_option.dart';
|
import 'package:cake_wallet/entities/template.dart';
|
||||||
|
import 'package:cake_wallet/entities/transaction_description.dart';
|
||||||
import 'package:cake_wallet/ethereum/ethereum.dart';
|
import 'package:cake_wallet/ethereum/ethereum.dart';
|
||||||
import 'package:cake_wallet/nano/nano.dart';
|
import 'package:cake_wallet/exchange/exchange_template.dart';
|
||||||
|
import 'package:cake_wallet/exchange/trade.dart';
|
||||||
|
import 'package:cake_wallet/haven/haven.dart';
|
||||||
|
import 'package:cake_wallet/ionia/ionia_any_pay_payment_info.dart';
|
||||||
import 'package:cake_wallet/ionia/ionia_anypay.dart';
|
import 'package:cake_wallet/ionia/ionia_anypay.dart';
|
||||||
|
import 'package:cake_wallet/ionia/ionia_api.dart';
|
||||||
import 'package:cake_wallet/ionia/ionia_gift_card.dart';
|
import 'package:cake_wallet/ionia/ionia_gift_card.dart';
|
||||||
|
import 'package:cake_wallet/ionia/ionia_merchant.dart';
|
||||||
|
import 'package:cake_wallet/ionia/ionia_service.dart';
|
||||||
import 'package:cake_wallet/ionia/ionia_tip.dart';
|
import 'package:cake_wallet/ionia/ionia_tip.dart';
|
||||||
|
import 'package:cake_wallet/monero/monero.dart';
|
||||||
|
import 'package:cake_wallet/nano/nano.dart';
|
||||||
import 'package:cake_wallet/polygon/polygon.dart';
|
import 'package:cake_wallet/polygon/polygon.dart';
|
||||||
|
import 'package:cake_wallet/reactions/on_authentication_state_change.dart';
|
||||||
import 'package:cake_wallet/routes.dart';
|
import 'package:cake_wallet/routes.dart';
|
||||||
import 'package:cake_wallet/solana/solana.dart';
|
import 'package:cake_wallet/solana/solana.dart';
|
||||||
import 'package:cake_wallet/src/screens/anonpay_details/anonpay_details_page.dart';
|
import 'package:cake_wallet/src/screens/anonpay_details/anonpay_details_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/auth/auth_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/backup/backup_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/backup/edit_backup_password_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/buy/buy_options_page.dart';
|
import 'package:cake_wallet/src/screens/buy/buy_options_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/buy/buy_webview_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/buy/webview_page.dart';
|
import 'package:cake_wallet/src/screens/buy/webview_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/contact/contact_list_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/contact/contact_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/dashboard/dashboard_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/dashboard/desktop_dashboard_page.dart';
|
import 'package:cake_wallet/src/screens/dashboard/desktop_dashboard_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/dashboard/desktop_widgets/desktop_sidebar_wrapper.dart';
|
import 'package:cake_wallet/src/screens/dashboard/desktop_widgets/desktop_sidebar_wrapper.dart';
|
||||||
import 'package:cake_wallet/src/screens/dashboard/desktop_widgets/desktop_wallet_selection_dropdown.dart';
|
import 'package:cake_wallet/src/screens/dashboard/desktop_widgets/desktop_wallet_selection_dropdown.dart';
|
||||||
import 'package:cake_wallet/src/screens/dashboard/edit_token_page.dart';
|
import 'package:cake_wallet/src/screens/dashboard/edit_token_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/dashboard/home_settings_page.dart';
|
import 'package:cake_wallet/src/screens/dashboard/home_settings_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/dashboard/pages/address_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/dashboard/pages/balance_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/dashboard/pages/transactions_page.dart';
|
import 'package:cake_wallet/src/screens/dashboard/pages/transactions_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/exchange/exchange_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/exchange/exchange_template_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/exchange_trade/exchange_confirm_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/exchange_trade/exchange_trade_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/faq/faq_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_account_cards_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_account_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_custom_redeem_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_custom_tip_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_gift_card_detail_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_more_options_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_payment_status_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/ionia.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/monero_accounts/monero_account_edit_or_create_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/monero_accounts/monero_account_list_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/nano/nano_change_rep_page.dart';
|
import 'package:cake_wallet/src/screens/nano/nano_change_rep_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/nano_accounts/nano_account_edit_or_create_page.dart';
|
import 'package:cake_wallet/src/screens/nano_accounts/nano_account_edit_or_create_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/nano_accounts/nano_account_list_page.dart';
|
import 'package:cake_wallet/src/screens/nano_accounts/nano_account_list_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/new_wallet/new_wallet_type_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/nodes/node_create_or_edit_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/nodes/pow_node_create_or_edit_page.dart';
|
import 'package:cake_wallet/src/screens/nodes/pow_node_create_or_edit_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/order_details/order_details_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/pin_code/pin_code_widget.dart';
|
||||||
import 'package:cake_wallet/src/screens/receive/anonpay_invoice_page.dart';
|
import 'package:cake_wallet/src/screens/receive/anonpay_invoice_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/receive/anonpay_receive_page.dart';
|
import 'package:cake_wallet/src/screens/receive/anonpay_receive_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/receive/fullscreen_qr_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/receive/receive_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/rescan/rescan_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/restore/restore_from_backup_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/restore/restore_options_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/restore/wallet_restore_choose_derivation.dart';
|
import 'package:cake_wallet/src/screens/restore/wallet_restore_choose_derivation.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/restore/wallet_restore_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/seed/pre_seed_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/seed/wallet_seed_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/send/send_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/send/send_template_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/settings/connection_sync_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/display_settings_page.dart';
|
import 'package:cake_wallet/src/screens/settings/display_settings_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/domain_lookups_page.dart';
|
import 'package:cake_wallet/src/screens/settings/domain_lookups_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/manage_nodes_page.dart';
|
import 'package:cake_wallet/src/screens/settings/manage_nodes_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/other_settings_page.dart';
|
import 'package:cake_wallet/src/screens/settings/other_settings_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/privacy_page.dart';
|
import 'package:cake_wallet/src/screens/settings/privacy_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/security_backup_page.dart';
|
import 'package:cake_wallet/src/screens/settings/security_backup_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_custom_redeem_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_gift_card_detail_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_more_options_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/settings/connection_sync_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/settings/trocador_providers_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/settings/tor_page.dart';
|
import 'package:cake_wallet/src/screens/settings/tor_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/settings/trocador_providers_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/setup_2fa/modify_2fa_page.dart';
|
import 'package:cake_wallet/src/screens/setup_2fa/modify_2fa_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_info_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_qr_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa.dart';
|
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa.dart';
|
||||||
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_enter_code_page.dart';
|
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_enter_code_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_info_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_qr_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/setup_pin_code/setup_pin_code.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/subaddress/address_edit_or_create_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/support/support_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/support_chat/support_chat_page.dart';
|
import 'package:cake_wallet/src/screens/support_chat/support_chat_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/support_other_links/support_other_links_page.dart';
|
import 'package:cake_wallet/src/screens/support_other_links/support_other_links_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/wallet/wallet_edit_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/wallet_connect/wc_connections_listing_view.dart';
|
|
||||||
import 'package:cake_wallet/themes/theme_list.dart';
|
|
||||||
import 'package:cake_wallet/utils/device_info.dart';
|
|
||||||
import 'package:cake_wallet/store/anonpay/anonpay_transactions_store.dart';
|
|
||||||
import 'package:cake_wallet/utils/payment_request.dart';
|
|
||||||
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
|
||||||
import 'package:cake_wallet/view_model/dashboard/desktop_sidebar_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/anon_invoice_page_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/anonpay_details_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/dashboard/home_settings_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/dashboard/market_place_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/dashboard/nft_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/dashboard/receive_option_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/ionia/ionia_auth_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/ionia/ionia_buy_card_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/ionia/ionia_custom_tip_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/ionia/ionia_custom_redeem_view_model.dart';
|
|
||||||
import 'package:cake_wallet/ionia/ionia_service.dart';
|
|
||||||
import 'package:cake_wallet/ionia/ionia_api.dart';
|
|
||||||
import 'package:cake_wallet/ionia/ionia_merchant.dart';
|
|
||||||
import 'package:cake_wallet/monero/monero.dart';
|
|
||||||
import 'package:cake_wallet/haven/haven.dart';
|
|
||||||
import 'package:cake_wallet/bitcoin/bitcoin.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_account_cards_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_account_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_custom_tip_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/ionia.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/dashboard/pages/balance_page.dart';
|
|
||||||
import 'package:cake_wallet/view_model/ionia/ionia_account_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/ionia/ionia_gift_cards_list_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/ionia/ionia_purchase_merch_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/nano_account_list/nano_account_edit_or_create_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/nano_account_list/nano_account_list_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/node_list/pow_node_list_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/seed_type_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/set_up_2fa_viewmodel.dart';
|
|
||||||
import 'package:cake_wallet/view_model/restore/restore_from_qr_vm.dart';
|
|
||||||
import 'package:cake_wallet/view_model/settings/display_settings_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/settings/other_settings_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/settings/privacy_settings_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/settings/security_settings_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/advanced_privacy_settings_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/settings/trocador_providers_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/wallet_address_list/wallet_address_list_item.dart';
|
|
||||||
import 'package:cake_wallet/view_model/wallet_list/wallet_edit_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/wallet_list/wallet_list_item.dart';
|
|
||||||
import 'package:cake_wallet/view_model/wallet_restore_choose_derivation_view_model.dart';
|
|
||||||
import 'package:cw_core/erc20_token.dart';
|
|
||||||
import 'package:cw_core/nano_account.dart';
|
|
||||||
import 'package:cw_core/unspent_coins_info.dart';
|
|
||||||
import 'package:cake_wallet/core/backup_service.dart';
|
|
||||||
import 'package:cw_core/wallet_service.dart';
|
|
||||||
import 'package:cake_wallet/entities/biometric_auth.dart';
|
|
||||||
import 'package:cake_wallet/entities/contact_record.dart';
|
|
||||||
import 'package:cake_wallet/buy/order.dart';
|
|
||||||
import 'package:cake_wallet/entities/transaction_description.dart';
|
|
||||||
import 'package:cw_core/transaction_info.dart';
|
|
||||||
import 'package:cake_wallet/entities/contact.dart';
|
|
||||||
import 'package:cw_core/node.dart';
|
|
||||||
import 'package:cake_wallet/exchange/trade.dart';
|
|
||||||
import 'package:cake_wallet/reactions/on_authentication_state_change.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/backup/backup_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/backup/edit_backup_password_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/buy/buy_webview_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/contact/contact_list_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/contact/contact_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/exchange_trade/exchange_confirm_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/exchange_trade/exchange_trade_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/faq/faq_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/new_wallet/new_wallet_type_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/nodes/node_create_or_edit_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/order_details/order_details_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/pin_code/pin_code_widget.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/rescan/rescan_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/restore/restore_from_backup_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/restore/restore_options_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/restore/wallet_restore_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/seed/pre_seed_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/seed/wallet_seed_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/send/send_template_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/setup_pin_code/setup_pin_code.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/support/support_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/trade_details/trade_details_page.dart';
|
import 'package:cake_wallet/src/screens/trade_details/trade_details_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/transaction_details/rbf_details_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/transaction_details/transaction_details_page.dart';
|
import 'package:cake_wallet/src/screens/transaction_details/transaction_details_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/unspent_coins/unspent_coins_details_page.dart';
|
import 'package:cake_wallet/src/screens/unspent_coins/unspent_coins_details_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/unspent_coins/unspent_coins_list_page.dart';
|
import 'package:cake_wallet/src/screens/unspent_coins/unspent_coins_list_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/wallet/wallet_edit_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/wallet_connect/wc_connections_listing_view.dart';
|
||||||
import 'package:cake_wallet/src/screens/wallet_keys/wallet_keys_page.dart';
|
import 'package:cake_wallet/src/screens/wallet_keys/wallet_keys_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/exchange/exchange_page.dart';
|
import 'package:cake_wallet/src/screens/wallet_list/wallet_list_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/exchange/exchange_template_page.dart';
|
import 'package:cake_wallet/store/anonpay/anonpay_transactions_store.dart';
|
||||||
|
import 'package:cake_wallet/store/app_store.dart';
|
||||||
|
import 'package:cake_wallet/store/authentication_store.dart';
|
||||||
|
import 'package:cake_wallet/store/dashboard/fiat_conversion_store.dart';
|
||||||
import 'package:cake_wallet/store/dashboard/orders_store.dart';
|
import 'package:cake_wallet/store/dashboard/orders_store.dart';
|
||||||
|
import 'package:cake_wallet/store/dashboard/trade_filter_store.dart';
|
||||||
|
import 'package:cake_wallet/store/dashboard/trades_store.dart';
|
||||||
|
import 'package:cake_wallet/store/dashboard/transaction_filter_store.dart';
|
||||||
import 'package:cake_wallet/store/node_list_store.dart';
|
import 'package:cake_wallet/store/node_list_store.dart';
|
||||||
import 'package:cake_wallet/store/secret_store.dart';
|
import 'package:cake_wallet/store/secret_store.dart';
|
||||||
import 'package:cake_wallet/store/settings_store.dart';
|
import 'package:cake_wallet/store/settings_store.dart';
|
||||||
import 'package:cake_wallet/core/auth_service.dart';
|
import 'package:cake_wallet/store/templates/exchange_template_store.dart';
|
||||||
import 'package:cake_wallet/core/key_service.dart';
|
import 'package:cake_wallet/store/templates/send_template_store.dart';
|
||||||
import 'package:cw_core/wallet_info.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/monero_accounts/monero_account_list_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/monero_accounts/monero_account_edit_or_create_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/auth/auth_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/dashboard/dashboard_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/receive/receive_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/send/send_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/subaddress/address_edit_or_create_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/wallet_list/wallet_list_page.dart';
|
|
||||||
import 'package:cake_wallet/store/wallet_list_store.dart';
|
import 'package:cake_wallet/store/wallet_list_store.dart';
|
||||||
import 'package:cake_wallet/store/yat/yat_store.dart';
|
import 'package:cake_wallet/store/yat/yat_store.dart';
|
||||||
|
import 'package:cake_wallet/themes/theme_list.dart';
|
||||||
|
import 'package:cake_wallet/utils/device_info.dart';
|
||||||
|
import 'package:cake_wallet/utils/payment_request.dart';
|
||||||
|
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
||||||
|
import 'package:cake_wallet/view_model/advanced_privacy_settings_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/anon_invoice_page_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/anonpay_details_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/auth_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/backup_view_model.dart';
|
import 'package:cake_wallet/view_model/backup_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/buy/buy_amount_view_model.dart';
|
import 'package:cake_wallet/view_model/buy/buy_amount_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/buy/buy_view_model.dart';
|
import 'package:cake_wallet/view_model/buy/buy_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/contact_list/contact_list_view_model.dart';
|
import 'package:cake_wallet/view_model/contact_list/contact_list_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/contact_list/contact_view_model.dart';
|
import 'package:cake_wallet/view_model/contact_list/contact_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/dashboard/balance_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/dashboard/dashboard_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/dashboard/desktop_sidebar_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/dashboard/home_settings_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/dashboard/market_place_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/dashboard/nft_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/dashboard/receive_option_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/edit_backup_password_view_model.dart';
|
import 'package:cake_wallet/view_model/edit_backup_password_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/exchange/exchange_trade_view_model.dart';
|
import 'package:cake_wallet/view_model/exchange/exchange_trade_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/exchange/exchange_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/hardware_wallet/ledger_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/ionia/ionia_account_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/ionia/ionia_auth_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/ionia/ionia_buy_card_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/ionia/ionia_custom_redeem_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/ionia/ionia_custom_tip_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/ionia/ionia_gift_card_details_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/ionia/ionia_gift_cards_list_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/ionia/ionia_payment_status_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/ionia/ionia_purchase_merch_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/monero_account_list/account_list_item.dart';
|
import 'package:cake_wallet/view_model/monero_account_list/account_list_item.dart';
|
||||||
import 'package:cake_wallet/view_model/node_list/node_list_view_model.dart';
|
import 'package:cake_wallet/view_model/monero_account_list/monero_account_edit_or_create_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/monero_account_list/monero_account_list_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/nano_account_list/nano_account_edit_or_create_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/nano_account_list/nano_account_list_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/node_list/node_create_or_edit_view_model.dart';
|
import 'package:cake_wallet/view_model/node_list/node_create_or_edit_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/node_list/node_list_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/node_list/pow_node_list_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/order_details_view_model.dart';
|
import 'package:cake_wallet/view_model/order_details_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/rescan_view_model.dart';
|
import 'package:cake_wallet/view_model/rescan_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/restore/restore_from_qr_vm.dart';
|
||||||
import 'package:cake_wallet/view_model/restore_from_backup_view_model.dart';
|
import 'package:cake_wallet/view_model/restore_from_backup_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/seed_type_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/send/send_template_view_model.dart';
|
import 'package:cake_wallet/view_model/send/send_template_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/send/send_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/set_up_2fa_viewmodel.dart';
|
||||||
|
import 'package:cake_wallet/view_model/settings/display_settings_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/settings/other_settings_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/settings/privacy_settings_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/settings/security_settings_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/settings/trocador_providers_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/setup_pin_code_view_model.dart';
|
import 'package:cake_wallet/view_model/setup_pin_code_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/support_view_model.dart';
|
import 'package:cake_wallet/view_model/support_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/transaction_details_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/trade_details_view_model.dart';
|
import 'package:cake_wallet/view_model/trade_details_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/transaction_details_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/unspent_coins/unspent_coins_details_view_model.dart';
|
import 'package:cake_wallet/view_model/unspent_coins/unspent_coins_details_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/unspent_coins/unspent_coins_item.dart';
|
import 'package:cake_wallet/view_model/unspent_coins/unspent_coins_item.dart';
|
||||||
import 'package:cake_wallet/view_model/unspent_coins/unspent_coins_list_view_model.dart';
|
import 'package:cake_wallet/view_model/unspent_coins/unspent_coins_list_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/wallet_address_list/wallet_address_edit_or_create_view_model.dart';
|
import 'package:cake_wallet/view_model/wallet_address_list/wallet_address_edit_or_create_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/auth_view_model.dart';
|
import 'package:cake_wallet/view_model/wallet_address_list/wallet_address_list_item.dart';
|
||||||
import 'package:cake_wallet/view_model/dashboard/dashboard_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/dashboard/balance_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/wallet_address_list/wallet_address_list_view_model.dart';
|
import 'package:cake_wallet/view_model/wallet_address_list/wallet_address_list_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/monero_account_list/monero_account_edit_or_create_view_model.dart';
|
import 'package:cake_wallet/view_model/wallet_hardware_restore_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/monero_account_list/monero_account_list_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/send/send_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/wallet_keys_view_model.dart';
|
import 'package:cake_wallet/view_model/wallet_keys_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/wallet_list/wallet_edit_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/wallet_list/wallet_list_item.dart';
|
||||||
import 'package:cake_wallet/view_model/wallet_list/wallet_list_view_model.dart';
|
import 'package:cake_wallet/view_model/wallet_list/wallet_list_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/wallet_new_vm.dart';
|
||||||
|
import 'package:cake_wallet/view_model/wallet_restore_choose_derivation_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/wallet_restore_view_model.dart';
|
import 'package:cake_wallet/view_model/wallet_restore_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/wallet_seed_view_model.dart';
|
import 'package:cake_wallet/view_model/wallet_seed_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/exchange/exchange_view_model.dart';
|
import 'package:cw_core/crypto_currency.dart';
|
||||||
|
import 'package:cw_core/nano_account.dart';
|
||||||
|
import 'package:cw_core/node.dart';
|
||||||
|
import 'package:cw_core/receive_page_option.dart';
|
||||||
|
import 'package:cw_core/transaction_info.dart';
|
||||||
|
import 'package:cw_core/unspent_coins_info.dart';
|
||||||
|
import 'package:cw_core/wallet_info.dart';
|
||||||
|
import 'package:cw_core/wallet_service.dart';
|
||||||
|
import 'package:cw_core/wallet_type.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/widgets.dart';
|
import 'package:flutter/widgets.dart';
|
||||||
|
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||||
import 'package:get_it/get_it.dart';
|
import 'package:get_it/get_it.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
import 'package:mobx/mobx.dart';
|
import 'package:mobx/mobx.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
|
||||||
import 'package:cake_wallet/core/wallet_creation_service.dart';
|
|
||||||
import 'package:cake_wallet/store/app_store.dart';
|
|
||||||
import 'package:cw_core/wallet_type.dart';
|
|
||||||
import 'package:cake_wallet/view_model/wallet_new_vm.dart';
|
|
||||||
import 'package:cake_wallet/store/authentication_store.dart';
|
|
||||||
import 'package:cake_wallet/store/dashboard/trades_store.dart';
|
|
||||||
import 'package:cake_wallet/store/dashboard/trade_filter_store.dart';
|
|
||||||
import 'package:cake_wallet/store/dashboard/transaction_filter_store.dart';
|
|
||||||
import 'package:cake_wallet/store/dashboard/fiat_conversion_store.dart';
|
|
||||||
import 'package:cake_wallet/store/templates/send_template_store.dart';
|
|
||||||
import 'package:cake_wallet/store/templates/exchange_template_store.dart';
|
|
||||||
import 'package:cake_wallet/entities/template.dart';
|
|
||||||
import 'package:cake_wallet/exchange/exchange_template.dart';
|
|
||||||
import 'package:cake_wallet/.secrets.g.dart' as secrets;
|
|
||||||
import 'package:cake_wallet/src/screens/dashboard/pages/address_page.dart';
|
|
||||||
import 'package:cake_wallet/anypay/anypay_api.dart';
|
|
||||||
import 'package:cake_wallet/view_model/ionia/ionia_gift_card_details_view_model.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_payment_status_page.dart';
|
|
||||||
import 'package:cake_wallet/view_model/ionia/ionia_payment_status_view_model.dart';
|
|
||||||
import 'package:cake_wallet/anypay/any_pay_payment_committed_info.dart';
|
|
||||||
import 'package:cake_wallet/ionia/ionia_any_pay_payment_info.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/receive/fullscreen_qr_page.dart';
|
|
||||||
import 'package:cake_wallet/core/wallet_loading_service.dart';
|
|
||||||
import 'package:cw_core/crypto_currency.dart';
|
|
||||||
import 'package:cake_wallet/entities/qr_view_data.dart';
|
|
||||||
|
|
||||||
import 'buy/dfx/dfx_buy_provider.dart';
|
import 'buy/dfx/dfx_buy_provider.dart';
|
||||||
import 'core/totp_request_details.dart';
|
import 'core/totp_request_details.dart';
|
||||||
|
@ -307,6 +308,7 @@ Future<void> setup({
|
||||||
getIt.registerFactory<Box<Node>>(() => _powNodeSource, instanceName: Node.boxName + "pow");
|
getIt.registerFactory<Box<Node>>(() => _powNodeSource, instanceName: Node.boxName + "pow");
|
||||||
|
|
||||||
getIt.registerSingleton(AuthenticationStore());
|
getIt.registerSingleton(AuthenticationStore());
|
||||||
|
getIt.registerSingleton(LedgerViewModel());
|
||||||
getIt.registerSingleton<WalletListStore>(WalletListStore());
|
getIt.registerSingleton<WalletListStore>(WalletListStore());
|
||||||
getIt.registerSingleton(NodeListStoreBase.instance);
|
getIt.registerSingleton(NodeListStoreBase.instance);
|
||||||
getIt.registerSingleton<SettingsStore>(settingsStore);
|
getIt.registerSingleton<SettingsStore>(settingsStore);
|
||||||
|
@ -366,6 +368,11 @@ Future<void> setup({
|
||||||
getIt.get<WalletCreationService>(param1: type), _walletInfoSource, type);
|
getIt.get<WalletCreationService>(param1: type), _walletInfoSource, type);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
getIt.registerFactoryParam<WalletHardwareRestoreViewModel, WalletType, void>((type, _) =>
|
||||||
|
WalletHardwareRestoreViewModel(getIt.get<LedgerViewModel>(), getIt.get<AppStore>(),
|
||||||
|
getIt.get<WalletCreationService>(param1: type), _walletInfoSource,
|
||||||
|
type: type));
|
||||||
|
|
||||||
getIt.registerFactory<WalletAddressListViewModel>(() => WalletAddressListViewModel(
|
getIt.registerFactory<WalletAddressListViewModel>(() => WalletAddressListViewModel(
|
||||||
appStore: getIt.get<AppStore>(),
|
appStore: getIt.get<AppStore>(),
|
||||||
yatStore: getIt.get<YatStore>(),
|
yatStore: getIt.get<YatStore>(),
|
||||||
|
@ -489,12 +496,8 @@ Future<void> setup({
|
||||||
getIt.registerLazySingleton<WalletConnectKeyService>(() => KeyServiceImpl());
|
getIt.registerLazySingleton<WalletConnectKeyService>(() => KeyServiceImpl());
|
||||||
|
|
||||||
getIt.registerLazySingleton<Web3WalletService>(() {
|
getIt.registerLazySingleton<Web3WalletService>(() {
|
||||||
final Web3WalletService web3WalletService = Web3WalletService(
|
final Web3WalletService web3WalletService = Web3WalletService(getIt.get<BottomSheetService>(),
|
||||||
getIt.get<BottomSheetService>(),
|
getIt.get<WalletConnectKeyService>(), appStore, getIt.get<SharedPreferences>());
|
||||||
getIt.get<WalletConnectKeyService>(),
|
|
||||||
appStore,
|
|
||||||
getIt.get<SharedPreferences>()
|
|
||||||
);
|
|
||||||
web3WalletService.create();
|
web3WalletService.create();
|
||||||
return web3WalletService;
|
return web3WalletService;
|
||||||
});
|
});
|
||||||
|
@ -598,6 +601,7 @@ Future<void> setup({
|
||||||
getIt.get<BalanceViewModel>(),
|
getIt.get<BalanceViewModel>(),
|
||||||
getIt.get<ContactListViewModel>(),
|
getIt.get<ContactListViewModel>(),
|
||||||
_transactionDescriptionBox,
|
_transactionDescriptionBox,
|
||||||
|
getIt.get<LedgerViewModel>(),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -803,11 +807,11 @@ Future<void> setup({
|
||||||
editingNode: editingNode,
|
editingNode: editingNode,
|
||||||
isSelected: isSelected));
|
isSelected: isSelected));
|
||||||
|
|
||||||
getIt.registerFactory<RobinhoodBuyProvider>(
|
getIt.registerFactory<RobinhoodBuyProvider>(() => RobinhoodBuyProvider(
|
||||||
() => RobinhoodBuyProvider(wallet: getIt.get<AppStore>().wallet!));
|
wallet: getIt.get<AppStore>().wallet!, ledgerVM: getIt.get<LedgerViewModel>()));
|
||||||
|
|
||||||
getIt
|
getIt.registerFactory<DFXBuyProvider>(() => DFXBuyProvider(
|
||||||
.registerFactory<DFXBuyProvider>(() => DFXBuyProvider(wallet: getIt.get<AppStore>().wallet!));
|
wallet: getIt.get<AppStore>().wallet!, ledgerVM: getIt.get<LedgerViewModel>()));
|
||||||
|
|
||||||
getIt.registerFactory<MoonPayProvider>(() => MoonPayProvider(
|
getIt.registerFactory<MoonPayProvider>(() => MoonPayProvider(
|
||||||
settingsStore: getIt.get<AppStore>().settingsStore,
|
settingsStore: getIt.get<AppStore>().settingsStore,
|
||||||
|
@ -925,8 +929,17 @@ Future<void> setup({
|
||||||
transactionDetailsViewModel:
|
transactionDetailsViewModel:
|
||||||
getIt.get<TransactionDetailsViewModel>(param1: transactionInfo)));
|
getIt.get<TransactionDetailsViewModel>(param1: transactionInfo)));
|
||||||
|
|
||||||
getIt.registerFactoryParam<NewWalletTypePage, void Function(BuildContext, WalletType), bool?>(
|
getIt.registerFactoryParam<NewWalletTypePage, void Function(BuildContext, WalletType),
|
||||||
(param1, isCreate) => NewWalletTypePage(onTypeSelected: param1, isCreate: isCreate ?? true));
|
List<bool>?>((param1, additionalParams) {
|
||||||
|
final isCreate = additionalParams?[0] ?? true;
|
||||||
|
final isHardwareWallet = additionalParams?[1] ?? false;
|
||||||
|
|
||||||
|
return NewWalletTypePage(
|
||||||
|
onTypeSelected: param1,
|
||||||
|
isCreate: isCreate,
|
||||||
|
isHardwareWallet: isHardwareWallet,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
getIt.registerFactoryParam<PreSeedPage, int, void>(
|
getIt.registerFactoryParam<PreSeedPage, int, void>(
|
||||||
(seedPhraseLength, _) => PreSeedPage(seedPhraseLength));
|
(seedPhraseLength, _) => PreSeedPage(seedPhraseLength));
|
||||||
|
@ -1141,9 +1154,9 @@ Future<void> setup({
|
||||||
getIt.registerFactory(() => IoniaAccountCardsPage(getIt.get<IoniaAccountViewModel>()));
|
getIt.registerFactory(() => IoniaAccountCardsPage(getIt.get<IoniaAccountViewModel>()));
|
||||||
|
|
||||||
getIt.registerFactoryParam<RBFDetailsPage, TransactionInfo, void>(
|
getIt.registerFactoryParam<RBFDetailsPage, TransactionInfo, void>(
|
||||||
(TransactionInfo transactionInfo, _) => RBFDetailsPage(
|
(TransactionInfo transactionInfo, _) => RBFDetailsPage(
|
||||||
transactionDetailsViewModel:
|
transactionDetailsViewModel:
|
||||||
getIt.get<TransactionDetailsViewModel>(param1: transactionInfo)));
|
getIt.get<TransactionDetailsViewModel>(param1: transactionInfo)));
|
||||||
|
|
||||||
getIt.registerFactory(() => AnonPayApi(
|
getIt.registerFactory(() => AnonPayApi(
|
||||||
useTorOnly: getIt.get<SettingsStore>().exchangeStatus == ExchangeApiMode.torOnly,
|
useTorOnly: getIt.get<SettingsStore>().exchangeStatus == ExchangeApiMode.torOnly,
|
||||||
|
|
|
@ -30,14 +30,23 @@ class CWEthereum extends Ethereum {
|
||||||
}) =>
|
}) =>
|
||||||
EVMChainRestoreWalletFromPrivateKey(name: name, password: password, privateKey: privateKey);
|
EVMChainRestoreWalletFromPrivateKey(name: name, password: password, privateKey: privateKey);
|
||||||
|
|
||||||
|
@override
|
||||||
|
WalletCredentials createEthereumHardwareWalletCredentials({
|
||||||
|
required String name,
|
||||||
|
required HardwareAccountData hwAccountData,
|
||||||
|
WalletInfo? walletInfo,
|
||||||
|
}) =>
|
||||||
|
EVMChainRestoreWalletFromHardware(
|
||||||
|
name: name, hwAccountData: hwAccountData, walletInfo: walletInfo);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String getAddress(WalletBase wallet) => (wallet as EthereumWallet).walletAddresses.address;
|
String getAddress(WalletBase wallet) => (wallet as EthereumWallet).walletAddresses.address;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String getPrivateKey(WalletBase wallet) {
|
String getPrivateKey(WalletBase wallet) {
|
||||||
final privateKeyHolder = (wallet as EthereumWallet).evmChainPrivateKey;
|
final privateKeyHolder = (wallet as EthereumWallet).evmChainPrivateKey;
|
||||||
String stringKey = bytesToHex(privateKeyHolder.privateKey);
|
if (privateKeyHolder is EthPrivateKey) return bytesToHex(privateKeyHolder.privateKey);
|
||||||
return stringKey;
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -159,4 +168,24 @@ class CWEthereum extends Ethereum {
|
||||||
}
|
}
|
||||||
|
|
||||||
String getTokenAddress(CryptoCurrency asset) => (asset as Erc20Token).contractAddress;
|
String getTokenAddress(CryptoCurrency asset) => (asset as Erc20Token).contractAddress;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void setLedger(WalletBase wallet, Ledger ledger, LedgerDevice device) {
|
||||||
|
((wallet as EVMChainWallet).evmChainPrivateKey as EvmLedgerCredentials).setLedger(
|
||||||
|
ledger,
|
||||||
|
device.connectionType == ConnectionType.usb ? device : null,
|
||||||
|
wallet.walletInfo.derivationInfo?.derivationPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<List<HardwareAccountData>> getHardwareWalletAccounts(LedgerViewModel ledgerVM,
|
||||||
|
{int index = 0, int limit = 5}) async {
|
||||||
|
final hardwareWalletService = EVMChainHardwareWalletService(ledgerVM.ledger, ledgerVM.device);
|
||||||
|
try {
|
||||||
|
return await hardwareWalletService.getAvailableAccounts(index: index, limit: limit);
|
||||||
|
} on LedgerException catch (err) {
|
||||||
|
print(err.message);
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,11 @@ Future<void> initializeAppConfigs() async {
|
||||||
if (!CakeHive.isAdapterRegistered(DERIVATION_INFO_TYPE_ID)) {
|
if (!CakeHive.isAdapterRegistered(DERIVATION_INFO_TYPE_ID)) {
|
||||||
CakeHive.registerAdapter(DerivationInfoAdapter());
|
CakeHive.registerAdapter(DerivationInfoAdapter());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!CakeHive.isAdapterRegistered(HARDWARE_WALLET_TYPE_TYPE_ID)) {
|
||||||
|
CakeHive.registerAdapter(HardwareWalletTypeAdapter());
|
||||||
|
}
|
||||||
|
|
||||||
if (!CakeHive.isAdapterRegistered(WALLET_TYPE_TYPE_ID)) {
|
if (!CakeHive.isAdapterRegistered(WALLET_TYPE_TYPE_ID)) {
|
||||||
CakeHive.registerAdapter(WalletTypeAdapter());
|
CakeHive.registerAdapter(WalletTypeAdapter());
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,14 +30,23 @@ class CWPolygon extends Polygon {
|
||||||
}) =>
|
}) =>
|
||||||
EVMChainRestoreWalletFromPrivateKey(name: name, password: password, privateKey: privateKey);
|
EVMChainRestoreWalletFromPrivateKey(name: name, password: password, privateKey: privateKey);
|
||||||
|
|
||||||
|
@override
|
||||||
|
WalletCredentials createPolygonHardwareWalletCredentials({
|
||||||
|
required String name,
|
||||||
|
required HardwareAccountData hwAccountData,
|
||||||
|
WalletInfo? walletInfo,
|
||||||
|
}) =>
|
||||||
|
EVMChainRestoreWalletFromHardware(
|
||||||
|
name: name, hwAccountData: hwAccountData, walletInfo: walletInfo);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String getAddress(WalletBase wallet) => (wallet as PolygonWallet).walletAddresses.address;
|
String getAddress(WalletBase wallet) => (wallet as PolygonWallet).walletAddresses.address;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String getPrivateKey(WalletBase wallet) {
|
String getPrivateKey(WalletBase wallet) {
|
||||||
final privateKeyHolder = (wallet as PolygonWallet).evmChainPrivateKey;
|
final privateKeyHolder = (wallet as PolygonWallet).evmChainPrivateKey;
|
||||||
String stringKey = bytesToHex(privateKeyHolder.privateKey);
|
if (privateKeyHolder is EthPrivateKey) return bytesToHex(privateKeyHolder.privateKey);
|
||||||
return stringKey;
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -67,21 +76,21 @@ class CWPolygon extends Polygon {
|
||||||
int? feeRate,
|
int? feeRate,
|
||||||
}) =>
|
}) =>
|
||||||
EVMChainTransactionCredentials(
|
EVMChainTransactionCredentials(
|
||||||
outputs
|
outputs
|
||||||
.map((out) => OutputInfo(
|
.map((out) => OutputInfo(
|
||||||
fiatAmount: out.fiatAmount,
|
fiatAmount: out.fiatAmount,
|
||||||
cryptoAmount: out.cryptoAmount,
|
cryptoAmount: out.cryptoAmount,
|
||||||
address: out.address,
|
address: out.address,
|
||||||
note: out.note,
|
note: out.note,
|
||||||
sendAll: out.sendAll,
|
sendAll: out.sendAll,
|
||||||
extractedAddress: out.extractedAddress,
|
extractedAddress: out.extractedAddress,
|
||||||
isParsedAddress: out.isParsedAddress,
|
isParsedAddress: out.isParsedAddress,
|
||||||
formattedCryptoAmount: out.formattedCryptoAmount))
|
formattedCryptoAmount: out.formattedCryptoAmount))
|
||||||
.toList(),
|
.toList(),
|
||||||
priority: priority as EVMChainTransactionPriority,
|
priority: priority as EVMChainTransactionPriority,
|
||||||
currency: currency,
|
currency: currency,
|
||||||
feeRate: feeRate,
|
feeRate: feeRate,
|
||||||
);
|
);
|
||||||
|
|
||||||
Object createPolygonTransactionCredentialsRaw(
|
Object createPolygonTransactionCredentialsRaw(
|
||||||
List<OutputInfo> outputs, {
|
List<OutputInfo> outputs, {
|
||||||
|
@ -157,4 +166,23 @@ class CWPolygon extends Polygon {
|
||||||
}
|
}
|
||||||
|
|
||||||
String getTokenAddress(CryptoCurrency asset) => (asset as Erc20Token).contractAddress;
|
String getTokenAddress(CryptoCurrency asset) => (asset as Erc20Token).contractAddress;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void setLedger(WalletBase wallet, Ledger ledger, LedgerDevice device) {
|
||||||
|
((wallet as EVMChainWallet).evmChainPrivateKey as EvmLedgerCredentials).setLedger(
|
||||||
|
ledger,
|
||||||
|
device.connectionType == ConnectionType.usb ? device : null,
|
||||||
|
wallet.walletInfo.derivationInfo?.derivationPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<List<HardwareAccountData>> getHardwareWalletAccounts(LedgerViewModel ledgerVM,
|
||||||
|
{int index = 0, int limit = 5}) async {
|
||||||
|
final hardwareWalletService = EVMChainHardwareWalletService(ledgerVM.ledger, ledgerVM.device);
|
||||||
|
try {
|
||||||
|
return await hardwareWalletService.getAvailableAccounts(index: index, limit: limit);
|
||||||
|
} on LedgerException catch (err) {
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
198
lib/router.dart
198
lib/router.dart
|
@ -1,29 +1,74 @@
|
||||||
import 'package:cake_wallet/anonpay/anonpay_info_base.dart';
|
import 'package:cake_wallet/anonpay/anonpay_info_base.dart';
|
||||||
import 'package:cake_wallet/anonpay/anonpay_invoice_info.dart';
|
import 'package:cake_wallet/anonpay/anonpay_invoice_info.dart';
|
||||||
|
import 'package:cake_wallet/anypay/any_pay_payment_committed_info.dart';
|
||||||
|
import 'package:cake_wallet/buy/order.dart';
|
||||||
import 'package:cake_wallet/core/totp_request_details.dart';
|
import 'package:cake_wallet/core/totp_request_details.dart';
|
||||||
import 'package:cake_wallet/core/wallet_connect/web3wallet_service.dart';
|
import 'package:cake_wallet/core/wallet_connect/web3wallet_service.dart';
|
||||||
|
import 'package:cake_wallet/di.dart';
|
||||||
import 'package:cake_wallet/entities/contact_record.dart';
|
import 'package:cake_wallet/entities/contact_record.dart';
|
||||||
import 'package:cake_wallet/buy/order.dart';
|
|
||||||
import 'package:cake_wallet/entities/qr_view_data.dart';
|
import 'package:cake_wallet/entities/qr_view_data.dart';
|
||||||
import 'package:cake_wallet/entities/wallet_nft_response.dart';
|
import 'package:cake_wallet/entities/wallet_nft_response.dart';
|
||||||
|
import 'package:cake_wallet/exchange/trade.dart';
|
||||||
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
|
import 'package:cake_wallet/ionia/ionia_any_pay_payment_info.dart';
|
||||||
|
import 'package:cake_wallet/routes.dart';
|
||||||
import 'package:cake_wallet/src/screens/anonpay_details/anonpay_details_page.dart';
|
import 'package:cake_wallet/src/screens/anonpay_details/anonpay_details_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/auth/auth_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/backup/backup_page.dart';
|
import 'package:cake_wallet/src/screens/backup/backup_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/backup/edit_backup_password_page.dart';
|
import 'package:cake_wallet/src/screens/backup/edit_backup_password_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/buy/buy_options_page.dart';
|
import 'package:cake_wallet/src/screens/buy/buy_options_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/buy/buy_webview_page.dart';
|
import 'package:cake_wallet/src/screens/buy/buy_webview_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/buy/webview_page.dart';
|
import 'package:cake_wallet/src/screens/buy/webview_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/connect_device/connect_device_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/connect_device/select_hardware_wallet_account_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/contact/contact_list_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/contact/contact_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/dashboard/dashboard_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/dashboard/desktop_widgets/desktop_dashboard_actions.dart';
|
||||||
import 'package:cake_wallet/src/screens/dashboard/edit_token_page.dart';
|
import 'package:cake_wallet/src/screens/dashboard/edit_token_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/dashboard/home_settings_page.dart';
|
import 'package:cake_wallet/src/screens/dashboard/home_settings_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/dashboard/pages/address_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/dashboard/pages/nft_details_page.dart';
|
import 'package:cake_wallet/src/screens/dashboard/pages/nft_details_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/dashboard/pages/transactions_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/disclaimer/disclaimer_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/exchange/exchange_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/exchange/exchange_template_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/exchange_trade/exchange_confirm_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/exchange_trade/exchange_trade_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/faq/faq_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_account_cards_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_account_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_custom_redeem_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_custom_tip_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_gift_card_detail_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_more_options_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/cards/ionia_payment_status_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/ionia/ionia.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/monero_accounts/monero_account_edit_or_create_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/nano/nano_change_rep_page.dart';
|
import 'package:cake_wallet/src/screens/nano/nano_change_rep_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/nano_accounts/nano_account_edit_or_create_page.dart';
|
import 'package:cake_wallet/src/screens/nano_accounts/nano_account_edit_or_create_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/new_wallet/advanced_privacy_settings_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/new_wallet/new_wallet_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/new_wallet/new_wallet_type_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/nodes/node_create_or_edit_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/nodes/pow_node_create_or_edit_page.dart';
|
import 'package:cake_wallet/src/screens/nodes/pow_node_create_or_edit_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/restore/sweeping_wallet_page.dart';
|
import 'package:cake_wallet/src/screens/order_details/order_details_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/pin_code/pin_code_widget.dart';
|
||||||
import 'package:cake_wallet/src/screens/receive/anonpay_invoice_page.dart';
|
import 'package:cake_wallet/src/screens/receive/anonpay_invoice_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/receive/anonpay_receive_page.dart';
|
import 'package:cake_wallet/src/screens/receive/anonpay_receive_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/dashboard/desktop_widgets/desktop_dashboard_actions.dart';
|
import 'package:cake_wallet/src/screens/receive/fullscreen_qr_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/dashboard/pages/transactions_page.dart';
|
import 'package:cake_wallet/src/screens/receive/receive_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/rescan/rescan_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/restore/restore_from_backup_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/restore/restore_options_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/restore/sweeping_wallet_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/restore/wallet_restore_choose_derivation.dart';
|
import 'package:cake_wallet/src/screens/restore/wallet_restore_choose_derivation.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/restore/wallet_restore_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/seed/pre_seed_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/seed/wallet_seed_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/send/send_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/send/send_template_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/settings/connection_sync_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/desktop_settings/desktop_settings_page.dart';
|
import 'package:cake_wallet/src/screens/settings/desktop_settings/desktop_settings_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/display_settings_page.dart';
|
import 'package:cake_wallet/src/screens/settings/display_settings_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/domain_lookups_page.dart';
|
import 'package:cake_wallet/src/screens/settings/domain_lookups_page.dart';
|
||||||
|
@ -31,90 +76,49 @@ import 'package:cake_wallet/src/screens/settings/manage_nodes_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/other_settings_page.dart';
|
import 'package:cake_wallet/src/screens/settings/other_settings_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/privacy_page.dart';
|
import 'package:cake_wallet/src/screens/settings/privacy_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/security_backup_page.dart';
|
import 'package:cake_wallet/src/screens/settings/security_backup_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_account_cards_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_account_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_custom_redeem_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_custom_tip_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_gift_card_detail_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_more_options_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/new_wallet/advanced_privacy_settings_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/order_details/order_details_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/pin_code/pin_code_widget.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/restore/restore_from_backup_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/restore/wallet_restore_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/seed/pre_seed_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/settings/connection_sync_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/settings/trocador_providers_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/settings/tor_page.dart';
|
import 'package:cake_wallet/src/screens/settings/tor_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/settings/trocador_providers_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/setup_2fa/modify_2fa_page.dart';
|
import 'package:cake_wallet/src/screens/setup_2fa/modify_2fa_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_info_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_qr_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa.dart';
|
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa.dart';
|
||||||
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_enter_code_page.dart';
|
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_enter_code_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_info_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/setup_2fa/setup_2fa_qr_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/setup_pin_code/setup_pin_code.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/subaddress/address_edit_or_create_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/support/support_page.dart';
|
import 'package:cake_wallet/src/screens/support/support_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/support_chat/support_chat_page.dart';
|
import 'package:cake_wallet/src/screens/support_chat/support_chat_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/support_other_links/support_other_links_page.dart';
|
import 'package:cake_wallet/src/screens/support_other_links/support_other_links_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/trade_details/trade_details_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/transaction_details/transaction_details_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/transaction_details/rbf_details_page.dart';
|
import 'package:cake_wallet/src/screens/transaction_details/rbf_details_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/unspent_coins/unspent_coins_details_page.dart';
|
import 'package:cake_wallet/src/screens/unspent_coins/unspent_coins_details_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/unspent_coins/unspent_coins_list_page.dart';
|
import 'package:cake_wallet/src/screens/unspent_coins/unspent_coins_list_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/wallet/wallet_edit_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/wallet_connect/wc_connections_listing_view.dart';
|
import 'package:cake_wallet/src/screens/wallet_connect/wc_connections_listing_view.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/wallet_keys/wallet_keys_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/wallet_list/wallet_list_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/welcome/create_welcome_page.dart';
|
||||||
import 'package:cake_wallet/utils/payment_request.dart';
|
import 'package:cake_wallet/utils/payment_request.dart';
|
||||||
|
import 'package:cake_wallet/view_model/advanced_privacy_settings_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/dashboard/dashboard_view_model.dart';
|
import 'package:cake_wallet/view_model/dashboard/dashboard_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/dashboard/nft_view_model.dart';
|
import 'package:cake_wallet/view_model/dashboard/nft_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/hardware_wallet/ledger_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/monero_account_list/account_list_item.dart';
|
import 'package:cake_wallet/view_model/monero_account_list/account_list_item.dart';
|
||||||
import 'package:cake_wallet/view_model/node_list/node_create_or_edit_view_model.dart';
|
import 'package:cake_wallet/view_model/node_list/node_create_or_edit_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/advanced_privacy_settings_view_model.dart';
|
|
||||||
import 'package:cake_wallet/view_model/seed_type_view_model.dart';
|
import 'package:cake_wallet/view_model/seed_type_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/wallet_hardware_restore_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/wallet_new_vm.dart';
|
||||||
import 'package:cake_wallet/wallet_type_utils.dart';
|
import 'package:cake_wallet/wallet_type_utils.dart';
|
||||||
|
import 'package:cake_wallet/wallet_types.g.dart';
|
||||||
|
import 'package:cw_core/crypto_currency.dart';
|
||||||
import 'package:cw_core/nano_account.dart';
|
import 'package:cw_core/nano_account.dart';
|
||||||
|
import 'package:cw_core/node.dart';
|
||||||
|
import 'package:cw_core/transaction_info.dart';
|
||||||
import 'package:cw_core/wallet_info.dart';
|
import 'package:cw_core/wallet_info.dart';
|
||||||
|
import 'package:cw_core/wallet_type.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:cake_wallet/routes.dart';
|
|
||||||
import 'package:cake_wallet/generated/i18n.dart';
|
|
||||||
import 'package:cake_wallet/di.dart';
|
|
||||||
import 'package:cake_wallet/view_model/wallet_new_vm.dart';
|
|
||||||
import 'package:cake_wallet/exchange/trade.dart';
|
|
||||||
import 'package:cw_core/transaction_info.dart';
|
|
||||||
import 'package:cw_core/wallet_type.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/dashboard/dashboard_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/seed/wallet_seed_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/auth/auth_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/nodes/node_create_or_edit_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/receive/receive_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/subaddress/address_edit_or_create_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/wallet_list/wallet_list_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/wallet/wallet_edit_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/new_wallet/new_wallet_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/setup_pin_code/setup_pin_code.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/restore/restore_options_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/send/send_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/disclaimer/disclaimer_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/transaction_details/transaction_details_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/monero_accounts/monero_account_edit_or_create_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/contact/contact_list_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/contact/contact_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/wallet_keys/wallet_keys_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/exchange/exchange_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/rescan/rescan_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/faq/faq_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/trade_details/trade_details_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/welcome/create_welcome_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/new_wallet/new_wallet_type_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/send/send_template_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/exchange/exchange_template_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/exchange_trade/exchange_confirm_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/exchange_trade/exchange_trade_page.dart';
|
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:cake_wallet/wallet_types.g.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/dashboard/pages/address_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/receive/fullscreen_qr_page.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/ionia.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/ionia/cards/ionia_payment_status_page.dart';
|
|
||||||
import 'package:cake_wallet/anypay/any_pay_payment_committed_info.dart';
|
|
||||||
import 'package:cake_wallet/ionia/ionia_any_pay_payment_info.dart';
|
|
||||||
import 'package:cw_core/crypto_currency.dart';
|
|
||||||
import 'package:cw_core/node.dart';
|
|
||||||
|
|
||||||
import 'src/screens/dashboard/pages/nft_import_page.dart';
|
import 'src/screens/dashboard/pages/nft_import_page.dart';
|
||||||
|
|
||||||
|
@ -151,7 +155,15 @@ Route<dynamic> createRoute(RouteSettings settings) {
|
||||||
final walletNewVM = getIt.get<WalletNewVM>(param1: type);
|
final walletNewVM = getIt.get<WalletNewVM>(param1: type);
|
||||||
final seedTypeViewModel = getIt.get<SeedTypeViewModel>();
|
final seedTypeViewModel = getIt.get<SeedTypeViewModel>();
|
||||||
|
|
||||||
return CupertinoPageRoute<void>(builder: (_) => NewWalletPage(walletNewVM, seedTypeViewModel));
|
return CupertinoPageRoute<void>(
|
||||||
|
builder: (_) => NewWalletPage(walletNewVM, seedTypeViewModel));
|
||||||
|
|
||||||
|
case Routes.chooseHardwareWalletAccount:
|
||||||
|
final arguments = settings.arguments as List<dynamic>;
|
||||||
|
final type = arguments[0] as WalletType;
|
||||||
|
final walletVM = getIt.get<WalletHardwareRestoreViewModel>(param1: type);
|
||||||
|
|
||||||
|
return CupertinoPageRoute<void>(builder: (_) => SelectHardwareWalletAccountPage(walletVM));
|
||||||
|
|
||||||
case Routes.setupPin:
|
case Routes.setupPin:
|
||||||
Function(PinCodeState<PinCodeWidget>, String)? callback;
|
Function(PinCodeState<PinCodeWidget>, String)? callback;
|
||||||
|
@ -168,7 +180,7 @@ Route<dynamic> createRoute(RouteSettings settings) {
|
||||||
builder: (_) => getIt.get<NewWalletTypePage>(
|
builder: (_) => getIt.get<NewWalletTypePage>(
|
||||||
param1: (BuildContext context, WalletType type) =>
|
param1: (BuildContext context, WalletType type) =>
|
||||||
Navigator.of(context).pushNamed(Routes.restoreWallet, arguments: type),
|
Navigator.of(context).pushNamed(Routes.restoreWallet, arguments: type),
|
||||||
param2: false));
|
param2: [false, false]));
|
||||||
|
|
||||||
case Routes.restoreOptions:
|
case Routes.restoreOptions:
|
||||||
final isNewInstall = settings.arguments as bool;
|
final isNewInstall = settings.arguments as bool;
|
||||||
|
@ -199,7 +211,46 @@ Route<dynamic> createRoute(RouteSettings settings) {
|
||||||
builder: (_) => getIt.get<NewWalletTypePage>(
|
builder: (_) => getIt.get<NewWalletTypePage>(
|
||||||
param1: (BuildContext context, WalletType type) =>
|
param1: (BuildContext context, WalletType type) =>
|
||||||
Navigator.of(context).pushNamed(Routes.restoreWallet, arguments: type),
|
Navigator.of(context).pushNamed(Routes.restoreWallet, arguments: type),
|
||||||
param2: false));
|
param2: [false, false]));
|
||||||
|
}
|
||||||
|
|
||||||
|
case Routes.restoreWalletFromHardwareWallet:
|
||||||
|
final isNewInstall = settings.arguments as bool;
|
||||||
|
|
||||||
|
if (isNewInstall) {
|
||||||
|
return CupertinoPageRoute<void>(
|
||||||
|
builder: (_) => getIt.get<SetupPinCodePage>(
|
||||||
|
param1: (PinCodeState<PinCodeWidget> context, dynamic _) =>
|
||||||
|
Navigator.of(context.context).pushNamed(Routes.restoreWalletFromHardwareWallet, arguments: false),
|
||||||
|
),
|
||||||
|
fullscreenDialog: true,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (isSingleCoin) {
|
||||||
|
return MaterialPageRoute<void>(
|
||||||
|
builder: (_) => ConnectDevicePage(
|
||||||
|
ConnectDevicePageParams(
|
||||||
|
walletType: availableWalletTypes.first,
|
||||||
|
onConnectDevice: (BuildContext context, _) =>
|
||||||
|
Navigator.of(context).pushNamed(Routes.chooseHardwareWalletAccount,
|
||||||
|
arguments: [availableWalletTypes.first]),
|
||||||
|
),
|
||||||
|
getIt.get<LedgerViewModel>(),
|
||||||
|
));
|
||||||
|
} else {
|
||||||
|
return CupertinoPageRoute<void>(
|
||||||
|
builder: (_) => getIt.get<NewWalletTypePage>(
|
||||||
|
param1: (BuildContext context, WalletType type) {
|
||||||
|
final arguments = ConnectDevicePageParams(
|
||||||
|
walletType: type,
|
||||||
|
onConnectDevice: (BuildContext context, _) =>
|
||||||
|
Navigator.of(context).pushNamed(Routes.chooseHardwareWalletAccount,
|
||||||
|
arguments: [type]),
|
||||||
|
);
|
||||||
|
|
||||||
|
Navigator.of(context).pushNamed(Routes.connectDevices, arguments: arguments);
|
||||||
|
},
|
||||||
|
param2: [false, true]));
|
||||||
}
|
}
|
||||||
|
|
||||||
case Routes.restoreWalletTypeFromQR:
|
case Routes.restoreWalletTypeFromQR:
|
||||||
|
@ -400,8 +451,7 @@ Route<dynamic> createRoute(RouteSettings settings) {
|
||||||
|
|
||||||
case Routes.buySellPage:
|
case Routes.buySellPage:
|
||||||
final args = settings.arguments as bool;
|
final args = settings.arguments as bool;
|
||||||
return MaterialPageRoute<void>(
|
return MaterialPageRoute<void>(builder: (_) => getIt.get<BuySellOptionsPage>(param1: args));
|
||||||
builder: (_) => getIt.get<BuySellOptionsPage>(param1: args));
|
|
||||||
|
|
||||||
case Routes.buyWebView:
|
case Routes.buyWebView:
|
||||||
final args = settings.arguments as List;
|
final args = settings.arguments as List;
|
||||||
|
@ -424,8 +474,7 @@ Route<dynamic> createRoute(RouteSettings settings) {
|
||||||
|
|
||||||
case Routes.preSeedPage:
|
case Routes.preSeedPage:
|
||||||
return MaterialPageRoute<void>(
|
return MaterialPageRoute<void>(
|
||||||
builder: (_) => getIt.get<PreSeedPage>(
|
builder: (_) => getIt.get<PreSeedPage>(param1: settings.arguments as int));
|
||||||
param1: settings.arguments as int));
|
|
||||||
|
|
||||||
case Routes.backup:
|
case Routes.backup:
|
||||||
return CupertinoPageRoute<void>(
|
return CupertinoPageRoute<void>(
|
||||||
|
@ -647,6 +696,11 @@ Route<dynamic> createRoute(RouteSettings settings) {
|
||||||
case Routes.torPage:
|
case Routes.torPage:
|
||||||
return MaterialPageRoute<void>(builder: (_) => getIt.get<TorPage>());
|
return MaterialPageRoute<void>(builder: (_) => getIt.get<TorPage>());
|
||||||
|
|
||||||
|
case Routes.connectDevices:
|
||||||
|
final params = settings.arguments as ConnectDevicePageParams;
|
||||||
|
return MaterialPageRoute<void>(
|
||||||
|
builder: (_) => ConnectDevicePage(params, getIt.get<LedgerViewModel>()));
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return MaterialPageRoute<void>(
|
return MaterialPageRoute<void>(
|
||||||
builder: (_) => Scaffold(
|
builder: (_) => Scaffold(
|
||||||
|
|
|
@ -6,9 +6,11 @@ class Routes {
|
||||||
static const seed = '/seed';
|
static const seed = '/seed';
|
||||||
static const restoreOptions = '/restore_options';
|
static const restoreOptions = '/restore_options';
|
||||||
static const restoreWalletFromSeedKeys = '/restore_wallet_from_seeds_keys';
|
static const restoreWalletFromSeedKeys = '/restore_wallet_from_seeds_keys';
|
||||||
|
static const restoreWalletFromHardwareWallet = '/restore/hardware_wallet';
|
||||||
static const restoreWalletTypeFromQR = '/restore_wallet_from_qr_code';
|
static const restoreWalletTypeFromQR = '/restore_wallet_from_qr_code';
|
||||||
static const restoreWalletChooseDerivation =
|
static const restoreWalletChooseDerivation =
|
||||||
'/restore_wallet_choose_derivation';
|
'/restore_wallet_choose_derivation';
|
||||||
|
static const chooseHardwareWalletAccount = '/restore/hardware_wallet/accounts';
|
||||||
static const dashboard = '/dashboard';
|
static const dashboard = '/dashboard';
|
||||||
static const send = '/send';
|
static const send = '/send';
|
||||||
static const transactionDetails = '/transaction_info';
|
static const transactionDetails = '/transaction_info';
|
||||||
|
@ -107,4 +109,5 @@ class Routes {
|
||||||
static const nftDetailsPage = '/nft_details_page';
|
static const nftDetailsPage = '/nft_details_page';
|
||||||
static const importNFTPage = '/import_nft_page';
|
static const importNFTPage = '/import_nft_page';
|
||||||
static const torPage = '/tor_page';
|
static const torPage = '/tor_page';
|
||||||
|
static const connectDevices = '/device/connect';
|
||||||
}
|
}
|
||||||
|
|
218
lib/src/screens/connect_device/connect_device_page.dart
Normal file
218
lib/src/screens/connect_device/connect_device_page.dart
Normal file
|
@ -0,0 +1,218 @@
|
||||||
|
import 'dart:async';
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/connect_device/widgets/device_tile.dart';
|
||||||
|
import 'package:cake_wallet/themes/extensions/cake_text_theme.dart';
|
||||||
|
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
||||||
|
import 'package:cake_wallet/view_model/hardware_wallet/ledger_view_model.dart';
|
||||||
|
import 'package:cw_core/wallet_type.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:ledger_flutter/ledger_flutter.dart';
|
||||||
|
import 'package:permission_handler/permission_handler.dart';
|
||||||
|
|
||||||
|
typedef OnConnectDevice = void Function(BuildContext, LedgerViewModel);
|
||||||
|
|
||||||
|
class ConnectDevicePageParams {
|
||||||
|
final WalletType walletType;
|
||||||
|
final OnConnectDevice onConnectDevice;
|
||||||
|
|
||||||
|
ConnectDevicePageParams({required this.walletType, required this.onConnectDevice});
|
||||||
|
}
|
||||||
|
|
||||||
|
class ConnectDevicePage extends BasePage {
|
||||||
|
final WalletType walletType;
|
||||||
|
final OnConnectDevice onConnectDevice;
|
||||||
|
final LedgerViewModel ledgerVM;
|
||||||
|
|
||||||
|
ConnectDevicePage(ConnectDevicePageParams params, this.ledgerVM)
|
||||||
|
: walletType = params.walletType,
|
||||||
|
onConnectDevice = params.onConnectDevice;
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get title => S.current.restore_title_from_hardware_wallet;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget body(BuildContext context) => ConnectDevicePageBody(walletType, onConnectDevice, ledgerVM);
|
||||||
|
}
|
||||||
|
|
||||||
|
class ConnectDevicePageBody extends StatefulWidget {
|
||||||
|
final WalletType walletType;
|
||||||
|
final OnConnectDevice onConnectDevice;
|
||||||
|
final LedgerViewModel ledgerVM;
|
||||||
|
|
||||||
|
const ConnectDevicePageBody(this.walletType, this.onConnectDevice, this.ledgerVM);
|
||||||
|
|
||||||
|
@override
|
||||||
|
ConnectDevicePageBodyState createState() => ConnectDevicePageBodyState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class ConnectDevicePageBodyState extends State<ConnectDevicePageBody> {
|
||||||
|
final imageLedger = 'assets/images/ledger_nano.png';
|
||||||
|
|
||||||
|
final ledger = Ledger(
|
||||||
|
options: LedgerOptions(
|
||||||
|
scanMode: ScanMode.balanced,
|
||||||
|
maxScanDuration: const Duration(minutes: 5),
|
||||||
|
),
|
||||||
|
onPermissionRequest: (_) async {
|
||||||
|
Map<Permission, PermissionStatus> statuses = await [
|
||||||
|
Permission.bluetoothScan,
|
||||||
|
Permission.bluetoothConnect,
|
||||||
|
Permission.bluetoothAdvertise,
|
||||||
|
].request();
|
||||||
|
|
||||||
|
return statuses.values.where((status) => status.isDenied).isEmpty;
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
var bleIsEnabled = true;
|
||||||
|
var bleDevices = <LedgerDevice>[];
|
||||||
|
var usbDevices = <LedgerDevice>[];
|
||||||
|
|
||||||
|
late Timer? _usbRefreshTimer = null;
|
||||||
|
late Timer? _bleRefreshTimer = null;
|
||||||
|
late StreamSubscription<LedgerDevice>? _bleRefresh = null;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
_bleRefreshTimer = Timer.periodic(Duration(seconds: 1), (_) => _refreshBleDevices());
|
||||||
|
|
||||||
|
if (Platform.isAndroid) {
|
||||||
|
_usbRefreshTimer = Timer.periodic(Duration(seconds: 1), (_) => _refreshUsbDevices());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
super.dispose();
|
||||||
|
_bleRefreshTimer?.cancel();
|
||||||
|
_usbRefreshTimer?.cancel();
|
||||||
|
_bleRefresh?.cancel();
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> _refreshUsbDevices() async {
|
||||||
|
final dev = await ledger.listUsbDevices();
|
||||||
|
if (usbDevices.length != dev.length) setState(() => usbDevices = dev);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> _refreshBleDevices() async {
|
||||||
|
final isBleEnabled = await Permission.bluetooth.serviceStatus.isEnabled;
|
||||||
|
|
||||||
|
setState(() => bleIsEnabled = isBleEnabled);
|
||||||
|
|
||||||
|
if (isBleEnabled) {
|
||||||
|
_bleRefresh = ledger.scan().listen((device) => setState(() => bleDevices.add(device)));
|
||||||
|
_bleRefreshTimer?.cancel();
|
||||||
|
_bleRefreshTimer = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> _connectToDevice(LedgerDevice device) async {
|
||||||
|
await widget.ledgerVM.connectLedger(device);
|
||||||
|
widget.onConnectDevice(context, widget.ledgerVM);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Center(
|
||||||
|
child: Container(
|
||||||
|
width: ResponsiveLayoutUtilBase.kDesktopMaxWidthConstraint,
|
||||||
|
height: double.infinity,
|
||||||
|
padding: EdgeInsets.symmetric(vertical: 24, horizontal: 24),
|
||||||
|
child: SingleChildScrollView(
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(left: 20, right: 20, bottom: 20),
|
||||||
|
child: Text(
|
||||||
|
Platform.isIOS
|
||||||
|
? S.of(context).connect_your_hardware_wallet_ios
|
||||||
|
: S.of(context).connect_your_hardware_wallet,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 16,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor),
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
if (!bleIsEnabled)
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(left: 20, right: 20, bottom: 20),
|
||||||
|
child: Text(
|
||||||
|
S.of(context).ledger_please_enable_bluetooth,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 16,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor),
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
if (bleDevices.length > 0) ...[
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(left: 20, right: 20, bottom: 20),
|
||||||
|
child: Container(
|
||||||
|
width: double.infinity,
|
||||||
|
child: Text(
|
||||||
|
S.of(context).bluetooth,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 14,
|
||||||
|
fontWeight: FontWeight.w400,
|
||||||
|
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
...bleDevices
|
||||||
|
.map(
|
||||||
|
(device) => Padding(
|
||||||
|
padding: EdgeInsets.only(bottom: 20),
|
||||||
|
child: DeviceTile(
|
||||||
|
onPressed: () => _connectToDevice(device),
|
||||||
|
title: device.name,
|
||||||
|
leading: imageLedger,
|
||||||
|
connectionType: device.connectionType,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.toList()
|
||||||
|
],
|
||||||
|
if (usbDevices.length > 0) ...[
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(left: 20, right: 20, bottom: 20),
|
||||||
|
child: Container(
|
||||||
|
width: double.infinity,
|
||||||
|
child: Text(
|
||||||
|
S.of(context).usb,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 14,
|
||||||
|
fontWeight: FontWeight.w400,
|
||||||
|
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
...usbDevices
|
||||||
|
.map(
|
||||||
|
(device) => Padding(
|
||||||
|
padding: EdgeInsets.only(bottom: 20),
|
||||||
|
child: DeviceTile(
|
||||||
|
onPressed: () => _connectToDevice(device),
|
||||||
|
title: device.name,
|
||||||
|
leading: imageLedger,
|
||||||
|
connectionType: device.connectionType,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.toList(),
|
||||||
|
]
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
225
lib/src/screens/connect_device/debug_device_page.dart
Normal file
225
lib/src/screens/connect_device/debug_device_page.dart
Normal file
|
@ -0,0 +1,225 @@
|
||||||
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/connect_device/widgets/device_tile.dart';
|
||||||
|
import 'package:cake_wallet/src/widgets/primary_button.dart';
|
||||||
|
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:ledger_ethereum/ledger_ethereum.dart';
|
||||||
|
import 'package:ledger_flutter/ledger_flutter.dart';
|
||||||
|
import 'package:permission_handler/permission_handler.dart';
|
||||||
|
|
||||||
|
class DebugDevicePage extends BasePage {
|
||||||
|
@override
|
||||||
|
String get title => "Connect Ledger";
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget body(BuildContext context) => DebugDevicePageBody();
|
||||||
|
}
|
||||||
|
|
||||||
|
class DebugDevicePageBody extends StatefulWidget {
|
||||||
|
@override
|
||||||
|
DebugDevicePageBodyState createState() => DebugDevicePageBodyState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class DebugDevicePageBodyState extends State<DebugDevicePageBody> {
|
||||||
|
final imageLedger = Image.asset(
|
||||||
|
'assets/images/ledger_icon_black.png',
|
||||||
|
width: 40,
|
||||||
|
);
|
||||||
|
final ledger = Ledger(
|
||||||
|
options: LedgerOptions(
|
||||||
|
scanMode: ScanMode.balanced,
|
||||||
|
maxScanDuration: const Duration(milliseconds: 5000),
|
||||||
|
),
|
||||||
|
onPermissionRequest: (status) async {
|
||||||
|
Map<Permission, PermissionStatus> statuses = await [
|
||||||
|
// Permission.location,
|
||||||
|
Permission.bluetoothScan,
|
||||||
|
Permission.bluetoothConnect,
|
||||||
|
Permission.bluetoothAdvertise,
|
||||||
|
].request();
|
||||||
|
|
||||||
|
if (status != BleStatus.ready) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return statuses.values.where((status) => status.isDenied).isEmpty;
|
||||||
|
},
|
||||||
|
);
|
||||||
|
final conLedger = Ledger(options: LedgerOptions(
|
||||||
|
scanMode: ScanMode.balanced,));
|
||||||
|
|
||||||
|
late EthereumLedgerApp eth;
|
||||||
|
var devices = <LedgerDevice>[];
|
||||||
|
var status = "";
|
||||||
|
var counter = 0;
|
||||||
|
LedgerDevice? selectedDevice = null;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
eth = EthereumLedgerApp(conLedger);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
super.dispose();
|
||||||
|
conLedger.close(ConnectionType.ble);
|
||||||
|
conLedger.close(ConnectionType.usb);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> reconnectCurrentDevice() async {
|
||||||
|
// await ledger.disconnect(selectedDevice!);
|
||||||
|
// await ledger.connect(selectedDevice!);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> disconnectCurrentDevice() async {
|
||||||
|
await conLedger.disconnect(selectedDevice!);
|
||||||
|
setState(() => selectedDevice = null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
final imageLedger = 'assets/images/ledger_nano.png';
|
||||||
|
|
||||||
|
return Center(
|
||||||
|
child: Container(
|
||||||
|
width: ResponsiveLayoutUtilBase.kDesktopMaxWidthConstraint,
|
||||||
|
height: double.infinity,
|
||||||
|
padding: EdgeInsets.symmetric(vertical: 24, horizontal: 24),
|
||||||
|
child: SingleChildScrollView(
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(top: 20),
|
||||||
|
child: Text(status),
|
||||||
|
),
|
||||||
|
if (selectedDevice != null) ...[
|
||||||
|
DebugButton(
|
||||||
|
title: "Get Version",
|
||||||
|
method: "Version",
|
||||||
|
func: () async => await eth.getVersion(selectedDevice!),
|
||||||
|
),
|
||||||
|
DebugButton(
|
||||||
|
title: "Get Master Fingerprint",
|
||||||
|
method: "Master Fingerprint",
|
||||||
|
func: () async => {}// await btc.getMasterFingerprint(selectedDevice!),
|
||||||
|
),
|
||||||
|
DebugButton(
|
||||||
|
title: "Get XPub",
|
||||||
|
method: "XPub",
|
||||||
|
func: () async => {}// await btc.getXPubKey(selectedDevice!, derivationPath: "m/84'/0'/0'"),
|
||||||
|
),
|
||||||
|
DebugButton(
|
||||||
|
title: "Get Wallet Address",
|
||||||
|
method: "Wallet Address",
|
||||||
|
func: () async {
|
||||||
|
// setState(() => counter++);
|
||||||
|
// final derivationPath = "m/44'/60'/$counter'/0/0";
|
||||||
|
// print(derivationPath);
|
||||||
|
// return await eth.getAccounts(selectedDevice!, derivationPath);
|
||||||
|
// return await ethereum!.getHardwareWalletAccounts(selectedDevice!);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
DebugButton(
|
||||||
|
title: "Get Output",
|
||||||
|
method: "OutHash",
|
||||||
|
func: () async => {}//Address.addressToOutputScript("bc1q4aacwm9f9ayukulk7sq4h75ge0pwp6r8nzvt7h").toHexString(),
|
||||||
|
),
|
||||||
|
DebugButton(
|
||||||
|
title: "Sign Message",
|
||||||
|
method: "Sig",
|
||||||
|
func: () async {}
|
||||||
|
// final message = magicHashMessage('CakeWallet');
|
||||||
|
// final result = await btc.signMessage(selectedDevice!, message: message);
|
||||||
|
// return base64.encode(result);
|
||||||
|
// },
|
||||||
|
),
|
||||||
|
DebugButton(
|
||||||
|
title: "Send Money",
|
||||||
|
method: "Sig",
|
||||||
|
func: () async {}
|
||||||
|
// final psbt = PsbtV2();
|
||||||
|
// final psbtBuf = base64.decode(
|
||||||
|
// "cHNidP8BAHsCAAAAAk1upP3MCirtbu5vaCq+aG+1XAAtCD5H2g4rUYvxZA+7AAAAAAD9////zEm9RNUErupcFctJ+/6BMtZpbdlA8i9MbJ9XRI5cekIFAAAAAP3///8BTRcAAAAAAAAWABSve4dsqS9Jy3P29AFb+ojLwuDoZwAAAAABBAECAQUBAQAAAAA=");
|
||||||
|
//
|
||||||
|
// psbt.deserialize(psbtBuf);
|
||||||
|
// final result = await btc.signPsbt(selectedDevice!, psbt: psbt);
|
||||||
|
// return result.toHexString();
|
||||||
|
// },
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(top: 20),
|
||||||
|
child: PrimaryButton(
|
||||||
|
text: "Disconnect",
|
||||||
|
onPressed: () => disconnectCurrentDevice(),
|
||||||
|
color: Theme.of(context).primaryColor,
|
||||||
|
textColor: Colors.white),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
if (selectedDevice == null) ...[
|
||||||
|
...devices
|
||||||
|
.map(
|
||||||
|
(device) => Padding(
|
||||||
|
padding: EdgeInsets.only(bottom: 20),
|
||||||
|
child: DeviceTile(
|
||||||
|
onPressed: () {
|
||||||
|
setState(() => selectedDevice = device);
|
||||||
|
ledger.connect(device);
|
||||||
|
},
|
||||||
|
title: device.name,
|
||||||
|
leading: imageLedger,
|
||||||
|
connectionType: device.connectionType,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
.toList(),
|
||||||
|
PrimaryButton(
|
||||||
|
text: "Refresh BLE",
|
||||||
|
onPressed: () async {
|
||||||
|
setState(() => devices = []);
|
||||||
|
ledger.scan().listen((device) => setState(() {
|
||||||
|
devices.add(device);
|
||||||
|
}));
|
||||||
|
},
|
||||||
|
color: Theme.of(context).primaryColor,
|
||||||
|
textColor: Colors.white),
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(top: 20),
|
||||||
|
child: PrimaryButton(
|
||||||
|
text: "Use USB",
|
||||||
|
onPressed: () async {
|
||||||
|
final dev = await ledger.listUsbDevices();
|
||||||
|
setState(() => devices = dev);
|
||||||
|
},
|
||||||
|
color: Theme.of(context).primaryColor,
|
||||||
|
textColor: Colors.white),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
],
|
||||||
|
),
|
||||||
|
)),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Widget DebugButton(
|
||||||
|
{required String title, required String method, required Future<dynamic> Function() func}) {
|
||||||
|
return Padding(
|
||||||
|
padding: EdgeInsets.only(top: 20),
|
||||||
|
child: PrimaryButton(
|
||||||
|
text: title,
|
||||||
|
onPressed: () async {
|
||||||
|
try {
|
||||||
|
setState(() => status = "Sending...");
|
||||||
|
final acc = await func();
|
||||||
|
setState(() => status = "$method: $acc");
|
||||||
|
print("$method: $acc");
|
||||||
|
} on LedgerException catch (ex) {
|
||||||
|
setState(() => status = "${ex.errorCode.toRadixString(16)} ${ex.message}");
|
||||||
|
print("${ex.errorCode.toRadixString(16)} ${ex.message}");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
color: Theme.of(context).primaryColor,
|
||||||
|
textColor: Colors.white),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,256 @@
|
||||||
|
import 'package:cake_wallet/core/wallet_name_validator.dart';
|
||||||
|
import 'package:cake_wallet/entities/generate_name.dart';
|
||||||
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/new_wallet/widgets/select_button.dart';
|
||||||
|
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
||||||
|
import 'package:cake_wallet/src/widgets/primary_button.dart';
|
||||||
|
import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart';
|
||||||
|
import 'package:cake_wallet/themes/extensions/cake_text_theme.dart';
|
||||||
|
import 'package:cake_wallet/themes/extensions/new_wallet_theme.dart';
|
||||||
|
import 'package:cake_wallet/themes/extensions/send_page_theme.dart';
|
||||||
|
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
||||||
|
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||||
|
import 'package:cake_wallet/view_model/wallet_hardware_restore_view_model.dart';
|
||||||
|
import 'package:cw_core/wallet_type.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_mobx/flutter_mobx.dart';
|
||||||
|
import 'package:mobx/mobx.dart';
|
||||||
|
|
||||||
|
class SelectHardwareWalletAccountPage extends BasePage {
|
||||||
|
SelectHardwareWalletAccountPage(this._walletHardwareRestoreVM);
|
||||||
|
|
||||||
|
final WalletHardwareRestoreViewModel _walletHardwareRestoreVM;
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get title => S.current.restore_title_from_hardware_wallet;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget body(BuildContext context) => SelectHardwareWalletAccountForm(_walletHardwareRestoreVM);
|
||||||
|
}
|
||||||
|
|
||||||
|
class SelectHardwareWalletAccountForm extends StatefulWidget {
|
||||||
|
SelectHardwareWalletAccountForm(this._walletHardwareRestoreVM);
|
||||||
|
|
||||||
|
final WalletHardwareRestoreViewModel _walletHardwareRestoreVM;
|
||||||
|
|
||||||
|
@override
|
||||||
|
_SelectHardwareWalletAccountFormState createState() =>
|
||||||
|
_SelectHardwareWalletAccountFormState(_walletHardwareRestoreVM);
|
||||||
|
}
|
||||||
|
|
||||||
|
class _SelectHardwareWalletAccountFormState extends State<SelectHardwareWalletAccountForm> {
|
||||||
|
_SelectHardwareWalletAccountFormState(this._walletHardwareRestoreVM)
|
||||||
|
: _formKey = GlobalKey<FormState>(),
|
||||||
|
_controller = TextEditingController();
|
||||||
|
|
||||||
|
final GlobalKey<FormState> _formKey;
|
||||||
|
final WalletHardwareRestoreViewModel _walletHardwareRestoreVM;
|
||||||
|
final TextEditingController _controller;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
_setEffects(context);
|
||||||
|
if (_walletHardwareRestoreVM.availableAccounts.length == 0) _loadMoreAccounts();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Padding(
|
||||||
|
padding: EdgeInsets.only(top: 24),
|
||||||
|
child: ScrollableWithBottomSection(
|
||||||
|
contentPadding: EdgeInsets.only(left: 24, right: 24, bottom: 24),
|
||||||
|
content: Center(
|
||||||
|
child: ConstrainedBox(
|
||||||
|
constraints:
|
||||||
|
BoxConstraints(maxWidth: ResponsiveLayoutUtilBase.kDesktopMaxWidthConstraint),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(top: 0),
|
||||||
|
child: Form(
|
||||||
|
key: _formKey,
|
||||||
|
child: Stack(
|
||||||
|
alignment: Alignment.centerRight,
|
||||||
|
children: [
|
||||||
|
TextFormField(
|
||||||
|
onChanged: (value) => _walletHardwareRestoreVM.name = value,
|
||||||
|
controller: _controller,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 20.0,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor,
|
||||||
|
),
|
||||||
|
decoration: InputDecoration(
|
||||||
|
hintStyle: TextStyle(
|
||||||
|
fontSize: 18.0,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
color: Theme.of(context).extension<NewWalletTheme>()!.hintTextColor,
|
||||||
|
),
|
||||||
|
hintText: S.of(context).wallet_name,
|
||||||
|
focusedBorder: UnderlineInputBorder(
|
||||||
|
borderSide: BorderSide(
|
||||||
|
color:
|
||||||
|
Theme.of(context).extension<NewWalletTheme>()!.underlineColor,
|
||||||
|
width: 1.0,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
enabledBorder: UnderlineInputBorder(
|
||||||
|
borderSide: BorderSide(
|
||||||
|
color:
|
||||||
|
Theme.of(context).extension<NewWalletTheme>()!.underlineColor,
|
||||||
|
width: 1.0,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
suffixIcon: Semantics(
|
||||||
|
label: S.of(context).generate_name,
|
||||||
|
child: IconButton(
|
||||||
|
onPressed: () async {
|
||||||
|
final rName = await generateName();
|
||||||
|
FocusManager.instance.primaryFocus?.unfocus();
|
||||||
|
|
||||||
|
setState(() {
|
||||||
|
_controller.text = rName;
|
||||||
|
_walletHardwareRestoreVM.name = rName;
|
||||||
|
_controller.selection = TextSelection.fromPosition(
|
||||||
|
TextPosition(offset: _controller.text.length));
|
||||||
|
});
|
||||||
|
},
|
||||||
|
icon: Container(
|
||||||
|
padding: const EdgeInsets.all(8),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.circular(6.0),
|
||||||
|
color: Theme.of(context).hintColor,
|
||||||
|
),
|
||||||
|
width: 34,
|
||||||
|
height: 34,
|
||||||
|
child: Image.asset(
|
||||||
|
'assets/images/refresh_icon.png',
|
||||||
|
color: Theme.of(context)
|
||||||
|
.extension<SendPageTheme>()!
|
||||||
|
.textFieldButtonIconColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
validator: WalletNameValidator(),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(top: 20),
|
||||||
|
child: Container(
|
||||||
|
width: double.infinity,
|
||||||
|
child: Text(
|
||||||
|
"Available accounts",
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 16,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Observer(
|
||||||
|
builder: (context) => Column(
|
||||||
|
children: _walletHardwareRestoreVM.availableAccounts.map((acc) {
|
||||||
|
final address = acc.address;
|
||||||
|
return Padding(
|
||||||
|
padding: EdgeInsets.only(top: 10),
|
||||||
|
child: SelectButton(
|
||||||
|
image: Image.asset(
|
||||||
|
walletTypeToCryptoCurrency(_walletHardwareRestoreVM.type).iconPath ??
|
||||||
|
'',
|
||||||
|
height: 24,
|
||||||
|
width: 24,
|
||||||
|
),
|
||||||
|
text:
|
||||||
|
"${address.substring(0, 6)}...${address.substring(address.length - 6)}",
|
||||||
|
showTrailingIcon: false,
|
||||||
|
height: 54,
|
||||||
|
isSelected: _walletHardwareRestoreVM.selectedAccount == acc,
|
||||||
|
onTap: () =>
|
||||||
|
setState(() => _walletHardwareRestoreVM.selectedAccount = acc),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}).toList(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(top: 10),
|
||||||
|
child: Observer(builder: (context) {
|
||||||
|
return LoadingPrimaryButton(
|
||||||
|
onPressed: _loadMoreAccounts,
|
||||||
|
text: S.of(context).load_more,
|
||||||
|
color: Theme.of(context).primaryColor,
|
||||||
|
textColor: Colors.white,
|
||||||
|
isLoading: _walletHardwareRestoreVM.isLoadingMoreAccounts,
|
||||||
|
);
|
||||||
|
}),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
bottomSectionPadding: EdgeInsets.all(24),
|
||||||
|
bottomSection: Observer(
|
||||||
|
builder: (context) {
|
||||||
|
return LoadingPrimaryButton(
|
||||||
|
onPressed: _confirmForm,
|
||||||
|
text: S.of(context).seed_language_next,
|
||||||
|
color: Colors.green,
|
||||||
|
textColor: Colors.white,
|
||||||
|
isDisabled: _walletHardwareRestoreVM.name.isEmpty,
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> _loadMoreAccounts() async {
|
||||||
|
_walletHardwareRestoreVM.isLoadingMoreAccounts = true;
|
||||||
|
_walletHardwareRestoreVM.getNextAvailableAccounts(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> _confirmForm() async {
|
||||||
|
await _walletHardwareRestoreVM.create();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool _effectsInstalled = false;
|
||||||
|
|
||||||
|
void _setEffects(BuildContext context) {
|
||||||
|
if (_effectsInstalled) return;
|
||||||
|
|
||||||
|
reaction((_) => _walletHardwareRestoreVM.error, (String? error) {
|
||||||
|
|
||||||
|
if (error != null) {
|
||||||
|
|
||||||
|
if (error == S.current.ledger_connection_error)
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
|
||||||
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
|
showPopUp<void>(
|
||||||
|
context: context,
|
||||||
|
builder: (BuildContext context) {
|
||||||
|
return AlertWithOneAction(
|
||||||
|
alertTitle: S.of(context).error,
|
||||||
|
alertContent: error,
|
||||||
|
buttonText: S.of(context).ok,
|
||||||
|
buttonAction: () {
|
||||||
|
_walletHardwareRestoreVM.error = null;
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
_effectsInstalled = true;
|
||||||
|
}
|
||||||
|
}
|
78
lib/src/screens/connect_device/widgets/device_tile.dart
Normal file
78
lib/src/screens/connect_device/widgets/device_tile.dart
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
import 'package:cake_wallet/themes/extensions/option_tile_theme.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:ledger_flutter/ledger_flutter.dart';
|
||||||
|
|
||||||
|
class DeviceTile extends StatelessWidget {
|
||||||
|
const DeviceTile({
|
||||||
|
required this.onPressed,
|
||||||
|
required this.title,
|
||||||
|
this.leading,
|
||||||
|
this.connectionType,
|
||||||
|
});
|
||||||
|
|
||||||
|
final VoidCallback onPressed;
|
||||||
|
final String title;
|
||||||
|
final String? leading;
|
||||||
|
final ConnectionType? connectionType;
|
||||||
|
|
||||||
|
String? get connectionTypeIcon {
|
||||||
|
switch (connectionType) {
|
||||||
|
case ConnectionType.ble:
|
||||||
|
return 'assets/images/bluetooth.png';
|
||||||
|
case ConnectionType.usb:
|
||||||
|
return 'assets/images/usb.png';
|
||||||
|
case null:
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return GestureDetector(
|
||||||
|
onTap: onPressed,
|
||||||
|
child: Container(
|
||||||
|
width: double.infinity,
|
||||||
|
padding: EdgeInsets.all(24),
|
||||||
|
alignment: Alignment.center,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(12)),
|
||||||
|
color: Theme.of(context).cardColor,
|
||||||
|
),
|
||||||
|
child: Row(
|
||||||
|
mainAxisSize: MainAxisSize.max,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: <Widget>[
|
||||||
|
if (leading != null)
|
||||||
|
Image.asset(
|
||||||
|
leading!,
|
||||||
|
height: 30,
|
||||||
|
color: Theme.of(context).extension<OptionTileTheme>()!.titleColor,
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: Padding(
|
||||||
|
padding: EdgeInsets.only(left: 16),
|
||||||
|
child: Text(
|
||||||
|
title,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 20,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
color: Theme.of(context).extension<OptionTileTheme>()!.titleColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
if (connectionTypeIcon != null)
|
||||||
|
Center(
|
||||||
|
child: Image.asset(
|
||||||
|
connectionTypeIcon!,
|
||||||
|
height: 25,
|
||||||
|
color: Theme.of(context).extension<OptionTileTheme>()!.titleColor,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
|
@ -148,6 +148,17 @@ class CryptoBalanceWidget extends StatelessWidget {
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
|
if (dashboardViewModel.wallet.isHardwareWallet)
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: Image.asset(
|
||||||
|
'assets/images/ledger_nano.png',
|
||||||
|
width: 24,
|
||||||
|
color: Theme.of(context)
|
||||||
|
.extension<DashboardPageTheme>()!
|
||||||
|
.pageTitleTextColor,
|
||||||
|
),
|
||||||
|
),
|
||||||
if (dashboardViewModel
|
if (dashboardViewModel
|
||||||
.balanceViewModel.isHomeScreenSettingsEnabled)
|
.balanceViewModel.isHomeScreenSettingsEnabled)
|
||||||
InkWell(
|
InkWell(
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:cake_wallet/generated/i18n.dart';
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/new_wallet/widgets/select_button.dart';
|
import 'package:cake_wallet/src/screens/new_wallet/widgets/select_button.dart';
|
||||||
|
@ -10,14 +12,20 @@ import 'package:cake_wallet/themes/theme_base.dart';
|
||||||
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
||||||
import 'package:cake_wallet/utils/show_pop_up.dart';
|
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||||
import 'package:cake_wallet/wallet_types.g.dart';
|
import 'package:cake_wallet/wallet_types.g.dart';
|
||||||
|
import 'package:cw_core/hardware/device_connection_type.dart';
|
||||||
import 'package:cw_core/wallet_type.dart';
|
import 'package:cw_core/wallet_type.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class NewWalletTypePage extends BasePage {
|
class NewWalletTypePage extends BasePage {
|
||||||
NewWalletTypePage({required this.onTypeSelected, required this.isCreate});
|
NewWalletTypePage({
|
||||||
|
required this.onTypeSelected,
|
||||||
|
required this.isCreate,
|
||||||
|
required this.isHardwareWallet,
|
||||||
|
});
|
||||||
|
|
||||||
final void Function(BuildContext, WalletType) onTypeSelected;
|
final void Function(BuildContext, WalletType) onTypeSelected;
|
||||||
final bool isCreate;
|
final bool isCreate;
|
||||||
|
final bool isHardwareWallet;
|
||||||
|
|
||||||
final walletTypeImage = Image.asset('assets/images/wallet_type.png');
|
final walletTypeImage = Image.asset('assets/images/wallet_type.png');
|
||||||
final walletTypeLightImage = Image.asset('assets/images/wallet_type_light.png');
|
final walletTypeLightImage = Image.asset('assets/images/wallet_type_light.png');
|
||||||
|
@ -31,15 +39,22 @@ class NewWalletTypePage extends BasePage {
|
||||||
onTypeSelected: onTypeSelected,
|
onTypeSelected: onTypeSelected,
|
||||||
walletImage: currentTheme.type == ThemeType.dark ? walletTypeImage : walletTypeLightImage,
|
walletImage: currentTheme.type == ThemeType.dark ? walletTypeImage : walletTypeLightImage,
|
||||||
isCreate: isCreate,
|
isCreate: isCreate,
|
||||||
|
isHardwareWallet: isHardwareWallet,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
class WalletTypeForm extends StatefulWidget {
|
class WalletTypeForm extends StatefulWidget {
|
||||||
WalletTypeForm({required this.onTypeSelected, required this.walletImage, required this.isCreate});
|
WalletTypeForm({
|
||||||
|
required this.onTypeSelected,
|
||||||
|
required this.walletImage,
|
||||||
|
required this.isCreate,
|
||||||
|
required this.isHardwareWallet,
|
||||||
|
});
|
||||||
|
|
||||||
final void Function(BuildContext, WalletType) onTypeSelected;
|
final void Function(BuildContext, WalletType) onTypeSelected;
|
||||||
final Image walletImage;
|
final Image walletImage;
|
||||||
final bool isCreate;
|
final bool isCreate;
|
||||||
|
final bool isHardwareWallet;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
WalletTypeFormState createState() => WalletTypeFormState();
|
WalletTypeFormState createState() => WalletTypeFormState();
|
||||||
|
@ -58,7 +73,11 @@ class WalletTypeFormState extends State<WalletTypeForm> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
types = filteredTypes = availableWalletTypes;
|
types = filteredTypes = availableWalletTypes
|
||||||
|
.where((element) =>
|
||||||
|
!widget.isHardwareWallet ||
|
||||||
|
DeviceConnectionType.supportedConnectionTypes(element, Platform.isIOS).isNotEmpty)
|
||||||
|
.toList();
|
||||||
super.initState();
|
super.initState();
|
||||||
|
|
||||||
searchController.addListener(() {
|
searchController.addListener(() {
|
||||||
|
@ -74,76 +93,81 @@ class WalletTypeFormState extends State<WalletTypeForm> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Center(
|
return Center(
|
||||||
child: ConstrainedBox(
|
child: ConstrainedBox(
|
||||||
constraints:
|
constraints: BoxConstraints(maxWidth: ResponsiveLayoutUtilBase.kDesktopMaxWidthConstraint),
|
||||||
BoxConstraints(maxWidth: ResponsiveLayoutUtilBase.kDesktopMaxWidthConstraint),
|
child: Column(
|
||||||
child: Column(
|
children: [
|
||||||
children: [
|
Padding(
|
||||||
Padding(
|
padding: EdgeInsets.only(top: 48),
|
||||||
padding: EdgeInsets.only(top: 48),
|
child: Text(
|
||||||
child: Text(
|
S.of(context).choose_wallet_currency,
|
||||||
S.of(context).choose_wallet_currency,
|
textAlign: TextAlign.center,
|
||||||
textAlign: TextAlign.center,
|
style: TextStyle(
|
||||||
style: TextStyle(
|
fontSize: 16,
|
||||||
fontSize: 16,
|
fontWeight: FontWeight.w500,
|
||||||
fontWeight: FontWeight.w500,
|
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor,
|
||||||
color: Theme.of(context).extension<CakeTextTheme>()!.titleColor),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Padding(
|
),
|
||||||
padding: const EdgeInsets.fromLTRB(24, 24, 24, 12),
|
),
|
||||||
child: SearchBarWidget(searchController: searchController, borderRadius: 24),
|
Padding(
|
||||||
),
|
padding: EdgeInsets.fromLTRB(24, 24, 24, 12),
|
||||||
Expanded(
|
child: SearchBarWidget(searchController: searchController, borderRadius: 24),
|
||||||
child: ScrollableWithBottomSection(
|
),
|
||||||
contentPadding: EdgeInsets.only(left: 24, right: 24, bottom: 24),
|
Expanded(
|
||||||
content: Column(
|
child: ScrollableWithBottomSection(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
contentPadding: EdgeInsets.only(left: 24, right: 24, bottom: 24),
|
||||||
children: <Widget>[
|
content: Column(
|
||||||
...filteredTypes.map((type) => Padding(
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
padding: EdgeInsets.only(top: 12),
|
children: <Widget>[
|
||||||
child: SelectButton(
|
...filteredTypes.map(
|
||||||
image: Image.asset(
|
(type) => Padding(
|
||||||
walletTypeToCryptoCurrency(type).iconPath ?? '',
|
padding: EdgeInsets.only(top: 12),
|
||||||
height: 24,
|
child: SelectButton(
|
||||||
width: 24),
|
image: Image.asset(
|
||||||
text: walletTypeToDisplayName(type),
|
walletTypeToCryptoCurrency(type).iconPath ?? '',
|
||||||
showTrailingIcon: false,
|
height: 24,
|
||||||
height: 54,
|
width: 24,
|
||||||
isSelected: selected == type,
|
),
|
||||||
onTap: () => setState(() => selected = type)),
|
text: walletTypeToDisplayName(type),
|
||||||
))
|
showTrailingIcon: false,
|
||||||
],
|
height: 54,
|
||||||
|
isSelected: selected == type,
|
||||||
|
onTap: () => setState(() => selected = type),
|
||||||
|
deviceConnectionTypes: widget.isHardwareWallet
|
||||||
|
? DeviceConnectionType.supportedConnectionTypes(type, Platform.isIOS)
|
||||||
|
: [],
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
bottomSectionPadding: EdgeInsets.only(left: 24, right: 24, bottom: 24),
|
],
|
||||||
bottomSection: PrimaryButton(
|
|
||||||
onPressed: () => onTypeSelected(),
|
|
||||||
text: S.of(context).seed_language_next,
|
|
||||||
color: Theme.of(context).primaryColor,
|
|
||||||
textColor: Colors.white,
|
|
||||||
isDisabled: selected == null,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
bottomSectionPadding: EdgeInsets.only(left: 24, right: 24, bottom: 24),
|
||||||
)));
|
bottomSection: PrimaryButton(
|
||||||
|
onPressed: () => onTypeSelected(),
|
||||||
|
text: S.of(context).seed_language_next,
|
||||||
|
color: Theme.of(context).primaryColor,
|
||||||
|
textColor: Colors.white,
|
||||||
|
isDisabled: selected == null,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> onTypeSelected() async {
|
Future<void> onTypeSelected() async {
|
||||||
if (selected == null) {
|
if (selected == null) throw Exception('Wallet Type is not selected yet.');
|
||||||
throw Exception('Wallet Type is not selected yet.');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (selected == WalletType.haven && widget.isCreate) {
|
if (selected == WalletType.haven && widget.isCreate) {
|
||||||
return await showPopUp<void>(
|
return await showPopUp<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) => PopUpCancellableAlertDialog(
|
||||||
return PopUpCancellableAlertDialog(
|
contentText: S.of(context).pause_wallet_creation,
|
||||||
contentText: S.of(context).pause_wallet_creation,
|
actionButtonText: S.of(context).ok,
|
||||||
actionButtonText: S.of(context).ok,
|
buttonAction: () => Navigator.of(context).pop(),
|
||||||
buttonAction: () => Navigator.of(context).pop(),
|
),
|
||||||
);
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:cake_wallet/themes/extensions/cake_text_theme.dart';
|
import 'package:cake_wallet/themes/extensions/cake_text_theme.dart';
|
||||||
import 'package:cake_wallet/themes/extensions/filter_theme.dart';
|
import 'package:cake_wallet/themes/extensions/filter_theme.dart';
|
||||||
import 'package:cake_wallet/themes/extensions/wallet_list_theme.dart';
|
import 'package:cake_wallet/themes/extensions/wallet_list_theme.dart';
|
||||||
|
import 'package:cw_core/hardware/device_connection_type.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class SelectButton extends StatelessWidget {
|
class SelectButton extends StatelessWidget {
|
||||||
SelectButton({
|
SelectButton({
|
||||||
|
@ -16,6 +17,7 @@ class SelectButton extends StatelessWidget {
|
||||||
this.textColor,
|
this.textColor,
|
||||||
this.arrowColor,
|
this.arrowColor,
|
||||||
this.borderColor,
|
this.borderColor,
|
||||||
|
this.deviceConnectionTypes,
|
||||||
});
|
});
|
||||||
|
|
||||||
final Image? image;
|
final Image? image;
|
||||||
|
@ -24,6 +26,7 @@ class SelectButton extends StatelessWidget {
|
||||||
final bool isSelected;
|
final bool isSelected;
|
||||||
final VoidCallback onTap;
|
final VoidCallback onTap;
|
||||||
final bool showTrailingIcon;
|
final bool showTrailingIcon;
|
||||||
|
final List<DeviceConnectionType>? deviceConnectionTypes;
|
||||||
final double height;
|
final double height;
|
||||||
final Color? color;
|
final Color? color;
|
||||||
final Color? textColor;
|
final Color? textColor;
|
||||||
|
@ -33,15 +36,26 @@ class SelectButton extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final backgroundColor = color ?? (isSelected ? Colors.green : Theme.of(context).cardColor);
|
final backgroundColor = color ?? (isSelected ? Colors.green : Theme.of(context).cardColor);
|
||||||
final effectiveTextColor = textColor ?? (isSelected
|
final effectiveTextColor = textColor ??
|
||||||
? Theme.of(context).extension<WalletListTheme>()!.restoreWalletButtonTextColor
|
(isSelected
|
||||||
: Theme.of(context).extension<CakeTextTheme>()!.buttonTextColor);
|
? Theme.of(context).extension<WalletListTheme>()!.restoreWalletButtonTextColor
|
||||||
final effectiveArrowColor = arrowColor ?? (isSelected
|
: Theme.of(context).extension<CakeTextTheme>()!.buttonTextColor);
|
||||||
? Theme.of(context).extension<WalletListTheme>()!.restoreWalletButtonTextColor
|
final effectiveArrowColor = arrowColor ??
|
||||||
: Theme.of(context).extension<FilterTheme>()!.titlesColor);
|
(isSelected
|
||||||
|
? Theme.of(context).extension<WalletListTheme>()!.restoreWalletButtonTextColor
|
||||||
|
: Theme.of(context).extension<FilterTheme>()!.titlesColor);
|
||||||
|
|
||||||
final selectArrowImage = Image.asset('assets/images/select_arrow.png',
|
final trailingIcons = <Image>[];
|
||||||
color: effectiveArrowColor);
|
final selectArrowImage =
|
||||||
|
Image.asset('assets/images/select_arrow.png', color: effectiveArrowColor);
|
||||||
|
|
||||||
|
deviceConnectionTypes?.forEach((element) => trailingIcons.add(Image.asset(
|
||||||
|
element.iconString,
|
||||||
|
color: effectiveArrowColor,
|
||||||
|
height: 24,
|
||||||
|
)));
|
||||||
|
|
||||||
|
if (showTrailingIcon) trailingIcons.add(selectArrowImage);
|
||||||
|
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
|
@ -54,34 +68,33 @@ class SelectButton extends StatelessWidget {
|
||||||
borderRadius: BorderRadius.all(Radius.circular(30)),
|
borderRadius: BorderRadius.all(Radius.circular(30)),
|
||||||
color: backgroundColor,
|
color: backgroundColor,
|
||||||
border: borderColor != null ? Border.all(color: borderColor!) : null,
|
border: borderColor != null ? Border.all(color: borderColor!) : null,
|
||||||
|
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Row(
|
Expanded(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: <Widget>[
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
image ?? Offstage(),
|
children: <Widget>[
|
||||||
Padding(
|
image ?? Offstage(),
|
||||||
padding: image != null
|
Padding(
|
||||||
? EdgeInsets.only(left: 15)
|
padding: image != null ? EdgeInsets.only(left: 15) : EdgeInsets.only(left: 0),
|
||||||
: EdgeInsets.only(left: 0),
|
child: Text(
|
||||||
child: Text(
|
text,
|
||||||
text,
|
style: TextStyle(
|
||||||
style: TextStyle(
|
fontSize: textSize,
|
||||||
fontSize: textSize,
|
fontWeight: FontWeight.w500,
|
||||||
fontWeight: FontWeight.w500,
|
color: effectiveTextColor,
|
||||||
color: effectiveTextColor,
|
),
|
||||||
),
|
),
|
||||||
),
|
)
|
||||||
)
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
if (showTrailingIcon) selectArrowImage
|
...trailingIcons
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
import 'package:cake_wallet/core/execution_state.dart';
|
import 'package:cake_wallet/core/execution_state.dart';
|
||||||
import 'package:cake_wallet/di.dart';
|
import 'package:cake_wallet/di.dart';
|
||||||
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
|
import 'package:cake_wallet/routes.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/pin_code/pin_code_widget.dart';
|
import 'package:cake_wallet/src/screens/pin_code/pin_code_widget.dart';
|
||||||
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
||||||
import 'package:cake_wallet/src/widgets/option_tile.dart';
|
import 'package:cake_wallet/src/widgets/option_tile.dart';
|
||||||
|
import 'package:cake_wallet/themes/extensions/option_tile_theme.dart';
|
||||||
|
import 'package:cake_wallet/utils/permission_handler.dart';
|
||||||
|
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
||||||
import 'package:cake_wallet/utils/show_pop_up.dart';
|
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||||
import 'package:cake_wallet/view_model/restore/restore_from_qr_vm.dart';
|
import 'package:cake_wallet/view_model/restore/restore_from_qr_vm.dart';
|
||||||
import 'package:cake_wallet/view_model/restore/wallet_restore_from_qr_code.dart';
|
import 'package:cake_wallet/view_model/restore/wallet_restore_from_qr_code.dart';
|
||||||
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:cake_wallet/routes.dart';
|
|
||||||
import 'package:flutter/cupertino.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
|
||||||
import 'package:cake_wallet/generated/i18n.dart';
|
|
||||||
import 'package:permission_handler/permission_handler.dart';
|
import 'package:permission_handler/permission_handler.dart';
|
||||||
import 'package:cake_wallet/utils/permission_handler.dart';
|
|
||||||
|
|
||||||
class RestoreOptionsPage extends BasePage {
|
class RestoreOptionsPage extends BasePage {
|
||||||
RestoreOptionsPage({required this.isNewInstall});
|
RestoreOptionsPage({required this.isNewInstall});
|
||||||
|
@ -22,12 +22,15 @@ class RestoreOptionsPage extends BasePage {
|
||||||
String get title => S.current.restore_restore_wallet;
|
String get title => S.current.restore_restore_wallet;
|
||||||
|
|
||||||
final bool isNewInstall;
|
final bool isNewInstall;
|
||||||
final imageSeedKeys = Image.asset('assets/images/restore_wallet_image.png');
|
|
||||||
final imageBackup = Image.asset('assets/images/backup.png');
|
|
||||||
final qrCode = Image.asset('assets/images/restore_qr.png');
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget body(BuildContext context) {
|
Widget body(BuildContext context) {
|
||||||
|
final imageColor = Theme.of(context).extension<OptionTileTheme>()!.titleColor;
|
||||||
|
final imageLedger = Image.asset('assets/images/ledger_nano.png', width: 40, color: imageColor);
|
||||||
|
final imageSeedKeys = Image.asset('assets/images/restore_wallet_image.png', color: imageColor);
|
||||||
|
final imageBackup = Image.asset('assets/images/backup.png', color: imageColor);
|
||||||
|
final qrCode = Image.asset('assets/images/restore_qr.png', color: imageColor);
|
||||||
|
|
||||||
return Center(
|
return Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
width: ResponsiveLayoutUtilBase.kDesktopMaxWidthConstraint,
|
width: ResponsiveLayoutUtilBase.kDesktopMaxWidthConstraint,
|
||||||
|
@ -37,53 +40,37 @@ class RestoreOptionsPage extends BasePage {
|
||||||
child: Column(
|
child: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
OptionTile(
|
OptionTile(
|
||||||
onPressed: () => Navigator.pushNamed(context, Routes.restoreWalletFromSeedKeys,
|
onPressed: () => Navigator.pushNamed(context, Routes.restoreWalletFromSeedKeys,
|
||||||
arguments: isNewInstall),
|
arguments: isNewInstall),
|
||||||
image: imageSeedKeys,
|
image: imageSeedKeys,
|
||||||
title: S.of(context).restore_title_from_seed_keys,
|
title: S.of(context).restore_title_from_seed_keys,
|
||||||
description: S.of(context).restore_description_from_seed_keys),
|
description: S.of(context).restore_description_from_seed_keys,
|
||||||
|
),
|
||||||
if (isNewInstall)
|
if (isNewInstall)
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(top: 24),
|
padding: EdgeInsets.only(top: 24),
|
||||||
child: OptionTile(
|
child: OptionTile(
|
||||||
onPressed: () => Navigator.pushNamed(context, Routes.restoreFromBackup),
|
onPressed: () => Navigator.pushNamed(context, Routes.restoreFromBackup),
|
||||||
image: imageBackup,
|
image: imageBackup,
|
||||||
title: S.of(context).restore_title_from_backup,
|
title: S.of(context).restore_title_from_backup,
|
||||||
description: S.of(context).restore_description_from_backup),
|
description: S.of(context).restore_description_from_backup,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(top: 24),
|
padding: EdgeInsets.only(top: 24),
|
||||||
child: OptionTile(
|
child: OptionTile(
|
||||||
onPressed: () async {
|
onPressed: () => Navigator.pushNamed(
|
||||||
bool isCameraPermissionGranted =
|
context, Routes.restoreWalletFromHardwareWallet,
|
||||||
await PermissionHandler.checkPermission(Permission.camera, context);
|
arguments: isNewInstall),
|
||||||
if (!isCameraPermissionGranted) return;
|
image: imageLedger,
|
||||||
bool isPinSet = false;
|
title: S.of(context).restore_title_from_hardware_wallet,
|
||||||
if (isNewInstall) {
|
description: S.of(context).restore_description_from_hardware_wallet,
|
||||||
await Navigator.pushNamed(context, Routes.setupPin,
|
),
|
||||||
arguments: (PinCodeState<PinCodeWidget> setupPinContext, String _) {
|
),
|
||||||
setupPinContext.close();
|
Padding(
|
||||||
isPinSet = true;
|
padding: EdgeInsets.only(top: 24),
|
||||||
});
|
child: OptionTile(
|
||||||
}
|
onPressed: () => _onScanQRCode(context),
|
||||||
if (!isNewInstall || isPinSet) {
|
|
||||||
try {
|
|
||||||
final restoreWallet =
|
|
||||||
await WalletRestoreFromQRCode.scanQRCodeForRestoring(context);
|
|
||||||
|
|
||||||
final restoreFromQRViewModel =
|
|
||||||
getIt.get<WalletRestorationFromQRVM>(param1: restoreWallet.type);
|
|
||||||
|
|
||||||
await restoreFromQRViewModel.create(restoreWallet: restoreWallet);
|
|
||||||
if (restoreFromQRViewModel.state is FailureState) {
|
|
||||||
_onWalletCreateFailure(context,
|
|
||||||
'Create wallet state: ${(restoreFromQRViewModel.state as FailureState).error}');
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
_onWalletCreateFailure(context, e.toString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
image: qrCode,
|
image: qrCode,
|
||||||
title: S.of(context).scan_qr_code,
|
title: S.of(context).scan_qr_code,
|
||||||
description: S.of(context).cold_or_recover_wallet),
|
description: S.of(context).cold_or_recover_wallet),
|
||||||
|
@ -105,4 +92,35 @@ class RestoreOptionsPage extends BasePage {
|
||||||
buttonAction: () => Navigator.of(context).pop());
|
buttonAction: () => Navigator.of(context).pop());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<void> _onScanQRCode(BuildContext context) async {
|
||||||
|
final isCameraPermissionGranted =
|
||||||
|
await PermissionHandler.checkPermission(Permission.camera, context);
|
||||||
|
|
||||||
|
if (!isCameraPermissionGranted) return;
|
||||||
|
bool isPinSet = false;
|
||||||
|
if (isNewInstall) {
|
||||||
|
await Navigator.pushNamed(context, Routes.setupPin,
|
||||||
|
arguments: (PinCodeState<PinCodeWidget> setupPinContext, String _) {
|
||||||
|
setupPinContext.close();
|
||||||
|
isPinSet = true;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (!isNewInstall || isPinSet) {
|
||||||
|
try {
|
||||||
|
final restoreWallet = await WalletRestoreFromQRCode.scanQRCodeForRestoring(context);
|
||||||
|
|
||||||
|
final restoreFromQRViewModel =
|
||||||
|
getIt.get<WalletRestorationFromQRVM>(param1: restoreWallet.type);
|
||||||
|
|
||||||
|
await restoreFromQRViewModel.create(restoreWallet: restoreWallet);
|
||||||
|
if (restoreFromQRViewModel.state is FailureState) {
|
||||||
|
_onWalletCreateFailure(context,
|
||||||
|
'Create wallet state: ${(restoreFromQRViewModel.state as FailureState).error}');
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
_onWalletCreateFailure(context, e.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,39 +1,40 @@
|
||||||
import 'package:cake_wallet/core/auth_service.dart';
|
import 'package:cake_wallet/core/auth_service.dart';
|
||||||
import 'package:cake_wallet/entities/contact_record.dart';
|
import 'package:cake_wallet/entities/contact_record.dart';
|
||||||
|
import 'package:cake_wallet/core/execution_state.dart';
|
||||||
import 'package:cake_wallet/entities/fiat_currency.dart';
|
import 'package:cake_wallet/entities/fiat_currency.dart';
|
||||||
import 'package:cake_wallet/entities/template.dart';
|
import 'package:cake_wallet/entities/template.dart';
|
||||||
import 'package:cake_wallet/reactions/wallet_connect.dart';
|
import 'package:cake_wallet/reactions/wallet_connect.dart';
|
||||||
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
|
import 'package:cake_wallet/routes.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/connect_device/connect_device_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/dashboard/widgets/sync_indicator_icon.dart';
|
import 'package:cake_wallet/src/screens/dashboard/widgets/sync_indicator_icon.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/send/widgets/confirm_sending_alert.dart';
|
||||||
import 'package:cake_wallet/src/screens/send/widgets/send_card.dart';
|
import 'package:cake_wallet/src/screens/send/widgets/send_card.dart';
|
||||||
import 'package:cake_wallet/src/widgets/add_template_button.dart';
|
import 'package:cake_wallet/src/widgets/add_template_button.dart';
|
||||||
|
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
||||||
import 'package:cake_wallet/src/widgets/alert_with_two_actions.dart';
|
import 'package:cake_wallet/src/widgets/alert_with_two_actions.dart';
|
||||||
import 'package:cake_wallet/src/widgets/picker.dart';
|
import 'package:cake_wallet/src/widgets/picker.dart';
|
||||||
|
import 'package:cake_wallet/src/widgets/primary_button.dart';
|
||||||
|
import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart';
|
||||||
import 'package:cake_wallet/src/widgets/template_tile.dart';
|
import 'package:cake_wallet/src/widgets/template_tile.dart';
|
||||||
|
import 'package:cake_wallet/src/widgets/trail_button.dart';
|
||||||
import 'package:cake_wallet/themes/extensions/seed_widget_theme.dart';
|
import 'package:cake_wallet/themes/extensions/seed_widget_theme.dart';
|
||||||
import 'package:cake_wallet/themes/extensions/send_page_theme.dart';
|
import 'package:cake_wallet/themes/extensions/send_page_theme.dart';
|
||||||
import 'package:cake_wallet/themes/theme_base.dart';
|
import 'package:cake_wallet/themes/theme_base.dart';
|
||||||
import 'package:cake_wallet/utils/payment_request.dart';
|
import 'package:cake_wallet/utils/payment_request.dart';
|
||||||
import 'package:cake_wallet/utils/request_review_handler.dart';
|
import 'package:cake_wallet/utils/request_review_handler.dart';
|
||||||
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
import 'package:cake_wallet/utils/responsive_layout_util.dart';
|
||||||
|
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||||
import 'package:cake_wallet/view_model/send/output.dart';
|
import 'package:cake_wallet/view_model/send/output.dart';
|
||||||
import 'package:cw_core/wallet_type.dart';
|
import 'package:cw_core/wallet_type.dart';
|
||||||
|
import 'package:cake_wallet/view_model/send/send_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/send/send_view_model_state.dart';
|
||||||
|
import 'package:cw_core/crypto_currency.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_mobx/flutter_mobx.dart';
|
import 'package:flutter_mobx/flutter_mobx.dart';
|
||||||
import 'package:mobx/mobx.dart';
|
import 'package:mobx/mobx.dart';
|
||||||
import 'package:cake_wallet/routes.dart';
|
|
||||||
import 'package:cake_wallet/view_model/send/send_view_model.dart';
|
|
||||||
import 'package:cake_wallet/core/execution_state.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
|
||||||
import 'package:cake_wallet/src/widgets/primary_button.dart';
|
|
||||||
import 'package:cake_wallet/src/widgets/scollable_with_bottom_section.dart';
|
|
||||||
import 'package:cake_wallet/src/widgets/trail_button.dart';
|
|
||||||
import 'package:cake_wallet/utils/show_pop_up.dart';
|
|
||||||
import 'package:cake_wallet/view_model/send/send_view_model_state.dart';
|
|
||||||
import 'package:cake_wallet/generated/i18n.dart';
|
|
||||||
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/send/widgets/confirm_sending_alert.dart';
|
|
||||||
import 'package:smooth_page_indicator/smooth_page_indicator.dart';
|
import 'package:smooth_page_indicator/smooth_page_indicator.dart';
|
||||||
import 'package:cw_core/crypto_currency.dart';
|
|
||||||
|
|
||||||
class SendPage extends BasePage {
|
class SendPage extends BasePage {
|
||||||
SendPage({
|
SendPage({
|
||||||
|
@ -369,6 +370,21 @@ class SendPage extends BasePage {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sendViewModel.wallet.isHardwareWallet) {
|
||||||
|
if (!sendViewModel.ledgerViewModel.isConnected) {
|
||||||
|
await Navigator.of(context).pushNamed(Routes.connectDevices,
|
||||||
|
arguments: ConnectDevicePageParams(
|
||||||
|
walletType: sendViewModel.walletType,
|
||||||
|
onConnectDevice: (BuildContext context, _) {
|
||||||
|
sendViewModel.ledgerViewModel.setLedger(sendViewModel.wallet);
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
},
|
||||||
|
));
|
||||||
|
} else {
|
||||||
|
sendViewModel.ledgerViewModel.setLedger(sendViewModel.wallet);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
final check = sendViewModel.shouldDisplayTotp();
|
final check = sendViewModel.shouldDisplayTotp();
|
||||||
authService.authenticateAction(
|
authService.authenticateAction(
|
||||||
context,
|
context,
|
||||||
|
@ -384,7 +400,8 @@ class SendPage extends BasePage {
|
||||||
color: Theme.of(context).primaryColor,
|
color: Theme.of(context).primaryColor,
|
||||||
textColor: Colors.white,
|
textColor: Colors.white,
|
||||||
isLoading: sendViewModel.state is IsExecutingState ||
|
isLoading: sendViewModel.state is IsExecutingState ||
|
||||||
sendViewModel.state is TransactionCommitting,
|
sendViewModel.state is TransactionCommitting ||
|
||||||
|
sendViewModel.state is IsAwaitingDeviceResponseState,
|
||||||
isDisabled: !sendViewModel.isReadyForSend,
|
isDisabled: !sendViewModel.isReadyForSend,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
@ -395,12 +412,20 @@ class SendPage extends BasePage {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BuildContext? dialogContext;
|
||||||
|
|
||||||
void _setEffects(BuildContext context) {
|
void _setEffects(BuildContext context) {
|
||||||
if (_effectsInstalled) {
|
if (_effectsInstalled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
reaction((_) => sendViewModel.state, (ExecutionState state) {
|
reaction((_) => sendViewModel.state, (ExecutionState state) {
|
||||||
|
|
||||||
|
if (dialogContext != null && dialogContext?.mounted == true) {
|
||||||
|
Navigator.of(dialogContext!).pop();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (state is FailureState) {
|
if (state is FailureState) {
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
showPopUp<void>(
|
showPopUp<void>(
|
||||||
|
@ -510,6 +535,21 @@ class SendPage extends BasePage {
|
||||||
sendViewModel.clearOutputs();
|
sendViewModel.clearOutputs();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (state is IsAwaitingDeviceResponseState) {
|
||||||
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
|
showPopUp<void>(
|
||||||
|
context: context,
|
||||||
|
builder: (BuildContext context) {
|
||||||
|
dialogContext = context;
|
||||||
|
return AlertWithOneAction(
|
||||||
|
alertTitle: S.of(context).proceed_on_device,
|
||||||
|
alertContent: S.of(context).proceed_on_device_description,
|
||||||
|
buttonText: S.of(context).cancel,
|
||||||
|
buttonAction: () => Navigator.of(context).pop());
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
_effectsInstalled = true;
|
_effectsInstalled = true;
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
import 'package:cake_wallet/reactions/wallet_connect.dart';
|
import 'package:cake_wallet/reactions/wallet_connect.dart';
|
||||||
|
import 'package:cake_wallet/routes.dart';
|
||||||
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/widgets/settings_cell_with_arrow.dart';
|
import 'package:cake_wallet/src/screens/settings/widgets/settings_cell_with_arrow.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/widgets/settings_picker_cell.dart';
|
import 'package:cake_wallet/src/screens/settings/widgets/settings_picker_cell.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/widgets/settings_switcher_cell.dart';
|
import 'package:cake_wallet/src/screens/settings/widgets/settings_switcher_cell.dart';
|
||||||
import 'package:cake_wallet/src/screens/settings/widgets/wallet_connect_button.dart';
|
import 'package:cake_wallet/src/screens/settings/widgets/wallet_connect_button.dart';
|
||||||
|
import 'package:cake_wallet/src/widgets/alert_with_two_actions.dart';
|
||||||
import 'package:cake_wallet/utils/device_info.dart';
|
import 'package:cake_wallet/utils/device_info.dart';
|
||||||
import 'package:cake_wallet/utils/feature_flag.dart';
|
import 'package:cake_wallet/utils/feature_flag.dart';
|
||||||
import 'package:cake_wallet/utils/show_pop_up.dart';
|
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||||
|
@ -12,10 +16,6 @@ import 'package:cake_wallet/view_model/dashboard/dashboard_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/settings/sync_mode.dart';
|
import 'package:cake_wallet/view_model/settings/sync_mode.dart';
|
||||||
import 'package:cw_core/battery_optimization_native.dart';
|
import 'package:cw_core/battery_optimization_native.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:cake_wallet/routes.dart';
|
|
||||||
import 'package:cake_wallet/generated/i18n.dart';
|
|
||||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
|
||||||
import 'package:cake_wallet/src/widgets/alert_with_two_actions.dart';
|
|
||||||
import 'package:flutter_mobx/flutter_mobx.dart';
|
import 'package:flutter_mobx/flutter_mobx.dart';
|
||||||
|
|
||||||
class ConnectionSyncPage extends BasePage {
|
class ConnectionSyncPage extends BasePage {
|
||||||
|
@ -106,7 +106,8 @@ class ConnectionSyncPage extends BasePage {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
if (isWalletConnectCompatibleChain(dashboardViewModel.wallet.type)) ...[
|
if (isWalletConnectCompatibleChain(dashboardViewModel.wallet.type) &&
|
||||||
|
!dashboardViewModel.wallet.isHardwareWallet) ...[ // ToDo: Remove this line once WalletConnect is implemented
|
||||||
WalletConnectTile(
|
WalletConnectTile(
|
||||||
onTap: () => Navigator.of(context).pushNamed(Routes.walletConnectConnectionsListing),
|
onTap: () => Navigator.of(context).pushNamed(Routes.walletConnectConnectionsListing),
|
||||||
),
|
),
|
||||||
|
|
63
lib/view_model/hardware_wallet/ledger_view_model.dart
Normal file
63
lib/view_model/hardware_wallet/ledger_view_model.dart
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
import 'package:cake_wallet/ethereum/ethereum.dart';
|
||||||
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
|
import 'package:cake_wallet/polygon/polygon.dart';
|
||||||
|
import 'package:cw_core/wallet_base.dart';
|
||||||
|
import 'package:cw_core/wallet_type.dart';
|
||||||
|
import 'package:ledger_flutter/ledger_flutter.dart';
|
||||||
|
import 'package:permission_handler/permission_handler.dart';
|
||||||
|
|
||||||
|
class LedgerViewModel {
|
||||||
|
final Ledger ledger = Ledger(
|
||||||
|
options: LedgerOptions(
|
||||||
|
scanMode: ScanMode.balanced,
|
||||||
|
maxScanDuration: const Duration(minutes: 5),
|
||||||
|
),
|
||||||
|
onPermissionRequest: (_) async {
|
||||||
|
Map<Permission, PermissionStatus> statuses = await [
|
||||||
|
Permission.bluetoothScan,
|
||||||
|
Permission.bluetoothConnect,
|
||||||
|
Permission.bluetoothAdvertise,
|
||||||
|
].request();
|
||||||
|
|
||||||
|
return statuses.values.where((status) => status.isDenied).isEmpty;
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
Future<void> connectLedger(LedgerDevice device) async {
|
||||||
|
await ledger.connect(device);
|
||||||
|
|
||||||
|
if (device.connectionType == ConnectionType.usb) _device = device;
|
||||||
|
}
|
||||||
|
|
||||||
|
LedgerDevice? _device;
|
||||||
|
|
||||||
|
bool get isConnected => ledger.devices.isNotEmpty || _device != null;
|
||||||
|
|
||||||
|
LedgerDevice get device => _device ?? ledger.devices.first;
|
||||||
|
|
||||||
|
void setLedger(WalletBase wallet) {
|
||||||
|
switch (wallet.type) {
|
||||||
|
case WalletType.ethereum:
|
||||||
|
return ethereum!.setLedger(wallet, ledger, device);
|
||||||
|
case WalletType.polygon:
|
||||||
|
return polygon!.setLedger(wallet, ledger, device);
|
||||||
|
default:
|
||||||
|
throw Exception('Unexpected wallet type: ${wallet.type}');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
String? interpretErrorCode(String errorCode) {
|
||||||
|
switch (errorCode) {
|
||||||
|
case "6985":
|
||||||
|
return S.current.ledger_error_tx_rejected_by_user;
|
||||||
|
case "5515":
|
||||||
|
return S.current.ledger_error_device_locked;
|
||||||
|
case "6d02": // UNKNOWN_APDU
|
||||||
|
case "6511":
|
||||||
|
case "6e00":
|
||||||
|
return S.current.ledger_error_wrong_app;
|
||||||
|
default:
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -14,11 +14,13 @@ import 'package:cake_wallet/solana/solana.dart';
|
||||||
import 'package:cake_wallet/store/app_store.dart';
|
import 'package:cake_wallet/store/app_store.dart';
|
||||||
import 'package:cake_wallet/view_model/contact_list/contact_list_view_model.dart';
|
import 'package:cake_wallet/view_model/contact_list/contact_list_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/dashboard/balance_view_model.dart';
|
import 'package:cake_wallet/view_model/dashboard/balance_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/hardware_wallet/ledger_view_model.dart';
|
||||||
import 'package:cw_core/exceptions.dart';
|
import 'package:cw_core/exceptions.dart';
|
||||||
import 'package:cw_core/transaction_priority.dart';
|
import 'package:cw_core/transaction_priority.dart';
|
||||||
import 'package:cake_wallet/view_model/send/output.dart';
|
import 'package:cake_wallet/view_model/send/output.dart';
|
||||||
import 'package:cake_wallet/view_model/send/send_template_view_model.dart';
|
import 'package:cake_wallet/view_model/send/send_template_view_model.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
import 'package:ledger_flutter/ledger_flutter.dart';
|
||||||
import 'package:mobx/mobx.dart';
|
import 'package:mobx/mobx.dart';
|
||||||
import 'package:cake_wallet/entities/template.dart';
|
import 'package:cake_wallet/entities/template.dart';
|
||||||
import 'package:cake_wallet/core/address_validator.dart';
|
import 'package:cake_wallet/core/address_validator.dart';
|
||||||
|
@ -60,6 +62,7 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
|
||||||
this.balanceViewModel,
|
this.balanceViewModel,
|
||||||
this.contactListViewModel,
|
this.contactListViewModel,
|
||||||
this.transactionDescriptionBox,
|
this.transactionDescriptionBox,
|
||||||
|
this.ledgerViewModel,
|
||||||
) : state = InitialExecutionState(),
|
) : state = InitialExecutionState(),
|
||||||
currencies = appStore.wallet!.balance.keys.toList(),
|
currencies = appStore.wallet!.balance.keys.toList(),
|
||||||
selectedCryptoCurrency = appStore.wallet!.currency,
|
selectedCryptoCurrency = appStore.wallet!.currency,
|
||||||
|
@ -258,6 +261,7 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
|
||||||
final SendTemplateViewModel sendTemplateViewModel;
|
final SendTemplateViewModel sendTemplateViewModel;
|
||||||
final BalanceViewModel balanceViewModel;
|
final BalanceViewModel balanceViewModel;
|
||||||
final ContactListViewModel contactListViewModel;
|
final ContactListViewModel contactListViewModel;
|
||||||
|
final LedgerViewModel ledgerViewModel;
|
||||||
final FiatConversionStore _fiatConversationStore;
|
final FiatConversionStore _fiatConversationStore;
|
||||||
final Box<TransactionDescription> transactionDescriptionBox;
|
final Box<TransactionDescription> transactionDescriptionBox;
|
||||||
|
|
||||||
|
@ -332,7 +336,10 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
|
||||||
try {
|
try {
|
||||||
state = IsExecutingState();
|
state = IsExecutingState();
|
||||||
|
|
||||||
|
if (wallet.isHardwareWallet) state = IsAwaitingDeviceResponseState();
|
||||||
|
|
||||||
pendingTransaction = await wallet.createTransaction(_credentials());
|
pendingTransaction = await wallet.createTransaction(_credentials());
|
||||||
|
|
||||||
if (provider is ThorChainExchangeProvider) {
|
if (provider is ThorChainExchangeProvider) {
|
||||||
final outputCount = pendingTransaction?.outputCount ?? 0;
|
final outputCount = pendingTransaction?.outputCount ?? 0;
|
||||||
if (outputCount > 10) {
|
if (outputCount > 10) {
|
||||||
|
@ -346,7 +353,15 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
|
||||||
state = ExecutedSuccessfullyState();
|
state = ExecutedSuccessfullyState();
|
||||||
return pendingTransaction;
|
return pendingTransaction;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
state = FailureState(translateErrorMessage(e, wallet.type, wallet.currency));
|
if (e is LedgerException) {
|
||||||
|
final errorCode = e.errorCode.toRadixString(16);
|
||||||
|
final fallbackMsg = e.message.isNotEmpty ? e.message : "Unexpected Ledger Error Code: $errorCode";
|
||||||
|
final errorMsg = ledgerViewModel.interpretErrorCode(errorCode) ?? fallbackMsg;
|
||||||
|
|
||||||
|
state = FailureState(errorMsg);
|
||||||
|
} else {
|
||||||
|
state = FailureState(translateErrorMessage(e, wallet.type, wallet.currency));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -382,15 +397,13 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
|
||||||
|
|
||||||
String address = outputs.fold('', (acc, value) {
|
String address = outputs.fold('', (acc, value) {
|
||||||
return value.isParsedAddress
|
return value.isParsedAddress
|
||||||
? acc + value.address + '\n' + value.extractedAddress + '\n\n'
|
? '$acc${value.address}\n${value.extractedAddress}\n\n'
|
||||||
: acc + value.address + '\n\n';
|
: '$acc${value.address}\n\n';
|
||||||
});
|
});
|
||||||
|
|
||||||
address = address.trim();
|
address = address.trim();
|
||||||
|
|
||||||
String note = outputs.fold('', (acc, value) {
|
String note = outputs.fold('', (acc, value) => '$acc${value.note}\n');
|
||||||
return acc + value.note + '\n';
|
|
||||||
});
|
|
||||||
|
|
||||||
note = note.trim();
|
note = note.trim();
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import 'package:cake_wallet/core/execution_state.dart';
|
import 'package:cake_wallet/core/execution_state.dart';
|
||||||
|
|
||||||
|
class IsAwaitingDeviceResponseState extends IsExecutingState {}
|
||||||
class TransactionCommitting extends ExecutionState {}
|
class TransactionCommitting extends ExecutionState {}
|
||||||
class TransactionCommitted extends ExecutionState {}
|
class TransactionCommitted extends ExecutionState {}
|
||||||
|
|
|
@ -72,6 +72,7 @@ abstract class WalletCreationVMBase with Store {
|
||||||
address: '',
|
address: '',
|
||||||
showIntroCakePayCard: (!walletCreationService.typeExists(type)) && type != WalletType.haven,
|
showIntroCakePayCard: (!walletCreationService.typeExists(type)) && type != WalletType.haven,
|
||||||
derivationInfo: credentials.derivationInfo ?? getDefaultDerivation(),
|
derivationInfo: credentials.derivationInfo ?? getDefaultDerivation(),
|
||||||
|
hardwareWalletType: credentials.hardwareWalletType,
|
||||||
);
|
);
|
||||||
|
|
||||||
credentials.walletInfo = walletInfo;
|
credentials.walletInfo = walletInfo;
|
||||||
|
|
101
lib/view_model/wallet_hardware_restore_view_model.dart
Normal file
101
lib/view_model/wallet_hardware_restore_view_model.dart
Normal file
|
@ -0,0 +1,101 @@
|
||||||
|
import 'package:cake_wallet/core/wallet_creation_service.dart';
|
||||||
|
import 'package:cake_wallet/ethereum/ethereum.dart';
|
||||||
|
import 'package:cake_wallet/generated/i18n.dart';
|
||||||
|
import 'package:cake_wallet/polygon/polygon.dart';
|
||||||
|
import 'package:cake_wallet/store/app_store.dart';
|
||||||
|
import 'package:cake_wallet/view_model/hardware_wallet/ledger_view_model.dart';
|
||||||
|
import 'package:cake_wallet/view_model/wallet_creation_vm.dart';
|
||||||
|
import 'package:cw_core/hardware/hardware_account_data.dart';
|
||||||
|
import 'package:cw_core/wallet_base.dart';
|
||||||
|
import 'package:cw_core/wallet_credentials.dart';
|
||||||
|
import 'package:cw_core/wallet_info.dart';
|
||||||
|
import 'package:cw_core/wallet_type.dart';
|
||||||
|
import 'package:hive/hive.dart';
|
||||||
|
import 'package:ledger_flutter/ledger_flutter.dart';
|
||||||
|
import 'package:mobx/mobx.dart';
|
||||||
|
|
||||||
|
part 'wallet_hardware_restore_view_model.g.dart';
|
||||||
|
|
||||||
|
class WalletHardwareRestoreViewModel = WalletHardwareRestoreViewModelBase
|
||||||
|
with _$WalletHardwareRestoreViewModel;
|
||||||
|
|
||||||
|
abstract class WalletHardwareRestoreViewModelBase extends WalletCreationVM with Store {
|
||||||
|
final LedgerViewModel ledgerViewModel;
|
||||||
|
|
||||||
|
int _nextIndex = 0;
|
||||||
|
|
||||||
|
WalletHardwareRestoreViewModelBase(this.ledgerViewModel, AppStore appStore,
|
||||||
|
WalletCreationService walletCreationService, Box<WalletInfo> walletInfoSource,
|
||||||
|
{required WalletType type})
|
||||||
|
: super(appStore, walletInfoSource, walletCreationService, type: type, isRecovery: true);
|
||||||
|
|
||||||
|
@observable
|
||||||
|
String name = "";
|
||||||
|
|
||||||
|
@observable
|
||||||
|
HardwareAccountData? selectedAccount = null;
|
||||||
|
|
||||||
|
@observable
|
||||||
|
bool isLoadingMoreAccounts = false;
|
||||||
|
|
||||||
|
@observable
|
||||||
|
String? error = null;
|
||||||
|
|
||||||
|
// @observable
|
||||||
|
ObservableList<HardwareAccountData> availableAccounts = ObservableList();
|
||||||
|
|
||||||
|
@action
|
||||||
|
Future<void> getNextAvailableAccounts(int limit) async {
|
||||||
|
try {
|
||||||
|
List<HardwareAccountData> accounts;
|
||||||
|
switch (type) {
|
||||||
|
case WalletType.ethereum:
|
||||||
|
accounts = await ethereum!
|
||||||
|
.getHardwareWalletAccounts(ledgerViewModel, index: _nextIndex, limit: limit);
|
||||||
|
break;
|
||||||
|
case WalletType.polygon:
|
||||||
|
accounts = await polygon!
|
||||||
|
.getHardwareWalletAccounts(ledgerViewModel, index: _nextIndex, limit: limit);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
availableAccounts.addAll(accounts);
|
||||||
|
_nextIndex += limit;
|
||||||
|
} on LedgerException catch (e) {
|
||||||
|
error = ledgerViewModel.interpretErrorCode(e.errorCode.toRadixString(16));
|
||||||
|
} catch (e) {
|
||||||
|
error = S.current.ledger_connection_error;
|
||||||
|
}
|
||||||
|
|
||||||
|
isLoadingMoreAccounts = false;
|
||||||
|
_nextIndex += limit;
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
WalletCredentials getCredentials(dynamic _options) {
|
||||||
|
WalletCredentials credentials;
|
||||||
|
switch (type) {
|
||||||
|
case WalletType.ethereum:
|
||||||
|
credentials =
|
||||||
|
ethereum!.createEthereumHardwareWalletCredentials(name: name, hwAccountData: selectedAccount!);
|
||||||
|
break;
|
||||||
|
case WalletType.polygon:
|
||||||
|
credentials = polygon!.createPolygonHardwareWalletCredentials(name: name, hwAccountData: selectedAccount!);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
throw Exception('Unexpected type: ${type.toString()}');
|
||||||
|
}
|
||||||
|
|
||||||
|
credentials.hardwareWalletType = HardwareWalletType.ledger;
|
||||||
|
|
||||||
|
return credentials;
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<WalletBase> process(WalletCredentials credentials) async {
|
||||||
|
walletCreationService.changeWalletType(type: type);
|
||||||
|
return walletCreationService.restoreFromHardwareWallet(credentials);
|
||||||
|
}
|
||||||
|
}
|
|
@ -111,6 +111,7 @@ dependencies:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/cake-tech/bitcoin_base.git
|
url: https://github.com/cake-tech/bitcoin_base.git
|
||||||
ref: cake-update-v2
|
ref: cake-update-v2
|
||||||
|
ledger_flutter: ^1.0.1
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
@ -133,6 +134,14 @@ dependency_overrides:
|
||||||
bech32:
|
bech32:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/cake-tech/bech32.git
|
url: https://github.com/cake-tech/bech32.git
|
||||||
|
ledger_flutter:
|
||||||
|
git:
|
||||||
|
url: https://github.com/cake-tech/ledger-flutter.git
|
||||||
|
ref: cake
|
||||||
|
web3dart:
|
||||||
|
git:
|
||||||
|
url: https://github.com/cake-tech/web3dart.git
|
||||||
|
ref: cake
|
||||||
|
|
||||||
flutter_icons:
|
flutter_icons:
|
||||||
image_path: "assets/images/app_logo.png"
|
image_path: "assets/images/app_logo.png"
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "موضوع البيتكوين الخفيفة",
|
"bitcoin_light_theme": "موضوع البيتكوين الخفيفة",
|
||||||
"bitcoin_payments_require_1_confirmation": "تتطلب مدفوعات Bitcoin تأكيدًا واحدًا ، والذي قد يستغرق 20 دقيقة أو أكثر. شكرا لصبرك! سيتم إرسال بريد إلكتروني إليك عند تأكيد الدفع.",
|
"bitcoin_payments_require_1_confirmation": "تتطلب مدفوعات Bitcoin تأكيدًا واحدًا ، والذي قد يستغرق 20 دقيقة أو أكثر. شكرا لصبرك! سيتم إرسال بريد إلكتروني إليك عند تأكيد الدفع.",
|
||||||
"Blocks_remaining": "بلوك متبقي ${status}",
|
"Blocks_remaining": "بلوك متبقي ${status}",
|
||||||
|
"bluetooth": "بلوتوث",
|
||||||
"bright_theme": "مشرق",
|
"bright_theme": "مشرق",
|
||||||
"bump_fee": "رسوم عثرة",
|
"bump_fee": "رسوم عثرة",
|
||||||
"buy": "اشتري",
|
"buy": "اشتري",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "تهانينا!",
|
"congratulations": "تهانينا!",
|
||||||
"connect_an_existing_yat": "توصيل Yat الحالي",
|
"connect_an_existing_yat": "توصيل Yat الحالي",
|
||||||
"connect_yats": "توصيل Yats",
|
"connect_yats": "توصيل Yats",
|
||||||
|
"connect_your_hardware_wallet": "قم بتوصيل محفظة الأجهزة الخاصة بك باستخدام Bluetooth أو USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "قم بتوصيل محفظة الأجهزة الخاصة بك باستخدام Bluetooth",
|
||||||
"connection_sync": "الاتصال والمزامنة",
|
"connection_sync": "الاتصال والمزامنة",
|
||||||
"connectWalletPrompt": "ﺕﻼﻣﺎﻌﻤﻟﺍ ءﺍﺮﺟﻹ WalletConnect ﻊﻣ ﻚﺘﻈﻔﺤﻣ ﻞﻴﺻﻮﺘﺑ ﻢﻗ",
|
"connectWalletPrompt": "ﺕﻼﻣﺎﻌﻤﻟﺍ ءﺍﺮﺟﻹ WalletConnect ﻊﻣ ﻚﺘﻈﻔﺤﻣ ﻞﻴﺻﻮﺘﺑ ﻢﻗ",
|
||||||
"contact": "تواصل",
|
"contact": "تواصل",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "يكون",
|
"is_percentage": "يكون",
|
||||||
"last_30_days": "آخر 30 يومًا",
|
"last_30_days": "آخر 30 يومًا",
|
||||||
"learn_more": "اعرف المزيد",
|
"learn_more": "اعرف المزيد",
|
||||||
|
"ledger_connection_error": "فشل في الاتصال بك دفتر الأستاذ. حاول مرة اخرى.",
|
||||||
|
"ledger_error_device_locked": "تم قفل دفتر الأستاذ",
|
||||||
|
"ledger_error_tx_rejected_by_user": "تم رفض المعاملة على الجهاز",
|
||||||
|
"ledger_error_wrong_app": "يرجى التأكد",
|
||||||
|
"ledger_please_enable_bluetooth": "يرجى تمكين البلوتوث للكشف عن دفتر الأستاذ الخاص بك",
|
||||||
"light_theme": "فاتح",
|
"light_theme": "فاتح",
|
||||||
|
"load_more": "تحميل المزيد",
|
||||||
"loading_your_wallet": "يتم تحميل محفظتك",
|
"loading_your_wallet": "يتم تحميل محفظتك",
|
||||||
"login": "تسجيل الدخول",
|
"login": "تسجيل الدخول",
|
||||||
"logout": "تسجيل خروج",
|
"logout": "تسجيل خروج",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "إعدادات الخصوصية",
|
"privacy_settings": "إعدادات الخصوصية",
|
||||||
"private_key": "مفتاح خاص",
|
"private_key": "مفتاح خاص",
|
||||||
"proceed_after_one_minute": "إذا لم تستمر الشاشة بعد دقيقة واحدة ، فتحقق من بريدك الإلكتروني.",
|
"proceed_after_one_minute": "إذا لم تستمر الشاشة بعد دقيقة واحدة ، فتحقق من بريدك الإلكتروني.",
|
||||||
|
"proceed_on_device": "تابع جهازك",
|
||||||
|
"proceed_on_device_description": "يرجى اتباع الإرشادات المطلوبة على محفظة الأجهزة الخاصة بك",
|
||||||
"profile": "حساب تعريفي",
|
"profile": "حساب تعريفي",
|
||||||
"provider_error": "خطأ ${provider}",
|
"provider_error": "خطأ ${provider}",
|
||||||
"public_key": "مفتاح عمومي",
|
"public_key": "مفتاح عمومي",
|
||||||
|
@ -490,6 +501,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "قم باستعادة محفظتك من كود مكون من 24 كلمة",
|
"restore_bitcoin_description_from_seed": "قم باستعادة محفظتك من كود مكون من 24 كلمة",
|
||||||
"restore_bitcoin_title_from_keys": "استعادة من WIF",
|
"restore_bitcoin_title_from_keys": "استعادة من WIF",
|
||||||
"restore_description_from_backup": "يمكنك استعادة تطبيق Cake Wallet بالكامل من ملف النسخ الاحتياطي",
|
"restore_description_from_backup": "يمكنك استعادة تطبيق Cake Wallet بالكامل من ملف النسخ الاحتياطي",
|
||||||
|
"restore_description_from_hardware_wallet": "استعادة من محفظة أجهزة دفتر الأستاذ",
|
||||||
"restore_description_from_keys": "قم باستعادة محفظتك من ضغطات المفاتيح المولدة المحفوظة من مفاتيحك الخاصة",
|
"restore_description_from_keys": "قم باستعادة محفظتك من ضغطات المفاتيح المولدة المحفوظة من مفاتيحك الخاصة",
|
||||||
"restore_description_from_seed": "قم باستعادة محفظتك من الرمز المكون من 25 كلمة أو 13 كلمة",
|
"restore_description_from_seed": "قم باستعادة محفظتك من الرمز المكون من 25 كلمة أو 13 كلمة",
|
||||||
"restore_description_from_seed_keys": "استرجع محفظتك من السييد / المفاتيح التي قمت بحفظها في مكان آمن",
|
"restore_description_from_seed_keys": "استرجع محفظتك من السييد / المفاتيح التي قمت بحفظها في مكان آمن",
|
||||||
|
@ -502,6 +514,7 @@
|
||||||
"restore_seed_keys_restore": "استعادة السييد / المفاتيح",
|
"restore_seed_keys_restore": "استعادة السييد / المفاتيح",
|
||||||
"restore_spend_key_private": "مفتاح الإنفاق (خاص)",
|
"restore_spend_key_private": "مفتاح الإنفاق (خاص)",
|
||||||
"restore_title_from_backup": "استعادة من النسخة الاحتياطية",
|
"restore_title_from_backup": "استعادة من النسخة الاحتياطية",
|
||||||
|
"restore_title_from_hardware_wallet": "استعادة من محفظة الأجهزة",
|
||||||
"restore_title_from_keys": "استعادة من المفاتيح",
|
"restore_title_from_keys": "استعادة من المفاتيح",
|
||||||
"restore_title_from_seed": "استعادة من السييد",
|
"restore_title_from_seed": "استعادة من السييد",
|
||||||
"restore_title_from_seed_keys": "استعادة من السييد / المفاتيح",
|
"restore_title_from_seed_keys": "استعادة من السييد / المفاتيح",
|
||||||
|
@ -752,6 +765,7 @@
|
||||||
"unsupported_asset": ".ﻡﻮﻋﺪﻣ ﻞﺻﺃ ﻉﻮﻧ ﻦﻣ ﺔﻈﻔﺤﻣ ﻰﻟﺇ ﻞﻳﺪﺒﺘﻟﺍ ﻭﺃ ءﺎﺸﻧﺇ ﻰﺟﺮﻳ .ﻞﺻﻷﺍ ﺍﺬﻬﻟ ءﺍﺮﺟﻹﺍ ﺍﺬﻫ ﻢﻋﺪﻧ ﻻ ﻦﺤﻧ",
|
"unsupported_asset": ".ﻡﻮﻋﺪﻣ ﻞﺻﺃ ﻉﻮﻧ ﻦﻣ ﺔﻈﻔﺤﻣ ﻰﻟﺇ ﻞﻳﺪﺒﺘﻟﺍ ﻭﺃ ءﺎﺸﻧﺇ ﻰﺟﺮﻳ .ﻞﺻﻷﺍ ﺍﺬﻬﻟ ءﺍﺮﺟﻹﺍ ﺍﺬﻫ ﻢﻋﺪﻧ ﻻ ﻦﺤﻧ",
|
||||||
"uptime": "مدة التشغيل",
|
"uptime": "مدة التشغيل",
|
||||||
"upto": "حتى ${value}",
|
"upto": "حتى ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "التبديل إلى",
|
"use": "التبديل إلى",
|
||||||
"use_card_info_three": "استخدم البطاقة الرقمية عبر الإنترنت أو مع طرق الدفع غير التلامسية.",
|
"use_card_info_three": "استخدم البطاقة الرقمية عبر الإنترنت أو مع طرق الدفع غير التلامسية.",
|
||||||
"use_card_info_two": "يتم تحويل الأموال إلى الدولار الأمريكي عند الاحتفاظ بها في الحساب المدفوع مسبقًا ، وليس بالعملات الرقمية.",
|
"use_card_info_two": "يتم تحويل الأموال إلى الدولار الأمريكي عند الاحتفاظ بها في الحساب المدفوع مسبقًا ، وليس بالعملات الرقمية.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Лека биткойн тема",
|
"bitcoin_light_theme": "Лека биткойн тема",
|
||||||
"bitcoin_payments_require_1_confirmation": "Плащанията с Bitcoin изискват потвърждение, което може да отнеме 20 минути или повече. Благодарим за търпението! Ще получите имейл, когато плащането е потвърдено.",
|
"bitcoin_payments_require_1_confirmation": "Плащанията с Bitcoin изискват потвърждение, което може да отнеме 20 минути или повече. Благодарим за търпението! Ще получите имейл, когато плащането е потвърдено.",
|
||||||
"Blocks_remaining": "${status} оставащи блока",
|
"Blocks_remaining": "${status} оставащи блока",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Ярко",
|
"bright_theme": "Ярко",
|
||||||
"bump_fee": "Такса за бум",
|
"bump_fee": "Такса за бум",
|
||||||
"buy": "Купуване",
|
"buy": "Купуване",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Поздравления!",
|
"congratulations": "Поздравления!",
|
||||||
"connect_an_existing_yat": "Добавете съществуващ Yat",
|
"connect_an_existing_yat": "Добавете съществуващ Yat",
|
||||||
"connect_yats": "Добавете Yats",
|
"connect_yats": "Добавете Yats",
|
||||||
|
"connect_your_hardware_wallet": "Свържете хардуерния си портфейл с помощта на Bluetooth или USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Свържете хардуерния си портфейл с помощта на Bluetooth",
|
||||||
"connection_sync": "Свързване и синхронизиране",
|
"connection_sync": "Свързване и синхронизиране",
|
||||||
"connectWalletPrompt": "Свържете портфейла си с WalletConnect, за да извършвате транзакции",
|
"connectWalletPrompt": "Свържете портфейла си с WalletConnect, за да извършвате транзакции",
|
||||||
"contact": "Контакт",
|
"contact": "Контакт",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "е",
|
"is_percentage": "е",
|
||||||
"last_30_days": "Последните 30 дни",
|
"last_30_days": "Последните 30 дни",
|
||||||
"learn_more": "Научете още",
|
"learn_more": "Научете още",
|
||||||
|
"ledger_connection_error": "Не успя да се свърже с вашата книга. Моля, опитайте отново.",
|
||||||
|
"ledger_error_device_locked": "Главната книга е заключена",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Транзакция, отхвърлена на устройство",
|
||||||
|
"ledger_error_wrong_app": "Моля, уверете се, че сте отворили правилното приложение на вашата книга",
|
||||||
|
"ledger_please_enable_bluetooth": "Моля, активирайте Bluetooth да открие вашата книга",
|
||||||
"light_theme": "Светло",
|
"light_theme": "Светло",
|
||||||
|
"load_more": "Зареди още",
|
||||||
"loading_your_wallet": "Зареждане на портфейл",
|
"loading_your_wallet": "Зареждане на портфейл",
|
||||||
"login": "Влизане",
|
"login": "Влизане",
|
||||||
"logout": "Logout",
|
"logout": "Logout",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "Настройки за поверителност",
|
"privacy_settings": "Настройки за поверителност",
|
||||||
"private_key": "Таен ключ",
|
"private_key": "Таен ключ",
|
||||||
"proceed_after_one_minute": "Ако процесът продължи повече от 1 минута, проверете своя имейл.",
|
"proceed_after_one_minute": "Ако процесът продължи повече от 1 минута, проверете своя имейл.",
|
||||||
|
"proceed_on_device": "Продължете на вашето устройство",
|
||||||
|
"proceed_on_device_description": "Моля, следвайте инструкциите, подканени на вашия хардуер",
|
||||||
"profile": "Профил",
|
"profile": "Профил",
|
||||||
"provider_error": "Грешка на ${provider} ",
|
"provider_error": "Грешка на ${provider} ",
|
||||||
"public_key": "Публичен ключ",
|
"public_key": "Публичен ключ",
|
||||||
|
@ -490,6 +501,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Възстановяване на портфейл чрез код от 24 думи",
|
"restore_bitcoin_description_from_seed": "Възстановяване на портфейл чрез код от 24 думи",
|
||||||
"restore_bitcoin_title_from_keys": "Възстановяване от WIF",
|
"restore_bitcoin_title_from_keys": "Възстановяване от WIF",
|
||||||
"restore_description_from_backup": "Можете да възстановите цялото приложение Cake Wallet от своя резервен файл",
|
"restore_description_from_backup": "Можете да възстановите цялото приложение Cake Wallet от своя резервен файл",
|
||||||
|
"restore_description_from_hardware_wallet": "Възстановяване от хардуерния портфейл на главната книга",
|
||||||
"restore_description_from_keys": "Възстановяване на портфейл от генерираните от Вашите тайни ключове клавиши",
|
"restore_description_from_keys": "Възстановяване на портфейл от генерираните от Вашите тайни ключове клавиши",
|
||||||
"restore_description_from_seed": "Възстановяване на портфейл от кода от 13 или 25 думи",
|
"restore_description_from_seed": "Възстановяване на портфейл от кода от 13 или 25 думи",
|
||||||
"restore_description_from_seed_keys": "Възстановете своя портфейл от seed/keys, които сте съхранили на сигурно място",
|
"restore_description_from_seed_keys": "Възстановете своя портфейл от seed/keys, които сте съхранили на сигурно място",
|
||||||
|
@ -502,6 +514,7 @@
|
||||||
"restore_seed_keys_restore": "Възстановяне от Seed/Keys",
|
"restore_seed_keys_restore": "Възстановяне от Seed/Keys",
|
||||||
"restore_spend_key_private": "Spend key (публичен)",
|
"restore_spend_key_private": "Spend key (публичен)",
|
||||||
"restore_title_from_backup": "Възстановяване от резервно копие",
|
"restore_title_from_backup": "Възстановяване от резервно копие",
|
||||||
|
"restore_title_from_hardware_wallet": "Възстановяване от хардуерния портфейл",
|
||||||
"restore_title_from_keys": "Възстановяване от keys",
|
"restore_title_from_keys": "Възстановяване от keys",
|
||||||
"restore_title_from_seed": "Възстановяване от seed",
|
"restore_title_from_seed": "Възстановяване от seed",
|
||||||
"restore_title_from_seed_keys": "Възстановяване от seed/keys",
|
"restore_title_from_seed_keys": "Възстановяване от seed/keys",
|
||||||
|
@ -752,6 +765,7 @@
|
||||||
"unsupported_asset": "Не поддържаме това действие за този актив. Моля, създайте или преминете към портфейл от поддържан тип актив.",
|
"unsupported_asset": "Не поддържаме това действие за този актив. Моля, създайте или преминете към портфейл от поддържан тип актив.",
|
||||||
"uptime": "Време за работа",
|
"uptime": "Време за работа",
|
||||||
"upto": "до ${value}",
|
"upto": "до ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Смяна на ",
|
"use": "Смяна на ",
|
||||||
"use_card_info_three": "Използвайте дигиталната карта онлайн или чрез безконтактен метод на плащане.",
|
"use_card_info_three": "Използвайте дигиталната карта онлайн или чрез безконтактен метод на плащане.",
|
||||||
"use_card_info_two": "Средствата се обръщат в USD, когато биват запазени в предплатената карта, а не в дигитална валута.",
|
"use_card_info_two": "Средствата се обръщат в USD, когато биват запазени в предплатената карта, а не в дигитална валута.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Světlé téma bitcoinů",
|
"bitcoin_light_theme": "Světlé téma bitcoinů",
|
||||||
"bitcoin_payments_require_1_confirmation": "U plateb Bitcoinem je vyžadováno alespoň 1 potvrzení, což může trvat 20 minut i déle. Děkujeme za vaši trpělivost! Až bude platba potvrzena, budete informováni e-mailem.",
|
"bitcoin_payments_require_1_confirmation": "U plateb Bitcoinem je vyžadováno alespoň 1 potvrzení, což může trvat 20 minut i déle. Děkujeme za vaši trpělivost! Až bude platba potvrzena, budete informováni e-mailem.",
|
||||||
"Blocks_remaining": "Zbývá ${status} bloků",
|
"Blocks_remaining": "Zbývá ${status} bloků",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Jasný",
|
"bright_theme": "Jasný",
|
||||||
"bump_fee": "Bump Fee",
|
"bump_fee": "Bump Fee",
|
||||||
"buy": "Koupit",
|
"buy": "Koupit",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Gratulujeme!",
|
"congratulations": "Gratulujeme!",
|
||||||
"connect_an_existing_yat": "Připojit existující Yat",
|
"connect_an_existing_yat": "Připojit existující Yat",
|
||||||
"connect_yats": "Připojit Yaty",
|
"connect_yats": "Připojit Yaty",
|
||||||
|
"connect_your_hardware_wallet": "Připojte hardwarovou peněženku pomocí Bluetooth nebo USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Připojte hardwarovou peněženku pomocí Bluetooth",
|
||||||
"connection_sync": "Připojení a synch.",
|
"connection_sync": "Připojení a synch.",
|
||||||
"connectWalletPrompt": "Propojte svou peněženku s WalletConnect a provádějte transakce",
|
"connectWalletPrompt": "Propojte svou peněženku s WalletConnect a provádějte transakce",
|
||||||
"contact": "Kontakt",
|
"contact": "Kontakt",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "je",
|
"is_percentage": "je",
|
||||||
"last_30_days": "Posledních 30 dnů",
|
"last_30_days": "Posledních 30 dnů",
|
||||||
"learn_more": "Zjistit více",
|
"learn_more": "Zjistit více",
|
||||||
|
"ledger_connection_error": "Nepodařilo se připojit k vaší knize. Prosím zkuste to znovu.",
|
||||||
|
"ledger_error_device_locked": "Kniha je uzamčena",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Transakce zamítnuta na zařízení",
|
||||||
|
"ledger_error_wrong_app": "Ujistěte se, že se na své knize otevřete správnou aplikaci",
|
||||||
|
"ledger_please_enable_bluetooth": "Umožněte prosím Bluetooth detekovat vaši knihu",
|
||||||
"light_theme": "Světlý",
|
"light_theme": "Světlý",
|
||||||
|
"load_more": "Načíst další",
|
||||||
"loading_your_wallet": "Načítám peněženku",
|
"loading_your_wallet": "Načítám peněženku",
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"logout": "Odhlásit",
|
"logout": "Odhlásit",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "Nastavení soukromí",
|
"privacy_settings": "Nastavení soukromí",
|
||||||
"private_key": "Soukromý klíč",
|
"private_key": "Soukromý klíč",
|
||||||
"proceed_after_one_minute": "Pokud proces nepokročí během 1 minuty, zkontrolujte svůj e-mail.",
|
"proceed_after_one_minute": "Pokud proces nepokročí během 1 minuty, zkontrolujte svůj e-mail.",
|
||||||
|
"proceed_on_device": "Pokračujte ve svém zařízení",
|
||||||
|
"proceed_on_device_description": "Postupujte podle pokynů na výzvu na vaší hardwarové peněžence",
|
||||||
"profile": "Profil",
|
"profile": "Profil",
|
||||||
"provider_error": "${provider} chyba",
|
"provider_error": "${provider} chyba",
|
||||||
"public_key": "Veřejný klíč",
|
"public_key": "Veřejný klíč",
|
||||||
|
@ -490,6 +501,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Obnovte svou peněženku pomocí kombinace 24 slov",
|
"restore_bitcoin_description_from_seed": "Obnovte svou peněženku pomocí kombinace 24 slov",
|
||||||
"restore_bitcoin_title_from_keys": "Obnovit z WIF",
|
"restore_bitcoin_title_from_keys": "Obnovit z WIF",
|
||||||
"restore_description_from_backup": "Můžete obnovit celou Cake Wallet aplikaci ze souboru se zálohou",
|
"restore_description_from_backup": "Můžete obnovit celou Cake Wallet aplikaci ze souboru se zálohou",
|
||||||
|
"restore_description_from_hardware_wallet": "Obnovit z peněženky hardwaru knihy",
|
||||||
"restore_description_from_keys": "Obnovte svou peněženku pomocí generovaných stisků kláves uložených z vašich soukromých klíčů",
|
"restore_description_from_keys": "Obnovte svou peněženku pomocí generovaných stisků kláves uložených z vašich soukromých klíčů",
|
||||||
"restore_description_from_seed": "Obnovte svou peněženku pomocí kombinace 25, nebo 13 slov",
|
"restore_description_from_seed": "Obnovte svou peněženku pomocí kombinace 25, nebo 13 slov",
|
||||||
"restore_description_from_seed_keys": "Obnovte svou peněženku ze seedu/klíčů, které jste si uložili na bezpečném místě",
|
"restore_description_from_seed_keys": "Obnovte svou peněženku ze seedu/klíčů, které jste si uložili na bezpečném místě",
|
||||||
|
@ -502,6 +514,7 @@
|
||||||
"restore_seed_keys_restore": "Obnovit ze seedu/klíčů",
|
"restore_seed_keys_restore": "Obnovit ze seedu/klíčů",
|
||||||
"restore_spend_key_private": "Klíč pro platby (soukromý)",
|
"restore_spend_key_private": "Klíč pro platby (soukromý)",
|
||||||
"restore_title_from_backup": "Obnovit ze zálohy",
|
"restore_title_from_backup": "Obnovit ze zálohy",
|
||||||
|
"restore_title_from_hardware_wallet": "Obnovit z hardwarové peněženky",
|
||||||
"restore_title_from_keys": "Obnovit z klíčů",
|
"restore_title_from_keys": "Obnovit z klíčů",
|
||||||
"restore_title_from_seed": "Obnovit ze seedu",
|
"restore_title_from_seed": "Obnovit ze seedu",
|
||||||
"restore_title_from_seed_keys": "Obnovit ze seedu/klíčů",
|
"restore_title_from_seed_keys": "Obnovit ze seedu/klíčů",
|
||||||
|
@ -752,6 +765,7 @@
|
||||||
"unsupported_asset": "Tuto akci u tohoto díla nepodporujeme. Vytvořte nebo přepněte na peněženku podporovaného typu aktiv.",
|
"unsupported_asset": "Tuto akci u tohoto díla nepodporujeme. Vytvořte nebo přepněte na peněženku podporovaného typu aktiv.",
|
||||||
"uptime": "Uptime",
|
"uptime": "Uptime",
|
||||||
"upto": "až ${value}",
|
"upto": "až ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Přepnout na ",
|
"use": "Přepnout na ",
|
||||||
"use_card_info_three": "Použijte tuto digitální kartu online nebo bezkontaktními platebními metodami.",
|
"use_card_info_three": "Použijte tuto digitální kartu online nebo bezkontaktními platebními metodami.",
|
||||||
"use_card_info_two": "Prostředky jsou převedeny na USD, když jsou drženy na předplaceném účtu, nikoliv na digitální měnu.",
|
"use_card_info_two": "Prostředky jsou převedeny na USD, když jsou drženy na předplaceném účtu, nikoliv na digitální měnu.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Bitcoin Light-Thema",
|
"bitcoin_light_theme": "Bitcoin Light-Thema",
|
||||||
"bitcoin_payments_require_1_confirmation": "Bitcoin-Zahlungen erfordern 1 Bestätigung, was 20 Minuten oder länger dauern kann. Danke für Ihre Geduld! Sie erhalten eine E-Mail, wenn die Zahlung bestätigt ist.",
|
"bitcoin_payments_require_1_confirmation": "Bitcoin-Zahlungen erfordern 1 Bestätigung, was 20 Minuten oder länger dauern kann. Danke für Ihre Geduld! Sie erhalten eine E-Mail, wenn die Zahlung bestätigt ist.",
|
||||||
"Blocks_remaining": "${status} verbleibende Blöcke",
|
"Blocks_remaining": "${status} verbleibende Blöcke",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Strahlend hell",
|
"bright_theme": "Strahlend hell",
|
||||||
"bump_fee": "Beulengebühr",
|
"bump_fee": "Beulengebühr",
|
||||||
"buy": "Kaufen",
|
"buy": "Kaufen",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Glückwunsch!",
|
"congratulations": "Glückwunsch!",
|
||||||
"connect_an_existing_yat": "Verbinden Sie ein vorhandenes Yat",
|
"connect_an_existing_yat": "Verbinden Sie ein vorhandenes Yat",
|
||||||
"connect_yats": "Yats verbinden",
|
"connect_yats": "Yats verbinden",
|
||||||
|
"connect_your_hardware_wallet": "Verbinden Sie Ihre Hardware-Wallet über Bluetooth oder USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Verbinden Sie Ihre Hardware-Wallet über Bluetooth",
|
||||||
"connection_sync": "Verbindung und Synchronisierung",
|
"connection_sync": "Verbindung und Synchronisierung",
|
||||||
"connectWalletPrompt": "Verbinden Sie Ihr Wallet mit WalletConnect, um Transaktionen durchzuführen",
|
"connectWalletPrompt": "Verbinden Sie Ihr Wallet mit WalletConnect, um Transaktionen durchzuführen",
|
||||||
"contact": "Kontakt",
|
"contact": "Kontakt",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "ist",
|
"is_percentage": "ist",
|
||||||
"last_30_days": "Letzte 30 Tage",
|
"last_30_days": "Letzte 30 Tage",
|
||||||
"learn_more": "Erfahren Sie mehr",
|
"learn_more": "Erfahren Sie mehr",
|
||||||
|
"ledger_connection_error": "Verbindung zum Ledger gescheitert. Bitte versuche es erneut.",
|
||||||
|
"ledger_error_device_locked": "Der Ledger ist gesperrt",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Transaktion auf dem Gerät abgelehnt",
|
||||||
|
"ledger_error_wrong_app": "Bitte stellen Sie sicher, dass Sie die richtige App auf Ihrem Ledger geöffnet haben",
|
||||||
|
"ledger_please_enable_bluetooth": "Bitte aktivieren Sie Bluetooth um sich mit Ihren Ledger zu verbinden.",
|
||||||
"light_theme": "Hell",
|
"light_theme": "Hell",
|
||||||
|
"load_more": "Mehr laden",
|
||||||
"loading_your_wallet": "Wallet wird geladen",
|
"loading_your_wallet": "Wallet wird geladen",
|
||||||
"login": "Einloggen",
|
"login": "Einloggen",
|
||||||
"logout": "Abmelden",
|
"logout": "Abmelden",
|
||||||
|
@ -443,6 +452,8 @@
|
||||||
"privacy_settings": "Datenschutzeinstellungen",
|
"privacy_settings": "Datenschutzeinstellungen",
|
||||||
"private_key": "Privater Schlüssel",
|
"private_key": "Privater Schlüssel",
|
||||||
"proceed_after_one_minute": "Wenn der Bildschirm nach 1 Minute nicht weitergeht, überprüfen Sie bitte Ihre E-Mail.",
|
"proceed_after_one_minute": "Wenn der Bildschirm nach 1 Minute nicht weitergeht, überprüfen Sie bitte Ihre E-Mail.",
|
||||||
|
"proceed_on_device": "Fahren Sie auf Ihrem Gerät fort",
|
||||||
|
"proceed_on_device_description": "Bitte befolgen Sie die Anweisungen, die auf Ihrer Hardware-Wallet angezeigt werden",
|
||||||
"profile": "Profil",
|
"profile": "Profil",
|
||||||
"provider_error": "${provider}-Fehler",
|
"provider_error": "${provider}-Fehler",
|
||||||
"public_key": "Öffentlicher Schlüssel",
|
"public_key": "Öffentlicher Schlüssel",
|
||||||
|
@ -491,6 +502,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Stellen Sie Ihre Wallet aus dem 24-Wort-Kombinationscode wieder her",
|
"restore_bitcoin_description_from_seed": "Stellen Sie Ihre Wallet aus dem 24-Wort-Kombinationscode wieder her",
|
||||||
"restore_bitcoin_title_from_keys": "Aus WIF wiederherstellen",
|
"restore_bitcoin_title_from_keys": "Aus WIF wiederherstellen",
|
||||||
"restore_description_from_backup": "Sie können die gesamte Cake Wallet-App aus Ihrer Sicherungsdatei wiederherstellen",
|
"restore_description_from_backup": "Sie können die gesamte Cake Wallet-App aus Ihrer Sicherungsdatei wiederherstellen",
|
||||||
|
"restore_description_from_hardware_wallet": "Stellen Sie eine Wallet von Ledger wieder her",
|
||||||
"restore_description_from_keys": "Stellen Sie Ihr Wallet aus generierten Tastenanschlägen her, die von Ihren privaten Schlüsseln gespeichert wurden",
|
"restore_description_from_keys": "Stellen Sie Ihr Wallet aus generierten Tastenanschlägen her, die von Ihren privaten Schlüsseln gespeichert wurden",
|
||||||
"restore_description_from_seed": "Stellen Sie Ihre Wallet aus den 25 Wörtern oder dem 13-Wort-Kombinationscode wieder her",
|
"restore_description_from_seed": "Stellen Sie Ihre Wallet aus den 25 Wörtern oder dem 13-Wort-Kombinationscode wieder her",
|
||||||
"restore_description_from_seed_keys": "Stellen Sie Ihr Wallet aus Seed/Schlüsseln wieder her, die Sie sicher aufbewahrt haben",
|
"restore_description_from_seed_keys": "Stellen Sie Ihr Wallet aus Seed/Schlüsseln wieder her, die Sie sicher aufbewahrt haben",
|
||||||
|
@ -503,6 +515,7 @@
|
||||||
"restore_seed_keys_restore": "Seed/Schlüssel wiederherstellen",
|
"restore_seed_keys_restore": "Seed/Schlüssel wiederherstellen",
|
||||||
"restore_spend_key_private": "Spend Key (geheim)",
|
"restore_spend_key_private": "Spend Key (geheim)",
|
||||||
"restore_title_from_backup": "Aus einer Sicherungsdatei wiederherstellen",
|
"restore_title_from_backup": "Aus einer Sicherungsdatei wiederherstellen",
|
||||||
|
"restore_title_from_hardware_wallet": "Von Hardware-Wallet wiederherstellen",
|
||||||
"restore_title_from_keys": "Aus Schlüsseln wiederherstellen",
|
"restore_title_from_keys": "Aus Schlüsseln wiederherstellen",
|
||||||
"restore_title_from_seed": "Aus Seed wiederherstellen",
|
"restore_title_from_seed": "Aus Seed wiederherstellen",
|
||||||
"restore_title_from_seed_keys": "Aus Seed/Schlüssel wiederherstellen",
|
"restore_title_from_seed_keys": "Aus Seed/Schlüssel wiederherstellen",
|
||||||
|
@ -754,6 +767,7 @@
|
||||||
"unsupported_asset": "Wir unterstützen diese Aktion für dieses Asset nicht. Bitte erstellen Sie eine Wallet eines unterstützten Asset-Typs oder wechseln Sie zu einer Wallet.",
|
"unsupported_asset": "Wir unterstützen diese Aktion für dieses Asset nicht. Bitte erstellen Sie eine Wallet eines unterstützten Asset-Typs oder wechseln Sie zu einer Wallet.",
|
||||||
"uptime": "Betriebszeit",
|
"uptime": "Betriebszeit",
|
||||||
"upto": "bis zu ${value}",
|
"upto": "bis zu ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Wechsel zu ",
|
"use": "Wechsel zu ",
|
||||||
"use_card_info_three": "Verwenden Sie die digitale Karte online oder mit kontaktlosen Zahlungsmethoden.",
|
"use_card_info_three": "Verwenden Sie die digitale Karte online oder mit kontaktlosen Zahlungsmethoden.",
|
||||||
"use_card_info_two": "Guthaben werden auf dem Prepaid-Konto in USD umgerechnet, nicht in digitale Währung.",
|
"use_card_info_two": "Guthaben werden auf dem Prepaid-Konto in USD umgerechnet, nicht in digitale Währung.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Bitcoin Light Theme",
|
"bitcoin_light_theme": "Bitcoin Light Theme",
|
||||||
"bitcoin_payments_require_1_confirmation": "Bitcoin payments require 1 confirmation, which can take 20 minutes or longer. Thanks for your patience! You will be emailed when the payment is confirmed.",
|
"bitcoin_payments_require_1_confirmation": "Bitcoin payments require 1 confirmation, which can take 20 minutes or longer. Thanks for your patience! You will be emailed when the payment is confirmed.",
|
||||||
"Blocks_remaining": "${status} Blocks Remaining",
|
"Blocks_remaining": "${status} Blocks Remaining",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Bright",
|
"bright_theme": "Bright",
|
||||||
"bump_fee": "Bump fee",
|
"bump_fee": "Bump fee",
|
||||||
"buy": "Buy",
|
"buy": "Buy",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Congratulations!",
|
"congratulations": "Congratulations!",
|
||||||
"connect_an_existing_yat": "Connect an existing Yat",
|
"connect_an_existing_yat": "Connect an existing Yat",
|
||||||
"connect_yats": "Connect Yats",
|
"connect_yats": "Connect Yats",
|
||||||
|
"connect_your_hardware_wallet": "Connect your hardware wallet using Bluetooth or USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Connect your hardware wallet using Bluetooth",
|
||||||
"connection_sync": "Connection and sync",
|
"connection_sync": "Connection and sync",
|
||||||
"connectWalletPrompt": "Connect your wallet with WalletConnect to make transactions",
|
"connectWalletPrompt": "Connect your wallet with WalletConnect to make transactions",
|
||||||
"contact": "Contact",
|
"contact": "Contact",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "is",
|
"is_percentage": "is",
|
||||||
"last_30_days": "Last 30 days",
|
"last_30_days": "Last 30 days",
|
||||||
"learn_more": "Learn More",
|
"learn_more": "Learn More",
|
||||||
|
"ledger_connection_error": "Failed to connect to you Ledger. Please try again.",
|
||||||
|
"ledger_error_device_locked": "The Ledger is locked",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Transaction rejected on device",
|
||||||
|
"ledger_error_wrong_app": "Please make sure you opend the right app on your ledger",
|
||||||
|
"ledger_please_enable_bluetooth": "Please enable Bluetooth to detect your Ledger",
|
||||||
"light_theme": "Light",
|
"light_theme": "Light",
|
||||||
|
"load_more": "Load more",
|
||||||
"loading_your_wallet": "Loading your wallet",
|
"loading_your_wallet": "Loading your wallet",
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"logout": "Logout",
|
"logout": "Logout",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "Privacy settings",
|
"privacy_settings": "Privacy settings",
|
||||||
"private_key": "Private key",
|
"private_key": "Private key",
|
||||||
"proceed_after_one_minute": "If the screen doesn’t proceed after 1 minute, check your email.",
|
"proceed_after_one_minute": "If the screen doesn’t proceed after 1 minute, check your email.",
|
||||||
|
"proceed_on_device": "Proceed on your device",
|
||||||
|
"proceed_on_device_description": "Please follow the instructions prompted on your hardware wallet",
|
||||||
"profile": "Profile",
|
"profile": "Profile",
|
||||||
"provider_error": "${provider} error",
|
"provider_error": "${provider} error",
|
||||||
"public_key": "Public key",
|
"public_key": "Public key",
|
||||||
|
@ -490,6 +501,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Restore your wallet from 24 word combination code",
|
"restore_bitcoin_description_from_seed": "Restore your wallet from 24 word combination code",
|
||||||
"restore_bitcoin_title_from_keys": "Restore from WIF",
|
"restore_bitcoin_title_from_keys": "Restore from WIF",
|
||||||
"restore_description_from_backup": "You can restore the whole Cake Wallet app from your back-up file",
|
"restore_description_from_backup": "You can restore the whole Cake Wallet app from your back-up file",
|
||||||
|
"restore_description_from_hardware_wallet": "Restore from a Ledger hardware wallet",
|
||||||
"restore_description_from_keys": "Restore your wallet from generated keystrokes saved from your private keys",
|
"restore_description_from_keys": "Restore your wallet from generated keystrokes saved from your private keys",
|
||||||
"restore_description_from_seed": "Restore your wallet from either the 25 word or 13 word combination code",
|
"restore_description_from_seed": "Restore your wallet from either the 25 word or 13 word combination code",
|
||||||
"restore_description_from_seed_keys": "Get back your wallet from seed/keys that you've saved to secure place",
|
"restore_description_from_seed_keys": "Get back your wallet from seed/keys that you've saved to secure place",
|
||||||
|
@ -502,6 +514,7 @@
|
||||||
"restore_seed_keys_restore": "Seed/Keys Restore",
|
"restore_seed_keys_restore": "Seed/Keys Restore",
|
||||||
"restore_spend_key_private": "Spend key (private)",
|
"restore_spend_key_private": "Spend key (private)",
|
||||||
"restore_title_from_backup": "Restore from backup",
|
"restore_title_from_backup": "Restore from backup",
|
||||||
|
"restore_title_from_hardware_wallet": "Restore from hardware wallet",
|
||||||
"restore_title_from_keys": "Restore from keys",
|
"restore_title_from_keys": "Restore from keys",
|
||||||
"restore_title_from_seed": "Restore from seed",
|
"restore_title_from_seed": "Restore from seed",
|
||||||
"restore_title_from_seed_keys": "Restore from seed/keys",
|
"restore_title_from_seed_keys": "Restore from seed/keys",
|
||||||
|
@ -752,6 +765,7 @@
|
||||||
"unsupported_asset": "We don't support this action for this asset. Please create or switch to a wallet of a supported asset type.",
|
"unsupported_asset": "We don't support this action for this asset. Please create or switch to a wallet of a supported asset type.",
|
||||||
"uptime": "Uptime",
|
"uptime": "Uptime",
|
||||||
"upto": "up to ${value}",
|
"upto": "up to ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Switch to ",
|
"use": "Switch to ",
|
||||||
"use_card_info_three": "Use the digital card online or with contactless payment methods.",
|
"use_card_info_three": "Use the digital card online or with contactless payment methods.",
|
||||||
"use_card_info_two": "Funds are converted to USD when they're held in the prepaid account, not in digital currencies.",
|
"use_card_info_two": "Funds are converted to USD when they're held in the prepaid account, not in digital currencies.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Tema de la luz de Bitcoin",
|
"bitcoin_light_theme": "Tema de la luz de Bitcoin",
|
||||||
"bitcoin_payments_require_1_confirmation": "Los pagos de Bitcoin requieren 1 confirmación, que puede demorar 20 minutos o más. ¡Gracias por su paciencia! Se le enviará un correo electrónico cuando se confirme el pago.",
|
"bitcoin_payments_require_1_confirmation": "Los pagos de Bitcoin requieren 1 confirmación, que puede demorar 20 minutos o más. ¡Gracias por su paciencia! Se le enviará un correo electrónico cuando se confirme el pago.",
|
||||||
"Blocks_remaining": "${status} Bloques restantes",
|
"Blocks_remaining": "${status} Bloques restantes",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Brillante",
|
"bright_theme": "Brillante",
|
||||||
"bump_fee": "Tarifa",
|
"bump_fee": "Tarifa",
|
||||||
"buy": "Comprar",
|
"buy": "Comprar",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Felicidades!",
|
"congratulations": "Felicidades!",
|
||||||
"connect_an_existing_yat": "Conectar un Yat existente",
|
"connect_an_existing_yat": "Conectar un Yat existente",
|
||||||
"connect_yats": "Conectar Yats",
|
"connect_yats": "Conectar Yats",
|
||||||
|
"connect_your_hardware_wallet": "Conecte su billetera de hardware con Bluetooth o USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Conecte su billetera de hardware con Bluetooth",
|
||||||
"connection_sync": "Conexión y sincronización",
|
"connection_sync": "Conexión y sincronización",
|
||||||
"connectWalletPrompt": "Conecte su billetera con WalletConnect para realizar transacciones",
|
"connectWalletPrompt": "Conecte su billetera con WalletConnect para realizar transacciones",
|
||||||
"contact": "Contacto",
|
"contact": "Contacto",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "es",
|
"is_percentage": "es",
|
||||||
"last_30_days": "Últimos 30 días",
|
"last_30_days": "Últimos 30 días",
|
||||||
"learn_more": "Aprende más",
|
"learn_more": "Aprende más",
|
||||||
|
"ledger_connection_error": "No se pudo conectar con su libro mayor. Inténtalo de nuevo.",
|
||||||
|
"ledger_error_device_locked": "El libro mayor está bloqueado",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Transacción rechazada en el dispositivo",
|
||||||
|
"ledger_error_wrong_app": "Por favor, asegúrese de abrir la aplicación correcta en su libro mayor.",
|
||||||
|
"ledger_please_enable_bluetooth": "Habilite Bluetooth para detectar su libro mayor",
|
||||||
"light_theme": "Ligera",
|
"light_theme": "Ligera",
|
||||||
|
"load_more": "Carga más",
|
||||||
"loading_your_wallet": "Cargando tu billetera",
|
"loading_your_wallet": "Cargando tu billetera",
|
||||||
"login": "Iniciar sesión",
|
"login": "Iniciar sesión",
|
||||||
"logout": "Cerrar sesión",
|
"logout": "Cerrar sesión",
|
||||||
|
@ -443,6 +452,8 @@
|
||||||
"privacy_settings": "Configuración de privacidad",
|
"privacy_settings": "Configuración de privacidad",
|
||||||
"private_key": "Clave privada",
|
"private_key": "Clave privada",
|
||||||
"proceed_after_one_minute": "Si la pantalla no continúa después de 1 minuto, revisa tu correo electrónico.",
|
"proceed_after_one_minute": "Si la pantalla no continúa después de 1 minuto, revisa tu correo electrónico.",
|
||||||
|
"proceed_on_device": "Continúe con su dispositivo",
|
||||||
|
"proceed_on_device_description": "Siga las instrucciones solicitadas en su billetera de hardware",
|
||||||
"profile": "Perfil",
|
"profile": "Perfil",
|
||||||
"provider_error": "${provider} error",
|
"provider_error": "${provider} error",
|
||||||
"public_key": "Clave pública",
|
"public_key": "Clave pública",
|
||||||
|
@ -491,6 +502,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Restaure su billetera a partir del código de combinación de 24 palabras",
|
"restore_bitcoin_description_from_seed": "Restaure su billetera a partir del código de combinación de 24 palabras",
|
||||||
"restore_bitcoin_title_from_keys": "Restaurar desde WIF",
|
"restore_bitcoin_title_from_keys": "Restaurar desde WIF",
|
||||||
"restore_description_from_backup": "Puede restaurar toda la aplicación Cake Wallet desde ysu archivo de respaldo",
|
"restore_description_from_backup": "Puede restaurar toda la aplicación Cake Wallet desde ysu archivo de respaldo",
|
||||||
|
"restore_description_from_hardware_wallet": "Restaurar desde una billetera de hardware Ledger",
|
||||||
"restore_description_from_keys": "Restaure su billetera de las pulsaciones de teclas generadas guardadas de sus claves privadas",
|
"restore_description_from_keys": "Restaure su billetera de las pulsaciones de teclas generadas guardadas de sus claves privadas",
|
||||||
"restore_description_from_seed": "Restaure su billetera desde el código de combinación de 25 palabras i de 13 palabras",
|
"restore_description_from_seed": "Restaure su billetera desde el código de combinación de 25 palabras i de 13 palabras",
|
||||||
"restore_description_from_seed_keys": "Recupere su billetera de las semillas/claves que ha guardado en un lugar seguro",
|
"restore_description_from_seed_keys": "Recupere su billetera de las semillas/claves que ha guardado en un lugar seguro",
|
||||||
|
@ -503,6 +515,7 @@
|
||||||
"restore_seed_keys_restore": "Restauración de semillas / llaves",
|
"restore_seed_keys_restore": "Restauración de semillas / llaves",
|
||||||
"restore_spend_key_private": "Spend clave (privado)",
|
"restore_spend_key_private": "Spend clave (privado)",
|
||||||
"restore_title_from_backup": "Restaurar desde un archivo de respaldo",
|
"restore_title_from_backup": "Restaurar desde un archivo de respaldo",
|
||||||
|
"restore_title_from_hardware_wallet": "Restaurar desde la billetera de hardware",
|
||||||
"restore_title_from_keys": "De las claves",
|
"restore_title_from_keys": "De las claves",
|
||||||
"restore_title_from_seed": "De la semilla",
|
"restore_title_from_seed": "De la semilla",
|
||||||
"restore_title_from_seed_keys": "Restaurar desde semilla/claves",
|
"restore_title_from_seed_keys": "Restaurar desde semilla/claves",
|
||||||
|
@ -753,6 +766,7 @@
|
||||||
"unsupported_asset": "No admitimos esta acción para este activo. Cree o cambie a una billetera de un tipo de activo admitido.",
|
"unsupported_asset": "No admitimos esta acción para este activo. Cree o cambie a una billetera de un tipo de activo admitido.",
|
||||||
"uptime": "Tiempo de actividad",
|
"uptime": "Tiempo de actividad",
|
||||||
"upto": "hasta ${value}",
|
"upto": "hasta ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Utilizar a ",
|
"use": "Utilizar a ",
|
||||||
"use_card_info_three": "Utilice la tarjeta digital en línea o con métodos de pago sin contacto.",
|
"use_card_info_three": "Utilice la tarjeta digital en línea o con métodos de pago sin contacto.",
|
||||||
"use_card_info_two": "Los fondos se convierten a USD cuando se mantienen en la cuenta prepaga, no en monedas digitales.",
|
"use_card_info_two": "Los fondos se convierten a USD cuando se mantienen en la cuenta prepaga, no en monedas digitales.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Thème léger Bitcoin",
|
"bitcoin_light_theme": "Thème léger Bitcoin",
|
||||||
"bitcoin_payments_require_1_confirmation": "Les paiements Bitcoin nécessitent 1 confirmation, ce qui peut prendre 20 minutes ou plus. Merci pour votre patience ! Vous serez averti par e-mail lorsque le paiement sera confirmé.",
|
"bitcoin_payments_require_1_confirmation": "Les paiements Bitcoin nécessitent 1 confirmation, ce qui peut prendre 20 minutes ou plus. Merci pour votre patience ! Vous serez averti par e-mail lorsque le paiement sera confirmé.",
|
||||||
"Blocks_remaining": "Blocs Restants : ${status}",
|
"Blocks_remaining": "Blocs Restants : ${status}",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Vif",
|
"bright_theme": "Vif",
|
||||||
"bump_fee": "Frais de bosse",
|
"bump_fee": "Frais de bosse",
|
||||||
"buy": "Acheter",
|
"buy": "Acheter",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Félicitations !",
|
"congratulations": "Félicitations !",
|
||||||
"connect_an_existing_yat": "Connecter un Yat existant",
|
"connect_an_existing_yat": "Connecter un Yat existant",
|
||||||
"connect_yats": "Connecter Yats",
|
"connect_yats": "Connecter Yats",
|
||||||
|
"connect_your_hardware_wallet": "Connectez votre portefeuille matériel à l'aide de Bluetooth ou USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Connectez votre portefeuille matériel à l'aide de Bluetooth",
|
||||||
"connection_sync": "Connexion et synchronisation",
|
"connection_sync": "Connexion et synchronisation",
|
||||||
"connectWalletPrompt": "Connectez votre portefeuille (wallet) avec WalletConnect pour effectuer des transactions",
|
"connectWalletPrompt": "Connectez votre portefeuille (wallet) avec WalletConnect pour effectuer des transactions",
|
||||||
"contact": "Contact",
|
"contact": "Contact",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "est",
|
"is_percentage": "est",
|
||||||
"last_30_days": "30 derniers jours",
|
"last_30_days": "30 derniers jours",
|
||||||
"learn_more": "En savoir plus",
|
"learn_more": "En savoir plus",
|
||||||
|
"ledger_connection_error": "Impossible de se connecter à votre grand livre. Veuillez réessayer.",
|
||||||
|
"ledger_error_device_locked": "Le grand livre est verrouillé",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Transaction rejetée sur l'appareil",
|
||||||
|
"ledger_error_wrong_app": "Veuillez vous assurer d'ouvrir la bonne application sur votre grand livre",
|
||||||
|
"ledger_please_enable_bluetooth": "Veuillez activer Bluetooth pour détecter votre grand livre",
|
||||||
"light_theme": "Clair",
|
"light_theme": "Clair",
|
||||||
|
"load_more": "Charger plus",
|
||||||
"loading_your_wallet": "Chargement de votre portefeuille (wallet)",
|
"loading_your_wallet": "Chargement de votre portefeuille (wallet)",
|
||||||
"login": "Utilisateur",
|
"login": "Utilisateur",
|
||||||
"logout": "Déconnexion",
|
"logout": "Déconnexion",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "Paramètres de confidentialité",
|
"privacy_settings": "Paramètres de confidentialité",
|
||||||
"private_key": "Clef privée",
|
"private_key": "Clef privée",
|
||||||
"proceed_after_one_minute": "Si l'écran ne s'affiche pas après 1 minute, vérifiez vos e-mails.",
|
"proceed_after_one_minute": "Si l'écran ne s'affiche pas après 1 minute, vérifiez vos e-mails.",
|
||||||
|
"proceed_on_device": "Continuez sur votre appareil",
|
||||||
|
"proceed_on_device_description": "Veuillez suivre les instructions invitées sur votre portefeuille matériel",
|
||||||
"profile": "Profil",
|
"profile": "Profil",
|
||||||
"provider_error": "Erreur de ${provider}",
|
"provider_error": "Erreur de ${provider}",
|
||||||
"public_key": "Clef publique",
|
"public_key": "Clef publique",
|
||||||
|
@ -490,6 +501,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Restaurer votre portefeuille (wallet) à l'aide d'une phrase secrète (seed) de 24 mots",
|
"restore_bitcoin_description_from_seed": "Restaurer votre portefeuille (wallet) à l'aide d'une phrase secrète (seed) de 24 mots",
|
||||||
"restore_bitcoin_title_from_keys": "Restaurer depuis la chaîne WIF",
|
"restore_bitcoin_title_from_keys": "Restaurer depuis la chaîne WIF",
|
||||||
"restore_description_from_backup": "Vous pouvez restaurer l'intégralité de l'application Cake Wallet depuis un fichier de sauvegarde",
|
"restore_description_from_backup": "Vous pouvez restaurer l'intégralité de l'application Cake Wallet depuis un fichier de sauvegarde",
|
||||||
|
"restore_description_from_hardware_wallet": "Restaurer à partir d'un portefeuille matériel de grand livre",
|
||||||
"restore_description_from_keys": "Restaurer votre portefeuille (wallet) d'après les séquences de touches générées d'après vos clefs privées",
|
"restore_description_from_keys": "Restaurer votre portefeuille (wallet) d'après les séquences de touches générées d'après vos clefs privées",
|
||||||
"restore_description_from_seed": "Restaurer votre portefeuille (wallet) depuis une phrase secrète (seed) de 25 ou 13 mots",
|
"restore_description_from_seed": "Restaurer votre portefeuille (wallet) depuis une phrase secrète (seed) de 25 ou 13 mots",
|
||||||
"restore_description_from_seed_keys": "Restaurez votre portefeuille (wallet) depuis une phrase secrète (seed) ou des clefs que vous avez stockées en lieu sûr",
|
"restore_description_from_seed_keys": "Restaurez votre portefeuille (wallet) depuis une phrase secrète (seed) ou des clefs que vous avez stockées en lieu sûr",
|
||||||
|
@ -502,6 +514,7 @@
|
||||||
"restore_seed_keys_restore": "Restaurer depuis Phrase secrète (seed)/Clefs",
|
"restore_seed_keys_restore": "Restaurer depuis Phrase secrète (seed)/Clefs",
|
||||||
"restore_spend_key_private": "Clef de dépense (spend key) (privée)",
|
"restore_spend_key_private": "Clef de dépense (spend key) (privée)",
|
||||||
"restore_title_from_backup": "Restaurer depuis une sauvegarde",
|
"restore_title_from_backup": "Restaurer depuis une sauvegarde",
|
||||||
|
"restore_title_from_hardware_wallet": "Restaurer à partir du portefeuille matériel",
|
||||||
"restore_title_from_keys": "Restaurer depuis des clefs",
|
"restore_title_from_keys": "Restaurer depuis des clefs",
|
||||||
"restore_title_from_seed": "Restaurer depuis une phrase secrète (seed)",
|
"restore_title_from_seed": "Restaurer depuis une phrase secrète (seed)",
|
||||||
"restore_title_from_seed_keys": "Restaurer depuis une phrase secrète (seed) ou des clefs",
|
"restore_title_from_seed_keys": "Restaurer depuis une phrase secrète (seed) ou des clefs",
|
||||||
|
@ -752,6 +765,7 @@
|
||||||
"unsupported_asset": "Nous ne prenons pas en charge cette action pour cet élément. Veuillez créer ou passer à un portefeuille d'un type d'actif pris en charge.",
|
"unsupported_asset": "Nous ne prenons pas en charge cette action pour cet élément. Veuillez créer ou passer à un portefeuille d'un type d'actif pris en charge.",
|
||||||
"uptime": "Durée de la baisse",
|
"uptime": "Durée de la baisse",
|
||||||
"upto": "jusqu'à ${value}",
|
"upto": "jusqu'à ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Changer vers code PIN à ",
|
"use": "Changer vers code PIN à ",
|
||||||
"use_card_info_three": "Utilisez la carte numérique en ligne ou avec des méthodes de paiement sans contact.",
|
"use_card_info_three": "Utilisez la carte numérique en ligne ou avec des méthodes de paiement sans contact.",
|
||||||
"use_card_info_two": "Les fonds sont convertis en USD lorsqu'ils sont détenus sur le compte prépayé, et non en devises numériques.",
|
"use_card_info_two": "Les fonds sont convertis en USD lorsqu'ils sont détenus sur le compte prépayé, et non en devises numériques.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Jigon Hasken Bitcoin",
|
"bitcoin_light_theme": "Jigon Hasken Bitcoin",
|
||||||
"bitcoin_payments_require_1_confirmation": "Akwatin Bitcoin na buɗe 1 sambumbu, da yake za ta samu mintuna 20 ko yawa. Ina kira ga sabuwar lafiya! Zaka sanarwa ta email lokacin da aka samu akwatin samun lambar waya.",
|
"bitcoin_payments_require_1_confirmation": "Akwatin Bitcoin na buɗe 1 sambumbu, da yake za ta samu mintuna 20 ko yawa. Ina kira ga sabuwar lafiya! Zaka sanarwa ta email lokacin da aka samu akwatin samun lambar waya.",
|
||||||
"Blocks_remaining": "${status} Katanga ya rage",
|
"Blocks_remaining": "${status} Katanga ya rage",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Mai haske",
|
"bright_theme": "Mai haske",
|
||||||
"bump_fee": "Buin",
|
"bump_fee": "Buin",
|
||||||
"buy": "Sayi",
|
"buy": "Sayi",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Taya murna!",
|
"congratulations": "Taya murna!",
|
||||||
"connect_an_existing_yat": "Haɗa Yat da ke akwai",
|
"connect_an_existing_yat": "Haɗa Yat da ke akwai",
|
||||||
"connect_yats": "Haɗa Yats",
|
"connect_yats": "Haɗa Yats",
|
||||||
|
"connect_your_hardware_wallet": "Haɗa Wallake Wallware ɗinku ta Bluetooth ko USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Haɗa kayan aikinku ta Bluetooth",
|
||||||
"connection_sync": "Haɗi da daidaitawa",
|
"connection_sync": "Haɗi da daidaitawa",
|
||||||
"connectWalletPrompt": "Haɗa walat ɗin ku tare da WalletConnect don yin ma'amala",
|
"connectWalletPrompt": "Haɗa walat ɗin ku tare da WalletConnect don yin ma'amala",
|
||||||
"contact": "Tuntuɓar",
|
"contact": "Tuntuɓar",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "shine",
|
"is_percentage": "shine",
|
||||||
"last_30_days": "Kwanaki 30 na ƙarshe",
|
"last_30_days": "Kwanaki 30 na ƙarshe",
|
||||||
"learn_more": "Ƙara Koyi",
|
"learn_more": "Ƙara Koyi",
|
||||||
|
"ledger_connection_error": "Ba a yi nasarar haɗawa da ku ba. Da fatan za a sake gwadawa.",
|
||||||
|
"ledger_error_device_locked": "An kulle Ledger",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Ma'amala da aka ƙi akan na'urar",
|
||||||
|
"ledger_error_wrong_app": "Da fatan za a tabbata kun yi amfani da app ɗin dama akan dillalarku",
|
||||||
|
"ledger_please_enable_bluetooth": "Da fatan za a kunna Bluetooth don gano Ledger ɗinku",
|
||||||
"light_theme": "Haske",
|
"light_theme": "Haske",
|
||||||
|
"load_more": "Like more",
|
||||||
"loading_your_wallet": "Ana loda walat ɗin ku",
|
"loading_your_wallet": "Ana loda walat ɗin ku",
|
||||||
"login": "Shiga",
|
"login": "Shiga",
|
||||||
"logout": "Fita",
|
"logout": "Fita",
|
||||||
|
@ -444,6 +453,8 @@
|
||||||
"privacy_settings": "Saitunan sirri",
|
"privacy_settings": "Saitunan sirri",
|
||||||
"private_key": "Keɓaɓɓen maɓalli",
|
"private_key": "Keɓaɓɓen maɓalli",
|
||||||
"proceed_after_one_minute": "Idan allon bai ci gaba ba bayan minti 1, duba imel ɗin ku.",
|
"proceed_after_one_minute": "Idan allon bai ci gaba ba bayan minti 1, duba imel ɗin ku.",
|
||||||
|
"proceed_on_device": "Ci gaba akan na'urarka",
|
||||||
|
"proceed_on_device_description": "Da fatan za a bi umarnin akan walatware",
|
||||||
"profile": "Rabin fuska",
|
"profile": "Rabin fuska",
|
||||||
"provider_error": "${provider} kuskure",
|
"provider_error": "${provider} kuskure",
|
||||||
"public_key": "Maɓallin jama'a",
|
"public_key": "Maɓallin jama'a",
|
||||||
|
@ -492,6 +503,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Dawo da kwalinku daga 24 lambar haɗin kalma",
|
"restore_bitcoin_description_from_seed": "Dawo da kwalinku daga 24 lambar haɗin kalma",
|
||||||
"restore_bitcoin_title_from_keys": "Dawo daga WIF",
|
"restore_bitcoin_title_from_keys": "Dawo daga WIF",
|
||||||
"restore_description_from_backup": "Kuna iya dawo da duk aikace-aikacen Wallet ɗin Cake daga fayil ɗin ajiyar ku",
|
"restore_description_from_backup": "Kuna iya dawo da duk aikace-aikacen Wallet ɗin Cake daga fayil ɗin ajiyar ku",
|
||||||
|
"restore_description_from_hardware_wallet": "Maidowa da walatware mai wanki",
|
||||||
"restore_description_from_keys": "Maido da walat ɗin ku daga maɓallan maɓalli da aka ƙera da aka ajiye daga maɓallan ku na sirri",
|
"restore_description_from_keys": "Maido da walat ɗin ku daga maɓallan maɓalli da aka ƙera da aka ajiye daga maɓallan ku na sirri",
|
||||||
"restore_description_from_seed": "Dawo da kwalinku daga 25 ko 13 lambar haɗin kalma",
|
"restore_description_from_seed": "Dawo da kwalinku daga 25 ko 13 lambar haɗin kalma",
|
||||||
"restore_description_from_seed_keys": "Maido da walat ɗin ku daga iri/maɓallan da kuka adana don amintaccen wuri",
|
"restore_description_from_seed_keys": "Maido da walat ɗin ku daga iri/maɓallan da kuka adana don amintaccen wuri",
|
||||||
|
@ -504,6 +516,7 @@
|
||||||
"restore_seed_keys_restore": "Mayar da iri/Maɓallai",
|
"restore_seed_keys_restore": "Mayar da iri/Maɓallai",
|
||||||
"restore_spend_key_private": "Maɓallin kashewa (key kalmar sirri)",
|
"restore_spend_key_private": "Maɓallin kashewa (key kalmar sirri)",
|
||||||
"restore_title_from_backup": "Dawo daga madadin",
|
"restore_title_from_backup": "Dawo daga madadin",
|
||||||
|
"restore_title_from_hardware_wallet": "Dawowa daga walatware mai wuya",
|
||||||
"restore_title_from_keys": "Dawo daga maɓallai",
|
"restore_title_from_keys": "Dawo daga maɓallai",
|
||||||
"restore_title_from_seed": "Maidowa daga iri",
|
"restore_title_from_seed": "Maidowa daga iri",
|
||||||
"restore_title_from_seed_keys": "Dawo da iri/maɓallai",
|
"restore_title_from_seed_keys": "Dawo da iri/maɓallai",
|
||||||
|
@ -754,6 +767,7 @@
|
||||||
"unsupported_asset": "Ba mu goyi bayan wannan aikin don wannan kadara. Da fatan za a ƙirƙira ko canza zuwa walat na nau'in kadara mai tallafi.",
|
"unsupported_asset": "Ba mu goyi bayan wannan aikin don wannan kadara. Da fatan za a ƙirƙira ko canza zuwa walat na nau'in kadara mai tallafi.",
|
||||||
"uptime": "Sama",
|
"uptime": "Sama",
|
||||||
"upto": "har zuwa ${value}",
|
"upto": "har zuwa ${value}",
|
||||||
|
"usb": "Alib",
|
||||||
"use": "Canja zuwa",
|
"use": "Canja zuwa",
|
||||||
"use_card_info_three": "Yi amfani da katin dijital akan layi ko tare da hanyoyin biyan kuɗi mara lamba.",
|
"use_card_info_three": "Yi amfani da katin dijital akan layi ko tare da hanyoyin biyan kuɗi mara lamba.",
|
||||||
"use_card_info_two": "Ana canza kuɗi zuwa dalar Amurka lokacin da ake riƙe su a cikin asusun da aka riga aka biya, ba cikin agogon dijital ba.",
|
"use_card_info_two": "Ana canza kuɗi zuwa dalar Amurka lokacin da ake riƙe su a cikin asusun da aka riga aka biya, ba cikin agogon dijital ba.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "बिटकॉइन लाइट थीम",
|
"bitcoin_light_theme": "बिटकॉइन लाइट थीम",
|
||||||
"bitcoin_payments_require_1_confirmation": "बिटकॉइन भुगतान के लिए 1 पुष्टिकरण की आवश्यकता होती है, जिसमें 20 मिनट या अधिक समय लग सकता है। आपके धैर्य के लिए धन्यवाद! भुगतान की पुष्टि होने पर आपको ईमेल किया जाएगा।",
|
"bitcoin_payments_require_1_confirmation": "बिटकॉइन भुगतान के लिए 1 पुष्टिकरण की आवश्यकता होती है, जिसमें 20 मिनट या अधिक समय लग सकता है। आपके धैर्य के लिए धन्यवाद! भुगतान की पुष्टि होने पर आपको ईमेल किया जाएगा।",
|
||||||
"Blocks_remaining": "${status} शेष रहते हैं",
|
"Blocks_remaining": "${status} शेष रहते हैं",
|
||||||
|
"bluetooth": "ब्लूटूथ",
|
||||||
"bright_theme": "उज्ज्वल",
|
"bright_theme": "उज्ज्वल",
|
||||||
"bump_fee": "बम्प फीस",
|
"bump_fee": "बम्प फीस",
|
||||||
"buy": "खरीदें",
|
"buy": "खरीदें",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "बधाई!",
|
"congratulations": "बधाई!",
|
||||||
"connect_an_existing_yat": "मौजूदा Yat कनेक्ट करें",
|
"connect_an_existing_yat": "मौजूदा Yat कनेक्ट करें",
|
||||||
"connect_yats": "कनेक्ट Yats",
|
"connect_yats": "कनेक्ट Yats",
|
||||||
|
"connect_your_hardware_wallet": "ब्लूटूथ या यूएसबी का उपयोग करके अपने हार्डवेयर वॉलेट को कनेक्ट करें",
|
||||||
|
"connect_your_hardware_wallet_ios": "ब्लूटूथ का उपयोग करके अपने हार्डवेयर वॉलेट को कनेक्ट करें",
|
||||||
"connection_sync": "कनेक्शन और सिंक",
|
"connection_sync": "कनेक्शन और सिंक",
|
||||||
"connectWalletPrompt": "लेन-देन करने के लिए अपने वॉलेट को वॉलेटकनेक्ट से कनेक्ट करें",
|
"connectWalletPrompt": "लेन-देन करने के लिए अपने वॉलेट को वॉलेटकनेक्ट से कनेक्ट करें",
|
||||||
"contact": "संपर्क करें",
|
"contact": "संपर्क करें",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "है",
|
"is_percentage": "है",
|
||||||
"last_30_days": "पिछले 30 दिन",
|
"last_30_days": "पिछले 30 दिन",
|
||||||
"learn_more": "और अधिक जानें",
|
"learn_more": "और अधिक जानें",
|
||||||
|
"ledger_connection_error": "आप लेजर से जुड़ने में विफल रहे। कृपया पुन: प्रयास करें।",
|
||||||
|
"ledger_error_device_locked": "खाता बंद है",
|
||||||
|
"ledger_error_tx_rejected_by_user": "डिवाइस पर लेनदेन खारिज कर दिया गया",
|
||||||
|
"ledger_error_wrong_app": "कृपया सुनिश्चित करें कि आप अपने लेजर पर सही ऐप को खोलते हैं",
|
||||||
|
"ledger_please_enable_bluetooth": "कृपया अपने बहीखाने का पता लगाने के लिए ब्लूटूथ को सक्षम करें",
|
||||||
"light_theme": "रोशनी",
|
"light_theme": "रोशनी",
|
||||||
|
"load_more": "और लोड करें",
|
||||||
"loading_your_wallet": "अपना बटुआ लोड कर रहा है",
|
"loading_your_wallet": "अपना बटुआ लोड कर रहा है",
|
||||||
"login": "लॉग इन करें",
|
"login": "लॉग इन करें",
|
||||||
"logout": "लॉगआउट",
|
"logout": "लॉगआउट",
|
||||||
|
@ -443,6 +452,8 @@
|
||||||
"privacy_settings": "गोपनीयता सेटिंग्स",
|
"privacy_settings": "गोपनीयता सेटिंग्स",
|
||||||
"private_key": "निजी चाबी",
|
"private_key": "निजी चाबी",
|
||||||
"proceed_after_one_minute": "यदि 1 मिनट के बाद भी स्क्रीन आगे नहीं बढ़ती है, तो अपना ईमेल देखें।",
|
"proceed_after_one_minute": "यदि 1 मिनट के बाद भी स्क्रीन आगे नहीं बढ़ती है, तो अपना ईमेल देखें।",
|
||||||
|
"proceed_on_device": "अपने डिवाइस पर आगे बढ़ें",
|
||||||
|
"proceed_on_device_description": "कृपया अपने हार्डवेयर वॉलेट पर दिए गए निर्देशों का पालन करें",
|
||||||
"profile": "प्रोफ़ाइल",
|
"profile": "प्रोफ़ाइल",
|
||||||
"provider_error": "${provider} त्रुटि",
|
"provider_error": "${provider} त्रुटि",
|
||||||
"public_key": "सार्वजनिक कुंजी",
|
"public_key": "सार्वजनिक कुंजी",
|
||||||
|
@ -492,6 +503,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "24 शब्द संयोजन कोड से अपने वॉलेट को पुनर्स्थापित करें",
|
"restore_bitcoin_description_from_seed": "24 शब्द संयोजन कोड से अपने वॉलेट को पुनर्स्थापित करें",
|
||||||
"restore_bitcoin_title_from_keys": "WIF से पुनर्स्थापित करें",
|
"restore_bitcoin_title_from_keys": "WIF से पुनर्स्थापित करें",
|
||||||
"restore_description_from_backup": "आप से पूरे केक वॉलेट एप्लिकेशन को पुनर्स्थापित कर सकते हैं आपकी बैक-अप फ़ाइल",
|
"restore_description_from_backup": "आप से पूरे केक वॉलेट एप्लिकेशन को पुनर्स्थापित कर सकते हैं आपकी बैक-अप फ़ाइल",
|
||||||
|
"restore_description_from_hardware_wallet": "एक लेजर हार्डवेयर वॉलेट से पुनर्स्थापित करें",
|
||||||
"restore_description_from_keys": "अपने वॉलेट को जेनरेट से पुनर्स्थापित करें आपकी निजी कुंजी से कीस्ट्रोक्स सहेजे गए",
|
"restore_description_from_keys": "अपने वॉलेट को जेनरेट से पुनर्स्थापित करें आपकी निजी कुंजी से कीस्ट्रोक्स सहेजे गए",
|
||||||
"restore_description_from_seed": "या तो 25 शब्द से अपने वॉलेट को पुनर्स्थापित करें या 13 शब्द संयोजन कोड",
|
"restore_description_from_seed": "या तो 25 शब्द से अपने वॉलेट को पुनर्स्थापित करें या 13 शब्द संयोजन कोड",
|
||||||
"restore_description_from_seed_keys": "अपने बटुए को बीज से वापस लें/वे कुंजियाँ जिन्हें आपने सुरक्षित स्थान पर सहेजा है",
|
"restore_description_from_seed_keys": "अपने बटुए को बीज से वापस लें/वे कुंजियाँ जिन्हें आपने सुरक्षित स्थान पर सहेजा है",
|
||||||
|
@ -504,6 +516,7 @@
|
||||||
"restore_seed_keys_restore": "बीज / कुंजी पुनर्स्थापित करें",
|
"restore_seed_keys_restore": "बीज / कुंजी पुनर्स्थापित करें",
|
||||||
"restore_spend_key_private": "कुंजी खर्च करें (निजीe)",
|
"restore_spend_key_private": "कुंजी खर्च करें (निजीe)",
|
||||||
"restore_title_from_backup": "बैक-अप फ़ाइल से पुनर्स्थापित करें",
|
"restore_title_from_backup": "बैक-अप फ़ाइल से पुनर्स्थापित करें",
|
||||||
|
"restore_title_from_hardware_wallet": "हार्डवेयर वॉलेट से पुनर्स्थापित करें",
|
||||||
"restore_title_from_keys": "कुंजी से पुनर्स्थापित करें",
|
"restore_title_from_keys": "कुंजी से पुनर्स्थापित करें",
|
||||||
"restore_title_from_seed": "बीज से पुनर्स्थापित करें",
|
"restore_title_from_seed": "बीज से पुनर्स्थापित करें",
|
||||||
"restore_title_from_seed_keys": "बीज / कुंजियों से पुनर्स्थापित करें",
|
"restore_title_from_seed_keys": "बीज / कुंजियों से पुनर्स्थापित करें",
|
||||||
|
@ -754,6 +767,7 @@
|
||||||
"unsupported_asset": "हम इस संपत्ति के लिए इस कार्रवाई का समर्थन नहीं करते हैं. कृपया समर्थित परिसंपत्ति प्रकार का वॉलेट बनाएं या उस पर स्विच करें।",
|
"unsupported_asset": "हम इस संपत्ति के लिए इस कार्रवाई का समर्थन नहीं करते हैं. कृपया समर्थित परिसंपत्ति प्रकार का वॉलेट बनाएं या उस पर स्विच करें।",
|
||||||
"uptime": "अपटाइम",
|
"uptime": "अपटाइम",
|
||||||
"upto": "${value} तक",
|
"upto": "${value} तक",
|
||||||
|
"usb": "USB",
|
||||||
"use": "उपयोग ",
|
"use": "उपयोग ",
|
||||||
"use_card_info_three": "डिजिटल कार्ड का ऑनलाइन या संपर्क रहित भुगतान विधियों के साथ उपयोग करें।",
|
"use_card_info_three": "डिजिटल कार्ड का ऑनलाइन या संपर्क रहित भुगतान विधियों के साथ उपयोग करें।",
|
||||||
"use_card_info_two": "डिजिटल मुद्राओं में नहीं, प्रीपेड खाते में रखे जाने पर निधियों को यूएसडी में बदल दिया जाता है।",
|
"use_card_info_two": "डिजिटल मुद्राओं में नहीं, प्रीपेड खाते में रखे जाने पर निधियों को यूएसडी में बदल दिया जाता है।",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Bitcoin Light Theme",
|
"bitcoin_light_theme": "Bitcoin Light Theme",
|
||||||
"bitcoin_payments_require_1_confirmation": "Bitcoin plaćanja zahtijevaju 1 potvrdu, što može potrajati 20 minuta ili dulje. Hvala na Vašem strpljenju! Dobit ćete e-poruku kada plaćanje bude potvrđeno.",
|
"bitcoin_payments_require_1_confirmation": "Bitcoin plaćanja zahtijevaju 1 potvrdu, što može potrajati 20 minuta ili dulje. Hvala na Vašem strpljenju! Dobit ćete e-poruku kada plaćanje bude potvrđeno.",
|
||||||
"Blocks_remaining": "${status} preostalih blokova",
|
"Blocks_remaining": "${status} preostalih blokova",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Jarka",
|
"bright_theme": "Jarka",
|
||||||
"bump_fee": "Naplata",
|
"bump_fee": "Naplata",
|
||||||
"buy": "Kupi",
|
"buy": "Kupi",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Čestitamo!",
|
"congratulations": "Čestitamo!",
|
||||||
"connect_an_existing_yat": "Povežite postojeći Yat",
|
"connect_an_existing_yat": "Povežite postojeći Yat",
|
||||||
"connect_yats": "Povežite Yats",
|
"connect_yats": "Povežite Yats",
|
||||||
|
"connect_your_hardware_wallet": "Spojite svoj hardverski novčanik pomoću Bluetooth -a ili USB -a",
|
||||||
|
"connect_your_hardware_wallet_ios": "Spojite svoj hardverski novčanik pomoću Bluetooth -a",
|
||||||
"connection_sync": "Povezivanje i sinkronizacija",
|
"connection_sync": "Povezivanje i sinkronizacija",
|
||||||
"connectWalletPrompt": "Povežite svoj novčanik s WalletConnectom za obavljanje transakcija",
|
"connectWalletPrompt": "Povežite svoj novčanik s WalletConnectom za obavljanje transakcija",
|
||||||
"contact": "Kontakt",
|
"contact": "Kontakt",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "je",
|
"is_percentage": "je",
|
||||||
"last_30_days": "Zadnjih 30 dana",
|
"last_30_days": "Zadnjih 30 dana",
|
||||||
"learn_more": "Saznajte više",
|
"learn_more": "Saznajte više",
|
||||||
|
"ledger_connection_error": "Nije uspio povezati se s knjigom. Molim te pokušaj ponovno.",
|
||||||
|
"ledger_error_device_locked": "Knjiga je zaključana",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Transakcija odbijena na uređaju",
|
||||||
|
"ledger_error_wrong_app": "Obavezno obavezno otvorite pravu aplikaciju na knjizi",
|
||||||
|
"ledger_please_enable_bluetooth": "Omogućite Bluetooth da otkrije svoju knjigu",
|
||||||
"light_theme": "Svijetla",
|
"light_theme": "Svijetla",
|
||||||
|
"load_more": "Učitaj više",
|
||||||
"loading_your_wallet": "Novčanik se učitava",
|
"loading_your_wallet": "Novčanik se učitava",
|
||||||
"login": "Prijava",
|
"login": "Prijava",
|
||||||
"logout": "Odjava",
|
"logout": "Odjava",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "Postavke privatnosti",
|
"privacy_settings": "Postavke privatnosti",
|
||||||
"private_key": "Privatni ključ",
|
"private_key": "Privatni ključ",
|
||||||
"proceed_after_one_minute": "Ako se zaslon ne nastavi nakon 1 minute, provjerite svoju e-poštu.",
|
"proceed_after_one_minute": "Ako se zaslon ne nastavi nakon 1 minute, provjerite svoju e-poštu.",
|
||||||
|
"proceed_on_device": "Nastavite na svom uređaju",
|
||||||
|
"proceed_on_device_description": "Slijedite upute zatražene na vašem hardverskom novčaniku",
|
||||||
"profile": "Profil",
|
"profile": "Profil",
|
||||||
"provider_error": "${provider} greška",
|
"provider_error": "${provider} greška",
|
||||||
"public_key": "Javni ključ",
|
"public_key": "Javni ključ",
|
||||||
|
@ -490,6 +501,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Oporavi novčanik pomoću koda od 12 riječi",
|
"restore_bitcoin_description_from_seed": "Oporavi novčanik pomoću koda od 12 riječi",
|
||||||
"restore_bitcoin_title_from_keys": "Oporavi pomoću formata uvoza novčanika (WIF)",
|
"restore_bitcoin_title_from_keys": "Oporavi pomoću formata uvoza novčanika (WIF)",
|
||||||
"restore_description_from_backup": "Možete oporaviti cijelu Cake Wallet aplikaciju pomoću vlastite datoteke sa sigurnosnom kopijom",
|
"restore_description_from_backup": "Možete oporaviti cijelu Cake Wallet aplikaciju pomoću vlastite datoteke sa sigurnosnom kopijom",
|
||||||
|
"restore_description_from_hardware_wallet": "Vratite se iz novčanice od knjige",
|
||||||
"restore_description_from_keys": "Oporavi novčanik pomoću generiranih pritisaka na tipke spremljenih od vlastitih privatnih ključeva (keys)",
|
"restore_description_from_keys": "Oporavi novčanik pomoću generiranih pritisaka na tipke spremljenih od vlastitih privatnih ključeva (keys)",
|
||||||
"restore_description_from_seed": "Oporavi novčanik pomoću koda koji sadrži kombinaciju od 25 ili 13 riječi",
|
"restore_description_from_seed": "Oporavi novčanik pomoću koda koji sadrži kombinaciju od 25 ili 13 riječi",
|
||||||
"restore_description_from_seed_keys": "Oporavi novčanik pomoću pristupnog izraza/ključa spremljenog na sigurno mjesto",
|
"restore_description_from_seed_keys": "Oporavi novčanik pomoću pristupnog izraza/ključa spremljenog na sigurno mjesto",
|
||||||
|
@ -502,6 +514,7 @@
|
||||||
"restore_seed_keys_restore": "Oporavak pomoću pristupnog izraza/ključa",
|
"restore_seed_keys_restore": "Oporavak pomoću pristupnog izraza/ključa",
|
||||||
"restore_spend_key_private": "Spend key (privatni)",
|
"restore_spend_key_private": "Spend key (privatni)",
|
||||||
"restore_title_from_backup": "Oporavak pomoću sigurnosne kopije",
|
"restore_title_from_backup": "Oporavak pomoću sigurnosne kopije",
|
||||||
|
"restore_title_from_hardware_wallet": "Vrati iz hardverskog novčanika",
|
||||||
"restore_title_from_keys": "Oporavi pomoću ključa",
|
"restore_title_from_keys": "Oporavi pomoću ključa",
|
||||||
"restore_title_from_seed": "Oporavi pomoću pristupnog izraza",
|
"restore_title_from_seed": "Oporavi pomoću pristupnog izraza",
|
||||||
"restore_title_from_seed_keys": "Oporavi pomoću pristupnog izraza/ključa",
|
"restore_title_from_seed_keys": "Oporavi pomoću pristupnog izraza/ključa",
|
||||||
|
@ -752,6 +765,7 @@
|
||||||
"unsupported_asset": "Ne podržavamo ovu radnju za ovaj materijal. Izradite ili prijeđite na novčanik podržane vrste sredstava.",
|
"unsupported_asset": "Ne podržavamo ovu radnju za ovaj materijal. Izradite ili prijeđite na novčanik podržane vrste sredstava.",
|
||||||
"uptime": "Radno vrijeme",
|
"uptime": "Radno vrijeme",
|
||||||
"upto": "do ${value}",
|
"upto": "do ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Prebaci na",
|
"use": "Prebaci na",
|
||||||
"use_card_info_three": "Koristite digitalnu karticu online ili s beskontaktnim metodama plaćanja.",
|
"use_card_info_three": "Koristite digitalnu karticu online ili s beskontaktnim metodama plaćanja.",
|
||||||
"use_card_info_two": "Sredstva se pretvaraju u USD kada se drže na prepaid računu, a ne u digitalnim valutama.",
|
"use_card_info_two": "Sredstva se pretvaraju u USD kada se drže na prepaid računu, a ne u digitalnim valutama.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Tema Cahaya Bitcoin",
|
"bitcoin_light_theme": "Tema Cahaya Bitcoin",
|
||||||
"bitcoin_payments_require_1_confirmation": "Pembayaran Bitcoin memerlukan 1 konfirmasi, yang bisa memakan waktu 20 menit atau lebih. Terima kasih atas kesabaran Anda! Anda akan diemail saat pembayaran dikonfirmasi.",
|
"bitcoin_payments_require_1_confirmation": "Pembayaran Bitcoin memerlukan 1 konfirmasi, yang bisa memakan waktu 20 menit atau lebih. Terima kasih atas kesabaran Anda! Anda akan diemail saat pembayaran dikonfirmasi.",
|
||||||
"Blocks_remaining": "${status} Blok Tersisa",
|
"Blocks_remaining": "${status} Blok Tersisa",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Cerah",
|
"bright_theme": "Cerah",
|
||||||
"bump_fee": "Biaya benjolan",
|
"bump_fee": "Biaya benjolan",
|
||||||
"buy": "Beli",
|
"buy": "Beli",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Selamat!",
|
"congratulations": "Selamat!",
|
||||||
"connect_an_existing_yat": "Hubungkan Yat yang ada",
|
"connect_an_existing_yat": "Hubungkan Yat yang ada",
|
||||||
"connect_yats": "Hubungkan Yats",
|
"connect_yats": "Hubungkan Yats",
|
||||||
|
"connect_your_hardware_wallet": "Hubungkan dompet perangkat keras Anda menggunakan Bluetooth atau USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Hubungkan dompet perangkat keras Anda menggunakan Bluetooth",
|
||||||
"connection_sync": "Koneksi dan sinkronisasi",
|
"connection_sync": "Koneksi dan sinkronisasi",
|
||||||
"connectWalletPrompt": "Hubungkan dompet Anda dengan WalletConnect untuk melakukan transaksi",
|
"connectWalletPrompt": "Hubungkan dompet Anda dengan WalletConnect untuk melakukan transaksi",
|
||||||
"contact": "Kontak",
|
"contact": "Kontak",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "adalah",
|
"is_percentage": "adalah",
|
||||||
"last_30_days": "30 hari terakhir",
|
"last_30_days": "30 hari terakhir",
|
||||||
"learn_more": "Pelajari Lebih Lanjut",
|
"learn_more": "Pelajari Lebih Lanjut",
|
||||||
|
"ledger_connection_error": "Gagal terhubung ke buku besar Anda. Tolong coba lagi.",
|
||||||
|
"ledger_error_device_locked": "Ledger terkunci",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Transaksi ditolak pada perangkat",
|
||||||
|
"ledger_error_wrong_app": "Pastikan Anda membuka aplikasi yang tepat di buku besar Anda",
|
||||||
|
"ledger_please_enable_bluetooth": "Harap aktifkan Bluetooth untuk mendeteksi buku besar Anda",
|
||||||
"light_theme": "Terang",
|
"light_theme": "Terang",
|
||||||
|
"load_more": "Muat lebih banyak",
|
||||||
"loading_your_wallet": "Memuat dompet Anda",
|
"loading_your_wallet": "Memuat dompet Anda",
|
||||||
"login": "Masuk",
|
"login": "Masuk",
|
||||||
"logout": "Keluar",
|
"logout": "Keluar",
|
||||||
|
@ -444,6 +453,8 @@
|
||||||
"privacy_settings": "Pengaturan privasi",
|
"privacy_settings": "Pengaturan privasi",
|
||||||
"private_key": "Kunci privat",
|
"private_key": "Kunci privat",
|
||||||
"proceed_after_one_minute": "Jika layar tidak bergerak setelah 1 menit, periksa email Anda.",
|
"proceed_after_one_minute": "Jika layar tidak bergerak setelah 1 menit, periksa email Anda.",
|
||||||
|
"proceed_on_device": "Lanjutkan di perangkat Anda",
|
||||||
|
"proceed_on_device_description": "Harap ikuti instruksi yang diminta di dompet perangkat keras Anda",
|
||||||
"profile": "Profil",
|
"profile": "Profil",
|
||||||
"provider_error": "${provider} error",
|
"provider_error": "${provider} error",
|
||||||
"public_key": "Kunci publik",
|
"public_key": "Kunci publik",
|
||||||
|
@ -492,6 +503,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Pulihkan dompet Anda dari kombinasi kode 24 kata",
|
"restore_bitcoin_description_from_seed": "Pulihkan dompet Anda dari kombinasi kode 24 kata",
|
||||||
"restore_bitcoin_title_from_keys": "Pulihkan dari WIF",
|
"restore_bitcoin_title_from_keys": "Pulihkan dari WIF",
|
||||||
"restore_description_from_backup": "Anda dapat memulihkan seluruh aplikasi Cake Wallet dari file cadangan Anda",
|
"restore_description_from_backup": "Anda dapat memulihkan seluruh aplikasi Cake Wallet dari file cadangan Anda",
|
||||||
|
"restore_description_from_hardware_wallet": "Kembalikan dari dompet perangkat keras Ledger",
|
||||||
"restore_description_from_keys": "Pulihkan dompet Anda dari tombol yang dihasilkan yang disimpan dari kunci pribadi Anda",
|
"restore_description_from_keys": "Pulihkan dompet Anda dari tombol yang dihasilkan yang disimpan dari kunci pribadi Anda",
|
||||||
"restore_description_from_seed": "Pulihkan dompet Anda dari kombinasi kode 25 atau 13 kata",
|
"restore_description_from_seed": "Pulihkan dompet Anda dari kombinasi kode 25 atau 13 kata",
|
||||||
"restore_description_from_seed_keys": "Dapatkan kembali dompet Anda dari seed/kunci yang Anda simpan di tempat yang aman",
|
"restore_description_from_seed_keys": "Dapatkan kembali dompet Anda dari seed/kunci yang Anda simpan di tempat yang aman",
|
||||||
|
@ -505,6 +517,7 @@
|
||||||
"restore_seed_keys_restore": "Pulihkan Seed/Kunci",
|
"restore_seed_keys_restore": "Pulihkan Seed/Kunci",
|
||||||
"restore_spend_key_private": "Habiskan kunci (pribadi)",
|
"restore_spend_key_private": "Habiskan kunci (pribadi)",
|
||||||
"restore_title_from_backup": "Pulihkan dari cadangan",
|
"restore_title_from_backup": "Pulihkan dari cadangan",
|
||||||
|
"restore_title_from_hardware_wallet": "Kembalikan dari dompet perangkat keras",
|
||||||
"restore_title_from_keys": "Pulihkan dari kunci",
|
"restore_title_from_keys": "Pulihkan dari kunci",
|
||||||
"restore_title_from_seed": "Pulihkan dari seed",
|
"restore_title_from_seed": "Pulihkan dari seed",
|
||||||
"restore_title_from_seed_keys": "Pulihkan dari seed/kunci",
|
"restore_title_from_seed_keys": "Pulihkan dari seed/kunci",
|
||||||
|
@ -755,6 +768,7 @@
|
||||||
"unsupported_asset": "Kami tidak mendukung tindakan ini untuk aset ini. Harap buat atau alihkan ke dompet dari jenis aset yang didukung.",
|
"unsupported_asset": "Kami tidak mendukung tindakan ini untuk aset ini. Harap buat atau alihkan ke dompet dari jenis aset yang didukung.",
|
||||||
"uptime": "Uptime",
|
"uptime": "Uptime",
|
||||||
"upto": "hingga ${value}",
|
"upto": "hingga ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Beralih ke ",
|
"use": "Beralih ke ",
|
||||||
"use_card_info_three": "Gunakan kartu digital secara online atau dengan metode pembayaran tanpa kontak.",
|
"use_card_info_three": "Gunakan kartu digital secara online atau dengan metode pembayaran tanpa kontak.",
|
||||||
"use_card_info_two": "Dana dikonversi ke USD ketika disimpan dalam akun pra-bayar, bukan dalam mata uang digital.",
|
"use_card_info_two": "Dana dikonversi ke USD ketika disimpan dalam akun pra-bayar, bukan dalam mata uang digital.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Tema luce Bitcoin",
|
"bitcoin_light_theme": "Tema luce Bitcoin",
|
||||||
"bitcoin_payments_require_1_confirmation": "I pagamenti in bitcoin richiedono 1 conferma, che può richiedere 20 minuti o più. Grazie per la vostra pazienza! Riceverai un'e-mail quando il pagamento sarà confermato.",
|
"bitcoin_payments_require_1_confirmation": "I pagamenti in bitcoin richiedono 1 conferma, che può richiedere 20 minuti o più. Grazie per la vostra pazienza! Riceverai un'e-mail quando il pagamento sarà confermato.",
|
||||||
"Blocks_remaining": "${status} Blocchi Rimanenti",
|
"Blocks_remaining": "${status} Blocchi Rimanenti",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Colorato",
|
"bright_theme": "Colorato",
|
||||||
"bump_fee": "Commissione per bump",
|
"bump_fee": "Commissione per bump",
|
||||||
"buy": "Comprare",
|
"buy": "Comprare",
|
||||||
|
@ -145,6 +146,8 @@
|
||||||
"congratulations": "Congratulazioni!",
|
"congratulations": "Congratulazioni!",
|
||||||
"connect_an_existing_yat": "Collegare un Yat esistente",
|
"connect_an_existing_yat": "Collegare un Yat esistente",
|
||||||
"connect_yats": "Connetti Yats",
|
"connect_yats": "Connetti Yats",
|
||||||
|
"connect_your_hardware_wallet": "Collega il tuo portafoglio hardware con Bluetooth o USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Collega il tuo portafoglio hardware con Bluetooth",
|
||||||
"connection_sync": "Connessione e sincronizzazione",
|
"connection_sync": "Connessione e sincronizzazione",
|
||||||
"connectWalletPrompt": "Collega il tuo portafoglio con WalletConnect per effettuare transazioni",
|
"connectWalletPrompt": "Collega il tuo portafoglio con WalletConnect per effettuare transazioni",
|
||||||
"contact": "Contatta",
|
"contact": "Contatta",
|
||||||
|
@ -329,7 +332,13 @@
|
||||||
"is_percentage": "è",
|
"is_percentage": "è",
|
||||||
"last_30_days": "Ultimi 30 giorni",
|
"last_30_days": "Ultimi 30 giorni",
|
||||||
"learn_more": "Impara di più",
|
"learn_more": "Impara di più",
|
||||||
|
"ledger_connection_error": "Impossibile connettersi al libro mastro. Per favore riprova.",
|
||||||
|
"ledger_error_device_locked": "Il libro mastro è bloccato",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Transazione rifiutata sul dispositivo",
|
||||||
|
"ledger_error_wrong_app": "Assicurati di aprire l'app giusta sul libro mastro",
|
||||||
|
"ledger_please_enable_bluetooth": "Si prega di consentire al Bluetooth di rilevare il libro mastro",
|
||||||
"light_theme": "Bianco",
|
"light_theme": "Bianco",
|
||||||
|
"load_more": "Carica di più",
|
||||||
"loading_your_wallet": "Caricamento portafoglio",
|
"loading_your_wallet": "Caricamento portafoglio",
|
||||||
"login": "Accedi",
|
"login": "Accedi",
|
||||||
"logout": "Logout",
|
"logout": "Logout",
|
||||||
|
@ -444,6 +453,8 @@
|
||||||
"privacy_settings": "Impostazioni privacy",
|
"privacy_settings": "Impostazioni privacy",
|
||||||
"private_key": "Chiave privata",
|
"private_key": "Chiave privata",
|
||||||
"proceed_after_one_minute": "Se lo schermo non procede dopo 1 minuto, controlla la tua email.",
|
"proceed_after_one_minute": "Se lo schermo non procede dopo 1 minuto, controlla la tua email.",
|
||||||
|
"proceed_on_device": "Procedi sul tuo dispositivo",
|
||||||
|
"proceed_on_device_description": "Segui le istruzioni richieste sul portafoglio hardware",
|
||||||
"profile": "Profilo",
|
"profile": "Profilo",
|
||||||
"provider_error": "${provider} errore",
|
"provider_error": "${provider} errore",
|
||||||
"public_key": "Chiave pubblica",
|
"public_key": "Chiave pubblica",
|
||||||
|
@ -492,6 +503,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Recupera il tuo portafoglio da una combinazione di 12 parole",
|
"restore_bitcoin_description_from_seed": "Recupera il tuo portafoglio da una combinazione di 12 parole",
|
||||||
"restore_bitcoin_title_from_keys": "Recupera da WIF",
|
"restore_bitcoin_title_from_keys": "Recupera da WIF",
|
||||||
"restore_description_from_backup": "Puoi recuperare l'app Cake Wallet per intero dal tuo file di backup",
|
"restore_description_from_backup": "Puoi recuperare l'app Cake Wallet per intero dal tuo file di backup",
|
||||||
|
"restore_description_from_hardware_wallet": "Ripristina da un portafoglio hardware di libro mastro",
|
||||||
"restore_description_from_keys": "Recupera il tuo portafoglio da una sequenza di caratteri generati dalle tue chiavi private",
|
"restore_description_from_keys": "Recupera il tuo portafoglio da una sequenza di caratteri generati dalle tue chiavi private",
|
||||||
"restore_description_from_seed": "Recupera il tuo portafoglio da una combinazione di 25 o 13 parole",
|
"restore_description_from_seed": "Recupera il tuo portafoglio da una combinazione di 25 o 13 parole",
|
||||||
"restore_description_from_seed_keys": "Recupera il tuo portafoglio dal seme/chiavi che hai salvato in un posto sicuro",
|
"restore_description_from_seed_keys": "Recupera il tuo portafoglio dal seme/chiavi che hai salvato in un posto sicuro",
|
||||||
|
@ -504,6 +516,7 @@
|
||||||
"restore_seed_keys_restore": "Recupera Seme/Chiavi",
|
"restore_seed_keys_restore": "Recupera Seme/Chiavi",
|
||||||
"restore_spend_key_private": "Chiave di Spesa (privata)",
|
"restore_spend_key_private": "Chiave di Spesa (privata)",
|
||||||
"restore_title_from_backup": "Recupera da backup",
|
"restore_title_from_backup": "Recupera da backup",
|
||||||
|
"restore_title_from_hardware_wallet": "Ripristina dal portafoglio hardware",
|
||||||
"restore_title_from_keys": "Recupera dalle chiavi",
|
"restore_title_from_keys": "Recupera dalle chiavi",
|
||||||
"restore_title_from_seed": "Recupera dal seme",
|
"restore_title_from_seed": "Recupera dal seme",
|
||||||
"restore_title_from_seed_keys": "Recupera dal seme/chiavi",
|
"restore_title_from_seed_keys": "Recupera dal seme/chiavi",
|
||||||
|
@ -754,6 +767,7 @@
|
||||||
"unsupported_asset": "Non supportiamo questa azione per questa risorsa. Crea o passa a un portafoglio di un tipo di asset supportato.",
|
"unsupported_asset": "Non supportiamo questa azione per questa risorsa. Crea o passa a un portafoglio di un tipo di asset supportato.",
|
||||||
"uptime": "Uptime",
|
"uptime": "Uptime",
|
||||||
"upto": "fino a ${value}",
|
"upto": "fino a ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Passa a ",
|
"use": "Passa a ",
|
||||||
"use_card_info_three": "Utilizza la carta digitale online o con metodi di pagamento contactless.",
|
"use_card_info_three": "Utilizza la carta digitale online o con metodi di pagamento contactless.",
|
||||||
"use_card_info_two": "I fondi vengono convertiti in USD quando sono detenuti nel conto prepagato, non in valute digitali.",
|
"use_card_info_two": "I fondi vengono convertiti in USD quando sono detenuti nel conto prepagato, non in valute digitali.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "ビットコインライトテーマ",
|
"bitcoin_light_theme": "ビットコインライトテーマ",
|
||||||
"bitcoin_payments_require_1_confirmation": "ビットコインの支払いには 1 回の確認が必要で、これには 20 分以上かかる場合があります。お待ち頂きまして、ありがとうございます!支払いが確認されると、メールが送信されます。",
|
"bitcoin_payments_require_1_confirmation": "ビットコインの支払いには 1 回の確認が必要で、これには 20 分以上かかる場合があります。お待ち頂きまして、ありがとうございます!支払いが確認されると、メールが送信されます。",
|
||||||
"Blocks_remaining": "${status} 残りのブロック",
|
"Blocks_remaining": "${status} 残りのブロック",
|
||||||
|
"bluetooth": "ブルートゥース",
|
||||||
"bright_theme": "明るい",
|
"bright_theme": "明るい",
|
||||||
"bump_fee": "バンプ料金",
|
"bump_fee": "バンプ料金",
|
||||||
"buy": "購入",
|
"buy": "購入",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "おめでとうございます!",
|
"congratulations": "おめでとうございます!",
|
||||||
"connect_an_existing_yat": "既存のYatを接続します",
|
"connect_an_existing_yat": "既存のYatを接続します",
|
||||||
"connect_yats": "Yatsを接続します",
|
"connect_yats": "Yatsを接続します",
|
||||||
|
"connect_your_hardware_wallet": "BluetoothまたはUSBを使用して、ハードウェアウォレットを接続します",
|
||||||
|
"connect_your_hardware_wallet_ios": "Bluetoothを使用してハードウェアウォレットを接続します",
|
||||||
"connection_sync": "接続と同期",
|
"connection_sync": "接続と同期",
|
||||||
"connectWalletPrompt": "ウォレットを WalletConnect に接続して取引を行う",
|
"connectWalletPrompt": "ウォレットを WalletConnect に接続して取引を行う",
|
||||||
"contact": "接触",
|
"contact": "接触",
|
||||||
|
@ -329,7 +332,13 @@
|
||||||
"is_percentage": "is",
|
"is_percentage": "is",
|
||||||
"last_30_days": "過去30日",
|
"last_30_days": "過去30日",
|
||||||
"learn_more": "もっと詳しく知る",
|
"learn_more": "もっと詳しく知る",
|
||||||
|
"ledger_connection_error": "元帳に接続できませんでした。もう一度やり直してください。",
|
||||||
|
"ledger_error_device_locked": "元帳がロックされています",
|
||||||
|
"ledger_error_tx_rejected_by_user": "トランザクションはデバイスで拒否されました",
|
||||||
|
"ledger_error_wrong_app": "元帳に適切なアプリを開始するようにしてください",
|
||||||
|
"ledger_please_enable_bluetooth": "Bluetoothが元帳を検出できるようにしてください",
|
||||||
"light_theme": "光",
|
"light_theme": "光",
|
||||||
|
"load_more": "もっと読み込む",
|
||||||
"loading_your_wallet": "ウォレットをロードしています",
|
"loading_your_wallet": "ウォレットをロードしています",
|
||||||
"login": "ログイン",
|
"login": "ログイン",
|
||||||
"logout": "ログアウト",
|
"logout": "ログアウト",
|
||||||
|
@ -443,6 +452,8 @@
|
||||||
"privacy_settings": "プライバシー設定",
|
"privacy_settings": "プライバシー設定",
|
||||||
"private_key": "秘密鍵",
|
"private_key": "秘密鍵",
|
||||||
"proceed_after_one_minute": "1分経っても画面が進まない場合は、メールを確認してください。",
|
"proceed_after_one_minute": "1分経っても画面が進まない場合は、メールを確認してください。",
|
||||||
|
"proceed_on_device": "デバイスに進みます",
|
||||||
|
"proceed_on_device_description": "ハードウェアウォレットにプロンプトされた指示に従ってください",
|
||||||
"profile": "プロフィール",
|
"profile": "プロフィール",
|
||||||
"provider_error": "${provider} エラー",
|
"provider_error": "${provider} エラー",
|
||||||
"public_key": "公開鍵",
|
"public_key": "公開鍵",
|
||||||
|
@ -491,6 +502,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "24ワードの組み合わせコードからウォレットを復元する",
|
"restore_bitcoin_description_from_seed": "24ワードの組み合わせコードからウォレットを復元する",
|
||||||
"restore_bitcoin_title_from_keys": "WIFから復元",
|
"restore_bitcoin_title_from_keys": "WIFから復元",
|
||||||
"restore_description_from_backup": "Cake Walletアプリ全体を復元できますバックアップファイル",
|
"restore_description_from_backup": "Cake Walletアプリ全体を復元できますバックアップファイル",
|
||||||
|
"restore_description_from_hardware_wallet": "元帳ハードウェアウォレットから復元します",
|
||||||
"restore_description_from_keys": "生成されたウォレットを復元します秘密鍵から保存されたキーストローク",
|
"restore_description_from_keys": "生成されたウォレットを復元します秘密鍵から保存されたキーストローク",
|
||||||
"restore_description_from_seed": "25ワードからウォレットを復元しますまたは13ワードの組み合わせコード",
|
"restore_description_from_seed": "25ワードからウォレットを復元しますまたは13ワードの組み合わせコード",
|
||||||
"restore_description_from_seed_keys": "安全な場所に保存したシード/キーから財布を取り戻す",
|
"restore_description_from_seed_keys": "安全な場所に保存したシード/キーから財布を取り戻す",
|
||||||
|
@ -503,6 +515,7 @@
|
||||||
"restore_seed_keys_restore": "シード/キーの復元",
|
"restore_seed_keys_restore": "シード/キーの復元",
|
||||||
"restore_spend_key_private": "キーを使う (プライベート)",
|
"restore_spend_key_private": "キーを使う (プライベート)",
|
||||||
"restore_title_from_backup": "バックアップファイルから復元する",
|
"restore_title_from_backup": "バックアップファイルから復元する",
|
||||||
|
"restore_title_from_hardware_wallet": "ハードウェアウォレットから復元します",
|
||||||
"restore_title_from_keys": "キーから復元する",
|
"restore_title_from_keys": "キーから復元する",
|
||||||
"restore_title_from_seed": "シードから復元",
|
"restore_title_from_seed": "シードから復元",
|
||||||
"restore_title_from_seed_keys": "シード/キーから復元",
|
"restore_title_from_seed_keys": "シード/キーから復元",
|
||||||
|
@ -753,6 +766,7 @@
|
||||||
"unsupported_asset": "このアセットに対するこのアクションはサポートされていません。サポートされているアセットタイプのウォレットを作成するか、ウォレットに切り替えてください。",
|
"unsupported_asset": "このアセットに対するこのアクションはサポートされていません。サポートされているアセットタイプのウォレットを作成するか、ウォレットに切り替えてください。",
|
||||||
"uptime": "稼働時間",
|
"uptime": "稼働時間",
|
||||||
"upto": "up up ${value}",
|
"upto": "up up ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "使用する ",
|
"use": "使用する ",
|
||||||
"use_card_info_three": "デジタルカードをオンラインまたは非接触型決済方法で使用してください。",
|
"use_card_info_three": "デジタルカードをオンラインまたは非接触型決済方法で使用してください。",
|
||||||
"use_card_info_two": "デジタル通貨ではなく、プリペイドアカウントで保持されている場合、資金は米ドルに変換されます。",
|
"use_card_info_two": "デジタル通貨ではなく、プリペイドアカウントで保持されている場合、資金は米ドルに変換されます。",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "비트코인 라이트 테마",
|
"bitcoin_light_theme": "비트코인 라이트 테마",
|
||||||
"bitcoin_payments_require_1_confirmation": "비트코인 결제는 1번의 확인이 필요하며 20분 이상이 소요될 수 있습니다. 기다려 주셔서 감사합니다! 결제가 확인되면 이메일이 전송됩니다.",
|
"bitcoin_payments_require_1_confirmation": "비트코인 결제는 1번의 확인이 필요하며 20분 이상이 소요될 수 있습니다. 기다려 주셔서 감사합니다! 결제가 확인되면 이메일이 전송됩니다.",
|
||||||
"Blocks_remaining": "${status} 남은 블록",
|
"Blocks_remaining": "${status} 남은 블록",
|
||||||
|
"bluetooth": "블루투스",
|
||||||
"bright_theme": "선명한",
|
"bright_theme": "선명한",
|
||||||
"bump_fee": "범프 요금",
|
"bump_fee": "범프 요금",
|
||||||
"buy": "구입",
|
"buy": "구입",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "축하합니다!",
|
"congratulations": "축하합니다!",
|
||||||
"connect_an_existing_yat": "기존 Yat 연결",
|
"connect_an_existing_yat": "기존 Yat 연결",
|
||||||
"connect_yats": "야츠 연결",
|
"connect_yats": "야츠 연결",
|
||||||
|
"connect_your_hardware_wallet": "Bluetooth 또는 USB를 사용하여 하드웨어 지갑을 연결하십시오",
|
||||||
|
"connect_your_hardware_wallet_ios": "Bluetooth를 사용하여 하드웨어 지갑을 연결하십시오",
|
||||||
"connection_sync": "연결 및 동기화",
|
"connection_sync": "연결 및 동기화",
|
||||||
"connectWalletPrompt": "거래를 하려면 WalletConnect에 지갑을 연결하세요.",
|
"connectWalletPrompt": "거래를 하려면 WalletConnect에 지갑을 연결하세요.",
|
||||||
"contact": "접촉",
|
"contact": "접촉",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "이다",
|
"is_percentage": "이다",
|
||||||
"last_30_days": "지난 30일",
|
"last_30_days": "지난 30일",
|
||||||
"learn_more": "더 알아보기",
|
"learn_more": "더 알아보기",
|
||||||
|
"ledger_connection_error": "원장에 연결하지 못했습니다. 다시 시도하십시오.",
|
||||||
|
"ledger_error_device_locked": "원장이 잠겨 있습니다",
|
||||||
|
"ledger_error_tx_rejected_by_user": "장치에서 거래가 거부되었습니다",
|
||||||
|
"ledger_error_wrong_app": "원장에서 올바른 앱을 반대하는지 확인하십시오.",
|
||||||
|
"ledger_please_enable_bluetooth": "Bluetooth가 원장을 감지 할 수 있도록하십시오",
|
||||||
"light_theme": "빛",
|
"light_theme": "빛",
|
||||||
|
"load_more": "더로드하십시오",
|
||||||
"loading_your_wallet": "지갑 넣기",
|
"loading_your_wallet": "지갑 넣기",
|
||||||
"login": "로그인",
|
"login": "로그인",
|
||||||
"logout": "로그아웃",
|
"logout": "로그아웃",
|
||||||
|
@ -443,6 +452,8 @@
|
||||||
"privacy_settings": "개인정보 설정",
|
"privacy_settings": "개인정보 설정",
|
||||||
"private_key": "개인 키",
|
"private_key": "개인 키",
|
||||||
"proceed_after_one_minute": "1분 후에도 화면이 진행되지 않으면 이메일을 확인하세요.",
|
"proceed_after_one_minute": "1분 후에도 화면이 진행되지 않으면 이메일을 확인하세요.",
|
||||||
|
"proceed_on_device": "장치를 진행하십시오",
|
||||||
|
"proceed_on_device_description": "하드웨어 지갑에 표시된 지침을 따르십시오",
|
||||||
"profile": "프로필",
|
"profile": "프로필",
|
||||||
"provider_error": "${provider} 오류",
|
"provider_error": "${provider} 오류",
|
||||||
"public_key": "공개 키",
|
"public_key": "공개 키",
|
||||||
|
@ -491,6 +502,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "24 단어 조합 코드에서 지갑 복원",
|
"restore_bitcoin_description_from_seed": "24 단어 조합 코드에서 지갑 복원",
|
||||||
"restore_bitcoin_title_from_keys": "WIF에서 복원",
|
"restore_bitcoin_title_from_keys": "WIF에서 복원",
|
||||||
"restore_description_from_backup": "백업 파일에서 전체 Cake Wallet 앱을 복원 할 수 있습니다.",
|
"restore_description_from_backup": "백업 파일에서 전체 Cake Wallet 앱을 복원 할 수 있습니다.",
|
||||||
|
"restore_description_from_hardware_wallet": "원장 하드웨어 지갑에서 복원하십시오",
|
||||||
"restore_description_from_keys": "개인 키에서 저장된 생성 된 키 스트로크에서 월렛 복원",
|
"restore_description_from_keys": "개인 키에서 저장된 생성 된 키 스트로크에서 월렛 복원",
|
||||||
"restore_description_from_seed": "25 단어 또는 13 단어 조합 코드에서 지갑을 복원하십시오.",
|
"restore_description_from_seed": "25 단어 또는 13 단어 조합 코드에서 지갑을 복원하십시오.",
|
||||||
"restore_description_from_seed_keys": "안전한 장소에 저장 한 종자 / 키로 지갑을 되 찾으십시오.",
|
"restore_description_from_seed_keys": "안전한 장소에 저장 한 종자 / 키로 지갑을 되 찾으십시오.",
|
||||||
|
@ -503,6 +515,7 @@
|
||||||
"restore_seed_keys_restore": "종자 / 키 복원",
|
"restore_seed_keys_restore": "종자 / 키 복원",
|
||||||
"restore_spend_key_private": "지출 키 (은밀한)",
|
"restore_spend_key_private": "지출 키 (은밀한)",
|
||||||
"restore_title_from_backup": "백업 파일에서 복원",
|
"restore_title_from_backup": "백업 파일에서 복원",
|
||||||
|
"restore_title_from_hardware_wallet": "하드웨어 지갑에서 복원하십시오",
|
||||||
"restore_title_from_keys": "키에서 복원",
|
"restore_title_from_keys": "키에서 복원",
|
||||||
"restore_title_from_seed": "종자에서 복원",
|
"restore_title_from_seed": "종자에서 복원",
|
||||||
"restore_title_from_seed_keys": "시드 / 키에서 복원",
|
"restore_title_from_seed_keys": "시드 / 키에서 복원",
|
||||||
|
@ -753,6 +766,7 @@
|
||||||
"unsupported_asset": "이 저작물에 대해 이 작업을 지원하지 않습니다. 지원되는 자산 유형의 지갑을 생성하거나 전환하십시오.",
|
"unsupported_asset": "이 저작물에 대해 이 작업을 지원하지 않습니다. 지원되는 자산 유형의 지갑을 생성하거나 전환하십시오.",
|
||||||
"uptime": "가동 시간",
|
"uptime": "가동 시간",
|
||||||
"upto": "최대 ${value}",
|
"upto": "최대 ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "사용하다 ",
|
"use": "사용하다 ",
|
||||||
"use_card_info_three": "디지털 카드를 온라인 또는 비접촉식 결제 수단으로 사용하십시오.",
|
"use_card_info_three": "디지털 카드를 온라인 또는 비접촉식 결제 수단으로 사용하십시오.",
|
||||||
"use_card_info_two": "디지털 화폐가 아닌 선불 계정에 보유하면 자금이 USD로 변환됩니다.",
|
"use_card_info_two": "디지털 화폐가 아닌 선불 계정에 보유하면 자금이 USD로 변환됩니다.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Bitcoin Light အပြင်အဆင်",
|
"bitcoin_light_theme": "Bitcoin Light အပြင်အဆင်",
|
||||||
"bitcoin_payments_require_1_confirmation": "Bitcoin ငွေပေးချေမှုများသည် မိနစ် 20 သို့မဟုတ် ထို့ထက်ပိုကြာနိုင်သည် 1 အတည်ပြုချက် လိုအပ်သည်။ မင်းရဲ့စိတ်ရှည်မှုအတွက် ကျေးဇူးတင်ပါတယ်။ ငွေပေးချေမှုကို အတည်ပြုပြီးသောအခါ သင့်ထံ အီးမေးလ်ပို့ပါမည်။",
|
"bitcoin_payments_require_1_confirmation": "Bitcoin ငွေပေးချေမှုများသည် မိနစ် 20 သို့မဟုတ် ထို့ထက်ပိုကြာနိုင်သည် 1 အတည်ပြုချက် လိုအပ်သည်။ မင်းရဲ့စိတ်ရှည်မှုအတွက် ကျေးဇူးတင်ပါတယ်။ ငွေပေးချေမှုကို အတည်ပြုပြီးသောအခါ သင့်ထံ အီးမေးလ်ပို့ပါမည်။",
|
||||||
"Blocks_remaining": "${status} ဘလောက်များ ကျန်နေပါသည်။",
|
"Blocks_remaining": "${status} ဘလောက်များ ကျန်နေပါသည်။",
|
||||||
|
"bluetooth": "ဘလူးတုသ်",
|
||||||
"bright_theme": "တောက်ပ",
|
"bright_theme": "တောက်ပ",
|
||||||
"bump_fee": "ဝင်ငွေ",
|
"bump_fee": "ဝင်ငွေ",
|
||||||
"buy": "ဝယ်ပါ။",
|
"buy": "ဝယ်ပါ။",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "ဂုဏ်ယူပါသည်။",
|
"congratulations": "ဂုဏ်ယူပါသည်။",
|
||||||
"connect_an_existing_yat": "ရှိပြီးသား Yat ကို ချိတ်ဆက်ပါ။",
|
"connect_an_existing_yat": "ရှိပြီးသား Yat ကို ချိတ်ဆက်ပါ။",
|
||||||
"connect_yats": "Yats ကိုချိတ်ဆက်ပါ။",
|
"connect_yats": "Yats ကိုချိတ်ဆက်ပါ။",
|
||||||
|
"connect_your_hardware_wallet": "သင်၏ hardware ပိုက်ဆံအိတ်ကို Bluetooth သို့မဟုတ် USB ကို သုံး. ချိတ်ဆက်ပါ",
|
||||||
|
"connect_your_hardware_wallet_ios": "သင်၏ hardware ပိုက်ဆံအိတ်ကို Bluetooth ကို အသုံးပြု. ချိတ်ဆက်ပါ",
|
||||||
"connection_sync": "ချိတ်ဆက်မှုနှင့် ထပ်တူပြုခြင်း။",
|
"connection_sync": "ချိတ်ဆက်မှုနှင့် ထပ်တူပြုခြင်း။",
|
||||||
"connectWalletPrompt": "အရောင်းအဝယ်ပြုလုပ်ရန် သင့်ပိုက်ဆံအိတ်ကို WalletConnect နှင့် ချိတ်ဆက်ပါ။",
|
"connectWalletPrompt": "အရောင်းအဝယ်ပြုလုပ်ရန် သင့်ပိုက်ဆံအိတ်ကို WalletConnect နှင့် ချိတ်ဆက်ပါ။",
|
||||||
"contact": "ဆက်သွယ်ရန်",
|
"contact": "ဆက်သွယ်ရန်",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "သည်",
|
"is_percentage": "သည်",
|
||||||
"last_30_days": "လွန်ခဲ့သော ရက် 30",
|
"last_30_days": "လွန်ခဲ့သော ရက် 30",
|
||||||
"learn_more": "ပိုမိုသိရှိရန်",
|
"learn_more": "ပိုမိုသိရှိရန်",
|
||||||
|
"ledger_connection_error": "သငျသညျ Ledger နှင့်ချိတ်ဆက်ရန်မအောင်မြင်ပါ။ ကျေးဇူးပြုပြီးထပ်ကြိုးစားပါ",
|
||||||
|
"ledger_error_device_locked": "အဆိုပါလမ်းပြသော့ခတ်သည်",
|
||||||
|
"ledger_error_tx_rejected_by_user": "ငွေပေးငွေယူ device ကိုအပေါ်ငြင်းပယ်ခဲ့သည်",
|
||||||
|
"ledger_error_wrong_app": "ကျေးဇူးပြု. သင့်လက်ျာအက်ပ်ကိုသင်၏ Ledger တွင်ဖွင့်ရန်သေချာစေပါ",
|
||||||
|
"ledger_please_enable_bluetooth": "သင်၏ Ledger ကိုရှာဖွေရန် Bluetooth ကိုဖွင့်ပါ",
|
||||||
"light_theme": "အလင်း",
|
"light_theme": "အလင်း",
|
||||||
|
"load_more": "ပိုပြီး load",
|
||||||
"loading_your_wallet": "သင့်ပိုက်ဆံအိတ်ကို ဖွင့်နေသည်။",
|
"loading_your_wallet": "သင့်ပိုက်ဆံအိတ်ကို ဖွင့်နေသည်။",
|
||||||
"login": "လော့ဂ်အင်",
|
"login": "လော့ဂ်အင်",
|
||||||
"logout": "ထွက်လိုက်ပါ။",
|
"logout": "ထွက်လိုက်ပါ။",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "Privacy settings တွေကို",
|
"privacy_settings": "Privacy settings တွေကို",
|
||||||
"private_key": "သီးသန့်သော့",
|
"private_key": "သီးသန့်သော့",
|
||||||
"proceed_after_one_minute": "မျက်နှာပြင်သည် ၁ မိနစ်အကြာတွင် ဆက်လက်မလုပ်ဆောင်ပါက သင့်အီးမေးလ်ကို စစ်ဆေးပါ။",
|
"proceed_after_one_minute": "မျက်နှာပြင်သည် ၁ မိနစ်အကြာတွင် ဆက်လက်မလုပ်ဆောင်ပါက သင့်အီးမေးလ်ကို စစ်ဆေးပါ။",
|
||||||
|
"proceed_on_device": "သင့်စက်ပေါ်တွင်ဆက်လက်ဆောင်ရွက်ပါ",
|
||||||
|
"proceed_on_device_description": "သင်၏ hardware ပိုက်ဆံအိတ်ပေါ်ရှိညွှန်ကြားချက်များကိုလိုက်နာပါ",
|
||||||
"profile": "ကိုယ်ရေးအကျဉ်း",
|
"profile": "ကိုယ်ရေးအကျဉ်း",
|
||||||
"provider_error": "${provider} အမှား",
|
"provider_error": "${provider} အမှား",
|
||||||
"public_key": "အများသူငှာသော့",
|
"public_key": "အများသူငှာသော့",
|
||||||
|
@ -490,6 +501,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "24 စကားလုံးပေါင်းစပ်ကုဒ်မှ သင့်ပိုက်ဆံအိတ်ကို ပြန်ယူပါ။",
|
"restore_bitcoin_description_from_seed": "24 စကားလုံးပေါင်းစပ်ကုဒ်မှ သင့်ပိုက်ဆံအိတ်ကို ပြန်ယူပါ။",
|
||||||
"restore_bitcoin_title_from_keys": "WIF မှ ပြန်လည်ရယူပါ။",
|
"restore_bitcoin_title_from_keys": "WIF မှ ပြန်လည်ရယူပါ။",
|
||||||
"restore_description_from_backup": "သင့်အရန်ဖိုင်မှ Cake Wallet အက်ပ်တစ်ခုလုံးကို သင်ပြန်လည်ရယူနိုင်သည်။",
|
"restore_description_from_backup": "သင့်အရန်ဖိုင်မှ Cake Wallet အက်ပ်တစ်ခုလုံးကို သင်ပြန်လည်ရယူနိုင်သည်။",
|
||||||
|
"restore_description_from_hardware_wallet": "Ledger ဟာ့ဒ်ဝဲပိုက်ဆံအိတ်မှ Restore",
|
||||||
"restore_description_from_keys": "သင့်ကိုယ်ပိုင်သော့များမှ သိမ်းဆည်းထားသော ထုတ်ပေးထားသော သော့ချက်များမှ သင့်ပိုက်ဆံအိတ်ကို ပြန်လည်ရယူပါ။",
|
"restore_description_from_keys": "သင့်ကိုယ်ပိုင်သော့များမှ သိမ်းဆည်းထားသော ထုတ်ပေးထားသော သော့ချက်များမှ သင့်ပိုက်ဆံအိတ်ကို ပြန်လည်ရယူပါ။",
|
||||||
"restore_description_from_seed": "25 စကားလုံး သို့မဟုတ် 13 စကားလုံးပေါင်းစပ်ကုဒ်မှ သင့်ပိုက်ဆံအိတ်ကို ပြန်လည်ရယူပါ။",
|
"restore_description_from_seed": "25 စကားလုံး သို့မဟုတ် 13 စကားလုံးပေါင်းစပ်ကုဒ်မှ သင့်ပိုက်ဆံအိတ်ကို ပြန်လည်ရယူပါ။",
|
||||||
"restore_description_from_seed_keys": "သင့်ပိုက်ဆံအိတ်ကို လုံခြုံသောနေရာတွင် သိမ်းဆည်းထားသော မျိုးစေ့/သော့များမှ ပြန်လည်ရယူပါ။",
|
"restore_description_from_seed_keys": "သင့်ပိုက်ဆံအိတ်ကို လုံခြုံသောနေရာတွင် သိမ်းဆည်းထားသော မျိုးစေ့/သော့များမှ ပြန်လည်ရယူပါ။",
|
||||||
|
@ -502,6 +514,7 @@
|
||||||
"restore_seed_keys_restore": "မျိုးစေ့/သော့များ ပြန်လည်ရယူပါ။",
|
"restore_seed_keys_restore": "မျိုးစေ့/သော့များ ပြန်လည်ရယူပါ။",
|
||||||
"restore_spend_key_private": "သော့သုံးရန် (သီးသန့်)",
|
"restore_spend_key_private": "သော့သုံးရန် (သီးသန့်)",
|
||||||
"restore_title_from_backup": "အရန်သိမ်းခြင်းမှ ပြန်လည်ရယူပါ။",
|
"restore_title_from_backup": "အရန်သိမ်းခြင်းမှ ပြန်လည်ရယူပါ။",
|
||||||
|
"restore_title_from_hardware_wallet": "ဟာ့ဒ်ဝဲပိုက်ဆံအိတ်မှ restore",
|
||||||
"restore_title_from_keys": "သော့များမှ ပြန်လည်ရယူပါ။",
|
"restore_title_from_keys": "သော့များမှ ပြန်လည်ရယူပါ။",
|
||||||
"restore_title_from_seed": "မျိုးစေ့မှပြန်လည်ရယူပါ။",
|
"restore_title_from_seed": "မျိုးစေ့မှပြန်လည်ရယူပါ။",
|
||||||
"restore_title_from_seed_keys": "မျိုးစေ့/သော့များမှ ပြန်လည်ရယူပါ။",
|
"restore_title_from_seed_keys": "မျိုးစေ့/သော့များမှ ပြန်လည်ရယူပါ။",
|
||||||
|
@ -752,6 +765,7 @@
|
||||||
"unsupported_asset": "ဤပိုင်ဆိုင်မှုအတွက် ဤလုပ်ဆောင်ချက်ကို ကျွန်ုပ်တို့ မပံ့ပိုးပါ။ ကျေးဇူးပြု၍ ပံ့ပိုးပေးထားသော ပိုင်ဆိုင်မှုအမျိုးအစား၏ ပိုက်ဆံအိတ်ကို ဖန်တီးပါ သို့မဟုတ် ပြောင်းပါ။",
|
"unsupported_asset": "ဤပိုင်ဆိုင်မှုအတွက် ဤလုပ်ဆောင်ချက်ကို ကျွန်ုပ်တို့ မပံ့ပိုးပါ။ ကျေးဇူးပြု၍ ပံ့ပိုးပေးထားသော ပိုင်ဆိုင်မှုအမျိုးအစား၏ ပိုက်ဆံအိတ်ကို ဖန်တီးပါ သို့မဟုတ် ပြောင်းပါ။",
|
||||||
"uptime": "အထက်က",
|
"uptime": "အထက်က",
|
||||||
"upto": "${value} အထိ",
|
"upto": "${value} အထိ",
|
||||||
|
"usb": "ယူအက်စ်ဘီ",
|
||||||
"use": "သို့ပြောင်းပါ။",
|
"use": "သို့ပြောင်းပါ။",
|
||||||
"use_card_info_three": "ဒစ်ဂျစ်တယ်ကတ်ကို အွန်လိုင်း သို့မဟုတ် ထိတွေ့မှုမဲ့ ငွေပေးချေမှုနည်းလမ်းများဖြင့် အသုံးပြုပါ။",
|
"use_card_info_three": "ဒစ်ဂျစ်တယ်ကတ်ကို အွန်လိုင်း သို့မဟုတ် ထိတွေ့မှုမဲ့ ငွေပေးချေမှုနည်းလမ်းများဖြင့် အသုံးပြုပါ။",
|
||||||
"use_card_info_two": "ဒစ်ဂျစ်တယ်ငွေကြေးများဖြင့်မဟုတ်ဘဲ ကြိုတင်ငွေပေးချေသည့်အကောင့်တွင် သိမ်းထားသည့်အခါ ရန်ပုံငွေများကို USD သို့ ပြောင်းလဲပါသည်။",
|
"use_card_info_two": "ဒစ်ဂျစ်တယ်ငွေကြေးများဖြင့်မဟုတ်ဘဲ ကြိုတင်ငွေပေးချေသည့်အကောင့်တွင် သိမ်းထားသည့်အခါ ရန်ပုံငွေများကို USD သို့ ပြောင်းလဲပါသည်။",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Bitcoin Light-thema",
|
"bitcoin_light_theme": "Bitcoin Light-thema",
|
||||||
"bitcoin_payments_require_1_confirmation": "Bitcoin-betalingen vereisen 1 bevestiging, wat 20 minuten of langer kan duren. Dank voor uw geduld! U ontvangt een e-mail wanneer de betaling is bevestigd.",
|
"bitcoin_payments_require_1_confirmation": "Bitcoin-betalingen vereisen 1 bevestiging, wat 20 minuten of langer kan duren. Dank voor uw geduld! U ontvangt een e-mail wanneer de betaling is bevestigd.",
|
||||||
"Blocks_remaining": "${status} Resterende blokken",
|
"Blocks_remaining": "${status} Resterende blokken",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Helder",
|
"bright_theme": "Helder",
|
||||||
"bump_fee": "Bult fee",
|
"bump_fee": "Bult fee",
|
||||||
"buy": "Kopen",
|
"buy": "Kopen",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "gefeliciteerd!",
|
"congratulations": "gefeliciteerd!",
|
||||||
"connect_an_existing_yat": "Verbind een bestaande Yat",
|
"connect_an_existing_yat": "Verbind een bestaande Yat",
|
||||||
"connect_yats": "Verbind Yats",
|
"connect_yats": "Verbind Yats",
|
||||||
|
"connect_your_hardware_wallet": "Sluit uw hardware -portemonnee aan met Bluetooth of USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Sluit uw hardware -portemonnee aan met Bluetooth",
|
||||||
"connection_sync": "Verbinding en synchronisatie",
|
"connection_sync": "Verbinding en synchronisatie",
|
||||||
"connectWalletPrompt": "Verbind uw portemonnee met WalletConnect om transacties uit te voeren",
|
"connectWalletPrompt": "Verbind uw portemonnee met WalletConnect om transacties uit te voeren",
|
||||||
"contact": "Contact",
|
"contact": "Contact",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "is",
|
"is_percentage": "is",
|
||||||
"last_30_days": "Laatste 30 dagen",
|
"last_30_days": "Laatste 30 dagen",
|
||||||
"learn_more": "Kom meer te weten",
|
"learn_more": "Kom meer te weten",
|
||||||
|
"ledger_connection_error": "Kan geen verbinding maken met u grootboek. Probeer het opnieuw.",
|
||||||
|
"ledger_error_device_locked": "Het grootboek is vergrendeld",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Transactie afgewezen op apparaat",
|
||||||
|
"ledger_error_wrong_app": "Zorg ervoor dat u de juiste app op uw grootboek opent",
|
||||||
|
"ledger_please_enable_bluetooth": "Schakel Bluetooth in staat om uw grootboek te detecteren",
|
||||||
"light_theme": "Licht",
|
"light_theme": "Licht",
|
||||||
|
"load_more": "Meer laden",
|
||||||
"loading_your_wallet": "Uw portemonnee laden",
|
"loading_your_wallet": "Uw portemonnee laden",
|
||||||
"login": "Log in",
|
"login": "Log in",
|
||||||
"logout": "Uitloggen",
|
"logout": "Uitloggen",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "Privacy-instellingen",
|
"privacy_settings": "Privacy-instellingen",
|
||||||
"private_key": "Prive sleutel",
|
"private_key": "Prive sleutel",
|
||||||
"proceed_after_one_minute": "Als het scherm na 1 minuut niet verder gaat, controleer dan uw e-mail.",
|
"proceed_after_one_minute": "Als het scherm na 1 minuut niet verder gaat, controleer dan uw e-mail.",
|
||||||
|
"proceed_on_device": "Ga verder met uw apparaat",
|
||||||
|
"proceed_on_device_description": "Volg de instructies die zijn aangevraagd op uw hardware -portemonnee",
|
||||||
"profile": "Profiel",
|
"profile": "Profiel",
|
||||||
"provider_error": "${provider} fout",
|
"provider_error": "${provider} fout",
|
||||||
"public_key": "Publieke sleutel",
|
"public_key": "Publieke sleutel",
|
||||||
|
@ -490,6 +501,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Herstel uw portemonnee met een combinatiecode van 24 woorden",
|
"restore_bitcoin_description_from_seed": "Herstel uw portemonnee met een combinatiecode van 24 woorden",
|
||||||
"restore_bitcoin_title_from_keys": "Herstel van WIF",
|
"restore_bitcoin_title_from_keys": "Herstel van WIF",
|
||||||
"restore_description_from_backup": "Je kunt de hele Cake Wallet-app herstellen van uw back-upbestand",
|
"restore_description_from_backup": "Je kunt de hele Cake Wallet-app herstellen van uw back-upbestand",
|
||||||
|
"restore_description_from_hardware_wallet": "Herstel van een grootboekhardware -portemonnee",
|
||||||
"restore_description_from_keys": "Herstel uw portemonnee van gegenereerd toetsaanslagen opgeslagen van uw privésleutels",
|
"restore_description_from_keys": "Herstel uw portemonnee van gegenereerd toetsaanslagen opgeslagen van uw privésleutels",
|
||||||
"restore_description_from_seed": "Herstel uw portemonnee van het 25 woord of 13 woord combinatiecode",
|
"restore_description_from_seed": "Herstel uw portemonnee van het 25 woord of 13 woord combinatiecode",
|
||||||
"restore_description_from_seed_keys": "Ontvang uw portemonnee terug uit seed / keys die u hebt opgeslagen op een veilige plaats",
|
"restore_description_from_seed_keys": "Ontvang uw portemonnee terug uit seed / keys die u hebt opgeslagen op een veilige plaats",
|
||||||
|
@ -502,6 +514,7 @@
|
||||||
"restore_seed_keys_restore": "Zaad / sleutels herstellen",
|
"restore_seed_keys_restore": "Zaad / sleutels herstellen",
|
||||||
"restore_spend_key_private": "Sleutel uitgeven (privaat)",
|
"restore_spend_key_private": "Sleutel uitgeven (privaat)",
|
||||||
"restore_title_from_backup": "Herstellen vanuit een back-upbestand",
|
"restore_title_from_backup": "Herstellen vanuit een back-upbestand",
|
||||||
|
"restore_title_from_hardware_wallet": "Herstel van de hardware -portemonnee",
|
||||||
"restore_title_from_keys": "Herstel van sleutels",
|
"restore_title_from_keys": "Herstel van sleutels",
|
||||||
"restore_title_from_seed": "Herstel van zaad",
|
"restore_title_from_seed": "Herstel van zaad",
|
||||||
"restore_title_from_seed_keys": "Herstel van zaad / sleutels",
|
"restore_title_from_seed_keys": "Herstel van zaad / sleutels",
|
||||||
|
@ -752,6 +765,7 @@
|
||||||
"unsupported_asset": "We ondersteunen deze actie niet voor dit item. Maak of schakel over naar een portemonnee van een ondersteund activatype.",
|
"unsupported_asset": "We ondersteunen deze actie niet voor dit item. Maak of schakel over naar een portemonnee van een ondersteund activatype.",
|
||||||
"uptime": "Uptime",
|
"uptime": "Uptime",
|
||||||
"upto": "tot ${value}",
|
"upto": "tot ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Gebruik ",
|
"use": "Gebruik ",
|
||||||
"use_card_info_three": "Gebruik de digitale kaart online of met contactloze betaalmethoden.",
|
"use_card_info_three": "Gebruik de digitale kaart online of met contactloze betaalmethoden.",
|
||||||
"use_card_info_two": "Tegoeden worden omgezet naar USD wanneer ze op de prepaid-rekening staan, niet in digitale valuta.",
|
"use_card_info_two": "Tegoeden worden omgezet naar USD wanneer ze op de prepaid-rekening staan, niet in digitale valuta.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Lekki motyw Bitcoin",
|
"bitcoin_light_theme": "Lekki motyw Bitcoin",
|
||||||
"bitcoin_payments_require_1_confirmation": "Płatności Bitcoin wymagają 1 potwierdzenia, co może zająć 20 minut lub dłużej. Dziękuję za cierpliwość! Otrzymasz wiadomość e-mail, gdy płatność zostanie potwierdzona.",
|
"bitcoin_payments_require_1_confirmation": "Płatności Bitcoin wymagają 1 potwierdzenia, co może zająć 20 minut lub dłużej. Dziękuję za cierpliwość! Otrzymasz wiadomość e-mail, gdy płatność zostanie potwierdzona.",
|
||||||
"Blocks_remaining": "Pozostało ${status} bloków",
|
"Blocks_remaining": "Pozostało ${status} bloków",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Biały",
|
"bright_theme": "Biały",
|
||||||
"bump_fee": "Opłata za nierówność",
|
"bump_fee": "Opłata za nierówność",
|
||||||
"buy": "Kup",
|
"buy": "Kup",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "gratulacje!",
|
"congratulations": "gratulacje!",
|
||||||
"connect_an_existing_yat": "Podłącz istniejący Yat",
|
"connect_an_existing_yat": "Podłącz istniejący Yat",
|
||||||
"connect_yats": "Połącz Yats",
|
"connect_yats": "Połącz Yats",
|
||||||
|
"connect_your_hardware_wallet": "Podłącz portfel sprzętowy za pomocą Bluetooth lub USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Podłącz portfel sprzętowy za pomocą Bluetooth",
|
||||||
"connection_sync": "Połączenie i synchronizacja",
|
"connection_sync": "Połączenie i synchronizacja",
|
||||||
"connectWalletPrompt": "Połącz swój portfel z WalletConnect, aby dokonywać transakcji",
|
"connectWalletPrompt": "Połącz swój portfel z WalletConnect, aby dokonywać transakcji",
|
||||||
"contact": "Kontakt",
|
"contact": "Kontakt",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "jest",
|
"is_percentage": "jest",
|
||||||
"last_30_days": "Ostatnie 30 dni",
|
"last_30_days": "Ostatnie 30 dni",
|
||||||
"learn_more": "Dowiedz się więcej",
|
"learn_more": "Dowiedz się więcej",
|
||||||
|
"ledger_connection_error": "Nie udało się połączyć z twoją księgą. Proszę spróbuj ponownie.",
|
||||||
|
"ledger_error_device_locked": "Księga jest zamknięta",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Transakcja odrzucona na urządzeniu",
|
||||||
|
"ledger_error_wrong_app": "Upewnij się, że opisz odpowiednią aplikację na swojej księdze",
|
||||||
|
"ledger_please_enable_bluetooth": "Włącz Bluetooth wykrywanie księgi",
|
||||||
"light_theme": "Jasny",
|
"light_theme": "Jasny",
|
||||||
|
"load_more": "Załaduj więcej",
|
||||||
"loading_your_wallet": "Ładowanie portfela",
|
"loading_your_wallet": "Ładowanie portfela",
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"logout": "Wyloguj",
|
"logout": "Wyloguj",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "Ustawienia prywatności",
|
"privacy_settings": "Ustawienia prywatności",
|
||||||
"private_key": "Klucz prywatny",
|
"private_key": "Klucz prywatny",
|
||||||
"proceed_after_one_minute": "Jeśli ekran nie przejdzie dalej po 1 minucie, sprawdź pocztę.",
|
"proceed_after_one_minute": "Jeśli ekran nie przejdzie dalej po 1 minucie, sprawdź pocztę.",
|
||||||
|
"proceed_on_device": "Kontynuuj swoje urządzenie",
|
||||||
|
"proceed_on_device_description": "Postępuj zgodnie z instrukcjami wyświetlonymi w portfelu sprzętowym",
|
||||||
"profile": "Profil",
|
"profile": "Profil",
|
||||||
"provider_error": "${provider} pomyłka",
|
"provider_error": "${provider} pomyłka",
|
||||||
"public_key": "Klucz publiczny",
|
"public_key": "Klucz publiczny",
|
||||||
|
@ -490,6 +501,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Przywróć swój portfel z frazy seed złożonej z 24 słów",
|
"restore_bitcoin_description_from_seed": "Przywróć swój portfel z frazy seed złożonej z 24 słów",
|
||||||
"restore_bitcoin_title_from_keys": "Przywróć z klucza prywatnego",
|
"restore_bitcoin_title_from_keys": "Przywróć z klucza prywatnego",
|
||||||
"restore_description_from_backup": "Możesz przywrócić całą aplikację Cake Wallet z pliku kopii zapasowej",
|
"restore_description_from_backup": "Możesz przywrócić całą aplikację Cake Wallet z pliku kopii zapasowej",
|
||||||
|
"restore_description_from_hardware_wallet": "Przywróć z portfela sprzętowego księgi",
|
||||||
"restore_description_from_keys": "Przywróć swój portfel z kluczy prywatnych",
|
"restore_description_from_keys": "Przywróć swój portfel z kluczy prywatnych",
|
||||||
"restore_description_from_seed": "Przywróć swój portfel z 25 lub 13-słownej frazy seed",
|
"restore_description_from_seed": "Przywróć swój portfel z 25 lub 13-słownej frazy seed",
|
||||||
"restore_description_from_seed_keys": "Odzyskaj swój portfel z seedów / kluczy, które zapisałeś w bezpiecznym miejscu",
|
"restore_description_from_seed_keys": "Odzyskaj swój portfel z seedów / kluczy, które zapisałeś w bezpiecznym miejscu",
|
||||||
|
@ -502,6 +514,7 @@
|
||||||
"restore_seed_keys_restore": "Przywracanie seedów / kluczy",
|
"restore_seed_keys_restore": "Przywracanie seedów / kluczy",
|
||||||
"restore_spend_key_private": "Podaj prywatny klucz wglądu (view key)",
|
"restore_spend_key_private": "Podaj prywatny klucz wglądu (view key)",
|
||||||
"restore_title_from_backup": "Przywróć z pliku kopii zapasowej",
|
"restore_title_from_backup": "Przywróć z pliku kopii zapasowej",
|
||||||
|
"restore_title_from_hardware_wallet": "Przywróć z portfela sprzętowego",
|
||||||
"restore_title_from_keys": "Przywróć z kluczy",
|
"restore_title_from_keys": "Przywróć z kluczy",
|
||||||
"restore_title_from_seed": "Przywróć z seedów",
|
"restore_title_from_seed": "Przywróć z seedów",
|
||||||
"restore_title_from_seed_keys": "Przywróć z seedów / kluczy",
|
"restore_title_from_seed_keys": "Przywróć z seedów / kluczy",
|
||||||
|
@ -752,6 +765,7 @@
|
||||||
"unsupported_asset": "Nie obsługujemy tego działania w przypadku tego zasobu. Utwórz lub przełącz się na portfel obsługiwanego typu aktywów.",
|
"unsupported_asset": "Nie obsługujemy tego działania w przypadku tego zasobu. Utwórz lub przełącz się na portfel obsługiwanego typu aktywów.",
|
||||||
"uptime": "Czas aktu",
|
"uptime": "Czas aktu",
|
||||||
"upto": "do ${value}",
|
"upto": "do ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Użyj ",
|
"use": "Użyj ",
|
||||||
"use_card_info_three": "Użyj cyfrowej karty online lub za pomocą zbliżeniowych metod płatności.",
|
"use_card_info_three": "Użyj cyfrowej karty online lub za pomocą zbliżeniowych metod płatności.",
|
||||||
"use_card_info_two": "Środki są przeliczane na USD, gdy są przechowywane na koncie przedpłaconym, a nie w walutach cyfrowych.",
|
"use_card_info_two": "Środki są przeliczane na USD, gdy są przechowywane na koncie przedpłaconym, a nie w walutach cyfrowych.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Tema claro de bitcoin",
|
"bitcoin_light_theme": "Tema claro de bitcoin",
|
||||||
"bitcoin_payments_require_1_confirmation": "Os pagamentos em Bitcoin exigem 1 confirmação, o que pode levar 20 minutos ou mais. Obrigado pela sua paciência! Você receberá um e-mail quando o pagamento for confirmado.",
|
"bitcoin_payments_require_1_confirmation": "Os pagamentos em Bitcoin exigem 1 confirmação, o que pode levar 20 minutos ou mais. Obrigado pela sua paciência! Você receberá um e-mail quando o pagamento for confirmado.",
|
||||||
"Blocks_remaining": "${status} blocos restantes",
|
"Blocks_remaining": "${status} blocos restantes",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Brilhante",
|
"bright_theme": "Brilhante",
|
||||||
"bump_fee": "Taxa de aumento",
|
"bump_fee": "Taxa de aumento",
|
||||||
"buy": "Comprar",
|
"buy": "Comprar",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Parabéns!",
|
"congratulations": "Parabéns!",
|
||||||
"connect_an_existing_yat": "Conecte um Yat existente",
|
"connect_an_existing_yat": "Conecte um Yat existente",
|
||||||
"connect_yats": "Connect Yats",
|
"connect_yats": "Connect Yats",
|
||||||
|
"connect_your_hardware_wallet": "Conecte sua carteira de hardware usando Bluetooth ou USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Conecte sua carteira de hardware usando o Bluetooth",
|
||||||
"connection_sync": "Conexão e sincronização",
|
"connection_sync": "Conexão e sincronização",
|
||||||
"connectWalletPrompt": "Conecte sua carteira ao WalletConnect para fazer transações",
|
"connectWalletPrompt": "Conecte sua carteira ao WalletConnect para fazer transações",
|
||||||
"contact": "Contato",
|
"contact": "Contato",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "é",
|
"is_percentage": "é",
|
||||||
"last_30_days": "Últimos 30 dias",
|
"last_30_days": "Últimos 30 dias",
|
||||||
"learn_more": "Saber mais",
|
"learn_more": "Saber mais",
|
||||||
|
"ledger_connection_error": "Falha ao se conectar ao seu livro. Por favor, tente novamente.",
|
||||||
|
"ledger_error_device_locked": "O livro está trancado",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Transação rejeitada no dispositivo",
|
||||||
|
"ledger_error_wrong_app": "Por favor, certifique -se de optar pelo aplicativo certo no seu livro",
|
||||||
|
"ledger_please_enable_bluetooth": "Ative o Bluetooth para detectar seu livro",
|
||||||
"light_theme": "Luz",
|
"light_theme": "Luz",
|
||||||
|
"load_more": "Carregue mais",
|
||||||
"loading_your_wallet": "Abrindo sua carteira",
|
"loading_your_wallet": "Abrindo sua carteira",
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"logout": "Logout",
|
"logout": "Logout",
|
||||||
|
@ -444,6 +453,8 @@
|
||||||
"privacy_settings": "Configurações de privacidade",
|
"privacy_settings": "Configurações de privacidade",
|
||||||
"private_key": "Chave privada",
|
"private_key": "Chave privada",
|
||||||
"proceed_after_one_minute": "Se a tela não prosseguir após 1 minuto, verifique seu e-mail.",
|
"proceed_after_one_minute": "Se a tela não prosseguir após 1 minuto, verifique seu e-mail.",
|
||||||
|
"proceed_on_device": "Prossiga no seu dispositivo",
|
||||||
|
"proceed_on_device_description": "Siga as instruções solicitadas em sua carteira de hardware",
|
||||||
"profile": "Perfil",
|
"profile": "Perfil",
|
||||||
"provider_error": "${provider} erro",
|
"provider_error": "${provider} erro",
|
||||||
"public_key": "Chave pública",
|
"public_key": "Chave pública",
|
||||||
|
@ -492,6 +503,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Restaure sua carteira a partir de um código de combinação de 24 palavras",
|
"restore_bitcoin_description_from_seed": "Restaure sua carteira a partir de um código de combinação de 24 palavras",
|
||||||
"restore_bitcoin_title_from_keys": "Restaurar de WIF",
|
"restore_bitcoin_title_from_keys": "Restaurar de WIF",
|
||||||
"restore_description_from_backup": "Você pode restaurar todo o aplicativo Cake Wallet de seu arquivo de backup",
|
"restore_description_from_backup": "Você pode restaurar todo o aplicativo Cake Wallet de seu arquivo de backup",
|
||||||
|
"restore_description_from_hardware_wallet": "Restaurar de uma carteira de hardware do Ledger",
|
||||||
"restore_description_from_keys": "Restaure sua carteira a partir de suas chaves privadas",
|
"restore_description_from_keys": "Restaure sua carteira a partir de suas chaves privadas",
|
||||||
"restore_description_from_seed": "Restaure sua carteira a partir de semente com 25 palavras ou 13 palavras",
|
"restore_description_from_seed": "Restaure sua carteira a partir de semente com 25 palavras ou 13 palavras",
|
||||||
"restore_description_from_seed_keys": "Restaure a sua carteira a partir de sementes/chaves que você salvou em um local seguro",
|
"restore_description_from_seed_keys": "Restaure a sua carteira a partir de sementes/chaves que você salvou em um local seguro",
|
||||||
|
@ -504,6 +516,7 @@
|
||||||
"restore_seed_keys_restore": "Restauração com sementes/chaves",
|
"restore_seed_keys_restore": "Restauração com sementes/chaves",
|
||||||
"restore_spend_key_private": "Chave de gastos (privada)",
|
"restore_spend_key_private": "Chave de gastos (privada)",
|
||||||
"restore_title_from_backup": "Restaurar a partir de um arquivo de backup",
|
"restore_title_from_backup": "Restaurar a partir de um arquivo de backup",
|
||||||
|
"restore_title_from_hardware_wallet": "Restaurar da carteira de hardware",
|
||||||
"restore_title_from_keys": "Restaurar a partir de chaves",
|
"restore_title_from_keys": "Restaurar a partir de chaves",
|
||||||
"restore_title_from_seed": "Restaurar a partir de semente",
|
"restore_title_from_seed": "Restaurar a partir de semente",
|
||||||
"restore_title_from_seed_keys": "Restaurar a partir de sementes/chaves",
|
"restore_title_from_seed_keys": "Restaurar a partir de sementes/chaves",
|
||||||
|
@ -754,6 +767,7 @@
|
||||||
"unsupported_asset": "Não oferecemos suporte a esta ação para este recurso. Crie ou mude para uma carteira de um tipo de ativo compatível.",
|
"unsupported_asset": "Não oferecemos suporte a esta ação para este recurso. Crie ou mude para uma carteira de um tipo de ativo compatível.",
|
||||||
"uptime": "Tempo de atividade",
|
"uptime": "Tempo de atividade",
|
||||||
"upto": "até ${value}",
|
"upto": "até ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Use PIN de ",
|
"use": "Use PIN de ",
|
||||||
"use_card_info_three": "Use o cartão digital online ou com métodos de pagamento sem contato.",
|
"use_card_info_three": "Use o cartão digital online ou com métodos de pagamento sem contato.",
|
||||||
"use_card_info_two": "Os fundos são convertidos para USD quando mantidos na conta pré-paga, não em moedas digitais.",
|
"use_card_info_two": "Os fundos são convertidos para USD quando mantidos na conta pré-paga, não em moedas digitais.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Светлая биткойн-тема",
|
"bitcoin_light_theme": "Светлая биткойн-тема",
|
||||||
"bitcoin_payments_require_1_confirmation": "Биткойн-платежи требуют 1 подтверждения, что может занять 20 минут или дольше. Спасибо тебе за твое терпение! Вы получите электронное письмо, когда платеж будет подтвержден.",
|
"bitcoin_payments_require_1_confirmation": "Биткойн-платежи требуют 1 подтверждения, что может занять 20 минут или дольше. Спасибо тебе за твое терпение! Вы получите электронное письмо, когда платеж будет подтвержден.",
|
||||||
"Blocks_remaining": "${status} Осталось блоков",
|
"Blocks_remaining": "${status} Осталось блоков",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Яркая",
|
"bright_theme": "Яркая",
|
||||||
"bump_fee": "Повысить комиссию",
|
"bump_fee": "Повысить комиссию",
|
||||||
"buy": "Купить",
|
"buy": "Купить",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Поздравляем!",
|
"congratulations": "Поздравляем!",
|
||||||
"connect_an_existing_yat": "Подключить существующий Yat",
|
"connect_an_existing_yat": "Подключить существующий Yat",
|
||||||
"connect_yats": "Подключить Yats",
|
"connect_yats": "Подключить Yats",
|
||||||
|
"connect_your_hardware_wallet": "Подключите свой аппаратный кошелек с помощью Bluetooth или USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Подключите свой аппаратный кошелек с помощью Bluetooth",
|
||||||
"connection_sync": "Подключение и синхронизация",
|
"connection_sync": "Подключение и синхронизация",
|
||||||
"connectWalletPrompt": "Подключите свой кошелек к WalletConnect для совершения транзакций.",
|
"connectWalletPrompt": "Подключите свой кошелек к WalletConnect для совершения транзакций.",
|
||||||
"contact": "Контакт",
|
"contact": "Контакт",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "есть",
|
"is_percentage": "есть",
|
||||||
"last_30_days": "Последние 30 дней",
|
"last_30_days": "Последние 30 дней",
|
||||||
"learn_more": "Узнать больше",
|
"learn_more": "Узнать больше",
|
||||||
|
"ledger_connection_error": "Не удалось подключиться к вам, книги. Пожалуйста, попробуйте еще раз.",
|
||||||
|
"ledger_error_device_locked": "Ledger заблокирован",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Транзакция отклоняется на устройстве",
|
||||||
|
"ledger_error_wrong_app": "Пожалуйста, убедитесь, что вы предлагаете правильное приложение в своей бухгалтерской книге",
|
||||||
|
"ledger_please_enable_bluetooth": "Пожалуйста, включите Bluetooth обнаружить вашу бухгалтерскую книгу",
|
||||||
"light_theme": "Светлая",
|
"light_theme": "Светлая",
|
||||||
|
"load_more": "Загрузи больше",
|
||||||
"loading_your_wallet": "Загрузка кошелька",
|
"loading_your_wallet": "Загрузка кошелька",
|
||||||
"login": "Логин",
|
"login": "Логин",
|
||||||
"logout": "Выйти",
|
"logout": "Выйти",
|
||||||
|
@ -443,6 +452,8 @@
|
||||||
"privacy_settings": "Настройки конфиденциальности",
|
"privacy_settings": "Настройки конфиденциальности",
|
||||||
"private_key": "Приватный ключ",
|
"private_key": "Приватный ключ",
|
||||||
"proceed_after_one_minute": "Если через 1 минуту экран не отображается, проверьте свою электронную почту.",
|
"proceed_after_one_minute": "Если через 1 минуту экран не отображается, проверьте свою электронную почту.",
|
||||||
|
"proceed_on_device": "Пройдите на свое устройство",
|
||||||
|
"proceed_on_device_description": "Пожалуйста, следуйте инструкциям, представленным на вашем аппаратном кошельке",
|
||||||
"profile": "Профиль",
|
"profile": "Профиль",
|
||||||
"provider_error": "${provider} ошибка",
|
"provider_error": "${provider} ошибка",
|
||||||
"public_key": "Публичный ключ",
|
"public_key": "Публичный ключ",
|
||||||
|
@ -491,6 +502,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Вы можете восстановить кошелёк используя 24-ти значную мнемоническую фразу",
|
"restore_bitcoin_description_from_seed": "Вы можете восстановить кошелёк используя 24-ти значную мнемоническую фразу",
|
||||||
"restore_bitcoin_title_from_keys": "Восстановить с помощью WIF",
|
"restore_bitcoin_title_from_keys": "Восстановить с помощью WIF",
|
||||||
"restore_description_from_backup": "Вы можете восстановить Cake Wallet из вашего back-up файла",
|
"restore_description_from_backup": "Вы можете восстановить Cake Wallet из вашего back-up файла",
|
||||||
|
"restore_description_from_hardware_wallet": "Восстановите из оборудования",
|
||||||
"restore_description_from_keys": "Вы можете восстановить кошелёк с помощью приватных ключей",
|
"restore_description_from_keys": "Вы можете восстановить кошелёк с помощью приватных ключей",
|
||||||
"restore_description_from_seed": "Вы можете восстановить кошелёк используя 25-ти значную мнемоническую фразу",
|
"restore_description_from_seed": "Вы можете восстановить кошелёк используя 25-ти значную мнемоническую фразу",
|
||||||
"restore_description_from_seed_keys": "Вы можете восстановить кошелёк из мнемонической фразы/ключей, которые вы сохранили ранее",
|
"restore_description_from_seed_keys": "Вы можете восстановить кошелёк из мнемонической фразы/ключей, которые вы сохранили ранее",
|
||||||
|
@ -503,6 +515,7 @@
|
||||||
"restore_seed_keys_restore": "Восстановить из мнемонической фразы/ключей",
|
"restore_seed_keys_restore": "Восстановить из мнемонической фразы/ключей",
|
||||||
"restore_spend_key_private": "Приватный ключ траты",
|
"restore_spend_key_private": "Приватный ключ траты",
|
||||||
"restore_title_from_backup": "Восстановить из back-up файла",
|
"restore_title_from_backup": "Восстановить из back-up файла",
|
||||||
|
"restore_title_from_hardware_wallet": "Восстановить из аппаратного кошелька",
|
||||||
"restore_title_from_keys": "Восстановить с помощью ключей",
|
"restore_title_from_keys": "Восстановить с помощью ключей",
|
||||||
"restore_title_from_seed": "Восстановить из мнемонической фразы",
|
"restore_title_from_seed": "Восстановить из мнемонической фразы",
|
||||||
"restore_title_from_seed_keys": "Восстановить из мнемонической фразы/ключей",
|
"restore_title_from_seed_keys": "Восстановить из мнемонической фразы/ключей",
|
||||||
|
@ -753,6 +766,7 @@
|
||||||
"unsupported_asset": "Мы не поддерживаем это действие для этого объекта. Пожалуйста, создайте или переключитесь на кошелек поддерживаемого типа активов.",
|
"unsupported_asset": "Мы не поддерживаем это действие для этого объекта. Пожалуйста, создайте или переключитесь на кошелек поддерживаемого типа активов.",
|
||||||
"uptime": "Время безотказной работы",
|
"uptime": "Время безотказной работы",
|
||||||
"upto": "до ${value}",
|
"upto": "до ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Использовать ",
|
"use": "Использовать ",
|
||||||
"use_card_info_three": "Используйте цифровую карту онлайн или с помощью бесконтактных способов оплаты.",
|
"use_card_info_three": "Используйте цифровую карту онлайн или с помощью бесконтактных способов оплаты.",
|
||||||
"use_card_info_two": "Средства конвертируются в доллары США, когда они хранятся на предоплаченном счете, а не в цифровых валютах.",
|
"use_card_info_two": "Средства конвертируются в доллары США, когда они хранятся на предоплаченном счете, а не в цифровых валютах.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "ธีมแสง Bitcoin",
|
"bitcoin_light_theme": "ธีมแสง Bitcoin",
|
||||||
"bitcoin_payments_require_1_confirmation": "การชำระเงินด้วย Bitcoin ต้องการการยืนยัน 1 ครั้ง ซึ่งอาจใช้เวลา 20 นาทีหรือนานกว่านั้น ขอบคุณสำหรับความอดทนของคุณ! คุณจะได้รับอีเมลเมื่อการชำระเงินได้รับการยืนยัน",
|
"bitcoin_payments_require_1_confirmation": "การชำระเงินด้วย Bitcoin ต้องการการยืนยัน 1 ครั้ง ซึ่งอาจใช้เวลา 20 นาทีหรือนานกว่านั้น ขอบคุณสำหรับความอดทนของคุณ! คุณจะได้รับอีเมลเมื่อการชำระเงินได้รับการยืนยัน",
|
||||||
"Blocks_remaining": "${status} บล็อกที่เหลืออยู่",
|
"Blocks_remaining": "${status} บล็อกที่เหลืออยู่",
|
||||||
|
"bluetooth": "บลูทู ธ",
|
||||||
"bright_theme": "สดใส",
|
"bright_theme": "สดใส",
|
||||||
"bump_fee": "ค่าธรรมเนียมชน",
|
"bump_fee": "ค่าธรรมเนียมชน",
|
||||||
"buy": "ซื้อ",
|
"buy": "ซื้อ",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "ขอแสดงความยินดี!",
|
"congratulations": "ขอแสดงความยินดี!",
|
||||||
"connect_an_existing_yat": "เชื่อมต่อ Yat ที่มีอยู่",
|
"connect_an_existing_yat": "เชื่อมต่อ Yat ที่มีอยู่",
|
||||||
"connect_yats": "เชื่อมต่อ Yats",
|
"connect_yats": "เชื่อมต่อ Yats",
|
||||||
|
"connect_your_hardware_wallet": "เชื่อมต่อกระเป๋าเงินฮาร์ดแวร์ของคุณโดยใช้บลูทู ธ หรือ USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "เชื่อมต่อกระเป๋าเงินฮาร์ดแวร์ของคุณโดยใช้บลูทู ธ",
|
||||||
"connection_sync": "การเชื่อมต่อและการซิงค์",
|
"connection_sync": "การเชื่อมต่อและการซิงค์",
|
||||||
"connectWalletPrompt": "เชื่อมต่อกระเป๋าเงินของคุณด้วย WalletConnect เพื่อทำธุรกรรม",
|
"connectWalletPrompt": "เชื่อมต่อกระเป๋าเงินของคุณด้วย WalletConnect เพื่อทำธุรกรรม",
|
||||||
"contact": "ผู้ติดต่อ",
|
"contact": "ผู้ติดต่อ",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "เป็น",
|
"is_percentage": "เป็น",
|
||||||
"last_30_days": "30 วันล่าสุด",
|
"last_30_days": "30 วันล่าสุด",
|
||||||
"learn_more": "ศึกษาเพิ่มเติม",
|
"learn_more": "ศึกษาเพิ่มเติม",
|
||||||
|
"ledger_connection_error": "ไม่สามารถเชื่อมต่อกับบัญชีแยกประเภทของคุณได้ กรุณาลองอีกครั้ง.",
|
||||||
|
"ledger_error_device_locked": "บัญชีแยกประเภทถูกล็อค",
|
||||||
|
"ledger_error_tx_rejected_by_user": "ธุรกรรมถูกปฏิเสธบนอุปกรณ์",
|
||||||
|
"ledger_error_wrong_app": "โปรดตรวจสอบให้แน่ใจว่าคุณเปิดแอพที่เหมาะสมในบัญชีแยกประเภทของคุณ",
|
||||||
|
"ledger_please_enable_bluetooth": "โปรดเปิดใช้งานบลูทู ธ ในการตรวจจับบัญชีแยกประเภทของคุณ",
|
||||||
"light_theme": "สว่าง",
|
"light_theme": "สว่าง",
|
||||||
|
"load_more": "โหลดมากขึ้น",
|
||||||
"loading_your_wallet": "กำลังโหลดกระเป๋าของคุณ",
|
"loading_your_wallet": "กำลังโหลดกระเป๋าของคุณ",
|
||||||
"login": "เข้าสู่ระบบ",
|
"login": "เข้าสู่ระบบ",
|
||||||
"logout": "ออกจากระบบ",
|
"logout": "ออกจากระบบ",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "การตั้งค่าความเป็นส่วนตัว",
|
"privacy_settings": "การตั้งค่าความเป็นส่วนตัว",
|
||||||
"private_key": "คีย์ส่วนตัว",
|
"private_key": "คีย์ส่วนตัว",
|
||||||
"proceed_after_one_minute": "หากหน้าจอไม่ดำเนินการหลังจาก 1 นาทีโปรดตรวจสอบอีเมลของคุณ",
|
"proceed_after_one_minute": "หากหน้าจอไม่ดำเนินการหลังจาก 1 นาทีโปรดตรวจสอบอีเมลของคุณ",
|
||||||
|
"proceed_on_device": "ดำเนินการบนอุปกรณ์ของคุณ",
|
||||||
|
"proceed_on_device_description": "โปรดทำตามคำแนะนำที่ได้รับแจ้งไว้ในกระเป๋าเงินฮาร์ดแวร์ของคุณ",
|
||||||
"profile": "ประวัติโดยย่อ",
|
"profile": "ประวัติโดยย่อ",
|
||||||
"provider_error": "ข้อผิดพลาด ${provider}",
|
"provider_error": "ข้อผิดพลาด ${provider}",
|
||||||
"public_key": "คีย์สาธารณะ",
|
"public_key": "คีย์สาธารณะ",
|
||||||
|
@ -490,6 +501,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "กู้กระเป๋าของคุณจากรหัสผสมของ 24 คำ",
|
"restore_bitcoin_description_from_seed": "กู้กระเป๋าของคุณจากรหัสผสมของ 24 คำ",
|
||||||
"restore_bitcoin_title_from_keys": "กู้จาก WIF",
|
"restore_bitcoin_title_from_keys": "กู้จาก WIF",
|
||||||
"restore_description_from_backup": "คุณสามารถกู้แอพ Cake Wallet ทั้งหมดจากไฟล์สำรองข้อมูลของคุณ",
|
"restore_description_from_backup": "คุณสามารถกู้แอพ Cake Wallet ทั้งหมดจากไฟล์สำรองข้อมูลของคุณ",
|
||||||
|
"restore_description_from_hardware_wallet": "กู้คืนจากกระเป๋าเงินฮาร์ดแวร์บัญชีแยกประเภท",
|
||||||
"restore_description_from_keys": "กู้กระเป๋าของคุณจากการกดปุ่มที่สร้างขึ้นจาก private keys ของคุณที่บันทึกไว้",
|
"restore_description_from_keys": "กู้กระเป๋าของคุณจากการกดปุ่มที่สร้างขึ้นจาก private keys ของคุณที่บันทึกไว้",
|
||||||
"restore_description_from_seed": "กู้กระเป๋าของคุณจากรหัสผสมของ 25 คำหรือ 13 คำ",
|
"restore_description_from_seed": "กู้กระเป๋าของคุณจากรหัสผสมของ 25 คำหรือ 13 คำ",
|
||||||
"restore_description_from_seed_keys": "เรียกกระเป๋าของคุณกลับมาจาก seed/keys ที่คุณได้บันทึกไว้ในที่ปลอดภัย",
|
"restore_description_from_seed_keys": "เรียกกระเป๋าของคุณกลับมาจาก seed/keys ที่คุณได้บันทึกไว้ในที่ปลอดภัย",
|
||||||
|
@ -502,6 +514,7 @@
|
||||||
"restore_seed_keys_restore": "กู้จาก Seed/Keys",
|
"restore_seed_keys_restore": "กู้จาก Seed/Keys",
|
||||||
"restore_spend_key_private": "คีย์สำหรับใช้ (ส่วนตัว)",
|
"restore_spend_key_private": "คีย์สำหรับใช้ (ส่วนตัว)",
|
||||||
"restore_title_from_backup": "กู้จากการสำรองข้อมูล",
|
"restore_title_from_backup": "กู้จากการสำรองข้อมูล",
|
||||||
|
"restore_title_from_hardware_wallet": "กู้คืนจากกระเป๋าเงินฮาร์ดแวร์",
|
||||||
"restore_title_from_keys": "กู้จาก keys",
|
"restore_title_from_keys": "กู้จาก keys",
|
||||||
"restore_title_from_seed": "กู้จาก seed",
|
"restore_title_from_seed": "กู้จาก seed",
|
||||||
"restore_title_from_seed_keys": "กู้จาก seed/keys",
|
"restore_title_from_seed_keys": "กู้จาก seed/keys",
|
||||||
|
@ -752,6 +765,7 @@
|
||||||
"unsupported_asset": "เราไม่สนับสนุนการกระทำนี้สำหรับเนื้อหานี้ โปรดสร้างหรือเปลี่ยนเป็นกระเป๋าเงินประเภทสินทรัพย์ที่รองรับ",
|
"unsupported_asset": "เราไม่สนับสนุนการกระทำนี้สำหรับเนื้อหานี้ โปรดสร้างหรือเปลี่ยนเป็นกระเป๋าเงินประเภทสินทรัพย์ที่รองรับ",
|
||||||
"uptime": "เวลาทำงาน",
|
"uptime": "เวลาทำงาน",
|
||||||
"upto": "สูงสุด ${value}",
|
"upto": "สูงสุด ${value}",
|
||||||
|
"usb": "ยูเอสบี",
|
||||||
"use": "สลับไปที่ ",
|
"use": "สลับไปที่ ",
|
||||||
"use_card_info_three": "ใช้บัตรดิจิตอลออนไลน์หรือผ่านวิธีการชำระเงินแบบไม่ต้องใช้บัตรกระดาษ",
|
"use_card_info_three": "ใช้บัตรดิจิตอลออนไลน์หรือผ่านวิธีการชำระเงินแบบไม่ต้องใช้บัตรกระดาษ",
|
||||||
"use_card_info_two": "เงินจะถูกแปลงค่าเป็นดอลลาร์สหรัฐเมื่อถือไว้ในบัญชีสำรองเงิน ไม่ใช่สกุลเงินดิจิตอล",
|
"use_card_info_two": "เงินจะถูกแปลงค่าเป็นดอลลาร์สหรัฐเมื่อถือไว้ในบัญชีสำรองเงิน ไม่ใช่สกุลเงินดิจิตอล",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Tema ng ilaw ng bitcoin",
|
"bitcoin_light_theme": "Tema ng ilaw ng bitcoin",
|
||||||
"bitcoin_payments_require_1_confirmation": "Ang mga pagbabayad sa Bitcoin ay nangangailangan ng 1 kumpirmasyon, na maaaring tumagal ng 20 minuto o mas mahaba. Salamat sa iyong pasensya! Mag -email ka kapag nakumpirma ang pagbabayad.",
|
"bitcoin_payments_require_1_confirmation": "Ang mga pagbabayad sa Bitcoin ay nangangailangan ng 1 kumpirmasyon, na maaaring tumagal ng 20 minuto o mas mahaba. Salamat sa iyong pasensya! Mag -email ka kapag nakumpirma ang pagbabayad.",
|
||||||
"Blocks_remaining": "Ang natitirang ${status} ay natitira",
|
"Blocks_remaining": "Ang natitirang ${status} ay natitira",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Maliwanag",
|
"bright_theme": "Maliwanag",
|
||||||
"bump_fee": "Bayad sa paga",
|
"bump_fee": "Bayad sa paga",
|
||||||
"buy": "Bilhin",
|
"buy": "Bilhin",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Binabati kita!",
|
"congratulations": "Binabati kita!",
|
||||||
"connect_an_existing_yat": "Ikonekta ang isang umiiral na yat",
|
"connect_an_existing_yat": "Ikonekta ang isang umiiral na yat",
|
||||||
"connect_yats": "Ikonekta ang mga yats",
|
"connect_yats": "Ikonekta ang mga yats",
|
||||||
|
"connect_your_hardware_wallet": "Ikonekta ang iyong wallet ng hardware gamit ang Bluetooth o USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Ikonekta ang iyong wallet ng hardware gamit ang Bluetooth",
|
||||||
"connection_sync": "Koneksyon at pag -sync",
|
"connection_sync": "Koneksyon at pag -sync",
|
||||||
"connectWalletPrompt": "Ikonekta ang iyong wallet sa WalletConnect upang gumawa ng mga transaksyon",
|
"connectWalletPrompt": "Ikonekta ang iyong wallet sa WalletConnect upang gumawa ng mga transaksyon",
|
||||||
"contact": "Makipag -ugnay",
|
"contact": "Makipag -ugnay",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "ay",
|
"is_percentage": "ay",
|
||||||
"last_30_days": "Huling 30 araw",
|
"last_30_days": "Huling 30 araw",
|
||||||
"learn_more": "Matuto nang higit pa",
|
"learn_more": "Matuto nang higit pa",
|
||||||
|
"ledger_connection_error": "Nabigong kumonekta sa iyo ledger. Pakisubukang muli.",
|
||||||
|
"ledger_error_device_locked": "Naka -lock ang ledger",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Ang transaksyon ay tinanggihan sa aparato",
|
||||||
|
"ledger_error_wrong_app": "Mangyaring tiyaking pinipili mo ang tamang app sa iyong ledger",
|
||||||
|
"ledger_please_enable_bluetooth": "Mangyaring paganahin ang Bluetooth upang makita ang iyong ledger",
|
||||||
"light_theme": "Ilaw",
|
"light_theme": "Ilaw",
|
||||||
|
"load_more": "Mag -load pa",
|
||||||
"loading_your_wallet": "Naglo -load ng iyong pitaka",
|
"loading_your_wallet": "Naglo -load ng iyong pitaka",
|
||||||
"login": "Mag log in",
|
"login": "Mag log in",
|
||||||
"logout": "Mag -logout",
|
"logout": "Mag -logout",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "Settings para sa pagsasa-pribado",
|
"privacy_settings": "Settings para sa pagsasa-pribado",
|
||||||
"private_key": "Pribadong susi",
|
"private_key": "Pribadong susi",
|
||||||
"proceed_after_one_minute": "Kung ang screen ay hindi magpatuloy pagkatapos ng 1 minuto, suriin ang iyong email.",
|
"proceed_after_one_minute": "Kung ang screen ay hindi magpatuloy pagkatapos ng 1 minuto, suriin ang iyong email.",
|
||||||
|
"proceed_on_device": "Magpatuloy sa iyong aparato",
|
||||||
|
"proceed_on_device_description": "Mangyaring sundin ang mga tagubilin na sinenyasan sa iyong wallet ng hardware",
|
||||||
"profile": "Profile",
|
"profile": "Profile",
|
||||||
"provider_error": "${provider} error",
|
"provider_error": "${provider} error",
|
||||||
"public_key": "Pampublikong susi",
|
"public_key": "Pampublikong susi",
|
||||||
|
@ -490,6 +501,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Ibalik ang iyong pitaka mula sa 24 na code ng kombinasyon ng salita",
|
"restore_bitcoin_description_from_seed": "Ibalik ang iyong pitaka mula sa 24 na code ng kombinasyon ng salita",
|
||||||
"restore_bitcoin_title_from_keys": "Ibalik mula sa WIF",
|
"restore_bitcoin_title_from_keys": "Ibalik mula sa WIF",
|
||||||
"restore_description_from_backup": "Maaari mong ibalik ang buong cake wallet app mula sa iyong back-up file",
|
"restore_description_from_backup": "Maaari mong ibalik ang buong cake wallet app mula sa iyong back-up file",
|
||||||
|
"restore_description_from_hardware_wallet": "Ibalik mula sa isang ledger hardware wallet",
|
||||||
"restore_description_from_keys": "Ibalik ang iyong pitaka mula sa nabuong mga keystroke na na -save mula sa iyong mga pribadong susi",
|
"restore_description_from_keys": "Ibalik ang iyong pitaka mula sa nabuong mga keystroke na na -save mula sa iyong mga pribadong susi",
|
||||||
"restore_description_from_seed": "Ibalik ang iyong pitaka mula sa alinman sa 25 salita o 13 na code ng kombinasyon ng salita",
|
"restore_description_from_seed": "Ibalik ang iyong pitaka mula sa alinman sa 25 salita o 13 na code ng kombinasyon ng salita",
|
||||||
"restore_description_from_seed_keys": "Ibalik ang iyong pitaka mula sa mga binhi/susi na na -save mo upang ma -secure ang lugar",
|
"restore_description_from_seed_keys": "Ibalik ang iyong pitaka mula sa mga binhi/susi na na -save mo upang ma -secure ang lugar",
|
||||||
|
@ -502,6 +514,7 @@
|
||||||
"restore_seed_keys_restore": "Ibinalik ang mga binhi/susi",
|
"restore_seed_keys_restore": "Ibinalik ang mga binhi/susi",
|
||||||
"restore_spend_key_private": "Gumastos ng susi (pribado)",
|
"restore_spend_key_private": "Gumastos ng susi (pribado)",
|
||||||
"restore_title_from_backup": "Ibalik mula sa backup",
|
"restore_title_from_backup": "Ibalik mula sa backup",
|
||||||
|
"restore_title_from_hardware_wallet": "Ibalik mula sa pitaka ng hardware",
|
||||||
"restore_title_from_keys": "Ibalik mula sa mga susi",
|
"restore_title_from_keys": "Ibalik mula sa mga susi",
|
||||||
"restore_title_from_seed": "Ibalik mula sa binhi",
|
"restore_title_from_seed": "Ibalik mula sa binhi",
|
||||||
"restore_title_from_seed_keys": "Ibalik mula sa mga binhi/susi",
|
"restore_title_from_seed_keys": "Ibalik mula sa mga binhi/susi",
|
||||||
|
@ -752,6 +765,7 @@
|
||||||
"unsupported_asset": "Hindi namin sinusuportahan ang pagkilos na ito para sa asset na ito. Mangyaring lumikha o lumipat sa isang pitaka ng isang suportadong uri ng pag -aari.",
|
"unsupported_asset": "Hindi namin sinusuportahan ang pagkilos na ito para sa asset na ito. Mangyaring lumikha o lumipat sa isang pitaka ng isang suportadong uri ng pag -aari.",
|
||||||
"uptime": "Uptime",
|
"uptime": "Uptime",
|
||||||
"upto": "Hanggang sa ${value}",
|
"upto": "Hanggang sa ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Lumipat sa",
|
"use": "Lumipat sa",
|
||||||
"use_card_info_three": "Gamitin ang digital card online o sa mga pamamaraan ng pagbabayad na walang contact.",
|
"use_card_info_three": "Gamitin ang digital card online o sa mga pamamaraan ng pagbabayad na walang contact.",
|
||||||
"use_card_info_two": "Ang mga pondo ay na -convert sa USD kapag gaganapin sila sa prepaid account, hindi sa mga digital na pera.",
|
"use_card_info_two": "Ang mga pondo ay na -convert sa USD kapag gaganapin sila sa prepaid account, hindi sa mga digital na pera.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Bitcoin Hafif Tema",
|
"bitcoin_light_theme": "Bitcoin Hafif Tema",
|
||||||
"bitcoin_payments_require_1_confirmation": "Bitcoin ödemeleri, 20 dakika veya daha uzun sürebilen 1 onay gerektirir. Sabrınız için teşekkürler! Ödeme onaylandığında e-posta ile bilgilendirileceksiniz.",
|
"bitcoin_payments_require_1_confirmation": "Bitcoin ödemeleri, 20 dakika veya daha uzun sürebilen 1 onay gerektirir. Sabrınız için teşekkürler! Ödeme onaylandığında e-posta ile bilgilendirileceksiniz.",
|
||||||
"Blocks_remaining": "${status} Blok Kaldı",
|
"Blocks_remaining": "${status} Blok Kaldı",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Parlak",
|
"bright_theme": "Parlak",
|
||||||
"bump_fee": "Çarpma ücreti",
|
"bump_fee": "Çarpma ücreti",
|
||||||
"buy": "Alış",
|
"buy": "Alış",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Tebrikler!",
|
"congratulations": "Tebrikler!",
|
||||||
"connect_an_existing_yat": "Mevcut bir Yat'ı bağla",
|
"connect_an_existing_yat": "Mevcut bir Yat'ı bağla",
|
||||||
"connect_yats": "Yat'lara bağlan",
|
"connect_yats": "Yat'lara bağlan",
|
||||||
|
"connect_your_hardware_wallet": "Bluetooth veya USB kullanarak donanım cüzdanınızı bağlayın",
|
||||||
|
"connect_your_hardware_wallet_ios": "Bluetooth kullanarak donanım cüzdanınızı bağlayın",
|
||||||
"connection_sync": "Bağlantı ve senkronizasyon",
|
"connection_sync": "Bağlantı ve senkronizasyon",
|
||||||
"connectWalletPrompt": "İşlem yapmak için cüzdanınızı WalletConnect'e bağlayın",
|
"connectWalletPrompt": "İşlem yapmak için cüzdanınızı WalletConnect'e bağlayın",
|
||||||
"contact": "Rehber",
|
"contact": "Rehber",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "is",
|
"is_percentage": "is",
|
||||||
"last_30_days": "Son 30 gün",
|
"last_30_days": "Son 30 gün",
|
||||||
"learn_more": "Daha fazla öğren",
|
"learn_more": "Daha fazla öğren",
|
||||||
|
"ledger_connection_error": "Ledger'e bağlanamadı. Lütfen tekrar deneyin.",
|
||||||
|
"ledger_error_device_locked": "Defter kilitli",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Cihazda reddedilen işlem",
|
||||||
|
"ledger_error_wrong_app": "Lütfen defterinizde doğru uygulamayı açtığınızdan emin olun",
|
||||||
|
"ledger_please_enable_bluetooth": "Defterinizi algılamak için lütfen Bluetooth'u etkinleştirin",
|
||||||
"light_theme": "Aydınlık",
|
"light_theme": "Aydınlık",
|
||||||
|
"load_more": "Daha fazla yükle",
|
||||||
"loading_your_wallet": "Cüzdanın yükleniyor",
|
"loading_your_wallet": "Cüzdanın yükleniyor",
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"logout": "Çıkış yap",
|
"logout": "Çıkış yap",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "Gizlilik ayarları",
|
"privacy_settings": "Gizlilik ayarları",
|
||||||
"private_key": "Özel anahtar",
|
"private_key": "Özel anahtar",
|
||||||
"proceed_after_one_minute": "Ekran 1 dakika sonra ilerlemezse, e-postanızı kontrol edin.",
|
"proceed_after_one_minute": "Ekran 1 dakika sonra ilerlemezse, e-postanızı kontrol edin.",
|
||||||
|
"proceed_on_device": "Cihazınıza devam edin",
|
||||||
|
"proceed_on_device_description": "Lütfen donanım cüzdanınızda istenen talimatları izleyin",
|
||||||
"profile": "Profil",
|
"profile": "Profil",
|
||||||
"provider_error": "${provider} hatası",
|
"provider_error": "${provider} hatası",
|
||||||
"public_key": "Genel Anahtar",
|
"public_key": "Genel Anahtar",
|
||||||
|
@ -490,6 +501,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Cüzdanınızı 24 kelimelik kombinasyon kodundan geri yükle",
|
"restore_bitcoin_description_from_seed": "Cüzdanınızı 24 kelimelik kombinasyon kodundan geri yükle",
|
||||||
"restore_bitcoin_title_from_keys": "WIF'den geri yükle",
|
"restore_bitcoin_title_from_keys": "WIF'den geri yükle",
|
||||||
"restore_description_from_backup": "Yedek dosyandan tüm Cake Wallet uygulamasını geri döndürebilirsin",
|
"restore_description_from_backup": "Yedek dosyandan tüm Cake Wallet uygulamasını geri döndürebilirsin",
|
||||||
|
"restore_description_from_hardware_wallet": "Bir defter donanım cüzdanından geri yükleyin",
|
||||||
"restore_description_from_keys": "Cüzdanınızı özel anahtarlarınızdan kaydedilen oluşturulmuş tuş vuruşlarından geri yükleyin",
|
"restore_description_from_keys": "Cüzdanınızı özel anahtarlarınızdan kaydedilen oluşturulmuş tuş vuruşlarından geri yükleyin",
|
||||||
"restore_description_from_seed": "Cüzdanınızı 25 veya 13 kelimelik kombinasyon kodundan geri döndürün",
|
"restore_description_from_seed": "Cüzdanınızı 25 veya 13 kelimelik kombinasyon kodundan geri döndürün",
|
||||||
"restore_description_from_seed_keys": "Güvenli bir yere kaydettiğin tohumdan/anahtarlardan cüzdanını geri döndür",
|
"restore_description_from_seed_keys": "Güvenli bir yere kaydettiğin tohumdan/anahtarlardan cüzdanını geri döndür",
|
||||||
|
@ -502,6 +514,7 @@
|
||||||
"restore_seed_keys_restore": "Tohumu/Anahtarları Geri Döndür",
|
"restore_seed_keys_restore": "Tohumu/Anahtarları Geri Döndür",
|
||||||
"restore_spend_key_private": "Harcama anahtarı (Özel)",
|
"restore_spend_key_private": "Harcama anahtarı (Özel)",
|
||||||
"restore_title_from_backup": "Yedekten geri döndür",
|
"restore_title_from_backup": "Yedekten geri döndür",
|
||||||
|
"restore_title_from_hardware_wallet": "Donanım cüzdanından geri yükleme",
|
||||||
"restore_title_from_keys": "Anahtarlardan geri döndür",
|
"restore_title_from_keys": "Anahtarlardan geri döndür",
|
||||||
"restore_title_from_seed": "Tohumdan geri döndür",
|
"restore_title_from_seed": "Tohumdan geri döndür",
|
||||||
"restore_title_from_seed_keys": "Tohumdan/anahtarlardan geri döndür",
|
"restore_title_from_seed_keys": "Tohumdan/anahtarlardan geri döndür",
|
||||||
|
@ -752,6 +765,7 @@
|
||||||
"unsupported_asset": "Bu öğe için bu eylemi desteklemiyoruz. Lütfen desteklenen bir varlık türünde bir cüzdan oluşturun veya cüzdana geçiş yapın.",
|
"unsupported_asset": "Bu öğe için bu eylemi desteklemiyoruz. Lütfen desteklenen bir varlık türünde bir cüzdan oluşturun veya cüzdana geçiş yapın.",
|
||||||
"uptime": "Çalışma süresi",
|
"uptime": "Çalışma süresi",
|
||||||
"upto": "Şu miktara kadar: ${value}",
|
"upto": "Şu miktara kadar: ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Şuna geç: ",
|
"use": "Şuna geç: ",
|
||||||
"use_card_info_three": "Dijital kartı çevrimiçi olarak veya temassız ödeme yöntemleriyle kullanın.",
|
"use_card_info_three": "Dijital kartı çevrimiçi olarak veya temassız ödeme yöntemleriyle kullanın.",
|
||||||
"use_card_info_two": "Paralar, dijital para birimlerinde değil, ön ödemeli hesapta tutulduğunda USD'ye dönüştürülür.",
|
"use_card_info_two": "Paralar, dijital para birimlerinde değil, ön ödemeli hesapta tutulduğunda USD'ye dönüştürülür.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Світла тема Bitcoin",
|
"bitcoin_light_theme": "Світла тема Bitcoin",
|
||||||
"bitcoin_payments_require_1_confirmation": "Платежі Bitcoin потребують 1 підтвердження, яке може зайняти 20 хвилин або більше. Дякую за Ваше терпіння! Ви отримаєте електронний лист, коли платіж буде підтверджено.",
|
"bitcoin_payments_require_1_confirmation": "Платежі Bitcoin потребують 1 підтвердження, яке може зайняти 20 хвилин або більше. Дякую за Ваше терпіння! Ви отримаєте електронний лист, коли платіж буде підтверджено.",
|
||||||
"Blocks_remaining": "${status} Залишилось блоків",
|
"Blocks_remaining": "${status} Залишилось блоків",
|
||||||
|
"bluetooth": "Блюдот",
|
||||||
"bright_theme": "Яскрава",
|
"bright_theme": "Яскрава",
|
||||||
"bump_fee": "Підвищити комісію",
|
"bump_fee": "Підвищити комісію",
|
||||||
"buy": "Купити",
|
"buy": "Купити",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Вітаємо!",
|
"congratulations": "Вітаємо!",
|
||||||
"connect_an_existing_yat": "Підключити існуючий Yat",
|
"connect_an_existing_yat": "Підключити існуючий Yat",
|
||||||
"connect_yats": "Підключіть Yats",
|
"connect_yats": "Підключіть Yats",
|
||||||
|
"connect_your_hardware_wallet": "Підключіть апаратний гаманець за допомогою Bluetooth або USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "Підключіть апаратний гаманець за допомогою Bluetooth",
|
||||||
"connection_sync": "Підключення та синхронізація",
|
"connection_sync": "Підключення та синхронізація",
|
||||||
"connectWalletPrompt": "Підключіть свій гаманець до WalletConnect, щоб здійснювати транзакції",
|
"connectWalletPrompt": "Підключіть свій гаманець до WalletConnect, щоб здійснювати транзакції",
|
||||||
"contact": "Контакт",
|
"contact": "Контакт",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "є",
|
"is_percentage": "є",
|
||||||
"last_30_days": "Останні 30 днів",
|
"last_30_days": "Останні 30 днів",
|
||||||
"learn_more": "Дізнатися більше",
|
"learn_more": "Дізнатися більше",
|
||||||
|
"ledger_connection_error": "Не вдалося підключитися до вас. Будь ласка спробуйте ще раз.",
|
||||||
|
"ledger_error_device_locked": "Книга заблокована",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Транзакція відхилена на пристрої",
|
||||||
|
"ledger_error_wrong_app": "Будь ласка, переконайтеся, що ви відкриваєте потрібну програму на своїй книзі",
|
||||||
|
"ledger_please_enable_bluetooth": "Будь ласка, ввімкніть Bluetooth виявити свою книгу",
|
||||||
"light_theme": "Світла",
|
"light_theme": "Світла",
|
||||||
|
"load_more": "Завантажити ще",
|
||||||
"loading_your_wallet": "Завантаження гаманця",
|
"loading_your_wallet": "Завантаження гаманця",
|
||||||
"login": "Логін",
|
"login": "Логін",
|
||||||
"logout": "Вийти",
|
"logout": "Вийти",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "Налаштування конфіденційності",
|
"privacy_settings": "Налаштування конфіденційності",
|
||||||
"private_key": "Приватний ключ",
|
"private_key": "Приватний ключ",
|
||||||
"proceed_after_one_minute": "Якщо екран не продовжується через 1 хвилину, перевірте свою електронну пошту.",
|
"proceed_after_one_minute": "Якщо екран не продовжується через 1 хвилину, перевірте свою електронну пошту.",
|
||||||
|
"proceed_on_device": "Продовжуйте свій пристрій",
|
||||||
|
"proceed_on_device_description": "Будь ласка, дотримуйтесь інструкцій, підказаних на вашому апаратному гаманці",
|
||||||
"profile": "Профіль",
|
"profile": "Профіль",
|
||||||
"provider_error": "${provider} помилка",
|
"provider_error": "${provider} помилка",
|
||||||
"public_key": "Публічний ключ",
|
"public_key": "Публічний ключ",
|
||||||
|
@ -491,6 +502,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Ви можете відновити гаманець використовуючи 24-ти слівну мнемонічну фразу",
|
"restore_bitcoin_description_from_seed": "Ви можете відновити гаманець використовуючи 24-ти слівну мнемонічну фразу",
|
||||||
"restore_bitcoin_title_from_keys": "Відновити за допомогою WIF",
|
"restore_bitcoin_title_from_keys": "Відновити за допомогою WIF",
|
||||||
"restore_description_from_backup": "Ви можете відновити Cake Wallet з вашого резервного файлу",
|
"restore_description_from_backup": "Ви можете відновити Cake Wallet з вашого резервного файлу",
|
||||||
|
"restore_description_from_hardware_wallet": "Відновлення з апаратного гаманця",
|
||||||
"restore_description_from_keys": "Ви можете відновити гаманець за допомогою приватних ключів",
|
"restore_description_from_keys": "Ви можете відновити гаманець за допомогою приватних ключів",
|
||||||
"restore_description_from_seed": "Ви можете відновити гаманець використовуючи 25-ти слівну мнемонічну фразу",
|
"restore_description_from_seed": "Ви можете відновити гаманець використовуючи 25-ти слівну мнемонічну фразу",
|
||||||
"restore_description_from_seed_keys": "Ви можете відновити гаманець з мнемонічної фрази/ключів, які ви зберегли раніше",
|
"restore_description_from_seed_keys": "Ви можете відновити гаманець з мнемонічної фрази/ключів, які ви зберегли раніше",
|
||||||
|
@ -503,6 +515,7 @@
|
||||||
"restore_seed_keys_restore": "Відновити за допомогою мнемонічної фрази/ключів",
|
"restore_seed_keys_restore": "Відновити за допомогою мнемонічної фрази/ключів",
|
||||||
"restore_spend_key_private": "Приватний ключ витрати",
|
"restore_spend_key_private": "Приватний ключ витрати",
|
||||||
"restore_title_from_backup": "Відновити із резервного файлу",
|
"restore_title_from_backup": "Відновити із резервного файлу",
|
||||||
|
"restore_title_from_hardware_wallet": "Відновити з апаратного гаманця",
|
||||||
"restore_title_from_keys": "Відновити за допомогою ключів",
|
"restore_title_from_keys": "Відновити за допомогою ключів",
|
||||||
"restore_title_from_seed": "Відновити з мнемонічної фрази",
|
"restore_title_from_seed": "Відновити з мнемонічної фрази",
|
||||||
"restore_title_from_seed_keys": "Відновити з мнемонічної фрази/ключів",
|
"restore_title_from_seed_keys": "Відновити з мнемонічної фрази/ключів",
|
||||||
|
@ -753,6 +766,7 @@
|
||||||
"unsupported_asset": "Ми не підтримуємо цю дію для цього ресурсу. Створіть або перейдіть на гаманець підтримуваного типу активів.",
|
"unsupported_asset": "Ми не підтримуємо цю дію для цього ресурсу. Створіть або перейдіть на гаманець підтримуваного типу активів.",
|
||||||
"uptime": "Час роботи",
|
"uptime": "Час роботи",
|
||||||
"upto": "до ${value}",
|
"upto": "до ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Використати ",
|
"use": "Використати ",
|
||||||
"use_card_info_three": "Використовуйте цифрову картку онлайн або за допомогою безконтактних методів оплати.",
|
"use_card_info_three": "Використовуйте цифрову картку онлайн або за допомогою безконтактних методів оплати.",
|
||||||
"use_card_info_two": "Кошти конвертуються в долари США, якщо вони зберігаються на передплаченому рахунку, а не в цифрових валютах.",
|
"use_card_info_two": "Кошти конвертуються в долари США, якщо вони зберігаються на передплаченому рахунку, а не в цифрових валютах.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "بٹ کوائن لائٹ تھیم",
|
"bitcoin_light_theme": "بٹ کوائن لائٹ تھیم",
|
||||||
"bitcoin_payments_require_1_confirmation": "بٹ کوائن کی ادائیگی میں 1 تصدیق کی ضرورت ہوتی ہے ، جس میں 20 منٹ یا اس سے زیادہ وقت لگ سکتا ہے۔ آپ کے صبر کا شکریہ! ادائیگی کی تصدیق ہونے پر آپ کو ای میل کیا جائے گا۔",
|
"bitcoin_payments_require_1_confirmation": "بٹ کوائن کی ادائیگی میں 1 تصدیق کی ضرورت ہوتی ہے ، جس میں 20 منٹ یا اس سے زیادہ وقت لگ سکتا ہے۔ آپ کے صبر کا شکریہ! ادائیگی کی تصدیق ہونے پر آپ کو ای میل کیا جائے گا۔",
|
||||||
"Blocks_remaining": "${status} بلاکس باقی ہیں۔",
|
"Blocks_remaining": "${status} بلاکس باقی ہیں۔",
|
||||||
|
"bluetooth": "بلوٹوتھ",
|
||||||
"bright_theme": "روشن",
|
"bright_theme": "روشن",
|
||||||
"bump_fee": "بمپ فیس",
|
"bump_fee": "بمپ فیس",
|
||||||
"buy": "خریدنے",
|
"buy": "خریدنے",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "مبارک ہو!",
|
"congratulations": "مبارک ہو!",
|
||||||
"connect_an_existing_yat": "ایک موجودہ Yat کو جوڑیں۔",
|
"connect_an_existing_yat": "ایک موجودہ Yat کو جوڑیں۔",
|
||||||
"connect_yats": "Yats کو جوڑیں۔",
|
"connect_yats": "Yats کو جوڑیں۔",
|
||||||
|
"connect_your_hardware_wallet": "بلوٹوتھ یا USB کا استعمال کرتے ہوئے اپنے ہارڈ ویئر پرس کو مربوط کریں",
|
||||||
|
"connect_your_hardware_wallet_ios": "بلوٹوتھ کا استعمال کرتے ہوئے اپنے ہارڈ ویئر پرس کو جوڑیں",
|
||||||
"connection_sync": "کنکشن اور مطابقت پذیری",
|
"connection_sync": "کنکشن اور مطابقت پذیری",
|
||||||
"connectWalletPrompt": "۔ﮟﯾﮌﻮﺟ ﮫﺗﺎﺳ ﮯﮐ WalletConnect ﻮﮐ ﮮﻮﭩﺑ ﮯﻨﭘﺍ ﮯﯿﻟ ﮯﮐ ﮯﻧﺮﮐ ﻦﯾﺩ ﻦﯿﻟ",
|
"connectWalletPrompt": "۔ﮟﯾﮌﻮﺟ ﮫﺗﺎﺳ ﮯﮐ WalletConnect ﻮﮐ ﮮﻮﭩﺑ ﮯﻨﭘﺍ ﮯﯿﻟ ﮯﮐ ﮯﻧﺮﮐ ﻦﯾﺩ ﻦﯿﻟ",
|
||||||
"contact": "رابطہ کریں۔",
|
"contact": "رابطہ کریں۔",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "ہے",
|
"is_percentage": "ہے",
|
||||||
"last_30_days": "آخری 30 دن",
|
"last_30_days": "آخری 30 دن",
|
||||||
"learn_more": "اورجانیے",
|
"learn_more": "اورجانیے",
|
||||||
|
"ledger_connection_error": "آپ سے لیجر سے رابطہ قائم کرنے میں ناکام۔ دوبارہ کوشش کریں.",
|
||||||
|
"ledger_error_device_locked": "لیجر لاک ہے",
|
||||||
|
"ledger_error_tx_rejected_by_user": "آلہ پر لین دین کو مسترد کردیا گیا",
|
||||||
|
"ledger_error_wrong_app": "براہ کرم یقینی بنائیں کہ آپ اپنے لیجر پر صحیح ایپ کو کھولتے ہیں",
|
||||||
|
"ledger_please_enable_bluetooth": "براہ کرم بلوٹوتھ کو اپنے لیجر کا پتہ لگانے کے لئے اہل بنائیں",
|
||||||
"light_theme": "روشنی",
|
"light_theme": "روشنی",
|
||||||
|
"load_more": "مزید لوڈ کریں",
|
||||||
"loading_your_wallet": "آپ کا بٹوہ لوڈ ہو رہا ہے۔",
|
"loading_your_wallet": "آپ کا بٹوہ لوڈ ہو رہا ہے۔",
|
||||||
"login": "لاگ ان کریں",
|
"login": "لاگ ان کریں",
|
||||||
"logout": "لاگ آوٹ",
|
"logout": "لاگ آوٹ",
|
||||||
|
@ -444,6 +453,8 @@
|
||||||
"privacy_settings": "رازداری کی ترتیبات",
|
"privacy_settings": "رازداری کی ترتیبات",
|
||||||
"private_key": "نجی کلید",
|
"private_key": "نجی کلید",
|
||||||
"proceed_after_one_minute": "اگر اسکرین 1 منٹ کے بعد آگے نہیں بڑھتی ہے تو اپنا ای میل چیک کریں۔",
|
"proceed_after_one_minute": "اگر اسکرین 1 منٹ کے بعد آگے نہیں بڑھتی ہے تو اپنا ای میل چیک کریں۔",
|
||||||
|
"proceed_on_device": "اپنے آلے پر آگے بڑھیں",
|
||||||
|
"proceed_on_device_description": "براہ کرم اپنے ہارڈ ویئر پرس پر آنے والی ہدایات پر عمل کریں",
|
||||||
"profile": "پروفائل",
|
"profile": "پروفائل",
|
||||||
"provider_error": "${provider} خرابی۔",
|
"provider_error": "${provider} خرابی۔",
|
||||||
"public_key": "عوامی کلید",
|
"public_key": "عوامی کلید",
|
||||||
|
@ -492,6 +503,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "24 الفاظ کے مجموعہ کوڈ سے اپنے بٹوے کو بحال کریں۔",
|
"restore_bitcoin_description_from_seed": "24 الفاظ کے مجموعہ کوڈ سے اپنے بٹوے کو بحال کریں۔",
|
||||||
"restore_bitcoin_title_from_keys": "WIF سے بحال کریں۔",
|
"restore_bitcoin_title_from_keys": "WIF سے بحال کریں۔",
|
||||||
"restore_description_from_backup": "آپ اپنی بیک اپ فائل سے پوری کیک والیٹ ایپ کو بحال کر سکتے ہیں۔",
|
"restore_description_from_backup": "آپ اپنی بیک اپ فائل سے پوری کیک والیٹ ایپ کو بحال کر سکتے ہیں۔",
|
||||||
|
"restore_description_from_hardware_wallet": "لیجر ہارڈ ویئر پرس سے بحال کریں",
|
||||||
"restore_description_from_keys": "اپنے بٹوے کو اپنی نجی کلیدوں سے محفوظ کردہ کی اسٹروکس سے بحال کریں۔",
|
"restore_description_from_keys": "اپنے بٹوے کو اپنی نجی کلیدوں سے محفوظ کردہ کی اسٹروکس سے بحال کریں۔",
|
||||||
"restore_description_from_seed": "اپنے بٹوے کو 25 لفظ یا 13 الفاظ کے مجموعہ کوڈ سے بحال کریں۔",
|
"restore_description_from_seed": "اپنے بٹوے کو 25 لفظ یا 13 الفاظ کے مجموعہ کوڈ سے بحال کریں۔",
|
||||||
"restore_description_from_seed_keys": "اپنے بٹوے کو بیج / چابیاں سے واپس حاصل کریں جنہیں آپ نے محفوظ جگہ پر محفوظ کیا ہے۔",
|
"restore_description_from_seed_keys": "اپنے بٹوے کو بیج / چابیاں سے واپس حاصل کریں جنہیں آپ نے محفوظ جگہ پر محفوظ کیا ہے۔",
|
||||||
|
@ -504,6 +516,7 @@
|
||||||
"restore_seed_keys_restore": "بیج/کیز کی بحالی",
|
"restore_seed_keys_restore": "بیج/کیز کی بحالی",
|
||||||
"restore_spend_key_private": "خرچ کی کلید (نجی)",
|
"restore_spend_key_private": "خرچ کی کلید (نجی)",
|
||||||
"restore_title_from_backup": "بیک اپ سے بحال کریں۔",
|
"restore_title_from_backup": "بیک اپ سے بحال کریں۔",
|
||||||
|
"restore_title_from_hardware_wallet": "ہارڈ ویئر پرس سے بحال کریں",
|
||||||
"restore_title_from_keys": "چابیاں سے بحال کریں۔",
|
"restore_title_from_keys": "چابیاں سے بحال کریں۔",
|
||||||
"restore_title_from_seed": "بیج سے بحال کریں۔",
|
"restore_title_from_seed": "بیج سے بحال کریں۔",
|
||||||
"restore_title_from_seed_keys": "بیج / چابیاں سے بحال کریں۔",
|
"restore_title_from_seed_keys": "بیج / چابیاں سے بحال کریں۔",
|
||||||
|
@ -754,6 +767,7 @@
|
||||||
"unsupported_asset": "۔ﮟﯾﺮﮐ ﭻﺋﻮﺳ ﺮﭘ ﺱﺍ ﺎﯾ ﮟﯿﺋﺎﻨﺑ ﺱﺮﭘ ﺎﮐ ﻢﺴﻗ ﯽﮐ ﮧﺛﺎﺛﺍ ﮧﺘﻓﺎﯾ ﻥﻭﺎﻌﺗ ﻡﺮﮐ ﮦﺍﺮﺑ ۔ﮟﯿﮨ ﮯﺗﺮﮐ ﮟﯿﮩﻧ ﺖﯾﺎﻤﺣ ﯽﮐ ﯽﺋﺍﻭﺭﺭﺎﮐ ﺱﺍ ﮯﯿﻟ ﮯﮐ ﮧﺛﺎﺛﺍ ﺱﺍ ﻢﮨ",
|
"unsupported_asset": "۔ﮟﯾﺮﮐ ﭻﺋﻮﺳ ﺮﭘ ﺱﺍ ﺎﯾ ﮟﯿﺋﺎﻨﺑ ﺱﺮﭘ ﺎﮐ ﻢﺴﻗ ﯽﮐ ﮧﺛﺎﺛﺍ ﮧﺘﻓﺎﯾ ﻥﻭﺎﻌﺗ ﻡﺮﮐ ﮦﺍﺮﺑ ۔ﮟﯿﮨ ﮯﺗﺮﮐ ﮟﯿﮩﻧ ﺖﯾﺎﻤﺣ ﯽﮐ ﯽﺋﺍﻭﺭﺭﺎﮐ ﺱﺍ ﮯﯿﻟ ﮯﮐ ﮧﺛﺎﺛﺍ ﺱﺍ ﻢﮨ",
|
||||||
"uptime": "اپ ٹائم",
|
"uptime": "اپ ٹائم",
|
||||||
"upto": "${value} تک",
|
"upto": "${value} تک",
|
||||||
|
"usb": "یو ایس بی",
|
||||||
"use": "تبدیل کرنا",
|
"use": "تبدیل کرنا",
|
||||||
"use_card_info_three": "ڈیجیٹل کارڈ آن لائن یا کنٹیکٹ لیس ادائیگی کے طریقوں کے ساتھ استعمال کریں۔",
|
"use_card_info_three": "ڈیجیٹل کارڈ آن لائن یا کنٹیکٹ لیس ادائیگی کے طریقوں کے ساتھ استعمال کریں۔",
|
||||||
"use_card_info_two": "رقوم کو امریکی ڈالر میں تبدیل کیا جاتا ہے جب پری پیڈ اکاؤنٹ میں رکھا جاتا ہے، ڈیجیٹل کرنسیوں میں نہیں۔",
|
"use_card_info_two": "رقوم کو امریکی ڈالر میں تبدیل کیا جاتا ہے جب پری پیڈ اکاؤنٹ میں رکھا جاتا ہے، ڈیجیٹل کرنسیوں میں نہیں۔",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "Bitcoin Light Akori",
|
"bitcoin_light_theme": "Bitcoin Light Akori",
|
||||||
"bitcoin_payments_require_1_confirmation": "Àwọn àránṣẹ́ Bitcoin nílò ìjẹ́rìísí kan. Ó lè lo ìṣéjú ogun tàbí ìṣéjú jù. A dúpẹ́ fún sùúrù yín! Ẹ máa gba ímeèlì t'ó bá jẹ́rìísí àránṣẹ́ náà.",
|
"bitcoin_payments_require_1_confirmation": "Àwọn àránṣẹ́ Bitcoin nílò ìjẹ́rìísí kan. Ó lè lo ìṣéjú ogun tàbí ìṣéjú jù. A dúpẹ́ fún sùúrù yín! Ẹ máa gba ímeèlì t'ó bá jẹ́rìísí àránṣẹ́ náà.",
|
||||||
"Blocks_remaining": "Àkójọpọ̀ ${status} kikù",
|
"Blocks_remaining": "Àkójọpọ̀ ${status} kikù",
|
||||||
|
"bluetooth": "Bluetooth",
|
||||||
"bright_theme": "Funfun",
|
"bright_theme": "Funfun",
|
||||||
"bump_fee": "Ọya ija",
|
"bump_fee": "Ọya ija",
|
||||||
"buy": "Rà",
|
"buy": "Rà",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "Ẹ kúuṣẹ́ ooo!",
|
"congratulations": "Ẹ kúuṣẹ́ ooo!",
|
||||||
"connect_an_existing_yat": "So Yat wíwà",
|
"connect_an_existing_yat": "So Yat wíwà",
|
||||||
"connect_yats": "So àwọn Yat",
|
"connect_yats": "So àwọn Yat",
|
||||||
|
"connect_your_hardware_wallet": "So apamọwọ irinṣẹ rẹ nipa lilo Bluetooth tabi USB",
|
||||||
|
"connect_your_hardware_wallet_ios": "So apamọwọ ẹrọ rẹ ni lilo Bluetooth",
|
||||||
"connection_sync": "Ìkànpọ̀ àti ìbádọ́gba",
|
"connection_sync": "Ìkànpọ̀ àti ìbádọ́gba",
|
||||||
"connectWalletPrompt": "So apamọwọ rẹ pọ pẹlu WalletConnect lati ṣe awọn iṣowo",
|
"connectWalletPrompt": "So apamọwọ rẹ pọ pẹlu WalletConnect lati ṣe awọn iṣowo",
|
||||||
"contact": "Olùbásọ̀rọ̀",
|
"contact": "Olùbásọ̀rọ̀",
|
||||||
|
@ -329,7 +332,13 @@
|
||||||
"is_percentage": "jẹ́",
|
"is_percentage": "jẹ́",
|
||||||
"last_30_days": "Ọ̀jọ̀ mọ́gbọ̀n tó kọjà",
|
"last_30_days": "Ọ̀jọ̀ mọ́gbọ̀n tó kọjà",
|
||||||
"learn_more": "Túbọ̀ kọ́",
|
"learn_more": "Túbọ̀ kọ́",
|
||||||
|
"ledger_connection_error": "O kuna lati sopọ mọ ọ. Jọwọ gbiyanju lẹẹkansi.",
|
||||||
|
"ledger_error_device_locked": "Ledger wa ni titiipa",
|
||||||
|
"ledger_error_tx_rejected_by_user": "Idunadura kọ lori ẹrọ",
|
||||||
|
"ledger_error_wrong_app": "Jọwọ rii daju pe iwọ yoo sọ app ti o tọ loju omi rẹ",
|
||||||
|
"ledger_please_enable_bluetooth": "Jọwọ jẹ ki Bluetooth lati rii iṣupọ rẹ",
|
||||||
"light_theme": "Funfun bí eérú",
|
"light_theme": "Funfun bí eérú",
|
||||||
|
"load_more": "Ẹru diẹ sii",
|
||||||
"loading_your_wallet": "A ń ṣí àpamọ́wọ́ yín",
|
"loading_your_wallet": "A ń ṣí àpamọ́wọ́ yín",
|
||||||
"login": "Orúkọ",
|
"login": "Orúkọ",
|
||||||
"logout": "Jáde",
|
"logout": "Jáde",
|
||||||
|
@ -443,6 +452,8 @@
|
||||||
"privacy_settings": "Ààtò àdáni",
|
"privacy_settings": "Ààtò àdáni",
|
||||||
"private_key": "Kọ́kọ́rọ́ àdáni",
|
"private_key": "Kọ́kọ́rọ́ àdáni",
|
||||||
"proceed_after_one_minute": "Tí aṣàfihàn kò bá tẹ̀síwájú l'áàárín ìṣẹ́jú kan, ẹ tọ́ ímeèlì yín wò.",
|
"proceed_after_one_minute": "Tí aṣàfihàn kò bá tẹ̀síwájú l'áàárín ìṣẹ́jú kan, ẹ tọ́ ímeèlì yín wò.",
|
||||||
|
"proceed_on_device": "Tẹsiwaju lori ẹrọ rẹ",
|
||||||
|
"proceed_on_device_description": "Jọwọ tẹle awọn ilana ti a ṣe lori apamọwọ ohun elo rẹ",
|
||||||
"profile": "profaili",
|
"profile": "profaili",
|
||||||
"provider_error": "Àṣìṣe ${provider}",
|
"provider_error": "Àṣìṣe ${provider}",
|
||||||
"public_key": "Kọ́kọ́rọ́ tó kò àdáni",
|
"public_key": "Kọ́kọ́rọ́ tó kò àdáni",
|
||||||
|
@ -491,6 +502,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "Mú àpamọ́wọ́ yín padà láti àkànpọ̀ ọlọ́rọ̀ ẹ̀ẹ̀mẹrinlélógun",
|
"restore_bitcoin_description_from_seed": "Mú àpamọ́wọ́ yín padà láti àkànpọ̀ ọlọ́rọ̀ ẹ̀ẹ̀mẹrinlélógun",
|
||||||
"restore_bitcoin_title_from_keys": "Mú padà láti WIF",
|
"restore_bitcoin_title_from_keys": "Mú padà láti WIF",
|
||||||
"restore_description_from_backup": "Ẹ lè fi ẹ̀dà nípamọ́ yín mú odindi Cake Wallet áàpù padà.",
|
"restore_description_from_backup": "Ẹ lè fi ẹ̀dà nípamọ́ yín mú odindi Cake Wallet áàpù padà.",
|
||||||
|
"restore_description_from_hardware_wallet": "Mu pada kuro ninu apamọwọ ohun elo ti o yanilenu",
|
||||||
"restore_description_from_keys": "Mú àpamọ́wọ́ yín padà láti àwọn àtẹ̀ nípamọ́ láti àwọn kọ́kọ́rọ́ àdáni yín",
|
"restore_description_from_keys": "Mú àpamọ́wọ́ yín padà láti àwọn àtẹ̀ nípamọ́ láti àwọn kọ́kọ́rọ́ àdáni yín",
|
||||||
"restore_description_from_seed": "Ẹ mú àpamọ́wọ́ yín padà láti àkànpọ̀ ọlọ́rọ̀ ẹ̀ẹ̀marùndínlọgbọ̀n tàbí ti mẹ́talá.",
|
"restore_description_from_seed": "Ẹ mú àpamọ́wọ́ yín padà láti àkànpọ̀ ọlọ́rọ̀ ẹ̀ẹ̀marùndínlọgbọ̀n tàbí ti mẹ́talá.",
|
||||||
"restore_description_from_seed_keys": "Mú àpamọ́wọ́ yín padà láti hóró/kọ́kọ́rọ́ t'ẹ́ ti pamọ́ sí ibi láìléwu",
|
"restore_description_from_seed_keys": "Mú àpamọ́wọ́ yín padà láti hóró/kọ́kọ́rọ́ t'ẹ́ ti pamọ́ sí ibi láìléwu",
|
||||||
|
@ -503,6 +515,7 @@
|
||||||
"restore_seed_keys_restore": "Mú hóró/kọ́kọ́rọ́ padà",
|
"restore_seed_keys_restore": "Mú hóró/kọ́kọ́rọ́ padà",
|
||||||
"restore_spend_key_private": "kọ́kọ́rọ́ àdáni fún níná",
|
"restore_spend_key_private": "kọ́kọ́rọ́ àdáni fún níná",
|
||||||
"restore_title_from_backup": "Fi ẹ̀dà nípamọ́ mú padà",
|
"restore_title_from_backup": "Fi ẹ̀dà nípamọ́ mú padà",
|
||||||
|
"restore_title_from_hardware_wallet": "Mu pada kuro ninu apamọwọ ohun elo",
|
||||||
"restore_title_from_keys": "Fi kọ́kọ́rọ́ ṣẹ̀dá",
|
"restore_title_from_keys": "Fi kọ́kọ́rọ́ ṣẹ̀dá",
|
||||||
"restore_title_from_seed": "Fi hóró mú padà",
|
"restore_title_from_seed": "Fi hóró mú padà",
|
||||||
"restore_title_from_seed_keys": "Fi hóró/kọ́kọ́rọ́ mú padà",
|
"restore_title_from_seed_keys": "Fi hóró/kọ́kọ́rọ́ mú padà",
|
||||||
|
@ -753,6 +766,7 @@
|
||||||
"unsupported_asset": "A ko ṣe atilẹyin iṣẹ yii fun dukia yii. Jọwọ ṣẹda tabi yipada si apamọwọ iru dukia atilẹyin.",
|
"unsupported_asset": "A ko ṣe atilẹyin iṣẹ yii fun dukia yii. Jọwọ ṣẹda tabi yipada si apamọwọ iru dukia atilẹyin.",
|
||||||
"uptime": "Iduro",
|
"uptime": "Iduro",
|
||||||
"upto": "kò tóbi ju ${value}",
|
"upto": "kò tóbi ju ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "Lo",
|
"use": "Lo",
|
||||||
"use_card_info_three": "Ẹ lo káàdí ayélujára lórí wẹ́ẹ̀bù tàbí ẹ lò ó lórí àwọn ẹ̀rọ̀ ìrajà tíwọn kò kò.",
|
"use_card_info_three": "Ẹ lo káàdí ayélujára lórí wẹ́ẹ̀bù tàbí ẹ lò ó lórí àwọn ẹ̀rọ̀ ìrajà tíwọn kò kò.",
|
||||||
"use_card_info_two": "A pààrọ̀ owó sí owó Amẹ́ríkà tó bá wà nínú àkanti t'á ti fikún tẹ́lẹ̀tẹ́lẹ̀. A kò kó owó náà nínú owó ayélujára.",
|
"use_card_info_two": "A pààrọ̀ owó sí owó Amẹ́ríkà tó bá wà nínú àkanti t'á ti fikún tẹ́lẹ̀tẹ́lẹ̀. A kò kó owó náà nínú owó ayélujára.",
|
||||||
|
|
|
@ -79,6 +79,7 @@
|
||||||
"bitcoin_light_theme": "比特币浅色主题",
|
"bitcoin_light_theme": "比特币浅色主题",
|
||||||
"bitcoin_payments_require_1_confirmation": "比特币支付需要 1 次确认,这可能需要 20 分钟或更长时间。谢谢你的耐心!确认付款后,您将收到电子邮件。",
|
"bitcoin_payments_require_1_confirmation": "比特币支付需要 1 次确认,这可能需要 20 分钟或更长时间。谢谢你的耐心!确认付款后,您将收到电子邮件。",
|
||||||
"Blocks_remaining": "${status} 剩余的块",
|
"Blocks_remaining": "${status} 剩余的块",
|
||||||
|
"bluetooth": "蓝牙",
|
||||||
"bright_theme": "明亮",
|
"bright_theme": "明亮",
|
||||||
"bump_fee": "撞费",
|
"bump_fee": "撞费",
|
||||||
"buy": "购买",
|
"buy": "购买",
|
||||||
|
@ -144,6 +145,8 @@
|
||||||
"congratulations": "恭喜!",
|
"congratulations": "恭喜!",
|
||||||
"connect_an_existing_yat": "連接現有 Yat",
|
"connect_an_existing_yat": "連接現有 Yat",
|
||||||
"connect_yats": "连接 Yats",
|
"connect_yats": "连接 Yats",
|
||||||
|
"connect_your_hardware_wallet": "使用蓝牙或USB连接硬件钱包",
|
||||||
|
"connect_your_hardware_wallet_ios": "使用蓝牙连接硬件钱包",
|
||||||
"connection_sync": "连接和同步",
|
"connection_sync": "连接和同步",
|
||||||
"connectWalletPrompt": "将您的钱包与 WalletConnect 连接以进行交易",
|
"connectWalletPrompt": "将您的钱包与 WalletConnect 连接以进行交易",
|
||||||
"contact": "联系",
|
"contact": "联系",
|
||||||
|
@ -328,7 +331,13 @@
|
||||||
"is_percentage": "是",
|
"is_percentage": "是",
|
||||||
"last_30_days": "过去 30 天",
|
"last_30_days": "过去 30 天",
|
||||||
"learn_more": "了解更多",
|
"learn_more": "了解更多",
|
||||||
|
"ledger_connection_error": "无法连接到您的分类帐。请再试一次。",
|
||||||
|
"ledger_error_device_locked": "分类帐已锁定",
|
||||||
|
"ledger_error_tx_rejected_by_user": "交易在设备上拒绝",
|
||||||
|
"ledger_error_wrong_app": "请确保您在分类帐中操作正确的应用程序",
|
||||||
|
"ledger_please_enable_bluetooth": "请启用蓝牙来检测您的分类帐",
|
||||||
"light_theme": "艳丽",
|
"light_theme": "艳丽",
|
||||||
|
"load_more": "装载更多",
|
||||||
"loading_your_wallet": "加载您的钱包",
|
"loading_your_wallet": "加载您的钱包",
|
||||||
"login": "登录",
|
"login": "登录",
|
||||||
"logout": "注销",
|
"logout": "注销",
|
||||||
|
@ -442,6 +451,8 @@
|
||||||
"privacy_settings": "隐私设置",
|
"privacy_settings": "隐私设置",
|
||||||
"private_key": "私钥",
|
"private_key": "私钥",
|
||||||
"proceed_after_one_minute": "如果屏幕在 1 分钟后没有继续,请检查您的电子邮件。",
|
"proceed_after_one_minute": "如果屏幕在 1 分钟后没有继续,请检查您的电子邮件。",
|
||||||
|
"proceed_on_device": "在设备上继续",
|
||||||
|
"proceed_on_device_description": "请按照您的硬件钱包上提示的说明进行操作",
|
||||||
"profile": "轮廓",
|
"profile": "轮廓",
|
||||||
"provider_error": "${provider} 错误",
|
"provider_error": "${provider} 错误",
|
||||||
"public_key": "公钥",
|
"public_key": "公钥",
|
||||||
|
@ -490,6 +501,7 @@
|
||||||
"restore_bitcoin_description_from_seed": "从24个文字的组成码恢复您的钱包",
|
"restore_bitcoin_description_from_seed": "从24个文字的组成码恢复您的钱包",
|
||||||
"restore_bitcoin_title_from_keys": "从WIF还原",
|
"restore_bitcoin_title_from_keys": "从WIF还原",
|
||||||
"restore_description_from_backup": "您可以从还原整个Cake Wallet应用您的备份文件",
|
"restore_description_from_backup": "您可以从还原整个Cake Wallet应用您的备份文件",
|
||||||
|
"restore_description_from_hardware_wallet": "从分类帐硬件钱包还原",
|
||||||
"restore_description_from_keys": "使用私钥恢复钱包",
|
"restore_description_from_keys": "使用私钥恢复钱包",
|
||||||
"restore_description_from_seed": "从25个字中恢复您的钱包或13个字的组合码",
|
"restore_description_from_seed": "从25个字中恢复您的钱包或13个字的组合码",
|
||||||
"restore_description_from_seed_keys": "从保存到安全地方的种子/钥匙取回钱包",
|
"restore_description_from_seed_keys": "从保存到安全地方的种子/钥匙取回钱包",
|
||||||
|
@ -502,6 +514,7 @@
|
||||||
"restore_seed_keys_restore": "种子/密钥还原",
|
"restore_seed_keys_restore": "种子/密钥还原",
|
||||||
"restore_spend_key_private": "Spend私钥",
|
"restore_spend_key_private": "Spend私钥",
|
||||||
"restore_title_from_backup": "从备份文件还原",
|
"restore_title_from_backup": "从备份文件还原",
|
||||||
|
"restore_title_from_hardware_wallet": "从硬件钱包还原",
|
||||||
"restore_title_from_keys": "从密钥还原",
|
"restore_title_from_keys": "从密钥还原",
|
||||||
"restore_title_from_seed": "从种子还原",
|
"restore_title_from_seed": "从种子还原",
|
||||||
"restore_title_from_seed_keys": "从种子/密钥还原",
|
"restore_title_from_seed_keys": "从种子/密钥还原",
|
||||||
|
@ -752,6 +765,7 @@
|
||||||
"unsupported_asset": "我们不支持针对该资产采取此操作。请创建或切换到支持的资产类型的钱包。",
|
"unsupported_asset": "我们不支持针对该资产采取此操作。请创建或切换到支持的资产类型的钱包。",
|
||||||
"uptime": "正常运行时间",
|
"uptime": "正常运行时间",
|
||||||
"upto": "最高 ${value}",
|
"upto": "最高 ${value}",
|
||||||
|
"usb": "USB",
|
||||||
"use": "切换使用",
|
"use": "切换使用",
|
||||||
"use_card_info_three": "在线使用电子卡或使用非接触式支付方式。",
|
"use_card_info_three": "在线使用电子卡或使用非接触式支付方式。",
|
||||||
"use_card_info_two": "预付账户中的资金转换为美元,不是数字货币。",
|
"use_card_info_two": "预付账户中的资金转换为美元,不是数字货币。",
|
||||||
|
|
|
@ -563,9 +563,11 @@ abstract class HavenAccountList {
|
||||||
Future<void> generateEthereum(bool hasImplementation) async {
|
Future<void> generateEthereum(bool hasImplementation) async {
|
||||||
final outputFile = File(ethereumOutputPath);
|
final outputFile = File(ethereumOutputPath);
|
||||||
const ethereumCommonHeaders = """
|
const ethereumCommonHeaders = """
|
||||||
|
import 'package:cake_wallet/view_model/hardware_wallet/ledger_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/send/output.dart';
|
import 'package:cake_wallet/view_model/send/output.dart';
|
||||||
import 'package:cw_core/crypto_currency.dart';
|
import 'package:cw_core/crypto_currency.dart';
|
||||||
import 'package:cw_core/erc20_token.dart';
|
import 'package:cw_core/erc20_token.dart';
|
||||||
|
import 'package:cw_core/hardware/hardware_account_data.dart';
|
||||||
import 'package:cw_core/output_info.dart';
|
import 'package:cw_core/output_info.dart';
|
||||||
import 'package:cw_core/transaction_info.dart';
|
import 'package:cw_core/transaction_info.dart';
|
||||||
import 'package:cw_core/transaction_priority.dart';
|
import 'package:cw_core/transaction_priority.dart';
|
||||||
|
@ -574,6 +576,7 @@ import 'package:cw_core/wallet_credentials.dart';
|
||||||
import 'package:cw_core/wallet_info.dart';
|
import 'package:cw_core/wallet_info.dart';
|
||||||
import 'package:cw_core/wallet_service.dart';
|
import 'package:cw_core/wallet_service.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
import 'package:ledger_flutter/ledger_flutter.dart';
|
||||||
import 'package:web3dart/web3dart.dart';
|
import 'package:web3dart/web3dart.dart';
|
||||||
|
|
||||||
""";
|
""";
|
||||||
|
@ -584,6 +587,9 @@ import 'package:cw_evm/evm_chain_transaction_credentials.dart';
|
||||||
import 'package:cw_evm/evm_chain_transaction_info.dart';
|
import 'package:cw_evm/evm_chain_transaction_info.dart';
|
||||||
import 'package:cw_evm/evm_chain_transaction_priority.dart';
|
import 'package:cw_evm/evm_chain_transaction_priority.dart';
|
||||||
import 'package:cw_evm/evm_chain_wallet_creation_credentials.dart';
|
import 'package:cw_evm/evm_chain_wallet_creation_credentials.dart';
|
||||||
|
import 'package:cw_evm/evm_chain_hardware_wallet_service.dart';
|
||||||
|
import 'package:cw_evm/evm_ledger_credentials.dart';
|
||||||
|
import 'package:cw_evm/evm_chain_wallet.dart';
|
||||||
|
|
||||||
import 'package:cw_ethereum/ethereum_client.dart';
|
import 'package:cw_ethereum/ethereum_client.dart';
|
||||||
import 'package:cw_ethereum/ethereum_wallet.dart';
|
import 'package:cw_ethereum/ethereum_wallet.dart';
|
||||||
|
@ -600,6 +606,7 @@ abstract class Ethereum {
|
||||||
WalletCredentials createEthereumNewWalletCredentials({required String name, WalletInfo? walletInfo});
|
WalletCredentials createEthereumNewWalletCredentials({required String name, WalletInfo? walletInfo});
|
||||||
WalletCredentials createEthereumRestoreWalletFromSeedCredentials({required String name, required String mnemonic, required String password});
|
WalletCredentials createEthereumRestoreWalletFromSeedCredentials({required String name, required String mnemonic, required String password});
|
||||||
WalletCredentials createEthereumRestoreWalletFromPrivateKey({required String name, required String privateKey, required String password});
|
WalletCredentials createEthereumRestoreWalletFromPrivateKey({required String name, required String privateKey, required String password});
|
||||||
|
WalletCredentials createEthereumHardwareWalletCredentials({required String name, required HardwareAccountData hwAccountData, WalletInfo? walletInfo});
|
||||||
String getAddress(WalletBase wallet);
|
String getAddress(WalletBase wallet);
|
||||||
String getPrivateKey(WalletBase wallet);
|
String getPrivateKey(WalletBase wallet);
|
||||||
String getPublicKey(WalletBase wallet);
|
String getPublicKey(WalletBase wallet);
|
||||||
|
@ -633,6 +640,9 @@ abstract class Ethereum {
|
||||||
void updateEtherscanUsageState(WalletBase wallet, bool isEnabled);
|
void updateEtherscanUsageState(WalletBase wallet, bool isEnabled);
|
||||||
Web3Client? getWeb3Client(WalletBase wallet);
|
Web3Client? getWeb3Client(WalletBase wallet);
|
||||||
String getTokenAddress(CryptoCurrency asset);
|
String getTokenAddress(CryptoCurrency asset);
|
||||||
|
|
||||||
|
void setLedger(WalletBase wallet, Ledger ledger, LedgerDevice device);
|
||||||
|
Future<List<HardwareAccountData>> getHardwareWalletAccounts(LedgerViewModel ledgerVM, {int index = 0, int limit = 5});
|
||||||
}
|
}
|
||||||
""";
|
""";
|
||||||
|
|
||||||
|
@ -656,9 +666,11 @@ abstract class Ethereum {
|
||||||
Future<void> generatePolygon(bool hasImplementation) async {
|
Future<void> generatePolygon(bool hasImplementation) async {
|
||||||
final outputFile = File(polygonOutputPath);
|
final outputFile = File(polygonOutputPath);
|
||||||
const polygonCommonHeaders = """
|
const polygonCommonHeaders = """
|
||||||
|
import 'package:cake_wallet/view_model/hardware_wallet/ledger_view_model.dart';
|
||||||
import 'package:cake_wallet/view_model/send/output.dart';
|
import 'package:cake_wallet/view_model/send/output.dart';
|
||||||
import 'package:cw_core/crypto_currency.dart';
|
import 'package:cw_core/crypto_currency.dart';
|
||||||
import 'package:cw_core/erc20_token.dart';
|
import 'package:cw_core/erc20_token.dart';
|
||||||
|
import 'package:cw_core/hardware/hardware_account_data.dart';
|
||||||
import 'package:cw_core/output_info.dart';
|
import 'package:cw_core/output_info.dart';
|
||||||
import 'package:cw_core/transaction_info.dart';
|
import 'package:cw_core/transaction_info.dart';
|
||||||
import 'package:cw_core/transaction_priority.dart';
|
import 'package:cw_core/transaction_priority.dart';
|
||||||
|
@ -667,16 +679,20 @@ import 'package:cw_core/wallet_credentials.dart';
|
||||||
import 'package:cw_core/wallet_info.dart';
|
import 'package:cw_core/wallet_info.dart';
|
||||||
import 'package:cw_core/wallet_service.dart';
|
import 'package:cw_core/wallet_service.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
import 'package:ledger_flutter/ledger_flutter.dart';
|
||||||
import 'package:web3dart/web3dart.dart';
|
import 'package:web3dart/web3dart.dart';
|
||||||
|
|
||||||
""";
|
""";
|
||||||
const polygonCWHeaders = """
|
const polygonCWHeaders = """
|
||||||
import 'package:cw_evm/evm_chain_formatter.dart';
|
import 'package:cw_evm/evm_chain_formatter.dart';
|
||||||
import 'package:cw_evm/evm_chain_mnemonics.dart';
|
import 'package:cw_evm/evm_chain_mnemonics.dart';
|
||||||
|
import 'package:cw_evm/evm_chain_transaction_credentials.dart';
|
||||||
import 'package:cw_evm/evm_chain_transaction_info.dart';
|
import 'package:cw_evm/evm_chain_transaction_info.dart';
|
||||||
import 'package:cw_evm/evm_chain_transaction_priority.dart';
|
import 'package:cw_evm/evm_chain_transaction_priority.dart';
|
||||||
import 'package:cw_evm/evm_chain_transaction_credentials.dart';
|
|
||||||
import 'package:cw_evm/evm_chain_wallet_creation_credentials.dart';
|
import 'package:cw_evm/evm_chain_wallet_creation_credentials.dart';
|
||||||
|
import 'package:cw_evm/evm_chain_hardware_wallet_service.dart';
|
||||||
|
import 'package:cw_evm/evm_ledger_credentials.dart';
|
||||||
|
import 'package:cw_evm/evm_chain_wallet.dart';
|
||||||
|
|
||||||
import 'package:cw_polygon/polygon_client.dart';
|
import 'package:cw_polygon/polygon_client.dart';
|
||||||
import 'package:cw_polygon/polygon_wallet.dart';
|
import 'package:cw_polygon/polygon_wallet.dart';
|
||||||
|
@ -693,6 +709,7 @@ abstract class Polygon {
|
||||||
WalletCredentials createPolygonNewWalletCredentials({required String name, WalletInfo? walletInfo});
|
WalletCredentials createPolygonNewWalletCredentials({required String name, WalletInfo? walletInfo});
|
||||||
WalletCredentials createPolygonRestoreWalletFromSeedCredentials({required String name, required String mnemonic, required String password});
|
WalletCredentials createPolygonRestoreWalletFromSeedCredentials({required String name, required String mnemonic, required String password});
|
||||||
WalletCredentials createPolygonRestoreWalletFromPrivateKey({required String name, required String privateKey, required String password});
|
WalletCredentials createPolygonRestoreWalletFromPrivateKey({required String name, required String privateKey, required String password});
|
||||||
|
WalletCredentials createPolygonHardwareWalletCredentials({required String name, required HardwareAccountData hwAccountData, WalletInfo? walletInfo});
|
||||||
String getAddress(WalletBase wallet);
|
String getAddress(WalletBase wallet);
|
||||||
String getPrivateKey(WalletBase wallet);
|
String getPrivateKey(WalletBase wallet);
|
||||||
String getPublicKey(WalletBase wallet);
|
String getPublicKey(WalletBase wallet);
|
||||||
|
@ -726,6 +743,9 @@ abstract class Polygon {
|
||||||
void updatePolygonScanUsageState(WalletBase wallet, bool isEnabled);
|
void updatePolygonScanUsageState(WalletBase wallet, bool isEnabled);
|
||||||
Web3Client? getWeb3Client(WalletBase wallet);
|
Web3Client? getWeb3Client(WalletBase wallet);
|
||||||
String getTokenAddress(CryptoCurrency asset);
|
String getTokenAddress(CryptoCurrency asset);
|
||||||
|
|
||||||
|
void setLedger(WalletBase wallet, Ledger ledger, LedgerDevice device);
|
||||||
|
Future<List<HardwareAccountData>> getHardwareWalletAccounts(LedgerViewModel ledgerVM, {int index = 0, int limit = 5});
|
||||||
}
|
}
|
||||||
""";
|
""";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue