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

Introducing add_account trusted call #3155

Merged
merged 40 commits into from
Nov 4, 2024

Conversation

silva-fj
Copy link
Contributor

As topic.

Most important changes:

  • New trusted call add_account: As this is a native task, we no longer need a two steps process for the identity verification.
  • The verification message now uses the parachain nonce.
  • send_to_parentchain method of the ocall_api has been refactored to allow waiting for other extrinsic statuses and to be able to return the extrinsic result.
  • Native task response (new trusted calls results) now include the extrinsic report, so clients can query the on-chain data.

@silva-fj silva-fj requested review from Kailai-Wang and a team October 31, 2024 16:56
Copy link

linear bot commented Oct 31, 2024

Copy link
Collaborator

@Kailai-Wang Kailai-Wang left a comment

Choose a reason for hiding this comment

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

Could you have a very basic integration (ts) test for it? Or you could ask @0xverin to do it

@silva-fj
Copy link
Contributor Author

silva-fj commented Nov 1, 2024

Could you have a very basic integration (ts) test for it? Or you could ask @0xverin to do it

Yes, but I think we should add the tests in a separate PR as it would require quite some changes to prepare the test suit (at least for the first test, once we have the utilities and helpers in place it would be trivial to add other test cases). Also, we could reuse what @jonalvarezz has been working on related to the omni account and the new types like TrustedCallAuthenticated, TCAuthentication, etc. Since we need to create the definitions and generate the new ts types as well

Copy link
Collaborator

@Kailai-Wang Kailai-Wang left a comment

Choose a reason for hiding this comment

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

Thanks, it looks good in general, I left some comments for (id-)worker, ditto for bc-worker.

The most important thing if the response_size is sufficient.

The correctness of add_account will need to be verified by ts-test

Copy link
Collaborator

@Kailai-Wang Kailai-Wang left a comment

Choose a reason for hiding this comment

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

I'm fine with it, we are good to go after conflicts are resolved

@silva-fj silva-fj enabled auto-merge (squash) November 4, 2024 16:49
@silva-fj silva-fj merged commit 4905e01 into dev Nov 4, 2024
21 checks passed
@silva-fj silva-fj deleted the p-1120-create-add_account-trusted-call branch November 4, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants