Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğecko
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
clients
Ğecko
Commits
c487749f
Commit
c487749f
authored
2 years ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
improve batch meca
parent
2526f382
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!26
Features gdev2
Pipeline
#16705
waiting for manual action
Stage: format
Stage: build_and_test
Stage: package
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/providers/substrate_sdk.dart
+7
-14
7 additions, 14 deletions
lib/providers/substrate_sdk.dart
pubspec.yaml
+1
-1
1 addition, 1 deletion
pubspec.yaml
with
8 additions
and
15 deletions
lib/providers/substrate_sdk.dart
+
7
−
14
View file @
c487749f
...
...
@@ -506,6 +506,7 @@ class SubstrateSdk with ChangeNotifier {
keyring
.
current
.
pubKey
,
);
TxInfoData
txInfo
;
List
txOptions
=
[];
if
(
toIdtyStatus
==
'noid'
)
{
txInfo
=
TxInfoData
(
...
...
@@ -513,6 +514,7 @@ class SubstrateSdk with ChangeNotifier {
'createIdentity'
,
sender
,
);
txOptions
=
[
toAddress
];
}
else
if
(
toIdtyStatus
==
'Validated'
||
toIdtyStatus
==
'ConfirmedByOwner'
)
{
if
(
toCerts
[
0
]
>
=
currencyParameters
[
'wotMinCertForMembership'
]
&&
...
...
@@ -523,12 +525,17 @@ class SubstrateSdk with ChangeNotifier {
'batchAll'
,
sender
,
);
txOptions
=
[
'cert.addCert(
$fromIndex
,
$toIndex
)'
,
'identity.validateIdentity(
$toIndex
)'
];
}
else
{
txInfo
=
TxInfoData
(
'cert'
,
'addCert'
,
sender
,
);
txOptions
=
[
fromIndex
,
toIndex
];
}
}
else
{
transactionStatus
=
'cantBeCert'
;
...
...
@@ -539,20 +546,6 @@ class SubstrateSdk with ChangeNotifier {
log
.
d
(
'Cert action:
${txInfo.call!}
'
);
try
{
List
txOptions
=
[];
if
(
txInfo
.
call
==
'batchAll'
)
{
txOptions
=
[
'cert.addCert(
$fromIndex
,
$toIndex
)'
,
'identity.validateIdentity(
$toIndex
)'
];
}
else
if
(
txInfo
.
call
==
'createIdentity'
)
{
txOptions
=
[
toAddress
];
}
else
if
(
txInfo
.
call
==
'addCert'
)
{
txOptions
=
[
fromIndex
,
toIndex
];
}
else
{
log
.
e
(
'TX call is unexpected'
);
return
'Ğecko says: TX call is unexpected'
;
}
final
hash
=
await
sdk
.
api
.
tx
.
signAndSend
(
txInfo
,
...
...
This diff is collapsed.
Click to expand it.
pubspec.yaml
+
1
−
1
View file @
c487749f
...
...
@@ -5,7 +5,7 @@ description: Pay with G1.
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to
:
'
none'
# Remove this line if you wish to publish to pub.dev
version
:
0.0.9+1
6
version
:
0.0.9+1
7
environment
:
sdk
:
'
>=2.12.0
<3.0.0'
...
...
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