mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +00:00
Merge branch 'main' into flags
This commit is contained in:
commit
c7957634a2
10 changed files with 53 additions and 21 deletions
|
@ -45,12 +45,23 @@ String getSeed() {
|
||||||
|
|
||||||
String getSeedLegacy(String? language) {
|
String getSeedLegacy(String? language) {
|
||||||
var legacy = monero.Wallet_seed(wptr!, seedOffset: '');
|
var legacy = monero.Wallet_seed(wptr!, seedOffset: '');
|
||||||
|
switch (language) {
|
||||||
|
case "Chinese (Traditional)": language = "Chinese (simplified)"; break;
|
||||||
|
case "Chinese (Simplified)": language = "Chinese (simplified)"; break;
|
||||||
|
case "Korean": language = "English"; break;
|
||||||
|
case "Czech": language = "English"; break;
|
||||||
|
case "Japanese": language = "English"; break;
|
||||||
|
}
|
||||||
if (monero.Wallet_status(wptr!) != 0) {
|
if (monero.Wallet_status(wptr!) != 0) {
|
||||||
monero.Wallet_setSeedLanguage(wptr!, language: language ?? "English");
|
monero.Wallet_setSeedLanguage(wptr!, language: language ?? "English");
|
||||||
legacy = monero.Wallet_seed(wptr!, seedOffset: '');
|
legacy = monero.Wallet_seed(wptr!, seedOffset: '');
|
||||||
}
|
}
|
||||||
if (monero.Wallet_status(wptr!) != 0) {
|
if (monero.Wallet_status(wptr!) != 0) {
|
||||||
return monero.Wallet_errorString(wptr!);
|
final err = monero.Wallet_errorString(wptr!);
|
||||||
|
if (legacy.isNotEmpty) {
|
||||||
|
return "$err\n\n$legacy";
|
||||||
|
}
|
||||||
|
return err;
|
||||||
}
|
}
|
||||||
return legacy;
|
return legacy;
|
||||||
}
|
}
|
||||||
|
|
|
@ -575,10 +575,11 @@ packages:
|
||||||
polyseed:
|
polyseed:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: polyseed
|
path: "."
|
||||||
sha256: edf28042e7b0b28f97a0469aa98e6e4015937cef6b9340cd6ad2822139c95217
|
ref: f9adc68dbf879fefadeae8e86d1c2983f5a2cc3f
|
||||||
url: "https://pub.dev"
|
resolved-ref: f9adc68dbf879fefadeae8e86d1c2983f5a2cc3f
|
||||||
source: hosted
|
url: "https://github.com/mrcyjanek/polyseed_dart"
|
||||||
|
source: git
|
||||||
version: "0.0.5"
|
version: "0.0.5"
|
||||||
pool:
|
pool:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
|
|
|
@ -19,7 +19,10 @@ dependencies:
|
||||||
flutter_mobx: ^2.0.6+1
|
flutter_mobx: ^2.0.6+1
|
||||||
intl: ^0.18.0
|
intl: ^0.18.0
|
||||||
encrypt: ^5.0.1
|
encrypt: ^5.0.1
|
||||||
polyseed: ^0.0.5
|
polyseed:
|
||||||
|
git:
|
||||||
|
url: https://github.com/mrcyjanek/polyseed_dart
|
||||||
|
ref: f9adc68dbf879fefadeae8e86d1c2983f5a2cc3f
|
||||||
cw_core:
|
cw_core:
|
||||||
path: ../cw_core
|
path: ../cw_core
|
||||||
monero:
|
monero:
|
||||||
|
|
|
@ -47,12 +47,23 @@ String getSeed() {
|
||||||
|
|
||||||
String getSeedLegacy(String? language) {
|
String getSeedLegacy(String? language) {
|
||||||
var legacy = wownero.Wallet_seed(wptr!, seedOffset: '');
|
var legacy = wownero.Wallet_seed(wptr!, seedOffset: '');
|
||||||
|
switch (language) {
|
||||||
|
case "Chinese (Traditional)": language = "Chinese (simplified)"; break;
|
||||||
|
case "Chinese (Simplified)": language = "Chinese (simplified)"; break;
|
||||||
|
case "Korean": language = "English"; break;
|
||||||
|
case "Czech": language = "English"; break;
|
||||||
|
case "Japanese": language = "English"; break;
|
||||||
|
}
|
||||||
if (wownero.Wallet_status(wptr!) != 0) {
|
if (wownero.Wallet_status(wptr!) != 0) {
|
||||||
wownero.Wallet_setSeedLanguage(wptr!, language: language ?? "English");
|
wownero.Wallet_setSeedLanguage(wptr!, language: language ?? "English");
|
||||||
legacy = wownero.Wallet_seed(wptr!, seedOffset: '');
|
legacy = wownero.Wallet_seed(wptr!, seedOffset: '');
|
||||||
}
|
}
|
||||||
if (wownero.Wallet_status(wptr!) != 0) {
|
if (wownero.Wallet_status(wptr!) != 0) {
|
||||||
return wownero.Wallet_errorString(wptr!);
|
final err = wownero.Wallet_errorString(wptr!);
|
||||||
|
if (legacy.isNotEmpty) {
|
||||||
|
return "$err\n\n$legacy";
|
||||||
|
}
|
||||||
|
return err;
|
||||||
}
|
}
|
||||||
return legacy;
|
return legacy;
|
||||||
}
|
}
|
||||||
|
|
|
@ -567,10 +567,11 @@ packages:
|
||||||
polyseed:
|
polyseed:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: polyseed
|
path: "."
|
||||||
sha256: edf28042e7b0b28f97a0469aa98e6e4015937cef6b9340cd6ad2822139c95217
|
ref: f9adc68dbf879fefadeae8e86d1c2983f5a2cc3f
|
||||||
url: "https://pub.dev"
|
resolved-ref: f9adc68dbf879fefadeae8e86d1c2983f5a2cc3f
|
||||||
source: hosted
|
url: "https://github.com/mrcyjanek/polyseed_dart"
|
||||||
|
source: git
|
||||||
version: "0.0.5"
|
version: "0.0.5"
|
||||||
pool:
|
pool:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
|
|
|
@ -19,7 +19,10 @@ dependencies:
|
||||||
flutter_mobx: ^2.0.6+1
|
flutter_mobx: ^2.0.6+1
|
||||||
intl: ^0.18.0
|
intl: ^0.18.0
|
||||||
encrypt: ^5.0.1
|
encrypt: ^5.0.1
|
||||||
polyseed: ^0.0.5
|
polyseed:
|
||||||
|
git:
|
||||||
|
url: https://github.com/mrcyjanek/polyseed_dart
|
||||||
|
ref: f9adc68dbf879fefadeae8e86d1c2983f5a2cc3f
|
||||||
cw_core:
|
cw_core:
|
||||||
path: ../cw_core
|
path: ../cw_core
|
||||||
monero:
|
monero:
|
||||||
|
|
|
@ -17,7 +17,7 @@ class SeedLanguagePickerOption {
|
||||||
final List<SeedLanguagePickerOption> seedLanguages = [
|
final List<SeedLanguagePickerOption> seedLanguages = [
|
||||||
SeedLanguagePickerOption('English', S.current.seed_language_english,
|
SeedLanguagePickerOption('English', S.current.seed_language_english,
|
||||||
Image.asset('assets/images/flags/usa.png'), [SeedType.legacy, SeedType.polyseed]),
|
Image.asset('assets/images/flags/usa.png'), [SeedType.legacy, SeedType.polyseed]),
|
||||||
SeedLanguagePickerOption('Chinese (simplified)', S.current.seed_language_chinese,
|
SeedLanguagePickerOption('Chinese (Simplified)', S.current.seed_language_chinese,
|
||||||
Image.asset('assets/images/flags/chn.png'), [SeedType.legacy, SeedType.polyseed]),
|
Image.asset('assets/images/flags/chn.png'), [SeedType.legacy, SeedType.polyseed]),
|
||||||
SeedLanguagePickerOption('Chinese (Traditional)', S.current.seed_language_chinese_traditional,
|
SeedLanguagePickerOption('Chinese (Traditional)', S.current.seed_language_chinese_traditional,
|
||||||
Image.asset('assets/images/flags/chn.png'), [SeedType.polyseed]),
|
Image.asset('assets/images/flags/chn.png'), [SeedType.polyseed]),
|
||||||
|
|
|
@ -94,7 +94,10 @@ dependencies:
|
||||||
# ref: main
|
# ref: main
|
||||||
socks5_proxy: ^1.0.4
|
socks5_proxy: ^1.0.4
|
||||||
flutter_svg: ^2.0.9
|
flutter_svg: ^2.0.9
|
||||||
polyseed: ^0.0.5
|
polyseed:
|
||||||
|
git:
|
||||||
|
url: https://github.com/mrcyjanek/polyseed_dart
|
||||||
|
ref: f9adc68dbf879fefadeae8e86d1c2983f5a2cc3f
|
||||||
nostr_tools: ^1.0.9
|
nostr_tools: ^1.0.9
|
||||||
solana: ^0.30.1
|
solana: ^0.30.1
|
||||||
bitcoin_base:
|
bitcoin_base:
|
||||||
|
|
|
@ -43,15 +43,14 @@ else
|
||||||
WOWNERO_LIBS=" -arch ${ARCH} ${WOWNEROC_RELEASE_DIR}/${HOST}_libwallet2_api_c.dylib"
|
WOWNERO_LIBS=" -arch ${ARCH} ${WOWNEROC_RELEASE_DIR}/${HOST}_libwallet2_api_c.dylib"
|
||||||
|
|
||||||
if [[ ! $(uname -m) == $ARCH ]]; then
|
if [[ ! $(uname -m) == $ARCH ]]; then
|
||||||
PRC="arch -${ARCH}"
|
PRC="arch -${ARCH}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pushd ../monero_c
|
pushd ../monero_c
|
||||||
$PRC ./build_single.sh ${COIN} ${HOST} $NPROC
|
$PRC ./build_single.sh ${COIN} ${HOST} $NPROC
|
||||||
unxz -f ./release/${COIN}/${HOST}_libwallet2_api_c.dylib.xz
|
unxz -f ./release/${COIN}/${HOST}_libwallet2_api_c.dylib.xz
|
||||||
|
popd
|
||||||
popd
|
done
|
||||||
done
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ if [[ ! -d "monero_c" ]];
|
||||||
then
|
then
|
||||||
git clone https://github.com/mrcyjanek/monero_c --branch rewrite-wip
|
git clone https://github.com/mrcyjanek/monero_c --branch rewrite-wip
|
||||||
cd monero_c
|
cd monero_c
|
||||||
git checkout bcb328a4956105dc182afd0ce2e48fe263f5f20b
|
git checkout 5de323b1ba7387cf73973042f06383d4dbe619f5
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git submodule update --init --force --recursive
|
git submodule update --init --force --recursive
|
||||||
./apply_patches.sh monero
|
./apply_patches.sh monero
|
||||||
|
|
Loading…
Reference in a new issue