add transactionVersion overrides for all coins

ecash and particl may vary, need to verify.
This commit is contained in:
sneurlax 2024-06-05 17:19:33 -05:00
parent b909c72cb9
commit 88f462f43e
8 changed files with 29 additions and 1 deletions

View file

@ -1,4 +1,5 @@
import 'package:coinlib_flutter/coinlib_flutter.dart' as coinlib;
import '../../../models/isar/models/blockchain_data/address.dart';
import '../../../models/node_model.dart';
import '../../../utilities/amount/amount.dart';
@ -291,4 +292,7 @@ class Bitcoin extends Bip39HDCurrency
);
}
}
@override
int get transactionVersion => 1;
}

View file

@ -364,4 +364,7 @@ class Bitcoincash extends Bip39HDCurrency with ElectrumXCurrencyInterface {
);
}
}
@override
int get transactionVersion => 1;
}

View file

@ -1,4 +1,5 @@
import 'package:coinlib_flutter/coinlib_flutter.dart' as coinlib;
import '../../../models/isar/models/blockchain_data/address.dart';
import '../../../models/node_model.dart';
import '../../../utilities/amount/amount.dart';
@ -248,4 +249,7 @@ class Dogecoin extends Bip39HDCurrency with ElectrumXCurrencyInterface {
);
}
}
@override
int get transactionVersion => 1;
}

View file

@ -338,4 +338,7 @@ class Ecash extends Bip39HDCurrency with ElectrumXCurrencyInterface {
);
}
}
@override
int get transactionVersion => 1;
}

View file

@ -1,13 +1,14 @@
import 'package:coinlib_flutter/coinlib_flutter.dart' as coinlib;
import '../../../models/isar/models/blockchain_data/address.dart';
import '../../../models/node_model.dart';
import '../../../utilities/amount/amount.dart';
import '../../../utilities/default_nodes.dart';
import '../../../utilities/enums/derive_path_type_enum.dart';
import '../../wallet/wallet_mixin_interfaces/spark_interface.dart';
import '../crypto_currency.dart';
import '../interfaces/electrumx_currency_interface.dart';
import '../intermediate/bip39_hd_currency.dart';
import '../../wallet/wallet_mixin_interfaces/spark_interface.dart';
class Firo extends Bip39HDCurrency with ElectrumXCurrencyInterface {
Firo(super.network) {
@ -266,4 +267,7 @@ class Firo extends Bip39HDCurrency with ElectrumXCurrencyInterface {
);
}
}
@override
int get transactionVersion => 1;
}

View file

@ -1,4 +1,5 @@
import 'package:coinlib_flutter/coinlib_flutter.dart' as coinlib;
import '../../../models/isar/models/blockchain_data/address.dart';
import '../../../models/node_model.dart';
import '../../../utilities/amount/amount.dart';
@ -279,4 +280,7 @@ class Litecoin extends Bip39HDCurrency with ElectrumXCurrencyInterface {
);
}
}
@override
int get transactionVersion => 1;
}

View file

@ -252,4 +252,7 @@ class Namecoin extends Bip39HDCurrency with ElectrumXCurrencyInterface {
);
}
}
@override
int get transactionVersion => 1;
}

View file

@ -230,4 +230,7 @@ class Particl extends Bip39HDCurrency with ElectrumXCurrencyInterface {
);
}
}
@override
int get transactionVersion => 1;
}