Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/api/v2 #35

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
## 0.3.0
- Upgrade the block explorer api to use the new version: https://witscan.xyz/api
- Replace `nework` method with `networkBalances`
- Update `reputation` method to return the new `NetworkReputation` class
- Update `mempool` method to return the new `Mempool` class
- Update `address` method signature to accept a `String value`, `String tab`, `int? page` and `int? pageSize` arguments. It returns the new `Mempool` class.
- `tab` can be `blocks`, `data_requests_solved` or `value_transfers`
- Update `Blockchain` class
- Update `blockchain` method signature to accept `int? page` and `int? pageSize`
- Update `MintInfo` class
- Update `hash` method to be able to return the new `MintInfo` class
- Update `Status` class
- Update `status` method to return the new `Status` class

## 0.2.8
- Update AddressDataRequestsSolved `fromJson` and `toJson`
- Update AddressBlocks `jsonMap` result

## 0.2.7
- Fix error getting inputs from hash

Expand Down
3 changes: 1 addition & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ linter:
rules:
- cancel_subscriptions
- hash_and_equals
- iterable_contains_unrelated_type
- list_remove_unrelated_type
- collection_methods_unrelated_type
- test_types_in_equals
- unrelated_type_equality_checks
- valid_regexps
4 changes: 2 additions & 2 deletions lib/explorer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export 'src/network/explorer/explorer_api.dart'
show
ExplorerException,
Home,
Network,
NetworkStats,
NodePool,
Status,
Expand All @@ -25,4 +24,5 @@ export 'src/network/explorer/explorer_api.dart'
TallyTxn,
ValueTransferInfo,
PrioritiesEstimate,
PriorityEstimate;
PriorityEstimate,
Mempool;
Loading