Skip to content

Commit

Permalink
Merge branch 'remove-other-coins' into main
Browse files Browse the repository at this point in the history
# Conflicts:
#	lib/utilities/address_utils.dart
#	lib/utilities/enums/coin_enum.dart
  • Loading branch information
Likho committed Mar 17, 2023
2 parents 78daa1d + 36a064d commit 0d4a53f
Show file tree
Hide file tree
Showing 73 changed files with 200 additions and 21,189 deletions.
121 changes: 0 additions & 121 deletions lib/models/epicbox_config_model.dart

This file was deleted.

83 changes: 0 additions & 83 deletions lib/models/epicbox_server_model.dart

This file was deleted.

43 changes: 4 additions & 39 deletions lib/models/paymint/transactions_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -213,38 +213,6 @@ class Transaction {
);
}

factory Transaction.fromLelantusJson(Map<String, dynamic> json) {
return Transaction(
txid: json['txid'] as String,
confirmedStatus: json['confirmed_status'] as bool? ?? false,
timestamp: json['timestamp'] as int? ??
(DateTime.now().millisecondsSinceEpoch ~/ 1000),
txType: json['txType'] as String,
amount: (Decimal.parse(json["amount"].toString()) *
Decimal.fromInt(Constants.satsPerCoin(Coin
.firo))) // dirty hack but we need 8 decimal places here to keep consistent data structure
.toBigInt()
.toInt(),
aliens: [],
worthNow: json['worthNow'] as String,
worthAtBlockTimestamp: json['worthAtBlockTimestamp'] as String? ?? "0",
fees: (Decimal.parse(json["fees"].toString()) *
Decimal.fromInt(Constants.satsPerCoin(Coin
.firo))) // dirty hack but we need 8 decimal places here to keep consistent data structure
.toBigInt()
.toInt(),
inputSize: json['inputSize'] as int? ?? 0,
outputSize: json['outputSize'] as int? ?? 0,
inputs: [],
outputs: [],
address: json["address"] as String,
height: json["height"] as int? ?? int64MaxValue,
subType: json["subType"] as String? ?? "",
confirmations: json["confirmations"] as int? ?? 0,
otherData: json["otherData"] as String?,
);
}

bool get isMinting => subType.toLowerCase() == "mint" && !confirmedStatus;

Transaction copyWith({
Expand Down Expand Up @@ -393,10 +361,8 @@ class Output {
scriptpubkeyAsm: json['scriptPubKey']['asm'] as String?,
scriptpubkeyType: json['scriptPubKey']['type'] as String?,
scriptpubkeyAddress: address,
value: (Decimal.parse(
(json["value"] ?? 0).toString()) *
Decimal.fromInt(Constants.satsPerCoin(Coin
.firo))) // dirty hack but we need 8 decimal places here to keep consistent data structure
value: (Decimal.parse((json["value"] ?? 0)
.toString())) // dirty hack but we need 8 decimal places here to keep consistent data structure
.toBigInt()
.toInt(),
);
Expand All @@ -407,9 +373,8 @@ class Output {
scriptpubkeyAsm: "",
scriptpubkeyType: "",
scriptpubkeyAddress: "",
value: (Decimal.parse(0.toString()) *
Decimal.fromInt(Constants.satsPerCoin(Coin
.firo))) // dirty hack but we need 8 decimal places here to keep consistent data structure
value: (Decimal.parse(0
.toString())) // dirty hack but we need 8 decimal places here to keep consistent data structure
.toBigInt()
.toInt());
}
Expand Down
56 changes: 0 additions & 56 deletions lib/models/type_adaptors/epicbox_config_model.g.dart

This file was deleted.

62 changes: 0 additions & 62 deletions lib/models/type_adaptors/epicbox_server_model.g.dart

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ class _AddWalletViewState extends State<AddWalletView> {
void initState() {
_searchFieldController = TextEditingController();
_searchFocusNode = FocusNode();
coins.remove(Coin.firoTestNet);
if (isDesktop) {
coins.remove(Coin.wownero);
if (Platform.isWindows) {
coins.remove(Coin.monero);
}
Expand Down
Loading

0 comments on commit 0d4a53f

Please sign in to comment.