Skip to content

Commit

Permalink
v3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnetwork committed Jan 11, 2024
1 parent 0b834c7 commit d0cee66
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# 3.0.1
## 3.0.3

* Update dependencies

## 3.0.2

* Update dependencies

## 3.0.1

* Update dependencies

Expand Down
17 changes: 17 additions & 0 deletions lib/src/models/network.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@ abstract class BasedUtxoNetwork implements Enumerate {

@override
int get hashCode => value.hashCode;

static List<BasedUtxoNetwork> values = const [
BitcoinNetwork.mainnet,
BitcoinNetwork.testnet,
LitecoinNetwork.mainnet,
LitecoinNetwork.testnet,
DashNetwork.mainnet,
DashNetwork.testnet,
DogecoinNetwork.mainnet,
DogecoinNetwork.testnet,
BitcoinCashNetwork.mainnet,
BitcoinCashNetwork.testnet
];

static BasedUtxoNetwork fromName(String name) {
return values.firstWhere((element) => element.value == name);
}
}

/// Class representing a Bitcoin network, implementing the `BasedUtxoNetwork` abstract class.
Expand Down
5 changes: 3 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: bitcoin_base
description: A versatile library for Bitcoin, Dogecoin, Litecoin, Dash, and BCH. Supports P2PKH, P2SH, P2WPKH, P2WSH, Taproot, with advanced creation, signing, and spending capabilities.
version: 3.0.1
version: 3.0.3
homepage: "https://github.com/mrtnetwork/bitcoin_base"
repository: "https://github.com/mrtnetwork/bitcoin_base"
Author: [email protected]
Expand All @@ -16,7 +16,8 @@ environment:


dependencies:
blockchain_utils: ^1.4.1
blockchain_utils: ^1.6.0


dev_dependencies:
test: ^1.24.6
Expand Down

0 comments on commit d0cee66

Please sign in to comment.