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: partial prepareCalls impl #789

Merged
merged 20 commits into from
Sep 26, 2024
Merged

feat: partial prepareCalls impl #789

merged 20 commits into from
Sep 26, 2024

Conversation

chris13524
Copy link
Member

@chris13524 chris13524 commented Sep 23, 2024

Description

Functional implementation of prepareCalls according to these specs. Just duping this all in this repo for now to get this working, we can refactor into yttrium in another PR. There are a few details remaining to be implemented, but these will also be in a follow-up PR:

  • Validation of isSafe and other things, matching the previous JS code (TODOs in code)
  • More specific error types (TODOs in code)

Also updates copyright.

Depends on reown-com/yttrium#28

Depends on https://walletconnect.slack.com/archives/C03SCF66K2T/p1727098325949169

How Has This Been Tested?

Not tested

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@chris13524 chris13524 self-assigned this Sep 23, 2024
@chris13524 chris13524 changed the title feat: wallet service feat: partial prepareCalls impl Sep 23, 2024
@chris13524 chris13524 marked this pull request as ready for review September 24, 2024 19:25
@chris13524 chris13524 force-pushed the feat/wallet-service branch 3 times, most recently from db27fe3 to a8f4556 Compare September 25, 2024 20:28

let pimlico_client = BundlerClient::new(BundlerConfig::new(
format!(
"https://rpc.walletconnect.com/v1/bundler?chainId={}&projectId={}&bundler=pimlico",
Copy link
Contributor

Choose a reason for hiding this comment

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

We can use bundler_rpc_call instead of the direct URL request.

Copy link
Member Author

Choose a reason for hiding this comment

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

I would like to use this; but I need to refactor the library to support this sort of arbitrary function call vs needing an HTTP request.

@chris13524 chris13524 merged commit 39583b7 into master Sep 26, 2024
12 checks passed
@chris13524 chris13524 deleted the feat/wallet-service branch September 26, 2024 21:46
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