Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ginkgo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vjrj
ginkgo
Commits
da1be550
Commit
da1be550
authored
1 year ago
by
vjrj
Browse files
Options
Downloads
Patches
Plain Diff
Disable Utxo retrieving for now
parent
6cf1b77d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/data/models/transactions_bloc.dart
+3
-6
3 additions, 6 deletions
lib/data/models/transactions_bloc.dart
with
3 additions
and
6 deletions
lib/data/models/transactions_bloc.dart
+
3
−
6
View file @
da1be550
...
@@ -10,7 +10,6 @@ import 'app_cubit.dart';
...
@@ -10,7 +10,6 @@ import 'app_cubit.dart';
import
'multi_wallet_transaction_cubit.dart'
;
import
'multi_wallet_transaction_cubit.dart'
;
import
'node_list_cubit.dart'
;
import
'node_list_cubit.dart'
;
import
'transaction.dart'
;
import
'transaction.dart'
;
import
'utxo_cubit.dart'
;
part
'transactions_state.dart'
;
part
'transactions_state.dart'
;
...
@@ -30,7 +29,6 @@ class TransactionsBloc {
...
@@ -30,7 +29,6 @@ class TransactionsBloc {
late
AppCubit
appCubit
;
late
AppCubit
appCubit
;
late
NodeListCubit
nodeListCubit
;
late
NodeListCubit
nodeListCubit
;
late
MultiWalletTransactionCubit
transCubit
;
late
MultiWalletTransactionCubit
transCubit
;
late
UtxoCubit
utxoCubit
;
static
const
int
_pageSize
=
20
;
static
const
int
_pageSize
=
20
;
...
@@ -73,11 +71,10 @@ class TransactionsBloc {
...
@@ -73,11 +71,10 @@ class TransactionsBloc {
}
}
void
init
(
MultiWalletTransactionCubit
transCubit
,
NodeListCubit
nodeListCubit
,
void
init
(
MultiWalletTransactionCubit
transCubit
,
NodeListCubit
nodeListCubit
,
AppCubit
appCubit
,
UtxoCubit
utxoCubit
)
{
AppCubit
appCubit
)
{
this
.
appCubit
=
appCubit
;
this
.
appCubit
=
appCubit
;
this
.
transCubit
=
transCubit
;
this
.
transCubit
=
transCubit
;
this
.
nodeListCubit
=
nodeListCubit
;
this
.
nodeListCubit
=
nodeListCubit
;
this
.
utxoCubit
=
utxoCubit
;
}
}
Stream
<
TransactionsState
>
_fetchTransactionsList
(
String
?
pageKey
)
async
*
{
Stream
<
TransactionsState
>
_fetchTransactionsList
(
String
?
pageKey
)
async
*
{
...
@@ -101,8 +98,8 @@ class TransactionsBloc {
...
@@ -101,8 +98,8 @@ class TransactionsBloc {
itemList:
transCubit
.
transactions
,
itemList:
transCubit
.
transactions
,
);
);
}
else
{
}
else
{
final
List
<
Transaction
>
fetchedItems
=
await
transCubit
final
List
<
Transaction
>
fetchedItems
=
.
fetchTransactions
(
nodeListCubit
,
utxoCubit
,
appCubit
,
await
transCubit
.
fetchTransactions
(
nodeListCubit
,
appCubit
,
cursor:
pageKey
,
pageSize:
_pageSize
);
cursor:
pageKey
,
pageSize:
_pageSize
);
final
bool
isLastPage
=
fetchedItems
.
length
<
_pageSize
;
final
bool
isLastPage
=
fetchedItems
.
length
<
_pageSize
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment