Skip to content

chore: update async worker to use callbacks#237

Merged
pranishnepal merged 1 commit into
masterfrom
follow-up/polling-worker-WCN-746
Jun 12, 2026
Merged

chore: update async worker to use callbacks#237
pranishnepal merged 1 commit into
masterfrom
follow-up/polling-worker-WCN-746

Conversation

@pranishnepal

Copy link
Copy Markdown
Contributor

What

This PR refactors the async job worker to utilize callbacks for keychain creation and
wallet addition.

Ticket: WCN-746

Testing

  • Unit Tests + Integ Tests to validate the refactor

@linear-code

linear-code Bot commented Jun 12, 2026

Copy link
Copy Markdown

WCN-746

@pranishnepal pranishnepal force-pushed the follow-up/polling-worker-WCN-746 branch from 1158850 to d768aac Compare June 12, 2026 19:10
This commit refactors the async job worker to
utilize callbacks for keychain creation and
wallet addition.

Ticket: WCN-746
@pranishnepal pranishnepal force-pushed the follow-up/polling-worker-WCN-746 branch from d768aac to 2b0166c Compare June 12, 2026 19:13
@pranishnepal pranishnepal marked this pull request as ready for review June 12, 2026 19:24
@pranishnepal pranishnepal requested review from a team as code owners June 12, 2026 19:24
Comment on lines +117 to +118
const result = await baseCoin.wallets().generateWallet({
...(job.request?.body ?? {}),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

how is the request body being type checked?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is what bridge sends back, which we would have validated when MBE was initially hit - because bridge <> mbe work with unknowns atm, we aren't able to set a specific typing 🤔

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this isn't part of the callbacks, but I had a few questions on the async job worker too. I can leave the review here in a bit and pranish can make another followup if they need to be addressed

@pranavjain97 pranavjain97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@pranishnepal pranishnepal merged commit 78b9f20 into master Jun 12, 2026
21 checks passed
@pranishnepal pranishnepal deleted the follow-up/polling-worker-WCN-746 branch June 12, 2026 19:49
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