Skip to content

Commit

Permalink
feat: unspents and tweaks subscribe method
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael-xmr committed Nov 5, 2024
1 parent a3e131d commit c9a5023
Show file tree
Hide file tree
Showing 25 changed files with 1,435 additions and 1,002 deletions.
23 changes: 0 additions & 23 deletions cw_bitcoin/lib/address_from_output.dart

This file was deleted.

6 changes: 4 additions & 2 deletions cw_bitcoin/lib/bitcoin_address_record.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ class BitcoinAddressRecord extends BaseBitcoinAddressRecord {
other.index == index &&
other.derivationInfo == derivationInfo &&
other.scriptHash == scriptHash &&
other.type == type;
other.type == type &&
other.derivationType == derivationType;
}

@override
Expand All @@ -148,7 +149,8 @@ class BitcoinAddressRecord extends BaseBitcoinAddressRecord {
index.hashCode ^
derivationInfo.hashCode ^
scriptHash.hashCode ^
type.hashCode;
type.hashCode ^
derivationType.hashCode;
}

class BitcoinSilentPaymentAddressRecord extends BaseBitcoinAddressRecord {
Expand Down
4 changes: 2 additions & 2 deletions cw_bitcoin/lib/bitcoin_unspent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class BitcoinUnspent extends Unspent {
BitcoinUnspent(
address ?? BitcoinAddressRecord.fromJSON(json['address_record'].toString()),
json['tx_hash'] as String,
json['value'] as int,
json['tx_pos'] as int,
int.parse(json['value'].toString()),
int.parse(json['tx_pos'].toString()),
);

Map<String, dynamic> toJson() {
Expand Down
Loading

0 comments on commit c9a5023

Please sign in to comment.