mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Delete cw_zano / cw_tron / cw_solana / cw_decred packages + all references
These chains were already disabled in availableWalletTypes (none of them
were getting created), but the source dirs and the codegen scaffolding
for them still lived in tree (~20K lines of dead Dart).
Surgery:
- Delete cw_decred/ cw_solana/ cw_tron/ cw_zano/ source trees
- Strip 5 generate*() function bodies from tool/configure.dart
(generateSolana, generateTron, generateZano, generateDecred,
generateZcash) plus their top-level imports, args, calls,
signatures, and conditional pubspec/walletTypes injection blocks.
configure.dart shrinks from 2134 to 1561 lines and dart analyze
is clean.
- Strip solana/tron secrets config + output paths from
tool/import_secrets_config.dart
- Delete scripts/{android,ios,macos}/build_decred.sh,
scripts/ios/build_zano{,_all}.sh
- Patch scripts/{android,ios,macos}/build_all.sh,
scripts/android/copy_monero_deps.sh, scripts/ios/setup.sh,
scripts/ios/gen_framework.sh to drop decred/zano steps
- Patch scripts/android/docker/build.sh + Dockerfile.final to drop the
decred Docker stage; delete scripts/android/docker/Dockerfile.decred
- Update .github/workflows/build-linux.yml comments to reflect the
remaining cw_* module list (evm, nano, bitcoin)
Note: WalletType.{solana,tron,zano,decred,zcash} enum values still live
in cw_core/lib/wallet_type.dart and there are dead switch cases in
lib/di.dart and lib/new-ui/pages/*.dart that reference them. Those
paths are unreachable (the enum values never get assigned to any wallet)
but cleaning them up is a separate hygiene pass.
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
|
||||
./build_torch.sh
|
||||
|
||||
./build_monero_all.sh universal && ./build_decred.sh
|
||||
./build_monero_all.sh universal
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ./config.sh
|
||||
|
||||
LIBWALLET_PATH="${EXTERNAL_MACOS_SOURCE_DIR}/libwallet"
|
||||
LIBWALLET_URL="https://github.com/decred/libwallet.git"
|
||||
LIBWALLET_VERSION="05f8d7374999400fe4d525eb365c39b77d307b14"
|
||||
|
||||
echo "======================= DECRED LIBWALLET ========================="
|
||||
|
||||
echo "Cloning DECRED LIBWALLET from - $LIBWALLET_URL"
|
||||
if [ -e $LIBWALLET_PATH ]; then
|
||||
rm -fr $LIBWALLET_PATH
|
||||
fi
|
||||
mkdir -p $LIBWALLET_PATH
|
||||
git clone $LIBWALLET_URL $LIBWALLET_PATH
|
||||
cd $LIBWALLET_PATH
|
||||
git checkout $LIBWALLET_VERSION
|
||||
|
||||
if [ -e ./build ]; then
|
||||
rm -fr ./build
|
||||
fi
|
||||
go build -buildmode=c-archive -o ./build/libdcrwallet.a ./cgo
|
||||
|
||||
CW_DECRED_DIR=${CW_ROOT}/cw_decred
|
||||
HEADER_DIR=$CW_DECRED_DIR/lib/api
|
||||
mv ${LIBWALLET_PATH}/build/libdcrwallet.h $HEADER_DIR
|
||||
|
||||
DEST_LIB_DIR=${CW_DECRED_DIR}/macos/External/lib
|
||||
mkdir -p $DEST_LIB_DIR
|
||||
mv ${LIBWALLET_PATH}/build/libdcrwallet.a $DEST_LIB_DIR
|
||||
|
||||
cd $CW_DECRED_DIR
|
||||
dart run ffigen
|
||||
Reference in New Issue
Block a user