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: Web Provider RPC 🗣️ #111

Closed
wants to merge 211 commits into from
Closed

Feat: Web Provider RPC 🗣️ #111

wants to merge 211 commits into from

Conversation

teddyjfpender
Copy link
Contributor

@teddyjfpender teddyjfpender commented Dec 23, 2023

Describe changes

To communicate with zkApps, Pallad must be able to receive requests and provide back data; Pallad must be able to talk! It must do so by following a specific pattern. A good implementation of the injected provider means developers spend little time integrating a wallet Pallad, and users of Pallad have granular control over what information they do and do not provide when their wallet receives a request.

This implementation is modelled around EIP-1193 with the mina_ prefix instead of the eth_ prefix.

Preliminary Mina-specific Tasks:

  • add versioning of API
  • request method
    • mina_accounts RPC Method
    • mina_sign RPC Method
    • mina_signTransaction RPC Method
    • mina_signFields RPC Method
    • mina_signMessage RPC Method (done in mina_sign)
    • mina_getBalance RPC Method
    • mina_chainId RPC Method
    • mina_sendTransaction RPC Method
    • mina_createNullifier RPC Method
  • enable method
  • connect method
  • disconnect method
  • application listeners
    • on
    • once
    • removeListener
    • off
  • Correct event emitting
    • accountsChanged
    • chainChanged
  • Error handling
    • 4001
    • 4100
    • 4200
    • 4900
    • 4901
  • Integrate into extension

Secondary Web3 Broad Tasks:

  • Abstract over the MinaProvider to make a UniversalProvider for other ecosystems like Protoki, Zeko, Ethereum
  • Add versioning

Music listened to during this PR:

@teddyjfpender
Copy link
Contributor Author

image

@mrcnk
Copy link
Member

mrcnk commented Apr 26, 2024

Closing this one as it was delivered in different Pull Request.

@mrcnk mrcnk closed this Apr 26, 2024
@mrcnk mrcnk deleted the feat/web-provider branch June 12, 2024 19:57
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