diff --git a/tool/configure.dart b/tool/configure.dart index 9598e5270..18e13e56b 100644 --- a/tool/configure.dart +++ b/tool/configure.dart @@ -122,7 +122,23 @@ import 'package:mobx/mobx.dart'; """; const bitcoinCwPart = "part 'cw_bitcoin.dart';"; const bitcoinContent = """ - + const List BITCOIN_ADDRESS_TYPES = [ + SegwitAddresType.p2wpkh, + P2pkhAddressType.p2pkh, + SegwitAddresType.p2tr, + SegwitAddresType.p2wsh, + P2shAddressType.p2wpkhInP2sh, + ]; + + const List LITECOIN_ADDRESS_TYPES = [ + SegwitAddresType.p2wpkh, + SegwitAddresType.mweb, + ]; + + const List BITCOIN_CASH_ADDRESS_TYPES = [ + P2pkhAddressType.p2pkh, + ]; + class ElectrumSubAddress { ElectrumSubAddress({ required this.id, @@ -200,7 +216,7 @@ abstract class Bitcoin { Future> compareDerivationMethods( {required String mnemonic, required Node node}); List getOldDerivationInfos(List list); - Future> getDerivationsFromMnemonic( + Future> getDerivationInfosFromMnemonic( {required String mnemonic, required Node node, String? passphrase}); Map> getElectrumDerivations(); Future setAddressType(Object wallet, dynamic option);