onbloc / adena-wallet

Adena is a friendly browser extension wallet for the Gnoland blockchain.
http://adena.app/
GNU General Public License v3.0
26 stars 18 forks source link

request: Create a small SDK / package to simplify interactions #526

Open RezaRahemtola opened 5 days ago

RezaRahemtola commented 5 days ago

The documentation is great to integrate Adena in an application, but some things are missing imo, like the type of the response. For example here, only a sample response and a broad response type is specified (no way to know that ALREADY_CONNECTED is a potential type for example, except by testing locally).

The documentation could be improved, but the best thing would be to have an NPM package with some methods and types already included, because now I noticed that when building a project pretty much everyone (myself included) copies an existing implementation like this one: https://github.com/gnolang/memeland/blob/main/ui/src/services/adena/adena.ts that already contains all the types and methods required. Having this in an "official" NPM package would be easier (especially if some implementation details change, people will just have to update their package version).

Would be happy to help on this if needed ;)

agherasie commented 5 days ago

I second this ! and would also be happy to help if needed !