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

Create and sign xts in dart #1626

Merged
merged 35 commits into from
Jan 29, 2024
Merged

Create and sign xts in dart #1626

merged 35 commits into from
Jan 29, 2024

Conversation

clangenb
Copy link
Member

@clangenb clangenb commented Jan 29, 2024

Finally, we move the whole extrinsic creation process onto the dart side, and no JS is used anymore while sending extrinsics, closes #1540. However, it does not remove the webView yet, there is some minor clean up ahead: #1627

Relevant changes:

  • The extrinsic API has become more explicit, it does fewer things implicitly based on state, but depends on parameters explicitly passed to the TxBuilder. This choice makes the extrinsic API much more flexible. For example, we can pass the signer from the outside instead of assuming it to be the current account, which makes Submit txs from non-current accounts #1469 a low-hanging fruit.

…ils. Probably because it can't understand the signed extensions
@clangenb clangenb added A2-technical PR introduces technical changes B0-low Does not elevate a release containing this beyond "low priority" C0-breaksnothing PR does not introduce any breaking changes labels Jan 29, 2024
Comment on lines -157 to -160
} else {
setState(() {
_transferState = TransferState.notStarted;
});
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was unnecessary, we now change the state to submitting after checking the pin, this makes it easier.

context,
store,
webApi,
store.account.getKeyringAccount(store.account.currentAccountPubKey!),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now submit the signer, this will make it easier to implement #1469.

@clangenb clangenb merged commit 44a8107 into master Jan 29, 2024
14 of 17 checks passed
@clangenb clangenb deleted the cl/create-and-sign-xts-in-dart branch January 31, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A2-technical PR introduces technical changes B0-low Does not elevate a release containing this beyond "low priority" C0-breaksnothing PR does not introduce any breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create And sign extrinsics in dart
1 participant