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: refactor RPC starkNet_getTransactions with StarkScan #463

Merged

Conversation

stanleyyconsensys
Copy link
Collaborator

@stanleyyconsensys stanleyyconsensys commented Dec 12, 2024

This PR is to refactor RPC starkNet_getTransactions with StarkScan

BEGIN_COMMIT_OVERRIDE
feat: Refactor RPC starkNet_getTransactions and change the provider from Voyager to StarkScan (#453) (#457) (#458) (#459)
END_COMMIT_OVERRIDE

stanleyyconsensys and others added 4 commits December 10, 2024 16:34
…ient (#453)

* feat: add stark scan client

* chore: add starkscan config

* chore: lint

* chore: add interface

* chore: support multiple txn

* chore: update starkscan

* chore: update stark scan client

* chore: update contract func name

* chore: fix test

* chore: update data client

* chore: re-structure starkscan type

* chore: add test coverage

* chore: factory and config

* chore: add backward compatibility for transactions type

* chore: add comment

* chore: lint

* chore: resolve review comment

* chore: change dataVersion to enum

* chore: lint

* chore: update test helper and refactor ContractAddressFilter

* chore: lint

* chore: add test for dataVersion filter

* chore: update txn state mgr test

* chore: update search condition

* chore: update starkscan to handle missing selector_name

* chore: apply starkscan for list transaction

* chore: update list transactions handle

* chore: resolve comment

* chore: update function name

---------

Co-authored-by: khanti42 <[email protected]>
* feat: add stark scan client

* chore: add starkscan config

* chore: lint

* chore: add interface

* chore: support multiple txn

* chore: update starkscan

* chore: update stark scan client

* chore: update contract func name

* chore: fix test

* chore: update data client

* chore: re-structure starkscan type

* chore: add test coverage

* chore: factory and config

* chore: add backward compatibility for transactions type

* chore: add comment

* chore: lint

* chore: resolve review comment

* chore: change dataVersion to enum

* chore: lint

* chore: update test helper and refactor ContractAddressFilter

* chore: lint

* chore: add test for dataVersion filter

* chore: update txn state mgr test

* chore: update search condition

* chore: update starkscan to handle missing selector_name

* chore: apply starkscan for list transaction

* chore: update list transactions handle

* chore: refactor execute txn

* chore: refactor execute txn

* chore: update create account and upgrade account

* chore: lint

* Revert "chore: lint"

This reverts commit 12be249.

* Revert "chore: update create account and upgrade account"

This reverts commit cf64931.

* chore: resolve comment

* chore: resolve comment

* chore: remove space

---------

Co-authored-by: khanti42 <[email protected]>
…ntLegacy`, `starkNet_upgradeAccContract` to handle new txn state (#458)

* feat: add stark scan client

* chore: add starkscan config

* chore: lint

* chore: add interface

* chore: support multiple txn

* chore: update starkscan

* chore: update stark scan client

* chore: update contract func name

* chore: fix test

* chore: update data client

* chore: re-structure starkscan type

* chore: add test coverage

* chore: factory and config

* chore: add backward compatibility for transactions type

* chore: add comment

* chore: lint

* chore: resolve review comment

* chore: change dataVersion to enum

* chore: lint

* chore: update test helper and refactor ContractAddressFilter

* chore: lint

* chore: add test for dataVersion filter

* chore: update txn state mgr test

* chore: update search condition

* chore: update starkscan to handle missing selector_name

* chore: apply starkscan for list transaction

* chore: update list transactions handle

* chore: refactor execute txn

* chore: refactor execute txn

* chore: update create account and upgrade account

* chore: lint

* Revert "chore: lint"

This reverts commit 12be249.

* Revert "chore: update create account and upgrade account"

This reverts commit cf64931.

* chore: update rpcs to handle v2 data

* chore: update rpcs to handle new txn state data

* chore: fix naming

---------

Co-authored-by: khanti42 <[email protected]>
* feat: add stark scan client

* chore: add starkscan config

* chore: lint

* chore: add interface

* chore: support multiple txn

* chore: update starkscan

* chore: update stark scan client

* chore: update contract func name

* chore: fix test

* chore: update data client

* chore: re-structure starkscan type

* chore: add test coverage

* chore: factory and config

* chore: add backward compatibility for transactions type

* chore: add comment

* chore: lint

* chore: resolve review comment

* chore: change dataVersion to enum

* chore: lint

* chore: update test helper and refactor ContractAddressFilter

* chore: lint

* chore: add test for dataVersion filter

* chore: update txn state mgr test

* chore: update search condition

* chore: update starkscan to handle missing selector_name

* chore: apply starkscan for list transaction

* chore: update list transactions handle

* chore: resolve comment

* chore: update wallet-ui to handle new starkNet_getTransactions

* chore: rename type

* chore: remove unecessary input param

* chore: remove unecessary input param

* chore: change explorer link to starkscan

* chore: fix comments

---------

Co-authored-by: stanleyyuen <[email protected]>
@stanleyyconsensys stanleyyconsensys changed the title feat: refactor list transactions with StarkScan feat: refactor RPC starkNet_getTransactions with StarkScan Dec 12, 2024
@stanleyyconsensys stanleyyconsensys marked this pull request as ready for review December 12, 2024 03:42
@stanleyyconsensys stanleyyconsensys requested a review from a team as a code owner December 12, 2024 03:42
@stanleyyconsensys stanleyyconsensys requested review from Akaryatrh and jonesho and removed request for a team December 12, 2024 03:42
Copy link

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

Issues
5 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 SonarQube Cloud

Copy link

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

Issues
5 New issues
0 Accepted issues

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

See analysis details on SonarQube Cloud

Copy link
Collaborator

@khanti42 khanti42 left a comment

Choose a reason for hiding this comment

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

LGTM

@stanleyyconsensys stanleyyconsensys added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit 5b72ef9 Dec 13, 2024
14 checks passed
@stanleyyconsensys stanleyyconsensys deleted the feat/refactor-list-transactions-with-starkscan branch December 13, 2024 00:06
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.

2 participants