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

feat: event handling in get-starknet #413

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

khanti42
Copy link
Collaborator

@khanti42 khanti42 commented Nov 5, 2024

This PR is to add Event handling in get-starknet.

It uses polling every 5 seconds to check for changes. This help ensure that the walletAccount object address and network are in sync with the snap state. As both events are used in the walletAccount object to ensure this: https://github.com/starknet-io/starknet.js/blob/b15fe2d6aa9a5494c510fcac3d6d34fd7e41bf5c/src/wallet/account.ts#L56

@khanti42 khanti42 requested a review from a team as a code owner November 5, 2024 13:58
@khanti42 khanti42 requested review from Akaryatrh and stanleyyconsensys and removed request for a team November 5, 2024 13:58
@khanti42 khanti42 force-pushed the feat/event-handling-with-polling branch from 53d1b9f to 2071148 Compare November 5, 2024 14:04
Copy link

sonarcloud bot commented Nov 5, 2024

Quality Gate Passed Quality Gate passed for 'consensys_starknet-snap-starknet-snap'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Nov 5, 2024

Quality Gate Passed Quality Gate passed for 'consensys_starknet-snap-wallet-ui'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@khanti42 khanti42 marked this pull request as draft November 5, 2024 14:19
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.

1 participant