mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-22 23:28:53 +00:00
chore: build scripts
This commit is contained in:
parent
cc853b95b8
commit
75aaa6f23e
1 changed files with 18 additions and 2 deletions
|
@ -122,7 +122,23 @@ import 'package:mobx/mobx.dart';
|
||||||
""";
|
""";
|
||||||
const bitcoinCwPart = "part 'cw_bitcoin.dart';";
|
const bitcoinCwPart = "part 'cw_bitcoin.dart';";
|
||||||
const bitcoinContent = """
|
const bitcoinContent = """
|
||||||
|
const List<BitcoinAddressType> BITCOIN_ADDRESS_TYPES = [
|
||||||
|
SegwitAddresType.p2wpkh,
|
||||||
|
P2pkhAddressType.p2pkh,
|
||||||
|
SegwitAddresType.p2tr,
|
||||||
|
SegwitAddresType.p2wsh,
|
||||||
|
P2shAddressType.p2wpkhInP2sh,
|
||||||
|
];
|
||||||
|
|
||||||
|
const List<BitcoinAddressType> LITECOIN_ADDRESS_TYPES = [
|
||||||
|
SegwitAddresType.p2wpkh,
|
||||||
|
SegwitAddresType.mweb,
|
||||||
|
];
|
||||||
|
|
||||||
|
const List<BitcoinAddressType> BITCOIN_CASH_ADDRESS_TYPES = [
|
||||||
|
P2pkhAddressType.p2pkh,
|
||||||
|
];
|
||||||
|
|
||||||
class ElectrumSubAddress {
|
class ElectrumSubAddress {
|
||||||
ElectrumSubAddress({
|
ElectrumSubAddress({
|
||||||
required this.id,
|
required this.id,
|
||||||
|
@ -200,7 +216,7 @@ abstract class Bitcoin {
|
||||||
Future<List<DerivationType>> compareDerivationMethods(
|
Future<List<DerivationType>> compareDerivationMethods(
|
||||||
{required String mnemonic, required Node node});
|
{required String mnemonic, required Node node});
|
||||||
List<DerivationInfo> getOldDerivationInfos(List<DerivationInfo> list);
|
List<DerivationInfo> getOldDerivationInfos(List<DerivationInfo> list);
|
||||||
Future<List<BitcoinDerivationInfo>> getDerivationsFromMnemonic(
|
Future<List<DerivationInfo>> getDerivationInfosFromMnemonic(
|
||||||
{required String mnemonic, required Node node, String? passphrase});
|
{required String mnemonic, required Node node, String? passphrase});
|
||||||
Map<DerivationType, List<DerivationInfo>> getElectrumDerivations();
|
Map<DerivationType, List<DerivationInfo>> getElectrumDerivations();
|
||||||
Future<void> setAddressType(Object wallet, dynamic option);
|
Future<void> setAddressType(Object wallet, dynamic option);
|
||||||
|
|
Loading…
Reference in a new issue