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

arbitrum-client: fetch_public_shares_from_tx #261

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

akirillo
Copy link
Contributor

This PR adds the fetch_public_shares_from_tx method to the Arbitrum client, allowing it to read a wallet's public secret shares from calldata.

Currently, this method only expects to parse shares from calldata where the {new_wallet, update_wallet, process_match_settle} call was a top-level call issued by an EOA, for simplicity. I've added a todo for parsing shares from calldata where the Darkpool function was called by another contract, I felt it was not worth trying to implement before having an integration testing stack.

This marks the end of the core functionality required by the client, the next PRs will focus on integration testing of the client, after which I'll focus on deprecating the Starknet client throughout the relayer in favor of the Arbitrum client.

@akirillo akirillo added the enhancement New feature or request label Nov 20, 2023
@akirillo akirillo requested a review from joeykraut November 20, 2023 22:24
@akirillo akirillo self-assigned this Nov 20, 2023
Copy link
Member

@joeykraut joeykraut left a comment

Choose a reason for hiding this comment

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

very nice

arbitrum-client/src/client/event_indexing.rs Show resolved Hide resolved
@akirillo akirillo force-pushed the andrew/calldata-parsing branch from e312094 to 79db48d Compare November 21, 2023 17:23
@akirillo akirillo merged commit 7e6e503 into andrew/arbitrum-client Nov 21, 2023
0 of 3 checks passed
@akirillo akirillo deleted the andrew/calldata-parsing branch November 21, 2023 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants