Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
26 changes: 13 additions & 13 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.19.0"
version: "1.18.0"
convert:
dependency: transitive
description:
Expand Down Expand Up @@ -206,18 +206,18 @@ packages:
dependency: transitive
description:
name: leak_tracker
sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
url: "https://pub.dev"
source: hosted
version: "10.0.7"
version: "10.0.5"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
url: "https://pub.dev"
source: hosted
version: "3.0.8"
version: "3.0.5"
leak_tracker_testing:
dependency: transitive
description:
Expand Down Expand Up @@ -302,7 +302,7 @@ packages:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
version: "0.0.99"
source_span:
dependency: transitive
description:
Expand Down Expand Up @@ -347,10 +347,10 @@ packages:
dependency: transitive
description:
name: string_scanner
sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
url: "https://pub.dev"
source: hosted
version: "1.3.0"
version: "1.2.0"
term_glyph:
dependency: transitive
description:
Expand All @@ -363,10 +363,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
url: "https://pub.dev"
source: hosted
version: "0.7.3"
version: "0.7.2"
typed_data:
dependency: transitive
description:
Expand Down Expand Up @@ -395,10 +395,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
url: "https://pub.dev"
source: hosted
version: "14.2.5"
version: "14.2.4"
wallet:
dependency: transitive
description:
Expand Down
4 changes: 4 additions & 0 deletions lib/src/api/enhanced/nft.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class EnhancedNFTAPI with AlchemyConsoleMixin {
bool withMetadata = true,
int? tokenUriTimeoutInMs,
List<NFTSpamFilter> filters = const [],
List<NFTSpamFilter> excludeFilters = const [],
OrderBy orderBy = OrderBy.desc,
SpamConfidenceLevel? spamConfidenceLevel,
}) async {
Expand All @@ -45,6 +46,7 @@ class EnhancedNFTAPI with AlchemyConsoleMixin {
'withMetadata': withMetadata,
'tokenUriTimeoutInMs': tokenUriTimeoutInMs,
'includeFilters[]': filters.map((e) => e.toParam()).toList(),
'excludeFilters[]': excludeFilters.map((e) => e.toParam()).toList(),
'orderBy': orderBy.toParam(),
};

Expand Down Expand Up @@ -128,6 +130,7 @@ class EnhancedNFTAPI with AlchemyConsoleMixin {
required String owner,
String? pageKey,
List<NFTSpamFilter> filters = const [],
List<NFTSpamFilter> excludeFilters = const [],
OrderBy orderBy = OrderBy.desc,
}) async {
final result = await httpClient.request(
Expand All @@ -137,6 +140,7 @@ class EnhancedNFTAPI with AlchemyConsoleMixin {
'owner': owner,
'pageKey': pageKey,
'includeFilters[]': filters.map((e) => e.toParam()).toList(),
'excludeFilters[]': excludeFilters.map((e) => e.toParam()).toList(),
'orderBy': orderBy.toParam(),
},
);
Expand Down