Closed VanishMax closed 3 months ago
Test application with a simple logic:
It uses the most up-to-date APIs of penumbra-zone packages. Yet, it requires many libraries to accomplish this simple task:
@penumbra-zone/client
@connectrpc/connect
@buf
@penumbra-zone/protobuf
@penumbra-zone/transport-dom
ViewService
@penumbra-zone/getters
@penumbra-zone/bech32m
Furthermore, the task gets even more complicated because of the lack of the exported methods and documentation.
Made some helper functions here and there to come up with better abstractions but not really satisfied with the result. I still think the API should be wallet-centric like it was proposed here: https://github.com/penumbra-zone/web/issues/1093#issuecomment-2163407450
I'd like to receive a review of this work and discuss how we can make it easier.
@grod220 Updated the deps and Prax wallet to make the stable version of this app. Didn't change the linter since the idea of this app is to add as little as possible to the default Next template
Test application with a simple logic:
It uses the most up-to-date APIs of penumbra-zone packages. Yet, it requires many libraries to accomplish this simple task:
@penumbra-zone/client
– to get the injected wallets@connectrpc/connect
+ 4@buf
packages +@penumbra-zone/protobuf
+@penumbra-zone/transport-dom
only to connect to theViewService
@penumbra-zone/getters
,@penumbra-zone/bech32m
and@penumbra-zone/getters
to transform the services data to user-friendly formatFurthermore, the task gets even more complicated because of the lack of the exported methods and documentation.
Made some helper functions here and there to come up with better abstractions but not really satisfied with the result. I still think the API should be wallet-centric like it was proposed here: https://github.com/penumbra-zone/web/issues/1093#issuecomment-2163407450
I'd like to receive a review of this work and discuss how we can make it easier.