mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
fix: Add tari_wallet_addresses to cw file generator
This commit is contained in:
parent
9c7716c0a9
commit
f26e04b7c3
4 changed files with 11 additions and 7 deletions
|
@ -96,7 +96,6 @@ abstract class TariWalletBase
|
|||
try {
|
||||
syncStatus = AttemptingSyncStatus();
|
||||
|
||||
_walletFfi.setBaseNode();
|
||||
_walletFfi.startRecovery((_, int status, int val1, int val2) async {
|
||||
print('recoveryCallback called $status $val1 $val2');
|
||||
|
||||
|
@ -252,7 +251,11 @@ abstract class TariWalletBase
|
|||
Future<void> dev_printLogs() async {
|
||||
final currentWalletPath =
|
||||
await pathForWallet(name: walletInfo.name, type: type);
|
||||
log(File("$currentWalletPath/logs/wallet.log").readAsStringSync());
|
||||
Directory("$currentWalletPath/logs").listSync().forEach((e) => log(e.path));
|
||||
final stat = await File("$currentWalletPath/logs/wallet.log").stat();
|
||||
log(stat.size.toString());
|
||||
File("$currentWalletPath/logs/wallet.0.log").readAsString().then((e) => log(e));
|
||||
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
@ -83,7 +83,7 @@ class TariWalletService extends WalletService<
|
|||
passphrase: credentials.password!,
|
||||
logPath: "$path/logs/wallet.log",
|
||||
logLevel: 4,
|
||||
dnsSeeds: "seeds.nextnet.tari.com",
|
||||
dnsSeeds: "seeds.tari.com",
|
||||
callbackReceivedTransaction: CallbackPlaceholders.callbackReceivedTransaction,
|
||||
callbackReceivedTransactionReply: CallbackPlaceholders.callbackReceivedTransactionReply,
|
||||
callbackReceivedFinalizedTransaction: CallbackPlaceholders.callbackReceivedFinalizedTransaction,
|
||||
|
@ -133,14 +133,14 @@ class TariWalletService extends WalletService<
|
|||
transport: connection,
|
||||
);
|
||||
|
||||
await File("$path/logs/wallet.log").delete();
|
||||
await Directory("$path/logs").delete(recursive: true);
|
||||
|
||||
final tariWallet = tari.createWallet(
|
||||
commsConfig: config,
|
||||
passphrase: password,
|
||||
logPath: "$path/logs/wallet.log",
|
||||
logLevel: 4,
|
||||
dnsSeeds: "seeds.nextnet.tari.com",
|
||||
dnsSeeds: "seeds.tari.com",
|
||||
dnsSeedNameServers: '1.1.1.1:853',
|
||||
callbackReceivedTransaction: CallbackPlaceholders.callbackReceivedTransaction,
|
||||
callbackReceivedTransactionReply: CallbackPlaceholders.callbackReceivedTransactionReply,
|
||||
|
@ -244,7 +244,7 @@ class TariWalletService extends WalletService<
|
|||
mnemonic: credentials.mnemonic,
|
||||
logPath: "$path/logs/wallet.log",
|
||||
logLevel: 4,
|
||||
dnsSeeds: "seeds.nextnet.tari.com",
|
||||
dnsSeeds: "seeds.tari.com",
|
||||
callbackReceivedTransaction: CallbackPlaceholders.callbackReceivedTransaction,
|
||||
callbackReceivedTransactionReply: CallbackPlaceholders.callbackReceivedTransactionReply,
|
||||
callbackReceivedFinalizedTransaction: CallbackPlaceholders.callbackReceivedFinalizedTransaction,
|
||||
|
|
|
@ -79,7 +79,7 @@ class OtherSettingsPage extends BasePage {
|
|||
),
|
||||
if (_otherSettingsViewModel.walletType == WalletType.tari)
|
||||
SettingsSwitcherCell(
|
||||
title: "${S.of(context).use_tari_emoji_address} 🤮",
|
||||
title: S.of(context).use_tari_emoji_address,
|
||||
value: _otherSettingsViewModel.useTariEmojiAddress,
|
||||
onValueChange: (_, bool value) {
|
||||
_otherSettingsViewModel.setUseTariEmojiAddress(value);
|
||||
|
|
|
@ -1399,6 +1399,7 @@ import 'package:hive/hive.dart';
|
|||
""";
|
||||
const tariCWHeaders = """
|
||||
import 'package:cw_tari/tari_wallet.dart';
|
||||
import 'package:cw_tari/tari_wallet_addresses.dart';
|
||||
import 'package:cw_tari/tari_wallet_service.dart';
|
||||
import 'package:cw_tari/wordlist.dart';
|
||||
""";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue