mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 21:04:53 +00:00
a031b0fe49
This reverts commit a49e57e3
14 lines
614 B
Dart
14 lines
614 B
Dart
import 'package:cw_bitcoin/bitcoin_address_record.dart';
|
|
import 'package:cw_core/unspent_transaction_output.dart';
|
|
|
|
class BitcoinUnspent extends Unspent {
|
|
BitcoinUnspent(BitcoinAddressRecord addressRecord, String hash, int value, int vout)
|
|
: bitcoinAddressRecord = addressRecord,
|
|
super(addressRecord.address, hash, value, vout, null);
|
|
|
|
factory BitcoinUnspent.fromJSON(BitcoinAddressRecord address, Map<String, dynamic> json) =>
|
|
BitcoinUnspent(
|
|
address, json['tx_hash'] as String, json['value'] as int, json['tx_pos'] as int);
|
|
|
|
final BitcoinAddressRecord bitcoinAddressRecord;
|
|
}
|