Open jinoosss opened 2 weeks ago
@RezaRahemtola @clockworkgr What do you guys think?
Looks interesting !
Agree on the provider abstraction to build an SDK that is wallet provider agnostic.
For this part:
Support for RPC Providers: Extend functionality to allow the SDK to work with RPC providers alongside wallet providers.
Isn't gno-js-client already supporting RPC providers and more officially linked to Gno ?
Introducing state management hooks for popular web framework would really simplify the usage. In my mind we should hopefully end up with library/ies similar to viem and wagmi on Ethereum in term of devx
Description
Current Structure
methods
directory directly interact with thewindow
object to execute Adena-specific functions.window
object creates challenges in state management and handling data effectively.Proposed Changes
provider
object, allowing for more flexible and extensible function execution. This change will enable the SDK to support not only Adena but also other providers liketm2-wallet
.Expected Outcomes